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'
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;chtype.at:27;changed file types in incrementals;incremental chtype;
665 37;ignfail.at:23;ignfail;ignfail;
666 38;link01.at:33;link count gt 2;link01;
667 39;longv7.at:24;long names in V7 archives;longname longv7;
668 40;long01.at:28;long file names divisible by block size;longname long512;
669 41;lustar01.at:21;ustar: unsplittable file name;longname ustar lustar01;
670 42;lustar02.at:21;ustar: unsplittable path name;longname ustar lustar02;
671 43;lustar03.at:21;ustar: splitting long names;longname ustar lustar03;
672 44;multiv01.at:23;multivolume dumps from pipes;multivolume multiv multiv01;
673 45;multiv02.at:28;skipping a straddling member;multivolume multiv multiv02;
674 46;multiv03.at:30;MV archive & long filenames;multivolume multiv multiv03;
675 47;multiv04.at:36;split directory members in a MV archive;multivolume multiv incremental multiv04;
676 48;multiv05.at:26;Restoring after an out of sync folume;multivolume multiv multiv05 sync;
677 49;old.at:23;old archives;old;
678 50;recurse.at:21;recurse;recurse;
679 51;same-order01.at:26;working -C with --same-order;same-order same-order01;
680 52;same-order02.at:25;multiple -C options;same-order same-order02;
681 53;shortrec.at:25;short records;shortrec.at;
682 54;sparse01.at:21;sparse files;sparse sparse01;
683 55;sparse02.at:21;extracting sparse file over a pipe;sparse sparse02;
684 56;sparse03.at:21;storing sparse files > 8G;sparse sparse03;
685 57;sparsemv.at:21;sparse files in MV archives;sparse multiv sparsemv;
686 58;spmvp00.at:21;sparse files in PAX MV archives, v.0.0;sparse multiv sparsemvp sparsemvp00;
687 59;spmvp01.at:21;sparse files in PAX MV archives, v.0.1;sparse multiv sparsemvp sparsemvp01;
688 60;spmvp10.at:21;sparse files in PAX MV archives, v.1.0;sparse multiv sparsemvp sparsemvp10;
689 61;update.at:27;update unchanged directories;update;
690 62;volume.at:23;volume;volume volcheck;
691 63;volsize.at:29;volume header size;volume volsize;
692 64;comprec.at:21;compressed format recognition;comprec;
693 65;shortfile.at:26;short input files;shortfile shortfile0;
694 66;shortupd.at:29;updating short archives;shortfile shortfile1 shortupd;
695 67;truncate.at:29;truncate;truncate filechange;
696 68;grow.at:24;grow;grow filechange;
697 69;gtarfail.at:21;gtarfail;star gtarfail;
698 70;gtarfail2.at:21;gtarfail2;star gtarfail2;
699 71;multi-fail.at:21;multi-fail;star multivolume multiv multi-fail;
700 72;ustar-big-2g.at:21;ustar-big-2g;star ustar-big-2g;
701 73;ustar-big-8g.at:21;ustar-big-8g;star ustar-big-8g;
702 74;pax-big-10g.at:21;pax-big-10g;star pax-big-10g;
708 # If the previous option needs an argument, assign it.
709 if test -n "$at_prev"; then
710 at_option=$at_prev=$at_option
715 *=*) at_optarg=`expr "x$at_option" : 'x[^=]*=\(.*\)'` ;;
719 # Accept the important Cygnus configure options, so we can diagnose typos.
735 test -d "$at_suite_dir" &&
736 find "$at_suite_dir" -type d ! -perm -700 -exec chmod u+rwx \{\} \;
737 rm -f -r "$at_suite_dir" "$at_suite_log"
751 at_verbose=echo; at_quiet=:
755 at_traceon='set -x'; at_traceoff='set +x'
758 [0-9] | [0-9][0-9] | [0-9][0-9][0-9] | [0-9][0-9][0-9][0-9])
759 at_groups="$at_groups$at_option "
763 [0-9]- | [0-9][0-9]- | [0-9][0-9][0-9]- | [0-9][0-9][0-9][0-9]-)
764 at_range_start=`echo $at_option |tr -d X-`
765 at_range=`echo " $at_groups_all " | \
766 sed -e 's/^.* \('$at_range_start' \)/\1/'`
767 at_groups="$at_groups$at_range "
770 -[0-9] | -[0-9][0-9] | -[0-9][0-9][0-9] | -[0-9][0-9][0-9][0-9])
771 at_range_end=`echo $at_option |tr -d X-`
772 at_range=`echo " $at_groups_all " | \
773 sed -e 's/\( '$at_range_end'\) .*$/\1/'`
774 at_groups="$at_groups$at_range "
777 [0-9]-[0-9] | [0-9]-[0-9][0-9] | [0-9]-[0-9][0-9][0-9] | \
778 [0-9]-[0-9][0-9][0-9][0-9] | [0-9][0-9]-[0-9][0-9] | \
779 [0-9][0-9]-[0-9][0-9][0-9] | [0-9][0-9]-[0-9][0-9][0-9][0-9] | \
780 [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] | \
782 [0-9][0-9][0-9][0-9]-[0-9][0-9][0-9][0-9] )
783 at_range_start=`expr $at_option : '\(.*\)-'`
784 at_range_end=`expr $at_option : '.*-\(.*\)'`
785 if test $at_range_start -gt $at_range_end; then
787 at_range_end=$at_range_start
788 at_range_start=$at_tmp
790 at_range=`echo " $at_groups_all " | \
791 sed -e 's/^.*\( '$at_range_start' \)/\1/' \
792 -e 's/\( '$at_range_end'\) .*$/\1/'`
793 at_groups="$at_groups$at_range "
801 at_groups_selected=$at_help_all
813 at_keyword=`expr "X$at_keyword" : 'X!\(.*\)'`
816 # It is on purpose that we match the test group titles too.
817 at_groups_selected=`echo "$at_groups_selected" |
818 grep -i $at_invert "^[1-9][^;]*;.*[; ]$at_keyword[ ;]"`
820 at_groups_selected=`echo "$at_groups_selected" | sed 's/;.*//'`
821 # Smash the newlines.
822 at_groups="$at_groups`echo $at_groups_selected` "
826 at_envvar=`expr "x$at_option" : 'x\([^=]*\)='`
827 # Reject names that are not valid shell variable names.
828 expr "x$at_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
829 { echo "$as_me: error: invalid variable name: $at_envvar" >&2
830 { (exit 1); exit 1; }; }
831 at_value=`echo "$at_optarg" | sed "s/'/'\\\\\\\\''/g"`
832 eval "$at_envvar='$at_value'"
834 # Propagate to debug scripts.
835 at_debug_args="$at_debug_args $at_envvar='$at_value'"
838 *) echo "$as_me: invalid option: $at_option" >&2
839 echo "Try \`$0 --help' for more information." >&2
845 # Selected test groups.
846 if test -z "$at_groups"; then
847 at_groups=$at_groups_all
849 # Sort the tests, removing duplicates:
850 at_groups=`echo $at_groups | tr ' ' "$as_nl" | sort -nu`
851 # and add banners. (Passing at_groups_all is tricky--see the comment
852 # starting with "Passing at_groups is tricky.")
853 at_groups=`echo "$at_groups$as_nl $at_groups_all" |
854 awk 'BEGIN { FS = "@" } # Effectively switch off field splitting.
855 /^$/ { next } # Ignore the empty line.
856 !/ / { groups++; selected[$ 0] = 1; next }
857 # The last line, containing at_groups_all.
859 n = split($ 0, a, " ")
860 # If there are several tests, select their banners:
862 for (i = 1; i <= n; i++) {
863 if (a[i] ~ /^banner-/)
865 else if (banner != "" && selected[a[i]] == 1)
869 for (i = 1; i <= n; i++)
870 if (selected[a[i]] == 1)
879 Usage: $0 [OPTION]... [VARIABLE=VALUE]... [TESTS]
881 Run all the tests, or the selected TESTS, given by numeric ranges, and
882 save a detailed log file. Upon failure, create debugging scripts.
884 You should not change environment variables unless explicitly passed
885 as command line arguments. Set \`AUTOTEST_PATH' to select the executables
886 to exercise. Each relative directory is expanded as build and source
887 directories relatively to the top level of this distribution. E.g.,
889 $ $0 AUTOTEST_PATH=bin
891 possibly amounts into
893 PATH=/tmp/foo-1.0/bin:/src/foo-1.0/bin:\$PATH
898 -h, --help print the help message, then exit
899 -V, --version print version number, then exit
900 -c, --clean remove all the files this test suite might create and exit
901 -l, --list describes all the tests, or the selected TESTS
906 -k, --keywords=KEYWORDS
907 select the tests matching all the comma-separated KEYWORDS
908 multiple \`-k' accumulate; prefixed \`!' negates a KEYWORD
909 -e, --errexit abort as soon as a test fails; implies --debug
910 -v, --verbose force more detailed output
911 default for debugging scripts
912 -d, --debug inhibit clean up and top-level logging
913 default for debugging scripts
914 -x, --trace enable tests shell tracing
918 Report bugs to <bug-tar@gnu.org>.
926 GNU tar 1.20 test suite test groups:
928 NUM: FILE-NAME:LINE TEST-GROUP-NAME
932 # Passing at_groups is tricky. We cannot use it to form a literal string
933 # or regexp because of the limitation of AIX awk. And Solaris' awk
934 # doesn't grok more than 99 fields in a record, so we have to use `split'.
935 echo "$at_groups$as_nl$at_help_all" |
936 awk 'BEGIN { FS = ";" }
938 for (n = split($ 0, a, " "); n; n--) selected[a[n]] = 1
943 printf " %3d: %-18s %s\n", $ 1, $ 2, $ 3
944 if ($ 4) printf " %s\n", $ 4
949 if $at_version_p; then
950 echo "$as_me (GNU tar 1.20)"
953 Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005, 2006 Free Software
955 This test suite is free software; the Free Software Foundation gives
956 unlimited permission to copy, distribute and modify it.
961 # Don't take risks: use only absolute directories in PATH.
963 # For stand-alone test suites, AUTOTEST_PATH is relative to `.'.
965 # For embedded test suites, AUTOTEST_PATH is relative to the top level
966 # of the package. Then expand it into build/src parts, since users
967 # may create executables in both places.
968 AUTOTEST_PATH=`echo $AUTOTEST_PATH | sed "s&:&$PATH_SEPARATOR&g"`
970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
971 for as_dir in $AUTOTEST_PATH $PATH
974 test -z "$as_dir" && as_dir=.
975 test -n "$at_path" && at_path=$at_path$PATH_SEPARATOR
978 at_path=$at_path$as_dir
981 if test -z "$at_top_build_prefix"; then
982 # Stand-alone test suite.
983 at_path=$at_path$as_dir
985 # Embedded test suite.
986 at_path=$at_path$at_top_build_prefix$as_dir$PATH_SEPARATOR
987 at_path=$at_path$at_top_srcdir/$as_dir
995 # Now build and simplify PATH.
997 # There might be directories that don't exist, but don't redirect
998 # builtins' (eg., cd) stderr directly: Ultrix's sh hates that.
1000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1001 for as_dir in $at_path
1004 test -z "$as_dir" && as_dir=.
1005 as_dir=`(cd "$as_dir" && pwd) 2>/dev/null`
1006 test -d "$as_dir" || continue
1009 $as_dir$PATH_SEPARATOR* | \
1010 *$PATH_SEPARATOR$as_dir | \
1011 *$PATH_SEPARATOR$as_dir$PATH_SEPARATOR* ) ;;
1014 *) PATH=$PATH$PATH_SEPARATOR$as_dir ;;
1021 # Setting up the FDs.
1022 # 5 is the log file. Not to be overwritten if `-d'.
1024 if $at_debug_p; then
1025 at_suite_log=/dev/null
1029 exec 5>>"$at_suite_log"
1033 ## ------------------------ ##
1034 ## GNU tar 1.20 test suite. ##
1035 ## ------------------------ ##
1039 ## ------------------------ ##
1040 ## GNU tar 1.20 test suite. ##
1041 ## ------------------------ ##
1045 echo "$as_me: command line was:"
1046 echo " $ $0 $at_cli_args"
1049 # Try to find a few ChangeLogs in case it might help determining the
1050 # exact version. Use the relative dir: if the top dir is a symlink,
1051 # find will not follow it (and options to follow the links are not
1052 # portable), which would result in no output here.
1053 if test -n "$at_top_srcdir"; then
1060 for at_file in `find "$at_top_srcdir" -name ChangeLog -print`
1062 echo "$as_me: $at_file:"
1063 sed 's/^/| /;10q' $at_file
1073 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1074 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1075 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1076 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1077 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1079 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1080 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1082 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1083 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1084 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1085 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1086 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1087 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1088 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1096 test -z "$as_dir" && as_dir=.
1097 echo "PATH: $as_dir"
1105 # Contents of the config files.
1106 for at_file in atconfig atlocal
1108 test -r $at_file || continue
1109 echo "$as_me: $at_file:"
1110 sed 's/^/| /' $at_file
1115 ## ---------------- ##
1116 ## Tested programs. ##
1117 ## ---------------- ##
1122 # Report what programs are being tested.
1123 for at_program in : $at_tested
1125 test "$at_program" = : && continue
1126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1130 test -z "$as_dir" && as_dir=.
1131 test -f "$as_dir/$at_program" && break
1135 if test -f "$as_dir/$at_program"; then
1137 echo "$at_srcdir/testsuite.at:92: $as_dir/$at_program --version"
1138 "$as_dir/$at_program" --version
1142 { { echo "$as_me:$LINENO: error: cannot find $at_program" >&5
1143 echo "$as_me: error: cannot find $at_program" >&2;}
1144 { (exit 1); exit 1; }; }
1150 ## ------------------ ##
1151 ## Running the tests. ##
1152 ## ------------------ ##
1156 at_start_date=`date`
1157 at_start_time=`date +%s 2>/dev/null`
1158 echo "$as_me: starting at: $at_start_date" >&5
1166 # Create the master directory if it doesn't already exist.
1167 test -d "$at_suite_dir" ||
1168 mkdir "$at_suite_dir" ||
1169 { { echo "$as_me:$LINENO: error: cannot create '$at_suite_dir'" >&5
1170 echo "$as_me: error: cannot create '$at_suite_dir'" >&2;}
1171 { (exit 1); exit 1; }; }
1173 # Can we diff with `/dev/null'? DU 5.0 refuses.
1174 if diff /dev/null /dev/null >/dev/null 2>&1; then
1175 at_devnull=/dev/null
1177 at_devnull=$at_suite_dir/devnull
1181 # Use `diff -u' when possible.
1182 if at_diff=`diff -u "$at_devnull" "$at_devnull" 2>&1` && test -z "$at_diff"
1190 for at_group in $at_groups
1192 # Be sure to come back to the top test directory.
1197 at_group_log=$at_suite_log
1201 at_group_normalized=$at_group
1204 case $at_group_normalized in #(
1205 $at_format*) break;;
1207 at_group_normalized=0$at_group_normalized
1211 # Create a fresh directory for the next test group, and enter.
1212 at_group_dir=$at_suite_dir/$at_group_normalized
1213 at_group_log=$at_group_dir/$as_me.log
1214 if test -d "$at_group_dir"; then
1215 find "$at_group_dir" -type d ! -perm -700 -exec chmod u+rwx \{\} \;
1216 rm -fr "$at_group_dir"
1218 # Be tolerant if the above `rm' was not able to remove the directory.
1219 { as_dir=$at_group_dir
1221 -*) as_dir=./$as_dir;;
1223 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
1227 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
1228 *) as_qdir=$as_dir;;
1230 as_dirs="'$as_qdir' $as_dirs"
1231 as_dir=`$as_dirname -- "$as_dir" ||
1232 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1233 X"$as_dir" : 'X\(//\)[^/]' \| \
1234 X"$as_dir" : 'X\(//\)$' \| \
1235 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
1237 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1254 test -d "$as_dir" && break
1256 test -z "$as_dirs" || eval "mkdir $as_dirs"
1257 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
1258 echo "$as_me: error: cannot create directory $as_dir" >&2;}
1259 { (exit 1); exit 1; }; }; }
1264 echo 0 > "$at_status_file"
1266 # Clearly separate the test groups when verbose.
1267 test $at_group_count != 0 && $at_verbose
1269 # In verbose mode, append to the log file *and* show on
1270 # the standard output; in quiet mode only write to the log
1271 if test $at_verbose = echo; then
1272 at_tee_pipe='tee -a "$at_group_log"'
1274 at_tee_pipe='cat >> "$at_group_log"'
1278 1 ) # 1. version.at:19: tar version
1279 at_setup_line='version.at:19'
1280 at_desc="tar version"
1281 $at_quiet $ECHO_N " 1: tar version $ECHO_C"
1283 echo "# -*- compilation -*-" >> "$at_group_log"
1285 echo "1. version.at:19: testing ..."
1290 echo "$at_srcdir/version.at:21: tar --version | sed 1q"
1291 echo version.at:21 >"$at_check_line_file"
1294 if test -n "$at_traceon"; then
1298 if test -n "$at_trace_this"; then
1299 ( $at_traceon; tar --version | sed 1q ) >"$at_stdout" 2>"$at_stder1"
1301 grep '^ *+' "$at_stder1" >&2
1302 grep -v '^ *+' "$at_stder1" >"$at_stderr"
1304 ( :; tar --version | sed 1q ) >"$at_stdout" 2>"$at_stderr"
1309 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
1310 echo >>"$at_stdout"; echo "tar (GNU tar) 1.20
1311 " | $at_diff - "$at_stdout" || at_failed=:
1313 77) echo 77 > "$at_status_file"; exit 77;;
1315 *) echo "$at_srcdir/version.at:21: exit code was $at_status, expected 0"
1319 cat >$XFAILFILE <<'_EOT'
1321 ==============================================================
1322 WARNING: Not using the proper version, *all* checks dubious...
1323 ==============================================================
1327 echo 1 > "$at_status_file"
1337 $at_times_p && times >"$at_times_file"
1338 ) 5>&1 2>&1 | eval $at_tee_pipe
1339 at_status=`cat "$at_status_file"`
1342 2 ) # 2. pipe.at:29: decompressing from stdin
1343 at_setup_line='pipe.at:29'
1344 at_desc="decompressing from stdin"
1345 $at_quiet $ECHO_N " 2: decompressing from stdin $ECHO_C"
1347 test -f $XFAILFILE && at_xfail=yes
1348 echo "# -*- compilation -*-" >> "$at_group_log"
1350 echo "2. pipe.at:29: testing ..."
1359 echo "$at_srcdir/pipe.at:33:
1363 export TEST_TAR_FORMAT
1364 TAR_OPTIONS=\"-H v7\"
1369 test -z "`sort < /dev/null 2>&1`" || exit 77
1373 genfile --length 10240 --pattern zeros --file directory/file1
1374 genfile --length 13 --file directory/file2
1375 tar cf archive directory|sort
1377 cat archive | tar xfv - | sort
1379 cmp orig/file1 directory/file1
1381 cmp orig/file2 directory/file2)"
1382 echo pipe.at:33 >"$at_check_line_file"
1385 if test -n "$at_traceon"; then
1386 echo 'Not enabling shell tracing (command contains an embedded newline)'
1389 if test -n "$at_trace_this"; then
1394 export TEST_TAR_FORMAT
1400 test -z "`sort < /dev/null 2>&1`" || exit 77
1404 genfile --length 10240 --pattern zeros --file directory/file1
1405 genfile --length 13 --file directory/file2
1406 tar cf archive directory|sort
1408 cat archive | tar xfv - | sort
1410 cmp orig/file1 directory/file1
1412 cmp orig/file2 directory/file2) ) >"$at_stdout" 2>"$at_stder1"
1414 grep '^ *+' "$at_stder1" >&2
1415 grep -v '^ *+' "$at_stder1" >"$at_stderr"
1421 export TEST_TAR_FORMAT
1427 test -z "`sort < /dev/null 2>&1`" || exit 77
1431 genfile --length 10240 --pattern zeros --file directory/file1
1432 genfile --length 13 --file directory/file2
1433 tar cf archive directory|sort
1435 cat archive | tar xfv - | sort
1437 cmp orig/file1 directory/file1
1439 cmp orig/file2 directory/file2) ) >"$at_stdout" 2>"$at_stderr"
1444 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
1445 echo >>"$at_stdout"; echo "directory/
1450 " | $at_diff - "$at_stdout" || at_failed=:
1452 77) echo 77 > "$at_status_file"; exit 77;;
1454 *) echo "$at_srcdir/pipe.at:33: exit code was $at_status, expected 0"
1460 echo 1 > "$at_status_file"
1466 echo "$at_srcdir/pipe.at:33:
1469 TEST_TAR_FORMAT=oldgnu
1470 export TEST_TAR_FORMAT
1471 TAR_OPTIONS=\"-H oldgnu\"
1476 test -z "`sort < /dev/null 2>&1`" || exit 77
1480 genfile --length 10240 --pattern zeros --file directory/file1
1481 genfile --length 13 --file directory/file2
1482 tar cf archive directory|sort
1484 cat archive | tar xfv - | sort
1486 cmp orig/file1 directory/file1
1488 cmp orig/file2 directory/file2)"
1489 echo pipe.at:33 >"$at_check_line_file"
1492 if test -n "$at_traceon"; then
1493 echo 'Not enabling shell tracing (command contains an embedded newline)'
1496 if test -n "$at_trace_this"; then
1500 TEST_TAR_FORMAT=oldgnu
1501 export TEST_TAR_FORMAT
1502 TAR_OPTIONS="-H oldgnu"
1507 test -z "`sort < /dev/null 2>&1`" || exit 77
1511 genfile --length 10240 --pattern zeros --file directory/file1
1512 genfile --length 13 --file directory/file2
1513 tar cf archive directory|sort
1515 cat archive | tar xfv - | sort
1517 cmp orig/file1 directory/file1
1519 cmp orig/file2 directory/file2) ) >"$at_stdout" 2>"$at_stder1"
1521 grep '^ *+' "$at_stder1" >&2
1522 grep -v '^ *+' "$at_stder1" >"$at_stderr"
1527 TEST_TAR_FORMAT=oldgnu
1528 export TEST_TAR_FORMAT
1529 TAR_OPTIONS="-H oldgnu"
1534 test -z "`sort < /dev/null 2>&1`" || exit 77
1538 genfile --length 10240 --pattern zeros --file directory/file1
1539 genfile --length 13 --file directory/file2
1540 tar cf archive directory|sort
1542 cat archive | tar xfv - | sort
1544 cmp orig/file1 directory/file1
1546 cmp orig/file2 directory/file2) ) >"$at_stdout" 2>"$at_stderr"
1551 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
1552 echo >>"$at_stdout"; echo "directory/
1557 " | $at_diff - "$at_stdout" || at_failed=:
1559 77) echo 77 > "$at_status_file"; exit 77;;
1561 *) echo "$at_srcdir/pipe.at:33: exit code was $at_status, expected 0"
1567 echo 1 > "$at_status_file"
1573 echo "$at_srcdir/pipe.at:33:
1576 TEST_TAR_FORMAT=ustar
1577 export TEST_TAR_FORMAT
1578 TAR_OPTIONS=\"-H ustar\"
1583 test -z "`sort < /dev/null 2>&1`" || exit 77
1587 genfile --length 10240 --pattern zeros --file directory/file1
1588 genfile --length 13 --file directory/file2
1589 tar cf archive directory|sort
1591 cat archive | tar xfv - | sort
1593 cmp orig/file1 directory/file1
1595 cmp orig/file2 directory/file2)"
1596 echo pipe.at:33 >"$at_check_line_file"
1599 if test -n "$at_traceon"; then
1600 echo 'Not enabling shell tracing (command contains an embedded newline)'
1603 if test -n "$at_trace_this"; then
1607 TEST_TAR_FORMAT=ustar
1608 export TEST_TAR_FORMAT
1609 TAR_OPTIONS="-H ustar"
1614 test -z "`sort < /dev/null 2>&1`" || exit 77
1618 genfile --length 10240 --pattern zeros --file directory/file1
1619 genfile --length 13 --file directory/file2
1620 tar cf archive directory|sort
1622 cat archive | tar xfv - | sort
1624 cmp orig/file1 directory/file1
1626 cmp orig/file2 directory/file2) ) >"$at_stdout" 2>"$at_stder1"
1628 grep '^ *+' "$at_stder1" >&2
1629 grep -v '^ *+' "$at_stder1" >"$at_stderr"
1634 TEST_TAR_FORMAT=ustar
1635 export TEST_TAR_FORMAT
1636 TAR_OPTIONS="-H ustar"
1641 test -z "`sort < /dev/null 2>&1`" || exit 77
1645 genfile --length 10240 --pattern zeros --file directory/file1
1646 genfile --length 13 --file directory/file2
1647 tar cf archive directory|sort
1649 cat archive | tar xfv - | sort
1651 cmp orig/file1 directory/file1
1653 cmp orig/file2 directory/file2) ) >"$at_stdout" 2>"$at_stderr"
1658 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
1659 echo >>"$at_stdout"; echo "directory/
1664 " | $at_diff - "$at_stdout" || at_failed=:
1666 77) echo 77 > "$at_status_file"; exit 77;;
1668 *) echo "$at_srcdir/pipe.at:33: exit code was $at_status, expected 0"
1674 echo 1 > "$at_status_file"
1680 echo "$at_srcdir/pipe.at:33:
1683 TEST_TAR_FORMAT=posix
1684 export TEST_TAR_FORMAT
1685 TAR_OPTIONS=\"-H posix\"
1690 test -z "`sort < /dev/null 2>&1`" || exit 77
1694 genfile --length 10240 --pattern zeros --file directory/file1
1695 genfile --length 13 --file directory/file2
1696 tar cf archive directory|sort
1698 cat archive | tar xfv - | sort
1700 cmp orig/file1 directory/file1
1702 cmp orig/file2 directory/file2)"
1703 echo pipe.at:33 >"$at_check_line_file"
1706 if test -n "$at_traceon"; then
1707 echo 'Not enabling shell tracing (command contains an embedded newline)'
1710 if test -n "$at_trace_this"; then
1714 TEST_TAR_FORMAT=posix
1715 export TEST_TAR_FORMAT
1716 TAR_OPTIONS="-H posix"
1721 test -z "`sort < /dev/null 2>&1`" || exit 77
1725 genfile --length 10240 --pattern zeros --file directory/file1
1726 genfile --length 13 --file directory/file2
1727 tar cf archive directory|sort
1729 cat archive | tar xfv - | sort
1731 cmp orig/file1 directory/file1
1733 cmp orig/file2 directory/file2) ) >"$at_stdout" 2>"$at_stder1"
1735 grep '^ *+' "$at_stder1" >&2
1736 grep -v '^ *+' "$at_stder1" >"$at_stderr"
1741 TEST_TAR_FORMAT=posix
1742 export TEST_TAR_FORMAT
1743 TAR_OPTIONS="-H posix"
1748 test -z "`sort < /dev/null 2>&1`" || exit 77
1752 genfile --length 10240 --pattern zeros --file directory/file1
1753 genfile --length 13 --file directory/file2
1754 tar cf archive directory|sort
1756 cat archive | tar xfv - | sort
1758 cmp orig/file1 directory/file1
1760 cmp orig/file2 directory/file2) ) >"$at_stdout" 2>"$at_stderr"
1765 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
1766 echo >>"$at_stdout"; echo "directory/
1771 " | $at_diff - "$at_stdout" || at_failed=:
1773 77) echo 77 > "$at_status_file"; exit 77;;
1775 *) echo "$at_srcdir/pipe.at:33: exit code was $at_status, expected 0"
1781 echo 1 > "$at_status_file"
1787 echo "$at_srcdir/pipe.at:33:
1791 export TEST_TAR_FORMAT
1792 TAR_OPTIONS=\"-H gnu\"
1797 test -z "`sort < /dev/null 2>&1`" || exit 77
1801 genfile --length 10240 --pattern zeros --file directory/file1
1802 genfile --length 13 --file directory/file2
1803 tar cf archive directory|sort
1805 cat archive | tar xfv - | sort
1807 cmp orig/file1 directory/file1
1809 cmp orig/file2 directory/file2)"
1810 echo pipe.at:33 >"$at_check_line_file"
1813 if test -n "$at_traceon"; then
1814 echo 'Not enabling shell tracing (command contains an embedded newline)'
1817 if test -n "$at_trace_this"; then
1822 export TEST_TAR_FORMAT
1823 TAR_OPTIONS="-H gnu"
1828 test -z "`sort < /dev/null 2>&1`" || exit 77
1832 genfile --length 10240 --pattern zeros --file directory/file1
1833 genfile --length 13 --file directory/file2
1834 tar cf archive directory|sort
1836 cat archive | tar xfv - | sort
1838 cmp orig/file1 directory/file1
1840 cmp orig/file2 directory/file2) ) >"$at_stdout" 2>"$at_stder1"
1842 grep '^ *+' "$at_stder1" >&2
1843 grep -v '^ *+' "$at_stder1" >"$at_stderr"
1849 export TEST_TAR_FORMAT
1850 TAR_OPTIONS="-H gnu"
1855 test -z "`sort < /dev/null 2>&1`" || exit 77
1859 genfile --length 10240 --pattern zeros --file directory/file1
1860 genfile --length 13 --file directory/file2
1861 tar cf archive directory|sort
1863 cat archive | tar xfv - | sort
1865 cmp orig/file1 directory/file1
1867 cmp orig/file2 directory/file2) ) >"$at_stdout" 2>"$at_stderr"
1872 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
1873 echo >>"$at_stdout"; echo "directory/
1878 " | $at_diff - "$at_stdout" || at_failed=:
1880 77) echo 77 > "$at_status_file"; exit 77;;
1882 *) echo "$at_srcdir/pipe.at:33: exit code was $at_status, expected 0"
1888 echo 1 > "$at_status_file"
1897 $at_times_p && times >"$at_times_file"
1898 ) 5>&1 2>&1 | eval $at_tee_pipe
1899 at_status=`cat "$at_status_file"`
1902 3 ) # 3. options.at:24: mixing options
1903 at_setup_line='options.at:24'
1904 at_desc="mixing options"
1905 $at_quiet $ECHO_N " 3: mixing options $ECHO_C"
1907 echo "# -*- compilation -*-" >> "$at_group_log"
1909 echo "3. options.at:24: testing ..."
1915 echo "$at_srcdir/options.at:27:
1917 TAR_OPTIONS=--numeric-owner tar chof archive file1
1920 echo options.at:27 >"$at_check_line_file"
1923 if test -n "$at_traceon"; then
1924 echo 'Not enabling shell tracing (command contains an embedded newline)'
1927 if test -n "$at_trace_this"; then
1930 TAR_OPTIONS=--numeric-owner tar chof archive file1
1932 ) >"$at_stdout" 2>"$at_stder1"
1934 grep '^ *+' "$at_stder1" >&2
1935 grep -v '^ *+' "$at_stder1" >"$at_stderr"
1939 TAR_OPTIONS=--numeric-owner tar chof archive file1
1941 ) >"$at_stdout" 2>"$at_stderr"
1946 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
1947 echo >>"$at_stdout"; echo "file1
1948 " | $at_diff - "$at_stdout" || at_failed=:
1950 77) echo 77 > "$at_status_file"; exit 77;;
1952 *) echo "$at_srcdir/options.at:27: exit code was $at_status, expected 0"
1958 echo 1 > "$at_status_file"
1966 $at_times_p && times >"$at_times_file"
1967 ) 5>&1 2>&1 | eval $at_tee_pipe
1968 at_status=`cat "$at_status_file"`
1971 4 ) # 4. options02.at:26: interspersed options
1972 at_setup_line='options02.at:26'
1973 at_desc="interspersed options"
1974 $at_quiet $ECHO_N " 4: interspersed options $ECHO_C"
1976 echo "# -*- compilation -*-" >> "$at_group_log"
1978 echo "4. options02.at:26: testing ..."
1984 echo "$at_srcdir/options02.at:29:
1986 tar c file1 -f archive
1989 echo options02.at:29 >"$at_check_line_file"
1992 if test -n "$at_traceon"; then
1993 echo 'Not enabling shell tracing (command contains an embedded newline)'
1996 if test -n "$at_trace_this"; then
1999 tar c file1 -f archive
2001 ) >"$at_stdout" 2>"$at_stder1"
2003 grep '^ *+' "$at_stder1" >&2
2004 grep -v '^ *+' "$at_stder1" >"$at_stderr"
2008 tar c file1 -f archive
2010 ) >"$at_stdout" 2>"$at_stderr"
2015 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
2016 echo >>"$at_stdout"; echo "file1
2017 " | $at_diff - "$at_stdout" || at_failed=:
2019 77) echo 77 > "$at_status_file"; exit 77;;
2021 *) echo "$at_srcdir/options02.at:29: exit code was $at_status, expected 0"
2027 echo 1 > "$at_status_file"
2035 $at_times_p && times >"$at_times_file"
2036 ) 5>&1 2>&1 | eval $at_tee_pipe
2037 at_status=`cat "$at_status_file"`
2040 5 ) # 5. T-empty.at:26: files-from: empty entries
2041 at_setup_line='T-empty.at:26'
2042 at_desc="files-from: empty entries"
2043 $at_quiet $ECHO_N " 5: files-from: empty entries $ECHO_C"
2045 test -f $XFAILFILE && at_xfail=yes
2046 echo "# -*- compilation -*-" >> "$at_group_log"
2048 echo "5. T-empty.at:26: testing ..."
2053 cat >file-list <<'_ATEOF'
2064 echo "$at_srcdir/T-empty.at:36:
2067 TEST_TAR_FORMAT=ustar
2068 export TEST_TAR_FORMAT
2069 TAR_OPTIONS=\"-H ustar\"
2074 test -z "`sort < /dev/null 2>&1`" || exit 77
2077 genfile --file jeden
2081 tar cfvT archive ../file-list | sort
2083 echo T-empty.at:36 >"$at_check_line_file"
2086 if test -n "$at_traceon"; then
2087 echo 'Not enabling shell tracing (command contains an embedded newline)'
2090 if test -n "$at_trace_this"; then
2094 TEST_TAR_FORMAT=ustar
2095 export TEST_TAR_FORMAT
2096 TAR_OPTIONS="-H ustar"
2101 test -z "`sort < /dev/null 2>&1`" || exit 77
2104 genfile --file jeden
2108 tar cfvT archive ../file-list | sort
2109 ) ) >"$at_stdout" 2>"$at_stder1"
2111 grep '^ *+' "$at_stder1" >&2
2112 grep -v '^ *+' "$at_stder1" >"$at_stderr"
2117 TEST_TAR_FORMAT=ustar
2118 export TEST_TAR_FORMAT
2119 TAR_OPTIONS="-H ustar"
2124 test -z "`sort < /dev/null 2>&1`" || exit 77
2127 genfile --file jeden
2131 tar cfvT archive ../file-list | sort
2132 ) ) >"$at_stdout" 2>"$at_stderr"
2137 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
2138 echo >>"$at_stdout"; echo "dwa
2141 " | $at_diff - "$at_stdout" || at_failed=:
2143 77) echo 77 > "$at_status_file"; exit 77;;
2145 *) echo "$at_srcdir/T-empty.at:36: exit code was $at_status, expected 0"
2151 echo 1 > "$at_status_file"
2157 # Testing one format is enough
2160 $at_times_p && times >"$at_times_file"
2161 ) 5>&1 2>&1 | eval $at_tee_pipe
2162 at_status=`cat "$at_status_file"`
2165 6 ) # 6. T-null.at:21: files-from: 0-separated file without -0
2166 at_setup_line='T-null.at:21'
2167 at_desc="files-from: 0-separated file without -0"
2168 $at_quiet $ECHO_N " 6: files-from: 0-separated file without -0 $ECHO_C"
2170 test -f $XFAILFILE && at_xfail=yes
2171 echo "# -*- compilation -*-" >> "$at_group_log"
2173 echo "6. T-null.at:21: testing ..."
2178 cat >expout <<'_ATEOF'
2187 echo "$at_srcdir/T-null.at:28:
2190 TEST_TAR_FORMAT=ustar
2191 export TEST_TAR_FORMAT
2192 TAR_OPTIONS=\"-H ustar\"
2197 test -z "`sort < /dev/null 2>&1`" || exit 77
2202 cat temp | tr '\\n' '\\0' > temp1
2203 echo jeden > file-list
2204 cat temp1 >> file-list
2210 tar cfTv archive file-list | sort
2212 echo T-null.at:28 >"$at_check_line_file"
2215 if test -n "$at_traceon"; then
2216 echo 'Not enabling shell tracing (command contains an embedded newline)'
2219 if test -n "$at_trace_this"; then
2223 TEST_TAR_FORMAT=ustar
2224 export TEST_TAR_FORMAT
2225 TAR_OPTIONS="-H ustar"
2230 test -z "`sort < /dev/null 2>&1`" || exit 77
2235 cat temp | tr '\n' '\0' > temp1
2236 echo jeden > file-list
2237 cat temp1 >> file-list
2243 tar cfTv archive file-list | sort
2244 ) ) >"$at_stdout" 2>"$at_stder1"
2246 grep '^ *+' "$at_stder1" >&2
2247 grep -v '^ *+' "$at_stder1" >"$at_stderr"
2252 TEST_TAR_FORMAT=ustar
2253 export TEST_TAR_FORMAT
2254 TAR_OPTIONS="-H ustar"
2259 test -z "`sort < /dev/null 2>&1`" || exit 77
2264 cat temp | tr '\n' '\0' > temp1
2265 echo jeden > file-list
2266 cat temp1 >> file-list
2272 tar cfTv archive file-list | sort
2273 ) ) >"$at_stdout" 2>"$at_stderr"
2278 echo >>"$at_stderr"; echo "tar: file-list: file name read contains nul character
2279 " | $at_diff - "$at_stderr" || at_failed=:
2280 $at_diff expout "$at_stdout" || at_failed=:
2282 77) echo 77 > "$at_status_file"; exit 77;;
2284 *) echo "$at_srcdir/T-null.at:28: exit code was $at_status, expected 0"
2290 echo 1 > "$at_status_file"
2296 # Testing one format is enough
2299 $at_times_p && times >"$at_times_file"
2300 ) 5>&1 2>&1 | eval $at_tee_pipe
2301 at_status=`cat "$at_status_file"`
2304 7 ) # 7. indexfile.at:26: tar --index-file=FILE --file=-
2305 at_setup_line='indexfile.at:26'
2306 at_desc="tar --index-file=FILE --file=-"
2307 $at_quiet $ECHO_N " 7: tar --index-file=FILE --file=- $ECHO_C"
2309 test -f $XFAILFILE && at_xfail=yes
2310 echo "# -*- compilation -*-" >> "$at_group_log"
2312 echo "7. indexfile.at:26: testing ..."
2320 echo "$at_srcdir/indexfile.at:29:
2324 export TEST_TAR_FORMAT
2325 TAR_OPTIONS=\"-H v7\"
2331 genfile --file=directory/a --length=1035
2333 echo \"Creating the archive\"
2334 tar -c -v -f - --index-file=idx directory > archive
2336 echo \"Testing the archive\"
2339 echo indexfile.at:29 >"$at_check_line_file"
2342 if test -n "$at_traceon"; then
2343 echo 'Not enabling shell tracing (command contains an embedded newline)'
2346 if test -n "$at_trace_this"; then
2351 export TEST_TAR_FORMAT
2358 genfile --file=directory/a --length=1035
2360 echo "Creating the archive"
2361 tar -c -v -f - --index-file=idx directory > archive
2363 echo "Testing the archive"
2365 ) ) >"$at_stdout" 2>"$at_stder1"
2367 grep '^ *+' "$at_stder1" >&2
2368 grep -v '^ *+' "$at_stder1" >"$at_stderr"
2374 export TEST_TAR_FORMAT
2381 genfile --file=directory/a --length=1035
2383 echo "Creating the archive"
2384 tar -c -v -f - --index-file=idx directory > archive
2386 echo "Testing the archive"
2388 ) ) >"$at_stdout" 2>"$at_stderr"
2393 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
2394 echo >>"$at_stdout"; echo "Creating the archive
2398 " | $at_diff - "$at_stdout" || at_failed=:
2400 77) echo 77 > "$at_status_file"; exit 77;;
2402 *) echo "$at_srcdir/indexfile.at:29: exit code was $at_status, expected 0"
2408 echo 1 > "$at_status_file"
2414 echo "$at_srcdir/indexfile.at:29:
2417 TEST_TAR_FORMAT=oldgnu
2418 export TEST_TAR_FORMAT
2419 TAR_OPTIONS=\"-H oldgnu\"
2425 genfile --file=directory/a --length=1035
2427 echo \"Creating the archive\"
2428 tar -c -v -f - --index-file=idx directory > archive
2430 echo \"Testing the archive\"
2433 echo indexfile.at:29 >"$at_check_line_file"
2436 if test -n "$at_traceon"; then
2437 echo 'Not enabling shell tracing (command contains an embedded newline)'
2440 if test -n "$at_trace_this"; then
2444 TEST_TAR_FORMAT=oldgnu
2445 export TEST_TAR_FORMAT
2446 TAR_OPTIONS="-H oldgnu"
2452 genfile --file=directory/a --length=1035
2454 echo "Creating the archive"
2455 tar -c -v -f - --index-file=idx directory > archive
2457 echo "Testing the archive"
2459 ) ) >"$at_stdout" 2>"$at_stder1"
2461 grep '^ *+' "$at_stder1" >&2
2462 grep -v '^ *+' "$at_stder1" >"$at_stderr"
2467 TEST_TAR_FORMAT=oldgnu
2468 export TEST_TAR_FORMAT
2469 TAR_OPTIONS="-H oldgnu"
2475 genfile --file=directory/a --length=1035
2477 echo "Creating the archive"
2478 tar -c -v -f - --index-file=idx directory > archive
2480 echo "Testing the archive"
2482 ) ) >"$at_stdout" 2>"$at_stderr"
2487 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
2488 echo >>"$at_stdout"; echo "Creating the archive
2492 " | $at_diff - "$at_stdout" || at_failed=:
2494 77) echo 77 > "$at_status_file"; exit 77;;
2496 *) echo "$at_srcdir/indexfile.at:29: exit code was $at_status, expected 0"
2502 echo 1 > "$at_status_file"
2508 echo "$at_srcdir/indexfile.at:29:
2511 TEST_TAR_FORMAT=ustar
2512 export TEST_TAR_FORMAT
2513 TAR_OPTIONS=\"-H ustar\"
2519 genfile --file=directory/a --length=1035
2521 echo \"Creating the archive\"
2522 tar -c -v -f - --index-file=idx directory > archive
2524 echo \"Testing the archive\"
2527 echo indexfile.at:29 >"$at_check_line_file"
2530 if test -n "$at_traceon"; then
2531 echo 'Not enabling shell tracing (command contains an embedded newline)'
2534 if test -n "$at_trace_this"; then
2538 TEST_TAR_FORMAT=ustar
2539 export TEST_TAR_FORMAT
2540 TAR_OPTIONS="-H ustar"
2546 genfile --file=directory/a --length=1035
2548 echo "Creating the archive"
2549 tar -c -v -f - --index-file=idx directory > archive
2551 echo "Testing the archive"
2553 ) ) >"$at_stdout" 2>"$at_stder1"
2555 grep '^ *+' "$at_stder1" >&2
2556 grep -v '^ *+' "$at_stder1" >"$at_stderr"
2561 TEST_TAR_FORMAT=ustar
2562 export TEST_TAR_FORMAT
2563 TAR_OPTIONS="-H ustar"
2569 genfile --file=directory/a --length=1035
2571 echo "Creating the archive"
2572 tar -c -v -f - --index-file=idx directory > archive
2574 echo "Testing the archive"
2576 ) ) >"$at_stdout" 2>"$at_stderr"
2581 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
2582 echo >>"$at_stdout"; echo "Creating the archive
2586 " | $at_diff - "$at_stdout" || at_failed=:
2588 77) echo 77 > "$at_status_file"; exit 77;;
2590 *) echo "$at_srcdir/indexfile.at:29: exit code was $at_status, expected 0"
2596 echo 1 > "$at_status_file"
2602 echo "$at_srcdir/indexfile.at:29:
2605 TEST_TAR_FORMAT=posix
2606 export TEST_TAR_FORMAT
2607 TAR_OPTIONS=\"-H posix\"
2613 genfile --file=directory/a --length=1035
2615 echo \"Creating the archive\"
2616 tar -c -v -f - --index-file=idx directory > archive
2618 echo \"Testing the archive\"
2621 echo indexfile.at:29 >"$at_check_line_file"
2624 if test -n "$at_traceon"; then
2625 echo 'Not enabling shell tracing (command contains an embedded newline)'
2628 if test -n "$at_trace_this"; then
2632 TEST_TAR_FORMAT=posix
2633 export TEST_TAR_FORMAT
2634 TAR_OPTIONS="-H posix"
2640 genfile --file=directory/a --length=1035
2642 echo "Creating the archive"
2643 tar -c -v -f - --index-file=idx directory > archive
2645 echo "Testing the archive"
2647 ) ) >"$at_stdout" 2>"$at_stder1"
2649 grep '^ *+' "$at_stder1" >&2
2650 grep -v '^ *+' "$at_stder1" >"$at_stderr"
2655 TEST_TAR_FORMAT=posix
2656 export TEST_TAR_FORMAT
2657 TAR_OPTIONS="-H posix"
2663 genfile --file=directory/a --length=1035
2665 echo "Creating the archive"
2666 tar -c -v -f - --index-file=idx directory > archive
2668 echo "Testing the archive"
2670 ) ) >"$at_stdout" 2>"$at_stderr"
2675 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
2676 echo >>"$at_stdout"; echo "Creating the archive
2680 " | $at_diff - "$at_stdout" || at_failed=:
2682 77) echo 77 > "$at_status_file"; exit 77;;
2684 *) echo "$at_srcdir/indexfile.at:29: exit code was $at_status, expected 0"
2690 echo 1 > "$at_status_file"
2696 echo "$at_srcdir/indexfile.at:29:
2700 export TEST_TAR_FORMAT
2701 TAR_OPTIONS=\"-H gnu\"
2707 genfile --file=directory/a --length=1035
2709 echo \"Creating the archive\"
2710 tar -c -v -f - --index-file=idx directory > archive
2712 echo \"Testing the archive\"
2715 echo indexfile.at:29 >"$at_check_line_file"
2718 if test -n "$at_traceon"; then
2719 echo 'Not enabling shell tracing (command contains an embedded newline)'
2722 if test -n "$at_trace_this"; then
2727 export TEST_TAR_FORMAT
2728 TAR_OPTIONS="-H gnu"
2734 genfile --file=directory/a --length=1035
2736 echo "Creating the archive"
2737 tar -c -v -f - --index-file=idx directory > archive
2739 echo "Testing the archive"
2741 ) ) >"$at_stdout" 2>"$at_stder1"
2743 grep '^ *+' "$at_stder1" >&2
2744 grep -v '^ *+' "$at_stder1" >"$at_stderr"
2750 export TEST_TAR_FORMAT
2751 TAR_OPTIONS="-H gnu"
2757 genfile --file=directory/a --length=1035
2759 echo "Creating the archive"
2760 tar -c -v -f - --index-file=idx directory > archive
2762 echo "Testing the archive"
2764 ) ) >"$at_stdout" 2>"$at_stderr"
2769 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
2770 echo >>"$at_stdout"; echo "Creating the archive
2774 " | $at_diff - "$at_stdout" || at_failed=:
2776 77) echo 77 > "$at_status_file"; exit 77;;
2778 *) echo "$at_srcdir/indexfile.at:29: exit code was $at_status, expected 0"
2784 echo 1 > "$at_status_file"
2793 $at_times_p && times >"$at_times_file"
2794 ) 5>&1 2>&1 | eval $at_tee_pipe
2795 at_status=`cat "$at_status_file"`
2798 8 ) # 8. verbose.at:26: tar cvf -
2799 at_setup_line='verbose.at:26'
2801 $at_quiet $ECHO_N " 8: tar cvf - $ECHO_C"
2803 test -f $XFAILFILE && at_xfail=yes
2804 echo "# -*- compilation -*-" >> "$at_group_log"
2806 echo "8. verbose.at:26: testing ..."
2814 echo "$at_srcdir/verbose.at:29:
2818 export TEST_TAR_FORMAT
2819 TAR_OPTIONS=\"-H v7\"
2823 genfile --file file --length 10240
2824 echo Creating the archive
2825 tar cvf - file > archive
2826 echo Testing the archive
2829 echo verbose.at:29 >"$at_check_line_file"
2832 if test -n "$at_traceon"; then
2833 echo 'Not enabling shell tracing (command contains an embedded newline)'
2836 if test -n "$at_trace_this"; then
2841 export TEST_TAR_FORMAT
2846 genfile --file file --length 10240
2847 echo Creating the archive
2848 tar cvf - file > archive
2849 echo Testing the archive
2851 ) ) >"$at_stdout" 2>"$at_stder1"
2853 grep '^ *+' "$at_stder1" >&2
2854 grep -v '^ *+' "$at_stder1" >"$at_stderr"
2860 export TEST_TAR_FORMAT
2865 genfile --file file --length 10240
2866 echo Creating the archive
2867 tar cvf - file > archive
2868 echo Testing the archive
2870 ) ) >"$at_stdout" 2>"$at_stderr"
2875 echo >>"$at_stderr"; echo "file
2876 " | $at_diff - "$at_stderr" || at_failed=:
2877 echo >>"$at_stdout"; echo "Creating the archive
2880 " | $at_diff - "$at_stdout" || at_failed=:
2882 77) echo 77 > "$at_status_file"; exit 77;;
2884 *) echo "$at_srcdir/verbose.at:29: exit code was $at_status, expected 0"
2890 echo 1 > "$at_status_file"
2896 echo "$at_srcdir/verbose.at:29:
2899 TEST_TAR_FORMAT=oldgnu
2900 export TEST_TAR_FORMAT
2901 TAR_OPTIONS=\"-H oldgnu\"
2905 genfile --file file --length 10240
2906 echo Creating the archive
2907 tar cvf - file > archive
2908 echo Testing the archive
2911 echo verbose.at:29 >"$at_check_line_file"
2914 if test -n "$at_traceon"; then
2915 echo 'Not enabling shell tracing (command contains an embedded newline)'
2918 if test -n "$at_trace_this"; then
2922 TEST_TAR_FORMAT=oldgnu
2923 export TEST_TAR_FORMAT
2924 TAR_OPTIONS="-H oldgnu"
2928 genfile --file file --length 10240
2929 echo Creating the archive
2930 tar cvf - file > archive
2931 echo Testing the archive
2933 ) ) >"$at_stdout" 2>"$at_stder1"
2935 grep '^ *+' "$at_stder1" >&2
2936 grep -v '^ *+' "$at_stder1" >"$at_stderr"
2941 TEST_TAR_FORMAT=oldgnu
2942 export TEST_TAR_FORMAT
2943 TAR_OPTIONS="-H oldgnu"
2947 genfile --file file --length 10240
2948 echo Creating the archive
2949 tar cvf - file > archive
2950 echo Testing the archive
2952 ) ) >"$at_stdout" 2>"$at_stderr"
2957 echo >>"$at_stderr"; echo "file
2958 " | $at_diff - "$at_stderr" || at_failed=:
2959 echo >>"$at_stdout"; echo "Creating the archive
2962 " | $at_diff - "$at_stdout" || at_failed=:
2964 77) echo 77 > "$at_status_file"; exit 77;;
2966 *) echo "$at_srcdir/verbose.at:29: exit code was $at_status, expected 0"
2972 echo 1 > "$at_status_file"
2978 echo "$at_srcdir/verbose.at:29:
2981 TEST_TAR_FORMAT=ustar
2982 export TEST_TAR_FORMAT
2983 TAR_OPTIONS=\"-H ustar\"
2987 genfile --file file --length 10240
2988 echo Creating the archive
2989 tar cvf - file > archive
2990 echo Testing the archive
2993 echo verbose.at:29 >"$at_check_line_file"
2996 if test -n "$at_traceon"; then
2997 echo 'Not enabling shell tracing (command contains an embedded newline)'
3000 if test -n "$at_trace_this"; then
3004 TEST_TAR_FORMAT=ustar
3005 export TEST_TAR_FORMAT
3006 TAR_OPTIONS="-H ustar"
3010 genfile --file file --length 10240
3011 echo Creating the archive
3012 tar cvf - file > archive
3013 echo Testing the archive
3015 ) ) >"$at_stdout" 2>"$at_stder1"
3017 grep '^ *+' "$at_stder1" >&2
3018 grep -v '^ *+' "$at_stder1" >"$at_stderr"
3023 TEST_TAR_FORMAT=ustar
3024 export TEST_TAR_FORMAT
3025 TAR_OPTIONS="-H ustar"
3029 genfile --file file --length 10240
3030 echo Creating the archive
3031 tar cvf - file > archive
3032 echo Testing the archive
3034 ) ) >"$at_stdout" 2>"$at_stderr"
3039 echo >>"$at_stderr"; echo "file
3040 " | $at_diff - "$at_stderr" || at_failed=:
3041 echo >>"$at_stdout"; echo "Creating the archive
3044 " | $at_diff - "$at_stdout" || at_failed=:
3046 77) echo 77 > "$at_status_file"; exit 77;;
3048 *) echo "$at_srcdir/verbose.at:29: exit code was $at_status, expected 0"
3054 echo 1 > "$at_status_file"
3060 echo "$at_srcdir/verbose.at:29:
3063 TEST_TAR_FORMAT=posix
3064 export TEST_TAR_FORMAT
3065 TAR_OPTIONS=\"-H posix\"
3069 genfile --file file --length 10240
3070 echo Creating the archive
3071 tar cvf - file > archive
3072 echo Testing the archive
3075 echo verbose.at:29 >"$at_check_line_file"
3078 if test -n "$at_traceon"; then
3079 echo 'Not enabling shell tracing (command contains an embedded newline)'
3082 if test -n "$at_trace_this"; then
3086 TEST_TAR_FORMAT=posix
3087 export TEST_TAR_FORMAT
3088 TAR_OPTIONS="-H posix"
3092 genfile --file file --length 10240
3093 echo Creating the archive
3094 tar cvf - file > archive
3095 echo Testing the archive
3097 ) ) >"$at_stdout" 2>"$at_stder1"
3099 grep '^ *+' "$at_stder1" >&2
3100 grep -v '^ *+' "$at_stder1" >"$at_stderr"
3105 TEST_TAR_FORMAT=posix
3106 export TEST_TAR_FORMAT
3107 TAR_OPTIONS="-H posix"
3111 genfile --file file --length 10240
3112 echo Creating the archive
3113 tar cvf - file > archive
3114 echo Testing the archive
3116 ) ) >"$at_stdout" 2>"$at_stderr"
3121 echo >>"$at_stderr"; echo "file
3122 " | $at_diff - "$at_stderr" || at_failed=:
3123 echo >>"$at_stdout"; echo "Creating the archive
3126 " | $at_diff - "$at_stdout" || at_failed=:
3128 77) echo 77 > "$at_status_file"; exit 77;;
3130 *) echo "$at_srcdir/verbose.at:29: exit code was $at_status, expected 0"
3136 echo 1 > "$at_status_file"
3142 echo "$at_srcdir/verbose.at:29:
3146 export TEST_TAR_FORMAT
3147 TAR_OPTIONS=\"-H gnu\"
3151 genfile --file file --length 10240
3152 echo Creating the archive
3153 tar cvf - file > archive
3154 echo Testing the archive
3157 echo verbose.at:29 >"$at_check_line_file"
3160 if test -n "$at_traceon"; then
3161 echo 'Not enabling shell tracing (command contains an embedded newline)'
3164 if test -n "$at_trace_this"; then
3169 export TEST_TAR_FORMAT
3170 TAR_OPTIONS="-H gnu"
3174 genfile --file file --length 10240
3175 echo Creating the archive
3176 tar cvf - file > archive
3177 echo Testing the archive
3179 ) ) >"$at_stdout" 2>"$at_stder1"
3181 grep '^ *+' "$at_stder1" >&2
3182 grep -v '^ *+' "$at_stder1" >"$at_stderr"
3188 export TEST_TAR_FORMAT
3189 TAR_OPTIONS="-H gnu"
3193 genfile --file file --length 10240
3194 echo Creating the archive
3195 tar cvf - file > archive
3196 echo Testing the archive
3198 ) ) >"$at_stdout" 2>"$at_stderr"
3203 echo >>"$at_stderr"; echo "file
3204 " | $at_diff - "$at_stderr" || at_failed=:
3205 echo >>"$at_stdout"; echo "Creating the archive
3208 " | $at_diff - "$at_stdout" || at_failed=:
3210 77) echo 77 > "$at_status_file"; exit 77;;
3212 *) echo "$at_srcdir/verbose.at:29: exit code was $at_status, expected 0"
3218 echo 1 > "$at_status_file"
3227 $at_times_p && times >"$at_times_file"
3228 ) 5>&1 2>&1 | eval $at_tee_pipe
3229 at_status=`cat "$at_status_file"`
3232 9 ) # 9. append.at:21: append
3233 at_setup_line='append.at:21'
3235 $at_quiet $ECHO_N " 9: append $ECHO_C"
3237 test -f $XFAILFILE && at_xfail=yes
3238 echo "# -*- compilation -*-" >> "$at_group_log"
3240 echo "9. append.at:21: testing ..."
3248 echo "$at_srcdir/append.at:24:
3252 export TEST_TAR_FORMAT
3253 TAR_OPTIONS=\"-H v7\"
3258 tar cf archive file1
3259 tar rf archive file2
3261 echo append.at:24 >"$at_check_line_file"
3264 if test -n "$at_traceon"; then
3265 echo 'Not enabling shell tracing (command contains an embedded newline)'
3268 if test -n "$at_trace_this"; then
3273 export TEST_TAR_FORMAT
3279 tar cf archive file1
3280 tar rf archive file2
3281 tar tf archive) ) >"$at_stdout" 2>"$at_stder1"
3283 grep '^ *+' "$at_stder1" >&2
3284 grep -v '^ *+' "$at_stder1" >"$at_stderr"
3290 export TEST_TAR_FORMAT
3296 tar cf archive file1
3297 tar rf archive file2
3298 tar tf archive) ) >"$at_stdout" 2>"$at_stderr"
3303 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
3304 echo >>"$at_stdout"; echo "file1
3306 " | $at_diff - "$at_stdout" || at_failed=:
3308 77) echo 77 > "$at_status_file"; exit 77;;
3310 *) echo "$at_srcdir/append.at:24: exit code was $at_status, expected 0"
3316 echo 1 > "$at_status_file"
3322 echo "$at_srcdir/append.at:24:
3325 TEST_TAR_FORMAT=oldgnu
3326 export TEST_TAR_FORMAT
3327 TAR_OPTIONS=\"-H oldgnu\"
3332 tar cf archive file1
3333 tar rf archive file2
3335 echo append.at:24 >"$at_check_line_file"
3338 if test -n "$at_traceon"; then
3339 echo 'Not enabling shell tracing (command contains an embedded newline)'
3342 if test -n "$at_trace_this"; then
3346 TEST_TAR_FORMAT=oldgnu
3347 export TEST_TAR_FORMAT
3348 TAR_OPTIONS="-H oldgnu"
3353 tar cf archive file1
3354 tar rf archive file2
3355 tar tf archive) ) >"$at_stdout" 2>"$at_stder1"
3357 grep '^ *+' "$at_stder1" >&2
3358 grep -v '^ *+' "$at_stder1" >"$at_stderr"
3363 TEST_TAR_FORMAT=oldgnu
3364 export TEST_TAR_FORMAT
3365 TAR_OPTIONS="-H oldgnu"
3370 tar cf archive file1
3371 tar rf archive file2
3372 tar tf archive) ) >"$at_stdout" 2>"$at_stderr"
3377 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
3378 echo >>"$at_stdout"; echo "file1
3380 " | $at_diff - "$at_stdout" || at_failed=:
3382 77) echo 77 > "$at_status_file"; exit 77;;
3384 *) echo "$at_srcdir/append.at:24: exit code was $at_status, expected 0"
3390 echo 1 > "$at_status_file"
3396 echo "$at_srcdir/append.at:24:
3399 TEST_TAR_FORMAT=ustar
3400 export TEST_TAR_FORMAT
3401 TAR_OPTIONS=\"-H ustar\"
3406 tar cf archive file1
3407 tar rf archive file2
3409 echo append.at:24 >"$at_check_line_file"
3412 if test -n "$at_traceon"; then
3413 echo 'Not enabling shell tracing (command contains an embedded newline)'
3416 if test -n "$at_trace_this"; then
3420 TEST_TAR_FORMAT=ustar
3421 export TEST_TAR_FORMAT
3422 TAR_OPTIONS="-H ustar"
3427 tar cf archive file1
3428 tar rf archive file2
3429 tar tf archive) ) >"$at_stdout" 2>"$at_stder1"
3431 grep '^ *+' "$at_stder1" >&2
3432 grep -v '^ *+' "$at_stder1" >"$at_stderr"
3437 TEST_TAR_FORMAT=ustar
3438 export TEST_TAR_FORMAT
3439 TAR_OPTIONS="-H ustar"
3444 tar cf archive file1
3445 tar rf archive file2
3446 tar tf archive) ) >"$at_stdout" 2>"$at_stderr"
3451 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
3452 echo >>"$at_stdout"; echo "file1
3454 " | $at_diff - "$at_stdout" || at_failed=:
3456 77) echo 77 > "$at_status_file"; exit 77;;
3458 *) echo "$at_srcdir/append.at:24: exit code was $at_status, expected 0"
3464 echo 1 > "$at_status_file"
3470 echo "$at_srcdir/append.at:24:
3473 TEST_TAR_FORMAT=posix
3474 export TEST_TAR_FORMAT
3475 TAR_OPTIONS=\"-H posix\"
3480 tar cf archive file1
3481 tar rf archive file2
3483 echo append.at:24 >"$at_check_line_file"
3486 if test -n "$at_traceon"; then
3487 echo 'Not enabling shell tracing (command contains an embedded newline)'
3490 if test -n "$at_trace_this"; then
3494 TEST_TAR_FORMAT=posix
3495 export TEST_TAR_FORMAT
3496 TAR_OPTIONS="-H posix"
3501 tar cf archive file1
3502 tar rf archive file2
3503 tar tf archive) ) >"$at_stdout" 2>"$at_stder1"
3505 grep '^ *+' "$at_stder1" >&2
3506 grep -v '^ *+' "$at_stder1" >"$at_stderr"
3511 TEST_TAR_FORMAT=posix
3512 export TEST_TAR_FORMAT
3513 TAR_OPTIONS="-H posix"
3518 tar cf archive file1
3519 tar rf archive file2
3520 tar tf archive) ) >"$at_stdout" 2>"$at_stderr"
3525 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
3526 echo >>"$at_stdout"; echo "file1
3528 " | $at_diff - "$at_stdout" || at_failed=:
3530 77) echo 77 > "$at_status_file"; exit 77;;
3532 *) echo "$at_srcdir/append.at:24: exit code was $at_status, expected 0"
3538 echo 1 > "$at_status_file"
3544 echo "$at_srcdir/append.at:24:
3548 export TEST_TAR_FORMAT
3549 TAR_OPTIONS=\"-H gnu\"
3554 tar cf archive file1
3555 tar rf archive file2
3557 echo append.at:24 >"$at_check_line_file"
3560 if test -n "$at_traceon"; then
3561 echo 'Not enabling shell tracing (command contains an embedded newline)'
3564 if test -n "$at_trace_this"; then
3569 export TEST_TAR_FORMAT
3570 TAR_OPTIONS="-H gnu"
3575 tar cf archive file1
3576 tar rf archive file2
3577 tar tf archive) ) >"$at_stdout" 2>"$at_stder1"
3579 grep '^ *+' "$at_stder1" >&2
3580 grep -v '^ *+' "$at_stder1" >"$at_stderr"
3586 export TEST_TAR_FORMAT
3587 TAR_OPTIONS="-H gnu"
3592 tar cf archive file1
3593 tar rf archive file2
3594 tar tf archive) ) >"$at_stdout" 2>"$at_stderr"
3599 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
3600 echo >>"$at_stdout"; echo "file1
3602 " | $at_diff - "$at_stdout" || at_failed=:
3604 77) echo 77 > "$at_status_file"; exit 77;;
3606 *) echo "$at_srcdir/append.at:24: exit code was $at_status, expected 0"
3612 echo 1 > "$at_status_file"
3621 $at_times_p && times >"$at_times_file"
3622 ) 5>&1 2>&1 | eval $at_tee_pipe
3623 at_status=`cat "$at_status_file"`
3626 10 ) # 10. append01.at:29: appending files with long names
3627 at_setup_line='append01.at:29'
3628 at_desc="appending files with long names"
3629 $at_quiet $ECHO_N " 10: appending files with long names $ECHO_C"
3631 test -f $XFAILFILE && at_xfail=yes
3632 echo "# -*- compilation -*-" >> "$at_group_log"
3634 echo "10. append01.at:29: testing ..."
3644 echo "$at_srcdir/append01.at:34:
3647 TEST_TAR_FORMAT=oldgnu
3648 export TEST_TAR_FORMAT
3649 TAR_OPTIONS=\"-H oldgnu\"
3653 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
3654 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
3655 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
3656 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
3659 echo append01.at:34 >"$at_check_line_file"
3662 if test -n "$at_traceon"; then
3663 echo 'Not enabling shell tracing (command contains an embedded newline)'
3666 if test -n "$at_trace_this"; then
3670 TEST_TAR_FORMAT=oldgnu
3671 export TEST_TAR_FORMAT
3672 TAR_OPTIONS="-H oldgnu"
3676 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
3677 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
3678 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
3679 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
3681 ) ) >"$at_stdout" 2>"$at_stder1"
3683 grep '^ *+' "$at_stder1" >&2
3684 grep -v '^ *+' "$at_stder1" >"$at_stderr"
3689 TEST_TAR_FORMAT=oldgnu
3690 export TEST_TAR_FORMAT
3691 TAR_OPTIONS="-H oldgnu"
3695 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
3696 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
3697 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
3698 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
3700 ) ) >"$at_stdout" 2>"$at_stderr"
3705 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
3706 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
3707 This_is_a_very_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
3708 " | $at_diff - "$at_stdout" || at_failed=:
3710 77) echo 77 > "$at_status_file"; exit 77;;
3712 *) echo "$at_srcdir/append01.at:34: exit code was $at_status, expected 0"
3718 echo 1 > "$at_status_file"
3724 echo "$at_srcdir/append01.at:34:
3727 TEST_TAR_FORMAT=ustar
3728 export TEST_TAR_FORMAT
3729 TAR_OPTIONS=\"-H ustar\"
3733 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
3734 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
3735 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
3736 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
3739 echo append01.at:34 >"$at_check_line_file"
3742 if test -n "$at_traceon"; then
3743 echo 'Not enabling shell tracing (command contains an embedded newline)'
3746 if test -n "$at_trace_this"; then
3750 TEST_TAR_FORMAT=ustar
3751 export TEST_TAR_FORMAT
3752 TAR_OPTIONS="-H ustar"
3756 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
3757 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
3758 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
3759 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
3761 ) ) >"$at_stdout" 2>"$at_stder1"
3763 grep '^ *+' "$at_stder1" >&2
3764 grep -v '^ *+' "$at_stder1" >"$at_stderr"
3769 TEST_TAR_FORMAT=ustar
3770 export TEST_TAR_FORMAT
3771 TAR_OPTIONS="-H ustar"
3775 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
3776 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
3777 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
3778 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
3780 ) ) >"$at_stdout" 2>"$at_stderr"
3785 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
3786 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
3787 This_is_a_very_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
3788 " | $at_diff - "$at_stdout" || at_failed=:
3790 77) echo 77 > "$at_status_file"; exit 77;;
3792 *) echo "$at_srcdir/append01.at:34: exit code was $at_status, expected 0"
3798 echo 1 > "$at_status_file"
3804 echo "$at_srcdir/append01.at:34:
3807 TEST_TAR_FORMAT=posix
3808 export TEST_TAR_FORMAT
3809 TAR_OPTIONS=\"-H posix\"
3813 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
3814 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
3815 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
3816 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
3819 echo append01.at:34 >"$at_check_line_file"
3822 if test -n "$at_traceon"; then
3823 echo 'Not enabling shell tracing (command contains an embedded newline)'
3826 if test -n "$at_trace_this"; then
3830 TEST_TAR_FORMAT=posix
3831 export TEST_TAR_FORMAT
3832 TAR_OPTIONS="-H posix"
3836 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
3837 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
3838 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
3839 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
3841 ) ) >"$at_stdout" 2>"$at_stder1"
3843 grep '^ *+' "$at_stder1" >&2
3844 grep -v '^ *+' "$at_stder1" >"$at_stderr"
3849 TEST_TAR_FORMAT=posix
3850 export TEST_TAR_FORMAT
3851 TAR_OPTIONS="-H posix"
3855 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
3856 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
3857 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
3858 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
3860 ) ) >"$at_stdout" 2>"$at_stderr"
3865 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
3866 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
3867 This_is_a_very_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
3868 " | $at_diff - "$at_stdout" || at_failed=:
3870 77) echo 77 > "$at_status_file"; exit 77;;
3872 *) echo "$at_srcdir/append01.at:34: exit code was $at_status, expected 0"
3878 echo 1 > "$at_status_file"
3884 echo "$at_srcdir/append01.at:34:
3888 export TEST_TAR_FORMAT
3889 TAR_OPTIONS=\"-H gnu\"
3893 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
3894 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
3895 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
3896 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
3899 echo append01.at:34 >"$at_check_line_file"
3902 if test -n "$at_traceon"; then
3903 echo 'Not enabling shell tracing (command contains an embedded newline)'
3906 if test -n "$at_trace_this"; then
3911 export TEST_TAR_FORMAT
3912 TAR_OPTIONS="-H gnu"
3916 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
3917 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
3918 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
3919 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
3921 ) ) >"$at_stdout" 2>"$at_stder1"
3923 grep '^ *+' "$at_stder1" >&2
3924 grep -v '^ *+' "$at_stder1" >"$at_stderr"
3930 export TEST_TAR_FORMAT
3931 TAR_OPTIONS="-H gnu"
3935 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
3936 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
3937 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
3938 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
3940 ) ) >"$at_stdout" 2>"$at_stderr"
3945 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
3946 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
3947 This_is_a_very_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
3948 " | $at_diff - "$at_stdout" || at_failed=:
3950 77) echo 77 > "$at_status_file"; exit 77;;
3952 *) echo "$at_srcdir/append01.at:34: exit code was $at_status, expected 0"
3958 echo 1 > "$at_status_file"
3967 $at_times_p && times >"$at_times_file"
3968 ) 5>&1 2>&1 | eval $at_tee_pipe
3969 at_status=`cat "$at_status_file"`
3972 11 ) # 11. append02.at:40: append vs. create
3973 at_setup_line='append02.at:40'
3974 at_desc="append vs. create"
3975 $at_quiet $ECHO_N " 11: append vs. create $ECHO_C"
3977 test -f $XFAILFILE && at_xfail=yes
3978 echo "# -*- compilation -*-" >> "$at_group_log"
3980 echo "11. append02.at:40: testing ..."
3988 echo "$at_srcdir/append02.at:43:
3992 export TEST_TAR_FORMAT
3993 TAR_OPTIONS=\"-H v7\"
3997 genfile --file file1
3998 genfile --file file2
4000 # Make sure file timestamps in the archive will not differ
4001 MTIME=\"--mtime=@0\"
4003 # For PAX archives, we need to make sure extended header names are
4004 # reproducible and that their contents won't change with time
4005 if test \$TEST_TAR_FORMAT = posix; then
4006 TAR_OPTIONS=\"\$TAR_OPTIONS --pax-option=exthdr.name=%d/PaxHeaders/%f,delete=mtime,delete=atime,delete=ctime\"
4009 echo Creating archive.1
4010 tar \$MTIME -cf archive.1 file1 file2
4012 echo Creating archive.2
4013 tar \$MTIME -cf archive.2 -T /dev/null
4014 tar \$MTIME -rf archive.2 file1
4015 tar \$MTIME -rf archive.2 file2
4017 echo Comparing archives
4018 cmp archive.1 archive.2
4020 echo append02.at:43 >"$at_check_line_file"
4023 if test -n "$at_traceon"; then
4024 echo 'Not enabling shell tracing (command contains an embedded newline)'
4027 if test -n "$at_trace_this"; then
4032 export TEST_TAR_FORMAT
4037 genfile --file file1
4038 genfile --file file2
4040 # Make sure file timestamps in the archive will not differ
4043 # For PAX archives, we need to make sure extended header names are
4044 # reproducible and that their contents won't change with time
4045 if test $TEST_TAR_FORMAT = posix; then
4046 TAR_OPTIONS="$TAR_OPTIONS --pax-option=exthdr.name=%d/PaxHeaders/%f,delete=mtime,delete=atime,delete=ctime"
4049 echo Creating archive.1
4050 tar $MTIME -cf archive.1 file1 file2
4052 echo Creating archive.2
4053 tar $MTIME -cf archive.2 -T /dev/null
4054 tar $MTIME -rf archive.2 file1
4055 tar $MTIME -rf archive.2 file2
4057 echo Comparing archives
4058 cmp archive.1 archive.2
4059 ) ) >"$at_stdout" 2>"$at_stder1"
4061 grep '^ *+' "$at_stder1" >&2
4062 grep -v '^ *+' "$at_stder1" >"$at_stderr"
4068 export TEST_TAR_FORMAT
4073 genfile --file file1
4074 genfile --file file2
4076 # Make sure file timestamps in the archive will not differ
4079 # For PAX archives, we need to make sure extended header names are
4080 # reproducible and that their contents won't change with time
4081 if test $TEST_TAR_FORMAT = posix; then
4082 TAR_OPTIONS="$TAR_OPTIONS --pax-option=exthdr.name=%d/PaxHeaders/%f,delete=mtime,delete=atime,delete=ctime"
4085 echo Creating archive.1
4086 tar $MTIME -cf archive.1 file1 file2
4088 echo Creating archive.2
4089 tar $MTIME -cf archive.2 -T /dev/null
4090 tar $MTIME -rf archive.2 file1
4091 tar $MTIME -rf archive.2 file2
4093 echo Comparing archives
4094 cmp archive.1 archive.2
4095 ) ) >"$at_stdout" 2>"$at_stderr"
4100 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
4101 echo >>"$at_stdout"; echo "Creating archive.1
4104 " | $at_diff - "$at_stdout" || at_failed=:
4106 77) echo 77 > "$at_status_file"; exit 77;;
4108 *) echo "$at_srcdir/append02.at:43: exit code was $at_status, expected 0"
4114 echo 1 > "$at_status_file"
4120 echo "$at_srcdir/append02.at:43:
4123 TEST_TAR_FORMAT=oldgnu
4124 export TEST_TAR_FORMAT
4125 TAR_OPTIONS=\"-H oldgnu\"
4129 genfile --file file1
4130 genfile --file file2
4132 # Make sure file timestamps in the archive will not differ
4133 MTIME=\"--mtime=@0\"
4135 # For PAX archives, we need to make sure extended header names are
4136 # reproducible and that their contents won't change with time
4137 if test \$TEST_TAR_FORMAT = posix; then
4138 TAR_OPTIONS=\"\$TAR_OPTIONS --pax-option=exthdr.name=%d/PaxHeaders/%f,delete=mtime,delete=atime,delete=ctime\"
4141 echo Creating archive.1
4142 tar \$MTIME -cf archive.1 file1 file2
4144 echo Creating archive.2
4145 tar \$MTIME -cf archive.2 -T /dev/null
4146 tar \$MTIME -rf archive.2 file1
4147 tar \$MTIME -rf archive.2 file2
4149 echo Comparing archives
4150 cmp archive.1 archive.2
4152 echo append02.at:43 >"$at_check_line_file"
4155 if test -n "$at_traceon"; then
4156 echo 'Not enabling shell tracing (command contains an embedded newline)'
4159 if test -n "$at_trace_this"; then
4163 TEST_TAR_FORMAT=oldgnu
4164 export TEST_TAR_FORMAT
4165 TAR_OPTIONS="-H oldgnu"
4169 genfile --file file1
4170 genfile --file file2
4172 # Make sure file timestamps in the archive will not differ
4175 # For PAX archives, we need to make sure extended header names are
4176 # reproducible and that their contents won't change with time
4177 if test $TEST_TAR_FORMAT = posix; then
4178 TAR_OPTIONS="$TAR_OPTIONS --pax-option=exthdr.name=%d/PaxHeaders/%f,delete=mtime,delete=atime,delete=ctime"
4181 echo Creating archive.1
4182 tar $MTIME -cf archive.1 file1 file2
4184 echo Creating archive.2
4185 tar $MTIME -cf archive.2 -T /dev/null
4186 tar $MTIME -rf archive.2 file1
4187 tar $MTIME -rf archive.2 file2
4189 echo Comparing archives
4190 cmp archive.1 archive.2
4191 ) ) >"$at_stdout" 2>"$at_stder1"
4193 grep '^ *+' "$at_stder1" >&2
4194 grep -v '^ *+' "$at_stder1" >"$at_stderr"
4199 TEST_TAR_FORMAT=oldgnu
4200 export TEST_TAR_FORMAT
4201 TAR_OPTIONS="-H oldgnu"
4205 genfile --file file1
4206 genfile --file file2
4208 # Make sure file timestamps in the archive will not differ
4211 # For PAX archives, we need to make sure extended header names are
4212 # reproducible and that their contents won't change with time
4213 if test $TEST_TAR_FORMAT = posix; then
4214 TAR_OPTIONS="$TAR_OPTIONS --pax-option=exthdr.name=%d/PaxHeaders/%f,delete=mtime,delete=atime,delete=ctime"
4217 echo Creating archive.1
4218 tar $MTIME -cf archive.1 file1 file2
4220 echo Creating archive.2
4221 tar $MTIME -cf archive.2 -T /dev/null
4222 tar $MTIME -rf archive.2 file1
4223 tar $MTIME -rf archive.2 file2
4225 echo Comparing archives
4226 cmp archive.1 archive.2
4227 ) ) >"$at_stdout" 2>"$at_stderr"
4232 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
4233 echo >>"$at_stdout"; echo "Creating archive.1
4236 " | $at_diff - "$at_stdout" || at_failed=:
4238 77) echo 77 > "$at_status_file"; exit 77;;
4240 *) echo "$at_srcdir/append02.at:43: exit code was $at_status, expected 0"
4246 echo 1 > "$at_status_file"
4252 echo "$at_srcdir/append02.at:43:
4255 TEST_TAR_FORMAT=ustar
4256 export TEST_TAR_FORMAT
4257 TAR_OPTIONS=\"-H ustar\"
4261 genfile --file file1
4262 genfile --file file2
4264 # Make sure file timestamps in the archive will not differ
4265 MTIME=\"--mtime=@0\"
4267 # For PAX archives, we need to make sure extended header names are
4268 # reproducible and that their contents won't change with time
4269 if test \$TEST_TAR_FORMAT = posix; then
4270 TAR_OPTIONS=\"\$TAR_OPTIONS --pax-option=exthdr.name=%d/PaxHeaders/%f,delete=mtime,delete=atime,delete=ctime\"
4273 echo Creating archive.1
4274 tar \$MTIME -cf archive.1 file1 file2
4276 echo Creating archive.2
4277 tar \$MTIME -cf archive.2 -T /dev/null
4278 tar \$MTIME -rf archive.2 file1
4279 tar \$MTIME -rf archive.2 file2
4281 echo Comparing archives
4282 cmp archive.1 archive.2
4284 echo append02.at:43 >"$at_check_line_file"
4287 if test -n "$at_traceon"; then
4288 echo 'Not enabling shell tracing (command contains an embedded newline)'
4291 if test -n "$at_trace_this"; then
4295 TEST_TAR_FORMAT=ustar
4296 export TEST_TAR_FORMAT
4297 TAR_OPTIONS="-H ustar"
4301 genfile --file file1
4302 genfile --file file2
4304 # Make sure file timestamps in the archive will not differ
4307 # For PAX archives, we need to make sure extended header names are
4308 # reproducible and that their contents won't change with time
4309 if test $TEST_TAR_FORMAT = posix; then
4310 TAR_OPTIONS="$TAR_OPTIONS --pax-option=exthdr.name=%d/PaxHeaders/%f,delete=mtime,delete=atime,delete=ctime"
4313 echo Creating archive.1
4314 tar $MTIME -cf archive.1 file1 file2
4316 echo Creating archive.2
4317 tar $MTIME -cf archive.2 -T /dev/null
4318 tar $MTIME -rf archive.2 file1
4319 tar $MTIME -rf archive.2 file2
4321 echo Comparing archives
4322 cmp archive.1 archive.2
4323 ) ) >"$at_stdout" 2>"$at_stder1"
4325 grep '^ *+' "$at_stder1" >&2
4326 grep -v '^ *+' "$at_stder1" >"$at_stderr"
4331 TEST_TAR_FORMAT=ustar
4332 export TEST_TAR_FORMAT
4333 TAR_OPTIONS="-H ustar"
4337 genfile --file file1
4338 genfile --file file2
4340 # Make sure file timestamps in the archive will not differ
4343 # For PAX archives, we need to make sure extended header names are
4344 # reproducible and that their contents won't change with time
4345 if test $TEST_TAR_FORMAT = posix; then
4346 TAR_OPTIONS="$TAR_OPTIONS --pax-option=exthdr.name=%d/PaxHeaders/%f,delete=mtime,delete=atime,delete=ctime"
4349 echo Creating archive.1
4350 tar $MTIME -cf archive.1 file1 file2
4352 echo Creating archive.2
4353 tar $MTIME -cf archive.2 -T /dev/null
4354 tar $MTIME -rf archive.2 file1
4355 tar $MTIME -rf archive.2 file2
4357 echo Comparing archives
4358 cmp archive.1 archive.2
4359 ) ) >"$at_stdout" 2>"$at_stderr"
4364 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
4365 echo >>"$at_stdout"; echo "Creating archive.1
4368 " | $at_diff - "$at_stdout" || at_failed=:
4370 77) echo 77 > "$at_status_file"; exit 77;;
4372 *) echo "$at_srcdir/append02.at:43: exit code was $at_status, expected 0"
4378 echo 1 > "$at_status_file"
4384 echo "$at_srcdir/append02.at:43:
4387 TEST_TAR_FORMAT=posix
4388 export TEST_TAR_FORMAT
4389 TAR_OPTIONS=\"-H posix\"
4393 genfile --file file1
4394 genfile --file file2
4396 # Make sure file timestamps in the archive will not differ
4397 MTIME=\"--mtime=@0\"
4399 # For PAX archives, we need to make sure extended header names are
4400 # reproducible and that their contents won't change with time
4401 if test \$TEST_TAR_FORMAT = posix; then
4402 TAR_OPTIONS=\"\$TAR_OPTIONS --pax-option=exthdr.name=%d/PaxHeaders/%f,delete=mtime,delete=atime,delete=ctime\"
4405 echo Creating archive.1
4406 tar \$MTIME -cf archive.1 file1 file2
4408 echo Creating archive.2
4409 tar \$MTIME -cf archive.2 -T /dev/null
4410 tar \$MTIME -rf archive.2 file1
4411 tar \$MTIME -rf archive.2 file2
4413 echo Comparing archives
4414 cmp archive.1 archive.2
4416 echo append02.at:43 >"$at_check_line_file"
4419 if test -n "$at_traceon"; then
4420 echo 'Not enabling shell tracing (command contains an embedded newline)'
4423 if test -n "$at_trace_this"; then
4427 TEST_TAR_FORMAT=posix
4428 export TEST_TAR_FORMAT
4429 TAR_OPTIONS="-H posix"
4433 genfile --file file1
4434 genfile --file file2
4436 # Make sure file timestamps in the archive will not differ
4439 # For PAX archives, we need to make sure extended header names are
4440 # reproducible and that their contents won't change with time
4441 if test $TEST_TAR_FORMAT = posix; then
4442 TAR_OPTIONS="$TAR_OPTIONS --pax-option=exthdr.name=%d/PaxHeaders/%f,delete=mtime,delete=atime,delete=ctime"
4445 echo Creating archive.1
4446 tar $MTIME -cf archive.1 file1 file2
4448 echo Creating archive.2
4449 tar $MTIME -cf archive.2 -T /dev/null
4450 tar $MTIME -rf archive.2 file1
4451 tar $MTIME -rf archive.2 file2
4453 echo Comparing archives
4454 cmp archive.1 archive.2
4455 ) ) >"$at_stdout" 2>"$at_stder1"
4457 grep '^ *+' "$at_stder1" >&2
4458 grep -v '^ *+' "$at_stder1" >"$at_stderr"
4463 TEST_TAR_FORMAT=posix
4464 export TEST_TAR_FORMAT
4465 TAR_OPTIONS="-H posix"
4469 genfile --file file1
4470 genfile --file file2
4472 # Make sure file timestamps in the archive will not differ
4475 # For PAX archives, we need to make sure extended header names are
4476 # reproducible and that their contents won't change with time
4477 if test $TEST_TAR_FORMAT = posix; then
4478 TAR_OPTIONS="$TAR_OPTIONS --pax-option=exthdr.name=%d/PaxHeaders/%f,delete=mtime,delete=atime,delete=ctime"
4481 echo Creating archive.1
4482 tar $MTIME -cf archive.1 file1 file2
4484 echo Creating archive.2
4485 tar $MTIME -cf archive.2 -T /dev/null
4486 tar $MTIME -rf archive.2 file1
4487 tar $MTIME -rf archive.2 file2
4489 echo Comparing archives
4490 cmp archive.1 archive.2
4491 ) ) >"$at_stdout" 2>"$at_stderr"
4496 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
4497 echo >>"$at_stdout"; echo "Creating archive.1
4500 " | $at_diff - "$at_stdout" || at_failed=:
4502 77) echo 77 > "$at_status_file"; exit 77;;
4504 *) echo "$at_srcdir/append02.at:43: exit code was $at_status, expected 0"
4510 echo 1 > "$at_status_file"
4516 echo "$at_srcdir/append02.at:43:
4520 export TEST_TAR_FORMAT
4521 TAR_OPTIONS=\"-H gnu\"
4525 genfile --file file1
4526 genfile --file file2
4528 # Make sure file timestamps in the archive will not differ
4529 MTIME=\"--mtime=@0\"
4531 # For PAX archives, we need to make sure extended header names are
4532 # reproducible and that their contents won't change with time
4533 if test \$TEST_TAR_FORMAT = posix; then
4534 TAR_OPTIONS=\"\$TAR_OPTIONS --pax-option=exthdr.name=%d/PaxHeaders/%f,delete=mtime,delete=atime,delete=ctime\"
4537 echo Creating archive.1
4538 tar \$MTIME -cf archive.1 file1 file2
4540 echo Creating archive.2
4541 tar \$MTIME -cf archive.2 -T /dev/null
4542 tar \$MTIME -rf archive.2 file1
4543 tar \$MTIME -rf archive.2 file2
4545 echo Comparing archives
4546 cmp archive.1 archive.2
4548 echo append02.at:43 >"$at_check_line_file"
4551 if test -n "$at_traceon"; then
4552 echo 'Not enabling shell tracing (command contains an embedded newline)'
4555 if test -n "$at_trace_this"; then
4560 export TEST_TAR_FORMAT
4561 TAR_OPTIONS="-H gnu"
4565 genfile --file file1
4566 genfile --file file2
4568 # Make sure file timestamps in the archive will not differ
4571 # For PAX archives, we need to make sure extended header names are
4572 # reproducible and that their contents won't change with time
4573 if test $TEST_TAR_FORMAT = posix; then
4574 TAR_OPTIONS="$TAR_OPTIONS --pax-option=exthdr.name=%d/PaxHeaders/%f,delete=mtime,delete=atime,delete=ctime"
4577 echo Creating archive.1
4578 tar $MTIME -cf archive.1 file1 file2
4580 echo Creating archive.2
4581 tar $MTIME -cf archive.2 -T /dev/null
4582 tar $MTIME -rf archive.2 file1
4583 tar $MTIME -rf archive.2 file2
4585 echo Comparing archives
4586 cmp archive.1 archive.2
4587 ) ) >"$at_stdout" 2>"$at_stder1"
4589 grep '^ *+' "$at_stder1" >&2
4590 grep -v '^ *+' "$at_stder1" >"$at_stderr"
4596 export TEST_TAR_FORMAT
4597 TAR_OPTIONS="-H gnu"
4601 genfile --file file1
4602 genfile --file file2
4604 # Make sure file timestamps in the archive will not differ
4607 # For PAX archives, we need to make sure extended header names are
4608 # reproducible and that their contents won't change with time
4609 if test $TEST_TAR_FORMAT = posix; then
4610 TAR_OPTIONS="$TAR_OPTIONS --pax-option=exthdr.name=%d/PaxHeaders/%f,delete=mtime,delete=atime,delete=ctime"
4613 echo Creating archive.1
4614 tar $MTIME -cf archive.1 file1 file2
4616 echo Creating archive.2
4617 tar $MTIME -cf archive.2 -T /dev/null
4618 tar $MTIME -rf archive.2 file1
4619 tar $MTIME -rf archive.2 file2
4621 echo Comparing archives
4622 cmp archive.1 archive.2
4623 ) ) >"$at_stdout" 2>"$at_stderr"
4628 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
4629 echo >>"$at_stdout"; echo "Creating archive.1
4632 " | $at_diff - "$at_stdout" || at_failed=:
4634 77) echo 77 > "$at_status_file"; exit 77;;
4636 *) echo "$at_srcdir/append02.at:43: exit code was $at_status, expected 0"
4642 echo 1 > "$at_status_file"
4651 $at_times_p && times >"$at_times_file"
4652 ) 5>&1 2>&1 | eval $at_tee_pipe
4653 at_status=`cat "$at_status_file"`
4656 12 ) # 12. exclude.at:23: exclude
4657 at_setup_line='exclude.at:23'
4659 $at_quiet $ECHO_N " 12: exclude $ECHO_C"
4661 test -f $XFAILFILE && at_xfail=yes
4662 echo "# -*- compilation -*-" >> "$at_group_log"
4664 echo "12. exclude.at:23: testing ..."
4672 echo "$at_srcdir/exclude.at:26:
4675 TEST_TAR_FORMAT=ustar
4676 export TEST_TAR_FORMAT
4677 TAR_OPTIONS=\"-H ustar\"
4682 test -z "`sort < /dev/null 2>&1`" || exit 77
4686 echo blues > dir/blues
4687 echo jazz > dir/jazz
4689 echo tagfile > dir/folk/tagfile
4690 echo sanjuan > dir/folk/sanjuan
4692 echo \"Signature: 8a477f597d28d172789f06886806bc55\" > dir/rock/CACHEDIR.TAG
4693 echo \"test\" > dir/rock/file
4695 for option in exclude-caches exclude-caches-under exclude-caches-all
4697 echo OPTION \$option
4698 tar -cf archive.tar --\$option -v dir 2>err | sort
4701 tar tf archive.tar | sort
4704 for option in exclude-tag exclude-tag-under exclude-tag-all
4706 echo OPTION \$option
4707 tar -cf archive.tar --\${option}=tagfile -v dir 2>err | sort
4710 tar tf archive.tar | sort
4713 echo exclude.at:26 >"$at_check_line_file"
4716 if test -n "$at_traceon"; then
4717 echo 'Not enabling shell tracing (command contains a ${...} parameter expansion)'
4720 if test -n "$at_trace_this"; then
4724 TEST_TAR_FORMAT=ustar
4725 export TEST_TAR_FORMAT
4726 TAR_OPTIONS="-H ustar"
4731 test -z "`sort < /dev/null 2>&1`" || exit 77
4735 echo blues > dir/blues
4736 echo jazz > dir/jazz
4738 echo tagfile > dir/folk/tagfile
4739 echo sanjuan > dir/folk/sanjuan
4741 echo "Signature: 8a477f597d28d172789f06886806bc55" > dir/rock/CACHEDIR.TAG
4742 echo "test" > dir/rock/file
4744 for option in exclude-caches exclude-caches-under exclude-caches-all
4747 tar -cf archive.tar --$option -v dir 2>err | sort
4750 tar tf archive.tar | sort
4753 for option in exclude-tag exclude-tag-under exclude-tag-all
4756 tar -cf archive.tar --${option}=tagfile -v dir 2>err | sort
4759 tar tf archive.tar | sort
4761 ) ) >"$at_stdout" 2>"$at_stder1"
4763 grep '^ *+' "$at_stder1" >&2
4764 grep -v '^ *+' "$at_stder1" >"$at_stderr"
4769 TEST_TAR_FORMAT=ustar
4770 export TEST_TAR_FORMAT
4771 TAR_OPTIONS="-H ustar"
4776 test -z "`sort < /dev/null 2>&1`" || exit 77
4780 echo blues > dir/blues
4781 echo jazz > dir/jazz
4783 echo tagfile > dir/folk/tagfile
4784 echo sanjuan > dir/folk/sanjuan
4786 echo "Signature: 8a477f597d28d172789f06886806bc55" > dir/rock/CACHEDIR.TAG
4787 echo "test" > dir/rock/file
4789 for option in exclude-caches exclude-caches-under exclude-caches-all
4792 tar -cf archive.tar --$option -v dir 2>err | sort
4795 tar tf archive.tar | sort
4798 for option in exclude-tag exclude-tag-under exclude-tag-all
4801 tar -cf archive.tar --${option}=tagfile -v dir 2>err | sort
4804 tar tf archive.tar | sort
4806 ) ) >"$at_stdout" 2>"$at_stderr"
4811 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
4812 echo >>"$at_stdout"; echo "OPTION exclude-caches
4820 dir/rock/CACHEDIR.TAG
4821 tar: dir/rock/: contains a cache directory tag CACHEDIR.TAG; contents not dumped
4830 dir/rock/CACHEDIR.TAG
4831 OPTION exclude-caches-under
4839 tar: dir/rock/: contains a cache directory tag CACHEDIR.TAG; contents not dumped
4848 OPTION exclude-caches-all
4855 tar: dir/rock/: contains a cache directory tag CACHEDIR.TAG; directory not dumped
4870 dir/rock/CACHEDIR.TAG
4872 tar: dir/folk/: contains a cache directory tag tagfile; contents not dumped
4880 dir/rock/CACHEDIR.TAG
4882 OPTION exclude-tag-under
4888 dir/rock/CACHEDIR.TAG
4890 tar: dir/folk/: contains a cache directory tag tagfile; contents not dumped
4897 dir/rock/CACHEDIR.TAG
4899 OPTION exclude-tag-all
4904 dir/rock/CACHEDIR.TAG
4906 tar: dir/folk/: contains a cache directory tag tagfile; directory not dumped
4912 dir/rock/CACHEDIR.TAG
4914 " | $at_diff - "$at_stdout" || at_failed=:
4916 77) echo 77 > "$at_status_file"; exit 77;;
4918 *) echo "$at_srcdir/exclude.at:26: exit code was $at_status, expected 0"
4924 echo 1 > "$at_status_file"
4933 $at_times_p && times >"$at_times_file"
4934 ) 5>&1 2>&1 | eval $at_tee_pipe
4935 at_status=`cat "$at_status_file"`
4938 13 ) # 13. delete01.at:23: deleting a member after a big one
4939 at_setup_line='delete01.at:23'
4940 at_desc="deleting a member after a big one"
4941 $at_quiet $ECHO_N " 13: deleting a member after a big one $ECHO_C"
4943 test -f $XFAILFILE && at_xfail=yes
4944 echo "# -*- compilation -*-" >> "$at_group_log"
4946 echo "13. delete01.at:23: testing ..."
4954 echo "$at_srcdir/delete01.at:26:
4958 export TEST_TAR_FORMAT
4959 TAR_OPTIONS=\"-H v7\"
4963 genfile -l 50000 --file file1
4964 genfile -l 1024 --file file2
4965 tar cf archive file1 file2
4966 tar f archive --delete file2
4968 echo delete01.at:26 >"$at_check_line_file"
4971 if test -n "$at_traceon"; then
4972 echo 'Not enabling shell tracing (command contains an embedded newline)'
4975 if test -n "$at_trace_this"; then
4980 export TEST_TAR_FORMAT
4985 genfile -l 50000 --file file1
4986 genfile -l 1024 --file file2
4987 tar cf archive file1 file2
4988 tar f archive --delete file2
4989 tar tf archive) ) >"$at_stdout" 2>"$at_stder1"
4991 grep '^ *+' "$at_stder1" >&2
4992 grep -v '^ *+' "$at_stder1" >"$at_stderr"
4998 export TEST_TAR_FORMAT
5003 genfile -l 50000 --file file1
5004 genfile -l 1024 --file file2
5005 tar cf archive file1 file2
5006 tar f archive --delete file2
5007 tar tf archive) ) >"$at_stdout" 2>"$at_stderr"
5012 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
5013 echo >>"$at_stdout"; echo "file1
5014 " | $at_diff - "$at_stdout" || at_failed=:
5016 77) echo 77 > "$at_status_file"; exit 77;;
5018 *) echo "$at_srcdir/delete01.at:26: exit code was $at_status, expected 0"
5024 echo 1 > "$at_status_file"
5030 echo "$at_srcdir/delete01.at:26:
5033 TEST_TAR_FORMAT=oldgnu
5034 export TEST_TAR_FORMAT
5035 TAR_OPTIONS=\"-H oldgnu\"
5039 genfile -l 50000 --file file1
5040 genfile -l 1024 --file file2
5041 tar cf archive file1 file2
5042 tar f archive --delete file2
5044 echo delete01.at:26 >"$at_check_line_file"
5047 if test -n "$at_traceon"; then
5048 echo 'Not enabling shell tracing (command contains an embedded newline)'
5051 if test -n "$at_trace_this"; then
5055 TEST_TAR_FORMAT=oldgnu
5056 export TEST_TAR_FORMAT
5057 TAR_OPTIONS="-H oldgnu"
5061 genfile -l 50000 --file file1
5062 genfile -l 1024 --file file2
5063 tar cf archive file1 file2
5064 tar f archive --delete file2
5065 tar tf archive) ) >"$at_stdout" 2>"$at_stder1"
5067 grep '^ *+' "$at_stder1" >&2
5068 grep -v '^ *+' "$at_stder1" >"$at_stderr"
5073 TEST_TAR_FORMAT=oldgnu
5074 export TEST_TAR_FORMAT
5075 TAR_OPTIONS="-H oldgnu"
5079 genfile -l 50000 --file file1
5080 genfile -l 1024 --file file2
5081 tar cf archive file1 file2
5082 tar f archive --delete file2
5083 tar tf archive) ) >"$at_stdout" 2>"$at_stderr"
5088 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
5089 echo >>"$at_stdout"; echo "file1
5090 " | $at_diff - "$at_stdout" || at_failed=:
5092 77) echo 77 > "$at_status_file"; exit 77;;
5094 *) echo "$at_srcdir/delete01.at:26: exit code was $at_status, expected 0"
5100 echo 1 > "$at_status_file"
5106 echo "$at_srcdir/delete01.at:26:
5109 TEST_TAR_FORMAT=ustar
5110 export TEST_TAR_FORMAT
5111 TAR_OPTIONS=\"-H ustar\"
5115 genfile -l 50000 --file file1
5116 genfile -l 1024 --file file2
5117 tar cf archive file1 file2
5118 tar f archive --delete file2
5120 echo delete01.at:26 >"$at_check_line_file"
5123 if test -n "$at_traceon"; then
5124 echo 'Not enabling shell tracing (command contains an embedded newline)'
5127 if test -n "$at_trace_this"; then
5131 TEST_TAR_FORMAT=ustar
5132 export TEST_TAR_FORMAT
5133 TAR_OPTIONS="-H ustar"
5137 genfile -l 50000 --file file1
5138 genfile -l 1024 --file file2
5139 tar cf archive file1 file2
5140 tar f archive --delete file2
5141 tar tf archive) ) >"$at_stdout" 2>"$at_stder1"
5143 grep '^ *+' "$at_stder1" >&2
5144 grep -v '^ *+' "$at_stder1" >"$at_stderr"
5149 TEST_TAR_FORMAT=ustar
5150 export TEST_TAR_FORMAT
5151 TAR_OPTIONS="-H ustar"
5155 genfile -l 50000 --file file1
5156 genfile -l 1024 --file file2
5157 tar cf archive file1 file2
5158 tar f archive --delete file2
5159 tar tf archive) ) >"$at_stdout" 2>"$at_stderr"
5164 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
5165 echo >>"$at_stdout"; echo "file1
5166 " | $at_diff - "$at_stdout" || at_failed=:
5168 77) echo 77 > "$at_status_file"; exit 77;;
5170 *) echo "$at_srcdir/delete01.at:26: exit code was $at_status, expected 0"
5176 echo 1 > "$at_status_file"
5182 echo "$at_srcdir/delete01.at:26:
5185 TEST_TAR_FORMAT=posix
5186 export TEST_TAR_FORMAT
5187 TAR_OPTIONS=\"-H posix\"
5191 genfile -l 50000 --file file1
5192 genfile -l 1024 --file file2
5193 tar cf archive file1 file2
5194 tar f archive --delete file2
5196 echo delete01.at:26 >"$at_check_line_file"
5199 if test -n "$at_traceon"; then
5200 echo 'Not enabling shell tracing (command contains an embedded newline)'
5203 if test -n "$at_trace_this"; then
5207 TEST_TAR_FORMAT=posix
5208 export TEST_TAR_FORMAT
5209 TAR_OPTIONS="-H posix"
5213 genfile -l 50000 --file file1
5214 genfile -l 1024 --file file2
5215 tar cf archive file1 file2
5216 tar f archive --delete file2
5217 tar tf archive) ) >"$at_stdout" 2>"$at_stder1"
5219 grep '^ *+' "$at_stder1" >&2
5220 grep -v '^ *+' "$at_stder1" >"$at_stderr"
5225 TEST_TAR_FORMAT=posix
5226 export TEST_TAR_FORMAT
5227 TAR_OPTIONS="-H posix"
5231 genfile -l 50000 --file file1
5232 genfile -l 1024 --file file2
5233 tar cf archive file1 file2
5234 tar f archive --delete file2
5235 tar tf archive) ) >"$at_stdout" 2>"$at_stderr"
5240 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
5241 echo >>"$at_stdout"; echo "file1
5242 " | $at_diff - "$at_stdout" || at_failed=:
5244 77) echo 77 > "$at_status_file"; exit 77;;
5246 *) echo "$at_srcdir/delete01.at:26: exit code was $at_status, expected 0"
5252 echo 1 > "$at_status_file"
5258 echo "$at_srcdir/delete01.at:26:
5262 export TEST_TAR_FORMAT
5263 TAR_OPTIONS=\"-H gnu\"
5267 genfile -l 50000 --file file1
5268 genfile -l 1024 --file file2
5269 tar cf archive file1 file2
5270 tar f archive --delete file2
5272 echo delete01.at:26 >"$at_check_line_file"
5275 if test -n "$at_traceon"; then
5276 echo 'Not enabling shell tracing (command contains an embedded newline)'
5279 if test -n "$at_trace_this"; then
5284 export TEST_TAR_FORMAT
5285 TAR_OPTIONS="-H gnu"
5289 genfile -l 50000 --file file1
5290 genfile -l 1024 --file file2
5291 tar cf archive file1 file2
5292 tar f archive --delete file2
5293 tar tf archive) ) >"$at_stdout" 2>"$at_stder1"
5295 grep '^ *+' "$at_stder1" >&2
5296 grep -v '^ *+' "$at_stder1" >"$at_stderr"
5302 export TEST_TAR_FORMAT
5303 TAR_OPTIONS="-H gnu"
5307 genfile -l 50000 --file file1
5308 genfile -l 1024 --file file2
5309 tar cf archive file1 file2
5310 tar f archive --delete file2
5311 tar tf archive) ) >"$at_stdout" 2>"$at_stderr"
5316 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
5317 echo >>"$at_stdout"; echo "file1
5318 " | $at_diff - "$at_stdout" || at_failed=:
5320 77) echo 77 > "$at_status_file"; exit 77;;
5322 *) echo "$at_srcdir/delete01.at:26: exit code was $at_status, expected 0"
5328 echo 1 > "$at_status_file"
5337 $at_times_p && times >"$at_times_file"
5338 ) 5>&1 2>&1 | eval $at_tee_pipe
5339 at_status=`cat "$at_status_file"`
5342 14 ) # 14. delete02.at:23: deleting a member from stdin archive
5343 at_setup_line='delete02.at:23'
5344 at_desc="deleting a member from stdin archive"
5345 $at_quiet $ECHO_N " 14: deleting a member from stdin archive $ECHO_C"
5347 test -f $XFAILFILE && at_xfail=yes
5348 echo "# -*- compilation -*-" >> "$at_group_log"
5350 echo "14. delete02.at:23: testing ..."
5358 echo "$at_srcdir/delete02.at:26:
5362 export TEST_TAR_FORMAT
5363 TAR_OPTIONS=\"-H v7\"
5367 genfile -l 3073 -p zeros --file 1
5370 tar cf archive 1 2 3
5372 cat archive | tar f - --delete 2 > archive2
5375 echo delete02.at:26 >"$at_check_line_file"
5378 if test -n "$at_traceon"; then
5379 echo 'Not enabling shell tracing (command contains an embedded newline)'
5382 if test -n "$at_trace_this"; then
5387 export TEST_TAR_FORMAT
5392 genfile -l 3073 -p zeros --file 1
5395 tar cf archive 1 2 3
5397 cat archive | tar f - --delete 2 > archive2
5399 tar tf archive2) ) >"$at_stdout" 2>"$at_stder1"
5401 grep '^ *+' "$at_stder1" >&2
5402 grep -v '^ *+' "$at_stder1" >"$at_stderr"
5408 export TEST_TAR_FORMAT
5413 genfile -l 3073 -p zeros --file 1
5416 tar cf archive 1 2 3
5418 cat archive | tar f - --delete 2 > archive2
5420 tar tf archive2) ) >"$at_stdout" 2>"$at_stderr"
5425 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
5426 echo >>"$at_stdout"; echo "1
5432 " | $at_diff - "$at_stdout" || at_failed=:
5434 77) echo 77 > "$at_status_file"; exit 77;;
5436 *) echo "$at_srcdir/delete02.at:26: exit code was $at_status, expected 0"
5442 echo 1 > "$at_status_file"
5448 echo "$at_srcdir/delete02.at:26:
5451 TEST_TAR_FORMAT=oldgnu
5452 export TEST_TAR_FORMAT
5453 TAR_OPTIONS=\"-H oldgnu\"
5457 genfile -l 3073 -p zeros --file 1
5460 tar cf archive 1 2 3
5462 cat archive | tar f - --delete 2 > archive2
5465 echo delete02.at:26 >"$at_check_line_file"
5468 if test -n "$at_traceon"; then
5469 echo 'Not enabling shell tracing (command contains an embedded newline)'
5472 if test -n "$at_trace_this"; then
5476 TEST_TAR_FORMAT=oldgnu
5477 export TEST_TAR_FORMAT
5478 TAR_OPTIONS="-H oldgnu"
5482 genfile -l 3073 -p zeros --file 1
5485 tar cf archive 1 2 3
5487 cat archive | tar f - --delete 2 > archive2
5489 tar tf archive2) ) >"$at_stdout" 2>"$at_stder1"
5491 grep '^ *+' "$at_stder1" >&2
5492 grep -v '^ *+' "$at_stder1" >"$at_stderr"
5497 TEST_TAR_FORMAT=oldgnu
5498 export TEST_TAR_FORMAT
5499 TAR_OPTIONS="-H oldgnu"
5503 genfile -l 3073 -p zeros --file 1
5506 tar cf archive 1 2 3
5508 cat archive | tar f - --delete 2 > archive2
5510 tar tf archive2) ) >"$at_stdout" 2>"$at_stderr"
5515 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
5516 echo >>"$at_stdout"; echo "1
5522 " | $at_diff - "$at_stdout" || at_failed=:
5524 77) echo 77 > "$at_status_file"; exit 77;;
5526 *) echo "$at_srcdir/delete02.at:26: exit code was $at_status, expected 0"
5532 echo 1 > "$at_status_file"
5538 echo "$at_srcdir/delete02.at:26:
5541 TEST_TAR_FORMAT=ustar
5542 export TEST_TAR_FORMAT
5543 TAR_OPTIONS=\"-H ustar\"
5547 genfile -l 3073 -p zeros --file 1
5550 tar cf archive 1 2 3
5552 cat archive | tar f - --delete 2 > archive2
5555 echo delete02.at:26 >"$at_check_line_file"
5558 if test -n "$at_traceon"; then
5559 echo 'Not enabling shell tracing (command contains an embedded newline)'
5562 if test -n "$at_trace_this"; then
5566 TEST_TAR_FORMAT=ustar
5567 export TEST_TAR_FORMAT
5568 TAR_OPTIONS="-H ustar"
5572 genfile -l 3073 -p zeros --file 1
5575 tar cf archive 1 2 3
5577 cat archive | tar f - --delete 2 > archive2
5579 tar tf archive2) ) >"$at_stdout" 2>"$at_stder1"
5581 grep '^ *+' "$at_stder1" >&2
5582 grep -v '^ *+' "$at_stder1" >"$at_stderr"
5587 TEST_TAR_FORMAT=ustar
5588 export TEST_TAR_FORMAT
5589 TAR_OPTIONS="-H ustar"
5593 genfile -l 3073 -p zeros --file 1
5596 tar cf archive 1 2 3
5598 cat archive | tar f - --delete 2 > archive2
5600 tar tf archive2) ) >"$at_stdout" 2>"$at_stderr"
5605 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
5606 echo >>"$at_stdout"; echo "1
5612 " | $at_diff - "$at_stdout" || at_failed=:
5614 77) echo 77 > "$at_status_file"; exit 77;;
5616 *) echo "$at_srcdir/delete02.at:26: exit code was $at_status, expected 0"
5622 echo 1 > "$at_status_file"
5628 echo "$at_srcdir/delete02.at:26:
5631 TEST_TAR_FORMAT=posix
5632 export TEST_TAR_FORMAT
5633 TAR_OPTIONS=\"-H posix\"
5637 genfile -l 3073 -p zeros --file 1
5640 tar cf archive 1 2 3
5642 cat archive | tar f - --delete 2 > archive2
5645 echo delete02.at:26 >"$at_check_line_file"
5648 if test -n "$at_traceon"; then
5649 echo 'Not enabling shell tracing (command contains an embedded newline)'
5652 if test -n "$at_trace_this"; then
5656 TEST_TAR_FORMAT=posix
5657 export TEST_TAR_FORMAT
5658 TAR_OPTIONS="-H posix"
5662 genfile -l 3073 -p zeros --file 1
5665 tar cf archive 1 2 3
5667 cat archive | tar f - --delete 2 > archive2
5669 tar tf archive2) ) >"$at_stdout" 2>"$at_stder1"
5671 grep '^ *+' "$at_stder1" >&2
5672 grep -v '^ *+' "$at_stder1" >"$at_stderr"
5677 TEST_TAR_FORMAT=posix
5678 export TEST_TAR_FORMAT
5679 TAR_OPTIONS="-H posix"
5683 genfile -l 3073 -p zeros --file 1
5686 tar cf archive 1 2 3
5688 cat archive | tar f - --delete 2 > archive2
5690 tar tf archive2) ) >"$at_stdout" 2>"$at_stderr"
5695 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
5696 echo >>"$at_stdout"; echo "1
5702 " | $at_diff - "$at_stdout" || at_failed=:
5704 77) echo 77 > "$at_status_file"; exit 77;;
5706 *) echo "$at_srcdir/delete02.at:26: exit code was $at_status, expected 0"
5712 echo 1 > "$at_status_file"
5718 echo "$at_srcdir/delete02.at:26:
5722 export TEST_TAR_FORMAT
5723 TAR_OPTIONS=\"-H gnu\"
5727 genfile -l 3073 -p zeros --file 1
5730 tar cf archive 1 2 3
5732 cat archive | tar f - --delete 2 > archive2
5735 echo delete02.at:26 >"$at_check_line_file"
5738 if test -n "$at_traceon"; then
5739 echo 'Not enabling shell tracing (command contains an embedded newline)'
5742 if test -n "$at_trace_this"; then
5747 export TEST_TAR_FORMAT
5748 TAR_OPTIONS="-H gnu"
5752 genfile -l 3073 -p zeros --file 1
5755 tar cf archive 1 2 3
5757 cat archive | tar f - --delete 2 > archive2
5759 tar tf archive2) ) >"$at_stdout" 2>"$at_stder1"
5761 grep '^ *+' "$at_stder1" >&2
5762 grep -v '^ *+' "$at_stder1" >"$at_stderr"
5768 export TEST_TAR_FORMAT
5769 TAR_OPTIONS="-H gnu"
5773 genfile -l 3073 -p zeros --file 1
5776 tar cf archive 1 2 3
5778 cat archive | tar f - --delete 2 > archive2
5780 tar tf archive2) ) >"$at_stdout" 2>"$at_stderr"
5785 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
5786 echo >>"$at_stdout"; echo "1
5792 " | $at_diff - "$at_stdout" || at_failed=:
5794 77) echo 77 > "$at_status_file"; exit 77;;
5796 *) echo "$at_srcdir/delete02.at:26: exit code was $at_status, expected 0"
5802 echo 1 > "$at_status_file"
5811 $at_times_p && times >"$at_times_file"
5812 ) 5>&1 2>&1 | eval $at_tee_pipe
5813 at_status=`cat "$at_status_file"`
5816 15 ) # 15. delete03.at:21: deleting members with long names
5817 at_setup_line='delete03.at:21'
5818 at_desc="deleting members with long names"
5819 $at_quiet $ECHO_N " 15: deleting members with long names $ECHO_C"
5821 test -f $XFAILFILE && at_xfail=yes
5822 echo "# -*- compilation -*-" >> "$at_group_log"
5824 echo "15. delete03.at:21: testing ..."
5834 echo "$at_srcdir/delete03.at:26:
5838 export TEST_TAR_FORMAT
5839 TAR_OPTIONS=\"-H gnu\"
5844 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
5846 for i in 1 2 3 4 5 6 7 8 9
5847 do touch \$prefix\$i
5849 tar -cf archive ./\$prefix* &&
5850 tar --delete -f archive ./\${prefix}5 &&
5853 echo delete03.at:26 >"$at_check_line_file"
5856 if test -n "$at_traceon"; then
5857 echo 'Not enabling shell tracing (command contains a ${...} parameter expansion)'
5860 if test -n "$at_trace_this"; then
5865 export TEST_TAR_FORMAT
5866 TAR_OPTIONS="-H gnu"
5871 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
5873 for i in 1 2 3 4 5 6 7 8 9
5876 tar -cf archive ./$prefix* &&
5877 tar --delete -f archive ./${prefix}5 &&
5879 ) ) >"$at_stdout" 2>"$at_stder1"
5881 grep '^ *+' "$at_stder1" >&2
5882 grep -v '^ *+' "$at_stder1" >"$at_stderr"
5888 export TEST_TAR_FORMAT
5889 TAR_OPTIONS="-H gnu"
5894 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
5896 for i in 1 2 3 4 5 6 7 8 9
5899 tar -cf archive ./$prefix* &&
5900 tar --delete -f archive ./${prefix}5 &&
5902 ) ) >"$at_stdout" 2>"$at_stderr"
5907 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
5908 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
5909 ./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
5910 ./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
5911 ./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
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_formatXX6
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_formatXX7
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_formatXX8
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_formatXX9
5916 " | $at_diff - "$at_stdout" || at_failed=:
5918 77) echo 77 > "$at_status_file"; exit 77;;
5920 *) echo "$at_srcdir/delete03.at:26: exit code was $at_status, expected 0"
5926 echo 1 > "$at_status_file"
5932 echo "$at_srcdir/delete03.at:26:
5935 TEST_TAR_FORMAT=oldgnu
5936 export TEST_TAR_FORMAT
5937 TAR_OPTIONS=\"-H oldgnu\"
5942 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
5944 for i in 1 2 3 4 5 6 7 8 9
5945 do touch \$prefix\$i
5947 tar -cf archive ./\$prefix* &&
5948 tar --delete -f archive ./\${prefix}5 &&
5951 echo delete03.at:26 >"$at_check_line_file"
5954 if test -n "$at_traceon"; then
5955 echo 'Not enabling shell tracing (command contains a ${...} parameter expansion)'
5958 if test -n "$at_trace_this"; then
5962 TEST_TAR_FORMAT=oldgnu
5963 export TEST_TAR_FORMAT
5964 TAR_OPTIONS="-H oldgnu"
5969 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
5971 for i in 1 2 3 4 5 6 7 8 9
5974 tar -cf archive ./$prefix* &&
5975 tar --delete -f archive ./${prefix}5 &&
5977 ) ) >"$at_stdout" 2>"$at_stder1"
5979 grep '^ *+' "$at_stder1" >&2
5980 grep -v '^ *+' "$at_stder1" >"$at_stderr"
5985 TEST_TAR_FORMAT=oldgnu
5986 export TEST_TAR_FORMAT
5987 TAR_OPTIONS="-H oldgnu"
5992 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
5994 for i in 1 2 3 4 5 6 7 8 9
5997 tar -cf archive ./$prefix* &&
5998 tar --delete -f archive ./${prefix}5 &&
6000 ) ) >"$at_stdout" 2>"$at_stderr"
6005 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
6006 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
6007 ./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
6008 ./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
6009 ./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
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_formatXX6
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_formatXX7
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_formatXX8
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_formatXX9
6014 " | $at_diff - "$at_stdout" || at_failed=:
6016 77) echo 77 > "$at_status_file"; exit 77;;
6018 *) echo "$at_srcdir/delete03.at:26: exit code was $at_status, expected 0"
6024 echo 1 > "$at_status_file"
6030 echo "$at_srcdir/delete03.at:26:
6033 TEST_TAR_FORMAT=posix
6034 export TEST_TAR_FORMAT
6035 TAR_OPTIONS=\"-H posix\"
6040 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
6042 for i in 1 2 3 4 5 6 7 8 9
6043 do touch \$prefix\$i
6045 tar -cf archive ./\$prefix* &&
6046 tar --delete -f archive ./\${prefix}5 &&
6049 echo delete03.at:26 >"$at_check_line_file"
6052 if test -n "$at_traceon"; then
6053 echo 'Not enabling shell tracing (command contains a ${...} parameter expansion)'
6056 if test -n "$at_trace_this"; then
6060 TEST_TAR_FORMAT=posix
6061 export TEST_TAR_FORMAT
6062 TAR_OPTIONS="-H posix"
6067 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
6069 for i in 1 2 3 4 5 6 7 8 9
6072 tar -cf archive ./$prefix* &&
6073 tar --delete -f archive ./${prefix}5 &&
6075 ) ) >"$at_stdout" 2>"$at_stder1"
6077 grep '^ *+' "$at_stder1" >&2
6078 grep -v '^ *+' "$at_stder1" >"$at_stderr"
6083 TEST_TAR_FORMAT=posix
6084 export TEST_TAR_FORMAT
6085 TAR_OPTIONS="-H posix"
6090 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
6092 for i in 1 2 3 4 5 6 7 8 9
6095 tar -cf archive ./$prefix* &&
6096 tar --delete -f archive ./${prefix}5 &&
6098 ) ) >"$at_stdout" 2>"$at_stderr"
6103 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
6104 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
6105 ./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
6106 ./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
6107 ./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
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_formatXX6
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_formatXX7
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_formatXX8
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_formatXX9
6112 " | $at_diff - "$at_stdout" || at_failed=:
6114 77) echo 77 > "$at_status_file"; exit 77;;
6116 *) echo "$at_srcdir/delete03.at:26: exit code was $at_status, expected 0"
6122 echo 1 > "$at_status_file"
6131 $at_times_p && times >"$at_times_file"
6132 ) 5>&1 2>&1 | eval $at_tee_pipe
6133 at_status=`cat "$at_status_file"`
6136 16 ) # 16. delete04.at:23: deleting a large last member
6137 at_setup_line='delete04.at:23'
6138 at_desc="deleting a large last member"
6139 $at_quiet $ECHO_N " 16: deleting a large last member $ECHO_C"
6141 test -f $XFAILFILE && at_xfail=yes
6142 echo "# -*- compilation -*-" >> "$at_group_log"
6144 echo "16. delete04.at:23: testing ..."
6152 echo "$at_srcdir/delete04.at:26:
6156 export TEST_TAR_FORMAT
6157 TAR_OPTIONS=\"-H v7\"
6161 genfile -l 3 -f file1
6162 genfile -l 5 -f file2
6163 genfile -l 3 -f file3
6164 genfile -l 6 -f file4
6165 genfile -l 24 -f file5
6166 genfile -l 13 -f file6
6167 genfile -l 1385 -f file7
6168 genfile -l 30 -f file8
6169 genfile -l 10 -f file9
6170 genfile -l 256000 -f file10
6171 tar cf archive file1 file2 file3 file4 file5 file6 file7 file8 file9 file10
6172 tar f archive --delete file10
6175 echo delete04.at:26 >"$at_check_line_file"
6178 if test -n "$at_traceon"; then
6179 echo 'Not enabling shell tracing (command contains an embedded newline)'
6182 if test -n "$at_trace_this"; then
6187 export TEST_TAR_FORMAT
6192 genfile -l 3 -f file1
6193 genfile -l 5 -f file2
6194 genfile -l 3 -f file3
6195 genfile -l 6 -f file4
6196 genfile -l 24 -f file5
6197 genfile -l 13 -f file6
6198 genfile -l 1385 -f file7
6199 genfile -l 30 -f file8
6200 genfile -l 10 -f file9
6201 genfile -l 256000 -f file10
6202 tar cf archive file1 file2 file3 file4 file5 file6 file7 file8 file9 file10
6203 tar f archive --delete file10
6205 ) ) >"$at_stdout" 2>"$at_stder1"
6207 grep '^ *+' "$at_stder1" >&2
6208 grep -v '^ *+' "$at_stder1" >"$at_stderr"
6214 export TEST_TAR_FORMAT
6219 genfile -l 3 -f file1
6220 genfile -l 5 -f file2
6221 genfile -l 3 -f file3
6222 genfile -l 6 -f file4
6223 genfile -l 24 -f file5
6224 genfile -l 13 -f file6
6225 genfile -l 1385 -f file7
6226 genfile -l 30 -f file8
6227 genfile -l 10 -f file9
6228 genfile -l 256000 -f file10
6229 tar cf archive file1 file2 file3 file4 file5 file6 file7 file8 file9 file10
6230 tar f archive --delete file10
6232 ) ) >"$at_stdout" 2>"$at_stderr"
6237 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
6238 echo >>"$at_stdout"; echo "file1
6247 " | $at_diff - "$at_stdout" || at_failed=:
6249 77) echo 77 > "$at_status_file"; exit 77;;
6251 *) echo "$at_srcdir/delete04.at:26: exit code was $at_status, expected 0"
6257 echo 1 > "$at_status_file"
6263 echo "$at_srcdir/delete04.at:26:
6266 TEST_TAR_FORMAT=oldgnu
6267 export TEST_TAR_FORMAT
6268 TAR_OPTIONS=\"-H oldgnu\"
6272 genfile -l 3 -f file1
6273 genfile -l 5 -f file2
6274 genfile -l 3 -f file3
6275 genfile -l 6 -f file4
6276 genfile -l 24 -f file5
6277 genfile -l 13 -f file6
6278 genfile -l 1385 -f file7
6279 genfile -l 30 -f file8
6280 genfile -l 10 -f file9
6281 genfile -l 256000 -f file10
6282 tar cf archive file1 file2 file3 file4 file5 file6 file7 file8 file9 file10
6283 tar f archive --delete file10
6286 echo delete04.at:26 >"$at_check_line_file"
6289 if test -n "$at_traceon"; then
6290 echo 'Not enabling shell tracing (command contains an embedded newline)'
6293 if test -n "$at_trace_this"; then
6297 TEST_TAR_FORMAT=oldgnu
6298 export TEST_TAR_FORMAT
6299 TAR_OPTIONS="-H oldgnu"
6303 genfile -l 3 -f file1
6304 genfile -l 5 -f file2
6305 genfile -l 3 -f file3
6306 genfile -l 6 -f file4
6307 genfile -l 24 -f file5
6308 genfile -l 13 -f file6
6309 genfile -l 1385 -f file7
6310 genfile -l 30 -f file8
6311 genfile -l 10 -f file9
6312 genfile -l 256000 -f file10
6313 tar cf archive file1 file2 file3 file4 file5 file6 file7 file8 file9 file10
6314 tar f archive --delete file10
6316 ) ) >"$at_stdout" 2>"$at_stder1"
6318 grep '^ *+' "$at_stder1" >&2
6319 grep -v '^ *+' "$at_stder1" >"$at_stderr"
6324 TEST_TAR_FORMAT=oldgnu
6325 export TEST_TAR_FORMAT
6326 TAR_OPTIONS="-H oldgnu"
6330 genfile -l 3 -f file1
6331 genfile -l 5 -f file2
6332 genfile -l 3 -f file3
6333 genfile -l 6 -f file4
6334 genfile -l 24 -f file5
6335 genfile -l 13 -f file6
6336 genfile -l 1385 -f file7
6337 genfile -l 30 -f file8
6338 genfile -l 10 -f file9
6339 genfile -l 256000 -f file10
6340 tar cf archive file1 file2 file3 file4 file5 file6 file7 file8 file9 file10
6341 tar f archive --delete file10
6343 ) ) >"$at_stdout" 2>"$at_stderr"
6348 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
6349 echo >>"$at_stdout"; echo "file1
6358 " | $at_diff - "$at_stdout" || at_failed=:
6360 77) echo 77 > "$at_status_file"; exit 77;;
6362 *) echo "$at_srcdir/delete04.at:26: exit code was $at_status, expected 0"
6368 echo 1 > "$at_status_file"
6374 echo "$at_srcdir/delete04.at:26:
6377 TEST_TAR_FORMAT=ustar
6378 export TEST_TAR_FORMAT
6379 TAR_OPTIONS=\"-H ustar\"
6383 genfile -l 3 -f file1
6384 genfile -l 5 -f file2
6385 genfile -l 3 -f file3
6386 genfile -l 6 -f file4
6387 genfile -l 24 -f file5
6388 genfile -l 13 -f file6
6389 genfile -l 1385 -f file7
6390 genfile -l 30 -f file8
6391 genfile -l 10 -f file9
6392 genfile -l 256000 -f file10
6393 tar cf archive file1 file2 file3 file4 file5 file6 file7 file8 file9 file10
6394 tar f archive --delete file10
6397 echo delete04.at:26 >"$at_check_line_file"
6400 if test -n "$at_traceon"; then
6401 echo 'Not enabling shell tracing (command contains an embedded newline)'
6404 if test -n "$at_trace_this"; then
6408 TEST_TAR_FORMAT=ustar
6409 export TEST_TAR_FORMAT
6410 TAR_OPTIONS="-H ustar"
6414 genfile -l 3 -f file1
6415 genfile -l 5 -f file2
6416 genfile -l 3 -f file3
6417 genfile -l 6 -f file4
6418 genfile -l 24 -f file5
6419 genfile -l 13 -f file6
6420 genfile -l 1385 -f file7
6421 genfile -l 30 -f file8
6422 genfile -l 10 -f file9
6423 genfile -l 256000 -f file10
6424 tar cf archive file1 file2 file3 file4 file5 file6 file7 file8 file9 file10
6425 tar f archive --delete file10
6427 ) ) >"$at_stdout" 2>"$at_stder1"
6429 grep '^ *+' "$at_stder1" >&2
6430 grep -v '^ *+' "$at_stder1" >"$at_stderr"
6435 TEST_TAR_FORMAT=ustar
6436 export TEST_TAR_FORMAT
6437 TAR_OPTIONS="-H ustar"
6441 genfile -l 3 -f file1
6442 genfile -l 5 -f file2
6443 genfile -l 3 -f file3
6444 genfile -l 6 -f file4
6445 genfile -l 24 -f file5
6446 genfile -l 13 -f file6
6447 genfile -l 1385 -f file7
6448 genfile -l 30 -f file8
6449 genfile -l 10 -f file9
6450 genfile -l 256000 -f file10
6451 tar cf archive file1 file2 file3 file4 file5 file6 file7 file8 file9 file10
6452 tar f archive --delete file10
6454 ) ) >"$at_stdout" 2>"$at_stderr"
6459 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
6460 echo >>"$at_stdout"; echo "file1
6469 " | $at_diff - "$at_stdout" || at_failed=:
6471 77) echo 77 > "$at_status_file"; exit 77;;
6473 *) echo "$at_srcdir/delete04.at:26: exit code was $at_status, expected 0"
6479 echo 1 > "$at_status_file"
6485 echo "$at_srcdir/delete04.at:26:
6488 TEST_TAR_FORMAT=posix
6489 export TEST_TAR_FORMAT
6490 TAR_OPTIONS=\"-H posix\"
6494 genfile -l 3 -f file1
6495 genfile -l 5 -f file2
6496 genfile -l 3 -f file3
6497 genfile -l 6 -f file4
6498 genfile -l 24 -f file5
6499 genfile -l 13 -f file6
6500 genfile -l 1385 -f file7
6501 genfile -l 30 -f file8
6502 genfile -l 10 -f file9
6503 genfile -l 256000 -f file10
6504 tar cf archive file1 file2 file3 file4 file5 file6 file7 file8 file9 file10
6505 tar f archive --delete file10
6508 echo delete04.at:26 >"$at_check_line_file"
6511 if test -n "$at_traceon"; then
6512 echo 'Not enabling shell tracing (command contains an embedded newline)'
6515 if test -n "$at_trace_this"; then
6519 TEST_TAR_FORMAT=posix
6520 export TEST_TAR_FORMAT
6521 TAR_OPTIONS="-H posix"
6525 genfile -l 3 -f file1
6526 genfile -l 5 -f file2
6527 genfile -l 3 -f file3
6528 genfile -l 6 -f file4
6529 genfile -l 24 -f file5
6530 genfile -l 13 -f file6
6531 genfile -l 1385 -f file7
6532 genfile -l 30 -f file8
6533 genfile -l 10 -f file9
6534 genfile -l 256000 -f file10
6535 tar cf archive file1 file2 file3 file4 file5 file6 file7 file8 file9 file10
6536 tar f archive --delete file10
6538 ) ) >"$at_stdout" 2>"$at_stder1"
6540 grep '^ *+' "$at_stder1" >&2
6541 grep -v '^ *+' "$at_stder1" >"$at_stderr"
6546 TEST_TAR_FORMAT=posix
6547 export TEST_TAR_FORMAT
6548 TAR_OPTIONS="-H posix"
6552 genfile -l 3 -f file1
6553 genfile -l 5 -f file2
6554 genfile -l 3 -f file3
6555 genfile -l 6 -f file4
6556 genfile -l 24 -f file5
6557 genfile -l 13 -f file6
6558 genfile -l 1385 -f file7
6559 genfile -l 30 -f file8
6560 genfile -l 10 -f file9
6561 genfile -l 256000 -f file10
6562 tar cf archive file1 file2 file3 file4 file5 file6 file7 file8 file9 file10
6563 tar f archive --delete file10
6565 ) ) >"$at_stdout" 2>"$at_stderr"
6570 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
6571 echo >>"$at_stdout"; echo "file1
6580 " | $at_diff - "$at_stdout" || at_failed=:
6582 77) echo 77 > "$at_status_file"; exit 77;;
6584 *) echo "$at_srcdir/delete04.at:26: exit code was $at_status, expected 0"
6590 echo 1 > "$at_status_file"
6596 echo "$at_srcdir/delete04.at:26:
6600 export TEST_TAR_FORMAT
6601 TAR_OPTIONS=\"-H gnu\"
6605 genfile -l 3 -f file1
6606 genfile -l 5 -f file2
6607 genfile -l 3 -f file3
6608 genfile -l 6 -f file4
6609 genfile -l 24 -f file5
6610 genfile -l 13 -f file6
6611 genfile -l 1385 -f file7
6612 genfile -l 30 -f file8
6613 genfile -l 10 -f file9
6614 genfile -l 256000 -f file10
6615 tar cf archive file1 file2 file3 file4 file5 file6 file7 file8 file9 file10
6616 tar f archive --delete file10
6619 echo delete04.at:26 >"$at_check_line_file"
6622 if test -n "$at_traceon"; then
6623 echo 'Not enabling shell tracing (command contains an embedded newline)'
6626 if test -n "$at_trace_this"; then
6631 export TEST_TAR_FORMAT
6632 TAR_OPTIONS="-H gnu"
6636 genfile -l 3 -f file1
6637 genfile -l 5 -f file2
6638 genfile -l 3 -f file3
6639 genfile -l 6 -f file4
6640 genfile -l 24 -f file5
6641 genfile -l 13 -f file6
6642 genfile -l 1385 -f file7
6643 genfile -l 30 -f file8
6644 genfile -l 10 -f file9
6645 genfile -l 256000 -f file10
6646 tar cf archive file1 file2 file3 file4 file5 file6 file7 file8 file9 file10
6647 tar f archive --delete file10
6649 ) ) >"$at_stdout" 2>"$at_stder1"
6651 grep '^ *+' "$at_stder1" >&2
6652 grep -v '^ *+' "$at_stder1" >"$at_stderr"
6658 export TEST_TAR_FORMAT
6659 TAR_OPTIONS="-H gnu"
6663 genfile -l 3 -f file1
6664 genfile -l 5 -f file2
6665 genfile -l 3 -f file3
6666 genfile -l 6 -f file4
6667 genfile -l 24 -f file5
6668 genfile -l 13 -f file6
6669 genfile -l 1385 -f file7
6670 genfile -l 30 -f file8
6671 genfile -l 10 -f file9
6672 genfile -l 256000 -f file10
6673 tar cf archive file1 file2 file3 file4 file5 file6 file7 file8 file9 file10
6674 tar f archive --delete file10
6676 ) ) >"$at_stdout" 2>"$at_stderr"
6681 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
6682 echo >>"$at_stdout"; echo "file1
6691 " | $at_diff - "$at_stdout" || at_failed=:
6693 77) echo 77 > "$at_status_file"; exit 77;;
6695 *) echo "$at_srcdir/delete04.at:26: exit code was $at_status, expected 0"
6701 echo 1 > "$at_status_file"
6710 $at_times_p && times >"$at_times_file"
6711 ) 5>&1 2>&1 | eval $at_tee_pipe
6712 at_status=`cat "$at_status_file"`
6715 17 ) # 17. delete05.at:27: deleting non-existing member
6716 at_setup_line='delete05.at:27'
6717 at_desc="deleting non-existing member"
6718 $at_quiet $ECHO_N " 17: deleting non-existing member $ECHO_C"
6720 test -f $XFAILFILE && at_xfail=yes
6721 echo "# -*- compilation -*-" >> "$at_group_log"
6723 echo "17. delete05.at:27: testing ..."
6731 echo "$at_srcdir/delete05.at:30:
6735 export TEST_TAR_FORMAT
6736 TAR_OPTIONS=\"-H v7\"
6740 genfile -l 1024 -f en
6741 genfile -l 1024 -f to
6743 tar cf archive en to
6744 # Make sure we don't use bogus blocking factor.
6745 # GNU tar up to and including 1.14.91 produced an empty archive this way:
6746 tar --file archive --blocking-factor=20 --delete tre
6749 echo delete05.at:30 >"$at_check_line_file"
6752 if test -n "$at_traceon"; then
6753 echo 'Not enabling shell tracing (command contains an embedded newline)'
6756 if test -n "$at_trace_this"; then
6761 export TEST_TAR_FORMAT
6766 genfile -l 1024 -f en
6767 genfile -l 1024 -f to
6769 tar cf archive en to
6770 # Make sure we don't use bogus blocking factor.
6771 # GNU tar up to and including 1.14.91 produced an empty archive this way:
6772 tar --file archive --blocking-factor=20 --delete tre
6774 ) ) >"$at_stdout" 2>"$at_stder1"
6776 grep '^ *+' "$at_stder1" >&2
6777 grep -v '^ *+' "$at_stder1" >"$at_stderr"
6783 export TEST_TAR_FORMAT
6788 genfile -l 1024 -f en
6789 genfile -l 1024 -f to
6791 tar cf archive en to
6792 # Make sure we don't use bogus blocking factor.
6793 # GNU tar up to and including 1.14.91 produced an empty archive this way:
6794 tar --file archive --blocking-factor=20 --delete tre
6796 ) ) >"$at_stdout" 2>"$at_stderr"
6801 echo >>"$at_stderr"; echo "tar: tre: Not found in archive
6802 tar: Error exit delayed from previous errors
6803 " | $at_diff - "$at_stderr" || at_failed=:
6804 echo >>"$at_stdout"; echo "en
6806 " | $at_diff - "$at_stdout" || at_failed=:
6808 77) echo 77 > "$at_status_file"; exit 77;;
6810 *) echo "$at_srcdir/delete05.at:30: exit code was $at_status, expected 0"
6816 echo 1 > "$at_status_file"
6822 echo "$at_srcdir/delete05.at:30:
6825 TEST_TAR_FORMAT=oldgnu
6826 export TEST_TAR_FORMAT
6827 TAR_OPTIONS=\"-H oldgnu\"
6831 genfile -l 1024 -f en
6832 genfile -l 1024 -f to
6834 tar cf archive en to
6835 # Make sure we don't use bogus blocking factor.
6836 # GNU tar up to and including 1.14.91 produced an empty archive this way:
6837 tar --file archive --blocking-factor=20 --delete tre
6840 echo delete05.at:30 >"$at_check_line_file"
6843 if test -n "$at_traceon"; then
6844 echo 'Not enabling shell tracing (command contains an embedded newline)'
6847 if test -n "$at_trace_this"; then
6851 TEST_TAR_FORMAT=oldgnu
6852 export TEST_TAR_FORMAT
6853 TAR_OPTIONS="-H oldgnu"
6857 genfile -l 1024 -f en
6858 genfile -l 1024 -f to
6860 tar cf archive en to
6861 # Make sure we don't use bogus blocking factor.
6862 # GNU tar up to and including 1.14.91 produced an empty archive this way:
6863 tar --file archive --blocking-factor=20 --delete tre
6865 ) ) >"$at_stdout" 2>"$at_stder1"
6867 grep '^ *+' "$at_stder1" >&2
6868 grep -v '^ *+' "$at_stder1" >"$at_stderr"
6873 TEST_TAR_FORMAT=oldgnu
6874 export TEST_TAR_FORMAT
6875 TAR_OPTIONS="-H oldgnu"
6879 genfile -l 1024 -f en
6880 genfile -l 1024 -f to
6882 tar cf archive en to
6883 # Make sure we don't use bogus blocking factor.
6884 # GNU tar up to and including 1.14.91 produced an empty archive this way:
6885 tar --file archive --blocking-factor=20 --delete tre
6887 ) ) >"$at_stdout" 2>"$at_stderr"
6892 echo >>"$at_stderr"; echo "tar: tre: Not found in archive
6893 tar: Error exit delayed from previous errors
6894 " | $at_diff - "$at_stderr" || at_failed=:
6895 echo >>"$at_stdout"; echo "en
6897 " | $at_diff - "$at_stdout" || at_failed=:
6899 77) echo 77 > "$at_status_file"; exit 77;;
6901 *) echo "$at_srcdir/delete05.at:30: exit code was $at_status, expected 0"
6907 echo 1 > "$at_status_file"
6913 echo "$at_srcdir/delete05.at:30:
6916 TEST_TAR_FORMAT=ustar
6917 export TEST_TAR_FORMAT
6918 TAR_OPTIONS=\"-H ustar\"
6922 genfile -l 1024 -f en
6923 genfile -l 1024 -f to
6925 tar cf archive en to
6926 # Make sure we don't use bogus blocking factor.
6927 # GNU tar up to and including 1.14.91 produced an empty archive this way:
6928 tar --file archive --blocking-factor=20 --delete tre
6931 echo delete05.at:30 >"$at_check_line_file"
6934 if test -n "$at_traceon"; then
6935 echo 'Not enabling shell tracing (command contains an embedded newline)'
6938 if test -n "$at_trace_this"; then
6942 TEST_TAR_FORMAT=ustar
6943 export TEST_TAR_FORMAT
6944 TAR_OPTIONS="-H ustar"
6948 genfile -l 1024 -f en
6949 genfile -l 1024 -f to
6951 tar cf archive en to
6952 # Make sure we don't use bogus blocking factor.
6953 # GNU tar up to and including 1.14.91 produced an empty archive this way:
6954 tar --file archive --blocking-factor=20 --delete tre
6956 ) ) >"$at_stdout" 2>"$at_stder1"
6958 grep '^ *+' "$at_stder1" >&2
6959 grep -v '^ *+' "$at_stder1" >"$at_stderr"
6964 TEST_TAR_FORMAT=ustar
6965 export TEST_TAR_FORMAT
6966 TAR_OPTIONS="-H ustar"
6970 genfile -l 1024 -f en
6971 genfile -l 1024 -f to
6973 tar cf archive en to
6974 # Make sure we don't use bogus blocking factor.
6975 # GNU tar up to and including 1.14.91 produced an empty archive this way:
6976 tar --file archive --blocking-factor=20 --delete tre
6978 ) ) >"$at_stdout" 2>"$at_stderr"
6983 echo >>"$at_stderr"; echo "tar: tre: Not found in archive
6984 tar: Error exit delayed from previous errors
6985 " | $at_diff - "$at_stderr" || at_failed=:
6986 echo >>"$at_stdout"; echo "en
6988 " | $at_diff - "$at_stdout" || at_failed=:
6990 77) echo 77 > "$at_status_file"; exit 77;;
6992 *) echo "$at_srcdir/delete05.at:30: exit code was $at_status, expected 0"
6998 echo 1 > "$at_status_file"
7004 echo "$at_srcdir/delete05.at:30:
7007 TEST_TAR_FORMAT=posix
7008 export TEST_TAR_FORMAT
7009 TAR_OPTIONS=\"-H posix\"
7013 genfile -l 1024 -f en
7014 genfile -l 1024 -f to
7016 tar cf archive en to
7017 # Make sure we don't use bogus blocking factor.
7018 # GNU tar up to and including 1.14.91 produced an empty archive this way:
7019 tar --file archive --blocking-factor=20 --delete tre
7022 echo delete05.at:30 >"$at_check_line_file"
7025 if test -n "$at_traceon"; then
7026 echo 'Not enabling shell tracing (command contains an embedded newline)'
7029 if test -n "$at_trace_this"; then
7033 TEST_TAR_FORMAT=posix
7034 export TEST_TAR_FORMAT
7035 TAR_OPTIONS="-H posix"
7039 genfile -l 1024 -f en
7040 genfile -l 1024 -f to
7042 tar cf archive en to
7043 # Make sure we don't use bogus blocking factor.
7044 # GNU tar up to and including 1.14.91 produced an empty archive this way:
7045 tar --file archive --blocking-factor=20 --delete tre
7047 ) ) >"$at_stdout" 2>"$at_stder1"
7049 grep '^ *+' "$at_stder1" >&2
7050 grep -v '^ *+' "$at_stder1" >"$at_stderr"
7055 TEST_TAR_FORMAT=posix
7056 export TEST_TAR_FORMAT
7057 TAR_OPTIONS="-H posix"
7061 genfile -l 1024 -f en
7062 genfile -l 1024 -f to
7064 tar cf archive en to
7065 # Make sure we don't use bogus blocking factor.
7066 # GNU tar up to and including 1.14.91 produced an empty archive this way:
7067 tar --file archive --blocking-factor=20 --delete tre
7069 ) ) >"$at_stdout" 2>"$at_stderr"
7074 echo >>"$at_stderr"; echo "tar: tre: Not found in archive
7075 tar: Error exit delayed from previous errors
7076 " | $at_diff - "$at_stderr" || at_failed=:
7077 echo >>"$at_stdout"; echo "en
7079 " | $at_diff - "$at_stdout" || at_failed=:
7081 77) echo 77 > "$at_status_file"; exit 77;;
7083 *) echo "$at_srcdir/delete05.at:30: exit code was $at_status, expected 0"
7089 echo 1 > "$at_status_file"
7095 echo "$at_srcdir/delete05.at:30:
7099 export TEST_TAR_FORMAT
7100 TAR_OPTIONS=\"-H gnu\"
7104 genfile -l 1024 -f en
7105 genfile -l 1024 -f to
7107 tar cf archive en to
7108 # Make sure we don't use bogus blocking factor.
7109 # GNU tar up to and including 1.14.91 produced an empty archive this way:
7110 tar --file archive --blocking-factor=20 --delete tre
7113 echo delete05.at:30 >"$at_check_line_file"
7116 if test -n "$at_traceon"; then
7117 echo 'Not enabling shell tracing (command contains an embedded newline)'
7120 if test -n "$at_trace_this"; then
7125 export TEST_TAR_FORMAT
7126 TAR_OPTIONS="-H gnu"
7130 genfile -l 1024 -f en
7131 genfile -l 1024 -f to
7133 tar cf archive en to
7134 # Make sure we don't use bogus blocking factor.
7135 # GNU tar up to and including 1.14.91 produced an empty archive this way:
7136 tar --file archive --blocking-factor=20 --delete tre
7138 ) ) >"$at_stdout" 2>"$at_stder1"
7140 grep '^ *+' "$at_stder1" >&2
7141 grep -v '^ *+' "$at_stder1" >"$at_stderr"
7147 export TEST_TAR_FORMAT
7148 TAR_OPTIONS="-H gnu"
7152 genfile -l 1024 -f en
7153 genfile -l 1024 -f to
7155 tar cf archive en to
7156 # Make sure we don't use bogus blocking factor.
7157 # GNU tar up to and including 1.14.91 produced an empty archive this way:
7158 tar --file archive --blocking-factor=20 --delete tre
7160 ) ) >"$at_stdout" 2>"$at_stderr"
7165 echo >>"$at_stderr"; echo "tar: tre: Not found in archive
7166 tar: Error exit delayed from previous errors
7167 " | $at_diff - "$at_stderr" || at_failed=:
7168 echo >>"$at_stdout"; echo "en
7170 " | $at_diff - "$at_stdout" || at_failed=:
7172 77) echo 77 > "$at_status_file"; exit 77;;
7174 *) echo "$at_srcdir/delete05.at:30: exit code was $at_status, expected 0"
7180 echo 1 > "$at_status_file"
7189 $at_times_p && times >"$at_times_file"
7190 ) 5>&1 2>&1 | eval $at_tee_pipe
7191 at_status=`cat "$at_status_file"`
7194 18 ) # 18. extrac01.at:23: extract over an existing directory
7195 at_setup_line='extrac01.at:23'
7196 at_desc="extract over an existing directory"
7197 $at_quiet $ECHO_N " 18: extract over an existing directory $ECHO_C"
7199 test -f $XFAILFILE && at_xfail=yes
7200 echo "# -*- compilation -*-" >> "$at_group_log"
7202 echo "18. extrac01.at:23: testing ..."
7210 echo "$at_srcdir/extrac01.at:26:
7214 export TEST_TAR_FORMAT
7215 TAR_OPTIONS=\"-H v7\"
7220 touch directory/file
7221 tar cf archive directory || exit 1
7222 tar xf archive || exit 1
7224 echo extrac01.at:26 >"$at_check_line_file"
7227 if test -n "$at_traceon"; then
7228 echo 'Not enabling shell tracing (command contains an embedded newline)'
7231 if test -n "$at_trace_this"; then
7236 export TEST_TAR_FORMAT
7242 touch directory/file
7243 tar cf archive directory || exit 1
7244 tar xf archive || exit 1
7245 ) ) >"$at_stdout" 2>"$at_stder1"
7247 grep '^ *+' "$at_stder1" >&2
7248 grep -v '^ *+' "$at_stder1" >"$at_stderr"
7254 export TEST_TAR_FORMAT
7260 touch directory/file
7261 tar cf archive directory || exit 1
7262 tar xf archive || exit 1
7263 ) ) >"$at_stdout" 2>"$at_stderr"
7268 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
7269 $at_diff "$at_devnull" "$at_stdout" || at_failed=:
7271 77) echo 77 > "$at_status_file"; exit 77;;
7273 *) echo "$at_srcdir/extrac01.at:26: exit code was $at_status, expected 0"
7279 echo 1 > "$at_status_file"
7285 echo "$at_srcdir/extrac01.at:26:
7288 TEST_TAR_FORMAT=oldgnu
7289 export TEST_TAR_FORMAT
7290 TAR_OPTIONS=\"-H oldgnu\"
7295 touch directory/file
7296 tar cf archive directory || exit 1
7297 tar xf archive || exit 1
7299 echo extrac01.at:26 >"$at_check_line_file"
7302 if test -n "$at_traceon"; then
7303 echo 'Not enabling shell tracing (command contains an embedded newline)'
7306 if test -n "$at_trace_this"; then
7310 TEST_TAR_FORMAT=oldgnu
7311 export TEST_TAR_FORMAT
7312 TAR_OPTIONS="-H oldgnu"
7317 touch directory/file
7318 tar cf archive directory || exit 1
7319 tar xf archive || exit 1
7320 ) ) >"$at_stdout" 2>"$at_stder1"
7322 grep '^ *+' "$at_stder1" >&2
7323 grep -v '^ *+' "$at_stder1" >"$at_stderr"
7328 TEST_TAR_FORMAT=oldgnu
7329 export TEST_TAR_FORMAT
7330 TAR_OPTIONS="-H oldgnu"
7335 touch directory/file
7336 tar cf archive directory || exit 1
7337 tar xf archive || exit 1
7338 ) ) >"$at_stdout" 2>"$at_stderr"
7343 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
7344 $at_diff "$at_devnull" "$at_stdout" || at_failed=:
7346 77) echo 77 > "$at_status_file"; exit 77;;
7348 *) echo "$at_srcdir/extrac01.at:26: exit code was $at_status, expected 0"
7354 echo 1 > "$at_status_file"
7360 echo "$at_srcdir/extrac01.at:26:
7363 TEST_TAR_FORMAT=ustar
7364 export TEST_TAR_FORMAT
7365 TAR_OPTIONS=\"-H ustar\"
7370 touch directory/file
7371 tar cf archive directory || exit 1
7372 tar xf archive || exit 1
7374 echo extrac01.at:26 >"$at_check_line_file"
7377 if test -n "$at_traceon"; then
7378 echo 'Not enabling shell tracing (command contains an embedded newline)'
7381 if test -n "$at_trace_this"; then
7385 TEST_TAR_FORMAT=ustar
7386 export TEST_TAR_FORMAT
7387 TAR_OPTIONS="-H ustar"
7392 touch directory/file
7393 tar cf archive directory || exit 1
7394 tar xf archive || exit 1
7395 ) ) >"$at_stdout" 2>"$at_stder1"
7397 grep '^ *+' "$at_stder1" >&2
7398 grep -v '^ *+' "$at_stder1" >"$at_stderr"
7403 TEST_TAR_FORMAT=ustar
7404 export TEST_TAR_FORMAT
7405 TAR_OPTIONS="-H ustar"
7410 touch directory/file
7411 tar cf archive directory || exit 1
7412 tar xf archive || exit 1
7413 ) ) >"$at_stdout" 2>"$at_stderr"
7418 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
7419 $at_diff "$at_devnull" "$at_stdout" || at_failed=:
7421 77) echo 77 > "$at_status_file"; exit 77;;
7423 *) echo "$at_srcdir/extrac01.at:26: exit code was $at_status, expected 0"
7429 echo 1 > "$at_status_file"
7435 echo "$at_srcdir/extrac01.at:26:
7438 TEST_TAR_FORMAT=posix
7439 export TEST_TAR_FORMAT
7440 TAR_OPTIONS=\"-H posix\"
7445 touch directory/file
7446 tar cf archive directory || exit 1
7447 tar xf archive || exit 1
7449 echo extrac01.at:26 >"$at_check_line_file"
7452 if test -n "$at_traceon"; then
7453 echo 'Not enabling shell tracing (command contains an embedded newline)'
7456 if test -n "$at_trace_this"; then
7460 TEST_TAR_FORMAT=posix
7461 export TEST_TAR_FORMAT
7462 TAR_OPTIONS="-H posix"
7467 touch directory/file
7468 tar cf archive directory || exit 1
7469 tar xf archive || exit 1
7470 ) ) >"$at_stdout" 2>"$at_stder1"
7472 grep '^ *+' "$at_stder1" >&2
7473 grep -v '^ *+' "$at_stder1" >"$at_stderr"
7478 TEST_TAR_FORMAT=posix
7479 export TEST_TAR_FORMAT
7480 TAR_OPTIONS="-H posix"
7485 touch directory/file
7486 tar cf archive directory || exit 1
7487 tar xf archive || exit 1
7488 ) ) >"$at_stdout" 2>"$at_stderr"
7493 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
7494 $at_diff "$at_devnull" "$at_stdout" || at_failed=:
7496 77) echo 77 > "$at_status_file"; exit 77;;
7498 *) echo "$at_srcdir/extrac01.at:26: exit code was $at_status, expected 0"
7504 echo 1 > "$at_status_file"
7510 echo "$at_srcdir/extrac01.at:26:
7514 export TEST_TAR_FORMAT
7515 TAR_OPTIONS=\"-H gnu\"
7520 touch directory/file
7521 tar cf archive directory || exit 1
7522 tar xf archive || exit 1
7524 echo extrac01.at:26 >"$at_check_line_file"
7527 if test -n "$at_traceon"; then
7528 echo 'Not enabling shell tracing (command contains an embedded newline)'
7531 if test -n "$at_trace_this"; then
7536 export TEST_TAR_FORMAT
7537 TAR_OPTIONS="-H gnu"
7542 touch directory/file
7543 tar cf archive directory || exit 1
7544 tar xf archive || exit 1
7545 ) ) >"$at_stdout" 2>"$at_stder1"
7547 grep '^ *+' "$at_stder1" >&2
7548 grep -v '^ *+' "$at_stder1" >"$at_stderr"
7554 export TEST_TAR_FORMAT
7555 TAR_OPTIONS="-H gnu"
7560 touch directory/file
7561 tar cf archive directory || exit 1
7562 tar xf archive || exit 1
7563 ) ) >"$at_stdout" 2>"$at_stderr"
7568 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
7569 $at_diff "$at_devnull" "$at_stdout" || at_failed=:
7571 77) echo 77 > "$at_status_file"; exit 77;;
7573 *) echo "$at_srcdir/extrac01.at:26: exit code was $at_status, expected 0"
7579 echo 1 > "$at_status_file"
7588 $at_times_p && times >"$at_times_file"
7589 ) 5>&1 2>&1 | eval $at_tee_pipe
7590 at_status=`cat "$at_status_file"`
7593 19 ) # 19. extrac02.at:23: extracting symlinks over an existing file
7594 at_setup_line='extrac02.at:23'
7595 at_desc="extracting symlinks over an existing file"
7596 $at_quiet $ECHO_N " 19: extracting symlinks over an existing file $ECHO_C"
7598 test -f $XFAILFILE && at_xfail=yes
7599 echo "# -*- compilation -*-" >> "$at_group_log"
7601 echo "19. extrac02.at:23: testing ..."
7606 # FIXME: Skip if symlinks are not supported on the system
7611 echo "$at_srcdir/extrac02.at:28:
7615 export TEST_TAR_FORMAT
7616 TAR_OPTIONS=\"-H v7\"
7621 ln -s file link 2> /dev/null || ln file link
7627 echo extrac02.at:28 >"$at_check_line_file"
7630 if test -n "$at_traceon"; then
7631 echo 'Not enabling shell tracing (command contains an embedded newline)'
7634 if test -n "$at_trace_this"; then
7639 export TEST_TAR_FORMAT
7645 ln -s file link 2> /dev/null || ln file link
7650 ) ) >"$at_stdout" 2>"$at_stder1"
7652 grep '^ *+' "$at_stder1" >&2
7653 grep -v '^ *+' "$at_stder1" >"$at_stderr"
7659 export TEST_TAR_FORMAT
7665 ln -s file link 2> /dev/null || ln file link
7670 ) ) >"$at_stdout" 2>"$at_stderr"
7675 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
7676 $at_diff "$at_devnull" "$at_stdout" || at_failed=:
7678 77) echo 77 > "$at_status_file"; exit 77;;
7680 *) echo "$at_srcdir/extrac02.at:28: exit code was $at_status, expected 0"
7686 echo 1 > "$at_status_file"
7692 echo "$at_srcdir/extrac02.at:28:
7695 TEST_TAR_FORMAT=oldgnu
7696 export TEST_TAR_FORMAT
7697 TAR_OPTIONS=\"-H oldgnu\"
7702 ln -s file link 2> /dev/null || ln file link
7708 echo extrac02.at:28 >"$at_check_line_file"
7711 if test -n "$at_traceon"; then
7712 echo 'Not enabling shell tracing (command contains an embedded newline)'
7715 if test -n "$at_trace_this"; then
7719 TEST_TAR_FORMAT=oldgnu
7720 export TEST_TAR_FORMAT
7721 TAR_OPTIONS="-H oldgnu"
7726 ln -s file link 2> /dev/null || ln file link
7731 ) ) >"$at_stdout" 2>"$at_stder1"
7733 grep '^ *+' "$at_stder1" >&2
7734 grep -v '^ *+' "$at_stder1" >"$at_stderr"
7739 TEST_TAR_FORMAT=oldgnu
7740 export TEST_TAR_FORMAT
7741 TAR_OPTIONS="-H oldgnu"
7746 ln -s file link 2> /dev/null || ln file link
7751 ) ) >"$at_stdout" 2>"$at_stderr"
7756 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
7757 $at_diff "$at_devnull" "$at_stdout" || at_failed=:
7759 77) echo 77 > "$at_status_file"; exit 77;;
7761 *) echo "$at_srcdir/extrac02.at:28: exit code was $at_status, expected 0"
7767 echo 1 > "$at_status_file"
7773 echo "$at_srcdir/extrac02.at:28:
7776 TEST_TAR_FORMAT=ustar
7777 export TEST_TAR_FORMAT
7778 TAR_OPTIONS=\"-H ustar\"
7783 ln -s file link 2> /dev/null || ln file link
7789 echo extrac02.at:28 >"$at_check_line_file"
7792 if test -n "$at_traceon"; then
7793 echo 'Not enabling shell tracing (command contains an embedded newline)'
7796 if test -n "$at_trace_this"; then
7800 TEST_TAR_FORMAT=ustar
7801 export TEST_TAR_FORMAT
7802 TAR_OPTIONS="-H ustar"
7807 ln -s file link 2> /dev/null || ln file link
7812 ) ) >"$at_stdout" 2>"$at_stder1"
7814 grep '^ *+' "$at_stder1" >&2
7815 grep -v '^ *+' "$at_stder1" >"$at_stderr"
7820 TEST_TAR_FORMAT=ustar
7821 export TEST_TAR_FORMAT
7822 TAR_OPTIONS="-H ustar"
7827 ln -s file link 2> /dev/null || ln file link
7832 ) ) >"$at_stdout" 2>"$at_stderr"
7837 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
7838 $at_diff "$at_devnull" "$at_stdout" || at_failed=:
7840 77) echo 77 > "$at_status_file"; exit 77;;
7842 *) echo "$at_srcdir/extrac02.at:28: exit code was $at_status, expected 0"
7848 echo 1 > "$at_status_file"
7854 echo "$at_srcdir/extrac02.at:28:
7857 TEST_TAR_FORMAT=posix
7858 export TEST_TAR_FORMAT
7859 TAR_OPTIONS=\"-H posix\"
7864 ln -s file link 2> /dev/null || ln file link
7870 echo extrac02.at:28 >"$at_check_line_file"
7873 if test -n "$at_traceon"; then
7874 echo 'Not enabling shell tracing (command contains an embedded newline)'
7877 if test -n "$at_trace_this"; then
7881 TEST_TAR_FORMAT=posix
7882 export TEST_TAR_FORMAT
7883 TAR_OPTIONS="-H posix"
7888 ln -s file link 2> /dev/null || ln file link
7893 ) ) >"$at_stdout" 2>"$at_stder1"
7895 grep '^ *+' "$at_stder1" >&2
7896 grep -v '^ *+' "$at_stder1" >"$at_stderr"
7901 TEST_TAR_FORMAT=posix
7902 export TEST_TAR_FORMAT
7903 TAR_OPTIONS="-H posix"
7908 ln -s file link 2> /dev/null || ln file link
7913 ) ) >"$at_stdout" 2>"$at_stderr"
7918 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
7919 $at_diff "$at_devnull" "$at_stdout" || at_failed=:
7921 77) echo 77 > "$at_status_file"; exit 77;;
7923 *) echo "$at_srcdir/extrac02.at:28: exit code was $at_status, expected 0"
7929 echo 1 > "$at_status_file"
7935 echo "$at_srcdir/extrac02.at:28:
7939 export TEST_TAR_FORMAT
7940 TAR_OPTIONS=\"-H gnu\"
7945 ln -s file link 2> /dev/null || ln file link
7951 echo extrac02.at:28 >"$at_check_line_file"
7954 if test -n "$at_traceon"; then
7955 echo 'Not enabling shell tracing (command contains an embedded newline)'
7958 if test -n "$at_trace_this"; then
7963 export TEST_TAR_FORMAT
7964 TAR_OPTIONS="-H gnu"
7969 ln -s file link 2> /dev/null || ln file link
7974 ) ) >"$at_stdout" 2>"$at_stder1"
7976 grep '^ *+' "$at_stder1" >&2
7977 grep -v '^ *+' "$at_stder1" >"$at_stderr"
7983 export TEST_TAR_FORMAT
7984 TAR_OPTIONS="-H gnu"
7989 ln -s file link 2> /dev/null || ln file link
7994 ) ) >"$at_stdout" 2>"$at_stderr"
7999 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
8000 $at_diff "$at_devnull" "$at_stdout" || at_failed=:
8002 77) echo 77 > "$at_status_file"; exit 77;;
8004 *) echo "$at_srcdir/extrac02.at:28: exit code was $at_status, expected 0"
8010 echo 1 > "$at_status_file"
8019 $at_times_p && times >"$at_times_file"
8020 ) 5>&1 2>&1 | eval $at_tee_pipe
8021 at_status=`cat "$at_status_file"`
8024 20 ) # 20. extrac03.at:23: extraction loops
8025 at_setup_line='extrac03.at:23'
8026 at_desc="extraction loops"
8027 $at_quiet $ECHO_N " 20: extraction loops $ECHO_C"
8029 test -f $XFAILFILE && at_xfail=yes
8030 echo "# -*- compilation -*-" >> "$at_group_log"
8032 echo "20. extrac03.at:23: testing ..."
8040 echo "$at_srcdir/extrac03.at:26:
8044 export TEST_TAR_FORMAT
8045 TAR_OPTIONS=\"-H v7\"
8050 tar -cPvf archive directory/../directory
8053 echo extrac03.at:26 >"$at_check_line_file"
8056 if test -n "$at_traceon"; then
8057 echo 'Not enabling shell tracing (command contains an embedded newline)'
8060 if test -n "$at_trace_this"; then
8065 export TEST_TAR_FORMAT
8071 tar -cPvf archive directory/../directory
8073 tar -xPvf archive) ) >"$at_stdout" 2>"$at_stder1"
8075 grep '^ *+' "$at_stder1" >&2
8076 grep -v '^ *+' "$at_stder1" >"$at_stderr"
8082 export TEST_TAR_FORMAT
8088 tar -cPvf archive directory/../directory
8090 tar -xPvf archive) ) >"$at_stdout" 2>"$at_stderr"
8095 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
8096 echo >>"$at_stdout"; echo "directory/../directory/
8098 directory/../directory/
8099 " | $at_diff - "$at_stdout" || at_failed=:
8101 77) echo 77 > "$at_status_file"; exit 77;;
8103 *) echo "$at_srcdir/extrac03.at:26: exit code was $at_status, expected 0"
8109 echo 1 > "$at_status_file"
8115 echo "$at_srcdir/extrac03.at:26:
8118 TEST_TAR_FORMAT=oldgnu
8119 export TEST_TAR_FORMAT
8120 TAR_OPTIONS=\"-H oldgnu\"
8125 tar -cPvf archive directory/../directory
8128 echo extrac03.at:26 >"$at_check_line_file"
8131 if test -n "$at_traceon"; then
8132 echo 'Not enabling shell tracing (command contains an embedded newline)'
8135 if test -n "$at_trace_this"; then
8139 TEST_TAR_FORMAT=oldgnu
8140 export TEST_TAR_FORMAT
8141 TAR_OPTIONS="-H oldgnu"
8146 tar -cPvf archive directory/../directory
8148 tar -xPvf archive) ) >"$at_stdout" 2>"$at_stder1"
8150 grep '^ *+' "$at_stder1" >&2
8151 grep -v '^ *+' "$at_stder1" >"$at_stderr"
8156 TEST_TAR_FORMAT=oldgnu
8157 export TEST_TAR_FORMAT
8158 TAR_OPTIONS="-H oldgnu"
8163 tar -cPvf archive directory/../directory
8165 tar -xPvf archive) ) >"$at_stdout" 2>"$at_stderr"
8170 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
8171 echo >>"$at_stdout"; echo "directory/../directory/
8173 directory/../directory/
8174 " | $at_diff - "$at_stdout" || at_failed=:
8176 77) echo 77 > "$at_status_file"; exit 77;;
8178 *) echo "$at_srcdir/extrac03.at:26: exit code was $at_status, expected 0"
8184 echo 1 > "$at_status_file"
8190 echo "$at_srcdir/extrac03.at:26:
8193 TEST_TAR_FORMAT=ustar
8194 export TEST_TAR_FORMAT
8195 TAR_OPTIONS=\"-H ustar\"
8200 tar -cPvf archive directory/../directory
8203 echo extrac03.at:26 >"$at_check_line_file"
8206 if test -n "$at_traceon"; then
8207 echo 'Not enabling shell tracing (command contains an embedded newline)'
8210 if test -n "$at_trace_this"; then
8214 TEST_TAR_FORMAT=ustar
8215 export TEST_TAR_FORMAT
8216 TAR_OPTIONS="-H ustar"
8221 tar -cPvf archive directory/../directory
8223 tar -xPvf archive) ) >"$at_stdout" 2>"$at_stder1"
8225 grep '^ *+' "$at_stder1" >&2
8226 grep -v '^ *+' "$at_stder1" >"$at_stderr"
8231 TEST_TAR_FORMAT=ustar
8232 export TEST_TAR_FORMAT
8233 TAR_OPTIONS="-H ustar"
8238 tar -cPvf archive directory/../directory
8240 tar -xPvf archive) ) >"$at_stdout" 2>"$at_stderr"
8245 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
8246 echo >>"$at_stdout"; echo "directory/../directory/
8248 directory/../directory/
8249 " | $at_diff - "$at_stdout" || at_failed=:
8251 77) echo 77 > "$at_status_file"; exit 77;;
8253 *) echo "$at_srcdir/extrac03.at:26: exit code was $at_status, expected 0"
8259 echo 1 > "$at_status_file"
8265 echo "$at_srcdir/extrac03.at:26:
8268 TEST_TAR_FORMAT=posix
8269 export TEST_TAR_FORMAT
8270 TAR_OPTIONS=\"-H posix\"
8275 tar -cPvf archive directory/../directory
8278 echo extrac03.at:26 >"$at_check_line_file"
8281 if test -n "$at_traceon"; then
8282 echo 'Not enabling shell tracing (command contains an embedded newline)'
8285 if test -n "$at_trace_this"; then
8289 TEST_TAR_FORMAT=posix
8290 export TEST_TAR_FORMAT
8291 TAR_OPTIONS="-H posix"
8296 tar -cPvf archive directory/../directory
8298 tar -xPvf archive) ) >"$at_stdout" 2>"$at_stder1"
8300 grep '^ *+' "$at_stder1" >&2
8301 grep -v '^ *+' "$at_stder1" >"$at_stderr"
8306 TEST_TAR_FORMAT=posix
8307 export TEST_TAR_FORMAT
8308 TAR_OPTIONS="-H posix"
8313 tar -cPvf archive directory/../directory
8315 tar -xPvf archive) ) >"$at_stdout" 2>"$at_stderr"
8320 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
8321 echo >>"$at_stdout"; echo "directory/../directory/
8323 directory/../directory/
8324 " | $at_diff - "$at_stdout" || at_failed=:
8326 77) echo 77 > "$at_status_file"; exit 77;;
8328 *) echo "$at_srcdir/extrac03.at:26: exit code was $at_status, expected 0"
8334 echo 1 > "$at_status_file"
8340 echo "$at_srcdir/extrac03.at:26:
8344 export TEST_TAR_FORMAT
8345 TAR_OPTIONS=\"-H gnu\"
8350 tar -cPvf archive directory/../directory
8353 echo extrac03.at:26 >"$at_check_line_file"
8356 if test -n "$at_traceon"; then
8357 echo 'Not enabling shell tracing (command contains an embedded newline)'
8360 if test -n "$at_trace_this"; then
8365 export TEST_TAR_FORMAT
8366 TAR_OPTIONS="-H gnu"
8371 tar -cPvf archive directory/../directory
8373 tar -xPvf archive) ) >"$at_stdout" 2>"$at_stder1"
8375 grep '^ *+' "$at_stder1" >&2
8376 grep -v '^ *+' "$at_stder1" >"$at_stderr"
8382 export TEST_TAR_FORMAT
8383 TAR_OPTIONS="-H gnu"
8388 tar -cPvf archive directory/../directory
8390 tar -xPvf archive) ) >"$at_stdout" 2>"$at_stderr"
8395 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
8396 echo >>"$at_stdout"; echo "directory/../directory/
8398 directory/../directory/
8399 " | $at_diff - "$at_stdout" || at_failed=:
8401 77) echo 77 > "$at_status_file"; exit 77;;
8403 *) echo "$at_srcdir/extrac03.at:26: exit code was $at_status, expected 0"
8409 echo 1 > "$at_status_file"
8418 $at_times_p && times >"$at_times_file"
8419 ) 5>&1 2>&1 | eval $at_tee_pipe
8420 at_status=`cat "$at_status_file"`
8423 21 ) # 21. extrac04.at:23: extract + fnmatch
8424 at_setup_line='extrac04.at:23'
8425 at_desc="extract + fnmatch"
8426 $at_quiet $ECHO_N " 21: extract + fnmatch $ECHO_C"
8428 test -f $XFAILFILE && at_xfail=yes
8429 echo "# -*- compilation -*-" >> "$at_group_log"
8431 echo "21. extrac04.at:23: testing ..."
8439 echo "$at_srcdir/extrac04.at:26:
8443 export TEST_TAR_FORMAT
8444 TAR_OPTIONS=\"-H v7\"
8449 test -z "`sort < /dev/null 2>&1`" || exit 77
8453 mkdir directory/subdirectory
8454 touch directory/file1
8455 touch directory/file2
8456 touch directory/subdirectory/file1
8457 touch directory/subdirectory/file2
8458 tar -cf archive ./file1 directory
8461 --exclude='d*/*1' \\
8462 --exclude='d*/s*/*2' | sort
8464 echo extrac04.at:26 >"$at_check_line_file"
8467 if test -n "$at_traceon"; then
8468 echo 'Not enabling shell tracing (command contains an embedded newline)'
8471 if test -n "$at_trace_this"; then
8476 export TEST_TAR_FORMAT
8482 test -z "`sort < /dev/null 2>&1`" || exit 77
8486 mkdir directory/subdirectory
8487 touch directory/file1
8488 touch directory/file2
8489 touch directory/subdirectory/file1
8490 touch directory/subdirectory/file2
8491 tar -cf archive ./file1 directory
8495 --exclude='d*/s*/*2' | sort
8496 ) ) >"$at_stdout" 2>"$at_stder1"
8498 grep '^ *+' "$at_stder1" >&2
8499 grep -v '^ *+' "$at_stder1" >"$at_stderr"
8505 export TEST_TAR_FORMAT
8511 test -z "`sort < /dev/null 2>&1`" || exit 77
8515 mkdir directory/subdirectory
8516 touch directory/file1
8517 touch directory/file2
8518 touch directory/subdirectory/file1
8519 touch directory/subdirectory/file2
8520 tar -cf archive ./file1 directory
8524 --exclude='d*/s*/*2' | sort
8525 ) ) >"$at_stdout" 2>"$at_stderr"
8530 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
8531 echo >>"$at_stdout"; echo "directory/
8533 directory/subdirectory/
8534 " | $at_diff - "$at_stdout" || at_failed=:
8536 77) echo 77 > "$at_status_file"; exit 77;;
8538 *) echo "$at_srcdir/extrac04.at:26: exit code was $at_status, expected 0"
8544 echo 1 > "$at_status_file"
8550 echo "$at_srcdir/extrac04.at:26:
8553 TEST_TAR_FORMAT=oldgnu
8554 export TEST_TAR_FORMAT
8555 TAR_OPTIONS=\"-H oldgnu\"
8560 test -z "`sort < /dev/null 2>&1`" || exit 77
8564 mkdir directory/subdirectory
8565 touch directory/file1
8566 touch directory/file2
8567 touch directory/subdirectory/file1
8568 touch directory/subdirectory/file2
8569 tar -cf archive ./file1 directory
8572 --exclude='d*/*1' \\
8573 --exclude='d*/s*/*2' | sort
8575 echo extrac04.at:26 >"$at_check_line_file"
8578 if test -n "$at_traceon"; then
8579 echo 'Not enabling shell tracing (command contains an embedded newline)'
8582 if test -n "$at_trace_this"; then
8586 TEST_TAR_FORMAT=oldgnu
8587 export TEST_TAR_FORMAT
8588 TAR_OPTIONS="-H oldgnu"
8593 test -z "`sort < /dev/null 2>&1`" || exit 77
8597 mkdir directory/subdirectory
8598 touch directory/file1
8599 touch directory/file2
8600 touch directory/subdirectory/file1
8601 touch directory/subdirectory/file2
8602 tar -cf archive ./file1 directory
8606 --exclude='d*/s*/*2' | sort
8607 ) ) >"$at_stdout" 2>"$at_stder1"
8609 grep '^ *+' "$at_stder1" >&2
8610 grep -v '^ *+' "$at_stder1" >"$at_stderr"
8615 TEST_TAR_FORMAT=oldgnu
8616 export TEST_TAR_FORMAT
8617 TAR_OPTIONS="-H oldgnu"
8622 test -z "`sort < /dev/null 2>&1`" || exit 77
8626 mkdir directory/subdirectory
8627 touch directory/file1
8628 touch directory/file2
8629 touch directory/subdirectory/file1
8630 touch directory/subdirectory/file2
8631 tar -cf archive ./file1 directory
8635 --exclude='d*/s*/*2' | sort
8636 ) ) >"$at_stdout" 2>"$at_stderr"
8641 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
8642 echo >>"$at_stdout"; echo "directory/
8644 directory/subdirectory/
8645 " | $at_diff - "$at_stdout" || at_failed=:
8647 77) echo 77 > "$at_status_file"; exit 77;;
8649 *) echo "$at_srcdir/extrac04.at:26: exit code was $at_status, expected 0"
8655 echo 1 > "$at_status_file"
8661 echo "$at_srcdir/extrac04.at:26:
8664 TEST_TAR_FORMAT=ustar
8665 export TEST_TAR_FORMAT
8666 TAR_OPTIONS=\"-H ustar\"
8671 test -z "`sort < /dev/null 2>&1`" || exit 77
8675 mkdir directory/subdirectory
8676 touch directory/file1
8677 touch directory/file2
8678 touch directory/subdirectory/file1
8679 touch directory/subdirectory/file2
8680 tar -cf archive ./file1 directory
8683 --exclude='d*/*1' \\
8684 --exclude='d*/s*/*2' | sort
8686 echo extrac04.at:26 >"$at_check_line_file"
8689 if test -n "$at_traceon"; then
8690 echo 'Not enabling shell tracing (command contains an embedded newline)'
8693 if test -n "$at_trace_this"; then
8697 TEST_TAR_FORMAT=ustar
8698 export TEST_TAR_FORMAT
8699 TAR_OPTIONS="-H ustar"
8704 test -z "`sort < /dev/null 2>&1`" || exit 77
8708 mkdir directory/subdirectory
8709 touch directory/file1
8710 touch directory/file2
8711 touch directory/subdirectory/file1
8712 touch directory/subdirectory/file2
8713 tar -cf archive ./file1 directory
8717 --exclude='d*/s*/*2' | sort
8718 ) ) >"$at_stdout" 2>"$at_stder1"
8720 grep '^ *+' "$at_stder1" >&2
8721 grep -v '^ *+' "$at_stder1" >"$at_stderr"
8726 TEST_TAR_FORMAT=ustar
8727 export TEST_TAR_FORMAT
8728 TAR_OPTIONS="-H ustar"
8733 test -z "`sort < /dev/null 2>&1`" || exit 77
8737 mkdir directory/subdirectory
8738 touch directory/file1
8739 touch directory/file2
8740 touch directory/subdirectory/file1
8741 touch directory/subdirectory/file2
8742 tar -cf archive ./file1 directory
8746 --exclude='d*/s*/*2' | sort
8747 ) ) >"$at_stdout" 2>"$at_stderr"
8752 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
8753 echo >>"$at_stdout"; echo "directory/
8755 directory/subdirectory/
8756 " | $at_diff - "$at_stdout" || at_failed=:
8758 77) echo 77 > "$at_status_file"; exit 77;;
8760 *) echo "$at_srcdir/extrac04.at:26: exit code was $at_status, expected 0"
8766 echo 1 > "$at_status_file"
8772 echo "$at_srcdir/extrac04.at:26:
8775 TEST_TAR_FORMAT=posix
8776 export TEST_TAR_FORMAT
8777 TAR_OPTIONS=\"-H posix\"
8782 test -z "`sort < /dev/null 2>&1`" || exit 77
8786 mkdir directory/subdirectory
8787 touch directory/file1
8788 touch directory/file2
8789 touch directory/subdirectory/file1
8790 touch directory/subdirectory/file2
8791 tar -cf archive ./file1 directory
8794 --exclude='d*/*1' \\
8795 --exclude='d*/s*/*2' | sort
8797 echo extrac04.at:26 >"$at_check_line_file"
8800 if test -n "$at_traceon"; then
8801 echo 'Not enabling shell tracing (command contains an embedded newline)'
8804 if test -n "$at_trace_this"; then
8808 TEST_TAR_FORMAT=posix
8809 export TEST_TAR_FORMAT
8810 TAR_OPTIONS="-H posix"
8815 test -z "`sort < /dev/null 2>&1`" || exit 77
8819 mkdir directory/subdirectory
8820 touch directory/file1
8821 touch directory/file2
8822 touch directory/subdirectory/file1
8823 touch directory/subdirectory/file2
8824 tar -cf archive ./file1 directory
8828 --exclude='d*/s*/*2' | sort
8829 ) ) >"$at_stdout" 2>"$at_stder1"
8831 grep '^ *+' "$at_stder1" >&2
8832 grep -v '^ *+' "$at_stder1" >"$at_stderr"
8837 TEST_TAR_FORMAT=posix
8838 export TEST_TAR_FORMAT
8839 TAR_OPTIONS="-H posix"
8844 test -z "`sort < /dev/null 2>&1`" || exit 77
8848 mkdir directory/subdirectory
8849 touch directory/file1
8850 touch directory/file2
8851 touch directory/subdirectory/file1
8852 touch directory/subdirectory/file2
8853 tar -cf archive ./file1 directory
8857 --exclude='d*/s*/*2' | sort
8858 ) ) >"$at_stdout" 2>"$at_stderr"
8863 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
8864 echo >>"$at_stdout"; echo "directory/
8866 directory/subdirectory/
8867 " | $at_diff - "$at_stdout" || at_failed=:
8869 77) echo 77 > "$at_status_file"; exit 77;;
8871 *) echo "$at_srcdir/extrac04.at:26: exit code was $at_status, expected 0"
8877 echo 1 > "$at_status_file"
8883 echo "$at_srcdir/extrac04.at:26:
8887 export TEST_TAR_FORMAT
8888 TAR_OPTIONS=\"-H gnu\"
8893 test -z "`sort < /dev/null 2>&1`" || exit 77
8897 mkdir directory/subdirectory
8898 touch directory/file1
8899 touch directory/file2
8900 touch directory/subdirectory/file1
8901 touch directory/subdirectory/file2
8902 tar -cf archive ./file1 directory
8905 --exclude='d*/*1' \\
8906 --exclude='d*/s*/*2' | sort
8908 echo extrac04.at:26 >"$at_check_line_file"
8911 if test -n "$at_traceon"; then
8912 echo 'Not enabling shell tracing (command contains an embedded newline)'
8915 if test -n "$at_trace_this"; then
8920 export TEST_TAR_FORMAT
8921 TAR_OPTIONS="-H gnu"
8926 test -z "`sort < /dev/null 2>&1`" || exit 77
8930 mkdir directory/subdirectory
8931 touch directory/file1
8932 touch directory/file2
8933 touch directory/subdirectory/file1
8934 touch directory/subdirectory/file2
8935 tar -cf archive ./file1 directory
8939 --exclude='d*/s*/*2' | sort
8940 ) ) >"$at_stdout" 2>"$at_stder1"
8942 grep '^ *+' "$at_stder1" >&2
8943 grep -v '^ *+' "$at_stder1" >"$at_stderr"
8949 export TEST_TAR_FORMAT
8950 TAR_OPTIONS="-H gnu"
8955 test -z "`sort < /dev/null 2>&1`" || exit 77
8959 mkdir directory/subdirectory
8960 touch directory/file1
8961 touch directory/file2
8962 touch directory/subdirectory/file1
8963 touch directory/subdirectory/file2
8964 tar -cf archive ./file1 directory
8968 --exclude='d*/s*/*2' | sort
8969 ) ) >"$at_stdout" 2>"$at_stderr"
8974 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
8975 echo >>"$at_stdout"; echo "directory/
8977 directory/subdirectory/
8978 " | $at_diff - "$at_stdout" || at_failed=:
8980 77) echo 77 > "$at_status_file"; exit 77;;
8982 *) echo "$at_srcdir/extrac04.at:26: exit code was $at_status, expected 0"
8988 echo 1 > "$at_status_file"
8997 $at_times_p && times >"$at_times_file"
8998 ) 5>&1 2>&1 | eval $at_tee_pipe
8999 at_status=`cat "$at_status_file"`
9002 22 ) # 22. extrac05.at:30: extracting selected members from pax
9003 at_setup_line='extrac05.at:30'
9004 at_desc="extracting selected members from pax"
9005 $at_quiet $ECHO_N " 22: extracting selected members from pax $ECHO_C"
9007 test -f $XFAILFILE && at_xfail=yes
9008 echo "# -*- compilation -*-" >> "$at_group_log"
9010 echo "22. extrac05.at:30: testing ..."
9015 cat >list <<'_ATEOF'
9024 echo "$at_srcdir/extrac05.at:38:
9027 TEST_TAR_FORMAT=posix
9028 export TEST_TAR_FORMAT
9029 TAR_OPTIONS=\"-H posix\"
9033 genfile --length 118 --file jeden
9034 genfile --length 223 --file dwa
9035 genfile --length 517 --file trzy
9036 genfile --sparse --file sparsefile 0 ABCD 1M EFGH 2000K IJKL
9037 genfile --length 110 --file cztery
9039 tar cf archive jeden dwa trzy cztery || exit 1
9044 tar xvfT ../archive ../../list || exit 1
9048 echo extrac05.at:38 >"$at_check_line_file"
9051 if test -n "$at_traceon"; then
9052 echo 'Not enabling shell tracing (command contains an embedded newline)'
9055 if test -n "$at_trace_this"; then
9059 TEST_TAR_FORMAT=posix
9060 export TEST_TAR_FORMAT
9061 TAR_OPTIONS="-H posix"
9065 genfile --length 118 --file jeden
9066 genfile --length 223 --file dwa
9067 genfile --length 517 --file trzy
9068 genfile --sparse --file sparsefile 0 ABCD 1M EFGH 2000K IJKL
9069 genfile --length 110 --file cztery
9071 tar cf archive jeden dwa trzy cztery || exit 1
9076 tar xvfT ../archive ../../list || exit 1
9079 ) ) >"$at_stdout" 2>"$at_stder1"
9081 grep '^ *+' "$at_stder1" >&2
9082 grep -v '^ *+' "$at_stder1" >"$at_stderr"
9087 TEST_TAR_FORMAT=posix
9088 export TEST_TAR_FORMAT
9089 TAR_OPTIONS="-H posix"
9093 genfile --length 118 --file jeden
9094 genfile --length 223 --file dwa
9095 genfile --length 517 --file trzy
9096 genfile --sparse --file sparsefile 0 ABCD 1M EFGH 2000K IJKL
9097 genfile --length 110 --file cztery
9099 tar cf archive jeden dwa trzy cztery || exit 1
9104 tar xvfT ../archive ../../list || exit 1
9107 ) ) >"$at_stdout" 2>"$at_stderr"
9112 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
9113 echo >>"$at_stdout"; echo "jeden
9115 " | $at_diff - "$at_stdout" || at_failed=:
9117 77) echo 77 > "$at_status_file"; exit 77;;
9119 *) echo "$at_srcdir/extrac05.at:38: exit code was $at_status, expected 0"
9125 echo 1 > "$at_status_file"
9134 $at_times_p && times >"$at_times_file"
9135 ) 5>&1 2>&1 | eval $at_tee_pipe
9136 at_status=`cat "$at_status_file"`
9139 23 ) # 23. extrac06.at:33: mode of extracted directories
9140 at_setup_line='extrac06.at:33'
9141 at_desc="mode of extracted directories"
9142 $at_quiet $ECHO_N " 23: mode of extracted directories $ECHO_C"
9144 test -f $XFAILFILE && at_xfail=yes
9145 echo "# -*- compilation -*-" >> "$at_group_log"
9147 echo "23. extrac06.at:33: testing ..."
9155 echo "$at_srcdir/extrac06.at:36:
9159 export TEST_TAR_FORMAT
9160 TAR_OPTIONS=\"-H v7\"
9168 # Make sure user's umask is honored, even if we are superuser
9169 TAR_OPTIONS=\"\$TAR_OPTIONS --no-same-permissions\"
9171 # Create a directory
9174 genfile --stat=mode:777 directory
9177 tar cf arc directory
9179 # Change its permissions ...
9181 genfile --stat=mode:777 directory
9183 # ... and attempt to restore it twice
9184 tar xf arc directory
9185 genfile --stat=mode:777 directory
9187 tar xf arc directory
9188 genfile --stat=mode:777 directory
9190 # After both restores, the directory mode should be 755
9192 echo extrac06.at:36 >"$at_check_line_file"
9195 if test -n "$at_traceon"; then
9196 echo 'Not enabling shell tracing (command contains an embedded newline)'
9199 if test -n "$at_trace_this"; then
9204 export TEST_TAR_FORMAT
9213 # Make sure user's umask is honored, even if we are superuser
9214 TAR_OPTIONS="$TAR_OPTIONS --no-same-permissions"
9216 # Create a directory
9219 genfile --stat=mode:777 directory
9222 tar cf arc directory
9224 # Change its permissions ...
9226 genfile --stat=mode:777 directory
9228 # ... and attempt to restore it twice
9229 tar xf arc directory
9230 genfile --stat=mode:777 directory
9232 tar xf arc directory
9233 genfile --stat=mode:777 directory
9235 # After both restores, the directory mode should be 755
9236 ) ) >"$at_stdout" 2>"$at_stder1"
9238 grep '^ *+' "$at_stder1" >&2
9239 grep -v '^ *+' "$at_stder1" >"$at_stderr"
9245 export TEST_TAR_FORMAT
9254 # Make sure user's umask is honored, even if we are superuser
9255 TAR_OPTIONS="$TAR_OPTIONS --no-same-permissions"
9257 # Create a directory
9260 genfile --stat=mode:777 directory
9263 tar cf arc directory
9265 # Change its permissions ...
9267 genfile --stat=mode:777 directory
9269 # ... and attempt to restore it twice
9270 tar xf arc directory
9271 genfile --stat=mode:777 directory
9273 tar xf arc directory
9274 genfile --stat=mode:777 directory
9276 # After both restores, the directory mode should be 755
9277 ) ) >"$at_stdout" 2>"$at_stderr"
9282 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
9283 echo >>"$at_stdout"; echo "777
9287 " | $at_diff - "$at_stdout" || at_failed=:
9289 77) echo 77 > "$at_status_file"; exit 77;;
9291 *) echo "$at_srcdir/extrac06.at:36: exit code was $at_status, expected 0"
9297 echo 1 > "$at_status_file"
9303 echo "$at_srcdir/extrac06.at:36:
9306 TEST_TAR_FORMAT=oldgnu
9307 export TEST_TAR_FORMAT
9308 TAR_OPTIONS=\"-H oldgnu\"
9316 # Make sure user's umask is honored, even if we are superuser
9317 TAR_OPTIONS=\"\$TAR_OPTIONS --no-same-permissions\"
9319 # Create a directory
9322 genfile --stat=mode:777 directory
9325 tar cf arc directory
9327 # Change its permissions ...
9329 genfile --stat=mode:777 directory
9331 # ... and attempt to restore it twice
9332 tar xf arc directory
9333 genfile --stat=mode:777 directory
9335 tar xf arc directory
9336 genfile --stat=mode:777 directory
9338 # After both restores, the directory mode should be 755
9340 echo extrac06.at:36 >"$at_check_line_file"
9343 if test -n "$at_traceon"; then
9344 echo 'Not enabling shell tracing (command contains an embedded newline)'
9347 if test -n "$at_trace_this"; then
9351 TEST_TAR_FORMAT=oldgnu
9352 export TEST_TAR_FORMAT
9353 TAR_OPTIONS="-H oldgnu"
9361 # Make sure user's umask is honored, even if we are superuser
9362 TAR_OPTIONS="$TAR_OPTIONS --no-same-permissions"
9364 # Create a directory
9367 genfile --stat=mode:777 directory
9370 tar cf arc directory
9372 # Change its permissions ...
9374 genfile --stat=mode:777 directory
9376 # ... and attempt to restore it twice
9377 tar xf arc directory
9378 genfile --stat=mode:777 directory
9380 tar xf arc directory
9381 genfile --stat=mode:777 directory
9383 # After both restores, the directory mode should be 755
9384 ) ) >"$at_stdout" 2>"$at_stder1"
9386 grep '^ *+' "$at_stder1" >&2
9387 grep -v '^ *+' "$at_stder1" >"$at_stderr"
9392 TEST_TAR_FORMAT=oldgnu
9393 export TEST_TAR_FORMAT
9394 TAR_OPTIONS="-H oldgnu"
9402 # Make sure user's umask is honored, even if we are superuser
9403 TAR_OPTIONS="$TAR_OPTIONS --no-same-permissions"
9405 # Create a directory
9408 genfile --stat=mode:777 directory
9411 tar cf arc directory
9413 # Change its permissions ...
9415 genfile --stat=mode:777 directory
9417 # ... and attempt to restore it twice
9418 tar xf arc directory
9419 genfile --stat=mode:777 directory
9421 tar xf arc directory
9422 genfile --stat=mode:777 directory
9424 # After both restores, the directory mode should be 755
9425 ) ) >"$at_stdout" 2>"$at_stderr"
9430 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
9431 echo >>"$at_stdout"; echo "777
9435 " | $at_diff - "$at_stdout" || at_failed=:
9437 77) echo 77 > "$at_status_file"; exit 77;;
9439 *) echo "$at_srcdir/extrac06.at:36: exit code was $at_status, expected 0"
9445 echo 1 > "$at_status_file"
9451 echo "$at_srcdir/extrac06.at:36:
9454 TEST_TAR_FORMAT=ustar
9455 export TEST_TAR_FORMAT
9456 TAR_OPTIONS=\"-H ustar\"
9464 # Make sure user's umask is honored, even if we are superuser
9465 TAR_OPTIONS=\"\$TAR_OPTIONS --no-same-permissions\"
9467 # Create a directory
9470 genfile --stat=mode:777 directory
9473 tar cf arc directory
9475 # Change its permissions ...
9477 genfile --stat=mode:777 directory
9479 # ... and attempt to restore it twice
9480 tar xf arc directory
9481 genfile --stat=mode:777 directory
9483 tar xf arc directory
9484 genfile --stat=mode:777 directory
9486 # After both restores, the directory mode should be 755
9488 echo extrac06.at:36 >"$at_check_line_file"
9491 if test -n "$at_traceon"; then
9492 echo 'Not enabling shell tracing (command contains an embedded newline)'
9495 if test -n "$at_trace_this"; then
9499 TEST_TAR_FORMAT=ustar
9500 export TEST_TAR_FORMAT
9501 TAR_OPTIONS="-H ustar"
9509 # Make sure user's umask is honored, even if we are superuser
9510 TAR_OPTIONS="$TAR_OPTIONS --no-same-permissions"
9512 # Create a directory
9515 genfile --stat=mode:777 directory
9518 tar cf arc directory
9520 # Change its permissions ...
9522 genfile --stat=mode:777 directory
9524 # ... and attempt to restore it twice
9525 tar xf arc directory
9526 genfile --stat=mode:777 directory
9528 tar xf arc directory
9529 genfile --stat=mode:777 directory
9531 # After both restores, the directory mode should be 755
9532 ) ) >"$at_stdout" 2>"$at_stder1"
9534 grep '^ *+' "$at_stder1" >&2
9535 grep -v '^ *+' "$at_stder1" >"$at_stderr"
9540 TEST_TAR_FORMAT=ustar
9541 export TEST_TAR_FORMAT
9542 TAR_OPTIONS="-H ustar"
9550 # Make sure user's umask is honored, even if we are superuser
9551 TAR_OPTIONS="$TAR_OPTIONS --no-same-permissions"
9553 # Create a directory
9556 genfile --stat=mode:777 directory
9559 tar cf arc directory
9561 # Change its permissions ...
9563 genfile --stat=mode:777 directory
9565 # ... and attempt to restore it twice
9566 tar xf arc directory
9567 genfile --stat=mode:777 directory
9569 tar xf arc directory
9570 genfile --stat=mode:777 directory
9572 # After both restores, the directory mode should be 755
9573 ) ) >"$at_stdout" 2>"$at_stderr"
9578 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
9579 echo >>"$at_stdout"; echo "777
9583 " | $at_diff - "$at_stdout" || at_failed=:
9585 77) echo 77 > "$at_status_file"; exit 77;;
9587 *) echo "$at_srcdir/extrac06.at:36: exit code was $at_status, expected 0"
9593 echo 1 > "$at_status_file"
9599 echo "$at_srcdir/extrac06.at:36:
9602 TEST_TAR_FORMAT=posix
9603 export TEST_TAR_FORMAT
9604 TAR_OPTIONS=\"-H posix\"
9612 # Make sure user's umask is honored, even if we are superuser
9613 TAR_OPTIONS=\"\$TAR_OPTIONS --no-same-permissions\"
9615 # Create a directory
9618 genfile --stat=mode:777 directory
9621 tar cf arc directory
9623 # Change its permissions ...
9625 genfile --stat=mode:777 directory
9627 # ... and attempt to restore it twice
9628 tar xf arc directory
9629 genfile --stat=mode:777 directory
9631 tar xf arc directory
9632 genfile --stat=mode:777 directory
9634 # After both restores, the directory mode should be 755
9636 echo extrac06.at:36 >"$at_check_line_file"
9639 if test -n "$at_traceon"; then
9640 echo 'Not enabling shell tracing (command contains an embedded newline)'
9643 if test -n "$at_trace_this"; then
9647 TEST_TAR_FORMAT=posix
9648 export TEST_TAR_FORMAT
9649 TAR_OPTIONS="-H posix"
9657 # Make sure user's umask is honored, even if we are superuser
9658 TAR_OPTIONS="$TAR_OPTIONS --no-same-permissions"
9660 # Create a directory
9663 genfile --stat=mode:777 directory
9666 tar cf arc directory
9668 # Change its permissions ...
9670 genfile --stat=mode:777 directory
9672 # ... and attempt to restore it twice
9673 tar xf arc directory
9674 genfile --stat=mode:777 directory
9676 tar xf arc directory
9677 genfile --stat=mode:777 directory
9679 # After both restores, the directory mode should be 755
9680 ) ) >"$at_stdout" 2>"$at_stder1"
9682 grep '^ *+' "$at_stder1" >&2
9683 grep -v '^ *+' "$at_stder1" >"$at_stderr"
9688 TEST_TAR_FORMAT=posix
9689 export TEST_TAR_FORMAT
9690 TAR_OPTIONS="-H posix"
9698 # Make sure user's umask is honored, even if we are superuser
9699 TAR_OPTIONS="$TAR_OPTIONS --no-same-permissions"
9701 # Create a directory
9704 genfile --stat=mode:777 directory
9707 tar cf arc directory
9709 # Change its permissions ...
9711 genfile --stat=mode:777 directory
9713 # ... and attempt to restore it twice
9714 tar xf arc directory
9715 genfile --stat=mode:777 directory
9717 tar xf arc directory
9718 genfile --stat=mode:777 directory
9720 # After both restores, the directory mode should be 755
9721 ) ) >"$at_stdout" 2>"$at_stderr"
9726 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
9727 echo >>"$at_stdout"; echo "777
9731 " | $at_diff - "$at_stdout" || at_failed=:
9733 77) echo 77 > "$at_status_file"; exit 77;;
9735 *) echo "$at_srcdir/extrac06.at:36: exit code was $at_status, expected 0"
9741 echo 1 > "$at_status_file"
9747 echo "$at_srcdir/extrac06.at:36:
9751 export TEST_TAR_FORMAT
9752 TAR_OPTIONS=\"-H gnu\"
9760 # Make sure user's umask is honored, even if we are superuser
9761 TAR_OPTIONS=\"\$TAR_OPTIONS --no-same-permissions\"
9763 # Create a directory
9766 genfile --stat=mode:777 directory
9769 tar cf arc directory
9771 # Change its permissions ...
9773 genfile --stat=mode:777 directory
9775 # ... and attempt to restore it twice
9776 tar xf arc directory
9777 genfile --stat=mode:777 directory
9779 tar xf arc directory
9780 genfile --stat=mode:777 directory
9782 # After both restores, the directory mode should be 755
9784 echo extrac06.at:36 >"$at_check_line_file"
9787 if test -n "$at_traceon"; then
9788 echo 'Not enabling shell tracing (command contains an embedded newline)'
9791 if test -n "$at_trace_this"; then
9796 export TEST_TAR_FORMAT
9797 TAR_OPTIONS="-H gnu"
9805 # Make sure user's umask is honored, even if we are superuser
9806 TAR_OPTIONS="$TAR_OPTIONS --no-same-permissions"
9808 # Create a directory
9811 genfile --stat=mode:777 directory
9814 tar cf arc directory
9816 # Change its permissions ...
9818 genfile --stat=mode:777 directory
9820 # ... and attempt to restore it twice
9821 tar xf arc directory
9822 genfile --stat=mode:777 directory
9824 tar xf arc directory
9825 genfile --stat=mode:777 directory
9827 # After both restores, the directory mode should be 755
9828 ) ) >"$at_stdout" 2>"$at_stder1"
9830 grep '^ *+' "$at_stder1" >&2
9831 grep -v '^ *+' "$at_stder1" >"$at_stderr"
9837 export TEST_TAR_FORMAT
9838 TAR_OPTIONS="-H gnu"
9846 # Make sure user's umask is honored, even if we are superuser
9847 TAR_OPTIONS="$TAR_OPTIONS --no-same-permissions"
9849 # Create a directory
9852 genfile --stat=mode:777 directory
9855 tar cf arc directory
9857 # Change its permissions ...
9859 genfile --stat=mode:777 directory
9861 # ... and attempt to restore it twice
9862 tar xf arc directory
9863 genfile --stat=mode:777 directory
9865 tar xf arc directory
9866 genfile --stat=mode:777 directory
9868 # After both restores, the directory mode should be 755
9869 ) ) >"$at_stdout" 2>"$at_stderr"
9874 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
9875 echo >>"$at_stdout"; echo "777
9879 " | $at_diff - "$at_stdout" || at_failed=:
9881 77) echo 77 > "$at_status_file"; exit 77;;
9883 *) echo "$at_srcdir/extrac06.at:36: exit code was $at_status, expected 0"
9889 echo 1 > "$at_status_file"
9898 $at_times_p && times >"$at_times_file"
9899 ) 5>&1 2>&1 | eval $at_tee_pipe
9900 at_status=`cat "$at_status_file"`
9903 24 ) # 24. extrac07.at:27: extracting symlinks to a read-only dir
9904 at_setup_line='extrac07.at:27'
9905 at_desc="extracting symlinks to a read-only dir"
9906 $at_quiet $ECHO_N " 24: extracting symlinks to a read-only dir $ECHO_C"
9908 test -f $XFAILFILE && at_xfail=yes
9909 echo "# -*- compilation -*-" >> "$at_group_log"
9911 echo "24. extrac07.at:27: testing ..."
9919 echo "$at_srcdir/extrac07.at:30:
9923 export TEST_TAR_FORMAT
9924 TAR_OPTIONS=\"-H v7\"
9928 echo Prepare the directory
9936 echo Create the archive
9937 tar cf archive dir || exit 1
9943 tar -C out -xvf archive
9945 echo extrac07.at:30 >"$at_check_line_file"
9948 if test -n "$at_traceon"; then
9949 echo 'Not enabling shell tracing (command contains an embedded newline)'
9952 if test -n "$at_trace_this"; then
9957 export TEST_TAR_FORMAT
9962 echo Prepare the directory
9970 echo Create the archive
9971 tar cf archive dir || exit 1
9977 tar -C out -xvf archive
9978 ) ) >"$at_stdout" 2>"$at_stder1"
9980 grep '^ *+' "$at_stder1" >&2
9981 grep -v '^ *+' "$at_stder1" >"$at_stderr"
9987 export TEST_TAR_FORMAT
9992 echo Prepare the directory
10000 echo Create the archive
10001 tar cf archive dir || exit 1
10007 tar -C out -xvf archive
10008 ) ) >"$at_stdout" 2>"$at_stderr"
10013 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
10014 echo >>"$at_stdout"; echo "Prepare the directory
10019 " | $at_diff - "$at_stdout" || at_failed=:
10021 77) echo 77 > "$at_status_file"; exit 77;;
10023 *) echo "$at_srcdir/extrac07.at:30: exit code was $at_status, expected 0"
10026 if $at_failed; then
10029 echo 1 > "$at_status_file"
10037 echo "$at_srcdir/extrac07.at:30:
10040 TEST_TAR_FORMAT=oldgnu
10041 export TEST_TAR_FORMAT
10042 TAR_OPTIONS=\"-H oldgnu\"
10046 echo Prepare the directory
10054 echo Create the archive
10055 tar cf archive dir || exit 1
10061 tar -C out -xvf archive
10063 echo extrac07.at:30 >"$at_check_line_file"
10066 if test -n "$at_traceon"; then
10067 echo 'Not enabling shell tracing (command contains an embedded newline)'
10070 if test -n "$at_trace_this"; then
10074 TEST_TAR_FORMAT=oldgnu
10075 export TEST_TAR_FORMAT
10076 TAR_OPTIONS="-H oldgnu"
10080 echo Prepare the directory
10088 echo Create the archive
10089 tar cf archive dir || exit 1
10095 tar -C out -xvf archive
10096 ) ) >"$at_stdout" 2>"$at_stder1"
10098 grep '^ *+' "$at_stder1" >&2
10099 grep -v '^ *+' "$at_stder1" >"$at_stderr"
10104 TEST_TAR_FORMAT=oldgnu
10105 export TEST_TAR_FORMAT
10106 TAR_OPTIONS="-H oldgnu"
10110 echo Prepare the directory
10118 echo Create the archive
10119 tar cf archive dir || exit 1
10125 tar -C out -xvf archive
10126 ) ) >"$at_stdout" 2>"$at_stderr"
10131 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
10132 echo >>"$at_stdout"; echo "Prepare the directory
10137 " | $at_diff - "$at_stdout" || at_failed=:
10139 77) echo 77 > "$at_status_file"; exit 77;;
10141 *) echo "$at_srcdir/extrac07.at:30: exit code was $at_status, expected 0"
10144 if $at_failed; then
10147 echo 1 > "$at_status_file"
10155 echo "$at_srcdir/extrac07.at:30:
10158 TEST_TAR_FORMAT=ustar
10159 export TEST_TAR_FORMAT
10160 TAR_OPTIONS=\"-H ustar\"
10164 echo Prepare the directory
10172 echo Create the archive
10173 tar cf archive dir || exit 1
10179 tar -C out -xvf archive
10181 echo extrac07.at:30 >"$at_check_line_file"
10184 if test -n "$at_traceon"; then
10185 echo 'Not enabling shell tracing (command contains an embedded newline)'
10188 if test -n "$at_trace_this"; then
10192 TEST_TAR_FORMAT=ustar
10193 export TEST_TAR_FORMAT
10194 TAR_OPTIONS="-H ustar"
10198 echo Prepare the directory
10206 echo Create the archive
10207 tar cf archive dir || exit 1
10213 tar -C out -xvf archive
10214 ) ) >"$at_stdout" 2>"$at_stder1"
10216 grep '^ *+' "$at_stder1" >&2
10217 grep -v '^ *+' "$at_stder1" >"$at_stderr"
10222 TEST_TAR_FORMAT=ustar
10223 export TEST_TAR_FORMAT
10224 TAR_OPTIONS="-H ustar"
10228 echo Prepare the directory
10236 echo Create the archive
10237 tar cf archive dir || exit 1
10243 tar -C out -xvf archive
10244 ) ) >"$at_stdout" 2>"$at_stderr"
10249 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
10250 echo >>"$at_stdout"; echo "Prepare the directory
10255 " | $at_diff - "$at_stdout" || at_failed=:
10257 77) echo 77 > "$at_status_file"; exit 77;;
10259 *) echo "$at_srcdir/extrac07.at:30: exit code was $at_status, expected 0"
10262 if $at_failed; then
10265 echo 1 > "$at_status_file"
10273 echo "$at_srcdir/extrac07.at:30:
10276 TEST_TAR_FORMAT=posix
10277 export TEST_TAR_FORMAT
10278 TAR_OPTIONS=\"-H posix\"
10282 echo Prepare the directory
10290 echo Create the archive
10291 tar cf archive dir || exit 1
10297 tar -C out -xvf archive
10299 echo extrac07.at:30 >"$at_check_line_file"
10302 if test -n "$at_traceon"; then
10303 echo 'Not enabling shell tracing (command contains an embedded newline)'
10306 if test -n "$at_trace_this"; then
10310 TEST_TAR_FORMAT=posix
10311 export TEST_TAR_FORMAT
10312 TAR_OPTIONS="-H posix"
10316 echo Prepare the directory
10324 echo Create the archive
10325 tar cf archive dir || exit 1
10331 tar -C out -xvf archive
10332 ) ) >"$at_stdout" 2>"$at_stder1"
10334 grep '^ *+' "$at_stder1" >&2
10335 grep -v '^ *+' "$at_stder1" >"$at_stderr"
10340 TEST_TAR_FORMAT=posix
10341 export TEST_TAR_FORMAT
10342 TAR_OPTIONS="-H posix"
10346 echo Prepare the directory
10354 echo Create the archive
10355 tar cf archive dir || exit 1
10361 tar -C out -xvf archive
10362 ) ) >"$at_stdout" 2>"$at_stderr"
10367 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
10368 echo >>"$at_stdout"; echo "Prepare the directory
10373 " | $at_diff - "$at_stdout" || at_failed=:
10375 77) echo 77 > "$at_status_file"; exit 77;;
10377 *) echo "$at_srcdir/extrac07.at:30: exit code was $at_status, expected 0"
10380 if $at_failed; then
10383 echo 1 > "$at_status_file"
10391 echo "$at_srcdir/extrac07.at:30:
10394 TEST_TAR_FORMAT=gnu
10395 export TEST_TAR_FORMAT
10396 TAR_OPTIONS=\"-H gnu\"
10400 echo Prepare the directory
10408 echo Create the archive
10409 tar cf archive dir || exit 1
10415 tar -C out -xvf archive
10417 echo extrac07.at:30 >"$at_check_line_file"
10420 if test -n "$at_traceon"; then
10421 echo 'Not enabling shell tracing (command contains an embedded newline)'
10424 if test -n "$at_trace_this"; then
10428 TEST_TAR_FORMAT=gnu
10429 export TEST_TAR_FORMAT
10430 TAR_OPTIONS="-H gnu"
10434 echo Prepare the directory
10442 echo Create the archive
10443 tar cf archive dir || exit 1
10449 tar -C out -xvf archive
10450 ) ) >"$at_stdout" 2>"$at_stder1"
10452 grep '^ *+' "$at_stder1" >&2
10453 grep -v '^ *+' "$at_stder1" >"$at_stderr"
10458 TEST_TAR_FORMAT=gnu
10459 export TEST_TAR_FORMAT
10460 TAR_OPTIONS="-H gnu"
10464 echo Prepare the directory
10472 echo Create the archive
10473 tar cf archive dir || exit 1
10479 tar -C out -xvf archive
10480 ) ) >"$at_stdout" 2>"$at_stderr"
10485 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
10486 echo >>"$at_stdout"; echo "Prepare the directory
10491 " | $at_diff - "$at_stdout" || at_failed=:
10493 77) echo 77 > "$at_status_file"; exit 77;;
10495 *) echo "$at_srcdir/extrac07.at:30: exit code was $at_status, expected 0"
10498 if $at_failed; then
10501 echo 1 > "$at_status_file"
10509 # Testing one format is enough
10512 $at_times_p && times >"$at_times_file"
10513 ) 5>&1 2>&1 | eval $at_tee_pipe
10514 at_status=`cat "$at_status_file"`
10517 25 ) # 25. gzip.at:23: gzip
10518 at_setup_line='gzip.at:23'
10520 $at_quiet $ECHO_N " 25: gzip $ECHO_C"
10522 echo "# -*- compilation -*-" >> "$at_group_log"
10524 echo "25. gzip.at:23: testing ..."
10532 echo "$at_srcdir/gzip.at:28:
10534 cat /dev/null | gzip - > /dev/null 2>&1 || exit 77
10537 test \$? = 2 || exit 1
10539 echo gzip.at:28 >"$at_check_line_file"
10542 if test -n "$at_traceon"; then
10543 echo 'Not enabling shell tracing (command contains an embedded newline)'
10546 if test -n "$at_trace_this"; then
10549 cat /dev/null | gzip - > /dev/null 2>&1 || exit 77
10552 test $? = 2 || exit 1
10553 ) >"$at_stdout" 2>"$at_stder1"
10555 grep '^ *+' "$at_stder1" >&2
10556 grep -v '^ *+' "$at_stder1" >"$at_stderr"
10560 cat /dev/null | gzip - > /dev/null 2>&1 || exit 77
10563 test $? = 2 || exit 1
10564 ) >"$at_stdout" 2>"$at_stderr"
10569 echo >>"$at_stderr"; echo "
10570 gzip: stdin: unexpected end of file
10571 tar: Child returned status 1
10572 tar: Error exit delayed from previous errors
10573 " | $at_diff - "$at_stderr" || at_failed=:
10574 $at_diff "$at_devnull" "$at_stdout" || at_failed=:
10576 77) echo 77 > "$at_status_file"; exit 77;;
10578 *) echo "$at_srcdir/gzip.at:28: exit code was $at_status, expected 0"
10581 if $at_failed; then
10584 echo 1 > "$at_status_file"
10592 $at_times_p && times >"$at_times_file"
10593 ) 5>&1 2>&1 | eval $at_tee_pipe
10594 at_status=`cat "$at_status_file"`
10597 26 ) # 26. incremental.at:23: incremental
10598 at_setup_line='incremental.at:23'
10599 at_desc="incremental"
10600 $at_quiet $ECHO_N " 26: incremental $ECHO_C"
10602 test -f $XFAILFILE && at_xfail=yes
10603 echo "# -*- compilation -*-" >> "$at_group_log"
10605 echo "26. incremental.at:23: testing ..."
10613 echo "$at_srcdir/incremental.at:26:
10616 TEST_TAR_FORMAT=gnu
10617 export TEST_TAR_FORMAT
10618 TAR_OPTIONS=\"-H gnu\"
10623 echo x >structure/file
10625 # On Nextstep (and perhaps other 4.3BSD systems),
10626 # a newly created file's ctime isn't updated
10627 # until the next sync or stat operation on the file.
10628 ls -l structure/file >/dev/null
10630 # If the time of an initial backup and the creation time of a file contained
10631 # in that backup are the same, the file will be backed up again when an
10632 # incremental backup is done, because the incremental backup backs up
10633 # files created \`on or after' the initial backup time. Without the sleep
10634 # command, behaviour of tar becomes variable, depending whether the system
10635 # clock ticked over to the next second between creating the file and
10639 tar cf archive --listed=list structure
10640 tar cfv archive --listed=list structure
10643 echo y >structure/file
10644 tar cfv archive --listed=list structure
10646 echo incremental.at:26 >"$at_check_line_file"
10649 if test -n "$at_traceon"; then
10650 echo 'Not enabling shell tracing (command contains an embedded newline)'
10653 if test -n "$at_trace_this"; then
10657 TEST_TAR_FORMAT=gnu
10658 export TEST_TAR_FORMAT
10659 TAR_OPTIONS="-H gnu"
10664 echo x >structure/file
10666 # On Nextstep (and perhaps other 4.3BSD systems),
10667 # a newly created file's ctime isn't updated
10668 # until the next sync or stat operation on the file.
10669 ls -l structure/file >/dev/null
10671 # If the time of an initial backup and the creation time of a file contained
10672 # in that backup are the same, the file will be backed up again when an
10673 # incremental backup is done, because the incremental backup backs up
10674 # files created `on or after' the initial backup time. Without the sleep
10675 # command, behaviour of tar becomes variable, depending whether the system
10676 # clock ticked over to the next second between creating the file and
10680 tar cf archive --listed=list structure
10681 tar cfv archive --listed=list structure
10684 echo y >structure/file
10685 tar cfv archive --listed=list structure
10686 ) ) >"$at_stdout" 2>"$at_stder1"
10688 grep '^ *+' "$at_stder1" >&2
10689 grep -v '^ *+' "$at_stder1" >"$at_stderr"
10694 TEST_TAR_FORMAT=gnu
10695 export TEST_TAR_FORMAT
10696 TAR_OPTIONS="-H gnu"
10701 echo x >structure/file
10703 # On Nextstep (and perhaps other 4.3BSD systems),
10704 # a newly created file's ctime isn't updated
10705 # until the next sync or stat operation on the file.
10706 ls -l structure/file >/dev/null
10708 # If the time of an initial backup and the creation time of a file contained
10709 # in that backup are the same, the file will be backed up again when an
10710 # incremental backup is done, because the incremental backup backs up
10711 # files created `on or after' the initial backup time. Without the sleep
10712 # command, behaviour of tar becomes variable, depending whether the system
10713 # clock ticked over to the next second between creating the file and
10717 tar cf archive --listed=list structure
10718 tar cfv archive --listed=list structure
10721 echo y >structure/file
10722 tar cfv archive --listed=list structure
10723 ) ) >"$at_stdout" 2>"$at_stderr"
10728 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
10729 echo >>"$at_stdout"; echo "structure/
10733 " | $at_diff - "$at_stdout" || at_failed=:
10735 77) echo 77 > "$at_status_file"; exit 77;;
10737 *) echo "$at_srcdir/incremental.at:26: exit code was $at_status, expected 0"
10740 if $at_failed; then
10743 echo 1 > "$at_status_file"
10749 echo "$at_srcdir/incremental.at:26:
10752 TEST_TAR_FORMAT=oldgnu
10753 export TEST_TAR_FORMAT
10754 TAR_OPTIONS=\"-H oldgnu\"
10759 echo x >structure/file
10761 # On Nextstep (and perhaps other 4.3BSD systems),
10762 # a newly created file's ctime isn't updated
10763 # until the next sync or stat operation on the file.
10764 ls -l structure/file >/dev/null
10766 # If the time of an initial backup and the creation time of a file contained
10767 # in that backup are the same, the file will be backed up again when an
10768 # incremental backup is done, because the incremental backup backs up
10769 # files created \`on or after' the initial backup time. Without the sleep
10770 # command, behaviour of tar becomes variable, depending whether the system
10771 # clock ticked over to the next second between creating the file and
10775 tar cf archive --listed=list structure
10776 tar cfv archive --listed=list structure
10779 echo y >structure/file
10780 tar cfv archive --listed=list structure
10782 echo incremental.at:26 >"$at_check_line_file"
10785 if test -n "$at_traceon"; then
10786 echo 'Not enabling shell tracing (command contains an embedded newline)'
10789 if test -n "$at_trace_this"; then
10793 TEST_TAR_FORMAT=oldgnu
10794 export TEST_TAR_FORMAT
10795 TAR_OPTIONS="-H oldgnu"
10800 echo x >structure/file
10802 # On Nextstep (and perhaps other 4.3BSD systems),
10803 # a newly created file's ctime isn't updated
10804 # until the next sync or stat operation on the file.
10805 ls -l structure/file >/dev/null
10807 # If the time of an initial backup and the creation time of a file contained
10808 # in that backup are the same, the file will be backed up again when an
10809 # incremental backup is done, because the incremental backup backs up
10810 # files created `on or after' the initial backup time. Without the sleep
10811 # command, behaviour of tar becomes variable, depending whether the system
10812 # clock ticked over to the next second between creating the file and
10816 tar cf archive --listed=list structure
10817 tar cfv archive --listed=list structure
10820 echo y >structure/file
10821 tar cfv archive --listed=list structure
10822 ) ) >"$at_stdout" 2>"$at_stder1"
10824 grep '^ *+' "$at_stder1" >&2
10825 grep -v '^ *+' "$at_stder1" >"$at_stderr"
10830 TEST_TAR_FORMAT=oldgnu
10831 export TEST_TAR_FORMAT
10832 TAR_OPTIONS="-H oldgnu"
10837 echo x >structure/file
10839 # On Nextstep (and perhaps other 4.3BSD systems),
10840 # a newly created file's ctime isn't updated
10841 # until the next sync or stat operation on the file.
10842 ls -l structure/file >/dev/null
10844 # If the time of an initial backup and the creation time of a file contained
10845 # in that backup are the same, the file will be backed up again when an
10846 # incremental backup is done, because the incremental backup backs up
10847 # files created `on or after' the initial backup time. Without the sleep
10848 # command, behaviour of tar becomes variable, depending whether the system
10849 # clock ticked over to the next second between creating the file and
10853 tar cf archive --listed=list structure
10854 tar cfv archive --listed=list structure
10857 echo y >structure/file
10858 tar cfv archive --listed=list structure
10859 ) ) >"$at_stdout" 2>"$at_stderr"
10864 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
10865 echo >>"$at_stdout"; echo "structure/
10869 " | $at_diff - "$at_stdout" || at_failed=:
10871 77) echo 77 > "$at_status_file"; exit 77;;
10873 *) echo "$at_srcdir/incremental.at:26: exit code was $at_status, expected 0"
10876 if $at_failed; then
10879 echo 1 > "$at_status_file"
10885 echo "$at_srcdir/incremental.at:26:
10888 TEST_TAR_FORMAT=posix
10889 export TEST_TAR_FORMAT
10890 TAR_OPTIONS=\"-H posix\"
10895 echo x >structure/file
10897 # On Nextstep (and perhaps other 4.3BSD systems),
10898 # a newly created file's ctime isn't updated
10899 # until the next sync or stat operation on the file.
10900 ls -l structure/file >/dev/null
10902 # If the time of an initial backup and the creation time of a file contained
10903 # in that backup are the same, the file will be backed up again when an
10904 # incremental backup is done, because the incremental backup backs up
10905 # files created \`on or after' the initial backup time. Without the sleep
10906 # command, behaviour of tar becomes variable, depending whether the system
10907 # clock ticked over to the next second between creating the file and
10911 tar cf archive --listed=list structure
10912 tar cfv archive --listed=list structure
10915 echo y >structure/file
10916 tar cfv archive --listed=list structure
10918 echo incremental.at:26 >"$at_check_line_file"
10921 if test -n "$at_traceon"; then
10922 echo 'Not enabling shell tracing (command contains an embedded newline)'
10925 if test -n "$at_trace_this"; then
10929 TEST_TAR_FORMAT=posix
10930 export TEST_TAR_FORMAT
10931 TAR_OPTIONS="-H posix"
10936 echo x >structure/file
10938 # On Nextstep (and perhaps other 4.3BSD systems),
10939 # a newly created file's ctime isn't updated
10940 # until the next sync or stat operation on the file.
10941 ls -l structure/file >/dev/null
10943 # If the time of an initial backup and the creation time of a file contained
10944 # in that backup are the same, the file will be backed up again when an
10945 # incremental backup is done, because the incremental backup backs up
10946 # files created `on or after' the initial backup time. Without the sleep
10947 # command, behaviour of tar becomes variable, depending whether the system
10948 # clock ticked over to the next second between creating the file and
10952 tar cf archive --listed=list structure
10953 tar cfv archive --listed=list structure
10956 echo y >structure/file
10957 tar cfv archive --listed=list structure
10958 ) ) >"$at_stdout" 2>"$at_stder1"
10960 grep '^ *+' "$at_stder1" >&2
10961 grep -v '^ *+' "$at_stder1" >"$at_stderr"
10966 TEST_TAR_FORMAT=posix
10967 export TEST_TAR_FORMAT
10968 TAR_OPTIONS="-H posix"
10973 echo x >structure/file
10975 # On Nextstep (and perhaps other 4.3BSD systems),
10976 # a newly created file's ctime isn't updated
10977 # until the next sync or stat operation on the file.
10978 ls -l structure/file >/dev/null
10980 # If the time of an initial backup and the creation time of a file contained
10981 # in that backup are the same, the file will be backed up again when an
10982 # incremental backup is done, because the incremental backup backs up
10983 # files created `on or after' the initial backup time. Without the sleep
10984 # command, behaviour of tar becomes variable, depending whether the system
10985 # clock ticked over to the next second between creating the file and
10989 tar cf archive --listed=list structure
10990 tar cfv archive --listed=list structure
10993 echo y >structure/file
10994 tar cfv archive --listed=list structure
10995 ) ) >"$at_stdout" 2>"$at_stderr"
11000 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
11001 echo >>"$at_stdout"; echo "structure/
11005 " | $at_diff - "$at_stdout" || at_failed=:
11007 77) echo 77 > "$at_status_file"; exit 77;;
11009 *) echo "$at_srcdir/incremental.at:26: exit code was $at_status, expected 0"
11012 if $at_failed; then
11015 echo 1 > "$at_status_file"
11024 $at_times_p && times >"$at_times_file"
11025 ) 5>&1 2>&1 | eval $at_tee_pipe
11026 at_status=`cat "$at_status_file"`
11029 27 ) # 27. incr01.at:27: restore broken symlinks from incremental
11030 at_setup_line='incr01.at:27'
11031 at_desc="restore broken symlinks from incremental"
11032 $at_quiet $ECHO_N " 27: restore broken symlinks from incremental $ECHO_C"
11034 test -f $XFAILFILE && at_xfail=yes
11035 echo "# -*- compilation -*-" >> "$at_group_log"
11037 echo "27. incr01.at:27: testing ..."
11045 echo "$at_srcdir/incr01.at:30:
11048 TEST_TAR_FORMAT=gnu
11049 export TEST_TAR_FORMAT
11050 TAR_OPTIONS=\"-H gnu\"
11055 \$as_ln_s foo directory/bar
11057 tar -cf archive.0 -g db directory
11059 tar -cf archive.1 -g db directory
11063 tar xvfg archive.0 /dev/null
11065 tar xvfg archive.1 /dev/null
11067 echo incr01.at:30 >"$at_check_line_file"
11070 if test -n "$at_traceon"; then
11071 echo 'Not enabling shell tracing (command contains an embedded newline)'
11074 if test -n "$at_trace_this"; then
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
11096 ) ) >"$at_stdout" 2>"$at_stder1"
11098 grep '^ *+' "$at_stder1" >&2
11099 grep -v '^ *+' "$at_stder1" >"$at_stderr"
11104 TEST_TAR_FORMAT=gnu
11105 export TEST_TAR_FORMAT
11106 TAR_OPTIONS="-H gnu"
11111 $as_ln_s foo directory/bar
11113 tar -cf archive.0 -g db directory
11115 tar -cf archive.1 -g db directory
11119 tar xvfg archive.0 /dev/null
11121 tar xvfg archive.1 /dev/null
11122 ) ) >"$at_stdout" 2>"$at_stderr"
11127 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
11128 echo >>"$at_stdout"; echo "directory/
11132 tar: Deleting \`directory/bar'
11133 " | $at_diff - "$at_stdout" || at_failed=:
11135 77) echo 77 > "$at_status_file"; exit 77;;
11137 *) echo "$at_srcdir/incr01.at:30: exit code was $at_status, expected 0"
11140 if $at_failed; then
11143 echo 1 > "$at_status_file"
11149 echo "$at_srcdir/incr01.at:30:
11152 TEST_TAR_FORMAT=oldgnu
11153 export TEST_TAR_FORMAT
11154 TAR_OPTIONS=\"-H oldgnu\"
11159 \$as_ln_s foo directory/bar
11161 tar -cf archive.0 -g db directory
11163 tar -cf archive.1 -g db directory
11167 tar xvfg archive.0 /dev/null
11169 tar xvfg archive.1 /dev/null
11171 echo incr01.at:30 >"$at_check_line_file"
11174 if test -n "$at_traceon"; then
11175 echo 'Not enabling shell tracing (command contains an embedded newline)'
11178 if test -n "$at_trace_this"; then
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
11200 ) ) >"$at_stdout" 2>"$at_stder1"
11202 grep '^ *+' "$at_stder1" >&2
11203 grep -v '^ *+' "$at_stder1" >"$at_stderr"
11208 TEST_TAR_FORMAT=oldgnu
11209 export TEST_TAR_FORMAT
11210 TAR_OPTIONS="-H oldgnu"
11215 $as_ln_s foo directory/bar
11217 tar -cf archive.0 -g db directory
11219 tar -cf archive.1 -g db directory
11223 tar xvfg archive.0 /dev/null
11225 tar xvfg archive.1 /dev/null
11226 ) ) >"$at_stdout" 2>"$at_stderr"
11231 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
11232 echo >>"$at_stdout"; echo "directory/
11236 tar: Deleting \`directory/bar'
11237 " | $at_diff - "$at_stdout" || at_failed=:
11239 77) echo 77 > "$at_status_file"; exit 77;;
11241 *) echo "$at_srcdir/incr01.at:30: exit code was $at_status, expected 0"
11244 if $at_failed; then
11247 echo 1 > "$at_status_file"
11253 echo "$at_srcdir/incr01.at:30:
11256 TEST_TAR_FORMAT=posix
11257 export TEST_TAR_FORMAT
11258 TAR_OPTIONS=\"-H posix\"
11263 \$as_ln_s foo directory/bar
11265 tar -cf archive.0 -g db directory
11267 tar -cf archive.1 -g db directory
11271 tar xvfg archive.0 /dev/null
11273 tar xvfg archive.1 /dev/null
11275 echo incr01.at:30 >"$at_check_line_file"
11278 if test -n "$at_traceon"; then
11279 echo 'Not enabling shell tracing (command contains an embedded newline)'
11282 if test -n "$at_trace_this"; then
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
11304 ) ) >"$at_stdout" 2>"$at_stder1"
11306 grep '^ *+' "$at_stder1" >&2
11307 grep -v '^ *+' "$at_stder1" >"$at_stderr"
11312 TEST_TAR_FORMAT=posix
11313 export TEST_TAR_FORMAT
11314 TAR_OPTIONS="-H posix"
11319 $as_ln_s foo directory/bar
11321 tar -cf archive.0 -g db directory
11323 tar -cf archive.1 -g db directory
11327 tar xvfg archive.0 /dev/null
11329 tar xvfg archive.1 /dev/null
11330 ) ) >"$at_stdout" 2>"$at_stderr"
11335 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
11336 echo >>"$at_stdout"; echo "directory/
11340 tar: Deleting \`directory/bar'
11341 " | $at_diff - "$at_stdout" || at_failed=:
11343 77) echo 77 > "$at_status_file"; exit 77;;
11345 *) echo "$at_srcdir/incr01.at:30: exit code was $at_status, expected 0"
11348 if $at_failed; then
11351 echo 1 > "$at_status_file"
11360 $at_times_p && times >"$at_times_file"
11361 ) 5>&1 2>&1 | eval $at_tee_pipe
11362 at_status=`cat "$at_status_file"`
11365 28 ) # 28. incr02.at:32: restoring timestamps from incremental
11366 at_setup_line='incr02.at:32'
11367 at_desc="restoring timestamps from incremental"
11368 $at_quiet $ECHO_N " 28: restoring timestamps from incremental $ECHO_C"
11370 test -f $XFAILFILE && at_xfail=yes
11371 echo "# -*- compilation -*-" >> "$at_group_log"
11373 echo "28. incr02.at:32: testing ..."
11381 echo "$at_srcdir/incr02.at:35:
11384 TEST_TAR_FORMAT=gnu
11385 export TEST_TAR_FORMAT
11386 TAR_OPTIONS=\"-H gnu\"
11390 # Create directory structure
11394 genfile --length 10 --file dir/subdir1/file
11396 # Save mtime for later comparison
11397 genfile --stat=mtime dir/subdir1 > ts
11399 # Create an archive. Using incremental mode makes sure the
11400 # archive will have a directory-first member ordering,
11405 # dir/subdir1/foofile
11407 # When restoring from this directory structure, \`dir/subdir2/' used to
11408 # trigger apply_nonancestor_delayed_set_stat() which restored stats for
11409 # \`subdir1' prior to restoring \`dir/subdir1/foofile'. Then, restoring the
11410 # latter clobbered the directory timestamp.
11412 tar -cf archive -g db dir
11414 # Move away the directory
11417 # Wait enough time for timestamps to differ in case of failure.
11420 # Restore the directory
11421 tar -xf archive dir
11423 # Check the timestamp
11424 genfile --stat=mtime dir/subdir1 | diff ts -
11426 echo incr02.at:35 >"$at_check_line_file"
11429 if test -n "$at_traceon"; then
11430 echo 'Not enabling shell tracing (command contains a `...` command substitution)'
11433 if test -n "$at_trace_this"; then
11437 TEST_TAR_FORMAT=gnu
11438 export TEST_TAR_FORMAT
11439 TAR_OPTIONS="-H gnu"
11443 # Create directory structure
11447 genfile --length 10 --file dir/subdir1/file
11449 # Save mtime for later comparison
11450 genfile --stat=mtime dir/subdir1 > ts
11452 # Create an archive. Using incremental mode makes sure the
11453 # archive will have a directory-first member ordering,
11458 # dir/subdir1/foofile
11460 # When restoring from this directory structure, `dir/subdir2/' used to
11461 # trigger apply_nonancestor_delayed_set_stat() which restored stats for
11462 # `subdir1' prior to restoring `dir/subdir1/foofile'. Then, restoring the
11463 # latter clobbered the directory timestamp.
11465 tar -cf archive -g db dir
11467 # Move away the directory
11470 # Wait enough time for timestamps to differ in case of failure.
11473 # Restore the directory
11474 tar -xf archive dir
11476 # Check the timestamp
11477 genfile --stat=mtime dir/subdir1 | diff ts -
11478 ) ) >"$at_stdout" 2>"$at_stder1"
11480 grep '^ *+' "$at_stder1" >&2
11481 grep -v '^ *+' "$at_stder1" >"$at_stderr"
11486 TEST_TAR_FORMAT=gnu
11487 export TEST_TAR_FORMAT
11488 TAR_OPTIONS="-H gnu"
11492 # Create directory structure
11496 genfile --length 10 --file dir/subdir1/file
11498 # Save mtime for later comparison
11499 genfile --stat=mtime dir/subdir1 > ts
11501 # Create an archive. Using incremental mode makes sure the
11502 # archive will have a directory-first member ordering,
11507 # dir/subdir1/foofile
11509 # When restoring from this directory structure, `dir/subdir2/' used to
11510 # trigger apply_nonancestor_delayed_set_stat() which restored stats for
11511 # `subdir1' prior to restoring `dir/subdir1/foofile'. Then, restoring the
11512 # latter clobbered the directory timestamp.
11514 tar -cf archive -g db dir
11516 # Move away the directory
11519 # Wait enough time for timestamps to differ in case of failure.
11522 # Restore the directory
11523 tar -xf archive dir
11525 # Check the timestamp
11526 genfile --stat=mtime dir/subdir1 | diff ts -
11527 ) ) >"$at_stdout" 2>"$at_stderr"
11532 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
11533 $at_diff "$at_devnull" "$at_stdout" || at_failed=:
11535 77) echo 77 > "$at_status_file"; exit 77;;
11537 *) echo "$at_srcdir/incr02.at:35: exit code was $at_status, expected 0"
11540 if $at_failed; then
11543 echo 1 > "$at_status_file"
11549 echo "$at_srcdir/incr02.at:35:
11552 TEST_TAR_FORMAT=oldgnu
11553 export TEST_TAR_FORMAT
11554 TAR_OPTIONS=\"-H oldgnu\"
11558 # Create directory structure
11562 genfile --length 10 --file dir/subdir1/file
11564 # Save mtime for later comparison
11565 genfile --stat=mtime dir/subdir1 > ts
11567 # Create an archive. Using incremental mode makes sure the
11568 # archive will have a directory-first member ordering,
11573 # dir/subdir1/foofile
11575 # When restoring from this directory structure, \`dir/subdir2/' used to
11576 # trigger apply_nonancestor_delayed_set_stat() which restored stats for
11577 # \`subdir1' prior to restoring \`dir/subdir1/foofile'. Then, restoring the
11578 # latter clobbered the directory timestamp.
11580 tar -cf archive -g db dir
11582 # Move away the directory
11585 # Wait enough time for timestamps to differ in case of failure.
11588 # Restore the directory
11589 tar -xf archive dir
11591 # Check the timestamp
11592 genfile --stat=mtime dir/subdir1 | diff ts -
11594 echo incr02.at:35 >"$at_check_line_file"
11597 if test -n "$at_traceon"; then
11598 echo 'Not enabling shell tracing (command contains a `...` command substitution)'
11601 if test -n "$at_trace_this"; then
11605 TEST_TAR_FORMAT=oldgnu
11606 export TEST_TAR_FORMAT
11607 TAR_OPTIONS="-H oldgnu"
11611 # Create directory structure
11615 genfile --length 10 --file dir/subdir1/file
11617 # Save mtime for later comparison
11618 genfile --stat=mtime dir/subdir1 > ts
11620 # Create an archive. Using incremental mode makes sure the
11621 # archive will have a directory-first member ordering,
11626 # dir/subdir1/foofile
11628 # When restoring from this directory structure, `dir/subdir2/' used to
11629 # trigger apply_nonancestor_delayed_set_stat() which restored stats for
11630 # `subdir1' prior to restoring `dir/subdir1/foofile'. Then, restoring the
11631 # latter clobbered the directory timestamp.
11633 tar -cf archive -g db dir
11635 # Move away the directory
11638 # Wait enough time for timestamps to differ in case of failure.
11641 # Restore the directory
11642 tar -xf archive dir
11644 # Check the timestamp
11645 genfile --stat=mtime dir/subdir1 | diff ts -
11646 ) ) >"$at_stdout" 2>"$at_stder1"
11648 grep '^ *+' "$at_stder1" >&2
11649 grep -v '^ *+' "$at_stder1" >"$at_stderr"
11654 TEST_TAR_FORMAT=oldgnu
11655 export TEST_TAR_FORMAT
11656 TAR_OPTIONS="-H oldgnu"
11660 # Create directory structure
11664 genfile --length 10 --file dir/subdir1/file
11666 # Save mtime for later comparison
11667 genfile --stat=mtime dir/subdir1 > ts
11669 # Create an archive. Using incremental mode makes sure the
11670 # archive will have a directory-first member ordering,
11675 # dir/subdir1/foofile
11677 # When restoring from this directory structure, `dir/subdir2/' used to
11678 # trigger apply_nonancestor_delayed_set_stat() which restored stats for
11679 # `subdir1' prior to restoring `dir/subdir1/foofile'. Then, restoring the
11680 # latter clobbered the directory timestamp.
11682 tar -cf archive -g db dir
11684 # Move away the directory
11687 # Wait enough time for timestamps to differ in case of failure.
11690 # Restore the directory
11691 tar -xf archive dir
11693 # Check the timestamp
11694 genfile --stat=mtime dir/subdir1 | diff ts -
11695 ) ) >"$at_stdout" 2>"$at_stderr"
11700 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
11701 $at_diff "$at_devnull" "$at_stdout" || at_failed=:
11703 77) echo 77 > "$at_status_file"; exit 77;;
11705 *) echo "$at_srcdir/incr02.at:35: exit code was $at_status, expected 0"
11708 if $at_failed; then
11711 echo 1 > "$at_status_file"
11717 echo "$at_srcdir/incr02.at:35:
11720 TEST_TAR_FORMAT=posix
11721 export TEST_TAR_FORMAT
11722 TAR_OPTIONS=\"-H posix\"
11726 # Create directory structure
11730 genfile --length 10 --file dir/subdir1/file
11732 # Save mtime for later comparison
11733 genfile --stat=mtime dir/subdir1 > ts
11735 # Create an archive. Using incremental mode makes sure the
11736 # archive will have a directory-first member ordering,
11741 # dir/subdir1/foofile
11743 # When restoring from this directory structure, \`dir/subdir2/' used to
11744 # trigger apply_nonancestor_delayed_set_stat() which restored stats for
11745 # \`subdir1' prior to restoring \`dir/subdir1/foofile'. Then, restoring the
11746 # latter clobbered the directory timestamp.
11748 tar -cf archive -g db dir
11750 # Move away the directory
11753 # Wait enough time for timestamps to differ in case of failure.
11756 # Restore the directory
11757 tar -xf archive dir
11759 # Check the timestamp
11760 genfile --stat=mtime dir/subdir1 | diff ts -
11762 echo incr02.at:35 >"$at_check_line_file"
11765 if test -n "$at_traceon"; then
11766 echo 'Not enabling shell tracing (command contains a `...` command substitution)'
11769 if test -n "$at_trace_this"; then
11773 TEST_TAR_FORMAT=posix
11774 export TEST_TAR_FORMAT
11775 TAR_OPTIONS="-H posix"
11779 # Create directory structure
11783 genfile --length 10 --file dir/subdir1/file
11785 # Save mtime for later comparison
11786 genfile --stat=mtime dir/subdir1 > ts
11788 # Create an archive. Using incremental mode makes sure the
11789 # archive will have a directory-first member ordering,
11794 # dir/subdir1/foofile
11796 # When restoring from this directory structure, `dir/subdir2/' used to
11797 # trigger apply_nonancestor_delayed_set_stat() which restored stats for
11798 # `subdir1' prior to restoring `dir/subdir1/foofile'. Then, restoring the
11799 # latter clobbered the directory timestamp.
11801 tar -cf archive -g db dir
11803 # Move away the directory
11806 # Wait enough time for timestamps to differ in case of failure.
11809 # Restore the directory
11810 tar -xf archive dir
11812 # Check the timestamp
11813 genfile --stat=mtime dir/subdir1 | diff ts -
11814 ) ) >"$at_stdout" 2>"$at_stder1"
11816 grep '^ *+' "$at_stder1" >&2
11817 grep -v '^ *+' "$at_stder1" >"$at_stderr"
11822 TEST_TAR_FORMAT=posix
11823 export TEST_TAR_FORMAT
11824 TAR_OPTIONS="-H posix"
11828 # Create directory structure
11832 genfile --length 10 --file dir/subdir1/file
11834 # Save mtime for later comparison
11835 genfile --stat=mtime dir/subdir1 > ts
11837 # Create an archive. Using incremental mode makes sure the
11838 # archive will have a directory-first member ordering,
11843 # dir/subdir1/foofile
11845 # When restoring from this directory structure, `dir/subdir2/' used to
11846 # trigger apply_nonancestor_delayed_set_stat() which restored stats for
11847 # `subdir1' prior to restoring `dir/subdir1/foofile'. Then, restoring the
11848 # latter clobbered the directory timestamp.
11850 tar -cf archive -g db dir
11852 # Move away the directory
11855 # Wait enough time for timestamps to differ in case of failure.
11858 # Restore the directory
11859 tar -xf archive dir
11861 # Check the timestamp
11862 genfile --stat=mtime dir/subdir1 | diff ts -
11863 ) ) >"$at_stdout" 2>"$at_stderr"
11868 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
11869 $at_diff "$at_devnull" "$at_stdout" || at_failed=:
11871 77) echo 77 > "$at_status_file"; exit 77;;
11873 *) echo "$at_srcdir/incr02.at:35: exit code was $at_status, expected 0"
11876 if $at_failed; then
11879 echo 1 > "$at_status_file"
11888 $at_times_p && times >"$at_times_file"
11889 ) 5>&1 2>&1 | eval $at_tee_pipe
11890 at_status=`cat "$at_status_file"`
11893 29 ) # 29. listed01.at:26: --listed for individual files
11894 at_setup_line='listed01.at:26'
11895 at_desc="--listed for individual files"
11896 $at_quiet $ECHO_N " 29: --listed for individual files $ECHO_C"
11898 test -f $XFAILFILE && at_xfail=yes
11899 echo "# -*- compilation -*-" >> "$at_group_log"
11901 echo "29. listed01.at:26: testing ..."
11909 echo "$at_srcdir/listed01.at:29:
11912 TEST_TAR_FORMAT=gnu
11913 export TEST_TAR_FORMAT
11914 TAR_OPTIONS=\"-H gnu\"
11919 genfile --length 10240 --pattern zeros --file directory/file1
11920 # Let the things settle
11924 --file=archive.1 \\
11925 --listed-incremental=listing \\
11928 tar tf archive.1 || exit 1
11932 genfile --length 10240 --pattern zeros --file directory/file2
11937 --file=archive.2 \\
11938 --listed-incremental=listing \\
11939 directory/file* || exit 1
11941 tar tf archive.2 || exit 1
11943 echo listed01.at:29 >"$at_check_line_file"
11946 if test -n "$at_traceon"; then
11947 echo 'Not enabling shell tracing (command contains an embedded newline)'
11950 if test -n "$at_trace_this"; then
11954 TEST_TAR_FORMAT=gnu
11955 export TEST_TAR_FORMAT
11956 TAR_OPTIONS="-H gnu"
11961 genfile --length 10240 --pattern zeros --file directory/file1
11962 # Let the things settle
11967 --listed-incremental=listing \
11970 tar tf archive.1 || exit 1
11974 genfile --length 10240 --pattern zeros --file directory/file2
11980 --listed-incremental=listing \
11981 directory/file* || exit 1
11983 tar tf archive.2 || exit 1
11984 ) ) >"$at_stdout" 2>"$at_stder1"
11986 grep '^ *+' "$at_stder1" >&2
11987 grep -v '^ *+' "$at_stder1" >"$at_stderr"
11992 TEST_TAR_FORMAT=gnu
11993 export TEST_TAR_FORMAT
11994 TAR_OPTIONS="-H gnu"
11999 genfile --length 10240 --pattern zeros --file directory/file1
12000 # Let the things settle
12005 --listed-incremental=listing \
12008 tar tf archive.1 || exit 1
12012 genfile --length 10240 --pattern zeros --file directory/file2
12018 --listed-incremental=listing \
12019 directory/file* || exit 1
12021 tar tf archive.2 || exit 1
12022 ) ) >"$at_stdout" 2>"$at_stderr"
12027 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
12028 echo >>"$at_stdout"; echo "directory/file1
12031 " | $at_diff - "$at_stdout" || at_failed=:
12033 77) echo 77 > "$at_status_file"; exit 77;;
12035 *) echo "$at_srcdir/listed01.at:29: exit code was $at_status, expected 0"
12038 if $at_failed; then
12041 echo 1 > "$at_status_file"
12047 echo "$at_srcdir/listed01.at:29:
12050 TEST_TAR_FORMAT=oldgnu
12051 export TEST_TAR_FORMAT
12052 TAR_OPTIONS=\"-H oldgnu\"
12057 genfile --length 10240 --pattern zeros --file directory/file1
12058 # Let the things settle
12062 --file=archive.1 \\
12063 --listed-incremental=listing \\
12066 tar tf archive.1 || exit 1
12070 genfile --length 10240 --pattern zeros --file directory/file2
12075 --file=archive.2 \\
12076 --listed-incremental=listing \\
12077 directory/file* || exit 1
12079 tar tf archive.2 || exit 1
12081 echo listed01.at:29 >"$at_check_line_file"
12084 if test -n "$at_traceon"; then
12085 echo 'Not enabling shell tracing (command contains an embedded newline)'
12088 if test -n "$at_trace_this"; then
12092 TEST_TAR_FORMAT=oldgnu
12093 export TEST_TAR_FORMAT
12094 TAR_OPTIONS="-H oldgnu"
12099 genfile --length 10240 --pattern zeros --file directory/file1
12100 # Let the things settle
12105 --listed-incremental=listing \
12108 tar tf archive.1 || exit 1
12112 genfile --length 10240 --pattern zeros --file directory/file2
12118 --listed-incremental=listing \
12119 directory/file* || exit 1
12121 tar tf archive.2 || exit 1
12122 ) ) >"$at_stdout" 2>"$at_stder1"
12124 grep '^ *+' "$at_stder1" >&2
12125 grep -v '^ *+' "$at_stder1" >"$at_stderr"
12130 TEST_TAR_FORMAT=oldgnu
12131 export TEST_TAR_FORMAT
12132 TAR_OPTIONS="-H oldgnu"
12137 genfile --length 10240 --pattern zeros --file directory/file1
12138 # Let the things settle
12143 --listed-incremental=listing \
12146 tar tf archive.1 || exit 1
12150 genfile --length 10240 --pattern zeros --file directory/file2
12156 --listed-incremental=listing \
12157 directory/file* || exit 1
12159 tar tf archive.2 || exit 1
12160 ) ) >"$at_stdout" 2>"$at_stderr"
12165 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
12166 echo >>"$at_stdout"; echo "directory/file1
12169 " | $at_diff - "$at_stdout" || at_failed=:
12171 77) echo 77 > "$at_status_file"; exit 77;;
12173 *) echo "$at_srcdir/listed01.at:29: exit code was $at_status, expected 0"
12176 if $at_failed; then
12179 echo 1 > "$at_status_file"
12188 $at_times_p && times >"$at_times_file"
12189 ) 5>&1 2>&1 | eval $at_tee_pipe
12190 at_status=`cat "$at_status_file"`
12193 30 ) # 30. listed02.at:28: working --listed
12194 at_setup_line='listed02.at:28'
12195 at_desc="working --listed"
12196 $at_quiet $ECHO_N " 30: working --listed $ECHO_C"
12198 test -f $XFAILFILE && at_xfail=yes
12199 echo "# -*- compilation -*-" >> "$at_group_log"
12201 echo "30. listed02.at:28: testing ..."
12209 echo "$at_srcdir/listed02.at:31:
12212 TEST_TAR_FORMAT=gnu
12213 export TEST_TAR_FORMAT
12214 TAR_OPTIONS=\"-H gnu\"
12219 test -z "`sort < /dev/null 2>&1`" || exit 77
12221 echo Create directories
12230 for file in tart/a1 tart/b1 tart/c0/cq1 tart/c0/cq2 tart/c1/ca1 tart/c1/ca2
12232 echo File \$file > \$file
12237 echo Creating main archive
12238 tar -c -v --listed-incremental=tart.incr1 -f archive.1 tart 2> err || exit 1
12240 # The above prints two lines to stderr announcing the new directories c0 and c1.
12241 # Ensure that they appear in this script's stderr in sorted order.
12242 sort err 1>&2; rm -f err
12245 echo Modifying filesystem
12252 echo Directory contents
12253 find tart -print | sort 2>/dev/null
12256 echo Creating incremental archive
12257 cp -p tart.incr1 tart.incr2
12258 tar -c -v --listed-incremental=tart.incr2 -f archive.2 tart || exit 1
12263 echo Extracting main archive
12264 tar -x -v --listed-incremental=tart.incr1 -f archive.1 || exit 1
12265 echo Extracting incremental archive
12266 # This command should produce three messages about deletion
12267 # of the existing files, that may appear in any order. Piping
12268 # to sort makes sure we don't depend on any particular ordering.
12269 tar -x -v --listed-incremental=tart.incr2 -f archive.2 | sort 2>/dev/null
12272 find tart -print | sort 2>/dev/null
12274 echo listed02.at:31 >"$at_check_line_file"
12277 if test -n "$at_traceon"; then
12278 echo 'Not enabling shell tracing (command contains an embedded newline)'
12281 if test -n "$at_trace_this"; then
12285 TEST_TAR_FORMAT=gnu
12286 export TEST_TAR_FORMAT
12287 TAR_OPTIONS="-H gnu"
12292 test -z "`sort < /dev/null 2>&1`" || exit 77
12294 echo Create directories
12303 for file in tart/a1 tart/b1 tart/c0/cq1 tart/c0/cq2 tart/c1/ca1 tart/c1/ca2
12305 echo File $file > $file
12310 echo Creating main archive
12311 tar -c -v --listed-incremental=tart.incr1 -f archive.1 tart 2> err || exit 1
12313 # The above prints two lines to stderr announcing the new directories c0 and c1.
12314 # Ensure that they appear in this script's stderr in sorted order.
12315 sort err 1>&2; rm -f err
12318 echo Modifying filesystem
12325 echo Directory contents
12326 find tart -print | sort 2>/dev/null
12329 echo Creating incremental archive
12330 cp -p tart.incr1 tart.incr2
12331 tar -c -v --listed-incremental=tart.incr2 -f archive.2 tart || exit 1
12336 echo Extracting main archive
12337 tar -x -v --listed-incremental=tart.incr1 -f archive.1 || exit 1
12338 echo Extracting incremental archive
12339 # This command should produce three messages about deletion
12340 # of the existing files, that may appear in any order. Piping
12341 # to sort makes sure we don't depend on any particular ordering.
12342 tar -x -v --listed-incremental=tart.incr2 -f archive.2 | sort 2>/dev/null
12345 find tart -print | sort 2>/dev/null
12346 ) ) >"$at_stdout" 2>"$at_stder1"
12348 grep '^ *+' "$at_stder1" >&2
12349 grep -v '^ *+' "$at_stder1" >"$at_stderr"
12354 TEST_TAR_FORMAT=gnu
12355 export TEST_TAR_FORMAT
12356 TAR_OPTIONS="-H gnu"
12361 test -z "`sort < /dev/null 2>&1`" || exit 77
12363 echo Create directories
12372 for file in tart/a1 tart/b1 tart/c0/cq1 tart/c0/cq2 tart/c1/ca1 tart/c1/ca2
12374 echo File $file > $file
12379 echo Creating main archive
12380 tar -c -v --listed-incremental=tart.incr1 -f archive.1 tart 2> err || exit 1
12382 # The above prints two lines to stderr announcing the new directories c0 and c1.
12383 # Ensure that they appear in this script's stderr in sorted order.
12384 sort err 1>&2; rm -f err
12387 echo Modifying filesystem
12394 echo Directory contents
12395 find tart -print | sort 2>/dev/null
12398 echo Creating incremental archive
12399 cp -p tart.incr1 tart.incr2
12400 tar -c -v --listed-incremental=tart.incr2 -f archive.2 tart || exit 1
12405 echo Extracting main archive
12406 tar -x -v --listed-incremental=tart.incr1 -f archive.1 || exit 1
12407 echo Extracting incremental archive
12408 # This command should produce three messages about deletion
12409 # of the existing files, that may appear in any order. Piping
12410 # to sort makes sure we don't depend on any particular ordering.
12411 tar -x -v --listed-incremental=tart.incr2 -f archive.2 | sort 2>/dev/null
12414 find tart -print | sort 2>/dev/null
12415 ) ) >"$at_stdout" 2>"$at_stderr"
12420 echo >>"$at_stderr"; echo "tar: tart/c0: Directory is new
12421 tar: tart/c1: Directory is new
12422 tar: tart/c2: Directory has been renamed from \`tart/c1'
12423 " | $at_diff - "$at_stderr" || at_failed=:
12424 echo >>"$at_stdout"; echo "Create directories
12425 Creating main archive
12435 Modifying filesystem
12446 Creating incremental archive
12452 Extracting main archive
12462 Extracting incremental archive
12463 tar: Deleting \`tart/a1'
12464 tar: Deleting \`tart/b1'
12480 " | $at_diff - "$at_stdout" || at_failed=:
12482 77) echo 77 > "$at_status_file"; exit 77;;
12484 *) echo "$at_srcdir/listed02.at:31: exit code was $at_status, expected 0"
12487 if $at_failed; then
12490 echo 1 > "$at_status_file"
12496 echo "$at_srcdir/listed02.at:31:
12499 TEST_TAR_FORMAT=oldgnu
12500 export TEST_TAR_FORMAT
12501 TAR_OPTIONS=\"-H oldgnu\"
12506 test -z "`sort < /dev/null 2>&1`" || exit 77
12508 echo Create directories
12517 for file in tart/a1 tart/b1 tart/c0/cq1 tart/c0/cq2 tart/c1/ca1 tart/c1/ca2
12519 echo File \$file > \$file
12524 echo Creating main archive
12525 tar -c -v --listed-incremental=tart.incr1 -f archive.1 tart 2> err || exit 1
12527 # The above prints two lines to stderr announcing the new directories c0 and c1.
12528 # Ensure that they appear in this script's stderr in sorted order.
12529 sort err 1>&2; rm -f err
12532 echo Modifying filesystem
12539 echo Directory contents
12540 find tart -print | sort 2>/dev/null
12543 echo Creating incremental archive
12544 cp -p tart.incr1 tart.incr2
12545 tar -c -v --listed-incremental=tart.incr2 -f archive.2 tart || exit 1
12550 echo Extracting main archive
12551 tar -x -v --listed-incremental=tart.incr1 -f archive.1 || exit 1
12552 echo Extracting incremental archive
12553 # This command should produce three messages about deletion
12554 # of the existing files, that may appear in any order. Piping
12555 # to sort makes sure we don't depend on any particular ordering.
12556 tar -x -v --listed-incremental=tart.incr2 -f archive.2 | sort 2>/dev/null
12559 find tart -print | sort 2>/dev/null
12561 echo listed02.at:31 >"$at_check_line_file"
12564 if test -n "$at_traceon"; then
12565 echo 'Not enabling shell tracing (command contains an embedded newline)'
12568 if test -n "$at_trace_this"; then
12572 TEST_TAR_FORMAT=oldgnu
12573 export TEST_TAR_FORMAT
12574 TAR_OPTIONS="-H oldgnu"
12579 test -z "`sort < /dev/null 2>&1`" || exit 77
12581 echo Create directories
12590 for file in tart/a1 tart/b1 tart/c0/cq1 tart/c0/cq2 tart/c1/ca1 tart/c1/ca2
12592 echo File $file > $file
12597 echo Creating main archive
12598 tar -c -v --listed-incremental=tart.incr1 -f archive.1 tart 2> err || exit 1
12600 # The above prints two lines to stderr announcing the new directories c0 and c1.
12601 # Ensure that they appear in this script's stderr in sorted order.
12602 sort err 1>&2; rm -f err
12605 echo Modifying filesystem
12612 echo Directory contents
12613 find tart -print | sort 2>/dev/null
12616 echo Creating incremental archive
12617 cp -p tart.incr1 tart.incr2
12618 tar -c -v --listed-incremental=tart.incr2 -f archive.2 tart || exit 1
12623 echo Extracting main archive
12624 tar -x -v --listed-incremental=tart.incr1 -f archive.1 || exit 1
12625 echo Extracting incremental archive
12626 # This command should produce three messages about deletion
12627 # of the existing files, that may appear in any order. Piping
12628 # to sort makes sure we don't depend on any particular ordering.
12629 tar -x -v --listed-incremental=tart.incr2 -f archive.2 | sort 2>/dev/null
12632 find tart -print | sort 2>/dev/null
12633 ) ) >"$at_stdout" 2>"$at_stder1"
12635 grep '^ *+' "$at_stder1" >&2
12636 grep -v '^ *+' "$at_stder1" >"$at_stderr"
12641 TEST_TAR_FORMAT=oldgnu
12642 export TEST_TAR_FORMAT
12643 TAR_OPTIONS="-H oldgnu"
12648 test -z "`sort < /dev/null 2>&1`" || exit 77
12650 echo Create directories
12659 for file in tart/a1 tart/b1 tart/c0/cq1 tart/c0/cq2 tart/c1/ca1 tart/c1/ca2
12661 echo File $file > $file
12666 echo Creating main archive
12667 tar -c -v --listed-incremental=tart.incr1 -f archive.1 tart 2> err || exit 1
12669 # The above prints two lines to stderr announcing the new directories c0 and c1.
12670 # Ensure that they appear in this script's stderr in sorted order.
12671 sort err 1>&2; rm -f err
12674 echo Modifying filesystem
12681 echo Directory contents
12682 find tart -print | sort 2>/dev/null
12685 echo Creating incremental archive
12686 cp -p tart.incr1 tart.incr2
12687 tar -c -v --listed-incremental=tart.incr2 -f archive.2 tart || exit 1
12692 echo Extracting main archive
12693 tar -x -v --listed-incremental=tart.incr1 -f archive.1 || exit 1
12694 echo Extracting incremental archive
12695 # This command should produce three messages about deletion
12696 # of the existing files, that may appear in any order. Piping
12697 # to sort makes sure we don't depend on any particular ordering.
12698 tar -x -v --listed-incremental=tart.incr2 -f archive.2 | sort 2>/dev/null
12701 find tart -print | sort 2>/dev/null
12702 ) ) >"$at_stdout" 2>"$at_stderr"
12707 echo >>"$at_stderr"; echo "tar: tart/c0: Directory is new
12708 tar: tart/c1: Directory is new
12709 tar: tart/c2: Directory has been renamed from \`tart/c1'
12710 " | $at_diff - "$at_stderr" || at_failed=:
12711 echo >>"$at_stdout"; echo "Create directories
12712 Creating main archive
12722 Modifying filesystem
12733 Creating incremental archive
12739 Extracting main archive
12749 Extracting incremental archive
12750 tar: Deleting \`tart/a1'
12751 tar: Deleting \`tart/b1'
12767 " | $at_diff - "$at_stdout" || at_failed=:
12769 77) echo 77 > "$at_status_file"; exit 77;;
12771 *) echo "$at_srcdir/listed02.at:31: exit code was $at_status, expected 0"
12774 if $at_failed; then
12777 echo 1 > "$at_status_file"
12786 $at_times_p && times >"$at_times_file"
12787 ) 5>&1 2>&1 | eval $at_tee_pipe
12788 at_status=`cat "$at_status_file"`
12791 31 ) # 31. incr03.at:28: renamed files in incrementals
12792 at_setup_line='incr03.at:28'
12793 at_desc="renamed files in incrementals"
12794 $at_quiet $ECHO_N " 31: renamed files in incrementals $ECHO_C"
12796 test -f $XFAILFILE && at_xfail=yes
12797 echo "# -*- compilation -*-" >> "$at_group_log"
12799 echo "31. incr03.at:28: testing ..."
12807 echo "$at_srcdir/incr03.at:31:
12810 TEST_TAR_FORMAT=gnu
12811 export TEST_TAR_FORMAT
12812 TAR_OPTIONS=\"-H gnu\"
12817 test -z "`sort < /dev/null 2>&1`" || exit 77
12820 genfile --file=directory/x
12821 genfile --file=directory/y
12825 tar -cf archive.1 -g db directory
12827 mv directory/x directory/z
12828 tar -cf archive.2 -g db directory
12832 echo Listing of archive.1
12833 tar -tf archive.1 | sort
12834 echo Listing of archive.2
12835 tar -tf archive.2 | sort
12837 echo Directory after first restore
12838 tar -xf archive.1 -g db
12839 find directory | sort
12841 echo Directory after second restore
12842 tar -xf archive.2 -g db
12843 find directory | sort
12845 echo incr03.at:31 >"$at_check_line_file"
12848 if test -n "$at_traceon"; then
12849 echo 'Not enabling shell tracing (command contains an embedded newline)'
12852 if test -n "$at_trace_this"; then
12856 TEST_TAR_FORMAT=gnu
12857 export TEST_TAR_FORMAT
12858 TAR_OPTIONS="-H gnu"
12863 test -z "`sort < /dev/null 2>&1`" || exit 77
12866 genfile --file=directory/x
12867 genfile --file=directory/y
12871 tar -cf archive.1 -g db directory
12873 mv directory/x directory/z
12874 tar -cf archive.2 -g db directory
12878 echo Listing of archive.1
12879 tar -tf archive.1 | sort
12880 echo Listing of archive.2
12881 tar -tf archive.2 | sort
12883 echo Directory after first restore
12884 tar -xf archive.1 -g db
12885 find directory | sort
12887 echo Directory after second restore
12888 tar -xf archive.2 -g db
12889 find directory | sort
12890 ) ) >"$at_stdout" 2>"$at_stder1"
12892 grep '^ *+' "$at_stder1" >&2
12893 grep -v '^ *+' "$at_stder1" >"$at_stderr"
12898 TEST_TAR_FORMAT=gnu
12899 export TEST_TAR_FORMAT
12900 TAR_OPTIONS="-H gnu"
12905 test -z "`sort < /dev/null 2>&1`" || exit 77
12908 genfile --file=directory/x
12909 genfile --file=directory/y
12913 tar -cf archive.1 -g db directory
12915 mv directory/x directory/z
12916 tar -cf archive.2 -g db directory
12920 echo Listing of archive.1
12921 tar -tf archive.1 | sort
12922 echo Listing of archive.2
12923 tar -tf archive.2 | sort
12925 echo Directory after first restore
12926 tar -xf archive.1 -g db
12927 find directory | sort
12929 echo Directory after second restore
12930 tar -xf archive.2 -g db
12931 find directory | sort
12932 ) ) >"$at_stdout" 2>"$at_stderr"
12937 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
12938 echo >>"$at_stdout"; echo "Listing of archive.1
12942 Listing of archive.2
12945 Directory after first restore
12949 Directory after second restore
12953 " | $at_diff - "$at_stdout" || at_failed=:
12955 77) echo 77 > "$at_status_file"; exit 77;;
12957 *) echo "$at_srcdir/incr03.at:31: exit code was $at_status, expected 0"
12960 if $at_failed; then
12963 echo 1 > "$at_status_file"
12969 echo "$at_srcdir/incr03.at:31:
12972 TEST_TAR_FORMAT=oldgnu
12973 export TEST_TAR_FORMAT
12974 TAR_OPTIONS=\"-H oldgnu\"
12979 test -z "`sort < /dev/null 2>&1`" || exit 77
12982 genfile --file=directory/x
12983 genfile --file=directory/y
12987 tar -cf archive.1 -g db directory
12989 mv directory/x directory/z
12990 tar -cf archive.2 -g db directory
12994 echo Listing of archive.1
12995 tar -tf archive.1 | sort
12996 echo Listing of archive.2
12997 tar -tf archive.2 | sort
12999 echo Directory after first restore
13000 tar -xf archive.1 -g db
13001 find directory | sort
13003 echo Directory after second restore
13004 tar -xf archive.2 -g db
13005 find directory | sort
13007 echo incr03.at:31 >"$at_check_line_file"
13010 if test -n "$at_traceon"; then
13011 echo 'Not enabling shell tracing (command contains an embedded newline)'
13014 if test -n "$at_trace_this"; then
13018 TEST_TAR_FORMAT=oldgnu
13019 export TEST_TAR_FORMAT
13020 TAR_OPTIONS="-H oldgnu"
13025 test -z "`sort < /dev/null 2>&1`" || exit 77
13028 genfile --file=directory/x
13029 genfile --file=directory/y
13033 tar -cf archive.1 -g db directory
13035 mv directory/x directory/z
13036 tar -cf archive.2 -g db directory
13040 echo Listing of archive.1
13041 tar -tf archive.1 | sort
13042 echo Listing of archive.2
13043 tar -tf archive.2 | sort
13045 echo Directory after first restore
13046 tar -xf archive.1 -g db
13047 find directory | sort
13049 echo Directory after second restore
13050 tar -xf archive.2 -g db
13051 find directory | sort
13052 ) ) >"$at_stdout" 2>"$at_stder1"
13054 grep '^ *+' "$at_stder1" >&2
13055 grep -v '^ *+' "$at_stder1" >"$at_stderr"
13060 TEST_TAR_FORMAT=oldgnu
13061 export TEST_TAR_FORMAT
13062 TAR_OPTIONS="-H oldgnu"
13067 test -z "`sort < /dev/null 2>&1`" || exit 77
13070 genfile --file=directory/x
13071 genfile --file=directory/y
13075 tar -cf archive.1 -g db directory
13077 mv directory/x directory/z
13078 tar -cf archive.2 -g db directory
13082 echo Listing of archive.1
13083 tar -tf archive.1 | sort
13084 echo Listing of archive.2
13085 tar -tf archive.2 | sort
13087 echo Directory after first restore
13088 tar -xf archive.1 -g db
13089 find directory | sort
13091 echo Directory after second restore
13092 tar -xf archive.2 -g db
13093 find directory | sort
13094 ) ) >"$at_stdout" 2>"$at_stderr"
13099 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
13100 echo >>"$at_stdout"; echo "Listing of archive.1
13104 Listing of archive.2
13107 Directory after first restore
13111 Directory after second restore
13115 " | $at_diff - "$at_stdout" || at_failed=:
13117 77) echo 77 > "$at_status_file"; exit 77;;
13119 *) echo "$at_srcdir/incr03.at:31: exit code was $at_status, expected 0"
13122 if $at_failed; then
13125 echo 1 > "$at_status_file"
13131 echo "$at_srcdir/incr03.at:31:
13134 TEST_TAR_FORMAT=posix
13135 export TEST_TAR_FORMAT
13136 TAR_OPTIONS=\"-H posix\"
13141 test -z "`sort < /dev/null 2>&1`" || exit 77
13144 genfile --file=directory/x
13145 genfile --file=directory/y
13149 tar -cf archive.1 -g db directory
13151 mv directory/x directory/z
13152 tar -cf archive.2 -g db directory
13156 echo Listing of archive.1
13157 tar -tf archive.1 | sort
13158 echo Listing of archive.2
13159 tar -tf archive.2 | sort
13161 echo Directory after first restore
13162 tar -xf archive.1 -g db
13163 find directory | sort
13165 echo Directory after second restore
13166 tar -xf archive.2 -g db
13167 find directory | sort
13169 echo incr03.at:31 >"$at_check_line_file"
13172 if test -n "$at_traceon"; then
13173 echo 'Not enabling shell tracing (command contains an embedded newline)'
13176 if test -n "$at_trace_this"; then
13180 TEST_TAR_FORMAT=posix
13181 export TEST_TAR_FORMAT
13182 TAR_OPTIONS="-H posix"
13187 test -z "`sort < /dev/null 2>&1`" || exit 77
13190 genfile --file=directory/x
13191 genfile --file=directory/y
13195 tar -cf archive.1 -g db directory
13197 mv directory/x directory/z
13198 tar -cf archive.2 -g db directory
13202 echo Listing of archive.1
13203 tar -tf archive.1 | sort
13204 echo Listing of archive.2
13205 tar -tf archive.2 | sort
13207 echo Directory after first restore
13208 tar -xf archive.1 -g db
13209 find directory | sort
13211 echo Directory after second restore
13212 tar -xf archive.2 -g db
13213 find directory | sort
13214 ) ) >"$at_stdout" 2>"$at_stder1"
13216 grep '^ *+' "$at_stder1" >&2
13217 grep -v '^ *+' "$at_stder1" >"$at_stderr"
13222 TEST_TAR_FORMAT=posix
13223 export TEST_TAR_FORMAT
13224 TAR_OPTIONS="-H posix"
13229 test -z "`sort < /dev/null 2>&1`" || exit 77
13232 genfile --file=directory/x
13233 genfile --file=directory/y
13237 tar -cf archive.1 -g db directory
13239 mv directory/x directory/z
13240 tar -cf archive.2 -g db directory
13244 echo Listing of archive.1
13245 tar -tf archive.1 | sort
13246 echo Listing of archive.2
13247 tar -tf archive.2 | sort
13249 echo Directory after first restore
13250 tar -xf archive.1 -g db
13251 find directory | sort
13253 echo Directory after second restore
13254 tar -xf archive.2 -g db
13255 find directory | sort
13256 ) ) >"$at_stdout" 2>"$at_stderr"
13261 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
13262 echo >>"$at_stdout"; echo "Listing of archive.1
13266 Listing of archive.2
13269 Directory after first restore
13273 Directory after second restore
13277 " | $at_diff - "$at_stdout" || at_failed=:
13279 77) echo 77 > "$at_status_file"; exit 77;;
13281 *) echo "$at_srcdir/incr03.at:31: exit code was $at_status, expected 0"
13284 if $at_failed; then
13287 echo 1 > "$at_status_file"
13296 $at_times_p && times >"$at_times_file"
13297 ) 5>&1 2>&1 | eval $at_tee_pipe
13298 at_status=`cat "$at_status_file"`
13301 32 ) # 32. incr04.at:29: proper icontents initialization
13302 at_setup_line='incr04.at:29'
13303 at_desc="proper icontents initialization"
13304 $at_quiet $ECHO_N " 32: proper icontents initialization $ECHO_C"
13306 test -f $XFAILFILE && at_xfail=yes
13307 echo "# -*- compilation -*-" >> "$at_group_log"
13309 echo "32. incr04.at:29: testing ..."
13319 echo "$at_srcdir/incr04.at:34:
13322 TEST_TAR_FORMAT=gnu
13323 export TEST_TAR_FORMAT
13324 TAR_OPTIONS=\"-H gnu\"
13329 install-sh -d a/b >/dev/null || exit 77
13331 for (i=1;i<=142;i++)
13332 printf(\"a/b/one_31_chars_long_file_name_%03d\\n\", i);
13333 }' < /dev/null | genfile --files-from -
13337 echo \"Initial dump\"
13338 tar cvf a0.tar -g a.sna a
13340 echo \"Incremental dump\"
13341 tar cvf a1.tar -g a.sna a
13343 echo incr04.at:34 >"$at_check_line_file"
13346 if test -n "$at_traceon"; then
13347 echo 'Not enabling shell tracing (command contains an embedded newline)'
13350 if test -n "$at_trace_this"; then
13354 TEST_TAR_FORMAT=gnu
13355 export TEST_TAR_FORMAT
13356 TAR_OPTIONS="-H gnu"
13361 install-sh -d a/b >/dev/null || exit 77
13363 for (i=1;i<=142;i++)
13364 printf("a/b/one_31_chars_long_file_name_%03d\n", i);
13365 }' < /dev/null | genfile --files-from -
13369 echo "Initial dump"
13370 tar cvf a0.tar -g a.sna a
13372 echo "Incremental dump"
13373 tar cvf a1.tar -g a.sna a
13374 ) ) >"$at_stdout" 2>"$at_stder1"
13376 grep '^ *+' "$at_stder1" >&2
13377 grep -v '^ *+' "$at_stder1" >"$at_stderr"
13382 TEST_TAR_FORMAT=gnu
13383 export TEST_TAR_FORMAT
13384 TAR_OPTIONS="-H gnu"
13389 install-sh -d a/b >/dev/null || exit 77
13391 for (i=1;i<=142;i++)
13392 printf("a/b/one_31_chars_long_file_name_%03d\n", i);
13393 }' < /dev/null | genfile --files-from -
13397 echo "Initial dump"
13398 tar cvf a0.tar -g a.sna a
13400 echo "Incremental dump"
13401 tar cvf a1.tar -g a.sna a
13402 ) ) >"$at_stdout" 2>"$at_stderr"
13407 echo >>"$at_stderr"; echo "tar: a/b: Directory is new
13408 tar: a/c: Directory has been renamed from \`a/b'
13409 " | $at_diff - "$at_stderr" || at_failed=:
13410 echo >>"$at_stdout"; echo "Initial dump
13413 a/b/one_31_chars_long_file_name_001
13414 a/b/one_31_chars_long_file_name_002
13415 a/b/one_31_chars_long_file_name_003
13416 a/b/one_31_chars_long_file_name_004
13417 a/b/one_31_chars_long_file_name_005
13418 a/b/one_31_chars_long_file_name_006
13419 a/b/one_31_chars_long_file_name_007
13420 a/b/one_31_chars_long_file_name_008
13421 a/b/one_31_chars_long_file_name_009
13422 a/b/one_31_chars_long_file_name_010
13423 a/b/one_31_chars_long_file_name_011
13424 a/b/one_31_chars_long_file_name_012
13425 a/b/one_31_chars_long_file_name_013
13426 a/b/one_31_chars_long_file_name_014
13427 a/b/one_31_chars_long_file_name_015
13428 a/b/one_31_chars_long_file_name_016
13429 a/b/one_31_chars_long_file_name_017
13430 a/b/one_31_chars_long_file_name_018
13431 a/b/one_31_chars_long_file_name_019
13432 a/b/one_31_chars_long_file_name_020
13433 a/b/one_31_chars_long_file_name_021
13434 a/b/one_31_chars_long_file_name_022
13435 a/b/one_31_chars_long_file_name_023
13436 a/b/one_31_chars_long_file_name_024
13437 a/b/one_31_chars_long_file_name_025
13438 a/b/one_31_chars_long_file_name_026
13439 a/b/one_31_chars_long_file_name_027
13440 a/b/one_31_chars_long_file_name_028
13441 a/b/one_31_chars_long_file_name_029
13442 a/b/one_31_chars_long_file_name_030
13443 a/b/one_31_chars_long_file_name_031
13444 a/b/one_31_chars_long_file_name_032
13445 a/b/one_31_chars_long_file_name_033
13446 a/b/one_31_chars_long_file_name_034
13447 a/b/one_31_chars_long_file_name_035
13448 a/b/one_31_chars_long_file_name_036
13449 a/b/one_31_chars_long_file_name_037
13450 a/b/one_31_chars_long_file_name_038
13451 a/b/one_31_chars_long_file_name_039
13452 a/b/one_31_chars_long_file_name_040
13453 a/b/one_31_chars_long_file_name_041
13454 a/b/one_31_chars_long_file_name_042
13455 a/b/one_31_chars_long_file_name_043
13456 a/b/one_31_chars_long_file_name_044
13457 a/b/one_31_chars_long_file_name_045
13458 a/b/one_31_chars_long_file_name_046
13459 a/b/one_31_chars_long_file_name_047
13460 a/b/one_31_chars_long_file_name_048
13461 a/b/one_31_chars_long_file_name_049
13462 a/b/one_31_chars_long_file_name_050
13463 a/b/one_31_chars_long_file_name_051
13464 a/b/one_31_chars_long_file_name_052
13465 a/b/one_31_chars_long_file_name_053
13466 a/b/one_31_chars_long_file_name_054
13467 a/b/one_31_chars_long_file_name_055
13468 a/b/one_31_chars_long_file_name_056
13469 a/b/one_31_chars_long_file_name_057
13470 a/b/one_31_chars_long_file_name_058
13471 a/b/one_31_chars_long_file_name_059
13472 a/b/one_31_chars_long_file_name_060
13473 a/b/one_31_chars_long_file_name_061
13474 a/b/one_31_chars_long_file_name_062
13475 a/b/one_31_chars_long_file_name_063
13476 a/b/one_31_chars_long_file_name_064
13477 a/b/one_31_chars_long_file_name_065
13478 a/b/one_31_chars_long_file_name_066
13479 a/b/one_31_chars_long_file_name_067
13480 a/b/one_31_chars_long_file_name_068
13481 a/b/one_31_chars_long_file_name_069
13482 a/b/one_31_chars_long_file_name_070
13483 a/b/one_31_chars_long_file_name_071
13484 a/b/one_31_chars_long_file_name_072
13485 a/b/one_31_chars_long_file_name_073
13486 a/b/one_31_chars_long_file_name_074
13487 a/b/one_31_chars_long_file_name_075
13488 a/b/one_31_chars_long_file_name_076
13489 a/b/one_31_chars_long_file_name_077
13490 a/b/one_31_chars_long_file_name_078
13491 a/b/one_31_chars_long_file_name_079
13492 a/b/one_31_chars_long_file_name_080
13493 a/b/one_31_chars_long_file_name_081
13494 a/b/one_31_chars_long_file_name_082
13495 a/b/one_31_chars_long_file_name_083
13496 a/b/one_31_chars_long_file_name_084
13497 a/b/one_31_chars_long_file_name_085
13498 a/b/one_31_chars_long_file_name_086
13499 a/b/one_31_chars_long_file_name_087
13500 a/b/one_31_chars_long_file_name_088
13501 a/b/one_31_chars_long_file_name_089
13502 a/b/one_31_chars_long_file_name_090
13503 a/b/one_31_chars_long_file_name_091
13504 a/b/one_31_chars_long_file_name_092
13505 a/b/one_31_chars_long_file_name_093
13506 a/b/one_31_chars_long_file_name_094
13507 a/b/one_31_chars_long_file_name_095
13508 a/b/one_31_chars_long_file_name_096
13509 a/b/one_31_chars_long_file_name_097
13510 a/b/one_31_chars_long_file_name_098
13511 a/b/one_31_chars_long_file_name_099
13512 a/b/one_31_chars_long_file_name_100
13513 a/b/one_31_chars_long_file_name_101
13514 a/b/one_31_chars_long_file_name_102
13515 a/b/one_31_chars_long_file_name_103
13516 a/b/one_31_chars_long_file_name_104
13517 a/b/one_31_chars_long_file_name_105
13518 a/b/one_31_chars_long_file_name_106
13519 a/b/one_31_chars_long_file_name_107
13520 a/b/one_31_chars_long_file_name_108
13521 a/b/one_31_chars_long_file_name_109
13522 a/b/one_31_chars_long_file_name_110
13523 a/b/one_31_chars_long_file_name_111
13524 a/b/one_31_chars_long_file_name_112
13525 a/b/one_31_chars_long_file_name_113
13526 a/b/one_31_chars_long_file_name_114
13527 a/b/one_31_chars_long_file_name_115
13528 a/b/one_31_chars_long_file_name_116
13529 a/b/one_31_chars_long_file_name_117
13530 a/b/one_31_chars_long_file_name_118
13531 a/b/one_31_chars_long_file_name_119
13532 a/b/one_31_chars_long_file_name_120
13533 a/b/one_31_chars_long_file_name_121
13534 a/b/one_31_chars_long_file_name_122
13535 a/b/one_31_chars_long_file_name_123
13536 a/b/one_31_chars_long_file_name_124
13537 a/b/one_31_chars_long_file_name_125
13538 a/b/one_31_chars_long_file_name_126
13539 a/b/one_31_chars_long_file_name_127
13540 a/b/one_31_chars_long_file_name_128
13541 a/b/one_31_chars_long_file_name_129
13542 a/b/one_31_chars_long_file_name_130
13543 a/b/one_31_chars_long_file_name_131
13544 a/b/one_31_chars_long_file_name_132
13545 a/b/one_31_chars_long_file_name_133
13546 a/b/one_31_chars_long_file_name_134
13547 a/b/one_31_chars_long_file_name_135
13548 a/b/one_31_chars_long_file_name_136
13549 a/b/one_31_chars_long_file_name_137
13550 a/b/one_31_chars_long_file_name_138
13551 a/b/one_31_chars_long_file_name_139
13552 a/b/one_31_chars_long_file_name_140
13553 a/b/one_31_chars_long_file_name_141
13554 a/b/one_31_chars_long_file_name_142
13558 " | $at_diff - "$at_stdout" || at_failed=:
13560 77) echo 77 > "$at_status_file"; exit 77;;
13562 *) echo "$at_srcdir/incr04.at:34: exit code was $at_status, expected 0"
13565 if $at_failed; then
13568 echo 1 > "$at_status_file"
13574 echo "$at_srcdir/incr04.at:34:
13577 TEST_TAR_FORMAT=oldgnu
13578 export TEST_TAR_FORMAT
13579 TAR_OPTIONS=\"-H oldgnu\"
13584 install-sh -d a/b >/dev/null || exit 77
13586 for (i=1;i<=142;i++)
13587 printf(\"a/b/one_31_chars_long_file_name_%03d\\n\", i);
13588 }' < /dev/null | genfile --files-from -
13592 echo \"Initial dump\"
13593 tar cvf a0.tar -g a.sna a
13595 echo \"Incremental dump\"
13596 tar cvf a1.tar -g a.sna a
13598 echo incr04.at:34 >"$at_check_line_file"
13601 if test -n "$at_traceon"; then
13602 echo 'Not enabling shell tracing (command contains an embedded newline)'
13605 if test -n "$at_trace_this"; then
13609 TEST_TAR_FORMAT=oldgnu
13610 export TEST_TAR_FORMAT
13611 TAR_OPTIONS="-H oldgnu"
13616 install-sh -d a/b >/dev/null || exit 77
13618 for (i=1;i<=142;i++)
13619 printf("a/b/one_31_chars_long_file_name_%03d\n", i);
13620 }' < /dev/null | genfile --files-from -
13624 echo "Initial dump"
13625 tar cvf a0.tar -g a.sna a
13627 echo "Incremental dump"
13628 tar cvf a1.tar -g a.sna a
13629 ) ) >"$at_stdout" 2>"$at_stder1"
13631 grep '^ *+' "$at_stder1" >&2
13632 grep -v '^ *+' "$at_stder1" >"$at_stderr"
13637 TEST_TAR_FORMAT=oldgnu
13638 export TEST_TAR_FORMAT
13639 TAR_OPTIONS="-H oldgnu"
13644 install-sh -d a/b >/dev/null || exit 77
13646 for (i=1;i<=142;i++)
13647 printf("a/b/one_31_chars_long_file_name_%03d\n", i);
13648 }' < /dev/null | genfile --files-from -
13652 echo "Initial dump"
13653 tar cvf a0.tar -g a.sna a
13655 echo "Incremental dump"
13656 tar cvf a1.tar -g a.sna a
13657 ) ) >"$at_stdout" 2>"$at_stderr"
13662 echo >>"$at_stderr"; echo "tar: a/b: Directory is new
13663 tar: a/c: Directory has been renamed from \`a/b'
13664 " | $at_diff - "$at_stderr" || at_failed=:
13665 echo >>"$at_stdout"; echo "Initial dump
13668 a/b/one_31_chars_long_file_name_001
13669 a/b/one_31_chars_long_file_name_002
13670 a/b/one_31_chars_long_file_name_003
13671 a/b/one_31_chars_long_file_name_004
13672 a/b/one_31_chars_long_file_name_005
13673 a/b/one_31_chars_long_file_name_006
13674 a/b/one_31_chars_long_file_name_007
13675 a/b/one_31_chars_long_file_name_008
13676 a/b/one_31_chars_long_file_name_009
13677 a/b/one_31_chars_long_file_name_010
13678 a/b/one_31_chars_long_file_name_011
13679 a/b/one_31_chars_long_file_name_012
13680 a/b/one_31_chars_long_file_name_013
13681 a/b/one_31_chars_long_file_name_014
13682 a/b/one_31_chars_long_file_name_015
13683 a/b/one_31_chars_long_file_name_016
13684 a/b/one_31_chars_long_file_name_017
13685 a/b/one_31_chars_long_file_name_018
13686 a/b/one_31_chars_long_file_name_019
13687 a/b/one_31_chars_long_file_name_020
13688 a/b/one_31_chars_long_file_name_021
13689 a/b/one_31_chars_long_file_name_022
13690 a/b/one_31_chars_long_file_name_023
13691 a/b/one_31_chars_long_file_name_024
13692 a/b/one_31_chars_long_file_name_025
13693 a/b/one_31_chars_long_file_name_026
13694 a/b/one_31_chars_long_file_name_027
13695 a/b/one_31_chars_long_file_name_028
13696 a/b/one_31_chars_long_file_name_029
13697 a/b/one_31_chars_long_file_name_030
13698 a/b/one_31_chars_long_file_name_031
13699 a/b/one_31_chars_long_file_name_032
13700 a/b/one_31_chars_long_file_name_033
13701 a/b/one_31_chars_long_file_name_034
13702 a/b/one_31_chars_long_file_name_035
13703 a/b/one_31_chars_long_file_name_036
13704 a/b/one_31_chars_long_file_name_037
13705 a/b/one_31_chars_long_file_name_038
13706 a/b/one_31_chars_long_file_name_039
13707 a/b/one_31_chars_long_file_name_040
13708 a/b/one_31_chars_long_file_name_041
13709 a/b/one_31_chars_long_file_name_042
13710 a/b/one_31_chars_long_file_name_043
13711 a/b/one_31_chars_long_file_name_044
13712 a/b/one_31_chars_long_file_name_045
13713 a/b/one_31_chars_long_file_name_046
13714 a/b/one_31_chars_long_file_name_047
13715 a/b/one_31_chars_long_file_name_048
13716 a/b/one_31_chars_long_file_name_049
13717 a/b/one_31_chars_long_file_name_050
13718 a/b/one_31_chars_long_file_name_051
13719 a/b/one_31_chars_long_file_name_052
13720 a/b/one_31_chars_long_file_name_053
13721 a/b/one_31_chars_long_file_name_054
13722 a/b/one_31_chars_long_file_name_055
13723 a/b/one_31_chars_long_file_name_056
13724 a/b/one_31_chars_long_file_name_057
13725 a/b/one_31_chars_long_file_name_058
13726 a/b/one_31_chars_long_file_name_059
13727 a/b/one_31_chars_long_file_name_060
13728 a/b/one_31_chars_long_file_name_061
13729 a/b/one_31_chars_long_file_name_062
13730 a/b/one_31_chars_long_file_name_063
13731 a/b/one_31_chars_long_file_name_064
13732 a/b/one_31_chars_long_file_name_065
13733 a/b/one_31_chars_long_file_name_066
13734 a/b/one_31_chars_long_file_name_067
13735 a/b/one_31_chars_long_file_name_068
13736 a/b/one_31_chars_long_file_name_069
13737 a/b/one_31_chars_long_file_name_070
13738 a/b/one_31_chars_long_file_name_071
13739 a/b/one_31_chars_long_file_name_072
13740 a/b/one_31_chars_long_file_name_073
13741 a/b/one_31_chars_long_file_name_074
13742 a/b/one_31_chars_long_file_name_075
13743 a/b/one_31_chars_long_file_name_076
13744 a/b/one_31_chars_long_file_name_077
13745 a/b/one_31_chars_long_file_name_078
13746 a/b/one_31_chars_long_file_name_079
13747 a/b/one_31_chars_long_file_name_080
13748 a/b/one_31_chars_long_file_name_081
13749 a/b/one_31_chars_long_file_name_082
13750 a/b/one_31_chars_long_file_name_083
13751 a/b/one_31_chars_long_file_name_084
13752 a/b/one_31_chars_long_file_name_085
13753 a/b/one_31_chars_long_file_name_086
13754 a/b/one_31_chars_long_file_name_087
13755 a/b/one_31_chars_long_file_name_088
13756 a/b/one_31_chars_long_file_name_089
13757 a/b/one_31_chars_long_file_name_090
13758 a/b/one_31_chars_long_file_name_091
13759 a/b/one_31_chars_long_file_name_092
13760 a/b/one_31_chars_long_file_name_093
13761 a/b/one_31_chars_long_file_name_094
13762 a/b/one_31_chars_long_file_name_095
13763 a/b/one_31_chars_long_file_name_096
13764 a/b/one_31_chars_long_file_name_097
13765 a/b/one_31_chars_long_file_name_098
13766 a/b/one_31_chars_long_file_name_099
13767 a/b/one_31_chars_long_file_name_100
13768 a/b/one_31_chars_long_file_name_101
13769 a/b/one_31_chars_long_file_name_102
13770 a/b/one_31_chars_long_file_name_103
13771 a/b/one_31_chars_long_file_name_104
13772 a/b/one_31_chars_long_file_name_105
13773 a/b/one_31_chars_long_file_name_106
13774 a/b/one_31_chars_long_file_name_107
13775 a/b/one_31_chars_long_file_name_108
13776 a/b/one_31_chars_long_file_name_109
13777 a/b/one_31_chars_long_file_name_110
13778 a/b/one_31_chars_long_file_name_111
13779 a/b/one_31_chars_long_file_name_112
13780 a/b/one_31_chars_long_file_name_113
13781 a/b/one_31_chars_long_file_name_114
13782 a/b/one_31_chars_long_file_name_115
13783 a/b/one_31_chars_long_file_name_116
13784 a/b/one_31_chars_long_file_name_117
13785 a/b/one_31_chars_long_file_name_118
13786 a/b/one_31_chars_long_file_name_119
13787 a/b/one_31_chars_long_file_name_120
13788 a/b/one_31_chars_long_file_name_121
13789 a/b/one_31_chars_long_file_name_122
13790 a/b/one_31_chars_long_file_name_123
13791 a/b/one_31_chars_long_file_name_124
13792 a/b/one_31_chars_long_file_name_125
13793 a/b/one_31_chars_long_file_name_126
13794 a/b/one_31_chars_long_file_name_127
13795 a/b/one_31_chars_long_file_name_128
13796 a/b/one_31_chars_long_file_name_129
13797 a/b/one_31_chars_long_file_name_130
13798 a/b/one_31_chars_long_file_name_131
13799 a/b/one_31_chars_long_file_name_132
13800 a/b/one_31_chars_long_file_name_133
13801 a/b/one_31_chars_long_file_name_134
13802 a/b/one_31_chars_long_file_name_135
13803 a/b/one_31_chars_long_file_name_136
13804 a/b/one_31_chars_long_file_name_137
13805 a/b/one_31_chars_long_file_name_138
13806 a/b/one_31_chars_long_file_name_139
13807 a/b/one_31_chars_long_file_name_140
13808 a/b/one_31_chars_long_file_name_141
13809 a/b/one_31_chars_long_file_name_142
13813 " | $at_diff - "$at_stdout" || at_failed=:
13815 77) echo 77 > "$at_status_file"; exit 77;;
13817 *) echo "$at_srcdir/incr04.at:34: exit code was $at_status, expected 0"
13820 if $at_failed; then
13823 echo 1 > "$at_status_file"
13829 echo "$at_srcdir/incr04.at:34:
13832 TEST_TAR_FORMAT=posix
13833 export TEST_TAR_FORMAT
13834 TAR_OPTIONS=\"-H posix\"
13839 install-sh -d a/b >/dev/null || exit 77
13841 for (i=1;i<=142;i++)
13842 printf(\"a/b/one_31_chars_long_file_name_%03d\\n\", i);
13843 }' < /dev/null | genfile --files-from -
13847 echo \"Initial dump\"
13848 tar cvf a0.tar -g a.sna a
13850 echo \"Incremental dump\"
13851 tar cvf a1.tar -g a.sna a
13853 echo incr04.at:34 >"$at_check_line_file"
13856 if test -n "$at_traceon"; then
13857 echo 'Not enabling shell tracing (command contains an embedded newline)'
13860 if test -n "$at_trace_this"; then
13864 TEST_TAR_FORMAT=posix
13865 export TEST_TAR_FORMAT
13866 TAR_OPTIONS="-H posix"
13871 install-sh -d a/b >/dev/null || exit 77
13873 for (i=1;i<=142;i++)
13874 printf("a/b/one_31_chars_long_file_name_%03d\n", i);
13875 }' < /dev/null | genfile --files-from -
13879 echo "Initial dump"
13880 tar cvf a0.tar -g a.sna a
13882 echo "Incremental dump"
13883 tar cvf a1.tar -g a.sna a
13884 ) ) >"$at_stdout" 2>"$at_stder1"
13886 grep '^ *+' "$at_stder1" >&2
13887 grep -v '^ *+' "$at_stder1" >"$at_stderr"
13892 TEST_TAR_FORMAT=posix
13893 export TEST_TAR_FORMAT
13894 TAR_OPTIONS="-H posix"
13899 install-sh -d a/b >/dev/null || exit 77
13901 for (i=1;i<=142;i++)
13902 printf("a/b/one_31_chars_long_file_name_%03d\n", i);
13903 }' < /dev/null | genfile --files-from -
13907 echo "Initial dump"
13908 tar cvf a0.tar -g a.sna a
13910 echo "Incremental dump"
13911 tar cvf a1.tar -g a.sna a
13912 ) ) >"$at_stdout" 2>"$at_stderr"
13917 echo >>"$at_stderr"; echo "tar: a/b: Directory is new
13918 tar: a/c: Directory has been renamed from \`a/b'
13919 " | $at_diff - "$at_stderr" || at_failed=:
13920 echo >>"$at_stdout"; echo "Initial dump
13923 a/b/one_31_chars_long_file_name_001
13924 a/b/one_31_chars_long_file_name_002
13925 a/b/one_31_chars_long_file_name_003
13926 a/b/one_31_chars_long_file_name_004
13927 a/b/one_31_chars_long_file_name_005
13928 a/b/one_31_chars_long_file_name_006
13929 a/b/one_31_chars_long_file_name_007
13930 a/b/one_31_chars_long_file_name_008
13931 a/b/one_31_chars_long_file_name_009
13932 a/b/one_31_chars_long_file_name_010
13933 a/b/one_31_chars_long_file_name_011
13934 a/b/one_31_chars_long_file_name_012
13935 a/b/one_31_chars_long_file_name_013
13936 a/b/one_31_chars_long_file_name_014
13937 a/b/one_31_chars_long_file_name_015
13938 a/b/one_31_chars_long_file_name_016
13939 a/b/one_31_chars_long_file_name_017
13940 a/b/one_31_chars_long_file_name_018
13941 a/b/one_31_chars_long_file_name_019
13942 a/b/one_31_chars_long_file_name_020
13943 a/b/one_31_chars_long_file_name_021
13944 a/b/one_31_chars_long_file_name_022
13945 a/b/one_31_chars_long_file_name_023
13946 a/b/one_31_chars_long_file_name_024
13947 a/b/one_31_chars_long_file_name_025
13948 a/b/one_31_chars_long_file_name_026
13949 a/b/one_31_chars_long_file_name_027
13950 a/b/one_31_chars_long_file_name_028
13951 a/b/one_31_chars_long_file_name_029
13952 a/b/one_31_chars_long_file_name_030
13953 a/b/one_31_chars_long_file_name_031
13954 a/b/one_31_chars_long_file_name_032
13955 a/b/one_31_chars_long_file_name_033
13956 a/b/one_31_chars_long_file_name_034
13957 a/b/one_31_chars_long_file_name_035
13958 a/b/one_31_chars_long_file_name_036
13959 a/b/one_31_chars_long_file_name_037
13960 a/b/one_31_chars_long_file_name_038
13961 a/b/one_31_chars_long_file_name_039
13962 a/b/one_31_chars_long_file_name_040
13963 a/b/one_31_chars_long_file_name_041
13964 a/b/one_31_chars_long_file_name_042
13965 a/b/one_31_chars_long_file_name_043
13966 a/b/one_31_chars_long_file_name_044
13967 a/b/one_31_chars_long_file_name_045
13968 a/b/one_31_chars_long_file_name_046
13969 a/b/one_31_chars_long_file_name_047
13970 a/b/one_31_chars_long_file_name_048
13971 a/b/one_31_chars_long_file_name_049
13972 a/b/one_31_chars_long_file_name_050
13973 a/b/one_31_chars_long_file_name_051
13974 a/b/one_31_chars_long_file_name_052
13975 a/b/one_31_chars_long_file_name_053
13976 a/b/one_31_chars_long_file_name_054
13977 a/b/one_31_chars_long_file_name_055
13978 a/b/one_31_chars_long_file_name_056
13979 a/b/one_31_chars_long_file_name_057
13980 a/b/one_31_chars_long_file_name_058
13981 a/b/one_31_chars_long_file_name_059
13982 a/b/one_31_chars_long_file_name_060
13983 a/b/one_31_chars_long_file_name_061
13984 a/b/one_31_chars_long_file_name_062
13985 a/b/one_31_chars_long_file_name_063
13986 a/b/one_31_chars_long_file_name_064
13987 a/b/one_31_chars_long_file_name_065
13988 a/b/one_31_chars_long_file_name_066
13989 a/b/one_31_chars_long_file_name_067
13990 a/b/one_31_chars_long_file_name_068
13991 a/b/one_31_chars_long_file_name_069
13992 a/b/one_31_chars_long_file_name_070
13993 a/b/one_31_chars_long_file_name_071
13994 a/b/one_31_chars_long_file_name_072
13995 a/b/one_31_chars_long_file_name_073
13996 a/b/one_31_chars_long_file_name_074
13997 a/b/one_31_chars_long_file_name_075
13998 a/b/one_31_chars_long_file_name_076
13999 a/b/one_31_chars_long_file_name_077
14000 a/b/one_31_chars_long_file_name_078
14001 a/b/one_31_chars_long_file_name_079
14002 a/b/one_31_chars_long_file_name_080
14003 a/b/one_31_chars_long_file_name_081
14004 a/b/one_31_chars_long_file_name_082
14005 a/b/one_31_chars_long_file_name_083
14006 a/b/one_31_chars_long_file_name_084
14007 a/b/one_31_chars_long_file_name_085
14008 a/b/one_31_chars_long_file_name_086
14009 a/b/one_31_chars_long_file_name_087
14010 a/b/one_31_chars_long_file_name_088
14011 a/b/one_31_chars_long_file_name_089
14012 a/b/one_31_chars_long_file_name_090
14013 a/b/one_31_chars_long_file_name_091
14014 a/b/one_31_chars_long_file_name_092
14015 a/b/one_31_chars_long_file_name_093
14016 a/b/one_31_chars_long_file_name_094
14017 a/b/one_31_chars_long_file_name_095
14018 a/b/one_31_chars_long_file_name_096
14019 a/b/one_31_chars_long_file_name_097
14020 a/b/one_31_chars_long_file_name_098
14021 a/b/one_31_chars_long_file_name_099
14022 a/b/one_31_chars_long_file_name_100
14023 a/b/one_31_chars_long_file_name_101
14024 a/b/one_31_chars_long_file_name_102
14025 a/b/one_31_chars_long_file_name_103
14026 a/b/one_31_chars_long_file_name_104
14027 a/b/one_31_chars_long_file_name_105
14028 a/b/one_31_chars_long_file_name_106
14029 a/b/one_31_chars_long_file_name_107
14030 a/b/one_31_chars_long_file_name_108
14031 a/b/one_31_chars_long_file_name_109
14032 a/b/one_31_chars_long_file_name_110
14033 a/b/one_31_chars_long_file_name_111
14034 a/b/one_31_chars_long_file_name_112
14035 a/b/one_31_chars_long_file_name_113
14036 a/b/one_31_chars_long_file_name_114
14037 a/b/one_31_chars_long_file_name_115
14038 a/b/one_31_chars_long_file_name_116
14039 a/b/one_31_chars_long_file_name_117
14040 a/b/one_31_chars_long_file_name_118
14041 a/b/one_31_chars_long_file_name_119
14042 a/b/one_31_chars_long_file_name_120
14043 a/b/one_31_chars_long_file_name_121
14044 a/b/one_31_chars_long_file_name_122
14045 a/b/one_31_chars_long_file_name_123
14046 a/b/one_31_chars_long_file_name_124
14047 a/b/one_31_chars_long_file_name_125
14048 a/b/one_31_chars_long_file_name_126
14049 a/b/one_31_chars_long_file_name_127
14050 a/b/one_31_chars_long_file_name_128
14051 a/b/one_31_chars_long_file_name_129
14052 a/b/one_31_chars_long_file_name_130
14053 a/b/one_31_chars_long_file_name_131
14054 a/b/one_31_chars_long_file_name_132
14055 a/b/one_31_chars_long_file_name_133
14056 a/b/one_31_chars_long_file_name_134
14057 a/b/one_31_chars_long_file_name_135
14058 a/b/one_31_chars_long_file_name_136
14059 a/b/one_31_chars_long_file_name_137
14060 a/b/one_31_chars_long_file_name_138
14061 a/b/one_31_chars_long_file_name_139
14062 a/b/one_31_chars_long_file_name_140
14063 a/b/one_31_chars_long_file_name_141
14064 a/b/one_31_chars_long_file_name_142
14068 " | $at_diff - "$at_stdout" || at_failed=:
14070 77) echo 77 > "$at_status_file"; exit 77;;
14072 *) echo "$at_srcdir/incr04.at:34: exit code was $at_status, expected 0"
14075 if $at_failed; then
14078 echo 1 > "$at_status_file"
14087 $at_times_p && times >"$at_times_file"
14088 ) 5>&1 2>&1 | eval $at_tee_pipe
14089 at_status=`cat "$at_status_file"`
14092 33 ) # 33. rename01.at:24: renamed dirs in incrementals
14093 at_setup_line='rename01.at:24'
14094 at_desc="renamed dirs in incrementals"
14095 $at_quiet $ECHO_N " 33: renamed dirs in incrementals $ECHO_C"
14097 test -f $XFAILFILE && at_xfail=yes
14098 echo "# -*- compilation -*-" >> "$at_group_log"
14100 echo "33. rename01.at:24: testing ..."
14108 echo "$at_srcdir/rename01.at:27:
14111 TEST_TAR_FORMAT=gnu
14112 export TEST_TAR_FORMAT
14113 TAR_OPTIONS=\"-H gnu\"
14118 test -z "`sort < /dev/null 2>&1`" || exit 77
14122 genfile --file foo/file1
14123 genfile --file foo/file2
14125 genfile --file foo/bar/file
14127 echo \"Creating base archive\"
14128 tar -g incr -cf arch.1 -v foo
14132 echo \"Creating incremental archive\"
14133 tar -g incr -cf arch.2 -v foo
14137 tar xfg arch.1 /dev/null
14139 echo \"Begin directory listing 1\"
14141 echo \"End directory listing 1\"
14143 tar xfg arch.2 /dev/null
14144 echo Begin directory listing 2
14146 echo End directory listing 2
14148 echo rename01.at:27 >"$at_check_line_file"
14151 if test -n "$at_traceon"; then
14152 echo 'Not enabling shell tracing (command contains an embedded newline)'
14155 if test -n "$at_trace_this"; then
14159 TEST_TAR_FORMAT=gnu
14160 export TEST_TAR_FORMAT
14161 TAR_OPTIONS="-H gnu"
14166 test -z "`sort < /dev/null 2>&1`" || exit 77
14170 genfile --file foo/file1
14171 genfile --file foo/file2
14173 genfile --file foo/bar/file
14175 echo "Creating base archive"
14176 tar -g incr -cf arch.1 -v foo
14180 echo "Creating incremental archive"
14181 tar -g incr -cf arch.2 -v foo
14185 tar xfg arch.1 /dev/null
14187 echo "Begin directory listing 1"
14189 echo "End directory listing 1"
14191 tar xfg arch.2 /dev/null
14192 echo Begin directory listing 2
14194 echo End directory listing 2
14195 ) ) >"$at_stdout" 2>"$at_stder1"
14197 grep '^ *+' "$at_stder1" >&2
14198 grep -v '^ *+' "$at_stder1" >"$at_stderr"
14203 TEST_TAR_FORMAT=gnu
14204 export TEST_TAR_FORMAT
14205 TAR_OPTIONS="-H gnu"
14210 test -z "`sort < /dev/null 2>&1`" || exit 77
14214 genfile --file foo/file1
14215 genfile --file foo/file2
14217 genfile --file foo/bar/file
14219 echo "Creating base archive"
14220 tar -g incr -cf arch.1 -v foo
14224 echo "Creating incremental archive"
14225 tar -g incr -cf arch.2 -v foo
14229 tar xfg arch.1 /dev/null
14231 echo "Begin directory listing 1"
14233 echo "End directory listing 1"
14235 tar xfg arch.2 /dev/null
14236 echo Begin directory listing 2
14238 echo End directory listing 2
14239 ) ) >"$at_stdout" 2>"$at_stderr"
14244 echo >>"$at_stderr"; echo "tar: foo/bar: Directory is new
14245 tar: foo/baz: Directory has been renamed from \`foo/bar'
14246 " | $at_diff - "$at_stderr" || at_failed=:
14247 echo >>"$at_stdout"; echo "Creating base archive
14253 Creating incremental archive
14256 Begin directory listing 1
14262 End directory listing 1
14263 Begin directory listing 2
14269 End directory listing 2
14270 " | $at_diff - "$at_stdout" || at_failed=:
14272 77) echo 77 > "$at_status_file"; exit 77;;
14274 *) echo "$at_srcdir/rename01.at:27: exit code was $at_status, expected 0"
14277 if $at_failed; then
14280 echo 1 > "$at_status_file"
14286 echo "$at_srcdir/rename01.at:27:
14289 TEST_TAR_FORMAT=oldgnu
14290 export TEST_TAR_FORMAT
14291 TAR_OPTIONS=\"-H oldgnu\"
14296 test -z "`sort < /dev/null 2>&1`" || exit 77
14300 genfile --file foo/file1
14301 genfile --file foo/file2
14303 genfile --file foo/bar/file
14305 echo \"Creating base archive\"
14306 tar -g incr -cf arch.1 -v foo
14310 echo \"Creating incremental archive\"
14311 tar -g incr -cf arch.2 -v foo
14315 tar xfg arch.1 /dev/null
14317 echo \"Begin directory listing 1\"
14319 echo \"End directory listing 1\"
14321 tar xfg arch.2 /dev/null
14322 echo Begin directory listing 2
14324 echo End directory listing 2
14326 echo rename01.at:27 >"$at_check_line_file"
14329 if test -n "$at_traceon"; then
14330 echo 'Not enabling shell tracing (command contains an embedded newline)'
14333 if test -n "$at_trace_this"; then
14337 TEST_TAR_FORMAT=oldgnu
14338 export TEST_TAR_FORMAT
14339 TAR_OPTIONS="-H oldgnu"
14344 test -z "`sort < /dev/null 2>&1`" || exit 77
14348 genfile --file foo/file1
14349 genfile --file foo/file2
14351 genfile --file foo/bar/file
14353 echo "Creating base archive"
14354 tar -g incr -cf arch.1 -v foo
14358 echo "Creating incremental archive"
14359 tar -g incr -cf arch.2 -v foo
14363 tar xfg arch.1 /dev/null
14365 echo "Begin directory listing 1"
14367 echo "End directory listing 1"
14369 tar xfg arch.2 /dev/null
14370 echo Begin directory listing 2
14372 echo End directory listing 2
14373 ) ) >"$at_stdout" 2>"$at_stder1"
14375 grep '^ *+' "$at_stder1" >&2
14376 grep -v '^ *+' "$at_stder1" >"$at_stderr"
14381 TEST_TAR_FORMAT=oldgnu
14382 export TEST_TAR_FORMAT
14383 TAR_OPTIONS="-H oldgnu"
14388 test -z "`sort < /dev/null 2>&1`" || exit 77
14392 genfile --file foo/file1
14393 genfile --file foo/file2
14395 genfile --file foo/bar/file
14397 echo "Creating base archive"
14398 tar -g incr -cf arch.1 -v foo
14402 echo "Creating incremental archive"
14403 tar -g incr -cf arch.2 -v foo
14407 tar xfg arch.1 /dev/null
14409 echo "Begin directory listing 1"
14411 echo "End directory listing 1"
14413 tar xfg arch.2 /dev/null
14414 echo Begin directory listing 2
14416 echo End directory listing 2
14417 ) ) >"$at_stdout" 2>"$at_stderr"
14422 echo >>"$at_stderr"; echo "tar: foo/bar: Directory is new
14423 tar: foo/baz: Directory has been renamed from \`foo/bar'
14424 " | $at_diff - "$at_stderr" || at_failed=:
14425 echo >>"$at_stdout"; echo "Creating base archive
14431 Creating incremental archive
14434 Begin directory listing 1
14440 End directory listing 1
14441 Begin directory listing 2
14447 End directory listing 2
14448 " | $at_diff - "$at_stdout" || at_failed=:
14450 77) echo 77 > "$at_status_file"; exit 77;;
14452 *) echo "$at_srcdir/rename01.at:27: exit code was $at_status, expected 0"
14455 if $at_failed; then
14458 echo 1 > "$at_status_file"
14464 echo "$at_srcdir/rename01.at:27:
14467 TEST_TAR_FORMAT=posix
14468 export TEST_TAR_FORMAT
14469 TAR_OPTIONS=\"-H posix\"
14474 test -z "`sort < /dev/null 2>&1`" || exit 77
14478 genfile --file foo/file1
14479 genfile --file foo/file2
14481 genfile --file foo/bar/file
14483 echo \"Creating base archive\"
14484 tar -g incr -cf arch.1 -v foo
14488 echo \"Creating incremental archive\"
14489 tar -g incr -cf arch.2 -v foo
14493 tar xfg arch.1 /dev/null
14495 echo \"Begin directory listing 1\"
14497 echo \"End directory listing 1\"
14499 tar xfg arch.2 /dev/null
14500 echo Begin directory listing 2
14502 echo End directory listing 2
14504 echo rename01.at:27 >"$at_check_line_file"
14507 if test -n "$at_traceon"; then
14508 echo 'Not enabling shell tracing (command contains an embedded newline)'
14511 if test -n "$at_trace_this"; then
14515 TEST_TAR_FORMAT=posix
14516 export TEST_TAR_FORMAT
14517 TAR_OPTIONS="-H posix"
14522 test -z "`sort < /dev/null 2>&1`" || exit 77
14526 genfile --file foo/file1
14527 genfile --file foo/file2
14529 genfile --file foo/bar/file
14531 echo "Creating base archive"
14532 tar -g incr -cf arch.1 -v foo
14536 echo "Creating incremental archive"
14537 tar -g incr -cf arch.2 -v foo
14541 tar xfg arch.1 /dev/null
14543 echo "Begin directory listing 1"
14545 echo "End directory listing 1"
14547 tar xfg arch.2 /dev/null
14548 echo Begin directory listing 2
14550 echo End directory listing 2
14551 ) ) >"$at_stdout" 2>"$at_stder1"
14553 grep '^ *+' "$at_stder1" >&2
14554 grep -v '^ *+' "$at_stder1" >"$at_stderr"
14559 TEST_TAR_FORMAT=posix
14560 export TEST_TAR_FORMAT
14561 TAR_OPTIONS="-H posix"
14566 test -z "`sort < /dev/null 2>&1`" || exit 77
14570 genfile --file foo/file1
14571 genfile --file foo/file2
14573 genfile --file foo/bar/file
14575 echo "Creating base archive"
14576 tar -g incr -cf arch.1 -v foo
14580 echo "Creating incremental archive"
14581 tar -g incr -cf arch.2 -v foo
14585 tar xfg arch.1 /dev/null
14587 echo "Begin directory listing 1"
14589 echo "End directory listing 1"
14591 tar xfg arch.2 /dev/null
14592 echo Begin directory listing 2
14594 echo End directory listing 2
14595 ) ) >"$at_stdout" 2>"$at_stderr"
14600 echo >>"$at_stderr"; echo "tar: foo/bar: Directory is new
14601 tar: foo/baz: Directory has been renamed from \`foo/bar'
14602 " | $at_diff - "$at_stderr" || at_failed=:
14603 echo >>"$at_stdout"; echo "Creating base archive
14609 Creating incremental archive
14612 Begin directory listing 1
14618 End directory listing 1
14619 Begin directory listing 2
14625 End directory listing 2
14626 " | $at_diff - "$at_stdout" || at_failed=:
14628 77) echo 77 > "$at_status_file"; exit 77;;
14630 *) echo "$at_srcdir/rename01.at:27: exit code was $at_status, expected 0"
14633 if $at_failed; then
14636 echo 1 > "$at_status_file"
14645 $at_times_p && times >"$at_times_file"
14646 ) 5>&1 2>&1 | eval $at_tee_pipe
14647 at_status=`cat "$at_status_file"`
14650 34 ) # 34. rename02.at:24: move between hierarchies
14651 at_setup_line='rename02.at:24'
14652 at_desc="move between hierarchies"
14653 $at_quiet $ECHO_N " 34: move between hierarchies $ECHO_C"
14655 test -f $XFAILFILE && at_xfail=yes
14656 echo "# -*- compilation -*-" >> "$at_group_log"
14658 echo "34. rename02.at:24: testing ..."
14666 echo "$at_srcdir/rename02.at:27:
14669 TEST_TAR_FORMAT=gnu
14670 export TEST_TAR_FORMAT
14671 TAR_OPTIONS=\"-H gnu\"
14676 test -z "`sort < /dev/null 2>&1`" || exit 77
14679 genfile --file foo/file1
14680 genfile --file foo/file2
14682 genfile --file foo/bar/file.r
14684 genfile --file foo/bar/baz/file.z
14688 echo \"Creating base archive\"
14689 tar -g incr -cf arch.1 -v foo
14693 echo \"Creating incremental archive\"
14694 tar -g incr -cf arch.2 -v foo
14698 tar xfg arch.1 /dev/null 2>tmperr
14701 echo \"Begin directory listing 1\"
14703 echo \"End directory listing 1\"
14705 tar xfgv arch.2 /dev/null
14706 echo Begin directory listing 2
14708 echo End directory listing 2
14710 echo rename02.at:27 >"$at_check_line_file"
14713 if test -n "$at_traceon"; then
14714 echo 'Not enabling shell tracing (command contains an embedded newline)'
14717 if test -n "$at_trace_this"; then
14721 TEST_TAR_FORMAT=gnu
14722 export TEST_TAR_FORMAT
14723 TAR_OPTIONS="-H gnu"
14728 test -z "`sort < /dev/null 2>&1`" || exit 77
14731 genfile --file foo/file1
14732 genfile --file foo/file2
14734 genfile --file foo/bar/file.r
14736 genfile --file foo/bar/baz/file.z
14740 echo "Creating base archive"
14741 tar -g incr -cf arch.1 -v foo
14745 echo "Creating incremental archive"
14746 tar -g incr -cf arch.2 -v foo
14750 tar xfg arch.1 /dev/null 2>tmperr
14753 echo "Begin directory listing 1"
14755 echo "End directory listing 1"
14757 tar xfgv arch.2 /dev/null
14758 echo Begin directory listing 2
14760 echo End directory listing 2
14761 ) ) >"$at_stdout" 2>"$at_stder1"
14763 grep '^ *+' "$at_stder1" >&2
14764 grep -v '^ *+' "$at_stder1" >"$at_stderr"
14769 TEST_TAR_FORMAT=gnu
14770 export TEST_TAR_FORMAT
14771 TAR_OPTIONS="-H gnu"
14776 test -z "`sort < /dev/null 2>&1`" || exit 77
14779 genfile --file foo/file1
14780 genfile --file foo/file2
14782 genfile --file foo/bar/file.r
14784 genfile --file foo/bar/baz/file.z
14788 echo "Creating base archive"
14789 tar -g incr -cf arch.1 -v foo
14793 echo "Creating incremental archive"
14794 tar -g incr -cf arch.2 -v foo
14798 tar xfg arch.1 /dev/null 2>tmperr
14801 echo "Begin directory listing 1"
14803 echo "End directory listing 1"
14805 tar xfgv arch.2 /dev/null
14806 echo Begin directory listing 2
14808 echo End directory listing 2
14809 ) ) >"$at_stdout" 2>"$at_stderr"
14814 echo >>"$at_stderr"; echo "tar: foo/bar: Directory is new
14815 tar: foo/bar/baz: Directory is new
14816 tar: foo/baz: Directory has been renamed from \`foo/bar/baz'
14817 " | $at_diff - "$at_stderr" || at_failed=:
14818 echo >>"$at_stdout"; echo "Creating base archive
14826 Creating incremental archive
14830 Begin directory listing 1
14838 End directory listing 1
14842 Begin directory listing 2
14850 End directory listing 2
14851 " | $at_diff - "$at_stdout" || at_failed=:
14853 77) echo 77 > "$at_status_file"; exit 77;;
14855 *) echo "$at_srcdir/rename02.at:27: exit code was $at_status, expected 0"
14858 if $at_failed; then
14861 echo 1 > "$at_status_file"
14867 echo "$at_srcdir/rename02.at:27:
14870 TEST_TAR_FORMAT=oldgnu
14871 export TEST_TAR_FORMAT
14872 TAR_OPTIONS=\"-H oldgnu\"
14877 test -z "`sort < /dev/null 2>&1`" || exit 77
14880 genfile --file foo/file1
14881 genfile --file foo/file2
14883 genfile --file foo/bar/file.r
14885 genfile --file foo/bar/baz/file.z
14889 echo \"Creating base archive\"
14890 tar -g incr -cf arch.1 -v foo
14894 echo \"Creating incremental archive\"
14895 tar -g incr -cf arch.2 -v foo
14899 tar xfg arch.1 /dev/null 2>tmperr
14902 echo \"Begin directory listing 1\"
14904 echo \"End directory listing 1\"
14906 tar xfgv arch.2 /dev/null
14907 echo Begin directory listing 2
14909 echo End directory listing 2
14911 echo rename02.at:27 >"$at_check_line_file"
14914 if test -n "$at_traceon"; then
14915 echo 'Not enabling shell tracing (command contains an embedded newline)'
14918 if test -n "$at_trace_this"; then
14922 TEST_TAR_FORMAT=oldgnu
14923 export TEST_TAR_FORMAT
14924 TAR_OPTIONS="-H oldgnu"
14929 test -z "`sort < /dev/null 2>&1`" || exit 77
14932 genfile --file foo/file1
14933 genfile --file foo/file2
14935 genfile --file foo/bar/file.r
14937 genfile --file foo/bar/baz/file.z
14941 echo "Creating base archive"
14942 tar -g incr -cf arch.1 -v foo
14946 echo "Creating incremental archive"
14947 tar -g incr -cf arch.2 -v foo
14951 tar xfg arch.1 /dev/null 2>tmperr
14954 echo "Begin directory listing 1"
14956 echo "End directory listing 1"
14958 tar xfgv arch.2 /dev/null
14959 echo Begin directory listing 2
14961 echo End directory listing 2
14962 ) ) >"$at_stdout" 2>"$at_stder1"
14964 grep '^ *+' "$at_stder1" >&2
14965 grep -v '^ *+' "$at_stder1" >"$at_stderr"
14970 TEST_TAR_FORMAT=oldgnu
14971 export TEST_TAR_FORMAT
14972 TAR_OPTIONS="-H oldgnu"
14977 test -z "`sort < /dev/null 2>&1`" || exit 77
14980 genfile --file foo/file1
14981 genfile --file foo/file2
14983 genfile --file foo/bar/file.r
14985 genfile --file foo/bar/baz/file.z
14989 echo "Creating base archive"
14990 tar -g incr -cf arch.1 -v foo
14994 echo "Creating incremental archive"
14995 tar -g incr -cf arch.2 -v foo
14999 tar xfg arch.1 /dev/null 2>tmperr
15002 echo "Begin directory listing 1"
15004 echo "End directory listing 1"
15006 tar xfgv arch.2 /dev/null
15007 echo Begin directory listing 2
15009 echo End directory listing 2
15010 ) ) >"$at_stdout" 2>"$at_stderr"
15015 echo >>"$at_stderr"; echo "tar: foo/bar: Directory is new
15016 tar: foo/bar/baz: Directory is new
15017 tar: foo/baz: Directory has been renamed from \`foo/bar/baz'
15018 " | $at_diff - "$at_stderr" || at_failed=:
15019 echo >>"$at_stdout"; echo "Creating base archive
15027 Creating incremental archive
15031 Begin directory listing 1
15039 End directory listing 1
15043 Begin directory listing 2
15051 End directory listing 2
15052 " | $at_diff - "$at_stdout" || at_failed=:
15054 77) echo 77 > "$at_status_file"; exit 77;;
15056 *) echo "$at_srcdir/rename02.at:27: exit code was $at_status, expected 0"
15059 if $at_failed; then
15062 echo 1 > "$at_status_file"
15068 echo "$at_srcdir/rename02.at:27:
15071 TEST_TAR_FORMAT=posix
15072 export TEST_TAR_FORMAT
15073 TAR_OPTIONS=\"-H posix\"
15078 test -z "`sort < /dev/null 2>&1`" || exit 77
15081 genfile --file foo/file1
15082 genfile --file foo/file2
15084 genfile --file foo/bar/file.r
15086 genfile --file foo/bar/baz/file.z
15090 echo \"Creating base archive\"
15091 tar -g incr -cf arch.1 -v foo
15095 echo \"Creating incremental archive\"
15096 tar -g incr -cf arch.2 -v foo
15100 tar xfg arch.1 /dev/null 2>tmperr
15103 echo \"Begin directory listing 1\"
15105 echo \"End directory listing 1\"
15107 tar xfgv arch.2 /dev/null
15108 echo Begin directory listing 2
15110 echo End directory listing 2
15112 echo rename02.at:27 >"$at_check_line_file"
15115 if test -n "$at_traceon"; then
15116 echo 'Not enabling shell tracing (command contains an embedded newline)'
15119 if test -n "$at_trace_this"; then
15123 TEST_TAR_FORMAT=posix
15124 export TEST_TAR_FORMAT
15125 TAR_OPTIONS="-H posix"
15130 test -z "`sort < /dev/null 2>&1`" || exit 77
15133 genfile --file foo/file1
15134 genfile --file foo/file2
15136 genfile --file foo/bar/file.r
15138 genfile --file foo/bar/baz/file.z
15142 echo "Creating base archive"
15143 tar -g incr -cf arch.1 -v foo
15147 echo "Creating incremental archive"
15148 tar -g incr -cf arch.2 -v foo
15152 tar xfg arch.1 /dev/null 2>tmperr
15155 echo "Begin directory listing 1"
15157 echo "End directory listing 1"
15159 tar xfgv arch.2 /dev/null
15160 echo Begin directory listing 2
15162 echo End directory listing 2
15163 ) ) >"$at_stdout" 2>"$at_stder1"
15165 grep '^ *+' "$at_stder1" >&2
15166 grep -v '^ *+' "$at_stder1" >"$at_stderr"
15171 TEST_TAR_FORMAT=posix
15172 export TEST_TAR_FORMAT
15173 TAR_OPTIONS="-H posix"
15178 test -z "`sort < /dev/null 2>&1`" || exit 77
15181 genfile --file foo/file1
15182 genfile --file foo/file2
15184 genfile --file foo/bar/file.r
15186 genfile --file foo/bar/baz/file.z
15190 echo "Creating base archive"
15191 tar -g incr -cf arch.1 -v foo
15195 echo "Creating incremental archive"
15196 tar -g incr -cf arch.2 -v foo
15200 tar xfg arch.1 /dev/null 2>tmperr
15203 echo "Begin directory listing 1"
15205 echo "End directory listing 1"
15207 tar xfgv arch.2 /dev/null
15208 echo Begin directory listing 2
15210 echo End directory listing 2
15211 ) ) >"$at_stdout" 2>"$at_stderr"
15216 echo >>"$at_stderr"; echo "tar: foo/bar: Directory is new
15217 tar: foo/bar/baz: Directory is new
15218 tar: foo/baz: Directory has been renamed from \`foo/bar/baz'
15219 " | $at_diff - "$at_stderr" || at_failed=:
15220 echo >>"$at_stdout"; echo "Creating base archive
15228 Creating incremental archive
15232 Begin directory listing 1
15240 End directory listing 1
15244 Begin directory listing 2
15252 End directory listing 2
15253 " | $at_diff - "$at_stdout" || at_failed=:
15255 77) echo 77 > "$at_status_file"; exit 77;;
15257 *) echo "$at_srcdir/rename02.at:27: exit code was $at_status, expected 0"
15260 if $at_failed; then
15263 echo 1 > "$at_status_file"
15272 $at_times_p && times >"$at_times_file"
15273 ) 5>&1 2>&1 | eval $at_tee_pipe
15274 at_status=`cat "$at_status_file"`
15277 35 ) # 35. rename03.at:23: cyclic renames
15278 at_setup_line='rename03.at:23'
15279 at_desc="cyclic renames"
15280 $at_quiet $ECHO_N " 35: cyclic renames $ECHO_C"
15282 test -f $XFAILFILE && at_xfail=yes
15283 echo "# -*- compilation -*-" >> "$at_group_log"
15285 echo "35. rename03.at:23: testing ..."
15293 echo "$at_srcdir/rename03.at:26:
15296 TEST_TAR_FORMAT=gnu
15297 export TEST_TAR_FORMAT
15298 TAR_OPTIONS=\"-H gnu\"
15303 test -z "`sort < /dev/null 2>&1`" || exit 77
15307 genfile --file foo/file1
15308 genfile --file foo/file2
15311 genfile --file foo/a/filea
15314 genfile --file foo/b/fileb
15317 genfile --file foo/c/filec
15321 echo \"First dump\"
15322 echo \"First dump\">&2
15323 tar -g incr -cf arch.1 -v foo 2>tmperr
15326 # Shuffle directories:
15333 echo \"Second dump\"
15334 echo \"Second dump\" >&2
15335 tar -g incr -cf arch.2 -v foo 2>tmperr
15338 tar xfg arch.1 /dev/null
15340 echo \"Begin directory listing 1\"
15342 echo \"End directory listing 1\"
15344 tar xfgv arch.2 /dev/null
15345 echo Begin directory listing 2
15347 echo End directory listing 2
15349 echo rename03.at:26 >"$at_check_line_file"
15352 if test -n "$at_traceon"; then
15353 echo 'Not enabling shell tracing (command contains an embedded newline)'
15356 if test -n "$at_trace_this"; then
15360 TEST_TAR_FORMAT=gnu
15361 export TEST_TAR_FORMAT
15362 TAR_OPTIONS="-H gnu"
15367 test -z "`sort < /dev/null 2>&1`" || exit 77
15371 genfile --file foo/file1
15372 genfile --file foo/file2
15375 genfile --file foo/a/filea
15378 genfile --file foo/b/fileb
15381 genfile --file foo/c/filec
15386 echo "First dump">&2
15387 tar -g incr -cf arch.1 -v foo 2>tmperr
15390 # Shuffle directories:
15398 echo "Second dump" >&2
15399 tar -g incr -cf arch.2 -v foo 2>tmperr
15402 tar xfg arch.1 /dev/null
15404 echo "Begin directory listing 1"
15406 echo "End directory listing 1"
15408 tar xfgv arch.2 /dev/null
15409 echo Begin directory listing 2
15411 echo End directory listing 2
15412 ) ) >"$at_stdout" 2>"$at_stder1"
15414 grep '^ *+' "$at_stder1" >&2
15415 grep -v '^ *+' "$at_stder1" >"$at_stderr"
15420 TEST_TAR_FORMAT=gnu
15421 export TEST_TAR_FORMAT
15422 TAR_OPTIONS="-H gnu"
15427 test -z "`sort < /dev/null 2>&1`" || exit 77
15431 genfile --file foo/file1
15432 genfile --file foo/file2
15435 genfile --file foo/a/filea
15438 genfile --file foo/b/fileb
15441 genfile --file foo/c/filec
15446 echo "First dump">&2
15447 tar -g incr -cf arch.1 -v foo 2>tmperr
15450 # Shuffle directories:
15458 echo "Second dump" >&2
15459 tar -g incr -cf arch.2 -v foo 2>tmperr
15462 tar xfg arch.1 /dev/null
15464 echo "Begin directory listing 1"
15466 echo "End directory listing 1"
15468 tar xfgv arch.2 /dev/null
15469 echo Begin directory listing 2
15471 echo End directory listing 2
15472 ) ) >"$at_stdout" 2>"$at_stderr"
15477 echo >>"$at_stderr"; echo "First dump
15478 tar: foo/a: Directory is new
15479 tar: foo/b: Directory is new
15480 tar: foo/c: Directory is new
15482 tar: foo/a: Directory has been renamed from \`foo/c'
15483 tar: foo/b: Directory has been renamed from \`foo/a'
15484 tar: foo/c: Directory has been renamed from \`foo/b'
15485 " | $at_diff - "$at_stderr" || at_failed=:
15486 echo >>"$at_stdout"; echo "First dump
15501 Begin directory listing 1
15511 End directory listing 1
15516 Begin directory listing 2
15526 End directory listing 2
15527 " | $at_diff - "$at_stdout" || at_failed=:
15529 77) echo 77 > "$at_status_file"; exit 77;;
15531 *) echo "$at_srcdir/rename03.at:26: exit code was $at_status, expected 0"
15534 if $at_failed; then
15537 echo 1 > "$at_status_file"
15543 echo "$at_srcdir/rename03.at:26:
15546 TEST_TAR_FORMAT=oldgnu
15547 export TEST_TAR_FORMAT
15548 TAR_OPTIONS=\"-H oldgnu\"
15553 test -z "`sort < /dev/null 2>&1`" || exit 77
15557 genfile --file foo/file1
15558 genfile --file foo/file2
15561 genfile --file foo/a/filea
15564 genfile --file foo/b/fileb
15567 genfile --file foo/c/filec
15571 echo \"First dump\"
15572 echo \"First dump\">&2
15573 tar -g incr -cf arch.1 -v foo 2>tmperr
15576 # Shuffle directories:
15583 echo \"Second dump\"
15584 echo \"Second dump\" >&2
15585 tar -g incr -cf arch.2 -v foo 2>tmperr
15588 tar xfg arch.1 /dev/null
15590 echo \"Begin directory listing 1\"
15592 echo \"End directory listing 1\"
15594 tar xfgv arch.2 /dev/null
15595 echo Begin directory listing 2
15597 echo End directory listing 2
15599 echo rename03.at:26 >"$at_check_line_file"
15602 if test -n "$at_traceon"; then
15603 echo 'Not enabling shell tracing (command contains an embedded newline)'
15606 if test -n "$at_trace_this"; then
15610 TEST_TAR_FORMAT=oldgnu
15611 export TEST_TAR_FORMAT
15612 TAR_OPTIONS="-H oldgnu"
15617 test -z "`sort < /dev/null 2>&1`" || exit 77
15621 genfile --file foo/file1
15622 genfile --file foo/file2
15625 genfile --file foo/a/filea
15628 genfile --file foo/b/fileb
15631 genfile --file foo/c/filec
15636 echo "First dump">&2
15637 tar -g incr -cf arch.1 -v foo 2>tmperr
15640 # Shuffle directories:
15648 echo "Second dump" >&2
15649 tar -g incr -cf arch.2 -v foo 2>tmperr
15652 tar xfg arch.1 /dev/null
15654 echo "Begin directory listing 1"
15656 echo "End directory listing 1"
15658 tar xfgv arch.2 /dev/null
15659 echo Begin directory listing 2
15661 echo End directory listing 2
15662 ) ) >"$at_stdout" 2>"$at_stder1"
15664 grep '^ *+' "$at_stder1" >&2
15665 grep -v '^ *+' "$at_stder1" >"$at_stderr"
15670 TEST_TAR_FORMAT=oldgnu
15671 export TEST_TAR_FORMAT
15672 TAR_OPTIONS="-H oldgnu"
15677 test -z "`sort < /dev/null 2>&1`" || exit 77
15681 genfile --file foo/file1
15682 genfile --file foo/file2
15685 genfile --file foo/a/filea
15688 genfile --file foo/b/fileb
15691 genfile --file foo/c/filec
15696 echo "First dump">&2
15697 tar -g incr -cf arch.1 -v foo 2>tmperr
15700 # Shuffle directories:
15708 echo "Second dump" >&2
15709 tar -g incr -cf arch.2 -v foo 2>tmperr
15712 tar xfg arch.1 /dev/null
15714 echo "Begin directory listing 1"
15716 echo "End directory listing 1"
15718 tar xfgv arch.2 /dev/null
15719 echo Begin directory listing 2
15721 echo End directory listing 2
15722 ) ) >"$at_stdout" 2>"$at_stderr"
15727 echo >>"$at_stderr"; echo "First dump
15728 tar: foo/a: Directory is new
15729 tar: foo/b: Directory is new
15730 tar: foo/c: Directory is new
15732 tar: foo/a: Directory has been renamed from \`foo/c'
15733 tar: foo/b: Directory has been renamed from \`foo/a'
15734 tar: foo/c: Directory has been renamed from \`foo/b'
15735 " | $at_diff - "$at_stderr" || at_failed=:
15736 echo >>"$at_stdout"; echo "First dump
15751 Begin directory listing 1
15761 End directory listing 1
15766 Begin directory listing 2
15776 End directory listing 2
15777 " | $at_diff - "$at_stdout" || at_failed=:
15779 77) echo 77 > "$at_status_file"; exit 77;;
15781 *) echo "$at_srcdir/rename03.at:26: exit code was $at_status, expected 0"
15784 if $at_failed; then
15787 echo 1 > "$at_status_file"
15793 echo "$at_srcdir/rename03.at:26:
15796 TEST_TAR_FORMAT=posix
15797 export TEST_TAR_FORMAT
15798 TAR_OPTIONS=\"-H posix\"
15803 test -z "`sort < /dev/null 2>&1`" || exit 77
15807 genfile --file foo/file1
15808 genfile --file foo/file2
15811 genfile --file foo/a/filea
15814 genfile --file foo/b/fileb
15817 genfile --file foo/c/filec
15821 echo \"First dump\"
15822 echo \"First dump\">&2
15823 tar -g incr -cf arch.1 -v foo 2>tmperr
15826 # Shuffle directories:
15833 echo \"Second dump\"
15834 echo \"Second dump\" >&2
15835 tar -g incr -cf arch.2 -v foo 2>tmperr
15838 tar xfg arch.1 /dev/null
15840 echo \"Begin directory listing 1\"
15842 echo \"End directory listing 1\"
15844 tar xfgv arch.2 /dev/null
15845 echo Begin directory listing 2
15847 echo End directory listing 2
15849 echo rename03.at:26 >"$at_check_line_file"
15852 if test -n "$at_traceon"; then
15853 echo 'Not enabling shell tracing (command contains an embedded newline)'
15856 if test -n "$at_trace_this"; then
15860 TEST_TAR_FORMAT=posix
15861 export TEST_TAR_FORMAT
15862 TAR_OPTIONS="-H posix"
15867 test -z "`sort < /dev/null 2>&1`" || exit 77
15871 genfile --file foo/file1
15872 genfile --file foo/file2
15875 genfile --file foo/a/filea
15878 genfile --file foo/b/fileb
15881 genfile --file foo/c/filec
15886 echo "First dump">&2
15887 tar -g incr -cf arch.1 -v foo 2>tmperr
15890 # Shuffle directories:
15898 echo "Second dump" >&2
15899 tar -g incr -cf arch.2 -v foo 2>tmperr
15902 tar xfg arch.1 /dev/null
15904 echo "Begin directory listing 1"
15906 echo "End directory listing 1"
15908 tar xfgv arch.2 /dev/null
15909 echo Begin directory listing 2
15911 echo End directory listing 2
15912 ) ) >"$at_stdout" 2>"$at_stder1"
15914 grep '^ *+' "$at_stder1" >&2
15915 grep -v '^ *+' "$at_stder1" >"$at_stderr"
15920 TEST_TAR_FORMAT=posix
15921 export TEST_TAR_FORMAT
15922 TAR_OPTIONS="-H posix"
15927 test -z "`sort < /dev/null 2>&1`" || exit 77
15931 genfile --file foo/file1
15932 genfile --file foo/file2
15935 genfile --file foo/a/filea
15938 genfile --file foo/b/fileb
15941 genfile --file foo/c/filec
15946 echo "First dump">&2
15947 tar -g incr -cf arch.1 -v foo 2>tmperr
15950 # Shuffle directories:
15958 echo "Second dump" >&2
15959 tar -g incr -cf arch.2 -v foo 2>tmperr
15962 tar xfg arch.1 /dev/null
15964 echo "Begin directory listing 1"
15966 echo "End directory listing 1"
15968 tar xfgv arch.2 /dev/null
15969 echo Begin directory listing 2
15971 echo End directory listing 2
15972 ) ) >"$at_stdout" 2>"$at_stderr"
15977 echo >>"$at_stderr"; echo "First dump
15978 tar: foo/a: Directory is new
15979 tar: foo/b: Directory is new
15980 tar: foo/c: Directory is new
15982 tar: foo/a: Directory has been renamed from \`foo/c'
15983 tar: foo/b: Directory has been renamed from \`foo/a'
15984 tar: foo/c: Directory has been renamed from \`foo/b'
15985 " | $at_diff - "$at_stderr" || at_failed=:
15986 echo >>"$at_stdout"; echo "First dump
16001 Begin directory listing 1
16011 End directory listing 1
16016 Begin directory listing 2
16026 End directory listing 2
16027 " | $at_diff - "$at_stdout" || at_failed=:
16029 77) echo 77 > "$at_status_file"; exit 77;;
16031 *) echo "$at_srcdir/rename03.at:26: exit code was $at_status, expected 0"
16034 if $at_failed; then
16037 echo 1 > "$at_status_file"
16046 $at_times_p && times >"$at_times_file"
16047 ) 5>&1 2>&1 | eval $at_tee_pipe
16048 at_status=`cat "$at_status_file"`
16051 36 ) # 36. chtype.at:27: changed file types in incrementals
16052 at_setup_line='chtype.at:27'
16053 at_desc="changed file types in incrementals"
16054 $at_quiet $ECHO_N " 36: changed file types in incrementals $ECHO_C"
16056 test -f $XFAILFILE && at_xfail=yes
16057 echo "# -*- compilation -*-" >> "$at_group_log"
16059 echo "36. chtype.at:27: testing ..."
16067 echo "$at_srcdir/chtype.at:30:
16070 TEST_TAR_FORMAT=gnu
16071 export TEST_TAR_FORMAT
16072 TAR_OPTIONS=\"-H gnu\"
16077 test -z "`sort < /dev/null 2>&1`" || exit 77
16080 install-sh -d directory/b/c >/dev/null && genfile --file directory/b/c/x || exit 77
16082 genfile --file directory/a/a
16085 tar --create --file=archive.1 --listed-incremental=db.1 directory
16089 # Remove directory b and create a file with this name.
16090 # Previous versions were not able to restore over this file.
16092 genfile --file directory/b
16093 genfile --file directory/a/b
16096 tar --create --file=archive.2 --listed-incremental=db.2 directory
16101 echo Restore archive.1
16102 tar -xf archive.1 --listed-incremental=/dev/null
16103 echo Restore archive.2
16104 tar -xf archive.2 --listed-incremental=/dev/null
16105 find directory | sort
16107 echo chtype.at:30 >"$at_check_line_file"
16110 if test -n "$at_traceon"; then
16111 echo 'Not enabling shell tracing (command contains an embedded newline)'
16114 if test -n "$at_trace_this"; then
16118 TEST_TAR_FORMAT=gnu
16119 export TEST_TAR_FORMAT
16120 TAR_OPTIONS="-H gnu"
16125 test -z "`sort < /dev/null 2>&1`" || exit 77
16128 install-sh -d directory/b/c >/dev/null && genfile --file directory/b/c/x || exit 77
16130 genfile --file directory/a/a
16133 tar --create --file=archive.1 --listed-incremental=db.1 directory
16137 # Remove directory b and create a file with this name.
16138 # Previous versions were not able to restore over this file.
16140 genfile --file directory/b
16141 genfile --file directory/a/b
16144 tar --create --file=archive.2 --listed-incremental=db.2 directory
16149 echo Restore archive.1
16150 tar -xf archive.1 --listed-incremental=/dev/null
16151 echo Restore archive.2
16152 tar -xf archive.2 --listed-incremental=/dev/null
16153 find directory | sort
16154 ) ) >"$at_stdout" 2>"$at_stder1"
16156 grep '^ *+' "$at_stder1" >&2
16157 grep -v '^ *+' "$at_stder1" >"$at_stderr"
16162 TEST_TAR_FORMAT=gnu
16163 export TEST_TAR_FORMAT
16164 TAR_OPTIONS="-H gnu"
16169 test -z "`sort < /dev/null 2>&1`" || exit 77
16172 install-sh -d directory/b/c >/dev/null && genfile --file directory/b/c/x || exit 77
16174 genfile --file directory/a/a
16177 tar --create --file=archive.1 --listed-incremental=db.1 directory
16181 # Remove directory b and create a file with this name.
16182 # Previous versions were not able to restore over this file.
16184 genfile --file directory/b
16185 genfile --file directory/a/b
16188 tar --create --file=archive.2 --listed-incremental=db.2 directory
16193 echo Restore archive.1
16194 tar -xf archive.1 --listed-incremental=/dev/null
16195 echo Restore archive.2
16196 tar -xf archive.2 --listed-incremental=/dev/null
16197 find directory | sort
16198 ) ) >"$at_stdout" 2>"$at_stderr"
16203 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
16204 echo >>"$at_stdout"; echo "First backup
16213 " | $at_diff - "$at_stdout" || at_failed=:
16215 77) echo 77 > "$at_status_file"; exit 77;;
16217 *) echo "$at_srcdir/chtype.at:30: exit code was $at_status, expected 0"
16220 if $at_failed; then
16223 echo 1 > "$at_status_file"
16229 echo "$at_srcdir/chtype.at:30:
16232 TEST_TAR_FORMAT=oldgnu
16233 export TEST_TAR_FORMAT
16234 TAR_OPTIONS=\"-H oldgnu\"
16239 test -z "`sort < /dev/null 2>&1`" || exit 77
16242 install-sh -d directory/b/c >/dev/null && genfile --file directory/b/c/x || exit 77
16244 genfile --file directory/a/a
16247 tar --create --file=archive.1 --listed-incremental=db.1 directory
16251 # Remove directory b and create a file with this name.
16252 # Previous versions were not able to restore over this file.
16254 genfile --file directory/b
16255 genfile --file directory/a/b
16258 tar --create --file=archive.2 --listed-incremental=db.2 directory
16263 echo Restore archive.1
16264 tar -xf archive.1 --listed-incremental=/dev/null
16265 echo Restore archive.2
16266 tar -xf archive.2 --listed-incremental=/dev/null
16267 find directory | sort
16269 echo chtype.at:30 >"$at_check_line_file"
16272 if test -n "$at_traceon"; then
16273 echo 'Not enabling shell tracing (command contains an embedded newline)'
16276 if test -n "$at_trace_this"; then
16280 TEST_TAR_FORMAT=oldgnu
16281 export TEST_TAR_FORMAT
16282 TAR_OPTIONS="-H oldgnu"
16287 test -z "`sort < /dev/null 2>&1`" || exit 77
16290 install-sh -d directory/b/c >/dev/null && genfile --file directory/b/c/x || exit 77
16292 genfile --file directory/a/a
16295 tar --create --file=archive.1 --listed-incremental=db.1 directory
16299 # Remove directory b and create a file with this name.
16300 # Previous versions were not able to restore over this file.
16302 genfile --file directory/b
16303 genfile --file directory/a/b
16306 tar --create --file=archive.2 --listed-incremental=db.2 directory
16311 echo Restore archive.1
16312 tar -xf archive.1 --listed-incremental=/dev/null
16313 echo Restore archive.2
16314 tar -xf archive.2 --listed-incremental=/dev/null
16315 find directory | sort
16316 ) ) >"$at_stdout" 2>"$at_stder1"
16318 grep '^ *+' "$at_stder1" >&2
16319 grep -v '^ *+' "$at_stder1" >"$at_stderr"
16324 TEST_TAR_FORMAT=oldgnu
16325 export TEST_TAR_FORMAT
16326 TAR_OPTIONS="-H oldgnu"
16331 test -z "`sort < /dev/null 2>&1`" || exit 77
16334 install-sh -d directory/b/c >/dev/null && genfile --file directory/b/c/x || exit 77
16336 genfile --file directory/a/a
16339 tar --create --file=archive.1 --listed-incremental=db.1 directory
16343 # Remove directory b and create a file with this name.
16344 # Previous versions were not able to restore over this file.
16346 genfile --file directory/b
16347 genfile --file directory/a/b
16350 tar --create --file=archive.2 --listed-incremental=db.2 directory
16355 echo Restore archive.1
16356 tar -xf archive.1 --listed-incremental=/dev/null
16357 echo Restore archive.2
16358 tar -xf archive.2 --listed-incremental=/dev/null
16359 find directory | sort
16360 ) ) >"$at_stdout" 2>"$at_stderr"
16365 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
16366 echo >>"$at_stdout"; echo "First backup
16375 " | $at_diff - "$at_stdout" || at_failed=:
16377 77) echo 77 > "$at_status_file"; exit 77;;
16379 *) echo "$at_srcdir/chtype.at:30: exit code was $at_status, expected 0"
16382 if $at_failed; then
16385 echo 1 > "$at_status_file"
16391 echo "$at_srcdir/chtype.at:30:
16394 TEST_TAR_FORMAT=posix
16395 export TEST_TAR_FORMAT
16396 TAR_OPTIONS=\"-H posix\"
16401 test -z "`sort < /dev/null 2>&1`" || exit 77
16404 install-sh -d directory/b/c >/dev/null && genfile --file directory/b/c/x || exit 77
16406 genfile --file directory/a/a
16409 tar --create --file=archive.1 --listed-incremental=db.1 directory
16413 # Remove directory b and create a file with this name.
16414 # Previous versions were not able to restore over this file.
16416 genfile --file directory/b
16417 genfile --file directory/a/b
16420 tar --create --file=archive.2 --listed-incremental=db.2 directory
16425 echo Restore archive.1
16426 tar -xf archive.1 --listed-incremental=/dev/null
16427 echo Restore archive.2
16428 tar -xf archive.2 --listed-incremental=/dev/null
16429 find directory | sort
16431 echo chtype.at:30 >"$at_check_line_file"
16434 if test -n "$at_traceon"; then
16435 echo 'Not enabling shell tracing (command contains an embedded newline)'
16438 if test -n "$at_trace_this"; then
16442 TEST_TAR_FORMAT=posix
16443 export TEST_TAR_FORMAT
16444 TAR_OPTIONS="-H posix"
16449 test -z "`sort < /dev/null 2>&1`" || exit 77
16452 install-sh -d directory/b/c >/dev/null && genfile --file directory/b/c/x || exit 77
16454 genfile --file directory/a/a
16457 tar --create --file=archive.1 --listed-incremental=db.1 directory
16461 # Remove directory b and create a file with this name.
16462 # Previous versions were not able to restore over this file.
16464 genfile --file directory/b
16465 genfile --file directory/a/b
16468 tar --create --file=archive.2 --listed-incremental=db.2 directory
16473 echo Restore archive.1
16474 tar -xf archive.1 --listed-incremental=/dev/null
16475 echo Restore archive.2
16476 tar -xf archive.2 --listed-incremental=/dev/null
16477 find directory | sort
16478 ) ) >"$at_stdout" 2>"$at_stder1"
16480 grep '^ *+' "$at_stder1" >&2
16481 grep -v '^ *+' "$at_stder1" >"$at_stderr"
16486 TEST_TAR_FORMAT=posix
16487 export TEST_TAR_FORMAT
16488 TAR_OPTIONS="-H posix"
16493 test -z "`sort < /dev/null 2>&1`" || exit 77
16496 install-sh -d directory/b/c >/dev/null && genfile --file directory/b/c/x || exit 77
16498 genfile --file directory/a/a
16501 tar --create --file=archive.1 --listed-incremental=db.1 directory
16505 # Remove directory b and create a file with this name.
16506 # Previous versions were not able to restore over this file.
16508 genfile --file directory/b
16509 genfile --file directory/a/b
16512 tar --create --file=archive.2 --listed-incremental=db.2 directory
16517 echo Restore archive.1
16518 tar -xf archive.1 --listed-incremental=/dev/null
16519 echo Restore archive.2
16520 tar -xf archive.2 --listed-incremental=/dev/null
16521 find directory | sort
16522 ) ) >"$at_stdout" 2>"$at_stderr"
16527 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
16528 echo >>"$at_stdout"; echo "First backup
16537 " | $at_diff - "$at_stdout" || at_failed=:
16539 77) echo 77 > "$at_status_file"; exit 77;;
16541 *) echo "$at_srcdir/chtype.at:30: exit code was $at_status, expected 0"
16544 if $at_failed; then
16547 echo 1 > "$at_status_file"
16556 $at_times_p && times >"$at_times_file"
16557 ) 5>&1 2>&1 | eval $at_tee_pipe
16558 at_status=`cat "$at_status_file"`
16561 37 ) # 37. ignfail.at:23: ignfail
16562 at_setup_line='ignfail.at:23'
16564 $at_quiet $ECHO_N " 37: ignfail $ECHO_C"
16566 test -f $XFAILFILE && at_xfail=yes
16567 echo "# -*- compilation -*-" >> "$at_group_log"
16569 echo "37. ignfail.at:23: testing ..."
16577 echo "$at_srcdir/ignfail.at:26:
16581 export TEST_TAR_FORMAT
16582 TAR_OPTIONS=\"-H v7\"
16586 # The test is meaningless for super-user.
16590 cat $$ > /dev/null 2>&1
16593 test $result -eq 0 && exit 77
16598 touch directory/file
16602 tar cf archive file
16605 test \$status = 2 || exit 1
16609 tar cf archive --ignore-failed-read file || exit 1
16612 test \$status = 0 || exit 1
16615 chmod 000 directory
16616 tar cf archive directory
16618 chmod 700 directory
16619 test \$status = 2 || exit 1
16622 chmod 000 directory
16623 tar cf archive --ignore-failed-read directory || exit 1
16625 chmod 700 directory
16628 echo ignfail.at:26 >"$at_check_line_file"
16631 if test -n "$at_traceon"; then
16632 echo 'Not enabling shell tracing (command contains an embedded newline)'
16635 if test -n "$at_trace_this"; then
16640 export TEST_TAR_FORMAT
16641 TAR_OPTIONS="-H v7"
16645 # The test is meaningless for super-user.
16649 cat $$ > /dev/null 2>&1
16652 test $result -eq 0 && exit 77
16657 touch directory/file
16661 tar cf archive file
16664 test $status = 2 || exit 1
16668 tar cf archive --ignore-failed-read file || exit 1
16671 test $status = 0 || exit 1
16674 chmod 000 directory
16675 tar cf archive directory
16677 chmod 700 directory
16678 test $status = 2 || exit 1
16681 chmod 000 directory
16682 tar cf archive --ignore-failed-read directory || exit 1
16684 chmod 700 directory
16686 ) ) >"$at_stdout" 2>"$at_stder1"
16688 grep '^ *+' "$at_stder1" >&2
16689 grep -v '^ *+' "$at_stder1" >"$at_stderr"
16695 export TEST_TAR_FORMAT
16696 TAR_OPTIONS="-H v7"
16700 # The test is meaningless for super-user.
16704 cat $$ > /dev/null 2>&1
16707 test $result -eq 0 && exit 77
16712 touch directory/file
16716 tar cf archive file
16719 test $status = 2 || exit 1
16723 tar cf archive --ignore-failed-read file || exit 1
16726 test $status = 0 || exit 1
16729 chmod 000 directory
16730 tar cf archive directory
16732 chmod 700 directory
16733 test $status = 2 || exit 1
16736 chmod 000 directory
16737 tar cf archive --ignore-failed-read directory || exit 1
16739 chmod 700 directory
16741 ) ) >"$at_stdout" 2>"$at_stderr"
16746 echo >>"$at_stderr"; echo "-----
16747 tar: file: Cannot open: Permission denied
16748 tar: Error exit delayed from previous errors
16750 tar: file: Warning: Cannot open: Permission denied
16752 tar: directory: Cannot open: Permission denied
16753 tar: Error exit delayed from previous errors
16755 tar: directory: Warning: Cannot open: Permission denied
16756 " | $at_diff - "$at_stderr" || at_failed=:
16757 $at_diff "$at_devnull" "$at_stdout" || at_failed=:
16759 77) echo 77 > "$at_status_file"; exit 77;;
16761 *) echo "$at_srcdir/ignfail.at:26: exit code was $at_status, expected 0"
16764 if $at_failed; then
16767 echo 1 > "$at_status_file"
16773 echo "$at_srcdir/ignfail.at:26:
16776 TEST_TAR_FORMAT=oldgnu
16777 export TEST_TAR_FORMAT
16778 TAR_OPTIONS=\"-H oldgnu\"
16782 # The test is meaningless for super-user.
16786 cat $$ > /dev/null 2>&1
16789 test $result -eq 0 && exit 77
16794 touch directory/file
16798 tar cf archive file
16801 test \$status = 2 || exit 1
16805 tar cf archive --ignore-failed-read file || exit 1
16808 test \$status = 0 || exit 1
16811 chmod 000 directory
16812 tar cf archive directory
16814 chmod 700 directory
16815 test \$status = 2 || exit 1
16818 chmod 000 directory
16819 tar cf archive --ignore-failed-read directory || exit 1
16821 chmod 700 directory
16824 echo ignfail.at:26 >"$at_check_line_file"
16827 if test -n "$at_traceon"; then
16828 echo 'Not enabling shell tracing (command contains an embedded newline)'
16831 if test -n "$at_trace_this"; then
16835 TEST_TAR_FORMAT=oldgnu
16836 export TEST_TAR_FORMAT
16837 TAR_OPTIONS="-H oldgnu"
16841 # The test is meaningless for super-user.
16845 cat $$ > /dev/null 2>&1
16848 test $result -eq 0 && exit 77
16853 touch directory/file
16857 tar cf archive file
16860 test $status = 2 || exit 1
16864 tar cf archive --ignore-failed-read file || exit 1
16867 test $status = 0 || exit 1
16870 chmod 000 directory
16871 tar cf archive directory
16873 chmod 700 directory
16874 test $status = 2 || exit 1
16877 chmod 000 directory
16878 tar cf archive --ignore-failed-read directory || exit 1
16880 chmod 700 directory
16882 ) ) >"$at_stdout" 2>"$at_stder1"
16884 grep '^ *+' "$at_stder1" >&2
16885 grep -v '^ *+' "$at_stder1" >"$at_stderr"
16890 TEST_TAR_FORMAT=oldgnu
16891 export TEST_TAR_FORMAT
16892 TAR_OPTIONS="-H oldgnu"
16896 # The test is meaningless for super-user.
16900 cat $$ > /dev/null 2>&1
16903 test $result -eq 0 && exit 77
16908 touch directory/file
16912 tar cf archive file
16915 test $status = 2 || exit 1
16919 tar cf archive --ignore-failed-read file || exit 1
16922 test $status = 0 || exit 1
16925 chmod 000 directory
16926 tar cf archive directory
16928 chmod 700 directory
16929 test $status = 2 || exit 1
16932 chmod 000 directory
16933 tar cf archive --ignore-failed-read directory || exit 1
16935 chmod 700 directory
16937 ) ) >"$at_stdout" 2>"$at_stderr"
16942 echo >>"$at_stderr"; echo "-----
16943 tar: file: Cannot open: Permission denied
16944 tar: Error exit delayed from previous errors
16946 tar: file: Warning: Cannot open: Permission denied
16948 tar: directory: Cannot open: Permission denied
16949 tar: Error exit delayed from previous errors
16951 tar: directory: Warning: Cannot open: Permission denied
16952 " | $at_diff - "$at_stderr" || at_failed=:
16953 $at_diff "$at_devnull" "$at_stdout" || at_failed=:
16955 77) echo 77 > "$at_status_file"; exit 77;;
16957 *) echo "$at_srcdir/ignfail.at:26: exit code was $at_status, expected 0"
16960 if $at_failed; then
16963 echo 1 > "$at_status_file"
16969 echo "$at_srcdir/ignfail.at:26:
16972 TEST_TAR_FORMAT=ustar
16973 export TEST_TAR_FORMAT
16974 TAR_OPTIONS=\"-H ustar\"
16978 # The test is meaningless for super-user.
16982 cat $$ > /dev/null 2>&1
16985 test $result -eq 0 && exit 77
16990 touch directory/file
16994 tar cf archive file
16997 test \$status = 2 || exit 1
17001 tar cf archive --ignore-failed-read file || exit 1
17004 test \$status = 0 || exit 1
17007 chmod 000 directory
17008 tar cf archive directory
17010 chmod 700 directory
17011 test \$status = 2 || exit 1
17014 chmod 000 directory
17015 tar cf archive --ignore-failed-read directory || exit 1
17017 chmod 700 directory
17020 echo ignfail.at:26 >"$at_check_line_file"
17023 if test -n "$at_traceon"; then
17024 echo 'Not enabling shell tracing (command contains an embedded newline)'
17027 if test -n "$at_trace_this"; then
17031 TEST_TAR_FORMAT=ustar
17032 export TEST_TAR_FORMAT
17033 TAR_OPTIONS="-H ustar"
17037 # The test is meaningless for super-user.
17041 cat $$ > /dev/null 2>&1
17044 test $result -eq 0 && exit 77
17049 touch directory/file
17053 tar cf archive file
17056 test $status = 2 || exit 1
17060 tar cf archive --ignore-failed-read file || exit 1
17063 test $status = 0 || exit 1
17066 chmod 000 directory
17067 tar cf archive directory
17069 chmod 700 directory
17070 test $status = 2 || exit 1
17073 chmod 000 directory
17074 tar cf archive --ignore-failed-read directory || exit 1
17076 chmod 700 directory
17078 ) ) >"$at_stdout" 2>"$at_stder1"
17080 grep '^ *+' "$at_stder1" >&2
17081 grep -v '^ *+' "$at_stder1" >"$at_stderr"
17086 TEST_TAR_FORMAT=ustar
17087 export TEST_TAR_FORMAT
17088 TAR_OPTIONS="-H ustar"
17092 # The test is meaningless for super-user.
17096 cat $$ > /dev/null 2>&1
17099 test $result -eq 0 && exit 77
17104 touch directory/file
17108 tar cf archive file
17111 test $status = 2 || exit 1
17115 tar cf archive --ignore-failed-read file || exit 1
17118 test $status = 0 || exit 1
17121 chmod 000 directory
17122 tar cf archive directory
17124 chmod 700 directory
17125 test $status = 2 || exit 1
17128 chmod 000 directory
17129 tar cf archive --ignore-failed-read directory || exit 1
17131 chmod 700 directory
17133 ) ) >"$at_stdout" 2>"$at_stderr"
17138 echo >>"$at_stderr"; echo "-----
17139 tar: file: Cannot open: Permission denied
17140 tar: Error exit delayed from previous errors
17142 tar: file: Warning: Cannot open: Permission denied
17144 tar: directory: Cannot open: Permission denied
17145 tar: Error exit delayed from previous errors
17147 tar: directory: Warning: Cannot open: Permission denied
17148 " | $at_diff - "$at_stderr" || at_failed=:
17149 $at_diff "$at_devnull" "$at_stdout" || at_failed=:
17151 77) echo 77 > "$at_status_file"; exit 77;;
17153 *) echo "$at_srcdir/ignfail.at:26: exit code was $at_status, expected 0"
17156 if $at_failed; then
17159 echo 1 > "$at_status_file"
17165 echo "$at_srcdir/ignfail.at:26:
17168 TEST_TAR_FORMAT=posix
17169 export TEST_TAR_FORMAT
17170 TAR_OPTIONS=\"-H posix\"
17174 # The test is meaningless for super-user.
17178 cat $$ > /dev/null 2>&1
17181 test $result -eq 0 && exit 77
17186 touch directory/file
17190 tar cf archive file
17193 test \$status = 2 || exit 1
17197 tar cf archive --ignore-failed-read file || exit 1
17200 test \$status = 0 || exit 1
17203 chmod 000 directory
17204 tar cf archive directory
17206 chmod 700 directory
17207 test \$status = 2 || exit 1
17210 chmod 000 directory
17211 tar cf archive --ignore-failed-read directory || exit 1
17213 chmod 700 directory
17216 echo ignfail.at:26 >"$at_check_line_file"
17219 if test -n "$at_traceon"; then
17220 echo 'Not enabling shell tracing (command contains an embedded newline)'
17223 if test -n "$at_trace_this"; then
17227 TEST_TAR_FORMAT=posix
17228 export TEST_TAR_FORMAT
17229 TAR_OPTIONS="-H posix"
17233 # The test is meaningless for super-user.
17237 cat $$ > /dev/null 2>&1
17240 test $result -eq 0 && exit 77
17245 touch directory/file
17249 tar cf archive file
17252 test $status = 2 || exit 1
17256 tar cf archive --ignore-failed-read file || exit 1
17259 test $status = 0 || exit 1
17262 chmod 000 directory
17263 tar cf archive directory
17265 chmod 700 directory
17266 test $status = 2 || exit 1
17269 chmod 000 directory
17270 tar cf archive --ignore-failed-read directory || exit 1
17272 chmod 700 directory
17274 ) ) >"$at_stdout" 2>"$at_stder1"
17276 grep '^ *+' "$at_stder1" >&2
17277 grep -v '^ *+' "$at_stder1" >"$at_stderr"
17282 TEST_TAR_FORMAT=posix
17283 export TEST_TAR_FORMAT
17284 TAR_OPTIONS="-H posix"
17288 # The test is meaningless for super-user.
17292 cat $$ > /dev/null 2>&1
17295 test $result -eq 0 && exit 77
17300 touch directory/file
17304 tar cf archive file
17307 test $status = 2 || exit 1
17311 tar cf archive --ignore-failed-read file || exit 1
17314 test $status = 0 || exit 1
17317 chmod 000 directory
17318 tar cf archive directory
17320 chmod 700 directory
17321 test $status = 2 || exit 1
17324 chmod 000 directory
17325 tar cf archive --ignore-failed-read directory || exit 1
17327 chmod 700 directory
17329 ) ) >"$at_stdout" 2>"$at_stderr"
17334 echo >>"$at_stderr"; echo "-----
17335 tar: file: Cannot open: Permission denied
17336 tar: Error exit delayed from previous errors
17338 tar: file: Warning: Cannot open: Permission denied
17340 tar: directory: Cannot open: Permission denied
17341 tar: Error exit delayed from previous errors
17343 tar: directory: Warning: Cannot open: Permission denied
17344 " | $at_diff - "$at_stderr" || at_failed=:
17345 $at_diff "$at_devnull" "$at_stdout" || at_failed=:
17347 77) echo 77 > "$at_status_file"; exit 77;;
17349 *) echo "$at_srcdir/ignfail.at:26: exit code was $at_status, expected 0"
17352 if $at_failed; then
17355 echo 1 > "$at_status_file"
17361 echo "$at_srcdir/ignfail.at:26:
17364 TEST_TAR_FORMAT=gnu
17365 export TEST_TAR_FORMAT
17366 TAR_OPTIONS=\"-H gnu\"
17370 # The test is meaningless for super-user.
17374 cat $$ > /dev/null 2>&1
17377 test $result -eq 0 && exit 77
17382 touch directory/file
17386 tar cf archive file
17389 test \$status = 2 || exit 1
17393 tar cf archive --ignore-failed-read file || exit 1
17396 test \$status = 0 || exit 1
17399 chmod 000 directory
17400 tar cf archive directory
17402 chmod 700 directory
17403 test \$status = 2 || exit 1
17406 chmod 000 directory
17407 tar cf archive --ignore-failed-read directory || exit 1
17409 chmod 700 directory
17412 echo ignfail.at:26 >"$at_check_line_file"
17415 if test -n "$at_traceon"; then
17416 echo 'Not enabling shell tracing (command contains an embedded newline)'
17419 if test -n "$at_trace_this"; then
17423 TEST_TAR_FORMAT=gnu
17424 export TEST_TAR_FORMAT
17425 TAR_OPTIONS="-H gnu"
17429 # The test is meaningless for super-user.
17433 cat $$ > /dev/null 2>&1
17436 test $result -eq 0 && exit 77
17441 touch directory/file
17445 tar cf archive file
17448 test $status = 2 || exit 1
17452 tar cf archive --ignore-failed-read file || exit 1
17455 test $status = 0 || exit 1
17458 chmod 000 directory
17459 tar cf archive directory
17461 chmod 700 directory
17462 test $status = 2 || exit 1
17465 chmod 000 directory
17466 tar cf archive --ignore-failed-read directory || exit 1
17468 chmod 700 directory
17470 ) ) >"$at_stdout" 2>"$at_stder1"
17472 grep '^ *+' "$at_stder1" >&2
17473 grep -v '^ *+' "$at_stder1" >"$at_stderr"
17478 TEST_TAR_FORMAT=gnu
17479 export TEST_TAR_FORMAT
17480 TAR_OPTIONS="-H gnu"
17484 # The test is meaningless for super-user.
17488 cat $$ > /dev/null 2>&1
17491 test $result -eq 0 && exit 77
17496 touch directory/file
17500 tar cf archive file
17503 test $status = 2 || exit 1
17507 tar cf archive --ignore-failed-read file || exit 1
17510 test $status = 0 || exit 1
17513 chmod 000 directory
17514 tar cf archive directory
17516 chmod 700 directory
17517 test $status = 2 || exit 1
17520 chmod 000 directory
17521 tar cf archive --ignore-failed-read directory || exit 1
17523 chmod 700 directory
17525 ) ) >"$at_stdout" 2>"$at_stderr"
17530 echo >>"$at_stderr"; echo "-----
17531 tar: file: Cannot open: Permission denied
17532 tar: Error exit delayed from previous errors
17534 tar: file: Warning: Cannot open: Permission denied
17536 tar: directory: Cannot open: Permission denied
17537 tar: Error exit delayed from previous errors
17539 tar: directory: Warning: Cannot open: Permission denied
17540 " | $at_diff - "$at_stderr" || at_failed=:
17541 $at_diff "$at_devnull" "$at_stdout" || at_failed=:
17543 77) echo 77 > "$at_status_file"; exit 77;;
17545 *) echo "$at_srcdir/ignfail.at:26: exit code was $at_status, expected 0"
17548 if $at_failed; then
17551 echo 1 > "$at_status_file"
17560 $at_times_p && times >"$at_times_file"
17561 ) 5>&1 2>&1 | eval $at_tee_pipe
17562 at_status=`cat "$at_status_file"`
17565 38 ) # 38. link01.at:33: link count gt 2
17566 at_setup_line='link01.at:33'
17567 at_desc="link count gt 2"
17568 $at_quiet $ECHO_N " 38: link count gt 2 $ECHO_C"
17570 test -f $XFAILFILE && at_xfail=yes
17571 echo "# -*- compilation -*-" >> "$at_group_log"
17573 echo "38. link01.at:33: testing ..."
17581 echo "$at_srcdir/link01.at:36:
17585 export TEST_TAR_FORMAT
17586 TAR_OPTIONS=\"-H v7\"
17591 mkdir directory/test1
17592 mkdir directory/test2
17594 echo TEST > directory/test1/test.txt
17595 ln directory/test1/test.txt directory/test2/test.txt || exit 77
17597 tar cf archive directory/test1/test.txt directory/test1/test.txt
17604 echo link01.at:36 >"$at_check_line_file"
17607 if test -n "$at_traceon"; then
17608 echo 'Not enabling shell tracing (command contains an embedded newline)'
17611 if test -n "$at_trace_this"; then
17616 export TEST_TAR_FORMAT
17617 TAR_OPTIONS="-H v7"
17622 mkdir directory/test1
17623 mkdir directory/test2
17625 echo TEST > directory/test1/test.txt
17626 ln directory/test1/test.txt directory/test2/test.txt || exit 77
17628 tar cf archive directory/test1/test.txt directory/test1/test.txt
17634 ) ) >"$at_stdout" 2>"$at_stder1"
17636 grep '^ *+' "$at_stder1" >&2
17637 grep -v '^ *+' "$at_stder1" >"$at_stderr"
17643 export TEST_TAR_FORMAT
17644 TAR_OPTIONS="-H v7"
17649 mkdir directory/test1
17650 mkdir directory/test2
17652 echo TEST > directory/test1/test.txt
17653 ln directory/test1/test.txt directory/test2/test.txt || exit 77
17655 tar cf archive directory/test1/test.txt directory/test1/test.txt
17661 ) ) >"$at_stdout" 2>"$at_stderr"
17666 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
17667 echo >>"$at_stdout"; echo "test.txt
17668 " | $at_diff - "$at_stdout" || at_failed=:
17670 77) echo 77 > "$at_status_file"; exit 77;;
17672 *) echo "$at_srcdir/link01.at:36: exit code was $at_status, expected 0"
17675 if $at_failed; then
17678 echo 1 > "$at_status_file"
17684 echo "$at_srcdir/link01.at:36:
17687 TEST_TAR_FORMAT=oldgnu
17688 export TEST_TAR_FORMAT
17689 TAR_OPTIONS=\"-H oldgnu\"
17694 mkdir directory/test1
17695 mkdir directory/test2
17697 echo TEST > directory/test1/test.txt
17698 ln directory/test1/test.txt directory/test2/test.txt || exit 77
17700 tar cf archive directory/test1/test.txt directory/test1/test.txt
17707 echo link01.at:36 >"$at_check_line_file"
17710 if test -n "$at_traceon"; then
17711 echo 'Not enabling shell tracing (command contains an embedded newline)'
17714 if test -n "$at_trace_this"; then
17718 TEST_TAR_FORMAT=oldgnu
17719 export TEST_TAR_FORMAT
17720 TAR_OPTIONS="-H oldgnu"
17725 mkdir directory/test1
17726 mkdir directory/test2
17728 echo TEST > directory/test1/test.txt
17729 ln directory/test1/test.txt directory/test2/test.txt || exit 77
17731 tar cf archive directory/test1/test.txt directory/test1/test.txt
17737 ) ) >"$at_stdout" 2>"$at_stder1"
17739 grep '^ *+' "$at_stder1" >&2
17740 grep -v '^ *+' "$at_stder1" >"$at_stderr"
17745 TEST_TAR_FORMAT=oldgnu
17746 export TEST_TAR_FORMAT
17747 TAR_OPTIONS="-H oldgnu"
17752 mkdir directory/test1
17753 mkdir directory/test2
17755 echo TEST > directory/test1/test.txt
17756 ln directory/test1/test.txt directory/test2/test.txt || exit 77
17758 tar cf archive directory/test1/test.txt directory/test1/test.txt
17764 ) ) >"$at_stdout" 2>"$at_stderr"
17769 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
17770 echo >>"$at_stdout"; echo "test.txt
17771 " | $at_diff - "$at_stdout" || at_failed=:
17773 77) echo 77 > "$at_status_file"; exit 77;;
17775 *) echo "$at_srcdir/link01.at:36: exit code was $at_status, expected 0"
17778 if $at_failed; then
17781 echo 1 > "$at_status_file"
17787 echo "$at_srcdir/link01.at:36:
17790 TEST_TAR_FORMAT=ustar
17791 export TEST_TAR_FORMAT
17792 TAR_OPTIONS=\"-H ustar\"
17797 mkdir directory/test1
17798 mkdir directory/test2
17800 echo TEST > directory/test1/test.txt
17801 ln directory/test1/test.txt directory/test2/test.txt || exit 77
17803 tar cf archive directory/test1/test.txt directory/test1/test.txt
17810 echo link01.at:36 >"$at_check_line_file"
17813 if test -n "$at_traceon"; then
17814 echo 'Not enabling shell tracing (command contains an embedded newline)'
17817 if test -n "$at_trace_this"; then
17821 TEST_TAR_FORMAT=ustar
17822 export TEST_TAR_FORMAT
17823 TAR_OPTIONS="-H ustar"
17828 mkdir directory/test1
17829 mkdir directory/test2
17831 echo TEST > directory/test1/test.txt
17832 ln directory/test1/test.txt directory/test2/test.txt || exit 77
17834 tar cf archive directory/test1/test.txt directory/test1/test.txt
17840 ) ) >"$at_stdout" 2>"$at_stder1"
17842 grep '^ *+' "$at_stder1" >&2
17843 grep -v '^ *+' "$at_stder1" >"$at_stderr"
17848 TEST_TAR_FORMAT=ustar
17849 export TEST_TAR_FORMAT
17850 TAR_OPTIONS="-H ustar"
17855 mkdir directory/test1
17856 mkdir directory/test2
17858 echo TEST > directory/test1/test.txt
17859 ln directory/test1/test.txt directory/test2/test.txt || exit 77
17861 tar cf archive directory/test1/test.txt directory/test1/test.txt
17867 ) ) >"$at_stdout" 2>"$at_stderr"
17872 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
17873 echo >>"$at_stdout"; echo "test.txt
17874 " | $at_diff - "$at_stdout" || at_failed=:
17876 77) echo 77 > "$at_status_file"; exit 77;;
17878 *) echo "$at_srcdir/link01.at:36: exit code was $at_status, expected 0"
17881 if $at_failed; then
17884 echo 1 > "$at_status_file"
17890 echo "$at_srcdir/link01.at:36:
17893 TEST_TAR_FORMAT=posix
17894 export TEST_TAR_FORMAT
17895 TAR_OPTIONS=\"-H posix\"
17900 mkdir directory/test1
17901 mkdir directory/test2
17903 echo TEST > directory/test1/test.txt
17904 ln directory/test1/test.txt directory/test2/test.txt || exit 77
17906 tar cf archive directory/test1/test.txt directory/test1/test.txt
17913 echo link01.at:36 >"$at_check_line_file"
17916 if test -n "$at_traceon"; then
17917 echo 'Not enabling shell tracing (command contains an embedded newline)'
17920 if test -n "$at_trace_this"; then
17924 TEST_TAR_FORMAT=posix
17925 export TEST_TAR_FORMAT
17926 TAR_OPTIONS="-H posix"
17931 mkdir directory/test1
17932 mkdir directory/test2
17934 echo TEST > directory/test1/test.txt
17935 ln directory/test1/test.txt directory/test2/test.txt || exit 77
17937 tar cf archive directory/test1/test.txt directory/test1/test.txt
17943 ) ) >"$at_stdout" 2>"$at_stder1"
17945 grep '^ *+' "$at_stder1" >&2
17946 grep -v '^ *+' "$at_stder1" >"$at_stderr"
17951 TEST_TAR_FORMAT=posix
17952 export TEST_TAR_FORMAT
17953 TAR_OPTIONS="-H posix"
17958 mkdir directory/test1
17959 mkdir directory/test2
17961 echo TEST > directory/test1/test.txt
17962 ln directory/test1/test.txt directory/test2/test.txt || exit 77
17964 tar cf archive directory/test1/test.txt directory/test1/test.txt
17970 ) ) >"$at_stdout" 2>"$at_stderr"
17975 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
17976 echo >>"$at_stdout"; echo "test.txt
17977 " | $at_diff - "$at_stdout" || at_failed=:
17979 77) echo 77 > "$at_status_file"; exit 77;;
17981 *) echo "$at_srcdir/link01.at:36: exit code was $at_status, expected 0"
17984 if $at_failed; then
17987 echo 1 > "$at_status_file"
17993 echo "$at_srcdir/link01.at:36:
17996 TEST_TAR_FORMAT=gnu
17997 export TEST_TAR_FORMAT
17998 TAR_OPTIONS=\"-H gnu\"
18003 mkdir directory/test1
18004 mkdir directory/test2
18006 echo TEST > directory/test1/test.txt
18007 ln directory/test1/test.txt directory/test2/test.txt || exit 77
18009 tar cf archive directory/test1/test.txt directory/test1/test.txt
18016 echo link01.at:36 >"$at_check_line_file"
18019 if test -n "$at_traceon"; then
18020 echo 'Not enabling shell tracing (command contains an embedded newline)'
18023 if test -n "$at_trace_this"; then
18027 TEST_TAR_FORMAT=gnu
18028 export TEST_TAR_FORMAT
18029 TAR_OPTIONS="-H gnu"
18034 mkdir directory/test1
18035 mkdir directory/test2
18037 echo TEST > directory/test1/test.txt
18038 ln directory/test1/test.txt directory/test2/test.txt || exit 77
18040 tar cf archive directory/test1/test.txt directory/test1/test.txt
18046 ) ) >"$at_stdout" 2>"$at_stder1"
18048 grep '^ *+' "$at_stder1" >&2
18049 grep -v '^ *+' "$at_stder1" >"$at_stderr"
18054 TEST_TAR_FORMAT=gnu
18055 export TEST_TAR_FORMAT
18056 TAR_OPTIONS="-H gnu"
18061 mkdir directory/test1
18062 mkdir directory/test2
18064 echo TEST > directory/test1/test.txt
18065 ln directory/test1/test.txt directory/test2/test.txt || exit 77
18067 tar cf archive directory/test1/test.txt directory/test1/test.txt
18073 ) ) >"$at_stdout" 2>"$at_stderr"
18078 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
18079 echo >>"$at_stdout"; echo "test.txt
18080 " | $at_diff - "$at_stdout" || at_failed=:
18082 77) echo 77 > "$at_status_file"; exit 77;;
18084 *) echo "$at_srcdir/link01.at:36: exit code was $at_status, expected 0"
18087 if $at_failed; then
18090 echo 1 > "$at_status_file"
18099 $at_times_p && times >"$at_times_file"
18100 ) 5>&1 2>&1 | eval $at_tee_pipe
18101 at_status=`cat "$at_status_file"`
18104 39 ) # 39. longv7.at:24: long names in V7 archives
18105 at_setup_line='longv7.at:24'
18106 at_desc="long names in V7 archives"
18107 $at_quiet $ECHO_N " 39: long names in V7 archives $ECHO_C"
18109 test -f $XFAILFILE && at_xfail=yes
18110 echo "# -*- compilation -*-" >> "$at_group_log"
18112 echo "39. longv7.at:24: testing ..."
18123 echo "$at_srcdir/longv7.at:30:
18127 export TEST_TAR_FORMAT
18128 TAR_OPTIONS=\"-H v7\"
18132 mkdir this_is_a_very_long_name_for_a_directory_which_causes_problems
18133 touch this_is_a_very_long_name_for_a_directory_which_causes_problems/this_is_a_very_long_file_name_which_raises_issues.c
18135 tar cf archive this_is_a_very_long_name_for_a_directory_which_causes_problems
18139 echo longv7.at:30 >"$at_check_line_file"
18142 if test -n "$at_traceon"; then
18143 echo 'Not enabling shell tracing (command contains an embedded newline)'
18146 if test -n "$at_trace_this"; then
18151 export TEST_TAR_FORMAT
18152 TAR_OPTIONS="-H v7"
18156 mkdir this_is_a_very_long_name_for_a_directory_which_causes_problems
18157 touch this_is_a_very_long_name_for_a_directory_which_causes_problems/this_is_a_very_long_file_name_which_raises_issues.c
18159 tar cf archive this_is_a_very_long_name_for_a_directory_which_causes_problems
18162 ) ) >"$at_stdout" 2>"$at_stder1"
18164 grep '^ *+' "$at_stder1" >&2
18165 grep -v '^ *+' "$at_stder1" >"$at_stderr"
18171 export TEST_TAR_FORMAT
18172 TAR_OPTIONS="-H v7"
18176 mkdir this_is_a_very_long_name_for_a_directory_which_causes_problems
18177 touch this_is_a_very_long_name_for_a_directory_which_causes_problems/this_is_a_very_long_file_name_which_raises_issues.c
18179 tar cf archive this_is_a_very_long_name_for_a_directory_which_causes_problems
18182 ) ) >"$at_stdout" 2>"$at_stderr"
18187 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
18188 tar: Error exit delayed from previous errors
18189 " | $at_diff - "$at_stderr" || at_failed=:
18190 echo >>"$at_stdout"; echo "separator
18191 this_is_a_very_long_name_for_a_directory_which_causes_problems/
18192 " | $at_diff - "$at_stdout" || at_failed=:
18194 77) echo 77 > "$at_status_file"; exit 77;;
18196 *) echo "$at_srcdir/longv7.at:30: exit code was $at_status, expected 0"
18199 if $at_failed; then
18202 echo 1 > "$at_status_file"
18211 $at_times_p && times >"$at_times_file"
18212 ) 5>&1 2>&1 | eval $at_tee_pipe
18213 at_status=`cat "$at_status_file"`
18216 40 ) # 40. long01.at:28: long file names divisible by block size
18217 at_setup_line='long01.at:28'
18218 at_desc="long file names divisible by block size"
18219 $at_quiet $ECHO_N " 40: long file names divisible by block size $ECHO_C"
18221 test -f $XFAILFILE && at_xfail=yes
18222 echo "# -*- compilation -*-" >> "$at_group_log"
18224 echo "40. long01.at:28: testing ..."
18236 echo "$at_srcdir/long01.at:36:
18239 TEST_TAR_FORMAT=gnu
18240 export TEST_TAR_FORMAT
18241 TAR_OPTIONS=\"-H gnu\"
18246 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
18247 echo test > endfile
18249 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
18251 echo long01.at:36 >"$at_check_line_file"
18254 if test -n "$at_traceon"; then
18255 echo 'Not enabling shell tracing (command contains an embedded newline)'
18258 if test -n "$at_trace_this"; then
18262 TEST_TAR_FORMAT=gnu
18263 export TEST_TAR_FORMAT
18264 TAR_OPTIONS="-H gnu"
18269 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
18270 echo test > endfile
18272 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
18273 tar tf archive) ) >"$at_stdout" 2>"$at_stder1"
18275 grep '^ *+' "$at_stder1" >&2
18276 grep -v '^ *+' "$at_stder1" >"$at_stderr"
18281 TEST_TAR_FORMAT=gnu
18282 export TEST_TAR_FORMAT
18283 TAR_OPTIONS="-H gnu"
18288 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
18289 echo test > endfile
18291 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
18292 tar tf archive) ) >"$at_stdout" 2>"$at_stderr"
18297 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
18298 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
18300 " | $at_diff - "$at_stdout" || at_failed=:
18302 77) echo 77 > "$at_status_file"; exit 77;;
18304 *) echo "$at_srcdir/long01.at:36: exit code was $at_status, expected 0"
18307 if $at_failed; then
18310 echo 1 > "$at_status_file"
18316 echo "$at_srcdir/long01.at:36:
18319 TEST_TAR_FORMAT=oldgnu
18320 export TEST_TAR_FORMAT
18321 TAR_OPTIONS=\"-H oldgnu\"
18326 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
18327 echo test > endfile
18329 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
18331 echo long01.at:36 >"$at_check_line_file"
18334 if test -n "$at_traceon"; then
18335 echo 'Not enabling shell tracing (command contains an embedded newline)'
18338 if test -n "$at_trace_this"; then
18342 TEST_TAR_FORMAT=oldgnu
18343 export TEST_TAR_FORMAT
18344 TAR_OPTIONS="-H oldgnu"
18349 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
18350 echo test > endfile
18352 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
18353 tar tf archive) ) >"$at_stdout" 2>"$at_stder1"
18355 grep '^ *+' "$at_stder1" >&2
18356 grep -v '^ *+' "$at_stder1" >"$at_stderr"
18361 TEST_TAR_FORMAT=oldgnu
18362 export TEST_TAR_FORMAT
18363 TAR_OPTIONS="-H oldgnu"
18368 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
18369 echo test > endfile
18371 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
18372 tar tf archive) ) >"$at_stdout" 2>"$at_stderr"
18377 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
18378 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
18380 " | $at_diff - "$at_stdout" || at_failed=:
18382 77) echo 77 > "$at_status_file"; exit 77;;
18384 *) echo "$at_srcdir/long01.at:36: exit code was $at_status, expected 0"
18387 if $at_failed; then
18390 echo 1 > "$at_status_file"
18399 $at_times_p && times >"$at_times_file"
18400 ) 5>&1 2>&1 | eval $at_tee_pipe
18401 at_status=`cat "$at_status_file"`
18404 41 ) # 41. lustar01.at:21: ustar: unsplittable file name
18405 at_setup_line='lustar01.at:21'
18406 at_desc="ustar: unsplittable file name"
18407 $at_quiet $ECHO_N " 41: ustar: unsplittable file name $ECHO_C"
18409 test -f $XFAILFILE && at_xfail=yes
18410 echo "# -*- compilation -*-" >> "$at_group_log"
18412 echo "41. lustar01.at:21: testing ..."
18422 echo "$at_srcdir/lustar01.at:27:
18425 TEST_TAR_FORMAT=ustar
18426 export TEST_TAR_FORMAT
18427 TAR_OPTIONS=\"-H ustar\"
18431 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
18432 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
18434 echo lustar01.at:27 >"$at_check_line_file"
18437 if test -n "$at_traceon"; then
18438 echo 'Not enabling shell tracing (command contains an embedded newline)'
18441 if test -n "$at_trace_this"; then
18445 TEST_TAR_FORMAT=ustar
18446 export TEST_TAR_FORMAT
18447 TAR_OPTIONS="-H ustar"
18451 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
18452 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
18453 ) ) >"$at_stdout" 2>"$at_stder1"
18455 grep '^ *+' "$at_stder1" >&2
18456 grep -v '^ *+' "$at_stder1" >"$at_stderr"
18461 TEST_TAR_FORMAT=ustar
18462 export TEST_TAR_FORMAT
18463 TAR_OPTIONS="-H ustar"
18467 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
18468 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
18469 ) ) >"$at_stdout" 2>"$at_stderr"
18474 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
18475 tar: Error exit delayed from previous errors
18476 " | $at_diff - "$at_stderr" || at_failed=:
18477 $at_diff "$at_devnull" "$at_stdout" || at_failed=:
18479 77) echo 77 > "$at_status_file"; exit 77;;
18481 *) echo "$at_srcdir/lustar01.at:27: exit code was $at_status, expected 2"
18484 if $at_failed; then
18487 echo 1 > "$at_status_file"
18496 $at_times_p && times >"$at_times_file"
18497 ) 5>&1 2>&1 | eval $at_tee_pipe
18498 at_status=`cat "$at_status_file"`
18501 42 ) # 42. lustar02.at:21: ustar: unsplittable path name
18502 at_setup_line='lustar02.at:21'
18503 at_desc="ustar: unsplittable path name"
18504 $at_quiet $ECHO_N " 42: ustar: unsplittable path name $ECHO_C"
18506 test -f $XFAILFILE && at_xfail=yes
18507 echo "# -*- compilation -*-" >> "$at_group_log"
18509 echo "42. lustar02.at:21: testing ..."
18523 echo "$at_srcdir/lustar02.at:32:
18526 TEST_TAR_FORMAT=ustar
18527 export TEST_TAR_FORMAT
18528 TAR_OPTIONS=\"-H ustar\"
18533 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
18534 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
18536 echo lustar02.at:32 >"$at_check_line_file"
18539 if test -n "$at_traceon"; then
18540 echo 'Not enabling shell tracing (command contains an embedded newline)'
18543 if test -n "$at_trace_this"; then
18547 TEST_TAR_FORMAT=ustar
18548 export TEST_TAR_FORMAT
18549 TAR_OPTIONS="-H ustar"
18554 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
18555 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
18556 ) ) >"$at_stdout" 2>"$at_stder1"
18558 grep '^ *+' "$at_stder1" >&2
18559 grep -v '^ *+' "$at_stder1" >"$at_stderr"
18564 TEST_TAR_FORMAT=ustar
18565 export TEST_TAR_FORMAT
18566 TAR_OPTIONS="-H ustar"
18571 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
18572 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
18573 ) ) >"$at_stdout" 2>"$at_stderr"
18578 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
18579 tar: Error exit delayed from previous errors
18580 " | $at_diff - "$at_stderr" || at_failed=:
18581 $at_diff "$at_devnull" "$at_stdout" || at_failed=:
18583 77) echo 77 > "$at_status_file"; exit 77;;
18585 *) echo "$at_srcdir/lustar02.at:32: exit code was $at_status, expected 2"
18588 if $at_failed; then
18591 echo 1 > "$at_status_file"
18600 $at_times_p && times >"$at_times_file"
18601 ) 5>&1 2>&1 | eval $at_tee_pipe
18602 at_status=`cat "$at_status_file"`
18605 43 ) # 43. lustar03.at:21: ustar: splitting long names
18606 at_setup_line='lustar03.at:21'
18607 at_desc="ustar: splitting long names"
18608 $at_quiet $ECHO_N " 43: ustar: splitting long names $ECHO_C"
18610 test -f $XFAILFILE && at_xfail=yes
18611 echo "# -*- compilation -*-" >> "$at_group_log"
18613 echo "43. lustar03.at:21: testing ..."
18625 echo "$at_srcdir/lustar03.at:29:
18628 TEST_TAR_FORMAT=ustar
18629 export TEST_TAR_FORMAT
18630 TAR_OPTIONS=\"-H ustar\"
18635 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
18636 echo \"Create archive\"
18637 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
18638 echo \"List archive\"
18640 echo lustar03.at:29 >"$at_check_line_file"
18643 if test -n "$at_traceon"; then
18644 echo 'Not enabling shell tracing (command contains an embedded newline)'
18647 if test -n "$at_trace_this"; then
18651 TEST_TAR_FORMAT=ustar
18652 export TEST_TAR_FORMAT
18653 TAR_OPTIONS="-H ustar"
18658 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
18659 echo "Create archive"
18660 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
18661 echo "List archive"
18662 tar tf archive) ) >"$at_stdout" 2>"$at_stder1"
18664 grep '^ *+' "$at_stder1" >&2
18665 grep -v '^ *+' "$at_stder1" >"$at_stderr"
18670 TEST_TAR_FORMAT=ustar
18671 export TEST_TAR_FORMAT
18672 TAR_OPTIONS="-H ustar"
18677 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
18678 echo "Create archive"
18679 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
18680 echo "List archive"
18681 tar tf archive) ) >"$at_stdout" 2>"$at_stderr"
18686 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
18687 echo >>"$at_stdout"; echo "Create archive
18689 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/
18690 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
18691 " | $at_diff - "$at_stdout" || at_failed=:
18693 77) echo 77 > "$at_status_file"; exit 77;;
18695 *) echo "$at_srcdir/lustar03.at:29: exit code was $at_status, expected 0"
18698 if $at_failed; then
18701 echo 1 > "$at_status_file"
18710 $at_times_p && times >"$at_times_file"
18711 ) 5>&1 2>&1 | eval $at_tee_pipe
18712 at_status=`cat "$at_status_file"`
18715 44 ) # 44. multiv01.at:23: multivolume dumps from pipes
18716 at_setup_line='multiv01.at:23'
18717 at_desc="multivolume dumps from pipes"
18718 $at_quiet $ECHO_N " 44: multivolume dumps from pipes $ECHO_C"
18720 test -f $XFAILFILE && at_xfail=yes
18721 echo "# -*- compilation -*-" >> "$at_group_log"
18723 echo "44. multiv01.at:23: testing ..."
18728 # Fixme: should be configurable
18729 # TRUSS=truss -o /tmp/tr
18735 echo "$at_srcdir/multiv01.at:30:
18738 TEST_TAR_FORMAT=gnu
18739 export TEST_TAR_FORMAT
18740 TAR_OPTIONS=\"-H gnu\"
18745 genfile --length 7168 --file file1
18747 for block in \" 1\" \" 2\" \" 3\" \" 4\" \" 5\" \" 6\" \" 7\" \" 8\" \\
18748 \" 9\" \"10\" \"11\" \"12\" \"13\" \"14\" \"15\" \"16\" ; do \\
18749 echo \"file2 block \${block} bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla\"
18750 for count in 2 3 4 5 6 7 8 ; do
18751 echo \"bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla\"
18755 if test \$TEST_TAR_FORMAT = pax; then
18761 tar -c --multi-volume --tape-length=\$TAPE_LENGTH \\
18762 --listed-incremental=t.snar \\
18763 -f t1-pipe.tar -f t2-pipe.tar ./file1 ./file2 || exit 1
18765 mkdir extract-dir-pipe
18766 dd bs=4096 count=\$TAPE_LENGTH if=t2-pipe.tar 2>/dev/null |
18767 PATH=\$PATH \${TRUSS} tar -f t1-pipe.tar -f - \\
18768 -C extract-dir-pipe -x --multi-volume \\
18769 --tape-length=\$TAPE_LENGTH --read-full-records || exit 1
18771 cmp file1 extract-dir-pipe/file1
18772 cmp file2 extract-dir-pipe/file2
18774 echo multiv01.at:30 >"$at_check_line_file"
18777 if test -n "$at_traceon"; then
18778 echo 'Not enabling shell tracing (command contains a ${...} parameter expansion)'
18781 if test -n "$at_trace_this"; then
18785 TEST_TAR_FORMAT=gnu
18786 export TEST_TAR_FORMAT
18787 TAR_OPTIONS="-H gnu"
18792 genfile --length 7168 --file file1
18794 for block in " 1" " 2" " 3" " 4" " 5" " 6" " 7" " 8" \
18795 " 9" "10" "11" "12" "13" "14" "15" "16" ; do \
18796 echo "file2 block ${block} bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla"
18797 for count in 2 3 4 5 6 7 8 ; do
18798 echo "bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla"
18802 if test $TEST_TAR_FORMAT = pax; then
18808 tar -c --multi-volume --tape-length=$TAPE_LENGTH \
18809 --listed-incremental=t.snar \
18810 -f t1-pipe.tar -f t2-pipe.tar ./file1 ./file2 || exit 1
18812 mkdir extract-dir-pipe
18813 dd bs=4096 count=$TAPE_LENGTH if=t2-pipe.tar 2>/dev/null |
18814 PATH=$PATH ${TRUSS} tar -f t1-pipe.tar -f - \
18815 -C extract-dir-pipe -x --multi-volume \
18816 --tape-length=$TAPE_LENGTH --read-full-records || exit 1
18818 cmp file1 extract-dir-pipe/file1
18819 cmp file2 extract-dir-pipe/file2
18820 ) ) >"$at_stdout" 2>"$at_stder1"
18822 grep '^ *+' "$at_stder1" >&2
18823 grep -v '^ *+' "$at_stder1" >"$at_stderr"
18828 TEST_TAR_FORMAT=gnu
18829 export TEST_TAR_FORMAT
18830 TAR_OPTIONS="-H gnu"
18835 genfile --length 7168 --file file1
18837 for block in " 1" " 2" " 3" " 4" " 5" " 6" " 7" " 8" \
18838 " 9" "10" "11" "12" "13" "14" "15" "16" ; do \
18839 echo "file2 block ${block} bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla"
18840 for count in 2 3 4 5 6 7 8 ; do
18841 echo "bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla"
18845 if test $TEST_TAR_FORMAT = pax; then
18851 tar -c --multi-volume --tape-length=$TAPE_LENGTH \
18852 --listed-incremental=t.snar \
18853 -f t1-pipe.tar -f t2-pipe.tar ./file1 ./file2 || exit 1
18855 mkdir extract-dir-pipe
18856 dd bs=4096 count=$TAPE_LENGTH if=t2-pipe.tar 2>/dev/null |
18857 PATH=$PATH ${TRUSS} tar -f t1-pipe.tar -f - \
18858 -C extract-dir-pipe -x --multi-volume \
18859 --tape-length=$TAPE_LENGTH --read-full-records || exit 1
18861 cmp file1 extract-dir-pipe/file1
18862 cmp file2 extract-dir-pipe/file2
18863 ) ) >"$at_stdout" 2>"$at_stderr"
18868 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
18869 $at_diff "$at_devnull" "$at_stdout" || at_failed=:
18871 77) echo 77 > "$at_status_file"; exit 77;;
18873 *) echo "$at_srcdir/multiv01.at:30: exit code was $at_status, expected 0"
18876 if $at_failed; then
18879 echo 1 > "$at_status_file"
18885 echo "$at_srcdir/multiv01.at:30:
18888 TEST_TAR_FORMAT=oldgnu
18889 export TEST_TAR_FORMAT
18890 TAR_OPTIONS=\"-H oldgnu\"
18895 genfile --length 7168 --file file1
18897 for block in \" 1\" \" 2\" \" 3\" \" 4\" \" 5\" \" 6\" \" 7\" \" 8\" \\
18898 \" 9\" \"10\" \"11\" \"12\" \"13\" \"14\" \"15\" \"16\" ; do \\
18899 echo \"file2 block \${block} bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla\"
18900 for count in 2 3 4 5 6 7 8 ; do
18901 echo \"bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla\"
18905 if test \$TEST_TAR_FORMAT = pax; then
18911 tar -c --multi-volume --tape-length=\$TAPE_LENGTH \\
18912 --listed-incremental=t.snar \\
18913 -f t1-pipe.tar -f t2-pipe.tar ./file1 ./file2 || exit 1
18915 mkdir extract-dir-pipe
18916 dd bs=4096 count=\$TAPE_LENGTH if=t2-pipe.tar 2>/dev/null |
18917 PATH=\$PATH \${TRUSS} tar -f t1-pipe.tar -f - \\
18918 -C extract-dir-pipe -x --multi-volume \\
18919 --tape-length=\$TAPE_LENGTH --read-full-records || exit 1
18921 cmp file1 extract-dir-pipe/file1
18922 cmp file2 extract-dir-pipe/file2
18924 echo multiv01.at:30 >"$at_check_line_file"
18927 if test -n "$at_traceon"; then
18928 echo 'Not enabling shell tracing (command contains a ${...} parameter expansion)'
18931 if test -n "$at_trace_this"; then
18935 TEST_TAR_FORMAT=oldgnu
18936 export TEST_TAR_FORMAT
18937 TAR_OPTIONS="-H oldgnu"
18942 genfile --length 7168 --file file1
18944 for block in " 1" " 2" " 3" " 4" " 5" " 6" " 7" " 8" \
18945 " 9" "10" "11" "12" "13" "14" "15" "16" ; do \
18946 echo "file2 block ${block} bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla"
18947 for count in 2 3 4 5 6 7 8 ; do
18948 echo "bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla"
18952 if test $TEST_TAR_FORMAT = pax; then
18958 tar -c --multi-volume --tape-length=$TAPE_LENGTH \
18959 --listed-incremental=t.snar \
18960 -f t1-pipe.tar -f t2-pipe.tar ./file1 ./file2 || exit 1
18962 mkdir extract-dir-pipe
18963 dd bs=4096 count=$TAPE_LENGTH if=t2-pipe.tar 2>/dev/null |
18964 PATH=$PATH ${TRUSS} tar -f t1-pipe.tar -f - \
18965 -C extract-dir-pipe -x --multi-volume \
18966 --tape-length=$TAPE_LENGTH --read-full-records || exit 1
18968 cmp file1 extract-dir-pipe/file1
18969 cmp file2 extract-dir-pipe/file2
18970 ) ) >"$at_stdout" 2>"$at_stder1"
18972 grep '^ *+' "$at_stder1" >&2
18973 grep -v '^ *+' "$at_stder1" >"$at_stderr"
18978 TEST_TAR_FORMAT=oldgnu
18979 export TEST_TAR_FORMAT
18980 TAR_OPTIONS="-H oldgnu"
18985 genfile --length 7168 --file file1
18987 for block in " 1" " 2" " 3" " 4" " 5" " 6" " 7" " 8" \
18988 " 9" "10" "11" "12" "13" "14" "15" "16" ; do \
18989 echo "file2 block ${block} bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla"
18990 for count in 2 3 4 5 6 7 8 ; do
18991 echo "bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla"
18995 if test $TEST_TAR_FORMAT = pax; then
19001 tar -c --multi-volume --tape-length=$TAPE_LENGTH \
19002 --listed-incremental=t.snar \
19003 -f t1-pipe.tar -f t2-pipe.tar ./file1 ./file2 || exit 1
19005 mkdir extract-dir-pipe
19006 dd bs=4096 count=$TAPE_LENGTH if=t2-pipe.tar 2>/dev/null |
19007 PATH=$PATH ${TRUSS} tar -f t1-pipe.tar -f - \
19008 -C extract-dir-pipe -x --multi-volume \
19009 --tape-length=$TAPE_LENGTH --read-full-records || exit 1
19011 cmp file1 extract-dir-pipe/file1
19012 cmp file2 extract-dir-pipe/file2
19013 ) ) >"$at_stdout" 2>"$at_stderr"
19018 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
19019 $at_diff "$at_devnull" "$at_stdout" || at_failed=:
19021 77) echo 77 > "$at_status_file"; exit 77;;
19023 *) echo "$at_srcdir/multiv01.at:30: exit code was $at_status, expected 0"
19026 if $at_failed; then
19029 echo 1 > "$at_status_file"
19035 echo "$at_srcdir/multiv01.at:30:
19038 TEST_TAR_FORMAT=pax
19039 export TEST_TAR_FORMAT
19040 TAR_OPTIONS=\"-H pax\"
19045 genfile --length 7168 --file file1
19047 for block in \" 1\" \" 2\" \" 3\" \" 4\" \" 5\" \" 6\" \" 7\" \" 8\" \\
19048 \" 9\" \"10\" \"11\" \"12\" \"13\" \"14\" \"15\" \"16\" ; do \\
19049 echo \"file2 block \${block} bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla\"
19050 for count in 2 3 4 5 6 7 8 ; do
19051 echo \"bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla\"
19055 if test \$TEST_TAR_FORMAT = pax; then
19061 tar -c --multi-volume --tape-length=\$TAPE_LENGTH \\
19062 --listed-incremental=t.snar \\
19063 -f t1-pipe.tar -f t2-pipe.tar ./file1 ./file2 || exit 1
19065 mkdir extract-dir-pipe
19066 dd bs=4096 count=\$TAPE_LENGTH if=t2-pipe.tar 2>/dev/null |
19067 PATH=\$PATH \${TRUSS} tar -f t1-pipe.tar -f - \\
19068 -C extract-dir-pipe -x --multi-volume \\
19069 --tape-length=\$TAPE_LENGTH --read-full-records || exit 1
19071 cmp file1 extract-dir-pipe/file1
19072 cmp file2 extract-dir-pipe/file2
19074 echo multiv01.at:30 >"$at_check_line_file"
19077 if test -n "$at_traceon"; then
19078 echo 'Not enabling shell tracing (command contains a ${...} parameter expansion)'
19081 if test -n "$at_trace_this"; then
19085 TEST_TAR_FORMAT=pax
19086 export TEST_TAR_FORMAT
19087 TAR_OPTIONS="-H pax"
19092 genfile --length 7168 --file file1
19094 for block in " 1" " 2" " 3" " 4" " 5" " 6" " 7" " 8" \
19095 " 9" "10" "11" "12" "13" "14" "15" "16" ; do \
19096 echo "file2 block ${block} bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla"
19097 for count in 2 3 4 5 6 7 8 ; do
19098 echo "bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla"
19102 if test $TEST_TAR_FORMAT = pax; then
19108 tar -c --multi-volume --tape-length=$TAPE_LENGTH \
19109 --listed-incremental=t.snar \
19110 -f t1-pipe.tar -f t2-pipe.tar ./file1 ./file2 || exit 1
19112 mkdir extract-dir-pipe
19113 dd bs=4096 count=$TAPE_LENGTH if=t2-pipe.tar 2>/dev/null |
19114 PATH=$PATH ${TRUSS} tar -f t1-pipe.tar -f - \
19115 -C extract-dir-pipe -x --multi-volume \
19116 --tape-length=$TAPE_LENGTH --read-full-records || exit 1
19118 cmp file1 extract-dir-pipe/file1
19119 cmp file2 extract-dir-pipe/file2
19120 ) ) >"$at_stdout" 2>"$at_stder1"
19122 grep '^ *+' "$at_stder1" >&2
19123 grep -v '^ *+' "$at_stder1" >"$at_stderr"
19128 TEST_TAR_FORMAT=pax
19129 export TEST_TAR_FORMAT
19130 TAR_OPTIONS="-H pax"
19135 genfile --length 7168 --file file1
19137 for block in " 1" " 2" " 3" " 4" " 5" " 6" " 7" " 8" \
19138 " 9" "10" "11" "12" "13" "14" "15" "16" ; do \
19139 echo "file2 block ${block} bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla"
19140 for count in 2 3 4 5 6 7 8 ; do
19141 echo "bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla"
19145 if test $TEST_TAR_FORMAT = pax; then
19151 tar -c --multi-volume --tape-length=$TAPE_LENGTH \
19152 --listed-incremental=t.snar \
19153 -f t1-pipe.tar -f t2-pipe.tar ./file1 ./file2 || exit 1
19155 mkdir extract-dir-pipe
19156 dd bs=4096 count=$TAPE_LENGTH if=t2-pipe.tar 2>/dev/null |
19157 PATH=$PATH ${TRUSS} tar -f t1-pipe.tar -f - \
19158 -C extract-dir-pipe -x --multi-volume \
19159 --tape-length=$TAPE_LENGTH --read-full-records || exit 1
19161 cmp file1 extract-dir-pipe/file1
19162 cmp file2 extract-dir-pipe/file2
19163 ) ) >"$at_stdout" 2>"$at_stderr"
19168 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
19169 $at_diff "$at_devnull" "$at_stdout" || at_failed=:
19171 77) echo 77 > "$at_status_file"; exit 77;;
19173 *) echo "$at_srcdir/multiv01.at:30: exit code was $at_status, expected 0"
19176 if $at_failed; then
19179 echo 1 > "$at_status_file"
19188 $at_times_p && times >"$at_times_file"
19189 ) 5>&1 2>&1 | eval $at_tee_pipe
19190 at_status=`cat "$at_status_file"`
19193 45 ) # 45. multiv02.at:28: skipping a straddling member
19194 at_setup_line='multiv02.at:28'
19195 at_desc="skipping a straddling member"
19196 $at_quiet $ECHO_N " 45: skipping a straddling member $ECHO_C"
19198 test -f $XFAILFILE && at_xfail=yes
19199 echo "# -*- compilation -*-" >> "$at_group_log"
19201 echo "45. multiv02.at:28: testing ..."
19209 echo "$at_srcdir/multiv02.at:31:
19212 TEST_TAR_FORMAT=gnu
19213 export TEST_TAR_FORMAT
19214 TAR_OPTIONS=\"-H gnu\"
19218 genfile --length 10240 --file en
19219 genfile --length 20000 --file to
19220 genfile --length 20000 --file tre
19221 genfile --length 10240 --file fire
19225 tar -c -f A.tar -f B.tar -f C.tar -M -L 30 en to tre fire || exit 1
19227 tar -v -x -f A.tar -f B.tar -f C.tar -M en || exit 1
19229 echo multiv02.at:31 >"$at_check_line_file"
19232 if test -n "$at_traceon"; then
19233 echo 'Not enabling shell tracing (command contains an embedded newline)'
19236 if test -n "$at_trace_this"; then
19240 TEST_TAR_FORMAT=gnu
19241 export TEST_TAR_FORMAT
19242 TAR_OPTIONS="-H gnu"
19246 genfile --length 10240 --file en
19247 genfile --length 20000 --file to
19248 genfile --length 20000 --file tre
19249 genfile --length 10240 --file fire
19253 tar -c -f A.tar -f B.tar -f C.tar -M -L 30 en to tre fire || exit 1
19255 tar -v -x -f A.tar -f B.tar -f C.tar -M en || exit 1
19256 ) ) >"$at_stdout" 2>"$at_stder1"
19258 grep '^ *+' "$at_stder1" >&2
19259 grep -v '^ *+' "$at_stder1" >"$at_stderr"
19264 TEST_TAR_FORMAT=gnu
19265 export TEST_TAR_FORMAT
19266 TAR_OPTIONS="-H gnu"
19270 genfile --length 10240 --file en
19271 genfile --length 20000 --file to
19272 genfile --length 20000 --file tre
19273 genfile --length 10240 --file fire
19277 tar -c -f A.tar -f B.tar -f C.tar -M -L 30 en to tre fire || exit 1
19279 tar -v -x -f A.tar -f B.tar -f C.tar -M en || exit 1
19280 ) ) >"$at_stdout" 2>"$at_stderr"
19285 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
19286 echo >>"$at_stdout"; echo "separator
19288 " | $at_diff - "$at_stdout" || at_failed=:
19290 77) echo 77 > "$at_status_file"; exit 77;;
19292 *) echo "$at_srcdir/multiv02.at:31: exit code was $at_status, expected 0"
19295 if $at_failed; then
19298 echo 1 > "$at_status_file"
19304 echo "$at_srcdir/multiv02.at:31:
19307 TEST_TAR_FORMAT=oldgnu
19308 export TEST_TAR_FORMAT
19309 TAR_OPTIONS=\"-H oldgnu\"
19313 genfile --length 10240 --file en
19314 genfile --length 20000 --file to
19315 genfile --length 20000 --file tre
19316 genfile --length 10240 --file fire
19320 tar -c -f A.tar -f B.tar -f C.tar -M -L 30 en to tre fire || exit 1
19322 tar -v -x -f A.tar -f B.tar -f C.tar -M en || exit 1
19324 echo multiv02.at:31 >"$at_check_line_file"
19327 if test -n "$at_traceon"; then
19328 echo 'Not enabling shell tracing (command contains an embedded newline)'
19331 if test -n "$at_trace_this"; then
19335 TEST_TAR_FORMAT=oldgnu
19336 export TEST_TAR_FORMAT
19337 TAR_OPTIONS="-H oldgnu"
19341 genfile --length 10240 --file en
19342 genfile --length 20000 --file to
19343 genfile --length 20000 --file tre
19344 genfile --length 10240 --file fire
19348 tar -c -f A.tar -f B.tar -f C.tar -M -L 30 en to tre fire || exit 1
19350 tar -v -x -f A.tar -f B.tar -f C.tar -M en || exit 1
19351 ) ) >"$at_stdout" 2>"$at_stder1"
19353 grep '^ *+' "$at_stder1" >&2
19354 grep -v '^ *+' "$at_stder1" >"$at_stderr"
19359 TEST_TAR_FORMAT=oldgnu
19360 export TEST_TAR_FORMAT
19361 TAR_OPTIONS="-H oldgnu"
19365 genfile --length 10240 --file en
19366 genfile --length 20000 --file to
19367 genfile --length 20000 --file tre
19368 genfile --length 10240 --file fire
19372 tar -c -f A.tar -f B.tar -f C.tar -M -L 30 en to tre fire || exit 1
19374 tar -v -x -f A.tar -f B.tar -f C.tar -M en || exit 1
19375 ) ) >"$at_stdout" 2>"$at_stderr"
19380 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
19381 echo >>"$at_stdout"; echo "separator
19383 " | $at_diff - "$at_stdout" || at_failed=:
19385 77) echo 77 > "$at_status_file"; exit 77;;
19387 *) echo "$at_srcdir/multiv02.at:31: exit code was $at_status, expected 0"
19390 if $at_failed; then
19393 echo 1 > "$at_status_file"
19399 echo "$at_srcdir/multiv02.at:31:
19402 TEST_TAR_FORMAT=pax
19403 export TEST_TAR_FORMAT
19404 TAR_OPTIONS=\"-H pax\"
19408 genfile --length 10240 --file en
19409 genfile --length 20000 --file to
19410 genfile --length 20000 --file tre
19411 genfile --length 10240 --file fire
19415 tar -c -f A.tar -f B.tar -f C.tar -M -L 30 en to tre fire || exit 1
19417 tar -v -x -f A.tar -f B.tar -f C.tar -M en || exit 1
19419 echo multiv02.at:31 >"$at_check_line_file"
19422 if test -n "$at_traceon"; then
19423 echo 'Not enabling shell tracing (command contains an embedded newline)'
19426 if test -n "$at_trace_this"; then
19430 TEST_TAR_FORMAT=pax
19431 export TEST_TAR_FORMAT
19432 TAR_OPTIONS="-H pax"
19436 genfile --length 10240 --file en
19437 genfile --length 20000 --file to
19438 genfile --length 20000 --file tre
19439 genfile --length 10240 --file fire
19443 tar -c -f A.tar -f B.tar -f C.tar -M -L 30 en to tre fire || exit 1
19445 tar -v -x -f A.tar -f B.tar -f C.tar -M en || exit 1
19446 ) ) >"$at_stdout" 2>"$at_stder1"
19448 grep '^ *+' "$at_stder1" >&2
19449 grep -v '^ *+' "$at_stder1" >"$at_stderr"
19454 TEST_TAR_FORMAT=pax
19455 export TEST_TAR_FORMAT
19456 TAR_OPTIONS="-H pax"
19460 genfile --length 10240 --file en
19461 genfile --length 20000 --file to
19462 genfile --length 20000 --file tre
19463 genfile --length 10240 --file fire
19467 tar -c -f A.tar -f B.tar -f C.tar -M -L 30 en to tre fire || exit 1
19469 tar -v -x -f A.tar -f B.tar -f C.tar -M en || exit 1
19470 ) ) >"$at_stdout" 2>"$at_stderr"
19475 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
19476 echo >>"$at_stdout"; echo "separator
19478 " | $at_diff - "$at_stdout" || at_failed=:
19480 77) echo 77 > "$at_status_file"; exit 77;;
19482 *) echo "$at_srcdir/multiv02.at:31: exit code was $at_status, expected 0"
19485 if $at_failed; then
19488 echo 1 > "$at_status_file"
19497 $at_times_p && times >"$at_times_file"
19498 ) 5>&1 2>&1 | eval $at_tee_pipe
19499 at_status=`cat "$at_status_file"`
19502 46 ) # 46. multiv03.at:30: MV archive & long filenames
19503 at_setup_line='multiv03.at:30'
19504 at_desc="MV archive & long filenames"
19505 $at_quiet $ECHO_N " 46: MV archive & long filenames $ECHO_C"
19507 test -f $XFAILFILE && at_xfail=yes
19508 echo "# -*- compilation -*-" >> "$at_group_log"
19510 echo "46. multiv03.at:30: testing ..."
19518 echo "$at_srcdir/multiv03.at:33:
19521 TEST_TAR_FORMAT=gnu
19522 export TEST_TAR_FORMAT
19523 TAR_OPTIONS=\"-H gnu\"
19527 AFILE=\`awk 'BEGIN { for (i = 0; i < 100; i++) printf \"a\"; exit; }'\`
19528 BFILE=\`awk 'BEGIN { for (i = 0; i < 101; i++) printf \"b\"; exit; }'\`
19530 cat > ../experr <<EOF
19531 tar: \$BFILE: file name too long to be stored in a GNU multivolume header, truncated
19532 tar: \\\`\$BFILE' is possibly continued on this volume: header contains truncated name
19535 cat > ../expout <<EOF
19541 genfile --length 15360 --file \$AFILE
19545 tar -M -L 10 -c -f arch.1 -f arch.2 \$AFILE || exit 1
19546 tar -tM -f arch.1 -f arch.2 || exit 1
19550 genfile --length 15360 --file \$BFILE
19551 tar -M -L 10 -c -f arch.1 -f arch.2 \$BFILE || exit 1
19555 tar -M -x -f arch.1 -f arch.2 || exit 1
19558 echo multiv03.at:33 >"$at_check_line_file"
19561 if test -n "$at_traceon"; then
19562 echo 'Not enabling shell tracing (command contains a `...` command substitution)'
19565 if test -n "$at_trace_this"; then
19569 TEST_TAR_FORMAT=gnu
19570 export TEST_TAR_FORMAT
19571 TAR_OPTIONS="-H gnu"
19575 AFILE=`awk 'BEGIN { for (i = 0; i < 100; i++) printf "a"; exit; }'`
19576 BFILE=`awk 'BEGIN { for (i = 0; i < 101; i++) printf "b"; exit; }'`
19578 cat > ../experr <<EOF
19579 tar: $BFILE: file name too long to be stored in a GNU multivolume header, truncated
19580 tar: \`$BFILE' is possibly continued on this volume: header contains truncated name
19583 cat > ../expout <<EOF
19589 genfile --length 15360 --file $AFILE
19593 tar -M -L 10 -c -f arch.1 -f arch.2 $AFILE || exit 1
19594 tar -tM -f arch.1 -f arch.2 || exit 1
19598 genfile --length 15360 --file $BFILE
19599 tar -M -L 10 -c -f arch.1 -f arch.2 $BFILE || exit 1
19603 tar -M -x -f arch.1 -f arch.2 || exit 1
19605 ) ) >"$at_stdout" 2>"$at_stder1"
19607 grep '^ *+' "$at_stder1" >&2
19608 grep -v '^ *+' "$at_stder1" >"$at_stderr"
19613 TEST_TAR_FORMAT=gnu
19614 export TEST_TAR_FORMAT
19615 TAR_OPTIONS="-H gnu"
19619 AFILE=`awk 'BEGIN { for (i = 0; i < 100; i++) printf "a"; exit; }'`
19620 BFILE=`awk 'BEGIN { for (i = 0; i < 101; i++) printf "b"; exit; }'`
19622 cat > ../experr <<EOF
19623 tar: $BFILE: file name too long to be stored in a GNU multivolume header, truncated
19624 tar: \`$BFILE' is possibly continued on this volume: header contains truncated name
19627 cat > ../expout <<EOF
19633 genfile --length 15360 --file $AFILE
19637 tar -M -L 10 -c -f arch.1 -f arch.2 $AFILE || exit 1
19638 tar -tM -f arch.1 -f arch.2 || exit 1
19642 genfile --length 15360 --file $BFILE
19643 tar -M -L 10 -c -f arch.1 -f arch.2 $BFILE || exit 1
19647 tar -M -x -f arch.1 -f arch.2 || exit 1
19649 ) ) >"$at_stdout" 2>"$at_stderr"
19654 $at_diff experr "$at_stderr" || at_failed=:
19655 $at_diff expout "$at_stdout" || at_failed=:
19657 77) echo 77 > "$at_status_file"; exit 77;;
19659 *) echo "$at_srcdir/multiv03.at:33: exit code was $at_status, expected 0"
19662 if $at_failed; then
19665 echo 1 > "$at_status_file"
19671 echo "$at_srcdir/multiv03.at:33:
19674 TEST_TAR_FORMAT=oldgnu
19675 export TEST_TAR_FORMAT
19676 TAR_OPTIONS=\"-H oldgnu\"
19680 AFILE=\`awk 'BEGIN { for (i = 0; i < 100; i++) printf \"a\"; exit; }'\`
19681 BFILE=\`awk 'BEGIN { for (i = 0; i < 101; i++) printf \"b\"; exit; }'\`
19683 cat > ../experr <<EOF
19684 tar: \$BFILE: file name too long to be stored in a GNU multivolume header, truncated
19685 tar: \\\`\$BFILE' is possibly continued on this volume: header contains truncated name
19688 cat > ../expout <<EOF
19694 genfile --length 15360 --file \$AFILE
19698 tar -M -L 10 -c -f arch.1 -f arch.2 \$AFILE || exit 1
19699 tar -tM -f arch.1 -f arch.2 || exit 1
19703 genfile --length 15360 --file \$BFILE
19704 tar -M -L 10 -c -f arch.1 -f arch.2 \$BFILE || exit 1
19708 tar -M -x -f arch.1 -f arch.2 || exit 1
19711 echo multiv03.at:33 >"$at_check_line_file"
19714 if test -n "$at_traceon"; then
19715 echo 'Not enabling shell tracing (command contains a `...` command substitution)'
19718 if test -n "$at_trace_this"; then
19722 TEST_TAR_FORMAT=oldgnu
19723 export TEST_TAR_FORMAT
19724 TAR_OPTIONS="-H oldgnu"
19728 AFILE=`awk 'BEGIN { for (i = 0; i < 100; i++) printf "a"; exit; }'`
19729 BFILE=`awk 'BEGIN { for (i = 0; i < 101; i++) printf "b"; exit; }'`
19731 cat > ../experr <<EOF
19732 tar: $BFILE: file name too long to be stored in a GNU multivolume header, truncated
19733 tar: \`$BFILE' is possibly continued on this volume: header contains truncated name
19736 cat > ../expout <<EOF
19742 genfile --length 15360 --file $AFILE
19746 tar -M -L 10 -c -f arch.1 -f arch.2 $AFILE || exit 1
19747 tar -tM -f arch.1 -f arch.2 || exit 1
19751 genfile --length 15360 --file $BFILE
19752 tar -M -L 10 -c -f arch.1 -f arch.2 $BFILE || exit 1
19756 tar -M -x -f arch.1 -f arch.2 || exit 1
19758 ) ) >"$at_stdout" 2>"$at_stder1"
19760 grep '^ *+' "$at_stder1" >&2
19761 grep -v '^ *+' "$at_stder1" >"$at_stderr"
19766 TEST_TAR_FORMAT=oldgnu
19767 export TEST_TAR_FORMAT
19768 TAR_OPTIONS="-H oldgnu"
19772 AFILE=`awk 'BEGIN { for (i = 0; i < 100; i++) printf "a"; exit; }'`
19773 BFILE=`awk 'BEGIN { for (i = 0; i < 101; i++) printf "b"; exit; }'`
19775 cat > ../experr <<EOF
19776 tar: $BFILE: file name too long to be stored in a GNU multivolume header, truncated
19777 tar: \`$BFILE' is possibly continued on this volume: header contains truncated name
19780 cat > ../expout <<EOF
19786 genfile --length 15360 --file $AFILE
19790 tar -M -L 10 -c -f arch.1 -f arch.2 $AFILE || exit 1
19791 tar -tM -f arch.1 -f arch.2 || exit 1
19795 genfile --length 15360 --file $BFILE
19796 tar -M -L 10 -c -f arch.1 -f arch.2 $BFILE || exit 1
19800 tar -M -x -f arch.1 -f arch.2 || exit 1
19802 ) ) >"$at_stdout" 2>"$at_stderr"
19807 $at_diff experr "$at_stderr" || at_failed=:
19808 $at_diff expout "$at_stdout" || at_failed=:
19810 77) echo 77 > "$at_status_file"; exit 77;;
19812 *) echo "$at_srcdir/multiv03.at:33: exit code was $at_status, expected 0"
19815 if $at_failed; then
19818 echo 1 > "$at_status_file"
19827 $at_times_p && times >"$at_times_file"
19828 ) 5>&1 2>&1 | eval $at_tee_pipe
19829 at_status=`cat "$at_status_file"`
19832 47 ) # 47. multiv04.at:36: split directory members in a MV archive
19833 at_setup_line='multiv04.at:36'
19834 at_desc="split directory members in a MV archive"
19835 $at_quiet $ECHO_N " 47: split directory members in a MV archive $ECHO_C"
19837 test -f $XFAILFILE && at_xfail=yes
19838 echo "# -*- compilation -*-" >> "$at_group_log"
19840 echo "47. multiv04.at:36: testing ..."
19848 echo "$at_srcdir/multiv04.at:39:
19851 TEST_TAR_FORMAT=gnu
19852 export TEST_TAR_FORMAT
19853 TAR_OPTIONS=\"-H gnu\"
19859 awk 'BEGIN { for (i = 0; i < 1024; i++) printf(\"directory/%014x\\n\", i); }' </dev/null | genfile --files-from -
19865 tar --listed-incremental=list -c -f archive.a directory
19869 tar --listed-incremental=list -c --record-size 1024 -L 16 -f arc.1 -f arc.2 -v directory
19873 tar -MRt -f arc.1 -f arc.2)"
19874 echo multiv04.at:39 >"$at_check_line_file"
19877 if test -n "$at_traceon"; then
19878 echo 'Not enabling shell tracing (command contains an embedded newline)'
19881 if test -n "$at_trace_this"; then
19885 TEST_TAR_FORMAT=gnu
19886 export TEST_TAR_FORMAT
19887 TAR_OPTIONS="-H gnu"
19893 awk 'BEGIN { for (i = 0; i < 1024; i++) printf("directory/%014x\n", i); }' </dev/null | genfile --files-from -
19899 tar --listed-incremental=list -c -f archive.a directory
19903 tar --listed-incremental=list -c --record-size 1024 -L 16 -f arc.1 -f arc.2 -v directory
19907 tar -MRt -f arc.1 -f arc.2) ) >"$at_stdout" 2>"$at_stder1"
19909 grep '^ *+' "$at_stder1" >&2
19910 grep -v '^ *+' "$at_stder1" >"$at_stderr"
19915 TEST_TAR_FORMAT=gnu
19916 export TEST_TAR_FORMAT
19917 TAR_OPTIONS="-H gnu"
19923 awk 'BEGIN { for (i = 0; i < 1024; i++) printf("directory/%014x\n", i); }' </dev/null | genfile --files-from -
19929 tar --listed-incremental=list -c -f archive.a directory
19933 tar --listed-incremental=list -c --record-size 1024 -L 16 -f arc.1 -f arc.2 -v directory
19937 tar -MRt -f arc.1 -f arc.2) ) >"$at_stdout" 2>"$at_stderr"
19942 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
19943 echo >>"$at_stdout"; echo "directory/
19945 block 0: directory/
19946 block 35: ** Block of NULs **
19947 " | $at_diff - "$at_stdout" || at_failed=:
19949 77) echo 77 > "$at_status_file"; exit 77;;
19951 *) echo "$at_srcdir/multiv04.at:39: exit code was $at_status, expected 0"
19954 if $at_failed; then
19957 echo 1 > "$at_status_file"
19963 echo "$at_srcdir/multiv04.at:39:
19966 TEST_TAR_FORMAT=oldgnu
19967 export TEST_TAR_FORMAT
19968 TAR_OPTIONS=\"-H oldgnu\"
19974 awk 'BEGIN { for (i = 0; i < 1024; i++) printf(\"directory/%014x\\n\", i); }' </dev/null | genfile --files-from -
19980 tar --listed-incremental=list -c -f archive.a directory
19984 tar --listed-incremental=list -c --record-size 1024 -L 16 -f arc.1 -f arc.2 -v directory
19988 tar -MRt -f arc.1 -f arc.2)"
19989 echo multiv04.at:39 >"$at_check_line_file"
19992 if test -n "$at_traceon"; then
19993 echo 'Not enabling shell tracing (command contains an embedded newline)'
19996 if test -n "$at_trace_this"; then
20000 TEST_TAR_FORMAT=oldgnu
20001 export TEST_TAR_FORMAT
20002 TAR_OPTIONS="-H oldgnu"
20008 awk 'BEGIN { for (i = 0; i < 1024; i++) printf("directory/%014x\n", i); }' </dev/null | genfile --files-from -
20014 tar --listed-incremental=list -c -f archive.a directory
20018 tar --listed-incremental=list -c --record-size 1024 -L 16 -f arc.1 -f arc.2 -v directory
20022 tar -MRt -f arc.1 -f arc.2) ) >"$at_stdout" 2>"$at_stder1"
20024 grep '^ *+' "$at_stder1" >&2
20025 grep -v '^ *+' "$at_stder1" >"$at_stderr"
20030 TEST_TAR_FORMAT=oldgnu
20031 export TEST_TAR_FORMAT
20032 TAR_OPTIONS="-H oldgnu"
20038 awk 'BEGIN { for (i = 0; i < 1024; i++) printf("directory/%014x\n", i); }' </dev/null | genfile --files-from -
20044 tar --listed-incremental=list -c -f archive.a directory
20048 tar --listed-incremental=list -c --record-size 1024 -L 16 -f arc.1 -f arc.2 -v directory
20052 tar -MRt -f arc.1 -f arc.2) ) >"$at_stdout" 2>"$at_stderr"
20057 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
20058 echo >>"$at_stdout"; echo "directory/
20060 block 0: directory/
20061 block 35: ** Block of NULs **
20062 " | $at_diff - "$at_stdout" || at_failed=:
20064 77) echo 77 > "$at_status_file"; exit 77;;
20066 *) echo "$at_srcdir/multiv04.at:39: exit code was $at_status, expected 0"
20069 if $at_failed; then
20072 echo 1 > "$at_status_file"
20081 $at_times_p && times >"$at_times_file"
20082 ) 5>&1 2>&1 | eval $at_tee_pipe
20083 at_status=`cat "$at_status_file"`
20086 48 ) # 48. multiv05.at:26: Restoring after an out of sync folume
20087 at_setup_line='multiv05.at:26'
20088 at_desc="Restoring after an out of sync folume"
20089 $at_quiet $ECHO_N " 48: Restoring after an out of sync folume $ECHO_C"
20091 test -f $XFAILFILE && at_xfail=yes
20092 echo "# -*- compilation -*-" >> "$at_group_log"
20094 echo "48. multiv05.at:26: testing ..."
20103 echo "$at_srcdir/multiv05.at:30:
20106 TEST_TAR_FORMAT=gnu
20107 export TEST_TAR_FORMAT
20108 TAR_OPTIONS=\"-H gnu\"
20114 genfile --length 250k --file jeden
20115 genfile --length 250k --file dwa
20116 genfile --length 250k --file trzy
20117 genfile --length 250k --file cztery
20118 genfile --length 250k --file piec
20119 genfile --length 250k --file szesc
20122 echo Creating archive
20123 tar -c -M -L 502 -f a.tar -f b.tar -f c.tar jeden dwa trzy cztery piec szesc
20126 mv jeden dwa trzy cztery piec szesc bak
20127 tar -vxM -f a.tar -f c.tar -f b.tar -f c.tar
20129 cmp bak/jeden jeden || exit 1
20131 cmp bak/dwa dwa || exit 1
20133 cmp bak/trzy trzy || exit 1
20134 echo Diffing cztery
20135 cmp bak/cztery cztery || exit 1
20137 cmp bak/piec piec || exit 1
20139 cmp bak/szesc szesc || exit 1
20141 echo multiv05.at:30 >"$at_check_line_file"
20144 if test -n "$at_traceon"; then
20145 echo 'Not enabling shell tracing (command contains an embedded newline)'
20148 if test -n "$at_trace_this"; then
20152 TEST_TAR_FORMAT=gnu
20153 export TEST_TAR_FORMAT
20154 TAR_OPTIONS="-H gnu"
20160 genfile --length 250k --file jeden
20161 genfile --length 250k --file dwa
20162 genfile --length 250k --file trzy
20163 genfile --length 250k --file cztery
20164 genfile --length 250k --file piec
20165 genfile --length 250k --file szesc
20168 echo Creating archive
20169 tar -c -M -L 502 -f a.tar -f b.tar -f c.tar jeden dwa trzy cztery piec szesc
20172 mv jeden dwa trzy cztery piec szesc bak
20173 tar -vxM -f a.tar -f c.tar -f b.tar -f c.tar
20175 cmp bak/jeden jeden || exit 1
20177 cmp bak/dwa dwa || exit 1
20179 cmp bak/trzy trzy || exit 1
20180 echo Diffing cztery
20181 cmp bak/cztery cztery || exit 1
20183 cmp bak/piec piec || exit 1
20185 cmp bak/szesc szesc || exit 1
20186 ) ) >"$at_stdout" 2>"$at_stder1"
20188 grep '^ *+' "$at_stder1" >&2
20189 grep -v '^ *+' "$at_stder1" >"$at_stderr"
20194 TEST_TAR_FORMAT=gnu
20195 export TEST_TAR_FORMAT
20196 TAR_OPTIONS="-H gnu"
20202 genfile --length 250k --file jeden
20203 genfile --length 250k --file dwa
20204 genfile --length 250k --file trzy
20205 genfile --length 250k --file cztery
20206 genfile --length 250k --file piec
20207 genfile --length 250k --file szesc
20210 echo Creating archive
20211 tar -c -M -L 502 -f a.tar -f b.tar -f c.tar jeden dwa trzy cztery piec szesc
20214 mv jeden dwa trzy cztery piec szesc bak
20215 tar -vxM -f a.tar -f c.tar -f b.tar -f c.tar
20217 cmp bak/jeden jeden || exit 1
20219 cmp bak/dwa dwa || exit 1
20221 cmp bak/trzy trzy || exit 1
20222 echo Diffing cztery
20223 cmp bak/cztery cztery || exit 1
20225 cmp bak/piec piec || exit 1
20227 cmp bak/szesc szesc || exit 1
20228 ) ) >"$at_stdout" 2>"$at_stderr"
20233 echo >>"$at_stderr"; echo "tar: \`trzy' is not continued on this volume
20234 " | $at_diff - "$at_stderr" || at_failed=:
20235 echo >>"$at_stdout"; echo "Creating archive
20249 " | $at_diff - "$at_stdout" || at_failed=:
20251 77) echo 77 > "$at_status_file"; exit 77;;
20253 *) echo "$at_srcdir/multiv05.at:30: exit code was $at_status, expected 0"
20256 if $at_failed; then
20259 echo 1 > "$at_status_file"
20268 $at_times_p && times >"$at_times_file"
20269 ) 5>&1 2>&1 | eval $at_tee_pipe
20270 at_status=`cat "$at_status_file"`
20273 49 ) # 49. old.at:23: old archives
20274 at_setup_line='old.at:23'
20275 at_desc="old archives"
20276 $at_quiet $ECHO_N " 49: old archives $ECHO_C"
20278 echo "# -*- compilation -*-" >> "$at_group_log"
20280 echo "49. old.at:23: testing ..."
20287 echo "$at_srcdir/old.at:27:
20289 tar cfvo archive directory || exit 1
20292 echo old.at:27 >"$at_check_line_file"
20295 if test -n "$at_traceon"; then
20296 echo 'Not enabling shell tracing (command contains an embedded newline)'
20299 if test -n "$at_trace_this"; then
20302 tar cfvo archive directory || exit 1
20304 ) >"$at_stdout" 2>"$at_stder1"
20306 grep '^ *+' "$at_stder1" >&2
20307 grep -v '^ *+' "$at_stder1" >"$at_stderr"
20311 tar cfvo archive directory || exit 1
20313 ) >"$at_stdout" 2>"$at_stderr"
20318 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
20319 echo >>"$at_stdout"; echo "directory/
20321 " | $at_diff - "$at_stdout" || at_failed=:
20323 77) echo 77 > "$at_status_file"; exit 77;;
20325 *) echo "$at_srcdir/old.at:27: exit code was $at_status, expected 0"
20328 if $at_failed; then
20331 echo 1 > "$at_status_file"
20339 $at_times_p && times >"$at_times_file"
20340 ) 5>&1 2>&1 | eval $at_tee_pipe
20341 at_status=`cat "$at_status_file"`
20344 50 ) # 50. recurse.at:21: recurse
20345 at_setup_line='recurse.at:21'
20347 $at_quiet $ECHO_N " 50: recurse $ECHO_C"
20349 test -f $XFAILFILE && at_xfail=yes
20350 echo "# -*- compilation -*-" >> "$at_group_log"
20352 echo "50. recurse.at:21: testing ..."
20360 echo "$at_srcdir/recurse.at:24:
20364 export TEST_TAR_FORMAT
20365 TAR_OPTIONS=\"-H v7\"
20370 touch directory/file
20371 tar --create --file archive --no-recursion directory || exit 1
20374 echo recurse.at:24 >"$at_check_line_file"
20377 if test -n "$at_traceon"; then
20378 echo 'Not enabling shell tracing (command contains an embedded newline)'
20381 if test -n "$at_trace_this"; then
20386 export TEST_TAR_FORMAT
20387 TAR_OPTIONS="-H v7"
20392 touch directory/file
20393 tar --create --file archive --no-recursion directory || exit 1
20395 ) ) >"$at_stdout" 2>"$at_stder1"
20397 grep '^ *+' "$at_stder1" >&2
20398 grep -v '^ *+' "$at_stder1" >"$at_stderr"
20404 export TEST_TAR_FORMAT
20405 TAR_OPTIONS="-H v7"
20410 touch directory/file
20411 tar --create --file archive --no-recursion directory || exit 1
20413 ) ) >"$at_stdout" 2>"$at_stderr"
20418 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
20419 echo >>"$at_stdout"; echo "directory/
20420 " | $at_diff - "$at_stdout" || at_failed=:
20422 77) echo 77 > "$at_status_file"; exit 77;;
20424 *) echo "$at_srcdir/recurse.at:24: exit code was $at_status, expected 0"
20427 if $at_failed; then
20430 echo 1 > "$at_status_file"
20436 echo "$at_srcdir/recurse.at:24:
20439 TEST_TAR_FORMAT=oldgnu
20440 export TEST_TAR_FORMAT
20441 TAR_OPTIONS=\"-H oldgnu\"
20446 touch directory/file
20447 tar --create --file archive --no-recursion directory || exit 1
20450 echo recurse.at:24 >"$at_check_line_file"
20453 if test -n "$at_traceon"; then
20454 echo 'Not enabling shell tracing (command contains an embedded newline)'
20457 if test -n "$at_trace_this"; then
20461 TEST_TAR_FORMAT=oldgnu
20462 export TEST_TAR_FORMAT
20463 TAR_OPTIONS="-H oldgnu"
20468 touch directory/file
20469 tar --create --file archive --no-recursion directory || exit 1
20471 ) ) >"$at_stdout" 2>"$at_stder1"
20473 grep '^ *+' "$at_stder1" >&2
20474 grep -v '^ *+' "$at_stder1" >"$at_stderr"
20479 TEST_TAR_FORMAT=oldgnu
20480 export TEST_TAR_FORMAT
20481 TAR_OPTIONS="-H oldgnu"
20486 touch directory/file
20487 tar --create --file archive --no-recursion directory || exit 1
20489 ) ) >"$at_stdout" 2>"$at_stderr"
20494 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
20495 echo >>"$at_stdout"; echo "directory/
20496 " | $at_diff - "$at_stdout" || at_failed=:
20498 77) echo 77 > "$at_status_file"; exit 77;;
20500 *) echo "$at_srcdir/recurse.at:24: exit code was $at_status, expected 0"
20503 if $at_failed; then
20506 echo 1 > "$at_status_file"
20512 echo "$at_srcdir/recurse.at:24:
20515 TEST_TAR_FORMAT=ustar
20516 export TEST_TAR_FORMAT
20517 TAR_OPTIONS=\"-H ustar\"
20522 touch directory/file
20523 tar --create --file archive --no-recursion directory || exit 1
20526 echo recurse.at:24 >"$at_check_line_file"
20529 if test -n "$at_traceon"; then
20530 echo 'Not enabling shell tracing (command contains an embedded newline)'
20533 if test -n "$at_trace_this"; then
20537 TEST_TAR_FORMAT=ustar
20538 export TEST_TAR_FORMAT
20539 TAR_OPTIONS="-H ustar"
20544 touch directory/file
20545 tar --create --file archive --no-recursion directory || exit 1
20547 ) ) >"$at_stdout" 2>"$at_stder1"
20549 grep '^ *+' "$at_stder1" >&2
20550 grep -v '^ *+' "$at_stder1" >"$at_stderr"
20555 TEST_TAR_FORMAT=ustar
20556 export TEST_TAR_FORMAT
20557 TAR_OPTIONS="-H ustar"
20562 touch directory/file
20563 tar --create --file archive --no-recursion directory || exit 1
20565 ) ) >"$at_stdout" 2>"$at_stderr"
20570 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
20571 echo >>"$at_stdout"; echo "directory/
20572 " | $at_diff - "$at_stdout" || at_failed=:
20574 77) echo 77 > "$at_status_file"; exit 77;;
20576 *) echo "$at_srcdir/recurse.at:24: exit code was $at_status, expected 0"
20579 if $at_failed; then
20582 echo 1 > "$at_status_file"
20588 echo "$at_srcdir/recurse.at:24:
20591 TEST_TAR_FORMAT=posix
20592 export TEST_TAR_FORMAT
20593 TAR_OPTIONS=\"-H posix\"
20598 touch directory/file
20599 tar --create --file archive --no-recursion directory || exit 1
20602 echo recurse.at:24 >"$at_check_line_file"
20605 if test -n "$at_traceon"; then
20606 echo 'Not enabling shell tracing (command contains an embedded newline)'
20609 if test -n "$at_trace_this"; then
20613 TEST_TAR_FORMAT=posix
20614 export TEST_TAR_FORMAT
20615 TAR_OPTIONS="-H posix"
20620 touch directory/file
20621 tar --create --file archive --no-recursion directory || exit 1
20623 ) ) >"$at_stdout" 2>"$at_stder1"
20625 grep '^ *+' "$at_stder1" >&2
20626 grep -v '^ *+' "$at_stder1" >"$at_stderr"
20631 TEST_TAR_FORMAT=posix
20632 export TEST_TAR_FORMAT
20633 TAR_OPTIONS="-H posix"
20638 touch directory/file
20639 tar --create --file archive --no-recursion directory || exit 1
20641 ) ) >"$at_stdout" 2>"$at_stderr"
20646 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
20647 echo >>"$at_stdout"; echo "directory/
20648 " | $at_diff - "$at_stdout" || at_failed=:
20650 77) echo 77 > "$at_status_file"; exit 77;;
20652 *) echo "$at_srcdir/recurse.at:24: exit code was $at_status, expected 0"
20655 if $at_failed; then
20658 echo 1 > "$at_status_file"
20664 echo "$at_srcdir/recurse.at:24:
20667 TEST_TAR_FORMAT=gnu
20668 export TEST_TAR_FORMAT
20669 TAR_OPTIONS=\"-H gnu\"
20674 touch directory/file
20675 tar --create --file archive --no-recursion directory || exit 1
20678 echo recurse.at:24 >"$at_check_line_file"
20681 if test -n "$at_traceon"; then
20682 echo 'Not enabling shell tracing (command contains an embedded newline)'
20685 if test -n "$at_trace_this"; then
20689 TEST_TAR_FORMAT=gnu
20690 export TEST_TAR_FORMAT
20691 TAR_OPTIONS="-H gnu"
20696 touch directory/file
20697 tar --create --file archive --no-recursion directory || exit 1
20699 ) ) >"$at_stdout" 2>"$at_stder1"
20701 grep '^ *+' "$at_stder1" >&2
20702 grep -v '^ *+' "$at_stder1" >"$at_stderr"
20707 TEST_TAR_FORMAT=gnu
20708 export TEST_TAR_FORMAT
20709 TAR_OPTIONS="-H gnu"
20714 touch directory/file
20715 tar --create --file archive --no-recursion directory || exit 1
20717 ) ) >"$at_stdout" 2>"$at_stderr"
20722 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
20723 echo >>"$at_stdout"; echo "directory/
20724 " | $at_diff - "$at_stdout" || at_failed=:
20726 77) echo 77 > "$at_status_file"; exit 77;;
20728 *) echo "$at_srcdir/recurse.at:24: exit code was $at_status, expected 0"
20731 if $at_failed; then
20734 echo 1 > "$at_status_file"
20743 $at_times_p && times >"$at_times_file"
20744 ) 5>&1 2>&1 | eval $at_tee_pipe
20745 at_status=`cat "$at_status_file"`
20748 51 ) # 51. same-order01.at:26: working -C with --same-order
20749 at_setup_line='same-order01.at:26'
20750 at_desc="working -C with --same-order"
20751 $at_quiet $ECHO_N " 51: working -C with --same-order $ECHO_C"
20753 test -f $XFAILFILE && at_xfail=yes
20754 echo "# -*- compilation -*-" >> "$at_group_log"
20756 echo "51. same-order01.at:26: testing ..."
20764 echo "$at_srcdir/same-order01.at:29:
20768 export TEST_TAR_FORMAT
20769 TAR_OPTIONS=\"-H v7\"
20774 test -z "`sort < /dev/null 2>&1`" || exit 77
20777 genfile -l 1024 -f file1
20778 genfile -l 1024 -f file2
20779 tar cf archive file1 file2
20782 tar -xf archive --same-order -C directory || exit 1
20786 echo same-order01.at:29 >"$at_check_line_file"
20789 if test -n "$at_traceon"; then
20790 echo 'Not enabling shell tracing (command contains an embedded newline)'
20793 if test -n "$at_trace_this"; then
20798 export TEST_TAR_FORMAT
20799 TAR_OPTIONS="-H v7"
20804 test -z "`sort < /dev/null 2>&1`" || exit 77
20807 genfile -l 1024 -f file1
20808 genfile -l 1024 -f file2
20809 tar cf archive file1 file2
20812 tar -xf archive --same-order -C directory || exit 1
20815 ) ) >"$at_stdout" 2>"$at_stder1"
20817 grep '^ *+' "$at_stder1" >&2
20818 grep -v '^ *+' "$at_stder1" >"$at_stderr"
20824 export TEST_TAR_FORMAT
20825 TAR_OPTIONS="-H v7"
20830 test -z "`sort < /dev/null 2>&1`" || exit 77
20833 genfile -l 1024 -f file1
20834 genfile -l 1024 -f file2
20835 tar cf archive file1 file2
20838 tar -xf archive --same-order -C directory || exit 1
20841 ) ) >"$at_stdout" 2>"$at_stderr"
20846 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
20847 echo >>"$at_stdout"; echo "file1
20849 " | $at_diff - "$at_stdout" || at_failed=:
20851 77) echo 77 > "$at_status_file"; exit 77;;
20853 *) echo "$at_srcdir/same-order01.at:29: exit code was $at_status, expected 0"
20856 if $at_failed; then
20859 echo 1 > "$at_status_file"
20865 echo "$at_srcdir/same-order01.at:29:
20868 TEST_TAR_FORMAT=oldgnu
20869 export TEST_TAR_FORMAT
20870 TAR_OPTIONS=\"-H oldgnu\"
20875 test -z "`sort < /dev/null 2>&1`" || exit 77
20878 genfile -l 1024 -f file1
20879 genfile -l 1024 -f file2
20880 tar cf archive file1 file2
20883 tar -xf archive --same-order -C directory || exit 1
20887 echo same-order01.at:29 >"$at_check_line_file"
20890 if test -n "$at_traceon"; then
20891 echo 'Not enabling shell tracing (command contains an embedded newline)'
20894 if test -n "$at_trace_this"; then
20898 TEST_TAR_FORMAT=oldgnu
20899 export TEST_TAR_FORMAT
20900 TAR_OPTIONS="-H oldgnu"
20905 test -z "`sort < /dev/null 2>&1`" || exit 77
20908 genfile -l 1024 -f file1
20909 genfile -l 1024 -f file2
20910 tar cf archive file1 file2
20913 tar -xf archive --same-order -C directory || exit 1
20916 ) ) >"$at_stdout" 2>"$at_stder1"
20918 grep '^ *+' "$at_stder1" >&2
20919 grep -v '^ *+' "$at_stder1" >"$at_stderr"
20924 TEST_TAR_FORMAT=oldgnu
20925 export TEST_TAR_FORMAT
20926 TAR_OPTIONS="-H oldgnu"
20931 test -z "`sort < /dev/null 2>&1`" || exit 77
20934 genfile -l 1024 -f file1
20935 genfile -l 1024 -f file2
20936 tar cf archive file1 file2
20939 tar -xf archive --same-order -C directory || exit 1
20942 ) ) >"$at_stdout" 2>"$at_stderr"
20947 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
20948 echo >>"$at_stdout"; echo "file1
20950 " | $at_diff - "$at_stdout" || at_failed=:
20952 77) echo 77 > "$at_status_file"; exit 77;;
20954 *) echo "$at_srcdir/same-order01.at:29: exit code was $at_status, expected 0"
20957 if $at_failed; then
20960 echo 1 > "$at_status_file"
20966 echo "$at_srcdir/same-order01.at:29:
20969 TEST_TAR_FORMAT=ustar
20970 export TEST_TAR_FORMAT
20971 TAR_OPTIONS=\"-H ustar\"
20976 test -z "`sort < /dev/null 2>&1`" || exit 77
20979 genfile -l 1024 -f file1
20980 genfile -l 1024 -f file2
20981 tar cf archive file1 file2
20984 tar -xf archive --same-order -C directory || exit 1
20988 echo same-order01.at:29 >"$at_check_line_file"
20991 if test -n "$at_traceon"; then
20992 echo 'Not enabling shell tracing (command contains an embedded newline)'
20995 if test -n "$at_trace_this"; then
20999 TEST_TAR_FORMAT=ustar
21000 export TEST_TAR_FORMAT
21001 TAR_OPTIONS="-H ustar"
21006 test -z "`sort < /dev/null 2>&1`" || exit 77
21009 genfile -l 1024 -f file1
21010 genfile -l 1024 -f file2
21011 tar cf archive file1 file2
21014 tar -xf archive --same-order -C directory || exit 1
21017 ) ) >"$at_stdout" 2>"$at_stder1"
21019 grep '^ *+' "$at_stder1" >&2
21020 grep -v '^ *+' "$at_stder1" >"$at_stderr"
21025 TEST_TAR_FORMAT=ustar
21026 export TEST_TAR_FORMAT
21027 TAR_OPTIONS="-H ustar"
21032 test -z "`sort < /dev/null 2>&1`" || exit 77
21035 genfile -l 1024 -f file1
21036 genfile -l 1024 -f file2
21037 tar cf archive file1 file2
21040 tar -xf archive --same-order -C directory || exit 1
21043 ) ) >"$at_stdout" 2>"$at_stderr"
21048 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
21049 echo >>"$at_stdout"; echo "file1
21051 " | $at_diff - "$at_stdout" || at_failed=:
21053 77) echo 77 > "$at_status_file"; exit 77;;
21055 *) echo "$at_srcdir/same-order01.at:29: exit code was $at_status, expected 0"
21058 if $at_failed; then
21061 echo 1 > "$at_status_file"
21067 echo "$at_srcdir/same-order01.at:29:
21070 TEST_TAR_FORMAT=posix
21071 export TEST_TAR_FORMAT
21072 TAR_OPTIONS=\"-H posix\"
21077 test -z "`sort < /dev/null 2>&1`" || exit 77
21080 genfile -l 1024 -f file1
21081 genfile -l 1024 -f file2
21082 tar cf archive file1 file2
21085 tar -xf archive --same-order -C directory || exit 1
21089 echo same-order01.at:29 >"$at_check_line_file"
21092 if test -n "$at_traceon"; then
21093 echo 'Not enabling shell tracing (command contains an embedded newline)'
21096 if test -n "$at_trace_this"; then
21100 TEST_TAR_FORMAT=posix
21101 export TEST_TAR_FORMAT
21102 TAR_OPTIONS="-H posix"
21107 test -z "`sort < /dev/null 2>&1`" || exit 77
21110 genfile -l 1024 -f file1
21111 genfile -l 1024 -f file2
21112 tar cf archive file1 file2
21115 tar -xf archive --same-order -C directory || exit 1
21118 ) ) >"$at_stdout" 2>"$at_stder1"
21120 grep '^ *+' "$at_stder1" >&2
21121 grep -v '^ *+' "$at_stder1" >"$at_stderr"
21126 TEST_TAR_FORMAT=posix
21127 export TEST_TAR_FORMAT
21128 TAR_OPTIONS="-H posix"
21133 test -z "`sort < /dev/null 2>&1`" || exit 77
21136 genfile -l 1024 -f file1
21137 genfile -l 1024 -f file2
21138 tar cf archive file1 file2
21141 tar -xf archive --same-order -C directory || exit 1
21144 ) ) >"$at_stdout" 2>"$at_stderr"
21149 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
21150 echo >>"$at_stdout"; echo "file1
21152 " | $at_diff - "$at_stdout" || at_failed=:
21154 77) echo 77 > "$at_status_file"; exit 77;;
21156 *) echo "$at_srcdir/same-order01.at:29: exit code was $at_status, expected 0"
21159 if $at_failed; then
21162 echo 1 > "$at_status_file"
21168 echo "$at_srcdir/same-order01.at:29:
21171 TEST_TAR_FORMAT=gnu
21172 export TEST_TAR_FORMAT
21173 TAR_OPTIONS=\"-H gnu\"
21178 test -z "`sort < /dev/null 2>&1`" || exit 77
21181 genfile -l 1024 -f file1
21182 genfile -l 1024 -f file2
21183 tar cf archive file1 file2
21186 tar -xf archive --same-order -C directory || exit 1
21190 echo same-order01.at:29 >"$at_check_line_file"
21193 if test -n "$at_traceon"; then
21194 echo 'Not enabling shell tracing (command contains an embedded newline)'
21197 if test -n "$at_trace_this"; then
21201 TEST_TAR_FORMAT=gnu
21202 export TEST_TAR_FORMAT
21203 TAR_OPTIONS="-H gnu"
21208 test -z "`sort < /dev/null 2>&1`" || exit 77
21211 genfile -l 1024 -f file1
21212 genfile -l 1024 -f file2
21213 tar cf archive file1 file2
21216 tar -xf archive --same-order -C directory || exit 1
21219 ) ) >"$at_stdout" 2>"$at_stder1"
21221 grep '^ *+' "$at_stder1" >&2
21222 grep -v '^ *+' "$at_stder1" >"$at_stderr"
21227 TEST_TAR_FORMAT=gnu
21228 export TEST_TAR_FORMAT
21229 TAR_OPTIONS="-H gnu"
21234 test -z "`sort < /dev/null 2>&1`" || exit 77
21237 genfile -l 1024 -f file1
21238 genfile -l 1024 -f file2
21239 tar cf archive file1 file2
21242 tar -xf archive --same-order -C directory || exit 1
21245 ) ) >"$at_stdout" 2>"$at_stderr"
21250 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
21251 echo >>"$at_stdout"; echo "file1
21253 " | $at_diff - "$at_stdout" || at_failed=:
21255 77) echo 77 > "$at_status_file"; exit 77;;
21257 *) echo "$at_srcdir/same-order01.at:29: exit code was $at_status, expected 0"
21260 if $at_failed; then
21263 echo 1 > "$at_status_file"
21272 $at_times_p && times >"$at_times_file"
21273 ) 5>&1 2>&1 | eval $at_tee_pipe
21274 at_status=`cat "$at_status_file"`
21277 52 ) # 52. same-order02.at:25: multiple -C options
21278 at_setup_line='same-order02.at:25'
21279 at_desc="multiple -C options"
21280 $at_quiet $ECHO_N " 52: multiple -C options $ECHO_C"
21282 test -f $XFAILFILE && at_xfail=yes
21283 echo "# -*- compilation -*-" >> "$at_group_log"
21285 echo "52. same-order02.at:25: testing ..."
21293 echo "$at_srcdir/same-order02.at:28:
21297 export TEST_TAR_FORMAT
21298 TAR_OPTIONS=\"-H v7\"
21302 genfile -l 1024 -f file1
21303 genfile -l 1024 -f file2
21304 tar cf archive file1 file2
21310 tar -xf archive --same-order -C \$HERE/en file1 -C \$HERE/to file2 || exit 1
21316 echo same-order02.at:28 >"$at_check_line_file"
21319 if test -n "$at_traceon"; then
21320 echo 'Not enabling shell tracing (command contains a `...` command substitution)'
21323 if test -n "$at_trace_this"; then
21328 export TEST_TAR_FORMAT
21329 TAR_OPTIONS="-H v7"
21333 genfile -l 1024 -f file1
21334 genfile -l 1024 -f file2
21335 tar cf archive file1 file2
21341 tar -xf archive --same-order -C $HERE/en file1 -C $HERE/to file2 || exit 1
21346 ) ) >"$at_stdout" 2>"$at_stder1"
21348 grep '^ *+' "$at_stder1" >&2
21349 grep -v '^ *+' "$at_stder1" >"$at_stderr"
21355 export TEST_TAR_FORMAT
21356 TAR_OPTIONS="-H v7"
21360 genfile -l 1024 -f file1
21361 genfile -l 1024 -f file2
21362 tar cf archive file1 file2
21368 tar -xf archive --same-order -C $HERE/en file1 -C $HERE/to file2 || exit 1
21373 ) ) >"$at_stdout" 2>"$at_stderr"
21378 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
21379 echo >>"$at_stdout"; echo "file1
21382 " | $at_diff - "$at_stdout" || at_failed=:
21384 77) echo 77 > "$at_status_file"; exit 77;;
21386 *) echo "$at_srcdir/same-order02.at:28: exit code was $at_status, expected 0"
21389 if $at_failed; then
21392 echo 1 > "$at_status_file"
21398 echo "$at_srcdir/same-order02.at:28:
21401 TEST_TAR_FORMAT=oldgnu
21402 export TEST_TAR_FORMAT
21403 TAR_OPTIONS=\"-H oldgnu\"
21407 genfile -l 1024 -f file1
21408 genfile -l 1024 -f file2
21409 tar cf archive file1 file2
21415 tar -xf archive --same-order -C \$HERE/en file1 -C \$HERE/to file2 || exit 1
21421 echo same-order02.at:28 >"$at_check_line_file"
21424 if test -n "$at_traceon"; then
21425 echo 'Not enabling shell tracing (command contains a `...` command substitution)'
21428 if test -n "$at_trace_this"; then
21432 TEST_TAR_FORMAT=oldgnu
21433 export TEST_TAR_FORMAT
21434 TAR_OPTIONS="-H oldgnu"
21438 genfile -l 1024 -f file1
21439 genfile -l 1024 -f file2
21440 tar cf archive file1 file2
21446 tar -xf archive --same-order -C $HERE/en file1 -C $HERE/to file2 || exit 1
21451 ) ) >"$at_stdout" 2>"$at_stder1"
21453 grep '^ *+' "$at_stder1" >&2
21454 grep -v '^ *+' "$at_stder1" >"$at_stderr"
21459 TEST_TAR_FORMAT=oldgnu
21460 export TEST_TAR_FORMAT
21461 TAR_OPTIONS="-H oldgnu"
21465 genfile -l 1024 -f file1
21466 genfile -l 1024 -f file2
21467 tar cf archive file1 file2
21473 tar -xf archive --same-order -C $HERE/en file1 -C $HERE/to file2 || exit 1
21478 ) ) >"$at_stdout" 2>"$at_stderr"
21483 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
21484 echo >>"$at_stdout"; echo "file1
21487 " | $at_diff - "$at_stdout" || at_failed=:
21489 77) echo 77 > "$at_status_file"; exit 77;;
21491 *) echo "$at_srcdir/same-order02.at:28: exit code was $at_status, expected 0"
21494 if $at_failed; then
21497 echo 1 > "$at_status_file"
21503 echo "$at_srcdir/same-order02.at:28:
21506 TEST_TAR_FORMAT=ustar
21507 export TEST_TAR_FORMAT
21508 TAR_OPTIONS=\"-H ustar\"
21512 genfile -l 1024 -f file1
21513 genfile -l 1024 -f file2
21514 tar cf archive file1 file2
21520 tar -xf archive --same-order -C \$HERE/en file1 -C \$HERE/to file2 || exit 1
21526 echo same-order02.at:28 >"$at_check_line_file"
21529 if test -n "$at_traceon"; then
21530 echo 'Not enabling shell tracing (command contains a `...` command substitution)'
21533 if test -n "$at_trace_this"; then
21537 TEST_TAR_FORMAT=ustar
21538 export TEST_TAR_FORMAT
21539 TAR_OPTIONS="-H ustar"
21543 genfile -l 1024 -f file1
21544 genfile -l 1024 -f file2
21545 tar cf archive file1 file2
21551 tar -xf archive --same-order -C $HERE/en file1 -C $HERE/to file2 || exit 1
21556 ) ) >"$at_stdout" 2>"$at_stder1"
21558 grep '^ *+' "$at_stder1" >&2
21559 grep -v '^ *+' "$at_stder1" >"$at_stderr"
21564 TEST_TAR_FORMAT=ustar
21565 export TEST_TAR_FORMAT
21566 TAR_OPTIONS="-H ustar"
21570 genfile -l 1024 -f file1
21571 genfile -l 1024 -f file2
21572 tar cf archive file1 file2
21578 tar -xf archive --same-order -C $HERE/en file1 -C $HERE/to file2 || exit 1
21583 ) ) >"$at_stdout" 2>"$at_stderr"
21588 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
21589 echo >>"$at_stdout"; echo "file1
21592 " | $at_diff - "$at_stdout" || at_failed=:
21594 77) echo 77 > "$at_status_file"; exit 77;;
21596 *) echo "$at_srcdir/same-order02.at:28: exit code was $at_status, expected 0"
21599 if $at_failed; then
21602 echo 1 > "$at_status_file"
21608 echo "$at_srcdir/same-order02.at:28:
21611 TEST_TAR_FORMAT=posix
21612 export TEST_TAR_FORMAT
21613 TAR_OPTIONS=\"-H posix\"
21617 genfile -l 1024 -f file1
21618 genfile -l 1024 -f file2
21619 tar cf archive file1 file2
21625 tar -xf archive --same-order -C \$HERE/en file1 -C \$HERE/to file2 || exit 1
21631 echo same-order02.at:28 >"$at_check_line_file"
21634 if test -n "$at_traceon"; then
21635 echo 'Not enabling shell tracing (command contains a `...` command substitution)'
21638 if test -n "$at_trace_this"; then
21642 TEST_TAR_FORMAT=posix
21643 export TEST_TAR_FORMAT
21644 TAR_OPTIONS="-H posix"
21648 genfile -l 1024 -f file1
21649 genfile -l 1024 -f file2
21650 tar cf archive file1 file2
21656 tar -xf archive --same-order -C $HERE/en file1 -C $HERE/to file2 || exit 1
21661 ) ) >"$at_stdout" 2>"$at_stder1"
21663 grep '^ *+' "$at_stder1" >&2
21664 grep -v '^ *+' "$at_stder1" >"$at_stderr"
21669 TEST_TAR_FORMAT=posix
21670 export TEST_TAR_FORMAT
21671 TAR_OPTIONS="-H posix"
21675 genfile -l 1024 -f file1
21676 genfile -l 1024 -f file2
21677 tar cf archive file1 file2
21683 tar -xf archive --same-order -C $HERE/en file1 -C $HERE/to file2 || exit 1
21688 ) ) >"$at_stdout" 2>"$at_stderr"
21693 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
21694 echo >>"$at_stdout"; echo "file1
21697 " | $at_diff - "$at_stdout" || at_failed=:
21699 77) echo 77 > "$at_status_file"; exit 77;;
21701 *) echo "$at_srcdir/same-order02.at:28: exit code was $at_status, expected 0"
21704 if $at_failed; then
21707 echo 1 > "$at_status_file"
21713 echo "$at_srcdir/same-order02.at:28:
21716 TEST_TAR_FORMAT=gnu
21717 export TEST_TAR_FORMAT
21718 TAR_OPTIONS=\"-H gnu\"
21722 genfile -l 1024 -f file1
21723 genfile -l 1024 -f file2
21724 tar cf archive file1 file2
21730 tar -xf archive --same-order -C \$HERE/en file1 -C \$HERE/to file2 || exit 1
21736 echo same-order02.at:28 >"$at_check_line_file"
21739 if test -n "$at_traceon"; then
21740 echo 'Not enabling shell tracing (command contains a `...` command substitution)'
21743 if test -n "$at_trace_this"; then
21747 TEST_TAR_FORMAT=gnu
21748 export TEST_TAR_FORMAT
21749 TAR_OPTIONS="-H gnu"
21753 genfile -l 1024 -f file1
21754 genfile -l 1024 -f file2
21755 tar cf archive file1 file2
21761 tar -xf archive --same-order -C $HERE/en file1 -C $HERE/to file2 || exit 1
21766 ) ) >"$at_stdout" 2>"$at_stder1"
21768 grep '^ *+' "$at_stder1" >&2
21769 grep -v '^ *+' "$at_stder1" >"$at_stderr"
21774 TEST_TAR_FORMAT=gnu
21775 export TEST_TAR_FORMAT
21776 TAR_OPTIONS="-H gnu"
21780 genfile -l 1024 -f file1
21781 genfile -l 1024 -f file2
21782 tar cf archive file1 file2
21788 tar -xf archive --same-order -C $HERE/en file1 -C $HERE/to file2 || exit 1
21793 ) ) >"$at_stdout" 2>"$at_stderr"
21798 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
21799 echo >>"$at_stdout"; echo "file1
21802 " | $at_diff - "$at_stdout" || at_failed=:
21804 77) echo 77 > "$at_status_file"; exit 77;;
21806 *) echo "$at_srcdir/same-order02.at:28: exit code was $at_status, expected 0"
21809 if $at_failed; then
21812 echo 1 > "$at_status_file"
21821 $at_times_p && times >"$at_times_file"
21822 ) 5>&1 2>&1 | eval $at_tee_pipe
21823 at_status=`cat "$at_status_file"`
21826 53 ) # 53. shortrec.at:25: short records
21827 at_setup_line='shortrec.at:25'
21828 at_desc="short records"
21829 $at_quiet $ECHO_N " 53: short records $ECHO_C"
21831 test -f $XFAILFILE && at_xfail=yes
21832 echo "# -*- compilation -*-" >> "$at_group_log"
21834 echo "53. shortrec.at:25: testing ..."
21842 echo "$at_srcdir/shortrec.at:28:
21846 export TEST_TAR_FORMAT
21847 TAR_OPTIONS=\"-H v7\"
21852 (cd directory && touch a b c d e f g h i j k l m n o p q r)
21853 tar -c -b 1 -f - directory | tar -t -f - >/dev/null
21854 tar -c -b 1 -f archive directory
21855 tar -t -f archive >/dev/null
21856 tar -t -f - < archive >/dev/null
21860 echo shortrec.at:28 >"$at_check_line_file"
21863 if test -n "$at_traceon"; then
21864 echo 'Not enabling shell tracing (command contains an embedded newline)'
21867 if test -n "$at_trace_this"; then
21872 export TEST_TAR_FORMAT
21873 TAR_OPTIONS="-H v7"
21878 (cd directory && touch a b c d e f g h i j k l m n o p q r)
21879 tar -c -b 1 -f - directory | tar -t -f - >/dev/null
21880 tar -c -b 1 -f archive directory
21881 tar -t -f archive >/dev/null
21882 tar -t -f - < archive >/dev/null
21885 ) ) >"$at_stdout" 2>"$at_stder1"
21887 grep '^ *+' "$at_stder1" >&2
21888 grep -v '^ *+' "$at_stder1" >"$at_stderr"
21894 export TEST_TAR_FORMAT
21895 TAR_OPTIONS="-H v7"
21900 (cd directory && touch a b c d e f g h i j k l m n o p q r)
21901 tar -c -b 1 -f - directory | tar -t -f - >/dev/null
21902 tar -c -b 1 -f archive directory
21903 tar -t -f archive >/dev/null
21904 tar -t -f - < archive >/dev/null
21907 ) ) >"$at_stdout" 2>"$at_stderr"
21912 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
21913 $at_diff "$at_devnull" "$at_stdout" || at_failed=:
21915 77) echo 77 > "$at_status_file"; exit 77;;
21917 *) echo "$at_srcdir/shortrec.at:28: exit code was $at_status, expected 0"
21920 if $at_failed; then
21923 echo 1 > "$at_status_file"
21929 echo "$at_srcdir/shortrec.at:28:
21932 TEST_TAR_FORMAT=oldgnu
21933 export TEST_TAR_FORMAT
21934 TAR_OPTIONS=\"-H oldgnu\"
21939 (cd directory && touch a b c d e f g h i j k l m n o p q r)
21940 tar -c -b 1 -f - directory | tar -t -f - >/dev/null
21941 tar -c -b 1 -f archive directory
21942 tar -t -f archive >/dev/null
21943 tar -t -f - < archive >/dev/null
21947 echo shortrec.at:28 >"$at_check_line_file"
21950 if test -n "$at_traceon"; then
21951 echo 'Not enabling shell tracing (command contains an embedded newline)'
21954 if test -n "$at_trace_this"; then
21958 TEST_TAR_FORMAT=oldgnu
21959 export TEST_TAR_FORMAT
21960 TAR_OPTIONS="-H oldgnu"
21965 (cd directory && touch a b c d e f g h i j k l m n o p q r)
21966 tar -c -b 1 -f - directory | tar -t -f - >/dev/null
21967 tar -c -b 1 -f archive directory
21968 tar -t -f archive >/dev/null
21969 tar -t -f - < archive >/dev/null
21972 ) ) >"$at_stdout" 2>"$at_stder1"
21974 grep '^ *+' "$at_stder1" >&2
21975 grep -v '^ *+' "$at_stder1" >"$at_stderr"
21980 TEST_TAR_FORMAT=oldgnu
21981 export TEST_TAR_FORMAT
21982 TAR_OPTIONS="-H oldgnu"
21987 (cd directory && touch a b c d e f g h i j k l m n o p q r)
21988 tar -c -b 1 -f - directory | tar -t -f - >/dev/null
21989 tar -c -b 1 -f archive directory
21990 tar -t -f archive >/dev/null
21991 tar -t -f - < archive >/dev/null
21994 ) ) >"$at_stdout" 2>"$at_stderr"
21999 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
22000 $at_diff "$at_devnull" "$at_stdout" || at_failed=:
22002 77) echo 77 > "$at_status_file"; exit 77;;
22004 *) echo "$at_srcdir/shortrec.at:28: exit code was $at_status, expected 0"
22007 if $at_failed; then
22010 echo 1 > "$at_status_file"
22016 echo "$at_srcdir/shortrec.at:28:
22019 TEST_TAR_FORMAT=ustar
22020 export TEST_TAR_FORMAT
22021 TAR_OPTIONS=\"-H ustar\"
22026 (cd directory && touch a b c d e f g h i j k l m n o p q r)
22027 tar -c -b 1 -f - directory | tar -t -f - >/dev/null
22028 tar -c -b 1 -f archive directory
22029 tar -t -f archive >/dev/null
22030 tar -t -f - < archive >/dev/null
22034 echo shortrec.at:28 >"$at_check_line_file"
22037 if test -n "$at_traceon"; then
22038 echo 'Not enabling shell tracing (command contains an embedded newline)'
22041 if test -n "$at_trace_this"; then
22045 TEST_TAR_FORMAT=ustar
22046 export TEST_TAR_FORMAT
22047 TAR_OPTIONS="-H ustar"
22052 (cd directory && touch a b c d e f g h i j k l m n o p q r)
22053 tar -c -b 1 -f - directory | tar -t -f - >/dev/null
22054 tar -c -b 1 -f archive directory
22055 tar -t -f archive >/dev/null
22056 tar -t -f - < archive >/dev/null
22059 ) ) >"$at_stdout" 2>"$at_stder1"
22061 grep '^ *+' "$at_stder1" >&2
22062 grep -v '^ *+' "$at_stder1" >"$at_stderr"
22067 TEST_TAR_FORMAT=ustar
22068 export TEST_TAR_FORMAT
22069 TAR_OPTIONS="-H ustar"
22074 (cd directory && touch a b c d e f g h i j k l m n o p q r)
22075 tar -c -b 1 -f - directory | tar -t -f - >/dev/null
22076 tar -c -b 1 -f archive directory
22077 tar -t -f archive >/dev/null
22078 tar -t -f - < archive >/dev/null
22081 ) ) >"$at_stdout" 2>"$at_stderr"
22086 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
22087 $at_diff "$at_devnull" "$at_stdout" || at_failed=:
22089 77) echo 77 > "$at_status_file"; exit 77;;
22091 *) echo "$at_srcdir/shortrec.at:28: exit code was $at_status, expected 0"
22094 if $at_failed; then
22097 echo 1 > "$at_status_file"
22103 echo "$at_srcdir/shortrec.at:28:
22106 TEST_TAR_FORMAT=posix
22107 export TEST_TAR_FORMAT
22108 TAR_OPTIONS=\"-H posix\"
22113 (cd directory && touch a b c d e f g h i j k l m n o p q r)
22114 tar -c -b 1 -f - directory | tar -t -f - >/dev/null
22115 tar -c -b 1 -f archive directory
22116 tar -t -f archive >/dev/null
22117 tar -t -f - < archive >/dev/null
22121 echo shortrec.at:28 >"$at_check_line_file"
22124 if test -n "$at_traceon"; then
22125 echo 'Not enabling shell tracing (command contains an embedded newline)'
22128 if test -n "$at_trace_this"; then
22132 TEST_TAR_FORMAT=posix
22133 export TEST_TAR_FORMAT
22134 TAR_OPTIONS="-H posix"
22139 (cd directory && touch a b c d e f g h i j k l m n o p q r)
22140 tar -c -b 1 -f - directory | tar -t -f - >/dev/null
22141 tar -c -b 1 -f archive directory
22142 tar -t -f archive >/dev/null
22143 tar -t -f - < archive >/dev/null
22146 ) ) >"$at_stdout" 2>"$at_stder1"
22148 grep '^ *+' "$at_stder1" >&2
22149 grep -v '^ *+' "$at_stder1" >"$at_stderr"
22154 TEST_TAR_FORMAT=posix
22155 export TEST_TAR_FORMAT
22156 TAR_OPTIONS="-H posix"
22161 (cd directory && touch a b c d e f g h i j k l m n o p q r)
22162 tar -c -b 1 -f - directory | tar -t -f - >/dev/null
22163 tar -c -b 1 -f archive directory
22164 tar -t -f archive >/dev/null
22165 tar -t -f - < archive >/dev/null
22168 ) ) >"$at_stdout" 2>"$at_stderr"
22173 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
22174 $at_diff "$at_devnull" "$at_stdout" || at_failed=:
22176 77) echo 77 > "$at_status_file"; exit 77;;
22178 *) echo "$at_srcdir/shortrec.at:28: exit code was $at_status, expected 0"
22181 if $at_failed; then
22184 echo 1 > "$at_status_file"
22190 echo "$at_srcdir/shortrec.at:28:
22193 TEST_TAR_FORMAT=gnu
22194 export TEST_TAR_FORMAT
22195 TAR_OPTIONS=\"-H gnu\"
22200 (cd directory && touch a b c d e f g h i j k l m n o p q r)
22201 tar -c -b 1 -f - directory | tar -t -f - >/dev/null
22202 tar -c -b 1 -f archive directory
22203 tar -t -f archive >/dev/null
22204 tar -t -f - < archive >/dev/null
22208 echo shortrec.at:28 >"$at_check_line_file"
22211 if test -n "$at_traceon"; then
22212 echo 'Not enabling shell tracing (command contains an embedded newline)'
22215 if test -n "$at_trace_this"; then
22219 TEST_TAR_FORMAT=gnu
22220 export TEST_TAR_FORMAT
22221 TAR_OPTIONS="-H gnu"
22226 (cd directory && touch a b c d e f g h i j k l m n o p q r)
22227 tar -c -b 1 -f - directory | tar -t -f - >/dev/null
22228 tar -c -b 1 -f archive directory
22229 tar -t -f archive >/dev/null
22230 tar -t -f - < archive >/dev/null
22233 ) ) >"$at_stdout" 2>"$at_stder1"
22235 grep '^ *+' "$at_stder1" >&2
22236 grep -v '^ *+' "$at_stder1" >"$at_stderr"
22241 TEST_TAR_FORMAT=gnu
22242 export TEST_TAR_FORMAT
22243 TAR_OPTIONS="-H gnu"
22248 (cd directory && touch a b c d e f g h i j k l m n o p q r)
22249 tar -c -b 1 -f - directory | tar -t -f - >/dev/null
22250 tar -c -b 1 -f archive directory
22251 tar -t -f archive >/dev/null
22252 tar -t -f - < archive >/dev/null
22255 ) ) >"$at_stdout" 2>"$at_stderr"
22260 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
22261 $at_diff "$at_devnull" "$at_stdout" || at_failed=:
22263 77) echo 77 > "$at_status_file"; exit 77;;
22265 *) echo "$at_srcdir/shortrec.at:28: exit code was $at_status, expected 0"
22268 if $at_failed; then
22271 echo 1 > "$at_status_file"
22280 $at_times_p && times >"$at_times_file"
22281 ) 5>&1 2>&1 | eval $at_tee_pipe
22282 at_status=`cat "$at_status_file"`
22285 54 ) # 54. sparse01.at:21: sparse files
22286 at_setup_line='sparse01.at:21'
22287 at_desc="sparse files"
22288 $at_quiet $ECHO_N " 54: sparse files $ECHO_C"
22290 test -f $XFAILFILE && at_xfail=yes
22291 echo "# -*- compilation -*-" >> "$at_group_log"
22293 echo "54. sparse01.at:21: testing ..."
22301 echo "$at_srcdir/sparse01.at:24:
22304 TEST_TAR_FORMAT=posix
22305 export TEST_TAR_FORMAT
22306 TAR_OPTIONS=\"-H posix\"
22310 genfile --length 1000 -f begin
22311 genfile --length 1000 -f end
22312 genfile --sparse --file sparsefile --block-size 512 0 ABCD 1M EFGH 2000K IJKL || exit 77
22313 tar -c -f archive --sparse begin sparsefile end || exit 1
22319 tar Cxf directory archive
22320 genfile --stat=name,size sparsefile
22321 cmp sparsefile directory/sparsefile
22323 echo sparse01.at:24 >"$at_check_line_file"
22326 if test -n "$at_traceon"; then
22327 echo 'Not enabling shell tracing (command contains an embedded newline)'
22330 if test -n "$at_trace_this"; then
22334 TEST_TAR_FORMAT=posix
22335 export TEST_TAR_FORMAT
22336 TAR_OPTIONS="-H posix"
22340 genfile --length 1000 -f begin
22341 genfile --length 1000 -f end
22342 genfile --sparse --file sparsefile --block-size 512 0 ABCD 1M EFGH 2000K IJKL || exit 77
22343 tar -c -f archive --sparse begin sparsefile end || exit 1
22349 tar Cxf directory archive
22350 genfile --stat=name,size sparsefile
22351 cmp sparsefile directory/sparsefile
22352 ) ) >"$at_stdout" 2>"$at_stder1"
22354 grep '^ *+' "$at_stder1" >&2
22355 grep -v '^ *+' "$at_stder1" >"$at_stderr"
22360 TEST_TAR_FORMAT=posix
22361 export TEST_TAR_FORMAT
22362 TAR_OPTIONS="-H posix"
22366 genfile --length 1000 -f begin
22367 genfile --length 1000 -f end
22368 genfile --sparse --file sparsefile --block-size 512 0 ABCD 1M EFGH 2000K IJKL || exit 77
22369 tar -c -f archive --sparse begin sparsefile end || exit 1
22375 tar Cxf directory archive
22376 genfile --stat=name,size sparsefile
22377 cmp sparsefile directory/sparsefile
22378 ) ) >"$at_stdout" 2>"$at_stderr"
22383 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
22384 echo stdout:; tee stdout <"$at_stdout"
22386 77) echo 77 > "$at_status_file"; exit 77;;
22388 *) echo "$at_srcdir/sparse01.at:24: exit code was $at_status, expected 0"
22391 if $at_failed; then
22394 echo 1 > "$at_status_file"
22400 echo "$at_srcdir/sparse01.at:24:
22403 TEST_TAR_FORMAT=gnu
22404 export TEST_TAR_FORMAT
22405 TAR_OPTIONS=\"-H gnu\"
22409 genfile --length 1000 -f begin
22410 genfile --length 1000 -f end
22411 genfile --sparse --file sparsefile --block-size 512 0 ABCD 1M EFGH 2000K IJKL || exit 77
22412 tar -c -f archive --sparse begin sparsefile end || exit 1
22418 tar Cxf directory archive
22419 genfile --stat=name,size sparsefile
22420 cmp sparsefile directory/sparsefile
22422 echo sparse01.at:24 >"$at_check_line_file"
22425 if test -n "$at_traceon"; then
22426 echo 'Not enabling shell tracing (command contains an embedded newline)'
22429 if test -n "$at_trace_this"; then
22433 TEST_TAR_FORMAT=gnu
22434 export TEST_TAR_FORMAT
22435 TAR_OPTIONS="-H gnu"
22439 genfile --length 1000 -f begin
22440 genfile --length 1000 -f end
22441 genfile --sparse --file sparsefile --block-size 512 0 ABCD 1M EFGH 2000K IJKL || exit 77
22442 tar -c -f archive --sparse begin sparsefile end || exit 1
22448 tar Cxf directory archive
22449 genfile --stat=name,size sparsefile
22450 cmp sparsefile directory/sparsefile
22451 ) ) >"$at_stdout" 2>"$at_stder1"
22453 grep '^ *+' "$at_stder1" >&2
22454 grep -v '^ *+' "$at_stder1" >"$at_stderr"
22459 TEST_TAR_FORMAT=gnu
22460 export TEST_TAR_FORMAT
22461 TAR_OPTIONS="-H gnu"
22465 genfile --length 1000 -f begin
22466 genfile --length 1000 -f end
22467 genfile --sparse --file sparsefile --block-size 512 0 ABCD 1M EFGH 2000K IJKL || exit 77
22468 tar -c -f archive --sparse begin sparsefile end || exit 1
22474 tar Cxf directory archive
22475 genfile --stat=name,size sparsefile
22476 cmp sparsefile directory/sparsefile
22477 ) ) >"$at_stdout" 2>"$at_stderr"
22482 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
22483 echo stdout:; tee stdout <"$at_stdout"
22485 77) echo 77 > "$at_status_file"; exit 77;;
22487 *) echo "$at_srcdir/sparse01.at:24: exit code was $at_status, expected 0"
22490 if $at_failed; then
22493 echo 1 > "$at_status_file"
22499 echo "$at_srcdir/sparse01.at:24:
22502 TEST_TAR_FORMAT=oldgnu
22503 export TEST_TAR_FORMAT
22504 TAR_OPTIONS=\"-H oldgnu\"
22508 genfile --length 1000 -f begin
22509 genfile --length 1000 -f end
22510 genfile --sparse --file sparsefile --block-size 512 0 ABCD 1M EFGH 2000K IJKL || exit 77
22511 tar -c -f archive --sparse begin sparsefile end || exit 1
22517 tar Cxf directory archive
22518 genfile --stat=name,size sparsefile
22519 cmp sparsefile directory/sparsefile
22521 echo sparse01.at:24 >"$at_check_line_file"
22524 if test -n "$at_traceon"; then
22525 echo 'Not enabling shell tracing (command contains an embedded newline)'
22528 if test -n "$at_trace_this"; then
22532 TEST_TAR_FORMAT=oldgnu
22533 export TEST_TAR_FORMAT
22534 TAR_OPTIONS="-H oldgnu"
22538 genfile --length 1000 -f begin
22539 genfile --length 1000 -f end
22540 genfile --sparse --file sparsefile --block-size 512 0 ABCD 1M EFGH 2000K IJKL || exit 77
22541 tar -c -f archive --sparse begin sparsefile end || exit 1
22547 tar Cxf directory archive
22548 genfile --stat=name,size sparsefile
22549 cmp sparsefile directory/sparsefile
22550 ) ) >"$at_stdout" 2>"$at_stder1"
22552 grep '^ *+' "$at_stder1" >&2
22553 grep -v '^ *+' "$at_stder1" >"$at_stderr"
22558 TEST_TAR_FORMAT=oldgnu
22559 export TEST_TAR_FORMAT
22560 TAR_OPTIONS="-H oldgnu"
22564 genfile --length 1000 -f begin
22565 genfile --length 1000 -f end
22566 genfile --sparse --file sparsefile --block-size 512 0 ABCD 1M EFGH 2000K IJKL || exit 77
22567 tar -c -f archive --sparse begin sparsefile end || exit 1
22573 tar Cxf directory archive
22574 genfile --stat=name,size sparsefile
22575 cmp sparsefile directory/sparsefile
22576 ) ) >"$at_stdout" 2>"$at_stderr"
22581 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
22582 echo stdout:; tee stdout <"$at_stdout"
22584 77) echo 77 > "$at_status_file"; exit 77;;
22586 *) echo "$at_srcdir/sparse01.at:24: exit code was $at_status, expected 0"
22589 if $at_failed; then
22592 echo 1 > "$at_status_file"
22601 cat >stdout.re <<'_ATEOF'
22603 -rw-r--r-- ^ ^ * *1000 0-90-90-90-9-0-90-9-0-90-9 0-90-9:0-90-9 begin
22604 -rw-r--r-- ^ ^ * *10344448 0-90-90-90-9-0-90-9-0-90-9 0-90-9:0-90-9 sparsefile
22605 -rw-r--r-- ^ ^ * *1000 0-90-90-90-9-0-90-9-0-90-9 0-90-9:0-90-9 end
22607 sparsefile 10344448
22610 awk '{print NR " " $0}' stdout > $$.1
22611 awk '{print NR " " $0}' stdout.re | join - $$.1 |
22612 while read NUM RE LINE
22614 echo "$LINE" | grep -- "$RE" >/dev/null || exit 1
22619 $at_times_p && times >"$at_times_file"
22620 ) 5>&1 2>&1 | eval $at_tee_pipe
22621 at_status=`cat "$at_status_file"`
22624 55 ) # 55. sparse02.at:21: extracting sparse file over a pipe
22625 at_setup_line='sparse02.at:21'
22626 at_desc="extracting sparse file over a pipe"
22627 $at_quiet $ECHO_N " 55: extracting sparse file over a pipe $ECHO_C"
22629 test -f $XFAILFILE && at_xfail=yes
22630 echo "# -*- compilation -*-" >> "$at_group_log"
22632 echo "55. sparse02.at:21: testing ..."
22637 # Tar 1.14 - 1.15.1 was unable to extract sparse files to a pipe.
22638 # References: <16896.21739.460782.124775@jik.kamens.brookline.ma.us>
22639 # http://lists.gnu.org/archive/html/bug-tar/2005-02/msg00003.html
22644 echo "$at_srcdir/sparse02.at:28:
22647 TEST_TAR_FORMAT=posix
22648 export TEST_TAR_FORMAT
22649 TAR_OPTIONS=\"-H posix\"
22653 genfile --sparse --file sparsefile --block-size 512 0 ABCD 1M EFGH 2000K IJKL || exit 77
22654 tar -c -f archive --sparse sparsefile || exit 1
22657 tar xfO archive | cat - > sparsecopy || exit 1
22658 cmp sparsefile sparsecopy
22660 echo sparse02.at:28 >"$at_check_line_file"
22663 if test -n "$at_traceon"; then
22664 echo 'Not enabling shell tracing (command contains an embedded newline)'
22667 if test -n "$at_trace_this"; then
22671 TEST_TAR_FORMAT=posix
22672 export TEST_TAR_FORMAT
22673 TAR_OPTIONS="-H posix"
22677 genfile --sparse --file sparsefile --block-size 512 0 ABCD 1M EFGH 2000K IJKL || exit 77
22678 tar -c -f archive --sparse sparsefile || exit 1
22681 tar xfO archive | cat - > sparsecopy || exit 1
22682 cmp sparsefile sparsecopy
22683 ) ) >"$at_stdout" 2>"$at_stder1"
22685 grep '^ *+' "$at_stder1" >&2
22686 grep -v '^ *+' "$at_stder1" >"$at_stderr"
22691 TEST_TAR_FORMAT=posix
22692 export TEST_TAR_FORMAT
22693 TAR_OPTIONS="-H posix"
22697 genfile --sparse --file sparsefile --block-size 512 0 ABCD 1M EFGH 2000K IJKL || exit 77
22698 tar -c -f archive --sparse sparsefile || exit 1
22701 tar xfO archive | cat - > sparsecopy || exit 1
22702 cmp sparsefile sparsecopy
22703 ) ) >"$at_stdout" 2>"$at_stderr"
22708 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
22709 echo >>"$at_stdout"; echo "separator
22710 " | $at_diff - "$at_stdout" || at_failed=:
22712 77) echo 77 > "$at_status_file"; exit 77;;
22714 *) echo "$at_srcdir/sparse02.at:28: exit code was $at_status, expected 0"
22717 if $at_failed; then
22720 echo 1 > "$at_status_file"
22726 echo "$at_srcdir/sparse02.at:28:
22729 TEST_TAR_FORMAT=gnu
22730 export TEST_TAR_FORMAT
22731 TAR_OPTIONS=\"-H gnu\"
22735 genfile --sparse --file sparsefile --block-size 512 0 ABCD 1M EFGH 2000K IJKL || exit 77
22736 tar -c -f archive --sparse sparsefile || exit 1
22739 tar xfO archive | cat - > sparsecopy || exit 1
22740 cmp sparsefile sparsecopy
22742 echo sparse02.at:28 >"$at_check_line_file"
22745 if test -n "$at_traceon"; then
22746 echo 'Not enabling shell tracing (command contains an embedded newline)'
22749 if test -n "$at_trace_this"; then
22753 TEST_TAR_FORMAT=gnu
22754 export TEST_TAR_FORMAT
22755 TAR_OPTIONS="-H gnu"
22759 genfile --sparse --file sparsefile --block-size 512 0 ABCD 1M EFGH 2000K IJKL || exit 77
22760 tar -c -f archive --sparse sparsefile || exit 1
22763 tar xfO archive | cat - > sparsecopy || exit 1
22764 cmp sparsefile sparsecopy
22765 ) ) >"$at_stdout" 2>"$at_stder1"
22767 grep '^ *+' "$at_stder1" >&2
22768 grep -v '^ *+' "$at_stder1" >"$at_stderr"
22773 TEST_TAR_FORMAT=gnu
22774 export TEST_TAR_FORMAT
22775 TAR_OPTIONS="-H gnu"
22779 genfile --sparse --file sparsefile --block-size 512 0 ABCD 1M EFGH 2000K IJKL || exit 77
22780 tar -c -f archive --sparse sparsefile || exit 1
22783 tar xfO archive | cat - > sparsecopy || exit 1
22784 cmp sparsefile sparsecopy
22785 ) ) >"$at_stdout" 2>"$at_stderr"
22790 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
22791 echo >>"$at_stdout"; echo "separator
22792 " | $at_diff - "$at_stdout" || at_failed=:
22794 77) echo 77 > "$at_status_file"; exit 77;;
22796 *) echo "$at_srcdir/sparse02.at:28: exit code was $at_status, expected 0"
22799 if $at_failed; then
22802 echo 1 > "$at_status_file"
22808 echo "$at_srcdir/sparse02.at:28:
22811 TEST_TAR_FORMAT=oldgnu
22812 export TEST_TAR_FORMAT
22813 TAR_OPTIONS=\"-H oldgnu\"
22817 genfile --sparse --file sparsefile --block-size 512 0 ABCD 1M EFGH 2000K IJKL || exit 77
22818 tar -c -f archive --sparse sparsefile || exit 1
22821 tar xfO archive | cat - > sparsecopy || exit 1
22822 cmp sparsefile sparsecopy
22824 echo sparse02.at:28 >"$at_check_line_file"
22827 if test -n "$at_traceon"; then
22828 echo 'Not enabling shell tracing (command contains an embedded newline)'
22831 if test -n "$at_trace_this"; then
22835 TEST_TAR_FORMAT=oldgnu
22836 export TEST_TAR_FORMAT
22837 TAR_OPTIONS="-H oldgnu"
22841 genfile --sparse --file sparsefile --block-size 512 0 ABCD 1M EFGH 2000K IJKL || exit 77
22842 tar -c -f archive --sparse sparsefile || exit 1
22845 tar xfO archive | cat - > sparsecopy || exit 1
22846 cmp sparsefile sparsecopy
22847 ) ) >"$at_stdout" 2>"$at_stder1"
22849 grep '^ *+' "$at_stder1" >&2
22850 grep -v '^ *+' "$at_stder1" >"$at_stderr"
22855 TEST_TAR_FORMAT=oldgnu
22856 export TEST_TAR_FORMAT
22857 TAR_OPTIONS="-H oldgnu"
22861 genfile --sparse --file sparsefile --block-size 512 0 ABCD 1M EFGH 2000K IJKL || exit 77
22862 tar -c -f archive --sparse sparsefile || exit 1
22865 tar xfO archive | cat - > sparsecopy || exit 1
22866 cmp sparsefile sparsecopy
22867 ) ) >"$at_stdout" 2>"$at_stderr"
22872 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
22873 echo >>"$at_stdout"; echo "separator
22874 " | $at_diff - "$at_stdout" || at_failed=:
22876 77) echo 77 > "$at_status_file"; exit 77;;
22878 *) echo "$at_srcdir/sparse02.at:28: exit code was $at_status, expected 0"
22881 if $at_failed; then
22884 echo 1 > "$at_status_file"
22893 $at_times_p && times >"$at_times_file"
22894 ) 5>&1 2>&1 | eval $at_tee_pipe
22895 at_status=`cat "$at_status_file"`
22898 56 ) # 56. sparse03.at:21: storing sparse files > 8G
22899 at_setup_line='sparse03.at:21'
22900 at_desc="storing sparse files > 8G"
22901 $at_quiet $ECHO_N " 56: storing sparse files > 8G $ECHO_C"
22903 test -f $XFAILFILE && at_xfail=yes
22904 echo "# -*- compilation -*-" >> "$at_group_log"
22906 echo "56. sparse03.at:21: testing ..."
22911 # Tar 1.15.1 incorrectly computed sparse member size if the extended
22912 # PAX header contained size keyword.
22913 # References: <87vf46nb36.fsf@penguin.cs.ucla.edu>
22914 # http://lists.gnu.org/archive/html/bug-tar/2005-06/msg00040.html
22919 echo "$at_srcdir/sparse03.at:29:
22922 TEST_TAR_FORMAT=posix
22923 export TEST_TAR_FORMAT
22924 TAR_OPTIONS=\"-H posix\"
22928 genfile --length 1000 --file begin
22929 genfile --length 1000 --file end
22930 genfile --sparse --file sparsefile --block-size 512 8G A || exit 77
22931 tar -c -f archive --sparse begin sparsefile end || exit 1
22937 tar Cxf directory archive
22938 genfile --stat=name,size sparsefile
22939 cmp sparsefile directory/sparsefile
22941 echo sparse03.at:29 >"$at_check_line_file"
22944 if test -n "$at_traceon"; then
22945 echo 'Not enabling shell tracing (command contains an embedded newline)'
22948 if test -n "$at_trace_this"; then
22952 TEST_TAR_FORMAT=posix
22953 export TEST_TAR_FORMAT
22954 TAR_OPTIONS="-H posix"
22958 genfile --length 1000 --file begin
22959 genfile --length 1000 --file end
22960 genfile --sparse --file sparsefile --block-size 512 8G A || exit 77
22961 tar -c -f archive --sparse begin sparsefile end || exit 1
22967 tar Cxf directory archive
22968 genfile --stat=name,size sparsefile
22969 cmp sparsefile directory/sparsefile
22970 ) ) >"$at_stdout" 2>"$at_stder1"
22972 grep '^ *+' "$at_stder1" >&2
22973 grep -v '^ *+' "$at_stder1" >"$at_stderr"
22978 TEST_TAR_FORMAT=posix
22979 export TEST_TAR_FORMAT
22980 TAR_OPTIONS="-H posix"
22984 genfile --length 1000 --file begin
22985 genfile --length 1000 --file end
22986 genfile --sparse --file sparsefile --block-size 512 8G A || exit 77
22987 tar -c -f archive --sparse begin sparsefile end || exit 1
22993 tar Cxf directory archive
22994 genfile --stat=name,size sparsefile
22995 cmp sparsefile directory/sparsefile
22996 ) ) >"$at_stdout" 2>"$at_stderr"
23001 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
23002 echo stdout:; tee stdout <"$at_stdout"
23004 77) echo 77 > "$at_status_file"; exit 77;;
23006 *) echo "$at_srcdir/sparse03.at:29: exit code was $at_status, expected 0"
23009 if $at_failed; then
23012 echo 1 > "$at_status_file"
23021 cat >stdout.re <<'_ATEOF'
23023 -rw-r--r-- ^ ^ * *1000 0-90-90-90-9-0-90-9-0-90-9 0-90-9:0-90-9 begin
23024 -rw-r--r-- ^ ^ * *8589935104 0-90-90-90-9-0-90-9-0-90-9 0-90-9:0-90-9 sparsefile
23025 -rw-r--r-- ^ ^ * *1000 0-90-90-90-9-0-90-9-0-90-9 0-90-9:0-90-9 end
23027 sparsefile 8589935104
23030 awk '{print NR " " $0}' stdout > $$.1
23031 awk '{print NR " " $0}' stdout.re | join - $$.1 |
23032 while read NUM RE LINE
23034 echo "$LINE" | grep -- "$RE" >/dev/null || exit 1
23039 $at_times_p && times >"$at_times_file"
23040 ) 5>&1 2>&1 | eval $at_tee_pipe
23041 at_status=`cat "$at_status_file"`
23044 57 ) # 57. sparsemv.at:21: sparse files in MV archives
23045 at_setup_line='sparsemv.at:21'
23046 at_desc="sparse files in MV archives"
23047 $at_quiet $ECHO_N " 57: sparse files in MV archives $ECHO_C"
23049 test -f $XFAILFILE && at_xfail=yes
23050 echo "# -*- compilation -*-" >> "$at_group_log"
23052 echo "57. sparsemv.at:21: testing ..."
23057 # Check if sparse files are correctly split between GNU multi-volume
23059 # There are two cases: the file can be split within an empty (null) block,
23060 # or within a data block. Since null blocks are not archived, the first
23061 # case means the file is split between two consecutive data blocks.
23067 echo "$at_srcdir/sparsemv.at:31:
23070 TEST_TAR_FORMAT=gnu
23071 export TEST_TAR_FORMAT
23072 TAR_OPTIONS=\"-H gnu\"
23077 genfile --sparse --file sparsefile 0 ABCDEFGHIJK 1M ABCDEFGHI || exit 77
23078 echo \"Pass 1: Split between data blocks\"
23079 echo \"Create archive\"
23080 tar --sparse -c --record-size=512 -M -L6 -f arc.1 -f arc.2 sparsefile || exit 1
23081 echo \"Test archive\"
23082 tar -t -M -f arc.1 -f arc.2
23083 echo \"Compare archive\"
23084 tar -d -M -f arc.1 -f arc.2
23086 echo \"Pass 2: Split within a data block\"
23087 genfile --sparse --file sparsefile 0 ABCDEFGHIJ 1M ABCDEFGHI || exit 77
23088 echo \"Create archive\"
23089 tar --sparse -c --record-size=512 -M -L6 -f arc.1 -f arc.2 sparsefile || exit 1
23090 echo \"Test archive\"
23091 tar -t -M -f arc.1 -f arc.2
23092 echo \"Compare archive\"
23093 tar -d -M -f arc.1 -f arc.2
23095 echo sparsemv.at:31 >"$at_check_line_file"
23098 if test -n "$at_traceon"; then
23099 echo 'Not enabling shell tracing (command contains an embedded newline)'
23102 if test -n "$at_trace_this"; then
23106 TEST_TAR_FORMAT=gnu
23107 export TEST_TAR_FORMAT
23108 TAR_OPTIONS="-H gnu"
23113 genfile --sparse --file sparsefile 0 ABCDEFGHIJK 1M ABCDEFGHI || exit 77
23114 echo "Pass 1: Split between data blocks"
23115 echo "Create archive"
23116 tar --sparse -c --record-size=512 -M -L6 -f arc.1 -f arc.2 sparsefile || exit 1
23117 echo "Test archive"
23118 tar -t -M -f arc.1 -f arc.2
23119 echo "Compare archive"
23120 tar -d -M -f arc.1 -f arc.2
23122 echo "Pass 2: Split within a data block"
23123 genfile --sparse --file sparsefile 0 ABCDEFGHIJ 1M ABCDEFGHI || exit 77
23124 echo "Create archive"
23125 tar --sparse -c --record-size=512 -M -L6 -f arc.1 -f arc.2 sparsefile || exit 1
23126 echo "Test archive"
23127 tar -t -M -f arc.1 -f arc.2
23128 echo "Compare archive"
23129 tar -d -M -f arc.1 -f arc.2
23130 ) ) >"$at_stdout" 2>"$at_stder1"
23132 grep '^ *+' "$at_stder1" >&2
23133 grep -v '^ *+' "$at_stder1" >"$at_stderr"
23138 TEST_TAR_FORMAT=gnu
23139 export TEST_TAR_FORMAT
23140 TAR_OPTIONS="-H gnu"
23145 genfile --sparse --file sparsefile 0 ABCDEFGHIJK 1M ABCDEFGHI || exit 77
23146 echo "Pass 1: Split between data blocks"
23147 echo "Create archive"
23148 tar --sparse -c --record-size=512 -M -L6 -f arc.1 -f arc.2 sparsefile || exit 1
23149 echo "Test archive"
23150 tar -t -M -f arc.1 -f arc.2
23151 echo "Compare archive"
23152 tar -d -M -f arc.1 -f arc.2
23154 echo "Pass 2: Split within a data block"
23155 genfile --sparse --file sparsefile 0 ABCDEFGHIJ 1M ABCDEFGHI || exit 77
23156 echo "Create archive"
23157 tar --sparse -c --record-size=512 -M -L6 -f arc.1 -f arc.2 sparsefile || exit 1
23158 echo "Test archive"
23159 tar -t -M -f arc.1 -f arc.2
23160 echo "Compare archive"
23161 tar -d -M -f arc.1 -f arc.2
23162 ) ) >"$at_stdout" 2>"$at_stderr"
23167 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
23168 echo >>"$at_stdout"; echo "Pass 1: Split between data blocks
23173 Pass 2: Split within a data block
23178 " | $at_diff - "$at_stdout" || at_failed=:
23180 77) echo 77 > "$at_status_file"; exit 77;;
23182 *) echo "$at_srcdir/sparsemv.at:31: exit code was $at_status, expected 0"
23185 if $at_failed; then
23188 echo 1 > "$at_status_file"
23194 echo "$at_srcdir/sparsemv.at:31:
23197 TEST_TAR_FORMAT=oldgnu
23198 export TEST_TAR_FORMAT
23199 TAR_OPTIONS=\"-H oldgnu\"
23204 genfile --sparse --file sparsefile 0 ABCDEFGHIJK 1M ABCDEFGHI || exit 77
23205 echo \"Pass 1: Split between data blocks\"
23206 echo \"Create archive\"
23207 tar --sparse -c --record-size=512 -M -L6 -f arc.1 -f arc.2 sparsefile || exit 1
23208 echo \"Test archive\"
23209 tar -t -M -f arc.1 -f arc.2
23210 echo \"Compare archive\"
23211 tar -d -M -f arc.1 -f arc.2
23213 echo \"Pass 2: Split within a data block\"
23214 genfile --sparse --file sparsefile 0 ABCDEFGHIJ 1M ABCDEFGHI || exit 77
23215 echo \"Create archive\"
23216 tar --sparse -c --record-size=512 -M -L6 -f arc.1 -f arc.2 sparsefile || exit 1
23217 echo \"Test archive\"
23218 tar -t -M -f arc.1 -f arc.2
23219 echo \"Compare archive\"
23220 tar -d -M -f arc.1 -f arc.2
23222 echo sparsemv.at:31 >"$at_check_line_file"
23225 if test -n "$at_traceon"; then
23226 echo 'Not enabling shell tracing (command contains an embedded newline)'
23229 if test -n "$at_trace_this"; then
23233 TEST_TAR_FORMAT=oldgnu
23234 export TEST_TAR_FORMAT
23235 TAR_OPTIONS="-H oldgnu"
23240 genfile --sparse --file sparsefile 0 ABCDEFGHIJK 1M ABCDEFGHI || exit 77
23241 echo "Pass 1: Split between data blocks"
23242 echo "Create archive"
23243 tar --sparse -c --record-size=512 -M -L6 -f arc.1 -f arc.2 sparsefile || exit 1
23244 echo "Test archive"
23245 tar -t -M -f arc.1 -f arc.2
23246 echo "Compare archive"
23247 tar -d -M -f arc.1 -f arc.2
23249 echo "Pass 2: Split within a data block"
23250 genfile --sparse --file sparsefile 0 ABCDEFGHIJ 1M ABCDEFGHI || exit 77
23251 echo "Create archive"
23252 tar --sparse -c --record-size=512 -M -L6 -f arc.1 -f arc.2 sparsefile || exit 1
23253 echo "Test archive"
23254 tar -t -M -f arc.1 -f arc.2
23255 echo "Compare archive"
23256 tar -d -M -f arc.1 -f arc.2
23257 ) ) >"$at_stdout" 2>"$at_stder1"
23259 grep '^ *+' "$at_stder1" >&2
23260 grep -v '^ *+' "$at_stder1" >"$at_stderr"
23265 TEST_TAR_FORMAT=oldgnu
23266 export TEST_TAR_FORMAT
23267 TAR_OPTIONS="-H oldgnu"
23272 genfile --sparse --file sparsefile 0 ABCDEFGHIJK 1M ABCDEFGHI || exit 77
23273 echo "Pass 1: Split between data blocks"
23274 echo "Create archive"
23275 tar --sparse -c --record-size=512 -M -L6 -f arc.1 -f arc.2 sparsefile || exit 1
23276 echo "Test archive"
23277 tar -t -M -f arc.1 -f arc.2
23278 echo "Compare archive"
23279 tar -d -M -f arc.1 -f arc.2
23281 echo "Pass 2: Split within a data block"
23282 genfile --sparse --file sparsefile 0 ABCDEFGHIJ 1M ABCDEFGHI || exit 77
23283 echo "Create archive"
23284 tar --sparse -c --record-size=512 -M -L6 -f arc.1 -f arc.2 sparsefile || exit 1
23285 echo "Test archive"
23286 tar -t -M -f arc.1 -f arc.2
23287 echo "Compare archive"
23288 tar -d -M -f arc.1 -f arc.2
23289 ) ) >"$at_stdout" 2>"$at_stderr"
23294 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
23295 echo >>"$at_stdout"; echo "Pass 1: Split between data blocks
23300 Pass 2: Split within a data block
23305 " | $at_diff - "$at_stdout" || at_failed=:
23307 77) echo 77 > "$at_status_file"; exit 77;;
23309 *) echo "$at_srcdir/sparsemv.at:31: exit code was $at_status, expected 0"
23312 if $at_failed; then
23315 echo 1 > "$at_status_file"
23324 $at_times_p && times >"$at_times_file"
23325 ) 5>&1 2>&1 | eval $at_tee_pipe
23326 at_status=`cat "$at_status_file"`
23329 58 ) # 58. spmvp00.at:21: sparse files in PAX MV archives, v.0.0
23330 at_setup_line='spmvp00.at:21'
23331 at_desc="sparse files in PAX MV archives, v.0.0"
23332 $at_quiet $ECHO_N " 58: sparse files in PAX MV archives, v.0.0 $ECHO_C"
23334 test -f $XFAILFILE && at_xfail=yes
23335 echo "# -*- compilation -*-" >> "$at_group_log"
23337 echo "58. spmvp00.at:21: testing ..."
23346 echo "$at_srcdir/spmvp00.at:24:
23349 TEST_TAR_FORMAT=pax
23350 export TEST_TAR_FORMAT
23351 TAR_OPTIONS=\"-H pax\"
23356 genfile --sparse --file sparsefile 0 ABCDEFGHI 1M ABCDEFGHI || exit 77
23357 echo \"Pass 1: Split between data blocks\"
23358 echo \"Create archive\"
23359 tar --sparse --sparse-version=0.0 -c --record-size=512 -M -L6 -f arc.1 -f arc.2 -f arc.3 sparsefile
23360 echo \"Test archive\"
23361 tar -t -M -f arc.1 -f arc.2 -f arc.3
23362 echo \"Compare archive\"
23363 tar -d -M -f arc.1 -f arc.2 -f arc.3
23365 echo \"Pass 2: Split within a data block\"
23366 genfile --sparse --file sparsefile 0 ABCDEFGH 1M ABCDEFGHI || exit 77
23367 echo \"Create archive\"
23368 tar --sparse --sparse-version=0.0 -c --record-size=512 -M -L6 -f arc.1 -f arc.2 -f arc.3 sparsefile
23369 echo \"Test archive\"
23370 tar -t -M -f arc.1 -f arc.2 -f arc.3
23371 echo \"Compare archive\"
23372 tar -d -M -f arc.1 -f arc.2 -f arc.3
23374 echo spmvp00.at:24 >"$at_check_line_file"
23377 if test -n "$at_traceon"; then
23378 echo 'Not enabling shell tracing (command contains an embedded newline)'
23381 if test -n "$at_trace_this"; then
23385 TEST_TAR_FORMAT=pax
23386 export TEST_TAR_FORMAT
23387 TAR_OPTIONS="-H pax"
23392 genfile --sparse --file sparsefile 0 ABCDEFGHI 1M ABCDEFGHI || exit 77
23393 echo "Pass 1: Split between data blocks"
23394 echo "Create archive"
23395 tar --sparse --sparse-version=0.0 -c --record-size=512 -M -L6 -f arc.1 -f arc.2 -f arc.3 sparsefile
23396 echo "Test archive"
23397 tar -t -M -f arc.1 -f arc.2 -f arc.3
23398 echo "Compare archive"
23399 tar -d -M -f arc.1 -f arc.2 -f arc.3
23401 echo "Pass 2: Split within a data block"
23402 genfile --sparse --file sparsefile 0 ABCDEFGH 1M ABCDEFGHI || exit 77
23403 echo "Create archive"
23404 tar --sparse --sparse-version=0.0 -c --record-size=512 -M -L6 -f arc.1 -f arc.2 -f arc.3 sparsefile
23405 echo "Test archive"
23406 tar -t -M -f arc.1 -f arc.2 -f arc.3
23407 echo "Compare archive"
23408 tar -d -M -f arc.1 -f arc.2 -f arc.3
23409 ) ) >"$at_stdout" 2>"$at_stder1"
23411 grep '^ *+' "$at_stder1" >&2
23412 grep -v '^ *+' "$at_stder1" >"$at_stderr"
23417 TEST_TAR_FORMAT=pax
23418 export TEST_TAR_FORMAT
23419 TAR_OPTIONS="-H pax"
23424 genfile --sparse --file sparsefile 0 ABCDEFGHI 1M ABCDEFGHI || exit 77
23425 echo "Pass 1: Split between data blocks"
23426 echo "Create archive"
23427 tar --sparse --sparse-version=0.0 -c --record-size=512 -M -L6 -f arc.1 -f arc.2 -f arc.3 sparsefile
23428 echo "Test archive"
23429 tar -t -M -f arc.1 -f arc.2 -f arc.3
23430 echo "Compare archive"
23431 tar -d -M -f arc.1 -f arc.2 -f arc.3
23433 echo "Pass 2: Split within a data block"
23434 genfile --sparse --file sparsefile 0 ABCDEFGH 1M ABCDEFGHI || exit 77
23435 echo "Create archive"
23436 tar --sparse --sparse-version=0.0 -c --record-size=512 -M -L6 -f arc.1 -f arc.2 -f arc.3 sparsefile
23437 echo "Test archive"
23438 tar -t -M -f arc.1 -f arc.2 -f arc.3
23439 echo "Compare archive"
23440 tar -d -M -f arc.1 -f arc.2 -f arc.3
23441 ) ) >"$at_stdout" 2>"$at_stderr"
23446 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
23447 echo >>"$at_stdout"; echo "Pass 1: Split between data blocks
23452 Pass 2: Split within a data block
23457 " | $at_diff - "$at_stdout" || at_failed=:
23459 77) echo 77 > "$at_status_file"; exit 77;;
23461 *) echo "$at_srcdir/spmvp00.at:24: exit code was $at_status, expected 0"
23464 if $at_failed; then
23467 echo 1 > "$at_status_file"
23476 $at_times_p && times >"$at_times_file"
23477 ) 5>&1 2>&1 | eval $at_tee_pipe
23478 at_status=`cat "$at_status_file"`
23481 59 ) # 59. spmvp01.at:21: sparse files in PAX MV archives, v.0.1
23482 at_setup_line='spmvp01.at:21'
23483 at_desc="sparse files in PAX MV archives, v.0.1"
23484 $at_quiet $ECHO_N " 59: sparse files in PAX MV archives, v.0.1 $ECHO_C"
23486 test -f $XFAILFILE && at_xfail=yes
23487 echo "# -*- compilation -*-" >> "$at_group_log"
23489 echo "59. spmvp01.at:21: testing ..."
23498 echo "$at_srcdir/spmvp01.at:24:
23501 TEST_TAR_FORMAT=pax
23502 export TEST_TAR_FORMAT
23503 TAR_OPTIONS=\"-H pax\"
23508 genfile --sparse --file sparsefile 0 ABCDEFGHIJK 1M ABCDEFGHI || exit 77
23509 echo \"Pass 1: Split between data blocks\"
23510 echo \"Create archive\"
23511 tar --sparse --sparse-version=0.1 -c --record-size=512 -M -L6 -f arc.1 -f arc.2 -f arc.3 sparsefile
23512 echo \"Test archive\"
23513 tar -t -M -f arc.1 -f arc.2 -f arc.3
23514 echo \"Compare archive\"
23515 tar -d -M -f arc.1 -f arc.2 -f arc.3
23517 echo \"Pass 2: Split within a data block\"
23518 genfile --sparse --file sparsefile 0 ABCDEFGHIJ 1M ABCDEFGHI || exit 77
23519 echo \"Create archive\"
23520 tar --sparse --sparse-version=0.1 -c --record-size=512 -M -L6 -f arc.1 -f arc.2 -f arc.3 sparsefile
23521 echo \"Test archive\"
23522 tar -t -M -f arc.1 -f arc.2 -f arc.3
23523 echo \"Compare archive\"
23524 tar -d -M -f arc.1 -f arc.2 -f arc.3
23526 echo spmvp01.at:24 >"$at_check_line_file"
23529 if test -n "$at_traceon"; then
23530 echo 'Not enabling shell tracing (command contains an embedded newline)'
23533 if test -n "$at_trace_this"; then
23537 TEST_TAR_FORMAT=pax
23538 export TEST_TAR_FORMAT
23539 TAR_OPTIONS="-H pax"
23544 genfile --sparse --file sparsefile 0 ABCDEFGHIJK 1M ABCDEFGHI || exit 77
23545 echo "Pass 1: Split between data blocks"
23546 echo "Create archive"
23547 tar --sparse --sparse-version=0.1 -c --record-size=512 -M -L6 -f arc.1 -f arc.2 -f arc.3 sparsefile
23548 echo "Test archive"
23549 tar -t -M -f arc.1 -f arc.2 -f arc.3
23550 echo "Compare archive"
23551 tar -d -M -f arc.1 -f arc.2 -f arc.3
23553 echo "Pass 2: Split within a data block"
23554 genfile --sparse --file sparsefile 0 ABCDEFGHIJ 1M ABCDEFGHI || exit 77
23555 echo "Create archive"
23556 tar --sparse --sparse-version=0.1 -c --record-size=512 -M -L6 -f arc.1 -f arc.2 -f arc.3 sparsefile
23557 echo "Test archive"
23558 tar -t -M -f arc.1 -f arc.2 -f arc.3
23559 echo "Compare archive"
23560 tar -d -M -f arc.1 -f arc.2 -f arc.3
23561 ) ) >"$at_stdout" 2>"$at_stder1"
23563 grep '^ *+' "$at_stder1" >&2
23564 grep -v '^ *+' "$at_stder1" >"$at_stderr"
23569 TEST_TAR_FORMAT=pax
23570 export TEST_TAR_FORMAT
23571 TAR_OPTIONS="-H pax"
23576 genfile --sparse --file sparsefile 0 ABCDEFGHIJK 1M ABCDEFGHI || exit 77
23577 echo "Pass 1: Split between data blocks"
23578 echo "Create archive"
23579 tar --sparse --sparse-version=0.1 -c --record-size=512 -M -L6 -f arc.1 -f arc.2 -f arc.3 sparsefile
23580 echo "Test archive"
23581 tar -t -M -f arc.1 -f arc.2 -f arc.3
23582 echo "Compare archive"
23583 tar -d -M -f arc.1 -f arc.2 -f arc.3
23585 echo "Pass 2: Split within a data block"
23586 genfile --sparse --file sparsefile 0 ABCDEFGHIJ 1M ABCDEFGHI || exit 77
23587 echo "Create archive"
23588 tar --sparse --sparse-version=0.1 -c --record-size=512 -M -L6 -f arc.1 -f arc.2 -f arc.3 sparsefile
23589 echo "Test archive"
23590 tar -t -M -f arc.1 -f arc.2 -f arc.3
23591 echo "Compare archive"
23592 tar -d -M -f arc.1 -f arc.2 -f arc.3
23593 ) ) >"$at_stdout" 2>"$at_stderr"
23598 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
23599 echo >>"$at_stdout"; echo "Pass 1: Split between data blocks
23604 Pass 2: Split within a data block
23609 " | $at_diff - "$at_stdout" || at_failed=:
23611 77) echo 77 > "$at_status_file"; exit 77;;
23613 *) echo "$at_srcdir/spmvp01.at:24: exit code was $at_status, expected 0"
23616 if $at_failed; then
23619 echo 1 > "$at_status_file"
23628 $at_times_p && times >"$at_times_file"
23629 ) 5>&1 2>&1 | eval $at_tee_pipe
23630 at_status=`cat "$at_status_file"`
23633 60 ) # 60. spmvp10.at:21: sparse files in PAX MV archives, v.1.0
23634 at_setup_line='spmvp10.at:21'
23635 at_desc="sparse files in PAX MV archives, v.1.0"
23636 $at_quiet $ECHO_N " 60: sparse files in PAX MV archives, v.1.0 $ECHO_C"
23638 test -f $XFAILFILE && at_xfail=yes
23639 echo "# -*- compilation -*-" >> "$at_group_log"
23641 echo "60. spmvp10.at:21: testing ..."
23650 echo "$at_srcdir/spmvp10.at:24:
23653 TEST_TAR_FORMAT=pax
23654 export TEST_TAR_FORMAT
23655 TAR_OPTIONS=\"-H pax\"
23660 genfile --sparse --file sparsefile 0 ABCDEFGH 1M ABCDEFGHI || exit 77
23661 echo \"Pass 1: Split between data blocks\"
23662 echo \"Create archive\"
23663 tar --sparse --sparse-version=1.0 -c --record-size=512 -M -L6 -f arc.1 -f arc.2 -f arc.3 sparsefile
23664 echo \"Test archive\"
23665 tar -t -M -f arc.1 -f arc.2 -f arc.3
23666 echo \"Compare archive\"
23667 tar -d -M -f arc.1 -f arc.2 -f arc.3
23669 echo \"Pass 2: Split within a data block\"
23670 genfile --sparse --file sparsefile 0 ABCDEFG 1M ABCDEFGHI || exit 77
23671 echo \"Create archive\"
23672 tar --sparse --sparse-version=1.0 -c --record-size=512 -M -L6 -f arc.1 -f arc.2 -f arc.3 sparsefile
23673 echo \"Test archive\"
23674 tar -t -M -f arc.1 -f arc.2 -f arc.3
23675 echo \"Compare archive\"
23676 tar -d -M -f arc.1 -f arc.2 -f arc.3
23678 echo spmvp10.at:24 >"$at_check_line_file"
23681 if test -n "$at_traceon"; then
23682 echo 'Not enabling shell tracing (command contains an embedded newline)'
23685 if test -n "$at_trace_this"; then
23689 TEST_TAR_FORMAT=pax
23690 export TEST_TAR_FORMAT
23691 TAR_OPTIONS="-H pax"
23696 genfile --sparse --file sparsefile 0 ABCDEFGH 1M ABCDEFGHI || exit 77
23697 echo "Pass 1: Split between data blocks"
23698 echo "Create archive"
23699 tar --sparse --sparse-version=1.0 -c --record-size=512 -M -L6 -f arc.1 -f arc.2 -f arc.3 sparsefile
23700 echo "Test archive"
23701 tar -t -M -f arc.1 -f arc.2 -f arc.3
23702 echo "Compare archive"
23703 tar -d -M -f arc.1 -f arc.2 -f arc.3
23705 echo "Pass 2: Split within a data block"
23706 genfile --sparse --file sparsefile 0 ABCDEFG 1M ABCDEFGHI || exit 77
23707 echo "Create archive"
23708 tar --sparse --sparse-version=1.0 -c --record-size=512 -M -L6 -f arc.1 -f arc.2 -f arc.3 sparsefile
23709 echo "Test archive"
23710 tar -t -M -f arc.1 -f arc.2 -f arc.3
23711 echo "Compare archive"
23712 tar -d -M -f arc.1 -f arc.2 -f arc.3
23713 ) ) >"$at_stdout" 2>"$at_stder1"
23715 grep '^ *+' "$at_stder1" >&2
23716 grep -v '^ *+' "$at_stder1" >"$at_stderr"
23721 TEST_TAR_FORMAT=pax
23722 export TEST_TAR_FORMAT
23723 TAR_OPTIONS="-H pax"
23728 genfile --sparse --file sparsefile 0 ABCDEFGH 1M ABCDEFGHI || exit 77
23729 echo "Pass 1: Split between data blocks"
23730 echo "Create archive"
23731 tar --sparse --sparse-version=1.0 -c --record-size=512 -M -L6 -f arc.1 -f arc.2 -f arc.3 sparsefile
23732 echo "Test archive"
23733 tar -t -M -f arc.1 -f arc.2 -f arc.3
23734 echo "Compare archive"
23735 tar -d -M -f arc.1 -f arc.2 -f arc.3
23737 echo "Pass 2: Split within a data block"
23738 genfile --sparse --file sparsefile 0 ABCDEFG 1M ABCDEFGHI || exit 77
23739 echo "Create archive"
23740 tar --sparse --sparse-version=1.0 -c --record-size=512 -M -L6 -f arc.1 -f arc.2 -f arc.3 sparsefile
23741 echo "Test archive"
23742 tar -t -M -f arc.1 -f arc.2 -f arc.3
23743 echo "Compare archive"
23744 tar -d -M -f arc.1 -f arc.2 -f arc.3
23745 ) ) >"$at_stdout" 2>"$at_stderr"
23750 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
23751 echo >>"$at_stdout"; echo "Pass 1: Split between data blocks
23756 Pass 2: Split within a data block
23761 " | $at_diff - "$at_stdout" || at_failed=:
23763 77) echo 77 > "$at_status_file"; exit 77;;
23765 *) echo "$at_srcdir/spmvp10.at:24: exit code was $at_status, expected 0"
23768 if $at_failed; then
23771 echo 1 > "$at_status_file"
23780 $at_times_p && times >"$at_times_file"
23781 ) 5>&1 2>&1 | eval $at_tee_pipe
23782 at_status=`cat "$at_status_file"`
23785 61 ) # 61. update.at:27: update unchanged directories
23786 at_setup_line='update.at:27'
23787 at_desc="update unchanged directories"
23788 $at_quiet $ECHO_N " 61: update unchanged directories $ECHO_C"
23790 test -f $XFAILFILE && at_xfail=yes
23791 echo "# -*- compilation -*-" >> "$at_group_log"
23793 echo "61. update.at:27: testing ..."
23801 echo "$at_srcdir/update.at:30:
23805 export TEST_TAR_FORMAT
23806 TAR_OPTIONS=\"-H v7\"
23811 test -z "`sort < /dev/null 2>&1`" || exit 77
23814 genfile --length 10240 --pattern zeros --file directory/file1
23815 genfile --length 10240 --pattern default --file directory/file2
23817 tar cf archive directory || exit 1
23819 tar uf archive directory || exit 1
23821 tar tf archive | sort || exit 1
23823 echo update.at:30 >"$at_check_line_file"
23826 if test -n "$at_traceon"; then
23827 echo 'Not enabling shell tracing (command contains an embedded newline)'
23830 if test -n "$at_trace_this"; then
23835 export TEST_TAR_FORMAT
23836 TAR_OPTIONS="-H v7"
23841 test -z "`sort < /dev/null 2>&1`" || exit 77
23844 genfile --length 10240 --pattern zeros --file directory/file1
23845 genfile --length 10240 --pattern default --file directory/file2
23847 tar cf archive directory || exit 1
23849 tar uf archive directory || exit 1
23851 tar tf archive | sort || exit 1
23852 ) ) >"$at_stdout" 2>"$at_stder1"
23854 grep '^ *+' "$at_stder1" >&2
23855 grep -v '^ *+' "$at_stder1" >"$at_stderr"
23861 export TEST_TAR_FORMAT
23862 TAR_OPTIONS="-H v7"
23867 test -z "`sort < /dev/null 2>&1`" || exit 77
23870 genfile --length 10240 --pattern zeros --file directory/file1
23871 genfile --length 10240 --pattern default --file directory/file2
23873 tar cf archive directory || exit 1
23875 tar uf archive directory || exit 1
23877 tar tf archive | sort || exit 1
23878 ) ) >"$at_stdout" 2>"$at_stderr"
23883 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
23884 echo >>"$at_stdout"; echo "separator
23889 " | $at_diff - "$at_stdout" || at_failed=:
23891 77) echo 77 > "$at_status_file"; exit 77;;
23893 *) echo "$at_srcdir/update.at:30: exit code was $at_status, expected 0"
23896 if $at_failed; then
23899 echo 1 > "$at_status_file"
23905 echo "$at_srcdir/update.at:30:
23908 TEST_TAR_FORMAT=oldgnu
23909 export TEST_TAR_FORMAT
23910 TAR_OPTIONS=\"-H oldgnu\"
23915 test -z "`sort < /dev/null 2>&1`" || exit 77
23918 genfile --length 10240 --pattern zeros --file directory/file1
23919 genfile --length 10240 --pattern default --file directory/file2
23921 tar cf archive directory || exit 1
23923 tar uf archive directory || exit 1
23925 tar tf archive | sort || exit 1
23927 echo update.at:30 >"$at_check_line_file"
23930 if test -n "$at_traceon"; then
23931 echo 'Not enabling shell tracing (command contains an embedded newline)'
23934 if test -n "$at_trace_this"; then
23938 TEST_TAR_FORMAT=oldgnu
23939 export TEST_TAR_FORMAT
23940 TAR_OPTIONS="-H oldgnu"
23945 test -z "`sort < /dev/null 2>&1`" || exit 77
23948 genfile --length 10240 --pattern zeros --file directory/file1
23949 genfile --length 10240 --pattern default --file directory/file2
23951 tar cf archive directory || exit 1
23953 tar uf archive directory || exit 1
23955 tar tf archive | sort || exit 1
23956 ) ) >"$at_stdout" 2>"$at_stder1"
23958 grep '^ *+' "$at_stder1" >&2
23959 grep -v '^ *+' "$at_stder1" >"$at_stderr"
23964 TEST_TAR_FORMAT=oldgnu
23965 export TEST_TAR_FORMAT
23966 TAR_OPTIONS="-H oldgnu"
23971 test -z "`sort < /dev/null 2>&1`" || exit 77
23974 genfile --length 10240 --pattern zeros --file directory/file1
23975 genfile --length 10240 --pattern default --file directory/file2
23977 tar cf archive directory || exit 1
23979 tar uf archive directory || exit 1
23981 tar tf archive | sort || exit 1
23982 ) ) >"$at_stdout" 2>"$at_stderr"
23987 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
23988 echo >>"$at_stdout"; echo "separator
23993 " | $at_diff - "$at_stdout" || at_failed=:
23995 77) echo 77 > "$at_status_file"; exit 77;;
23997 *) echo "$at_srcdir/update.at:30: exit code was $at_status, expected 0"
24000 if $at_failed; then
24003 echo 1 > "$at_status_file"
24009 echo "$at_srcdir/update.at:30:
24012 TEST_TAR_FORMAT=ustar
24013 export TEST_TAR_FORMAT
24014 TAR_OPTIONS=\"-H ustar\"
24019 test -z "`sort < /dev/null 2>&1`" || exit 77
24022 genfile --length 10240 --pattern zeros --file directory/file1
24023 genfile --length 10240 --pattern default --file directory/file2
24025 tar cf archive directory || exit 1
24027 tar uf archive directory || exit 1
24029 tar tf archive | sort || exit 1
24031 echo update.at:30 >"$at_check_line_file"
24034 if test -n "$at_traceon"; then
24035 echo 'Not enabling shell tracing (command contains an embedded newline)'
24038 if test -n "$at_trace_this"; then
24042 TEST_TAR_FORMAT=ustar
24043 export TEST_TAR_FORMAT
24044 TAR_OPTIONS="-H ustar"
24049 test -z "`sort < /dev/null 2>&1`" || exit 77
24052 genfile --length 10240 --pattern zeros --file directory/file1
24053 genfile --length 10240 --pattern default --file directory/file2
24055 tar cf archive directory || exit 1
24057 tar uf archive directory || exit 1
24059 tar tf archive | sort || exit 1
24060 ) ) >"$at_stdout" 2>"$at_stder1"
24062 grep '^ *+' "$at_stder1" >&2
24063 grep -v '^ *+' "$at_stder1" >"$at_stderr"
24068 TEST_TAR_FORMAT=ustar
24069 export TEST_TAR_FORMAT
24070 TAR_OPTIONS="-H ustar"
24075 test -z "`sort < /dev/null 2>&1`" || exit 77
24078 genfile --length 10240 --pattern zeros --file directory/file1
24079 genfile --length 10240 --pattern default --file directory/file2
24081 tar cf archive directory || exit 1
24083 tar uf archive directory || exit 1
24085 tar tf archive | sort || exit 1
24086 ) ) >"$at_stdout" 2>"$at_stderr"
24091 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
24092 echo >>"$at_stdout"; echo "separator
24097 " | $at_diff - "$at_stdout" || at_failed=:
24099 77) echo 77 > "$at_status_file"; exit 77;;
24101 *) echo "$at_srcdir/update.at:30: exit code was $at_status, expected 0"
24104 if $at_failed; then
24107 echo 1 > "$at_status_file"
24113 echo "$at_srcdir/update.at:30:
24116 TEST_TAR_FORMAT=posix
24117 export TEST_TAR_FORMAT
24118 TAR_OPTIONS=\"-H posix\"
24123 test -z "`sort < /dev/null 2>&1`" || exit 77
24126 genfile --length 10240 --pattern zeros --file directory/file1
24127 genfile --length 10240 --pattern default --file directory/file2
24129 tar cf archive directory || exit 1
24131 tar uf archive directory || exit 1
24133 tar tf archive | sort || exit 1
24135 echo update.at:30 >"$at_check_line_file"
24138 if test -n "$at_traceon"; then
24139 echo 'Not enabling shell tracing (command contains an embedded newline)'
24142 if test -n "$at_trace_this"; then
24146 TEST_TAR_FORMAT=posix
24147 export TEST_TAR_FORMAT
24148 TAR_OPTIONS="-H posix"
24153 test -z "`sort < /dev/null 2>&1`" || exit 77
24156 genfile --length 10240 --pattern zeros --file directory/file1
24157 genfile --length 10240 --pattern default --file directory/file2
24159 tar cf archive directory || exit 1
24161 tar uf archive directory || exit 1
24163 tar tf archive | sort || exit 1
24164 ) ) >"$at_stdout" 2>"$at_stder1"
24166 grep '^ *+' "$at_stder1" >&2
24167 grep -v '^ *+' "$at_stder1" >"$at_stderr"
24172 TEST_TAR_FORMAT=posix
24173 export TEST_TAR_FORMAT
24174 TAR_OPTIONS="-H posix"
24179 test -z "`sort < /dev/null 2>&1`" || exit 77
24182 genfile --length 10240 --pattern zeros --file directory/file1
24183 genfile --length 10240 --pattern default --file directory/file2
24185 tar cf archive directory || exit 1
24187 tar uf archive directory || exit 1
24189 tar tf archive | sort || exit 1
24190 ) ) >"$at_stdout" 2>"$at_stderr"
24195 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
24196 echo >>"$at_stdout"; echo "separator
24201 " | $at_diff - "$at_stdout" || at_failed=:
24203 77) echo 77 > "$at_status_file"; exit 77;;
24205 *) echo "$at_srcdir/update.at:30: exit code was $at_status, expected 0"
24208 if $at_failed; then
24211 echo 1 > "$at_status_file"
24217 echo "$at_srcdir/update.at:30:
24220 TEST_TAR_FORMAT=gnu
24221 export TEST_TAR_FORMAT
24222 TAR_OPTIONS=\"-H gnu\"
24227 test -z "`sort < /dev/null 2>&1`" || exit 77
24230 genfile --length 10240 --pattern zeros --file directory/file1
24231 genfile --length 10240 --pattern default --file directory/file2
24233 tar cf archive directory || exit 1
24235 tar uf archive directory || exit 1
24237 tar tf archive | sort || exit 1
24239 echo update.at:30 >"$at_check_line_file"
24242 if test -n "$at_traceon"; then
24243 echo 'Not enabling shell tracing (command contains an embedded newline)'
24246 if test -n "$at_trace_this"; then
24250 TEST_TAR_FORMAT=gnu
24251 export TEST_TAR_FORMAT
24252 TAR_OPTIONS="-H gnu"
24257 test -z "`sort < /dev/null 2>&1`" || exit 77
24260 genfile --length 10240 --pattern zeros --file directory/file1
24261 genfile --length 10240 --pattern default --file directory/file2
24263 tar cf archive directory || exit 1
24265 tar uf archive directory || exit 1
24267 tar tf archive | sort || exit 1
24268 ) ) >"$at_stdout" 2>"$at_stder1"
24270 grep '^ *+' "$at_stder1" >&2
24271 grep -v '^ *+' "$at_stder1" >"$at_stderr"
24276 TEST_TAR_FORMAT=gnu
24277 export TEST_TAR_FORMAT
24278 TAR_OPTIONS="-H gnu"
24283 test -z "`sort < /dev/null 2>&1`" || exit 77
24286 genfile --length 10240 --pattern zeros --file directory/file1
24287 genfile --length 10240 --pattern default --file directory/file2
24289 tar cf archive directory || exit 1
24291 tar uf archive directory || exit 1
24293 tar tf archive | sort || exit 1
24294 ) ) >"$at_stdout" 2>"$at_stderr"
24299 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
24300 echo >>"$at_stdout"; echo "separator
24305 " | $at_diff - "$at_stdout" || at_failed=:
24307 77) echo 77 > "$at_status_file"; exit 77;;
24309 *) echo "$at_srcdir/update.at:30: exit code was $at_status, expected 0"
24312 if $at_failed; then
24315 echo 1 > "$at_status_file"
24324 $at_times_p && times >"$at_times_file"
24325 ) 5>&1 2>&1 | eval $at_tee_pipe
24326 at_status=`cat "$at_status_file"`
24329 62 ) # 62. volume.at:23: volume
24330 at_setup_line='volume.at:23'
24332 $at_quiet $ECHO_N " 62: volume $ECHO_C"
24334 test -f $XFAILFILE && at_xfail=yes
24335 echo "# -*- compilation -*-" >> "$at_group_log"
24337 echo "62. volume.at:23: testing ..."
24345 echo "$at_srcdir/volume.at:26:
24348 TEST_TAR_FORMAT=gnu
24349 export TEST_TAR_FORMAT
24350 TAR_OPTIONS=\"-H gnu\"
24354 tar -cf archive -V label -T /dev/null || exit 1
24356 tar xfV archive label || exit 1
24357 tar xfV archive 'la?el' || exit 1
24358 tar xfV archive 'l*l' || exit 1
24361 tar xfV archive lab
24362 test \$? = 2 || exit 1
24364 tar xfV archive bel
24365 test \$? = 2 || exit 1
24367 tar xfV archive babel
24370 echo volume.at:26 >"$at_check_line_file"
24373 if test -n "$at_traceon"; then
24374 echo 'Not enabling shell tracing (command contains an embedded newline)'
24377 if test -n "$at_trace_this"; then
24381 TEST_TAR_FORMAT=gnu
24382 export TEST_TAR_FORMAT
24383 TAR_OPTIONS="-H gnu"
24387 tar -cf archive -V label -T /dev/null || exit 1
24389 tar xfV archive label || exit 1
24390 tar xfV archive 'la?el' || exit 1
24391 tar xfV archive 'l*l' || exit 1
24394 tar xfV archive lab
24395 test $? = 2 || exit 1
24397 tar xfV archive bel
24398 test $? = 2 || exit 1
24400 tar xfV archive babel
24402 ) ) >"$at_stdout" 2>"$at_stder1"
24404 grep '^ *+' "$at_stder1" >&2
24405 grep -v '^ *+' "$at_stder1" >"$at_stderr"
24410 TEST_TAR_FORMAT=gnu
24411 export TEST_TAR_FORMAT
24412 TAR_OPTIONS="-H gnu"
24416 tar -cf archive -V label -T /dev/null || exit 1
24418 tar xfV archive label || exit 1
24419 tar xfV archive 'la?el' || exit 1
24420 tar xfV archive 'l*l' || exit 1
24423 tar xfV archive lab
24424 test $? = 2 || exit 1
24426 tar xfV archive bel
24427 test $? = 2 || exit 1
24429 tar xfV archive babel
24431 ) ) >"$at_stdout" 2>"$at_stderr"
24436 echo >>"$at_stderr"; echo "-----
24437 tar: Volume \`label' does not match \`lab'
24438 tar: Error is not recoverable: exiting now
24440 tar: Volume \`label' does not match \`bel'
24441 tar: Error is not recoverable: exiting now
24443 tar: Volume \`label' does not match \`babel'
24444 tar: Error is not recoverable: exiting now
24445 " | $at_diff - "$at_stderr" || at_failed=:
24446 $at_diff "$at_devnull" "$at_stdout" || at_failed=:
24448 77) echo 77 > "$at_status_file"; exit 77;;
24450 *) echo "$at_srcdir/volume.at:26: exit code was $at_status, expected 0"
24453 if $at_failed; then
24456 echo 1 > "$at_status_file"
24462 echo "$at_srcdir/volume.at:26:
24465 TEST_TAR_FORMAT=oldgnu
24466 export TEST_TAR_FORMAT
24467 TAR_OPTIONS=\"-H oldgnu\"
24471 tar -cf archive -V label -T /dev/null || exit 1
24473 tar xfV archive label || exit 1
24474 tar xfV archive 'la?el' || exit 1
24475 tar xfV archive 'l*l' || exit 1
24478 tar xfV archive lab
24479 test \$? = 2 || exit 1
24481 tar xfV archive bel
24482 test \$? = 2 || exit 1
24484 tar xfV archive babel
24487 echo volume.at:26 >"$at_check_line_file"
24490 if test -n "$at_traceon"; then
24491 echo 'Not enabling shell tracing (command contains an embedded newline)'
24494 if test -n "$at_trace_this"; then
24498 TEST_TAR_FORMAT=oldgnu
24499 export TEST_TAR_FORMAT
24500 TAR_OPTIONS="-H oldgnu"
24504 tar -cf archive -V label -T /dev/null || exit 1
24506 tar xfV archive label || exit 1
24507 tar xfV archive 'la?el' || exit 1
24508 tar xfV archive 'l*l' || exit 1
24511 tar xfV archive lab
24512 test $? = 2 || exit 1
24514 tar xfV archive bel
24515 test $? = 2 || exit 1
24517 tar xfV archive babel
24519 ) ) >"$at_stdout" 2>"$at_stder1"
24521 grep '^ *+' "$at_stder1" >&2
24522 grep -v '^ *+' "$at_stder1" >"$at_stderr"
24527 TEST_TAR_FORMAT=oldgnu
24528 export TEST_TAR_FORMAT
24529 TAR_OPTIONS="-H oldgnu"
24533 tar -cf archive -V label -T /dev/null || exit 1
24535 tar xfV archive label || exit 1
24536 tar xfV archive 'la?el' || exit 1
24537 tar xfV archive 'l*l' || exit 1
24540 tar xfV archive lab
24541 test $? = 2 || exit 1
24543 tar xfV archive bel
24544 test $? = 2 || exit 1
24546 tar xfV archive babel
24548 ) ) >"$at_stdout" 2>"$at_stderr"
24553 echo >>"$at_stderr"; echo "-----
24554 tar: Volume \`label' does not match \`lab'
24555 tar: Error is not recoverable: exiting now
24557 tar: Volume \`label' does not match \`bel'
24558 tar: Error is not recoverable: exiting now
24560 tar: Volume \`label' does not match \`babel'
24561 tar: Error is not recoverable: exiting now
24562 " | $at_diff - "$at_stderr" || at_failed=:
24563 $at_diff "$at_devnull" "$at_stdout" || at_failed=:
24565 77) echo 77 > "$at_status_file"; exit 77;;
24567 *) echo "$at_srcdir/volume.at:26: exit code was $at_status, expected 0"
24570 if $at_failed; then
24573 echo 1 > "$at_status_file"
24582 $at_times_p && times >"$at_times_file"
24583 ) 5>&1 2>&1 | eval $at_tee_pipe
24584 at_status=`cat "$at_status_file"`
24587 63 ) # 63. volsize.at:29: volume header size
24588 at_setup_line='volsize.at:29'
24589 at_desc="volume header size"
24590 $at_quiet $ECHO_N " 63: volume header size $ECHO_C"
24592 test -f $XFAILFILE && at_xfail=yes
24593 echo "# -*- compilation -*-" >> "$at_group_log"
24595 echo "63. volsize.at:29: testing ..."
24603 echo "$at_srcdir/volsize.at:32:
24607 export TEST_TAR_FORMAT
24608 TAR_OPTIONS=\"-H v7\"
24613 test -z "`sort < /dev/null 2>&1`" || exit 77
24616 test -z "$TEST_DATA_DIR" && exit 77
24617 tarball_prereq abc.tar 540f196ceddcad9e7bd2f2d7533d0474 $TEST_DATA_DIR $TEST_DATA_URL || exit 77
24620 tar tf \$TEST_DATA_DIR/abc.tar
24621 echo Verbose Listing
24622 tar tfv \$TEST_DATA_DIR/abc.tar
24623 echo Extracted directory
24624 tar xf \$TEST_DATA_DIR/abc.tar
24627 echo volsize.at:32 >"$at_check_line_file"
24630 if test -n "$at_traceon"; then
24631 echo 'Not enabling shell tracing (command contains an embedded newline)'
24634 if test -n "$at_trace_this"; then
24639 export TEST_TAR_FORMAT
24640 TAR_OPTIONS="-H v7"
24645 test -z "`sort < /dev/null 2>&1`" || exit 77
24648 test -z "$TEST_DATA_DIR" && exit 77
24649 tarball_prereq abc.tar 540f196ceddcad9e7bd2f2d7533d0474 $TEST_DATA_DIR $TEST_DATA_URL || exit 77
24652 tar tf $TEST_DATA_DIR/abc.tar
24653 echo Verbose Listing
24654 tar tfv $TEST_DATA_DIR/abc.tar
24655 echo Extracted directory
24656 tar xf $TEST_DATA_DIR/abc.tar
24658 ) ) >"$at_stdout" 2>"$at_stder1"
24660 grep '^ *+' "$at_stder1" >&2
24661 grep -v '^ *+' "$at_stder1" >"$at_stderr"
24667 export TEST_TAR_FORMAT
24668 TAR_OPTIONS="-H v7"
24673 test -z "`sort < /dev/null 2>&1`" || exit 77
24676 test -z "$TEST_DATA_DIR" && exit 77
24677 tarball_prereq abc.tar 540f196ceddcad9e7bd2f2d7533d0474 $TEST_DATA_DIR $TEST_DATA_URL || exit 77
24680 tar tf $TEST_DATA_DIR/abc.tar
24681 echo Verbose Listing
24682 tar tfv $TEST_DATA_DIR/abc.tar
24683 echo Extracted directory
24684 tar xf $TEST_DATA_DIR/abc.tar
24686 ) ) >"$at_stdout" 2>"$at_stderr"
24691 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
24692 echo >>"$at_stdout"; echo "Short Listing
24696 V--------- 0/0 1536 2006-05-09 01:07 abc/not-a-file.gif--Volume Header--
24697 -rw-r--r-- tom/users 0 2006-04-22 22:52 abc/CCC
24698 Extracted directory
24701 " | $at_diff - "$at_stdout" || at_failed=:
24703 77) echo 77 > "$at_status_file"; exit 77;;
24705 *) echo "$at_srcdir/volsize.at:32: exit code was $at_status, expected 0"
24708 if $at_failed; then
24711 echo 1 > "$at_status_file"
24717 echo "$at_srcdir/volsize.at:32:
24720 TEST_TAR_FORMAT=oldgnu
24721 export TEST_TAR_FORMAT
24722 TAR_OPTIONS=\"-H oldgnu\"
24727 test -z "`sort < /dev/null 2>&1`" || exit 77
24730 test -z "$TEST_DATA_DIR" && exit 77
24731 tarball_prereq abc.tar 540f196ceddcad9e7bd2f2d7533d0474 $TEST_DATA_DIR $TEST_DATA_URL || exit 77
24734 tar tf \$TEST_DATA_DIR/abc.tar
24735 echo Verbose Listing
24736 tar tfv \$TEST_DATA_DIR/abc.tar
24737 echo Extracted directory
24738 tar xf \$TEST_DATA_DIR/abc.tar
24741 echo volsize.at:32 >"$at_check_line_file"
24744 if test -n "$at_traceon"; then
24745 echo 'Not enabling shell tracing (command contains an embedded newline)'
24748 if test -n "$at_trace_this"; then
24752 TEST_TAR_FORMAT=oldgnu
24753 export TEST_TAR_FORMAT
24754 TAR_OPTIONS="-H oldgnu"
24759 test -z "`sort < /dev/null 2>&1`" || exit 77
24762 test -z "$TEST_DATA_DIR" && exit 77
24763 tarball_prereq abc.tar 540f196ceddcad9e7bd2f2d7533d0474 $TEST_DATA_DIR $TEST_DATA_URL || exit 77
24766 tar tf $TEST_DATA_DIR/abc.tar
24767 echo Verbose Listing
24768 tar tfv $TEST_DATA_DIR/abc.tar
24769 echo Extracted directory
24770 tar xf $TEST_DATA_DIR/abc.tar
24772 ) ) >"$at_stdout" 2>"$at_stder1"
24774 grep '^ *+' "$at_stder1" >&2
24775 grep -v '^ *+' "$at_stder1" >"$at_stderr"
24780 TEST_TAR_FORMAT=oldgnu
24781 export TEST_TAR_FORMAT
24782 TAR_OPTIONS="-H oldgnu"
24787 test -z "`sort < /dev/null 2>&1`" || exit 77
24790 test -z "$TEST_DATA_DIR" && exit 77
24791 tarball_prereq abc.tar 540f196ceddcad9e7bd2f2d7533d0474 $TEST_DATA_DIR $TEST_DATA_URL || exit 77
24794 tar tf $TEST_DATA_DIR/abc.tar
24795 echo Verbose Listing
24796 tar tfv $TEST_DATA_DIR/abc.tar
24797 echo Extracted directory
24798 tar xf $TEST_DATA_DIR/abc.tar
24800 ) ) >"$at_stdout" 2>"$at_stderr"
24805 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
24806 echo >>"$at_stdout"; echo "Short Listing
24810 V--------- 0/0 1536 2006-05-09 01:07 abc/not-a-file.gif--Volume Header--
24811 -rw-r--r-- tom/users 0 2006-04-22 22:52 abc/CCC
24812 Extracted directory
24815 " | $at_diff - "$at_stdout" || at_failed=:
24817 77) echo 77 > "$at_status_file"; exit 77;;
24819 *) echo "$at_srcdir/volsize.at:32: exit code was $at_status, expected 0"
24822 if $at_failed; then
24825 echo 1 > "$at_status_file"
24831 echo "$at_srcdir/volsize.at:32:
24834 TEST_TAR_FORMAT=ustar
24835 export TEST_TAR_FORMAT
24836 TAR_OPTIONS=\"-H ustar\"
24841 test -z "`sort < /dev/null 2>&1`" || exit 77
24844 test -z "$TEST_DATA_DIR" && exit 77
24845 tarball_prereq abc.tar 540f196ceddcad9e7bd2f2d7533d0474 $TEST_DATA_DIR $TEST_DATA_URL || exit 77
24848 tar tf \$TEST_DATA_DIR/abc.tar
24849 echo Verbose Listing
24850 tar tfv \$TEST_DATA_DIR/abc.tar
24851 echo Extracted directory
24852 tar xf \$TEST_DATA_DIR/abc.tar
24855 echo volsize.at:32 >"$at_check_line_file"
24858 if test -n "$at_traceon"; then
24859 echo 'Not enabling shell tracing (command contains an embedded newline)'
24862 if test -n "$at_trace_this"; then
24866 TEST_TAR_FORMAT=ustar
24867 export TEST_TAR_FORMAT
24868 TAR_OPTIONS="-H ustar"
24873 test -z "`sort < /dev/null 2>&1`" || exit 77
24876 test -z "$TEST_DATA_DIR" && exit 77
24877 tarball_prereq abc.tar 540f196ceddcad9e7bd2f2d7533d0474 $TEST_DATA_DIR $TEST_DATA_URL || exit 77
24880 tar tf $TEST_DATA_DIR/abc.tar
24881 echo Verbose Listing
24882 tar tfv $TEST_DATA_DIR/abc.tar
24883 echo Extracted directory
24884 tar xf $TEST_DATA_DIR/abc.tar
24886 ) ) >"$at_stdout" 2>"$at_stder1"
24888 grep '^ *+' "$at_stder1" >&2
24889 grep -v '^ *+' "$at_stder1" >"$at_stderr"
24894 TEST_TAR_FORMAT=ustar
24895 export TEST_TAR_FORMAT
24896 TAR_OPTIONS="-H ustar"
24901 test -z "`sort < /dev/null 2>&1`" || exit 77
24904 test -z "$TEST_DATA_DIR" && exit 77
24905 tarball_prereq abc.tar 540f196ceddcad9e7bd2f2d7533d0474 $TEST_DATA_DIR $TEST_DATA_URL || exit 77
24908 tar tf $TEST_DATA_DIR/abc.tar
24909 echo Verbose Listing
24910 tar tfv $TEST_DATA_DIR/abc.tar
24911 echo Extracted directory
24912 tar xf $TEST_DATA_DIR/abc.tar
24914 ) ) >"$at_stdout" 2>"$at_stderr"
24919 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
24920 echo >>"$at_stdout"; echo "Short Listing
24924 V--------- 0/0 1536 2006-05-09 01:07 abc/not-a-file.gif--Volume Header--
24925 -rw-r--r-- tom/users 0 2006-04-22 22:52 abc/CCC
24926 Extracted directory
24929 " | $at_diff - "$at_stdout" || at_failed=:
24931 77) echo 77 > "$at_status_file"; exit 77;;
24933 *) echo "$at_srcdir/volsize.at:32: exit code was $at_status, expected 0"
24936 if $at_failed; then
24939 echo 1 > "$at_status_file"
24945 echo "$at_srcdir/volsize.at:32:
24948 TEST_TAR_FORMAT=posix
24949 export TEST_TAR_FORMAT
24950 TAR_OPTIONS=\"-H posix\"
24955 test -z "`sort < /dev/null 2>&1`" || exit 77
24958 test -z "$TEST_DATA_DIR" && exit 77
24959 tarball_prereq abc.tar 540f196ceddcad9e7bd2f2d7533d0474 $TEST_DATA_DIR $TEST_DATA_URL || exit 77
24962 tar tf \$TEST_DATA_DIR/abc.tar
24963 echo Verbose Listing
24964 tar tfv \$TEST_DATA_DIR/abc.tar
24965 echo Extracted directory
24966 tar xf \$TEST_DATA_DIR/abc.tar
24969 echo volsize.at:32 >"$at_check_line_file"
24972 if test -n "$at_traceon"; then
24973 echo 'Not enabling shell tracing (command contains an embedded newline)'
24976 if test -n "$at_trace_this"; then
24980 TEST_TAR_FORMAT=posix
24981 export TEST_TAR_FORMAT
24982 TAR_OPTIONS="-H posix"
24987 test -z "`sort < /dev/null 2>&1`" || exit 77
24990 test -z "$TEST_DATA_DIR" && exit 77
24991 tarball_prereq abc.tar 540f196ceddcad9e7bd2f2d7533d0474 $TEST_DATA_DIR $TEST_DATA_URL || exit 77
24994 tar tf $TEST_DATA_DIR/abc.tar
24995 echo Verbose Listing
24996 tar tfv $TEST_DATA_DIR/abc.tar
24997 echo Extracted directory
24998 tar xf $TEST_DATA_DIR/abc.tar
25000 ) ) >"$at_stdout" 2>"$at_stder1"
25002 grep '^ *+' "$at_stder1" >&2
25003 grep -v '^ *+' "$at_stder1" >"$at_stderr"
25008 TEST_TAR_FORMAT=posix
25009 export TEST_TAR_FORMAT
25010 TAR_OPTIONS="-H posix"
25015 test -z "`sort < /dev/null 2>&1`" || exit 77
25018 test -z "$TEST_DATA_DIR" && exit 77
25019 tarball_prereq abc.tar 540f196ceddcad9e7bd2f2d7533d0474 $TEST_DATA_DIR $TEST_DATA_URL || exit 77
25022 tar tf $TEST_DATA_DIR/abc.tar
25023 echo Verbose Listing
25024 tar tfv $TEST_DATA_DIR/abc.tar
25025 echo Extracted directory
25026 tar xf $TEST_DATA_DIR/abc.tar
25028 ) ) >"$at_stdout" 2>"$at_stderr"
25033 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
25034 echo >>"$at_stdout"; echo "Short Listing
25038 V--------- 0/0 1536 2006-05-09 01:07 abc/not-a-file.gif--Volume Header--
25039 -rw-r--r-- tom/users 0 2006-04-22 22:52 abc/CCC
25040 Extracted directory
25043 " | $at_diff - "$at_stdout" || at_failed=:
25045 77) echo 77 > "$at_status_file"; exit 77;;
25047 *) echo "$at_srcdir/volsize.at:32: exit code was $at_status, expected 0"
25050 if $at_failed; then
25053 echo 1 > "$at_status_file"
25059 echo "$at_srcdir/volsize.at:32:
25062 TEST_TAR_FORMAT=gnu
25063 export TEST_TAR_FORMAT
25064 TAR_OPTIONS=\"-H gnu\"
25069 test -z "`sort < /dev/null 2>&1`" || exit 77
25072 test -z "$TEST_DATA_DIR" && exit 77
25073 tarball_prereq abc.tar 540f196ceddcad9e7bd2f2d7533d0474 $TEST_DATA_DIR $TEST_DATA_URL || exit 77
25076 tar tf \$TEST_DATA_DIR/abc.tar
25077 echo Verbose Listing
25078 tar tfv \$TEST_DATA_DIR/abc.tar
25079 echo Extracted directory
25080 tar xf \$TEST_DATA_DIR/abc.tar
25083 echo volsize.at:32 >"$at_check_line_file"
25086 if test -n "$at_traceon"; then
25087 echo 'Not enabling shell tracing (command contains an embedded newline)'
25090 if test -n "$at_trace_this"; then
25094 TEST_TAR_FORMAT=gnu
25095 export TEST_TAR_FORMAT
25096 TAR_OPTIONS="-H gnu"
25101 test -z "`sort < /dev/null 2>&1`" || exit 77
25104 test -z "$TEST_DATA_DIR" && exit 77
25105 tarball_prereq abc.tar 540f196ceddcad9e7bd2f2d7533d0474 $TEST_DATA_DIR $TEST_DATA_URL || exit 77
25108 tar tf $TEST_DATA_DIR/abc.tar
25109 echo Verbose Listing
25110 tar tfv $TEST_DATA_DIR/abc.tar
25111 echo Extracted directory
25112 tar xf $TEST_DATA_DIR/abc.tar
25114 ) ) >"$at_stdout" 2>"$at_stder1"
25116 grep '^ *+' "$at_stder1" >&2
25117 grep -v '^ *+' "$at_stder1" >"$at_stderr"
25122 TEST_TAR_FORMAT=gnu
25123 export TEST_TAR_FORMAT
25124 TAR_OPTIONS="-H gnu"
25129 test -z "`sort < /dev/null 2>&1`" || exit 77
25132 test -z "$TEST_DATA_DIR" && exit 77
25133 tarball_prereq abc.tar 540f196ceddcad9e7bd2f2d7533d0474 $TEST_DATA_DIR $TEST_DATA_URL || exit 77
25136 tar tf $TEST_DATA_DIR/abc.tar
25137 echo Verbose Listing
25138 tar tfv $TEST_DATA_DIR/abc.tar
25139 echo Extracted directory
25140 tar xf $TEST_DATA_DIR/abc.tar
25142 ) ) >"$at_stdout" 2>"$at_stderr"
25147 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
25148 echo >>"$at_stdout"; echo "Short Listing
25152 V--------- 0/0 1536 2006-05-09 01:07 abc/not-a-file.gif--Volume Header--
25153 -rw-r--r-- tom/users 0 2006-04-22 22:52 abc/CCC
25154 Extracted directory
25157 " | $at_diff - "$at_stdout" || at_failed=:
25159 77) echo 77 > "$at_status_file"; exit 77;;
25161 *) echo "$at_srcdir/volsize.at:32: exit code was $at_status, expected 0"
25164 if $at_failed; then
25167 echo 1 > "$at_status_file"
25176 $at_times_p && times >"$at_times_file"
25177 ) 5>&1 2>&1 | eval $at_tee_pipe
25178 at_status=`cat "$at_status_file"`
25181 64 ) # 64. comprec.at:21: compressed format recognition
25182 at_setup_line='comprec.at:21'
25183 at_desc="compressed format recognition"
25184 $at_quiet $ECHO_N " 64: compressed format recognition $ECHO_C"
25186 test -f $XFAILFILE && at_xfail=yes
25187 echo "# -*- compilation -*-" >> "$at_group_log"
25189 echo "64. comprec.at:21: testing ..."
25198 echo "$at_srcdir/comprec.at:25:
25202 export TEST_TAR_FORMAT
25203 TAR_OPTIONS=\"-H v7\"
25208 cat /dev/null | gzip - > /dev/null 2>&1 || exit 77
25210 genfile --length 10240 --file file1
25212 tar cfz archive file1
25218 echo comprec.at:25 >"$at_check_line_file"
25221 if test -n "$at_traceon"; then
25222 echo 'Not enabling shell tracing (command contains an embedded newline)'
25225 if test -n "$at_trace_this"; then
25230 export TEST_TAR_FORMAT
25231 TAR_OPTIONS="-H v7"
25236 cat /dev/null | gzip - > /dev/null 2>&1 || exit 77
25238 genfile --length 10240 --file file1
25240 tar cfz archive file1
25245 ) ) >"$at_stdout" 2>"$at_stder1"
25247 grep '^ *+' "$at_stder1" >&2
25248 grep -v '^ *+' "$at_stder1" >"$at_stderr"
25254 export TEST_TAR_FORMAT
25255 TAR_OPTIONS="-H v7"
25260 cat /dev/null | gzip - > /dev/null 2>&1 || exit 77
25262 genfile --length 10240 --file file1
25264 tar cfz archive file1
25269 ) ) >"$at_stdout" 2>"$at_stderr"
25274 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
25275 echo >>"$at_stdout"; echo "separator
25278 " | $at_diff - "$at_stdout" || at_failed=:
25280 77) echo 77 > "$at_status_file"; exit 77;;
25282 *) echo "$at_srcdir/comprec.at:25: exit code was $at_status, expected 0"
25285 if $at_failed; then
25288 echo 1 > "$at_status_file"
25294 echo "$at_srcdir/comprec.at:25:
25297 TEST_TAR_FORMAT=oldgnu
25298 export TEST_TAR_FORMAT
25299 TAR_OPTIONS=\"-H oldgnu\"
25304 cat /dev/null | gzip - > /dev/null 2>&1 || exit 77
25306 genfile --length 10240 --file file1
25308 tar cfz archive file1
25314 echo comprec.at:25 >"$at_check_line_file"
25317 if test -n "$at_traceon"; then
25318 echo 'Not enabling shell tracing (command contains an embedded newline)'
25321 if test -n "$at_trace_this"; then
25325 TEST_TAR_FORMAT=oldgnu
25326 export TEST_TAR_FORMAT
25327 TAR_OPTIONS="-H oldgnu"
25332 cat /dev/null | gzip - > /dev/null 2>&1 || exit 77
25334 genfile --length 10240 --file file1
25336 tar cfz archive file1
25341 ) ) >"$at_stdout" 2>"$at_stder1"
25343 grep '^ *+' "$at_stder1" >&2
25344 grep -v '^ *+' "$at_stder1" >"$at_stderr"
25349 TEST_TAR_FORMAT=oldgnu
25350 export TEST_TAR_FORMAT
25351 TAR_OPTIONS="-H oldgnu"
25356 cat /dev/null | gzip - > /dev/null 2>&1 || exit 77
25358 genfile --length 10240 --file file1
25360 tar cfz archive file1
25365 ) ) >"$at_stdout" 2>"$at_stderr"
25370 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
25371 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/comprec.at:25: exit code was $at_status, expected 0"
25381 if $at_failed; then
25384 echo 1 > "$at_status_file"
25390 echo "$at_srcdir/comprec.at:25:
25393 TEST_TAR_FORMAT=ustar
25394 export TEST_TAR_FORMAT
25395 TAR_OPTIONS=\"-H ustar\"
25400 cat /dev/null | gzip - > /dev/null 2>&1 || exit 77
25402 genfile --length 10240 --file file1
25404 tar cfz archive file1
25410 echo comprec.at:25 >"$at_check_line_file"
25413 if test -n "$at_traceon"; then
25414 echo 'Not enabling shell tracing (command contains an embedded newline)'
25417 if test -n "$at_trace_this"; then
25421 TEST_TAR_FORMAT=ustar
25422 export TEST_TAR_FORMAT
25423 TAR_OPTIONS="-H ustar"
25428 cat /dev/null | gzip - > /dev/null 2>&1 || exit 77
25430 genfile --length 10240 --file file1
25432 tar cfz archive file1
25437 ) ) >"$at_stdout" 2>"$at_stder1"
25439 grep '^ *+' "$at_stder1" >&2
25440 grep -v '^ *+' "$at_stder1" >"$at_stderr"
25445 TEST_TAR_FORMAT=ustar
25446 export TEST_TAR_FORMAT
25447 TAR_OPTIONS="-H ustar"
25452 cat /dev/null | gzip - > /dev/null 2>&1 || exit 77
25454 genfile --length 10240 --file file1
25456 tar cfz archive file1
25461 ) ) >"$at_stdout" 2>"$at_stderr"
25466 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
25467 echo >>"$at_stdout"; echo "separator
25470 " | $at_diff - "$at_stdout" || at_failed=:
25472 77) echo 77 > "$at_status_file"; exit 77;;
25474 *) echo "$at_srcdir/comprec.at:25: exit code was $at_status, expected 0"
25477 if $at_failed; then
25480 echo 1 > "$at_status_file"
25486 echo "$at_srcdir/comprec.at:25:
25489 TEST_TAR_FORMAT=posix
25490 export TEST_TAR_FORMAT
25491 TAR_OPTIONS=\"-H posix\"
25496 cat /dev/null | gzip - > /dev/null 2>&1 || exit 77
25498 genfile --length 10240 --file file1
25500 tar cfz archive file1
25506 echo comprec.at:25 >"$at_check_line_file"
25509 if test -n "$at_traceon"; then
25510 echo 'Not enabling shell tracing (command contains an embedded newline)'
25513 if test -n "$at_trace_this"; then
25517 TEST_TAR_FORMAT=posix
25518 export TEST_TAR_FORMAT
25519 TAR_OPTIONS="-H posix"
25524 cat /dev/null | gzip - > /dev/null 2>&1 || exit 77
25526 genfile --length 10240 --file file1
25528 tar cfz archive file1
25533 ) ) >"$at_stdout" 2>"$at_stder1"
25535 grep '^ *+' "$at_stder1" >&2
25536 grep -v '^ *+' "$at_stder1" >"$at_stderr"
25541 TEST_TAR_FORMAT=posix
25542 export TEST_TAR_FORMAT
25543 TAR_OPTIONS="-H posix"
25548 cat /dev/null | gzip - > /dev/null 2>&1 || exit 77
25550 genfile --length 10240 --file file1
25552 tar cfz archive file1
25557 ) ) >"$at_stdout" 2>"$at_stderr"
25562 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
25563 echo >>"$at_stdout"; echo "separator
25566 " | $at_diff - "$at_stdout" || at_failed=:
25568 77) echo 77 > "$at_status_file"; exit 77;;
25570 *) echo "$at_srcdir/comprec.at:25: exit code was $at_status, expected 0"
25573 if $at_failed; then
25576 echo 1 > "$at_status_file"
25582 echo "$at_srcdir/comprec.at:25:
25585 TEST_TAR_FORMAT=gnu
25586 export TEST_TAR_FORMAT
25587 TAR_OPTIONS=\"-H gnu\"
25592 cat /dev/null | gzip - > /dev/null 2>&1 || exit 77
25594 genfile --length 10240 --file file1
25596 tar cfz archive file1
25602 echo comprec.at:25 >"$at_check_line_file"
25605 if test -n "$at_traceon"; then
25606 echo 'Not enabling shell tracing (command contains an embedded newline)'
25609 if test -n "$at_trace_this"; then
25613 TEST_TAR_FORMAT=gnu
25614 export TEST_TAR_FORMAT
25615 TAR_OPTIONS="-H gnu"
25620 cat /dev/null | gzip - > /dev/null 2>&1 || exit 77
25622 genfile --length 10240 --file file1
25624 tar cfz archive file1
25629 ) ) >"$at_stdout" 2>"$at_stder1"
25631 grep '^ *+' "$at_stder1" >&2
25632 grep -v '^ *+' "$at_stder1" >"$at_stderr"
25637 TEST_TAR_FORMAT=gnu
25638 export TEST_TAR_FORMAT
25639 TAR_OPTIONS="-H gnu"
25644 cat /dev/null | gzip - > /dev/null 2>&1 || exit 77
25646 genfile --length 10240 --file file1
25648 tar cfz archive file1
25653 ) ) >"$at_stdout" 2>"$at_stderr"
25658 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
25659 echo >>"$at_stdout"; echo "separator
25662 " | $at_diff - "$at_stdout" || at_failed=:
25664 77) echo 77 > "$at_status_file"; exit 77;;
25666 *) echo "$at_srcdir/comprec.at:25: exit code was $at_status, expected 0"
25669 if $at_failed; then
25672 echo 1 > "$at_status_file"
25681 $at_times_p && times >"$at_times_file"
25682 ) 5>&1 2>&1 | eval $at_tee_pipe
25683 at_status=`cat "$at_status_file"`
25686 65 ) # 65. shortfile.at:26: short input files
25687 at_setup_line='shortfile.at:26'
25688 at_desc="short input files"
25689 $at_quiet $ECHO_N " 65: short input files $ECHO_C"
25691 test -f $XFAILFILE && at_xfail=yes
25692 echo "# -*- compilation -*-" >> "$at_group_log"
25694 echo "65. shortfile.at:26: testing ..."
25702 echo "$at_srcdir/shortfile.at:29:
25705 TEST_TAR_FORMAT=gnu
25706 export TEST_TAR_FORMAT
25707 TAR_OPTIONS=\"-H gnu\"
25711 genfile --length 511 --file foo || exit 5
25714 echo shortfile.at:29 >"$at_check_line_file"
25717 if test -n "$at_traceon"; then
25718 echo 'Not enabling shell tracing (command contains an embedded newline)'
25721 if test -n "$at_trace_this"; then
25725 TEST_TAR_FORMAT=gnu
25726 export TEST_TAR_FORMAT
25727 TAR_OPTIONS="-H gnu"
25731 genfile --length 511 --file foo || exit 5
25733 ) ) >"$at_stdout" 2>"$at_stder1"
25735 grep '^ *+' "$at_stder1" >&2
25736 grep -v '^ *+' "$at_stder1" >"$at_stderr"
25741 TEST_TAR_FORMAT=gnu
25742 export TEST_TAR_FORMAT
25743 TAR_OPTIONS="-H gnu"
25747 genfile --length 511 --file foo || exit 5
25749 ) ) >"$at_stdout" 2>"$at_stderr"
25754 echo >>"$at_stderr"; echo "tar: This does not look like a tar archive
25755 tar: Error exit delayed from previous errors
25756 " | $at_diff - "$at_stderr" || at_failed=:
25757 $at_diff "$at_devnull" "$at_stdout" || at_failed=:
25759 77) echo 77 > "$at_status_file"; exit 77;;
25761 *) echo "$at_srcdir/shortfile.at:29: exit code was $at_status, expected 2"
25764 if $at_failed; then
25767 echo 1 > "$at_status_file"
25776 $at_times_p && times >"$at_times_file"
25777 ) 5>&1 2>&1 | eval $at_tee_pipe
25778 at_status=`cat "$at_status_file"`
25781 66 ) # 66. shortupd.at:29: updating short archives
25782 at_setup_line='shortupd.at:29'
25783 at_desc="updating short archives"
25784 $at_quiet $ECHO_N " 66: updating short archives $ECHO_C"
25786 test -f $XFAILFILE && at_xfail=yes
25787 echo "# -*- compilation -*-" >> "$at_group_log"
25789 echo "66. shortupd.at:29: testing ..."
25797 echo "$at_srcdir/shortupd.at:32:
25801 export TEST_TAR_FORMAT
25802 TAR_OPTIONS=\"-H v7\"
25809 echo shortupd.at:32 >"$at_check_line_file"
25812 if test -n "$at_traceon"; then
25813 echo 'Not enabling shell tracing (command contains an embedded newline)'
25816 if test -n "$at_trace_this"; then
25821 export TEST_TAR_FORMAT
25822 TAR_OPTIONS="-H v7"
25828 ) ) >"$at_stdout" 2>"$at_stder1"
25830 grep '^ *+' "$at_stder1" >&2
25831 grep -v '^ *+' "$at_stder1" >"$at_stderr"
25837 export TEST_TAR_FORMAT
25838 TAR_OPTIONS="-H v7"
25844 ) ) >"$at_stdout" 2>"$at_stderr"
25849 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
25850 $at_diff "$at_devnull" "$at_stdout" || at_failed=:
25852 77) echo 77 > "$at_status_file"; exit 77;;
25854 *) echo "$at_srcdir/shortupd.at:32: exit code was $at_status, expected 0"
25857 if $at_failed; then
25860 echo 1 > "$at_status_file"
25866 echo "$at_srcdir/shortupd.at:32:
25869 TEST_TAR_FORMAT=oldgnu
25870 export TEST_TAR_FORMAT
25871 TAR_OPTIONS=\"-H oldgnu\"
25878 echo shortupd.at:32 >"$at_check_line_file"
25881 if test -n "$at_traceon"; then
25882 echo 'Not enabling shell tracing (command contains an embedded newline)'
25885 if test -n "$at_trace_this"; then
25889 TEST_TAR_FORMAT=oldgnu
25890 export TEST_TAR_FORMAT
25891 TAR_OPTIONS="-H oldgnu"
25897 ) ) >"$at_stdout" 2>"$at_stder1"
25899 grep '^ *+' "$at_stder1" >&2
25900 grep -v '^ *+' "$at_stder1" >"$at_stderr"
25905 TEST_TAR_FORMAT=oldgnu
25906 export TEST_TAR_FORMAT
25907 TAR_OPTIONS="-H oldgnu"
25913 ) ) >"$at_stdout" 2>"$at_stderr"
25918 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
25919 $at_diff "$at_devnull" "$at_stdout" || at_failed=:
25921 77) echo 77 > "$at_status_file"; exit 77;;
25923 *) echo "$at_srcdir/shortupd.at:32: exit code was $at_status, expected 0"
25926 if $at_failed; then
25929 echo 1 > "$at_status_file"
25935 echo "$at_srcdir/shortupd.at:32:
25938 TEST_TAR_FORMAT=ustar
25939 export TEST_TAR_FORMAT
25940 TAR_OPTIONS=\"-H ustar\"
25947 echo shortupd.at:32 >"$at_check_line_file"
25950 if test -n "$at_traceon"; then
25951 echo 'Not enabling shell tracing (command contains an embedded newline)'
25954 if test -n "$at_trace_this"; then
25958 TEST_TAR_FORMAT=ustar
25959 export TEST_TAR_FORMAT
25960 TAR_OPTIONS="-H ustar"
25966 ) ) >"$at_stdout" 2>"$at_stder1"
25968 grep '^ *+' "$at_stder1" >&2
25969 grep -v '^ *+' "$at_stder1" >"$at_stderr"
25974 TEST_TAR_FORMAT=ustar
25975 export TEST_TAR_FORMAT
25976 TAR_OPTIONS="-H ustar"
25982 ) ) >"$at_stdout" 2>"$at_stderr"
25987 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
25988 $at_diff "$at_devnull" "$at_stdout" || at_failed=:
25990 77) echo 77 > "$at_status_file"; exit 77;;
25992 *) echo "$at_srcdir/shortupd.at:32: exit code was $at_status, expected 0"
25995 if $at_failed; then
25998 echo 1 > "$at_status_file"
26004 echo "$at_srcdir/shortupd.at:32:
26007 TEST_TAR_FORMAT=posix
26008 export TEST_TAR_FORMAT
26009 TAR_OPTIONS=\"-H posix\"
26016 echo shortupd.at:32 >"$at_check_line_file"
26019 if test -n "$at_traceon"; then
26020 echo 'Not enabling shell tracing (command contains an embedded newline)'
26023 if test -n "$at_trace_this"; then
26027 TEST_TAR_FORMAT=posix
26028 export TEST_TAR_FORMAT
26029 TAR_OPTIONS="-H posix"
26035 ) ) >"$at_stdout" 2>"$at_stder1"
26037 grep '^ *+' "$at_stder1" >&2
26038 grep -v '^ *+' "$at_stder1" >"$at_stderr"
26043 TEST_TAR_FORMAT=posix
26044 export TEST_TAR_FORMAT
26045 TAR_OPTIONS="-H posix"
26051 ) ) >"$at_stdout" 2>"$at_stderr"
26056 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
26057 $at_diff "$at_devnull" "$at_stdout" || at_failed=:
26059 77) echo 77 > "$at_status_file"; exit 77;;
26061 *) echo "$at_srcdir/shortupd.at:32: exit code was $at_status, expected 0"
26064 if $at_failed; then
26067 echo 1 > "$at_status_file"
26073 echo "$at_srcdir/shortupd.at:32:
26076 TEST_TAR_FORMAT=gnu
26077 export TEST_TAR_FORMAT
26078 TAR_OPTIONS=\"-H gnu\"
26085 echo shortupd.at:32 >"$at_check_line_file"
26088 if test -n "$at_traceon"; then
26089 echo 'Not enabling shell tracing (command contains an embedded newline)'
26092 if test -n "$at_trace_this"; then
26096 TEST_TAR_FORMAT=gnu
26097 export TEST_TAR_FORMAT
26098 TAR_OPTIONS="-H gnu"
26104 ) ) >"$at_stdout" 2>"$at_stder1"
26106 grep '^ *+' "$at_stder1" >&2
26107 grep -v '^ *+' "$at_stder1" >"$at_stderr"
26112 TEST_TAR_FORMAT=gnu
26113 export TEST_TAR_FORMAT
26114 TAR_OPTIONS="-H gnu"
26120 ) ) >"$at_stdout" 2>"$at_stderr"
26125 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
26126 $at_diff "$at_devnull" "$at_stdout" || at_failed=:
26128 77) echo 77 > "$at_status_file"; exit 77;;
26130 *) echo "$at_srcdir/shortupd.at:32: exit code was $at_status, expected 0"
26133 if $at_failed; then
26136 echo 1 > "$at_status_file"
26145 $at_times_p && times >"$at_times_file"
26146 ) 5>&1 2>&1 | eval $at_tee_pipe
26147 at_status=`cat "$at_status_file"`
26150 67 ) # 67. truncate.at:29: truncate
26151 at_setup_line='truncate.at:29'
26153 $at_quiet $ECHO_N " 67: truncate $ECHO_C"
26155 test -f $XFAILFILE && at_xfail=yes
26156 echo "# -*- compilation -*-" >> "$at_group_log"
26158 echo "67. truncate.at:29: testing ..."
26166 echo "$at_srcdir/truncate.at:32:
26170 export TEST_TAR_FORMAT
26171 TAR_OPTIONS=\"-H v7\"
26175 genfile --file foo --length 50000k
26177 genfile --run 'tar -vcf bar foo baz' --checkpoint 10 --length 49995k --truncate foo
26178 echo Exit status: \$?
26181 genfile --file foo --seek 49995k --length 5k --pattern=zeros
26183 echo truncate.at:32 >"$at_check_line_file"
26186 if test -n "$at_traceon"; then
26187 echo 'Not enabling shell tracing (command contains an embedded newline)'
26190 if test -n "$at_trace_this"; then
26195 export TEST_TAR_FORMAT
26196 TAR_OPTIONS="-H v7"
26200 genfile --file foo --length 50000k
26202 genfile --run 'tar -vcf bar foo baz' --checkpoint 10 --length 49995k --truncate foo
26203 echo Exit status: $?
26206 genfile --file foo --seek 49995k --length 5k --pattern=zeros
26207 tar dvf bar) ) >"$at_stdout" 2>"$at_stder1"
26209 grep '^ *+' "$at_stder1" >&2
26210 grep -v '^ *+' "$at_stder1" >"$at_stderr"
26216 export TEST_TAR_FORMAT
26217 TAR_OPTIONS="-H v7"
26221 genfile --file foo --length 50000k
26223 genfile --run 'tar -vcf bar foo baz' --checkpoint 10 --length 49995k --truncate foo
26224 echo Exit status: $?
26227 genfile --file foo --seek 49995k --length 5k --pattern=zeros
26228 tar dvf bar) ) >"$at_stdout" 2>"$at_stderr"
26233 echo >>"$at_stderr"; echo "tar: foo: File shrank by 5120 bytes; padding with zeros
26234 " | $at_diff - "$at_stderr" || at_failed=:
26235 echo >>"$at_stdout"; echo "foo
26240 foo: Mod time differs
26242 " | $at_diff - "$at_stdout" || at_failed=:
26244 77) echo 77 > "$at_status_file"; exit 77;;
26246 *) echo "$at_srcdir/truncate.at:32: exit code was $at_status, expected 1"
26249 if $at_failed; then
26252 echo 1 > "$at_status_file"
26258 echo "$at_srcdir/truncate.at:32:
26261 TEST_TAR_FORMAT=oldgnu
26262 export TEST_TAR_FORMAT
26263 TAR_OPTIONS=\"-H oldgnu\"
26267 genfile --file foo --length 50000k
26269 genfile --run 'tar -vcf bar foo baz' --checkpoint 10 --length 49995k --truncate foo
26270 echo Exit status: \$?
26273 genfile --file foo --seek 49995k --length 5k --pattern=zeros
26275 echo truncate.at:32 >"$at_check_line_file"
26278 if test -n "$at_traceon"; then
26279 echo 'Not enabling shell tracing (command contains an embedded newline)'
26282 if test -n "$at_trace_this"; then
26286 TEST_TAR_FORMAT=oldgnu
26287 export TEST_TAR_FORMAT
26288 TAR_OPTIONS="-H oldgnu"
26292 genfile --file foo --length 50000k
26294 genfile --run 'tar -vcf bar foo baz' --checkpoint 10 --length 49995k --truncate foo
26295 echo Exit status: $?
26298 genfile --file foo --seek 49995k --length 5k --pattern=zeros
26299 tar dvf bar) ) >"$at_stdout" 2>"$at_stder1"
26301 grep '^ *+' "$at_stder1" >&2
26302 grep -v '^ *+' "$at_stder1" >"$at_stderr"
26307 TEST_TAR_FORMAT=oldgnu
26308 export TEST_TAR_FORMAT
26309 TAR_OPTIONS="-H oldgnu"
26313 genfile --file foo --length 50000k
26315 genfile --run 'tar -vcf bar foo baz' --checkpoint 10 --length 49995k --truncate foo
26316 echo Exit status: $?
26319 genfile --file foo --seek 49995k --length 5k --pattern=zeros
26320 tar dvf bar) ) >"$at_stdout" 2>"$at_stderr"
26325 echo >>"$at_stderr"; echo "tar: foo: File shrank by 5120 bytes; padding with zeros
26326 " | $at_diff - "$at_stderr" || at_failed=:
26327 echo >>"$at_stdout"; echo "foo
26332 foo: Mod time differs
26334 " | $at_diff - "$at_stdout" || at_failed=:
26336 77) echo 77 > "$at_status_file"; exit 77;;
26338 *) echo "$at_srcdir/truncate.at:32: exit code was $at_status, expected 1"
26341 if $at_failed; then
26344 echo 1 > "$at_status_file"
26350 echo "$at_srcdir/truncate.at:32:
26353 TEST_TAR_FORMAT=ustar
26354 export TEST_TAR_FORMAT
26355 TAR_OPTIONS=\"-H ustar\"
26359 genfile --file foo --length 50000k
26361 genfile --run 'tar -vcf bar foo baz' --checkpoint 10 --length 49995k --truncate foo
26362 echo Exit status: \$?
26365 genfile --file foo --seek 49995k --length 5k --pattern=zeros
26367 echo truncate.at:32 >"$at_check_line_file"
26370 if test -n "$at_traceon"; then
26371 echo 'Not enabling shell tracing (command contains an embedded newline)'
26374 if test -n "$at_trace_this"; then
26378 TEST_TAR_FORMAT=ustar
26379 export TEST_TAR_FORMAT
26380 TAR_OPTIONS="-H ustar"
26384 genfile --file foo --length 50000k
26386 genfile --run 'tar -vcf bar foo baz' --checkpoint 10 --length 49995k --truncate foo
26387 echo Exit status: $?
26390 genfile --file foo --seek 49995k --length 5k --pattern=zeros
26391 tar dvf bar) ) >"$at_stdout" 2>"$at_stder1"
26393 grep '^ *+' "$at_stder1" >&2
26394 grep -v '^ *+' "$at_stder1" >"$at_stderr"
26399 TEST_TAR_FORMAT=ustar
26400 export TEST_TAR_FORMAT
26401 TAR_OPTIONS="-H ustar"
26405 genfile --file foo --length 50000k
26407 genfile --run 'tar -vcf bar foo baz' --checkpoint 10 --length 49995k --truncate foo
26408 echo Exit status: $?
26411 genfile --file foo --seek 49995k --length 5k --pattern=zeros
26412 tar dvf bar) ) >"$at_stdout" 2>"$at_stderr"
26417 echo >>"$at_stderr"; echo "tar: foo: File shrank by 5120 bytes; padding with zeros
26418 " | $at_diff - "$at_stderr" || at_failed=:
26419 echo >>"$at_stdout"; echo "foo
26424 foo: Mod time differs
26426 " | $at_diff - "$at_stdout" || at_failed=:
26428 77) echo 77 > "$at_status_file"; exit 77;;
26430 *) echo "$at_srcdir/truncate.at:32: exit code was $at_status, expected 1"
26433 if $at_failed; then
26436 echo 1 > "$at_status_file"
26442 echo "$at_srcdir/truncate.at:32:
26445 TEST_TAR_FORMAT=posix
26446 export TEST_TAR_FORMAT
26447 TAR_OPTIONS=\"-H posix\"
26451 genfile --file foo --length 50000k
26453 genfile --run 'tar -vcf bar foo baz' --checkpoint 10 --length 49995k --truncate foo
26454 echo Exit status: \$?
26457 genfile --file foo --seek 49995k --length 5k --pattern=zeros
26459 echo truncate.at:32 >"$at_check_line_file"
26462 if test -n "$at_traceon"; then
26463 echo 'Not enabling shell tracing (command contains an embedded newline)'
26466 if test -n "$at_trace_this"; then
26470 TEST_TAR_FORMAT=posix
26471 export TEST_TAR_FORMAT
26472 TAR_OPTIONS="-H posix"
26476 genfile --file foo --length 50000k
26478 genfile --run 'tar -vcf bar foo baz' --checkpoint 10 --length 49995k --truncate foo
26479 echo Exit status: $?
26482 genfile --file foo --seek 49995k --length 5k --pattern=zeros
26483 tar dvf bar) ) >"$at_stdout" 2>"$at_stder1"
26485 grep '^ *+' "$at_stder1" >&2
26486 grep -v '^ *+' "$at_stder1" >"$at_stderr"
26491 TEST_TAR_FORMAT=posix
26492 export TEST_TAR_FORMAT
26493 TAR_OPTIONS="-H posix"
26497 genfile --file foo --length 50000k
26499 genfile --run 'tar -vcf bar foo baz' --checkpoint 10 --length 49995k --truncate foo
26500 echo Exit status: $?
26503 genfile --file foo --seek 49995k --length 5k --pattern=zeros
26504 tar dvf bar) ) >"$at_stdout" 2>"$at_stderr"
26509 echo >>"$at_stderr"; echo "tar: foo: File shrank by 5120 bytes; padding with zeros
26510 " | $at_diff - "$at_stderr" || at_failed=:
26511 echo >>"$at_stdout"; echo "foo
26516 foo: Mod time differs
26518 " | $at_diff - "$at_stdout" || at_failed=:
26520 77) echo 77 > "$at_status_file"; exit 77;;
26522 *) echo "$at_srcdir/truncate.at:32: exit code was $at_status, expected 1"
26525 if $at_failed; then
26528 echo 1 > "$at_status_file"
26534 echo "$at_srcdir/truncate.at:32:
26537 TEST_TAR_FORMAT=gnu
26538 export TEST_TAR_FORMAT
26539 TAR_OPTIONS=\"-H gnu\"
26543 genfile --file foo --length 50000k
26545 genfile --run 'tar -vcf bar foo baz' --checkpoint 10 --length 49995k --truncate foo
26546 echo Exit status: \$?
26549 genfile --file foo --seek 49995k --length 5k --pattern=zeros
26551 echo truncate.at:32 >"$at_check_line_file"
26554 if test -n "$at_traceon"; then
26555 echo 'Not enabling shell tracing (command contains an embedded newline)'
26558 if test -n "$at_trace_this"; then
26562 TEST_TAR_FORMAT=gnu
26563 export TEST_TAR_FORMAT
26564 TAR_OPTIONS="-H gnu"
26568 genfile --file foo --length 50000k
26570 genfile --run 'tar -vcf bar foo baz' --checkpoint 10 --length 49995k --truncate foo
26571 echo Exit status: $?
26574 genfile --file foo --seek 49995k --length 5k --pattern=zeros
26575 tar dvf bar) ) >"$at_stdout" 2>"$at_stder1"
26577 grep '^ *+' "$at_stder1" >&2
26578 grep -v '^ *+' "$at_stder1" >"$at_stderr"
26583 TEST_TAR_FORMAT=gnu
26584 export TEST_TAR_FORMAT
26585 TAR_OPTIONS="-H gnu"
26589 genfile --file foo --length 50000k
26591 genfile --run 'tar -vcf bar foo baz' --checkpoint 10 --length 49995k --truncate foo
26592 echo Exit status: $?
26595 genfile --file foo --seek 49995k --length 5k --pattern=zeros
26596 tar dvf bar) ) >"$at_stdout" 2>"$at_stderr"
26601 echo >>"$at_stderr"; echo "tar: foo: File shrank by 5120 bytes; padding with zeros
26602 " | $at_diff - "$at_stderr" || at_failed=:
26603 echo >>"$at_stdout"; echo "foo
26608 foo: Mod time differs
26610 " | $at_diff - "$at_stdout" || at_failed=:
26612 77) echo 77 > "$at_status_file"; exit 77;;
26614 *) echo "$at_srcdir/truncate.at:32: exit code was $at_status, expected 1"
26617 if $at_failed; then
26620 echo 1 > "$at_status_file"
26629 $at_times_p && times >"$at_times_file"
26630 ) 5>&1 2>&1 | eval $at_tee_pipe
26631 at_status=`cat "$at_status_file"`
26634 68 ) # 68. grow.at:24: grow
26635 at_setup_line='grow.at:24'
26637 $at_quiet $ECHO_N " 68: grow $ECHO_C"
26639 test -f $XFAILFILE && at_xfail=yes
26640 echo "# -*- compilation -*-" >> "$at_group_log"
26642 echo "68. grow.at:24: testing ..."
26650 echo "$at_srcdir/grow.at:27:
26654 export TEST_TAR_FORMAT
26655 TAR_OPTIONS=\"-H v7\"
26659 genfile --file foo --length 50000k
26661 genfile --run 'tar -vcf bar foo baz' --checkpoint 10 --length 1024 \\
26664 echo grow.at:27 >"$at_check_line_file"
26667 if test -n "$at_traceon"; then
26668 echo 'Not enabling shell tracing (command contains an embedded newline)'
26671 if test -n "$at_trace_this"; then
26676 export TEST_TAR_FORMAT
26677 TAR_OPTIONS="-H v7"
26681 genfile --file foo --length 50000k
26683 genfile --run 'tar -vcf bar foo baz' --checkpoint 10 --length 1024 \
26685 ) ) >"$at_stdout" 2>"$at_stder1"
26687 grep '^ *+' "$at_stder1" >&2
26688 grep -v '^ *+' "$at_stder1" >"$at_stderr"
26694 export TEST_TAR_FORMAT
26695 TAR_OPTIONS="-H v7"
26699 genfile --file foo --length 50000k
26701 genfile --run 'tar -vcf bar foo baz' --checkpoint 10 --length 1024 \
26703 ) ) >"$at_stdout" 2>"$at_stderr"
26708 echo >>"$at_stderr"; echo "tar: foo: file changed as we read it
26709 " | $at_diff - "$at_stderr" || at_failed=:
26710 echo >>"$at_stdout"; echo "foo
26712 " | $at_diff - "$at_stdout" || at_failed=:
26714 77) echo 77 > "$at_status_file"; exit 77;;
26716 *) echo "$at_srcdir/grow.at:27: exit code was $at_status, expected 1"
26719 if $at_failed; then
26722 echo 1 > "$at_status_file"
26728 echo "$at_srcdir/grow.at:27:
26731 TEST_TAR_FORMAT=oldgnu
26732 export TEST_TAR_FORMAT
26733 TAR_OPTIONS=\"-H oldgnu\"
26737 genfile --file foo --length 50000k
26739 genfile --run 'tar -vcf bar foo baz' --checkpoint 10 --length 1024 \\
26742 echo grow.at:27 >"$at_check_line_file"
26745 if test -n "$at_traceon"; then
26746 echo 'Not enabling shell tracing (command contains an embedded newline)'
26749 if test -n "$at_trace_this"; then
26753 TEST_TAR_FORMAT=oldgnu
26754 export TEST_TAR_FORMAT
26755 TAR_OPTIONS="-H oldgnu"
26759 genfile --file foo --length 50000k
26761 genfile --run 'tar -vcf bar foo baz' --checkpoint 10 --length 1024 \
26763 ) ) >"$at_stdout" 2>"$at_stder1"
26765 grep '^ *+' "$at_stder1" >&2
26766 grep -v '^ *+' "$at_stder1" >"$at_stderr"
26771 TEST_TAR_FORMAT=oldgnu
26772 export TEST_TAR_FORMAT
26773 TAR_OPTIONS="-H oldgnu"
26777 genfile --file foo --length 50000k
26779 genfile --run 'tar -vcf bar foo baz' --checkpoint 10 --length 1024 \
26781 ) ) >"$at_stdout" 2>"$at_stderr"
26786 echo >>"$at_stderr"; echo "tar: foo: file changed as we read it
26787 " | $at_diff - "$at_stderr" || at_failed=:
26788 echo >>"$at_stdout"; echo "foo
26790 " | $at_diff - "$at_stdout" || at_failed=:
26792 77) echo 77 > "$at_status_file"; exit 77;;
26794 *) echo "$at_srcdir/grow.at:27: exit code was $at_status, expected 1"
26797 if $at_failed; then
26800 echo 1 > "$at_status_file"
26806 echo "$at_srcdir/grow.at:27:
26809 TEST_TAR_FORMAT=ustar
26810 export TEST_TAR_FORMAT
26811 TAR_OPTIONS=\"-H ustar\"
26815 genfile --file foo --length 50000k
26817 genfile --run 'tar -vcf bar foo baz' --checkpoint 10 --length 1024 \\
26820 echo grow.at:27 >"$at_check_line_file"
26823 if test -n "$at_traceon"; then
26824 echo 'Not enabling shell tracing (command contains an embedded newline)'
26827 if test -n "$at_trace_this"; then
26831 TEST_TAR_FORMAT=ustar
26832 export TEST_TAR_FORMAT
26833 TAR_OPTIONS="-H ustar"
26837 genfile --file foo --length 50000k
26839 genfile --run 'tar -vcf bar foo baz' --checkpoint 10 --length 1024 \
26841 ) ) >"$at_stdout" 2>"$at_stder1"
26843 grep '^ *+' "$at_stder1" >&2
26844 grep -v '^ *+' "$at_stder1" >"$at_stderr"
26849 TEST_TAR_FORMAT=ustar
26850 export TEST_TAR_FORMAT
26851 TAR_OPTIONS="-H ustar"
26855 genfile --file foo --length 50000k
26857 genfile --run 'tar -vcf bar foo baz' --checkpoint 10 --length 1024 \
26859 ) ) >"$at_stdout" 2>"$at_stderr"
26864 echo >>"$at_stderr"; echo "tar: foo: file changed as we read it
26865 " | $at_diff - "$at_stderr" || at_failed=:
26866 echo >>"$at_stdout"; echo "foo
26868 " | $at_diff - "$at_stdout" || at_failed=:
26870 77) echo 77 > "$at_status_file"; exit 77;;
26872 *) echo "$at_srcdir/grow.at:27: exit code was $at_status, expected 1"
26875 if $at_failed; then
26878 echo 1 > "$at_status_file"
26884 echo "$at_srcdir/grow.at:27:
26887 TEST_TAR_FORMAT=posix
26888 export TEST_TAR_FORMAT
26889 TAR_OPTIONS=\"-H posix\"
26893 genfile --file foo --length 50000k
26895 genfile --run 'tar -vcf bar foo baz' --checkpoint 10 --length 1024 \\
26898 echo grow.at:27 >"$at_check_line_file"
26901 if test -n "$at_traceon"; then
26902 echo 'Not enabling shell tracing (command contains an embedded newline)'
26905 if test -n "$at_trace_this"; then
26909 TEST_TAR_FORMAT=posix
26910 export TEST_TAR_FORMAT
26911 TAR_OPTIONS="-H posix"
26915 genfile --file foo --length 50000k
26917 genfile --run 'tar -vcf bar foo baz' --checkpoint 10 --length 1024 \
26919 ) ) >"$at_stdout" 2>"$at_stder1"
26921 grep '^ *+' "$at_stder1" >&2
26922 grep -v '^ *+' "$at_stder1" >"$at_stderr"
26927 TEST_TAR_FORMAT=posix
26928 export TEST_TAR_FORMAT
26929 TAR_OPTIONS="-H posix"
26933 genfile --file foo --length 50000k
26935 genfile --run 'tar -vcf bar foo baz' --checkpoint 10 --length 1024 \
26937 ) ) >"$at_stdout" 2>"$at_stderr"
26942 echo >>"$at_stderr"; echo "tar: foo: file changed as we read it
26943 " | $at_diff - "$at_stderr" || at_failed=:
26944 echo >>"$at_stdout"; echo "foo
26946 " | $at_diff - "$at_stdout" || at_failed=:
26948 77) echo 77 > "$at_status_file"; exit 77;;
26950 *) echo "$at_srcdir/grow.at:27: exit code was $at_status, expected 1"
26953 if $at_failed; then
26956 echo 1 > "$at_status_file"
26962 echo "$at_srcdir/grow.at:27:
26965 TEST_TAR_FORMAT=gnu
26966 export TEST_TAR_FORMAT
26967 TAR_OPTIONS=\"-H gnu\"
26971 genfile --file foo --length 50000k
26973 genfile --run 'tar -vcf bar foo baz' --checkpoint 10 --length 1024 \\
26976 echo grow.at:27 >"$at_check_line_file"
26979 if test -n "$at_traceon"; then
26980 echo 'Not enabling shell tracing (command contains an embedded newline)'
26983 if test -n "$at_trace_this"; then
26987 TEST_TAR_FORMAT=gnu
26988 export TEST_TAR_FORMAT
26989 TAR_OPTIONS="-H gnu"
26993 genfile --file foo --length 50000k
26995 genfile --run 'tar -vcf bar foo baz' --checkpoint 10 --length 1024 \
26997 ) ) >"$at_stdout" 2>"$at_stder1"
26999 grep '^ *+' "$at_stder1" >&2
27000 grep -v '^ *+' "$at_stder1" >"$at_stderr"
27005 TEST_TAR_FORMAT=gnu
27006 export TEST_TAR_FORMAT
27007 TAR_OPTIONS="-H gnu"
27011 genfile --file foo --length 50000k
27013 genfile --run 'tar -vcf bar foo baz' --checkpoint 10 --length 1024 \
27015 ) ) >"$at_stdout" 2>"$at_stderr"
27020 echo >>"$at_stderr"; echo "tar: foo: file changed as we read it
27021 " | $at_diff - "$at_stderr" || at_failed=:
27022 echo >>"$at_stdout"; echo "foo
27024 " | $at_diff - "$at_stdout" || at_failed=:
27026 77) echo 77 > "$at_status_file"; exit 77;;
27028 *) echo "$at_srcdir/grow.at:27: exit code was $at_status, expected 1"
27031 if $at_failed; then
27034 echo 1 > "$at_status_file"
27043 $at_times_p && times >"$at_times_file"
27044 ) 5>&1 2>&1 | eval $at_tee_pipe
27045 at_status=`cat "$at_status_file"`
27048 69 ) # 69. gtarfail.at:21: gtarfail
27049 at_setup_line='gtarfail.at:21'
27051 $at_quiet $ECHO_N " 69: gtarfail $ECHO_C"
27053 echo "# -*- compilation -*-" >> "$at_group_log"
27055 echo "69. gtarfail.at:21: testing ..."
27063 echo "$at_srcdir/gtarfail.at:26:
27065 test -z "$STAR_TESTSCRIPTS" && exit 77
27066 tarball_prereq gtarfail.tar bf7612e401aaa679edbb07ae1183811b $STAR_TESTSCRIPTS $STAR_DATA_URL || exit 77
27069 tar --utc -tvf \$STAR_TESTSCRIPTS/gtarfail.tar
27071 echo gtarfail.at:26 >"$at_check_line_file"
27074 if test -n "$at_traceon"; then
27075 echo 'Not enabling shell tracing (command contains an embedded newline)'
27078 if test -n "$at_trace_this"; then
27081 test -z "$STAR_TESTSCRIPTS" && exit 77
27082 tarball_prereq gtarfail.tar bf7612e401aaa679edbb07ae1183811b $STAR_TESTSCRIPTS $STAR_DATA_URL || exit 77
27085 tar --utc -tvf $STAR_TESTSCRIPTS/gtarfail.tar
27086 ) >"$at_stdout" 2>"$at_stder1"
27088 grep '^ *+' "$at_stder1" >&2
27089 grep -v '^ *+' "$at_stder1" >"$at_stderr"
27093 test -z "$STAR_TESTSCRIPTS" && exit 77
27094 tarball_prereq gtarfail.tar bf7612e401aaa679edbb07ae1183811b $STAR_TESTSCRIPTS $STAR_DATA_URL || exit 77
27097 tar --utc -tvf $STAR_TESTSCRIPTS/gtarfail.tar
27098 ) >"$at_stdout" 2>"$at_stderr"
27103 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
27104 echo >>"$at_stdout"; echo "-rw-r--r-- jes/glone 518 2001-05-25 14:41 vedpowered.gif
27105 -rw-r--r-- jes/glone 6825 1997-04-29 00:19 cd.gif
27106 -rw-r--r-- jes/glone 33354 1999-06-22 12:17 DSCN0049c.JPG
27107 -rw-r--r-- jes/glone 86159 2001-06-05 18:16 Window1.jpg
27108 -rw-r--r-- jes/glone 1310 2001-05-25 13:05 vipower.gif
27109 -rw-rw-rw- jes/glone 148753 1998-09-15 13:08 billyboy.jpg
27110 " | $at_diff - "$at_stdout" || at_failed=:
27112 77) echo 77 > "$at_status_file"; exit 77;;
27114 *) echo "$at_srcdir/gtarfail.at:26: exit code was $at_status, expected 0"
27117 if $at_failed; then
27120 echo 1 > "$at_status_file"
27128 $at_times_p && times >"$at_times_file"
27129 ) 5>&1 2>&1 | eval $at_tee_pipe
27130 at_status=`cat "$at_status_file"`
27133 70 ) # 70. gtarfail2.at:21: gtarfail2
27134 at_setup_line='gtarfail2.at:21'
27135 at_desc="gtarfail2"
27136 $at_quiet $ECHO_N " 70: gtarfail2 $ECHO_C"
27138 echo "# -*- compilation -*-" >> "$at_group_log"
27140 echo "70. gtarfail2.at:21: testing ..."
27148 echo "$at_srcdir/gtarfail2.at:26:
27150 test -z "$STAR_TESTSCRIPTS" && exit 77
27151 tarball_prereq gtarfail2.tar 6b607d1faec14b82f69525d9c5b66e53 $STAR_TESTSCRIPTS $STAR_DATA_URL || exit 77
27153 tar --utc -tvf \$STAR_TESTSCRIPTS/gtarfail2.tar
27155 echo gtarfail2.at:26 >"$at_check_line_file"
27158 if test -n "$at_traceon"; then
27159 echo 'Not enabling shell tracing (command contains an embedded newline)'
27162 if test -n "$at_trace_this"; then
27165 test -z "$STAR_TESTSCRIPTS" && exit 77
27166 tarball_prereq gtarfail2.tar 6b607d1faec14b82f69525d9c5b66e53 $STAR_TESTSCRIPTS $STAR_DATA_URL || exit 77
27168 tar --utc -tvf $STAR_TESTSCRIPTS/gtarfail2.tar
27169 ) >"$at_stdout" 2>"$at_stder1"
27171 grep '^ *+' "$at_stder1" >&2
27172 grep -v '^ *+' "$at_stder1" >"$at_stderr"
27176 test -z "$STAR_TESTSCRIPTS" && exit 77
27177 tarball_prereq gtarfail2.tar 6b607d1faec14b82f69525d9c5b66e53 $STAR_TESTSCRIPTS $STAR_DATA_URL || exit 77
27179 tar --utc -tvf $STAR_TESTSCRIPTS/gtarfail2.tar
27180 ) >"$at_stdout" 2>"$at_stderr"
27185 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
27186 echo >>"$at_stdout"; echo "-rwxr-xr-x jes/glone 214 2001-09-21 14:08 .clean
27187 lrwxrwxrwx jes/cats 0 1998-05-07 12:39 RULES -> makefiles/RULES
27188 drwxr-sr-x jes/glone 0 2001-12-10 00:00 build/
27189 -rw-r--r-- jes/glone 312019 2001-12-10 00:00 build/smake-1.2.tar.gz
27190 drwxr-sr-x jes/glone 0 2001-11-09 18:20 build/psmake/
27191 -rwxr-xr-x jes/glone 259 2000-01-09 16:36 build/psmake/MAKE
27192 -rwxr-xr-x jes/glone 4820 2001-02-25 22:45 build/psmake/MAKE.sh
27193 -rw-r--r-- jes/glone 647 2001-02-25 23:50 build/psmake/Makefile
27194 lrwxrwxrwx jes/glone 0 2001-08-29 10:53 build/psmake/archconf.c -> ../archconf.c
27195 lrwxrwxrwx jes/glone 0 2001-08-29 10:54 build/psmake/astoi.c -> ../../lib/astoi.c
27196 " | $at_diff - "$at_stdout" || at_failed=:
27198 77) echo 77 > "$at_status_file"; exit 77;;
27200 *) echo "$at_srcdir/gtarfail2.at:26: exit code was $at_status, expected 0"
27203 if $at_failed; then
27206 echo 1 > "$at_status_file"
27214 $at_times_p && times >"$at_times_file"
27215 ) 5>&1 2>&1 | eval $at_tee_pipe
27216 at_status=`cat "$at_status_file"`
27219 71 ) # 71. multi-fail.at:21: multi-fail
27220 at_setup_line='multi-fail.at:21'
27221 at_desc="multi-fail"
27222 $at_quiet $ECHO_N " 71: multi-fail $ECHO_C"
27224 echo "# -*- compilation -*-" >> "$at_group_log"
27226 echo "71. multi-fail.at:21: testing ..."
27234 echo "$at_srcdir/multi-fail.at:26:
27236 test -z "$STAR_TESTSCRIPTS" && exit 77
27237 tarball_prereq gnu-multi-fail-volume1.gtar 7c28663dd98b0bd91ceb4be7af55254e $STAR_TESTSCRIPTS $STAR_DATA_URL || exit 77
27240 test -z "$STAR_TESTSCRIPTS" && exit 77
27241 tarball_prereq gnu-multi-fail-volume2.gtar b5d41c4c3ec440687d4a44957b5079a8 $STAR_TESTSCRIPTS $STAR_DATA_URL || exit 77
27244 tar --utc -tvM -f \$STAR_TESTSCRIPTS/gnu-multi-fail-volume1.gtar \\
27245 -f \$STAR_TESTSCRIPTS/gnu-multi-fail-volume2.gtar <&-
27247 echo multi-fail.at:26 >"$at_check_line_file"
27250 if test -n "$at_traceon"; then
27251 echo 'Not enabling shell tracing (command contains an embedded newline)'
27254 if test -n "$at_trace_this"; then
27257 test -z "$STAR_TESTSCRIPTS" && exit 77
27258 tarball_prereq gnu-multi-fail-volume1.gtar 7c28663dd98b0bd91ceb4be7af55254e $STAR_TESTSCRIPTS $STAR_DATA_URL || exit 77
27261 test -z "$STAR_TESTSCRIPTS" && exit 77
27262 tarball_prereq gnu-multi-fail-volume2.gtar b5d41c4c3ec440687d4a44957b5079a8 $STAR_TESTSCRIPTS $STAR_DATA_URL || exit 77
27265 tar --utc -tvM -f $STAR_TESTSCRIPTS/gnu-multi-fail-volume1.gtar \
27266 -f $STAR_TESTSCRIPTS/gnu-multi-fail-volume2.gtar <&-
27267 ) >"$at_stdout" 2>"$at_stder1"
27269 grep '^ *+' "$at_stder1" >&2
27270 grep -v '^ *+' "$at_stder1" >"$at_stderr"
27274 test -z "$STAR_TESTSCRIPTS" && exit 77
27275 tarball_prereq gnu-multi-fail-volume1.gtar 7c28663dd98b0bd91ceb4be7af55254e $STAR_TESTSCRIPTS $STAR_DATA_URL || exit 77
27278 test -z "$STAR_TESTSCRIPTS" && exit 77
27279 tarball_prereq gnu-multi-fail-volume2.gtar b5d41c4c3ec440687d4a44957b5079a8 $STAR_TESTSCRIPTS $STAR_DATA_URL || exit 77
27282 tar --utc -tvM -f $STAR_TESTSCRIPTS/gnu-multi-fail-volume1.gtar \
27283 -f $STAR_TESTSCRIPTS/gnu-multi-fail-volume2.gtar <&-
27284 ) >"$at_stdout" 2>"$at_stderr"
27289 $at_diff "$at_devnull" "$at_stderr" || at_failed=:
27290 echo >>"$at_stdout"; echo "drwxrwsr-x joerg/bs 0 2003-10-11 14:32 OBJ/i386-sunos5-gcc/
27291 -rw-r--r-- joerg/bs 1 2003-10-11 14:32 OBJ/i386-sunos5-gcc/Dnull
27292 -rw-r--r-- joerg/bs 1743 2003-10-10 18:06 OBJ/i386-sunos5-gcc/star.d
27293 -rw-r--r-- joerg/bs 1460 2003-10-11 11:53 OBJ/i386-sunos5-gcc/header.d
27294 -rw-r--r-- joerg/bs 1540 2003-10-10 18:06 OBJ/i386-sunos5-gcc/cpiohdr.d
27295 -rw-r--r-- joerg/bs 2245 2003-10-10 18:06 OBJ/i386-sunos5-gcc/xheader.d
27296 -rw-r--r-- joerg/bs 1254 2003-10-10 18:06 OBJ/i386-sunos5-gcc/xattr.d
27297 -rw-r--r-- joerg/bs 1330 2003-10-10 18:06 OBJ/i386-sunos5-gcc/list.d
27298 -rw-r--r-- joerg/bs 1745 2003-10-10 18:06 OBJ/i386-sunos5-gcc/extract.d
27299 -rw-r--r-- joerg/bs 1518 2003-10-10 18:06 OBJ/i386-sunos5-gcc/create.d
27300 -rw-r--r-- joerg/bs 1235 2003-10-10 18:06 OBJ/i386-sunos5-gcc/append.d
27301 -rw-r--r-- joerg/bs 1368 2003-10-10 18:06 OBJ/i386-sunos5-gcc/diff.d
27302 -rw-r--r-- joerg/bs 1423 2003-10-10 18:06 OBJ/i386-sunos5-gcc/remove.d
27303 -rw-r--r-- joerg/bs 1493 2003-10-10 18:07 OBJ/i386-sunos5-gcc/star_unix.d
27304 -rw-r--r-- joerg/bs 1572 2003-10-10 18:07 OBJ/i386-sunos5-gcc/acl_unix.d
27305 -rw-r--r-- joerg/bs 1453 2003-10-10 18:07 OBJ/i386-sunos5-gcc/fflags.d
27306 -rw-r--r-- joerg/bs 2257 2003-10-11 14:32 OBJ/i386-sunos5-gcc/buffer.d
27307 -rw-r--r-- joerg/bs 969 2003-10-07 17:53 OBJ/i386-sunos5-gcc/dirtime.d
27308 -rw-r--r-- joerg/bs 1308 2003-10-10 18:07 OBJ/i386-sunos5-gcc/lhash.d
27309 -rw-r--r-- joerg/bs 1287 2003-10-10 18:07 OBJ/i386-sunos5-gcc/hole.d
27310 -rw-r--r-- joerg/bs 1105 2003-10-10 18:07 OBJ/i386-sunos5-gcc/longnames.d
27311 -rw-r--r-- joerg/bs 1230 2003-10-10 18:07 OBJ/i386-sunos5-gcc/names.d
27312 -rw-r--r-- joerg/bs 1091 2003-10-10 18:07 OBJ/i386-sunos5-gcc/movearch.d
27313 -rw-r--r-- joerg/bs 961 2003-10-07 17:53 OBJ/i386-sunos5-gcc/table.d
27314 -rw-r--r-- joerg/bs 1113 2003-10-10 18:07 OBJ/i386-sunos5-gcc/props.d
27315 -rw-r--r-- joerg/bs 2146 2003-10-10 18:07 OBJ/i386-sunos5-gcc/fetchdir.d
27316 -rw-r--r-- joerg/bs 1093 2003-10-10 18:07 OBJ/i386-sunos5-gcc/unicode.d
27317 -rw-r--r-- joerg/bs 1211 2003-10-10 18:07 OBJ/i386-sunos5-gcc/subst.d
27318 -rw-r--r-- joerg/bs 2076 2003-10-11 11:53 OBJ/i386-sunos5-gcc/volhdr.d
27319 -rw-r--r-- joerg/bs 1480 2003-10-10 18:07 OBJ/i386-sunos5-gcc/chdir.d
27320 -rw-r--r-- joerg/bs 42460 2003-10-10 18:07 OBJ/i386-sunos5-gcc/star.o
27321 -rw-r--r-- joerg/bs 22564 2003-10-11 11:53 OBJ/i386-sunos5-gcc/header.o
27322 -rw-r--r-- joerg/bs 7880 2003-10-10 18:07 OBJ/i386-sunos5-gcc/cpiohdr.o
27323 -rw-r--r-- joerg/bs 14624 2003-10-10 18:07 OBJ/i386-sunos5-gcc/xheader.o
27324 -rw-r--r-- joerg/bs 924 2003-10-10 18:07 OBJ/i386-sunos5-gcc/xattr.o
27325 -rw-r--r-- joerg/bs 6120 2003-10-10 18:07 OBJ/i386-sunos5-gcc/list.o
27326 -rw-r--r-- joerg/bs 12764 2003-10-10 18:07 OBJ/i386-sunos5-gcc/extract.o
27327 -rw-r--r-- joerg/bs 14668 2003-10-10 18:07 OBJ/i386-sunos5-gcc/create.o
27328 -rw-r--r-- joerg/bs 2576 2003-10-10 18:07 OBJ/i386-sunos5-gcc/append.o
27329 -rw-r--r-- joerg/bs 7636 2003-10-10 18:07 OBJ/i386-sunos5-gcc/diff.o
27330 -rw-r--r-- joerg/bs 3072 2003-10-10 18:07 OBJ/i386-sunos5-gcc/remove.o
27331 -rw-r--r-- joerg/bs 5612 2003-10-10 18:07 OBJ/i386-sunos5-gcc/star_unix.o
27332 -rw-r--r-- joerg/bs 6220 2003-10-10 18:07 OBJ/i386-sunos5-gcc/acl_unix.o
27333 -rw-r--r-- joerg/bs 1092 2003-10-10 18:07 OBJ/i386-sunos5-gcc/fflags.o
27334 -rw-r--r-- joerg/bs 20996 2003-10-11 14:32 OBJ/i386-sunos5-gcc/buffer.o
27335 -rw-r--r-- joerg/bs 2060 2003-10-07 17:53 OBJ/i386-sunos5-gcc/dirtime.o
27336 -rw-r--r-- joerg/bs 1664 2003-10-10 18:07 OBJ/i386-sunos5-gcc/lhash.o
27337 -rw-r--r-- joerg/bs 10564 2003-10-10 18:07 OBJ/i386-sunos5-gcc/hole.o
27338 -rw-r--r-- joerg/bs 3864 2003-10-10 18:07 OBJ/i386-sunos5-gcc/longnames.o
27339 -rw-r--r-- joerg/bs 2576 2003-10-10 18:07 OBJ/i386-sunos5-gcc/names.o
27340 -rw-r--r-- joerg/bs 952 2003-10-10 18:07 OBJ/i386-sunos5-gcc/movearch.o
27341 -rw-r--r-- joerg/bs 2756 2003-10-07 17:53 OBJ/i386-sunos5-gcc/table.o
27342 " | $at_diff - "$at_stdout" || at_failed=:
27344 77) echo 77 > "$at_status_file"; exit 77;;
27346 *) echo "$at_srcdir/multi-fail.at:26: exit code was $at_status, expected 0"
27349 if $at_failed; then
27352 echo 1 > "$at_status_file"
27360 $at_times_p && times >"$at_times_file"
27361 ) 5>&1 2>&1 | eval $at_tee_pipe
27362 at_status=`cat "$at_status_file"`
27365 72 ) # 72. ustar-big-2g.at:21: ustar-big-2g
27366 at_setup_line='ustar-big-2g.at:21'
27367 at_desc="ustar-big-2g"
27368 $at_quiet $ECHO_N " 72: ustar-big-2g $ECHO_C"
27370 echo "# -*- compilation -*-" >> "$at_group_log"
27372 echo "72. ustar-big-2g.at:21: testing ..."
27380 echo "$at_srcdir/ustar-big-2g.at:26:
27382 cat /dev/null | bzip2 - > /dev/null 2>&1 || exit 77
27385 test -z "$STAR_TESTSCRIPTS" && exit 77
27386 tarball_prereq ustar-big-2g.tar.bz2 b63979733629c8fcdf40b60065422767 $STAR_TESTSCRIPTS $STAR_DATA_URL || exit 77
27389 tar --utc -tvjf \$STAR_TESTSCRIPTS/ustar-big-2g.tar.bz2
27391 echo ustar-big-2g.at:26 >"$at_check_line_file"
27394 if test -n "$at_traceon"; then
27395 echo 'Not enabling shell tracing (command contains an embedded newline)'
27398 if test -n "$at_trace_this"; then
27401 cat /dev/null | bzip2 - > /dev/null 2>&1 || exit 77
27404 test -z "$STAR_TESTSCRIPTS" && exit 77
27405 tarball_prereq ustar-big-2g.tar.bz2 b63979733629c8fcdf40b60065422767 $STAR_TESTSCRIPTS $STAR_DATA_URL || exit 77
27408 tar --utc -tvjf $STAR_TESTSCRIPTS/ustar-big-2g.tar.bz2
27409 ) >"$at_stdout" 2>"$at_stder1"
27411 grep '^ *+' "$at_stder1" >&2
27412 grep -v '^ *+' "$at_stder1" >"$at_stderr"
27416 cat /dev/null | bzip2 - > /dev/null 2>&1 || exit 77
27419 test -z "$STAR_TESTSCRIPTS" && exit 77
27420 tarball_prereq ustar-big-2g.tar.bz2 b63979733629c8fcdf40b60065422767 $STAR_TESTSCRIPTS $STAR_DATA_URL || exit 77
27423 tar --utc -tvjf $STAR_TESTSCRIPTS/ustar-big-2g.tar.bz2
27424 ) >"$at_stdout" 2>"$at_stderr"
27429 echo stderr:; tee stderr <"$at_stderr"
27430 echo >>"$at_stdout"; echo "-rw------- jes/glone 2147483647 2002-06-15 14:53 big
27431 -rw-r--r-- jes/glone 0 2002-06-15 14:53 file
27432 " | $at_diff - "$at_stdout" || at_failed=:
27434 77) echo 77 > "$at_status_file"; exit 77;;
27436 *) echo "$at_srcdir/ustar-big-2g.at:26: exit code was $at_status, expected 0"
27439 if $at_failed; then
27442 echo 1 > "$at_status_file"
27450 cat >stderr.re <<'_ATEOF'
27451 tar: Record size = .*
27454 awk '{print NR " " $0}' stderr > $$.1
27455 awk '{print NR " " $0}' stderr.re | join - $$.1 |
27456 while read NUM RE LINE
27458 echo "$LINE" | grep -- "$RE" >/dev/null || exit 1
27463 $at_times_p && times >"$at_times_file"
27464 ) 5>&1 2>&1 | eval $at_tee_pipe
27465 at_status=`cat "$at_status_file"`
27468 73 ) # 73. ustar-big-8g.at:21: ustar-big-8g
27469 at_setup_line='ustar-big-8g.at:21'
27470 at_desc="ustar-big-8g"
27471 $at_quiet $ECHO_N " 73: ustar-big-8g $ECHO_C"
27473 echo "# -*- compilation -*-" >> "$at_group_log"
27475 echo "73. ustar-big-8g.at:21: testing ..."
27483 echo "$at_srcdir/ustar-big-8g.at:26:
27485 cat /dev/null | bzip2 - > /dev/null 2>&1 || exit 77
27488 test -z "$STAR_TESTSCRIPTS" && exit 77
27489 tarball_prereq ustar-big-8g.tar.bz2 60ff503fa4b8288bef7ada89e9c91b0f $STAR_TESTSCRIPTS $STAR_DATA_URL || exit 77
27492 tar --utc -tvjf \$STAR_TESTSCRIPTS/ustar-big-8g.tar.bz2
27494 echo ustar-big-8g.at:26 >"$at_check_line_file"
27497 if test -n "$at_traceon"; then
27498 echo 'Not enabling shell tracing (command contains an embedded newline)'
27501 if test -n "$at_trace_this"; then
27504 cat /dev/null | bzip2 - > /dev/null 2>&1 || exit 77
27507 test -z "$STAR_TESTSCRIPTS" && exit 77
27508 tarball_prereq ustar-big-8g.tar.bz2 60ff503fa4b8288bef7ada89e9c91b0f $STAR_TESTSCRIPTS $STAR_DATA_URL || exit 77
27511 tar --utc -tvjf $STAR_TESTSCRIPTS/ustar-big-8g.tar.bz2
27512 ) >"$at_stdout" 2>"$at_stder1"
27514 grep '^ *+' "$at_stder1" >&2
27515 grep -v '^ *+' "$at_stder1" >"$at_stderr"
27519 cat /dev/null | bzip2 - > /dev/null 2>&1 || exit 77
27522 test -z "$STAR_TESTSCRIPTS" && exit 77
27523 tarball_prereq ustar-big-8g.tar.bz2 60ff503fa4b8288bef7ada89e9c91b0f $STAR_TESTSCRIPTS $STAR_DATA_URL || exit 77
27526 tar --utc -tvjf $STAR_TESTSCRIPTS/ustar-big-8g.tar.bz2
27527 ) >"$at_stdout" 2>"$at_stderr"
27532 echo stderr:; tee stderr <"$at_stderr"
27533 echo >>"$at_stdout"; echo "-rw------- jes/glone 8589934591 2002-06-15 15:08 8gb-1
27534 -rw-r--r-- jes/glone 0 2002-06-15 14:53 file
27535 " | $at_diff - "$at_stdout" || at_failed=:
27537 77) echo 77 > "$at_status_file"; exit 77;;
27539 *) echo "$at_srcdir/ustar-big-8g.at:26: exit code was $at_status, expected 0"
27542 if $at_failed; then
27545 echo 1 > "$at_status_file"
27553 cat >stderr.re <<'_ATEOF'
27554 tar: Record size = .*
27557 awk '{print NR " " $0}' stderr > $$.1
27558 awk '{print NR " " $0}' stderr.re | join - $$.1 |
27559 while read NUM RE LINE
27561 echo "$LINE" | grep -- "$RE" >/dev/null || exit 1
27566 $at_times_p && times >"$at_times_file"
27567 ) 5>&1 2>&1 | eval $at_tee_pipe
27568 at_status=`cat "$at_status_file"`
27571 74 ) # 74. pax-big-10g.at:21: pax-big-10g
27572 at_setup_line='pax-big-10g.at:21'
27573 at_desc="pax-big-10g"
27574 $at_quiet $ECHO_N " 74: pax-big-10g $ECHO_C"
27576 echo "# -*- compilation -*-" >> "$at_group_log"
27578 echo "74. pax-big-10g.at:21: testing ..."
27586 echo "$at_srcdir/pax-big-10g.at:26:
27588 cat /dev/null | bzip2 - > /dev/null 2>&1 || exit 77
27591 test -z "$STAR_TESTSCRIPTS" && exit 77
27592 tarball_prereq pax-big-10g.tar.bz2 ca15c23acc8d8bb1f27e60113a5f8bff $STAR_TESTSCRIPTS $STAR_DATA_URL || exit 77
27595 tar --utc -tvjf \$STAR_TESTSCRIPTS/pax-big-10g.tar.bz2
27597 echo pax-big-10g.at:26 >"$at_check_line_file"
27600 if test -n "$at_traceon"; then
27601 echo 'Not enabling shell tracing (command contains an embedded newline)'
27604 if test -n "$at_trace_this"; then
27607 cat /dev/null | bzip2 - > /dev/null 2>&1 || exit 77
27610 test -z "$STAR_TESTSCRIPTS" && exit 77
27611 tarball_prereq pax-big-10g.tar.bz2 ca15c23acc8d8bb1f27e60113a5f8bff $STAR_TESTSCRIPTS $STAR_DATA_URL || exit 77
27614 tar --utc -tvjf $STAR_TESTSCRIPTS/pax-big-10g.tar.bz2
27615 ) >"$at_stdout" 2>"$at_stder1"
27617 grep '^ *+' "$at_stder1" >&2
27618 grep -v '^ *+' "$at_stder1" >"$at_stderr"
27622 cat /dev/null | bzip2 - > /dev/null 2>&1 || exit 77
27625 test -z "$STAR_TESTSCRIPTS" && exit 77
27626 tarball_prereq pax-big-10g.tar.bz2 ca15c23acc8d8bb1f27e60113a5f8bff $STAR_TESTSCRIPTS $STAR_DATA_URL || exit 77
27629 tar --utc -tvjf $STAR_TESTSCRIPTS/pax-big-10g.tar.bz2
27630 ) >"$at_stdout" 2>"$at_stderr"
27635 echo stderr:; tee stderr <"$at_stderr"
27636 echo >>"$at_stdout"; echo "-rw------- jes/glone 10737418240 2002-06-15 21:18 10g
27637 -rw-r--r-- jes/glone 0 2002-06-15 14:53 file
27638 " | $at_diff - "$at_stdout" || at_failed=:
27640 77) echo 77 > "$at_status_file"; exit 77;;
27642 *) echo "$at_srcdir/pax-big-10g.at:26: exit code was $at_status, expected 0"
27645 if $at_failed; then
27648 echo 1 > "$at_status_file"
27656 cat >stderr.re <<'_ATEOF'
27657 tar: Record size = .*
27660 awk '{print NR " " $0}' stderr > $$.1
27661 awk '{print NR " " $0}' stderr.re | join - $$.1 |
27662 while read NUM RE LINE
27664 echo "$LINE" | grep -- "$RE" >/dev/null || exit 1
27669 $at_times_p && times >"$at_times_file"
27670 ) 5>&1 2>&1 | eval $at_tee_pipe
27671 at_status=`cat "$at_status_file"`
27676 echo "$as_me: no such test group: $at_group" >&2
27681 # Be sure to come back to the suite directory, in particular
27682 # since below we might `rm' the group directory we are in currently.
27688 if test ! -f "$at_check_line_file"; then
27689 sed "s/^ */$as_me: warning: /" <<_ATEOF
27690 A failure happened in a test group before any test could be
27691 run. This means that test suite is improperly designed. Please
27692 report this failure to <bug-tar@gnu.org>.
27694 echo "$at_setup_line" >"$at_check_line_file"
27696 at_group_count=`expr 1 + $at_group_count`
27697 $at_verbose $ECHO_N "$at_group. $at_setup_line: $ECHO_C"
27698 echo $ECHO_N "$at_group. $at_setup_line: $ECHO_C" >> "$at_group_log"
27699 case $at_xfail:$at_status in
27701 at_msg="UNEXPECTED PASS"
27702 at_xpass_list="$at_xpass_list $at_group"
27703 at_errexit=$at_errexit_p
27707 at_pass_list="$at_pass_list $at_group"
27711 at_msg='skipped ('`cat "$at_check_line_file"`')'
27712 at_skip_list="$at_skip_list $at_group"
27716 at_msg='expected failure ('`cat "$at_check_line_file"`')'
27717 at_xfail_list="$at_xfail_list $at_group"
27721 at_msg='FAILED ('`cat "$at_check_line_file"`')'
27722 at_fail_list="$at_fail_list $at_group"
27723 at_errexit=$at_errexit_p
27726 # Make sure there is a separator even with long titles.
27728 at_log_msg="$at_group. $at_desc ($at_setup_line): $at_msg"
27731 # $at_times_file is only available if the group succeeded.
27732 # We're not including the group log, so the success message
27733 # is written in the global log separately. But we also
27734 # write to the group log in case they're using -d.
27735 if test -f "$at_times_file"; then
27736 at_log_msg="$at_log_msg ("`sed 1d "$at_times_file"`')'
27737 rm -f "$at_times_file"
27739 echo "$at_log_msg" >> "$at_group_log"
27740 echo "$at_log_msg" >&5
27742 # Cleanup the group directory, unless the user wants the files.
27743 if $at_debug_p ; then
27746 echo 'test "${ZSH_VERSION+set}" = set && alias -g '\''${1+"$@"}'\''='\''"$@"'\'''
27747 echo "cd '$at_dir'"
27748 echo 'exec ${CONFIG_SHELL-'"$SHELL"'}' "$0" \
27749 '-v -d' "$at_debug_args" "$at_group" '${1+"$@"}'
27751 } >$at_group_dir/run
27752 chmod +x $at_group_dir/run
27754 elif test -d "$at_group_dir"; then
27755 find "$at_group_dir" -type d ! -perm -700 -exec chmod u+rwx \{\} \;
27756 rm -fr "$at_group_dir"
27760 # Upon failure, include the log into the testsuite's global
27761 # log. The failure message is written in the group log. It
27762 # is later included in the global log.
27763 echo "$at_log_msg" >> "$at_group_log"
27765 # Upon failure, keep the group directory for autopsy, and
27766 # create the debugging script.
27769 echo 'test "${ZSH_VERSION+set}" = set && alias -g '\''${1+"$@"}'\''='\''"$@"'\'''
27770 echo "cd '$at_dir'"
27771 echo 'exec ${CONFIG_SHELL-'"$SHELL"'}' "$0" \
27772 '-v -d' "$at_debug_args" "$at_group" '${1+"$@"}'
27774 } >$at_group_dir/run
27775 chmod +x $at_group_dir/run
27777 $at_errexit && break
27784 # Back to the top directory.
27787 # Compute the duration of the suite.
27788 at_stop_date=`date`
27789 at_stop_time=`date +%s 2>/dev/null`
27790 echo "$as_me: ending at: $at_stop_date" >&5
27791 case $at_start_time,$at_stop_time in
27793 at_duration_s=`expr $at_stop_time - $at_start_time`
27794 at_duration_m=`expr $at_duration_s / 60`
27795 at_duration_h=`expr $at_duration_m / 60`
27796 at_duration_s=`expr $at_duration_s % 60`
27797 at_duration_m=`expr $at_duration_m % 60`
27798 at_duration="${at_duration_h}h ${at_duration_m}m ${at_duration_s}s"
27799 echo "$as_me: test suite duration: $at_duration" >&5
27803 # Wrap up the test suite with summary statistics.
27804 at_skip_count=`set dummy $at_skip_list; shift; echo $#`
27805 at_fail_count=`set dummy $at_fail_list; shift; echo $#`
27806 at_xpass_count=`set dummy $at_xpass_list; shift; echo $#`
27807 at_xfail_count=`set dummy $at_xfail_list; shift; echo $#`
27809 at_run_count=`expr $at_group_count - $at_skip_count`
27810 at_unexpected_count=`expr $at_xpass_count + $at_fail_count`
27811 at_total_fail_count=`expr $at_xfail_count + $at_fail_count`
27815 ## ------------- ##
27816 ## Test results. ##
27817 ## ------------- ##
27823 ## ------------- ##
27824 ## Test results. ##
27825 ## ------------- ##
27830 if test $at_run_count = 1; then
27834 at_result="$at_run_count tests"
27837 if $at_errexit_p && test $at_unexpected_count != 0; then
27838 if test $at_xpass_count = 1; then
27839 at_result="$at_result $at_were run, one passed"
27841 at_result="$at_result $at_were run, one failed"
27843 at_result="$at_result unexpectedly and inhibited subsequent tests."
27845 # Don't you just love exponential explosion of the number of cases?
27846 case $at_xpass_count:$at_fail_count:$at_xfail_count in
27848 0:0:0) at_result="$at_result $at_were successful." ;;
27849 0:0:*) at_result="$at_result behaved as expected." ;;
27851 # Some unexpected failures
27852 0:*:0) at_result="$at_result $at_were run,
27853 $at_fail_count failed unexpectedly." ;;
27855 # Some failures, both expected and unexpected
27856 0:*:1) at_result="$at_result $at_were run,
27857 $at_total_fail_count failed ($at_xfail_count expected failure)." ;;
27858 0:*:*) at_result="$at_result $at_were run,
27859 $at_total_fail_count failed ($at_xfail_count expected failures)." ;;
27861 # No unexpected failures, but some xpasses
27862 *:0:*) at_result="$at_result $at_were run,
27863 $at_xpass_count passed unexpectedly." ;;
27865 # No expected failures, but failures and xpasses
27866 *:1:0) at_result="$at_result $at_were run,
27867 $at_unexpected_count did not behave as expected ($at_fail_count unexpected failure)." ;;
27868 *:*:0) at_result="$at_result $at_were run,
27869 $at_unexpected_count did not behave as expected ($at_fail_count unexpected failures)." ;;
27872 *:*:1) at_result="$at_result $at_were run,
27873 $at_xpass_count passed unexpectedly,
27874 $at_total_fail_count failed ($at_xfail_count expected failure)." ;;
27875 *:*:*) at_result="$at_result $at_were run,
27876 $at_xpass_count passed unexpectedly,
27877 $at_total_fail_count failed ($at_xfail_count expected failures)." ;;
27880 if test $at_skip_count = 0 && test $at_run_count -gt 1; then
27881 at_result="All $at_result"
27885 # Now put skips in the mix.
27886 case $at_skip_count in
27888 1) at_result="$at_result
27889 1 test was skipped." ;;
27890 *) at_result="$at_result
27891 $at_skip_count tests were skipped." ;;
27894 if test $at_unexpected_count = 0; then
27896 echo "$at_result" >&5
27898 echo "ERROR: $at_result" >&2
27899 echo "ERROR: $at_result" >&5
27903 ## ------------------------ ##
27904 ## Summary of the failures. ##
27905 ## ------------------------ ##
27908 # Summary of failed and skipped tests.
27909 if test $at_fail_count != 0; then
27910 echo "Failed tests:"
27911 $SHELL "$0" $at_fail_list --list
27914 if test $at_skip_count != 0; then
27915 echo "Skipped tests:"
27916 $SHELL "$0" $at_skip_list --list
27919 if test $at_xpass_count != 0; then
27920 echo "Unexpected passes:"
27921 $SHELL "$0" $at_xpass_list --list
27924 if test $at_fail_count != 0; then
27926 ## ---------------------- ##
27927 ## Detailed failed tests. ##
27928 ## ---------------------- ##
27931 for at_group in $at_fail_list
27933 at_group_normalized=$at_group
27936 case $at_group_normalized in #(
27937 $at_format*) break;;
27939 at_group_normalized=0$at_group_normalized
27942 cat "$at_suite_dir/$at_group_normalized/$as_me.log"
27947 if test -n "$at_top_srcdir"; then
27948 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
27949 ## ${at_top_build_prefix}config.log ##
27951 sed 's/^/| /' ${at_top_build_prefix}config.log
27956 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
27957 ## $as_me.log was created. ##
27961 echo "Please send \`${at_testdir+${at_testdir}/}$as_me.log' and all information you think might help:"
27963 echo " To: <bug-tar@gnu.org>"
27964 echo " Subject: [GNU tar 1.20] $as_me:$at_fail_list${at_fail_list:+ failed${at_xpass_list:+,}}$at_xpass_list${at_xpass_list:+ passed unexpectedly}"
27966 if test $at_debug_p = false; then
27968 echo 'You may investigate any problem if you feel able to do so, in which'
27969 echo 'case the test suite provides a good starting point. Its output may'
27970 echo "be found below \`${at_testdir+${at_testdir}/}$as_me.dir'."