]> git.cworth.org Git - tar/blob - tests/testsuite
f846810c31dddc8043d025c5ffcfa4e7e28255d1
[tar] / tests / testsuite
1 #! /bin/sh
2 # Generated from testsuite.at by GNU Autoconf 2.63.
3 #
4 # Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
5 # Free Software Foundation, Inc.
6 # This test suite is free software; the Free Software Foundation gives
7 # unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization.  ##
10 ## --------------------- ##
11
12 # Be more Bourne compatible
13 DUALCASE=1; export DUALCASE # for MKS sh
14 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15   emulate sh
16   NULLCMD=:
17   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18   # is contrary to our usage.  Disable this feature.
19   alias -g '${1+"$@"}'='"$@"'
20   setopt NO_GLOB_SUBST
21 else
22   case `(set -o) 2>/dev/null` in
23   *posix*) set -o posix ;;
24 esac
25
26 fi
27
28
29
30
31 # PATH needs CR
32 # Avoid depending upon Character Ranges.
33 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
34 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
35 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
36 as_cr_digits='0123456789'
37 as_cr_alnum=$as_cr_Letters$as_cr_digits
38
39 as_nl='
40 '
41 export as_nl
42 # Printing a long string crashes Solaris 7 /usr/bin/printf.
43 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
45 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
46 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
47   as_echo='printf %s\n'
48   as_echo_n='printf %s'
49 else
50   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
51     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
52     as_echo_n='/usr/ucb/echo -n'
53   else
54     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
55     as_echo_n_body='eval
56       arg=$1;
57       case $arg in
58       *"$as_nl"*)
59         expr "X$arg" : "X\\(.*\\)$as_nl";
60         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
61       esac;
62       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
63     '
64     export as_echo_n_body
65     as_echo_n='sh -c $as_echo_n_body as_echo'
66   fi
67   export as_echo_body
68   as_echo='sh -c $as_echo_body as_echo'
69 fi
70
71 # The user is always right.
72 if test "${PATH_SEPARATOR+set}" != set; then
73   PATH_SEPARATOR=:
74   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
75     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
76       PATH_SEPARATOR=';'
77   }
78 fi
79
80 # Support unset when possible.
81 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
82   as_unset=unset
83 else
84   as_unset=false
85 fi
86
87
88 # IFS
89 # We need space, tab and new line, in precisely that order.  Quoting is
90 # there to prevent editors from complaining about space-tab.
91 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
92 # splitting by setting IFS to empty value.)
93 IFS=" ""        $as_nl"
94
95 # Find who we are.  Look in the path if we contain no directory separator.
96 case $0 in
97   *[\\/]* ) as_myself=$0 ;;
98   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
99 for as_dir in $PATH
100 do
101   IFS=$as_save_IFS
102   test -z "$as_dir" && as_dir=.
103   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
104 done
105 IFS=$as_save_IFS
106
107      ;;
108 esac
109 # We did not find ourselves, most probably we were run as `sh COMMAND'
110 # in which case we are not to be found in the path.
111 if test "x$as_myself" = x; then
112   as_myself=$0
113 fi
114 if test ! -f "$as_myself"; then
115   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
116   { (exit 1); exit 1; }
117 fi
118
119 # Work around bugs in pre-3.0 UWIN ksh.
120 for as_var in ENV MAIL MAILPATH
121 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
122 done
123 PS1='$ '
124 PS2='> '
125 PS4='+ '
126
127 # NLS nuisances.
128 LC_ALL=C
129 export LC_ALL
130 LANGUAGE=C
131 export LANGUAGE
132
133 # Required to use basename.
134 if expr a : '\(a\)' >/dev/null 2>&1 &&
135    test "X`expr 00001 : '.*\(...\)'`" = X001; then
136   as_expr=expr
137 else
138   as_expr=false
139 fi
140
141 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
142   as_basename=basename
143 else
144   as_basename=false
145 fi
146
147
148 # Name of the executable.
149 as_me=`$as_basename -- "$0" ||
150 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
151          X"$0" : 'X\(//\)$' \| \
152          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
153 $as_echo X/"$0" |
154     sed '/^.*\/\([^/][^/]*\)\/*$/{
155             s//\1/
156             q
157           }
158           /^X\/\(\/\/\)$/{
159             s//\1/
160             q
161           }
162           /^X\/\(\/\).*/{
163             s//\1/
164             q
165           }
166           s/.*/./; q'`
167
168 # CDPATH.
169 $as_unset CDPATH
170
171
172 if test "x$CONFIG_SHELL" = x; then
173   if (eval ":") 2>/dev/null; then
174   as_have_required=yes
175 else
176   as_have_required=no
177 fi
178
179   if test $as_have_required = yes &&     (eval ":
180 (as_func_return () {
181   (exit \$1)
182 }
183 as_func_success () {
184   as_func_return 0
185 }
186 as_func_failure () {
187   as_func_return 1
188 }
189 as_func_ret_success () {
190   return 0
191 }
192 as_func_ret_failure () {
193   return 1
194 }
195
196 exitcode=0
197 if as_func_success; then
198   :
199 else
200   exitcode=1
201   echo as_func_success failed.
202 fi
203
204 if as_func_failure; then
205   exitcode=1
206   echo as_func_failure succeeded.
207 fi
208
209 if as_func_ret_success; then
210   :
211 else
212   exitcode=1
213   echo as_func_ret_success failed.
214 fi
215
216 if as_func_ret_failure; then
217   exitcode=1
218   echo as_func_ret_failure succeeded.
219 fi
220
221 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
222   :
223 else
224   exitcode=1
225   echo positional parameters were not saved.
226 fi
227
228 test \$exitcode = 0) || { (exit 1); exit 1; }
229
230 (
231   as_lineno_1=\$LINENO
232   as_lineno_2=\$LINENO
233   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
234   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
235 ") 2> /dev/null; then
236   :
237 else
238   as_candidate_shells=
239     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
240 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
241 do
242   IFS=$as_save_IFS
243   test -z "$as_dir" && as_dir=.
244   case $as_dir in
245          /*)
246            for as_base in sh bash ksh sh5; do
247              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
248            done;;
249        esac
250 done
251 IFS=$as_save_IFS
252
253
254       for as_shell in $as_candidate_shells $SHELL; do
255          # Try only shells that exist, to save several forks.
256          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
257                 { ("$as_shell") 2> /dev/null <<\_ASEOF
258 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
259   emulate sh
260   NULLCMD=:
261   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
262   # is contrary to our usage.  Disable this feature.
263   alias -g '${1+"$@"}'='"$@"'
264   setopt NO_GLOB_SUBST
265 else
266   case `(set -o) 2>/dev/null` in
267   *posix*) set -o posix ;;
268 esac
269
270 fi
271
272
273 :
274 _ASEOF
275 }; then
276   CONFIG_SHELL=$as_shell
277                as_have_required=yes
278                if { "$as_shell" 2> /dev/null <<\_ASEOF
279 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
280   emulate sh
281   NULLCMD=:
282   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
283   # is contrary to our usage.  Disable this feature.
284   alias -g '${1+"$@"}'='"$@"'
285   setopt NO_GLOB_SUBST
286 else
287   case `(set -o) 2>/dev/null` in
288   *posix*) set -o posix ;;
289 esac
290
291 fi
292
293
294 :
295 (as_func_return () {
296   (exit $1)
297 }
298 as_func_success () {
299   as_func_return 0
300 }
301 as_func_failure () {
302   as_func_return 1
303 }
304 as_func_ret_success () {
305   return 0
306 }
307 as_func_ret_failure () {
308   return 1
309 }
310
311 exitcode=0
312 if as_func_success; then
313   :
314 else
315   exitcode=1
316   echo as_func_success failed.
317 fi
318
319 if as_func_failure; then
320   exitcode=1
321   echo as_func_failure succeeded.
322 fi
323
324 if as_func_ret_success; then
325   :
326 else
327   exitcode=1
328   echo as_func_ret_success failed.
329 fi
330
331 if as_func_ret_failure; then
332   exitcode=1
333   echo as_func_ret_failure succeeded.
334 fi
335
336 if ( set x; as_func_ret_success y && test x = "$1" ); then
337   :
338 else
339   exitcode=1
340   echo positional parameters were not saved.
341 fi
342
343 test $exitcode = 0) || { (exit 1); exit 1; }
344
345 (
346   as_lineno_1=$LINENO
347   as_lineno_2=$LINENO
348   test "x$as_lineno_1" != "x$as_lineno_2" &&
349   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
350
351 _ASEOF
352 }; then
353   break
354 fi
355
356 fi
357
358       done
359
360       if test "x$CONFIG_SHELL" != x; then
361   for as_var in BASH_ENV ENV
362         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
363         done
364         export CONFIG_SHELL
365         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
366 fi
367
368
369     if test $as_have_required = no; then
370   echo This script requires a shell more modern than all the
371       echo shells that I found on your system.  Please install a
372       echo modern shell, or manually run the script under such a
373       echo shell if you do have one.
374       { (exit 1); exit 1; }
375 fi
376
377
378 fi
379
380 fi
381
382
383
384 (eval "as_func_return () {
385   (exit \$1)
386 }
387 as_func_success () {
388   as_func_return 0
389 }
390 as_func_failure () {
391   as_func_return 1
392 }
393 as_func_ret_success () {
394   return 0
395 }
396 as_func_ret_failure () {
397   return 1
398 }
399
400 exitcode=0
401 if as_func_success; then
402   :
403 else
404   exitcode=1
405   echo as_func_success failed.
406 fi
407
408 if as_func_failure; then
409   exitcode=1
410   echo as_func_failure succeeded.
411 fi
412
413 if as_func_ret_success; then
414   :
415 else
416   exitcode=1
417   echo as_func_ret_success failed.
418 fi
419
420 if as_func_ret_failure; then
421   exitcode=1
422   echo as_func_ret_failure succeeded.
423 fi
424
425 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
426   :
427 else
428   exitcode=1
429   echo positional parameters were not saved.
430 fi
431
432 test \$exitcode = 0") || {
433   echo No shell found that supports shell functions.
434   echo Please tell bug-autoconf@gnu.org about your system,
435   echo including any error possibly output before this message.
436   echo This can help us improve future autoconf versions.
437   echo Configuration will now proceed without shell functions.
438 }
439
440
441
442   as_lineno_1=$LINENO
443   as_lineno_2=$LINENO
444   test "x$as_lineno_1" != "x$as_lineno_2" &&
445   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
446
447   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
448   # uniformly replaced by the line number.  The first 'sed' inserts a
449   # line-number line after each line using $LINENO; the second 'sed'
450   # does the real work.  The second script uses 'N' to pair each
451   # line-number line with the line containing $LINENO, and appends
452   # trailing '-' during substitution so that $LINENO is not a special
453   # case at line end.
454   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
455   # scripts with optimization help from Paolo Bonzini.  Blame Lee
456   # E. McMahon (1931-1989) for sed's syntax.  :-)
457   sed -n '
458     p
459     /[$]LINENO/=
460   ' <$as_myself |
461     sed '
462       s/[$]LINENO.*/&-/
463       t lineno
464       b
465       :lineno
466       N
467       :loop
468       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
469       t loop
470       s/-\n.*//
471     ' >$as_me.lineno &&
472   chmod +x "$as_me.lineno" ||
473     { { $as_echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
474 $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
475    { (exit 1); exit 1; }; }
476
477   # Don't try to exec as it changes $[0], causing all sort of problems
478   # (the dirname of $[0] is not the place where we might find the
479   # original and so on.  Autoconf is especially sensitive to this).
480   . "./$as_me.lineno"
481   # Exit status is that of the last command.
482   exit
483 }
484
485
486 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
487   as_dirname=dirname
488 else
489   as_dirname=false
490 fi
491
492 ECHO_C= ECHO_N= ECHO_T=
493 case `echo -n x` in
494 -n*)
495   case `echo 'x\c'` in
496   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
497   *)   ECHO_C='\c';;
498   esac;;
499 *)
500   ECHO_N='-n';;
501 esac
502 if expr a : '\(a\)' >/dev/null 2>&1 &&
503    test "X`expr 00001 : '.*\(...\)'`" = X001; then
504   as_expr=expr
505 else
506   as_expr=false
507 fi
508
509 rm -f conf$$ conf$$.exe conf$$.file
510 if test -d conf$$.dir; then
511   rm -f conf$$.dir/conf$$.file
512 else
513   rm -f conf$$.dir
514   mkdir conf$$.dir 2>/dev/null
515 fi
516 if (echo >conf$$.file) 2>/dev/null; then
517   if ln -s conf$$.file conf$$ 2>/dev/null; then
518     as_ln_s='ln -s'
519     # ... but there are two gotchas:
520     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
521     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
522     # In both cases, we have to default to `cp -p'.
523     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
524       as_ln_s='cp -p'
525   elif ln conf$$.file conf$$ 2>/dev/null; then
526     as_ln_s=ln
527   else
528     as_ln_s='cp -p'
529   fi
530 else
531   as_ln_s='cp -p'
532 fi
533 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
534 rmdir conf$$.dir 2>/dev/null
535
536 if mkdir -p . 2>/dev/null; then
537   as_mkdir_p=:
538 else
539   test -d ./-p && rmdir ./-p
540   as_mkdir_p=false
541 fi
542
543 if test -x / >/dev/null 2>&1; then
544   as_test_x='test -x'
545 else
546   if ls -dL / >/dev/null 2>&1; then
547     as_ls_L_option=L
548   else
549     as_ls_L_option=
550   fi
551   as_test_x='
552     eval sh -c '\''
553       if test -d "$1"; then
554         test -d "$1/.";
555       else
556         case $1 in
557         -*)set "./$1";;
558         esac;
559         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
560         ???[sx]*):;;*)false;;esac;fi
561     '\'' sh
562   '
563 fi
564 as_executable_p=$as_test_x
565
566 # Sed expression to map a string onto a valid CPP name.
567 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
568
569 # Sed expression to map a string onto a valid variable name.
570 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
571
572
573
574
575
576 SHELL=${CONFIG_SHELL-/bin/sh}
577
578 # How were we run?
579 at_cli_args="$@"
580
581
582 # Not all shells have the 'times' builtin; the subshell is needed to make
583 # sure we discard the 'times: not found' message from the shell.
584 at_times_p=false
585 (times) >/dev/null 2>&1 && at_times_p=:
586
587 # CLI Arguments to pass to the debugging scripts.
588 at_debug_args=
589 # -e sets to true
590 at_errexit_p=false
591 # Shall we be verbose?  ':' means no, empty means yes.
592 at_verbose=:
593 at_quiet=
594
595 # Shall we keep the debug scripts?  Must be `:' when the suite is
596 # run by a debug script, so that the script doesn't remove itself.
597 at_debug_p=false
598 # Display help message?
599 at_help_p=false
600 # Display the version message?
601 at_version_p=false
602 # List test groups?
603 at_list_p=false
604 # --clean
605 at_clean=false
606 # Test groups to run
607 at_groups=
608 # Whether a write failure occurred
609 at_write_fail=0
610
611 # The directory we run the suite in.  Default to . if no -C option.
612 at_dir=`pwd`
613 # An absolute reference to this testsuite script.
614 case $as_myself in
615   [\\/]* | ?:[\\/]* ) at_myself=$as_myself ;;
616   * ) at_myself=$at_dir/$as_myself ;;
617 esac
618 # Whether -C is in effect.
619 at_change_dir=false
620
621 # List of the tested programs.
622 at_tested='tar'
623 # List of the all the test groups.
624 at_groups_all=' 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98'
625 # As many question marks as there are digits in the last test group number.
626 # Used to normalize the test group numbers so that `ls' lists them in
627 # numerical order.
628 at_format='??'
629 # Description of all the test groups.
630 at_help_all="1;version.at:19;tar version;;
631 2;pipe.at:30;decompressing from stdin;pipe;
632 3;options.at:24;mixing options;options options00;
633 4;options02.at:26;interspersed options;options options02;
634 5;T-empty.at:26;files-from: empty entries;files-from empty;
635 6;T-null.at:21;files-from: 0-separated file without -0;files-from null t-null;
636 7;indexfile.at:26;tar --index-file=FILE --file=-;stdout indexfile;
637 8;verbose.at:26;tar cvf -;stdout verbose;
638 9;append.at:21;append;append append00;
639 10;append01.at:29;appending files with long names;append append01;
640 11;append02.at:54;append vs. create;append append02 append-gnu;
641 12;xform-h.at:30;transforming hard links on create;transform xform xform-h;
642 13;exclude.at:23;exclude;exclude;
643 14;exclude01.at:17;exclude wildcards;exclude exclude01;
644 15;exclude02.at:17;exclude: anchoring;exclude exclude02;
645 16;exclude03.at:17;exclude: wildcards match slash;exclude exclude03;
646 17;exclude04.at:17;exclude: case insensitive;exclude exclude04;
647 18;exclude05.at:19;exclude: lots of excludes;exclude exclude05;
648 19;delete01.at:23;deleting a member after a big one;delete delete01;
649 20;delete02.at:23;deleting a member from stdin archive;delete delete02;
650 21;delete03.at:21;deleting members with long names;delete delete03;
651 22;delete04.at:23;deleting a large last member;delete delete04;
652 23;delete05.at:27;deleting non-existing member;delete delete05;
653 24;extrac01.at:23;extract over an existing directory;extract extract01;
654 25;extrac02.at:23;extracting symlinks over an existing file;extract extract02 symlink;
655 26;extrac03.at:23;extraction loops;extract extract03;
656 27;extrac04.at:23;extract + fnmatch;extract extract04 fnmatch;
657 28;extrac05.at:30;extracting selected members from pax;extract extract05;
658 29;extrac06.at:33;mode of extracted directories;extract extract06 directory mode;
659 30;extrac07.at:27;extracting symlinks to a read-only dir;extract extract07 read-only symlink;
660 31;extrac08.at:33;restoring mode on existing directory;extract extrac08;
661 32;label01.at:19;single-volume label;label label01;
662 33;label02.at:19;multi-volume label;label label02 multi-label multivolume multiv;
663 34;backup01.at:33;extracting existing dir with --backup;extract backup backup01;
664 35;gzip.at:23;gzip;gzip;
665 36;incremental.at:23;incremental;incremental incr00;
666 37;incr01.at:27;restore broken symlinks from incremental;incremental incr01;
667 38;incr02.at:32;restoring timestamps from incremental;incremental timestamp restore incr02;
668 39;listed01.at:26;--listed for individual files;listed incremental listed01;
669 40;listed02.at:28;working --listed;listed incremental listed02;
670 41;incr03.at:28;renamed files in incrementals;incremental incr03 rename;
671 42;incr04.at:29;proper icontents initialization;incremental incr04 icontents;
672 43;incr05.at:19;incremental dumps with -C;incremental incr05;
673 44;incr06.at:19;incremental dumps of nested directories;incremental incr06;
674 45;filerem01.at:34;file removed as we read it (ca. 22 seconds);create incremental filechange filerem filerem01;
675 46;filerem02.at:24;toplevel file removed (ca. 24 seconds);create incremental filechange filerem filerem02;
676 47;rename01.at:24;renamed dirs in incrementals;incremental rename rename01;
677 48;rename02.at:24;move between hierarchies;incremental rename rename02;
678 49;rename03.at:23;cyclic renames;incremental rename rename03 cyclic-rename;
679 50;rename04.at:27;renamed directory containing subdirectories;incremental rename04 rename;
680 51;rename05.at:24;renamed subdirectories;incremental rename05 rename;
681 52;chtype.at:27;changed file types in incrementals;incremental chtype;
682 53;ignfail.at:23;ignfail;ignfail;
683 54;link01.at:33;link count gt 2;hardlinks link01;
684 55;link02.at:32;preserve hard links with --remove-files;hardlinks link02;
685 56;link03.at:24;working -l with --remove-files;hardlinks link03;
686 57;longv7.at:24;long names in V7 archives;longname longv7;
687 58;long01.at:28;long file names divisible by block size;longname long512;
688 59;lustar01.at:21;ustar: unsplittable file name;longname ustar lustar01;
689 60;lustar02.at:21;ustar: unsplittable path name;longname ustar lustar02;
690 61;lustar03.at:21;ustar: splitting long names;longname ustar lustar03;
691 62;multiv01.at:23;multivolume dumps from pipes;multivolume multiv multiv01;
692 63;multiv02.at:28;skipping a straddling member;multivolume multiv multiv02;
693 64;multiv03.at:30;MV archive & long filenames;multivolume multiv multiv03;
694 65;multiv04.at:36;split directory members in a MV archive;multivolume multiv incremental multiv04;
695 66;multiv05.at:26;Restoring after an out of sync volume;multivolume multiv multiv05 sync;
696 67;multiv06.at:27;Multivolumes with L=record_size;multivolume multiv multiv06;
697 68;multiv07.at:26;volumes split at an extended header;multivolume multiv multiv07 xsplit;
698 69;old.at:23;old archives;old;
699 70;recurse.at:21;recurse;recurse;
700 71;same-order01.at:26;working -C with --same-order;same-order same-order01;
701 72;same-order02.at:25;multiple -C options;same-order same-order02;
702 73;shortrec.at:25;short records;shortrec;
703 74;sparse01.at:21;sparse files;sparse sparse01;
704 75;sparse02.at:21;extracting sparse file over a pipe;sparse sparse02;
705 76;sparse03.at:21;storing sparse files > 8G;sparse sparse03;
706 77;sparsemv.at:21;sparse files in MV archives;sparse multiv sparsemv;
707 78;spmvp00.at:21;sparse files in PAX MV archives, v.0.0;sparse multiv sparsemvp sparsemvp00;
708 79;spmvp01.at:21;sparse files in PAX MV archives, v.0.1;sparse multiv sparsemvp sparsemvp01;
709 80;spmvp10.at:21;sparse files in PAX MV archives, v.1.0;sparse multiv sparsemvp sparsemvp10;
710 81;update.at:28;update unchanged directories;update update00;
711 82;update01.at:29;update directories;update update01;
712 83;update02.at:26;update changed files;update update02;
713 84;volume.at:23;volume;volume volcheck;
714 85;volsize.at:29;volume header size;volume volsize;
715 86;comprec.at:21;compressed format recognition;comprec;
716 87;shortfile.at:26;short input files;shortfile shortfile0;
717 88;shortupd.at:29;updating short archives;shortfile shortfile1 shortupd;
718 89;truncate.at:29;truncate;truncate filechange;
719 90;grow.at:24;grow;grow filechange;
720 91;remfiles01.at:28;remove-files with compression;create remove-files remfiles01 gzip;
721 92;remfiles02.at:28;remove-files with compression: grand-child;create remove-files remfiles02 gzip;
722 93;gtarfail.at:21;gtarfail;star gtarfail;
723 94;gtarfail2.at:21;gtarfail2;star gtarfail2;
724 95;multi-fail.at:21;multi-fail;star multivolume multiv multi-fail;
725 96;ustar-big-2g.at:21;ustar-big-2g;star ustar-big-2g;
726 97;ustar-big-8g.at:21;ustar-big-8g;star ustar-big-8g;
727 98;pax-big-10g.at:21;pax-big-10g;star pax-big-10g;
728 "
729
730 # at_func_validate_ranges [NAME...]
731 # ---------------------------------
732 # Validate and normalize the test group number contained in each
733 # variable NAME.  Leading zeroes are treated as decimal.
734 at_func_validate_ranges ()
735 {
736   for at_grp
737   do
738     eval at_value=\$$at_grp
739     if test $at_value -lt 1 || test $at_value -gt 98; then
740       $as_echo "invalid test group: $at_value" >&2
741       exit 1
742     fi
743     case $at_value in
744       0*) # We want to treat leading 0 as decimal, like expr and test, but
745           # at_func_arith treats it as octal if it uses $(( )).
746           # With XSI shells, ${at_value#${at_value%%[1-9]*}} avoids the
747           # expr fork, but it is not worth the effort to determine if the
748           # shell supports XSI when the user can just avoid leading 0.
749           eval $at_grp='`expr $at_value + 0`' ;;
750     esac
751   done
752 }
753
754 at_prev=
755 for at_option
756 do
757   # If the previous option needs an argument, assign it.
758   if test -n "$at_prev"; then
759     at_option=$at_prev=$at_option
760     at_prev=
761   fi
762
763   case $at_option in
764   *=*) at_optarg=`expr "x$at_option" : 'x[^=]*=\(.*\)'` ;;
765   *)   at_optarg= ;;
766   esac
767
768   # Accept the important Cygnus configure options, so we can diagnose typos.
769
770   case $at_option in
771     --help | -h )
772         at_help_p=:
773         ;;
774
775     --list | -l )
776         at_list_p=:
777         ;;
778
779     --version | -V )
780         at_version_p=:
781         ;;
782
783     --clean | -c )
784         at_clean=:
785         ;;
786
787     --debug | -d )
788         at_debug_p=:
789         ;;
790
791     --errexit | -e )
792         at_debug_p=:
793         at_errexit_p=:
794         ;;
795
796     --verbose | -v )
797         at_verbose=; at_quiet=:
798         ;;
799
800     --trace | -x )
801         at_traceon='set -x'; at_traceoff='set +x'
802         ;;
803
804     [0-9] | [0-9][0-9] | [0-9][0-9][0-9] | [0-9][0-9][0-9][0-9])
805         at_func_validate_ranges at_option
806         at_groups="$at_groups$at_option "
807         ;;
808
809     # Ranges
810     [0-9]- | [0-9][0-9]- | [0-9][0-9][0-9]- | [0-9][0-9][0-9][0-9]-)
811         at_range_start=`echo $at_option |tr -d X-`
812         at_func_validate_ranges at_range_start
813         at_range=`$as_echo " $at_groups_all " | \
814           sed -e 's/^.* \('$at_range_start' \)/\1/'`
815         at_groups="$at_groups$at_range "
816         ;;
817
818     -[0-9] | -[0-9][0-9] | -[0-9][0-9][0-9] | -[0-9][0-9][0-9][0-9])
819         at_range_end=`echo $at_option |tr -d X-`
820         at_func_validate_ranges at_range_end
821         at_range=`$as_echo " $at_groups_all " | \
822           sed -e 's/\( '$at_range_end'\) .*$/\1/'`
823         at_groups="$at_groups$at_range "
824         ;;
825
826     [0-9]-[0-9] | [0-9]-[0-9][0-9] | [0-9]-[0-9][0-9][0-9] | \
827     [0-9]-[0-9][0-9][0-9][0-9] | [0-9][0-9]-[0-9][0-9] | \
828     [0-9][0-9]-[0-9][0-9][0-9] | [0-9][0-9]-[0-9][0-9][0-9][0-9] | \
829     [0-9][0-9][0-9]-[0-9][0-9][0-9] | \
830     [0-9][0-9][0-9]-[0-9][0-9][0-9][0-9] | \
831     [0-9][0-9][0-9][0-9]-[0-9][0-9][0-9][0-9] )
832         at_range_start=`expr $at_option : '\(.*\)-'`
833         at_range_end=`expr $at_option : '.*-\(.*\)'`
834         if test $at_range_start -gt $at_range_end; then
835           at_tmp=$at_range_end
836           at_range_end=$at_range_start
837           at_range_start=$at_tmp
838         fi
839         at_func_validate_ranges at_range_start at_range_end
840         at_range=`$as_echo " $at_groups_all " | \
841           sed -e 's/^.*\( '$at_range_start' \)/\1/' \
842               -e 's/\( '$at_range_end'\) .*$/\1/'`
843         at_groups="$at_groups$at_range "
844         ;;
845
846     # Directory selection.
847     --directory | -C )
848         at_prev=--directory
849         ;;
850     --directory=* )
851         at_change_dir=:
852         at_dir=$at_optarg
853         ;;
854
855     # Keywords.
856     --keywords | -k )
857         at_prev=--keywords
858         ;;
859     --keywords=* )
860         at_groups_selected=$at_help_all
861         at_save_IFS=$IFS
862         IFS=,
863         set X $at_optarg
864         shift
865         IFS=$at_save_IFS
866         for at_keyword
867         do
868           at_invert=
869           case $at_keyword in
870           '!'*)
871             at_invert="-v"
872             at_keyword=`expr "X$at_keyword" : 'X!\(.*\)'`
873             ;;
874           esac
875           # It is on purpose that we match the test group titles too.
876           at_groups_selected=`$as_echo "$at_groups_selected" |
877               grep -i $at_invert "^[1-9][^;]*;.*[; ]$at_keyword[ ;]"`
878         done
879         # Smash the newlines.
880         at_groups_selected=`$as_echo "$at_groups_selected" | sed 's/;.*//' |
881           tr "$as_nl" ' '
882         `
883         at_groups="$at_groups$at_groups_selected "
884         ;;
885
886     *=*)
887         at_envvar=`expr "x$at_option" : 'x\([^=]*\)='`
888         # Reject names that are not valid shell variable names.
889         case $at_envvar in
890           '' | [0-9]* | *[!_$as_cr_alnum]* )
891             { { $as_echo "$as_me:$LINENO: error: invalid variable name: $at_envvar" >&5
892 $as_echo "$as_me: error: invalid variable name: $at_envvar" >&2;}
893    { (exit 1); exit 1; }; } ;;
894         esac
895         at_value=`$as_echo "$at_optarg" | sed "s/'/'\\\\\\\\''/g"`
896         # Export now, but save eval for later and for debug scripts.
897         export $at_envvar
898         at_debug_args="$at_debug_args $at_envvar='$at_value'"
899         ;;
900
901      *) $as_echo "$as_me: invalid option: $at_option" >&2
902         $as_echo "Try \`$0 --help' for more information." >&2
903         exit 1
904         ;;
905   esac
906 done
907
908 # Verify our last option didn't require an argument
909 if test -n "$at_prev"; then
910   { { $as_echo "$as_me:$LINENO: error: \`$at_prev' requires an argument." >&5
911 $as_echo "$as_me: error: \`$at_prev' requires an argument." >&2;}
912    { (exit 1); exit 1; }; }
913 fi
914
915
916 # Selected test groups.
917 if test -z "$at_groups"; then
918   at_groups=$at_groups_all
919 else
920   # Sort the tests, removing duplicates.
921   at_groups=`$as_echo "$at_groups" | tr ' ' "$as_nl" | sort -nu`
922 fi
923
924 # Help message.
925 if $at_help_p; then
926   cat <<_ATEOF || at_write_fail=1
927 Usage: $0 [OPTION]... [VARIABLE=VALUE]... [TESTS]
928
929 Run all the tests, or the selected TESTS, given by numeric ranges, and
930 save a detailed log file.  Upon failure, create debugging scripts.
931
932 You should not change environment variables unless explicitly passed
933 as command line arguments.  Set \`AUTOTEST_PATH' to select the executables
934 to exercise.  Each relative directory is expanded as build and source
935 directories relatively to the top level of this distribution.  E.g.,
936
937   $ $0 AUTOTEST_PATH=bin
938
939 possibly amounts into
940
941   PATH=/tmp/foo-1.0/bin:/src/foo-1.0/bin:\$PATH
942 _ATEOF
943 cat <<_ATEOF || at_write_fail=1
944
945 Operation modes:
946   -h, --help     print the help message, then exit
947   -V, --version  print version number, then exit
948   -c, --clean    remove all the files this test suite might create and exit
949   -l, --list     describes all the tests, or the selected TESTS
950 _ATEOF
951 cat <<_ATEOF || at_write_fail=1
952
953 Execution tuning:
954   -C, --directory=DIR
955                  change to directory DIR before starting
956   -k, --keywords=KEYWORDS
957                  select the tests matching all the comma-separated KEYWORDS
958                  multiple \`-k' accumulate; prefixed \`!' negates a KEYWORD
959   -e, --errexit  abort as soon as a test fails; implies --debug
960   -v, --verbose  force more detailed output
961                  default for debugging scripts
962   -d, --debug    inhibit clean up and top-level logging
963                  default for debugging scripts
964   -x, --trace    enable tests shell tracing
965 _ATEOF
966 cat <<_ATEOF || at_write_fail=1
967
968 Report bugs to <bug-tar@gnu.org>.
969 _ATEOF
970   exit $at_write_fail
971 fi
972
973 # List of tests.
974 if $at_list_p; then
975   cat <<_ATEOF || at_write_fail=1
976 GNU tar 1.23 test suite test groups:
977
978  NUM: FILE-NAME:LINE     TEST-GROUP-NAME
979       KEYWORDS
980
981 _ATEOF
982   # Passing at_groups is tricky.  We cannot use it to form a literal string
983   # or regexp because of the limitation of AIX awk.  And Solaris' awk
984   # doesn't grok more than 99 fields in a record, so we have to use `split'.
985   # at_groups needs to be space-separated for this script to work.
986   case $at_groups in
987     *"$as_nl"* )
988       at_groups=`$as_echo "$at_groups" | tr "$as_nl" ' '` ;;
989   esac
990   $as_echo "$at_groups$as_nl$at_help_all" |
991     awk 'BEGIN { FS = ";" }
992          NR == 1 {
993            for (n = split($ 0, a, " "); n; n--) selected[a[n]] = 1
994            next
995          }
996          {
997            if (selected[$ 1]) {
998              printf " %3d: %-18s %s\n", $ 1, $ 2, $ 3
999              if ($ 4) printf "      %s\n", $ 4
1000            }
1001          }' || at_write_fail=1
1002   exit $at_write_fail
1003 fi
1004 if $at_version_p; then
1005   $as_echo "$as_me (GNU tar 1.23)" &&
1006   cat <<\_ACEOF || at_write_fail=1
1007
1008 Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
1009 Free Software Foundation, Inc.
1010 This test suite is free software; the Free Software Foundation gives
1011 unlimited permission to copy, distribute and modify it.
1012 _ACEOF
1013   exit $at_write_fail
1014 fi
1015
1016 # Should we print banners?  at_groups is space-separated for entire test,
1017 # newline-separated if only a subset of the testsuite is run.
1018 case $at_groups in
1019   *' '*' '* | *"$as_nl"*"$as_nl"* )
1020       at_print_banners=: ;;
1021   * ) at_print_banners=false ;;
1022 esac
1023 # Text for banner N, set to empty once printed.
1024
1025 # Take any -C into account.
1026 if $at_change_dir ; then
1027   if test x- = "x$at_dir" ; then
1028     at_dir=./-
1029   fi
1030   test x != "x$at_dir" && cd "$at_dir" \
1031     || { { $as_echo "$as_me:$LINENO: error: unable to change directory" >&5
1032 $as_echo "$as_me: error: unable to change directory" >&2;}
1033    { (exit 1); exit 1; }; }
1034   at_dir=`pwd`
1035 fi
1036
1037 # Load the config files for any default variable assignments.
1038 for at_file in atconfig atlocal
1039 do
1040   test -r $at_file || continue
1041   . ./$at_file || { { $as_echo "$as_me:$LINENO: error: invalid content: $at_file" >&5
1042 $as_echo "$as_me: error: invalid content: $at_file" >&2;}
1043    { (exit 1); exit 1; }; }
1044 done
1045
1046 # Autoconf <=2.59b set at_top_builddir instead of at_top_build_prefix:
1047 : ${at_top_build_prefix=$at_top_builddir}
1048
1049 # Perform any assignments requested during argument parsing.
1050 eval "$at_debug_args"
1051
1052 # atconfig delivers names relative to the directory the test suite is
1053 # in, but the groups themselves are run in testsuite-dir/group-dir.
1054 if test -n "$at_top_srcdir"; then
1055   builddir=../..
1056   for at_dir_var in srcdir top_srcdir top_build_prefix
1057   do
1058     at_val=`eval 'as_val=${'at_$at_dir_var'}
1059                  $as_echo "$as_val"'`
1060     case $at_val in
1061       [\\/$]* | ?:[\\/]* ) at_prefix= ;;
1062       *) at_prefix=../../ ;;
1063     esac
1064     eval "$at_dir_var=\$at_prefix\$at_val"
1065   done
1066 fi
1067
1068 ## ------------------- ##
1069 ## Directory structure ##
1070 ## ------------------- ##
1071
1072 # This is the set of directories and files used by this script
1073 # (non-literals are capitalized):
1074 #
1075 # TESTSUITE         - the testsuite
1076 # TESTSUITE.log     - summarizes the complete testsuite run
1077 # TESTSUITE.dir/    - created during a run, remains after -d or failed test
1078 # + at-groups/      - during a run: status of all groups in run
1079 # | + NNN/          - during a run: meta-data about test group NNN
1080 # | | + check-line  - location (source file and line) of current AT_CHECK
1081 # | | + status      - exit status of current AT_CHECK
1082 # | | + stdout      - stdout of current AT_CHECK
1083 # | | + stder1      - stderr, including trace
1084 # | | + stderr      - stderr, with trace filtered out
1085 # | | + test-source - portion of testsuite that defines group
1086 # | | + times       - timestamps for computing duration
1087 # | | + pass        - created if group passed
1088 # | | + xpass       - created if group xpassed
1089 # | | + fail        - created if group failed
1090 # | | + xfail       - created if group xfailed
1091 # | | + skip        - created if group skipped
1092 # + at-stop         - during a run: end the run if this file exists
1093 # + at-source-lines - during a run: cache of TESTSUITE line numbers for extraction
1094 # + 0..NNN/         - created for each group NNN, remains after -d or failed test
1095 # | + TESTSUITE.log - summarizes the group results
1096 # | + ...           - files created during the group
1097
1098 # The directory the whole suite works in.
1099 # Should be absolute to let the user `cd' at will.
1100 at_suite_dir=$at_dir/$as_me.dir
1101 # The file containing the suite.
1102 at_suite_log=$at_dir/$as_me.log
1103 # The directory containing helper files per test group.
1104 at_helper_dir=$at_suite_dir/at-groups
1105 # Stop file: if it exists, do not start new jobs.
1106 at_stop_file=$at_suite_dir/at-stop
1107
1108 if $at_clean; then
1109   test -d "$at_suite_dir" &&
1110     find "$at_suite_dir" -type d ! -perm -700 -exec chmod u+rwx \{\} \;
1111   rm -f -r "$at_suite_dir" "$at_suite_log"
1112   exit $?
1113 fi
1114
1115 # Don't take risks: use only absolute directories in PATH.
1116 #
1117 # For stand-alone test suites (ie. atconfig was not found),
1118 # AUTOTEST_PATH is relative to `.'.
1119 #
1120 # For embedded test suites, AUTOTEST_PATH is relative to the top level
1121 # of the package.  Then expand it into build/src parts, since users
1122 # may create executables in both places.
1123 AUTOTEST_PATH=`$as_echo "$AUTOTEST_PATH" | sed "s|:|$PATH_SEPARATOR|g"`
1124 at_path=
1125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1126 for as_dir in $AUTOTEST_PATH $PATH
1127 do
1128   IFS=$as_save_IFS
1129   test -z "$as_dir" && as_dir=.
1130   test -n "$at_path" && at_path=$at_path$PATH_SEPARATOR
1131 case $as_dir in
1132   [\\/]* | ?:[\\/]* )
1133     at_path=$at_path$as_dir
1134     ;;
1135   * )
1136     if test -z "$at_top_build_prefix"; then
1137       # Stand-alone test suite.
1138       at_path=$at_path$as_dir
1139     else
1140       # Embedded test suite.
1141       at_path=$at_path$at_top_build_prefix$as_dir$PATH_SEPARATOR
1142       at_path=$at_path$at_top_srcdir/$as_dir
1143     fi
1144     ;;
1145 esac
1146 done
1147 IFS=$as_save_IFS
1148
1149
1150 # Now build and simplify PATH.
1151 #
1152 # There might be directories that don't exist, but don't redirect
1153 # builtins' (eg., cd) stderr directly: Ultrix's sh hates that.
1154 at_new_path=
1155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1156 for as_dir in $at_path
1157 do
1158   IFS=$as_save_IFS
1159   test -z "$as_dir" && as_dir=.
1160   test -d "$as_dir" || continue
1161 case $as_dir in
1162   [\\/]* | ?:[\\/]* ) ;;
1163   * ) as_dir=`(cd "$as_dir" && pwd) 2>/dev/null` ;;
1164 esac
1165 case $PATH_SEPARATOR$at_new_path$PATH_SEPARATOR in
1166   *$PATH_SEPARATOR$as_dir$PATH_SEPARATOR*) ;;
1167   $PATH_SEPARATOR$PATH_SEPARATOR) at_new_path=$as_dir ;;
1168   *) at_new_path=$at_new_path$PATH_SEPARATOR$as_dir ;;
1169 esac
1170 done
1171 IFS=$as_save_IFS
1172
1173 PATH=$at_new_path
1174 export PATH
1175
1176 # Setting up the FDs.
1177 # 5 is the log file.  Not to be overwritten if `-d'.
1178 if $at_debug_p; then
1179   at_suite_log=/dev/null
1180 else
1181   : >"$at_suite_log"
1182 fi
1183 exec 5>>"$at_suite_log"
1184
1185 # Banners and logs.
1186 cat <<\_ASBOX
1187 ## ------------------------ ##
1188 ## GNU tar 1.23 test suite. ##
1189 ## ------------------------ ##
1190 _ASBOX
1191 {
1192   cat <<\_ASBOX
1193 ## ------------------------ ##
1194 ## GNU tar 1.23 test suite. ##
1195 ## ------------------------ ##
1196 _ASBOX
1197   echo
1198
1199   $as_echo "$as_me: command line was:"
1200   $as_echo "  \$ $0 $at_cli_args"
1201   echo
1202
1203   # Try to find a few ChangeLogs in case it might help determining the
1204   # exact version.  Use the relative dir: if the top dir is a symlink,
1205   # find will not follow it (and options to follow the links are not
1206   # portable), which would result in no output here.  Prune directories
1207   # matching the package tarname, since they tend to be leftovers from
1208   # `make dist' or `make distcheck' and contain redundant or stale logs.
1209   if test -n "$at_top_srcdir"; then
1210     cat <<\_ASBOX
1211 ## ----------- ##
1212 ## ChangeLogs. ##
1213 ## ----------- ##
1214 _ASBOX
1215     echo
1216     for at_file in `find "$at_top_srcdir" -name "tar-*" -prune -o -name ChangeLog -print`
1217     do
1218       $as_echo "$as_me: $at_file:"
1219       sed 's/^/| /;10q' $at_file
1220       echo
1221     done
1222
1223   fi
1224
1225   {
1226 cat <<_ASUNAME
1227 ## --------- ##
1228 ## Platform. ##
1229 ## --------- ##
1230
1231 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1232 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1233 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1234 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1235 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1236
1237 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1238 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1239
1240 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1241 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1242 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1243 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1244 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1245 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1246 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1247
1248 _ASUNAME
1249
1250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1251 for as_dir in $PATH
1252 do
1253   IFS=$as_save_IFS
1254   test -z "$as_dir" && as_dir=.
1255   $as_echo "PATH: $as_dir"
1256 done
1257 IFS=$as_save_IFS
1258
1259 }
1260   echo
1261
1262   # Contents of the config files.
1263   for at_file in atconfig atlocal
1264   do
1265     test -r $at_file || continue
1266     $as_echo "$as_me: $at_file:"
1267     sed 's/^/| /' $at_file
1268     echo
1269   done
1270 } >&5
1271
1272
1273 ## --------------- ##
1274 ## Shell functions ##
1275 ## --------------- ##
1276
1277 # at_func_banner NUMBER
1278 # ---------------------
1279 # Output banner NUMBER, provided the testsuite is running multiple groups
1280 # and this particular banner has not yet been printed.
1281 at_func_banner ()
1282 {
1283   $at_print_banners || return 0
1284   eval at_banner_text=\$at_banner_text_$1
1285   test "x$at_banner_text" = x && return 0
1286   eval at_banner_text_$1=
1287   $as_echo "$as_nl$at_banner_text$as_nl"
1288 } # at_func_banner
1289
1290 # at_func_check_newline COMMAND
1291 # -----------------------------
1292 # Test if COMMAND includes a newline and, if so, print a message and return
1293 # exit code 1
1294 at_func_check_newline ()
1295 {
1296   case "$1" in
1297  *'
1298 '*) echo 'Not enabling shell tracing (command contains an embedded newline)'
1299     return 1 ;;
1300  *) return 0 ;;
1301   esac
1302 }
1303
1304 # at_func_filter_trace EXIT-CODE
1305 # ------------------------------
1306 # Split the contents of file "$at_stder1" into the "set -x" trace (on stderr)
1307 # and the other lines (on file "$at_stderr").  Return the exit code EXIT-CODE.
1308 at_func_filter_trace ()
1309 {
1310   grep '^ *+' "$at_stder1" >&2
1311   grep -v '^ *+' "$at_stder1" >"$at_stderr"
1312   return $1
1313 }
1314
1315 # at_func_log_failure FILE-LIST
1316 # -----------------------------
1317 # Copy the files in the list on stdout with a "> " prefix, and exit the shell
1318 # with a failure exit code.
1319 at_func_log_failure ()
1320 {
1321   for file
1322     do $as_echo "$file:"; sed 's/^/> /' "$file"; done
1323   echo 1 > "$at_status_file"
1324   exit 1
1325 }
1326
1327 # at_func_check_skip EXIT-CODE
1328 # ----------------------------
1329 # Check whether EXIT-CODE is the special exit code 77, and if so exit the shell
1330 # with that same exit code.
1331 at_func_check_skip ()
1332 {
1333   case $1 in
1334     77) echo 77 > "$at_status_file"; exit 77;;
1335   esac
1336 }
1337
1338 # at_func_check_status EXPECTED EXIT-CODE LINE
1339 # --------------------------------------------
1340 # Check whether EXIT-CODE is the expected exit code, and if so do nothing.
1341 # Otherwise, if it is 77 exit the shell with that same exit code; if it is
1342 # anything else print an error message and fail the test.
1343 at_func_check_status ()
1344 {
1345   case $2 in
1346     $1 ) ;;
1347     77) echo 77 > "$at_status_file"; exit 77;;
1348     *) $as_echo "$3: exit code was $2, expected $1"
1349       at_failed=:;;
1350   esac
1351 }
1352
1353 # at_func_diff_devnull FILE
1354 # -------------------------
1355 # Emit a diff between /dev/null and FILE.  Uses "test -s" to avoid useless
1356 # diff invocations.
1357 at_func_diff_devnull ()
1358 {
1359   test -s "$1" || return 0
1360   $at_diff "$at_devnull" "$1"
1361 }
1362
1363 # at_func_test NUMBER
1364 # -------------------
1365 # Parse out test NUMBER from the tail of this file.
1366 at_func_test ()
1367 {
1368   eval at_sed=\$at_sed$1
1369   sed "$at_sed" "$at_myself" > "$at_test_source"
1370 }
1371
1372 # at_func_create_debugging_script
1373 # -------------------------------
1374 # Create the debugging script $at_group_dir/run which will reproduce the
1375 # current test group.
1376 at_func_create_debugging_script ()
1377 {
1378   {
1379     echo "#! /bin/sh" &&
1380     echo 'test "${ZSH_VERSION+set}" = set && alias -g '\''${1+"$@"}'\''='\''"$@"'\''' &&
1381     $as_echo "cd '$at_dir'" &&
1382     $as_echo "exec \${CONFIG_SHELL-$SHELL} \"$at_myself\" -v -d $at_debug_args $at_group \${1+\"\$@\"}" &&
1383     echo 'exit 1'
1384   } >"$at_group_dir/run" &&
1385   chmod +x "$at_group_dir/run"
1386 }
1387
1388 # at_func_arith
1389 # -------------
1390 # Arithmetic evaluation, avoids expr if the shell is sane.  The
1391 # interpretation of leading zeroes is unspecified.
1392 #
1393 # subshell and eval are needed to keep Solaris sh from bailing out:
1394 if ( eval 'test $(( 1 + 1 )) = 2' ) 2>/dev/null; then
1395   # With "$@", bash does not split positional parameters:
1396   eval 'at_func_arith ()
1397   {
1398     at_func_arith_result=$(( $* ))
1399   }'
1400 else
1401   at_func_arith ()
1402   {
1403     at_func_arith_result=`expr "$@"`
1404   }
1405 fi
1406
1407 ## ---------------------- ##
1408 ## End of shell functions ##
1409 ## ---------------------- ##
1410 {
1411   cat <<\_ASBOX
1412 ## ---------------- ##
1413 ## Tested programs. ##
1414 ## ---------------- ##
1415 _ASBOX
1416   echo
1417 } >&5
1418
1419 # Report what programs are being tested.
1420 for at_program in : $at_tested
1421 do
1422   test "$at_program" = : && continue
1423   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1424 for as_dir in $PATH
1425 do
1426   IFS=$as_save_IFS
1427   test -z "$as_dir" && as_dir=.
1428   test -f "$as_dir/$at_program" && break
1429 done
1430 IFS=$as_save_IFS
1431
1432   if test -f "$as_dir/$at_program"; then
1433     {
1434       $as_echo "$at_srcdir/testsuite.at:104: $as_dir/$at_program --version"
1435       "$as_dir/$at_program" --version </dev/null
1436       echo
1437     } >&5 2>&1
1438   else
1439     { { $as_echo "$as_me:$LINENO: error: cannot find $at_program" >&5
1440 $as_echo "$as_me: error: cannot find $at_program" >&2;}
1441    { (exit 1); exit 1; }; }
1442   fi
1443 done
1444
1445 {
1446   cat <<\_ASBOX
1447 ## ------------------ ##
1448 ## Running the tests. ##
1449 ## ------------------ ##
1450 _ASBOX
1451 } >&5
1452
1453 at_start_date=`date`
1454 at_start_time=`date +%s 2>/dev/null`
1455 $as_echo "$as_me: starting at: $at_start_date" >&5
1456
1457 # Create the master directory if it doesn't already exist.
1458 test -d "$at_suite_dir" ||
1459   mkdir "$at_suite_dir" ||
1460   { { $as_echo "$as_me:$LINENO: error: cannot create '$at_suite_dir'" >&5
1461 $as_echo "$as_me: error: cannot create '$at_suite_dir'" >&2;}
1462    { (exit 1); exit 1; }; }
1463
1464 # Can we diff with `/dev/null'?  DU 5.0 refuses.
1465 if diff /dev/null /dev/null >/dev/null 2>&1; then
1466   at_devnull=/dev/null
1467 else
1468   at_devnull=$at_suite_dir/devnull
1469   >"$at_devnull"
1470 fi
1471
1472 # Use `diff -u' when possible.
1473 if at_diff=`diff -u "$at_devnull" "$at_devnull" 2>&1` && test -z "$at_diff"
1474 then
1475   at_diff='diff -u'
1476 else
1477   at_diff=diff
1478 fi
1479
1480 # Get the last needed group.
1481 for at_group in : $at_groups; do :; done
1482
1483 # Extract the start and end lines of each test group at the tail
1484 # of this file
1485 awk '
1486 BEGIN { FS="\a" }
1487 /^#AT_START_/ {
1488   start = NR
1489 }
1490 /^#AT_STOP_/ {
1491   test = substr ($ 0, 10)
1492   print "at_sed" test "=\"1," start "d;" (NR-1) "q\""
1493   if (test == "'"$at_group"'") exit
1494 }' "$at_myself" > "$at_suite_dir/at-source-lines" &&
1495 . "$at_suite_dir/at-source-lines" ||
1496   { { $as_echo "$as_me:$LINENO: error: cannot create test line number cache" >&5
1497 $as_echo "$as_me: error: cannot create test line number cache" >&2;}
1498    { (exit 1); exit 1; }; }
1499 rm -f "$at_suite_dir/at-source-lines"
1500
1501 # Set up helper dirs.
1502 rm -rf "$at_helper_dir" &&
1503 mkdir "$at_helper_dir" &&
1504 cd "$at_helper_dir" &&
1505 { test -z "$at_groups" || mkdir $at_groups; } ||
1506 { { $as_echo "$as_me:$LINENO: error: testsuite directory setup failed" >&5
1507 $as_echo "$as_me: error: testsuite directory setup failed" >&2;}
1508    { (exit 1); exit 1; }; }
1509
1510 # Functions for running a test group.  We leave the actual
1511 # test group execution outside of a shell function in order
1512 # to avoid hitting zsh 4.x exit status bugs.
1513
1514 # at_func_group_prepare
1515 # ---------------------
1516 # Prepare running a test group
1517 at_func_group_prepare ()
1518 {
1519   # The directory for additional per-group helper files.
1520   at_job_dir=$at_helper_dir/$at_group
1521   # The file containing the location of the last AT_CHECK.
1522   at_check_line_file=$at_job_dir/check-line
1523   # The file containing the exit status of the last command.
1524   at_status_file=$at_job_dir/status
1525   # The files containing the output of the tested commands.
1526   at_stdout=$at_job_dir/stdout
1527   at_stder1=$at_job_dir/stder1
1528   at_stderr=$at_job_dir/stderr
1529   # The file containing the code for a test group.
1530   at_test_source=$at_job_dir/test-source
1531   # The file containing dates.
1532   at_times_file=$at_job_dir/times
1533
1534   # Be sure to come back to the top test directory.
1535   cd "$at_suite_dir"
1536
1537   # Clearly separate the test groups when verbose.
1538   $at_first || $at_verbose echo
1539
1540   at_group_normalized=$at_group
1541
1542   eval 'while :; do
1543     case $at_group_normalized in #(
1544     '"$at_format"'*) break;;
1545     esac
1546     at_group_normalized=0$at_group_normalized
1547   done'
1548
1549
1550   # Create a fresh directory for the next test group, and enter.
1551   at_group_dir=$at_suite_dir/$at_group_normalized
1552   at_group_log=$at_group_dir/$as_me.log
1553   if test -d "$at_group_dir"; then
1554     find "$at_group_dir" -type d ! -perm -700 -exec chmod u+rwx \{\} \;
1555     rm -fr "$at_group_dir" ||
1556     { $as_echo "$as_me:$LINENO: WARNING: test directory for $at_group_normalized could not be cleaned." >&5
1557 $as_echo "$as_me: WARNING: test directory for $at_group_normalized could not be cleaned." >&2;}
1558   fi
1559   # Be tolerant if the above `rm' was not able to remove the directory.
1560   { as_dir="$at_group_dir"
1561   case $as_dir in #(
1562   -*) as_dir=./$as_dir;;
1563   esac
1564   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
1565     as_dirs=
1566     while :; do
1567       case $as_dir in #(
1568       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
1569       *) as_qdir=$as_dir;;
1570       esac
1571       as_dirs="'$as_qdir' $as_dirs"
1572       as_dir=`$as_dirname -- "$as_dir" ||
1573 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1574          X"$as_dir" : 'X\(//\)[^/]' \| \
1575          X"$as_dir" : 'X\(//\)$' \| \
1576          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
1577 $as_echo X"$as_dir" |
1578     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1579             s//\1/
1580             q
1581           }
1582           /^X\(\/\/\)[^/].*/{
1583             s//\1/
1584             q
1585           }
1586           /^X\(\/\/\)$/{
1587             s//\1/
1588             q
1589           }
1590           /^X\(\/\).*/{
1591             s//\1/
1592             q
1593           }
1594           s/.*/./; q'`
1595       test -d "$as_dir" && break
1596     done
1597     test -z "$as_dirs" || eval "mkdir $as_dirs"
1598   } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
1599 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
1600    { (exit 1); exit 1; }; }; }
1601
1602   echo 0 > "$at_status_file"
1603
1604   # In verbose mode, append to the log file *and* show on
1605   # the standard output; in quiet mode only write to the log.
1606   if test -z "$at_verbose"; then
1607     at_tee_pipe='tee -a "$at_group_log"'
1608   else
1609     at_tee_pipe='cat >> "$at_group_log"'
1610   fi
1611 }
1612
1613 # at_func_group_postprocess
1614 # -------------------------
1615 at_func_group_postprocess ()
1616 {
1617   # Be sure to come back to the suite directory, in particular
1618   # since below we might `rm' the group directory we are in currently.
1619   cd "$at_suite_dir"
1620
1621   if test ! -f "$at_check_line_file"; then
1622     sed "s/^ */$as_me: WARNING: /" <<_ATEOF
1623       A failure happened in a test group before any test could be
1624       run. This means that test suite is improperly designed.  Please
1625       report this failure to <bug-tar@gnu.org>.
1626 _ATEOF
1627     $as_echo "$at_setup_line" >"$at_check_line_file"
1628   fi
1629   $at_verbose $as_echo_n "$at_group. $at_setup_line: "
1630   $as_echo_n "$at_group. $at_setup_line: " >> "$at_group_log"
1631   case $at_xfail:$at_status in
1632     yes:0)
1633         at_msg="UNEXPECTED PASS"
1634         at_res=xpass
1635         at_errexit=$at_errexit_p
1636         ;;
1637     no:0)
1638         at_msg="ok"
1639         at_res=pass
1640         at_errexit=false
1641         ;;
1642     *:77)
1643         at_msg='skipped ('`cat "$at_check_line_file"`')'
1644         at_res=skip
1645         at_errexit=false
1646         ;;
1647     yes:*)
1648         at_msg='expected failure ('`cat "$at_check_line_file"`')'
1649         at_res=xfail
1650         at_errexit=false
1651         ;;
1652     no:*)
1653         at_msg='FAILED ('`cat "$at_check_line_file"`')'
1654         at_res=fail
1655         at_errexit=$at_errexit_p
1656         ;;
1657   esac
1658   echo "$at_res" > "$at_job_dir/$at_res"
1659   # Make sure there is a separator even with long titles.
1660   $as_echo " $at_msg"
1661   at_log_msg="$at_group. $at_desc ($at_setup_line): $at_msg"
1662   case $at_status in
1663     0|77)
1664       # $at_times_file is only available if the group succeeded.
1665       # We're not including the group log, so the success message
1666       # is written in the global log separately.  But we also
1667       # write to the group log in case they're using -d.
1668       if test -f "$at_times_file"; then
1669         at_log_msg="$at_log_msg     ("`sed 1d "$at_times_file"`')'
1670         rm -f "$at_times_file"
1671       fi
1672       $as_echo "$at_log_msg" >> "$at_group_log"
1673       $as_echo "$at_log_msg" >&5
1674
1675       # Cleanup the group directory, unless the user wants the files.
1676       if $at_debug_p; then
1677         at_func_create_debugging_script
1678       else
1679         if test -d "$at_group_dir"; then
1680           find "$at_group_dir" -type d ! -perm -700 -exec chmod u+rwx \{\} \;
1681           rm -fr "$at_group_dir"
1682         fi
1683         rm -f "$at_test_source"
1684       fi
1685       ;;
1686     *)
1687       # Upon failure, include the log into the testsuite's global
1688       # log.  The failure message is written in the group log.  It
1689       # is later included in the global log.
1690       $as_echo "$at_log_msg" >> "$at_group_log"
1691
1692       # Upon failure, keep the group directory for autopsy, and create
1693       # the debugging script.  With -e, do not start any further tests.
1694       at_func_create_debugging_script
1695       if $at_errexit; then
1696         echo stop > "$at_stop_file"
1697       fi
1698       ;;
1699   esac
1700 }
1701
1702
1703 ## ------------ ##
1704 ## Driver loop. ##
1705 ## ------------ ##
1706
1707 rm -f "$at_stop_file"
1708 at_first=:
1709
1710 for at_group in $at_groups; do
1711   at_func_group_prepare
1712   if cd "$at_group_dir" &&
1713      at_func_test $at_group &&
1714      . "$at_test_source"; then :; else
1715     { $as_echo "$as_me:$LINENO: WARNING: unable to parse test group: $at_group" >&5
1716 $as_echo "$as_me: WARNING: unable to parse test group: $at_group" >&2;}
1717     at_failed=:
1718   fi
1719   at_func_group_postprocess
1720   test -f "$at_stop_file" && break
1721   at_first=false
1722 done
1723
1724 # Wrap up the test suite with summary statistics.
1725 cd "$at_helper_dir"
1726
1727 # Use ?..???? when the list must remain sorted, the faster * otherwise.
1728 at_pass_list=`for f in */pass; do echo $f; done | sed '/\*/d; s,/pass,,'`
1729 at_skip_list=`for f in */skip; do echo $f; done | sed '/\*/d; s,/skip,,'`
1730 at_xfail_list=`for f in */xfail; do echo $f; done | sed '/\*/d; s,/xfail,,'`
1731 at_xpass_list=`for f in ?/xpass ??/xpass ???/xpass ????/xpass; do
1732                  echo $f; done | sed '/?/d; s,/xpass,,'`
1733 at_fail_list=`for f in ?/fail ??/fail ???/fail ????/fail; do
1734                 echo $f; done | sed '/?/d; s,/fail,,'`
1735
1736 set X $at_pass_list $at_xpass_list $at_xfail_list $at_fail_list $at_skip_list
1737 shift; at_group_count=$#
1738 set X $at_xpass_list; shift; at_xpass_count=$#; at_xpass_list=$*
1739 set X $at_xfail_list; shift; at_xfail_count=$#
1740 set X $at_fail_list; shift; at_fail_count=$#; at_fail_list=$*
1741 set X $at_skip_list; shift; at_skip_count=$#
1742
1743 at_func_arith $at_group_count - $at_skip_count
1744 at_run_count=$at_func_arith_result
1745 at_func_arith $at_xpass_count + $at_fail_count
1746 at_unexpected_count=$at_func_arith_result
1747 at_func_arith $at_xfail_count + $at_fail_count
1748 at_total_fail_count=$at_func_arith_result
1749
1750 # Back to the top directory.
1751 cd "$at_dir"
1752 rm -rf "$at_helper_dir"
1753
1754 # Compute the duration of the suite.
1755 at_stop_date=`date`
1756 at_stop_time=`date +%s 2>/dev/null`
1757 $as_echo "$as_me: ending at: $at_stop_date" >&5
1758 case $at_start_time,$at_stop_time in
1759   [0-9]*,[0-9]*)
1760     at_func_arith $at_stop_time - $at_start_time
1761     at_duration_s=$at_func_arith_result
1762     at_func_arith $at_duration_s / 60
1763     at_duration_m=$at_func_arith_result
1764     at_func_arith $at_duration_m / 60
1765     at_duration_h=$at_func_arith_result
1766     at_func_arith $at_duration_s % 60
1767     at_duration_s=$at_func_arith_result
1768     at_func_arith $at_duration_m % 60
1769     at_duration_m=$at_func_arith_result
1770     at_duration="${at_duration_h}h ${at_duration_m}m ${at_duration_s}s"
1771     $as_echo "$as_me: test suite duration: $at_duration" >&5
1772     ;;
1773 esac
1774
1775 echo
1776 cat <<\_ASBOX
1777 ## ------------- ##
1778 ## Test results. ##
1779 ## ------------- ##
1780 _ASBOX
1781 echo
1782 {
1783   echo
1784   cat <<\_ASBOX
1785 ## ------------- ##
1786 ## Test results. ##
1787 ## ------------- ##
1788 _ASBOX
1789   echo
1790 } >&5
1791
1792 if test $at_run_count = 1; then
1793   at_result="1 test"
1794   at_were=was
1795 else
1796   at_result="$at_run_count tests"
1797   at_were=were
1798 fi
1799 if $at_errexit_p && test $at_unexpected_count != 0; then
1800   if test $at_xpass_count = 1; then
1801     at_result="$at_result $at_were run, one passed"
1802   else
1803     at_result="$at_result $at_were run, one failed"
1804   fi
1805   at_result="$at_result unexpectedly and inhibited subsequent tests."
1806 else
1807   # Don't you just love exponential explosion of the number of cases?
1808   case $at_xpass_count:$at_fail_count:$at_xfail_count in
1809     # So far, so good.
1810     0:0:0) at_result="$at_result $at_were successful." ;;
1811     0:0:*) at_result="$at_result behaved as expected." ;;
1812
1813     # Some unexpected failures
1814     0:*:0) at_result="$at_result $at_were run,
1815 $at_fail_count failed unexpectedly." ;;
1816
1817     # Some failures, both expected and unexpected
1818     0:*:1) at_result="$at_result $at_were run,
1819 $at_total_fail_count failed ($at_xfail_count expected failure)." ;;
1820     0:*:*) at_result="$at_result $at_were run,
1821 $at_total_fail_count failed ($at_xfail_count expected failures)." ;;
1822
1823     # No unexpected failures, but some xpasses
1824     *:0:*) at_result="$at_result $at_were run,
1825 $at_xpass_count passed unexpectedly." ;;
1826
1827     # No expected failures, but failures and xpasses
1828     *:1:0) at_result="$at_result $at_were run,
1829 $at_unexpected_count did not behave as expected ($at_fail_count unexpected failure)." ;;
1830     *:*:0) at_result="$at_result $at_were run,
1831 $at_unexpected_count did not behave as expected ($at_fail_count unexpected failures)." ;;
1832
1833     # All of them.
1834     *:*:1) at_result="$at_result $at_were run,
1835 $at_xpass_count passed unexpectedly,
1836 $at_total_fail_count failed ($at_xfail_count expected failure)." ;;
1837     *:*:*) at_result="$at_result $at_were run,
1838 $at_xpass_count passed unexpectedly,
1839 $at_total_fail_count failed ($at_xfail_count expected failures)." ;;
1840   esac
1841
1842   if test $at_skip_count = 0 && test $at_run_count -gt 1; then
1843     at_result="All $at_result"
1844   fi
1845 fi
1846
1847 # Now put skips in the mix.
1848 case $at_skip_count in
1849   0) ;;
1850   1) at_result="$at_result
1851 1 test was skipped." ;;
1852   *) at_result="$at_result
1853 $at_skip_count tests were skipped." ;;
1854 esac
1855
1856 if test $at_unexpected_count = 0; then
1857   echo "$at_result"
1858   echo "$at_result" >&5
1859 else
1860   echo "ERROR: $at_result" >&2
1861   echo "ERROR: $at_result" >&5
1862   {
1863     echo
1864     cat <<\_ASBOX
1865 ## ------------------------ ##
1866 ## Summary of the failures. ##
1867 ## ------------------------ ##
1868 _ASBOX
1869
1870     # Summary of failed and skipped tests.
1871     if test $at_fail_count != 0; then
1872       echo "Failed tests:"
1873       $SHELL "$at_myself" $at_fail_list --list
1874       echo
1875     fi
1876     if test $at_skip_count != 0; then
1877       echo "Skipped tests:"
1878       $SHELL "$at_myself" $at_skip_list --list
1879       echo
1880     fi
1881     if test $at_xpass_count != 0; then
1882       echo "Unexpected passes:"
1883       $SHELL "$at_myself" $at_xpass_list --list
1884       echo
1885     fi
1886     if test $at_fail_count != 0; then
1887       cat <<\_ASBOX
1888 ## ---------------------- ##
1889 ## Detailed failed tests. ##
1890 ## ---------------------- ##
1891 _ASBOX
1892       echo
1893       for at_group in $at_fail_list
1894       do
1895         at_group_normalized=$at_group
1896
1897   eval 'while :; do
1898     case $at_group_normalized in #(
1899     '"$at_format"'*) break;;
1900     esac
1901     at_group_normalized=0$at_group_normalized
1902   done'
1903
1904         cat "$at_suite_dir/$at_group_normalized/$as_me.log"
1905         echo
1906       done
1907       echo
1908     fi
1909     if test -n "$at_top_srcdir"; then
1910       sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
1911 ## ${at_top_build_prefix}config.log ##
1912 _ASBOX
1913       sed 's/^/| /' ${at_top_build_prefix}config.log
1914       echo
1915     fi
1916   } >&5
1917
1918   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
1919 ## $as_me.log was created. ##
1920 _ASBOX
1921
1922   echo
1923   $as_echo "Please send \`${at_testdir+${at_testdir}/}$as_me.log' and all information you think might help:
1924
1925    To: <bug-tar@gnu.org>
1926    Subject: [GNU tar 1.23] $as_me: $at_fail_list${at_fail_list:+ failed${at_xpass_list:+, }}$at_xpass_list${at_xpass_list:+ passed unexpectedly}
1927 "
1928   if test $at_debug_p = false; then
1929     echo
1930     echo 'You may investigate any problem if you feel able to do so, in which'
1931     echo 'case the test suite provides a good starting point.  Its output may'
1932     $as_echo "be found below \`${at_testdir+${at_testdir}/}$as_me.dir'."
1933     echo
1934   fi
1935     exit 1
1936 fi
1937
1938 exit 0
1939
1940 ## ------------- ##
1941 ## Actual tests. ##
1942 ## ------------- ##
1943 #AT_START_1
1944 # 1. version.at:19: tar version
1945 at_setup_line='version.at:19'
1946 at_desc="tar version"
1947 $at_quiet $as_echo_n "  1: $at_desc                                    "
1948 at_xfail=no
1949 echo "#                             -*- compilation -*-" >> "$at_group_log"
1950 (
1951   $as_echo "1. version.at:19: testing ..."
1952   $at_traceon
1953
1954
1955 { $at_traceoff
1956 $as_echo "$at_srcdir/version.at:21: tar --version | sed 1q"
1957 echo version.at:21 >"$at_check_line_file"
1958
1959 if test -n "$at_traceon"; then
1960   ( $at_traceon; tar --version | sed 1q ) >"$at_stdout" 2>"$at_stder1"
1961   at_func_filter_trace $?
1962 else
1963   ( :; tar --version | sed 1q ) >"$at_stdout" 2>"$at_stderr"
1964 fi
1965 at_status=$?
1966 at_failed=false
1967 at_func_diff_devnull "$at_stderr" || at_failed=:
1968 echo >>"$at_stdout"; $as_echo "tar (GNU tar) 1.23
1969 " | \
1970   $at_diff - "$at_stdout" || at_failed=:
1971 at_func_check_status 0 $at_status "$at_srcdir/version.at:21"
1972 if $at_failed; then
1973   cat >$XFAILFILE <<'_EOT'
1974
1975 ==============================================================
1976 WARNING: Not using the proper version, *all* checks dubious...
1977 ==============================================================
1978 _EOT
1979
1980 else
1981   rm -f $XFAILFILE
1982 fi
1983
1984 $at_failed && at_func_log_failure
1985 $at_traceon; }
1986
1987
1988   $at_traceoff
1989   $at_times_p && times >"$at_times_file"
1990 ) 5>&1 2>&1 | eval $at_tee_pipe
1991 at_status=`cat "$at_status_file"`
1992 #AT_STOP_1
1993 #AT_START_2
1994 # 2. pipe.at:30: decompressing from stdin
1995 at_setup_line='pipe.at:30'
1996 at_desc="decompressing from stdin"
1997 $at_quiet $as_echo_n "  2: $at_desc                       "
1998 at_xfail=no
1999       test -f $XFAILFILE && at_xfail=yes
2000 echo "#                             -*- compilation -*-" >> "$at_group_log"
2001 (
2002   $as_echo "2. pipe.at:30: testing ..."
2003   $at_traceon
2004
2005
2006
2007
2008
2009
2010   { $at_traceoff
2011 $as_echo "$at_srcdir/pipe.at:34:
2012 mkdir v7
2013 (cd v7
2014 TEST_TAR_FORMAT=v7
2015 export TEST_TAR_FORMAT
2016 TAR_OPTIONS=\"-H v7\"
2017 export TAR_OPTIONS
2018 rm -rf *
2019
2020
2021 test -z "`sort < /dev/null 2>&1`" || exit 77
2022
2023
2024 mkdir directory
2025 genfile --length 10240 --pattern zeros --file directory/file1
2026 genfile --length 13 --file directory/file2
2027 tar cf archive directory
2028 mv directory orig
2029 cat archive | tar xfv - | sort
2030 echo \"separator\"
2031 cmp orig/file1 directory/file1
2032 echo \"separator\"
2033 cmp orig/file2 directory/file2)"
2034 echo pipe.at:34 >"$at_check_line_file"
2035
2036 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
2037    false; }; then
2038   ( $at_traceon;
2039 mkdir v7
2040 (cd v7
2041 TEST_TAR_FORMAT=v7
2042 export TEST_TAR_FORMAT
2043 TAR_OPTIONS="-H v7"
2044 export TAR_OPTIONS
2045 rm -rf *
2046
2047
2048 test -z "`sort < /dev/null 2>&1`" || exit 77
2049
2050
2051 mkdir directory
2052 genfile --length 10240 --pattern zeros --file directory/file1
2053 genfile --length 13 --file directory/file2
2054 tar cf archive directory
2055 mv directory orig
2056 cat archive | tar xfv - | sort
2057 echo "separator"
2058 cmp orig/file1 directory/file1
2059 echo "separator"
2060 cmp orig/file2 directory/file2) ) >"$at_stdout" 2>"$at_stder1"
2061   at_func_filter_trace $?
2062 else
2063   ( :;
2064 mkdir v7
2065 (cd v7
2066 TEST_TAR_FORMAT=v7
2067 export TEST_TAR_FORMAT
2068 TAR_OPTIONS="-H v7"
2069 export TAR_OPTIONS
2070 rm -rf *
2071
2072
2073 test -z "`sort < /dev/null 2>&1`" || exit 77
2074
2075
2076 mkdir directory
2077 genfile --length 10240 --pattern zeros --file directory/file1
2078 genfile --length 13 --file directory/file2
2079 tar cf archive directory
2080 mv directory orig
2081 cat archive | tar xfv - | sort
2082 echo "separator"
2083 cmp orig/file1 directory/file1
2084 echo "separator"
2085 cmp orig/file2 directory/file2) ) >"$at_stdout" 2>"$at_stderr"
2086 fi
2087 at_status=$?
2088 at_failed=false
2089 at_func_diff_devnull "$at_stderr" || at_failed=:
2090 echo >>"$at_stdout"; $as_echo "directory/
2091 directory/file1
2092 directory/file2
2093 separator
2094 separator
2095 " | \
2096   $at_diff - "$at_stdout" || at_failed=:
2097 at_func_check_status 0 $at_status "$at_srcdir/pipe.at:34"
2098
2099 $at_failed && at_func_log_failure
2100 $at_traceon; }
2101
2102               { $at_traceoff
2103 $as_echo "$at_srcdir/pipe.at:34:
2104 mkdir oldgnu
2105 (cd oldgnu
2106 TEST_TAR_FORMAT=oldgnu
2107 export TEST_TAR_FORMAT
2108 TAR_OPTIONS=\"-H oldgnu\"
2109 export TAR_OPTIONS
2110 rm -rf *
2111
2112
2113 test -z "`sort < /dev/null 2>&1`" || exit 77
2114
2115
2116 mkdir directory
2117 genfile --length 10240 --pattern zeros --file directory/file1
2118 genfile --length 13 --file directory/file2
2119 tar cf archive directory
2120 mv directory orig
2121 cat archive | tar xfv - | sort
2122 echo \"separator\"
2123 cmp orig/file1 directory/file1
2124 echo \"separator\"
2125 cmp orig/file2 directory/file2)"
2126 echo pipe.at:34 >"$at_check_line_file"
2127
2128 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
2129    false; }; then
2130   ( $at_traceon;
2131 mkdir oldgnu
2132 (cd oldgnu
2133 TEST_TAR_FORMAT=oldgnu
2134 export TEST_TAR_FORMAT
2135 TAR_OPTIONS="-H oldgnu"
2136 export TAR_OPTIONS
2137 rm -rf *
2138
2139
2140 test -z "`sort < /dev/null 2>&1`" || exit 77
2141
2142
2143 mkdir directory
2144 genfile --length 10240 --pattern zeros --file directory/file1
2145 genfile --length 13 --file directory/file2
2146 tar cf archive directory
2147 mv directory orig
2148 cat archive | tar xfv - | sort
2149 echo "separator"
2150 cmp orig/file1 directory/file1
2151 echo "separator"
2152 cmp orig/file2 directory/file2) ) >"$at_stdout" 2>"$at_stder1"
2153   at_func_filter_trace $?
2154 else
2155   ( :;
2156 mkdir oldgnu
2157 (cd oldgnu
2158 TEST_TAR_FORMAT=oldgnu
2159 export TEST_TAR_FORMAT
2160 TAR_OPTIONS="-H oldgnu"
2161 export TAR_OPTIONS
2162 rm -rf *
2163
2164
2165 test -z "`sort < /dev/null 2>&1`" || exit 77
2166
2167
2168 mkdir directory
2169 genfile --length 10240 --pattern zeros --file directory/file1
2170 genfile --length 13 --file directory/file2
2171 tar cf archive directory
2172 mv directory orig
2173 cat archive | tar xfv - | sort
2174 echo "separator"
2175 cmp orig/file1 directory/file1
2176 echo "separator"
2177 cmp orig/file2 directory/file2) ) >"$at_stdout" 2>"$at_stderr"
2178 fi
2179 at_status=$?
2180 at_failed=false
2181 at_func_diff_devnull "$at_stderr" || at_failed=:
2182 echo >>"$at_stdout"; $as_echo "directory/
2183 directory/file1
2184 directory/file2
2185 separator
2186 separator
2187 " | \
2188   $at_diff - "$at_stdout" || at_failed=:
2189 at_func_check_status 0 $at_status "$at_srcdir/pipe.at:34"
2190
2191 $at_failed && at_func_log_failure
2192 $at_traceon; }
2193
2194               { $at_traceoff
2195 $as_echo "$at_srcdir/pipe.at:34:
2196 mkdir ustar
2197 (cd ustar
2198 TEST_TAR_FORMAT=ustar
2199 export TEST_TAR_FORMAT
2200 TAR_OPTIONS=\"-H ustar\"
2201 export TAR_OPTIONS
2202 rm -rf *
2203
2204
2205 test -z "`sort < /dev/null 2>&1`" || exit 77
2206
2207
2208 mkdir directory
2209 genfile --length 10240 --pattern zeros --file directory/file1
2210 genfile --length 13 --file directory/file2
2211 tar cf archive directory
2212 mv directory orig
2213 cat archive | tar xfv - | sort
2214 echo \"separator\"
2215 cmp orig/file1 directory/file1
2216 echo \"separator\"
2217 cmp orig/file2 directory/file2)"
2218 echo pipe.at:34 >"$at_check_line_file"
2219
2220 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
2221    false; }; then
2222   ( $at_traceon;
2223 mkdir ustar
2224 (cd ustar
2225 TEST_TAR_FORMAT=ustar
2226 export TEST_TAR_FORMAT
2227 TAR_OPTIONS="-H ustar"
2228 export TAR_OPTIONS
2229 rm -rf *
2230
2231
2232 test -z "`sort < /dev/null 2>&1`" || exit 77
2233
2234
2235 mkdir directory
2236 genfile --length 10240 --pattern zeros --file directory/file1
2237 genfile --length 13 --file directory/file2
2238 tar cf archive directory
2239 mv directory orig
2240 cat archive | tar xfv - | sort
2241 echo "separator"
2242 cmp orig/file1 directory/file1
2243 echo "separator"
2244 cmp orig/file2 directory/file2) ) >"$at_stdout" 2>"$at_stder1"
2245   at_func_filter_trace $?
2246 else
2247   ( :;
2248 mkdir ustar
2249 (cd ustar
2250 TEST_TAR_FORMAT=ustar
2251 export TEST_TAR_FORMAT
2252 TAR_OPTIONS="-H ustar"
2253 export TAR_OPTIONS
2254 rm -rf *
2255
2256
2257 test -z "`sort < /dev/null 2>&1`" || exit 77
2258
2259
2260 mkdir directory
2261 genfile --length 10240 --pattern zeros --file directory/file1
2262 genfile --length 13 --file directory/file2
2263 tar cf archive directory
2264 mv directory orig
2265 cat archive | tar xfv - | sort
2266 echo "separator"
2267 cmp orig/file1 directory/file1
2268 echo "separator"
2269 cmp orig/file2 directory/file2) ) >"$at_stdout" 2>"$at_stderr"
2270 fi
2271 at_status=$?
2272 at_failed=false
2273 at_func_diff_devnull "$at_stderr" || at_failed=:
2274 echo >>"$at_stdout"; $as_echo "directory/
2275 directory/file1
2276 directory/file2
2277 separator
2278 separator
2279 " | \
2280   $at_diff - "$at_stdout" || at_failed=:
2281 at_func_check_status 0 $at_status "$at_srcdir/pipe.at:34"
2282
2283 $at_failed && at_func_log_failure
2284 $at_traceon; }
2285
2286               { $at_traceoff
2287 $as_echo "$at_srcdir/pipe.at:34:
2288 mkdir posix
2289 (cd posix
2290 TEST_TAR_FORMAT=posix
2291 export TEST_TAR_FORMAT
2292 TAR_OPTIONS=\"-H posix\"
2293 export TAR_OPTIONS
2294 rm -rf *
2295
2296
2297 test -z "`sort < /dev/null 2>&1`" || exit 77
2298
2299
2300 mkdir directory
2301 genfile --length 10240 --pattern zeros --file directory/file1
2302 genfile --length 13 --file directory/file2
2303 tar cf archive directory
2304 mv directory orig
2305 cat archive | tar xfv - | sort
2306 echo \"separator\"
2307 cmp orig/file1 directory/file1
2308 echo \"separator\"
2309 cmp orig/file2 directory/file2)"
2310 echo pipe.at:34 >"$at_check_line_file"
2311
2312 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
2313    false; }; then
2314   ( $at_traceon;
2315 mkdir posix
2316 (cd posix
2317 TEST_TAR_FORMAT=posix
2318 export TEST_TAR_FORMAT
2319 TAR_OPTIONS="-H posix"
2320 export TAR_OPTIONS
2321 rm -rf *
2322
2323
2324 test -z "`sort < /dev/null 2>&1`" || exit 77
2325
2326
2327 mkdir directory
2328 genfile --length 10240 --pattern zeros --file directory/file1
2329 genfile --length 13 --file directory/file2
2330 tar cf archive directory
2331 mv directory orig
2332 cat archive | tar xfv - | sort
2333 echo "separator"
2334 cmp orig/file1 directory/file1
2335 echo "separator"
2336 cmp orig/file2 directory/file2) ) >"$at_stdout" 2>"$at_stder1"
2337   at_func_filter_trace $?
2338 else
2339   ( :;
2340 mkdir posix
2341 (cd posix
2342 TEST_TAR_FORMAT=posix
2343 export TEST_TAR_FORMAT
2344 TAR_OPTIONS="-H posix"
2345 export TAR_OPTIONS
2346 rm -rf *
2347
2348
2349 test -z "`sort < /dev/null 2>&1`" || exit 77
2350
2351
2352 mkdir directory
2353 genfile --length 10240 --pattern zeros --file directory/file1
2354 genfile --length 13 --file directory/file2
2355 tar cf archive directory
2356 mv directory orig
2357 cat archive | tar xfv - | sort
2358 echo "separator"
2359 cmp orig/file1 directory/file1
2360 echo "separator"
2361 cmp orig/file2 directory/file2) ) >"$at_stdout" 2>"$at_stderr"
2362 fi
2363 at_status=$?
2364 at_failed=false
2365 at_func_diff_devnull "$at_stderr" || at_failed=:
2366 echo >>"$at_stdout"; $as_echo "directory/
2367 directory/file1
2368 directory/file2
2369 separator
2370 separator
2371 " | \
2372   $at_diff - "$at_stdout" || at_failed=:
2373 at_func_check_status 0 $at_status "$at_srcdir/pipe.at:34"
2374
2375 $at_failed && at_func_log_failure
2376 $at_traceon; }
2377
2378               { $at_traceoff
2379 $as_echo "$at_srcdir/pipe.at:34:
2380 mkdir gnu
2381 (cd gnu
2382 TEST_TAR_FORMAT=gnu
2383 export TEST_TAR_FORMAT
2384 TAR_OPTIONS=\"-H gnu\"
2385 export TAR_OPTIONS
2386 rm -rf *
2387
2388
2389 test -z "`sort < /dev/null 2>&1`" || exit 77
2390
2391
2392 mkdir directory
2393 genfile --length 10240 --pattern zeros --file directory/file1
2394 genfile --length 13 --file directory/file2
2395 tar cf archive directory
2396 mv directory orig
2397 cat archive | tar xfv - | sort
2398 echo \"separator\"
2399 cmp orig/file1 directory/file1
2400 echo \"separator\"
2401 cmp orig/file2 directory/file2)"
2402 echo pipe.at:34 >"$at_check_line_file"
2403
2404 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
2405    false; }; then
2406   ( $at_traceon;
2407 mkdir gnu
2408 (cd gnu
2409 TEST_TAR_FORMAT=gnu
2410 export TEST_TAR_FORMAT
2411 TAR_OPTIONS="-H gnu"
2412 export TAR_OPTIONS
2413 rm -rf *
2414
2415
2416 test -z "`sort < /dev/null 2>&1`" || exit 77
2417
2418
2419 mkdir directory
2420 genfile --length 10240 --pattern zeros --file directory/file1
2421 genfile --length 13 --file directory/file2
2422 tar cf archive directory
2423 mv directory orig
2424 cat archive | tar xfv - | sort
2425 echo "separator"
2426 cmp orig/file1 directory/file1
2427 echo "separator"
2428 cmp orig/file2 directory/file2) ) >"$at_stdout" 2>"$at_stder1"
2429   at_func_filter_trace $?
2430 else
2431   ( :;
2432 mkdir gnu
2433 (cd gnu
2434 TEST_TAR_FORMAT=gnu
2435 export TEST_TAR_FORMAT
2436 TAR_OPTIONS="-H gnu"
2437 export TAR_OPTIONS
2438 rm -rf *
2439
2440
2441 test -z "`sort < /dev/null 2>&1`" || exit 77
2442
2443
2444 mkdir directory
2445 genfile --length 10240 --pattern zeros --file directory/file1
2446 genfile --length 13 --file directory/file2
2447 tar cf archive directory
2448 mv directory orig
2449 cat archive | tar xfv - | sort
2450 echo "separator"
2451 cmp orig/file1 directory/file1
2452 echo "separator"
2453 cmp orig/file2 directory/file2) ) >"$at_stdout" 2>"$at_stderr"
2454 fi
2455 at_status=$?
2456 at_failed=false
2457 at_func_diff_devnull "$at_stderr" || at_failed=:
2458 echo >>"$at_stdout"; $as_echo "directory/
2459 directory/file1
2460 directory/file2
2461 separator
2462 separator
2463 " | \
2464   $at_diff - "$at_stdout" || at_failed=:
2465 at_func_check_status 0 $at_status "$at_srcdir/pipe.at:34"
2466
2467 $at_failed && at_func_log_failure
2468 $at_traceon; }
2469
2470
2471
2472
2473   $at_traceoff
2474   $at_times_p && times >"$at_times_file"
2475 ) 5>&1 2>&1 | eval $at_tee_pipe
2476 at_status=`cat "$at_status_file"`
2477 #AT_STOP_2
2478 #AT_START_3
2479 # 3. options.at:24: mixing options
2480 at_setup_line='options.at:24'
2481 at_desc="mixing options"
2482 $at_quiet $as_echo_n "  3: $at_desc                                 "
2483 at_xfail=no
2484 echo "#                             -*- compilation -*-" >> "$at_group_log"
2485 (
2486   $as_echo "3. options.at:24: testing ..."
2487   $at_traceon
2488
2489
2490
2491 { $at_traceoff
2492 $as_echo "$at_srcdir/options.at:27:
2493 echo > file1
2494 TAR_OPTIONS=--numeric-owner tar chof archive file1
2495 tar tf archive
2496 "
2497 echo options.at:27 >"$at_check_line_file"
2498
2499 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
2500    false; }; then
2501   ( $at_traceon;
2502 echo > file1
2503 TAR_OPTIONS=--numeric-owner tar chof archive file1
2504 tar tf archive
2505  ) >"$at_stdout" 2>"$at_stder1"
2506   at_func_filter_trace $?
2507 else
2508   ( :;
2509 echo > file1
2510 TAR_OPTIONS=--numeric-owner tar chof archive file1
2511 tar tf archive
2512  ) >"$at_stdout" 2>"$at_stderr"
2513 fi
2514 at_status=$?
2515 at_failed=false
2516 at_func_diff_devnull "$at_stderr" || at_failed=:
2517 echo >>"$at_stdout"; $as_echo "file1
2518 " | \
2519   $at_diff - "$at_stdout" || at_failed=:
2520 at_func_check_status 0 $at_status "$at_srcdir/options.at:27"
2521
2522 $at_failed && at_func_log_failure
2523 $at_traceon; }
2524
2525
2526   $at_traceoff
2527   $at_times_p && times >"$at_times_file"
2528 ) 5>&1 2>&1 | eval $at_tee_pipe
2529 at_status=`cat "$at_status_file"`
2530 #AT_STOP_3
2531 #AT_START_4
2532 # 4. options02.at:26: interspersed options
2533 at_setup_line='options02.at:26'
2534 at_desc="interspersed options"
2535 $at_quiet $as_echo_n "  4: $at_desc                           "
2536 at_xfail=no
2537 echo "#                             -*- compilation -*-" >> "$at_group_log"
2538 (
2539   $as_echo "4. options02.at:26: testing ..."
2540   $at_traceon
2541
2542
2543
2544 { $at_traceoff
2545 $as_echo "$at_srcdir/options02.at:29:
2546 echo > file1
2547 tar c file1 -f archive
2548 tar tf archive
2549 "
2550 echo options02.at:29 >"$at_check_line_file"
2551
2552 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
2553    false; }; then
2554   ( $at_traceon;
2555 echo > file1
2556 tar c file1 -f archive
2557 tar tf archive
2558  ) >"$at_stdout" 2>"$at_stder1"
2559   at_func_filter_trace $?
2560 else
2561   ( :;
2562 echo > file1
2563 tar c file1 -f archive
2564 tar tf archive
2565  ) >"$at_stdout" 2>"$at_stderr"
2566 fi
2567 at_status=$?
2568 at_failed=false
2569 at_func_diff_devnull "$at_stderr" || at_failed=:
2570 echo >>"$at_stdout"; $as_echo "file1
2571 " | \
2572   $at_diff - "$at_stdout" || at_failed=:
2573 at_func_check_status 0 $at_status "$at_srcdir/options02.at:29"
2574
2575 $at_failed && at_func_log_failure
2576 $at_traceon; }
2577
2578
2579   $at_traceoff
2580   $at_times_p && times >"$at_times_file"
2581 ) 5>&1 2>&1 | eval $at_tee_pipe
2582 at_status=`cat "$at_status_file"`
2583 #AT_STOP_4
2584 #AT_START_5
2585 # 5. T-empty.at:26: files-from: empty entries
2586 at_setup_line='T-empty.at:26'
2587 at_desc="files-from: empty entries"
2588 $at_quiet $as_echo_n "  5: $at_desc                      "
2589 at_xfail=no
2590       test -f $XFAILFILE && at_xfail=yes
2591 echo "#                             -*- compilation -*-" >> "$at_group_log"
2592 (
2593   $as_echo "5. T-empty.at:26: testing ..."
2594   $at_traceon
2595
2596
2597
2598 cat >file-list <<'_ATEOF'
2599 jeden
2600 dwa
2601
2602 trzy
2603 _ATEOF
2604
2605
2606
2607
2608   { $at_traceoff
2609 $as_echo "$at_srcdir/T-empty.at:36:
2610 mkdir ustar
2611 (cd ustar
2612 TEST_TAR_FORMAT=ustar
2613 export TEST_TAR_FORMAT
2614 TAR_OPTIONS=\"-H ustar\"
2615 export TAR_OPTIONS
2616 rm -rf *
2617
2618
2619 test -z "`sort < /dev/null 2>&1`" || exit 77
2620
2621
2622 genfile --file jeden
2623 genfile --file dwa
2624 genfile --file trzy
2625
2626 tar cfvT archive ../file-list | sort
2627 )"
2628 echo T-empty.at:36 >"$at_check_line_file"
2629
2630 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
2631    false; }; then
2632   ( $at_traceon;
2633 mkdir ustar
2634 (cd ustar
2635 TEST_TAR_FORMAT=ustar
2636 export TEST_TAR_FORMAT
2637 TAR_OPTIONS="-H ustar"
2638 export TAR_OPTIONS
2639 rm -rf *
2640
2641
2642 test -z "`sort < /dev/null 2>&1`" || exit 77
2643
2644
2645 genfile --file jeden
2646 genfile --file dwa
2647 genfile --file trzy
2648
2649 tar cfvT archive ../file-list | sort
2650 ) ) >"$at_stdout" 2>"$at_stder1"
2651   at_func_filter_trace $?
2652 else
2653   ( :;
2654 mkdir ustar
2655 (cd ustar
2656 TEST_TAR_FORMAT=ustar
2657 export TEST_TAR_FORMAT
2658 TAR_OPTIONS="-H ustar"
2659 export TAR_OPTIONS
2660 rm -rf *
2661
2662
2663 test -z "`sort < /dev/null 2>&1`" || exit 77
2664
2665
2666 genfile --file jeden
2667 genfile --file dwa
2668 genfile --file trzy
2669
2670 tar cfvT archive ../file-list | sort
2671 ) ) >"$at_stdout" 2>"$at_stderr"
2672 fi
2673 at_status=$?
2674 at_failed=false
2675 at_func_diff_devnull "$at_stderr" || at_failed=:
2676 echo >>"$at_stdout"; $as_echo "dwa
2677 jeden
2678 trzy
2679 " | \
2680   $at_diff - "$at_stdout" || at_failed=:
2681 at_func_check_status 0 $at_status "$at_srcdir/T-empty.at:36"
2682
2683 $at_failed && at_func_log_failure
2684 $at_traceon; }
2685
2686
2687  # Testing one format is enough
2688
2689   $at_traceoff
2690   $at_times_p && times >"$at_times_file"
2691 ) 5>&1 2>&1 | eval $at_tee_pipe
2692 at_status=`cat "$at_status_file"`
2693 #AT_STOP_5
2694 #AT_START_6
2695 # 6. T-null.at:21: files-from: 0-separated file without -0
2696 at_setup_line='T-null.at:21'
2697 at_desc="files-from: 0-separated file without -0"
2698 $at_quiet $as_echo_n "  6: $at_desc        "
2699 at_xfail=no
2700       test -f $XFAILFILE && at_xfail=yes
2701 echo "#                             -*- compilation -*-" >> "$at_group_log"
2702 (
2703   $as_echo "6. T-null.at:21: testing ..."
2704   $at_traceon
2705
2706
2707
2708 cat >expout <<'_ATEOF'
2709 jeden\ndwa
2710 trzy
2711 _ATEOF
2712
2713
2714
2715
2716   { $at_traceoff
2717 $as_echo "$at_srcdir/T-null.at:28:
2718 mkdir ustar
2719 (cd ustar
2720 TEST_TAR_FORMAT=ustar
2721 export TEST_TAR_FORMAT
2722 TAR_OPTIONS=\"-H ustar\"
2723 export TAR_OPTIONS
2724 rm -rf *
2725
2726
2727 test -z "`sort < /dev/null 2>&1`" || exit 77
2728
2729
2730 echo dwa > temp
2731 echo trzy >> temp
2732 cat temp | tr '\\n' '\\0' > temp1
2733 echo jeden > file-list
2734 cat temp1 >> file-list
2735
2736 genfile -f \"jeden
2737 dwa\" || exit 77
2738 genfile -f trzy
2739
2740 tar cfTv archive file-list | sort
2741 )"
2742 echo T-null.at:28 >"$at_check_line_file"
2743
2744 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
2745    false; }; then
2746   ( $at_traceon;
2747 mkdir ustar
2748 (cd ustar
2749 TEST_TAR_FORMAT=ustar
2750 export TEST_TAR_FORMAT
2751 TAR_OPTIONS="-H ustar"
2752 export TAR_OPTIONS
2753 rm -rf *
2754
2755
2756 test -z "`sort < /dev/null 2>&1`" || exit 77
2757
2758
2759 echo dwa > temp
2760 echo trzy >> temp
2761 cat temp | tr '\n' '\0' > temp1
2762 echo jeden > file-list
2763 cat temp1 >> file-list
2764
2765 genfile -f "jeden
2766 dwa" || exit 77
2767 genfile -f trzy
2768
2769 tar cfTv archive file-list | sort
2770 ) ) >"$at_stdout" 2>"$at_stder1"
2771   at_func_filter_trace $?
2772 else
2773   ( :;
2774 mkdir ustar
2775 (cd ustar
2776 TEST_TAR_FORMAT=ustar
2777 export TEST_TAR_FORMAT
2778 TAR_OPTIONS="-H ustar"
2779 export TAR_OPTIONS
2780 rm -rf *
2781
2782
2783 test -z "`sort < /dev/null 2>&1`" || exit 77
2784
2785
2786 echo dwa > temp
2787 echo trzy >> temp
2788 cat temp | tr '\n' '\0' > temp1
2789 echo jeden > file-list
2790 cat temp1 >> file-list
2791
2792 genfile -f "jeden
2793 dwa" || exit 77
2794 genfile -f trzy
2795
2796 tar cfTv archive file-list | sort
2797 ) ) >"$at_stdout" 2>"$at_stderr"
2798 fi
2799 at_status=$?
2800 at_failed=false
2801 echo >>"$at_stderr"; $as_echo "tar: file-list: file name read contains nul character
2802 " | \
2803   $at_diff - "$at_stderr" || at_failed=:
2804 $at_diff expout "$at_stdout" || at_failed=:
2805 at_func_check_status 0 $at_status "$at_srcdir/T-null.at:28"
2806
2807 $at_failed && at_func_log_failure
2808 $at_traceon; }
2809
2810
2811  # Testing one format is enough
2812
2813   $at_traceoff
2814   $at_times_p && times >"$at_times_file"
2815 ) 5>&1 2>&1 | eval $at_tee_pipe
2816 at_status=`cat "$at_status_file"`
2817 #AT_STOP_6
2818 #AT_START_7
2819 # 7. indexfile.at:26: tar --index-file=FILE --file=-
2820 at_setup_line='indexfile.at:26'
2821 at_desc="tar --index-file=FILE --file=-"
2822 $at_quiet $as_echo_n "  7: $at_desc                 "
2823 at_xfail=no
2824       test -f $XFAILFILE && at_xfail=yes
2825 echo "#                             -*- compilation -*-" >> "$at_group_log"
2826 (
2827   $as_echo "7. indexfile.at:26: testing ..."
2828   $at_traceon
2829
2830
2831
2832
2833
2834   { $at_traceoff
2835 $as_echo "$at_srcdir/indexfile.at:29:
2836 mkdir v7
2837 (cd v7
2838 TEST_TAR_FORMAT=v7
2839 export TEST_TAR_FORMAT
2840 TAR_OPTIONS=\"-H v7\"
2841 export TAR_OPTIONS
2842 rm -rf *
2843
2844
2845 mkdir directory
2846 genfile --file=directory/a --length=1035
2847
2848 echo \"Creating the archive\"
2849 tar -c -v -f - --index-file=idx directory > archive
2850
2851 echo \"Testing the archive\"
2852 tar -tf archive
2853 )"
2854 echo indexfile.at:29 >"$at_check_line_file"
2855
2856 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
2857    false; }; then
2858   ( $at_traceon;
2859 mkdir v7
2860 (cd v7
2861 TEST_TAR_FORMAT=v7
2862 export TEST_TAR_FORMAT
2863 TAR_OPTIONS="-H v7"
2864 export TAR_OPTIONS
2865 rm -rf *
2866
2867
2868 mkdir directory
2869 genfile --file=directory/a --length=1035
2870
2871 echo "Creating the archive"
2872 tar -c -v -f - --index-file=idx directory > archive
2873
2874 echo "Testing the archive"
2875 tar -tf archive
2876 ) ) >"$at_stdout" 2>"$at_stder1"
2877   at_func_filter_trace $?
2878 else
2879   ( :;
2880 mkdir v7
2881 (cd v7
2882 TEST_TAR_FORMAT=v7
2883 export TEST_TAR_FORMAT
2884 TAR_OPTIONS="-H v7"
2885 export TAR_OPTIONS
2886 rm -rf *
2887
2888
2889 mkdir directory
2890 genfile --file=directory/a --length=1035
2891
2892 echo "Creating the archive"
2893 tar -c -v -f - --index-file=idx directory > archive
2894
2895 echo "Testing the archive"
2896 tar -tf archive
2897 ) ) >"$at_stdout" 2>"$at_stderr"
2898 fi
2899 at_status=$?
2900 at_failed=false
2901 at_func_diff_devnull "$at_stderr" || at_failed=:
2902 echo >>"$at_stdout"; $as_echo "Creating the archive
2903 Testing the archive
2904 directory/
2905 directory/a
2906 " | \
2907   $at_diff - "$at_stdout" || at_failed=:
2908 at_func_check_status 0 $at_status "$at_srcdir/indexfile.at:29"
2909
2910 $at_failed && at_func_log_failure
2911 $at_traceon; }
2912
2913               { $at_traceoff
2914 $as_echo "$at_srcdir/indexfile.at:29:
2915 mkdir oldgnu
2916 (cd oldgnu
2917 TEST_TAR_FORMAT=oldgnu
2918 export TEST_TAR_FORMAT
2919 TAR_OPTIONS=\"-H oldgnu\"
2920 export TAR_OPTIONS
2921 rm -rf *
2922
2923
2924 mkdir directory
2925 genfile --file=directory/a --length=1035
2926
2927 echo \"Creating the archive\"
2928 tar -c -v -f - --index-file=idx directory > archive
2929
2930 echo \"Testing the archive\"
2931 tar -tf archive
2932 )"
2933 echo indexfile.at:29 >"$at_check_line_file"
2934
2935 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
2936    false; }; then
2937   ( $at_traceon;
2938 mkdir oldgnu
2939 (cd oldgnu
2940 TEST_TAR_FORMAT=oldgnu
2941 export TEST_TAR_FORMAT
2942 TAR_OPTIONS="-H oldgnu"
2943 export TAR_OPTIONS
2944 rm -rf *
2945
2946
2947 mkdir directory
2948 genfile --file=directory/a --length=1035
2949
2950 echo "Creating the archive"
2951 tar -c -v -f - --index-file=idx directory > archive
2952
2953 echo "Testing the archive"
2954 tar -tf archive
2955 ) ) >"$at_stdout" 2>"$at_stder1"
2956   at_func_filter_trace $?
2957 else
2958   ( :;
2959 mkdir oldgnu
2960 (cd oldgnu
2961 TEST_TAR_FORMAT=oldgnu
2962 export TEST_TAR_FORMAT
2963 TAR_OPTIONS="-H oldgnu"
2964 export TAR_OPTIONS
2965 rm -rf *
2966
2967
2968 mkdir directory
2969 genfile --file=directory/a --length=1035
2970
2971 echo "Creating the archive"
2972 tar -c -v -f - --index-file=idx directory > archive
2973
2974 echo "Testing the archive"
2975 tar -tf archive
2976 ) ) >"$at_stdout" 2>"$at_stderr"
2977 fi
2978 at_status=$?
2979 at_failed=false
2980 at_func_diff_devnull "$at_stderr" || at_failed=:
2981 echo >>"$at_stdout"; $as_echo "Creating the archive
2982 Testing the archive
2983 directory/
2984 directory/a
2985 " | \
2986   $at_diff - "$at_stdout" || at_failed=:
2987 at_func_check_status 0 $at_status "$at_srcdir/indexfile.at:29"
2988
2989 $at_failed && at_func_log_failure
2990 $at_traceon; }
2991
2992               { $at_traceoff
2993 $as_echo "$at_srcdir/indexfile.at:29:
2994 mkdir ustar
2995 (cd ustar
2996 TEST_TAR_FORMAT=ustar
2997 export TEST_TAR_FORMAT
2998 TAR_OPTIONS=\"-H ustar\"
2999 export TAR_OPTIONS
3000 rm -rf *
3001
3002
3003 mkdir directory
3004 genfile --file=directory/a --length=1035
3005
3006 echo \"Creating the archive\"
3007 tar -c -v -f - --index-file=idx directory > archive
3008
3009 echo \"Testing the archive\"
3010 tar -tf archive
3011 )"
3012 echo indexfile.at:29 >"$at_check_line_file"
3013
3014 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
3015    false; }; then
3016   ( $at_traceon;
3017 mkdir ustar
3018 (cd ustar
3019 TEST_TAR_FORMAT=ustar
3020 export TEST_TAR_FORMAT
3021 TAR_OPTIONS="-H ustar"
3022 export TAR_OPTIONS
3023 rm -rf *
3024
3025
3026 mkdir directory
3027 genfile --file=directory/a --length=1035
3028
3029 echo "Creating the archive"
3030 tar -c -v -f - --index-file=idx directory > archive
3031
3032 echo "Testing the archive"
3033 tar -tf archive
3034 ) ) >"$at_stdout" 2>"$at_stder1"
3035   at_func_filter_trace $?
3036 else
3037   ( :;
3038 mkdir ustar
3039 (cd ustar
3040 TEST_TAR_FORMAT=ustar
3041 export TEST_TAR_FORMAT
3042 TAR_OPTIONS="-H ustar"
3043 export TAR_OPTIONS
3044 rm -rf *
3045
3046
3047 mkdir directory
3048 genfile --file=directory/a --length=1035
3049
3050 echo "Creating the archive"
3051 tar -c -v -f - --index-file=idx directory > archive
3052
3053 echo "Testing the archive"
3054 tar -tf archive
3055 ) ) >"$at_stdout" 2>"$at_stderr"
3056 fi
3057 at_status=$?
3058 at_failed=false
3059 at_func_diff_devnull "$at_stderr" || at_failed=:
3060 echo >>"$at_stdout"; $as_echo "Creating the archive
3061 Testing the archive
3062 directory/
3063 directory/a
3064 " | \
3065   $at_diff - "$at_stdout" || at_failed=:
3066 at_func_check_status 0 $at_status "$at_srcdir/indexfile.at:29"
3067
3068 $at_failed && at_func_log_failure
3069 $at_traceon; }
3070
3071               { $at_traceoff
3072 $as_echo "$at_srcdir/indexfile.at:29:
3073 mkdir posix
3074 (cd posix
3075 TEST_TAR_FORMAT=posix
3076 export TEST_TAR_FORMAT
3077 TAR_OPTIONS=\"-H posix\"
3078 export TAR_OPTIONS
3079 rm -rf *
3080
3081
3082 mkdir directory
3083 genfile --file=directory/a --length=1035
3084
3085 echo \"Creating the archive\"
3086 tar -c -v -f - --index-file=idx directory > archive
3087
3088 echo \"Testing the archive\"
3089 tar -tf archive
3090 )"
3091 echo indexfile.at:29 >"$at_check_line_file"
3092
3093 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
3094    false; }; then
3095   ( $at_traceon;
3096 mkdir posix
3097 (cd posix
3098 TEST_TAR_FORMAT=posix
3099 export TEST_TAR_FORMAT
3100 TAR_OPTIONS="-H posix"
3101 export TAR_OPTIONS
3102 rm -rf *
3103
3104
3105 mkdir directory
3106 genfile --file=directory/a --length=1035
3107
3108 echo "Creating the archive"
3109 tar -c -v -f - --index-file=idx directory > archive
3110
3111 echo "Testing the archive"
3112 tar -tf archive
3113 ) ) >"$at_stdout" 2>"$at_stder1"
3114   at_func_filter_trace $?
3115 else
3116   ( :;
3117 mkdir posix
3118 (cd posix
3119 TEST_TAR_FORMAT=posix
3120 export TEST_TAR_FORMAT
3121 TAR_OPTIONS="-H posix"
3122 export TAR_OPTIONS
3123 rm -rf *
3124
3125
3126 mkdir directory
3127 genfile --file=directory/a --length=1035
3128
3129 echo "Creating the archive"
3130 tar -c -v -f - --index-file=idx directory > archive
3131
3132 echo "Testing the archive"
3133 tar -tf archive
3134 ) ) >"$at_stdout" 2>"$at_stderr"
3135 fi
3136 at_status=$?
3137 at_failed=false
3138 at_func_diff_devnull "$at_stderr" || at_failed=:
3139 echo >>"$at_stdout"; $as_echo "Creating the archive
3140 Testing the archive
3141 directory/
3142 directory/a
3143 " | \
3144   $at_diff - "$at_stdout" || at_failed=:
3145 at_func_check_status 0 $at_status "$at_srcdir/indexfile.at:29"
3146
3147 $at_failed && at_func_log_failure
3148 $at_traceon; }
3149
3150               { $at_traceoff
3151 $as_echo "$at_srcdir/indexfile.at:29:
3152 mkdir gnu
3153 (cd gnu
3154 TEST_TAR_FORMAT=gnu
3155 export TEST_TAR_FORMAT
3156 TAR_OPTIONS=\"-H gnu\"
3157 export TAR_OPTIONS
3158 rm -rf *
3159
3160
3161 mkdir directory
3162 genfile --file=directory/a --length=1035
3163
3164 echo \"Creating the archive\"
3165 tar -c -v -f - --index-file=idx directory > archive
3166
3167 echo \"Testing the archive\"
3168 tar -tf archive
3169 )"
3170 echo indexfile.at:29 >"$at_check_line_file"
3171
3172 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
3173    false; }; then
3174   ( $at_traceon;
3175 mkdir gnu
3176 (cd gnu
3177 TEST_TAR_FORMAT=gnu
3178 export TEST_TAR_FORMAT
3179 TAR_OPTIONS="-H gnu"
3180 export TAR_OPTIONS
3181 rm -rf *
3182
3183
3184 mkdir directory
3185 genfile --file=directory/a --length=1035
3186
3187 echo "Creating the archive"
3188 tar -c -v -f - --index-file=idx directory > archive
3189
3190 echo "Testing the archive"
3191 tar -tf archive
3192 ) ) >"$at_stdout" 2>"$at_stder1"
3193   at_func_filter_trace $?
3194 else
3195   ( :;
3196 mkdir gnu
3197 (cd gnu
3198 TEST_TAR_FORMAT=gnu
3199 export TEST_TAR_FORMAT
3200 TAR_OPTIONS="-H gnu"
3201 export TAR_OPTIONS
3202 rm -rf *
3203
3204
3205 mkdir directory
3206 genfile --file=directory/a --length=1035
3207
3208 echo "Creating the archive"
3209 tar -c -v -f - --index-file=idx directory > archive
3210
3211 echo "Testing the archive"
3212 tar -tf archive
3213 ) ) >"$at_stdout" 2>"$at_stderr"
3214 fi
3215 at_status=$?
3216 at_failed=false
3217 at_func_diff_devnull "$at_stderr" || at_failed=:
3218 echo >>"$at_stdout"; $as_echo "Creating the archive
3219 Testing the archive
3220 directory/
3221 directory/a
3222 " | \
3223   $at_diff - "$at_stdout" || at_failed=:
3224 at_func_check_status 0 $at_status "$at_srcdir/indexfile.at:29"
3225
3226 $at_failed && at_func_log_failure
3227 $at_traceon; }
3228
3229
3230
3231
3232   $at_traceoff
3233   $at_times_p && times >"$at_times_file"
3234 ) 5>&1 2>&1 | eval $at_tee_pipe
3235 at_status=`cat "$at_status_file"`
3236 #AT_STOP_7
3237 #AT_START_8
3238 # 8. verbose.at:26: tar cvf -
3239 at_setup_line='verbose.at:26'
3240 at_desc="tar cvf -"
3241 $at_quiet $as_echo_n "  8: $at_desc                                      "
3242 at_xfail=no
3243       test -f $XFAILFILE && at_xfail=yes
3244 echo "#                             -*- compilation -*-" >> "$at_group_log"
3245 (
3246   $as_echo "8. verbose.at:26: testing ..."
3247   $at_traceon
3248
3249
3250
3251
3252
3253   { $at_traceoff
3254 $as_echo "$at_srcdir/verbose.at:29:
3255 mkdir v7
3256 (cd v7
3257 TEST_TAR_FORMAT=v7
3258 export TEST_TAR_FORMAT
3259 TAR_OPTIONS=\"-H v7\"
3260 export TAR_OPTIONS
3261 rm -rf *
3262
3263 genfile --file file --length 10240
3264 echo Creating the archive
3265 tar cvf - file > archive
3266 echo Testing the archive
3267 tar tf archive
3268 )"
3269 echo verbose.at:29 >"$at_check_line_file"
3270
3271 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
3272    false; }; then
3273   ( $at_traceon;
3274 mkdir v7
3275 (cd v7
3276 TEST_TAR_FORMAT=v7
3277 export TEST_TAR_FORMAT
3278 TAR_OPTIONS="-H v7"
3279 export TAR_OPTIONS
3280 rm -rf *
3281
3282 genfile --file file --length 10240
3283 echo Creating the archive
3284 tar cvf - file > archive
3285 echo Testing the archive
3286 tar tf archive
3287 ) ) >"$at_stdout" 2>"$at_stder1"
3288   at_func_filter_trace $?
3289 else
3290   ( :;
3291 mkdir v7
3292 (cd v7
3293 TEST_TAR_FORMAT=v7
3294 export TEST_TAR_FORMAT
3295 TAR_OPTIONS="-H v7"
3296 export TAR_OPTIONS
3297 rm -rf *
3298
3299 genfile --file file --length 10240
3300 echo Creating the archive
3301 tar cvf - file > archive
3302 echo Testing the archive
3303 tar tf archive
3304 ) ) >"$at_stdout" 2>"$at_stderr"
3305 fi
3306 at_status=$?
3307 at_failed=false
3308 echo >>"$at_stderr"; $as_echo "file
3309 " | \
3310   $at_diff - "$at_stderr" || at_failed=:
3311 echo >>"$at_stdout"; $as_echo "Creating the archive
3312 Testing the archive
3313 file
3314 " | \
3315   $at_diff - "$at_stdout" || at_failed=:
3316 at_func_check_status 0 $at_status "$at_srcdir/verbose.at:29"
3317
3318 $at_failed && at_func_log_failure
3319 $at_traceon; }
3320
3321               { $at_traceoff
3322 $as_echo "$at_srcdir/verbose.at:29:
3323 mkdir oldgnu
3324 (cd oldgnu
3325 TEST_TAR_FORMAT=oldgnu
3326 export TEST_TAR_FORMAT
3327 TAR_OPTIONS=\"-H oldgnu\"
3328 export TAR_OPTIONS
3329 rm -rf *
3330
3331 genfile --file file --length 10240
3332 echo Creating the archive
3333 tar cvf - file > archive
3334 echo Testing the archive
3335 tar tf archive
3336 )"
3337 echo verbose.at:29 >"$at_check_line_file"
3338
3339 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
3340    false; }; then
3341   ( $at_traceon;
3342 mkdir oldgnu
3343 (cd oldgnu
3344 TEST_TAR_FORMAT=oldgnu
3345 export TEST_TAR_FORMAT
3346 TAR_OPTIONS="-H oldgnu"
3347 export TAR_OPTIONS
3348 rm -rf *
3349
3350 genfile --file file --length 10240
3351 echo Creating the archive
3352 tar cvf - file > archive
3353 echo Testing the archive
3354 tar tf archive
3355 ) ) >"$at_stdout" 2>"$at_stder1"
3356   at_func_filter_trace $?
3357 else
3358   ( :;
3359 mkdir oldgnu
3360 (cd oldgnu
3361 TEST_TAR_FORMAT=oldgnu
3362 export TEST_TAR_FORMAT
3363 TAR_OPTIONS="-H oldgnu"
3364 export TAR_OPTIONS
3365 rm -rf *
3366
3367 genfile --file file --length 10240
3368 echo Creating the archive
3369 tar cvf - file > archive
3370 echo Testing the archive
3371 tar tf archive
3372 ) ) >"$at_stdout" 2>"$at_stderr"
3373 fi
3374 at_status=$?
3375 at_failed=false
3376 echo >>"$at_stderr"; $as_echo "file
3377 " | \
3378   $at_diff - "$at_stderr" || at_failed=:
3379 echo >>"$at_stdout"; $as_echo "Creating the archive
3380 Testing the archive
3381 file
3382 " | \
3383   $at_diff - "$at_stdout" || at_failed=:
3384 at_func_check_status 0 $at_status "$at_srcdir/verbose.at:29"
3385
3386 $at_failed && at_func_log_failure
3387 $at_traceon; }
3388
3389               { $at_traceoff
3390 $as_echo "$at_srcdir/verbose.at:29:
3391 mkdir ustar
3392 (cd ustar
3393 TEST_TAR_FORMAT=ustar
3394 export TEST_TAR_FORMAT
3395 TAR_OPTIONS=\"-H ustar\"
3396 export TAR_OPTIONS
3397 rm -rf *
3398
3399 genfile --file file --length 10240
3400 echo Creating the archive
3401 tar cvf - file > archive
3402 echo Testing the archive
3403 tar tf archive
3404 )"
3405 echo verbose.at:29 >"$at_check_line_file"
3406
3407 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
3408    false; }; then
3409   ( $at_traceon;
3410 mkdir ustar
3411 (cd ustar
3412 TEST_TAR_FORMAT=ustar
3413 export TEST_TAR_FORMAT
3414 TAR_OPTIONS="-H ustar"
3415 export TAR_OPTIONS
3416 rm -rf *
3417
3418 genfile --file file --length 10240
3419 echo Creating the archive
3420 tar cvf - file > archive
3421 echo Testing the archive
3422 tar tf archive
3423 ) ) >"$at_stdout" 2>"$at_stder1"
3424   at_func_filter_trace $?
3425 else
3426   ( :;
3427 mkdir ustar
3428 (cd ustar
3429 TEST_TAR_FORMAT=ustar
3430 export TEST_TAR_FORMAT
3431 TAR_OPTIONS="-H ustar"
3432 export TAR_OPTIONS
3433 rm -rf *
3434
3435 genfile --file file --length 10240
3436 echo Creating the archive
3437 tar cvf - file > archive
3438 echo Testing the archive
3439 tar tf archive
3440 ) ) >"$at_stdout" 2>"$at_stderr"
3441 fi
3442 at_status=$?
3443 at_failed=false
3444 echo >>"$at_stderr"; $as_echo "file
3445 " | \
3446   $at_diff - "$at_stderr" || at_failed=:
3447 echo >>"$at_stdout"; $as_echo "Creating the archive
3448 Testing the archive
3449 file
3450 " | \
3451   $at_diff - "$at_stdout" || at_failed=:
3452 at_func_check_status 0 $at_status "$at_srcdir/verbose.at:29"
3453
3454 $at_failed && at_func_log_failure
3455 $at_traceon; }
3456
3457               { $at_traceoff
3458 $as_echo "$at_srcdir/verbose.at:29:
3459 mkdir posix
3460 (cd posix
3461 TEST_TAR_FORMAT=posix
3462 export TEST_TAR_FORMAT
3463 TAR_OPTIONS=\"-H posix\"
3464 export TAR_OPTIONS
3465 rm -rf *
3466
3467 genfile --file file --length 10240
3468 echo Creating the archive
3469 tar cvf - file > archive
3470 echo Testing the archive
3471 tar tf archive
3472 )"
3473 echo verbose.at:29 >"$at_check_line_file"
3474
3475 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
3476    false; }; then
3477   ( $at_traceon;
3478 mkdir posix
3479 (cd posix
3480 TEST_TAR_FORMAT=posix
3481 export TEST_TAR_FORMAT
3482 TAR_OPTIONS="-H posix"
3483 export TAR_OPTIONS
3484 rm -rf *
3485
3486 genfile --file file --length 10240
3487 echo Creating the archive
3488 tar cvf - file > archive
3489 echo Testing the archive
3490 tar tf archive
3491 ) ) >"$at_stdout" 2>"$at_stder1"
3492   at_func_filter_trace $?
3493 else
3494   ( :;
3495 mkdir posix
3496 (cd posix
3497 TEST_TAR_FORMAT=posix
3498 export TEST_TAR_FORMAT
3499 TAR_OPTIONS="-H posix"
3500 export TAR_OPTIONS
3501 rm -rf *
3502
3503 genfile --file file --length 10240
3504 echo Creating the archive
3505 tar cvf - file > archive
3506 echo Testing the archive
3507 tar tf archive
3508 ) ) >"$at_stdout" 2>"$at_stderr"
3509 fi
3510 at_status=$?
3511 at_failed=false
3512 echo >>"$at_stderr"; $as_echo "file
3513 " | \
3514   $at_diff - "$at_stderr" || at_failed=:
3515 echo >>"$at_stdout"; $as_echo "Creating the archive
3516 Testing the archive
3517 file
3518 " | \
3519   $at_diff - "$at_stdout" || at_failed=:
3520 at_func_check_status 0 $at_status "$at_srcdir/verbose.at:29"
3521
3522 $at_failed && at_func_log_failure
3523 $at_traceon; }
3524
3525               { $at_traceoff
3526 $as_echo "$at_srcdir/verbose.at:29:
3527 mkdir gnu
3528 (cd gnu
3529 TEST_TAR_FORMAT=gnu
3530 export TEST_TAR_FORMAT
3531 TAR_OPTIONS=\"-H gnu\"
3532 export TAR_OPTIONS
3533 rm -rf *
3534
3535 genfile --file file --length 10240
3536 echo Creating the archive
3537 tar cvf - file > archive
3538 echo Testing the archive
3539 tar tf archive
3540 )"
3541 echo verbose.at:29 >"$at_check_line_file"
3542
3543 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
3544    false; }; then
3545   ( $at_traceon;
3546 mkdir gnu
3547 (cd gnu
3548 TEST_TAR_FORMAT=gnu
3549 export TEST_TAR_FORMAT
3550 TAR_OPTIONS="-H gnu"
3551 export TAR_OPTIONS
3552 rm -rf *
3553
3554 genfile --file file --length 10240
3555 echo Creating the archive
3556 tar cvf - file > archive
3557 echo Testing the archive
3558 tar tf archive
3559 ) ) >"$at_stdout" 2>"$at_stder1"
3560   at_func_filter_trace $?
3561 else
3562   ( :;
3563 mkdir gnu
3564 (cd gnu
3565 TEST_TAR_FORMAT=gnu
3566 export TEST_TAR_FORMAT
3567 TAR_OPTIONS="-H gnu"
3568 export TAR_OPTIONS
3569 rm -rf *
3570
3571 genfile --file file --length 10240
3572 echo Creating the archive
3573 tar cvf - file > archive
3574 echo Testing the archive
3575 tar tf archive
3576 ) ) >"$at_stdout" 2>"$at_stderr"
3577 fi
3578 at_status=$?
3579 at_failed=false
3580 echo >>"$at_stderr"; $as_echo "file
3581 " | \
3582   $at_diff - "$at_stderr" || at_failed=:
3583 echo >>"$at_stdout"; $as_echo "Creating the archive
3584 Testing the archive
3585 file
3586 " | \
3587   $at_diff - "$at_stdout" || at_failed=:
3588 at_func_check_status 0 $at_status "$at_srcdir/verbose.at:29"
3589
3590 $at_failed && at_func_log_failure
3591 $at_traceon; }
3592
3593
3594
3595
3596   $at_traceoff
3597   $at_times_p && times >"$at_times_file"
3598 ) 5>&1 2>&1 | eval $at_tee_pipe
3599 at_status=`cat "$at_status_file"`
3600 #AT_STOP_8
3601 #AT_START_9
3602 # 9. append.at:21: append
3603 at_setup_line='append.at:21'
3604 at_desc="append"
3605 $at_quiet $as_echo_n "  9: $at_desc                                         "
3606 at_xfail=no
3607       test -f $XFAILFILE && at_xfail=yes
3608 echo "#                             -*- compilation -*-" >> "$at_group_log"
3609 (
3610   $as_echo "9. append.at:21: testing ..."
3611   $at_traceon
3612
3613
3614
3615
3616
3617   { $at_traceoff
3618 $as_echo "$at_srcdir/append.at:24:
3619 mkdir v7
3620 (cd v7
3621 TEST_TAR_FORMAT=v7
3622 export TEST_TAR_FORMAT
3623 TAR_OPTIONS=\"-H v7\"
3624 export TAR_OPTIONS
3625 rm -rf *
3626 touch file1
3627           touch file2
3628           tar cf archive file1
3629           tar rf archive file2
3630           tar tf archive)"
3631 echo append.at:24 >"$at_check_line_file"
3632
3633 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
3634    false; }; then
3635   ( $at_traceon;
3636 mkdir v7
3637 (cd v7
3638 TEST_TAR_FORMAT=v7
3639 export TEST_TAR_FORMAT
3640 TAR_OPTIONS="-H v7"
3641 export TAR_OPTIONS
3642 rm -rf *
3643 touch file1
3644           touch file2
3645           tar cf archive file1
3646           tar rf archive file2
3647           tar tf archive) ) >"$at_stdout" 2>"$at_stder1"
3648   at_func_filter_trace $?
3649 else
3650   ( :;
3651 mkdir v7
3652 (cd v7
3653 TEST_TAR_FORMAT=v7
3654 export TEST_TAR_FORMAT
3655 TAR_OPTIONS="-H v7"
3656 export TAR_OPTIONS
3657 rm -rf *
3658 touch file1
3659           touch file2
3660           tar cf archive file1
3661           tar rf archive file2
3662           tar tf archive) ) >"$at_stdout" 2>"$at_stderr"
3663 fi
3664 at_status=$?
3665 at_failed=false
3666 at_func_diff_devnull "$at_stderr" || at_failed=:
3667 echo >>"$at_stdout"; $as_echo "file1
3668 file2
3669 " | \
3670   $at_diff - "$at_stdout" || at_failed=:
3671 at_func_check_status 0 $at_status "$at_srcdir/append.at:24"
3672
3673 $at_failed && at_func_log_failure
3674 $at_traceon; }
3675
3676               { $at_traceoff
3677 $as_echo "$at_srcdir/append.at:24:
3678 mkdir oldgnu
3679 (cd oldgnu
3680 TEST_TAR_FORMAT=oldgnu
3681 export TEST_TAR_FORMAT
3682 TAR_OPTIONS=\"-H oldgnu\"
3683 export TAR_OPTIONS
3684 rm -rf *
3685 touch file1
3686           touch file2
3687           tar cf archive file1
3688           tar rf archive file2
3689           tar tf archive)"
3690 echo append.at:24 >"$at_check_line_file"
3691
3692 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
3693    false; }; then
3694   ( $at_traceon;
3695 mkdir oldgnu
3696 (cd oldgnu
3697 TEST_TAR_FORMAT=oldgnu
3698 export TEST_TAR_FORMAT
3699 TAR_OPTIONS="-H oldgnu"
3700 export TAR_OPTIONS
3701 rm -rf *
3702 touch file1
3703           touch file2
3704           tar cf archive file1
3705           tar rf archive file2
3706           tar tf archive) ) >"$at_stdout" 2>"$at_stder1"
3707   at_func_filter_trace $?
3708 else
3709   ( :;
3710 mkdir oldgnu
3711 (cd oldgnu
3712 TEST_TAR_FORMAT=oldgnu
3713 export TEST_TAR_FORMAT
3714 TAR_OPTIONS="-H oldgnu"
3715 export TAR_OPTIONS
3716 rm -rf *
3717 touch file1
3718           touch file2
3719           tar cf archive file1
3720           tar rf archive file2
3721           tar tf archive) ) >"$at_stdout" 2>"$at_stderr"
3722 fi
3723 at_status=$?
3724 at_failed=false
3725 at_func_diff_devnull "$at_stderr" || at_failed=:
3726 echo >>"$at_stdout"; $as_echo "file1
3727 file2
3728 " | \
3729   $at_diff - "$at_stdout" || at_failed=:
3730 at_func_check_status 0 $at_status "$at_srcdir/append.at:24"
3731
3732 $at_failed && at_func_log_failure
3733 $at_traceon; }
3734
3735               { $at_traceoff
3736 $as_echo "$at_srcdir/append.at:24:
3737 mkdir ustar
3738 (cd ustar
3739 TEST_TAR_FORMAT=ustar
3740 export TEST_TAR_FORMAT
3741 TAR_OPTIONS=\"-H ustar\"
3742 export TAR_OPTIONS
3743 rm -rf *
3744 touch file1
3745           touch file2
3746           tar cf archive file1
3747           tar rf archive file2
3748           tar tf archive)"
3749 echo append.at:24 >"$at_check_line_file"
3750
3751 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
3752    false; }; then
3753   ( $at_traceon;
3754 mkdir ustar
3755 (cd ustar
3756 TEST_TAR_FORMAT=ustar
3757 export TEST_TAR_FORMAT
3758 TAR_OPTIONS="-H ustar"
3759 export TAR_OPTIONS
3760 rm -rf *
3761 touch file1
3762           touch file2
3763           tar cf archive file1
3764           tar rf archive file2
3765           tar tf archive) ) >"$at_stdout" 2>"$at_stder1"
3766   at_func_filter_trace $?
3767 else
3768   ( :;
3769 mkdir ustar
3770 (cd ustar
3771 TEST_TAR_FORMAT=ustar
3772 export TEST_TAR_FORMAT
3773 TAR_OPTIONS="-H ustar"
3774 export TAR_OPTIONS
3775 rm -rf *
3776 touch file1
3777           touch file2
3778           tar cf archive file1
3779           tar rf archive file2
3780           tar tf archive) ) >"$at_stdout" 2>"$at_stderr"
3781 fi
3782 at_status=$?
3783 at_failed=false
3784 at_func_diff_devnull "$at_stderr" || at_failed=:
3785 echo >>"$at_stdout"; $as_echo "file1
3786 file2
3787 " | \
3788   $at_diff - "$at_stdout" || at_failed=:
3789 at_func_check_status 0 $at_status "$at_srcdir/append.at:24"
3790
3791 $at_failed && at_func_log_failure
3792 $at_traceon; }
3793
3794               { $at_traceoff
3795 $as_echo "$at_srcdir/append.at:24:
3796 mkdir posix
3797 (cd posix
3798 TEST_TAR_FORMAT=posix
3799 export TEST_TAR_FORMAT
3800 TAR_OPTIONS=\"-H posix\"
3801 export TAR_OPTIONS
3802 rm -rf *
3803 touch file1
3804           touch file2
3805           tar cf archive file1
3806           tar rf archive file2
3807           tar tf archive)"
3808 echo append.at:24 >"$at_check_line_file"
3809
3810 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
3811    false; }; then
3812   ( $at_traceon;
3813 mkdir posix
3814 (cd posix
3815 TEST_TAR_FORMAT=posix
3816 export TEST_TAR_FORMAT
3817 TAR_OPTIONS="-H posix"
3818 export TAR_OPTIONS
3819 rm -rf *
3820 touch file1
3821           touch file2
3822           tar cf archive file1
3823           tar rf archive file2
3824           tar tf archive) ) >"$at_stdout" 2>"$at_stder1"
3825   at_func_filter_trace $?
3826 else
3827   ( :;
3828 mkdir posix
3829 (cd posix
3830 TEST_TAR_FORMAT=posix
3831 export TEST_TAR_FORMAT
3832 TAR_OPTIONS="-H posix"
3833 export TAR_OPTIONS
3834 rm -rf *
3835 touch file1
3836           touch file2
3837           tar cf archive file1
3838           tar rf archive file2
3839           tar tf archive) ) >"$at_stdout" 2>"$at_stderr"
3840 fi
3841 at_status=$?
3842 at_failed=false
3843 at_func_diff_devnull "$at_stderr" || at_failed=:
3844 echo >>"$at_stdout"; $as_echo "file1
3845 file2
3846 " | \
3847   $at_diff - "$at_stdout" || at_failed=:
3848 at_func_check_status 0 $at_status "$at_srcdir/append.at:24"
3849
3850 $at_failed && at_func_log_failure
3851 $at_traceon; }
3852
3853               { $at_traceoff
3854 $as_echo "$at_srcdir/append.at:24:
3855 mkdir gnu
3856 (cd gnu
3857 TEST_TAR_FORMAT=gnu
3858 export TEST_TAR_FORMAT
3859 TAR_OPTIONS=\"-H gnu\"
3860 export TAR_OPTIONS
3861 rm -rf *
3862 touch file1
3863           touch file2
3864           tar cf archive file1
3865           tar rf archive file2
3866           tar tf archive)"
3867 echo append.at:24 >"$at_check_line_file"
3868
3869 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
3870    false; }; then
3871   ( $at_traceon;
3872 mkdir gnu
3873 (cd gnu
3874 TEST_TAR_FORMAT=gnu
3875 export TEST_TAR_FORMAT
3876 TAR_OPTIONS="-H gnu"
3877 export TAR_OPTIONS
3878 rm -rf *
3879 touch file1
3880           touch file2
3881           tar cf archive file1
3882           tar rf archive file2
3883           tar tf archive) ) >"$at_stdout" 2>"$at_stder1"
3884   at_func_filter_trace $?
3885 else
3886   ( :;
3887 mkdir gnu
3888 (cd gnu
3889 TEST_TAR_FORMAT=gnu
3890 export TEST_TAR_FORMAT
3891 TAR_OPTIONS="-H gnu"
3892 export TAR_OPTIONS
3893 rm -rf *
3894 touch file1
3895           touch file2
3896           tar cf archive file1
3897           tar rf archive file2
3898           tar tf archive) ) >"$at_stdout" 2>"$at_stderr"
3899 fi
3900 at_status=$?
3901 at_failed=false
3902 at_func_diff_devnull "$at_stderr" || at_failed=:
3903 echo >>"$at_stdout"; $as_echo "file1
3904 file2
3905 " | \
3906   $at_diff - "$at_stdout" || at_failed=:
3907 at_func_check_status 0 $at_status "$at_srcdir/append.at:24"
3908
3909 $at_failed && at_func_log_failure
3910 $at_traceon; }
3911
3912
3913
3914
3915   $at_traceoff
3916   $at_times_p && times >"$at_times_file"
3917 ) 5>&1 2>&1 | eval $at_tee_pipe
3918 at_status=`cat "$at_status_file"`
3919 #AT_STOP_9
3920 #AT_START_10
3921 # 10. append01.at:29: appending files with long names
3922 at_setup_line='append01.at:29'
3923 at_desc="appending files with long names"
3924 $at_quiet $as_echo_n " 10: $at_desc                "
3925 at_xfail=no
3926       test -f $XFAILFILE && at_xfail=yes
3927 echo "#                             -*- compilation -*-" >> "$at_group_log"
3928 (
3929   $as_echo "10. append01.at:29: testing ..."
3930   $at_traceon
3931
3932
3933
3934
3935
3936
3937
3938   { $at_traceoff
3939 $as_echo "$at_srcdir/append01.at:34:
3940 mkdir oldgnu
3941 (cd oldgnu
3942 TEST_TAR_FORMAT=oldgnu
3943 export TEST_TAR_FORMAT
3944 TAR_OPTIONS=\"-H oldgnu\"
3945 export TAR_OPTIONS
3946 rm -rf *
3947
3948 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
3949 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
3950 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
3951 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
3952 tar tf archive
3953 )"
3954 echo append01.at:34 >"$at_check_line_file"
3955
3956 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
3957    false; }; then
3958   ( $at_traceon;
3959 mkdir oldgnu
3960 (cd oldgnu
3961 TEST_TAR_FORMAT=oldgnu
3962 export TEST_TAR_FORMAT
3963 TAR_OPTIONS="-H oldgnu"
3964 export TAR_OPTIONS
3965 rm -rf *
3966
3967 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
3968 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
3969 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
3970 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
3971 tar tf archive
3972 ) ) >"$at_stdout" 2>"$at_stder1"
3973   at_func_filter_trace $?
3974 else
3975   ( :;
3976 mkdir oldgnu
3977 (cd oldgnu
3978 TEST_TAR_FORMAT=oldgnu
3979 export TEST_TAR_FORMAT
3980 TAR_OPTIONS="-H oldgnu"
3981 export TAR_OPTIONS
3982 rm -rf *
3983
3984 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
3985 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
3986 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
3987 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
3988 tar tf archive
3989 ) ) >"$at_stdout" 2>"$at_stderr"
3990 fi
3991 at_status=$?
3992 at_failed=false
3993 at_func_diff_devnull "$at_stderr" || at_failed=:
3994 echo >>"$at_stdout"; $as_echo "This_is_a_very_long_file_name_prefix_that_is_designed_to_cause_problems_with_appending_long_file_names_that_run_into_a_limit_of_the_ustar_tarX/file1
3995 This_is_a_very_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
3996 " | \
3997   $at_diff - "$at_stdout" || at_failed=:
3998 at_func_check_status 0 $at_status "$at_srcdir/append01.at:34"
3999
4000 $at_failed && at_func_log_failure
4001 $at_traceon; }
4002
4003               { $at_traceoff
4004 $as_echo "$at_srcdir/append01.at:34:
4005 mkdir ustar
4006 (cd ustar
4007 TEST_TAR_FORMAT=ustar
4008 export TEST_TAR_FORMAT
4009 TAR_OPTIONS=\"-H ustar\"
4010 export TAR_OPTIONS
4011 rm -rf *
4012
4013 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
4014 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
4015 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
4016 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
4017 tar tf archive
4018 )"
4019 echo append01.at:34 >"$at_check_line_file"
4020
4021 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
4022    false; }; then
4023   ( $at_traceon;
4024 mkdir ustar
4025 (cd ustar
4026 TEST_TAR_FORMAT=ustar
4027 export TEST_TAR_FORMAT
4028 TAR_OPTIONS="-H ustar"
4029 export TAR_OPTIONS
4030 rm -rf *
4031
4032 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
4033 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
4034 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
4035 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
4036 tar tf archive
4037 ) ) >"$at_stdout" 2>"$at_stder1"
4038   at_func_filter_trace $?
4039 else
4040   ( :;
4041 mkdir ustar
4042 (cd ustar
4043 TEST_TAR_FORMAT=ustar
4044 export TEST_TAR_FORMAT
4045 TAR_OPTIONS="-H ustar"
4046 export TAR_OPTIONS
4047 rm -rf *
4048
4049 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
4050 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
4051 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
4052 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
4053 tar tf archive
4054 ) ) >"$at_stdout" 2>"$at_stderr"
4055 fi
4056 at_status=$?
4057 at_failed=false
4058 at_func_diff_devnull "$at_stderr" || at_failed=:
4059 echo >>"$at_stdout"; $as_echo "This_is_a_very_long_file_name_prefix_that_is_designed_to_cause_problems_with_appending_long_file_names_that_run_into_a_limit_of_the_ustar_tarX/file1
4060 This_is_a_very_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
4061 " | \
4062   $at_diff - "$at_stdout" || at_failed=:
4063 at_func_check_status 0 $at_status "$at_srcdir/append01.at:34"
4064
4065 $at_failed && at_func_log_failure
4066 $at_traceon; }
4067
4068               { $at_traceoff
4069 $as_echo "$at_srcdir/append01.at:34:
4070 mkdir posix
4071 (cd posix
4072 TEST_TAR_FORMAT=posix
4073 export TEST_TAR_FORMAT
4074 TAR_OPTIONS=\"-H posix\"
4075 export TAR_OPTIONS
4076 rm -rf *
4077
4078 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
4079 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
4080 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
4081 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
4082 tar tf archive
4083 )"
4084 echo append01.at:34 >"$at_check_line_file"
4085
4086 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
4087    false; }; then
4088   ( $at_traceon;
4089 mkdir posix
4090 (cd posix
4091 TEST_TAR_FORMAT=posix
4092 export TEST_TAR_FORMAT
4093 TAR_OPTIONS="-H posix"
4094 export TAR_OPTIONS
4095 rm -rf *
4096
4097 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
4098 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
4099 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
4100 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
4101 tar tf archive
4102 ) ) >"$at_stdout" 2>"$at_stder1"
4103   at_func_filter_trace $?
4104 else
4105   ( :;
4106 mkdir posix
4107 (cd posix
4108 TEST_TAR_FORMAT=posix
4109 export TEST_TAR_FORMAT
4110 TAR_OPTIONS="-H posix"
4111 export TAR_OPTIONS
4112 rm -rf *
4113
4114 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
4115 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
4116 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
4117 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
4118 tar tf archive
4119 ) ) >"$at_stdout" 2>"$at_stderr"
4120 fi
4121 at_status=$?
4122 at_failed=false
4123 at_func_diff_devnull "$at_stderr" || at_failed=:
4124 echo >>"$at_stdout"; $as_echo "This_is_a_very_long_file_name_prefix_that_is_designed_to_cause_problems_with_appending_long_file_names_that_run_into_a_limit_of_the_ustar_tarX/file1
4125 This_is_a_very_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
4126 " | \
4127   $at_diff - "$at_stdout" || at_failed=:
4128 at_func_check_status 0 $at_status "$at_srcdir/append01.at:34"
4129
4130 $at_failed && at_func_log_failure
4131 $at_traceon; }
4132
4133               { $at_traceoff
4134 $as_echo "$at_srcdir/append01.at:34:
4135 mkdir gnu
4136 (cd gnu
4137 TEST_TAR_FORMAT=gnu
4138 export TEST_TAR_FORMAT
4139 TAR_OPTIONS=\"-H gnu\"
4140 export TAR_OPTIONS
4141 rm -rf *
4142
4143 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
4144 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
4145 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
4146 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
4147 tar tf archive
4148 )"
4149 echo append01.at:34 >"$at_check_line_file"
4150
4151 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
4152    false; }; then
4153   ( $at_traceon;
4154 mkdir gnu
4155 (cd gnu
4156 TEST_TAR_FORMAT=gnu
4157 export TEST_TAR_FORMAT
4158 TAR_OPTIONS="-H gnu"
4159 export TAR_OPTIONS
4160 rm -rf *
4161
4162 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
4163 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
4164 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
4165 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
4166 tar tf archive
4167 ) ) >"$at_stdout" 2>"$at_stder1"
4168   at_func_filter_trace $?
4169 else
4170   ( :;
4171 mkdir gnu
4172 (cd gnu
4173 TEST_TAR_FORMAT=gnu
4174 export TEST_TAR_FORMAT
4175 TAR_OPTIONS="-H gnu"
4176 export TAR_OPTIONS
4177 rm -rf *
4178
4179 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
4180 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
4181 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
4182 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
4183 tar tf archive
4184 ) ) >"$at_stdout" 2>"$at_stderr"
4185 fi
4186 at_status=$?
4187 at_failed=false
4188 at_func_diff_devnull "$at_stderr" || at_failed=:
4189 echo >>"$at_stdout"; $as_echo "This_is_a_very_long_file_name_prefix_that_is_designed_to_cause_problems_with_appending_long_file_names_that_run_into_a_limit_of_the_ustar_tarX/file1
4190 This_is_a_very_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
4191 " | \
4192   $at_diff - "$at_stdout" || at_failed=:
4193 at_func_check_status 0 $at_status "$at_srcdir/append01.at:34"
4194
4195 $at_failed && at_func_log_failure
4196 $at_traceon; }
4197
4198
4199
4200
4201   $at_traceoff
4202   $at_times_p && times >"$at_times_file"
4203 ) 5>&1 2>&1 | eval $at_tee_pipe
4204 at_status=`cat "$at_status_file"`
4205 #AT_STOP_10
4206 #AT_START_11
4207 # 11. append02.at:54: append vs. create
4208 at_setup_line='append02.at:54'
4209 at_desc="append vs. create"
4210 $at_quiet $as_echo_n " 11: $at_desc                              "
4211 at_xfail=no
4212       test -f $XFAILFILE && at_xfail=yes
4213 echo "#                             -*- compilation -*-" >> "$at_group_log"
4214 (
4215   $as_echo "11. append02.at:54: testing ..."
4216   $at_traceon
4217
4218
4219
4220
4221
4222   { $at_traceoff
4223 $as_echo "$at_srcdir/append02.at:57:
4224 mkdir v7
4225 (cd v7
4226 TEST_TAR_FORMAT=v7
4227 export TEST_TAR_FORMAT
4228 TAR_OPTIONS=\"-H v7\"
4229 export TAR_OPTIONS
4230 rm -rf *
4231
4232 genfile --file file1
4233 genfile --file file2
4234
4235 # Make sure file timestamps in the archive will not differ
4236 MTIME=\"--mtime=@0\"
4237
4238 # For PAX archives, we need to make sure extended header names are
4239 # reproducible and that their contents won't change with time
4240 if test \$TEST_TAR_FORMAT = posix; then
4241   TAR_OPTIONS=\"\$TAR_OPTIONS --pax-option=exthdr.name=%d/PaxHeaders/%f,delete=mtime,delete=atime,delete=ctime\"
4242 fi
4243
4244 echo Creating archive.1
4245 tar \$MTIME -cf archive.1 file1 file2
4246
4247 echo Creating archive.2
4248 tar \$MTIME -cf archive.2 -T /dev/null
4249 tar \$MTIME -rf archive.2 file1
4250 tar \$MTIME -rf archive.2 file2
4251
4252 echo Comparing archives
4253 cmp archive.1 archive.2
4254 )"
4255 echo append02.at:57 >"$at_check_line_file"
4256
4257 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
4258    false; }; then
4259   ( $at_traceon;
4260 mkdir v7
4261 (cd v7
4262 TEST_TAR_FORMAT=v7
4263 export TEST_TAR_FORMAT
4264 TAR_OPTIONS="-H v7"
4265 export TAR_OPTIONS
4266 rm -rf *
4267
4268 genfile --file file1
4269 genfile --file file2
4270
4271 # Make sure file timestamps in the archive will not differ
4272 MTIME="--mtime=@0"
4273
4274 # For PAX archives, we need to make sure extended header names are
4275 # reproducible and that their contents won't change with time
4276 if test $TEST_TAR_FORMAT = posix; then
4277   TAR_OPTIONS="$TAR_OPTIONS --pax-option=exthdr.name=%d/PaxHeaders/%f,delete=mtime,delete=atime,delete=ctime"
4278 fi
4279
4280 echo Creating archive.1
4281 tar $MTIME -cf archive.1 file1 file2
4282
4283 echo Creating archive.2
4284 tar $MTIME -cf archive.2 -T /dev/null
4285 tar $MTIME -rf archive.2 file1
4286 tar $MTIME -rf archive.2 file2
4287
4288 echo Comparing archives
4289 cmp archive.1 archive.2
4290 ) ) >"$at_stdout" 2>"$at_stder1"
4291   at_func_filter_trace $?
4292 else
4293   ( :;
4294 mkdir v7
4295 (cd v7
4296 TEST_TAR_FORMAT=v7
4297 export TEST_TAR_FORMAT
4298 TAR_OPTIONS="-H v7"
4299 export TAR_OPTIONS
4300 rm -rf *
4301
4302 genfile --file file1
4303 genfile --file file2
4304
4305 # Make sure file timestamps in the archive will not differ
4306 MTIME="--mtime=@0"
4307
4308 # For PAX archives, we need to make sure extended header names are
4309 # reproducible and that their contents won't change with time
4310 if test $TEST_TAR_FORMAT = posix; then
4311   TAR_OPTIONS="$TAR_OPTIONS --pax-option=exthdr.name=%d/PaxHeaders/%f,delete=mtime,delete=atime,delete=ctime"
4312 fi
4313
4314 echo Creating archive.1
4315 tar $MTIME -cf archive.1 file1 file2
4316
4317 echo Creating archive.2
4318 tar $MTIME -cf archive.2 -T /dev/null
4319 tar $MTIME -rf archive.2 file1
4320 tar $MTIME -rf archive.2 file2
4321
4322 echo Comparing archives
4323 cmp archive.1 archive.2
4324 ) ) >"$at_stdout" 2>"$at_stderr"
4325 fi
4326 at_status=$?
4327 at_failed=false
4328 at_func_diff_devnull "$at_stderr" || at_failed=:
4329 echo >>"$at_stdout"; $as_echo "Creating archive.1
4330 Creating archive.2
4331 Comparing archives
4332 " | \
4333   $at_diff - "$at_stdout" || at_failed=:
4334 at_func_check_status 0 $at_status "$at_srcdir/append02.at:57"
4335
4336 $at_failed && at_func_log_failure
4337 $at_traceon; }
4338
4339               { $at_traceoff
4340 $as_echo "$at_srcdir/append02.at:57:
4341 mkdir oldgnu
4342 (cd oldgnu
4343 TEST_TAR_FORMAT=oldgnu
4344 export TEST_TAR_FORMAT
4345 TAR_OPTIONS=\"-H oldgnu\"
4346 export TAR_OPTIONS
4347 rm -rf *
4348
4349 genfile --file file1
4350 genfile --file file2
4351
4352 # Make sure file timestamps in the archive will not differ
4353 MTIME=\"--mtime=@0\"
4354
4355 # For PAX archives, we need to make sure extended header names are
4356 # reproducible and that their contents won't change with time
4357 if test \$TEST_TAR_FORMAT = posix; then
4358   TAR_OPTIONS=\"\$TAR_OPTIONS --pax-option=exthdr.name=%d/PaxHeaders/%f,delete=mtime,delete=atime,delete=ctime\"
4359 fi
4360
4361 echo Creating archive.1
4362 tar \$MTIME -cf archive.1 file1 file2
4363
4364 echo Creating archive.2
4365 tar \$MTIME -cf archive.2 -T /dev/null
4366 tar \$MTIME -rf archive.2 file1
4367 tar \$MTIME -rf archive.2 file2
4368
4369 echo Comparing archives
4370 cmp archive.1 archive.2
4371 )"
4372 echo append02.at:57 >"$at_check_line_file"
4373
4374 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
4375    false; }; then
4376   ( $at_traceon;
4377 mkdir oldgnu
4378 (cd oldgnu
4379 TEST_TAR_FORMAT=oldgnu
4380 export TEST_TAR_FORMAT
4381 TAR_OPTIONS="-H oldgnu"
4382 export TAR_OPTIONS
4383 rm -rf *
4384
4385 genfile --file file1
4386 genfile --file file2
4387
4388 # Make sure file timestamps in the archive will not differ
4389 MTIME="--mtime=@0"
4390
4391 # For PAX archives, we need to make sure extended header names are
4392 # reproducible and that their contents won't change with time
4393 if test $TEST_TAR_FORMAT = posix; then
4394   TAR_OPTIONS="$TAR_OPTIONS --pax-option=exthdr.name=%d/PaxHeaders/%f,delete=mtime,delete=atime,delete=ctime"
4395 fi
4396
4397 echo Creating archive.1
4398 tar $MTIME -cf archive.1 file1 file2
4399
4400 echo Creating archive.2
4401 tar $MTIME -cf archive.2 -T /dev/null
4402 tar $MTIME -rf archive.2 file1
4403 tar $MTIME -rf archive.2 file2
4404
4405 echo Comparing archives
4406 cmp archive.1 archive.2
4407 ) ) >"$at_stdout" 2>"$at_stder1"
4408   at_func_filter_trace $?
4409 else
4410   ( :;
4411 mkdir oldgnu
4412 (cd oldgnu
4413 TEST_TAR_FORMAT=oldgnu
4414 export TEST_TAR_FORMAT
4415 TAR_OPTIONS="-H oldgnu"
4416 export TAR_OPTIONS
4417 rm -rf *
4418
4419 genfile --file file1
4420 genfile --file file2
4421
4422 # Make sure file timestamps in the archive will not differ
4423 MTIME="--mtime=@0"
4424
4425 # For PAX archives, we need to make sure extended header names are
4426 # reproducible and that their contents won't change with time
4427 if test $TEST_TAR_FORMAT = posix; then
4428   TAR_OPTIONS="$TAR_OPTIONS --pax-option=exthdr.name=%d/PaxHeaders/%f,delete=mtime,delete=atime,delete=ctime"
4429 fi
4430
4431 echo Creating archive.1
4432 tar $MTIME -cf archive.1 file1 file2
4433
4434 echo Creating archive.2
4435 tar $MTIME -cf archive.2 -T /dev/null
4436 tar $MTIME -rf archive.2 file1
4437 tar $MTIME -rf archive.2 file2
4438
4439 echo Comparing archives
4440 cmp archive.1 archive.2
4441 ) ) >"$at_stdout" 2>"$at_stderr"
4442 fi
4443 at_status=$?
4444 at_failed=false
4445 at_func_diff_devnull "$at_stderr" || at_failed=:
4446 echo >>"$at_stdout"; $as_echo "Creating archive.1
4447 Creating archive.2
4448 Comparing archives
4449 " | \
4450   $at_diff - "$at_stdout" || at_failed=:
4451 at_func_check_status 0 $at_status "$at_srcdir/append02.at:57"
4452
4453 $at_failed && at_func_log_failure
4454 $at_traceon; }
4455
4456               { $at_traceoff
4457 $as_echo "$at_srcdir/append02.at:57:
4458 mkdir ustar
4459 (cd ustar
4460 TEST_TAR_FORMAT=ustar
4461 export TEST_TAR_FORMAT
4462 TAR_OPTIONS=\"-H ustar\"
4463 export TAR_OPTIONS
4464 rm -rf *
4465
4466 genfile --file file1
4467 genfile --file file2
4468
4469 # Make sure file timestamps in the archive will not differ
4470 MTIME=\"--mtime=@0\"
4471
4472 # For PAX archives, we need to make sure extended header names are
4473 # reproducible and that their contents won't change with time
4474 if test \$TEST_TAR_FORMAT = posix; then
4475   TAR_OPTIONS=\"\$TAR_OPTIONS --pax-option=exthdr.name=%d/PaxHeaders/%f,delete=mtime,delete=atime,delete=ctime\"
4476 fi
4477
4478 echo Creating archive.1
4479 tar \$MTIME -cf archive.1 file1 file2
4480
4481 echo Creating archive.2
4482 tar \$MTIME -cf archive.2 -T /dev/null
4483 tar \$MTIME -rf archive.2 file1
4484 tar \$MTIME -rf archive.2 file2
4485
4486 echo Comparing archives
4487 cmp archive.1 archive.2
4488 )"
4489 echo append02.at:57 >"$at_check_line_file"
4490
4491 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
4492    false; }; then
4493   ( $at_traceon;
4494 mkdir ustar
4495 (cd ustar
4496 TEST_TAR_FORMAT=ustar
4497 export TEST_TAR_FORMAT
4498 TAR_OPTIONS="-H ustar"
4499 export TAR_OPTIONS
4500 rm -rf *
4501
4502 genfile --file file1
4503 genfile --file file2
4504
4505 # Make sure file timestamps in the archive will not differ
4506 MTIME="--mtime=@0"
4507
4508 # For PAX archives, we need to make sure extended header names are
4509 # reproducible and that their contents won't change with time
4510 if test $TEST_TAR_FORMAT = posix; then
4511   TAR_OPTIONS="$TAR_OPTIONS --pax-option=exthdr.name=%d/PaxHeaders/%f,delete=mtime,delete=atime,delete=ctime"
4512 fi
4513
4514 echo Creating archive.1
4515 tar $MTIME -cf archive.1 file1 file2
4516
4517 echo Creating archive.2
4518 tar $MTIME -cf archive.2 -T /dev/null
4519 tar $MTIME -rf archive.2 file1
4520 tar $MTIME -rf archive.2 file2
4521
4522 echo Comparing archives
4523 cmp archive.1 archive.2
4524 ) ) >"$at_stdout" 2>"$at_stder1"
4525   at_func_filter_trace $?
4526 else
4527   ( :;
4528 mkdir ustar
4529 (cd ustar
4530 TEST_TAR_FORMAT=ustar
4531 export TEST_TAR_FORMAT
4532 TAR_OPTIONS="-H ustar"
4533 export TAR_OPTIONS
4534 rm -rf *
4535
4536 genfile --file file1
4537 genfile --file file2
4538
4539 # Make sure file timestamps in the archive will not differ
4540 MTIME="--mtime=@0"
4541
4542 # For PAX archives, we need to make sure extended header names are
4543 # reproducible and that their contents won't change with time
4544 if test $TEST_TAR_FORMAT = posix; then
4545   TAR_OPTIONS="$TAR_OPTIONS --pax-option=exthdr.name=%d/PaxHeaders/%f,delete=mtime,delete=atime,delete=ctime"
4546 fi
4547
4548 echo Creating archive.1
4549 tar $MTIME -cf archive.1 file1 file2
4550
4551 echo Creating archive.2
4552 tar $MTIME -cf archive.2 -T /dev/null
4553 tar $MTIME -rf archive.2 file1
4554 tar $MTIME -rf archive.2 file2
4555
4556 echo Comparing archives
4557 cmp archive.1 archive.2
4558 ) ) >"$at_stdout" 2>"$at_stderr"
4559 fi
4560 at_status=$?
4561 at_failed=false
4562 at_func_diff_devnull "$at_stderr" || at_failed=:
4563 echo >>"$at_stdout"; $as_echo "Creating archive.1
4564 Creating archive.2
4565 Comparing archives
4566 " | \
4567   $at_diff - "$at_stdout" || at_failed=:
4568 at_func_check_status 0 $at_status "$at_srcdir/append02.at:57"
4569
4570 $at_failed && at_func_log_failure
4571 $at_traceon; }
4572
4573               { $at_traceoff
4574 $as_echo "$at_srcdir/append02.at:57:
4575 mkdir posix
4576 (cd posix
4577 TEST_TAR_FORMAT=posix
4578 export TEST_TAR_FORMAT
4579 TAR_OPTIONS=\"-H posix\"
4580 export TAR_OPTIONS
4581 rm -rf *
4582
4583 genfile --file file1
4584 genfile --file file2
4585
4586 # Make sure file timestamps in the archive will not differ
4587 MTIME=\"--mtime=@0\"
4588
4589 # For PAX archives, we need to make sure extended header names are
4590 # reproducible and that their contents won't change with time
4591 if test \$TEST_TAR_FORMAT = posix; then
4592   TAR_OPTIONS=\"\$TAR_OPTIONS --pax-option=exthdr.name=%d/PaxHeaders/%f,delete=mtime,delete=atime,delete=ctime\"
4593 fi
4594
4595 echo Creating archive.1
4596 tar \$MTIME -cf archive.1 file1 file2
4597
4598 echo Creating archive.2
4599 tar \$MTIME -cf archive.2 -T /dev/null
4600 tar \$MTIME -rf archive.2 file1
4601 tar \$MTIME -rf archive.2 file2
4602
4603 echo Comparing archives
4604 cmp archive.1 archive.2
4605 )"
4606 echo append02.at:57 >"$at_check_line_file"
4607
4608 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
4609    false; }; then
4610   ( $at_traceon;
4611 mkdir posix
4612 (cd posix
4613 TEST_TAR_FORMAT=posix
4614 export TEST_TAR_FORMAT
4615 TAR_OPTIONS="-H posix"
4616 export TAR_OPTIONS
4617 rm -rf *
4618
4619 genfile --file file1
4620 genfile --file file2
4621
4622 # Make sure file timestamps in the archive will not differ
4623 MTIME="--mtime=@0"
4624
4625 # For PAX archives, we need to make sure extended header names are
4626 # reproducible and that their contents won't change with time
4627 if test $TEST_TAR_FORMAT = posix; then
4628   TAR_OPTIONS="$TAR_OPTIONS --pax-option=exthdr.name=%d/PaxHeaders/%f,delete=mtime,delete=atime,delete=ctime"
4629 fi
4630
4631 echo Creating archive.1
4632 tar $MTIME -cf archive.1 file1 file2
4633
4634 echo Creating archive.2
4635 tar $MTIME -cf archive.2 -T /dev/null
4636 tar $MTIME -rf archive.2 file1
4637 tar $MTIME -rf archive.2 file2
4638
4639 echo Comparing archives
4640 cmp archive.1 archive.2
4641 ) ) >"$at_stdout" 2>"$at_stder1"
4642   at_func_filter_trace $?
4643 else
4644   ( :;
4645 mkdir posix
4646 (cd posix
4647 TEST_TAR_FORMAT=posix
4648 export TEST_TAR_FORMAT
4649 TAR_OPTIONS="-H posix"
4650 export TAR_OPTIONS
4651 rm -rf *
4652
4653 genfile --file file1
4654 genfile --file file2
4655
4656 # Make sure file timestamps in the archive will not differ
4657 MTIME="--mtime=@0"
4658
4659 # For PAX archives, we need to make sure extended header names are
4660 # reproducible and that their contents won't change with time
4661 if test $TEST_TAR_FORMAT = posix; then
4662   TAR_OPTIONS="$TAR_OPTIONS --pax-option=exthdr.name=%d/PaxHeaders/%f,delete=mtime,delete=atime,delete=ctime"
4663 fi
4664
4665 echo Creating archive.1
4666 tar $MTIME -cf archive.1 file1 file2
4667
4668 echo Creating archive.2
4669 tar $MTIME -cf archive.2 -T /dev/null
4670 tar $MTIME -rf archive.2 file1
4671 tar $MTIME -rf archive.2 file2
4672
4673 echo Comparing archives
4674 cmp archive.1 archive.2
4675 ) ) >"$at_stdout" 2>"$at_stderr"
4676 fi
4677 at_status=$?
4678 at_failed=false
4679 at_func_diff_devnull "$at_stderr" || at_failed=:
4680 echo >>"$at_stdout"; $as_echo "Creating archive.1
4681 Creating archive.2
4682 Comparing archives
4683 " | \
4684   $at_diff - "$at_stdout" || at_failed=:
4685 at_func_check_status 0 $at_status "$at_srcdir/append02.at:57"
4686
4687 $at_failed && at_func_log_failure
4688 $at_traceon; }
4689
4690               { $at_traceoff
4691 $as_echo "$at_srcdir/append02.at:57:
4692 mkdir gnu
4693 (cd gnu
4694 TEST_TAR_FORMAT=gnu
4695 export TEST_TAR_FORMAT
4696 TAR_OPTIONS=\"-H gnu\"
4697 export TAR_OPTIONS
4698 rm -rf *
4699
4700 genfile --file file1
4701 genfile --file file2
4702
4703 # Make sure file timestamps in the archive will not differ
4704 MTIME=\"--mtime=@0\"
4705
4706 # For PAX archives, we need to make sure extended header names are
4707 # reproducible and that their contents won't change with time
4708 if test \$TEST_TAR_FORMAT = posix; then
4709   TAR_OPTIONS=\"\$TAR_OPTIONS --pax-option=exthdr.name=%d/PaxHeaders/%f,delete=mtime,delete=atime,delete=ctime\"
4710 fi
4711
4712 echo Creating archive.1
4713 tar \$MTIME -cf archive.1 file1 file2
4714
4715 echo Creating archive.2
4716 tar \$MTIME -cf archive.2 -T /dev/null
4717 tar \$MTIME -rf archive.2 file1
4718 tar \$MTIME -rf archive.2 file2
4719
4720 echo Comparing archives
4721 cmp archive.1 archive.2
4722 )"
4723 echo append02.at:57 >"$at_check_line_file"
4724
4725 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
4726    false; }; then
4727   ( $at_traceon;
4728 mkdir gnu
4729 (cd gnu
4730 TEST_TAR_FORMAT=gnu
4731 export TEST_TAR_FORMAT
4732 TAR_OPTIONS="-H gnu"
4733 export TAR_OPTIONS
4734 rm -rf *
4735
4736 genfile --file file1
4737 genfile --file file2
4738
4739 # Make sure file timestamps in the archive will not differ
4740 MTIME="--mtime=@0"
4741
4742 # For PAX archives, we need to make sure extended header names are
4743 # reproducible and that their contents won't change with time
4744 if test $TEST_TAR_FORMAT = posix; then
4745   TAR_OPTIONS="$TAR_OPTIONS --pax-option=exthdr.name=%d/PaxHeaders/%f,delete=mtime,delete=atime,delete=ctime"
4746 fi
4747
4748 echo Creating archive.1
4749 tar $MTIME -cf archive.1 file1 file2
4750
4751 echo Creating archive.2
4752 tar $MTIME -cf archive.2 -T /dev/null
4753 tar $MTIME -rf archive.2 file1
4754 tar $MTIME -rf archive.2 file2
4755
4756 echo Comparing archives
4757 cmp archive.1 archive.2
4758 ) ) >"$at_stdout" 2>"$at_stder1"
4759   at_func_filter_trace $?
4760 else
4761   ( :;
4762 mkdir gnu
4763 (cd gnu
4764 TEST_TAR_FORMAT=gnu
4765 export TEST_TAR_FORMAT
4766 TAR_OPTIONS="-H gnu"
4767 export TAR_OPTIONS
4768 rm -rf *
4769
4770 genfile --file file1
4771 genfile --file file2
4772
4773 # Make sure file timestamps in the archive will not differ
4774 MTIME="--mtime=@0"
4775
4776 # For PAX archives, we need to make sure extended header names are
4777 # reproducible and that their contents won't change with time
4778 if test $TEST_TAR_FORMAT = posix; then
4779   TAR_OPTIONS="$TAR_OPTIONS --pax-option=exthdr.name=%d/PaxHeaders/%f,delete=mtime,delete=atime,delete=ctime"
4780 fi
4781
4782 echo Creating archive.1
4783 tar $MTIME -cf archive.1 file1 file2
4784
4785 echo Creating archive.2
4786 tar $MTIME -cf archive.2 -T /dev/null
4787 tar $MTIME -rf archive.2 file1
4788 tar $MTIME -rf archive.2 file2
4789
4790 echo Comparing archives
4791 cmp archive.1 archive.2
4792 ) ) >"$at_stdout" 2>"$at_stderr"
4793 fi
4794 at_status=$?
4795 at_failed=false
4796 at_func_diff_devnull "$at_stderr" || at_failed=:
4797 echo >>"$at_stdout"; $as_echo "Creating archive.1
4798 Creating archive.2
4799 Comparing archives
4800 " | \
4801   $at_diff - "$at_stdout" || at_failed=:
4802 at_func_check_status 0 $at_status "$at_srcdir/append02.at:57"
4803
4804 $at_failed && at_func_log_failure
4805 $at_traceon; }
4806
4807
4808
4809
4810   $at_traceoff
4811   $at_times_p && times >"$at_times_file"
4812 ) 5>&1 2>&1 | eval $at_tee_pipe
4813 at_status=`cat "$at_status_file"`
4814 #AT_STOP_11
4815 #AT_START_12
4816 # 12. xform-h.at:30: transforming hard links on create
4817 at_setup_line='xform-h.at:30'
4818 at_desc="transforming hard links on create"
4819 $at_quiet $as_echo_n " 12: $at_desc              "
4820 at_xfail=no
4821       test -f $XFAILFILE && at_xfail=yes
4822 echo "#                             -*- compilation -*-" >> "$at_group_log"
4823 (
4824   $as_echo "12. xform-h.at:30: testing ..."
4825   $at_traceon
4826
4827
4828
4829
4830
4831
4832
4833   { $at_traceoff
4834 $as_echo "$at_srcdir/xform-h.at:39:
4835 mkdir v7
4836 (cd v7
4837 TEST_TAR_FORMAT=v7
4838 export TEST_TAR_FORMAT
4839 TAR_OPTIONS=\"-H v7\"
4840 export TAR_OPTIONS
4841 rm -rf *
4842
4843 mkdir basedir
4844 echo \"hello\" > basedir/test
4845 ln basedir/test basedir/test_link
4846
4847
4848 echo "Default transform scope"
4849 tar cf archive --transform="s,^basedir/,," basedir/test basedir/test_link
4850 tar tvf archive | sed -n 's/.*test_link link to //p'
4851
4852
4853 echo "Transforming hard links"
4854 tar cf archive --transform="s,^basedir/,,h" basedir/test basedir/test_link
4855 tar tvf archive | sed -n 's/.*test_link link to //p'
4856
4857
4858 echo "Not transforming hard links"
4859 tar cf archive --transform="s,^basedir/,,H" basedir/test basedir/test_link
4860 tar tvf archive | sed -n 's/.*test_link link to //p'
4861
4862 )"
4863 echo xform-h.at:39 >"$at_check_line_file"
4864
4865 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
4866    false; }; then
4867   ( $at_traceon;
4868 mkdir v7
4869 (cd v7
4870 TEST_TAR_FORMAT=v7
4871 export TEST_TAR_FORMAT
4872 TAR_OPTIONS="-H v7"
4873 export TAR_OPTIONS
4874 rm -rf *
4875
4876 mkdir basedir
4877 echo "hello" > basedir/test
4878 ln basedir/test basedir/test_link
4879
4880
4881 echo "Default transform scope"
4882 tar cf archive --transform="s,^basedir/,," basedir/test basedir/test_link
4883 tar tvf archive | sed -n 's/.*test_link link to //p'
4884
4885
4886 echo "Transforming hard links"
4887 tar cf archive --transform="s,^basedir/,,h" basedir/test basedir/test_link
4888 tar tvf archive | sed -n 's/.*test_link link to //p'
4889
4890
4891 echo "Not transforming hard links"
4892 tar cf archive --transform="s,^basedir/,,H" basedir/test basedir/test_link
4893 tar tvf archive | sed -n 's/.*test_link link to //p'
4894
4895 ) ) >"$at_stdout" 2>"$at_stder1"
4896   at_func_filter_trace $?
4897 else
4898   ( :;
4899 mkdir v7
4900 (cd v7
4901 TEST_TAR_FORMAT=v7
4902 export TEST_TAR_FORMAT
4903 TAR_OPTIONS="-H v7"
4904 export TAR_OPTIONS
4905 rm -rf *
4906
4907 mkdir basedir
4908 echo "hello" > basedir/test
4909 ln basedir/test basedir/test_link
4910
4911
4912 echo "Default transform scope"
4913 tar cf archive --transform="s,^basedir/,," basedir/test basedir/test_link
4914 tar tvf archive | sed -n 's/.*test_link link to //p'
4915
4916
4917 echo "Transforming hard links"
4918 tar cf archive --transform="s,^basedir/,,h" basedir/test basedir/test_link
4919 tar tvf archive | sed -n 's/.*test_link link to //p'
4920
4921
4922 echo "Not transforming hard links"
4923 tar cf archive --transform="s,^basedir/,,H" basedir/test basedir/test_link
4924 tar tvf archive | sed -n 's/.*test_link link to //p'
4925
4926 ) ) >"$at_stdout" 2>"$at_stderr"
4927 fi
4928 at_status=$?
4929 at_failed=false
4930 at_func_diff_devnull "$at_stderr" || at_failed=:
4931 echo >>"$at_stdout"; $as_echo "Default transform scope
4932 test
4933 Transforming hard links
4934 test
4935 Not transforming hard links
4936 basedir/test
4937 " | \
4938   $at_diff - "$at_stdout" || at_failed=:
4939 at_func_check_status 0 $at_status "$at_srcdir/xform-h.at:39"
4940
4941 $at_failed && at_func_log_failure
4942 $at_traceon; }
4943
4944               { $at_traceoff
4945 $as_echo "$at_srcdir/xform-h.at:39:
4946 mkdir oldgnu
4947 (cd oldgnu
4948 TEST_TAR_FORMAT=oldgnu
4949 export TEST_TAR_FORMAT
4950 TAR_OPTIONS=\"-H oldgnu\"
4951 export TAR_OPTIONS
4952 rm -rf *
4953
4954 mkdir basedir
4955 echo \"hello\" > basedir/test
4956 ln basedir/test basedir/test_link
4957
4958
4959 echo "Default transform scope"
4960 tar cf archive --transform="s,^basedir/,," basedir/test basedir/test_link
4961 tar tvf archive | sed -n 's/.*test_link link to //p'
4962
4963
4964 echo "Transforming hard links"
4965 tar cf archive --transform="s,^basedir/,,h" basedir/test basedir/test_link
4966 tar tvf archive | sed -n 's/.*test_link link to //p'
4967
4968
4969 echo "Not transforming hard links"
4970 tar cf archive --transform="s,^basedir/,,H" basedir/test basedir/test_link
4971 tar tvf archive | sed -n 's/.*test_link link to //p'
4972
4973 )"
4974 echo xform-h.at:39 >"$at_check_line_file"
4975
4976 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
4977    false; }; then
4978   ( $at_traceon;
4979 mkdir oldgnu
4980 (cd oldgnu
4981 TEST_TAR_FORMAT=oldgnu
4982 export TEST_TAR_FORMAT
4983 TAR_OPTIONS="-H oldgnu"
4984 export TAR_OPTIONS
4985 rm -rf *
4986
4987 mkdir basedir
4988 echo "hello" > basedir/test
4989 ln basedir/test basedir/test_link
4990
4991
4992 echo "Default transform scope"
4993 tar cf archive --transform="s,^basedir/,," basedir/test basedir/test_link
4994 tar tvf archive | sed -n 's/.*test_link link to //p'
4995
4996
4997 echo "Transforming hard links"
4998 tar cf archive --transform="s,^basedir/,,h" basedir/test basedir/test_link
4999 tar tvf archive | sed -n 's/.*test_link link to //p'
5000
5001
5002 echo "Not transforming hard links"
5003 tar cf archive --transform="s,^basedir/,,H" basedir/test basedir/test_link
5004 tar tvf archive | sed -n 's/.*test_link link to //p'
5005
5006 ) ) >"$at_stdout" 2>"$at_stder1"
5007   at_func_filter_trace $?
5008 else
5009   ( :;
5010 mkdir oldgnu
5011 (cd oldgnu
5012 TEST_TAR_FORMAT=oldgnu
5013 export TEST_TAR_FORMAT
5014 TAR_OPTIONS="-H oldgnu"
5015 export TAR_OPTIONS
5016 rm -rf *
5017
5018 mkdir basedir
5019 echo "hello" > basedir/test
5020 ln basedir/test basedir/test_link
5021
5022
5023 echo "Default transform scope"
5024 tar cf archive --transform="s,^basedir/,," basedir/test basedir/test_link
5025 tar tvf archive | sed -n 's/.*test_link link to //p'
5026
5027
5028 echo "Transforming hard links"
5029 tar cf archive --transform="s,^basedir/,,h" basedir/test basedir/test_link
5030 tar tvf archive | sed -n 's/.*test_link link to //p'
5031
5032
5033 echo "Not transforming hard links"
5034 tar cf archive --transform="s,^basedir/,,H" basedir/test basedir/test_link
5035 tar tvf archive | sed -n 's/.*test_link link to //p'
5036
5037 ) ) >"$at_stdout" 2>"$at_stderr"
5038 fi
5039 at_status=$?
5040 at_failed=false
5041 at_func_diff_devnull "$at_stderr" || at_failed=:
5042 echo >>"$at_stdout"; $as_echo "Default transform scope
5043 test
5044 Transforming hard links
5045 test
5046 Not transforming hard links
5047 basedir/test
5048 " | \
5049   $at_diff - "$at_stdout" || at_failed=:
5050 at_func_check_status 0 $at_status "$at_srcdir/xform-h.at:39"
5051
5052 $at_failed && at_func_log_failure
5053 $at_traceon; }
5054
5055               { $at_traceoff
5056 $as_echo "$at_srcdir/xform-h.at:39:
5057 mkdir ustar
5058 (cd ustar
5059 TEST_TAR_FORMAT=ustar
5060 export TEST_TAR_FORMAT
5061 TAR_OPTIONS=\"-H ustar\"
5062 export TAR_OPTIONS
5063 rm -rf *
5064
5065 mkdir basedir
5066 echo \"hello\" > basedir/test
5067 ln basedir/test basedir/test_link
5068
5069
5070 echo "Default transform scope"
5071 tar cf archive --transform="s,^basedir/,," basedir/test basedir/test_link
5072 tar tvf archive | sed -n 's/.*test_link link to //p'
5073
5074
5075 echo "Transforming hard links"
5076 tar cf archive --transform="s,^basedir/,,h" basedir/test basedir/test_link
5077 tar tvf archive | sed -n 's/.*test_link link to //p'
5078
5079
5080 echo "Not transforming hard links"
5081 tar cf archive --transform="s,^basedir/,,H" basedir/test basedir/test_link
5082 tar tvf archive | sed -n 's/.*test_link link to //p'
5083
5084 )"
5085 echo xform-h.at:39 >"$at_check_line_file"
5086
5087 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
5088    false; }; then
5089   ( $at_traceon;
5090 mkdir ustar
5091 (cd ustar
5092 TEST_TAR_FORMAT=ustar
5093 export TEST_TAR_FORMAT
5094 TAR_OPTIONS="-H ustar"
5095 export TAR_OPTIONS
5096 rm -rf *
5097
5098 mkdir basedir
5099 echo "hello" > basedir/test
5100 ln basedir/test basedir/test_link
5101
5102
5103 echo "Default transform scope"
5104 tar cf archive --transform="s,^basedir/,," basedir/test basedir/test_link
5105 tar tvf archive | sed -n 's/.*test_link link to //p'
5106
5107
5108 echo "Transforming hard links"
5109 tar cf archive --transform="s,^basedir/,,h" basedir/test basedir/test_link
5110 tar tvf archive | sed -n 's/.*test_link link to //p'
5111
5112
5113 echo "Not transforming hard links"
5114 tar cf archive --transform="s,^basedir/,,H" basedir/test basedir/test_link
5115 tar tvf archive | sed -n 's/.*test_link link to //p'
5116
5117 ) ) >"$at_stdout" 2>"$at_stder1"
5118   at_func_filter_trace $?
5119 else
5120   ( :;
5121 mkdir ustar
5122 (cd ustar
5123 TEST_TAR_FORMAT=ustar
5124 export TEST_TAR_FORMAT
5125 TAR_OPTIONS="-H ustar"
5126 export TAR_OPTIONS
5127 rm -rf *
5128
5129 mkdir basedir
5130 echo "hello" > basedir/test
5131 ln basedir/test basedir/test_link
5132
5133
5134 echo "Default transform scope"
5135 tar cf archive --transform="s,^basedir/,," basedir/test basedir/test_link
5136 tar tvf archive | sed -n 's/.*test_link link to //p'
5137
5138
5139 echo "Transforming hard links"
5140 tar cf archive --transform="s,^basedir/,,h" basedir/test basedir/test_link
5141 tar tvf archive | sed -n 's/.*test_link link to //p'
5142
5143
5144 echo "Not transforming hard links"
5145 tar cf archive --transform="s,^basedir/,,H" basedir/test basedir/test_link
5146 tar tvf archive | sed -n 's/.*test_link link to //p'
5147
5148 ) ) >"$at_stdout" 2>"$at_stderr"
5149 fi
5150 at_status=$?
5151 at_failed=false
5152 at_func_diff_devnull "$at_stderr" || at_failed=:
5153 echo >>"$at_stdout"; $as_echo "Default transform scope
5154 test
5155 Transforming hard links
5156 test
5157 Not transforming hard links
5158 basedir/test
5159 " | \
5160   $at_diff - "$at_stdout" || at_failed=:
5161 at_func_check_status 0 $at_status "$at_srcdir/xform-h.at:39"
5162
5163 $at_failed && at_func_log_failure
5164 $at_traceon; }
5165
5166               { $at_traceoff
5167 $as_echo "$at_srcdir/xform-h.at:39:
5168 mkdir posix
5169 (cd posix
5170 TEST_TAR_FORMAT=posix
5171 export TEST_TAR_FORMAT
5172 TAR_OPTIONS=\"-H posix\"
5173 export TAR_OPTIONS
5174 rm -rf *
5175
5176 mkdir basedir
5177 echo \"hello\" > basedir/test
5178 ln basedir/test basedir/test_link
5179
5180
5181 echo "Default transform scope"
5182 tar cf archive --transform="s,^basedir/,," basedir/test basedir/test_link
5183 tar tvf archive | sed -n 's/.*test_link link to //p'
5184
5185
5186 echo "Transforming hard links"
5187 tar cf archive --transform="s,^basedir/,,h" basedir/test basedir/test_link
5188 tar tvf archive | sed -n 's/.*test_link link to //p'
5189
5190
5191 echo "Not transforming hard links"
5192 tar cf archive --transform="s,^basedir/,,H" basedir/test basedir/test_link
5193 tar tvf archive | sed -n 's/.*test_link link to //p'
5194
5195 )"
5196 echo xform-h.at:39 >"$at_check_line_file"
5197
5198 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
5199    false; }; then
5200   ( $at_traceon;
5201 mkdir posix
5202 (cd posix
5203 TEST_TAR_FORMAT=posix
5204 export TEST_TAR_FORMAT
5205 TAR_OPTIONS="-H posix"
5206 export TAR_OPTIONS
5207 rm -rf *
5208
5209 mkdir basedir
5210 echo "hello" > basedir/test
5211 ln basedir/test basedir/test_link
5212
5213
5214 echo "Default transform scope"
5215 tar cf archive --transform="s,^basedir/,," basedir/test basedir/test_link
5216 tar tvf archive | sed -n 's/.*test_link link to //p'
5217
5218
5219 echo "Transforming hard links"
5220 tar cf archive --transform="s,^basedir/,,h" basedir/test basedir/test_link
5221 tar tvf archive | sed -n 's/.*test_link link to //p'
5222
5223
5224 echo "Not transforming hard links"
5225 tar cf archive --transform="s,^basedir/,,H" basedir/test basedir/test_link
5226 tar tvf archive | sed -n 's/.*test_link link to //p'
5227
5228 ) ) >"$at_stdout" 2>"$at_stder1"
5229   at_func_filter_trace $?
5230 else
5231   ( :;
5232 mkdir posix
5233 (cd posix
5234 TEST_TAR_FORMAT=posix
5235 export TEST_TAR_FORMAT
5236 TAR_OPTIONS="-H posix"
5237 export TAR_OPTIONS
5238 rm -rf *
5239
5240 mkdir basedir
5241 echo "hello" > basedir/test
5242 ln basedir/test basedir/test_link
5243
5244
5245 echo "Default transform scope"
5246 tar cf archive --transform="s,^basedir/,," basedir/test basedir/test_link
5247 tar tvf archive | sed -n 's/.*test_link link to //p'
5248
5249
5250 echo "Transforming hard links"
5251 tar cf archive --transform="s,^basedir/,,h" basedir/test basedir/test_link
5252 tar tvf archive | sed -n 's/.*test_link link to //p'
5253
5254
5255 echo "Not transforming hard links"
5256 tar cf archive --transform="s,^basedir/,,H" basedir/test basedir/test_link
5257 tar tvf archive | sed -n 's/.*test_link link to //p'
5258
5259 ) ) >"$at_stdout" 2>"$at_stderr"
5260 fi
5261 at_status=$?
5262 at_failed=false
5263 at_func_diff_devnull "$at_stderr" || at_failed=:
5264 echo >>"$at_stdout"; $as_echo "Default transform scope
5265 test
5266 Transforming hard links
5267 test
5268 Not transforming hard links
5269 basedir/test
5270 " | \
5271   $at_diff - "$at_stdout" || at_failed=:
5272 at_func_check_status 0 $at_status "$at_srcdir/xform-h.at:39"
5273
5274 $at_failed && at_func_log_failure
5275 $at_traceon; }
5276
5277               { $at_traceoff
5278 $as_echo "$at_srcdir/xform-h.at:39:
5279 mkdir gnu
5280 (cd gnu
5281 TEST_TAR_FORMAT=gnu
5282 export TEST_TAR_FORMAT
5283 TAR_OPTIONS=\"-H gnu\"
5284 export TAR_OPTIONS
5285 rm -rf *
5286
5287 mkdir basedir
5288 echo \"hello\" > basedir/test
5289 ln basedir/test basedir/test_link
5290
5291
5292 echo "Default transform scope"
5293 tar cf archive --transform="s,^basedir/,," basedir/test basedir/test_link
5294 tar tvf archive | sed -n 's/.*test_link link to //p'
5295
5296
5297 echo "Transforming hard links"
5298 tar cf archive --transform="s,^basedir/,,h" basedir/test basedir/test_link
5299 tar tvf archive | sed -n 's/.*test_link link to //p'
5300
5301
5302 echo "Not transforming hard links"
5303 tar cf archive --transform="s,^basedir/,,H" basedir/test basedir/test_link
5304 tar tvf archive | sed -n 's/.*test_link link to //p'
5305
5306 )"
5307 echo xform-h.at:39 >"$at_check_line_file"
5308
5309 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
5310    false; }; then
5311   ( $at_traceon;
5312 mkdir gnu
5313 (cd gnu
5314 TEST_TAR_FORMAT=gnu
5315 export TEST_TAR_FORMAT
5316 TAR_OPTIONS="-H gnu"
5317 export TAR_OPTIONS
5318 rm -rf *
5319
5320 mkdir basedir
5321 echo "hello" > basedir/test
5322 ln basedir/test basedir/test_link
5323
5324
5325 echo "Default transform scope"
5326 tar cf archive --transform="s,^basedir/,," basedir/test basedir/test_link
5327 tar tvf archive | sed -n 's/.*test_link link to //p'
5328
5329
5330 echo "Transforming hard links"
5331 tar cf archive --transform="s,^basedir/,,h" basedir/test basedir/test_link
5332 tar tvf archive | sed -n 's/.*test_link link to //p'
5333
5334
5335 echo "Not transforming hard links"
5336 tar cf archive --transform="s,^basedir/,,H" basedir/test basedir/test_link
5337 tar tvf archive | sed -n 's/.*test_link link to //p'
5338
5339 ) ) >"$at_stdout" 2>"$at_stder1"
5340   at_func_filter_trace $?
5341 else
5342   ( :;
5343 mkdir gnu
5344 (cd gnu
5345 TEST_TAR_FORMAT=gnu
5346 export TEST_TAR_FORMAT
5347 TAR_OPTIONS="-H gnu"
5348 export TAR_OPTIONS
5349 rm -rf *
5350
5351 mkdir basedir
5352 echo "hello" > basedir/test
5353 ln basedir/test basedir/test_link
5354
5355
5356 echo "Default transform scope"
5357 tar cf archive --transform="s,^basedir/,," basedir/test basedir/test_link
5358 tar tvf archive | sed -n 's/.*test_link link to //p'
5359
5360
5361 echo "Transforming hard links"
5362 tar cf archive --transform="s,^basedir/,,h" basedir/test basedir/test_link
5363 tar tvf archive | sed -n 's/.*test_link link to //p'
5364
5365
5366 echo "Not transforming hard links"
5367 tar cf archive --transform="s,^basedir/,,H" basedir/test basedir/test_link
5368 tar tvf archive | sed -n 's/.*test_link link to //p'
5369
5370 ) ) >"$at_stdout" 2>"$at_stderr"
5371 fi
5372 at_status=$?
5373 at_failed=false
5374 at_func_diff_devnull "$at_stderr" || at_failed=:
5375 echo >>"$at_stdout"; $as_echo "Default transform scope
5376 test
5377 Transforming hard links
5378 test
5379 Not transforming hard links
5380 basedir/test
5381 " | \
5382   $at_diff - "$at_stdout" || at_failed=:
5383 at_func_check_status 0 $at_status "$at_srcdir/xform-h.at:39"
5384
5385 $at_failed && at_func_log_failure
5386 $at_traceon; }
5387
5388
5389
5390
5391   $at_traceoff
5392   $at_times_p && times >"$at_times_file"
5393 ) 5>&1 2>&1 | eval $at_tee_pipe
5394 at_status=`cat "$at_status_file"`
5395 #AT_STOP_12
5396 #AT_START_13
5397 # 13. exclude.at:23: exclude
5398 at_setup_line='exclude.at:23'
5399 at_desc="exclude"
5400 $at_quiet $as_echo_n " 13: $at_desc                                        "
5401 at_xfail=no
5402       test -f $XFAILFILE && at_xfail=yes
5403 echo "#                             -*- compilation -*-" >> "$at_group_log"
5404 (
5405   $as_echo "13. exclude.at:23: testing ..."
5406   $at_traceon
5407
5408
5409
5410
5411
5412   { $at_traceoff
5413 $as_echo "$at_srcdir/exclude.at:26:
5414 mkdir ustar
5415 (cd ustar
5416 TEST_TAR_FORMAT=ustar
5417 export TEST_TAR_FORMAT
5418 TAR_OPTIONS=\"-H ustar\"
5419 export TAR_OPTIONS
5420 rm -rf *
5421
5422
5423 test -z "`sort < /dev/null 2>&1`" || exit 77
5424
5425
5426 mkdir dir
5427 echo blues > dir/blues
5428 echo jazz > dir/jazz
5429 mkdir dir/folk
5430 echo tagfile > dir/folk/tagfile
5431 echo sanjuan > dir/folk/sanjuan
5432 mkdir dir/rock
5433 echo \"Signature: 8a477f597d28d172789f06886806bc55\" > dir/rock/CACHEDIR.TAG
5434 echo \"test\" > dir/rock/file
5435
5436 for option in exclude-caches exclude-caches-under exclude-caches-all
5437 do
5438   echo OPTION \$option
5439   tar -cf archive.tar --\$option -v dir 2>err | sort
5440   cat err
5441   echo ARCHIVE
5442   tar tf archive.tar | sort
5443 done
5444
5445 for option in exclude-tag exclude-tag-under exclude-tag-all
5446 do
5447   echo OPTION \$option
5448   tar -cf archive.tar --\${option}=tagfile -v dir 2>err | sort
5449   cat err
5450   echo ARCHIVE
5451   tar tf archive.tar | sort
5452 done
5453 )"
5454 echo exclude.at:26 >"$at_check_line_file"
5455
5456 if { echo 'Not enabling shell tracing (command contains a ${...} parameter expansion)'
5457    false; }; then
5458   ( $at_traceon;
5459 mkdir ustar
5460 (cd ustar
5461 TEST_TAR_FORMAT=ustar
5462 export TEST_TAR_FORMAT
5463 TAR_OPTIONS="-H ustar"
5464 export TAR_OPTIONS
5465 rm -rf *
5466
5467
5468 test -z "`sort < /dev/null 2>&1`" || exit 77
5469
5470
5471 mkdir dir
5472 echo blues > dir/blues
5473 echo jazz > dir/jazz
5474 mkdir dir/folk
5475 echo tagfile > dir/folk/tagfile
5476 echo sanjuan > dir/folk/sanjuan
5477 mkdir dir/rock
5478 echo "Signature: 8a477f597d28d172789f06886806bc55" > dir/rock/CACHEDIR.TAG
5479 echo "test" > dir/rock/file
5480
5481 for option in exclude-caches exclude-caches-under exclude-caches-all
5482 do
5483   echo OPTION $option
5484   tar -cf archive.tar --$option -v dir 2>err | sort
5485   cat err
5486   echo ARCHIVE
5487   tar tf archive.tar | sort
5488 done
5489
5490 for option in exclude-tag exclude-tag-under exclude-tag-all
5491 do
5492   echo OPTION $option
5493   tar -cf archive.tar --${option}=tagfile -v dir 2>err | sort
5494   cat err
5495   echo ARCHIVE
5496   tar tf archive.tar | sort
5497 done
5498 ) ) >"$at_stdout" 2>"$at_stder1"
5499   at_func_filter_trace $?
5500 else
5501   ( :;
5502 mkdir ustar
5503 (cd ustar
5504 TEST_TAR_FORMAT=ustar
5505 export TEST_TAR_FORMAT
5506 TAR_OPTIONS="-H ustar"
5507 export TAR_OPTIONS
5508 rm -rf *
5509
5510
5511 test -z "`sort < /dev/null 2>&1`" || exit 77
5512
5513
5514 mkdir dir
5515 echo blues > dir/blues
5516 echo jazz > dir/jazz
5517 mkdir dir/folk
5518 echo tagfile > dir/folk/tagfile
5519 echo sanjuan > dir/folk/sanjuan
5520 mkdir dir/rock
5521 echo "Signature: 8a477f597d28d172789f06886806bc55" > dir/rock/CACHEDIR.TAG
5522 echo "test" > dir/rock/file
5523
5524 for option in exclude-caches exclude-caches-under exclude-caches-all
5525 do
5526   echo OPTION $option
5527   tar -cf archive.tar --$option -v dir 2>err | sort
5528   cat err
5529   echo ARCHIVE
5530   tar tf archive.tar | sort
5531 done
5532
5533 for option in exclude-tag exclude-tag-under exclude-tag-all
5534 do
5535   echo OPTION $option
5536   tar -cf archive.tar --${option}=tagfile -v dir 2>err | sort
5537   cat err
5538   echo ARCHIVE
5539   tar tf archive.tar | sort
5540 done
5541 ) ) >"$at_stdout" 2>"$at_stderr"
5542 fi
5543 at_status=$?
5544 at_failed=false
5545 at_func_diff_devnull "$at_stderr" || at_failed=:
5546 echo >>"$at_stdout"; $as_echo "OPTION exclude-caches
5547 dir/
5548 dir/blues
5549 dir/folk/
5550 dir/folk/sanjuan
5551 dir/folk/tagfile
5552 dir/jazz
5553 dir/rock/
5554 dir/rock/CACHEDIR.TAG
5555 tar: dir/rock/: contains a cache directory tag CACHEDIR.TAG; contents not dumped
5556 ARCHIVE
5557 dir/
5558 dir/blues
5559 dir/folk/
5560 dir/folk/sanjuan
5561 dir/folk/tagfile
5562 dir/jazz
5563 dir/rock/
5564 dir/rock/CACHEDIR.TAG
5565 OPTION exclude-caches-under
5566 dir/
5567 dir/blues
5568 dir/folk/
5569 dir/folk/sanjuan
5570 dir/folk/tagfile
5571 dir/jazz
5572 dir/rock/
5573 tar: dir/rock/: contains a cache directory tag CACHEDIR.TAG; contents not dumped
5574 ARCHIVE
5575 dir/
5576 dir/blues
5577 dir/folk/
5578 dir/folk/sanjuan
5579 dir/folk/tagfile
5580 dir/jazz
5581 dir/rock/
5582 OPTION exclude-caches-all
5583 dir/
5584 dir/blues
5585 dir/folk/
5586 dir/folk/sanjuan
5587 dir/folk/tagfile
5588 dir/jazz
5589 tar: dir/rock/: contains a cache directory tag CACHEDIR.TAG; directory not dumped
5590 ARCHIVE
5591 dir/
5592 dir/blues
5593 dir/folk/
5594 dir/folk/sanjuan
5595 dir/folk/tagfile
5596 dir/jazz
5597 OPTION exclude-tag
5598 dir/
5599 dir/blues
5600 dir/folk/
5601 dir/folk/tagfile
5602 dir/jazz
5603 dir/rock/
5604 dir/rock/CACHEDIR.TAG
5605 dir/rock/file
5606 tar: dir/folk/: contains a cache directory tag tagfile; contents not dumped
5607 ARCHIVE
5608 dir/
5609 dir/blues
5610 dir/folk/
5611 dir/folk/tagfile
5612 dir/jazz
5613 dir/rock/
5614 dir/rock/CACHEDIR.TAG
5615 dir/rock/file
5616 OPTION exclude-tag-under
5617 dir/
5618 dir/blues
5619 dir/folk/
5620 dir/jazz
5621 dir/rock/
5622 dir/rock/CACHEDIR.TAG
5623 dir/rock/file
5624 tar: dir/folk/: contains a cache directory tag tagfile; contents not dumped
5625 ARCHIVE
5626 dir/
5627 dir/blues
5628 dir/folk/
5629 dir/jazz
5630 dir/rock/
5631 dir/rock/CACHEDIR.TAG
5632 dir/rock/file
5633 OPTION exclude-tag-all
5634 dir/
5635 dir/blues
5636 dir/jazz
5637 dir/rock/
5638 dir/rock/CACHEDIR.TAG
5639 dir/rock/file
5640 tar: dir/folk/: contains a cache directory tag tagfile; directory not dumped
5641 ARCHIVE
5642 dir/
5643 dir/blues
5644 dir/jazz
5645 dir/rock/
5646 dir/rock/CACHEDIR.TAG
5647 dir/rock/file
5648 " | \
5649   $at_diff - "$at_stdout" || at_failed=:
5650 at_func_check_status 0 $at_status "$at_srcdir/exclude.at:26"
5651
5652 $at_failed && at_func_log_failure
5653 $at_traceon; }
5654
5655
5656
5657
5658   $at_traceoff
5659   $at_times_p && times >"$at_times_file"
5660 ) 5>&1 2>&1 | eval $at_tee_pipe
5661 at_status=`cat "$at_status_file"`
5662 #AT_STOP_13
5663 #AT_START_14
5664 # 14. exclude01.at:17: exclude wildcards
5665 at_setup_line='exclude01.at:17'
5666 at_desc="exclude wildcards"
5667 $at_quiet $as_echo_n " 14: $at_desc                              "
5668 at_xfail=no
5669       test -f $XFAILFILE && at_xfail=yes
5670 echo "#                             -*- compilation -*-" >> "$at_group_log"
5671 (
5672   $as_echo "14. exclude01.at:17: testing ..."
5673   $at_traceon
5674
5675
5676
5677
5678
5679   { $at_traceoff
5680 $as_echo "$at_srcdir/exclude01.at:20:
5681 mkdir v7
5682 (cd v7
5683 TEST_TAR_FORMAT=v7
5684 export TEST_TAR_FORMAT
5685 TAR_OPTIONS=\"-H v7\"
5686 export TAR_OPTIONS
5687 rm -rf *
5688
5689
5690 test -z "`sort < /dev/null 2>&1`" || exit 77
5691
5692
5693 rm -rf testdir
5694 mkdir -p testdir/dir1 testdir/dir2 testdir/dir3
5695 touch testdir/dir1/file1
5696 touch testdir/dir1/\\*
5697 touch testdir/dir2/file2
5698 touch testdir/dir2/\\*
5699 touch testdir/dir3/file3
5700 touch testdir/dir3/\\*
5701
5702 tar cf archive --exclude=testdir/dir1/\\* \\
5703                --no-wildcards \\
5704                --exclude=testdir/dir2/\\* \\
5705                --wildcards \\
5706                --exclude=testdir/dir3/\\* \\
5707                testdir
5708 tar tf archive | sort
5709
5710 echo \"NEXT\"
5711 tar cf archive testdir
5712 tar t \"testdir/dir1/*\" -f archive | sort
5713
5714 echo \"NEXT\"
5715 tar cf archive testdir/dir1
5716 tar t --no-wildcards \"testdir/dir1/*\" -f archive | sort
5717
5718 echo \"NEXT\"
5719 tar cf archive testdir
5720 tar t --wildcards \"testdir/dir1/*\" -f archive | sort
5721
5722 rm -rf testdir
5723 )"
5724 echo exclude01.at:20 >"$at_check_line_file"
5725
5726 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
5727    false; }; then
5728   ( $at_traceon;
5729 mkdir v7
5730 (cd v7
5731 TEST_TAR_FORMAT=v7
5732 export TEST_TAR_FORMAT
5733 TAR_OPTIONS="-H v7"
5734 export TAR_OPTIONS
5735 rm -rf *
5736
5737
5738 test -z "`sort < /dev/null 2>&1`" || exit 77
5739
5740
5741 rm -rf testdir
5742 mkdir -p testdir/dir1 testdir/dir2 testdir/dir3
5743 touch testdir/dir1/file1
5744 touch testdir/dir1/\*
5745 touch testdir/dir2/file2
5746 touch testdir/dir2/\*
5747 touch testdir/dir3/file3
5748 touch testdir/dir3/\*
5749
5750 tar cf archive --exclude=testdir/dir1/\* \
5751                --no-wildcards \
5752                --exclude=testdir/dir2/\* \
5753                --wildcards \
5754                --exclude=testdir/dir3/\* \
5755                testdir
5756 tar tf archive | sort
5757
5758 echo "NEXT"
5759 tar cf archive testdir
5760 tar t "testdir/dir1/*" -f archive | sort
5761
5762 echo "NEXT"
5763 tar cf archive testdir/dir1
5764 tar t --no-wildcards "testdir/dir1/*" -f archive | sort
5765
5766 echo "NEXT"
5767 tar cf archive testdir
5768 tar t --wildcards "testdir/dir1/*" -f archive | sort
5769
5770 rm -rf testdir
5771 ) ) >"$at_stdout" 2>"$at_stder1"
5772   at_func_filter_trace $?
5773 else
5774   ( :;
5775 mkdir v7
5776 (cd v7
5777 TEST_TAR_FORMAT=v7
5778 export TEST_TAR_FORMAT
5779 TAR_OPTIONS="-H v7"
5780 export TAR_OPTIONS
5781 rm -rf *
5782
5783
5784 test -z "`sort < /dev/null 2>&1`" || exit 77
5785
5786
5787 rm -rf testdir
5788 mkdir -p testdir/dir1 testdir/dir2 testdir/dir3
5789 touch testdir/dir1/file1
5790 touch testdir/dir1/\*
5791 touch testdir/dir2/file2
5792 touch testdir/dir2/\*
5793 touch testdir/dir3/file3
5794 touch testdir/dir3/\*
5795
5796 tar cf archive --exclude=testdir/dir1/\* \
5797                --no-wildcards \
5798                --exclude=testdir/dir2/\* \
5799                --wildcards \
5800                --exclude=testdir/dir3/\* \
5801                testdir
5802 tar tf archive | sort
5803
5804 echo "NEXT"
5805 tar cf archive testdir
5806 tar t "testdir/dir1/*" -f archive | sort
5807
5808 echo "NEXT"
5809 tar cf archive testdir/dir1
5810 tar t --no-wildcards "testdir/dir1/*" -f archive | sort
5811
5812 echo "NEXT"
5813 tar cf archive testdir
5814 tar t --wildcards "testdir/dir1/*" -f archive | sort
5815
5816 rm -rf testdir
5817 ) ) >"$at_stdout" 2>"$at_stderr"
5818 fi
5819 at_status=$?
5820 at_failed=false
5821 at_func_diff_devnull "$at_stderr" || at_failed=:
5822 echo >>"$at_stdout"; $as_echo "testdir/
5823 testdir/dir1/
5824 testdir/dir2/
5825 testdir/dir2/file2
5826 testdir/dir3/
5827 NEXT
5828 testdir/dir1/*
5829 NEXT
5830 testdir/dir1/*
5831 NEXT
5832 testdir/dir1/*
5833 testdir/dir1/file1
5834 " | \
5835   $at_diff - "$at_stdout" || at_failed=:
5836 at_func_check_status 0 $at_status "$at_srcdir/exclude01.at:20"
5837
5838 $at_failed && at_func_log_failure
5839 $at_traceon; }
5840
5841               { $at_traceoff
5842 $as_echo "$at_srcdir/exclude01.at:20:
5843 mkdir oldgnu
5844 (cd oldgnu
5845 TEST_TAR_FORMAT=oldgnu
5846 export TEST_TAR_FORMAT
5847 TAR_OPTIONS=\"-H oldgnu\"
5848 export TAR_OPTIONS
5849 rm -rf *
5850
5851
5852 test -z "`sort < /dev/null 2>&1`" || exit 77
5853
5854
5855 rm -rf testdir
5856 mkdir -p testdir/dir1 testdir/dir2 testdir/dir3
5857 touch testdir/dir1/file1
5858 touch testdir/dir1/\\*
5859 touch testdir/dir2/file2
5860 touch testdir/dir2/\\*
5861 touch testdir/dir3/file3
5862 touch testdir/dir3/\\*
5863
5864 tar cf archive --exclude=testdir/dir1/\\* \\
5865                --no-wildcards \\
5866                --exclude=testdir/dir2/\\* \\
5867                --wildcards \\
5868                --exclude=testdir/dir3/\\* \\
5869                testdir
5870 tar tf archive | sort
5871
5872 echo \"NEXT\"
5873 tar cf archive testdir
5874 tar t \"testdir/dir1/*\" -f archive | sort
5875
5876 echo \"NEXT\"
5877 tar cf archive testdir/dir1
5878 tar t --no-wildcards \"testdir/dir1/*\" -f archive | sort
5879
5880 echo \"NEXT\"
5881 tar cf archive testdir
5882 tar t --wildcards \"testdir/dir1/*\" -f archive | sort
5883
5884 rm -rf testdir
5885 )"
5886 echo exclude01.at:20 >"$at_check_line_file"
5887
5888 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
5889    false; }; then
5890   ( $at_traceon;
5891 mkdir oldgnu
5892 (cd oldgnu
5893 TEST_TAR_FORMAT=oldgnu
5894 export TEST_TAR_FORMAT
5895 TAR_OPTIONS="-H oldgnu"
5896 export TAR_OPTIONS
5897 rm -rf *
5898
5899
5900 test -z "`sort < /dev/null 2>&1`" || exit 77
5901
5902
5903 rm -rf testdir
5904 mkdir -p testdir/dir1 testdir/dir2 testdir/dir3
5905 touch testdir/dir1/file1
5906 touch testdir/dir1/\*
5907 touch testdir/dir2/file2
5908 touch testdir/dir2/\*
5909 touch testdir/dir3/file3
5910 touch testdir/dir3/\*
5911
5912 tar cf archive --exclude=testdir/dir1/\* \
5913                --no-wildcards \
5914                --exclude=testdir/dir2/\* \
5915                --wildcards \
5916                --exclude=testdir/dir3/\* \
5917                testdir
5918 tar tf archive | sort
5919
5920 echo "NEXT"
5921 tar cf archive testdir
5922 tar t "testdir/dir1/*" -f archive | sort
5923
5924 echo "NEXT"
5925 tar cf archive testdir/dir1
5926 tar t --no-wildcards "testdir/dir1/*" -f archive | sort
5927
5928 echo "NEXT"
5929 tar cf archive testdir
5930 tar t --wildcards "testdir/dir1/*" -f archive | sort
5931
5932 rm -rf testdir
5933 ) ) >"$at_stdout" 2>"$at_stder1"
5934   at_func_filter_trace $?
5935 else
5936   ( :;
5937 mkdir oldgnu
5938 (cd oldgnu
5939 TEST_TAR_FORMAT=oldgnu
5940 export TEST_TAR_FORMAT
5941 TAR_OPTIONS="-H oldgnu"
5942 export TAR_OPTIONS
5943 rm -rf *
5944
5945
5946 test -z "`sort < /dev/null 2>&1`" || exit 77
5947
5948
5949 rm -rf testdir
5950 mkdir -p testdir/dir1 testdir/dir2 testdir/dir3
5951 touch testdir/dir1/file1
5952 touch testdir/dir1/\*
5953 touch testdir/dir2/file2
5954 touch testdir/dir2/\*
5955 touch testdir/dir3/file3
5956 touch testdir/dir3/\*
5957
5958 tar cf archive --exclude=testdir/dir1/\* \
5959                --no-wildcards \
5960                --exclude=testdir/dir2/\* \
5961                --wildcards \
5962                --exclude=testdir/dir3/\* \
5963                testdir
5964 tar tf archive | sort
5965
5966 echo "NEXT"
5967 tar cf archive testdir
5968 tar t "testdir/dir1/*" -f archive | sort
5969
5970 echo "NEXT"
5971 tar cf archive testdir/dir1
5972 tar t --no-wildcards "testdir/dir1/*" -f archive | sort
5973
5974 echo "NEXT"
5975 tar cf archive testdir
5976 tar t --wildcards "testdir/dir1/*" -f archive | sort
5977
5978 rm -rf testdir
5979 ) ) >"$at_stdout" 2>"$at_stderr"
5980 fi
5981 at_status=$?
5982 at_failed=false
5983 at_func_diff_devnull "$at_stderr" || at_failed=:
5984 echo >>"$at_stdout"; $as_echo "testdir/
5985 testdir/dir1/
5986 testdir/dir2/
5987 testdir/dir2/file2
5988 testdir/dir3/
5989 NEXT
5990 testdir/dir1/*
5991 NEXT
5992 testdir/dir1/*
5993 NEXT
5994 testdir/dir1/*
5995 testdir/dir1/file1
5996 " | \
5997   $at_diff - "$at_stdout" || at_failed=:
5998 at_func_check_status 0 $at_status "$at_srcdir/exclude01.at:20"
5999
6000 $at_failed && at_func_log_failure
6001 $at_traceon; }
6002
6003               { $at_traceoff
6004 $as_echo "$at_srcdir/exclude01.at:20:
6005 mkdir ustar
6006 (cd ustar
6007 TEST_TAR_FORMAT=ustar
6008 export TEST_TAR_FORMAT
6009 TAR_OPTIONS=\"-H ustar\"
6010 export TAR_OPTIONS
6011 rm -rf *
6012
6013
6014 test -z "`sort < /dev/null 2>&1`" || exit 77
6015
6016
6017 rm -rf testdir
6018 mkdir -p testdir/dir1 testdir/dir2 testdir/dir3
6019 touch testdir/dir1/file1
6020 touch testdir/dir1/\\*
6021 touch testdir/dir2/file2
6022 touch testdir/dir2/\\*
6023 touch testdir/dir3/file3
6024 touch testdir/dir3/\\*
6025
6026 tar cf archive --exclude=testdir/dir1/\\* \\
6027                --no-wildcards \\
6028                --exclude=testdir/dir2/\\* \\
6029                --wildcards \\
6030                --exclude=testdir/dir3/\\* \\
6031                testdir
6032 tar tf archive | sort
6033
6034 echo \"NEXT\"
6035 tar cf archive testdir
6036 tar t \"testdir/dir1/*\" -f archive | sort
6037
6038 echo \"NEXT\"
6039 tar cf archive testdir/dir1
6040 tar t --no-wildcards \"testdir/dir1/*\" -f archive | sort
6041
6042 echo \"NEXT\"
6043 tar cf archive testdir
6044 tar t --wildcards \"testdir/dir1/*\" -f archive | sort
6045
6046 rm -rf testdir
6047 )"
6048 echo exclude01.at:20 >"$at_check_line_file"
6049
6050 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
6051    false; }; then
6052   ( $at_traceon;
6053 mkdir ustar
6054 (cd ustar
6055 TEST_TAR_FORMAT=ustar
6056 export TEST_TAR_FORMAT
6057 TAR_OPTIONS="-H ustar"
6058 export TAR_OPTIONS
6059 rm -rf *
6060
6061
6062 test -z "`sort < /dev/null 2>&1`" || exit 77
6063
6064
6065 rm -rf testdir
6066 mkdir -p testdir/dir1 testdir/dir2 testdir/dir3
6067 touch testdir/dir1/file1
6068 touch testdir/dir1/\*
6069 touch testdir/dir2/file2
6070 touch testdir/dir2/\*
6071 touch testdir/dir3/file3
6072 touch testdir/dir3/\*
6073
6074 tar cf archive --exclude=testdir/dir1/\* \
6075                --no-wildcards \
6076                --exclude=testdir/dir2/\* \
6077                --wildcards \
6078                --exclude=testdir/dir3/\* \
6079                testdir
6080 tar tf archive | sort
6081
6082 echo "NEXT"
6083 tar cf archive testdir
6084 tar t "testdir/dir1/*" -f archive | sort
6085
6086 echo "NEXT"
6087 tar cf archive testdir/dir1
6088 tar t --no-wildcards "testdir/dir1/*" -f archive | sort
6089
6090 echo "NEXT"
6091 tar cf archive testdir
6092 tar t --wildcards "testdir/dir1/*" -f archive | sort
6093
6094 rm -rf testdir
6095 ) ) >"$at_stdout" 2>"$at_stder1"
6096   at_func_filter_trace $?
6097 else
6098   ( :;
6099 mkdir ustar
6100 (cd ustar
6101 TEST_TAR_FORMAT=ustar
6102 export TEST_TAR_FORMAT
6103 TAR_OPTIONS="-H ustar"
6104 export TAR_OPTIONS
6105 rm -rf *
6106
6107
6108 test -z "`sort < /dev/null 2>&1`" || exit 77
6109
6110
6111 rm -rf testdir
6112 mkdir -p testdir/dir1 testdir/dir2 testdir/dir3
6113 touch testdir/dir1/file1
6114 touch testdir/dir1/\*
6115 touch testdir/dir2/file2
6116 touch testdir/dir2/\*
6117 touch testdir/dir3/file3
6118 touch testdir/dir3/\*
6119
6120 tar cf archive --exclude=testdir/dir1/\* \
6121                --no-wildcards \
6122                --exclude=testdir/dir2/\* \
6123                --wildcards \
6124                --exclude=testdir/dir3/\* \
6125                testdir
6126 tar tf archive | sort
6127
6128 echo "NEXT"
6129 tar cf archive testdir
6130 tar t "testdir/dir1/*" -f archive | sort
6131
6132 echo "NEXT"
6133 tar cf archive testdir/dir1
6134 tar t --no-wildcards "testdir/dir1/*" -f archive | sort
6135
6136 echo "NEXT"
6137 tar cf archive testdir
6138 tar t --wildcards "testdir/dir1/*" -f archive | sort
6139
6140 rm -rf testdir
6141 ) ) >"$at_stdout" 2>"$at_stderr"
6142 fi
6143 at_status=$?
6144 at_failed=false
6145 at_func_diff_devnull "$at_stderr" || at_failed=:
6146 echo >>"$at_stdout"; $as_echo "testdir/
6147 testdir/dir1/
6148 testdir/dir2/
6149 testdir/dir2/file2
6150 testdir/dir3/
6151 NEXT
6152 testdir/dir1/*
6153 NEXT
6154 testdir/dir1/*
6155 NEXT
6156 testdir/dir1/*
6157 testdir/dir1/file1
6158 " | \
6159   $at_diff - "$at_stdout" || at_failed=:
6160 at_func_check_status 0 $at_status "$at_srcdir/exclude01.at:20"
6161
6162 $at_failed && at_func_log_failure
6163 $at_traceon; }
6164
6165               { $at_traceoff
6166 $as_echo "$at_srcdir/exclude01.at:20:
6167 mkdir posix
6168 (cd posix
6169 TEST_TAR_FORMAT=posix
6170 export TEST_TAR_FORMAT
6171 TAR_OPTIONS=\"-H posix\"
6172 export TAR_OPTIONS
6173 rm -rf *
6174
6175
6176 test -z "`sort < /dev/null 2>&1`" || exit 77
6177
6178
6179 rm -rf testdir
6180 mkdir -p testdir/dir1 testdir/dir2 testdir/dir3
6181 touch testdir/dir1/file1
6182 touch testdir/dir1/\\*
6183 touch testdir/dir2/file2
6184 touch testdir/dir2/\\*
6185 touch testdir/dir3/file3
6186 touch testdir/dir3/\\*
6187
6188 tar cf archive --exclude=testdir/dir1/\\* \\
6189                --no-wildcards \\
6190                --exclude=testdir/dir2/\\* \\
6191                --wildcards \\
6192                --exclude=testdir/dir3/\\* \\
6193                testdir
6194 tar tf archive | sort
6195
6196 echo \"NEXT\"
6197 tar cf archive testdir
6198 tar t \"testdir/dir1/*\" -f archive | sort
6199
6200 echo \"NEXT\"
6201 tar cf archive testdir/dir1
6202 tar t --no-wildcards \"testdir/dir1/*\" -f archive | sort
6203
6204 echo \"NEXT\"
6205 tar cf archive testdir
6206 tar t --wildcards \"testdir/dir1/*\" -f archive | sort
6207
6208 rm -rf testdir
6209 )"
6210 echo exclude01.at:20 >"$at_check_line_file"
6211
6212 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
6213    false; }; then
6214   ( $at_traceon;
6215 mkdir posix
6216 (cd posix
6217 TEST_TAR_FORMAT=posix
6218 export TEST_TAR_FORMAT
6219 TAR_OPTIONS="-H posix"
6220 export TAR_OPTIONS
6221 rm -rf *
6222
6223
6224 test -z "`sort < /dev/null 2>&1`" || exit 77
6225
6226
6227 rm -rf testdir
6228 mkdir -p testdir/dir1 testdir/dir2 testdir/dir3
6229 touch testdir/dir1/file1
6230 touch testdir/dir1/\*
6231 touch testdir/dir2/file2
6232 touch testdir/dir2/\*
6233 touch testdir/dir3/file3
6234 touch testdir/dir3/\*
6235
6236 tar cf archive --exclude=testdir/dir1/\* \
6237                --no-wildcards \
6238                --exclude=testdir/dir2/\* \
6239                --wildcards \
6240                --exclude=testdir/dir3/\* \
6241                testdir
6242 tar tf archive | sort
6243
6244 echo "NEXT"
6245 tar cf archive testdir
6246 tar t "testdir/dir1/*" -f archive | sort
6247
6248 echo "NEXT"
6249 tar cf archive testdir/dir1
6250 tar t --no-wildcards "testdir/dir1/*" -f archive | sort
6251
6252 echo "NEXT"
6253 tar cf archive testdir
6254 tar t --wildcards "testdir/dir1/*" -f archive | sort
6255
6256 rm -rf testdir
6257 ) ) >"$at_stdout" 2>"$at_stder1"
6258   at_func_filter_trace $?
6259 else
6260   ( :;
6261 mkdir posix
6262 (cd posix
6263 TEST_TAR_FORMAT=posix
6264 export TEST_TAR_FORMAT
6265 TAR_OPTIONS="-H posix"
6266 export TAR_OPTIONS
6267 rm -rf *
6268
6269
6270 test -z "`sort < /dev/null 2>&1`" || exit 77
6271
6272
6273 rm -rf testdir
6274 mkdir -p testdir/dir1 testdir/dir2 testdir/dir3
6275 touch testdir/dir1/file1
6276 touch testdir/dir1/\*
6277 touch testdir/dir2/file2
6278 touch testdir/dir2/\*
6279 touch testdir/dir3/file3
6280 touch testdir/dir3/\*
6281
6282 tar cf archive --exclude=testdir/dir1/\* \
6283                --no-wildcards \
6284                --exclude=testdir/dir2/\* \
6285                --wildcards \
6286                --exclude=testdir/dir3/\* \
6287                testdir
6288 tar tf archive | sort
6289
6290 echo "NEXT"
6291 tar cf archive testdir
6292 tar t "testdir/dir1/*" -f archive | sort
6293
6294 echo "NEXT"
6295 tar cf archive testdir/dir1
6296 tar t --no-wildcards "testdir/dir1/*" -f archive | sort
6297
6298 echo "NEXT"
6299 tar cf archive testdir
6300 tar t --wildcards "testdir/dir1/*" -f archive | sort
6301
6302 rm -rf testdir
6303 ) ) >"$at_stdout" 2>"$at_stderr"
6304 fi
6305 at_status=$?
6306 at_failed=false
6307 at_func_diff_devnull "$at_stderr" || at_failed=:
6308 echo >>"$at_stdout"; $as_echo "testdir/
6309 testdir/dir1/
6310 testdir/dir2/
6311 testdir/dir2/file2
6312 testdir/dir3/
6313 NEXT
6314 testdir/dir1/*
6315 NEXT
6316 testdir/dir1/*
6317 NEXT
6318 testdir/dir1/*
6319 testdir/dir1/file1
6320 " | \
6321   $at_diff - "$at_stdout" || at_failed=:
6322 at_func_check_status 0 $at_status "$at_srcdir/exclude01.at:20"
6323
6324 $at_failed && at_func_log_failure
6325 $at_traceon; }
6326
6327               { $at_traceoff
6328 $as_echo "$at_srcdir/exclude01.at:20:
6329 mkdir gnu
6330 (cd gnu
6331 TEST_TAR_FORMAT=gnu
6332 export TEST_TAR_FORMAT
6333 TAR_OPTIONS=\"-H gnu\"
6334 export TAR_OPTIONS
6335 rm -rf *
6336
6337
6338 test -z "`sort < /dev/null 2>&1`" || exit 77
6339
6340
6341 rm -rf testdir
6342 mkdir -p testdir/dir1 testdir/dir2 testdir/dir3
6343 touch testdir/dir1/file1
6344 touch testdir/dir1/\\*
6345 touch testdir/dir2/file2
6346 touch testdir/dir2/\\*
6347 touch testdir/dir3/file3
6348 touch testdir/dir3/\\*
6349
6350 tar cf archive --exclude=testdir/dir1/\\* \\
6351                --no-wildcards \\
6352                --exclude=testdir/dir2/\\* \\
6353                --wildcards \\
6354                --exclude=testdir/dir3/\\* \\
6355                testdir
6356 tar tf archive | sort
6357
6358 echo \"NEXT\"
6359 tar cf archive testdir
6360 tar t \"testdir/dir1/*\" -f archive | sort
6361
6362 echo \"NEXT\"
6363 tar cf archive testdir/dir1
6364 tar t --no-wildcards \"testdir/dir1/*\" -f archive | sort
6365
6366 echo \"NEXT\"
6367 tar cf archive testdir
6368 tar t --wildcards \"testdir/dir1/*\" -f archive | sort
6369
6370 rm -rf testdir
6371 )"
6372 echo exclude01.at:20 >"$at_check_line_file"
6373
6374 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
6375    false; }; then
6376   ( $at_traceon;
6377 mkdir gnu
6378 (cd gnu
6379 TEST_TAR_FORMAT=gnu
6380 export TEST_TAR_FORMAT
6381 TAR_OPTIONS="-H gnu"
6382 export TAR_OPTIONS
6383 rm -rf *
6384
6385
6386 test -z "`sort < /dev/null 2>&1`" || exit 77
6387
6388
6389 rm -rf testdir
6390 mkdir -p testdir/dir1 testdir/dir2 testdir/dir3
6391 touch testdir/dir1/file1
6392 touch testdir/dir1/\*
6393 touch testdir/dir2/file2
6394 touch testdir/dir2/\*
6395 touch testdir/dir3/file3
6396 touch testdir/dir3/\*
6397
6398 tar cf archive --exclude=testdir/dir1/\* \
6399                --no-wildcards \
6400                --exclude=testdir/dir2/\* \
6401                --wildcards \
6402                --exclude=testdir/dir3/\* \
6403                testdir
6404 tar tf archive | sort
6405
6406 echo "NEXT"
6407 tar cf archive testdir
6408 tar t "testdir/dir1/*" -f archive | sort
6409
6410 echo "NEXT"
6411 tar cf archive testdir/dir1
6412 tar t --no-wildcards "testdir/dir1/*" -f archive | sort
6413
6414 echo "NEXT"
6415 tar cf archive testdir
6416 tar t --wildcards "testdir/dir1/*" -f archive | sort
6417
6418 rm -rf testdir
6419 ) ) >"$at_stdout" 2>"$at_stder1"
6420   at_func_filter_trace $?
6421 else
6422   ( :;
6423 mkdir gnu
6424 (cd gnu
6425 TEST_TAR_FORMAT=gnu
6426 export TEST_TAR_FORMAT
6427 TAR_OPTIONS="-H gnu"
6428 export TAR_OPTIONS
6429 rm -rf *
6430
6431
6432 test -z "`sort < /dev/null 2>&1`" || exit 77
6433
6434
6435 rm -rf testdir
6436 mkdir -p testdir/dir1 testdir/dir2 testdir/dir3
6437 touch testdir/dir1/file1
6438 touch testdir/dir1/\*
6439 touch testdir/dir2/file2
6440 touch testdir/dir2/\*
6441 touch testdir/dir3/file3
6442 touch testdir/dir3/\*
6443
6444 tar cf archive --exclude=testdir/dir1/\* \
6445                --no-wildcards \
6446                --exclude=testdir/dir2/\* \
6447                --wildcards \
6448                --exclude=testdir/dir3/\* \
6449                testdir
6450 tar tf archive | sort
6451
6452 echo "NEXT"
6453 tar cf archive testdir
6454 tar t "testdir/dir1/*" -f archive | sort
6455
6456 echo "NEXT"
6457 tar cf archive testdir/dir1
6458 tar t --no-wildcards "testdir/dir1/*" -f archive | sort
6459
6460 echo "NEXT"
6461 tar cf archive testdir
6462 tar t --wildcards "testdir/dir1/*" -f archive | sort
6463
6464 rm -rf testdir
6465 ) ) >"$at_stdout" 2>"$at_stderr"
6466 fi
6467 at_status=$?
6468 at_failed=false
6469 at_func_diff_devnull "$at_stderr" || at_failed=:
6470 echo >>"$at_stdout"; $as_echo "testdir/
6471 testdir/dir1/
6472 testdir/dir2/
6473 testdir/dir2/file2
6474 testdir/dir3/
6475 NEXT
6476 testdir/dir1/*
6477 NEXT
6478 testdir/dir1/*
6479 NEXT
6480 testdir/dir1/*
6481 testdir/dir1/file1
6482 " | \
6483   $at_diff - "$at_stdout" || at_failed=:
6484 at_func_check_status 0 $at_status "$at_srcdir/exclude01.at:20"
6485
6486 $at_failed && at_func_log_failure
6487 $at_traceon; }
6488
6489
6490
6491
6492   $at_traceoff
6493   $at_times_p && times >"$at_times_file"
6494 ) 5>&1 2>&1 | eval $at_tee_pipe
6495 at_status=`cat "$at_status_file"`
6496 #AT_STOP_14
6497 #AT_START_15
6498 # 15. exclude02.at:17: exclude: anchoring
6499 at_setup_line='exclude02.at:17'
6500 at_desc="exclude: anchoring"
6501 $at_quiet $as_echo_n " 15: $at_desc                             "
6502 at_xfail=no
6503       test -f $XFAILFILE && at_xfail=yes
6504 echo "#                             -*- compilation -*-" >> "$at_group_log"
6505 (
6506   $as_echo "15. exclude02.at:17: testing ..."
6507   $at_traceon
6508
6509
6510
6511
6512
6513   { $at_traceoff
6514 $as_echo "$at_srcdir/exclude02.at:20:
6515 mkdir v7
6516 (cd v7
6517 TEST_TAR_FORMAT=v7
6518 export TEST_TAR_FORMAT
6519 TAR_OPTIONS=\"-H v7\"
6520 export TAR_OPTIONS
6521 rm -rf *
6522
6523
6524 test -z "`sort < /dev/null 2>&1`" || exit 77
6525
6526
6527 rm -rf testdir
6528 mkdir -p testdir
6529 touch file1.txt
6530 touch testdir/file1.txt
6531 touch testdir/file2
6532
6533 tar cf archive --exclude=\"file1.txt\" \\
6534                testdir
6535 tar tf archive | sort
6536
6537 echo \"SUB 1\"
6538 tar cf archive --no-anchored \\
6539                --exclude=\"file1.txt\" \\
6540                testdir
6541 tar tf archive | sort
6542
6543 echo \"SUB 2\"
6544 tar cf archive --anchored \\
6545                --exclude=\"file1.txt\" \\
6546                testdir
6547 tar tf archive | sort
6548
6549 echo \"SUB 3\"
6550 tar cf archive testdir file1.txt
6551 tar t \"file1.txt\" -f archive | sort
6552
6553 echo \"SUB 4\"
6554 tar t --no-anchored \"file1.txt\" -f archive | sort
6555
6556 echo \"SUB 5\"
6557 tar t --anchored \"file1.txt\" -f archive | sort
6558
6559 rm -rf testdir file1.txt
6560
6561 )"
6562 echo exclude02.at:20 >"$at_check_line_file"
6563
6564 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
6565    false; }; then
6566   ( $at_traceon;
6567 mkdir v7
6568 (cd v7
6569 TEST_TAR_FORMAT=v7
6570 export TEST_TAR_FORMAT
6571 TAR_OPTIONS="-H v7"
6572 export TAR_OPTIONS
6573 rm -rf *
6574
6575
6576 test -z "`sort < /dev/null 2>&1`" || exit 77
6577
6578
6579 rm -rf testdir
6580 mkdir -p testdir
6581 touch file1.txt
6582 touch testdir/file1.txt
6583 touch testdir/file2
6584
6585 tar cf archive --exclude="file1.txt" \
6586                testdir
6587 tar tf archive | sort
6588
6589 echo "SUB 1"
6590 tar cf archive --no-anchored \
6591                --exclude="file1.txt" \
6592                testdir
6593 tar tf archive | sort
6594
6595 echo "SUB 2"
6596 tar cf archive --anchored \
6597                --exclude="file1.txt" \
6598                testdir
6599 tar tf archive | sort
6600
6601 echo "SUB 3"
6602 tar cf archive testdir file1.txt
6603 tar t "file1.txt" -f archive | sort
6604
6605 echo "SUB 4"
6606 tar t --no-anchored "file1.txt" -f archive | sort
6607
6608 echo "SUB 5"
6609 tar t --anchored "file1.txt" -f archive | sort
6610
6611 rm -rf testdir file1.txt
6612
6613 ) ) >"$at_stdout" 2>"$at_stder1"
6614   at_func_filter_trace $?
6615 else
6616   ( :;
6617 mkdir v7
6618 (cd v7
6619 TEST_TAR_FORMAT=v7
6620 export TEST_TAR_FORMAT
6621 TAR_OPTIONS="-H v7"
6622 export TAR_OPTIONS
6623 rm -rf *
6624
6625
6626 test -z "`sort < /dev/null 2>&1`" || exit 77
6627
6628
6629 rm -rf testdir
6630 mkdir -p testdir
6631 touch file1.txt
6632 touch testdir/file1.txt
6633 touch testdir/file2
6634
6635 tar cf archive --exclude="file1.txt" \
6636                testdir
6637 tar tf archive | sort
6638
6639 echo "SUB 1"
6640 tar cf archive --no-anchored \
6641                --exclude="file1.txt" \
6642                testdir
6643 tar tf archive | sort
6644
6645 echo "SUB 2"
6646 tar cf archive --anchored \
6647                --exclude="file1.txt" \
6648                testdir
6649 tar tf archive | sort
6650
6651 echo "SUB 3"
6652 tar cf archive testdir file1.txt
6653 tar t "file1.txt" -f archive | sort
6654
6655 echo "SUB 4"
6656 tar t --no-anchored "file1.txt" -f archive | sort
6657
6658 echo "SUB 5"
6659 tar t --anchored "file1.txt" -f archive | sort
6660
6661 rm -rf testdir file1.txt
6662
6663 ) ) >"$at_stdout" 2>"$at_stderr"
6664 fi
6665 at_status=$?
6666 at_failed=false
6667 at_func_diff_devnull "$at_stderr" || at_failed=:
6668 echo >>"$at_stdout"; $as_echo "testdir/
6669 testdir/file2
6670 SUB 1
6671 testdir/
6672 testdir/file2
6673 SUB 2
6674 testdir/
6675 testdir/file1.txt
6676 testdir/file2
6677 SUB 3
6678 file1.txt
6679 SUB 4
6680 file1.txt
6681 testdir/file1.txt
6682 SUB 5
6683 file1.txt
6684 " | \
6685   $at_diff - "$at_stdout" || at_failed=:
6686 at_func_check_status 0 $at_status "$at_srcdir/exclude02.at:20"
6687
6688 $at_failed && at_func_log_failure
6689 $at_traceon; }
6690
6691               { $at_traceoff
6692 $as_echo "$at_srcdir/exclude02.at:20:
6693 mkdir oldgnu
6694 (cd oldgnu
6695 TEST_TAR_FORMAT=oldgnu
6696 export TEST_TAR_FORMAT
6697 TAR_OPTIONS=\"-H oldgnu\"
6698 export TAR_OPTIONS
6699 rm -rf *
6700
6701
6702 test -z "`sort < /dev/null 2>&1`" || exit 77
6703
6704
6705 rm -rf testdir
6706 mkdir -p testdir
6707 touch file1.txt
6708 touch testdir/file1.txt
6709 touch testdir/file2
6710
6711 tar cf archive --exclude=\"file1.txt\" \\
6712                testdir
6713 tar tf archive | sort
6714
6715 echo \"SUB 1\"
6716 tar cf archive --no-anchored \\
6717                --exclude=\"file1.txt\" \\
6718                testdir
6719 tar tf archive | sort
6720
6721 echo \"SUB 2\"
6722 tar cf archive --anchored \\
6723                --exclude=\"file1.txt\" \\
6724                testdir
6725 tar tf archive | sort
6726
6727 echo \"SUB 3\"
6728 tar cf archive testdir file1.txt
6729 tar t \"file1.txt\" -f archive | sort
6730
6731 echo \"SUB 4\"
6732 tar t --no-anchored \"file1.txt\" -f archive | sort
6733
6734 echo \"SUB 5\"
6735 tar t --anchored \"file1.txt\" -f archive | sort
6736
6737 rm -rf testdir file1.txt
6738
6739 )"
6740 echo exclude02.at:20 >"$at_check_line_file"
6741
6742 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
6743    false; }; then
6744   ( $at_traceon;
6745 mkdir oldgnu
6746 (cd oldgnu
6747 TEST_TAR_FORMAT=oldgnu
6748 export TEST_TAR_FORMAT
6749 TAR_OPTIONS="-H oldgnu"
6750 export TAR_OPTIONS
6751 rm -rf *
6752
6753
6754 test -z "`sort < /dev/null 2>&1`" || exit 77
6755
6756
6757 rm -rf testdir
6758 mkdir -p testdir
6759 touch file1.txt
6760 touch testdir/file1.txt
6761 touch testdir/file2
6762
6763 tar cf archive --exclude="file1.txt" \
6764                testdir
6765 tar tf archive | sort
6766
6767 echo "SUB 1"
6768 tar cf archive --no-anchored \
6769                --exclude="file1.txt" \
6770                testdir
6771 tar tf archive | sort
6772
6773 echo "SUB 2"
6774 tar cf archive --anchored \
6775                --exclude="file1.txt" \
6776                testdir
6777 tar tf archive | sort
6778
6779 echo "SUB 3"
6780 tar cf archive testdir file1.txt
6781 tar t "file1.txt" -f archive | sort
6782
6783 echo "SUB 4"
6784 tar t --no-anchored "file1.txt" -f archive | sort
6785
6786 echo "SUB 5"
6787 tar t --anchored "file1.txt" -f archive | sort
6788
6789 rm -rf testdir file1.txt
6790
6791 ) ) >"$at_stdout" 2>"$at_stder1"
6792   at_func_filter_trace $?
6793 else
6794   ( :;
6795 mkdir oldgnu
6796 (cd oldgnu
6797 TEST_TAR_FORMAT=oldgnu
6798 export TEST_TAR_FORMAT
6799 TAR_OPTIONS="-H oldgnu"
6800 export TAR_OPTIONS
6801 rm -rf *
6802
6803
6804 test -z "`sort < /dev/null 2>&1`" || exit 77
6805
6806
6807 rm -rf testdir
6808 mkdir -p testdir
6809 touch file1.txt
6810 touch testdir/file1.txt
6811 touch testdir/file2
6812
6813 tar cf archive --exclude="file1.txt" \
6814                testdir
6815 tar tf archive | sort
6816
6817 echo "SUB 1"
6818 tar cf archive --no-anchored \
6819                --exclude="file1.txt" \
6820                testdir
6821 tar tf archive | sort
6822
6823 echo "SUB 2"
6824 tar cf archive --anchored \
6825                --exclude="file1.txt" \
6826                testdir
6827 tar tf archive | sort
6828
6829 echo "SUB 3"
6830 tar cf archive testdir file1.txt
6831 tar t "file1.txt" -f archive | sort
6832
6833 echo "SUB 4"
6834 tar t --no-anchored "file1.txt" -f archive | sort
6835
6836 echo "SUB 5"
6837 tar t --anchored "file1.txt" -f archive | sort
6838
6839 rm -rf testdir file1.txt
6840
6841 ) ) >"$at_stdout" 2>"$at_stderr"
6842 fi
6843 at_status=$?
6844 at_failed=false
6845 at_func_diff_devnull "$at_stderr" || at_failed=:
6846 echo >>"$at_stdout"; $as_echo "testdir/
6847 testdir/file2
6848 SUB 1
6849 testdir/
6850 testdir/file2
6851 SUB 2
6852 testdir/
6853 testdir/file1.txt
6854 testdir/file2
6855 SUB 3
6856 file1.txt
6857 SUB 4
6858 file1.txt
6859 testdir/file1.txt
6860 SUB 5
6861 file1.txt
6862 " | \
6863   $at_diff - "$at_stdout" || at_failed=:
6864 at_func_check_status 0 $at_status "$at_srcdir/exclude02.at:20"
6865
6866 $at_failed && at_func_log_failure
6867 $at_traceon; }
6868
6869               { $at_traceoff
6870 $as_echo "$at_srcdir/exclude02.at:20:
6871 mkdir ustar
6872 (cd ustar
6873 TEST_TAR_FORMAT=ustar
6874 export TEST_TAR_FORMAT
6875 TAR_OPTIONS=\"-H ustar\"
6876 export TAR_OPTIONS
6877 rm -rf *
6878
6879
6880 test -z "`sort < /dev/null 2>&1`" || exit 77
6881
6882
6883 rm -rf testdir
6884 mkdir -p testdir
6885 touch file1.txt
6886 touch testdir/file1.txt
6887 touch testdir/file2
6888
6889 tar cf archive --exclude=\"file1.txt\" \\
6890                testdir
6891 tar tf archive | sort
6892
6893 echo \"SUB 1\"
6894 tar cf archive --no-anchored \\
6895                --exclude=\"file1.txt\" \\
6896                testdir
6897 tar tf archive | sort
6898
6899 echo \"SUB 2\"
6900 tar cf archive --anchored \\
6901                --exclude=\"file1.txt\" \\
6902                testdir
6903 tar tf archive | sort
6904
6905 echo \"SUB 3\"
6906 tar cf archive testdir file1.txt
6907 tar t \"file1.txt\" -f archive | sort
6908
6909 echo \"SUB 4\"
6910 tar t --no-anchored \"file1.txt\" -f archive | sort
6911
6912 echo \"SUB 5\"
6913 tar t --anchored \"file1.txt\" -f archive | sort
6914
6915 rm -rf testdir file1.txt
6916
6917 )"
6918 echo exclude02.at:20 >"$at_check_line_file"
6919
6920 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
6921    false; }; then
6922   ( $at_traceon;
6923 mkdir ustar
6924 (cd ustar
6925 TEST_TAR_FORMAT=ustar
6926 export TEST_TAR_FORMAT
6927 TAR_OPTIONS="-H ustar"
6928 export TAR_OPTIONS
6929 rm -rf *
6930
6931
6932 test -z "`sort < /dev/null 2>&1`" || exit 77
6933
6934
6935 rm -rf testdir
6936 mkdir -p testdir
6937 touch file1.txt
6938 touch testdir/file1.txt
6939 touch testdir/file2
6940
6941 tar cf archive --exclude="file1.txt" \
6942                testdir
6943 tar tf archive | sort
6944
6945 echo "SUB 1"
6946 tar cf archive --no-anchored \
6947                --exclude="file1.txt" \
6948                testdir
6949 tar tf archive | sort
6950
6951 echo "SUB 2"
6952 tar cf archive --anchored \
6953                --exclude="file1.txt" \
6954                testdir
6955 tar tf archive | sort
6956
6957 echo "SUB 3"
6958 tar cf archive testdir file1.txt
6959 tar t "file1.txt" -f archive | sort
6960
6961 echo "SUB 4"
6962 tar t --no-anchored "file1.txt" -f archive | sort
6963
6964 echo "SUB 5"
6965 tar t --anchored "file1.txt" -f archive | sort
6966
6967 rm -rf testdir file1.txt
6968
6969 ) ) >"$at_stdout" 2>"$at_stder1"
6970   at_func_filter_trace $?
6971 else
6972   ( :;
6973 mkdir ustar
6974 (cd ustar
6975 TEST_TAR_FORMAT=ustar
6976 export TEST_TAR_FORMAT
6977 TAR_OPTIONS="-H ustar"
6978 export TAR_OPTIONS
6979 rm -rf *
6980
6981
6982 test -z "`sort < /dev/null 2>&1`" || exit 77
6983
6984
6985 rm -rf testdir
6986 mkdir -p testdir
6987 touch file1.txt
6988 touch testdir/file1.txt
6989 touch testdir/file2
6990
6991 tar cf archive --exclude="file1.txt" \
6992                testdir
6993 tar tf archive | sort
6994
6995 echo "SUB 1"
6996 tar cf archive --no-anchored \
6997                --exclude="file1.txt" \
6998                testdir
6999 tar tf archive | sort
7000
7001 echo "SUB 2"
7002 tar cf archive --anchored \
7003                --exclude="file1.txt" \
7004                testdir
7005 tar tf archive | sort
7006
7007 echo "SUB 3"
7008 tar cf archive testdir file1.txt
7009 tar t "file1.txt" -f archive | sort
7010
7011 echo "SUB 4"
7012 tar t --no-anchored "file1.txt" -f archive | sort
7013
7014 echo "SUB 5"
7015 tar t --anchored "file1.txt" -f archive | sort
7016
7017 rm -rf testdir file1.txt
7018
7019 ) ) >"$at_stdout" 2>"$at_stderr"
7020 fi
7021 at_status=$?
7022 at_failed=false
7023 at_func_diff_devnull "$at_stderr" || at_failed=:
7024 echo >>"$at_stdout"; $as_echo "testdir/
7025 testdir/file2
7026 SUB 1
7027 testdir/
7028 testdir/file2
7029 SUB 2
7030 testdir/
7031 testdir/file1.txt
7032 testdir/file2
7033 SUB 3
7034 file1.txt
7035 SUB 4
7036 file1.txt
7037 testdir/file1.txt
7038 SUB 5
7039 file1.txt
7040 " | \
7041   $at_diff - "$at_stdout" || at_failed=:
7042 at_func_check_status 0 $at_status "$at_srcdir/exclude02.at:20"
7043
7044 $at_failed && at_func_log_failure
7045 $at_traceon; }
7046
7047               { $at_traceoff
7048 $as_echo "$at_srcdir/exclude02.at:20:
7049 mkdir posix
7050 (cd posix
7051 TEST_TAR_FORMAT=posix
7052 export TEST_TAR_FORMAT
7053 TAR_OPTIONS=\"-H posix\"
7054 export TAR_OPTIONS
7055 rm -rf *
7056
7057
7058 test -z "`sort < /dev/null 2>&1`" || exit 77
7059
7060
7061 rm -rf testdir
7062 mkdir -p testdir
7063 touch file1.txt
7064 touch testdir/file1.txt
7065 touch testdir/file2
7066
7067 tar cf archive --exclude=\"file1.txt\" \\
7068                testdir
7069 tar tf archive | sort
7070
7071 echo \"SUB 1\"
7072 tar cf archive --no-anchored \\
7073                --exclude=\"file1.txt\" \\
7074                testdir
7075 tar tf archive | sort
7076
7077 echo \"SUB 2\"
7078 tar cf archive --anchored \\
7079                --exclude=\"file1.txt\" \\
7080                testdir
7081 tar tf archive | sort
7082
7083 echo \"SUB 3\"
7084 tar cf archive testdir file1.txt
7085 tar t \"file1.txt\" -f archive | sort
7086
7087 echo \"SUB 4\"
7088 tar t --no-anchored \"file1.txt\" -f archive | sort
7089
7090 echo \"SUB 5\"
7091 tar t --anchored \"file1.txt\" -f archive | sort
7092
7093 rm -rf testdir file1.txt
7094
7095 )"
7096 echo exclude02.at:20 >"$at_check_line_file"
7097
7098 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
7099    false; }; then
7100   ( $at_traceon;
7101 mkdir posix
7102 (cd posix
7103 TEST_TAR_FORMAT=posix
7104 export TEST_TAR_FORMAT
7105 TAR_OPTIONS="-H posix"
7106 export TAR_OPTIONS
7107 rm -rf *
7108
7109
7110 test -z "`sort < /dev/null 2>&1`" || exit 77
7111
7112
7113 rm -rf testdir
7114 mkdir -p testdir
7115 touch file1.txt
7116 touch testdir/file1.txt
7117 touch testdir/file2
7118
7119 tar cf archive --exclude="file1.txt" \
7120                testdir
7121 tar tf archive | sort
7122
7123 echo "SUB 1"
7124 tar cf archive --no-anchored \
7125                --exclude="file1.txt" \
7126                testdir
7127 tar tf archive | sort
7128
7129 echo "SUB 2"
7130 tar cf archive --anchored \
7131                --exclude="file1.txt" \
7132                testdir
7133 tar tf archive | sort
7134
7135 echo "SUB 3"
7136 tar cf archive testdir file1.txt
7137 tar t "file1.txt" -f archive | sort
7138
7139 echo "SUB 4"
7140 tar t --no-anchored "file1.txt" -f archive | sort
7141
7142 echo "SUB 5"
7143 tar t --anchored "file1.txt" -f archive | sort
7144
7145 rm -rf testdir file1.txt
7146
7147 ) ) >"$at_stdout" 2>"$at_stder1"
7148   at_func_filter_trace $?
7149 else
7150   ( :;
7151 mkdir posix
7152 (cd posix
7153 TEST_TAR_FORMAT=posix
7154 export TEST_TAR_FORMAT
7155 TAR_OPTIONS="-H posix"
7156 export TAR_OPTIONS
7157 rm -rf *
7158
7159
7160 test -z "`sort < /dev/null 2>&1`" || exit 77
7161
7162
7163 rm -rf testdir
7164 mkdir -p testdir
7165 touch file1.txt
7166 touch testdir/file1.txt
7167 touch testdir/file2
7168
7169 tar cf archive --exclude="file1.txt" \
7170                testdir
7171 tar tf archive | sort
7172
7173 echo "SUB 1"
7174 tar cf archive --no-anchored \
7175                --exclude="file1.txt" \
7176                testdir
7177 tar tf archive | sort
7178
7179 echo "SUB 2"
7180 tar cf archive --anchored \
7181                --exclude="file1.txt" \
7182                testdir
7183 tar tf archive | sort
7184
7185 echo "SUB 3"
7186 tar cf archive testdir file1.txt
7187 tar t "file1.txt" -f archive | sort
7188
7189 echo "SUB 4"
7190 tar t --no-anchored "file1.txt" -f archive | sort
7191
7192 echo "SUB 5"
7193 tar t --anchored "file1.txt" -f archive | sort
7194
7195 rm -rf testdir file1.txt
7196
7197 ) ) >"$at_stdout" 2>"$at_stderr"
7198 fi
7199 at_status=$?
7200 at_failed=false
7201 at_func_diff_devnull "$at_stderr" || at_failed=:
7202 echo >>"$at_stdout"; $as_echo "testdir/
7203 testdir/file2
7204 SUB 1
7205 testdir/
7206 testdir/file2
7207 SUB 2
7208 testdir/
7209 testdir/file1.txt
7210 testdir/file2
7211 SUB 3
7212 file1.txt
7213 SUB 4
7214 file1.txt
7215 testdir/file1.txt
7216 SUB 5
7217 file1.txt
7218 " | \
7219   $at_diff - "$at_stdout" || at_failed=:
7220 at_func_check_status 0 $at_status "$at_srcdir/exclude02.at:20"
7221
7222 $at_failed && at_func_log_failure
7223 $at_traceon; }
7224
7225               { $at_traceoff
7226 $as_echo "$at_srcdir/exclude02.at:20:
7227 mkdir gnu
7228 (cd gnu
7229 TEST_TAR_FORMAT=gnu
7230 export TEST_TAR_FORMAT
7231 TAR_OPTIONS=\"-H gnu\"
7232 export TAR_OPTIONS
7233 rm -rf *
7234
7235
7236 test -z "`sort < /dev/null 2>&1`" || exit 77
7237
7238
7239 rm -rf testdir
7240 mkdir -p testdir
7241 touch file1.txt
7242 touch testdir/file1.txt
7243 touch testdir/file2
7244
7245 tar cf archive --exclude=\"file1.txt\" \\
7246                testdir
7247 tar tf archive | sort
7248
7249 echo \"SUB 1\"
7250 tar cf archive --no-anchored \\
7251                --exclude=\"file1.txt\" \\
7252                testdir
7253 tar tf archive | sort
7254
7255 echo \"SUB 2\"
7256 tar cf archive --anchored \\
7257                --exclude=\"file1.txt\" \\
7258                testdir
7259 tar tf archive | sort
7260
7261 echo \"SUB 3\"
7262 tar cf archive testdir file1.txt
7263 tar t \"file1.txt\" -f archive | sort
7264
7265 echo \"SUB 4\"
7266 tar t --no-anchored \"file1.txt\" -f archive | sort
7267
7268 echo \"SUB 5\"
7269 tar t --anchored \"file1.txt\" -f archive | sort
7270
7271 rm -rf testdir file1.txt
7272
7273 )"
7274 echo exclude02.at:20 >"$at_check_line_file"
7275
7276 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
7277    false; }; then
7278   ( $at_traceon;
7279 mkdir gnu
7280 (cd gnu
7281 TEST_TAR_FORMAT=gnu
7282 export TEST_TAR_FORMAT
7283 TAR_OPTIONS="-H gnu"
7284 export TAR_OPTIONS
7285 rm -rf *
7286
7287
7288 test -z "`sort < /dev/null 2>&1`" || exit 77
7289
7290
7291 rm -rf testdir
7292 mkdir -p testdir
7293 touch file1.txt
7294 touch testdir/file1.txt
7295 touch testdir/file2
7296
7297 tar cf archive --exclude="file1.txt" \
7298                testdir
7299 tar tf archive | sort
7300
7301 echo "SUB 1"
7302 tar cf archive --no-anchored \
7303                --exclude="file1.txt" \
7304                testdir
7305 tar tf archive | sort
7306
7307 echo "SUB 2"
7308 tar cf archive --anchored \
7309                --exclude="file1.txt" \
7310                testdir
7311 tar tf archive | sort
7312
7313 echo "SUB 3"
7314 tar cf archive testdir file1.txt
7315 tar t "file1.txt" -f archive | sort
7316
7317 echo "SUB 4"
7318 tar t --no-anchored "file1.txt" -f archive | sort
7319
7320 echo "SUB 5"
7321 tar t --anchored "file1.txt" -f archive | sort
7322
7323 rm -rf testdir file1.txt
7324
7325 ) ) >"$at_stdout" 2>"$at_stder1"
7326   at_func_filter_trace $?
7327 else
7328   ( :;
7329 mkdir gnu
7330 (cd gnu
7331 TEST_TAR_FORMAT=gnu
7332 export TEST_TAR_FORMAT
7333 TAR_OPTIONS="-H gnu"
7334 export TAR_OPTIONS
7335 rm -rf *
7336
7337
7338 test -z "`sort < /dev/null 2>&1`" || exit 77
7339
7340
7341 rm -rf testdir
7342 mkdir -p testdir
7343 touch file1.txt
7344 touch testdir/file1.txt
7345 touch testdir/file2
7346
7347 tar cf archive --exclude="file1.txt" \
7348                testdir
7349 tar tf archive | sort
7350
7351 echo "SUB 1"
7352 tar cf archive --no-anchored \
7353                --exclude="file1.txt" \
7354                testdir
7355 tar tf archive | sort
7356
7357 echo "SUB 2"
7358 tar cf archive --anchored \
7359                --exclude="file1.txt" \
7360                testdir
7361 tar tf archive | sort
7362
7363 echo "SUB 3"
7364 tar cf archive testdir file1.txt
7365 tar t "file1.txt" -f archive | sort
7366
7367 echo "SUB 4"
7368 tar t --no-anchored "file1.txt" -f archive | sort
7369
7370 echo "SUB 5"
7371 tar t --anchored "file1.txt" -f archive | sort
7372
7373 rm -rf testdir file1.txt
7374
7375 ) ) >"$at_stdout" 2>"$at_stderr"
7376 fi
7377 at_status=$?
7378 at_failed=false
7379 at_func_diff_devnull "$at_stderr" || at_failed=:
7380 echo >>"$at_stdout"; $as_echo "testdir/
7381 testdir/file2
7382 SUB 1
7383 testdir/
7384 testdir/file2
7385 SUB 2
7386 testdir/
7387 testdir/file1.txt
7388 testdir/file2
7389 SUB 3
7390 file1.txt
7391 SUB 4
7392 file1.txt
7393 testdir/file1.txt
7394 SUB 5
7395 file1.txt
7396 " | \
7397   $at_diff - "$at_stdout" || at_failed=:
7398 at_func_check_status 0 $at_status "$at_srcdir/exclude02.at:20"
7399
7400 $at_failed && at_func_log_failure
7401 $at_traceon; }
7402
7403
7404
7405
7406   $at_traceoff
7407   $at_times_p && times >"$at_times_file"
7408 ) 5>&1 2>&1 | eval $at_tee_pipe
7409 at_status=`cat "$at_status_file"`
7410 #AT_STOP_15
7411 #AT_START_16
7412 # 16. exclude03.at:17: exclude: wildcards match slash
7413 at_setup_line='exclude03.at:17'
7414 at_desc="exclude: wildcards match slash"
7415 $at_quiet $as_echo_n " 16: $at_desc                 "
7416 at_xfail=no
7417       test -f $XFAILFILE && at_xfail=yes
7418 echo "#                             -*- compilation -*-" >> "$at_group_log"
7419 (
7420   $as_echo "16. exclude03.at:17: testing ..."
7421   $at_traceon
7422
7423
7424
7425
7426
7427   { $at_traceoff
7428 $as_echo "$at_srcdir/exclude03.at:20:
7429 mkdir v7
7430 (cd v7
7431 TEST_TAR_FORMAT=v7
7432 export TEST_TAR_FORMAT
7433 TAR_OPTIONS=\"-H v7\"
7434 export TAR_OPTIONS
7435 rm -rf *
7436
7437
7438 test -z "`sort < /dev/null 2>&1`" || exit 77
7439
7440
7441 rm -rf testdir
7442 mkdir -p testdir/dir1 testdir/dir2 testdir/dir3
7443 touch testdir/\\*f\\*1
7444 touch testdir/dir1/file1
7445 touch testdir/dir1/\\*
7446 touch testdir/dir2/file2
7447 touch testdir/dir2/\\*
7448 touch testdir/dir3/file3
7449 touch testdir/dir3/\\*
7450
7451 tar cf archive --exclude='testdir*f*1' \\
7452                --no-wildcards-match-slash \\
7453                --exclude='testdir*f*2' \\
7454                --wildcards-match-slash \\
7455                --exclude='testdir*f*3' \\
7456                testdir
7457 tar tf archive | sort
7458
7459 echo \"NEXT\"
7460 tar cf archive testdir
7461 tar t --wildcards 'testdir/*f*1' -f archive | sort
7462
7463 echo \"NEXT\"
7464 tar t --wildcards --no-wildcards-match-slash 'testdir/*f*1' -f archive | sort
7465
7466 echo \"NEXT\"
7467 tar t --wildcards --wildcards-match-slash 'testdir/*f*1' -f archive | sort
7468
7469 rm -rf testdir
7470
7471 )"
7472 echo exclude03.at:20 >"$at_check_line_file"
7473
7474 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
7475    false; }; then
7476   ( $at_traceon;
7477 mkdir v7
7478 (cd v7
7479 TEST_TAR_FORMAT=v7
7480 export TEST_TAR_FORMAT
7481 TAR_OPTIONS="-H v7"
7482 export TAR_OPTIONS
7483 rm -rf *
7484
7485
7486 test -z "`sort < /dev/null 2>&1`" || exit 77
7487
7488
7489 rm -rf testdir
7490 mkdir -p testdir/dir1 testdir/dir2 testdir/dir3
7491 touch testdir/\*f\*1
7492 touch testdir/dir1/file1
7493 touch testdir/dir1/\*
7494 touch testdir/dir2/file2
7495 touch testdir/dir2/\*
7496 touch testdir/dir3/file3
7497 touch testdir/dir3/\*
7498
7499 tar cf archive --exclude='testdir*f*1' \
7500                --no-wildcards-match-slash \
7501                --exclude='testdir*f*2' \
7502                --wildcards-match-slash \
7503                --exclude='testdir*f*3' \
7504                testdir
7505 tar tf archive | sort
7506
7507 echo "NEXT"
7508 tar cf archive testdir
7509 tar t --wildcards 'testdir/*f*1' -f archive | sort
7510
7511 echo "NEXT"
7512 tar t --wildcards --no-wildcards-match-slash 'testdir/*f*1' -f archive | sort
7513
7514 echo "NEXT"
7515 tar t --wildcards --wildcards-match-slash 'testdir/*f*1' -f archive | sort
7516
7517 rm -rf testdir
7518
7519 ) ) >"$at_stdout" 2>"$at_stder1"
7520   at_func_filter_trace $?
7521 else
7522   ( :;
7523 mkdir v7
7524 (cd v7
7525 TEST_TAR_FORMAT=v7
7526 export TEST_TAR_FORMAT
7527 TAR_OPTIONS="-H v7"
7528 export TAR_OPTIONS
7529 rm -rf *
7530
7531
7532 test -z "`sort < /dev/null 2>&1`" || exit 77
7533
7534
7535 rm -rf testdir
7536 mkdir -p testdir/dir1 testdir/dir2 testdir/dir3
7537 touch testdir/\*f\*1
7538 touch testdir/dir1/file1
7539 touch testdir/dir1/\*
7540 touch testdir/dir2/file2
7541 touch testdir/dir2/\*
7542 touch testdir/dir3/file3
7543 touch testdir/dir3/\*
7544
7545 tar cf archive --exclude='testdir*f*1' \
7546                --no-wildcards-match-slash \
7547                --exclude='testdir*f*2' \
7548                --wildcards-match-slash \
7549                --exclude='testdir*f*3' \
7550                testdir
7551 tar tf archive | sort
7552
7553 echo "NEXT"
7554 tar cf archive testdir
7555 tar t --wildcards 'testdir/*f*1' -f archive | sort
7556
7557 echo "NEXT"
7558 tar t --wildcards --no-wildcards-match-slash 'testdir/*f*1' -f archive | sort
7559
7560 echo "NEXT"
7561 tar t --wildcards --wildcards-match-slash 'testdir/*f*1' -f archive | sort
7562
7563 rm -rf testdir
7564
7565 ) ) >"$at_stdout" 2>"$at_stderr"
7566 fi
7567 at_status=$?
7568 at_failed=false
7569 at_func_diff_devnull "$at_stderr" || at_failed=:
7570 echo >>"$at_stdout"; $as_echo "testdir/
7571 testdir/dir1/
7572 testdir/dir1/*
7573 testdir/dir2/
7574 testdir/dir2/*
7575 testdir/dir2/file2
7576 testdir/dir3/
7577 testdir/dir3/*
7578 NEXT
7579 testdir/*f*1
7580 testdir/dir1/file1
7581 NEXT
7582 testdir/*f*1
7583 NEXT
7584 testdir/*f*1
7585 testdir/dir1/file1
7586 " | \
7587   $at_diff - "$at_stdout" || at_failed=:
7588 at_func_check_status 0 $at_status "$at_srcdir/exclude03.at:20"
7589
7590 $at_failed && at_func_log_failure
7591 $at_traceon; }
7592
7593               { $at_traceoff
7594 $as_echo "$at_srcdir/exclude03.at:20:
7595 mkdir oldgnu
7596 (cd oldgnu
7597 TEST_TAR_FORMAT=oldgnu
7598 export TEST_TAR_FORMAT
7599 TAR_OPTIONS=\"-H oldgnu\"
7600 export TAR_OPTIONS
7601 rm -rf *
7602
7603
7604 test -z "`sort < /dev/null 2>&1`" || exit 77
7605
7606
7607 rm -rf testdir
7608 mkdir -p testdir/dir1 testdir/dir2 testdir/dir3
7609 touch testdir/\\*f\\*1
7610 touch testdir/dir1/file1
7611 touch testdir/dir1/\\*
7612 touch testdir/dir2/file2
7613 touch testdir/dir2/\\*
7614 touch testdir/dir3/file3
7615 touch testdir/dir3/\\*
7616
7617 tar cf archive --exclude='testdir*f*1' \\
7618                --no-wildcards-match-slash \\
7619                --exclude='testdir*f*2' \\
7620                --wildcards-match-slash \\
7621                --exclude='testdir*f*3' \\
7622                testdir
7623 tar tf archive | sort
7624
7625 echo \"NEXT\"
7626 tar cf archive testdir
7627 tar t --wildcards 'testdir/*f*1' -f archive | sort
7628
7629 echo \"NEXT\"
7630 tar t --wildcards --no-wildcards-match-slash 'testdir/*f*1' -f archive | sort
7631
7632 echo \"NEXT\"
7633 tar t --wildcards --wildcards-match-slash 'testdir/*f*1' -f archive | sort
7634
7635 rm -rf testdir
7636
7637 )"
7638 echo exclude03.at:20 >"$at_check_line_file"
7639
7640 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
7641    false; }; then
7642   ( $at_traceon;
7643 mkdir oldgnu
7644 (cd oldgnu
7645 TEST_TAR_FORMAT=oldgnu
7646 export TEST_TAR_FORMAT
7647 TAR_OPTIONS="-H oldgnu"
7648 export TAR_OPTIONS
7649 rm -rf *
7650
7651
7652 test -z "`sort < /dev/null 2>&1`" || exit 77
7653
7654
7655 rm -rf testdir
7656 mkdir -p testdir/dir1 testdir/dir2 testdir/dir3
7657 touch testdir/\*f\*1
7658 touch testdir/dir1/file1
7659 touch testdir/dir1/\*
7660 touch testdir/dir2/file2
7661 touch testdir/dir2/\*
7662 touch testdir/dir3/file3
7663 touch testdir/dir3/\*
7664
7665 tar cf archive --exclude='testdir*f*1' \
7666                --no-wildcards-match-slash \
7667                --exclude='testdir*f*2' \
7668                --wildcards-match-slash \
7669                --exclude='testdir*f*3' \
7670                testdir
7671 tar tf archive | sort
7672
7673 echo "NEXT"
7674 tar cf archive testdir
7675 tar t --wildcards 'testdir/*f*1' -f archive | sort
7676
7677 echo "NEXT"
7678 tar t --wildcards --no-wildcards-match-slash 'testdir/*f*1' -f archive | sort
7679
7680 echo "NEXT"
7681 tar t --wildcards --wildcards-match-slash 'testdir/*f*1' -f archive | sort
7682
7683 rm -rf testdir
7684
7685 ) ) >"$at_stdout" 2>"$at_stder1"
7686   at_func_filter_trace $?
7687 else
7688   ( :;
7689 mkdir oldgnu
7690 (cd oldgnu
7691 TEST_TAR_FORMAT=oldgnu
7692 export TEST_TAR_FORMAT
7693 TAR_OPTIONS="-H oldgnu"
7694 export TAR_OPTIONS
7695 rm -rf *
7696
7697
7698 test -z "`sort < /dev/null 2>&1`" || exit 77
7699
7700
7701 rm -rf testdir
7702 mkdir -p testdir/dir1 testdir/dir2 testdir/dir3
7703 touch testdir/\*f\*1
7704 touch testdir/dir1/file1
7705 touch testdir/dir1/\*
7706 touch testdir/dir2/file2
7707 touch testdir/dir2/\*
7708 touch testdir/dir3/file3
7709 touch testdir/dir3/\*
7710
7711 tar cf archive --exclude='testdir*f*1' \
7712                --no-wildcards-match-slash \
7713                --exclude='testdir*f*2' \
7714                --wildcards-match-slash \
7715                --exclude='testdir*f*3' \
7716                testdir
7717 tar tf archive | sort
7718
7719 echo "NEXT"
7720 tar cf archive testdir
7721 tar t --wildcards 'testdir/*f*1' -f archive | sort
7722
7723 echo "NEXT"
7724 tar t --wildcards --no-wildcards-match-slash 'testdir/*f*1' -f archive | sort
7725
7726 echo "NEXT"
7727 tar t --wildcards --wildcards-match-slash 'testdir/*f*1' -f archive | sort
7728
7729 rm -rf testdir
7730
7731 ) ) >"$at_stdout" 2>"$at_stderr"
7732 fi
7733 at_status=$?
7734 at_failed=false
7735 at_func_diff_devnull "$at_stderr" || at_failed=:
7736 echo >>"$at_stdout"; $as_echo "testdir/
7737 testdir/dir1/
7738 testdir/dir1/*
7739 testdir/dir2/
7740 testdir/dir2/*
7741 testdir/dir2/file2
7742 testdir/dir3/
7743 testdir/dir3/*
7744 NEXT
7745 testdir/*f*1
7746 testdir/dir1/file1
7747 NEXT
7748 testdir/*f*1
7749 NEXT
7750 testdir/*f*1
7751 testdir/dir1/file1
7752 " | \
7753   $at_diff - "$at_stdout" || at_failed=:
7754 at_func_check_status 0 $at_status "$at_srcdir/exclude03.at:20"
7755
7756 $at_failed && at_func_log_failure
7757 $at_traceon; }
7758
7759               { $at_traceoff
7760 $as_echo "$at_srcdir/exclude03.at:20:
7761 mkdir ustar
7762 (cd ustar
7763 TEST_TAR_FORMAT=ustar
7764 export TEST_TAR_FORMAT
7765 TAR_OPTIONS=\"-H ustar\"
7766 export TAR_OPTIONS
7767 rm -rf *
7768
7769
7770 test -z "`sort < /dev/null 2>&1`" || exit 77
7771
7772
7773 rm -rf testdir
7774 mkdir -p testdir/dir1 testdir/dir2 testdir/dir3
7775 touch testdir/\\*f\\*1
7776 touch testdir/dir1/file1
7777 touch testdir/dir1/\\*
7778 touch testdir/dir2/file2
7779 touch testdir/dir2/\\*
7780 touch testdir/dir3/file3
7781 touch testdir/dir3/\\*
7782
7783 tar cf archive --exclude='testdir*f*1' \\
7784                --no-wildcards-match-slash \\
7785                --exclude='testdir*f*2' \\
7786                --wildcards-match-slash \\
7787                --exclude='testdir*f*3' \\
7788                testdir
7789 tar tf archive | sort
7790
7791 echo \"NEXT\"
7792 tar cf archive testdir
7793 tar t --wildcards 'testdir/*f*1' -f archive | sort
7794
7795 echo \"NEXT\"
7796 tar t --wildcards --no-wildcards-match-slash 'testdir/*f*1' -f archive | sort
7797
7798 echo \"NEXT\"
7799 tar t --wildcards --wildcards-match-slash 'testdir/*f*1' -f archive | sort
7800
7801 rm -rf testdir
7802
7803 )"
7804 echo exclude03.at:20 >"$at_check_line_file"
7805
7806 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
7807    false; }; then
7808   ( $at_traceon;
7809 mkdir ustar
7810 (cd ustar
7811 TEST_TAR_FORMAT=ustar
7812 export TEST_TAR_FORMAT
7813 TAR_OPTIONS="-H ustar"
7814 export TAR_OPTIONS
7815 rm -rf *
7816
7817
7818 test -z "`sort < /dev/null 2>&1`" || exit 77
7819
7820
7821 rm -rf testdir
7822 mkdir -p testdir/dir1 testdir/dir2 testdir/dir3
7823 touch testdir/\*f\*1
7824 touch testdir/dir1/file1
7825 touch testdir/dir1/\*
7826 touch testdir/dir2/file2
7827 touch testdir/dir2/\*
7828 touch testdir/dir3/file3
7829 touch testdir/dir3/\*
7830
7831 tar cf archive --exclude='testdir*f*1' \
7832                --no-wildcards-match-slash \
7833                --exclude='testdir*f*2' \
7834                --wildcards-match-slash \
7835                --exclude='testdir*f*3' \
7836                testdir
7837 tar tf archive | sort
7838
7839 echo "NEXT"
7840 tar cf archive testdir
7841 tar t --wildcards 'testdir/*f*1' -f archive | sort
7842
7843 echo "NEXT"
7844 tar t --wildcards --no-wildcards-match-slash 'testdir/*f*1' -f archive | sort
7845
7846 echo "NEXT"
7847 tar t --wildcards --wildcards-match-slash 'testdir/*f*1' -f archive | sort
7848
7849 rm -rf testdir
7850
7851 ) ) >"$at_stdout" 2>"$at_stder1"
7852   at_func_filter_trace $?
7853 else
7854   ( :;
7855 mkdir ustar
7856 (cd ustar
7857 TEST_TAR_FORMAT=ustar
7858 export TEST_TAR_FORMAT
7859 TAR_OPTIONS="-H ustar"
7860 export TAR_OPTIONS
7861 rm -rf *
7862
7863
7864 test -z "`sort < /dev/null 2>&1`" || exit 77
7865
7866
7867 rm -rf testdir
7868 mkdir -p testdir/dir1 testdir/dir2 testdir/dir3
7869 touch testdir/\*f\*1
7870 touch testdir/dir1/file1
7871 touch testdir/dir1/\*
7872 touch testdir/dir2/file2
7873 touch testdir/dir2/\*
7874 touch testdir/dir3/file3
7875 touch testdir/dir3/\*
7876
7877 tar cf archive --exclude='testdir*f*1' \
7878                --no-wildcards-match-slash \
7879                --exclude='testdir*f*2' \
7880                --wildcards-match-slash \
7881                --exclude='testdir*f*3' \
7882                testdir
7883 tar tf archive | sort
7884
7885 echo "NEXT"
7886 tar cf archive testdir
7887 tar t --wildcards 'testdir/*f*1' -f archive | sort
7888
7889 echo "NEXT"
7890 tar t --wildcards --no-wildcards-match-slash 'testdir/*f*1' -f archive | sort
7891
7892 echo "NEXT"
7893 tar t --wildcards --wildcards-match-slash 'testdir/*f*1' -f archive | sort
7894
7895 rm -rf testdir
7896
7897 ) ) >"$at_stdout" 2>"$at_stderr"
7898 fi
7899 at_status=$?
7900 at_failed=false
7901 at_func_diff_devnull "$at_stderr" || at_failed=:
7902 echo >>"$at_stdout"; $as_echo "testdir/
7903 testdir/dir1/
7904 testdir/dir1/*
7905 testdir/dir2/
7906 testdir/dir2/*
7907 testdir/dir2/file2
7908 testdir/dir3/
7909 testdir/dir3/*
7910 NEXT
7911 testdir/*f*1
7912 testdir/dir1/file1
7913 NEXT
7914 testdir/*f*1
7915 NEXT
7916 testdir/*f*1
7917 testdir/dir1/file1
7918 " | \
7919   $at_diff - "$at_stdout" || at_failed=:
7920 at_func_check_status 0 $at_status "$at_srcdir/exclude03.at:20"
7921
7922 $at_failed && at_func_log_failure
7923 $at_traceon; }
7924
7925               { $at_traceoff
7926 $as_echo "$at_srcdir/exclude03.at:20:
7927 mkdir posix
7928 (cd posix
7929 TEST_TAR_FORMAT=posix
7930 export TEST_TAR_FORMAT
7931 TAR_OPTIONS=\"-H posix\"
7932 export TAR_OPTIONS
7933 rm -rf *
7934
7935
7936 test -z "`sort < /dev/null 2>&1`" || exit 77
7937
7938
7939 rm -rf testdir
7940 mkdir -p testdir/dir1 testdir/dir2 testdir/dir3
7941 touch testdir/\\*f\\*1
7942 touch testdir/dir1/file1
7943 touch testdir/dir1/\\*
7944 touch testdir/dir2/file2
7945 touch testdir/dir2/\\*
7946 touch testdir/dir3/file3
7947 touch testdir/dir3/\\*
7948
7949 tar cf archive --exclude='testdir*f*1' \\
7950                --no-wildcards-match-slash \\
7951                --exclude='testdir*f*2' \\
7952                --wildcards-match-slash \\
7953                --exclude='testdir*f*3' \\
7954                testdir
7955 tar tf archive | sort
7956
7957 echo \"NEXT\"
7958 tar cf archive testdir
7959 tar t --wildcards 'testdir/*f*1' -f archive | sort
7960
7961 echo \"NEXT\"
7962 tar t --wildcards --no-wildcards-match-slash 'testdir/*f*1' -f archive | sort
7963
7964 echo \"NEXT\"
7965 tar t --wildcards --wildcards-match-slash 'testdir/*f*1' -f archive | sort
7966
7967 rm -rf testdir
7968
7969 )"
7970 echo exclude03.at:20 >"$at_check_line_file"
7971
7972 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
7973    false; }; then
7974   ( $at_traceon;
7975 mkdir posix
7976 (cd posix
7977 TEST_TAR_FORMAT=posix
7978 export TEST_TAR_FORMAT
7979 TAR_OPTIONS="-H posix"
7980 export TAR_OPTIONS
7981 rm -rf *
7982
7983
7984 test -z "`sort < /dev/null 2>&1`" || exit 77
7985
7986
7987 rm -rf testdir
7988 mkdir -p testdir/dir1 testdir/dir2 testdir/dir3
7989 touch testdir/\*f\*1
7990 touch testdir/dir1/file1
7991 touch testdir/dir1/\*
7992 touch testdir/dir2/file2
7993 touch testdir/dir2/\*
7994 touch testdir/dir3/file3
7995 touch testdir/dir3/\*
7996
7997 tar cf archive --exclude='testdir*f*1' \
7998                --no-wildcards-match-slash \
7999                --exclude='testdir*f*2' \
8000                --wildcards-match-slash \
8001                --exclude='testdir*f*3' \
8002                testdir
8003 tar tf archive | sort
8004
8005 echo "NEXT"
8006 tar cf archive testdir
8007 tar t --wildcards 'testdir/*f*1' -f archive | sort
8008
8009 echo "NEXT"
8010 tar t --wildcards --no-wildcards-match-slash 'testdir/*f*1' -f archive | sort
8011
8012 echo "NEXT"
8013 tar t --wildcards --wildcards-match-slash 'testdir/*f*1' -f archive | sort
8014
8015 rm -rf testdir
8016
8017 ) ) >"$at_stdout" 2>"$at_stder1"
8018   at_func_filter_trace $?
8019 else
8020   ( :;
8021 mkdir posix
8022 (cd posix
8023 TEST_TAR_FORMAT=posix
8024 export TEST_TAR_FORMAT
8025 TAR_OPTIONS="-H posix"
8026 export TAR_OPTIONS
8027 rm -rf *
8028
8029
8030 test -z "`sort < /dev/null 2>&1`" || exit 77
8031
8032
8033 rm -rf testdir
8034 mkdir -p testdir/dir1 testdir/dir2 testdir/dir3
8035 touch testdir/\*f\*1
8036 touch testdir/dir1/file1
8037 touch testdir/dir1/\*
8038 touch testdir/dir2/file2
8039 touch testdir/dir2/\*
8040 touch testdir/dir3/file3
8041 touch testdir/dir3/\*
8042
8043 tar cf archive --exclude='testdir*f*1' \
8044                --no-wildcards-match-slash \
8045                --exclude='testdir*f*2' \
8046                --wildcards-match-slash \
8047                --exclude='testdir*f*3' \
8048                testdir
8049 tar tf archive | sort
8050
8051 echo "NEXT"
8052 tar cf archive testdir
8053 tar t --wildcards 'testdir/*f*1' -f archive | sort
8054
8055 echo "NEXT"
8056 tar t --wildcards --no-wildcards-match-slash 'testdir/*f*1' -f archive | sort
8057
8058 echo "NEXT"
8059 tar t --wildcards --wildcards-match-slash 'testdir/*f*1' -f archive | sort
8060
8061 rm -rf testdir
8062
8063 ) ) >"$at_stdout" 2>"$at_stderr"
8064 fi
8065 at_status=$?
8066 at_failed=false
8067 at_func_diff_devnull "$at_stderr" || at_failed=:
8068 echo >>"$at_stdout"; $as_echo "testdir/
8069 testdir/dir1/
8070 testdir/dir1/*
8071 testdir/dir2/
8072 testdir/dir2/*
8073 testdir/dir2/file2
8074 testdir/dir3/
8075 testdir/dir3/*
8076 NEXT
8077 testdir/*f*1
8078 testdir/dir1/file1
8079 NEXT
8080 testdir/*f*1
8081 NEXT
8082 testdir/*f*1
8083 testdir/dir1/file1
8084 " | \
8085   $at_diff - "$at_stdout" || at_failed=:
8086 at_func_check_status 0 $at_status "$at_srcdir/exclude03.at:20"
8087
8088 $at_failed && at_func_log_failure
8089 $at_traceon; }
8090
8091               { $at_traceoff
8092 $as_echo "$at_srcdir/exclude03.at:20:
8093 mkdir gnu
8094 (cd gnu
8095 TEST_TAR_FORMAT=gnu
8096 export TEST_TAR_FORMAT
8097 TAR_OPTIONS=\"-H gnu\"
8098 export TAR_OPTIONS
8099 rm -rf *
8100
8101
8102 test -z "`sort < /dev/null 2>&1`" || exit 77
8103
8104
8105 rm -rf testdir
8106 mkdir -p testdir/dir1 testdir/dir2 testdir/dir3
8107 touch testdir/\\*f\\*1
8108 touch testdir/dir1/file1
8109 touch testdir/dir1/\\*
8110 touch testdir/dir2/file2
8111 touch testdir/dir2/\\*
8112 touch testdir/dir3/file3
8113 touch testdir/dir3/\\*
8114
8115 tar cf archive --exclude='testdir*f*1' \\
8116                --no-wildcards-match-slash \\
8117                --exclude='testdir*f*2' \\
8118                --wildcards-match-slash \\
8119                --exclude='testdir*f*3' \\
8120                testdir
8121 tar tf archive | sort
8122
8123 echo \"NEXT\"
8124 tar cf archive testdir
8125 tar t --wildcards 'testdir/*f*1' -f archive | sort
8126
8127 echo \"NEXT\"
8128 tar t --wildcards --no-wildcards-match-slash 'testdir/*f*1' -f archive | sort
8129
8130 echo \"NEXT\"
8131 tar t --wildcards --wildcards-match-slash 'testdir/*f*1' -f archive | sort
8132
8133 rm -rf testdir
8134
8135 )"
8136 echo exclude03.at:20 >"$at_check_line_file"
8137
8138 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
8139    false; }; then
8140   ( $at_traceon;
8141 mkdir gnu
8142 (cd gnu
8143 TEST_TAR_FORMAT=gnu
8144 export TEST_TAR_FORMAT
8145 TAR_OPTIONS="-H gnu"
8146 export TAR_OPTIONS
8147 rm -rf *
8148
8149
8150 test -z "`sort < /dev/null 2>&1`" || exit 77
8151
8152
8153 rm -rf testdir
8154 mkdir -p testdir/dir1 testdir/dir2 testdir/dir3
8155 touch testdir/\*f\*1
8156 touch testdir/dir1/file1
8157 touch testdir/dir1/\*
8158 touch testdir/dir2/file2
8159 touch testdir/dir2/\*
8160 touch testdir/dir3/file3
8161 touch testdir/dir3/\*
8162
8163 tar cf archive --exclude='testdir*f*1' \
8164                --no-wildcards-match-slash \
8165                --exclude='testdir*f*2' \
8166                --wildcards-match-slash \
8167                --exclude='testdir*f*3' \
8168                testdir
8169 tar tf archive | sort
8170
8171 echo "NEXT"
8172 tar cf archive testdir
8173 tar t --wildcards 'testdir/*f*1' -f archive | sort
8174
8175 echo "NEXT"
8176 tar t --wildcards --no-wildcards-match-slash 'testdir/*f*1' -f archive | sort
8177
8178 echo "NEXT"
8179 tar t --wildcards --wildcards-match-slash 'testdir/*f*1' -f archive | sort
8180
8181 rm -rf testdir
8182
8183 ) ) >"$at_stdout" 2>"$at_stder1"
8184   at_func_filter_trace $?
8185 else
8186   ( :;
8187 mkdir gnu
8188 (cd gnu
8189 TEST_TAR_FORMAT=gnu
8190 export TEST_TAR_FORMAT
8191 TAR_OPTIONS="-H gnu"
8192 export TAR_OPTIONS
8193 rm -rf *
8194
8195
8196 test -z "`sort < /dev/null 2>&1`" || exit 77
8197
8198
8199 rm -rf testdir
8200 mkdir -p testdir/dir1 testdir/dir2 testdir/dir3
8201 touch testdir/\*f\*1
8202 touch testdir/dir1/file1
8203 touch testdir/dir1/\*
8204 touch testdir/dir2/file2
8205 touch testdir/dir2/\*
8206 touch testdir/dir3/file3
8207 touch testdir/dir3/\*
8208
8209 tar cf archive --exclude='testdir*f*1' \
8210                --no-wildcards-match-slash \
8211                --exclude='testdir*f*2' \
8212                --wildcards-match-slash \
8213                --exclude='testdir*f*3' \
8214                testdir
8215 tar tf archive | sort
8216
8217 echo "NEXT"
8218 tar cf archive testdir
8219 tar t --wildcards 'testdir/*f*1' -f archive | sort
8220
8221 echo "NEXT"
8222 tar t --wildcards --no-wildcards-match-slash 'testdir/*f*1' -f archive | sort
8223
8224 echo "NEXT"
8225 tar t --wildcards --wildcards-match-slash 'testdir/*f*1' -f archive | sort
8226
8227 rm -rf testdir
8228
8229 ) ) >"$at_stdout" 2>"$at_stderr"
8230 fi
8231 at_status=$?
8232 at_failed=false
8233 at_func_diff_devnull "$at_stderr" || at_failed=:
8234 echo >>"$at_stdout"; $as_echo "testdir/
8235 testdir/dir1/
8236 testdir/dir1/*
8237 testdir/dir2/
8238 testdir/dir2/*
8239 testdir/dir2/file2
8240 testdir/dir3/
8241 testdir/dir3/*
8242 NEXT
8243 testdir/*f*1
8244 testdir/dir1/file1
8245 NEXT
8246 testdir/*f*1
8247 NEXT
8248 testdir/*f*1
8249 testdir/dir1/file1
8250 " | \
8251   $at_diff - "$at_stdout" || at_failed=:
8252 at_func_check_status 0 $at_status "$at_srcdir/exclude03.at:20"
8253
8254 $at_failed && at_func_log_failure
8255 $at_traceon; }
8256
8257
8258
8259
8260   $at_traceoff
8261   $at_times_p && times >"$at_times_file"
8262 ) 5>&1 2>&1 | eval $at_tee_pipe
8263 at_status=`cat "$at_status_file"`
8264 #AT_STOP_16
8265 #AT_START_17
8266 # 17. exclude04.at:17: exclude: case insensitive
8267 at_setup_line='exclude04.at:17'
8268 at_desc="exclude: case insensitive"
8269 $at_quiet $as_echo_n " 17: $at_desc                      "
8270 at_xfail=no
8271       test -f $XFAILFILE && at_xfail=yes
8272 echo "#                             -*- compilation -*-" >> "$at_group_log"
8273 (
8274   $as_echo "17. exclude04.at:17: testing ..."
8275   $at_traceon
8276
8277
8278
8279
8280
8281   { $at_traceoff
8282 $as_echo "$at_srcdir/exclude04.at:20:
8283 mkdir v7
8284 (cd v7
8285 TEST_TAR_FORMAT=v7
8286 export TEST_TAR_FORMAT
8287 TAR_OPTIONS=\"-H v7\"
8288 export TAR_OPTIONS
8289 rm -rf *
8290
8291
8292 test -z "`sort < /dev/null 2>&1`" || exit 77
8293
8294
8295 rm -rf testdir
8296 mkdir -p testdir/dir
8297 touch testdir/file1
8298 touch testdir/file2
8299 touch testdir/file3
8300 touch testdir/file4
8301 touch testdir/dir/File1
8302 touch testdir/dir/File2
8303 touch testdir/dir/File3
8304 touch testdir/dir/File4
8305
8306 tar cf archive --exclude=FILE2 \\
8307                --exclude=file1 \\
8308                --ignore-case \\
8309                --exclude=file3 \\
8310                --no-ignore-case \\
8311                --exclude=FILE2 \\
8312                --exclude=file4 \\
8313                testdir
8314 tar tf archive | sort
8315
8316 echo \"SUB 1\"
8317 tar cf archive testdir
8318 tar t --wildcards --wildcards-match-slash '*File2' -f archive | sort
8319
8320 echo \"SUB 2\"
8321 tar t --wildcards --wildcards-match-slash --ignore-case '*File2' -f archive | sort
8322
8323 echo \"SUB 3\"
8324 tar t --wildcards --wildcards-match-slash --no-ignore-case '*File2' -f archive | sort
8325
8326 rm -rf testdir
8327
8328 )"
8329 echo exclude04.at:20 >"$at_check_line_file"
8330
8331 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
8332    false; }; then
8333   ( $at_traceon;
8334 mkdir v7
8335 (cd v7
8336 TEST_TAR_FORMAT=v7
8337 export TEST_TAR_FORMAT
8338 TAR_OPTIONS="-H v7"
8339 export TAR_OPTIONS
8340 rm -rf *
8341
8342
8343 test -z "`sort < /dev/null 2>&1`" || exit 77
8344
8345
8346 rm -rf testdir
8347 mkdir -p testdir/dir
8348 touch testdir/file1
8349 touch testdir/file2
8350 touch testdir/file3
8351 touch testdir/file4
8352 touch testdir/dir/File1
8353 touch testdir/dir/File2
8354 touch testdir/dir/File3
8355 touch testdir/dir/File4
8356
8357 tar cf archive --exclude=FILE2 \
8358                --exclude=file1 \
8359                --ignore-case \
8360                --exclude=file3 \
8361                --no-ignore-case \
8362                --exclude=FILE2 \
8363                --exclude=file4 \
8364                testdir
8365 tar tf archive | sort
8366
8367 echo "SUB 1"
8368 tar cf archive testdir
8369 tar t --wildcards --wildcards-match-slash '*File2' -f archive | sort
8370
8371 echo "SUB 2"
8372 tar t --wildcards --wildcards-match-slash --ignore-case '*File2' -f archive | sort
8373
8374 echo "SUB 3"
8375 tar t --wildcards --wildcards-match-slash --no-ignore-case '*File2' -f archive | sort
8376
8377 rm -rf testdir
8378
8379 ) ) >"$at_stdout" 2>"$at_stder1"
8380   at_func_filter_trace $?
8381 else
8382   ( :;
8383 mkdir v7
8384 (cd v7
8385 TEST_TAR_FORMAT=v7
8386 export TEST_TAR_FORMAT
8387 TAR_OPTIONS="-H v7"
8388 export TAR_OPTIONS
8389 rm -rf *
8390
8391
8392 test -z "`sort < /dev/null 2>&1`" || exit 77
8393
8394
8395 rm -rf testdir
8396 mkdir -p testdir/dir
8397 touch testdir/file1
8398 touch testdir/file2
8399 touch testdir/file3
8400 touch testdir/file4
8401 touch testdir/dir/File1
8402 touch testdir/dir/File2
8403 touch testdir/dir/File3
8404 touch testdir/dir/File4
8405
8406 tar cf archive --exclude=FILE2 \
8407                --exclude=file1 \
8408                --ignore-case \
8409                --exclude=file3 \
8410                --no-ignore-case \
8411                --exclude=FILE2 \
8412                --exclude=file4 \
8413                testdir
8414 tar tf archive | sort
8415
8416 echo "SUB 1"
8417 tar cf archive testdir
8418 tar t --wildcards --wildcards-match-slash '*File2' -f archive | sort
8419
8420 echo "SUB 2"
8421 tar t --wildcards --wildcards-match-slash --ignore-case '*File2' -f archive | sort
8422
8423 echo "SUB 3"
8424 tar t --wildcards --wildcards-match-slash --no-ignore-case '*File2' -f archive | sort
8425
8426 rm -rf testdir
8427
8428 ) ) >"$at_stdout" 2>"$at_stderr"
8429 fi
8430 at_status=$?
8431 at_failed=false
8432 at_func_diff_devnull "$at_stderr" || at_failed=:
8433 echo >>"$at_stdout"; $as_echo "testdir/
8434 testdir/dir/
8435 testdir/dir/File1
8436 testdir/dir/File2
8437 testdir/dir/File4
8438 testdir/file2
8439 SUB 1
8440 testdir/dir/File2
8441 SUB 2
8442 testdir/dir/File2
8443 testdir/file2
8444 SUB 3
8445 testdir/dir/File2
8446 " | \
8447   $at_diff - "$at_stdout" || at_failed=:
8448 at_func_check_status 0 $at_status "$at_srcdir/exclude04.at:20"
8449
8450 $at_failed && at_func_log_failure
8451 $at_traceon; }
8452
8453               { $at_traceoff
8454 $as_echo "$at_srcdir/exclude04.at:20:
8455 mkdir oldgnu
8456 (cd oldgnu
8457 TEST_TAR_FORMAT=oldgnu
8458 export TEST_TAR_FORMAT
8459 TAR_OPTIONS=\"-H oldgnu\"
8460 export TAR_OPTIONS
8461 rm -rf *
8462
8463
8464 test -z "`sort < /dev/null 2>&1`" || exit 77
8465
8466
8467 rm -rf testdir
8468 mkdir -p testdir/dir
8469 touch testdir/file1
8470 touch testdir/file2
8471 touch testdir/file3
8472 touch testdir/file4
8473 touch testdir/dir/File1
8474 touch testdir/dir/File2
8475 touch testdir/dir/File3
8476 touch testdir/dir/File4
8477
8478 tar cf archive --exclude=FILE2 \\
8479                --exclude=file1 \\
8480                --ignore-case \\
8481                --exclude=file3 \\
8482                --no-ignore-case \\
8483                --exclude=FILE2 \\
8484                --exclude=file4 \\
8485                testdir
8486 tar tf archive | sort
8487
8488 echo \"SUB 1\"
8489 tar cf archive testdir
8490 tar t --wildcards --wildcards-match-slash '*File2' -f archive | sort
8491
8492 echo \"SUB 2\"
8493 tar t --wildcards --wildcards-match-slash --ignore-case '*File2' -f archive | sort
8494
8495 echo \"SUB 3\"
8496 tar t --wildcards --wildcards-match-slash --no-ignore-case '*File2' -f archive | sort
8497
8498 rm -rf testdir
8499
8500 )"
8501 echo exclude04.at:20 >"$at_check_line_file"
8502
8503 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
8504    false; }; then
8505   ( $at_traceon;
8506 mkdir oldgnu
8507 (cd oldgnu
8508 TEST_TAR_FORMAT=oldgnu
8509 export TEST_TAR_FORMAT
8510 TAR_OPTIONS="-H oldgnu"
8511 export TAR_OPTIONS
8512 rm -rf *
8513
8514
8515 test -z "`sort < /dev/null 2>&1`" || exit 77
8516
8517
8518 rm -rf testdir
8519 mkdir -p testdir/dir
8520 touch testdir/file1
8521 touch testdir/file2
8522 touch testdir/file3
8523 touch testdir/file4
8524 touch testdir/dir/File1
8525 touch testdir/dir/File2
8526 touch testdir/dir/File3
8527 touch testdir/dir/File4
8528
8529 tar cf archive --exclude=FILE2 \
8530                --exclude=file1 \
8531                --ignore-case \
8532                --exclude=file3 \
8533                --no-ignore-case \
8534                --exclude=FILE2 \
8535                --exclude=file4 \
8536                testdir
8537 tar tf archive | sort
8538
8539 echo "SUB 1"
8540 tar cf archive testdir
8541 tar t --wildcards --wildcards-match-slash '*File2' -f archive | sort
8542
8543 echo "SUB 2"
8544 tar t --wildcards --wildcards-match-slash --ignore-case '*File2' -f archive | sort
8545
8546 echo "SUB 3"
8547 tar t --wildcards --wildcards-match-slash --no-ignore-case '*File2' -f archive | sort
8548
8549 rm -rf testdir
8550
8551 ) ) >"$at_stdout" 2>"$at_stder1"
8552   at_func_filter_trace $?
8553 else
8554   ( :;
8555 mkdir oldgnu
8556 (cd oldgnu
8557 TEST_TAR_FORMAT=oldgnu
8558 export TEST_TAR_FORMAT
8559 TAR_OPTIONS="-H oldgnu"
8560 export TAR_OPTIONS
8561 rm -rf *
8562
8563
8564 test -z "`sort < /dev/null 2>&1`" || exit 77
8565
8566
8567 rm -rf testdir
8568 mkdir -p testdir/dir
8569 touch testdir/file1
8570 touch testdir/file2
8571 touch testdir/file3
8572 touch testdir/file4
8573 touch testdir/dir/File1
8574 touch testdir/dir/File2
8575 touch testdir/dir/File3
8576 touch testdir/dir/File4
8577
8578 tar cf archive --exclude=FILE2 \
8579                --exclude=file1 \
8580                --ignore-case \
8581                --exclude=file3 \
8582                --no-ignore-case \
8583                --exclude=FILE2 \
8584                --exclude=file4 \
8585                testdir
8586 tar tf archive | sort
8587
8588 echo "SUB 1"
8589 tar cf archive testdir
8590 tar t --wildcards --wildcards-match-slash '*File2' -f archive | sort
8591
8592 echo "SUB 2"
8593 tar t --wildcards --wildcards-match-slash --ignore-case '*File2' -f archive | sort
8594
8595 echo "SUB 3"
8596 tar t --wildcards --wildcards-match-slash --no-ignore-case '*File2' -f archive | sort
8597
8598 rm -rf testdir
8599
8600 ) ) >"$at_stdout" 2>"$at_stderr"
8601 fi
8602 at_status=$?
8603 at_failed=false
8604 at_func_diff_devnull "$at_stderr" || at_failed=:
8605 echo >>"$at_stdout"; $as_echo "testdir/
8606 testdir/dir/
8607 testdir/dir/File1
8608 testdir/dir/File2
8609 testdir/dir/File4
8610 testdir/file2
8611 SUB 1
8612 testdir/dir/File2
8613 SUB 2
8614 testdir/dir/File2
8615 testdir/file2
8616 SUB 3
8617 testdir/dir/File2
8618 " | \
8619   $at_diff - "$at_stdout" || at_failed=:
8620 at_func_check_status 0 $at_status "$at_srcdir/exclude04.at:20"
8621
8622 $at_failed && at_func_log_failure
8623 $at_traceon; }
8624
8625               { $at_traceoff
8626 $as_echo "$at_srcdir/exclude04.at:20:
8627 mkdir ustar
8628 (cd ustar
8629 TEST_TAR_FORMAT=ustar
8630 export TEST_TAR_FORMAT
8631 TAR_OPTIONS=\"-H ustar\"
8632 export TAR_OPTIONS
8633 rm -rf *
8634
8635
8636 test -z "`sort < /dev/null 2>&1`" || exit 77
8637
8638
8639 rm -rf testdir
8640 mkdir -p testdir/dir
8641 touch testdir/file1
8642 touch testdir/file2
8643 touch testdir/file3
8644 touch testdir/file4
8645 touch testdir/dir/File1
8646 touch testdir/dir/File2
8647 touch testdir/dir/File3
8648 touch testdir/dir/File4
8649
8650 tar cf archive --exclude=FILE2 \\
8651                --exclude=file1 \\
8652                --ignore-case \\
8653                --exclude=file3 \\
8654                --no-ignore-case \\
8655                --exclude=FILE2 \\
8656                --exclude=file4 \\
8657                testdir
8658 tar tf archive | sort
8659
8660 echo \"SUB 1\"
8661 tar cf archive testdir
8662 tar t --wildcards --wildcards-match-slash '*File2' -f archive | sort
8663
8664 echo \"SUB 2\"
8665 tar t --wildcards --wildcards-match-slash --ignore-case '*File2' -f archive | sort
8666
8667 echo \"SUB 3\"
8668 tar t --wildcards --wildcards-match-slash --no-ignore-case '*File2' -f archive | sort
8669
8670 rm -rf testdir
8671
8672 )"
8673 echo exclude04.at:20 >"$at_check_line_file"
8674
8675 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
8676    false; }; then
8677   ( $at_traceon;
8678 mkdir ustar
8679 (cd ustar
8680 TEST_TAR_FORMAT=ustar
8681 export TEST_TAR_FORMAT
8682 TAR_OPTIONS="-H ustar"
8683 export TAR_OPTIONS
8684 rm -rf *
8685
8686
8687 test -z "`sort < /dev/null 2>&1`" || exit 77
8688
8689
8690 rm -rf testdir
8691 mkdir -p testdir/dir
8692 touch testdir/file1
8693 touch testdir/file2
8694 touch testdir/file3
8695 touch testdir/file4
8696 touch testdir/dir/File1
8697 touch testdir/dir/File2
8698 touch testdir/dir/File3
8699 touch testdir/dir/File4
8700
8701 tar cf archive --exclude=FILE2 \
8702                --exclude=file1 \
8703                --ignore-case \
8704                --exclude=file3 \
8705                --no-ignore-case \
8706                --exclude=FILE2 \
8707                --exclude=file4 \
8708                testdir
8709 tar tf archive | sort
8710
8711 echo "SUB 1"
8712 tar cf archive testdir
8713 tar t --wildcards --wildcards-match-slash '*File2' -f archive | sort
8714
8715 echo "SUB 2"
8716 tar t --wildcards --wildcards-match-slash --ignore-case '*File2' -f archive | sort
8717
8718 echo "SUB 3"
8719 tar t --wildcards --wildcards-match-slash --no-ignore-case '*File2' -f archive | sort
8720
8721 rm -rf testdir
8722
8723 ) ) >"$at_stdout" 2>"$at_stder1"
8724   at_func_filter_trace $?
8725 else
8726   ( :;
8727 mkdir ustar
8728 (cd ustar
8729 TEST_TAR_FORMAT=ustar
8730 export TEST_TAR_FORMAT
8731 TAR_OPTIONS="-H ustar"
8732 export TAR_OPTIONS
8733 rm -rf *
8734
8735
8736 test -z "`sort < /dev/null 2>&1`" || exit 77
8737
8738
8739 rm -rf testdir
8740 mkdir -p testdir/dir
8741 touch testdir/file1
8742 touch testdir/file2
8743 touch testdir/file3
8744 touch testdir/file4
8745 touch testdir/dir/File1
8746 touch testdir/dir/File2
8747 touch testdir/dir/File3
8748 touch testdir/dir/File4
8749
8750 tar cf archive --exclude=FILE2 \
8751                --exclude=file1 \
8752                --ignore-case \
8753                --exclude=file3 \
8754                --no-ignore-case \
8755                --exclude=FILE2 \
8756                --exclude=file4 \
8757                testdir
8758 tar tf archive | sort
8759
8760 echo "SUB 1"
8761 tar cf archive testdir
8762 tar t --wildcards --wildcards-match-slash '*File2' -f archive | sort
8763
8764 echo "SUB 2"
8765 tar t --wildcards --wildcards-match-slash --ignore-case '*File2' -f archive | sort
8766
8767 echo "SUB 3"
8768 tar t --wildcards --wildcards-match-slash --no-ignore-case '*File2' -f archive | sort
8769
8770 rm -rf testdir
8771
8772 ) ) >"$at_stdout" 2>"$at_stderr"
8773 fi
8774 at_status=$?
8775 at_failed=false
8776 at_func_diff_devnull "$at_stderr" || at_failed=:
8777 echo >>"$at_stdout"; $as_echo "testdir/
8778 testdir/dir/
8779 testdir/dir/File1
8780 testdir/dir/File2
8781 testdir/dir/File4
8782 testdir/file2
8783 SUB 1
8784 testdir/dir/File2
8785 SUB 2
8786 testdir/dir/File2
8787 testdir/file2
8788 SUB 3
8789 testdir/dir/File2
8790 " | \
8791   $at_diff - "$at_stdout" || at_failed=:
8792 at_func_check_status 0 $at_status "$at_srcdir/exclude04.at:20"
8793
8794 $at_failed && at_func_log_failure
8795 $at_traceon; }
8796
8797               { $at_traceoff
8798 $as_echo "$at_srcdir/exclude04.at:20:
8799 mkdir posix
8800 (cd posix
8801 TEST_TAR_FORMAT=posix
8802 export TEST_TAR_FORMAT
8803 TAR_OPTIONS=\"-H posix\"
8804 export TAR_OPTIONS
8805 rm -rf *
8806
8807
8808 test -z "`sort < /dev/null 2>&1`" || exit 77
8809
8810
8811 rm -rf testdir
8812 mkdir -p testdir/dir
8813 touch testdir/file1
8814 touch testdir/file2
8815 touch testdir/file3
8816 touch testdir/file4
8817 touch testdir/dir/File1
8818 touch testdir/dir/File2
8819 touch testdir/dir/File3
8820 touch testdir/dir/File4
8821
8822 tar cf archive --exclude=FILE2 \\
8823                --exclude=file1 \\
8824                --ignore-case \\
8825                --exclude=file3 \\
8826                --no-ignore-case \\
8827                --exclude=FILE2 \\
8828                --exclude=file4 \\
8829                testdir
8830 tar tf archive | sort
8831
8832 echo \"SUB 1\"
8833 tar cf archive testdir
8834 tar t --wildcards --wildcards-match-slash '*File2' -f archive | sort
8835
8836 echo \"SUB 2\"
8837 tar t --wildcards --wildcards-match-slash --ignore-case '*File2' -f archive | sort
8838
8839 echo \"SUB 3\"
8840 tar t --wildcards --wildcards-match-slash --no-ignore-case '*File2' -f archive | sort
8841
8842 rm -rf testdir
8843
8844 )"
8845 echo exclude04.at:20 >"$at_check_line_file"
8846
8847 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
8848    false; }; then
8849   ( $at_traceon;
8850 mkdir posix
8851 (cd posix
8852 TEST_TAR_FORMAT=posix
8853 export TEST_TAR_FORMAT
8854 TAR_OPTIONS="-H posix"
8855 export TAR_OPTIONS
8856 rm -rf *
8857
8858
8859 test -z "`sort < /dev/null 2>&1`" || exit 77
8860
8861
8862 rm -rf testdir
8863 mkdir -p testdir/dir
8864 touch testdir/file1
8865 touch testdir/file2
8866 touch testdir/file3
8867 touch testdir/file4
8868 touch testdir/dir/File1
8869 touch testdir/dir/File2
8870 touch testdir/dir/File3
8871 touch testdir/dir/File4
8872
8873 tar cf archive --exclude=FILE2 \
8874                --exclude=file1 \
8875                --ignore-case \
8876                --exclude=file3 \
8877                --no-ignore-case \
8878                --exclude=FILE2 \
8879                --exclude=file4 \
8880                testdir
8881 tar tf archive | sort
8882
8883 echo "SUB 1"
8884 tar cf archive testdir
8885 tar t --wildcards --wildcards-match-slash '*File2' -f archive | sort
8886
8887 echo "SUB 2"
8888 tar t --wildcards --wildcards-match-slash --ignore-case '*File2' -f archive | sort
8889
8890 echo "SUB 3"
8891 tar t --wildcards --wildcards-match-slash --no-ignore-case '*File2' -f archive | sort
8892
8893 rm -rf testdir
8894
8895 ) ) >"$at_stdout" 2>"$at_stder1"
8896   at_func_filter_trace $?
8897 else
8898   ( :;
8899 mkdir posix
8900 (cd posix
8901 TEST_TAR_FORMAT=posix
8902 export TEST_TAR_FORMAT
8903 TAR_OPTIONS="-H posix"
8904 export TAR_OPTIONS
8905 rm -rf *
8906
8907
8908 test -z "`sort < /dev/null 2>&1`" || exit 77
8909
8910
8911 rm -rf testdir
8912 mkdir -p testdir/dir
8913 touch testdir/file1
8914 touch testdir/file2
8915 touch testdir/file3
8916 touch testdir/file4
8917 touch testdir/dir/File1
8918 touch testdir/dir/File2
8919 touch testdir/dir/File3
8920 touch testdir/dir/File4
8921
8922 tar cf archive --exclude=FILE2 \
8923                --exclude=file1 \
8924                --ignore-case \
8925                --exclude=file3 \
8926                --no-ignore-case \
8927                --exclude=FILE2 \
8928                --exclude=file4 \
8929                testdir
8930 tar tf archive | sort
8931
8932 echo "SUB 1"
8933 tar cf archive testdir
8934 tar t --wildcards --wildcards-match-slash '*File2' -f archive | sort
8935
8936 echo "SUB 2"
8937 tar t --wildcards --wildcards-match-slash --ignore-case '*File2' -f archive | sort
8938
8939 echo "SUB 3"
8940 tar t --wildcards --wildcards-match-slash --no-ignore-case '*File2' -f archive | sort
8941
8942 rm -rf testdir
8943
8944 ) ) >"$at_stdout" 2>"$at_stderr"
8945 fi
8946 at_status=$?
8947 at_failed=false
8948 at_func_diff_devnull "$at_stderr" || at_failed=:
8949 echo >>"$at_stdout"; $as_echo "testdir/
8950 testdir/dir/
8951 testdir/dir/File1
8952 testdir/dir/File2
8953 testdir/dir/File4
8954 testdir/file2
8955 SUB 1
8956 testdir/dir/File2
8957 SUB 2
8958 testdir/dir/File2
8959 testdir/file2
8960 SUB 3
8961 testdir/dir/File2
8962 " | \
8963   $at_diff - "$at_stdout" || at_failed=:
8964 at_func_check_status 0 $at_status "$at_srcdir/exclude04.at:20"
8965
8966 $at_failed && at_func_log_failure
8967 $at_traceon; }
8968
8969               { $at_traceoff
8970 $as_echo "$at_srcdir/exclude04.at:20:
8971 mkdir gnu
8972 (cd gnu
8973 TEST_TAR_FORMAT=gnu
8974 export TEST_TAR_FORMAT
8975 TAR_OPTIONS=\"-H gnu\"
8976 export TAR_OPTIONS
8977 rm -rf *
8978
8979
8980 test -z "`sort < /dev/null 2>&1`" || exit 77
8981
8982
8983 rm -rf testdir
8984 mkdir -p testdir/dir
8985 touch testdir/file1
8986 touch testdir/file2
8987 touch testdir/file3
8988 touch testdir/file4
8989 touch testdir/dir/File1
8990 touch testdir/dir/File2
8991 touch testdir/dir/File3
8992 touch testdir/dir/File4
8993
8994 tar cf archive --exclude=FILE2 \\
8995                --exclude=file1 \\
8996                --ignore-case \\
8997                --exclude=file3 \\
8998                --no-ignore-case \\
8999                --exclude=FILE2 \\
9000                --exclude=file4 \\
9001                testdir
9002 tar tf archive | sort
9003
9004 echo \"SUB 1\"
9005 tar cf archive testdir
9006 tar t --wildcards --wildcards-match-slash '*File2' -f archive | sort
9007
9008 echo \"SUB 2\"
9009 tar t --wildcards --wildcards-match-slash --ignore-case '*File2' -f archive | sort
9010
9011 echo \"SUB 3\"
9012 tar t --wildcards --wildcards-match-slash --no-ignore-case '*File2' -f archive | sort
9013
9014 rm -rf testdir
9015
9016 )"
9017 echo exclude04.at:20 >"$at_check_line_file"
9018
9019 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
9020    false; }; then
9021   ( $at_traceon;
9022 mkdir gnu
9023 (cd gnu
9024 TEST_TAR_FORMAT=gnu
9025 export TEST_TAR_FORMAT
9026 TAR_OPTIONS="-H gnu"
9027 export TAR_OPTIONS
9028 rm -rf *
9029
9030
9031 test -z "`sort < /dev/null 2>&1`" || exit 77
9032
9033
9034 rm -rf testdir
9035 mkdir -p testdir/dir
9036 touch testdir/file1
9037 touch testdir/file2
9038 touch testdir/file3
9039 touch testdir/file4
9040 touch testdir/dir/File1
9041 touch testdir/dir/File2
9042 touch testdir/dir/File3
9043 touch testdir/dir/File4
9044
9045 tar cf archive --exclude=FILE2 \
9046                --exclude=file1 \
9047                --ignore-case \
9048                --exclude=file3 \
9049                --no-ignore-case \
9050                --exclude=FILE2 \
9051                --exclude=file4 \
9052                testdir
9053 tar tf archive | sort
9054
9055 echo "SUB 1"
9056 tar cf archive testdir
9057 tar t --wildcards --wildcards-match-slash '*File2' -f archive | sort
9058
9059 echo "SUB 2"
9060 tar t --wildcards --wildcards-match-slash --ignore-case '*File2' -f archive | sort
9061
9062 echo "SUB 3"
9063 tar t --wildcards --wildcards-match-slash --no-ignore-case '*File2' -f archive | sort
9064
9065 rm -rf testdir
9066
9067 ) ) >"$at_stdout" 2>"$at_stder1"
9068   at_func_filter_trace $?
9069 else
9070   ( :;
9071 mkdir gnu
9072 (cd gnu
9073 TEST_TAR_FORMAT=gnu
9074 export TEST_TAR_FORMAT
9075 TAR_OPTIONS="-H gnu"
9076 export TAR_OPTIONS
9077 rm -rf *
9078
9079
9080 test -z "`sort < /dev/null 2>&1`" || exit 77
9081
9082
9083 rm -rf testdir
9084 mkdir -p testdir/dir
9085 touch testdir/file1
9086 touch testdir/file2
9087 touch testdir/file3
9088 touch testdir/file4
9089 touch testdir/dir/File1
9090 touch testdir/dir/File2
9091 touch testdir/dir/File3
9092 touch testdir/dir/File4
9093
9094 tar cf archive --exclude=FILE2 \
9095                --exclude=file1 \
9096                --ignore-case \
9097                --exclude=file3 \
9098                --no-ignore-case \
9099                --exclude=FILE2 \
9100                --exclude=file4 \
9101                testdir
9102 tar tf archive | sort
9103
9104 echo "SUB 1"
9105 tar cf archive testdir
9106 tar t --wildcards --wildcards-match-slash '*File2' -f archive | sort
9107
9108 echo "SUB 2"
9109 tar t --wildcards --wildcards-match-slash --ignore-case '*File2' -f archive | sort
9110
9111 echo "SUB 3"
9112 tar t --wildcards --wildcards-match-slash --no-ignore-case '*File2' -f archive | sort
9113
9114 rm -rf testdir
9115
9116 ) ) >"$at_stdout" 2>"$at_stderr"
9117 fi
9118 at_status=$?
9119 at_failed=false
9120 at_func_diff_devnull "$at_stderr" || at_failed=:
9121 echo >>"$at_stdout"; $as_echo "testdir/
9122 testdir/dir/
9123 testdir/dir/File1
9124 testdir/dir/File2
9125 testdir/dir/File4
9126 testdir/file2
9127 SUB 1
9128 testdir/dir/File2
9129 SUB 2
9130 testdir/dir/File2
9131 testdir/file2
9132 SUB 3
9133 testdir/dir/File2
9134 " | \
9135   $at_diff - "$at_stdout" || at_failed=:
9136 at_func_check_status 0 $at_status "$at_srcdir/exclude04.at:20"
9137
9138 $at_failed && at_func_log_failure
9139 $at_traceon; }
9140
9141
9142
9143
9144   $at_traceoff
9145   $at_times_p && times >"$at_times_file"
9146 ) 5>&1 2>&1 | eval $at_tee_pipe
9147 at_status=`cat "$at_status_file"`
9148 #AT_STOP_17
9149 #AT_START_18
9150 # 18. exclude05.at:19: exclude: lots of excludes
9151 at_setup_line='exclude05.at:19'
9152 at_desc="exclude: lots of excludes"
9153 $at_quiet $as_echo_n " 18: $at_desc                      "
9154 at_xfail=no
9155       test -f $XFAILFILE && at_xfail=yes
9156 echo "#                             -*- compilation -*-" >> "$at_group_log"
9157 (
9158   $as_echo "18. exclude05.at:19: testing ..."
9159   $at_traceon
9160
9161
9162
9163
9164
9165   { $at_traceoff
9166 $as_echo "$at_srcdir/exclude05.at:22:
9167 mkdir v7
9168 (cd v7
9169 TEST_TAR_FORMAT=v7
9170 export TEST_TAR_FORMAT
9171 TAR_OPTIONS=\"-H v7\"
9172 export TAR_OPTIONS
9173 rm -rf *
9174
9175
9176 test -z "`sort < /dev/null 2>&1`" || exit 77
9177
9178
9179 rm -rf testdir exclfile
9180 mkdir -p testdir
9181 awk 'BEGIN {for (i=9; i < 100; ++i ) { print \"testdir/file\" i; }}' < /dev/null | \\
9182  while read name
9183  do
9184    genfile --file \$name
9185  done
9186
9187 awk 'BEGIN {for (i=1000000; i >= 12; --i ) { print \"testdir/file\" i }}' < /dev/null > exclfile
9188
9189 tar cf archive --anchored --exclude-from=exclfile \\
9190                testdir
9191 tar tf archive | sort
9192
9193 echo \"NEXT\"
9194 tar cf archive --exclude-from=exclfile \\
9195                testdir
9196 tar tf archive | sort
9197
9198 rm -rf testdir exclfile
9199
9200 )"
9201 echo exclude05.at:22 >"$at_check_line_file"
9202
9203 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
9204    false; }; then
9205   ( $at_traceon;
9206 mkdir v7
9207 (cd v7
9208 TEST_TAR_FORMAT=v7
9209 export TEST_TAR_FORMAT
9210 TAR_OPTIONS="-H v7"
9211 export TAR_OPTIONS
9212 rm -rf *
9213
9214
9215 test -z "`sort < /dev/null 2>&1`" || exit 77
9216
9217
9218 rm -rf testdir exclfile
9219 mkdir -p testdir
9220 awk 'BEGIN {for (i=9; i < 100; ++i ) { print "testdir/file" i; }}' < /dev/null | \
9221  while read name
9222  do
9223    genfile --file $name
9224  done
9225
9226 awk 'BEGIN {for (i=1000000; i >= 12; --i ) { print "testdir/file" i }}' < /dev/null > exclfile
9227
9228 tar cf archive --anchored --exclude-from=exclfile \
9229                testdir
9230 tar tf archive | sort
9231
9232 echo "NEXT"
9233 tar cf archive --exclude-from=exclfile \
9234                testdir
9235 tar tf archive | sort
9236
9237 rm -rf testdir exclfile
9238
9239 ) ) >"$at_stdout" 2>"$at_stder1"
9240   at_func_filter_trace $?
9241 else
9242   ( :;
9243 mkdir v7
9244 (cd v7
9245 TEST_TAR_FORMAT=v7
9246 export TEST_TAR_FORMAT
9247 TAR_OPTIONS="-H v7"
9248 export TAR_OPTIONS
9249 rm -rf *
9250
9251
9252 test -z "`sort < /dev/null 2>&1`" || exit 77
9253
9254
9255 rm -rf testdir exclfile
9256 mkdir -p testdir
9257 awk 'BEGIN {for (i=9; i < 100; ++i ) { print "testdir/file" i; }}' < /dev/null | \
9258  while read name
9259  do
9260    genfile --file $name
9261  done
9262
9263 awk 'BEGIN {for (i=1000000; i >= 12; --i ) { print "testdir/file" i }}' < /dev/null > exclfile
9264
9265 tar cf archive --anchored --exclude-from=exclfile \
9266                testdir
9267 tar tf archive | sort
9268
9269 echo "NEXT"
9270 tar cf archive --exclude-from=exclfile \
9271                testdir
9272 tar tf archive | sort
9273
9274 rm -rf testdir exclfile
9275
9276 ) ) >"$at_stdout" 2>"$at_stderr"
9277 fi
9278 at_status=$?
9279 at_failed=false
9280 at_func_diff_devnull "$at_stderr" || at_failed=:
9281 echo >>"$at_stdout"; $as_echo "testdir/
9282 testdir/file10
9283 testdir/file11
9284 testdir/file9
9285 NEXT
9286 testdir/
9287 testdir/file10
9288 testdir/file11
9289 testdir/file9
9290 " | \
9291   $at_diff - "$at_stdout" || at_failed=:
9292 at_func_check_status 0 $at_status "$at_srcdir/exclude05.at:22"
9293
9294 $at_failed && at_func_log_failure
9295 $at_traceon; }
9296
9297               { $at_traceoff
9298 $as_echo "$at_srcdir/exclude05.at:22:
9299 mkdir oldgnu
9300 (cd oldgnu
9301 TEST_TAR_FORMAT=oldgnu
9302 export TEST_TAR_FORMAT
9303 TAR_OPTIONS=\"-H oldgnu\"
9304 export TAR_OPTIONS
9305 rm -rf *
9306
9307
9308 test -z "`sort < /dev/null 2>&1`" || exit 77
9309
9310
9311 rm -rf testdir exclfile
9312 mkdir -p testdir
9313 awk 'BEGIN {for (i=9; i < 100; ++i ) { print \"testdir/file\" i; }}' < /dev/null | \\
9314  while read name
9315  do
9316    genfile --file \$name
9317  done
9318
9319 awk 'BEGIN {for (i=1000000; i >= 12; --i ) { print \"testdir/file\" i }}' < /dev/null > exclfile
9320
9321 tar cf archive --anchored --exclude-from=exclfile \\
9322                testdir
9323 tar tf archive | sort
9324
9325 echo \"NEXT\"
9326 tar cf archive --exclude-from=exclfile \\
9327                testdir
9328 tar tf archive | sort
9329
9330 rm -rf testdir exclfile
9331
9332 )"
9333 echo exclude05.at:22 >"$at_check_line_file"
9334
9335 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
9336    false; }; then
9337   ( $at_traceon;
9338 mkdir oldgnu
9339 (cd oldgnu
9340 TEST_TAR_FORMAT=oldgnu
9341 export TEST_TAR_FORMAT
9342 TAR_OPTIONS="-H oldgnu"
9343 export TAR_OPTIONS
9344 rm -rf *
9345
9346
9347 test -z "`sort < /dev/null 2>&1`" || exit 77
9348
9349
9350 rm -rf testdir exclfile
9351 mkdir -p testdir
9352 awk 'BEGIN {for (i=9; i < 100; ++i ) { print "testdir/file" i; }}' < /dev/null | \
9353  while read name
9354  do
9355    genfile --file $name
9356  done
9357
9358 awk 'BEGIN {for (i=1000000; i >= 12; --i ) { print "testdir/file" i }}' < /dev/null > exclfile
9359
9360 tar cf archive --anchored --exclude-from=exclfile \
9361                testdir
9362 tar tf archive | sort
9363
9364 echo "NEXT"
9365 tar cf archive --exclude-from=exclfile \
9366                testdir
9367 tar tf archive | sort
9368
9369 rm -rf testdir exclfile
9370
9371 ) ) >"$at_stdout" 2>"$at_stder1"
9372   at_func_filter_trace $?
9373 else
9374   ( :;
9375 mkdir oldgnu
9376 (cd oldgnu
9377 TEST_TAR_FORMAT=oldgnu
9378 export TEST_TAR_FORMAT
9379 TAR_OPTIONS="-H oldgnu"
9380 export TAR_OPTIONS
9381 rm -rf *
9382
9383
9384 test -z "`sort < /dev/null 2>&1`" || exit 77
9385
9386
9387 rm -rf testdir exclfile
9388 mkdir -p testdir
9389 awk 'BEGIN {for (i=9; i < 100; ++i ) { print "testdir/file" i; }}' < /dev/null | \
9390  while read name
9391  do
9392    genfile --file $name
9393  done
9394
9395 awk 'BEGIN {for (i=1000000; i >= 12; --i ) { print "testdir/file" i }}' < /dev/null > exclfile
9396
9397 tar cf archive --anchored --exclude-from=exclfile \
9398                testdir
9399 tar tf archive | sort
9400
9401 echo "NEXT"
9402 tar cf archive --exclude-from=exclfile \
9403                testdir
9404 tar tf archive | sort
9405
9406 rm -rf testdir exclfile
9407
9408 ) ) >"$at_stdout" 2>"$at_stderr"
9409 fi
9410 at_status=$?
9411 at_failed=false
9412 at_func_diff_devnull "$at_stderr" || at_failed=:
9413 echo >>"$at_stdout"; $as_echo "testdir/
9414 testdir/file10
9415 testdir/file11
9416 testdir/file9
9417 NEXT
9418 testdir/
9419 testdir/file10
9420 testdir/file11
9421 testdir/file9
9422 " | \
9423   $at_diff - "$at_stdout" || at_failed=:
9424 at_func_check_status 0 $at_status "$at_srcdir/exclude05.at:22"
9425
9426 $at_failed && at_func_log_failure
9427 $at_traceon; }
9428
9429               { $at_traceoff
9430 $as_echo "$at_srcdir/exclude05.at:22:
9431 mkdir ustar
9432 (cd ustar
9433 TEST_TAR_FORMAT=ustar
9434 export TEST_TAR_FORMAT
9435 TAR_OPTIONS=\"-H ustar\"
9436 export TAR_OPTIONS
9437 rm -rf *
9438
9439
9440 test -z "`sort < /dev/null 2>&1`" || exit 77
9441
9442
9443 rm -rf testdir exclfile
9444 mkdir -p testdir
9445 awk 'BEGIN {for (i=9; i < 100; ++i ) { print \"testdir/file\" i; }}' < /dev/null | \\
9446  while read name
9447  do
9448    genfile --file \$name
9449  done
9450
9451 awk 'BEGIN {for (i=1000000; i >= 12; --i ) { print \"testdir/file\" i }}' < /dev/null > exclfile
9452
9453 tar cf archive --anchored --exclude-from=exclfile \\
9454                testdir
9455 tar tf archive | sort
9456
9457 echo \"NEXT\"
9458 tar cf archive --exclude-from=exclfile \\
9459                testdir
9460 tar tf archive | sort
9461
9462 rm -rf testdir exclfile
9463
9464 )"
9465 echo exclude05.at:22 >"$at_check_line_file"
9466
9467 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
9468    false; }; then
9469   ( $at_traceon;
9470 mkdir ustar
9471 (cd ustar
9472 TEST_TAR_FORMAT=ustar
9473 export TEST_TAR_FORMAT
9474 TAR_OPTIONS="-H ustar"
9475 export TAR_OPTIONS
9476 rm -rf *
9477
9478
9479 test -z "`sort < /dev/null 2>&1`" || exit 77
9480
9481
9482 rm -rf testdir exclfile
9483 mkdir -p testdir
9484 awk 'BEGIN {for (i=9; i < 100; ++i ) { print "testdir/file" i; }}' < /dev/null | \
9485  while read name
9486  do
9487    genfile --file $name
9488  done
9489
9490 awk 'BEGIN {for (i=1000000; i >= 12; --i ) { print "testdir/file" i }}' < /dev/null > exclfile
9491
9492 tar cf archive --anchored --exclude-from=exclfile \
9493                testdir
9494 tar tf archive | sort
9495
9496 echo "NEXT"
9497 tar cf archive --exclude-from=exclfile \
9498                testdir
9499 tar tf archive | sort
9500
9501 rm -rf testdir exclfile
9502
9503 ) ) >"$at_stdout" 2>"$at_stder1"
9504   at_func_filter_trace $?
9505 else
9506   ( :;
9507 mkdir ustar
9508 (cd ustar
9509 TEST_TAR_FORMAT=ustar
9510 export TEST_TAR_FORMAT
9511 TAR_OPTIONS="-H ustar"
9512 export TAR_OPTIONS
9513 rm -rf *
9514
9515
9516 test -z "`sort < /dev/null 2>&1`" || exit 77
9517
9518
9519 rm -rf testdir exclfile
9520 mkdir -p testdir
9521 awk 'BEGIN {for (i=9; i < 100; ++i ) { print "testdir/file" i; }}' < /dev/null | \
9522  while read name
9523  do
9524    genfile --file $name
9525  done
9526
9527 awk 'BEGIN {for (i=1000000; i >= 12; --i ) { print "testdir/file" i }}' < /dev/null > exclfile
9528
9529 tar cf archive --anchored --exclude-from=exclfile \
9530                testdir
9531 tar tf archive | sort
9532
9533 echo "NEXT"
9534 tar cf archive --exclude-from=exclfile \
9535                testdir
9536 tar tf archive | sort
9537
9538 rm -rf testdir exclfile
9539
9540 ) ) >"$at_stdout" 2>"$at_stderr"
9541 fi
9542 at_status=$?
9543 at_failed=false
9544 at_func_diff_devnull "$at_stderr" || at_failed=:
9545 echo >>"$at_stdout"; $as_echo "testdir/
9546 testdir/file10
9547 testdir/file11
9548 testdir/file9
9549 NEXT
9550 testdir/
9551 testdir/file10
9552 testdir/file11
9553 testdir/file9
9554 " | \
9555   $at_diff - "$at_stdout" || at_failed=:
9556 at_func_check_status 0 $at_status "$at_srcdir/exclude05.at:22"
9557
9558 $at_failed && at_func_log_failure
9559 $at_traceon; }
9560
9561               { $at_traceoff
9562 $as_echo "$at_srcdir/exclude05.at:22:
9563 mkdir posix
9564 (cd posix
9565 TEST_TAR_FORMAT=posix
9566 export TEST_TAR_FORMAT
9567 TAR_OPTIONS=\"-H posix\"
9568 export TAR_OPTIONS
9569 rm -rf *
9570
9571
9572 test -z "`sort < /dev/null 2>&1`" || exit 77
9573
9574
9575 rm -rf testdir exclfile
9576 mkdir -p testdir
9577 awk 'BEGIN {for (i=9; i < 100; ++i ) { print \"testdir/file\" i; }}' < /dev/null | \\
9578  while read name
9579  do
9580    genfile --file \$name
9581  done
9582
9583 awk 'BEGIN {for (i=1000000; i >= 12; --i ) { print \"testdir/file\" i }}' < /dev/null > exclfile
9584
9585 tar cf archive --anchored --exclude-from=exclfile \\
9586                testdir
9587 tar tf archive | sort
9588
9589 echo \"NEXT\"
9590 tar cf archive --exclude-from=exclfile \\
9591                testdir
9592 tar tf archive | sort
9593
9594 rm -rf testdir exclfile
9595
9596 )"
9597 echo exclude05.at:22 >"$at_check_line_file"
9598
9599 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
9600    false; }; then
9601   ( $at_traceon;
9602 mkdir posix
9603 (cd posix
9604 TEST_TAR_FORMAT=posix
9605 export TEST_TAR_FORMAT
9606 TAR_OPTIONS="-H posix"
9607 export TAR_OPTIONS
9608 rm -rf *
9609
9610
9611 test -z "`sort < /dev/null 2>&1`" || exit 77
9612
9613
9614 rm -rf testdir exclfile
9615 mkdir -p testdir
9616 awk 'BEGIN {for (i=9; i < 100; ++i ) { print "testdir/file" i; }}' < /dev/null | \
9617  while read name
9618  do
9619    genfile --file $name
9620  done
9621
9622 awk 'BEGIN {for (i=1000000; i >= 12; --i ) { print "testdir/file" i }}' < /dev/null > exclfile
9623
9624 tar cf archive --anchored --exclude-from=exclfile \
9625                testdir
9626 tar tf archive | sort
9627
9628 echo "NEXT"
9629 tar cf archive --exclude-from=exclfile \
9630                testdir
9631 tar tf archive | sort
9632
9633 rm -rf testdir exclfile
9634
9635 ) ) >"$at_stdout" 2>"$at_stder1"
9636   at_func_filter_trace $?
9637 else
9638   ( :;
9639 mkdir posix
9640 (cd posix
9641 TEST_TAR_FORMAT=posix
9642 export TEST_TAR_FORMAT
9643 TAR_OPTIONS="-H posix"
9644 export TAR_OPTIONS
9645 rm -rf *
9646
9647
9648 test -z "`sort < /dev/null 2>&1`" || exit 77
9649
9650
9651 rm -rf testdir exclfile
9652 mkdir -p testdir
9653 awk 'BEGIN {for (i=9; i < 100; ++i ) { print "testdir/file" i; }}' < /dev/null | \
9654  while read name
9655  do
9656    genfile --file $name
9657  done
9658
9659 awk 'BEGIN {for (i=1000000; i >= 12; --i ) { print "testdir/file" i }}' < /dev/null > exclfile
9660
9661 tar cf archive --anchored --exclude-from=exclfile \
9662                testdir
9663 tar tf archive | sort
9664
9665 echo "NEXT"
9666 tar cf archive --exclude-from=exclfile \
9667                testdir
9668 tar tf archive | sort
9669
9670 rm -rf testdir exclfile
9671
9672 ) ) >"$at_stdout" 2>"$at_stderr"
9673 fi
9674 at_status=$?
9675 at_failed=false
9676 at_func_diff_devnull "$at_stderr" || at_failed=:
9677 echo >>"$at_stdout"; $as_echo "testdir/
9678 testdir/file10
9679 testdir/file11
9680 testdir/file9
9681 NEXT
9682 testdir/
9683 testdir/file10
9684 testdir/file11
9685 testdir/file9
9686 " | \
9687   $at_diff - "$at_stdout" || at_failed=:
9688 at_func_check_status 0 $at_status "$at_srcdir/exclude05.at:22"
9689
9690 $at_failed && at_func_log_failure
9691 $at_traceon; }
9692
9693               { $at_traceoff
9694 $as_echo "$at_srcdir/exclude05.at:22:
9695 mkdir gnu
9696 (cd gnu
9697 TEST_TAR_FORMAT=gnu
9698 export TEST_TAR_FORMAT
9699 TAR_OPTIONS=\"-H gnu\"
9700 export TAR_OPTIONS
9701 rm -rf *
9702
9703
9704 test -z "`sort < /dev/null 2>&1`" || exit 77
9705
9706
9707 rm -rf testdir exclfile
9708 mkdir -p testdir
9709 awk 'BEGIN {for (i=9; i < 100; ++i ) { print \"testdir/file\" i; }}' < /dev/null | \\
9710  while read name
9711  do
9712    genfile --file \$name
9713  done
9714
9715 awk 'BEGIN {for (i=1000000; i >= 12; --i ) { print \"testdir/file\" i }}' < /dev/null > exclfile
9716
9717 tar cf archive --anchored --exclude-from=exclfile \\
9718                testdir
9719 tar tf archive | sort
9720
9721 echo \"NEXT\"
9722 tar cf archive --exclude-from=exclfile \\
9723                testdir
9724 tar tf archive | sort
9725
9726 rm -rf testdir exclfile
9727
9728 )"
9729 echo exclude05.at:22 >"$at_check_line_file"
9730
9731 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
9732    false; }; then
9733   ( $at_traceon;
9734 mkdir gnu
9735 (cd gnu
9736 TEST_TAR_FORMAT=gnu
9737 export TEST_TAR_FORMAT
9738 TAR_OPTIONS="-H gnu"
9739 export TAR_OPTIONS
9740 rm -rf *
9741
9742
9743 test -z "`sort < /dev/null 2>&1`" || exit 77
9744
9745
9746 rm -rf testdir exclfile
9747 mkdir -p testdir
9748 awk 'BEGIN {for (i=9; i < 100; ++i ) { print "testdir/file" i; }}' < /dev/null | \
9749  while read name
9750  do
9751    genfile --file $name
9752  done
9753
9754 awk 'BEGIN {for (i=1000000; i >= 12; --i ) { print "testdir/file" i }}' < /dev/null > exclfile
9755
9756 tar cf archive --anchored --exclude-from=exclfile \
9757                testdir
9758 tar tf archive | sort
9759
9760 echo "NEXT"
9761 tar cf archive --exclude-from=exclfile \
9762                testdir
9763 tar tf archive | sort
9764
9765 rm -rf testdir exclfile
9766
9767 ) ) >"$at_stdout" 2>"$at_stder1"
9768   at_func_filter_trace $?
9769 else
9770   ( :;
9771 mkdir gnu
9772 (cd gnu
9773 TEST_TAR_FORMAT=gnu
9774 export TEST_TAR_FORMAT
9775 TAR_OPTIONS="-H gnu"
9776 export TAR_OPTIONS
9777 rm -rf *
9778
9779
9780 test -z "`sort < /dev/null 2>&1`" || exit 77
9781
9782
9783 rm -rf testdir exclfile
9784 mkdir -p testdir
9785 awk 'BEGIN {for (i=9; i < 100; ++i ) { print "testdir/file" i; }}' < /dev/null | \
9786  while read name
9787  do
9788    genfile --file $name
9789  done
9790
9791 awk 'BEGIN {for (i=1000000; i >= 12; --i ) { print "testdir/file" i }}' < /dev/null > exclfile
9792
9793 tar cf archive --anchored --exclude-from=exclfile \
9794                testdir
9795 tar tf archive | sort
9796
9797 echo "NEXT"
9798 tar cf archive --exclude-from=exclfile \
9799                testdir
9800 tar tf archive | sort
9801
9802 rm -rf testdir exclfile
9803
9804 ) ) >"$at_stdout" 2>"$at_stderr"
9805 fi
9806 at_status=$?
9807 at_failed=false
9808 at_func_diff_devnull "$at_stderr" || at_failed=:
9809 echo >>"$at_stdout"; $as_echo "testdir/
9810 testdir/file10
9811 testdir/file11
9812 testdir/file9
9813 NEXT
9814 testdir/
9815 testdir/file10
9816 testdir/file11
9817 testdir/file9
9818 " | \
9819   $at_diff - "$at_stdout" || at_failed=:
9820 at_func_check_status 0 $at_status "$at_srcdir/exclude05.at:22"
9821
9822 $at_failed && at_func_log_failure
9823 $at_traceon; }
9824
9825
9826
9827
9828   $at_traceoff
9829   $at_times_p && times >"$at_times_file"
9830 ) 5>&1 2>&1 | eval $at_tee_pipe
9831 at_status=`cat "$at_status_file"`
9832 #AT_STOP_18
9833 #AT_START_19
9834 # 19. delete01.at:23: deleting a member after a big one
9835 at_setup_line='delete01.at:23'
9836 at_desc="deleting a member after a big one"
9837 $at_quiet $as_echo_n " 19: $at_desc              "
9838 at_xfail=no
9839       test -f $XFAILFILE && at_xfail=yes
9840 echo "#                             -*- compilation -*-" >> "$at_group_log"
9841 (
9842   $as_echo "19. delete01.at:23: testing ..."
9843   $at_traceon
9844
9845
9846
9847
9848
9849   { $at_traceoff
9850 $as_echo "$at_srcdir/delete01.at:26:
9851 mkdir v7
9852 (cd v7
9853 TEST_TAR_FORMAT=v7
9854 export TEST_TAR_FORMAT
9855 TAR_OPTIONS=\"-H v7\"
9856 export TAR_OPTIONS
9857 rm -rf *
9858
9859 genfile -l 50000 --file file1
9860 genfile -l 1024 --file file2
9861 tar cf archive file1 file2
9862 tar f archive --delete file2
9863 tar tf archive)"
9864 echo delete01.at:26 >"$at_check_line_file"
9865
9866 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
9867    false; }; then
9868   ( $at_traceon;
9869 mkdir v7
9870 (cd v7
9871 TEST_TAR_FORMAT=v7
9872 export TEST_TAR_FORMAT
9873 TAR_OPTIONS="-H v7"
9874 export TAR_OPTIONS
9875 rm -rf *
9876
9877 genfile -l 50000 --file file1
9878 genfile -l 1024 --file file2
9879 tar cf archive file1 file2
9880 tar f archive --delete file2
9881 tar tf archive) ) >"$at_stdout" 2>"$at_stder1"
9882   at_func_filter_trace $?
9883 else
9884   ( :;
9885 mkdir v7
9886 (cd v7
9887 TEST_TAR_FORMAT=v7
9888 export TEST_TAR_FORMAT
9889 TAR_OPTIONS="-H v7"
9890 export TAR_OPTIONS
9891 rm -rf *
9892
9893 genfile -l 50000 --file file1
9894 genfile -l 1024 --file file2
9895 tar cf archive file1 file2
9896 tar f archive --delete file2
9897 tar tf archive) ) >"$at_stdout" 2>"$at_stderr"
9898 fi
9899 at_status=$?
9900 at_failed=false
9901 at_func_diff_devnull "$at_stderr" || at_failed=:
9902 echo >>"$at_stdout"; $as_echo "file1
9903 " | \
9904   $at_diff - "$at_stdout" || at_failed=:
9905 at_func_check_status 0 $at_status "$at_srcdir/delete01.at:26"
9906
9907 $at_failed && at_func_log_failure
9908 $at_traceon; }
9909
9910               { $at_traceoff
9911 $as_echo "$at_srcdir/delete01.at:26:
9912 mkdir oldgnu
9913 (cd oldgnu
9914 TEST_TAR_FORMAT=oldgnu
9915 export TEST_TAR_FORMAT
9916 TAR_OPTIONS=\"-H oldgnu\"
9917 export TAR_OPTIONS
9918 rm -rf *
9919
9920 genfile -l 50000 --file file1
9921 genfile -l 1024 --file file2
9922 tar cf archive file1 file2
9923 tar f archive --delete file2
9924 tar tf archive)"
9925 echo delete01.at:26 >"$at_check_line_file"
9926
9927 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
9928    false; }; then
9929   ( $at_traceon;
9930 mkdir oldgnu
9931 (cd oldgnu
9932 TEST_TAR_FORMAT=oldgnu
9933 export TEST_TAR_FORMAT
9934 TAR_OPTIONS="-H oldgnu"
9935 export TAR_OPTIONS
9936 rm -rf *
9937
9938 genfile -l 50000 --file file1
9939 genfile -l 1024 --file file2
9940 tar cf archive file1 file2
9941 tar f archive --delete file2
9942 tar tf archive) ) >"$at_stdout" 2>"$at_stder1"
9943   at_func_filter_trace $?
9944 else
9945   ( :;
9946 mkdir oldgnu
9947 (cd oldgnu
9948 TEST_TAR_FORMAT=oldgnu
9949 export TEST_TAR_FORMAT
9950 TAR_OPTIONS="-H oldgnu"
9951 export TAR_OPTIONS
9952 rm -rf *
9953
9954 genfile -l 50000 --file file1
9955 genfile -l 1024 --file file2
9956 tar cf archive file1 file2
9957 tar f archive --delete file2
9958 tar tf archive) ) >"$at_stdout" 2>"$at_stderr"
9959 fi
9960 at_status=$?
9961 at_failed=false
9962 at_func_diff_devnull "$at_stderr" || at_failed=:
9963 echo >>"$at_stdout"; $as_echo "file1
9964 " | \
9965   $at_diff - "$at_stdout" || at_failed=:
9966 at_func_check_status 0 $at_status "$at_srcdir/delete01.at:26"
9967
9968 $at_failed && at_func_log_failure
9969 $at_traceon; }
9970
9971               { $at_traceoff
9972 $as_echo "$at_srcdir/delete01.at:26:
9973 mkdir ustar
9974 (cd ustar
9975 TEST_TAR_FORMAT=ustar
9976 export TEST_TAR_FORMAT
9977 TAR_OPTIONS=\"-H ustar\"
9978 export TAR_OPTIONS
9979 rm -rf *
9980
9981 genfile -l 50000 --file file1
9982 genfile -l 1024 --file file2
9983 tar cf archive file1 file2
9984 tar f archive --delete file2
9985 tar tf archive)"
9986 echo delete01.at:26 >"$at_check_line_file"
9987
9988 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
9989    false; }; then
9990   ( $at_traceon;
9991 mkdir ustar
9992 (cd ustar
9993 TEST_TAR_FORMAT=ustar
9994 export TEST_TAR_FORMAT
9995 TAR_OPTIONS="-H ustar"
9996 export TAR_OPTIONS
9997 rm -rf *
9998
9999 genfile -l 50000 --file file1
10000 genfile -l 1024 --file file2
10001 tar cf archive file1 file2
10002 tar f archive --delete file2
10003 tar tf archive) ) >"$at_stdout" 2>"$at_stder1"
10004   at_func_filter_trace $?
10005 else
10006   ( :;
10007 mkdir ustar
10008 (cd ustar
10009 TEST_TAR_FORMAT=ustar
10010 export TEST_TAR_FORMAT
10011 TAR_OPTIONS="-H ustar"
10012 export TAR_OPTIONS
10013 rm -rf *
10014
10015 genfile -l 50000 --file file1
10016 genfile -l 1024 --file file2
10017 tar cf archive file1 file2
10018 tar f archive --delete file2
10019 tar tf archive) ) >"$at_stdout" 2>"$at_stderr"
10020 fi
10021 at_status=$?
10022 at_failed=false
10023 at_func_diff_devnull "$at_stderr" || at_failed=:
10024 echo >>"$at_stdout"; $as_echo "file1
10025 " | \
10026   $at_diff - "$at_stdout" || at_failed=:
10027 at_func_check_status 0 $at_status "$at_srcdir/delete01.at:26"
10028
10029 $at_failed && at_func_log_failure
10030 $at_traceon; }
10031
10032               { $at_traceoff
10033 $as_echo "$at_srcdir/delete01.at:26:
10034 mkdir posix
10035 (cd posix
10036 TEST_TAR_FORMAT=posix
10037 export TEST_TAR_FORMAT
10038 TAR_OPTIONS=\"-H posix\"
10039 export TAR_OPTIONS
10040 rm -rf *
10041
10042 genfile -l 50000 --file file1
10043 genfile -l 1024 --file file2
10044 tar cf archive file1 file2
10045 tar f archive --delete file2
10046 tar tf archive)"
10047 echo delete01.at:26 >"$at_check_line_file"
10048
10049 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
10050    false; }; then
10051   ( $at_traceon;
10052 mkdir posix
10053 (cd posix
10054 TEST_TAR_FORMAT=posix
10055 export TEST_TAR_FORMAT
10056 TAR_OPTIONS="-H posix"
10057 export TAR_OPTIONS
10058 rm -rf *
10059
10060 genfile -l 50000 --file file1
10061 genfile -l 1024 --file file2
10062 tar cf archive file1 file2
10063 tar f archive --delete file2
10064 tar tf archive) ) >"$at_stdout" 2>"$at_stder1"
10065   at_func_filter_trace $?
10066 else
10067   ( :;
10068 mkdir posix
10069 (cd posix
10070 TEST_TAR_FORMAT=posix
10071 export TEST_TAR_FORMAT
10072 TAR_OPTIONS="-H posix"
10073 export TAR_OPTIONS
10074 rm -rf *
10075
10076 genfile -l 50000 --file file1
10077 genfile -l 1024 --file file2
10078 tar cf archive file1 file2
10079 tar f archive --delete file2
10080 tar tf archive) ) >"$at_stdout" 2>"$at_stderr"
10081 fi
10082 at_status=$?
10083 at_failed=false
10084 at_func_diff_devnull "$at_stderr" || at_failed=:
10085 echo >>"$at_stdout"; $as_echo "file1
10086 " | \
10087   $at_diff - "$at_stdout" || at_failed=:
10088 at_func_check_status 0 $at_status "$at_srcdir/delete01.at:26"
10089
10090 $at_failed && at_func_log_failure
10091 $at_traceon; }
10092
10093               { $at_traceoff
10094 $as_echo "$at_srcdir/delete01.at:26:
10095 mkdir gnu
10096 (cd gnu
10097 TEST_TAR_FORMAT=gnu
10098 export TEST_TAR_FORMAT
10099 TAR_OPTIONS=\"-H gnu\"
10100 export TAR_OPTIONS
10101 rm -rf *
10102
10103 genfile -l 50000 --file file1
10104 genfile -l 1024 --file file2
10105 tar cf archive file1 file2
10106 tar f archive --delete file2
10107 tar tf archive)"
10108 echo delete01.at:26 >"$at_check_line_file"
10109
10110 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
10111    false; }; then
10112   ( $at_traceon;
10113 mkdir gnu
10114 (cd gnu
10115 TEST_TAR_FORMAT=gnu
10116 export TEST_TAR_FORMAT
10117 TAR_OPTIONS="-H gnu"
10118 export TAR_OPTIONS
10119 rm -rf *
10120
10121 genfile -l 50000 --file file1
10122 genfile -l 1024 --file file2
10123 tar cf archive file1 file2
10124 tar f archive --delete file2
10125 tar tf archive) ) >"$at_stdout" 2>"$at_stder1"
10126   at_func_filter_trace $?
10127 else
10128   ( :;
10129 mkdir gnu
10130 (cd gnu
10131 TEST_TAR_FORMAT=gnu
10132 export TEST_TAR_FORMAT
10133 TAR_OPTIONS="-H gnu"
10134 export TAR_OPTIONS
10135 rm -rf *
10136
10137 genfile -l 50000 --file file1
10138 genfile -l 1024 --file file2
10139 tar cf archive file1 file2
10140 tar f archive --delete file2
10141 tar tf archive) ) >"$at_stdout" 2>"$at_stderr"
10142 fi
10143 at_status=$?
10144 at_failed=false
10145 at_func_diff_devnull "$at_stderr" || at_failed=:
10146 echo >>"$at_stdout"; $as_echo "file1
10147 " | \
10148   $at_diff - "$at_stdout" || at_failed=:
10149 at_func_check_status 0 $at_status "$at_srcdir/delete01.at:26"
10150
10151 $at_failed && at_func_log_failure
10152 $at_traceon; }
10153
10154
10155
10156
10157   $at_traceoff
10158   $at_times_p && times >"$at_times_file"
10159 ) 5>&1 2>&1 | eval $at_tee_pipe
10160 at_status=`cat "$at_status_file"`
10161 #AT_STOP_19
10162 #AT_START_20
10163 # 20. delete02.at:23: deleting a member from stdin archive
10164 at_setup_line='delete02.at:23'
10165 at_desc="deleting a member from stdin archive"
10166 $at_quiet $as_echo_n " 20: $at_desc           "
10167 at_xfail=no
10168       test -f $XFAILFILE && at_xfail=yes
10169 echo "#                             -*- compilation -*-" >> "$at_group_log"
10170 (
10171   $as_echo "20. delete02.at:23: testing ..."
10172   $at_traceon
10173
10174
10175
10176
10177
10178   { $at_traceoff
10179 $as_echo "$at_srcdir/delete02.at:26:
10180 mkdir v7
10181 (cd v7
10182 TEST_TAR_FORMAT=v7
10183 export TEST_TAR_FORMAT
10184 TAR_OPTIONS=\"-H v7\"
10185 export TAR_OPTIONS
10186 rm -rf *
10187
10188 genfile -l 3073 -p zeros --file 1
10189 cp 1 2
10190 cp 2 3
10191 tar cf archive 1 2 3
10192 tar tf archive
10193 cat archive | tar f - --delete 2 > archive2
10194 echo separator
10195 tar tf archive2)"
10196 echo delete02.at:26 >"$at_check_line_file"
10197
10198 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
10199    false; }; then
10200   ( $at_traceon;
10201 mkdir v7
10202 (cd v7
10203 TEST_TAR_FORMAT=v7
10204 export TEST_TAR_FORMAT
10205 TAR_OPTIONS="-H v7"
10206 export TAR_OPTIONS
10207 rm -rf *
10208
10209 genfile -l 3073 -p zeros --file 1
10210 cp 1 2
10211 cp 2 3
10212 tar cf archive 1 2 3
10213 tar tf archive
10214 cat archive | tar f - --delete 2 > archive2
10215 echo separator
10216 tar tf archive2) ) >"$at_stdout" 2>"$at_stder1"
10217   at_func_filter_trace $?
10218 else
10219   ( :;
10220 mkdir v7
10221 (cd v7
10222 TEST_TAR_FORMAT=v7
10223 export TEST_TAR_FORMAT
10224 TAR_OPTIONS="-H v7"
10225 export TAR_OPTIONS
10226 rm -rf *
10227
10228 genfile -l 3073 -p zeros --file 1
10229 cp 1 2
10230 cp 2 3
10231 tar cf archive 1 2 3
10232 tar tf archive
10233 cat archive | tar f - --delete 2 > archive2
10234 echo separator
10235 tar tf archive2) ) >"$at_stdout" 2>"$at_stderr"
10236 fi
10237 at_status=$?
10238 at_failed=false
10239 at_func_diff_devnull "$at_stderr" || at_failed=:
10240 echo >>"$at_stdout"; $as_echo "1
10241 2
10242 3
10243 separator
10244 1
10245 3
10246 " | \
10247   $at_diff - "$at_stdout" || at_failed=:
10248 at_func_check_status 0 $at_status "$at_srcdir/delete02.at:26"
10249
10250 $at_failed && at_func_log_failure
10251 $at_traceon; }
10252
10253               { $at_traceoff
10254 $as_echo "$at_srcdir/delete02.at:26:
10255 mkdir oldgnu
10256 (cd oldgnu
10257 TEST_TAR_FORMAT=oldgnu
10258 export TEST_TAR_FORMAT
10259 TAR_OPTIONS=\"-H oldgnu\"
10260 export TAR_OPTIONS
10261 rm -rf *
10262
10263 genfile -l 3073 -p zeros --file 1
10264 cp 1 2
10265 cp 2 3
10266 tar cf archive 1 2 3
10267 tar tf archive
10268 cat archive | tar f - --delete 2 > archive2
10269 echo separator
10270 tar tf archive2)"
10271 echo delete02.at:26 >"$at_check_line_file"
10272
10273 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
10274    false; }; then
10275   ( $at_traceon;
10276 mkdir oldgnu
10277 (cd oldgnu
10278 TEST_TAR_FORMAT=oldgnu
10279 export TEST_TAR_FORMAT
10280 TAR_OPTIONS="-H oldgnu"
10281 export TAR_OPTIONS
10282 rm -rf *
10283
10284 genfile -l 3073 -p zeros --file 1
10285 cp 1 2
10286 cp 2 3
10287 tar cf archive 1 2 3
10288 tar tf archive
10289 cat archive | tar f - --delete 2 > archive2
10290 echo separator
10291 tar tf archive2) ) >"$at_stdout" 2>"$at_stder1"
10292   at_func_filter_trace $?
10293 else
10294   ( :;
10295 mkdir oldgnu
10296 (cd oldgnu
10297 TEST_TAR_FORMAT=oldgnu
10298 export TEST_TAR_FORMAT
10299 TAR_OPTIONS="-H oldgnu"
10300 export TAR_OPTIONS
10301 rm -rf *
10302
10303 genfile -l 3073 -p zeros --file 1
10304 cp 1 2
10305 cp 2 3
10306 tar cf archive 1 2 3
10307 tar tf archive
10308 cat archive | tar f - --delete 2 > archive2
10309 echo separator
10310 tar tf archive2) ) >"$at_stdout" 2>"$at_stderr"
10311 fi
10312 at_status=$?
10313 at_failed=false
10314 at_func_diff_devnull "$at_stderr" || at_failed=:
10315 echo >>"$at_stdout"; $as_echo "1
10316 2
10317 3
10318 separator
10319 1
10320 3
10321 " | \
10322   $at_diff - "$at_stdout" || at_failed=:
10323 at_func_check_status 0 $at_status "$at_srcdir/delete02.at:26"
10324
10325 $at_failed && at_func_log_failure
10326 $at_traceon; }
10327
10328               { $at_traceoff
10329 $as_echo "$at_srcdir/delete02.at:26:
10330 mkdir ustar
10331 (cd ustar
10332 TEST_TAR_FORMAT=ustar
10333 export TEST_TAR_FORMAT
10334 TAR_OPTIONS=\"-H ustar\"
10335 export TAR_OPTIONS
10336 rm -rf *
10337
10338 genfile -l 3073 -p zeros --file 1
10339 cp 1 2
10340 cp 2 3
10341 tar cf archive 1 2 3
10342 tar tf archive
10343 cat archive | tar f - --delete 2 > archive2
10344 echo separator
10345 tar tf archive2)"
10346 echo delete02.at:26 >"$at_check_line_file"
10347
10348 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
10349    false; }; then
10350   ( $at_traceon;
10351 mkdir ustar
10352 (cd ustar
10353 TEST_TAR_FORMAT=ustar
10354 export TEST_TAR_FORMAT
10355 TAR_OPTIONS="-H ustar"
10356 export TAR_OPTIONS
10357 rm -rf *
10358
10359 genfile -l 3073 -p zeros --file 1
10360 cp 1 2
10361 cp 2 3
10362 tar cf archive 1 2 3
10363 tar tf archive
10364 cat archive | tar f - --delete 2 > archive2
10365 echo separator
10366 tar tf archive2) ) >"$at_stdout" 2>"$at_stder1"
10367   at_func_filter_trace $?
10368 else
10369   ( :;
10370 mkdir ustar
10371 (cd ustar
10372 TEST_TAR_FORMAT=ustar
10373 export TEST_TAR_FORMAT
10374 TAR_OPTIONS="-H ustar"
10375 export TAR_OPTIONS
10376 rm -rf *
10377
10378 genfile -l 3073 -p zeros --file 1
10379 cp 1 2
10380 cp 2 3
10381 tar cf archive 1 2 3
10382 tar tf archive
10383 cat archive | tar f - --delete 2 > archive2
10384 echo separator
10385 tar tf archive2) ) >"$at_stdout" 2>"$at_stderr"
10386 fi
10387 at_status=$?
10388 at_failed=false
10389 at_func_diff_devnull "$at_stderr" || at_failed=:
10390 echo >>"$at_stdout"; $as_echo "1
10391 2
10392 3
10393 separator
10394 1
10395 3
10396 " | \
10397   $at_diff - "$at_stdout" || at_failed=:
10398 at_func_check_status 0 $at_status "$at_srcdir/delete02.at:26"
10399
10400 $at_failed && at_func_log_failure
10401 $at_traceon; }
10402
10403               { $at_traceoff
10404 $as_echo "$at_srcdir/delete02.at:26:
10405 mkdir posix
10406 (cd posix
10407 TEST_TAR_FORMAT=posix
10408 export TEST_TAR_FORMAT
10409 TAR_OPTIONS=\"-H posix\"
10410 export TAR_OPTIONS
10411 rm -rf *
10412
10413 genfile -l 3073 -p zeros --file 1
10414 cp 1 2
10415 cp 2 3
10416 tar cf archive 1 2 3
10417 tar tf archive
10418 cat archive | tar f - --delete 2 > archive2
10419 echo separator
10420 tar tf archive2)"
10421 echo delete02.at:26 >"$at_check_line_file"
10422
10423 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
10424    false; }; then
10425   ( $at_traceon;
10426 mkdir posix
10427 (cd posix
10428 TEST_TAR_FORMAT=posix
10429 export TEST_TAR_FORMAT
10430 TAR_OPTIONS="-H posix"
10431 export TAR_OPTIONS
10432 rm -rf *
10433
10434 genfile -l 3073 -p zeros --file 1
10435 cp 1 2
10436 cp 2 3
10437 tar cf archive 1 2 3
10438 tar tf archive
10439 cat archive | tar f - --delete 2 > archive2
10440 echo separator
10441 tar tf archive2) ) >"$at_stdout" 2>"$at_stder1"
10442   at_func_filter_trace $?
10443 else
10444   ( :;
10445 mkdir posix
10446 (cd posix
10447 TEST_TAR_FORMAT=posix
10448 export TEST_TAR_FORMAT
10449 TAR_OPTIONS="-H posix"
10450 export TAR_OPTIONS
10451 rm -rf *
10452
10453 genfile -l 3073 -p zeros --file 1
10454 cp 1 2
10455 cp 2 3
10456 tar cf archive 1 2 3
10457 tar tf archive
10458 cat archive | tar f - --delete 2 > archive2
10459 echo separator
10460 tar tf archive2) ) >"$at_stdout" 2>"$at_stderr"
10461 fi
10462 at_status=$?
10463 at_failed=false
10464 at_func_diff_devnull "$at_stderr" || at_failed=:
10465 echo >>"$at_stdout"; $as_echo "1
10466 2
10467 3
10468 separator
10469 1
10470 3
10471 " | \
10472   $at_diff - "$at_stdout" || at_failed=:
10473 at_func_check_status 0 $at_status "$at_srcdir/delete02.at:26"
10474
10475 $at_failed && at_func_log_failure
10476 $at_traceon; }
10477
10478               { $at_traceoff
10479 $as_echo "$at_srcdir/delete02.at:26:
10480 mkdir gnu
10481 (cd gnu
10482 TEST_TAR_FORMAT=gnu
10483 export TEST_TAR_FORMAT
10484 TAR_OPTIONS=\"-H gnu\"
10485 export TAR_OPTIONS
10486 rm -rf *
10487
10488 genfile -l 3073 -p zeros --file 1
10489 cp 1 2
10490 cp 2 3
10491 tar cf archive 1 2 3
10492 tar tf archive
10493 cat archive | tar f - --delete 2 > archive2
10494 echo separator
10495 tar tf archive2)"
10496 echo delete02.at:26 >"$at_check_line_file"
10497
10498 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
10499    false; }; then
10500   ( $at_traceon;
10501 mkdir gnu
10502 (cd gnu
10503 TEST_TAR_FORMAT=gnu
10504 export TEST_TAR_FORMAT
10505 TAR_OPTIONS="-H gnu"
10506 export TAR_OPTIONS
10507 rm -rf *
10508
10509 genfile -l 3073 -p zeros --file 1
10510 cp 1 2
10511 cp 2 3
10512 tar cf archive 1 2 3
10513 tar tf archive
10514 cat archive | tar f - --delete 2 > archive2
10515 echo separator
10516 tar tf archive2) ) >"$at_stdout" 2>"$at_stder1"
10517   at_func_filter_trace $?
10518 else
10519   ( :;
10520 mkdir gnu
10521 (cd gnu
10522 TEST_TAR_FORMAT=gnu
10523 export TEST_TAR_FORMAT
10524 TAR_OPTIONS="-H gnu"
10525 export TAR_OPTIONS
10526 rm -rf *
10527
10528 genfile -l 3073 -p zeros --file 1
10529 cp 1 2
10530 cp 2 3
10531 tar cf archive 1 2 3
10532 tar tf archive
10533 cat archive | tar f - --delete 2 > archive2
10534 echo separator
10535 tar tf archive2) ) >"$at_stdout" 2>"$at_stderr"
10536 fi
10537 at_status=$?
10538 at_failed=false
10539 at_func_diff_devnull "$at_stderr" || at_failed=:
10540 echo >>"$at_stdout"; $as_echo "1
10541 2
10542 3
10543 separator
10544 1
10545 3
10546 " | \
10547   $at_diff - "$at_stdout" || at_failed=:
10548 at_func_check_status 0 $at_status "$at_srcdir/delete02.at:26"
10549
10550 $at_failed && at_func_log_failure
10551 $at_traceon; }
10552
10553
10554
10555
10556   $at_traceoff
10557   $at_times_p && times >"$at_times_file"
10558 ) 5>&1 2>&1 | eval $at_tee_pipe
10559 at_status=`cat "$at_status_file"`
10560 #AT_STOP_20
10561 #AT_START_21
10562 # 21. delete03.at:21: deleting members with long names
10563 at_setup_line='delete03.at:21'
10564 at_desc="deleting members with long names"
10565 $at_quiet $as_echo_n " 21: $at_desc               "
10566 at_xfail=no
10567       test -f $XFAILFILE && at_xfail=yes
10568 echo "#                             -*- compilation -*-" >> "$at_group_log"
10569 (
10570   $as_echo "21. delete03.at:21: testing ..."
10571   $at_traceon
10572
10573
10574
10575
10576
10577
10578
10579   { $at_traceoff
10580 $as_echo "$at_srcdir/delete03.at:26:
10581 mkdir gnu
10582 (cd gnu
10583 TEST_TAR_FORMAT=gnu
10584 export TEST_TAR_FORMAT
10585 TAR_OPTIONS=\"-H gnu\"
10586 export TAR_OPTIONS
10587 rm -rf *
10588
10589
10590 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
10591 rm -f \$prefix*
10592 for i in 1 2 3 4 5 6 7 8 9
10593 do touch \$prefix\$i
10594 done
10595 tar -cf archive ./\$prefix* &&
10596  tar --delete -f archive ./\${prefix}5 &&
10597  tar -tf archive
10598 )"
10599 echo delete03.at:26 >"$at_check_line_file"
10600
10601 if { echo 'Not enabling shell tracing (command contains a ${...} parameter expansion)'
10602    false; }; then
10603   ( $at_traceon;
10604 mkdir gnu
10605 (cd gnu
10606 TEST_TAR_FORMAT=gnu
10607 export TEST_TAR_FORMAT
10608 TAR_OPTIONS="-H gnu"
10609 export TAR_OPTIONS
10610 rm -rf *
10611
10612
10613 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
10614 rm -f $prefix*
10615 for i in 1 2 3 4 5 6 7 8 9
10616 do touch $prefix$i
10617 done
10618 tar -cf archive ./$prefix* &&
10619  tar --delete -f archive ./${prefix}5 &&
10620  tar -tf archive
10621 ) ) >"$at_stdout" 2>"$at_stder1"
10622   at_func_filter_trace $?
10623 else
10624   ( :;
10625 mkdir gnu
10626 (cd gnu
10627 TEST_TAR_FORMAT=gnu
10628 export TEST_TAR_FORMAT
10629 TAR_OPTIONS="-H gnu"
10630 export TAR_OPTIONS
10631 rm -rf *
10632
10633
10634 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
10635 rm -f $prefix*
10636 for i in 1 2 3 4 5 6 7 8 9
10637 do touch $prefix$i
10638 done
10639 tar -cf archive ./$prefix* &&
10640  tar --delete -f archive ./${prefix}5 &&
10641  tar -tf archive
10642 ) ) >"$at_stdout" 2>"$at_stderr"
10643 fi
10644 at_status=$?
10645 at_failed=false
10646 at_func_diff_devnull "$at_stderr" || at_failed=:
10647 echo >>"$at_stdout"; $as_echo "./This_is_a_very_long_file_name_prefix_that_is_designed_to_cause_problems_with_file_names_that_run_into_a_limit_of_the_posix_tar_formatXX1
10648 ./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
10649 ./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
10650 ./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
10651 ./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
10652 ./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
10653 ./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
10654 ./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
10655 " | \
10656   $at_diff - "$at_stdout" || at_failed=:
10657 at_func_check_status 0 $at_status "$at_srcdir/delete03.at:26"
10658
10659 $at_failed && at_func_log_failure
10660 $at_traceon; }
10661
10662               { $at_traceoff
10663 $as_echo "$at_srcdir/delete03.at:26:
10664 mkdir oldgnu
10665 (cd oldgnu
10666 TEST_TAR_FORMAT=oldgnu
10667 export TEST_TAR_FORMAT
10668 TAR_OPTIONS=\"-H oldgnu\"
10669 export TAR_OPTIONS
10670 rm -rf *
10671
10672
10673 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
10674 rm -f \$prefix*
10675 for i in 1 2 3 4 5 6 7 8 9
10676 do touch \$prefix\$i
10677 done
10678 tar -cf archive ./\$prefix* &&
10679  tar --delete -f archive ./\${prefix}5 &&
10680  tar -tf archive
10681 )"
10682 echo delete03.at:26 >"$at_check_line_file"
10683
10684 if { echo 'Not enabling shell tracing (command contains a ${...} parameter expansion)'
10685    false; }; then
10686   ( $at_traceon;
10687 mkdir oldgnu
10688 (cd oldgnu
10689 TEST_TAR_FORMAT=oldgnu
10690 export TEST_TAR_FORMAT
10691 TAR_OPTIONS="-H oldgnu"
10692 export TAR_OPTIONS
10693 rm -rf *
10694
10695
10696 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
10697 rm -f $prefix*
10698 for i in 1 2 3 4 5 6 7 8 9
10699 do touch $prefix$i
10700 done
10701 tar -cf archive ./$prefix* &&
10702  tar --delete -f archive ./${prefix}5 &&
10703  tar -tf archive
10704 ) ) >"$at_stdout" 2>"$at_stder1"
10705   at_func_filter_trace $?
10706 else
10707   ( :;
10708 mkdir oldgnu
10709 (cd oldgnu
10710 TEST_TAR_FORMAT=oldgnu
10711 export TEST_TAR_FORMAT
10712 TAR_OPTIONS="-H oldgnu"
10713 export TAR_OPTIONS
10714 rm -rf *
10715
10716
10717 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
10718 rm -f $prefix*
10719 for i in 1 2 3 4 5 6 7 8 9
10720 do touch $prefix$i
10721 done
10722 tar -cf archive ./$prefix* &&
10723  tar --delete -f archive ./${prefix}5 &&
10724  tar -tf archive
10725 ) ) >"$at_stdout" 2>"$at_stderr"
10726 fi
10727 at_status=$?
10728 at_failed=false
10729 at_func_diff_devnull "$at_stderr" || at_failed=:
10730 echo >>"$at_stdout"; $as_echo "./This_is_a_very_long_file_name_prefix_that_is_designed_to_cause_problems_with_file_names_that_run_into_a_limit_of_the_posix_tar_formatXX1
10731 ./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
10732 ./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
10733 ./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
10734 ./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
10735 ./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
10736 ./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
10737 ./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
10738 " | \
10739   $at_diff - "$at_stdout" || at_failed=:
10740 at_func_check_status 0 $at_status "$at_srcdir/delete03.at:26"
10741
10742 $at_failed && at_func_log_failure
10743 $at_traceon; }
10744
10745               { $at_traceoff
10746 $as_echo "$at_srcdir/delete03.at:26:
10747 mkdir posix
10748 (cd posix
10749 TEST_TAR_FORMAT=posix
10750 export TEST_TAR_FORMAT
10751 TAR_OPTIONS=\"-H posix\"
10752 export TAR_OPTIONS
10753 rm -rf *
10754
10755
10756 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
10757 rm -f \$prefix*
10758 for i in 1 2 3 4 5 6 7 8 9
10759 do touch \$prefix\$i
10760 done
10761 tar -cf archive ./\$prefix* &&
10762  tar --delete -f archive ./\${prefix}5 &&
10763  tar -tf archive
10764 )"
10765 echo delete03.at:26 >"$at_check_line_file"
10766
10767 if { echo 'Not enabling shell tracing (command contains a ${...} parameter expansion)'
10768    false; }; then
10769   ( $at_traceon;
10770 mkdir posix
10771 (cd posix
10772 TEST_TAR_FORMAT=posix
10773 export TEST_TAR_FORMAT
10774 TAR_OPTIONS="-H posix"
10775 export TAR_OPTIONS
10776 rm -rf *
10777
10778
10779 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
10780 rm -f $prefix*
10781 for i in 1 2 3 4 5 6 7 8 9
10782 do touch $prefix$i
10783 done
10784 tar -cf archive ./$prefix* &&
10785  tar --delete -f archive ./${prefix}5 &&
10786  tar -tf archive
10787 ) ) >"$at_stdout" 2>"$at_stder1"
10788   at_func_filter_trace $?
10789 else
10790   ( :;
10791 mkdir posix
10792 (cd posix
10793 TEST_TAR_FORMAT=posix
10794 export TEST_TAR_FORMAT
10795 TAR_OPTIONS="-H posix"
10796 export TAR_OPTIONS
10797 rm -rf *
10798
10799
10800 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
10801 rm -f $prefix*
10802 for i in 1 2 3 4 5 6 7 8 9
10803 do touch $prefix$i
10804 done
10805 tar -cf archive ./$prefix* &&
10806  tar --delete -f archive ./${prefix}5 &&
10807  tar -tf archive
10808 ) ) >"$at_stdout" 2>"$at_stderr"
10809 fi
10810 at_status=$?
10811 at_failed=false
10812 at_func_diff_devnull "$at_stderr" || at_failed=:
10813 echo >>"$at_stdout"; $as_echo "./This_is_a_very_long_file_name_prefix_that_is_designed_to_cause_problems_with_file_names_that_run_into_a_limit_of_the_posix_tar_formatXX1
10814 ./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
10815 ./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
10816 ./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
10817 ./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
10818 ./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
10819 ./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
10820 ./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
10821 " | \
10822   $at_diff - "$at_stdout" || at_failed=:
10823 at_func_check_status 0 $at_status "$at_srcdir/delete03.at:26"
10824
10825 $at_failed && at_func_log_failure
10826 $at_traceon; }
10827
10828
10829
10830
10831   $at_traceoff
10832   $at_times_p && times >"$at_times_file"
10833 ) 5>&1 2>&1 | eval $at_tee_pipe
10834 at_status=`cat "$at_status_file"`
10835 #AT_STOP_21
10836 #AT_START_22
10837 # 22. delete04.at:23: deleting a large last member
10838 at_setup_line='delete04.at:23'
10839 at_desc="deleting a large last member"
10840 $at_quiet $as_echo_n " 22: $at_desc                   "
10841 at_xfail=no
10842       test -f $XFAILFILE && at_xfail=yes
10843 echo "#                             -*- compilation -*-" >> "$at_group_log"
10844 (
10845   $as_echo "22. delete04.at:23: testing ..."
10846   $at_traceon
10847
10848
10849
10850
10851
10852   { $at_traceoff
10853 $as_echo "$at_srcdir/delete04.at:26:
10854 mkdir v7
10855 (cd v7
10856 TEST_TAR_FORMAT=v7
10857 export TEST_TAR_FORMAT
10858 TAR_OPTIONS=\"-H v7\"
10859 export TAR_OPTIONS
10860 rm -rf *
10861
10862 genfile -l      3 -f file1
10863 genfile -l      5 -f file2
10864 genfile -l      3 -f file3
10865 genfile -l      6 -f file4
10866 genfile -l     24 -f file5
10867 genfile -l     13 -f file6
10868 genfile -l   1385 -f file7
10869 genfile -l     30 -f file8
10870 genfile -l     10 -f file9
10871 genfile -l 256000 -f file10
10872 tar cf archive file1 file2 file3 file4 file5 file6 file7 file8 file9 file10
10873 tar f archive --delete file10
10874 tar tf archive
10875 )"
10876 echo delete04.at:26 >"$at_check_line_file"
10877
10878 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
10879    false; }; then
10880   ( $at_traceon;
10881 mkdir v7
10882 (cd v7
10883 TEST_TAR_FORMAT=v7
10884 export TEST_TAR_FORMAT
10885 TAR_OPTIONS="-H v7"
10886 export TAR_OPTIONS
10887 rm -rf *
10888
10889 genfile -l      3 -f file1
10890 genfile -l      5 -f file2
10891 genfile -l      3 -f file3
10892 genfile -l      6 -f file4
10893 genfile -l     24 -f file5
10894 genfile -l     13 -f file6
10895 genfile -l   1385 -f file7
10896 genfile -l     30 -f file8
10897 genfile -l     10 -f file9
10898 genfile -l 256000 -f file10
10899 tar cf archive file1 file2 file3 file4 file5 file6 file7 file8 file9 file10
10900 tar f archive --delete file10
10901 tar tf archive
10902 ) ) >"$at_stdout" 2>"$at_stder1"
10903   at_func_filter_trace $?
10904 else
10905   ( :;
10906 mkdir v7
10907 (cd v7
10908 TEST_TAR_FORMAT=v7
10909 export TEST_TAR_FORMAT
10910 TAR_OPTIONS="-H v7"
10911 export TAR_OPTIONS
10912 rm -rf *
10913
10914 genfile -l      3 -f file1
10915 genfile -l      5 -f file2
10916 genfile -l      3 -f file3
10917 genfile -l      6 -f file4
10918 genfile -l     24 -f file5
10919 genfile -l     13 -f file6
10920 genfile -l   1385 -f file7
10921 genfile -l     30 -f file8
10922 genfile -l     10 -f file9
10923 genfile -l 256000 -f file10
10924 tar cf archive file1 file2 file3 file4 file5 file6 file7 file8 file9 file10
10925 tar f archive --delete file10
10926 tar tf archive
10927 ) ) >"$at_stdout" 2>"$at_stderr"
10928 fi
10929 at_status=$?
10930 at_failed=false
10931 at_func_diff_devnull "$at_stderr" || at_failed=:
10932 echo >>"$at_stdout"; $as_echo "file1
10933 file2
10934 file3
10935 file4
10936 file5
10937 file6
10938 file7
10939 file8
10940 file9
10941 " | \
10942   $at_diff - "$at_stdout" || at_failed=:
10943 at_func_check_status 0 $at_status "$at_srcdir/delete04.at:26"
10944
10945 $at_failed && at_func_log_failure
10946 $at_traceon; }
10947
10948               { $at_traceoff
10949 $as_echo "$at_srcdir/delete04.at:26:
10950 mkdir oldgnu
10951 (cd oldgnu
10952 TEST_TAR_FORMAT=oldgnu
10953 export TEST_TAR_FORMAT
10954 TAR_OPTIONS=\"-H oldgnu\"
10955 export TAR_OPTIONS
10956 rm -rf *
10957
10958 genfile -l      3 -f file1
10959 genfile -l      5 -f file2
10960 genfile -l      3 -f file3
10961 genfile -l      6 -f file4
10962 genfile -l     24 -f file5
10963 genfile -l     13 -f file6
10964 genfile -l   1385 -f file7
10965 genfile -l     30 -f file8
10966 genfile -l     10 -f file9
10967 genfile -l 256000 -f file10
10968 tar cf archive file1 file2 file3 file4 file5 file6 file7 file8 file9 file10
10969 tar f archive --delete file10
10970 tar tf archive
10971 )"
10972 echo delete04.at:26 >"$at_check_line_file"
10973
10974 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
10975    false; }; then
10976   ( $at_traceon;
10977 mkdir oldgnu
10978 (cd oldgnu
10979 TEST_TAR_FORMAT=oldgnu
10980 export TEST_TAR_FORMAT
10981 TAR_OPTIONS="-H oldgnu"
10982 export TAR_OPTIONS
10983 rm -rf *
10984
10985 genfile -l      3 -f file1
10986 genfile -l      5 -f file2
10987 genfile -l      3 -f file3
10988 genfile -l      6 -f file4
10989 genfile -l     24 -f file5
10990 genfile -l     13 -f file6
10991 genfile -l   1385 -f file7
10992 genfile -l     30 -f file8
10993 genfile -l     10 -f file9
10994 genfile -l 256000 -f file10
10995 tar cf archive file1 file2 file3 file4 file5 file6 file7 file8 file9 file10
10996 tar f archive --delete file10
10997 tar tf archive
10998 ) ) >"$at_stdout" 2>"$at_stder1"
10999   at_func_filter_trace $?
11000 else
11001   ( :;
11002 mkdir oldgnu
11003 (cd oldgnu
11004 TEST_TAR_FORMAT=oldgnu
11005 export TEST_TAR_FORMAT
11006 TAR_OPTIONS="-H oldgnu"
11007 export TAR_OPTIONS
11008 rm -rf *
11009
11010 genfile -l      3 -f file1
11011 genfile -l      5 -f file2
11012 genfile -l      3 -f file3
11013 genfile -l      6 -f file4
11014 genfile -l     24 -f file5
11015 genfile -l     13 -f file6
11016 genfile -l   1385 -f file7
11017 genfile -l     30 -f file8
11018 genfile -l     10 -f file9
11019 genfile -l 256000 -f file10
11020 tar cf archive file1 file2 file3 file4 file5 file6 file7 file8 file9 file10
11021 tar f archive --delete file10
11022 tar tf archive
11023 ) ) >"$at_stdout" 2>"$at_stderr"
11024 fi
11025 at_status=$?
11026 at_failed=false
11027 at_func_diff_devnull "$at_stderr" || at_failed=:
11028 echo >>"$at_stdout"; $as_echo "file1
11029 file2
11030 file3
11031 file4
11032 file5
11033 file6
11034 file7
11035 file8
11036 file9
11037 " | \
11038   $at_diff - "$at_stdout" || at_failed=:
11039 at_func_check_status 0 $at_status "$at_srcdir/delete04.at:26"
11040
11041 $at_failed && at_func_log_failure
11042 $at_traceon; }
11043
11044               { $at_traceoff
11045 $as_echo "$at_srcdir/delete04.at:26:
11046 mkdir ustar
11047 (cd ustar
11048 TEST_TAR_FORMAT=ustar
11049 export TEST_TAR_FORMAT
11050 TAR_OPTIONS=\"-H ustar\"
11051 export TAR_OPTIONS
11052 rm -rf *
11053
11054 genfile -l      3 -f file1
11055 genfile -l      5 -f file2
11056 genfile -l      3 -f file3
11057 genfile -l      6 -f file4
11058 genfile -l     24 -f file5
11059 genfile -l     13 -f file6
11060 genfile -l   1385 -f file7
11061 genfile -l     30 -f file8
11062 genfile -l     10 -f file9
11063 genfile -l 256000 -f file10
11064 tar cf archive file1 file2 file3 file4 file5 file6 file7 file8 file9 file10
11065 tar f archive --delete file10
11066 tar tf archive
11067 )"
11068 echo delete04.at:26 >"$at_check_line_file"
11069
11070 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
11071    false; }; then
11072   ( $at_traceon;
11073 mkdir ustar
11074 (cd ustar
11075 TEST_TAR_FORMAT=ustar
11076 export TEST_TAR_FORMAT
11077 TAR_OPTIONS="-H ustar"
11078 export TAR_OPTIONS
11079 rm -rf *
11080
11081 genfile -l      3 -f file1
11082 genfile -l      5 -f file2
11083 genfile -l      3 -f file3
11084 genfile -l      6 -f file4
11085 genfile -l     24 -f file5
11086 genfile -l     13 -f file6
11087 genfile -l   1385 -f file7
11088 genfile -l     30 -f file8
11089 genfile -l     10 -f file9
11090 genfile -l 256000 -f file10
11091 tar cf archive file1 file2 file3 file4 file5 file6 file7 file8 file9 file10
11092 tar f archive --delete file10
11093 tar tf archive
11094 ) ) >"$at_stdout" 2>"$at_stder1"
11095   at_func_filter_trace $?
11096 else
11097   ( :;
11098 mkdir ustar
11099 (cd ustar
11100 TEST_TAR_FORMAT=ustar
11101 export TEST_TAR_FORMAT
11102 TAR_OPTIONS="-H ustar"
11103 export TAR_OPTIONS
11104 rm -rf *
11105
11106 genfile -l      3 -f file1
11107 genfile -l      5 -f file2
11108 genfile -l      3 -f file3
11109 genfile -l      6 -f file4
11110 genfile -l     24 -f file5
11111 genfile -l     13 -f file6
11112 genfile -l   1385 -f file7
11113 genfile -l     30 -f file8
11114 genfile -l     10 -f file9
11115 genfile -l 256000 -f file10
11116 tar cf archive file1 file2 file3 file4 file5 file6 file7 file8 file9 file10
11117 tar f archive --delete file10
11118 tar tf archive
11119 ) ) >"$at_stdout" 2>"$at_stderr"
11120 fi
11121 at_status=$?
11122 at_failed=false
11123 at_func_diff_devnull "$at_stderr" || at_failed=:
11124 echo >>"$at_stdout"; $as_echo "file1
11125 file2
11126 file3
11127 file4
11128 file5
11129 file6
11130 file7
11131 file8
11132 file9
11133 " | \
11134   $at_diff - "$at_stdout" || at_failed=:
11135 at_func_check_status 0 $at_status "$at_srcdir/delete04.at:26"
11136
11137 $at_failed && at_func_log_failure
11138 $at_traceon; }
11139
11140               { $at_traceoff
11141 $as_echo "$at_srcdir/delete04.at:26:
11142 mkdir posix
11143 (cd posix
11144 TEST_TAR_FORMAT=posix
11145 export TEST_TAR_FORMAT
11146 TAR_OPTIONS=\"-H posix\"
11147 export TAR_OPTIONS
11148 rm -rf *
11149
11150 genfile -l      3 -f file1
11151 genfile -l      5 -f file2
11152 genfile -l      3 -f file3
11153 genfile -l      6 -f file4
11154 genfile -l     24 -f file5
11155 genfile -l     13 -f file6
11156 genfile -l   1385 -f file7
11157 genfile -l     30 -f file8
11158 genfile -l     10 -f file9
11159 genfile -l 256000 -f file10
11160 tar cf archive file1 file2 file3 file4 file5 file6 file7 file8 file9 file10
11161 tar f archive --delete file10
11162 tar tf archive
11163 )"
11164 echo delete04.at:26 >"$at_check_line_file"
11165
11166 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
11167    false; }; then
11168   ( $at_traceon;
11169 mkdir posix
11170 (cd posix
11171 TEST_TAR_FORMAT=posix
11172 export TEST_TAR_FORMAT
11173 TAR_OPTIONS="-H posix"
11174 export TAR_OPTIONS
11175 rm -rf *
11176
11177 genfile -l      3 -f file1
11178 genfile -l      5 -f file2
11179 genfile -l      3 -f file3
11180 genfile -l      6 -f file4
11181 genfile -l     24 -f file5
11182 genfile -l     13 -f file6
11183 genfile -l   1385 -f file7
11184 genfile -l     30 -f file8
11185 genfile -l     10 -f file9
11186 genfile -l 256000 -f file10
11187 tar cf archive file1 file2 file3 file4 file5 file6 file7 file8 file9 file10
11188 tar f archive --delete file10
11189 tar tf archive
11190 ) ) >"$at_stdout" 2>"$at_stder1"
11191   at_func_filter_trace $?
11192 else
11193   ( :;
11194 mkdir posix
11195 (cd posix
11196 TEST_TAR_FORMAT=posix
11197 export TEST_TAR_FORMAT
11198 TAR_OPTIONS="-H posix"
11199 export TAR_OPTIONS
11200 rm -rf *
11201
11202 genfile -l      3 -f file1
11203 genfile -l      5 -f file2
11204 genfile -l      3 -f file3
11205 genfile -l      6 -f file4
11206 genfile -l     24 -f file5
11207 genfile -l     13 -f file6
11208 genfile -l   1385 -f file7
11209 genfile -l     30 -f file8
11210 genfile -l     10 -f file9
11211 genfile -l 256000 -f file10
11212 tar cf archive file1 file2 file3 file4 file5 file6 file7 file8 file9 file10
11213 tar f archive --delete file10
11214 tar tf archive
11215 ) ) >"$at_stdout" 2>"$at_stderr"
11216 fi
11217 at_status=$?
11218 at_failed=false
11219 at_func_diff_devnull "$at_stderr" || at_failed=:
11220 echo >>"$at_stdout"; $as_echo "file1
11221 file2
11222 file3
11223 file4
11224 file5
11225 file6
11226 file7
11227 file8
11228 file9
11229 " | \
11230   $at_diff - "$at_stdout" || at_failed=:
11231 at_func_check_status 0 $at_status "$at_srcdir/delete04.at:26"
11232
11233 $at_failed && at_func_log_failure
11234 $at_traceon; }
11235
11236               { $at_traceoff
11237 $as_echo "$at_srcdir/delete04.at:26:
11238 mkdir gnu
11239 (cd gnu
11240 TEST_TAR_FORMAT=gnu
11241 export TEST_TAR_FORMAT
11242 TAR_OPTIONS=\"-H gnu\"
11243 export TAR_OPTIONS
11244 rm -rf *
11245
11246 genfile -l      3 -f file1
11247 genfile -l      5 -f file2
11248 genfile -l      3 -f file3
11249 genfile -l      6 -f file4
11250 genfile -l     24 -f file5
11251 genfile -l     13 -f file6
11252 genfile -l   1385 -f file7
11253 genfile -l     30 -f file8
11254 genfile -l     10 -f file9
11255 genfile -l 256000 -f file10
11256 tar cf archive file1 file2 file3 file4 file5 file6 file7 file8 file9 file10
11257 tar f archive --delete file10
11258 tar tf archive
11259 )"
11260 echo delete04.at:26 >"$at_check_line_file"
11261
11262 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
11263    false; }; then
11264   ( $at_traceon;
11265 mkdir gnu
11266 (cd gnu
11267 TEST_TAR_FORMAT=gnu
11268 export TEST_TAR_FORMAT
11269 TAR_OPTIONS="-H gnu"
11270 export TAR_OPTIONS
11271 rm -rf *
11272
11273 genfile -l      3 -f file1
11274 genfile -l      5 -f file2
11275 genfile -l      3 -f file3
11276 genfile -l      6 -f file4
11277 genfile -l     24 -f file5
11278 genfile -l     13 -f file6
11279 genfile -l   1385 -f file7
11280 genfile -l     30 -f file8
11281 genfile -l     10 -f file9
11282 genfile -l 256000 -f file10
11283 tar cf archive file1 file2 file3 file4 file5 file6 file7 file8 file9 file10
11284 tar f archive --delete file10
11285 tar tf archive
11286 ) ) >"$at_stdout" 2>"$at_stder1"
11287   at_func_filter_trace $?
11288 else
11289   ( :;
11290 mkdir gnu
11291 (cd gnu
11292 TEST_TAR_FORMAT=gnu
11293 export TEST_TAR_FORMAT
11294 TAR_OPTIONS="-H gnu"
11295 export TAR_OPTIONS
11296 rm -rf *
11297
11298 genfile -l      3 -f file1
11299 genfile -l      5 -f file2
11300 genfile -l      3 -f file3
11301 genfile -l      6 -f file4
11302 genfile -l     24 -f file5
11303 genfile -l     13 -f file6
11304 genfile -l   1385 -f file7
11305 genfile -l     30 -f file8
11306 genfile -l     10 -f file9
11307 genfile -l 256000 -f file10
11308 tar cf archive file1 file2 file3 file4 file5 file6 file7 file8 file9 file10
11309 tar f archive --delete file10
11310 tar tf archive
11311 ) ) >"$at_stdout" 2>"$at_stderr"
11312 fi
11313 at_status=$?
11314 at_failed=false
11315 at_func_diff_devnull "$at_stderr" || at_failed=:
11316 echo >>"$at_stdout"; $as_echo "file1
11317 file2
11318 file3
11319 file4
11320 file5
11321 file6
11322 file7
11323 file8
11324 file9
11325 " | \
11326   $at_diff - "$at_stdout" || at_failed=:
11327 at_func_check_status 0 $at_status "$at_srcdir/delete04.at:26"
11328
11329 $at_failed && at_func_log_failure
11330 $at_traceon; }
11331
11332
11333
11334
11335   $at_traceoff
11336   $at_times_p && times >"$at_times_file"
11337 ) 5>&1 2>&1 | eval $at_tee_pipe
11338 at_status=`cat "$at_status_file"`
11339 #AT_STOP_22
11340 #AT_START_23
11341 # 23. delete05.at:27: deleting non-existing member
11342 at_setup_line='delete05.at:27'
11343 at_desc="deleting non-existing member"
11344 $at_quiet $as_echo_n " 23: $at_desc                   "
11345 at_xfail=no
11346       test -f $XFAILFILE && at_xfail=yes
11347 echo "#                             -*- compilation -*-" >> "$at_group_log"
11348 (
11349   $as_echo "23. delete05.at:27: testing ..."
11350   $at_traceon
11351
11352
11353
11354
11355
11356   { $at_traceoff
11357 $as_echo "$at_srcdir/delete05.at:30:
11358 mkdir v7
11359 (cd v7
11360 TEST_TAR_FORMAT=v7
11361 export TEST_TAR_FORMAT
11362 TAR_OPTIONS=\"-H v7\"
11363 export TAR_OPTIONS
11364 rm -rf *
11365
11366 genfile -l 1024 -f en
11367 genfile -l 1024 -f to
11368
11369 tar cf archive en to
11370 # Make sure we don't use bogus blocking factor.
11371 # GNU tar up to and including 1.14.91 produced an empty archive this way:
11372 tar --file archive --blocking-factor=20 --delete tre
11373 tar tf archive
11374 )"
11375 echo delete05.at:30 >"$at_check_line_file"
11376
11377 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
11378    false; }; then
11379   ( $at_traceon;
11380 mkdir v7
11381 (cd v7
11382 TEST_TAR_FORMAT=v7
11383 export TEST_TAR_FORMAT
11384 TAR_OPTIONS="-H v7"
11385 export TAR_OPTIONS
11386 rm -rf *
11387
11388 genfile -l 1024 -f en
11389 genfile -l 1024 -f to
11390
11391 tar cf archive en to
11392 # Make sure we don't use bogus blocking factor.
11393 # GNU tar up to and including 1.14.91 produced an empty archive this way:
11394 tar --file archive --blocking-factor=20 --delete tre
11395 tar tf archive
11396 ) ) >"$at_stdout" 2>"$at_stder1"
11397   at_func_filter_trace $?
11398 else
11399   ( :;
11400 mkdir v7
11401 (cd v7
11402 TEST_TAR_FORMAT=v7
11403 export TEST_TAR_FORMAT
11404 TAR_OPTIONS="-H v7"
11405 export TAR_OPTIONS
11406 rm -rf *
11407
11408 genfile -l 1024 -f en
11409 genfile -l 1024 -f to
11410
11411 tar cf archive en to
11412 # Make sure we don't use bogus blocking factor.
11413 # GNU tar up to and including 1.14.91 produced an empty archive this way:
11414 tar --file archive --blocking-factor=20 --delete tre
11415 tar tf archive
11416 ) ) >"$at_stdout" 2>"$at_stderr"
11417 fi
11418 at_status=$?
11419 at_failed=false
11420 echo >>"$at_stderr"; $as_echo "tar: tre: Not found in archive
11421 tar: Exiting with failure status due to previous errors
11422 " | \
11423   $at_diff - "$at_stderr" || at_failed=:
11424 echo >>"$at_stdout"; $as_echo "en
11425 to
11426 " | \
11427   $at_diff - "$at_stdout" || at_failed=:
11428 at_func_check_status 0 $at_status "$at_srcdir/delete05.at:30"
11429
11430 $at_failed && at_func_log_failure
11431 $at_traceon; }
11432
11433               { $at_traceoff
11434 $as_echo "$at_srcdir/delete05.at:30:
11435 mkdir oldgnu
11436 (cd oldgnu
11437 TEST_TAR_FORMAT=oldgnu
11438 export TEST_TAR_FORMAT
11439 TAR_OPTIONS=\"-H oldgnu\"
11440 export TAR_OPTIONS
11441 rm -rf *
11442
11443 genfile -l 1024 -f en
11444 genfile -l 1024 -f to
11445
11446 tar cf archive en to
11447 # Make sure we don't use bogus blocking factor.
11448 # GNU tar up to and including 1.14.91 produced an empty archive this way:
11449 tar --file archive --blocking-factor=20 --delete tre
11450 tar tf archive
11451 )"
11452 echo delete05.at:30 >"$at_check_line_file"
11453
11454 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
11455    false; }; then
11456   ( $at_traceon;
11457 mkdir oldgnu
11458 (cd oldgnu
11459 TEST_TAR_FORMAT=oldgnu
11460 export TEST_TAR_FORMAT
11461 TAR_OPTIONS="-H oldgnu"
11462 export TAR_OPTIONS
11463 rm -rf *
11464
11465 genfile -l 1024 -f en
11466 genfile -l 1024 -f to
11467
11468 tar cf archive en to
11469 # Make sure we don't use bogus blocking factor.
11470 # GNU tar up to and including 1.14.91 produced an empty archive this way:
11471 tar --file archive --blocking-factor=20 --delete tre
11472 tar tf archive
11473 ) ) >"$at_stdout" 2>"$at_stder1"
11474   at_func_filter_trace $?
11475 else
11476   ( :;
11477 mkdir oldgnu
11478 (cd oldgnu
11479 TEST_TAR_FORMAT=oldgnu
11480 export TEST_TAR_FORMAT
11481 TAR_OPTIONS="-H oldgnu"
11482 export TAR_OPTIONS
11483 rm -rf *
11484
11485 genfile -l 1024 -f en
11486 genfile -l 1024 -f to
11487
11488 tar cf archive en to
11489 # Make sure we don't use bogus blocking factor.
11490 # GNU tar up to and including 1.14.91 produced an empty archive this way:
11491 tar --file archive --blocking-factor=20 --delete tre
11492 tar tf archive
11493 ) ) >"$at_stdout" 2>"$at_stderr"
11494 fi
11495 at_status=$?
11496 at_failed=false
11497 echo >>"$at_stderr"; $as_echo "tar: tre: Not found in archive
11498 tar: Exiting with failure status due to previous errors
11499 " | \
11500   $at_diff - "$at_stderr" || at_failed=:
11501 echo >>"$at_stdout"; $as_echo "en
11502 to
11503 " | \
11504   $at_diff - "$at_stdout" || at_failed=:
11505 at_func_check_status 0 $at_status "$at_srcdir/delete05.at:30"
11506
11507 $at_failed && at_func_log_failure
11508 $at_traceon; }
11509
11510               { $at_traceoff
11511 $as_echo "$at_srcdir/delete05.at:30:
11512 mkdir ustar
11513 (cd ustar
11514 TEST_TAR_FORMAT=ustar
11515 export TEST_TAR_FORMAT
11516 TAR_OPTIONS=\"-H ustar\"
11517 export TAR_OPTIONS
11518 rm -rf *
11519
11520 genfile -l 1024 -f en
11521 genfile -l 1024 -f to
11522
11523 tar cf archive en to
11524 # Make sure we don't use bogus blocking factor.
11525 # GNU tar up to and including 1.14.91 produced an empty archive this way:
11526 tar --file archive --blocking-factor=20 --delete tre
11527 tar tf archive
11528 )"
11529 echo delete05.at:30 >"$at_check_line_file"
11530
11531 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
11532    false; }; then
11533   ( $at_traceon;
11534 mkdir ustar
11535 (cd ustar
11536 TEST_TAR_FORMAT=ustar
11537 export TEST_TAR_FORMAT
11538 TAR_OPTIONS="-H ustar"
11539 export TAR_OPTIONS
11540 rm -rf *
11541
11542 genfile -l 1024 -f en
11543 genfile -l 1024 -f to
11544
11545 tar cf archive en to
11546 # Make sure we don't use bogus blocking factor.
11547 # GNU tar up to and including 1.14.91 produced an empty archive this way:
11548 tar --file archive --blocking-factor=20 --delete tre
11549 tar tf archive
11550 ) ) >"$at_stdout" 2>"$at_stder1"
11551   at_func_filter_trace $?
11552 else
11553   ( :;
11554 mkdir ustar
11555 (cd ustar
11556 TEST_TAR_FORMAT=ustar
11557 export TEST_TAR_FORMAT
11558 TAR_OPTIONS="-H ustar"
11559 export TAR_OPTIONS
11560 rm -rf *
11561
11562 genfile -l 1024 -f en
11563 genfile -l 1024 -f to
11564
11565 tar cf archive en to
11566 # Make sure we don't use bogus blocking factor.
11567 # GNU tar up to and including 1.14.91 produced an empty archive this way:
11568 tar --file archive --blocking-factor=20 --delete tre
11569 tar tf archive
11570 ) ) >"$at_stdout" 2>"$at_stderr"
11571 fi
11572 at_status=$?
11573 at_failed=false
11574 echo >>"$at_stderr"; $as_echo "tar: tre: Not found in archive
11575 tar: Exiting with failure status due to previous errors
11576 " | \
11577   $at_diff - "$at_stderr" || at_failed=:
11578 echo >>"$at_stdout"; $as_echo "en
11579 to
11580 " | \
11581   $at_diff - "$at_stdout" || at_failed=:
11582 at_func_check_status 0 $at_status "$at_srcdir/delete05.at:30"
11583
11584 $at_failed && at_func_log_failure
11585 $at_traceon; }
11586
11587               { $at_traceoff
11588 $as_echo "$at_srcdir/delete05.at:30:
11589 mkdir posix
11590 (cd posix
11591 TEST_TAR_FORMAT=posix
11592 export TEST_TAR_FORMAT
11593 TAR_OPTIONS=\"-H posix\"
11594 export TAR_OPTIONS
11595 rm -rf *
11596
11597 genfile -l 1024 -f en
11598 genfile -l 1024 -f to
11599
11600 tar cf archive en to
11601 # Make sure we don't use bogus blocking factor.
11602 # GNU tar up to and including 1.14.91 produced an empty archive this way:
11603 tar --file archive --blocking-factor=20 --delete tre
11604 tar tf archive
11605 )"
11606 echo delete05.at:30 >"$at_check_line_file"
11607
11608 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
11609    false; }; then
11610   ( $at_traceon;
11611 mkdir posix
11612 (cd posix
11613 TEST_TAR_FORMAT=posix
11614 export TEST_TAR_FORMAT
11615 TAR_OPTIONS="-H posix"
11616 export TAR_OPTIONS
11617 rm -rf *
11618
11619 genfile -l 1024 -f en
11620 genfile -l 1024 -f to
11621
11622 tar cf archive en to
11623 # Make sure we don't use bogus blocking factor.
11624 # GNU tar up to and including 1.14.91 produced an empty archive this way:
11625 tar --file archive --blocking-factor=20 --delete tre
11626 tar tf archive
11627 ) ) >"$at_stdout" 2>"$at_stder1"
11628   at_func_filter_trace $?
11629 else
11630   ( :;
11631 mkdir posix
11632 (cd posix
11633 TEST_TAR_FORMAT=posix
11634 export TEST_TAR_FORMAT
11635 TAR_OPTIONS="-H posix"
11636 export TAR_OPTIONS
11637 rm -rf *
11638
11639 genfile -l 1024 -f en
11640 genfile -l 1024 -f to
11641
11642 tar cf archive en to
11643 # Make sure we don't use bogus blocking factor.
11644 # GNU tar up to and including 1.14.91 produced an empty archive this way:
11645 tar --file archive --blocking-factor=20 --delete tre
11646 tar tf archive
11647 ) ) >"$at_stdout" 2>"$at_stderr"
11648 fi
11649 at_status=$?
11650 at_failed=false
11651 echo >>"$at_stderr"; $as_echo "tar: tre: Not found in archive
11652 tar: Exiting with failure status due to previous errors
11653 " | \
11654   $at_diff - "$at_stderr" || at_failed=:
11655 echo >>"$at_stdout"; $as_echo "en
11656 to
11657 " | \
11658   $at_diff - "$at_stdout" || at_failed=:
11659 at_func_check_status 0 $at_status "$at_srcdir/delete05.at:30"
11660
11661 $at_failed && at_func_log_failure
11662 $at_traceon; }
11663
11664               { $at_traceoff
11665 $as_echo "$at_srcdir/delete05.at:30:
11666 mkdir gnu
11667 (cd gnu
11668 TEST_TAR_FORMAT=gnu
11669 export TEST_TAR_FORMAT
11670 TAR_OPTIONS=\"-H gnu\"
11671 export TAR_OPTIONS
11672 rm -rf *
11673
11674 genfile -l 1024 -f en
11675 genfile -l 1024 -f to
11676
11677 tar cf archive en to
11678 # Make sure we don't use bogus blocking factor.
11679 # GNU tar up to and including 1.14.91 produced an empty archive this way:
11680 tar --file archive --blocking-factor=20 --delete tre
11681 tar tf archive
11682 )"
11683 echo delete05.at:30 >"$at_check_line_file"
11684
11685 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
11686    false; }; then
11687   ( $at_traceon;
11688 mkdir gnu
11689 (cd gnu
11690 TEST_TAR_FORMAT=gnu
11691 export TEST_TAR_FORMAT
11692 TAR_OPTIONS="-H gnu"
11693 export TAR_OPTIONS
11694 rm -rf *
11695
11696 genfile -l 1024 -f en
11697 genfile -l 1024 -f to
11698
11699 tar cf archive en to
11700 # Make sure we don't use bogus blocking factor.
11701 # GNU tar up to and including 1.14.91 produced an empty archive this way:
11702 tar --file archive --blocking-factor=20 --delete tre
11703 tar tf archive
11704 ) ) >"$at_stdout" 2>"$at_stder1"
11705   at_func_filter_trace $?
11706 else
11707   ( :;
11708 mkdir gnu
11709 (cd gnu
11710 TEST_TAR_FORMAT=gnu
11711 export TEST_TAR_FORMAT
11712 TAR_OPTIONS="-H gnu"
11713 export TAR_OPTIONS
11714 rm -rf *
11715
11716 genfile -l 1024 -f en
11717 genfile -l 1024 -f to
11718
11719 tar cf archive en to
11720 # Make sure we don't use bogus blocking factor.
11721 # GNU tar up to and including 1.14.91 produced an empty archive this way:
11722 tar --file archive --blocking-factor=20 --delete tre
11723 tar tf archive
11724 ) ) >"$at_stdout" 2>"$at_stderr"
11725 fi
11726 at_status=$?
11727 at_failed=false
11728 echo >>"$at_stderr"; $as_echo "tar: tre: Not found in archive
11729 tar: Exiting with failure status due to previous errors
11730 " | \
11731   $at_diff - "$at_stderr" || at_failed=:
11732 echo >>"$at_stdout"; $as_echo "en
11733 to
11734 " | \
11735   $at_diff - "$at_stdout" || at_failed=:
11736 at_func_check_status 0 $at_status "$at_srcdir/delete05.at:30"
11737
11738 $at_failed && at_func_log_failure
11739 $at_traceon; }
11740
11741
11742
11743
11744   $at_traceoff
11745   $at_times_p && times >"$at_times_file"
11746 ) 5>&1 2>&1 | eval $at_tee_pipe
11747 at_status=`cat "$at_status_file"`
11748 #AT_STOP_23
11749 #AT_START_24
11750 # 24. extrac01.at:23: extract over an existing directory
11751 at_setup_line='extrac01.at:23'
11752 at_desc="extract over an existing directory"
11753 $at_quiet $as_echo_n " 24: $at_desc             "
11754 at_xfail=no
11755       test -f $XFAILFILE && at_xfail=yes
11756 echo "#                             -*- compilation -*-" >> "$at_group_log"
11757 (
11758   $as_echo "24. extrac01.at:23: testing ..."
11759   $at_traceon
11760
11761
11762
11763
11764
11765   { $at_traceoff
11766 $as_echo "$at_srcdir/extrac01.at:26:
11767 mkdir v7
11768 (cd v7
11769 TEST_TAR_FORMAT=v7
11770 export TEST_TAR_FORMAT
11771 TAR_OPTIONS=\"-H v7\"
11772 export TAR_OPTIONS
11773 rm -rf *
11774
11775 mkdir directory
11776 touch directory/file
11777 tar cf archive directory || exit 1
11778 tar xf archive || exit 1
11779 )"
11780 echo extrac01.at:26 >"$at_check_line_file"
11781
11782 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
11783    false; }; then
11784   ( $at_traceon;
11785 mkdir v7
11786 (cd v7
11787 TEST_TAR_FORMAT=v7
11788 export TEST_TAR_FORMAT
11789 TAR_OPTIONS="-H v7"
11790 export TAR_OPTIONS
11791 rm -rf *
11792
11793 mkdir directory
11794 touch directory/file
11795 tar cf archive directory || exit 1
11796 tar xf archive || exit 1
11797 ) ) >"$at_stdout" 2>"$at_stder1"
11798   at_func_filter_trace $?
11799 else
11800   ( :;
11801 mkdir v7
11802 (cd v7
11803 TEST_TAR_FORMAT=v7
11804 export TEST_TAR_FORMAT
11805 TAR_OPTIONS="-H v7"
11806 export TAR_OPTIONS
11807 rm -rf *
11808
11809 mkdir directory
11810 touch directory/file
11811 tar cf archive directory || exit 1
11812 tar xf archive || exit 1
11813 ) ) >"$at_stdout" 2>"$at_stderr"
11814 fi
11815 at_status=$?
11816 at_failed=false
11817 at_func_diff_devnull "$at_stderr" || at_failed=:
11818 at_func_diff_devnull "$at_stdout" || at_failed=:
11819 at_func_check_status 0 $at_status "$at_srcdir/extrac01.at:26"
11820
11821 $at_failed && at_func_log_failure
11822 $at_traceon; }
11823
11824               { $at_traceoff
11825 $as_echo "$at_srcdir/extrac01.at:26:
11826 mkdir oldgnu
11827 (cd oldgnu
11828 TEST_TAR_FORMAT=oldgnu
11829 export TEST_TAR_FORMAT
11830 TAR_OPTIONS=\"-H oldgnu\"
11831 export TAR_OPTIONS
11832 rm -rf *
11833
11834 mkdir directory
11835 touch directory/file
11836 tar cf archive directory || exit 1
11837 tar xf archive || exit 1
11838 )"
11839 echo extrac01.at:26 >"$at_check_line_file"
11840
11841 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
11842    false; }; then
11843   ( $at_traceon;
11844 mkdir oldgnu
11845 (cd oldgnu
11846 TEST_TAR_FORMAT=oldgnu
11847 export TEST_TAR_FORMAT
11848 TAR_OPTIONS="-H oldgnu"
11849 export TAR_OPTIONS
11850 rm -rf *
11851
11852 mkdir directory
11853 touch directory/file
11854 tar cf archive directory || exit 1
11855 tar xf archive || exit 1
11856 ) ) >"$at_stdout" 2>"$at_stder1"
11857   at_func_filter_trace $?
11858 else
11859   ( :;
11860 mkdir oldgnu
11861 (cd oldgnu
11862 TEST_TAR_FORMAT=oldgnu
11863 export TEST_TAR_FORMAT
11864 TAR_OPTIONS="-H oldgnu"
11865 export TAR_OPTIONS
11866 rm -rf *
11867
11868 mkdir directory
11869 touch directory/file
11870 tar cf archive directory || exit 1
11871 tar xf archive || exit 1
11872 ) ) >"$at_stdout" 2>"$at_stderr"
11873 fi
11874 at_status=$?
11875 at_failed=false
11876 at_func_diff_devnull "$at_stderr" || at_failed=:
11877 at_func_diff_devnull "$at_stdout" || at_failed=:
11878 at_func_check_status 0 $at_status "$at_srcdir/extrac01.at:26"
11879
11880 $at_failed && at_func_log_failure
11881 $at_traceon; }
11882
11883               { $at_traceoff
11884 $as_echo "$at_srcdir/extrac01.at:26:
11885 mkdir ustar
11886 (cd ustar
11887 TEST_TAR_FORMAT=ustar
11888 export TEST_TAR_FORMAT
11889 TAR_OPTIONS=\"-H ustar\"
11890 export TAR_OPTIONS
11891 rm -rf *
11892
11893 mkdir directory
11894 touch directory/file
11895 tar cf archive directory || exit 1
11896 tar xf archive || exit 1
11897 )"
11898 echo extrac01.at:26 >"$at_check_line_file"
11899
11900 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
11901    false; }; then
11902   ( $at_traceon;
11903 mkdir ustar
11904 (cd ustar
11905 TEST_TAR_FORMAT=ustar
11906 export TEST_TAR_FORMAT
11907 TAR_OPTIONS="-H ustar"
11908 export TAR_OPTIONS
11909 rm -rf *
11910
11911 mkdir directory
11912 touch directory/file
11913 tar cf archive directory || exit 1
11914 tar xf archive || exit 1
11915 ) ) >"$at_stdout" 2>"$at_stder1"
11916   at_func_filter_trace $?
11917 else
11918   ( :;
11919 mkdir ustar
11920 (cd ustar
11921 TEST_TAR_FORMAT=ustar
11922 export TEST_TAR_FORMAT
11923 TAR_OPTIONS="-H ustar"
11924 export TAR_OPTIONS
11925 rm -rf *
11926
11927 mkdir directory
11928 touch directory/file
11929 tar cf archive directory || exit 1
11930 tar xf archive || exit 1
11931 ) ) >"$at_stdout" 2>"$at_stderr"
11932 fi
11933 at_status=$?
11934 at_failed=false
11935 at_func_diff_devnull "$at_stderr" || at_failed=:
11936 at_func_diff_devnull "$at_stdout" || at_failed=:
11937 at_func_check_status 0 $at_status "$at_srcdir/extrac01.at:26"
11938
11939 $at_failed && at_func_log_failure
11940 $at_traceon; }
11941
11942               { $at_traceoff
11943 $as_echo "$at_srcdir/extrac01.at:26:
11944 mkdir posix
11945 (cd posix
11946 TEST_TAR_FORMAT=posix
11947 export TEST_TAR_FORMAT
11948 TAR_OPTIONS=\"-H posix\"
11949 export TAR_OPTIONS
11950 rm -rf *
11951
11952 mkdir directory
11953 touch directory/file
11954 tar cf archive directory || exit 1
11955 tar xf archive || exit 1
11956 )"
11957 echo extrac01.at:26 >"$at_check_line_file"
11958
11959 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
11960    false; }; then
11961   ( $at_traceon;
11962 mkdir posix
11963 (cd posix
11964 TEST_TAR_FORMAT=posix
11965 export TEST_TAR_FORMAT
11966 TAR_OPTIONS="-H posix"
11967 export TAR_OPTIONS
11968 rm -rf *
11969
11970 mkdir directory
11971 touch directory/file
11972 tar cf archive directory || exit 1
11973 tar xf archive || exit 1
11974 ) ) >"$at_stdout" 2>"$at_stder1"
11975   at_func_filter_trace $?
11976 else
11977   ( :;
11978 mkdir posix
11979 (cd posix
11980 TEST_TAR_FORMAT=posix
11981 export TEST_TAR_FORMAT
11982 TAR_OPTIONS="-H posix"
11983 export TAR_OPTIONS
11984 rm -rf *
11985
11986 mkdir directory
11987 touch directory/file
11988 tar cf archive directory || exit 1
11989 tar xf archive || exit 1
11990 ) ) >"$at_stdout" 2>"$at_stderr"
11991 fi
11992 at_status=$?
11993 at_failed=false
11994 at_func_diff_devnull "$at_stderr" || at_failed=:
11995 at_func_diff_devnull "$at_stdout" || at_failed=:
11996 at_func_check_status 0 $at_status "$at_srcdir/extrac01.at:26"
11997
11998 $at_failed && at_func_log_failure
11999 $at_traceon; }
12000
12001               { $at_traceoff
12002 $as_echo "$at_srcdir/extrac01.at:26:
12003 mkdir gnu
12004 (cd gnu
12005 TEST_TAR_FORMAT=gnu
12006 export TEST_TAR_FORMAT
12007 TAR_OPTIONS=\"-H gnu\"
12008 export TAR_OPTIONS
12009 rm -rf *
12010
12011 mkdir directory
12012 touch directory/file
12013 tar cf archive directory || exit 1
12014 tar xf archive || exit 1
12015 )"
12016 echo extrac01.at:26 >"$at_check_line_file"
12017
12018 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
12019    false; }; then
12020   ( $at_traceon;
12021 mkdir gnu
12022 (cd gnu
12023 TEST_TAR_FORMAT=gnu
12024 export TEST_TAR_FORMAT
12025 TAR_OPTIONS="-H gnu"
12026 export TAR_OPTIONS
12027 rm -rf *
12028
12029 mkdir directory
12030 touch directory/file
12031 tar cf archive directory || exit 1
12032 tar xf archive || exit 1
12033 ) ) >"$at_stdout" 2>"$at_stder1"
12034   at_func_filter_trace $?
12035 else
12036   ( :;
12037 mkdir gnu
12038 (cd gnu
12039 TEST_TAR_FORMAT=gnu
12040 export TEST_TAR_FORMAT
12041 TAR_OPTIONS="-H gnu"
12042 export TAR_OPTIONS
12043 rm -rf *
12044
12045 mkdir directory
12046 touch directory/file
12047 tar cf archive directory || exit 1
12048 tar xf archive || exit 1
12049 ) ) >"$at_stdout" 2>"$at_stderr"
12050 fi
12051 at_status=$?
12052 at_failed=false
12053 at_func_diff_devnull "$at_stderr" || at_failed=:
12054 at_func_diff_devnull "$at_stdout" || at_failed=:
12055 at_func_check_status 0 $at_status "$at_srcdir/extrac01.at:26"
12056
12057 $at_failed && at_func_log_failure
12058 $at_traceon; }
12059
12060
12061
12062
12063   $at_traceoff
12064   $at_times_p && times >"$at_times_file"
12065 ) 5>&1 2>&1 | eval $at_tee_pipe
12066 at_status=`cat "$at_status_file"`
12067 #AT_STOP_24
12068 #AT_START_25
12069 # 25. extrac02.at:23: extracting symlinks over an existing file
12070 at_setup_line='extrac02.at:23'
12071 at_desc="extracting symlinks over an existing file"
12072 $at_quiet $as_echo_n " 25: $at_desc      "
12073 at_xfail=no
12074       test -f $XFAILFILE && at_xfail=yes
12075 echo "#                             -*- compilation -*-" >> "$at_group_log"
12076 (
12077   $as_echo "25. extrac02.at:23: testing ..."
12078   $at_traceon
12079
12080
12081
12082 # FIXME: Skip if symlinks are not supported on the system
12083
12084
12085
12086   { $at_traceoff
12087 $as_echo "$at_srcdir/extrac02.at:28:
12088 mkdir v7
12089 (cd v7
12090 TEST_TAR_FORMAT=v7
12091 export TEST_TAR_FORMAT
12092 TAR_OPTIONS=\"-H v7\"
12093 export TAR_OPTIONS
12094 rm -rf *
12095
12096 touch file
12097 ln -s file link 2> /dev/null || ln file link
12098 tar cf archive link
12099 rm link
12100 touch link
12101 tar xf archive
12102 )"
12103 echo extrac02.at:28 >"$at_check_line_file"
12104
12105 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
12106    false; }; then
12107   ( $at_traceon;
12108 mkdir v7
12109 (cd v7
12110 TEST_TAR_FORMAT=v7
12111 export TEST_TAR_FORMAT
12112 TAR_OPTIONS="-H v7"
12113 export TAR_OPTIONS
12114 rm -rf *
12115
12116 touch file
12117 ln -s file link 2> /dev/null || ln file link
12118 tar cf archive link
12119 rm link
12120 touch link
12121 tar xf archive
12122 ) ) >"$at_stdout" 2>"$at_stder1"
12123   at_func_filter_trace $?
12124 else
12125   ( :;
12126 mkdir v7
12127 (cd v7
12128 TEST_TAR_FORMAT=v7
12129 export TEST_TAR_FORMAT
12130 TAR_OPTIONS="-H v7"
12131 export TAR_OPTIONS
12132 rm -rf *
12133
12134 touch file
12135 ln -s file link 2> /dev/null || ln file link
12136 tar cf archive link
12137 rm link
12138 touch link
12139 tar xf archive
12140 ) ) >"$at_stdout" 2>"$at_stderr"
12141 fi
12142 at_status=$?
12143 at_failed=false
12144 at_func_diff_devnull "$at_stderr" || at_failed=:
12145 at_func_diff_devnull "$at_stdout" || at_failed=:
12146 at_func_check_status 0 $at_status "$at_srcdir/extrac02.at:28"
12147
12148 $at_failed && at_func_log_failure
12149 $at_traceon; }
12150
12151               { $at_traceoff
12152 $as_echo "$at_srcdir/extrac02.at:28:
12153 mkdir oldgnu
12154 (cd oldgnu
12155 TEST_TAR_FORMAT=oldgnu
12156 export TEST_TAR_FORMAT
12157 TAR_OPTIONS=\"-H oldgnu\"
12158 export TAR_OPTIONS
12159 rm -rf *
12160
12161 touch file
12162 ln -s file link 2> /dev/null || ln file link
12163 tar cf archive link
12164 rm link
12165 touch link
12166 tar xf archive
12167 )"
12168 echo extrac02.at:28 >"$at_check_line_file"
12169
12170 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
12171    false; }; then
12172   ( $at_traceon;
12173 mkdir oldgnu
12174 (cd oldgnu
12175 TEST_TAR_FORMAT=oldgnu
12176 export TEST_TAR_FORMAT
12177 TAR_OPTIONS="-H oldgnu"
12178 export TAR_OPTIONS
12179 rm -rf *
12180
12181 touch file
12182 ln -s file link 2> /dev/null || ln file link
12183 tar cf archive link
12184 rm link
12185 touch link
12186 tar xf archive
12187 ) ) >"$at_stdout" 2>"$at_stder1"
12188   at_func_filter_trace $?
12189 else
12190   ( :;
12191 mkdir oldgnu
12192 (cd oldgnu
12193 TEST_TAR_FORMAT=oldgnu
12194 export TEST_TAR_FORMAT
12195 TAR_OPTIONS="-H oldgnu"
12196 export TAR_OPTIONS
12197 rm -rf *
12198
12199 touch file
12200 ln -s file link 2> /dev/null || ln file link
12201 tar cf archive link
12202 rm link
12203 touch link
12204 tar xf archive
12205 ) ) >"$at_stdout" 2>"$at_stderr"
12206 fi
12207 at_status=$?
12208 at_failed=false
12209 at_func_diff_devnull "$at_stderr" || at_failed=:
12210 at_func_diff_devnull "$at_stdout" || at_failed=:
12211 at_func_check_status 0 $at_status "$at_srcdir/extrac02.at:28"
12212
12213 $at_failed && at_func_log_failure
12214 $at_traceon; }
12215
12216               { $at_traceoff
12217 $as_echo "$at_srcdir/extrac02.at:28:
12218 mkdir ustar
12219 (cd ustar
12220 TEST_TAR_FORMAT=ustar
12221 export TEST_TAR_FORMAT
12222 TAR_OPTIONS=\"-H ustar\"
12223 export TAR_OPTIONS
12224 rm -rf *
12225
12226 touch file
12227 ln -s file link 2> /dev/null || ln file link
12228 tar cf archive link
12229 rm link
12230 touch link
12231 tar xf archive
12232 )"
12233 echo extrac02.at:28 >"$at_check_line_file"
12234
12235 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
12236    false; }; then
12237   ( $at_traceon;
12238 mkdir ustar
12239 (cd ustar
12240 TEST_TAR_FORMAT=ustar
12241 export TEST_TAR_FORMAT
12242 TAR_OPTIONS="-H ustar"
12243 export TAR_OPTIONS
12244 rm -rf *
12245
12246 touch file
12247 ln -s file link 2> /dev/null || ln file link
12248 tar cf archive link
12249 rm link
12250 touch link
12251 tar xf archive
12252 ) ) >"$at_stdout" 2>"$at_stder1"
12253   at_func_filter_trace $?
12254 else
12255   ( :;
12256 mkdir ustar
12257 (cd ustar
12258 TEST_TAR_FORMAT=ustar
12259 export TEST_TAR_FORMAT
12260 TAR_OPTIONS="-H ustar"
12261 export TAR_OPTIONS
12262 rm -rf *
12263
12264 touch file
12265 ln -s file link 2> /dev/null || ln file link
12266 tar cf archive link
12267 rm link
12268 touch link
12269 tar xf archive
12270 ) ) >"$at_stdout" 2>"$at_stderr"
12271 fi
12272 at_status=$?
12273 at_failed=false
12274 at_func_diff_devnull "$at_stderr" || at_failed=:
12275 at_func_diff_devnull "$at_stdout" || at_failed=:
12276 at_func_check_status 0 $at_status "$at_srcdir/extrac02.at:28"
12277
12278 $at_failed && at_func_log_failure
12279 $at_traceon; }
12280
12281               { $at_traceoff
12282 $as_echo "$at_srcdir/extrac02.at:28:
12283 mkdir posix
12284 (cd posix
12285 TEST_TAR_FORMAT=posix
12286 export TEST_TAR_FORMAT
12287 TAR_OPTIONS=\"-H posix\"
12288 export TAR_OPTIONS
12289 rm -rf *
12290
12291 touch file
12292 ln -s file link 2> /dev/null || ln file link
12293 tar cf archive link
12294 rm link
12295 touch link
12296 tar xf archive
12297 )"
12298 echo extrac02.at:28 >"$at_check_line_file"
12299
12300 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
12301    false; }; then
12302   ( $at_traceon;
12303 mkdir posix
12304 (cd posix
12305 TEST_TAR_FORMAT=posix
12306 export TEST_TAR_FORMAT
12307 TAR_OPTIONS="-H posix"
12308 export TAR_OPTIONS
12309 rm -rf *
12310
12311 touch file
12312 ln -s file link 2> /dev/null || ln file link
12313 tar cf archive link
12314 rm link
12315 touch link
12316 tar xf archive
12317 ) ) >"$at_stdout" 2>"$at_stder1"
12318   at_func_filter_trace $?
12319 else
12320   ( :;
12321 mkdir posix
12322 (cd posix
12323 TEST_TAR_FORMAT=posix
12324 export TEST_TAR_FORMAT
12325 TAR_OPTIONS="-H posix"
12326 export TAR_OPTIONS
12327 rm -rf *
12328
12329 touch file
12330 ln -s file link 2> /dev/null || ln file link
12331 tar cf archive link
12332 rm link
12333 touch link
12334 tar xf archive
12335 ) ) >"$at_stdout" 2>"$at_stderr"
12336 fi
12337 at_status=$?
12338 at_failed=false
12339 at_func_diff_devnull "$at_stderr" || at_failed=:
12340 at_func_diff_devnull "$at_stdout" || at_failed=:
12341 at_func_check_status 0 $at_status "$at_srcdir/extrac02.at:28"
12342
12343 $at_failed && at_func_log_failure
12344 $at_traceon; }
12345
12346               { $at_traceoff
12347 $as_echo "$at_srcdir/extrac02.at:28:
12348 mkdir gnu
12349 (cd gnu
12350 TEST_TAR_FORMAT=gnu
12351 export TEST_TAR_FORMAT
12352 TAR_OPTIONS=\"-H gnu\"
12353 export TAR_OPTIONS
12354 rm -rf *
12355
12356 touch file
12357 ln -s file link 2> /dev/null || ln file link
12358 tar cf archive link
12359 rm link
12360 touch link
12361 tar xf archive
12362 )"
12363 echo extrac02.at:28 >"$at_check_line_file"
12364
12365 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
12366    false; }; then
12367   ( $at_traceon;
12368 mkdir gnu
12369 (cd gnu
12370 TEST_TAR_FORMAT=gnu
12371 export TEST_TAR_FORMAT
12372 TAR_OPTIONS="-H gnu"
12373 export TAR_OPTIONS
12374 rm -rf *
12375
12376 touch file
12377 ln -s file link 2> /dev/null || ln file link
12378 tar cf archive link
12379 rm link
12380 touch link
12381 tar xf archive
12382 ) ) >"$at_stdout" 2>"$at_stder1"
12383   at_func_filter_trace $?
12384 else
12385   ( :;
12386 mkdir gnu
12387 (cd gnu
12388 TEST_TAR_FORMAT=gnu
12389 export TEST_TAR_FORMAT
12390 TAR_OPTIONS="-H gnu"
12391 export TAR_OPTIONS
12392 rm -rf *
12393
12394 touch file
12395 ln -s file link 2> /dev/null || ln file link
12396 tar cf archive link
12397 rm link
12398 touch link
12399 tar xf archive
12400 ) ) >"$at_stdout" 2>"$at_stderr"
12401 fi
12402 at_status=$?
12403 at_failed=false
12404 at_func_diff_devnull "$at_stderr" || at_failed=:
12405 at_func_diff_devnull "$at_stdout" || at_failed=:
12406 at_func_check_status 0 $at_status "$at_srcdir/extrac02.at:28"
12407
12408 $at_failed && at_func_log_failure
12409 $at_traceon; }
12410
12411
12412
12413
12414   $at_traceoff
12415   $at_times_p && times >"$at_times_file"
12416 ) 5>&1 2>&1 | eval $at_tee_pipe
12417 at_status=`cat "$at_status_file"`
12418 #AT_STOP_25
12419 #AT_START_26
12420 # 26. extrac03.at:23: extraction loops
12421 at_setup_line='extrac03.at:23'
12422 at_desc="extraction loops"
12423 $at_quiet $as_echo_n " 26: $at_desc                               "
12424 at_xfail=no
12425       test -f $XFAILFILE && at_xfail=yes
12426 echo "#                             -*- compilation -*-" >> "$at_group_log"
12427 (
12428   $as_echo "26. extrac03.at:23: testing ..."
12429   $at_traceon
12430
12431
12432
12433
12434
12435   { $at_traceoff
12436 $as_echo "$at_srcdir/extrac03.at:26:
12437 mkdir v7
12438 (cd v7
12439 TEST_TAR_FORMAT=v7
12440 export TEST_TAR_FORMAT
12441 TAR_OPTIONS=\"-H v7\"
12442 export TAR_OPTIONS
12443 rm -rf *
12444
12445 mkdir directory
12446 tar -cPvf archive directory/../directory
12447 echo separator
12448 tar -xPvf archive)"
12449 echo extrac03.at:26 >"$at_check_line_file"
12450
12451 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
12452    false; }; then
12453   ( $at_traceon;
12454 mkdir v7
12455 (cd v7
12456 TEST_TAR_FORMAT=v7
12457 export TEST_TAR_FORMAT
12458 TAR_OPTIONS="-H v7"
12459 export TAR_OPTIONS
12460 rm -rf *
12461
12462 mkdir directory
12463 tar -cPvf archive directory/../directory
12464 echo separator
12465 tar -xPvf archive) ) >"$at_stdout" 2>"$at_stder1"
12466   at_func_filter_trace $?
12467 else
12468   ( :;
12469 mkdir v7
12470 (cd v7
12471 TEST_TAR_FORMAT=v7
12472 export TEST_TAR_FORMAT
12473 TAR_OPTIONS="-H v7"
12474 export TAR_OPTIONS
12475 rm -rf *
12476
12477 mkdir directory
12478 tar -cPvf archive directory/../directory
12479 echo separator
12480 tar -xPvf archive) ) >"$at_stdout" 2>"$at_stderr"
12481 fi
12482 at_status=$?
12483 at_failed=false
12484 at_func_diff_devnull "$at_stderr" || at_failed=:
12485 echo >>"$at_stdout"; $as_echo "directory/../directory/
12486 separator
12487 directory/../directory/
12488 " | \
12489   $at_diff - "$at_stdout" || at_failed=:
12490 at_func_check_status 0 $at_status "$at_srcdir/extrac03.at:26"
12491
12492 $at_failed && at_func_log_failure
12493 $at_traceon; }
12494
12495               { $at_traceoff
12496 $as_echo "$at_srcdir/extrac03.at:26:
12497 mkdir oldgnu
12498 (cd oldgnu
12499 TEST_TAR_FORMAT=oldgnu
12500 export TEST_TAR_FORMAT
12501 TAR_OPTIONS=\"-H oldgnu\"
12502 export TAR_OPTIONS
12503 rm -rf *
12504
12505 mkdir directory
12506 tar -cPvf archive directory/../directory
12507 echo separator
12508 tar -xPvf archive)"
12509 echo extrac03.at:26 >"$at_check_line_file"
12510
12511 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
12512    false; }; then
12513   ( $at_traceon;
12514 mkdir oldgnu
12515 (cd oldgnu
12516 TEST_TAR_FORMAT=oldgnu
12517 export TEST_TAR_FORMAT
12518 TAR_OPTIONS="-H oldgnu"
12519 export TAR_OPTIONS
12520 rm -rf *
12521
12522 mkdir directory
12523 tar -cPvf archive directory/../directory
12524 echo separator
12525 tar -xPvf archive) ) >"$at_stdout" 2>"$at_stder1"
12526   at_func_filter_trace $?
12527 else
12528   ( :;
12529 mkdir oldgnu
12530 (cd oldgnu
12531 TEST_TAR_FORMAT=oldgnu
12532 export TEST_TAR_FORMAT
12533 TAR_OPTIONS="-H oldgnu"
12534 export TAR_OPTIONS
12535 rm -rf *
12536
12537 mkdir directory
12538 tar -cPvf archive directory/../directory
12539 echo separator
12540 tar -xPvf archive) ) >"$at_stdout" 2>"$at_stderr"
12541 fi
12542 at_status=$?
12543 at_failed=false
12544 at_func_diff_devnull "$at_stderr" || at_failed=:
12545 echo >>"$at_stdout"; $as_echo "directory/../directory/
12546 separator
12547 directory/../directory/
12548 " | \
12549   $at_diff - "$at_stdout" || at_failed=:
12550 at_func_check_status 0 $at_status "$at_srcdir/extrac03.at:26"
12551
12552 $at_failed && at_func_log_failure
12553 $at_traceon; }
12554
12555               { $at_traceoff
12556 $as_echo "$at_srcdir/extrac03.at:26:
12557 mkdir ustar
12558 (cd ustar
12559 TEST_TAR_FORMAT=ustar
12560 export TEST_TAR_FORMAT
12561 TAR_OPTIONS=\"-H ustar\"
12562 export TAR_OPTIONS
12563 rm -rf *
12564
12565 mkdir directory
12566 tar -cPvf archive directory/../directory
12567 echo separator
12568 tar -xPvf archive)"
12569 echo extrac03.at:26 >"$at_check_line_file"
12570
12571 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
12572    false; }; then
12573   ( $at_traceon;
12574 mkdir ustar
12575 (cd ustar
12576 TEST_TAR_FORMAT=ustar
12577 export TEST_TAR_FORMAT
12578 TAR_OPTIONS="-H ustar"
12579 export TAR_OPTIONS
12580 rm -rf *
12581
12582 mkdir directory
12583 tar -cPvf archive directory/../directory
12584 echo separator
12585 tar -xPvf archive) ) >"$at_stdout" 2>"$at_stder1"
12586   at_func_filter_trace $?
12587 else
12588   ( :;
12589 mkdir ustar
12590 (cd ustar
12591 TEST_TAR_FORMAT=ustar
12592 export TEST_TAR_FORMAT
12593 TAR_OPTIONS="-H ustar"
12594 export TAR_OPTIONS
12595 rm -rf *
12596
12597 mkdir directory
12598 tar -cPvf archive directory/../directory
12599 echo separator
12600 tar -xPvf archive) ) >"$at_stdout" 2>"$at_stderr"
12601 fi
12602 at_status=$?
12603 at_failed=false
12604 at_func_diff_devnull "$at_stderr" || at_failed=:
12605 echo >>"$at_stdout"; $as_echo "directory/../directory/
12606 separator
12607 directory/../directory/
12608 " | \
12609   $at_diff - "$at_stdout" || at_failed=:
12610 at_func_check_status 0 $at_status "$at_srcdir/extrac03.at:26"
12611
12612 $at_failed && at_func_log_failure
12613 $at_traceon; }
12614
12615               { $at_traceoff
12616 $as_echo "$at_srcdir/extrac03.at:26:
12617 mkdir posix
12618 (cd posix
12619 TEST_TAR_FORMAT=posix
12620 export TEST_TAR_FORMAT
12621 TAR_OPTIONS=\"-H posix\"
12622 export TAR_OPTIONS
12623 rm -rf *
12624
12625 mkdir directory
12626 tar -cPvf archive directory/../directory
12627 echo separator
12628 tar -xPvf archive)"
12629 echo extrac03.at:26 >"$at_check_line_file"
12630
12631 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
12632    false; }; then
12633   ( $at_traceon;
12634 mkdir posix
12635 (cd posix
12636 TEST_TAR_FORMAT=posix
12637 export TEST_TAR_FORMAT
12638 TAR_OPTIONS="-H posix"
12639 export TAR_OPTIONS
12640 rm -rf *
12641
12642 mkdir directory
12643 tar -cPvf archive directory/../directory
12644 echo separator
12645 tar -xPvf archive) ) >"$at_stdout" 2>"$at_stder1"
12646   at_func_filter_trace $?
12647 else
12648   ( :;
12649 mkdir posix
12650 (cd posix
12651 TEST_TAR_FORMAT=posix
12652 export TEST_TAR_FORMAT
12653 TAR_OPTIONS="-H posix"
12654 export TAR_OPTIONS
12655 rm -rf *
12656
12657 mkdir directory
12658 tar -cPvf archive directory/../directory
12659 echo separator
12660 tar -xPvf archive) ) >"$at_stdout" 2>"$at_stderr"
12661 fi
12662 at_status=$?
12663 at_failed=false
12664 at_func_diff_devnull "$at_stderr" || at_failed=:
12665 echo >>"$at_stdout"; $as_echo "directory/../directory/
12666 separator
12667 directory/../directory/
12668 " | \
12669   $at_diff - "$at_stdout" || at_failed=:
12670 at_func_check_status 0 $at_status "$at_srcdir/extrac03.at:26"
12671
12672 $at_failed && at_func_log_failure
12673 $at_traceon; }
12674
12675               { $at_traceoff
12676 $as_echo "$at_srcdir/extrac03.at:26:
12677 mkdir gnu
12678 (cd gnu
12679 TEST_TAR_FORMAT=gnu
12680 export TEST_TAR_FORMAT
12681 TAR_OPTIONS=\"-H gnu\"
12682 export TAR_OPTIONS
12683 rm -rf *
12684
12685 mkdir directory
12686 tar -cPvf archive directory/../directory
12687 echo separator
12688 tar -xPvf archive)"
12689 echo extrac03.at:26 >"$at_check_line_file"
12690
12691 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
12692    false; }; then
12693   ( $at_traceon;
12694 mkdir gnu
12695 (cd gnu
12696 TEST_TAR_FORMAT=gnu
12697 export TEST_TAR_FORMAT
12698 TAR_OPTIONS="-H gnu"
12699 export TAR_OPTIONS
12700 rm -rf *
12701
12702 mkdir directory
12703 tar -cPvf archive directory/../directory
12704 echo separator
12705 tar -xPvf archive) ) >"$at_stdout" 2>"$at_stder1"
12706   at_func_filter_trace $?
12707 else
12708   ( :;
12709 mkdir gnu
12710 (cd gnu
12711 TEST_TAR_FORMAT=gnu
12712 export TEST_TAR_FORMAT
12713 TAR_OPTIONS="-H gnu"
12714 export TAR_OPTIONS
12715 rm -rf *
12716
12717 mkdir directory
12718 tar -cPvf archive directory/../directory
12719 echo separator
12720 tar -xPvf archive) ) >"$at_stdout" 2>"$at_stderr"
12721 fi
12722 at_status=$?
12723 at_failed=false
12724 at_func_diff_devnull "$at_stderr" || at_failed=:
12725 echo >>"$at_stdout"; $as_echo "directory/../directory/
12726 separator
12727 directory/../directory/
12728 " | \
12729   $at_diff - "$at_stdout" || at_failed=:
12730 at_func_check_status 0 $at_status "$at_srcdir/extrac03.at:26"
12731
12732 $at_failed && at_func_log_failure
12733 $at_traceon; }
12734
12735
12736
12737
12738   $at_traceoff
12739   $at_times_p && times >"$at_times_file"
12740 ) 5>&1 2>&1 | eval $at_tee_pipe
12741 at_status=`cat "$at_status_file"`
12742 #AT_STOP_26
12743 #AT_START_27
12744 # 27. extrac04.at:23: extract + fnmatch
12745 at_setup_line='extrac04.at:23'
12746 at_desc="extract + fnmatch"
12747 $at_quiet $as_echo_n " 27: $at_desc                              "
12748 at_xfail=no
12749       test -f $XFAILFILE && at_xfail=yes
12750 echo "#                             -*- compilation -*-" >> "$at_group_log"
12751 (
12752   $as_echo "27. extrac04.at:23: testing ..."
12753   $at_traceon
12754
12755
12756
12757
12758
12759   { $at_traceoff
12760 $as_echo "$at_srcdir/extrac04.at:26:
12761 mkdir v7
12762 (cd v7
12763 TEST_TAR_FORMAT=v7
12764 export TEST_TAR_FORMAT
12765 TAR_OPTIONS=\"-H v7\"
12766 export TAR_OPTIONS
12767 rm -rf *
12768
12769
12770 test -z "`sort < /dev/null 2>&1`" || exit 77
12771
12772 touch file1
12773 mkdir directory
12774 mkdir directory/subdirectory
12775 touch directory/file1
12776 touch directory/file2
12777 touch directory/subdirectory/file1
12778 touch directory/subdirectory/file2
12779 tar -cf archive ./file1 directory
12780 tar -tf archive \\
12781   --exclude='./*1' \\
12782   --exclude='d*/*1' \\
12783   --exclude='d*/s*/*2' | sort
12784 )"
12785 echo extrac04.at:26 >"$at_check_line_file"
12786
12787 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
12788    false; }; then
12789   ( $at_traceon;
12790 mkdir v7
12791 (cd v7
12792 TEST_TAR_FORMAT=v7
12793 export TEST_TAR_FORMAT
12794 TAR_OPTIONS="-H v7"
12795 export TAR_OPTIONS
12796 rm -rf *
12797
12798
12799 test -z "`sort < /dev/null 2>&1`" || exit 77
12800
12801 touch file1
12802 mkdir directory
12803 mkdir directory/subdirectory
12804 touch directory/file1
12805 touch directory/file2
12806 touch directory/subdirectory/file1
12807 touch directory/subdirectory/file2
12808 tar -cf archive ./file1 directory
12809 tar -tf archive \
12810   --exclude='./*1' \
12811   --exclude='d*/*1' \
12812   --exclude='d*/s*/*2' | sort
12813 ) ) >"$at_stdout" 2>"$at_stder1"
12814   at_func_filter_trace $?
12815 else
12816   ( :;
12817 mkdir v7
12818 (cd v7
12819 TEST_TAR_FORMAT=v7
12820 export TEST_TAR_FORMAT
12821 TAR_OPTIONS="-H v7"
12822 export TAR_OPTIONS
12823 rm -rf *
12824
12825
12826 test -z "`sort < /dev/null 2>&1`" || exit 77
12827
12828 touch file1
12829 mkdir directory
12830 mkdir directory/subdirectory
12831 touch directory/file1
12832 touch directory/file2
12833 touch directory/subdirectory/file1
12834 touch directory/subdirectory/file2
12835 tar -cf archive ./file1 directory
12836 tar -tf archive \
12837   --exclude='./*1' \
12838   --exclude='d*/*1' \
12839   --exclude='d*/s*/*2' | sort
12840 ) ) >"$at_stdout" 2>"$at_stderr"
12841 fi
12842 at_status=$?
12843 at_failed=false
12844 at_func_diff_devnull "$at_stderr" || at_failed=:
12845 echo >>"$at_stdout"; $as_echo "directory/
12846 directory/file2
12847 directory/subdirectory/
12848 " | \
12849   $at_diff - "$at_stdout" || at_failed=:
12850 at_func_check_status 0 $at_status "$at_srcdir/extrac04.at:26"
12851
12852 $at_failed && at_func_log_failure
12853 $at_traceon; }
12854
12855               { $at_traceoff
12856 $as_echo "$at_srcdir/extrac04.at:26:
12857 mkdir oldgnu
12858 (cd oldgnu
12859 TEST_TAR_FORMAT=oldgnu
12860 export TEST_TAR_FORMAT
12861 TAR_OPTIONS=\"-H oldgnu\"
12862 export TAR_OPTIONS
12863 rm -rf *
12864
12865
12866 test -z "`sort < /dev/null 2>&1`" || exit 77
12867
12868 touch file1
12869 mkdir directory
12870 mkdir directory/subdirectory
12871 touch directory/file1
12872 touch directory/file2
12873 touch directory/subdirectory/file1
12874 touch directory/subdirectory/file2
12875 tar -cf archive ./file1 directory
12876 tar -tf archive \\
12877   --exclude='./*1' \\
12878   --exclude='d*/*1' \\
12879   --exclude='d*/s*/*2' | sort
12880 )"
12881 echo extrac04.at:26 >"$at_check_line_file"
12882
12883 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
12884    false; }; then
12885   ( $at_traceon;
12886 mkdir oldgnu
12887 (cd oldgnu
12888 TEST_TAR_FORMAT=oldgnu
12889 export TEST_TAR_FORMAT
12890 TAR_OPTIONS="-H oldgnu"
12891 export TAR_OPTIONS
12892 rm -rf *
12893
12894
12895 test -z "`sort < /dev/null 2>&1`" || exit 77
12896
12897 touch file1
12898 mkdir directory
12899 mkdir directory/subdirectory
12900 touch directory/file1
12901 touch directory/file2
12902 touch directory/subdirectory/file1
12903 touch directory/subdirectory/file2
12904 tar -cf archive ./file1 directory
12905 tar -tf archive \
12906   --exclude='./*1' \
12907   --exclude='d*/*1' \
12908   --exclude='d*/s*/*2' | sort
12909 ) ) >"$at_stdout" 2>"$at_stder1"
12910   at_func_filter_trace $?
12911 else
12912   ( :;
12913 mkdir oldgnu
12914 (cd oldgnu
12915 TEST_TAR_FORMAT=oldgnu
12916 export TEST_TAR_FORMAT
12917 TAR_OPTIONS="-H oldgnu"
12918 export TAR_OPTIONS
12919 rm -rf *
12920
12921
12922 test -z "`sort < /dev/null 2>&1`" || exit 77
12923
12924 touch file1
12925 mkdir directory
12926 mkdir directory/subdirectory
12927 touch directory/file1
12928 touch directory/file2
12929 touch directory/subdirectory/file1
12930 touch directory/subdirectory/file2
12931 tar -cf archive ./file1 directory
12932 tar -tf archive \
12933   --exclude='./*1' \
12934   --exclude='d*/*1' \
12935   --exclude='d*/s*/*2' | sort
12936 ) ) >"$at_stdout" 2>"$at_stderr"
12937 fi
12938 at_status=$?
12939 at_failed=false
12940 at_func_diff_devnull "$at_stderr" || at_failed=:
12941 echo >>"$at_stdout"; $as_echo "directory/
12942 directory/file2
12943 directory/subdirectory/
12944 " | \
12945   $at_diff - "$at_stdout" || at_failed=:
12946 at_func_check_status 0 $at_status "$at_srcdir/extrac04.at:26"
12947
12948 $at_failed && at_func_log_failure
12949 $at_traceon; }
12950
12951               { $at_traceoff
12952 $as_echo "$at_srcdir/extrac04.at:26:
12953 mkdir ustar
12954 (cd ustar
12955 TEST_TAR_FORMAT=ustar
12956 export TEST_TAR_FORMAT
12957 TAR_OPTIONS=\"-H ustar\"
12958 export TAR_OPTIONS
12959 rm -rf *
12960
12961
12962 test -z "`sort < /dev/null 2>&1`" || exit 77
12963
12964 touch file1
12965 mkdir directory
12966 mkdir directory/subdirectory
12967 touch directory/file1
12968 touch directory/file2
12969 touch directory/subdirectory/file1
12970 touch directory/subdirectory/file2
12971 tar -cf archive ./file1 directory
12972 tar -tf archive \\
12973   --exclude='./*1' \\
12974   --exclude='d*/*1' \\
12975   --exclude='d*/s*/*2' | sort
12976 )"
12977 echo extrac04.at:26 >"$at_check_line_file"
12978
12979 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
12980    false; }; then
12981   ( $at_traceon;
12982 mkdir ustar
12983 (cd ustar
12984 TEST_TAR_FORMAT=ustar
12985 export TEST_TAR_FORMAT
12986 TAR_OPTIONS="-H ustar"
12987 export TAR_OPTIONS
12988 rm -rf *
12989
12990
12991 test -z "`sort < /dev/null 2>&1`" || exit 77
12992
12993 touch file1
12994 mkdir directory
12995 mkdir directory/subdirectory
12996 touch directory/file1
12997 touch directory/file2
12998 touch directory/subdirectory/file1
12999 touch directory/subdirectory/file2
13000 tar -cf archive ./file1 directory
13001 tar -tf archive \
13002   --exclude='./*1' \
13003   --exclude='d*/*1' \
13004   --exclude='d*/s*/*2' | sort
13005 ) ) >"$at_stdout" 2>"$at_stder1"
13006   at_func_filter_trace $?
13007 else
13008   ( :;
13009 mkdir ustar
13010 (cd ustar
13011 TEST_TAR_FORMAT=ustar
13012 export TEST_TAR_FORMAT
13013 TAR_OPTIONS="-H ustar"
13014 export TAR_OPTIONS
13015 rm -rf *
13016
13017
13018 test -z "`sort < /dev/null 2>&1`" || exit 77
13019
13020 touch file1
13021 mkdir directory
13022 mkdir directory/subdirectory
13023 touch directory/file1
13024 touch directory/file2
13025 touch directory/subdirectory/file1
13026 touch directory/subdirectory/file2
13027 tar -cf archive ./file1 directory
13028 tar -tf archive \
13029   --exclude='./*1' \
13030   --exclude='d*/*1' \
13031   --exclude='d*/s*/*2' | sort
13032 ) ) >"$at_stdout" 2>"$at_stderr"
13033 fi
13034 at_status=$?
13035 at_failed=false
13036 at_func_diff_devnull "$at_stderr" || at_failed=:
13037 echo >>"$at_stdout"; $as_echo "directory/
13038 directory/file2
13039 directory/subdirectory/
13040 " | \
13041   $at_diff - "$at_stdout" || at_failed=:
13042 at_func_check_status 0 $at_status "$at_srcdir/extrac04.at:26"
13043
13044 $at_failed && at_func_log_failure
13045 $at_traceon; }
13046
13047               { $at_traceoff
13048 $as_echo "$at_srcdir/extrac04.at:26:
13049 mkdir posix
13050 (cd posix
13051 TEST_TAR_FORMAT=posix
13052 export TEST_TAR_FORMAT
13053 TAR_OPTIONS=\"-H posix\"
13054 export TAR_OPTIONS
13055 rm -rf *
13056
13057
13058 test -z "`sort < /dev/null 2>&1`" || exit 77
13059
13060 touch file1
13061 mkdir directory
13062 mkdir directory/subdirectory
13063 touch directory/file1
13064 touch directory/file2
13065 touch directory/subdirectory/file1
13066 touch directory/subdirectory/file2
13067 tar -cf archive ./file1 directory
13068 tar -tf archive \\
13069   --exclude='./*1' \\
13070   --exclude='d*/*1' \\
13071   --exclude='d*/s*/*2' | sort
13072 )"
13073 echo extrac04.at:26 >"$at_check_line_file"
13074
13075 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
13076    false; }; then
13077   ( $at_traceon;
13078 mkdir posix
13079 (cd posix
13080 TEST_TAR_FORMAT=posix
13081 export TEST_TAR_FORMAT
13082 TAR_OPTIONS="-H posix"
13083 export TAR_OPTIONS
13084 rm -rf *
13085
13086
13087 test -z "`sort < /dev/null 2>&1`" || exit 77
13088
13089 touch file1
13090 mkdir directory
13091 mkdir directory/subdirectory
13092 touch directory/file1
13093 touch directory/file2
13094 touch directory/subdirectory/file1
13095 touch directory/subdirectory/file2
13096 tar -cf archive ./file1 directory
13097 tar -tf archive \
13098   --exclude='./*1' \
13099   --exclude='d*/*1' \
13100   --exclude='d*/s*/*2' | sort
13101 ) ) >"$at_stdout" 2>"$at_stder1"
13102   at_func_filter_trace $?
13103 else
13104   ( :;
13105 mkdir posix
13106 (cd posix
13107 TEST_TAR_FORMAT=posix
13108 export TEST_TAR_FORMAT
13109 TAR_OPTIONS="-H posix"
13110 export TAR_OPTIONS
13111 rm -rf *
13112
13113
13114 test -z "`sort < /dev/null 2>&1`" || exit 77
13115
13116 touch file1
13117 mkdir directory
13118 mkdir directory/subdirectory
13119 touch directory/file1
13120 touch directory/file2
13121 touch directory/subdirectory/file1
13122 touch directory/subdirectory/file2
13123 tar -cf archive ./file1 directory
13124 tar -tf archive \
13125   --exclude='./*1' \
13126   --exclude='d*/*1' \
13127   --exclude='d*/s*/*2' | sort
13128 ) ) >"$at_stdout" 2>"$at_stderr"
13129 fi
13130 at_status=$?
13131 at_failed=false
13132 at_func_diff_devnull "$at_stderr" || at_failed=:
13133 echo >>"$at_stdout"; $as_echo "directory/
13134 directory/file2
13135 directory/subdirectory/
13136 " | \
13137   $at_diff - "$at_stdout" || at_failed=:
13138 at_func_check_status 0 $at_status "$at_srcdir/extrac04.at:26"
13139
13140 $at_failed && at_func_log_failure
13141 $at_traceon; }
13142
13143               { $at_traceoff
13144 $as_echo "$at_srcdir/extrac04.at:26:
13145 mkdir gnu
13146 (cd gnu
13147 TEST_TAR_FORMAT=gnu
13148 export TEST_TAR_FORMAT
13149 TAR_OPTIONS=\"-H gnu\"
13150 export TAR_OPTIONS
13151 rm -rf *
13152
13153
13154 test -z "`sort < /dev/null 2>&1`" || exit 77
13155
13156 touch file1
13157 mkdir directory
13158 mkdir directory/subdirectory
13159 touch directory/file1
13160 touch directory/file2
13161 touch directory/subdirectory/file1
13162 touch directory/subdirectory/file2
13163 tar -cf archive ./file1 directory
13164 tar -tf archive \\
13165   --exclude='./*1' \\
13166   --exclude='d*/*1' \\
13167   --exclude='d*/s*/*2' | sort
13168 )"
13169 echo extrac04.at:26 >"$at_check_line_file"
13170
13171 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
13172    false; }; then
13173   ( $at_traceon;
13174 mkdir gnu
13175 (cd gnu
13176 TEST_TAR_FORMAT=gnu
13177 export TEST_TAR_FORMAT
13178 TAR_OPTIONS="-H gnu"
13179 export TAR_OPTIONS
13180 rm -rf *
13181
13182
13183 test -z "`sort < /dev/null 2>&1`" || exit 77
13184
13185 touch file1
13186 mkdir directory
13187 mkdir directory/subdirectory
13188 touch directory/file1
13189 touch directory/file2
13190 touch directory/subdirectory/file1
13191 touch directory/subdirectory/file2
13192 tar -cf archive ./file1 directory
13193 tar -tf archive \
13194   --exclude='./*1' \
13195   --exclude='d*/*1' \
13196   --exclude='d*/s*/*2' | sort
13197 ) ) >"$at_stdout" 2>"$at_stder1"
13198   at_func_filter_trace $?
13199 else
13200   ( :;
13201 mkdir gnu
13202 (cd gnu
13203 TEST_TAR_FORMAT=gnu
13204 export TEST_TAR_FORMAT
13205 TAR_OPTIONS="-H gnu"
13206 export TAR_OPTIONS
13207 rm -rf *
13208
13209
13210 test -z "`sort < /dev/null 2>&1`" || exit 77
13211
13212 touch file1
13213 mkdir directory
13214 mkdir directory/subdirectory
13215 touch directory/file1
13216 touch directory/file2
13217 touch directory/subdirectory/file1
13218 touch directory/subdirectory/file2
13219 tar -cf archive ./file1 directory
13220 tar -tf archive \
13221   --exclude='./*1' \
13222   --exclude='d*/*1' \
13223   --exclude='d*/s*/*2' | sort
13224 ) ) >"$at_stdout" 2>"$at_stderr"
13225 fi
13226 at_status=$?
13227 at_failed=false
13228 at_func_diff_devnull "$at_stderr" || at_failed=:
13229 echo >>"$at_stdout"; $as_echo "directory/
13230 directory/file2
13231 directory/subdirectory/
13232 " | \
13233   $at_diff - "$at_stdout" || at_failed=:
13234 at_func_check_status 0 $at_status "$at_srcdir/extrac04.at:26"
13235
13236 $at_failed && at_func_log_failure
13237 $at_traceon; }
13238
13239
13240
13241
13242   $at_traceoff
13243   $at_times_p && times >"$at_times_file"
13244 ) 5>&1 2>&1 | eval $at_tee_pipe
13245 at_status=`cat "$at_status_file"`
13246 #AT_STOP_27
13247 #AT_START_28
13248 # 28. extrac05.at:30: extracting selected members from pax
13249 at_setup_line='extrac05.at:30'
13250 at_desc="extracting selected members from pax"
13251 $at_quiet $as_echo_n " 28: $at_desc           "
13252 at_xfail=no
13253       test -f $XFAILFILE && at_xfail=yes
13254 echo "#                             -*- compilation -*-" >> "$at_group_log"
13255 (
13256   $as_echo "28. extrac05.at:30: testing ..."
13257   $at_traceon
13258
13259
13260
13261 cat >list <<'_ATEOF'
13262 jeden
13263 cztery
13264 _ATEOF
13265
13266
13267
13268
13269   { $at_traceoff
13270 $as_echo "$at_srcdir/extrac05.at:38:
13271 mkdir posix
13272 (cd posix
13273 TEST_TAR_FORMAT=posix
13274 export TEST_TAR_FORMAT
13275 TAR_OPTIONS=\"-H posix\"
13276 export TAR_OPTIONS
13277 rm -rf *
13278
13279 genfile --sparse --file sparsefile 0 ABCD 1M EFGH 2000K IJKL || exit 77
13280 genfile --length 118 --file jeden
13281 genfile --length 223 --file dwa
13282 genfile --length 517 --file trzy
13283 genfile --length 110 --file cztery
13284
13285 tar cf archive jeden dwa trzy cztery || exit 1
13286
13287 mkdir dir
13288 cd dir
13289
13290 tar xvfT ../archive ../../list || exit 1
13291
13292 cd ..
13293 )"
13294 echo extrac05.at:38 >"$at_check_line_file"
13295
13296 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
13297    false; }; then
13298   ( $at_traceon;
13299 mkdir posix
13300 (cd posix
13301 TEST_TAR_FORMAT=posix
13302 export TEST_TAR_FORMAT
13303 TAR_OPTIONS="-H posix"
13304 export TAR_OPTIONS
13305 rm -rf *
13306
13307 genfile --sparse --file sparsefile 0 ABCD 1M EFGH 2000K IJKL || exit 77
13308 genfile --length 118 --file jeden
13309 genfile --length 223 --file dwa
13310 genfile --length 517 --file trzy
13311 genfile --length 110 --file cztery
13312
13313 tar cf archive jeden dwa trzy cztery || exit 1
13314
13315 mkdir dir
13316 cd dir
13317
13318 tar xvfT ../archive ../../list || exit 1
13319
13320 cd ..
13321 ) ) >"$at_stdout" 2>"$at_stder1"
13322   at_func_filter_trace $?
13323 else
13324   ( :;
13325 mkdir posix
13326 (cd posix
13327 TEST_TAR_FORMAT=posix
13328 export TEST_TAR_FORMAT
13329 TAR_OPTIONS="-H posix"
13330 export TAR_OPTIONS
13331 rm -rf *
13332
13333 genfile --sparse --file sparsefile 0 ABCD 1M EFGH 2000K IJKL || exit 77
13334 genfile --length 118 --file jeden
13335 genfile --length 223 --file dwa
13336 genfile --length 517 --file trzy
13337 genfile --length 110 --file cztery
13338
13339 tar cf archive jeden dwa trzy cztery || exit 1
13340
13341 mkdir dir
13342 cd dir
13343
13344 tar xvfT ../archive ../../list || exit 1
13345
13346 cd ..
13347 ) ) >"$at_stdout" 2>"$at_stderr"
13348 fi
13349 at_status=$?
13350 at_failed=false
13351 at_func_diff_devnull "$at_stderr" || at_failed=:
13352 echo >>"$at_stdout"; $as_echo "jeden
13353 cztery
13354 " | \
13355   $at_diff - "$at_stdout" || at_failed=:
13356 at_func_check_status 0 $at_status "$at_srcdir/extrac05.at:38"
13357
13358 $at_failed && at_func_log_failure
13359 $at_traceon; }
13360
13361
13362
13363
13364   $at_traceoff
13365   $at_times_p && times >"$at_times_file"
13366 ) 5>&1 2>&1 | eval $at_tee_pipe
13367 at_status=`cat "$at_status_file"`
13368 #AT_STOP_28
13369 #AT_START_29
13370 # 29. extrac06.at:33: mode of extracted directories
13371 at_setup_line='extrac06.at:33'
13372 at_desc="mode of extracted directories"
13373 $at_quiet $as_echo_n " 29: $at_desc                  "
13374 at_xfail=no
13375       test -f $XFAILFILE && at_xfail=yes
13376 echo "#                             -*- compilation -*-" >> "$at_group_log"
13377 (
13378   $as_echo "29. extrac06.at:33: testing ..."
13379   $at_traceon
13380
13381
13382
13383
13384
13385   { $at_traceoff
13386 $as_echo "$at_srcdir/extrac06.at:36:
13387 mkdir v7
13388 (cd v7
13389 TEST_TAR_FORMAT=v7
13390 export TEST_TAR_FORMAT
13391 TAR_OPTIONS=\"-H v7\"
13392 export TAR_OPTIONS
13393 rm -rf *
13394
13395
13396 # Force umask
13397 umask 022
13398
13399 # Make sure user's umask is honored, even if we are superuser
13400 TAR_OPTIONS=\"\$TAR_OPTIONS --no-same-permissions\"
13401
13402 # Create a directory
13403 mkdir directory
13404 chmod 777 directory
13405 genfile --stat=mode:777 directory
13406
13407 # Archive it
13408 tar cf arc directory
13409
13410 # Change its permissions ...
13411 chmod 755 directory
13412 genfile --stat=mode:777 directory
13413
13414 # ... and attempt to restore it twice
13415 tar xf arc directory
13416 genfile --stat=mode:777 directory
13417
13418 tar xf arc directory
13419 genfile --stat=mode:777 directory
13420
13421 # After both restores, the directory mode should be 755
13422 )"
13423 echo extrac06.at:36 >"$at_check_line_file"
13424
13425 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
13426    false; }; then
13427   ( $at_traceon;
13428 mkdir v7
13429 (cd v7
13430 TEST_TAR_FORMAT=v7
13431 export TEST_TAR_FORMAT
13432 TAR_OPTIONS="-H v7"
13433 export TAR_OPTIONS
13434 rm -rf *
13435
13436
13437 # Force umask
13438 umask 022
13439
13440 # Make sure user's umask is honored, even if we are superuser
13441 TAR_OPTIONS="$TAR_OPTIONS --no-same-permissions"
13442
13443 # Create a directory
13444 mkdir directory
13445 chmod 777 directory
13446 genfile --stat=mode:777 directory
13447
13448 # Archive it
13449 tar cf arc directory
13450
13451 # Change its permissions ...
13452 chmod 755 directory
13453 genfile --stat=mode:777 directory
13454
13455 # ... and attempt to restore it twice
13456 tar xf arc directory
13457 genfile --stat=mode:777 directory
13458
13459 tar xf arc directory
13460 genfile --stat=mode:777 directory
13461
13462 # After both restores, the directory mode should be 755
13463 ) ) >"$at_stdout" 2>"$at_stder1"
13464   at_func_filter_trace $?
13465 else
13466   ( :;
13467 mkdir v7
13468 (cd v7
13469 TEST_TAR_FORMAT=v7
13470 export TEST_TAR_FORMAT
13471 TAR_OPTIONS="-H v7"
13472 export TAR_OPTIONS
13473 rm -rf *
13474
13475
13476 # Force umask
13477 umask 022
13478
13479 # Make sure user's umask is honored, even if we are superuser
13480 TAR_OPTIONS="$TAR_OPTIONS --no-same-permissions"
13481
13482 # Create a directory
13483 mkdir directory
13484 chmod 777 directory
13485 genfile --stat=mode:777 directory
13486
13487 # Archive it
13488 tar cf arc directory
13489
13490 # Change its permissions ...
13491 chmod 755 directory
13492 genfile --stat=mode:777 directory
13493
13494 # ... and attempt to restore it twice
13495 tar xf arc directory
13496 genfile --stat=mode:777 directory
13497
13498 tar xf arc directory
13499 genfile --stat=mode:777 directory
13500
13501 # After both restores, the directory mode should be 755
13502 ) ) >"$at_stdout" 2>"$at_stderr"
13503 fi
13504 at_status=$?
13505 at_failed=false
13506 at_func_diff_devnull "$at_stderr" || at_failed=:
13507 echo >>"$at_stdout"; $as_echo "777
13508 755
13509 755
13510 755
13511 " | \
13512   $at_diff - "$at_stdout" || at_failed=:
13513 at_func_check_status 0 $at_status "$at_srcdir/extrac06.at:36"
13514
13515 $at_failed && at_func_log_failure
13516 $at_traceon; }
13517
13518               { $at_traceoff
13519 $as_echo "$at_srcdir/extrac06.at:36:
13520 mkdir oldgnu
13521 (cd oldgnu
13522 TEST_TAR_FORMAT=oldgnu
13523 export TEST_TAR_FORMAT
13524 TAR_OPTIONS=\"-H oldgnu\"
13525 export TAR_OPTIONS
13526 rm -rf *
13527
13528
13529 # Force umask
13530 umask 022
13531
13532 # Make sure user's umask is honored, even if we are superuser
13533 TAR_OPTIONS=\"\$TAR_OPTIONS --no-same-permissions\"
13534
13535 # Create a directory
13536 mkdir directory
13537 chmod 777 directory
13538 genfile --stat=mode:777 directory
13539
13540 # Archive it
13541 tar cf arc directory
13542
13543 # Change its permissions ...
13544 chmod 755 directory
13545 genfile --stat=mode:777 directory
13546
13547 # ... and attempt to restore it twice
13548 tar xf arc directory
13549 genfile --stat=mode:777 directory
13550
13551 tar xf arc directory
13552 genfile --stat=mode:777 directory
13553
13554 # After both restores, the directory mode should be 755
13555 )"
13556 echo extrac06.at:36 >"$at_check_line_file"
13557
13558 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
13559    false; }; then
13560   ( $at_traceon;
13561 mkdir oldgnu
13562 (cd oldgnu
13563 TEST_TAR_FORMAT=oldgnu
13564 export TEST_TAR_FORMAT
13565 TAR_OPTIONS="-H oldgnu"
13566 export TAR_OPTIONS
13567 rm -rf *
13568
13569
13570 # Force umask
13571 umask 022
13572
13573 # Make sure user's umask is honored, even if we are superuser
13574 TAR_OPTIONS="$TAR_OPTIONS --no-same-permissions"
13575
13576 # Create a directory
13577 mkdir directory
13578 chmod 777 directory
13579 genfile --stat=mode:777 directory
13580
13581 # Archive it
13582 tar cf arc directory
13583
13584 # Change its permissions ...
13585 chmod 755 directory
13586 genfile --stat=mode:777 directory
13587
13588 # ... and attempt to restore it twice
13589 tar xf arc directory
13590 genfile --stat=mode:777 directory
13591
13592 tar xf arc directory
13593 genfile --stat=mode:777 directory
13594
13595 # After both restores, the directory mode should be 755
13596 ) ) >"$at_stdout" 2>"$at_stder1"
13597   at_func_filter_trace $?
13598 else
13599   ( :;
13600 mkdir oldgnu
13601 (cd oldgnu
13602 TEST_TAR_FORMAT=oldgnu
13603 export TEST_TAR_FORMAT
13604 TAR_OPTIONS="-H oldgnu"
13605 export TAR_OPTIONS
13606 rm -rf *
13607
13608
13609 # Force umask
13610 umask 022
13611
13612 # Make sure user's umask is honored, even if we are superuser
13613 TAR_OPTIONS="$TAR_OPTIONS --no-same-permissions"
13614
13615 # Create a directory
13616 mkdir directory
13617 chmod 777 directory
13618 genfile --stat=mode:777 directory
13619
13620 # Archive it
13621 tar cf arc directory
13622
13623 # Change its permissions ...
13624 chmod 755 directory
13625 genfile --stat=mode:777 directory
13626
13627 # ... and attempt to restore it twice
13628 tar xf arc directory
13629 genfile --stat=mode:777 directory
13630
13631 tar xf arc directory
13632 genfile --stat=mode:777 directory
13633
13634 # After both restores, the directory mode should be 755
13635 ) ) >"$at_stdout" 2>"$at_stderr"
13636 fi
13637 at_status=$?
13638 at_failed=false
13639 at_func_diff_devnull "$at_stderr" || at_failed=:
13640 echo >>"$at_stdout"; $as_echo "777
13641 755
13642 755
13643 755
13644 " | \
13645   $at_diff - "$at_stdout" || at_failed=:
13646 at_func_check_status 0 $at_status "$at_srcdir/extrac06.at:36"
13647
13648 $at_failed && at_func_log_failure
13649 $at_traceon; }
13650
13651               { $at_traceoff
13652 $as_echo "$at_srcdir/extrac06.at:36:
13653 mkdir ustar
13654 (cd ustar
13655 TEST_TAR_FORMAT=ustar
13656 export TEST_TAR_FORMAT
13657 TAR_OPTIONS=\"-H ustar\"
13658 export TAR_OPTIONS
13659 rm -rf *
13660
13661
13662 # Force umask
13663 umask 022
13664
13665 # Make sure user's umask is honored, even if we are superuser
13666 TAR_OPTIONS=\"\$TAR_OPTIONS --no-same-permissions\"
13667
13668 # Create a directory
13669 mkdir directory
13670 chmod 777 directory
13671 genfile --stat=mode:777 directory
13672
13673 # Archive it
13674 tar cf arc directory
13675
13676 # Change its permissions ...
13677 chmod 755 directory
13678 genfile --stat=mode:777 directory
13679
13680 # ... and attempt to restore it twice
13681 tar xf arc directory
13682 genfile --stat=mode:777 directory
13683
13684 tar xf arc directory
13685 genfile --stat=mode:777 directory
13686
13687 # After both restores, the directory mode should be 755
13688 )"
13689 echo extrac06.at:36 >"$at_check_line_file"
13690
13691 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
13692    false; }; then
13693   ( $at_traceon;
13694 mkdir ustar
13695 (cd ustar
13696 TEST_TAR_FORMAT=ustar
13697 export TEST_TAR_FORMAT
13698 TAR_OPTIONS="-H ustar"
13699 export TAR_OPTIONS
13700 rm -rf *
13701
13702
13703 # Force umask
13704 umask 022
13705
13706 # Make sure user's umask is honored, even if we are superuser
13707 TAR_OPTIONS="$TAR_OPTIONS --no-same-permissions"
13708
13709 # Create a directory
13710 mkdir directory
13711 chmod 777 directory
13712 genfile --stat=mode:777 directory
13713
13714 # Archive it
13715 tar cf arc directory
13716
13717 # Change its permissions ...
13718 chmod 755 directory
13719 genfile --stat=mode:777 directory
13720
13721 # ... and attempt to restore it twice
13722 tar xf arc directory
13723 genfile --stat=mode:777 directory
13724
13725 tar xf arc directory
13726 genfile --stat=mode:777 directory
13727
13728 # After both restores, the directory mode should be 755
13729 ) ) >"$at_stdout" 2>"$at_stder1"
13730   at_func_filter_trace $?
13731 else
13732   ( :;
13733 mkdir ustar
13734 (cd ustar
13735 TEST_TAR_FORMAT=ustar
13736 export TEST_TAR_FORMAT
13737 TAR_OPTIONS="-H ustar"
13738 export TAR_OPTIONS
13739 rm -rf *
13740
13741
13742 # Force umask
13743 umask 022
13744
13745 # Make sure user's umask is honored, even if we are superuser
13746 TAR_OPTIONS="$TAR_OPTIONS --no-same-permissions"
13747
13748 # Create a directory
13749 mkdir directory
13750 chmod 777 directory
13751 genfile --stat=mode:777 directory
13752
13753 # Archive it
13754 tar cf arc directory
13755
13756 # Change its permissions ...
13757 chmod 755 directory
13758 genfile --stat=mode:777 directory
13759
13760 # ... and attempt to restore it twice
13761 tar xf arc directory
13762 genfile --stat=mode:777 directory
13763
13764 tar xf arc directory
13765 genfile --stat=mode:777 directory
13766
13767 # After both restores, the directory mode should be 755
13768 ) ) >"$at_stdout" 2>"$at_stderr"
13769 fi
13770 at_status=$?
13771 at_failed=false
13772 at_func_diff_devnull "$at_stderr" || at_failed=:
13773 echo >>"$at_stdout"; $as_echo "777
13774 755
13775 755
13776 755
13777 " | \
13778   $at_diff - "$at_stdout" || at_failed=:
13779 at_func_check_status 0 $at_status "$at_srcdir/extrac06.at:36"
13780
13781 $at_failed && at_func_log_failure
13782 $at_traceon; }
13783
13784               { $at_traceoff
13785 $as_echo "$at_srcdir/extrac06.at:36:
13786 mkdir posix
13787 (cd posix
13788 TEST_TAR_FORMAT=posix
13789 export TEST_TAR_FORMAT
13790 TAR_OPTIONS=\"-H posix\"
13791 export TAR_OPTIONS
13792 rm -rf *
13793
13794
13795 # Force umask
13796 umask 022
13797
13798 # Make sure user's umask is honored, even if we are superuser
13799 TAR_OPTIONS=\"\$TAR_OPTIONS --no-same-permissions\"
13800
13801 # Create a directory
13802 mkdir directory
13803 chmod 777 directory
13804 genfile --stat=mode:777 directory
13805
13806 # Archive it
13807 tar cf arc directory
13808
13809 # Change its permissions ...
13810 chmod 755 directory
13811 genfile --stat=mode:777 directory
13812
13813 # ... and attempt to restore it twice
13814 tar xf arc directory
13815 genfile --stat=mode:777 directory
13816
13817 tar xf arc directory
13818 genfile --stat=mode:777 directory
13819
13820 # After both restores, the directory mode should be 755
13821 )"
13822 echo extrac06.at:36 >"$at_check_line_file"
13823
13824 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
13825    false; }; then
13826   ( $at_traceon;
13827 mkdir posix
13828 (cd posix
13829 TEST_TAR_FORMAT=posix
13830 export TEST_TAR_FORMAT
13831 TAR_OPTIONS="-H posix"
13832 export TAR_OPTIONS
13833 rm -rf *
13834
13835
13836 # Force umask
13837 umask 022
13838
13839 # Make sure user's umask is honored, even if we are superuser
13840 TAR_OPTIONS="$TAR_OPTIONS --no-same-permissions"
13841
13842 # Create a directory
13843 mkdir directory
13844 chmod 777 directory
13845 genfile --stat=mode:777 directory
13846
13847 # Archive it
13848 tar cf arc directory
13849
13850 # Change its permissions ...
13851 chmod 755 directory
13852 genfile --stat=mode:777 directory
13853
13854 # ... and attempt to restore it twice
13855 tar xf arc directory
13856 genfile --stat=mode:777 directory
13857
13858 tar xf arc directory
13859 genfile --stat=mode:777 directory
13860
13861 # After both restores, the directory mode should be 755
13862 ) ) >"$at_stdout" 2>"$at_stder1"
13863   at_func_filter_trace $?
13864 else
13865   ( :;
13866 mkdir posix
13867 (cd posix
13868 TEST_TAR_FORMAT=posix
13869 export TEST_TAR_FORMAT
13870 TAR_OPTIONS="-H posix"
13871 export TAR_OPTIONS
13872 rm -rf *
13873
13874
13875 # Force umask
13876 umask 022
13877
13878 # Make sure user's umask is honored, even if we are superuser
13879 TAR_OPTIONS="$TAR_OPTIONS --no-same-permissions"
13880
13881 # Create a directory
13882 mkdir directory
13883 chmod 777 directory
13884 genfile --stat=mode:777 directory
13885
13886 # Archive it
13887 tar cf arc directory
13888
13889 # Change its permissions ...
13890 chmod 755 directory
13891 genfile --stat=mode:777 directory
13892
13893 # ... and attempt to restore it twice
13894 tar xf arc directory
13895 genfile --stat=mode:777 directory
13896
13897 tar xf arc directory
13898 genfile --stat=mode:777 directory
13899
13900 # After both restores, the directory mode should be 755
13901 ) ) >"$at_stdout" 2>"$at_stderr"
13902 fi
13903 at_status=$?
13904 at_failed=false
13905 at_func_diff_devnull "$at_stderr" || at_failed=:
13906 echo >>"$at_stdout"; $as_echo "777
13907 755
13908 755
13909 755
13910 " | \
13911   $at_diff - "$at_stdout" || at_failed=:
13912 at_func_check_status 0 $at_status "$at_srcdir/extrac06.at:36"
13913
13914 $at_failed && at_func_log_failure
13915 $at_traceon; }
13916
13917               { $at_traceoff
13918 $as_echo "$at_srcdir/extrac06.at:36:
13919 mkdir gnu
13920 (cd gnu
13921 TEST_TAR_FORMAT=gnu
13922 export TEST_TAR_FORMAT
13923 TAR_OPTIONS=\"-H gnu\"
13924 export TAR_OPTIONS
13925 rm -rf *
13926
13927
13928 # Force umask
13929 umask 022
13930
13931 # Make sure user's umask is honored, even if we are superuser
13932 TAR_OPTIONS=\"\$TAR_OPTIONS --no-same-permissions\"
13933
13934 # Create a directory
13935 mkdir directory
13936 chmod 777 directory
13937 genfile --stat=mode:777 directory
13938
13939 # Archive it
13940 tar cf arc directory
13941
13942 # Change its permissions ...
13943 chmod 755 directory
13944 genfile --stat=mode:777 directory
13945
13946 # ... and attempt to restore it twice
13947 tar xf arc directory
13948 genfile --stat=mode:777 directory
13949
13950 tar xf arc directory
13951 genfile --stat=mode:777 directory
13952
13953 # After both restores, the directory mode should be 755
13954 )"
13955 echo extrac06.at:36 >"$at_check_line_file"
13956
13957 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
13958    false; }; then
13959   ( $at_traceon;
13960 mkdir gnu
13961 (cd gnu
13962 TEST_TAR_FORMAT=gnu
13963 export TEST_TAR_FORMAT
13964 TAR_OPTIONS="-H gnu"
13965 export TAR_OPTIONS
13966 rm -rf *
13967
13968
13969 # Force umask
13970 umask 022
13971
13972 # Make sure user's umask is honored, even if we are superuser
13973 TAR_OPTIONS="$TAR_OPTIONS --no-same-permissions"
13974
13975 # Create a directory
13976 mkdir directory
13977 chmod 777 directory
13978 genfile --stat=mode:777 directory
13979
13980 # Archive it
13981 tar cf arc directory
13982
13983 # Change its permissions ...
13984 chmod 755 directory
13985 genfile --stat=mode:777 directory
13986
13987 # ... and attempt to restore it twice
13988 tar xf arc directory
13989 genfile --stat=mode:777 directory
13990
13991 tar xf arc directory
13992 genfile --stat=mode:777 directory
13993
13994 # After both restores, the directory mode should be 755
13995 ) ) >"$at_stdout" 2>"$at_stder1"
13996   at_func_filter_trace $?
13997 else
13998   ( :;
13999 mkdir gnu
14000 (cd gnu
14001 TEST_TAR_FORMAT=gnu
14002 export TEST_TAR_FORMAT
14003 TAR_OPTIONS="-H gnu"
14004 export TAR_OPTIONS
14005 rm -rf *
14006
14007
14008 # Force umask
14009 umask 022
14010
14011 # Make sure user's umask is honored, even if we are superuser
14012 TAR_OPTIONS="$TAR_OPTIONS --no-same-permissions"
14013
14014 # Create a directory
14015 mkdir directory
14016 chmod 777 directory
14017 genfile --stat=mode:777 directory
14018
14019 # Archive it
14020 tar cf arc directory
14021
14022 # Change its permissions ...
14023 chmod 755 directory
14024 genfile --stat=mode:777 directory
14025
14026 # ... and attempt to restore it twice
14027 tar xf arc directory
14028 genfile --stat=mode:777 directory
14029
14030 tar xf arc directory
14031 genfile --stat=mode:777 directory
14032
14033 # After both restores, the directory mode should be 755
14034 ) ) >"$at_stdout" 2>"$at_stderr"
14035 fi
14036 at_status=$?
14037 at_failed=false
14038 at_func_diff_devnull "$at_stderr" || at_failed=:
14039 echo >>"$at_stdout"; $as_echo "777
14040 755
14041 755
14042 755
14043 " | \
14044   $at_diff - "$at_stdout" || at_failed=:
14045 at_func_check_status 0 $at_status "$at_srcdir/extrac06.at:36"
14046
14047 $at_failed && at_func_log_failure
14048 $at_traceon; }
14049
14050
14051
14052
14053   $at_traceoff
14054   $at_times_p && times >"$at_times_file"
14055 ) 5>&1 2>&1 | eval $at_tee_pipe
14056 at_status=`cat "$at_status_file"`
14057 #AT_STOP_29
14058 #AT_START_30
14059 # 30. extrac07.at:27: extracting symlinks to a read-only dir
14060 at_setup_line='extrac07.at:27'
14061 at_desc="extracting symlinks to a read-only dir"
14062 $at_quiet $as_echo_n " 30: $at_desc         "
14063 at_xfail=no
14064       test -f $XFAILFILE && at_xfail=yes
14065 echo "#                             -*- compilation -*-" >> "$at_group_log"
14066 (
14067   $as_echo "30. extrac07.at:27: testing ..."
14068   $at_traceon
14069
14070
14071
14072
14073
14074   { $at_traceoff
14075 $as_echo "$at_srcdir/extrac07.at:30:
14076 mkdir v7
14077 (cd v7
14078 TEST_TAR_FORMAT=v7
14079 export TEST_TAR_FORMAT
14080 TAR_OPTIONS=\"-H v7\"
14081 export TAR_OPTIONS
14082 rm -rf *
14083
14084 echo Prepare the directory
14085 mkdir dir
14086 genfile -f foo
14087 cd dir
14088 ln -s ../foo .
14089 cd ..
14090 chmod -w dir
14091
14092 echo Create the archive
14093 tar cf archive dir || exit 1
14094
14095 chmod +w dir
14096
14097 echo Extract
14098 mkdir out
14099 tar -C out -xvf archive
14100 )"
14101 echo extrac07.at:30 >"$at_check_line_file"
14102
14103 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
14104    false; }; then
14105   ( $at_traceon;
14106 mkdir v7
14107 (cd v7
14108 TEST_TAR_FORMAT=v7
14109 export TEST_TAR_FORMAT
14110 TAR_OPTIONS="-H v7"
14111 export TAR_OPTIONS
14112 rm -rf *
14113
14114 echo Prepare the directory
14115 mkdir dir
14116 genfile -f foo
14117 cd dir
14118 ln -s ../foo .
14119 cd ..
14120 chmod -w dir
14121
14122 echo Create the archive
14123 tar cf archive dir || exit 1
14124
14125 chmod +w dir
14126
14127 echo Extract
14128 mkdir out
14129 tar -C out -xvf archive
14130 ) ) >"$at_stdout" 2>"$at_stder1"
14131   at_func_filter_trace $?
14132 else
14133   ( :;
14134 mkdir v7
14135 (cd v7
14136 TEST_TAR_FORMAT=v7
14137 export TEST_TAR_FORMAT
14138 TAR_OPTIONS="-H v7"
14139 export TAR_OPTIONS
14140 rm -rf *
14141
14142 echo Prepare the directory
14143 mkdir dir
14144 genfile -f foo
14145 cd dir
14146 ln -s ../foo .
14147 cd ..
14148 chmod -w dir
14149
14150 echo Create the archive
14151 tar cf archive dir || exit 1
14152
14153 chmod +w dir
14154
14155 echo Extract
14156 mkdir out
14157 tar -C out -xvf archive
14158 ) ) >"$at_stdout" 2>"$at_stderr"
14159 fi
14160 at_status=$?
14161 at_failed=false
14162 at_func_diff_devnull "$at_stderr" || at_failed=:
14163 echo >>"$at_stdout"; $as_echo "Prepare the directory
14164 Create the archive
14165 Extract
14166 dir/
14167 dir/foo
14168 " | \
14169   $at_diff - "$at_stdout" || at_failed=:
14170 at_func_check_status 0 $at_status "$at_srcdir/extrac07.at:30"
14171 if $at_failed; then
14172   :
14173 else
14174   ustar
14175 fi
14176
14177 $at_failed && at_func_log_failure
14178 $at_traceon; }
14179
14180               { $at_traceoff
14181 $as_echo "$at_srcdir/extrac07.at:30:
14182 mkdir oldgnu
14183 (cd oldgnu
14184 TEST_TAR_FORMAT=oldgnu
14185 export TEST_TAR_FORMAT
14186 TAR_OPTIONS=\"-H oldgnu\"
14187 export TAR_OPTIONS
14188 rm -rf *
14189
14190 echo Prepare the directory
14191 mkdir dir
14192 genfile -f foo
14193 cd dir
14194 ln -s ../foo .
14195 cd ..
14196 chmod -w dir
14197
14198 echo Create the archive
14199 tar cf archive dir || exit 1
14200
14201 chmod +w dir
14202
14203 echo Extract
14204 mkdir out
14205 tar -C out -xvf archive
14206 )"
14207 echo extrac07.at:30 >"$at_check_line_file"
14208
14209 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
14210    false; }; then
14211   ( $at_traceon;
14212 mkdir oldgnu
14213 (cd oldgnu
14214 TEST_TAR_FORMAT=oldgnu
14215 export TEST_TAR_FORMAT
14216 TAR_OPTIONS="-H oldgnu"
14217 export TAR_OPTIONS
14218 rm -rf *
14219
14220 echo Prepare the directory
14221 mkdir dir
14222 genfile -f foo
14223 cd dir
14224 ln -s ../foo .
14225 cd ..
14226 chmod -w dir
14227
14228 echo Create the archive
14229 tar cf archive dir || exit 1
14230
14231 chmod +w dir
14232
14233 echo Extract
14234 mkdir out
14235 tar -C out -xvf archive
14236 ) ) >"$at_stdout" 2>"$at_stder1"
14237   at_func_filter_trace $?
14238 else
14239   ( :;
14240 mkdir oldgnu
14241 (cd oldgnu
14242 TEST_TAR_FORMAT=oldgnu
14243 export TEST_TAR_FORMAT
14244 TAR_OPTIONS="-H oldgnu"
14245 export TAR_OPTIONS
14246 rm -rf *
14247
14248 echo Prepare the directory
14249 mkdir dir
14250 genfile -f foo
14251 cd dir
14252 ln -s ../foo .
14253 cd ..
14254 chmod -w dir
14255
14256 echo Create the archive
14257 tar cf archive dir || exit 1
14258
14259 chmod +w dir
14260
14261 echo Extract
14262 mkdir out
14263 tar -C out -xvf archive
14264 ) ) >"$at_stdout" 2>"$at_stderr"
14265 fi
14266 at_status=$?
14267 at_failed=false
14268 at_func_diff_devnull "$at_stderr" || at_failed=:
14269 echo >>"$at_stdout"; $as_echo "Prepare the directory
14270 Create the archive
14271 Extract
14272 dir/
14273 dir/foo
14274 " | \
14275   $at_diff - "$at_stdout" || at_failed=:
14276 at_func_check_status 0 $at_status "$at_srcdir/extrac07.at:30"
14277 if $at_failed; then
14278   :
14279 else
14280   ustar
14281 fi
14282
14283 $at_failed && at_func_log_failure
14284 $at_traceon; }
14285
14286               { $at_traceoff
14287 $as_echo "$at_srcdir/extrac07.at:30:
14288 mkdir ustar
14289 (cd ustar
14290 TEST_TAR_FORMAT=ustar
14291 export TEST_TAR_FORMAT
14292 TAR_OPTIONS=\"-H ustar\"
14293 export TAR_OPTIONS
14294 rm -rf *
14295
14296 echo Prepare the directory
14297 mkdir dir
14298 genfile -f foo
14299 cd dir
14300 ln -s ../foo .
14301 cd ..
14302 chmod -w dir
14303
14304 echo Create the archive
14305 tar cf archive dir || exit 1
14306
14307 chmod +w dir
14308
14309 echo Extract
14310 mkdir out
14311 tar -C out -xvf archive
14312 )"
14313 echo extrac07.at:30 >"$at_check_line_file"
14314
14315 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
14316    false; }; then
14317   ( $at_traceon;
14318 mkdir ustar
14319 (cd ustar
14320 TEST_TAR_FORMAT=ustar
14321 export TEST_TAR_FORMAT
14322 TAR_OPTIONS="-H ustar"
14323 export TAR_OPTIONS
14324 rm -rf *
14325
14326 echo Prepare the directory
14327 mkdir dir
14328 genfile -f foo
14329 cd dir
14330 ln -s ../foo .
14331 cd ..
14332 chmod -w dir
14333
14334 echo Create the archive
14335 tar cf archive dir || exit 1
14336
14337 chmod +w dir
14338
14339 echo Extract
14340 mkdir out
14341 tar -C out -xvf archive
14342 ) ) >"$at_stdout" 2>"$at_stder1"
14343   at_func_filter_trace $?
14344 else
14345   ( :;
14346 mkdir ustar
14347 (cd ustar
14348 TEST_TAR_FORMAT=ustar
14349 export TEST_TAR_FORMAT
14350 TAR_OPTIONS="-H ustar"
14351 export TAR_OPTIONS
14352 rm -rf *
14353
14354 echo Prepare the directory
14355 mkdir dir
14356 genfile -f foo
14357 cd dir
14358 ln -s ../foo .
14359 cd ..
14360 chmod -w dir
14361
14362 echo Create the archive
14363 tar cf archive dir || exit 1
14364
14365 chmod +w dir
14366
14367 echo Extract
14368 mkdir out
14369 tar -C out -xvf archive
14370 ) ) >"$at_stdout" 2>"$at_stderr"
14371 fi
14372 at_status=$?
14373 at_failed=false
14374 at_func_diff_devnull "$at_stderr" || at_failed=:
14375 echo >>"$at_stdout"; $as_echo "Prepare the directory
14376 Create the archive
14377 Extract
14378 dir/
14379 dir/foo
14380 " | \
14381   $at_diff - "$at_stdout" || at_failed=:
14382 at_func_check_status 0 $at_status "$at_srcdir/extrac07.at:30"
14383 if $at_failed; then
14384   :
14385 else
14386   ustar
14387 fi
14388
14389 $at_failed && at_func_log_failure
14390 $at_traceon; }
14391
14392               { $at_traceoff
14393 $as_echo "$at_srcdir/extrac07.at:30:
14394 mkdir posix
14395 (cd posix
14396 TEST_TAR_FORMAT=posix
14397 export TEST_TAR_FORMAT
14398 TAR_OPTIONS=\"-H posix\"
14399 export TAR_OPTIONS
14400 rm -rf *
14401
14402 echo Prepare the directory
14403 mkdir dir
14404 genfile -f foo
14405 cd dir
14406 ln -s ../foo .
14407 cd ..
14408 chmod -w dir
14409
14410 echo Create the archive
14411 tar cf archive dir || exit 1
14412
14413 chmod +w dir
14414
14415 echo Extract
14416 mkdir out
14417 tar -C out -xvf archive
14418 )"
14419 echo extrac07.at:30 >"$at_check_line_file"
14420
14421 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
14422    false; }; then
14423   ( $at_traceon;
14424 mkdir posix
14425 (cd posix
14426 TEST_TAR_FORMAT=posix
14427 export TEST_TAR_FORMAT
14428 TAR_OPTIONS="-H posix"
14429 export TAR_OPTIONS
14430 rm -rf *
14431
14432 echo Prepare the directory
14433 mkdir dir
14434 genfile -f foo
14435 cd dir
14436 ln -s ../foo .
14437 cd ..
14438 chmod -w dir
14439
14440 echo Create the archive
14441 tar cf archive dir || exit 1
14442
14443 chmod +w dir
14444
14445 echo Extract
14446 mkdir out
14447 tar -C out -xvf archive
14448 ) ) >"$at_stdout" 2>"$at_stder1"
14449   at_func_filter_trace $?
14450 else
14451   ( :;
14452 mkdir posix
14453 (cd posix
14454 TEST_TAR_FORMAT=posix
14455 export TEST_TAR_FORMAT
14456 TAR_OPTIONS="-H posix"
14457 export TAR_OPTIONS
14458 rm -rf *
14459
14460 echo Prepare the directory
14461 mkdir dir
14462 genfile -f foo
14463 cd dir
14464 ln -s ../foo .
14465 cd ..
14466 chmod -w dir
14467
14468 echo Create the archive
14469 tar cf archive dir || exit 1
14470
14471 chmod +w dir
14472
14473 echo Extract
14474 mkdir out
14475 tar -C out -xvf archive
14476 ) ) >"$at_stdout" 2>"$at_stderr"
14477 fi
14478 at_status=$?
14479 at_failed=false
14480 at_func_diff_devnull "$at_stderr" || at_failed=:
14481 echo >>"$at_stdout"; $as_echo "Prepare the directory
14482 Create the archive
14483 Extract
14484 dir/
14485 dir/foo
14486 " | \
14487   $at_diff - "$at_stdout" || at_failed=:
14488 at_func_check_status 0 $at_status "$at_srcdir/extrac07.at:30"
14489 if $at_failed; then
14490   :
14491 else
14492   ustar
14493 fi
14494
14495 $at_failed && at_func_log_failure
14496 $at_traceon; }
14497
14498               { $at_traceoff
14499 $as_echo "$at_srcdir/extrac07.at:30:
14500 mkdir gnu
14501 (cd gnu
14502 TEST_TAR_FORMAT=gnu
14503 export TEST_TAR_FORMAT
14504 TAR_OPTIONS=\"-H gnu\"
14505 export TAR_OPTIONS
14506 rm -rf *
14507
14508 echo Prepare the directory
14509 mkdir dir
14510 genfile -f foo
14511 cd dir
14512 ln -s ../foo .
14513 cd ..
14514 chmod -w dir
14515
14516 echo Create the archive
14517 tar cf archive dir || exit 1
14518
14519 chmod +w dir
14520
14521 echo Extract
14522 mkdir out
14523 tar -C out -xvf archive
14524 )"
14525 echo extrac07.at:30 >"$at_check_line_file"
14526
14527 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
14528    false; }; then
14529   ( $at_traceon;
14530 mkdir gnu
14531 (cd gnu
14532 TEST_TAR_FORMAT=gnu
14533 export TEST_TAR_FORMAT
14534 TAR_OPTIONS="-H gnu"
14535 export TAR_OPTIONS
14536 rm -rf *
14537
14538 echo Prepare the directory
14539 mkdir dir
14540 genfile -f foo
14541 cd dir
14542 ln -s ../foo .
14543 cd ..
14544 chmod -w dir
14545
14546 echo Create the archive
14547 tar cf archive dir || exit 1
14548
14549 chmod +w dir
14550
14551 echo Extract
14552 mkdir out
14553 tar -C out -xvf archive
14554 ) ) >"$at_stdout" 2>"$at_stder1"
14555   at_func_filter_trace $?
14556 else
14557   ( :;
14558 mkdir gnu
14559 (cd gnu
14560 TEST_TAR_FORMAT=gnu
14561 export TEST_TAR_FORMAT
14562 TAR_OPTIONS="-H gnu"
14563 export TAR_OPTIONS
14564 rm -rf *
14565
14566 echo Prepare the directory
14567 mkdir dir
14568 genfile -f foo
14569 cd dir
14570 ln -s ../foo .
14571 cd ..
14572 chmod -w dir
14573
14574 echo Create the archive
14575 tar cf archive dir || exit 1
14576
14577 chmod +w dir
14578
14579 echo Extract
14580 mkdir out
14581 tar -C out -xvf archive
14582 ) ) >"$at_stdout" 2>"$at_stderr"
14583 fi
14584 at_status=$?
14585 at_failed=false
14586 at_func_diff_devnull "$at_stderr" || at_failed=:
14587 echo >>"$at_stdout"; $as_echo "Prepare the directory
14588 Create the archive
14589 Extract
14590 dir/
14591 dir/foo
14592 " | \
14593   $at_diff - "$at_stdout" || at_failed=:
14594 at_func_check_status 0 $at_status "$at_srcdir/extrac07.at:30"
14595 if $at_failed; then
14596   :
14597 else
14598   ustar
14599 fi
14600
14601 $at_failed && at_func_log_failure
14602 $at_traceon; }
14603
14604
14605  # Testing one format is enough
14606
14607   $at_traceoff
14608   $at_times_p && times >"$at_times_file"
14609 ) 5>&1 2>&1 | eval $at_tee_pipe
14610 at_status=`cat "$at_status_file"`
14611 #AT_STOP_30
14612 #AT_START_31
14613 # 31. extrac08.at:33: restoring mode on existing directory
14614 at_setup_line='extrac08.at:33'
14615 at_desc="restoring mode on existing directory"
14616 $at_quiet $as_echo_n " 31: $at_desc           "
14617 at_xfail=no
14618       test -f $XFAILFILE && at_xfail=yes
14619 echo "#                             -*- compilation -*-" >> "$at_group_log"
14620 (
14621   $as_echo "31. extrac08.at:33: testing ..."
14622   $at_traceon
14623
14624
14625
14626
14627
14628   { $at_traceoff
14629 $as_echo "$at_srcdir/extrac08.at:36:
14630 mkdir v7
14631 (cd v7
14632 TEST_TAR_FORMAT=v7
14633 export TEST_TAR_FORMAT
14634 TAR_OPTIONS=\"-H v7\"
14635 export TAR_OPTIONS
14636 rm -rf *
14637
14638 umask 000
14639 mkdir dir
14640 chmod 755 dir
14641 echo bla > dir/file
14642 tar cf test.tar dir
14643 chmod 700 dir
14644 tar xfv test.tar
14645 genfile --stat=mode.777 dir
14646 )"
14647 echo extrac08.at:36 >"$at_check_line_file"
14648
14649 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
14650    false; }; then
14651   ( $at_traceon;
14652 mkdir v7
14653 (cd v7
14654 TEST_TAR_FORMAT=v7
14655 export TEST_TAR_FORMAT
14656 TAR_OPTIONS="-H v7"
14657 export TAR_OPTIONS
14658 rm -rf *
14659
14660 umask 000
14661 mkdir dir
14662 chmod 755 dir
14663 echo bla > dir/file
14664 tar cf test.tar dir
14665 chmod 700 dir
14666 tar xfv test.tar
14667 genfile --stat=mode.777 dir
14668 ) ) >"$at_stdout" 2>"$at_stder1"
14669   at_func_filter_trace $?
14670 else
14671   ( :;
14672 mkdir v7
14673 (cd v7
14674 TEST_TAR_FORMAT=v7
14675 export TEST_TAR_FORMAT
14676 TAR_OPTIONS="-H v7"
14677 export TAR_OPTIONS
14678 rm -rf *
14679
14680 umask 000
14681 mkdir dir
14682 chmod 755 dir
14683 echo bla > dir/file
14684 tar cf test.tar dir
14685 chmod 700 dir
14686 tar xfv test.tar
14687 genfile --stat=mode.777 dir
14688 ) ) >"$at_stdout" 2>"$at_stderr"
14689 fi
14690 at_status=$?
14691 at_failed=false
14692 at_func_diff_devnull "$at_stderr" || at_failed=:
14693 echo >>"$at_stdout"; $as_echo "dir/
14694 dir/file
14695 755
14696 " | \
14697   $at_diff - "$at_stdout" || at_failed=:
14698 at_func_check_status 0 $at_status "$at_srcdir/extrac08.at:36"
14699
14700 $at_failed && at_func_log_failure
14701 $at_traceon; }
14702
14703               { $at_traceoff
14704 $as_echo "$at_srcdir/extrac08.at:36:
14705 mkdir oldgnu
14706 (cd oldgnu
14707 TEST_TAR_FORMAT=oldgnu
14708 export TEST_TAR_FORMAT
14709 TAR_OPTIONS=\"-H oldgnu\"
14710 export TAR_OPTIONS
14711 rm -rf *
14712
14713 umask 000
14714 mkdir dir
14715 chmod 755 dir
14716 echo bla > dir/file
14717 tar cf test.tar dir
14718 chmod 700 dir
14719 tar xfv test.tar
14720 genfile --stat=mode.777 dir
14721 )"
14722 echo extrac08.at:36 >"$at_check_line_file"
14723
14724 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
14725    false; }; then
14726   ( $at_traceon;
14727 mkdir oldgnu
14728 (cd oldgnu
14729 TEST_TAR_FORMAT=oldgnu
14730 export TEST_TAR_FORMAT
14731 TAR_OPTIONS="-H oldgnu"
14732 export TAR_OPTIONS
14733 rm -rf *
14734
14735 umask 000
14736 mkdir dir
14737 chmod 755 dir
14738 echo bla > dir/file
14739 tar cf test.tar dir
14740 chmod 700 dir
14741 tar xfv test.tar
14742 genfile --stat=mode.777 dir
14743 ) ) >"$at_stdout" 2>"$at_stder1"
14744   at_func_filter_trace $?
14745 else
14746   ( :;
14747 mkdir oldgnu
14748 (cd oldgnu
14749 TEST_TAR_FORMAT=oldgnu
14750 export TEST_TAR_FORMAT
14751 TAR_OPTIONS="-H oldgnu"
14752 export TAR_OPTIONS
14753 rm -rf *
14754
14755 umask 000
14756 mkdir dir
14757 chmod 755 dir
14758 echo bla > dir/file
14759 tar cf test.tar dir
14760 chmod 700 dir
14761 tar xfv test.tar
14762 genfile --stat=mode.777 dir
14763 ) ) >"$at_stdout" 2>"$at_stderr"
14764 fi
14765 at_status=$?
14766 at_failed=false
14767 at_func_diff_devnull "$at_stderr" || at_failed=:
14768 echo >>"$at_stdout"; $as_echo "dir/
14769 dir/file
14770 755
14771 " | \
14772   $at_diff - "$at_stdout" || at_failed=:
14773 at_func_check_status 0 $at_status "$at_srcdir/extrac08.at:36"
14774
14775 $at_failed && at_func_log_failure
14776 $at_traceon; }
14777
14778               { $at_traceoff
14779 $as_echo "$at_srcdir/extrac08.at:36:
14780 mkdir ustar
14781 (cd ustar
14782 TEST_TAR_FORMAT=ustar
14783 export TEST_TAR_FORMAT
14784 TAR_OPTIONS=\"-H ustar\"
14785 export TAR_OPTIONS
14786 rm -rf *
14787
14788 umask 000
14789 mkdir dir
14790 chmod 755 dir
14791 echo bla > dir/file
14792 tar cf test.tar dir
14793 chmod 700 dir
14794 tar xfv test.tar
14795 genfile --stat=mode.777 dir
14796 )"
14797 echo extrac08.at:36 >"$at_check_line_file"
14798
14799 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
14800    false; }; then
14801   ( $at_traceon;
14802 mkdir ustar
14803 (cd ustar
14804 TEST_TAR_FORMAT=ustar
14805 export TEST_TAR_FORMAT
14806 TAR_OPTIONS="-H ustar"
14807 export TAR_OPTIONS
14808 rm -rf *
14809
14810 umask 000
14811 mkdir dir
14812 chmod 755 dir
14813 echo bla > dir/file
14814 tar cf test.tar dir
14815 chmod 700 dir
14816 tar xfv test.tar
14817 genfile --stat=mode.777 dir
14818 ) ) >"$at_stdout" 2>"$at_stder1"
14819   at_func_filter_trace $?
14820 else
14821   ( :;
14822 mkdir ustar
14823 (cd ustar
14824 TEST_TAR_FORMAT=ustar
14825 export TEST_TAR_FORMAT
14826 TAR_OPTIONS="-H ustar"
14827 export TAR_OPTIONS
14828 rm -rf *
14829
14830 umask 000
14831 mkdir dir
14832 chmod 755 dir
14833 echo bla > dir/file
14834 tar cf test.tar dir
14835 chmod 700 dir
14836 tar xfv test.tar
14837 genfile --stat=mode.777 dir
14838 ) ) >"$at_stdout" 2>"$at_stderr"
14839 fi
14840 at_status=$?
14841 at_failed=false
14842 at_func_diff_devnull "$at_stderr" || at_failed=:
14843 echo >>"$at_stdout"; $as_echo "dir/
14844 dir/file
14845 755
14846 " | \
14847   $at_diff - "$at_stdout" || at_failed=:
14848 at_func_check_status 0 $at_status "$at_srcdir/extrac08.at:36"
14849
14850 $at_failed && at_func_log_failure
14851 $at_traceon; }
14852
14853               { $at_traceoff
14854 $as_echo "$at_srcdir/extrac08.at:36:
14855 mkdir posix
14856 (cd posix
14857 TEST_TAR_FORMAT=posix
14858 export TEST_TAR_FORMAT
14859 TAR_OPTIONS=\"-H posix\"
14860 export TAR_OPTIONS
14861 rm -rf *
14862
14863 umask 000
14864 mkdir dir
14865 chmod 755 dir
14866 echo bla > dir/file
14867 tar cf test.tar dir
14868 chmod 700 dir
14869 tar xfv test.tar
14870 genfile --stat=mode.777 dir
14871 )"
14872 echo extrac08.at:36 >"$at_check_line_file"
14873
14874 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
14875    false; }; then
14876   ( $at_traceon;
14877 mkdir posix
14878 (cd posix
14879 TEST_TAR_FORMAT=posix
14880 export TEST_TAR_FORMAT
14881 TAR_OPTIONS="-H posix"
14882 export TAR_OPTIONS
14883 rm -rf *
14884
14885 umask 000
14886 mkdir dir
14887 chmod 755 dir
14888 echo bla > dir/file
14889 tar cf test.tar dir
14890 chmod 700 dir
14891 tar xfv test.tar
14892 genfile --stat=mode.777 dir
14893 ) ) >"$at_stdout" 2>"$at_stder1"
14894   at_func_filter_trace $?
14895 else
14896   ( :;
14897 mkdir posix
14898 (cd posix
14899 TEST_TAR_FORMAT=posix
14900 export TEST_TAR_FORMAT
14901 TAR_OPTIONS="-H posix"
14902 export TAR_OPTIONS
14903 rm -rf *
14904
14905 umask 000
14906 mkdir dir
14907 chmod 755 dir
14908 echo bla > dir/file
14909 tar cf test.tar dir
14910 chmod 700 dir
14911 tar xfv test.tar
14912 genfile --stat=mode.777 dir
14913 ) ) >"$at_stdout" 2>"$at_stderr"
14914 fi
14915 at_status=$?
14916 at_failed=false
14917 at_func_diff_devnull "$at_stderr" || at_failed=:
14918 echo >>"$at_stdout"; $as_echo "dir/
14919 dir/file
14920 755
14921 " | \
14922   $at_diff - "$at_stdout" || at_failed=:
14923 at_func_check_status 0 $at_status "$at_srcdir/extrac08.at:36"
14924
14925 $at_failed && at_func_log_failure
14926 $at_traceon; }
14927
14928               { $at_traceoff
14929 $as_echo "$at_srcdir/extrac08.at:36:
14930 mkdir gnu
14931 (cd gnu
14932 TEST_TAR_FORMAT=gnu
14933 export TEST_TAR_FORMAT
14934 TAR_OPTIONS=\"-H gnu\"
14935 export TAR_OPTIONS
14936 rm -rf *
14937
14938 umask 000
14939 mkdir dir
14940 chmod 755 dir
14941 echo bla > dir/file
14942 tar cf test.tar dir
14943 chmod 700 dir
14944 tar xfv test.tar
14945 genfile --stat=mode.777 dir
14946 )"
14947 echo extrac08.at:36 >"$at_check_line_file"
14948
14949 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
14950    false; }; then
14951   ( $at_traceon;
14952 mkdir gnu
14953 (cd gnu
14954 TEST_TAR_FORMAT=gnu
14955 export TEST_TAR_FORMAT
14956 TAR_OPTIONS="-H gnu"
14957 export TAR_OPTIONS
14958 rm -rf *
14959
14960 umask 000
14961 mkdir dir
14962 chmod 755 dir
14963 echo bla > dir/file
14964 tar cf test.tar dir
14965 chmod 700 dir
14966 tar xfv test.tar
14967 genfile --stat=mode.777 dir
14968 ) ) >"$at_stdout" 2>"$at_stder1"
14969   at_func_filter_trace $?
14970 else
14971   ( :;
14972 mkdir gnu
14973 (cd gnu
14974 TEST_TAR_FORMAT=gnu
14975 export TEST_TAR_FORMAT
14976 TAR_OPTIONS="-H gnu"
14977 export TAR_OPTIONS
14978 rm -rf *
14979
14980 umask 000
14981 mkdir dir
14982 chmod 755 dir
14983 echo bla > dir/file
14984 tar cf test.tar dir
14985 chmod 700 dir
14986 tar xfv test.tar
14987 genfile --stat=mode.777 dir
14988 ) ) >"$at_stdout" 2>"$at_stderr"
14989 fi
14990 at_status=$?
14991 at_failed=false
14992 at_func_diff_devnull "$at_stderr" || at_failed=:
14993 echo >>"$at_stdout"; $as_echo "dir/
14994 dir/file
14995 755
14996 " | \
14997   $at_diff - "$at_stdout" || at_failed=:
14998 at_func_check_status 0 $at_status "$at_srcdir/extrac08.at:36"
14999
15000 $at_failed && at_func_log_failure
15001 $at_traceon; }
15002
15003
15004
15005
15006   $at_traceoff
15007   $at_times_p && times >"$at_times_file"
15008 ) 5>&1 2>&1 | eval $at_tee_pipe
15009 at_status=`cat "$at_status_file"`
15010 #AT_STOP_31
15011 #AT_START_32
15012 # 32. label01.at:19: single-volume label
15013 at_setup_line='label01.at:19'
15014 at_desc="single-volume label"
15015 $at_quiet $as_echo_n " 32: $at_desc                            "
15016 at_xfail=no
15017       test -f $XFAILFILE && at_xfail=yes
15018 echo "#                             -*- compilation -*-" >> "$at_group_log"
15019 (
15020   $as_echo "32. label01.at:19: testing ..."
15021   $at_traceon
15022
15023
15024
15025
15026
15027   { $at_traceoff
15028 $as_echo "$at_srcdir/label01.at:22:
15029 mkdir gnu
15030 (cd gnu
15031 TEST_TAR_FORMAT=gnu
15032 export TEST_TAR_FORMAT
15033 TAR_OPTIONS=\"-H gnu\"
15034 export TAR_OPTIONS
15035 rm -rf *
15036
15037 genfile --file foo
15038 genfile --file bar
15039 tar -cf archive --label=Test foo bar
15040 tar tf archive
15041 )"
15042 echo label01.at:22 >"$at_check_line_file"
15043
15044 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
15045    false; }; then
15046   ( $at_traceon;
15047 mkdir gnu
15048 (cd gnu
15049 TEST_TAR_FORMAT=gnu
15050 export TEST_TAR_FORMAT
15051 TAR_OPTIONS="-H gnu"
15052 export TAR_OPTIONS
15053 rm -rf *
15054
15055 genfile --file foo
15056 genfile --file bar
15057 tar -cf archive --label=Test foo bar
15058 tar tf archive
15059 ) ) >"$at_stdout" 2>"$at_stder1"
15060   at_func_filter_trace $?
15061 else
15062   ( :;
15063 mkdir gnu
15064 (cd gnu
15065 TEST_TAR_FORMAT=gnu
15066 export TEST_TAR_FORMAT
15067 TAR_OPTIONS="-H gnu"
15068 export TAR_OPTIONS
15069 rm -rf *
15070
15071 genfile --file foo
15072 genfile --file bar
15073 tar -cf archive --label=Test foo bar
15074 tar tf archive
15075 ) ) >"$at_stdout" 2>"$at_stderr"
15076 fi
15077 at_status=$?
15078 at_failed=false
15079 at_func_diff_devnull "$at_stderr" || at_failed=:
15080 echo >>"$at_stdout"; $as_echo "Test
15081 foo
15082 bar
15083 " | \
15084   $at_diff - "$at_stdout" || at_failed=:
15085 at_func_check_status 0 $at_status "$at_srcdir/label01.at:22"
15086
15087 $at_failed && at_func_log_failure
15088 $at_traceon; }
15089
15090               { $at_traceoff
15091 $as_echo "$at_srcdir/label01.at:22:
15092 mkdir oldgnu
15093 (cd oldgnu
15094 TEST_TAR_FORMAT=oldgnu
15095 export TEST_TAR_FORMAT
15096 TAR_OPTIONS=\"-H oldgnu\"
15097 export TAR_OPTIONS
15098 rm -rf *
15099
15100 genfile --file foo
15101 genfile --file bar
15102 tar -cf archive --label=Test foo bar
15103 tar tf archive
15104 )"
15105 echo label01.at:22 >"$at_check_line_file"
15106
15107 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
15108    false; }; then
15109   ( $at_traceon;
15110 mkdir oldgnu
15111 (cd oldgnu
15112 TEST_TAR_FORMAT=oldgnu
15113 export TEST_TAR_FORMAT
15114 TAR_OPTIONS="-H oldgnu"
15115 export TAR_OPTIONS
15116 rm -rf *
15117
15118 genfile --file foo
15119 genfile --file bar
15120 tar -cf archive --label=Test foo bar
15121 tar tf archive
15122 ) ) >"$at_stdout" 2>"$at_stder1"
15123   at_func_filter_trace $?
15124 else
15125   ( :;
15126 mkdir oldgnu
15127 (cd oldgnu
15128 TEST_TAR_FORMAT=oldgnu
15129 export TEST_TAR_FORMAT
15130 TAR_OPTIONS="-H oldgnu"
15131 export TAR_OPTIONS
15132 rm -rf *
15133
15134 genfile --file foo
15135 genfile --file bar
15136 tar -cf archive --label=Test foo bar
15137 tar tf archive
15138 ) ) >"$at_stdout" 2>"$at_stderr"
15139 fi
15140 at_status=$?
15141 at_failed=false
15142 at_func_diff_devnull "$at_stderr" || at_failed=:
15143 echo >>"$at_stdout"; $as_echo "Test
15144 foo
15145 bar
15146 " | \
15147   $at_diff - "$at_stdout" || at_failed=:
15148 at_func_check_status 0 $at_status "$at_srcdir/label01.at:22"
15149
15150 $at_failed && at_func_log_failure
15151 $at_traceon; }
15152
15153               { $at_traceoff
15154 $as_echo "$at_srcdir/label01.at:22:
15155 mkdir posix
15156 (cd posix
15157 TEST_TAR_FORMAT=posix
15158 export TEST_TAR_FORMAT
15159 TAR_OPTIONS=\"-H posix\"
15160 export TAR_OPTIONS
15161 rm -rf *
15162
15163 genfile --file foo
15164 genfile --file bar
15165 tar -cf archive --label=Test foo bar
15166 tar tf archive
15167 )"
15168 echo label01.at:22 >"$at_check_line_file"
15169
15170 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
15171    false; }; then
15172   ( $at_traceon;
15173 mkdir posix
15174 (cd posix
15175 TEST_TAR_FORMAT=posix
15176 export TEST_TAR_FORMAT
15177 TAR_OPTIONS="-H posix"
15178 export TAR_OPTIONS
15179 rm -rf *
15180
15181 genfile --file foo
15182 genfile --file bar
15183 tar -cf archive --label=Test foo bar
15184 tar tf archive
15185 ) ) >"$at_stdout" 2>"$at_stder1"
15186   at_func_filter_trace $?
15187 else
15188   ( :;
15189 mkdir posix
15190 (cd posix
15191 TEST_TAR_FORMAT=posix
15192 export TEST_TAR_FORMAT
15193 TAR_OPTIONS="-H posix"
15194 export TAR_OPTIONS
15195 rm -rf *
15196
15197 genfile --file foo
15198 genfile --file bar
15199 tar -cf archive --label=Test foo bar
15200 tar tf archive
15201 ) ) >"$at_stdout" 2>"$at_stderr"
15202 fi
15203 at_status=$?
15204 at_failed=false
15205 at_func_diff_devnull "$at_stderr" || at_failed=:
15206 echo >>"$at_stdout"; $as_echo "Test
15207 foo
15208 bar
15209 " | \
15210   $at_diff - "$at_stdout" || at_failed=:
15211 at_func_check_status 0 $at_status "$at_srcdir/label01.at:22"
15212
15213 $at_failed && at_func_log_failure
15214 $at_traceon; }
15215
15216
15217
15218
15219   $at_traceoff
15220   $at_times_p && times >"$at_times_file"
15221 ) 5>&1 2>&1 | eval $at_tee_pipe
15222 at_status=`cat "$at_status_file"`
15223 #AT_STOP_32
15224 #AT_START_33
15225 # 33. label02.at:19: multi-volume label
15226 at_setup_line='label02.at:19'
15227 at_desc="multi-volume label"
15228 $at_quiet $as_echo_n " 33: $at_desc                             "
15229 at_xfail=no
15230       test -f $XFAILFILE && at_xfail=yes
15231 echo "#                             -*- compilation -*-" >> "$at_group_log"
15232 (
15233   $as_echo "33. label02.at:19: testing ..."
15234   $at_traceon
15235
15236
15237
15238
15239
15240   { $at_traceoff
15241 $as_echo "$at_srcdir/label02.at:22:
15242 mkdir gnu
15243 (cd gnu
15244 TEST_TAR_FORMAT=gnu
15245 export TEST_TAR_FORMAT
15246 TAR_OPTIONS=\"-H gnu\"
15247 export TAR_OPTIONS
15248 rm -rf *
15249
15250 exec <&-
15251 genfile --length 0 --file foo
15252 genfile --length 12288 --file bar
15253 genfile --length 12288 --file baz
15254 tar --label=Test -cM -L10 -f 1.tar -f 2.tar -f 3.tar -f 4.tar foo bar baz
15255 tar -Mt -f 1.tar -f 2.tar -f 3.tar -f 4.tar
15256 )"
15257 echo label02.at:22 >"$at_check_line_file"
15258
15259 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
15260    false; }; then
15261   ( $at_traceon;
15262 mkdir gnu
15263 (cd gnu
15264 TEST_TAR_FORMAT=gnu
15265 export TEST_TAR_FORMAT
15266 TAR_OPTIONS="-H gnu"
15267 export TAR_OPTIONS
15268 rm -rf *
15269
15270 exec <&-
15271 genfile --length 0 --file foo
15272 genfile --length 12288 --file bar
15273 genfile --length 12288 --file baz
15274 tar --label=Test -cM -L10 -f 1.tar -f 2.tar -f 3.tar -f 4.tar foo bar baz
15275 tar -Mt -f 1.tar -f 2.tar -f 3.tar -f 4.tar
15276 ) ) >"$at_stdout" 2>"$at_stder1"
15277   at_func_filter_trace $?
15278 else
15279   ( :;
15280 mkdir gnu
15281 (cd gnu
15282 TEST_TAR_FORMAT=gnu
15283 export TEST_TAR_FORMAT
15284 TAR_OPTIONS="-H gnu"
15285 export TAR_OPTIONS
15286 rm -rf *
15287
15288 exec <&-
15289 genfile --length 0 --file foo
15290 genfile --length 12288 --file bar
15291 genfile --length 12288 --file baz
15292 tar --label=Test -cM -L10 -f 1.tar -f 2.tar -f 3.tar -f 4.tar foo bar baz
15293 tar -Mt -f 1.tar -f 2.tar -f 3.tar -f 4.tar
15294 ) ) >"$at_stdout" 2>"$at_stderr"
15295 fi
15296 at_status=$?
15297 at_failed=false
15298 at_func_diff_devnull "$at_stderr" || at_failed=:
15299 echo >>"$at_stdout"; $as_echo "Test Volume 1
15300 foo
15301 bar
15302 baz
15303 " | \
15304   $at_diff - "$at_stdout" || at_failed=:
15305 at_func_check_status 0 $at_status "$at_srcdir/label02.at:22"
15306
15307 $at_failed && at_func_log_failure
15308 $at_traceon; }
15309
15310               { $at_traceoff
15311 $as_echo "$at_srcdir/label02.at:22:
15312 mkdir oldgnu
15313 (cd oldgnu
15314 TEST_TAR_FORMAT=oldgnu
15315 export TEST_TAR_FORMAT
15316 TAR_OPTIONS=\"-H oldgnu\"
15317 export TAR_OPTIONS
15318 rm -rf *
15319
15320 exec <&-
15321 genfile --length 0 --file foo
15322 genfile --length 12288 --file bar
15323 genfile --length 12288 --file baz
15324 tar --label=Test -cM -L10 -f 1.tar -f 2.tar -f 3.tar -f 4.tar foo bar baz
15325 tar -Mt -f 1.tar -f 2.tar -f 3.tar -f 4.tar
15326 )"
15327 echo label02.at:22 >"$at_check_line_file"
15328
15329 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
15330    false; }; then
15331   ( $at_traceon;
15332 mkdir oldgnu
15333 (cd oldgnu
15334 TEST_TAR_FORMAT=oldgnu
15335 export TEST_TAR_FORMAT
15336 TAR_OPTIONS="-H oldgnu"
15337 export TAR_OPTIONS
15338 rm -rf *
15339
15340 exec <&-
15341 genfile --length 0 --file foo
15342 genfile --length 12288 --file bar
15343 genfile --length 12288 --file baz
15344 tar --label=Test -cM -L10 -f 1.tar -f 2.tar -f 3.tar -f 4.tar foo bar baz
15345 tar -Mt -f 1.tar -f 2.tar -f 3.tar -f 4.tar
15346 ) ) >"$at_stdout" 2>"$at_stder1"
15347   at_func_filter_trace $?
15348 else
15349   ( :;
15350 mkdir oldgnu
15351 (cd oldgnu
15352 TEST_TAR_FORMAT=oldgnu
15353 export TEST_TAR_FORMAT
15354 TAR_OPTIONS="-H oldgnu"
15355 export TAR_OPTIONS
15356 rm -rf *
15357
15358 exec <&-
15359 genfile --length 0 --file foo
15360 genfile --length 12288 --file bar
15361 genfile --length 12288 --file baz
15362 tar --label=Test -cM -L10 -f 1.tar -f 2.tar -f 3.tar -f 4.tar foo bar baz
15363 tar -Mt -f 1.tar -f 2.tar -f 3.tar -f 4.tar
15364 ) ) >"$at_stdout" 2>"$at_stderr"
15365 fi
15366 at_status=$?
15367 at_failed=false
15368 at_func_diff_devnull "$at_stderr" || at_failed=:
15369 echo >>"$at_stdout"; $as_echo "Test Volume 1
15370 foo
15371 bar
15372 baz
15373 " | \
15374   $at_diff - "$at_stdout" || at_failed=:
15375 at_func_check_status 0 $at_status "$at_srcdir/label02.at:22"
15376
15377 $at_failed && at_func_log_failure
15378 $at_traceon; }
15379
15380               { $at_traceoff
15381 $as_echo "$at_srcdir/label02.at:22:
15382 mkdir posix
15383 (cd posix
15384 TEST_TAR_FORMAT=posix
15385 export TEST_TAR_FORMAT
15386 TAR_OPTIONS=\"-H posix\"
15387 export TAR_OPTIONS
15388 rm -rf *
15389
15390 exec <&-
15391 genfile --length 0 --file foo
15392 genfile --length 12288 --file bar
15393 genfile --length 12288 --file baz
15394 tar --label=Test -cM -L10 -f 1.tar -f 2.tar -f 3.tar -f 4.tar foo bar baz
15395 tar -Mt -f 1.tar -f 2.tar -f 3.tar -f 4.tar
15396 )"
15397 echo label02.at:22 >"$at_check_line_file"
15398
15399 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
15400    false; }; then
15401   ( $at_traceon;
15402 mkdir posix
15403 (cd posix
15404 TEST_TAR_FORMAT=posix
15405 export TEST_TAR_FORMAT
15406 TAR_OPTIONS="-H posix"
15407 export TAR_OPTIONS
15408 rm -rf *
15409
15410 exec <&-
15411 genfile --length 0 --file foo
15412 genfile --length 12288 --file bar
15413 genfile --length 12288 --file baz
15414 tar --label=Test -cM -L10 -f 1.tar -f 2.tar -f 3.tar -f 4.tar foo bar baz
15415 tar -Mt -f 1.tar -f 2.tar -f 3.tar -f 4.tar
15416 ) ) >"$at_stdout" 2>"$at_stder1"
15417   at_func_filter_trace $?
15418 else
15419   ( :;
15420 mkdir posix
15421 (cd posix
15422 TEST_TAR_FORMAT=posix
15423 export TEST_TAR_FORMAT
15424 TAR_OPTIONS="-H posix"
15425 export TAR_OPTIONS
15426 rm -rf *
15427
15428 exec <&-
15429 genfile --length 0 --file foo
15430 genfile --length 12288 --file bar
15431 genfile --length 12288 --file baz
15432 tar --label=Test -cM -L10 -f 1.tar -f 2.tar -f 3.tar -f 4.tar foo bar baz
15433 tar -Mt -f 1.tar -f 2.tar -f 3.tar -f 4.tar
15434 ) ) >"$at_stdout" 2>"$at_stderr"
15435 fi
15436 at_status=$?
15437 at_failed=false
15438 at_func_diff_devnull "$at_stderr" || at_failed=:
15439 echo >>"$at_stdout"; $as_echo "Test Volume 1
15440 foo
15441 bar
15442 baz
15443 " | \
15444   $at_diff - "$at_stdout" || at_failed=:
15445 at_func_check_status 0 $at_status "$at_srcdir/label02.at:22"
15446
15447 $at_failed && at_func_log_failure
15448 $at_traceon; }
15449
15450
15451
15452
15453   $at_traceoff
15454   $at_times_p && times >"$at_times_file"
15455 ) 5>&1 2>&1 | eval $at_tee_pipe
15456 at_status=`cat "$at_status_file"`
15457 #AT_STOP_33
15458 #AT_START_34
15459 # 34. backup01.at:33: extracting existing dir with --backup
15460 at_setup_line='backup01.at:33'
15461 at_desc="extracting existing dir with --backup"
15462 $at_quiet $as_echo_n " 34: $at_desc          "
15463 at_xfail=no
15464       test -f $XFAILFILE && at_xfail=yes
15465 echo "#                             -*- compilation -*-" >> "$at_group_log"
15466 (
15467   $as_echo "34. backup01.at:33: testing ..."
15468   $at_traceon
15469
15470
15471
15472
15473
15474   { $at_traceoff
15475 $as_echo "$at_srcdir/backup01.at:36:
15476 mkdir v7
15477 (cd v7
15478 TEST_TAR_FORMAT=v7
15479 export TEST_TAR_FORMAT
15480 TAR_OPTIONS=\"-H v7\"
15481 export TAR_OPTIONS
15482 rm -rf *
15483
15484 mkdir dir1 dir2
15485 echo bla > dir1/file1
15486 tar cf test.tar dir1 dir2
15487 tar xfv test.tar --backup
15488 )"
15489 echo backup01.at:36 >"$at_check_line_file"
15490
15491 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
15492    false; }; then
15493   ( $at_traceon;
15494 mkdir v7
15495 (cd v7
15496 TEST_TAR_FORMAT=v7
15497 export TEST_TAR_FORMAT
15498 TAR_OPTIONS="-H v7"
15499 export TAR_OPTIONS
15500 rm -rf *
15501
15502 mkdir dir1 dir2
15503 echo bla > dir1/file1
15504 tar cf test.tar dir1 dir2
15505 tar xfv test.tar --backup
15506 ) ) >"$at_stdout" 2>"$at_stder1"
15507   at_func_filter_trace $?
15508 else
15509   ( :;
15510 mkdir v7
15511 (cd v7
15512 TEST_TAR_FORMAT=v7
15513 export TEST_TAR_FORMAT
15514 TAR_OPTIONS="-H v7"
15515 export TAR_OPTIONS
15516 rm -rf *
15517
15518 mkdir dir1 dir2
15519 echo bla > dir1/file1
15520 tar cf test.tar dir1 dir2
15521 tar xfv test.tar --backup
15522 ) ) >"$at_stdout" 2>"$at_stderr"
15523 fi
15524 at_status=$?
15525 at_failed=false
15526 at_func_diff_devnull "$at_stderr" || at_failed=:
15527 echo >>"$at_stdout"; $as_echo "dir1/
15528 dir1/file1
15529 Renaming \`dir1/file1' to \`dir1/file1~'
15530 dir2/
15531 " | \
15532   $at_diff - "$at_stdout" || at_failed=:
15533 at_func_check_status 0 $at_status "$at_srcdir/backup01.at:36"
15534
15535 $at_failed && at_func_log_failure
15536 $at_traceon; }
15537
15538               { $at_traceoff
15539 $as_echo "$at_srcdir/backup01.at:36:
15540 mkdir oldgnu
15541 (cd oldgnu
15542 TEST_TAR_FORMAT=oldgnu
15543 export TEST_TAR_FORMAT
15544 TAR_OPTIONS=\"-H oldgnu\"
15545 export TAR_OPTIONS
15546 rm -rf *
15547
15548 mkdir dir1 dir2
15549 echo bla > dir1/file1
15550 tar cf test.tar dir1 dir2
15551 tar xfv test.tar --backup
15552 )"
15553 echo backup01.at:36 >"$at_check_line_file"
15554
15555 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
15556    false; }; then
15557   ( $at_traceon;
15558 mkdir oldgnu
15559 (cd oldgnu
15560 TEST_TAR_FORMAT=oldgnu
15561 export TEST_TAR_FORMAT
15562 TAR_OPTIONS="-H oldgnu"
15563 export TAR_OPTIONS
15564 rm -rf *
15565
15566 mkdir dir1 dir2
15567 echo bla > dir1/file1
15568 tar cf test.tar dir1 dir2
15569 tar xfv test.tar --backup
15570 ) ) >"$at_stdout" 2>"$at_stder1"
15571   at_func_filter_trace $?
15572 else
15573   ( :;
15574 mkdir oldgnu
15575 (cd oldgnu
15576 TEST_TAR_FORMAT=oldgnu
15577 export TEST_TAR_FORMAT
15578 TAR_OPTIONS="-H oldgnu"
15579 export TAR_OPTIONS
15580 rm -rf *
15581
15582 mkdir dir1 dir2
15583 echo bla > dir1/file1
15584 tar cf test.tar dir1 dir2
15585 tar xfv test.tar --backup
15586 ) ) >"$at_stdout" 2>"$at_stderr"
15587 fi
15588 at_status=$?
15589 at_failed=false
15590 at_func_diff_devnull "$at_stderr" || at_failed=:
15591 echo >>"$at_stdout"; $as_echo "dir1/
15592 dir1/file1
15593 Renaming \`dir1/file1' to \`dir1/file1~'
15594 dir2/
15595 " | \
15596   $at_diff - "$at_stdout" || at_failed=:
15597 at_func_check_status 0 $at_status "$at_srcdir/backup01.at:36"
15598
15599 $at_failed && at_func_log_failure
15600 $at_traceon; }
15601
15602               { $at_traceoff
15603 $as_echo "$at_srcdir/backup01.at:36:
15604 mkdir ustar
15605 (cd ustar
15606 TEST_TAR_FORMAT=ustar
15607 export TEST_TAR_FORMAT
15608 TAR_OPTIONS=\"-H ustar\"
15609 export TAR_OPTIONS
15610 rm -rf *
15611
15612 mkdir dir1 dir2
15613 echo bla > dir1/file1
15614 tar cf test.tar dir1 dir2
15615 tar xfv test.tar --backup
15616 )"
15617 echo backup01.at:36 >"$at_check_line_file"
15618
15619 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
15620    false; }; then
15621   ( $at_traceon;
15622 mkdir ustar
15623 (cd ustar
15624 TEST_TAR_FORMAT=ustar
15625 export TEST_TAR_FORMAT
15626 TAR_OPTIONS="-H ustar"
15627 export TAR_OPTIONS
15628 rm -rf *
15629
15630 mkdir dir1 dir2
15631 echo bla > dir1/file1
15632 tar cf test.tar dir1 dir2
15633 tar xfv test.tar --backup
15634 ) ) >"$at_stdout" 2>"$at_stder1"
15635   at_func_filter_trace $?
15636 else
15637   ( :;
15638 mkdir ustar
15639 (cd ustar
15640 TEST_TAR_FORMAT=ustar
15641 export TEST_TAR_FORMAT
15642 TAR_OPTIONS="-H ustar"
15643 export TAR_OPTIONS
15644 rm -rf *
15645
15646 mkdir dir1 dir2
15647 echo bla > dir1/file1
15648 tar cf test.tar dir1 dir2
15649 tar xfv test.tar --backup
15650 ) ) >"$at_stdout" 2>"$at_stderr"
15651 fi
15652 at_status=$?
15653 at_failed=false
15654 at_func_diff_devnull "$at_stderr" || at_failed=:
15655 echo >>"$at_stdout"; $as_echo "dir1/
15656 dir1/file1
15657 Renaming \`dir1/file1' to \`dir1/file1~'
15658 dir2/
15659 " | \
15660   $at_diff - "$at_stdout" || at_failed=:
15661 at_func_check_status 0 $at_status "$at_srcdir/backup01.at:36"
15662
15663 $at_failed && at_func_log_failure
15664 $at_traceon; }
15665
15666               { $at_traceoff
15667 $as_echo "$at_srcdir/backup01.at:36:
15668 mkdir posix
15669 (cd posix
15670 TEST_TAR_FORMAT=posix
15671 export TEST_TAR_FORMAT
15672 TAR_OPTIONS=\"-H posix\"
15673 export TAR_OPTIONS
15674 rm -rf *
15675
15676 mkdir dir1 dir2
15677 echo bla > dir1/file1
15678 tar cf test.tar dir1 dir2
15679 tar xfv test.tar --backup
15680 )"
15681 echo backup01.at:36 >"$at_check_line_file"
15682
15683 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
15684    false; }; then
15685   ( $at_traceon;
15686 mkdir posix
15687 (cd posix
15688 TEST_TAR_FORMAT=posix
15689 export TEST_TAR_FORMAT
15690 TAR_OPTIONS="-H posix"
15691 export TAR_OPTIONS
15692 rm -rf *
15693
15694 mkdir dir1 dir2
15695 echo bla > dir1/file1
15696 tar cf test.tar dir1 dir2
15697 tar xfv test.tar --backup
15698 ) ) >"$at_stdout" 2>"$at_stder1"
15699   at_func_filter_trace $?
15700 else
15701   ( :;
15702 mkdir posix
15703 (cd posix
15704 TEST_TAR_FORMAT=posix
15705 export TEST_TAR_FORMAT
15706 TAR_OPTIONS="-H posix"
15707 export TAR_OPTIONS
15708 rm -rf *
15709
15710 mkdir dir1 dir2
15711 echo bla > dir1/file1
15712 tar cf test.tar dir1 dir2
15713 tar xfv test.tar --backup
15714 ) ) >"$at_stdout" 2>"$at_stderr"
15715 fi
15716 at_status=$?
15717 at_failed=false
15718 at_func_diff_devnull "$at_stderr" || at_failed=:
15719 echo >>"$at_stdout"; $as_echo "dir1/
15720 dir1/file1
15721 Renaming \`dir1/file1' to \`dir1/file1~'
15722 dir2/
15723 " | \
15724   $at_diff - "$at_stdout" || at_failed=:
15725 at_func_check_status 0 $at_status "$at_srcdir/backup01.at:36"
15726
15727 $at_failed && at_func_log_failure
15728 $at_traceon; }
15729
15730               { $at_traceoff
15731 $as_echo "$at_srcdir/backup01.at:36:
15732 mkdir gnu
15733 (cd gnu
15734 TEST_TAR_FORMAT=gnu
15735 export TEST_TAR_FORMAT
15736 TAR_OPTIONS=\"-H gnu\"
15737 export TAR_OPTIONS
15738 rm -rf *
15739
15740 mkdir dir1 dir2
15741 echo bla > dir1/file1
15742 tar cf test.tar dir1 dir2
15743 tar xfv test.tar --backup
15744 )"
15745 echo backup01.at:36 >"$at_check_line_file"
15746
15747 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
15748    false; }; then
15749   ( $at_traceon;
15750 mkdir gnu
15751 (cd gnu
15752 TEST_TAR_FORMAT=gnu
15753 export TEST_TAR_FORMAT
15754 TAR_OPTIONS="-H gnu"
15755 export TAR_OPTIONS
15756 rm -rf *
15757
15758 mkdir dir1 dir2
15759 echo bla > dir1/file1
15760 tar cf test.tar dir1 dir2
15761 tar xfv test.tar --backup
15762 ) ) >"$at_stdout" 2>"$at_stder1"
15763   at_func_filter_trace $?
15764 else
15765   ( :;
15766 mkdir gnu
15767 (cd gnu
15768 TEST_TAR_FORMAT=gnu
15769 export TEST_TAR_FORMAT
15770 TAR_OPTIONS="-H gnu"
15771 export TAR_OPTIONS
15772 rm -rf *
15773
15774 mkdir dir1 dir2
15775 echo bla > dir1/file1
15776 tar cf test.tar dir1 dir2
15777 tar xfv test.tar --backup
15778 ) ) >"$at_stdout" 2>"$at_stderr"
15779 fi
15780 at_status=$?
15781 at_failed=false
15782 at_func_diff_devnull "$at_stderr" || at_failed=:
15783 echo >>"$at_stdout"; $as_echo "dir1/
15784 dir1/file1
15785 Renaming \`dir1/file1' to \`dir1/file1~'
15786 dir2/
15787 " | \
15788   $at_diff - "$at_stdout" || at_failed=:
15789 at_func_check_status 0 $at_status "$at_srcdir/backup01.at:36"
15790
15791 $at_failed && at_func_log_failure
15792 $at_traceon; }
15793
15794
15795
15796
15797   $at_traceoff
15798   $at_times_p && times >"$at_times_file"
15799 ) 5>&1 2>&1 | eval $at_tee_pipe
15800 at_status=`cat "$at_status_file"`
15801 #AT_STOP_34
15802 #AT_START_35
15803 # 35. gzip.at:23: gzip
15804 at_setup_line='gzip.at:23'
15805 at_desc="gzip"
15806 $at_quiet $as_echo_n " 35: $at_desc                                           "
15807 at_xfail=no
15808 echo "#                             -*- compilation -*-" >> "$at_group_log"
15809 (
15810   $as_echo "35. gzip.at:23: testing ..."
15811   $at_traceon
15812
15813
15814
15815 unset TAR_OPTIONS
15816
15817 { $at_traceoff
15818 $as_echo "$at_srcdir/gzip.at:28:
15819
15820 cat /dev/null | gzip - > /dev/null 2>&1 || exit 77
15821
15822 tar xfvz /dev/null
15823 "
15824 echo gzip.at:28 >"$at_check_line_file"
15825
15826 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
15827    false; }; then
15828   ( $at_traceon;
15829
15830 cat /dev/null | gzip - > /dev/null 2>&1 || exit 77
15831
15832 tar xfvz /dev/null
15833  ) >"$at_stdout" 2>"$at_stder1"
15834   at_func_filter_trace $?
15835 else
15836   ( :;
15837
15838 cat /dev/null | gzip - > /dev/null 2>&1 || exit 77
15839
15840 tar xfvz /dev/null
15841  ) >"$at_stdout" 2>"$at_stderr"
15842 fi
15843 at_status=$?
15844 at_failed=false
15845 echo >>"$at_stderr"; $as_echo "
15846 gzip: stdin: unexpected end of file
15847 tar: Child returned status 1
15848 tar: Error is not recoverable: exiting now
15849 " | \
15850   $at_diff - "$at_stderr" || at_failed=:
15851 at_func_diff_devnull "$at_stdout" || at_failed=:
15852 at_func_check_status 2 $at_status "$at_srcdir/gzip.at:28"
15853
15854 $at_failed && at_func_log_failure
15855 $at_traceon; }
15856
15857
15858   $at_traceoff
15859   $at_times_p && times >"$at_times_file"
15860 ) 5>&1 2>&1 | eval $at_tee_pipe
15861 at_status=`cat "$at_status_file"`
15862 #AT_STOP_35
15863 #AT_START_36
15864 # 36. incremental.at:23: incremental
15865 at_setup_line='incremental.at:23'
15866 at_desc="incremental"
15867 $at_quiet $as_echo_n " 36: $at_desc                                    "
15868 at_xfail=no
15869       test -f $XFAILFILE && at_xfail=yes
15870 echo "#                             -*- compilation -*-" >> "$at_group_log"
15871 (
15872   $as_echo "36. incremental.at:23: testing ..."
15873   $at_traceon
15874
15875
15876
15877
15878
15879   { $at_traceoff
15880 $as_echo "$at_srcdir/incremental.at:26:
15881 mkdir gnu
15882 (cd gnu
15883 TEST_TAR_FORMAT=gnu
15884 export TEST_TAR_FORMAT
15885 TAR_OPTIONS=\"-H gnu\"
15886 export TAR_OPTIONS
15887 rm -rf *
15888
15889 mkdir structure
15890 echo x >structure/file
15891
15892 # On Nextstep (and perhaps other 4.3BSD systems),
15893 # a newly created file's ctime isn't updated
15894 # until the next sync or stat operation on the file.
15895 ls -l structure/file >/dev/null
15896
15897 # If the time of an initial backup and the creation time of a file contained
15898 # in that backup are the same, the file will be backed up again when an
15899 # incremental backup is done, because the incremental backup backs up
15900 # files created \`on or after' the initial backup time.  Without the sleep
15901 # command, behaviour of tar becomes variable, depending whether the system
15902 # clock ticked over to the next second between creating the file and
15903 # backing it up.
15904 sleep 1
15905
15906 tar cf archive --listed=list structure
15907 tar cfv archive --listed=list structure
15908 echo separator
15909 # ReiserFS often offsets the timestamps of newly created files
15910 # 1 second to the past.  Try to compensate for it, until a better
15911 # solution is found.
15912 sleep 2
15913 echo y >structure/file
15914 tar cfv archive --listed=list structure
15915 )"
15916 echo incremental.at:26 >"$at_check_line_file"
15917
15918 if { echo 'Not enabling shell tracing (command contains a `...` command substitution)'
15919    false; }; then
15920   ( $at_traceon;
15921 mkdir gnu
15922 (cd gnu
15923 TEST_TAR_FORMAT=gnu
15924 export TEST_TAR_FORMAT
15925 TAR_OPTIONS="-H gnu"
15926 export TAR_OPTIONS
15927 rm -rf *
15928
15929 mkdir structure
15930 echo x >structure/file
15931
15932 # On Nextstep (and perhaps other 4.3BSD systems),
15933 # a newly created file's ctime isn't updated
15934 # until the next sync or stat operation on the file.
15935 ls -l structure/file >/dev/null
15936
15937 # If the time of an initial backup and the creation time of a file contained
15938 # in that backup are the same, the file will be backed up again when an
15939 # incremental backup is done, because the incremental backup backs up
15940 # files created `on or after' the initial backup time.  Without the sleep
15941 # command, behaviour of tar becomes variable, depending whether the system
15942 # clock ticked over to the next second between creating the file and
15943 # backing it up.
15944 sleep 1
15945
15946 tar cf archive --listed=list structure
15947 tar cfv archive --listed=list structure
15948 echo separator
15949 # ReiserFS often offsets the timestamps of newly created files
15950 # 1 second to the past.  Try to compensate for it, until a better
15951 # solution is found.
15952 sleep 2
15953 echo y >structure/file
15954 tar cfv archive --listed=list structure
15955 ) ) >"$at_stdout" 2>"$at_stder1"
15956   at_func_filter_trace $?
15957 else
15958   ( :;
15959 mkdir gnu
15960 (cd gnu
15961 TEST_TAR_FORMAT=gnu
15962 export TEST_TAR_FORMAT
15963 TAR_OPTIONS="-H gnu"
15964 export TAR_OPTIONS
15965 rm -rf *
15966
15967 mkdir structure
15968 echo x >structure/file
15969
15970 # On Nextstep (and perhaps other 4.3BSD systems),
15971 # a newly created file's ctime isn't updated
15972 # until the next sync or stat operation on the file.
15973 ls -l structure/file >/dev/null
15974
15975 # If the time of an initial backup and the creation time of a file contained
15976 # in that backup are the same, the file will be backed up again when an
15977 # incremental backup is done, because the incremental backup backs up
15978 # files created `on or after' the initial backup time.  Without the sleep
15979 # command, behaviour of tar becomes variable, depending whether the system
15980 # clock ticked over to the next second between creating the file and
15981 # backing it up.
15982 sleep 1
15983
15984 tar cf archive --listed=list structure
15985 tar cfv archive --listed=list structure
15986 echo separator
15987 # ReiserFS often offsets the timestamps of newly created files
15988 # 1 second to the past.  Try to compensate for it, until a better
15989 # solution is found.
15990 sleep 2
15991 echo y >structure/file
15992 tar cfv archive --listed=list structure
15993 ) ) >"$at_stdout" 2>"$at_stderr"
15994 fi
15995 at_status=$?
15996 at_failed=false
15997 at_func_diff_devnull "$at_stderr" || at_failed=:
15998 echo >>"$at_stdout"; $as_echo "structure/
15999 separator
16000 structure/
16001 structure/file
16002 " | \
16003   $at_diff - "$at_stdout" || at_failed=:
16004 at_func_check_status 0 $at_status "$at_srcdir/incremental.at:26"
16005
16006 $at_failed && at_func_log_failure
16007 $at_traceon; }
16008
16009               { $at_traceoff
16010 $as_echo "$at_srcdir/incremental.at:26:
16011 mkdir oldgnu
16012 (cd oldgnu
16013 TEST_TAR_FORMAT=oldgnu
16014 export TEST_TAR_FORMAT
16015 TAR_OPTIONS=\"-H oldgnu\"
16016 export TAR_OPTIONS
16017 rm -rf *
16018
16019 mkdir structure
16020 echo x >structure/file
16021
16022 # On Nextstep (and perhaps other 4.3BSD systems),
16023 # a newly created file's ctime isn't updated
16024 # until the next sync or stat operation on the file.
16025 ls -l structure/file >/dev/null
16026
16027 # If the time of an initial backup and the creation time of a file contained
16028 # in that backup are the same, the file will be backed up again when an
16029 # incremental backup is done, because the incremental backup backs up
16030 # files created \`on or after' the initial backup time.  Without the sleep
16031 # command, behaviour of tar becomes variable, depending whether the system
16032 # clock ticked over to the next second between creating the file and
16033 # backing it up.
16034 sleep 1
16035
16036 tar cf archive --listed=list structure
16037 tar cfv archive --listed=list structure
16038 echo separator
16039 # ReiserFS often offsets the timestamps of newly created files
16040 # 1 second to the past.  Try to compensate for it, until a better
16041 # solution is found.
16042 sleep 2
16043 echo y >structure/file
16044 tar cfv archive --listed=list structure
16045 )"
16046 echo incremental.at:26 >"$at_check_line_file"
16047
16048 if { echo 'Not enabling shell tracing (command contains a `...` command substitution)'
16049    false; }; then
16050   ( $at_traceon;
16051 mkdir oldgnu
16052 (cd oldgnu
16053 TEST_TAR_FORMAT=oldgnu
16054 export TEST_TAR_FORMAT
16055 TAR_OPTIONS="-H oldgnu"
16056 export TAR_OPTIONS
16057 rm -rf *
16058
16059 mkdir structure
16060 echo x >structure/file
16061
16062 # On Nextstep (and perhaps other 4.3BSD systems),
16063 # a newly created file's ctime isn't updated
16064 # until the next sync or stat operation on the file.
16065 ls -l structure/file >/dev/null
16066
16067 # If the time of an initial backup and the creation time of a file contained
16068 # in that backup are the same, the file will be backed up again when an
16069 # incremental backup is done, because the incremental backup backs up
16070 # files created `on or after' the initial backup time.  Without the sleep
16071 # command, behaviour of tar becomes variable, depending whether the system
16072 # clock ticked over to the next second between creating the file and
16073 # backing it up.
16074 sleep 1
16075
16076 tar cf archive --listed=list structure
16077 tar cfv archive --listed=list structure
16078 echo separator
16079 # ReiserFS often offsets the timestamps of newly created files
16080 # 1 second to the past.  Try to compensate for it, until a better
16081 # solution is found.
16082 sleep 2
16083 echo y >structure/file
16084 tar cfv archive --listed=list structure
16085 ) ) >"$at_stdout" 2>"$at_stder1"
16086   at_func_filter_trace $?
16087 else
16088   ( :;
16089 mkdir oldgnu
16090 (cd oldgnu
16091 TEST_TAR_FORMAT=oldgnu
16092 export TEST_TAR_FORMAT
16093 TAR_OPTIONS="-H oldgnu"
16094 export TAR_OPTIONS
16095 rm -rf *
16096
16097 mkdir structure
16098 echo x >structure/file
16099
16100 # On Nextstep (and perhaps other 4.3BSD systems),
16101 # a newly created file's ctime isn't updated
16102 # until the next sync or stat operation on the file.
16103 ls -l structure/file >/dev/null
16104
16105 # If the time of an initial backup and the creation time of a file contained
16106 # in that backup are the same, the file will be backed up again when an
16107 # incremental backup is done, because the incremental backup backs up
16108 # files created `on or after' the initial backup time.  Without the sleep
16109 # command, behaviour of tar becomes variable, depending whether the system
16110 # clock ticked over to the next second between creating the file and
16111 # backing it up.
16112 sleep 1
16113
16114 tar cf archive --listed=list structure
16115 tar cfv archive --listed=list structure
16116 echo separator
16117 # ReiserFS often offsets the timestamps of newly created files
16118 # 1 second to the past.  Try to compensate for it, until a better
16119 # solution is found.
16120 sleep 2
16121 echo y >structure/file
16122 tar cfv archive --listed=list structure
16123 ) ) >"$at_stdout" 2>"$at_stderr"
16124 fi
16125 at_status=$?
16126 at_failed=false
16127 at_func_diff_devnull "$at_stderr" || at_failed=:
16128 echo >>"$at_stdout"; $as_echo "structure/
16129 separator
16130 structure/
16131 structure/file
16132 " | \
16133   $at_diff - "$at_stdout" || at_failed=:
16134 at_func_check_status 0 $at_status "$at_srcdir/incremental.at:26"
16135
16136 $at_failed && at_func_log_failure
16137 $at_traceon; }
16138
16139               { $at_traceoff
16140 $as_echo "$at_srcdir/incremental.at:26:
16141 mkdir posix
16142 (cd posix
16143 TEST_TAR_FORMAT=posix
16144 export TEST_TAR_FORMAT
16145 TAR_OPTIONS=\"-H posix\"
16146 export TAR_OPTIONS
16147 rm -rf *
16148
16149 mkdir structure
16150 echo x >structure/file
16151
16152 # On Nextstep (and perhaps other 4.3BSD systems),
16153 # a newly created file's ctime isn't updated
16154 # until the next sync or stat operation on the file.
16155 ls -l structure/file >/dev/null
16156
16157 # If the time of an initial backup and the creation time of a file contained
16158 # in that backup are the same, the file will be backed up again when an
16159 # incremental backup is done, because the incremental backup backs up
16160 # files created \`on or after' the initial backup time.  Without the sleep
16161 # command, behaviour of tar becomes variable, depending whether the system
16162 # clock ticked over to the next second between creating the file and
16163 # backing it up.
16164 sleep 1
16165
16166 tar cf archive --listed=list structure
16167 tar cfv archive --listed=list structure
16168 echo separator
16169 # ReiserFS often offsets the timestamps of newly created files
16170 # 1 second to the past.  Try to compensate for it, until a better
16171 # solution is found.
16172 sleep 2
16173 echo y >structure/file
16174 tar cfv archive --listed=list structure
16175 )"
16176 echo incremental.at:26 >"$at_check_line_file"
16177
16178 if { echo 'Not enabling shell tracing (command contains a `...` command substitution)'
16179    false; }; then
16180   ( $at_traceon;
16181 mkdir posix
16182 (cd posix
16183 TEST_TAR_FORMAT=posix
16184 export TEST_TAR_FORMAT
16185 TAR_OPTIONS="-H posix"
16186 export TAR_OPTIONS
16187 rm -rf *
16188
16189 mkdir structure
16190 echo x >structure/file
16191
16192 # On Nextstep (and perhaps other 4.3BSD systems),
16193 # a newly created file's ctime isn't updated
16194 # until the next sync or stat operation on the file.
16195 ls -l structure/file >/dev/null
16196
16197 # If the time of an initial backup and the creation time of a file contained
16198 # in that backup are the same, the file will be backed up again when an
16199 # incremental backup is done, because the incremental backup backs up
16200 # files created `on or after' the initial backup time.  Without the sleep
16201 # command, behaviour of tar becomes variable, depending whether the system
16202 # clock ticked over to the next second between creating the file and
16203 # backing it up.
16204 sleep 1
16205
16206 tar cf archive --listed=list structure
16207 tar cfv archive --listed=list structure
16208 echo separator
16209 # ReiserFS often offsets the timestamps of newly created files
16210 # 1 second to the past.  Try to compensate for it, until a better
16211 # solution is found.
16212 sleep 2
16213 echo y >structure/file
16214 tar cfv archive --listed=list structure
16215 ) ) >"$at_stdout" 2>"$at_stder1"
16216   at_func_filter_trace $?
16217 else
16218   ( :;
16219 mkdir posix
16220 (cd posix
16221 TEST_TAR_FORMAT=posix
16222 export TEST_TAR_FORMAT
16223 TAR_OPTIONS="-H posix"
16224 export TAR_OPTIONS
16225 rm -rf *
16226
16227 mkdir structure
16228 echo x >structure/file
16229
16230 # On Nextstep (and perhaps other 4.3BSD systems),
16231 # a newly created file's ctime isn't updated
16232 # until the next sync or stat operation on the file.
16233 ls -l structure/file >/dev/null
16234
16235 # If the time of an initial backup and the creation time of a file contained
16236 # in that backup are the same, the file will be backed up again when an
16237 # incremental backup is done, because the incremental backup backs up
16238 # files created `on or after' the initial backup time.  Without the sleep
16239 # command, behaviour of tar becomes variable, depending whether the system
16240 # clock ticked over to the next second between creating the file and
16241 # backing it up.
16242 sleep 1
16243
16244 tar cf archive --listed=list structure
16245 tar cfv archive --listed=list structure
16246 echo separator
16247 # ReiserFS often offsets the timestamps of newly created files
16248 # 1 second to the past.  Try to compensate for it, until a better
16249 # solution is found.
16250 sleep 2
16251 echo y >structure/file
16252 tar cfv archive --listed=list structure
16253 ) ) >"$at_stdout" 2>"$at_stderr"
16254 fi
16255 at_status=$?
16256 at_failed=false
16257 at_func_diff_devnull "$at_stderr" || at_failed=:
16258 echo >>"$at_stdout"; $as_echo "structure/
16259 separator
16260 structure/
16261 structure/file
16262 " | \
16263   $at_diff - "$at_stdout" || at_failed=:
16264 at_func_check_status 0 $at_status "$at_srcdir/incremental.at:26"
16265
16266 $at_failed && at_func_log_failure
16267 $at_traceon; }
16268
16269
16270
16271
16272   $at_traceoff
16273   $at_times_p && times >"$at_times_file"
16274 ) 5>&1 2>&1 | eval $at_tee_pipe
16275 at_status=`cat "$at_status_file"`
16276 #AT_STOP_36
16277 #AT_START_37
16278 # 37. incr01.at:27: restore broken symlinks from incremental
16279 at_setup_line='incr01.at:27'
16280 at_desc="restore broken symlinks from incremental"
16281 $at_quiet $as_echo_n " 37: $at_desc       "
16282 at_xfail=no
16283       test -f $XFAILFILE && at_xfail=yes
16284 echo "#                             -*- compilation -*-" >> "$at_group_log"
16285 (
16286   $as_echo "37. incr01.at:27: testing ..."
16287   $at_traceon
16288
16289
16290
16291
16292
16293   { $at_traceoff
16294 $as_echo "$at_srcdir/incr01.at:30:
16295 mkdir gnu
16296 (cd gnu
16297 TEST_TAR_FORMAT=gnu
16298 export TEST_TAR_FORMAT
16299 TAR_OPTIONS=\"-H gnu\"
16300 export TAR_OPTIONS
16301 rm -rf *
16302
16303 mkdir directory
16304 \$as_ln_s foo directory/bar
16305
16306 tar -cf archive.0 -g db directory
16307 rm directory/bar
16308 tar -cf archive.1 -g db directory
16309
16310 mv directory orig
16311
16312 tar xvfg archive.0 /dev/null
16313 echo separator
16314 tar xvfg archive.1 /dev/null
16315 )"
16316 echo incr01.at:30 >"$at_check_line_file"
16317
16318 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
16319    false; }; then
16320   ( $at_traceon;
16321 mkdir gnu
16322 (cd gnu
16323 TEST_TAR_FORMAT=gnu
16324 export TEST_TAR_FORMAT
16325 TAR_OPTIONS="-H gnu"
16326 export TAR_OPTIONS
16327 rm -rf *
16328
16329 mkdir directory
16330 $as_ln_s foo directory/bar
16331
16332 tar -cf archive.0 -g db directory
16333 rm directory/bar
16334 tar -cf archive.1 -g db directory
16335
16336 mv directory orig
16337
16338 tar xvfg archive.0 /dev/null
16339 echo separator
16340 tar xvfg archive.1 /dev/null
16341 ) ) >"$at_stdout" 2>"$at_stder1"
16342   at_func_filter_trace $?
16343 else
16344   ( :;
16345 mkdir gnu
16346 (cd gnu
16347 TEST_TAR_FORMAT=gnu
16348 export TEST_TAR_FORMAT
16349 TAR_OPTIONS="-H gnu"
16350 export TAR_OPTIONS
16351 rm -rf *
16352
16353 mkdir directory
16354 $as_ln_s foo directory/bar
16355
16356 tar -cf archive.0 -g db directory
16357 rm directory/bar
16358 tar -cf archive.1 -g db directory
16359
16360 mv directory orig
16361
16362 tar xvfg archive.0 /dev/null
16363 echo separator
16364 tar xvfg archive.1 /dev/null
16365 ) ) >"$at_stdout" 2>"$at_stderr"
16366 fi
16367 at_status=$?
16368 at_failed=false
16369 at_func_diff_devnull "$at_stderr" || at_failed=:
16370 echo >>"$at_stdout"; $as_echo "directory/
16371 directory/bar
16372 separator
16373 directory/
16374 tar: Deleting \`directory/bar'
16375 " | \
16376   $at_diff - "$at_stdout" || at_failed=:
16377 at_func_check_status 0 $at_status "$at_srcdir/incr01.at:30"
16378
16379 $at_failed && at_func_log_failure
16380 $at_traceon; }
16381
16382               { $at_traceoff
16383 $as_echo "$at_srcdir/incr01.at:30:
16384 mkdir oldgnu
16385 (cd oldgnu
16386 TEST_TAR_FORMAT=oldgnu
16387 export TEST_TAR_FORMAT
16388 TAR_OPTIONS=\"-H oldgnu\"
16389 export TAR_OPTIONS
16390 rm -rf *
16391
16392 mkdir directory
16393 \$as_ln_s foo directory/bar
16394
16395 tar -cf archive.0 -g db directory
16396 rm directory/bar
16397 tar -cf archive.1 -g db directory
16398
16399 mv directory orig
16400
16401 tar xvfg archive.0 /dev/null
16402 echo separator
16403 tar xvfg archive.1 /dev/null
16404 )"
16405 echo incr01.at:30 >"$at_check_line_file"
16406
16407 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
16408    false; }; then
16409   ( $at_traceon;
16410 mkdir oldgnu
16411 (cd oldgnu
16412 TEST_TAR_FORMAT=oldgnu
16413 export TEST_TAR_FORMAT
16414 TAR_OPTIONS="-H oldgnu"
16415 export TAR_OPTIONS
16416 rm -rf *
16417
16418 mkdir directory
16419 $as_ln_s foo directory/bar
16420
16421 tar -cf archive.0 -g db directory
16422 rm directory/bar
16423 tar -cf archive.1 -g db directory
16424
16425 mv directory orig
16426
16427 tar xvfg archive.0 /dev/null
16428 echo separator
16429 tar xvfg archive.1 /dev/null
16430 ) ) >"$at_stdout" 2>"$at_stder1"
16431   at_func_filter_trace $?
16432 else
16433   ( :;
16434 mkdir oldgnu
16435 (cd oldgnu
16436 TEST_TAR_FORMAT=oldgnu
16437 export TEST_TAR_FORMAT
16438 TAR_OPTIONS="-H oldgnu"
16439 export TAR_OPTIONS
16440 rm -rf *
16441
16442 mkdir directory
16443 $as_ln_s foo directory/bar
16444
16445 tar -cf archive.0 -g db directory
16446 rm directory/bar
16447 tar -cf archive.1 -g db directory
16448
16449 mv directory orig
16450
16451 tar xvfg archive.0 /dev/null
16452 echo separator
16453 tar xvfg archive.1 /dev/null
16454 ) ) >"$at_stdout" 2>"$at_stderr"
16455 fi
16456 at_status=$?
16457 at_failed=false
16458 at_func_diff_devnull "$at_stderr" || at_failed=:
16459 echo >>"$at_stdout"; $as_echo "directory/
16460 directory/bar
16461 separator
16462 directory/
16463 tar: Deleting \`directory/bar'
16464 " | \
16465   $at_diff - "$at_stdout" || at_failed=:
16466 at_func_check_status 0 $at_status "$at_srcdir/incr01.at:30"
16467
16468 $at_failed && at_func_log_failure
16469 $at_traceon; }
16470
16471               { $at_traceoff
16472 $as_echo "$at_srcdir/incr01.at:30:
16473 mkdir posix
16474 (cd posix
16475 TEST_TAR_FORMAT=posix
16476 export TEST_TAR_FORMAT
16477 TAR_OPTIONS=\"-H posix\"
16478 export TAR_OPTIONS
16479 rm -rf *
16480
16481 mkdir directory
16482 \$as_ln_s foo directory/bar
16483
16484 tar -cf archive.0 -g db directory
16485 rm directory/bar
16486 tar -cf archive.1 -g db directory
16487
16488 mv directory orig
16489
16490 tar xvfg archive.0 /dev/null
16491 echo separator
16492 tar xvfg archive.1 /dev/null
16493 )"
16494 echo incr01.at:30 >"$at_check_line_file"
16495
16496 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
16497    false; }; then
16498   ( $at_traceon;
16499 mkdir posix
16500 (cd posix
16501 TEST_TAR_FORMAT=posix
16502 export TEST_TAR_FORMAT
16503 TAR_OPTIONS="-H posix"
16504 export TAR_OPTIONS
16505 rm -rf *
16506
16507 mkdir directory
16508 $as_ln_s foo directory/bar
16509
16510 tar -cf archive.0 -g db directory
16511 rm directory/bar
16512 tar -cf archive.1 -g db directory
16513
16514 mv directory orig
16515
16516 tar xvfg archive.0 /dev/null
16517 echo separator
16518 tar xvfg archive.1 /dev/null
16519 ) ) >"$at_stdout" 2>"$at_stder1"
16520   at_func_filter_trace $?
16521 else
16522   ( :;
16523 mkdir posix
16524 (cd posix
16525 TEST_TAR_FORMAT=posix
16526 export TEST_TAR_FORMAT
16527 TAR_OPTIONS="-H posix"
16528 export TAR_OPTIONS
16529 rm -rf *
16530
16531 mkdir directory
16532 $as_ln_s foo directory/bar
16533
16534 tar -cf archive.0 -g db directory
16535 rm directory/bar
16536 tar -cf archive.1 -g db directory
16537
16538 mv directory orig
16539
16540 tar xvfg archive.0 /dev/null
16541 echo separator
16542 tar xvfg archive.1 /dev/null
16543 ) ) >"$at_stdout" 2>"$at_stderr"
16544 fi
16545 at_status=$?
16546 at_failed=false
16547 at_func_diff_devnull "$at_stderr" || at_failed=:
16548 echo >>"$at_stdout"; $as_echo "directory/
16549 directory/bar
16550 separator
16551 directory/
16552 tar: Deleting \`directory/bar'
16553 " | \
16554   $at_diff - "$at_stdout" || at_failed=:
16555 at_func_check_status 0 $at_status "$at_srcdir/incr01.at:30"
16556
16557 $at_failed && at_func_log_failure
16558 $at_traceon; }
16559
16560
16561
16562
16563   $at_traceoff
16564   $at_times_p && times >"$at_times_file"
16565 ) 5>&1 2>&1 | eval $at_tee_pipe
16566 at_status=`cat "$at_status_file"`
16567 #AT_STOP_37
16568 #AT_START_38
16569 # 38. incr02.at:32: restoring timestamps from incremental
16570 at_setup_line='incr02.at:32'
16571 at_desc="restoring timestamps from incremental"
16572 $at_quiet $as_echo_n " 38: $at_desc          "
16573 at_xfail=no
16574       test -f $XFAILFILE && at_xfail=yes
16575 echo "#                             -*- compilation -*-" >> "$at_group_log"
16576 (
16577   $as_echo "38. incr02.at:32: testing ..."
16578   $at_traceon
16579
16580
16581
16582
16583
16584   { $at_traceoff
16585 $as_echo "$at_srcdir/incr02.at:35:
16586 mkdir gnu
16587 (cd gnu
16588 TEST_TAR_FORMAT=gnu
16589 export TEST_TAR_FORMAT
16590 TAR_OPTIONS=\"-H gnu\"
16591 export TAR_OPTIONS
16592 rm -rf *
16593
16594 # Create directory structure
16595 mkdir dir
16596 mkdir dir/subdir1
16597 mkdir dir/subdir2
16598 genfile --length 10 --file dir/subdir1/file
16599
16600 # Save mtime for later comparison
16601 genfile --stat=mtime dir/subdir1 > ts
16602
16603 # Create an archive. Using incremental mode makes sure the
16604 # archive will have a directory-first member ordering,
16605 # i.e.:
16606 # dir/
16607 # dir/subdir1/
16608 # dir/subdir2/
16609 # dir/subdir1/foofile
16610 #
16611 # When restoring from this directory structure, \`dir/subdir2/' used to
16612 # trigger apply_nonancestor_delayed_set_stat() which restored stats for
16613 # \`subdir1' prior to restoring \`dir/subdir1/foofile'. Then, restoring the
16614 # latter clobbered the directory timestamp.
16615
16616 tar -cf archive -g db dir
16617
16618 # Move away the directory
16619 mv dir orig
16620
16621 # Wait enough time for timestamps to differ in case of failure.
16622 sleep 5
16623
16624 # Restore the directory
16625 tar -xf archive dir
16626
16627 # Check the timestamp
16628 genfile --stat=mtime dir/subdir1 | diff ts -
16629 )"
16630 echo incr02.at:35 >"$at_check_line_file"
16631
16632 if { echo 'Not enabling shell tracing (command contains a `...` command substitution)'
16633    false; }; then
16634   ( $at_traceon;
16635 mkdir gnu
16636 (cd gnu
16637 TEST_TAR_FORMAT=gnu
16638 export TEST_TAR_FORMAT
16639 TAR_OPTIONS="-H gnu"
16640 export TAR_OPTIONS
16641 rm -rf *
16642
16643 # Create directory structure
16644 mkdir dir
16645 mkdir dir/subdir1
16646 mkdir dir/subdir2
16647 genfile --length 10 --file dir/subdir1/file
16648
16649 # Save mtime for later comparison
16650 genfile --stat=mtime dir/subdir1 > ts
16651
16652 # Create an archive. Using incremental mode makes sure the
16653 # archive will have a directory-first member ordering,
16654 # i.e.:
16655 # dir/
16656 # dir/subdir1/
16657 # dir/subdir2/
16658 # dir/subdir1/foofile
16659 #
16660 # When restoring from this directory structure, `dir/subdir2/' used to
16661 # trigger apply_nonancestor_delayed_set_stat() which restored stats for
16662 # `subdir1' prior to restoring `dir/subdir1/foofile'. Then, restoring the
16663 # latter clobbered the directory timestamp.
16664
16665 tar -cf archive -g db dir
16666
16667 # Move away the directory
16668 mv dir orig
16669
16670 # Wait enough time for timestamps to differ in case of failure.
16671 sleep 5
16672
16673 # Restore the directory
16674 tar -xf archive dir
16675
16676 # Check the timestamp
16677 genfile --stat=mtime dir/subdir1 | diff ts -
16678 ) ) >"$at_stdout" 2>"$at_stder1"
16679   at_func_filter_trace $?
16680 else
16681   ( :;
16682 mkdir gnu
16683 (cd gnu
16684 TEST_TAR_FORMAT=gnu
16685 export TEST_TAR_FORMAT
16686 TAR_OPTIONS="-H gnu"
16687 export TAR_OPTIONS
16688 rm -rf *
16689
16690 # Create directory structure
16691 mkdir dir
16692 mkdir dir/subdir1
16693 mkdir dir/subdir2
16694 genfile --length 10 --file dir/subdir1/file
16695
16696 # Save mtime for later comparison
16697 genfile --stat=mtime dir/subdir1 > ts
16698
16699 # Create an archive. Using incremental mode makes sure the
16700 # archive will have a directory-first member ordering,
16701 # i.e.:
16702 # dir/
16703 # dir/subdir1/
16704 # dir/subdir2/
16705 # dir/subdir1/foofile
16706 #
16707 # When restoring from this directory structure, `dir/subdir2/' used to
16708 # trigger apply_nonancestor_delayed_set_stat() which restored stats for
16709 # `subdir1' prior to restoring `dir/subdir1/foofile'. Then, restoring the
16710 # latter clobbered the directory timestamp.
16711
16712 tar -cf archive -g db dir
16713
16714 # Move away the directory
16715 mv dir orig
16716
16717 # Wait enough time for timestamps to differ in case of failure.
16718 sleep 5
16719
16720 # Restore the directory
16721 tar -xf archive dir
16722
16723 # Check the timestamp
16724 genfile --stat=mtime dir/subdir1 | diff ts -
16725 ) ) >"$at_stdout" 2>"$at_stderr"
16726 fi
16727 at_status=$?
16728 at_failed=false
16729 at_func_diff_devnull "$at_stderr" || at_failed=:
16730 at_func_diff_devnull "$at_stdout" || at_failed=:
16731 at_func_check_status 0 $at_status "$at_srcdir/incr02.at:35"
16732
16733 $at_failed && at_func_log_failure
16734 $at_traceon; }
16735
16736               { $at_traceoff
16737 $as_echo "$at_srcdir/incr02.at:35:
16738 mkdir oldgnu
16739 (cd oldgnu
16740 TEST_TAR_FORMAT=oldgnu
16741 export TEST_TAR_FORMAT
16742 TAR_OPTIONS=\"-H oldgnu\"
16743 export TAR_OPTIONS
16744 rm -rf *
16745
16746 # Create directory structure
16747 mkdir dir
16748 mkdir dir/subdir1
16749 mkdir dir/subdir2
16750 genfile --length 10 --file dir/subdir1/file
16751
16752 # Save mtime for later comparison
16753 genfile --stat=mtime dir/subdir1 > ts
16754
16755 # Create an archive. Using incremental mode makes sure the
16756 # archive will have a directory-first member ordering,
16757 # i.e.:
16758 # dir/
16759 # dir/subdir1/
16760 # dir/subdir2/
16761 # dir/subdir1/foofile
16762 #
16763 # When restoring from this directory structure, \`dir/subdir2/' used to
16764 # trigger apply_nonancestor_delayed_set_stat() which restored stats for
16765 # \`subdir1' prior to restoring \`dir/subdir1/foofile'. Then, restoring the
16766 # latter clobbered the directory timestamp.
16767
16768 tar -cf archive -g db dir
16769
16770 # Move away the directory
16771 mv dir orig
16772
16773 # Wait enough time for timestamps to differ in case of failure.
16774 sleep 5
16775
16776 # Restore the directory
16777 tar -xf archive dir
16778
16779 # Check the timestamp
16780 genfile --stat=mtime dir/subdir1 | diff ts -
16781 )"
16782 echo incr02.at:35 >"$at_check_line_file"
16783
16784 if { echo 'Not enabling shell tracing (command contains a `...` command substitution)'
16785    false; }; then
16786   ( $at_traceon;
16787 mkdir oldgnu
16788 (cd oldgnu
16789 TEST_TAR_FORMAT=oldgnu
16790 export TEST_TAR_FORMAT
16791 TAR_OPTIONS="-H oldgnu"
16792 export TAR_OPTIONS
16793 rm -rf *
16794
16795 # Create directory structure
16796 mkdir dir
16797 mkdir dir/subdir1
16798 mkdir dir/subdir2
16799 genfile --length 10 --file dir/subdir1/file
16800
16801 # Save mtime for later comparison
16802 genfile --stat=mtime dir/subdir1 > ts
16803
16804 # Create an archive. Using incremental mode makes sure the
16805 # archive will have a directory-first member ordering,
16806 # i.e.:
16807 # dir/
16808 # dir/subdir1/
16809 # dir/subdir2/
16810 # dir/subdir1/foofile
16811 #
16812 # When restoring from this directory structure, `dir/subdir2/' used to
16813 # trigger apply_nonancestor_delayed_set_stat() which restored stats for
16814 # `subdir1' prior to restoring `dir/subdir1/foofile'. Then, restoring the
16815 # latter clobbered the directory timestamp.
16816
16817 tar -cf archive -g db dir
16818
16819 # Move away the directory
16820 mv dir orig
16821
16822 # Wait enough time for timestamps to differ in case of failure.
16823 sleep 5
16824
16825 # Restore the directory
16826 tar -xf archive dir
16827
16828 # Check the timestamp
16829 genfile --stat=mtime dir/subdir1 | diff ts -
16830 ) ) >"$at_stdout" 2>"$at_stder1"
16831   at_func_filter_trace $?
16832 else
16833   ( :;
16834 mkdir oldgnu
16835 (cd oldgnu
16836 TEST_TAR_FORMAT=oldgnu
16837 export TEST_TAR_FORMAT
16838 TAR_OPTIONS="-H oldgnu"
16839 export TAR_OPTIONS
16840 rm -rf *
16841
16842 # Create directory structure
16843 mkdir dir
16844 mkdir dir/subdir1
16845 mkdir dir/subdir2
16846 genfile --length 10 --file dir/subdir1/file
16847
16848 # Save mtime for later comparison
16849 genfile --stat=mtime dir/subdir1 > ts
16850
16851 # Create an archive. Using incremental mode makes sure the
16852 # archive will have a directory-first member ordering,
16853 # i.e.:
16854 # dir/
16855 # dir/subdir1/
16856 # dir/subdir2/
16857 # dir/subdir1/foofile
16858 #
16859 # When restoring from this directory structure, `dir/subdir2/' used to
16860 # trigger apply_nonancestor_delayed_set_stat() which restored stats for
16861 # `subdir1' prior to restoring `dir/subdir1/foofile'. Then, restoring the
16862 # latter clobbered the directory timestamp.
16863
16864 tar -cf archive -g db dir
16865
16866 # Move away the directory
16867 mv dir orig
16868
16869 # Wait enough time for timestamps to differ in case of failure.
16870 sleep 5
16871
16872 # Restore the directory
16873 tar -xf archive dir
16874
16875 # Check the timestamp
16876 genfile --stat=mtime dir/subdir1 | diff ts -
16877 ) ) >"$at_stdout" 2>"$at_stderr"
16878 fi
16879 at_status=$?
16880 at_failed=false
16881 at_func_diff_devnull "$at_stderr" || at_failed=:
16882 at_func_diff_devnull "$at_stdout" || at_failed=:
16883 at_func_check_status 0 $at_status "$at_srcdir/incr02.at:35"
16884
16885 $at_failed && at_func_log_failure
16886 $at_traceon; }
16887
16888               { $at_traceoff
16889 $as_echo "$at_srcdir/incr02.at:35:
16890 mkdir posix
16891 (cd posix
16892 TEST_TAR_FORMAT=posix
16893 export TEST_TAR_FORMAT
16894 TAR_OPTIONS=\"-H posix\"
16895 export TAR_OPTIONS
16896 rm -rf *
16897
16898 # Create directory structure
16899 mkdir dir
16900 mkdir dir/subdir1
16901 mkdir dir/subdir2
16902 genfile --length 10 --file dir/subdir1/file
16903
16904 # Save mtime for later comparison
16905 genfile --stat=mtime dir/subdir1 > ts
16906
16907 # Create an archive. Using incremental mode makes sure the
16908 # archive will have a directory-first member ordering,
16909 # i.e.:
16910 # dir/
16911 # dir/subdir1/
16912 # dir/subdir2/
16913 # dir/subdir1/foofile
16914 #
16915 # When restoring from this directory structure, \`dir/subdir2/' used to
16916 # trigger apply_nonancestor_delayed_set_stat() which restored stats for
16917 # \`subdir1' prior to restoring \`dir/subdir1/foofile'. Then, restoring the
16918 # latter clobbered the directory timestamp.
16919
16920 tar -cf archive -g db dir
16921
16922 # Move away the directory
16923 mv dir orig
16924
16925 # Wait enough time for timestamps to differ in case of failure.
16926 sleep 5
16927
16928 # Restore the directory
16929 tar -xf archive dir
16930
16931 # Check the timestamp
16932 genfile --stat=mtime dir/subdir1 | diff ts -
16933 )"
16934 echo incr02.at:35 >"$at_check_line_file"
16935
16936 if { echo 'Not enabling shell tracing (command contains a `...` command substitution)'
16937    false; }; then
16938   ( $at_traceon;
16939 mkdir posix
16940 (cd posix
16941 TEST_TAR_FORMAT=posix
16942 export TEST_TAR_FORMAT
16943 TAR_OPTIONS="-H posix"
16944 export TAR_OPTIONS
16945 rm -rf *
16946
16947 # Create directory structure
16948 mkdir dir
16949 mkdir dir/subdir1
16950 mkdir dir/subdir2
16951 genfile --length 10 --file dir/subdir1/file
16952
16953 # Save mtime for later comparison
16954 genfile --stat=mtime dir/subdir1 > ts
16955
16956 # Create an archive. Using incremental mode makes sure the
16957 # archive will have a directory-first member ordering,
16958 # i.e.:
16959 # dir/
16960 # dir/subdir1/
16961 # dir/subdir2/
16962 # dir/subdir1/foofile
16963 #
16964 # When restoring from this directory structure, `dir/subdir2/' used to
16965 # trigger apply_nonancestor_delayed_set_stat() which restored stats for
16966 # `subdir1' prior to restoring `dir/subdir1/foofile'. Then, restoring the
16967 # latter clobbered the directory timestamp.
16968
16969 tar -cf archive -g db dir
16970
16971 # Move away the directory
16972 mv dir orig
16973
16974 # Wait enough time for timestamps to differ in case of failure.
16975 sleep 5
16976
16977 # Restore the directory
16978 tar -xf archive dir
16979
16980 # Check the timestamp
16981 genfile --stat=mtime dir/subdir1 | diff ts -
16982 ) ) >"$at_stdout" 2>"$at_stder1"
16983   at_func_filter_trace $?
16984 else
16985   ( :;
16986 mkdir posix
16987 (cd posix
16988 TEST_TAR_FORMAT=posix
16989 export TEST_TAR_FORMAT
16990 TAR_OPTIONS="-H posix"
16991 export TAR_OPTIONS
16992 rm -rf *
16993
16994 # Create directory structure
16995 mkdir dir
16996 mkdir dir/subdir1
16997 mkdir dir/subdir2
16998 genfile --length 10 --file dir/subdir1/file
16999
17000 # Save mtime for later comparison
17001 genfile --stat=mtime dir/subdir1 > ts
17002
17003 # Create an archive. Using incremental mode makes sure the
17004 # archive will have a directory-first member ordering,
17005 # i.e.:
17006 # dir/
17007 # dir/subdir1/
17008 # dir/subdir2/
17009 # dir/subdir1/foofile
17010 #
17011 # When restoring from this directory structure, `dir/subdir2/' used to
17012 # trigger apply_nonancestor_delayed_set_stat() which restored stats for
17013 # `subdir1' prior to restoring `dir/subdir1/foofile'. Then, restoring the
17014 # latter clobbered the directory timestamp.
17015
17016 tar -cf archive -g db dir
17017
17018 # Move away the directory
17019 mv dir orig
17020
17021 # Wait enough time for timestamps to differ in case of failure.
17022 sleep 5
17023
17024 # Restore the directory
17025 tar -xf archive dir
17026
17027 # Check the timestamp
17028 genfile --stat=mtime dir/subdir1 | diff ts -
17029 ) ) >"$at_stdout" 2>"$at_stderr"
17030 fi
17031 at_status=$?
17032 at_failed=false
17033 at_func_diff_devnull "$at_stderr" || at_failed=:
17034 at_func_diff_devnull "$at_stdout" || at_failed=:
17035 at_func_check_status 0 $at_status "$at_srcdir/incr02.at:35"
17036
17037 $at_failed && at_func_log_failure
17038 $at_traceon; }
17039
17040
17041
17042
17043   $at_traceoff
17044   $at_times_p && times >"$at_times_file"
17045 ) 5>&1 2>&1 | eval $at_tee_pipe
17046 at_status=`cat "$at_status_file"`
17047 #AT_STOP_38
17048 #AT_START_39
17049 # 39. listed01.at:26: --listed for individual files
17050 at_setup_line='listed01.at:26'
17051 at_desc="--listed for individual files"
17052 $at_quiet $as_echo_n " 39: $at_desc                  "
17053 at_xfail=no
17054       test -f $XFAILFILE && at_xfail=yes
17055 echo "#                             -*- compilation -*-" >> "$at_group_log"
17056 (
17057   $as_echo "39. listed01.at:26: testing ..."
17058   $at_traceon
17059
17060
17061
17062
17063
17064   { $at_traceoff
17065 $as_echo "$at_srcdir/listed01.at:29:
17066 mkdir gnu
17067 (cd gnu
17068 TEST_TAR_FORMAT=gnu
17069 export TEST_TAR_FORMAT
17070 TAR_OPTIONS=\"-H gnu\"
17071 export TAR_OPTIONS
17072 rm -rf *
17073
17074 mkdir directory
17075 genfile --length 10240 --pattern zeros --file directory/file1
17076 # Let the things settle
17077 sleep 1
17078
17079 tar --create \\
17080     --file=archive.1 \\
17081     --listed-incremental=listing \\
17082     directory/file*
17083
17084 tar tf archive.1 || exit 1
17085
17086 sleep 2
17087
17088 genfile --length 10240 --pattern zeros --file directory/file2
17089
17090 echo \"separator\"
17091 cp listing listing.old
17092 tar --create \\
17093     --file=archive.2 \\
17094     --listed-incremental=listing \\
17095     directory/file* || exit 1
17096
17097 tar tf archive.2 || exit 1
17098 )"
17099 echo listed01.at:29 >"$at_check_line_file"
17100
17101 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
17102    false; }; then
17103   ( $at_traceon;
17104 mkdir gnu
17105 (cd gnu
17106 TEST_TAR_FORMAT=gnu
17107 export TEST_TAR_FORMAT
17108 TAR_OPTIONS="-H gnu"
17109 export TAR_OPTIONS
17110 rm -rf *
17111
17112 mkdir directory
17113 genfile --length 10240 --pattern zeros --file directory/file1
17114 # Let the things settle
17115 sleep 1
17116
17117 tar --create \
17118     --file=archive.1 \
17119     --listed-incremental=listing \
17120     directory/file*
17121
17122 tar tf archive.1 || exit 1
17123
17124 sleep 2
17125
17126 genfile --length 10240 --pattern zeros --file directory/file2
17127
17128 echo "separator"
17129 cp listing listing.old
17130 tar --create \
17131     --file=archive.2 \
17132     --listed-incremental=listing \
17133     directory/file* || exit 1
17134
17135 tar tf archive.2 || exit 1
17136 ) ) >"$at_stdout" 2>"$at_stder1"
17137   at_func_filter_trace $?
17138 else
17139   ( :;
17140 mkdir gnu
17141 (cd gnu
17142 TEST_TAR_FORMAT=gnu
17143 export TEST_TAR_FORMAT
17144 TAR_OPTIONS="-H gnu"
17145 export TAR_OPTIONS
17146 rm -rf *
17147
17148 mkdir directory
17149 genfile --length 10240 --pattern zeros --file directory/file1
17150 # Let the things settle
17151 sleep 1
17152
17153 tar --create \
17154     --file=archive.1 \
17155     --listed-incremental=listing \
17156     directory/file*
17157
17158 tar tf archive.1 || exit 1
17159
17160 sleep 2
17161
17162 genfile --length 10240 --pattern zeros --file directory/file2
17163
17164 echo "separator"
17165 cp listing listing.old
17166 tar --create \
17167     --file=archive.2 \
17168     --listed-incremental=listing \
17169     directory/file* || exit 1
17170
17171 tar tf archive.2 || exit 1
17172 ) ) >"$at_stdout" 2>"$at_stderr"
17173 fi
17174 at_status=$?
17175 at_failed=false
17176 at_func_diff_devnull "$at_stderr" || at_failed=:
17177 echo >>"$at_stdout"; $as_echo "directory/file1
17178 separator
17179 directory/file2
17180 " | \
17181   $at_diff - "$at_stdout" || at_failed=:
17182 at_func_check_status 0 $at_status "$at_srcdir/listed01.at:29"
17183
17184 $at_failed && at_func_log_failure
17185 $at_traceon; }
17186
17187               { $at_traceoff
17188 $as_echo "$at_srcdir/listed01.at:29:
17189 mkdir oldgnu
17190 (cd oldgnu
17191 TEST_TAR_FORMAT=oldgnu
17192 export TEST_TAR_FORMAT
17193 TAR_OPTIONS=\"-H oldgnu\"
17194 export TAR_OPTIONS
17195 rm -rf *
17196
17197 mkdir directory
17198 genfile --length 10240 --pattern zeros --file directory/file1
17199 # Let the things settle
17200 sleep 1
17201
17202 tar --create \\
17203     --file=archive.1 \\
17204     --listed-incremental=listing \\
17205     directory/file*
17206
17207 tar tf archive.1 || exit 1
17208
17209 sleep 2
17210
17211 genfile --length 10240 --pattern zeros --file directory/file2
17212
17213 echo \"separator\"
17214 cp listing listing.old
17215 tar --create \\
17216     --file=archive.2 \\
17217     --listed-incremental=listing \\
17218     directory/file* || exit 1
17219
17220 tar tf archive.2 || exit 1
17221 )"
17222 echo listed01.at:29 >"$at_check_line_file"
17223
17224 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
17225    false; }; then
17226   ( $at_traceon;
17227 mkdir oldgnu
17228 (cd oldgnu
17229 TEST_TAR_FORMAT=oldgnu
17230 export TEST_TAR_FORMAT
17231 TAR_OPTIONS="-H oldgnu"
17232 export TAR_OPTIONS
17233 rm -rf *
17234
17235 mkdir directory
17236 genfile --length 10240 --pattern zeros --file directory/file1
17237 # Let the things settle
17238 sleep 1
17239
17240 tar --create \
17241     --file=archive.1 \
17242     --listed-incremental=listing \
17243     directory/file*
17244
17245 tar tf archive.1 || exit 1
17246
17247 sleep 2
17248
17249 genfile --length 10240 --pattern zeros --file directory/file2
17250
17251 echo "separator"
17252 cp listing listing.old
17253 tar --create \
17254     --file=archive.2 \
17255     --listed-incremental=listing \
17256     directory/file* || exit 1
17257
17258 tar tf archive.2 || exit 1
17259 ) ) >"$at_stdout" 2>"$at_stder1"
17260   at_func_filter_trace $?
17261 else
17262   ( :;
17263 mkdir oldgnu
17264 (cd oldgnu
17265 TEST_TAR_FORMAT=oldgnu
17266 export TEST_TAR_FORMAT
17267 TAR_OPTIONS="-H oldgnu"
17268 export TAR_OPTIONS
17269 rm -rf *
17270
17271 mkdir directory
17272 genfile --length 10240 --pattern zeros --file directory/file1
17273 # Let the things settle
17274 sleep 1
17275
17276 tar --create \
17277     --file=archive.1 \
17278     --listed-incremental=listing \
17279     directory/file*
17280
17281 tar tf archive.1 || exit 1
17282
17283 sleep 2
17284
17285 genfile --length 10240 --pattern zeros --file directory/file2
17286
17287 echo "separator"
17288 cp listing listing.old
17289 tar --create \
17290     --file=archive.2 \
17291     --listed-incremental=listing \
17292     directory/file* || exit 1
17293
17294 tar tf archive.2 || exit 1
17295 ) ) >"$at_stdout" 2>"$at_stderr"
17296 fi
17297 at_status=$?
17298 at_failed=false
17299 at_func_diff_devnull "$at_stderr" || at_failed=:
17300 echo >>"$at_stdout"; $as_echo "directory/file1
17301 separator
17302 directory/file2
17303 " | \
17304   $at_diff - "$at_stdout" || at_failed=:
17305 at_func_check_status 0 $at_status "$at_srcdir/listed01.at:29"
17306
17307 $at_failed && at_func_log_failure
17308 $at_traceon; }
17309
17310
17311
17312
17313   $at_traceoff
17314   $at_times_p && times >"$at_times_file"
17315 ) 5>&1 2>&1 | eval $at_tee_pipe
17316 at_status=`cat "$at_status_file"`
17317 #AT_STOP_39
17318 #AT_START_40
17319 # 40. listed02.at:28: working --listed
17320 at_setup_line='listed02.at:28'
17321 at_desc="working --listed"
17322 $at_quiet $as_echo_n " 40: $at_desc                               "
17323 at_xfail=no
17324       test -f $XFAILFILE && at_xfail=yes
17325 echo "#                             -*- compilation -*-" >> "$at_group_log"
17326 (
17327   $as_echo "40. listed02.at:28: testing ..."
17328   $at_traceon
17329
17330
17331
17332
17333
17334   { $at_traceoff
17335 $as_echo "$at_srcdir/listed02.at:31:
17336 mkdir gnu
17337 (cd gnu
17338 TEST_TAR_FORMAT=gnu
17339 export TEST_TAR_FORMAT
17340 TAR_OPTIONS=\"-H gnu\"
17341 export TAR_OPTIONS
17342 rm -rf *
17343
17344
17345 test -z "`sort < /dev/null 2>&1`" || exit 77
17346
17347 echo Create directories
17348
17349 mkdir tart
17350 sleep 1
17351 mkdir tart/c0
17352 sleep 1
17353 mkdir tart/c1
17354 sleep 1
17355
17356 for file in tart/a1 tart/b1 tart/c0/cq1 tart/c0/cq2 tart/c1/ca1 tart/c1/ca2
17357 do
17358   echo File \$file > \$file
17359   sleep 1
17360 done
17361
17362 sleep 1
17363 echo Creating main archive
17364 echo >&2 \"Creating main archive\"
17365 tar -c -v --listed-incremental=tart.incr1 -f archive.1 tart 2> err || exit 1
17366
17367 # The above prints two lines to stderr announcing the new directories c0 and c1.
17368 # Ensure that they appear in this script's stderr in sorted order.
17369 sort err 1>&2; rm -f err
17370
17371 sleep 1
17372 echo Modifying filesystem
17373 rm tart/a1
17374
17375 mv tart/b1 tart/b2
17376 mv tart/c1 tart/c2
17377 touch tart/c2/ca3
17378
17379 echo Directory contents
17380 find tart -print | sort 2>/dev/null
17381
17382 sleep 1
17383 echo Creating incremental archive
17384 echo >&2 \"Creating incremental archive\"
17385 cp -p tart.incr1 tart.incr2
17386 tar -c -v --listed-incremental=tart.incr2 -f archive.2 tart || exit 1
17387
17388 sleep 1
17389
17390 rm -rf tart/*
17391 echo Extracting main archive
17392 echo >&2 \"Extracting main archive\"
17393 tar -x -v --listed-incremental=tart.incr1 -f archive.1 || exit 1
17394 echo Extracting incremental archive
17395 # This command should produce three messages about deletion
17396 # of the existing files, that may appear in any order. Piping
17397 # to sort makes sure we don't depend on any particular ordering.
17398 tar -x -v --listed-incremental=tart.incr2 -f archive.2 | sort 2>/dev/null
17399
17400 echo Final files:
17401 find tart -print | sort 2>/dev/null
17402 )"
17403 echo listed02.at:31 >"$at_check_line_file"
17404
17405 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
17406    false; }; then
17407   ( $at_traceon;
17408 mkdir gnu
17409 (cd gnu
17410 TEST_TAR_FORMAT=gnu
17411 export TEST_TAR_FORMAT
17412 TAR_OPTIONS="-H gnu"
17413 export TAR_OPTIONS
17414 rm -rf *
17415
17416
17417 test -z "`sort < /dev/null 2>&1`" || exit 77
17418
17419 echo Create directories
17420
17421 mkdir tart
17422 sleep 1
17423 mkdir tart/c0
17424 sleep 1
17425 mkdir tart/c1
17426 sleep 1
17427
17428 for file in tart/a1 tart/b1 tart/c0/cq1 tart/c0/cq2 tart/c1/ca1 tart/c1/ca2
17429 do
17430   echo File $file > $file
17431   sleep 1
17432 done
17433
17434 sleep 1
17435 echo Creating main archive
17436 echo >&2 "Creating main archive"
17437 tar -c -v --listed-incremental=tart.incr1 -f archive.1 tart 2> err || exit 1
17438
17439 # The above prints two lines to stderr announcing the new directories c0 and c1.
17440 # Ensure that they appear in this script's stderr in sorted order.
17441 sort err 1>&2; rm -f err
17442
17443 sleep 1
17444 echo Modifying filesystem
17445 rm tart/a1
17446
17447 mv tart/b1 tart/b2
17448 mv tart/c1 tart/c2
17449 touch tart/c2/ca3
17450
17451 echo Directory contents
17452 find tart -print | sort 2>/dev/null
17453
17454 sleep 1
17455 echo Creating incremental archive
17456 echo >&2 "Creating incremental archive"
17457 cp -p tart.incr1 tart.incr2
17458 tar -c -v --listed-incremental=tart.incr2 -f archive.2 tart || exit 1
17459
17460 sleep 1
17461
17462 rm -rf tart/*
17463 echo Extracting main archive
17464 echo >&2 "Extracting main archive"
17465 tar -x -v --listed-incremental=tart.incr1 -f archive.1 || exit 1
17466 echo Extracting incremental archive
17467 # This command should produce three messages about deletion
17468 # of the existing files, that may appear in any order. Piping
17469 # to sort makes sure we don't depend on any particular ordering.
17470 tar -x -v --listed-incremental=tart.incr2 -f archive.2 | sort 2>/dev/null
17471
17472 echo Final files:
17473 find tart -print | sort 2>/dev/null
17474 ) ) >"$at_stdout" 2>"$at_stder1"
17475   at_func_filter_trace $?
17476 else
17477   ( :;
17478 mkdir gnu
17479 (cd gnu
17480 TEST_TAR_FORMAT=gnu
17481 export TEST_TAR_FORMAT
17482 TAR_OPTIONS="-H gnu"
17483 export TAR_OPTIONS
17484 rm -rf *
17485
17486
17487 test -z "`sort < /dev/null 2>&1`" || exit 77
17488
17489 echo Create directories
17490
17491 mkdir tart
17492 sleep 1
17493 mkdir tart/c0
17494 sleep 1
17495 mkdir tart/c1
17496 sleep 1
17497
17498 for file in tart/a1 tart/b1 tart/c0/cq1 tart/c0/cq2 tart/c1/ca1 tart/c1/ca2
17499 do
17500   echo File $file > $file
17501   sleep 1
17502 done
17503
17504 sleep 1
17505 echo Creating main archive
17506 echo >&2 "Creating main archive"
17507 tar -c -v --listed-incremental=tart.incr1 -f archive.1 tart 2> err || exit 1
17508
17509 # The above prints two lines to stderr announcing the new directories c0 and c1.
17510 # Ensure that they appear in this script's stderr in sorted order.
17511 sort err 1>&2; rm -f err
17512
17513 sleep 1
17514 echo Modifying filesystem
17515 rm tart/a1
17516
17517 mv tart/b1 tart/b2
17518 mv tart/c1 tart/c2
17519 touch tart/c2/ca3
17520
17521 echo Directory contents
17522 find tart -print | sort 2>/dev/null
17523
17524 sleep 1
17525 echo Creating incremental archive
17526 echo >&2 "Creating incremental archive"
17527 cp -p tart.incr1 tart.incr2
17528 tar -c -v --listed-incremental=tart.incr2 -f archive.2 tart || exit 1
17529
17530 sleep 1
17531
17532 rm -rf tart/*
17533 echo Extracting main archive
17534 echo >&2 "Extracting main archive"
17535 tar -x -v --listed-incremental=tart.incr1 -f archive.1 || exit 1
17536 echo Extracting incremental archive
17537 # This command should produce three messages about deletion
17538 # of the existing files, that may appear in any order. Piping
17539 # to sort makes sure we don't depend on any particular ordering.
17540 tar -x -v --listed-incremental=tart.incr2 -f archive.2 | sort 2>/dev/null
17541
17542 echo Final files:
17543 find tart -print | sort 2>/dev/null
17544 ) ) >"$at_stdout" 2>"$at_stderr"
17545 fi
17546 at_status=$?
17547 at_failed=false
17548 echo >>"$at_stderr"; $as_echo "Creating main archive
17549 tar: tart/c0: Directory is new
17550 tar: tart/c1: Directory is new
17551 tar: tart: Directory is new
17552 Creating incremental archive
17553 tar: tart/c2: Directory has been renamed from \`tart/c1'
17554 Extracting main archive
17555 " | \
17556   $at_diff - "$at_stderr" || at_failed=:
17557 echo >>"$at_stdout"; $as_echo "Create directories
17558 Creating main archive
17559 tart/
17560 tart/c0/
17561 tart/c1/
17562 tart/a1
17563 tart/b1
17564 tart/c0/cq1
17565 tart/c0/cq2
17566 tart/c1/ca1
17567 tart/c1/ca2
17568 Modifying filesystem
17569 Directory contents
17570 tart
17571 tart/b2
17572 tart/c0
17573 tart/c0/cq1
17574 tart/c0/cq2
17575 tart/c2
17576 tart/c2/ca1
17577 tart/c2/ca2
17578 tart/c2/ca3
17579 Creating incremental archive
17580 tart/
17581 tart/c0/
17582 tart/c2/
17583 tart/b2
17584 tart/c2/ca3
17585 Extracting main archive
17586 tart/
17587 tart/c0/
17588 tart/c1/
17589 tart/a1
17590 tart/b1
17591 tart/c0/cq1
17592 tart/c0/cq2
17593 tart/c1/ca1
17594 tart/c1/ca2
17595 Extracting incremental archive
17596 tar: Deleting \`tart/a1'
17597 tar: Deleting \`tart/b1'
17598 tart/
17599 tart/b2
17600 tart/c0/
17601 tart/c2/
17602 tart/c2/ca3
17603 Final files:
17604 tart
17605 tart/b2
17606 tart/c0
17607 tart/c0/cq1
17608 tart/c0/cq2
17609 tart/c2
17610 tart/c2/ca1
17611 tart/c2/ca2
17612 tart/c2/ca3
17613 " | \
17614   $at_diff - "$at_stdout" || at_failed=:
17615 at_func_check_status 0 $at_status "$at_srcdir/listed02.at:31"
17616
17617 $at_failed && at_func_log_failure
17618 $at_traceon; }
17619
17620               { $at_traceoff
17621 $as_echo "$at_srcdir/listed02.at:31:
17622 mkdir oldgnu
17623 (cd oldgnu
17624 TEST_TAR_FORMAT=oldgnu
17625 export TEST_TAR_FORMAT
17626 TAR_OPTIONS=\"-H oldgnu\"
17627 export TAR_OPTIONS
17628 rm -rf *
17629
17630
17631 test -z "`sort < /dev/null 2>&1`" || exit 77
17632
17633 echo Create directories
17634
17635 mkdir tart
17636 sleep 1
17637 mkdir tart/c0
17638 sleep 1
17639 mkdir tart/c1
17640 sleep 1
17641
17642 for file in tart/a1 tart/b1 tart/c0/cq1 tart/c0/cq2 tart/c1/ca1 tart/c1/ca2
17643 do
17644   echo File \$file > \$file
17645   sleep 1
17646 done
17647
17648 sleep 1
17649 echo Creating main archive
17650 echo >&2 \"Creating main archive\"
17651 tar -c -v --listed-incremental=tart.incr1 -f archive.1 tart 2> err || exit 1
17652
17653 # The above prints two lines to stderr announcing the new directories c0 and c1.
17654 # Ensure that they appear in this script's stderr in sorted order.
17655 sort err 1>&2; rm -f err
17656
17657 sleep 1
17658 echo Modifying filesystem
17659 rm tart/a1
17660
17661 mv tart/b1 tart/b2
17662 mv tart/c1 tart/c2
17663 touch tart/c2/ca3
17664
17665 echo Directory contents
17666 find tart -print | sort 2>/dev/null
17667
17668 sleep 1
17669 echo Creating incremental archive
17670 echo >&2 \"Creating incremental archive\"
17671 cp -p tart.incr1 tart.incr2
17672 tar -c -v --listed-incremental=tart.incr2 -f archive.2 tart || exit 1
17673
17674 sleep 1
17675
17676 rm -rf tart/*
17677 echo Extracting main archive
17678 echo >&2 \"Extracting main archive\"
17679 tar -x -v --listed-incremental=tart.incr1 -f archive.1 || exit 1
17680 echo Extracting incremental archive
17681 # This command should produce three messages about deletion
17682 # of the existing files, that may appear in any order. Piping
17683 # to sort makes sure we don't depend on any particular ordering.
17684 tar -x -v --listed-incremental=tart.incr2 -f archive.2 | sort 2>/dev/null
17685
17686 echo Final files:
17687 find tart -print | sort 2>/dev/null
17688 )"
17689 echo listed02.at:31 >"$at_check_line_file"
17690
17691 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
17692    false; }; then
17693   ( $at_traceon;
17694 mkdir oldgnu
17695 (cd oldgnu
17696 TEST_TAR_FORMAT=oldgnu
17697 export TEST_TAR_FORMAT
17698 TAR_OPTIONS="-H oldgnu"
17699 export TAR_OPTIONS
17700 rm -rf *
17701
17702
17703 test -z "`sort < /dev/null 2>&1`" || exit 77
17704
17705 echo Create directories
17706
17707 mkdir tart
17708 sleep 1
17709 mkdir tart/c0
17710 sleep 1
17711 mkdir tart/c1
17712 sleep 1
17713
17714 for file in tart/a1 tart/b1 tart/c0/cq1 tart/c0/cq2 tart/c1/ca1 tart/c1/ca2
17715 do
17716   echo File $file > $file
17717   sleep 1
17718 done
17719
17720 sleep 1
17721 echo Creating main archive
17722 echo >&2 "Creating main archive"
17723 tar -c -v --listed-incremental=tart.incr1 -f archive.1 tart 2> err || exit 1
17724
17725 # The above prints two lines to stderr announcing the new directories c0 and c1.
17726 # Ensure that they appear in this script's stderr in sorted order.
17727 sort err 1>&2; rm -f err
17728
17729 sleep 1
17730 echo Modifying filesystem
17731 rm tart/a1
17732
17733 mv tart/b1 tart/b2
17734 mv tart/c1 tart/c2
17735 touch tart/c2/ca3
17736
17737 echo Directory contents
17738 find tart -print | sort 2>/dev/null
17739
17740 sleep 1
17741 echo Creating incremental archive
17742 echo >&2 "Creating incremental archive"
17743 cp -p tart.incr1 tart.incr2
17744 tar -c -v --listed-incremental=tart.incr2 -f archive.2 tart || exit 1
17745
17746 sleep 1
17747
17748 rm -rf tart/*
17749 echo Extracting main archive
17750 echo >&2 "Extracting main archive"
17751 tar -x -v --listed-incremental=tart.incr1 -f archive.1 || exit 1
17752 echo Extracting incremental archive
17753 # This command should produce three messages about deletion
17754 # of the existing files, that may appear in any order. Piping
17755 # to sort makes sure we don't depend on any particular ordering.
17756 tar -x -v --listed-incremental=tart.incr2 -f archive.2 | sort 2>/dev/null
17757
17758 echo Final files:
17759 find tart -print | sort 2>/dev/null
17760 ) ) >"$at_stdout" 2>"$at_stder1"
17761   at_func_filter_trace $?
17762 else
17763   ( :;
17764 mkdir oldgnu
17765 (cd oldgnu
17766 TEST_TAR_FORMAT=oldgnu
17767 export TEST_TAR_FORMAT
17768 TAR_OPTIONS="-H oldgnu"
17769 export TAR_OPTIONS
17770 rm -rf *
17771
17772
17773 test -z "`sort < /dev/null 2>&1`" || exit 77
17774
17775 echo Create directories
17776
17777 mkdir tart
17778 sleep 1
17779 mkdir tart/c0
17780 sleep 1
17781 mkdir tart/c1
17782 sleep 1
17783
17784 for file in tart/a1 tart/b1 tart/c0/cq1 tart/c0/cq2 tart/c1/ca1 tart/c1/ca2
17785 do
17786   echo File $file > $file
17787   sleep 1
17788 done
17789
17790 sleep 1
17791 echo Creating main archive
17792 echo >&2 "Creating main archive"
17793 tar -c -v --listed-incremental=tart.incr1 -f archive.1 tart 2> err || exit 1
17794
17795 # The above prints two lines to stderr announcing the new directories c0 and c1.
17796 # Ensure that they appear in this script's stderr in sorted order.
17797 sort err 1>&2; rm -f err
17798
17799 sleep 1
17800 echo Modifying filesystem
17801 rm tart/a1
17802
17803 mv tart/b1 tart/b2
17804 mv tart/c1 tart/c2
17805 touch tart/c2/ca3
17806
17807 echo Directory contents
17808 find tart -print | sort 2>/dev/null
17809
17810 sleep 1
17811 echo Creating incremental archive
17812 echo >&2 "Creating incremental archive"
17813 cp -p tart.incr1 tart.incr2
17814 tar -c -v --listed-incremental=tart.incr2 -f archive.2 tart || exit 1
17815
17816 sleep 1
17817
17818 rm -rf tart/*
17819 echo Extracting main archive
17820 echo >&2 "Extracting main archive"
17821 tar -x -v --listed-incremental=tart.incr1 -f archive.1 || exit 1
17822 echo Extracting incremental archive
17823 # This command should produce three messages about deletion
17824 # of the existing files, that may appear in any order. Piping
17825 # to sort makes sure we don't depend on any particular ordering.
17826 tar -x -v --listed-incremental=tart.incr2 -f archive.2 | sort 2>/dev/null
17827
17828 echo Final files:
17829 find tart -print | sort 2>/dev/null
17830 ) ) >"$at_stdout" 2>"$at_stderr"
17831 fi
17832 at_status=$?
17833 at_failed=false
17834 echo >>"$at_stderr"; $as_echo "Creating main archive
17835 tar: tart/c0: Directory is new
17836 tar: tart/c1: Directory is new
17837 tar: tart: Directory is new
17838 Creating incremental archive
17839 tar: tart/c2: Directory has been renamed from \`tart/c1'
17840 Extracting main archive
17841 " | \
17842   $at_diff - "$at_stderr" || at_failed=:
17843 echo >>"$at_stdout"; $as_echo "Create directories
17844 Creating main archive
17845 tart/
17846 tart/c0/
17847 tart/c1/
17848 tart/a1
17849 tart/b1
17850 tart/c0/cq1
17851 tart/c0/cq2
17852 tart/c1/ca1
17853 tart/c1/ca2
17854 Modifying filesystem
17855 Directory contents
17856 tart
17857 tart/b2
17858 tart/c0
17859 tart/c0/cq1
17860 tart/c0/cq2
17861 tart/c2
17862 tart/c2/ca1
17863 tart/c2/ca2
17864 tart/c2/ca3
17865 Creating incremental archive
17866 tart/
17867 tart/c0/
17868 tart/c2/
17869 tart/b2
17870 tart/c2/ca3
17871 Extracting main archive
17872 tart/
17873 tart/c0/
17874 tart/c1/
17875 tart/a1
17876 tart/b1
17877 tart/c0/cq1
17878 tart/c0/cq2
17879 tart/c1/ca1
17880 tart/c1/ca2
17881 Extracting incremental archive
17882 tar: Deleting \`tart/a1'
17883 tar: Deleting \`tart/b1'
17884 tart/
17885 tart/b2
17886 tart/c0/
17887 tart/c2/
17888 tart/c2/ca3
17889 Final files:
17890 tart
17891 tart/b2
17892 tart/c0
17893 tart/c0/cq1
17894 tart/c0/cq2
17895 tart/c2
17896 tart/c2/ca1
17897 tart/c2/ca2
17898 tart/c2/ca3
17899 " | \
17900   $at_diff - "$at_stdout" || at_failed=:
17901 at_func_check_status 0 $at_status "$at_srcdir/listed02.at:31"
17902
17903 $at_failed && at_func_log_failure
17904 $at_traceon; }
17905
17906
17907
17908
17909   $at_traceoff
17910   $at_times_p && times >"$at_times_file"
17911 ) 5>&1 2>&1 | eval $at_tee_pipe
17912 at_status=`cat "$at_status_file"`
17913 #AT_STOP_40
17914 #AT_START_41
17915 # 41. incr03.at:28: renamed files in incrementals
17916 at_setup_line='incr03.at:28'
17917 at_desc="renamed files in incrementals"
17918 $at_quiet $as_echo_n " 41: $at_desc                  "
17919 at_xfail=no
17920       test -f $XFAILFILE && at_xfail=yes
17921 echo "#                             -*- compilation -*-" >> "$at_group_log"
17922 (
17923   $as_echo "41. incr03.at:28: testing ..."
17924   $at_traceon
17925
17926
17927
17928
17929
17930   { $at_traceoff
17931 $as_echo "$at_srcdir/incr03.at:31:
17932 mkdir gnu
17933 (cd gnu
17934 TEST_TAR_FORMAT=gnu
17935 export TEST_TAR_FORMAT
17936 TAR_OPTIONS=\"-H gnu\"
17937 export TAR_OPTIONS
17938 rm -rf *
17939
17940
17941 test -z "`sort < /dev/null 2>&1`" || exit 77
17942
17943 mkdir directory
17944 genfile --file=directory/x
17945 genfile --file=directory/y
17946
17947 sleep 1
17948
17949 tar -cf archive.1 -g db directory
17950
17951 mv directory/x directory/z
17952 cp db db.old
17953 tar -cf archive.2 -g db directory
17954
17955 mv directory orig
17956
17957 echo Listing of archive.1
17958 tar -tf archive.1 | sort
17959 echo Listing of archive.2
17960 tar -tf archive.2 | sort
17961
17962 echo Directory after first restore
17963 tar -xf archive.1 -g db
17964 find directory | sort
17965
17966 echo Directory after second restore
17967 tar -xf archive.2 -g db
17968 find directory | sort
17969 )"
17970 echo incr03.at:31 >"$at_check_line_file"
17971
17972 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
17973    false; }; then
17974   ( $at_traceon;
17975 mkdir gnu
17976 (cd gnu
17977 TEST_TAR_FORMAT=gnu
17978 export TEST_TAR_FORMAT
17979 TAR_OPTIONS="-H gnu"
17980 export TAR_OPTIONS
17981 rm -rf *
17982
17983
17984 test -z "`sort < /dev/null 2>&1`" || exit 77
17985
17986 mkdir directory
17987 genfile --file=directory/x
17988 genfile --file=directory/y
17989
17990 sleep 1
17991
17992 tar -cf archive.1 -g db directory
17993
17994 mv directory/x directory/z
17995 cp db db.old
17996 tar -cf archive.2 -g db directory
17997
17998 mv directory orig
17999
18000 echo Listing of archive.1
18001 tar -tf archive.1 | sort
18002 echo Listing of archive.2
18003 tar -tf archive.2 | sort
18004
18005 echo Directory after first restore
18006 tar -xf archive.1 -g db
18007 find directory | sort
18008
18009 echo Directory after second restore
18010 tar -xf archive.2 -g db
18011 find directory | sort
18012 ) ) >"$at_stdout" 2>"$at_stder1"
18013   at_func_filter_trace $?
18014 else
18015   ( :;
18016 mkdir gnu
18017 (cd gnu
18018 TEST_TAR_FORMAT=gnu
18019 export TEST_TAR_FORMAT
18020 TAR_OPTIONS="-H gnu"
18021 export TAR_OPTIONS
18022 rm -rf *
18023
18024
18025 test -z "`sort < /dev/null 2>&1`" || exit 77
18026
18027 mkdir directory
18028 genfile --file=directory/x
18029 genfile --file=directory/y
18030
18031 sleep 1
18032
18033 tar -cf archive.1 -g db directory
18034
18035 mv directory/x directory/z
18036 cp db db.old
18037 tar -cf archive.2 -g db directory
18038
18039 mv directory orig
18040
18041 echo Listing of archive.1
18042 tar -tf archive.1 | sort
18043 echo Listing of archive.2
18044 tar -tf archive.2 | sort
18045
18046 echo Directory after first restore
18047 tar -xf archive.1 -g db
18048 find directory | sort
18049
18050 echo Directory after second restore
18051 tar -xf archive.2 -g db
18052 find directory | sort
18053 ) ) >"$at_stdout" 2>"$at_stderr"
18054 fi
18055 at_status=$?
18056 at_failed=false
18057 at_func_diff_devnull "$at_stderr" || at_failed=:
18058 echo >>"$at_stdout"; $as_echo "Listing of archive.1
18059 directory/
18060 directory/x
18061 directory/y
18062 Listing of archive.2
18063 directory/
18064 directory/z
18065 Directory after first restore
18066 directory
18067 directory/x
18068 directory/y
18069 Directory after second restore
18070 directory
18071 directory/y
18072 directory/z
18073 " | \
18074   $at_diff - "$at_stdout" || at_failed=:
18075 at_func_check_status 0 $at_status "$at_srcdir/incr03.at:31"
18076
18077 $at_failed && at_func_log_failure
18078 $at_traceon; }
18079
18080               { $at_traceoff
18081 $as_echo "$at_srcdir/incr03.at:31:
18082 mkdir oldgnu
18083 (cd oldgnu
18084 TEST_TAR_FORMAT=oldgnu
18085 export TEST_TAR_FORMAT
18086 TAR_OPTIONS=\"-H oldgnu\"
18087 export TAR_OPTIONS
18088 rm -rf *
18089
18090
18091 test -z "`sort < /dev/null 2>&1`" || exit 77
18092
18093 mkdir directory
18094 genfile --file=directory/x
18095 genfile --file=directory/y
18096
18097 sleep 1
18098
18099 tar -cf archive.1 -g db directory
18100
18101 mv directory/x directory/z
18102 cp db db.old
18103 tar -cf archive.2 -g db directory
18104
18105 mv directory orig
18106
18107 echo Listing of archive.1
18108 tar -tf archive.1 | sort
18109 echo Listing of archive.2
18110 tar -tf archive.2 | sort
18111
18112 echo Directory after first restore
18113 tar -xf archive.1 -g db
18114 find directory | sort
18115
18116 echo Directory after second restore
18117 tar -xf archive.2 -g db
18118 find directory | sort
18119 )"
18120 echo incr03.at:31 >"$at_check_line_file"
18121
18122 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
18123    false; }; then
18124   ( $at_traceon;
18125 mkdir oldgnu
18126 (cd oldgnu
18127 TEST_TAR_FORMAT=oldgnu
18128 export TEST_TAR_FORMAT
18129 TAR_OPTIONS="-H oldgnu"
18130 export TAR_OPTIONS
18131 rm -rf *
18132
18133
18134 test -z "`sort < /dev/null 2>&1`" || exit 77
18135
18136 mkdir directory
18137 genfile --file=directory/x
18138 genfile --file=directory/y
18139
18140 sleep 1
18141
18142 tar -cf archive.1 -g db directory
18143
18144 mv directory/x directory/z
18145 cp db db.old
18146 tar -cf archive.2 -g db directory
18147
18148 mv directory orig
18149
18150 echo Listing of archive.1
18151 tar -tf archive.1 | sort
18152 echo Listing of archive.2
18153 tar -tf archive.2 | sort
18154
18155 echo Directory after first restore
18156 tar -xf archive.1 -g db
18157 find directory | sort
18158
18159 echo Directory after second restore
18160 tar -xf archive.2 -g db
18161 find directory | sort
18162 ) ) >"$at_stdout" 2>"$at_stder1"
18163   at_func_filter_trace $?
18164 else
18165   ( :;
18166 mkdir oldgnu
18167 (cd oldgnu
18168 TEST_TAR_FORMAT=oldgnu
18169 export TEST_TAR_FORMAT
18170 TAR_OPTIONS="-H oldgnu"
18171 export TAR_OPTIONS
18172 rm -rf *
18173
18174
18175 test -z "`sort < /dev/null 2>&1`" || exit 77
18176
18177 mkdir directory
18178 genfile --file=directory/x
18179 genfile --file=directory/y
18180
18181 sleep 1
18182
18183 tar -cf archive.1 -g db directory
18184
18185 mv directory/x directory/z
18186 cp db db.old
18187 tar -cf archive.2 -g db directory
18188
18189 mv directory orig
18190
18191 echo Listing of archive.1
18192 tar -tf archive.1 | sort
18193 echo Listing of archive.2
18194 tar -tf archive.2 | sort
18195
18196 echo Directory after first restore
18197 tar -xf archive.1 -g db
18198 find directory | sort
18199
18200 echo Directory after second restore
18201 tar -xf archive.2 -g db
18202 find directory | sort
18203 ) ) >"$at_stdout" 2>"$at_stderr"
18204 fi
18205 at_status=$?
18206 at_failed=false
18207 at_func_diff_devnull "$at_stderr" || at_failed=:
18208 echo >>"$at_stdout"; $as_echo "Listing of archive.1
18209 directory/
18210 directory/x
18211 directory/y
18212 Listing of archive.2
18213 directory/
18214 directory/z
18215 Directory after first restore
18216 directory
18217 directory/x
18218 directory/y
18219 Directory after second restore
18220 directory
18221 directory/y
18222 directory/z
18223 " | \
18224   $at_diff - "$at_stdout" || at_failed=:
18225 at_func_check_status 0 $at_status "$at_srcdir/incr03.at:31"
18226
18227 $at_failed && at_func_log_failure
18228 $at_traceon; }
18229
18230               { $at_traceoff
18231 $as_echo "$at_srcdir/incr03.at:31:
18232 mkdir posix
18233 (cd posix
18234 TEST_TAR_FORMAT=posix
18235 export TEST_TAR_FORMAT
18236 TAR_OPTIONS=\"-H posix\"
18237 export TAR_OPTIONS
18238 rm -rf *
18239
18240
18241 test -z "`sort < /dev/null 2>&1`" || exit 77
18242
18243 mkdir directory
18244 genfile --file=directory/x
18245 genfile --file=directory/y
18246
18247 sleep 1
18248
18249 tar -cf archive.1 -g db directory
18250
18251 mv directory/x directory/z
18252 cp db db.old
18253 tar -cf archive.2 -g db directory
18254
18255 mv directory orig
18256
18257 echo Listing of archive.1
18258 tar -tf archive.1 | sort
18259 echo Listing of archive.2
18260 tar -tf archive.2 | sort
18261
18262 echo Directory after first restore
18263 tar -xf archive.1 -g db
18264 find directory | sort
18265
18266 echo Directory after second restore
18267 tar -xf archive.2 -g db
18268 find directory | sort
18269 )"
18270 echo incr03.at:31 >"$at_check_line_file"
18271
18272 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
18273    false; }; then
18274   ( $at_traceon;
18275 mkdir posix
18276 (cd posix
18277 TEST_TAR_FORMAT=posix
18278 export TEST_TAR_FORMAT
18279 TAR_OPTIONS="-H posix"
18280 export TAR_OPTIONS
18281 rm -rf *
18282
18283
18284 test -z "`sort < /dev/null 2>&1`" || exit 77
18285
18286 mkdir directory
18287 genfile --file=directory/x
18288 genfile --file=directory/y
18289
18290 sleep 1
18291
18292 tar -cf archive.1 -g db directory
18293
18294 mv directory/x directory/z
18295 cp db db.old
18296 tar -cf archive.2 -g db directory
18297
18298 mv directory orig
18299
18300 echo Listing of archive.1
18301 tar -tf archive.1 | sort
18302 echo Listing of archive.2
18303 tar -tf archive.2 | sort
18304
18305 echo Directory after first restore
18306 tar -xf archive.1 -g db
18307 find directory | sort
18308
18309 echo Directory after second restore
18310 tar -xf archive.2 -g db
18311 find directory | sort
18312 ) ) >"$at_stdout" 2>"$at_stder1"
18313   at_func_filter_trace $?
18314 else
18315   ( :;
18316 mkdir posix
18317 (cd posix
18318 TEST_TAR_FORMAT=posix
18319 export TEST_TAR_FORMAT
18320 TAR_OPTIONS="-H posix"
18321 export TAR_OPTIONS
18322 rm -rf *
18323
18324
18325 test -z "`sort < /dev/null 2>&1`" || exit 77
18326
18327 mkdir directory
18328 genfile --file=directory/x
18329 genfile --file=directory/y
18330
18331 sleep 1
18332
18333 tar -cf archive.1 -g db directory
18334
18335 mv directory/x directory/z
18336 cp db db.old
18337 tar -cf archive.2 -g db directory
18338
18339 mv directory orig
18340
18341 echo Listing of archive.1
18342 tar -tf archive.1 | sort
18343 echo Listing of archive.2
18344 tar -tf archive.2 | sort
18345
18346 echo Directory after first restore
18347 tar -xf archive.1 -g db
18348 find directory | sort
18349
18350 echo Directory after second restore
18351 tar -xf archive.2 -g db
18352 find directory | sort
18353 ) ) >"$at_stdout" 2>"$at_stderr"
18354 fi
18355 at_status=$?
18356 at_failed=false
18357 at_func_diff_devnull "$at_stderr" || at_failed=:
18358 echo >>"$at_stdout"; $as_echo "Listing of archive.1
18359 directory/
18360 directory/x
18361 directory/y
18362 Listing of archive.2
18363 directory/
18364 directory/z
18365 Directory after first restore
18366 directory
18367 directory/x
18368 directory/y
18369 Directory after second restore
18370 directory
18371 directory/y
18372 directory/z
18373 " | \
18374   $at_diff - "$at_stdout" || at_failed=:
18375 at_func_check_status 0 $at_status "$at_srcdir/incr03.at:31"
18376
18377 $at_failed && at_func_log_failure
18378 $at_traceon; }
18379
18380
18381
18382
18383   $at_traceoff
18384   $at_times_p && times >"$at_times_file"
18385 ) 5>&1 2>&1 | eval $at_tee_pipe
18386 at_status=`cat "$at_status_file"`
18387 #AT_STOP_41
18388 #AT_START_42
18389 # 42. incr04.at:29: proper icontents initialization
18390 at_setup_line='incr04.at:29'
18391 at_desc="proper icontents initialization"
18392 $at_quiet $as_echo_n " 42: $at_desc                "
18393 at_xfail=no
18394       test -f $XFAILFILE && at_xfail=yes
18395 echo "#                             -*- compilation -*-" >> "$at_group_log"
18396 (
18397   $as_echo "42. incr04.at:29: testing ..."
18398   $at_traceon
18399
18400
18401
18402
18403
18404
18405
18406   { $at_traceoff
18407 $as_echo "$at_srcdir/incr04.at:34:
18408 mkdir gnu
18409 (cd gnu
18410 TEST_TAR_FORMAT=gnu
18411 export TEST_TAR_FORMAT
18412 TAR_OPTIONS=\"-H gnu\"
18413 export TAR_OPTIONS
18414 rm -rf *
18415
18416
18417 install-sh -d a/b >/dev/null  || exit 77
18418 awk 'BEGIN {
18419   for (i=1;i<=142;i++)
18420     printf(\"a/b/one_31_chars_long_file_name_%03d\\n\", i);
18421   }' < /dev/null | genfile --files-from -
18422
18423 sleep 1
18424
18425 echo \"Initial dump\"
18426 tar cvf a0.tar -g a.sna a
18427 mv a/b a/c
18428 echo \"Incremental dump\"
18429 tar cvf a1.tar -g a.sna a
18430 )"
18431 echo incr04.at:34 >"$at_check_line_file"
18432
18433 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
18434    false; }; then
18435   ( $at_traceon;
18436 mkdir gnu
18437 (cd gnu
18438 TEST_TAR_FORMAT=gnu
18439 export TEST_TAR_FORMAT
18440 TAR_OPTIONS="-H gnu"
18441 export TAR_OPTIONS
18442 rm -rf *
18443
18444
18445 install-sh -d a/b >/dev/null  || exit 77
18446 awk 'BEGIN {
18447   for (i=1;i<=142;i++)
18448     printf("a/b/one_31_chars_long_file_name_%03d\n", i);
18449   }' < /dev/null | genfile --files-from -
18450
18451 sleep 1
18452
18453 echo "Initial dump"
18454 tar cvf a0.tar -g a.sna a
18455 mv a/b a/c
18456 echo "Incremental dump"
18457 tar cvf a1.tar -g a.sna a
18458 ) ) >"$at_stdout" 2>"$at_stder1"
18459   at_func_filter_trace $?
18460 else
18461   ( :;
18462 mkdir gnu
18463 (cd gnu
18464 TEST_TAR_FORMAT=gnu
18465 export TEST_TAR_FORMAT
18466 TAR_OPTIONS="-H gnu"
18467 export TAR_OPTIONS
18468 rm -rf *
18469
18470
18471 install-sh -d a/b >/dev/null  || exit 77
18472 awk 'BEGIN {
18473   for (i=1;i<=142;i++)
18474     printf("a/b/one_31_chars_long_file_name_%03d\n", i);
18475   }' < /dev/null | genfile --files-from -
18476
18477 sleep 1
18478
18479 echo "Initial dump"
18480 tar cvf a0.tar -g a.sna a
18481 mv a/b a/c
18482 echo "Incremental dump"
18483 tar cvf a1.tar -g a.sna a
18484 ) ) >"$at_stdout" 2>"$at_stderr"
18485 fi
18486 at_status=$?
18487 at_failed=false
18488 echo >>"$at_stderr"; $as_echo "tar: a: Directory is new
18489 tar: a/b: Directory is new
18490 tar: a/c: Directory has been renamed from \`a/b'
18491 " | \
18492   $at_diff - "$at_stderr" || at_failed=:
18493 echo >>"$at_stdout"; $as_echo "Initial dump
18494 a/
18495 a/b/
18496 a/b/one_31_chars_long_file_name_001
18497 a/b/one_31_chars_long_file_name_002
18498 a/b/one_31_chars_long_file_name_003
18499 a/b/one_31_chars_long_file_name_004
18500 a/b/one_31_chars_long_file_name_005
18501 a/b/one_31_chars_long_file_name_006
18502 a/b/one_31_chars_long_file_name_007
18503 a/b/one_31_chars_long_file_name_008
18504 a/b/one_31_chars_long_file_name_009
18505 a/b/one_31_chars_long_file_name_010
18506 a/b/one_31_chars_long_file_name_011
18507 a/b/one_31_chars_long_file_name_012
18508 a/b/one_31_chars_long_file_name_013
18509 a/b/one_31_chars_long_file_name_014
18510 a/b/one_31_chars_long_file_name_015
18511 a/b/one_31_chars_long_file_name_016
18512 a/b/one_31_chars_long_file_name_017
18513 a/b/one_31_chars_long_file_name_018
18514 a/b/one_31_chars_long_file_name_019
18515 a/b/one_31_chars_long_file_name_020
18516 a/b/one_31_chars_long_file_name_021
18517 a/b/one_31_chars_long_file_name_022
18518 a/b/one_31_chars_long_file_name_023
18519 a/b/one_31_chars_long_file_name_024
18520 a/b/one_31_chars_long_file_name_025
18521 a/b/one_31_chars_long_file_name_026
18522 a/b/one_31_chars_long_file_name_027
18523 a/b/one_31_chars_long_file_name_028
18524 a/b/one_31_chars_long_file_name_029
18525 a/b/one_31_chars_long_file_name_030
18526 a/b/one_31_chars_long_file_name_031
18527 a/b/one_31_chars_long_file_name_032
18528 a/b/one_31_chars_long_file_name_033
18529 a/b/one_31_chars_long_file_name_034
18530 a/b/one_31_chars_long_file_name_035
18531 a/b/one_31_chars_long_file_name_036
18532 a/b/one_31_chars_long_file_name_037
18533 a/b/one_31_chars_long_file_name_038
18534 a/b/one_31_chars_long_file_name_039
18535 a/b/one_31_chars_long_file_name_040
18536 a/b/one_31_chars_long_file_name_041
18537 a/b/one_31_chars_long_file_name_042
18538 a/b/one_31_chars_long_file_name_043
18539 a/b/one_31_chars_long_file_name_044
18540 a/b/one_31_chars_long_file_name_045
18541 a/b/one_31_chars_long_file_name_046
18542 a/b/one_31_chars_long_file_name_047
18543 a/b/one_31_chars_long_file_name_048
18544 a/b/one_31_chars_long_file_name_049
18545 a/b/one_31_chars_long_file_name_050
18546 a/b/one_31_chars_long_file_name_051
18547 a/b/one_31_chars_long_file_name_052
18548 a/b/one_31_chars_long_file_name_053
18549 a/b/one_31_chars_long_file_name_054
18550 a/b/one_31_chars_long_file_name_055
18551 a/b/one_31_chars_long_file_name_056
18552 a/b/one_31_chars_long_file_name_057
18553 a/b/one_31_chars_long_file_name_058
18554 a/b/one_31_chars_long_file_name_059
18555 a/b/one_31_chars_long_file_name_060
18556 a/b/one_31_chars_long_file_name_061
18557 a/b/one_31_chars_long_file_name_062
18558 a/b/one_31_chars_long_file_name_063
18559 a/b/one_31_chars_long_file_name_064
18560 a/b/one_31_chars_long_file_name_065
18561 a/b/one_31_chars_long_file_name_066
18562 a/b/one_31_chars_long_file_name_067
18563 a/b/one_31_chars_long_file_name_068
18564 a/b/one_31_chars_long_file_name_069
18565 a/b/one_31_chars_long_file_name_070
18566 a/b/one_31_chars_long_file_name_071
18567 a/b/one_31_chars_long_file_name_072
18568 a/b/one_31_chars_long_file_name_073
18569 a/b/one_31_chars_long_file_name_074
18570 a/b/one_31_chars_long_file_name_075
18571 a/b/one_31_chars_long_file_name_076
18572 a/b/one_31_chars_long_file_name_077
18573 a/b/one_31_chars_long_file_name_078
18574 a/b/one_31_chars_long_file_name_079
18575 a/b/one_31_chars_long_file_name_080
18576 a/b/one_31_chars_long_file_name_081
18577 a/b/one_31_chars_long_file_name_082
18578 a/b/one_31_chars_long_file_name_083
18579 a/b/one_31_chars_long_file_name_084
18580 a/b/one_31_chars_long_file_name_085
18581 a/b/one_31_chars_long_file_name_086
18582 a/b/one_31_chars_long_file_name_087
18583 a/b/one_31_chars_long_file_name_088
18584 a/b/one_31_chars_long_file_name_089
18585 a/b/one_31_chars_long_file_name_090
18586 a/b/one_31_chars_long_file_name_091
18587 a/b/one_31_chars_long_file_name_092
18588 a/b/one_31_chars_long_file_name_093
18589 a/b/one_31_chars_long_file_name_094
18590 a/b/one_31_chars_long_file_name_095
18591 a/b/one_31_chars_long_file_name_096
18592 a/b/one_31_chars_long_file_name_097
18593 a/b/one_31_chars_long_file_name_098
18594 a/b/one_31_chars_long_file_name_099
18595 a/b/one_31_chars_long_file_name_100
18596 a/b/one_31_chars_long_file_name_101
18597 a/b/one_31_chars_long_file_name_102
18598 a/b/one_31_chars_long_file_name_103
18599 a/b/one_31_chars_long_file_name_104
18600 a/b/one_31_chars_long_file_name_105
18601 a/b/one_31_chars_long_file_name_106
18602 a/b/one_31_chars_long_file_name_107
18603 a/b/one_31_chars_long_file_name_108
18604 a/b/one_31_chars_long_file_name_109
18605 a/b/one_31_chars_long_file_name_110
18606 a/b/one_31_chars_long_file_name_111
18607 a/b/one_31_chars_long_file_name_112
18608 a/b/one_31_chars_long_file_name_113
18609 a/b/one_31_chars_long_file_name_114
18610 a/b/one_31_chars_long_file_name_115
18611 a/b/one_31_chars_long_file_name_116
18612 a/b/one_31_chars_long_file_name_117
18613 a/b/one_31_chars_long_file_name_118
18614 a/b/one_31_chars_long_file_name_119
18615 a/b/one_31_chars_long_file_name_120
18616 a/b/one_31_chars_long_file_name_121
18617 a/b/one_31_chars_long_file_name_122
18618 a/b/one_31_chars_long_file_name_123
18619 a/b/one_31_chars_long_file_name_124
18620 a/b/one_31_chars_long_file_name_125
18621 a/b/one_31_chars_long_file_name_126
18622 a/b/one_31_chars_long_file_name_127
18623 a/b/one_31_chars_long_file_name_128
18624 a/b/one_31_chars_long_file_name_129
18625 a/b/one_31_chars_long_file_name_130
18626 a/b/one_31_chars_long_file_name_131
18627 a/b/one_31_chars_long_file_name_132
18628 a/b/one_31_chars_long_file_name_133
18629 a/b/one_31_chars_long_file_name_134
18630 a/b/one_31_chars_long_file_name_135
18631 a/b/one_31_chars_long_file_name_136
18632 a/b/one_31_chars_long_file_name_137
18633 a/b/one_31_chars_long_file_name_138
18634 a/b/one_31_chars_long_file_name_139
18635 a/b/one_31_chars_long_file_name_140
18636 a/b/one_31_chars_long_file_name_141
18637 a/b/one_31_chars_long_file_name_142
18638 Incremental dump
18639 a/
18640 a/c/
18641 " | \
18642   $at_diff - "$at_stdout" || at_failed=:
18643 at_func_check_status 0 $at_status "$at_srcdir/incr04.at:34"
18644
18645 $at_failed && at_func_log_failure
18646 $at_traceon; }
18647
18648               { $at_traceoff
18649 $as_echo "$at_srcdir/incr04.at:34:
18650 mkdir oldgnu
18651 (cd oldgnu
18652 TEST_TAR_FORMAT=oldgnu
18653 export TEST_TAR_FORMAT
18654 TAR_OPTIONS=\"-H oldgnu\"
18655 export TAR_OPTIONS
18656 rm -rf *
18657
18658
18659 install-sh -d a/b >/dev/null  || exit 77
18660 awk 'BEGIN {
18661   for (i=1;i<=142;i++)
18662     printf(\"a/b/one_31_chars_long_file_name_%03d\\n\", i);
18663   }' < /dev/null | genfile --files-from -
18664
18665 sleep 1
18666
18667 echo \"Initial dump\"
18668 tar cvf a0.tar -g a.sna a
18669 mv a/b a/c
18670 echo \"Incremental dump\"
18671 tar cvf a1.tar -g a.sna a
18672 )"
18673 echo incr04.at:34 >"$at_check_line_file"
18674
18675 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
18676    false; }; then
18677   ( $at_traceon;
18678 mkdir oldgnu
18679 (cd oldgnu
18680 TEST_TAR_FORMAT=oldgnu
18681 export TEST_TAR_FORMAT
18682 TAR_OPTIONS="-H oldgnu"
18683 export TAR_OPTIONS
18684 rm -rf *
18685
18686
18687 install-sh -d a/b >/dev/null  || exit 77
18688 awk 'BEGIN {
18689   for (i=1;i<=142;i++)
18690     printf("a/b/one_31_chars_long_file_name_%03d\n", i);
18691   }' < /dev/null | genfile --files-from -
18692
18693 sleep 1
18694
18695 echo "Initial dump"
18696 tar cvf a0.tar -g a.sna a
18697 mv a/b a/c
18698 echo "Incremental dump"
18699 tar cvf a1.tar -g a.sna a
18700 ) ) >"$at_stdout" 2>"$at_stder1"
18701   at_func_filter_trace $?
18702 else
18703   ( :;
18704 mkdir oldgnu
18705 (cd oldgnu
18706 TEST_TAR_FORMAT=oldgnu
18707 export TEST_TAR_FORMAT
18708 TAR_OPTIONS="-H oldgnu"
18709 export TAR_OPTIONS
18710 rm -rf *
18711
18712
18713 install-sh -d a/b >/dev/null  || exit 77
18714 awk 'BEGIN {
18715   for (i=1;i<=142;i++)
18716     printf("a/b/one_31_chars_long_file_name_%03d\n", i);
18717   }' < /dev/null | genfile --files-from -
18718
18719 sleep 1
18720
18721 echo "Initial dump"
18722 tar cvf a0.tar -g a.sna a
18723 mv a/b a/c
18724 echo "Incremental dump"
18725 tar cvf a1.tar -g a.sna a
18726 ) ) >"$at_stdout" 2>"$at_stderr"
18727 fi
18728 at_status=$?
18729 at_failed=false
18730 echo >>"$at_stderr"; $as_echo "tar: a: Directory is new
18731 tar: a/b: Directory is new
18732 tar: a/c: Directory has been renamed from \`a/b'
18733 " | \
18734   $at_diff - "$at_stderr" || at_failed=:
18735 echo >>"$at_stdout"; $as_echo "Initial dump
18736 a/
18737 a/b/
18738 a/b/one_31_chars_long_file_name_001
18739 a/b/one_31_chars_long_file_name_002
18740 a/b/one_31_chars_long_file_name_003
18741 a/b/one_31_chars_long_file_name_004
18742 a/b/one_31_chars_long_file_name_005
18743 a/b/one_31_chars_long_file_name_006
18744 a/b/one_31_chars_long_file_name_007
18745 a/b/one_31_chars_long_file_name_008
18746 a/b/one_31_chars_long_file_name_009
18747 a/b/one_31_chars_long_file_name_010
18748 a/b/one_31_chars_long_file_name_011
18749 a/b/one_31_chars_long_file_name_012
18750 a/b/one_31_chars_long_file_name_013
18751 a/b/one_31_chars_long_file_name_014
18752 a/b/one_31_chars_long_file_name_015
18753 a/b/one_31_chars_long_file_name_016
18754 a/b/one_31_chars_long_file_name_017
18755 a/b/one_31_chars_long_file_name_018
18756 a/b/one_31_chars_long_file_name_019
18757 a/b/one_31_chars_long_file_name_020
18758 a/b/one_31_chars_long_file_name_021
18759 a/b/one_31_chars_long_file_name_022
18760 a/b/one_31_chars_long_file_name_023
18761 a/b/one_31_chars_long_file_name_024
18762 a/b/one_31_chars_long_file_name_025
18763 a/b/one_31_chars_long_file_name_026
18764 a/b/one_31_chars_long_file_name_027
18765 a/b/one_31_chars_long_file_name_028
18766 a/b/one_31_chars_long_file_name_029
18767 a/b/one_31_chars_long_file_name_030
18768 a/b/one_31_chars_long_file_name_031
18769 a/b/one_31_chars_long_file_name_032
18770 a/b/one_31_chars_long_file_name_033
18771 a/b/one_31_chars_long_file_name_034
18772 a/b/one_31_chars_long_file_name_035
18773 a/b/one_31_chars_long_file_name_036
18774 a/b/one_31_chars_long_file_name_037
18775 a/b/one_31_chars_long_file_name_038
18776 a/b/one_31_chars_long_file_name_039
18777 a/b/one_31_chars_long_file_name_040
18778 a/b/one_31_chars_long_file_name_041
18779 a/b/one_31_chars_long_file_name_042
18780 a/b/one_31_chars_long_file_name_043
18781 a/b/one_31_chars_long_file_name_044
18782 a/b/one_31_chars_long_file_name_045
18783 a/b/one_31_chars_long_file_name_046
18784 a/b/one_31_chars_long_file_name_047
18785 a/b/one_31_chars_long_file_name_048
18786 a/b/one_31_chars_long_file_name_049
18787 a/b/one_31_chars_long_file_name_050
18788 a/b/one_31_chars_long_file_name_051
18789 a/b/one_31_chars_long_file_name_052
18790 a/b/one_31_chars_long_file_name_053
18791 a/b/one_31_chars_long_file_name_054
18792 a/b/one_31_chars_long_file_name_055
18793 a/b/one_31_chars_long_file_name_056
18794 a/b/one_31_chars_long_file_name_057
18795 a/b/one_31_chars_long_file_name_058
18796 a/b/one_31_chars_long_file_name_059
18797 a/b/one_31_chars_long_file_name_060
18798 a/b/one_31_chars_long_file_name_061
18799 a/b/one_31_chars_long_file_name_062
18800 a/b/one_31_chars_long_file_name_063
18801 a/b/one_31_chars_long_file_name_064
18802 a/b/one_31_chars_long_file_name_065
18803 a/b/one_31_chars_long_file_name_066
18804 a/b/one_31_chars_long_file_name_067
18805 a/b/one_31_chars_long_file_name_068
18806 a/b/one_31_chars_long_file_name_069
18807 a/b/one_31_chars_long_file_name_070
18808 a/b/one_31_chars_long_file_name_071
18809 a/b/one_31_chars_long_file_name_072
18810 a/b/one_31_chars_long_file_name_073
18811 a/b/one_31_chars_long_file_name_074
18812 a/b/one_31_chars_long_file_name_075
18813 a/b/one_31_chars_long_file_name_076
18814 a/b/one_31_chars_long_file_name_077
18815 a/b/one_31_chars_long_file_name_078
18816 a/b/one_31_chars_long_file_name_079
18817 a/b/one_31_chars_long_file_name_080
18818 a/b/one_31_chars_long_file_name_081
18819 a/b/one_31_chars_long_file_name_082
18820 a/b/one_31_chars_long_file_name_083
18821 a/b/one_31_chars_long_file_name_084
18822 a/b/one_31_chars_long_file_name_085
18823 a/b/one_31_chars_long_file_name_086
18824 a/b/one_31_chars_long_file_name_087
18825 a/b/one_31_chars_long_file_name_088
18826 a/b/one_31_chars_long_file_name_089
18827 a/b/one_31_chars_long_file_name_090
18828 a/b/one_31_chars_long_file_name_091
18829 a/b/one_31_chars_long_file_name_092
18830 a/b/one_31_chars_long_file_name_093
18831 a/b/one_31_chars_long_file_name_094
18832 a/b/one_31_chars_long_file_name_095
18833 a/b/one_31_chars_long_file_name_096
18834 a/b/one_31_chars_long_file_name_097
18835 a/b/one_31_chars_long_file_name_098
18836 a/b/one_31_chars_long_file_name_099
18837 a/b/one_31_chars_long_file_name_100
18838 a/b/one_31_chars_long_file_name_101
18839 a/b/one_31_chars_long_file_name_102
18840 a/b/one_31_chars_long_file_name_103
18841 a/b/one_31_chars_long_file_name_104
18842 a/b/one_31_chars_long_file_name_105
18843 a/b/one_31_chars_long_file_name_106
18844 a/b/one_31_chars_long_file_name_107
18845 a/b/one_31_chars_long_file_name_108
18846 a/b/one_31_chars_long_file_name_109
18847 a/b/one_31_chars_long_file_name_110
18848 a/b/one_31_chars_long_file_name_111
18849 a/b/one_31_chars_long_file_name_112
18850 a/b/one_31_chars_long_file_name_113
18851 a/b/one_31_chars_long_file_name_114
18852 a/b/one_31_chars_long_file_name_115
18853 a/b/one_31_chars_long_file_name_116
18854 a/b/one_31_chars_long_file_name_117
18855 a/b/one_31_chars_long_file_name_118
18856 a/b/one_31_chars_long_file_name_119
18857 a/b/one_31_chars_long_file_name_120
18858 a/b/one_31_chars_long_file_name_121
18859 a/b/one_31_chars_long_file_name_122
18860 a/b/one_31_chars_long_file_name_123
18861 a/b/one_31_chars_long_file_name_124
18862 a/b/one_31_chars_long_file_name_125
18863 a/b/one_31_chars_long_file_name_126
18864 a/b/one_31_chars_long_file_name_127
18865 a/b/one_31_chars_long_file_name_128
18866 a/b/one_31_chars_long_file_name_129
18867 a/b/one_31_chars_long_file_name_130
18868 a/b/one_31_chars_long_file_name_131
18869 a/b/one_31_chars_long_file_name_132
18870 a/b/one_31_chars_long_file_name_133
18871 a/b/one_31_chars_long_file_name_134
18872 a/b/one_31_chars_long_file_name_135
18873 a/b/one_31_chars_long_file_name_136
18874 a/b/one_31_chars_long_file_name_137
18875 a/b/one_31_chars_long_file_name_138
18876 a/b/one_31_chars_long_file_name_139
18877 a/b/one_31_chars_long_file_name_140
18878 a/b/one_31_chars_long_file_name_141
18879 a/b/one_31_chars_long_file_name_142
18880 Incremental dump
18881 a/
18882 a/c/
18883 " | \
18884   $at_diff - "$at_stdout" || at_failed=:
18885 at_func_check_status 0 $at_status "$at_srcdir/incr04.at:34"
18886
18887 $at_failed && at_func_log_failure
18888 $at_traceon; }
18889
18890               { $at_traceoff
18891 $as_echo "$at_srcdir/incr04.at:34:
18892 mkdir posix
18893 (cd posix
18894 TEST_TAR_FORMAT=posix
18895 export TEST_TAR_FORMAT
18896 TAR_OPTIONS=\"-H posix\"
18897 export TAR_OPTIONS
18898 rm -rf *
18899
18900
18901 install-sh -d a/b >/dev/null  || exit 77
18902 awk 'BEGIN {
18903   for (i=1;i<=142;i++)
18904     printf(\"a/b/one_31_chars_long_file_name_%03d\\n\", i);
18905   }' < /dev/null | genfile --files-from -
18906
18907 sleep 1
18908
18909 echo \"Initial dump\"
18910 tar cvf a0.tar -g a.sna a
18911 mv a/b a/c
18912 echo \"Incremental dump\"
18913 tar cvf a1.tar -g a.sna a
18914 )"
18915 echo incr04.at:34 >"$at_check_line_file"
18916
18917 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
18918    false; }; then
18919   ( $at_traceon;
18920 mkdir posix
18921 (cd posix
18922 TEST_TAR_FORMAT=posix
18923 export TEST_TAR_FORMAT
18924 TAR_OPTIONS="-H posix"
18925 export TAR_OPTIONS
18926 rm -rf *
18927
18928
18929 install-sh -d a/b >/dev/null  || exit 77
18930 awk 'BEGIN {
18931   for (i=1;i<=142;i++)
18932     printf("a/b/one_31_chars_long_file_name_%03d\n", i);
18933   }' < /dev/null | genfile --files-from -
18934
18935 sleep 1
18936
18937 echo "Initial dump"
18938 tar cvf a0.tar -g a.sna a
18939 mv a/b a/c
18940 echo "Incremental dump"
18941 tar cvf a1.tar -g a.sna a
18942 ) ) >"$at_stdout" 2>"$at_stder1"
18943   at_func_filter_trace $?
18944 else
18945   ( :;
18946 mkdir posix
18947 (cd posix
18948 TEST_TAR_FORMAT=posix
18949 export TEST_TAR_FORMAT
18950 TAR_OPTIONS="-H posix"
18951 export TAR_OPTIONS
18952 rm -rf *
18953
18954
18955 install-sh -d a/b >/dev/null  || exit 77
18956 awk 'BEGIN {
18957   for (i=1;i<=142;i++)
18958     printf("a/b/one_31_chars_long_file_name_%03d\n", i);
18959   }' < /dev/null | genfile --files-from -
18960
18961 sleep 1
18962
18963 echo "Initial dump"
18964 tar cvf a0.tar -g a.sna a
18965 mv a/b a/c
18966 echo "Incremental dump"
18967 tar cvf a1.tar -g a.sna a
18968 ) ) >"$at_stdout" 2>"$at_stderr"
18969 fi
18970 at_status=$?
18971 at_failed=false
18972 echo >>"$at_stderr"; $as_echo "tar: a: Directory is new
18973 tar: a/b: Directory is new
18974 tar: a/c: Directory has been renamed from \`a/b'
18975 " | \
18976   $at_diff - "$at_stderr" || at_failed=:
18977 echo >>"$at_stdout"; $as_echo "Initial dump
18978 a/
18979 a/b/
18980 a/b/one_31_chars_long_file_name_001
18981 a/b/one_31_chars_long_file_name_002
18982 a/b/one_31_chars_long_file_name_003
18983 a/b/one_31_chars_long_file_name_004
18984 a/b/one_31_chars_long_file_name_005
18985 a/b/one_31_chars_long_file_name_006
18986 a/b/one_31_chars_long_file_name_007
18987 a/b/one_31_chars_long_file_name_008
18988 a/b/one_31_chars_long_file_name_009
18989 a/b/one_31_chars_long_file_name_010
18990 a/b/one_31_chars_long_file_name_011
18991 a/b/one_31_chars_long_file_name_012
18992 a/b/one_31_chars_long_file_name_013
18993 a/b/one_31_chars_long_file_name_014
18994 a/b/one_31_chars_long_file_name_015
18995 a/b/one_31_chars_long_file_name_016
18996 a/b/one_31_chars_long_file_name_017
18997 a/b/one_31_chars_long_file_name_018
18998 a/b/one_31_chars_long_file_name_019
18999 a/b/one_31_chars_long_file_name_020
19000 a/b/one_31_chars_long_file_name_021
19001 a/b/one_31_chars_long_file_name_022
19002 a/b/one_31_chars_long_file_name_023
19003 a/b/one_31_chars_long_file_name_024
19004 a/b/one_31_chars_long_file_name_025
19005 a/b/one_31_chars_long_file_name_026
19006 a/b/one_31_chars_long_file_name_027
19007 a/b/one_31_chars_long_file_name_028
19008 a/b/one_31_chars_long_file_name_029
19009 a/b/one_31_chars_long_file_name_030
19010 a/b/one_31_chars_long_file_name_031
19011 a/b/one_31_chars_long_file_name_032
19012 a/b/one_31_chars_long_file_name_033
19013 a/b/one_31_chars_long_file_name_034
19014 a/b/one_31_chars_long_file_name_035
19015 a/b/one_31_chars_long_file_name_036
19016 a/b/one_31_chars_long_file_name_037
19017 a/b/one_31_chars_long_file_name_038
19018 a/b/one_31_chars_long_file_name_039
19019 a/b/one_31_chars_long_file_name_040
19020 a/b/one_31_chars_long_file_name_041
19021 a/b/one_31_chars_long_file_name_042
19022 a/b/one_31_chars_long_file_name_043
19023 a/b/one_31_chars_long_file_name_044
19024 a/b/one_31_chars_long_file_name_045
19025 a/b/one_31_chars_long_file_name_046
19026 a/b/one_31_chars_long_file_name_047
19027 a/b/one_31_chars_long_file_name_048
19028 a/b/one_31_chars_long_file_name_049
19029 a/b/one_31_chars_long_file_name_050
19030 a/b/one_31_chars_long_file_name_051
19031 a/b/one_31_chars_long_file_name_052
19032 a/b/one_31_chars_long_file_name_053
19033 a/b/one_31_chars_long_file_name_054
19034 a/b/one_31_chars_long_file_name_055
19035 a/b/one_31_chars_long_file_name_056
19036 a/b/one_31_chars_long_file_name_057
19037 a/b/one_31_chars_long_file_name_058
19038 a/b/one_31_chars_long_file_name_059
19039 a/b/one_31_chars_long_file_name_060
19040 a/b/one_31_chars_long_file_name_061
19041 a/b/one_31_chars_long_file_name_062
19042 a/b/one_31_chars_long_file_name_063
19043 a/b/one_31_chars_long_file_name_064
19044 a/b/one_31_chars_long_file_name_065
19045 a/b/one_31_chars_long_file_name_066
19046 a/b/one_31_chars_long_file_name_067
19047 a/b/one_31_chars_long_file_name_068
19048 a/b/one_31_chars_long_file_name_069
19049 a/b/one_31_chars_long_file_name_070
19050 a/b/one_31_chars_long_file_name_071
19051 a/b/one_31_chars_long_file_name_072
19052 a/b/one_31_chars_long_file_name_073
19053 a/b/one_31_chars_long_file_name_074
19054 a/b/one_31_chars_long_file_name_075
19055 a/b/one_31_chars_long_file_name_076
19056 a/b/one_31_chars_long_file_name_077
19057 a/b/one_31_chars_long_file_name_078
19058 a/b/one_31_chars_long_file_name_079
19059 a/b/one_31_chars_long_file_name_080
19060 a/b/one_31_chars_long_file_name_081
19061 a/b/one_31_chars_long_file_name_082
19062 a/b/one_31_chars_long_file_name_083
19063 a/b/one_31_chars_long_file_name_084
19064 a/b/one_31_chars_long_file_name_085
19065 a/b/one_31_chars_long_file_name_086
19066 a/b/one_31_chars_long_file_name_087
19067 a/b/one_31_chars_long_file_name_088
19068 a/b/one_31_chars_long_file_name_089
19069 a/b/one_31_chars_long_file_name_090
19070 a/b/one_31_chars_long_file_name_091
19071 a/b/one_31_chars_long_file_name_092
19072 a/b/one_31_chars_long_file_name_093
19073 a/b/one_31_chars_long_file_name_094
19074 a/b/one_31_chars_long_file_name_095
19075 a/b/one_31_chars_long_file_name_096
19076 a/b/one_31_chars_long_file_name_097
19077 a/b/one_31_chars_long_file_name_098
19078 a/b/one_31_chars_long_file_name_099
19079 a/b/one_31_chars_long_file_name_100
19080 a/b/one_31_chars_long_file_name_101
19081 a/b/one_31_chars_long_file_name_102
19082 a/b/one_31_chars_long_file_name_103
19083 a/b/one_31_chars_long_file_name_104
19084 a/b/one_31_chars_long_file_name_105
19085 a/b/one_31_chars_long_file_name_106
19086 a/b/one_31_chars_long_file_name_107
19087 a/b/one_31_chars_long_file_name_108
19088 a/b/one_31_chars_long_file_name_109
19089 a/b/one_31_chars_long_file_name_110
19090 a/b/one_31_chars_long_file_name_111
19091 a/b/one_31_chars_long_file_name_112
19092 a/b/one_31_chars_long_file_name_113
19093 a/b/one_31_chars_long_file_name_114
19094 a/b/one_31_chars_long_file_name_115
19095 a/b/one_31_chars_long_file_name_116
19096 a/b/one_31_chars_long_file_name_117
19097 a/b/one_31_chars_long_file_name_118
19098 a/b/one_31_chars_long_file_name_119
19099 a/b/one_31_chars_long_file_name_120
19100 a/b/one_31_chars_long_file_name_121
19101 a/b/one_31_chars_long_file_name_122
19102 a/b/one_31_chars_long_file_name_123
19103 a/b/one_31_chars_long_file_name_124
19104 a/b/one_31_chars_long_file_name_125
19105 a/b/one_31_chars_long_file_name_126
19106 a/b/one_31_chars_long_file_name_127
19107 a/b/one_31_chars_long_file_name_128
19108 a/b/one_31_chars_long_file_name_129
19109 a/b/one_31_chars_long_file_name_130
19110 a/b/one_31_chars_long_file_name_131
19111 a/b/one_31_chars_long_file_name_132
19112 a/b/one_31_chars_long_file_name_133
19113 a/b/one_31_chars_long_file_name_134
19114 a/b/one_31_chars_long_file_name_135
19115 a/b/one_31_chars_long_file_name_136
19116 a/b/one_31_chars_long_file_name_137
19117 a/b/one_31_chars_long_file_name_138
19118 a/b/one_31_chars_long_file_name_139
19119 a/b/one_31_chars_long_file_name_140
19120 a/b/one_31_chars_long_file_name_141
19121 a/b/one_31_chars_long_file_name_142
19122 Incremental dump
19123 a/
19124 a/c/
19125 " | \
19126   $at_diff - "$at_stdout" || at_failed=:
19127 at_func_check_status 0 $at_status "$at_srcdir/incr04.at:34"
19128
19129 $at_failed && at_func_log_failure
19130 $at_traceon; }
19131
19132
19133
19134
19135   $at_traceoff
19136   $at_times_p && times >"$at_times_file"
19137 ) 5>&1 2>&1 | eval $at_tee_pipe
19138 at_status=`cat "$at_status_file"`
19139 #AT_STOP_42
19140 #AT_START_43
19141 # 43. incr05.at:19: incremental dumps with -C
19142 at_setup_line='incr05.at:19'
19143 at_desc="incremental dumps with -C"
19144 $at_quiet $as_echo_n " 43: $at_desc                      "
19145 at_xfail=no
19146       test -f $XFAILFILE && at_xfail=yes
19147 echo "#                             -*- compilation -*-" >> "$at_group_log"
19148 (
19149   $as_echo "43. incr05.at:19: testing ..."
19150   $at_traceon
19151
19152
19153
19154
19155
19156   { $at_traceoff
19157 $as_echo "$at_srcdir/incr05.at:22:
19158 mkdir gnu
19159 (cd gnu
19160 TEST_TAR_FORMAT=gnu
19161 export TEST_TAR_FORMAT
19162 TAR_OPTIONS=\"-H gnu\"
19163 export TAR_OPTIONS
19164 rm -rf *
19165
19166 mkdir dir
19167 mkdir dir/sub
19168 genfile --file dir/file1
19169 genfile --file dir/sub/file2
19170
19171 echo Level 0
19172 tar -c -f archive.tar -g db -C dir -v --warning=no-new-dir .
19173
19174 genfile --file dir/file3
19175 echo Level 1
19176 tar -c -f archive.tar -g db -C dir -v --warning=no-new-dir .
19177 )"
19178 echo incr05.at:22 >"$at_check_line_file"
19179
19180 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
19181    false; }; then
19182   ( $at_traceon;
19183 mkdir gnu
19184 (cd gnu
19185 TEST_TAR_FORMAT=gnu
19186 export TEST_TAR_FORMAT
19187 TAR_OPTIONS="-H gnu"
19188 export TAR_OPTIONS
19189 rm -rf *
19190
19191 mkdir dir
19192 mkdir dir/sub
19193 genfile --file dir/file1
19194 genfile --file dir/sub/file2
19195
19196 echo Level 0
19197 tar -c -f archive.tar -g db -C dir -v --warning=no-new-dir .
19198
19199 genfile --file dir/file3
19200 echo Level 1
19201 tar -c -f archive.tar -g db -C dir -v --warning=no-new-dir .
19202 ) ) >"$at_stdout" 2>"$at_stder1"
19203   at_func_filter_trace $?
19204 else
19205   ( :;
19206 mkdir gnu
19207 (cd gnu
19208 TEST_TAR_FORMAT=gnu
19209 export TEST_TAR_FORMAT
19210 TAR_OPTIONS="-H gnu"
19211 export TAR_OPTIONS
19212 rm -rf *
19213
19214 mkdir dir
19215 mkdir dir/sub
19216 genfile --file dir/file1
19217 genfile --file dir/sub/file2
19218
19219 echo Level 0
19220 tar -c -f archive.tar -g db -C dir -v --warning=no-new-dir .
19221
19222 genfile --file dir/file3
19223 echo Level 1
19224 tar -c -f archive.tar -g db -C dir -v --warning=no-new-dir .
19225 ) ) >"$at_stdout" 2>"$at_stderr"
19226 fi
19227 at_status=$?
19228 at_failed=false
19229 at_func_diff_devnull "$at_stderr" || at_failed=:
19230 echo >>"$at_stdout"; $as_echo "Level 0
19231 ./
19232 ./sub/
19233 ./file1
19234 ./sub/file2
19235 Level 1
19236 ./
19237 ./sub/
19238 ./file3
19239 " | \
19240   $at_diff - "$at_stdout" || at_failed=:
19241 at_func_check_status 0 $at_status "$at_srcdir/incr05.at:22"
19242
19243 $at_failed && at_func_log_failure
19244 $at_traceon; }
19245
19246               { $at_traceoff
19247 $as_echo "$at_srcdir/incr05.at:22:
19248 mkdir oldgnu
19249 (cd oldgnu
19250 TEST_TAR_FORMAT=oldgnu
19251 export TEST_TAR_FORMAT
19252 TAR_OPTIONS=\"-H oldgnu\"
19253 export TAR_OPTIONS
19254 rm -rf *
19255
19256 mkdir dir
19257 mkdir dir/sub
19258 genfile --file dir/file1
19259 genfile --file dir/sub/file2
19260
19261 echo Level 0
19262 tar -c -f archive.tar -g db -C dir -v --warning=no-new-dir .
19263
19264 genfile --file dir/file3
19265 echo Level 1
19266 tar -c -f archive.tar -g db -C dir -v --warning=no-new-dir .
19267 )"
19268 echo incr05.at:22 >"$at_check_line_file"
19269
19270 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
19271    false; }; then
19272   ( $at_traceon;
19273 mkdir oldgnu
19274 (cd oldgnu
19275 TEST_TAR_FORMAT=oldgnu
19276 export TEST_TAR_FORMAT
19277 TAR_OPTIONS="-H oldgnu"
19278 export TAR_OPTIONS
19279 rm -rf *
19280
19281 mkdir dir
19282 mkdir dir/sub
19283 genfile --file dir/file1
19284 genfile --file dir/sub/file2
19285
19286 echo Level 0
19287 tar -c -f archive.tar -g db -C dir -v --warning=no-new-dir .
19288
19289 genfile --file dir/file3
19290 echo Level 1
19291 tar -c -f archive.tar -g db -C dir -v --warning=no-new-dir .
19292 ) ) >"$at_stdout" 2>"$at_stder1"
19293   at_func_filter_trace $?
19294 else
19295   ( :;
19296 mkdir oldgnu
19297 (cd oldgnu
19298 TEST_TAR_FORMAT=oldgnu
19299 export TEST_TAR_FORMAT
19300 TAR_OPTIONS="-H oldgnu"
19301 export TAR_OPTIONS
19302 rm -rf *
19303
19304 mkdir dir
19305 mkdir dir/sub
19306 genfile --file dir/file1
19307 genfile --file dir/sub/file2
19308
19309 echo Level 0
19310 tar -c -f archive.tar -g db -C dir -v --warning=no-new-dir .
19311
19312 genfile --file dir/file3
19313 echo Level 1
19314 tar -c -f archive.tar -g db -C dir -v --warning=no-new-dir .
19315 ) ) >"$at_stdout" 2>"$at_stderr"
19316 fi
19317 at_status=$?
19318 at_failed=false
19319 at_func_diff_devnull "$at_stderr" || at_failed=:
19320 echo >>"$at_stdout"; $as_echo "Level 0
19321 ./
19322 ./sub/
19323 ./file1
19324 ./sub/file2
19325 Level 1
19326 ./
19327 ./sub/
19328 ./file3
19329 " | \
19330   $at_diff - "$at_stdout" || at_failed=:
19331 at_func_check_status 0 $at_status "$at_srcdir/incr05.at:22"
19332
19333 $at_failed && at_func_log_failure
19334 $at_traceon; }
19335
19336               { $at_traceoff
19337 $as_echo "$at_srcdir/incr05.at:22:
19338 mkdir posix
19339 (cd posix
19340 TEST_TAR_FORMAT=posix
19341 export TEST_TAR_FORMAT
19342 TAR_OPTIONS=\"-H posix\"
19343 export TAR_OPTIONS
19344 rm -rf *
19345
19346 mkdir dir
19347 mkdir dir/sub
19348 genfile --file dir/file1
19349 genfile --file dir/sub/file2
19350
19351 echo Level 0
19352 tar -c -f archive.tar -g db -C dir -v --warning=no-new-dir .
19353
19354 genfile --file dir/file3
19355 echo Level 1
19356 tar -c -f archive.tar -g db -C dir -v --warning=no-new-dir .
19357 )"
19358 echo incr05.at:22 >"$at_check_line_file"
19359
19360 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
19361    false; }; then
19362   ( $at_traceon;
19363 mkdir posix
19364 (cd posix
19365 TEST_TAR_FORMAT=posix
19366 export TEST_TAR_FORMAT
19367 TAR_OPTIONS="-H posix"
19368 export TAR_OPTIONS
19369 rm -rf *
19370
19371 mkdir dir
19372 mkdir dir/sub
19373 genfile --file dir/file1
19374 genfile --file dir/sub/file2
19375
19376 echo Level 0
19377 tar -c -f archive.tar -g db -C dir -v --warning=no-new-dir .
19378
19379 genfile --file dir/file3
19380 echo Level 1
19381 tar -c -f archive.tar -g db -C dir -v --warning=no-new-dir .
19382 ) ) >"$at_stdout" 2>"$at_stder1"
19383   at_func_filter_trace $?
19384 else
19385   ( :;
19386 mkdir posix
19387 (cd posix
19388 TEST_TAR_FORMAT=posix
19389 export TEST_TAR_FORMAT
19390 TAR_OPTIONS="-H posix"
19391 export TAR_OPTIONS
19392 rm -rf *
19393
19394 mkdir dir
19395 mkdir dir/sub
19396 genfile --file dir/file1
19397 genfile --file dir/sub/file2
19398
19399 echo Level 0
19400 tar -c -f archive.tar -g db -C dir -v --warning=no-new-dir .
19401
19402 genfile --file dir/file3
19403 echo Level 1
19404 tar -c -f archive.tar -g db -C dir -v --warning=no-new-dir .
19405 ) ) >"$at_stdout" 2>"$at_stderr"
19406 fi
19407 at_status=$?
19408 at_failed=false
19409 at_func_diff_devnull "$at_stderr" || at_failed=:
19410 echo >>"$at_stdout"; $as_echo "Level 0
19411 ./
19412 ./sub/
19413 ./file1
19414 ./sub/file2
19415 Level 1
19416 ./
19417 ./sub/
19418 ./file3
19419 " | \
19420   $at_diff - "$at_stdout" || at_failed=:
19421 at_func_check_status 0 $at_status "$at_srcdir/incr05.at:22"
19422
19423 $at_failed && at_func_log_failure
19424 $at_traceon; }
19425
19426
19427
19428
19429   $at_traceoff
19430   $at_times_p && times >"$at_times_file"
19431 ) 5>&1 2>&1 | eval $at_tee_pipe
19432 at_status=`cat "$at_status_file"`
19433 #AT_STOP_43
19434 #AT_START_44
19435 # 44. incr06.at:19: incremental dumps of nested directories
19436 at_setup_line='incr06.at:19'
19437 at_desc="incremental dumps of nested directories"
19438 $at_quiet $as_echo_n " 44: $at_desc        "
19439 at_xfail=no
19440       test -f $XFAILFILE && at_xfail=yes
19441 echo "#                             -*- compilation -*-" >> "$at_group_log"
19442 (
19443   $as_echo "44. incr06.at:19: testing ..."
19444   $at_traceon
19445
19446
19447
19448
19449
19450   { $at_traceoff
19451 $as_echo "$at_srcdir/incr06.at:22:
19452 mkdir gnu
19453 (cd gnu
19454 TEST_TAR_FORMAT=gnu
19455 export TEST_TAR_FORMAT
19456 TAR_OPTIONS=\"-H gnu\"
19457 export TAR_OPTIONS
19458 rm -rf *
19459
19460 mkdir dir
19461 mkdir dir/sub
19462 mkdir dir/sub/a
19463 mkdir dir/sub/b
19464 genfile --file dir/file1
19465 genfile --file dir/sub/file2
19466 genfile --file dir/sub/a/file3
19467
19468 echo Level 0 . sub
19469 tar -c -f archive-0.1.tar -g db.1 -C dir -v --warning=no-new-dir . sub
19470 echo Level 0 sub .
19471 tar -c -f archive-0.2.tar -g db.2 -C dir -v --warning=no-new-dir sub .
19472
19473 mkdir dir/c
19474 genfile --file dir/sub/b/file4
19475
19476 echo Level 1 . sub
19477 tar -c -f archive-1.1.tar -g db.1 -C dir -v --warning=no-new-dir . sub
19478 echo Level 1 sub .
19479 tar -c -f archive-1.2.tar -g db.2 -C dir -v --warning=no-new-dir sub .
19480 )"
19481 echo incr06.at:22 >"$at_check_line_file"
19482
19483 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
19484    false; }; then
19485   ( $at_traceon;
19486 mkdir gnu
19487 (cd gnu
19488 TEST_TAR_FORMAT=gnu
19489 export TEST_TAR_FORMAT
19490 TAR_OPTIONS="-H gnu"
19491 export TAR_OPTIONS
19492 rm -rf *
19493
19494 mkdir dir
19495 mkdir dir/sub
19496 mkdir dir/sub/a
19497 mkdir dir/sub/b
19498 genfile --file dir/file1
19499 genfile --file dir/sub/file2
19500 genfile --file dir/sub/a/file3
19501
19502 echo Level 0 . sub
19503 tar -c -f archive-0.1.tar -g db.1 -C dir -v --warning=no-new-dir . sub
19504 echo Level 0 sub .
19505 tar -c -f archive-0.2.tar -g db.2 -C dir -v --warning=no-new-dir sub .
19506
19507 mkdir dir/c
19508 genfile --file dir/sub/b/file4
19509
19510 echo Level 1 . sub
19511 tar -c -f archive-1.1.tar -g db.1 -C dir -v --warning=no-new-dir . sub
19512 echo Level 1 sub .
19513 tar -c -f archive-1.2.tar -g db.2 -C dir -v --warning=no-new-dir sub .
19514 ) ) >"$at_stdout" 2>"$at_stder1"
19515   at_func_filter_trace $?
19516 else
19517   ( :;
19518 mkdir gnu
19519 (cd gnu
19520 TEST_TAR_FORMAT=gnu
19521 export TEST_TAR_FORMAT
19522 TAR_OPTIONS="-H gnu"
19523 export TAR_OPTIONS
19524 rm -rf *
19525
19526 mkdir dir
19527 mkdir dir/sub
19528 mkdir dir/sub/a
19529 mkdir dir/sub/b
19530 genfile --file dir/file1
19531 genfile --file dir/sub/file2
19532 genfile --file dir/sub/a/file3
19533
19534 echo Level 0 . sub
19535 tar -c -f archive-0.1.tar -g db.1 -C dir -v --warning=no-new-dir . sub
19536 echo Level 0 sub .
19537 tar -c -f archive-0.2.tar -g db.2 -C dir -v --warning=no-new-dir sub .
19538
19539 mkdir dir/c
19540 genfile --file dir/sub/b/file4
19541
19542 echo Level 1 . sub
19543 tar -c -f archive-1.1.tar -g db.1 -C dir -v --warning=no-new-dir . sub
19544 echo Level 1 sub .
19545 tar -c -f archive-1.2.tar -g db.2 -C dir -v --warning=no-new-dir sub .
19546 ) ) >"$at_stdout" 2>"$at_stderr"
19547 fi
19548 at_status=$?
19549 at_failed=false
19550 at_func_diff_devnull "$at_stderr" || at_failed=:
19551 echo >>"$at_stdout"; $as_echo "Level 0 . sub
19552 ./
19553 sub/
19554 sub/a/
19555 sub/b/
19556 ./file1
19557 sub/file2
19558 sub/a/file3
19559 Level 0 sub .
19560 ./
19561 sub/
19562 sub/a/
19563 sub/b/
19564 ./file1
19565 sub/file2
19566 sub/a/file3
19567 Level 1 . sub
19568 ./
19569 ./c/
19570 sub/
19571 sub/a/
19572 sub/b/
19573 sub/b/file4
19574 Level 1 sub .
19575 ./
19576 ./c/
19577 sub/
19578 sub/a/
19579 sub/b/
19580 sub/b/file4
19581 " | \
19582   $at_diff - "$at_stdout" || at_failed=:
19583 at_func_check_status 0 $at_status "$at_srcdir/incr06.at:22"
19584
19585 $at_failed && at_func_log_failure
19586 $at_traceon; }
19587
19588               { $at_traceoff
19589 $as_echo "$at_srcdir/incr06.at:22:
19590 mkdir oldgnu
19591 (cd oldgnu
19592 TEST_TAR_FORMAT=oldgnu
19593 export TEST_TAR_FORMAT
19594 TAR_OPTIONS=\"-H oldgnu\"
19595 export TAR_OPTIONS
19596 rm -rf *
19597
19598 mkdir dir
19599 mkdir dir/sub
19600 mkdir dir/sub/a
19601 mkdir dir/sub/b
19602 genfile --file dir/file1
19603 genfile --file dir/sub/file2
19604 genfile --file dir/sub/a/file3
19605
19606 echo Level 0 . sub
19607 tar -c -f archive-0.1.tar -g db.1 -C dir -v --warning=no-new-dir . sub
19608 echo Level 0 sub .
19609 tar -c -f archive-0.2.tar -g db.2 -C dir -v --warning=no-new-dir sub .
19610
19611 mkdir dir/c
19612 genfile --file dir/sub/b/file4
19613
19614 echo Level 1 . sub
19615 tar -c -f archive-1.1.tar -g db.1 -C dir -v --warning=no-new-dir . sub
19616 echo Level 1 sub .
19617 tar -c -f archive-1.2.tar -g db.2 -C dir -v --warning=no-new-dir sub .
19618 )"
19619 echo incr06.at:22 >"$at_check_line_file"
19620
19621 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
19622    false; }; then
19623   ( $at_traceon;
19624 mkdir oldgnu
19625 (cd oldgnu
19626 TEST_TAR_FORMAT=oldgnu
19627 export TEST_TAR_FORMAT
19628 TAR_OPTIONS="-H oldgnu"
19629 export TAR_OPTIONS
19630 rm -rf *
19631
19632 mkdir dir
19633 mkdir dir/sub
19634 mkdir dir/sub/a
19635 mkdir dir/sub/b
19636 genfile --file dir/file1
19637 genfile --file dir/sub/file2
19638 genfile --file dir/sub/a/file3
19639
19640 echo Level 0 . sub
19641 tar -c -f archive-0.1.tar -g db.1 -C dir -v --warning=no-new-dir . sub
19642 echo Level 0 sub .
19643 tar -c -f archive-0.2.tar -g db.2 -C dir -v --warning=no-new-dir sub .
19644
19645 mkdir dir/c
19646 genfile --file dir/sub/b/file4
19647
19648 echo Level 1 . sub
19649 tar -c -f archive-1.1.tar -g db.1 -C dir -v --warning=no-new-dir . sub
19650 echo Level 1 sub .
19651 tar -c -f archive-1.2.tar -g db.2 -C dir -v --warning=no-new-dir sub .
19652 ) ) >"$at_stdout" 2>"$at_stder1"
19653   at_func_filter_trace $?
19654 else
19655   ( :;
19656 mkdir oldgnu
19657 (cd oldgnu
19658 TEST_TAR_FORMAT=oldgnu
19659 export TEST_TAR_FORMAT
19660 TAR_OPTIONS="-H oldgnu"
19661 export TAR_OPTIONS
19662 rm -rf *
19663
19664 mkdir dir
19665 mkdir dir/sub
19666 mkdir dir/sub/a
19667 mkdir dir/sub/b
19668 genfile --file dir/file1
19669 genfile --file dir/sub/file2
19670 genfile --file dir/sub/a/file3
19671
19672 echo Level 0 . sub
19673 tar -c -f archive-0.1.tar -g db.1 -C dir -v --warning=no-new-dir . sub
19674 echo Level 0 sub .
19675 tar -c -f archive-0.2.tar -g db.2 -C dir -v --warning=no-new-dir sub .
19676
19677 mkdir dir/c
19678 genfile --file dir/sub/b/file4
19679
19680 echo Level 1 . sub
19681 tar -c -f archive-1.1.tar -g db.1 -C dir -v --warning=no-new-dir . sub
19682 echo Level 1 sub .
19683 tar -c -f archive-1.2.tar -g db.2 -C dir -v --warning=no-new-dir sub .
19684 ) ) >"$at_stdout" 2>"$at_stderr"
19685 fi
19686 at_status=$?
19687 at_failed=false
19688 at_func_diff_devnull "$at_stderr" || at_failed=:
19689 echo >>"$at_stdout"; $as_echo "Level 0 . sub
19690 ./
19691 sub/
19692 sub/a/
19693 sub/b/
19694 ./file1
19695 sub/file2
19696 sub/a/file3
19697 Level 0 sub .
19698 ./
19699 sub/
19700 sub/a/
19701 sub/b/
19702 ./file1
19703 sub/file2
19704 sub/a/file3
19705 Level 1 . sub
19706 ./
19707 ./c/
19708 sub/
19709 sub/a/
19710 sub/b/
19711 sub/b/file4
19712 Level 1 sub .
19713 ./
19714 ./c/
19715 sub/
19716 sub/a/
19717 sub/b/
19718 sub/b/file4
19719 " | \
19720   $at_diff - "$at_stdout" || at_failed=:
19721 at_func_check_status 0 $at_status "$at_srcdir/incr06.at:22"
19722
19723 $at_failed && at_func_log_failure
19724 $at_traceon; }
19725
19726               { $at_traceoff
19727 $as_echo "$at_srcdir/incr06.at:22:
19728 mkdir posix
19729 (cd posix
19730 TEST_TAR_FORMAT=posix
19731 export TEST_TAR_FORMAT
19732 TAR_OPTIONS=\"-H posix\"
19733 export TAR_OPTIONS
19734 rm -rf *
19735
19736 mkdir dir
19737 mkdir dir/sub
19738 mkdir dir/sub/a
19739 mkdir dir/sub/b
19740 genfile --file dir/file1
19741 genfile --file dir/sub/file2
19742 genfile --file dir/sub/a/file3
19743
19744 echo Level 0 . sub
19745 tar -c -f archive-0.1.tar -g db.1 -C dir -v --warning=no-new-dir . sub
19746 echo Level 0 sub .
19747 tar -c -f archive-0.2.tar -g db.2 -C dir -v --warning=no-new-dir sub .
19748
19749 mkdir dir/c
19750 genfile --file dir/sub/b/file4
19751
19752 echo Level 1 . sub
19753 tar -c -f archive-1.1.tar -g db.1 -C dir -v --warning=no-new-dir . sub
19754 echo Level 1 sub .
19755 tar -c -f archive-1.2.tar -g db.2 -C dir -v --warning=no-new-dir sub .
19756 )"
19757 echo incr06.at:22 >"$at_check_line_file"
19758
19759 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
19760    false; }; then
19761   ( $at_traceon;
19762 mkdir posix
19763 (cd posix
19764 TEST_TAR_FORMAT=posix
19765 export TEST_TAR_FORMAT
19766 TAR_OPTIONS="-H posix"
19767 export TAR_OPTIONS
19768 rm -rf *
19769
19770 mkdir dir
19771 mkdir dir/sub
19772 mkdir dir/sub/a
19773 mkdir dir/sub/b
19774 genfile --file dir/file1
19775 genfile --file dir/sub/file2
19776 genfile --file dir/sub/a/file3
19777
19778 echo Level 0 . sub
19779 tar -c -f archive-0.1.tar -g db.1 -C dir -v --warning=no-new-dir . sub
19780 echo Level 0 sub .
19781 tar -c -f archive-0.2.tar -g db.2 -C dir -v --warning=no-new-dir sub .
19782
19783 mkdir dir/c
19784 genfile --file dir/sub/b/file4
19785
19786 echo Level 1 . sub
19787 tar -c -f archive-1.1.tar -g db.1 -C dir -v --warning=no-new-dir . sub
19788 echo Level 1 sub .
19789 tar -c -f archive-1.2.tar -g db.2 -C dir -v --warning=no-new-dir sub .
19790 ) ) >"$at_stdout" 2>"$at_stder1"
19791   at_func_filter_trace $?
19792 else
19793   ( :;
19794 mkdir posix
19795 (cd posix
19796 TEST_TAR_FORMAT=posix
19797 export TEST_TAR_FORMAT
19798 TAR_OPTIONS="-H posix"
19799 export TAR_OPTIONS
19800 rm -rf *
19801
19802 mkdir dir
19803 mkdir dir/sub
19804 mkdir dir/sub/a
19805 mkdir dir/sub/b
19806 genfile --file dir/file1
19807 genfile --file dir/sub/file2
19808 genfile --file dir/sub/a/file3
19809
19810 echo Level 0 . sub
19811 tar -c -f archive-0.1.tar -g db.1 -C dir -v --warning=no-new-dir . sub
19812 echo Level 0 sub .
19813 tar -c -f archive-0.2.tar -g db.2 -C dir -v --warning=no-new-dir sub .
19814
19815 mkdir dir/c
19816 genfile --file dir/sub/b/file4
19817
19818 echo Level 1 . sub
19819 tar -c -f archive-1.1.tar -g db.1 -C dir -v --warning=no-new-dir . sub
19820 echo Level 1 sub .
19821 tar -c -f archive-1.2.tar -g db.2 -C dir -v --warning=no-new-dir sub .
19822 ) ) >"$at_stdout" 2>"$at_stderr"
19823 fi
19824 at_status=$?
19825 at_failed=false
19826 at_func_diff_devnull "$at_stderr" || at_failed=:
19827 echo >>"$at_stdout"; $as_echo "Level 0 . sub
19828 ./
19829 sub/
19830 sub/a/
19831 sub/b/
19832 ./file1
19833 sub/file2
19834 sub/a/file3
19835 Level 0 sub .
19836 ./
19837 sub/
19838 sub/a/
19839 sub/b/
19840 ./file1
19841 sub/file2
19842 sub/a/file3
19843 Level 1 . sub
19844 ./
19845 ./c/
19846 sub/
19847 sub/a/
19848 sub/b/
19849 sub/b/file4
19850 Level 1 sub .
19851 ./
19852 ./c/
19853 sub/
19854 sub/a/
19855 sub/b/
19856 sub/b/file4
19857 " | \
19858   $at_diff - "$at_stdout" || at_failed=:
19859 at_func_check_status 0 $at_status "$at_srcdir/incr06.at:22"
19860
19861 $at_failed && at_func_log_failure
19862 $at_traceon; }
19863
19864
19865
19866
19867   $at_traceoff
19868   $at_times_p && times >"$at_times_file"
19869 ) 5>&1 2>&1 | eval $at_tee_pipe
19870 at_status=`cat "$at_status_file"`
19871 #AT_STOP_44
19872 #AT_START_45
19873 # 45. filerem01.at:34: file removed as we read it (ca. 22 seconds)
19874 at_setup_line='filerem01.at:34'
19875 at_desc="file removed as we read it (ca. 22 seconds)"
19876 $at_quiet $as_echo_n " 45: $at_desc    "
19877 at_xfail=no
19878       test -f $XFAILFILE && at_xfail=yes
19879 echo "#                             -*- compilation -*-" >> "$at_group_log"
19880 (
19881   $as_echo "45. filerem01.at:34: testing ..."
19882   $at_traceon
19883
19884
19885
19886
19887
19888   { $at_traceoff
19889 $as_echo "$at_srcdir/filerem01.at:37:
19890 mkdir gnu
19891 (cd gnu
19892 TEST_TAR_FORMAT=gnu
19893 export TEST_TAR_FORMAT
19894 TAR_OPTIONS=\"-H gnu\"
19895 export TAR_OPTIONS
19896 rm -rf *
19897
19898 mkdir dir
19899 mkdir dir/sub
19900 genfile --file dir/file1
19901 genfile --file dir/sub/file2
19902
19903 genfile --run --checkpoint=3 --unlink dir/file1 -- \\
19904        tar --blocking-factor=1 --checkpoint=1 --checkpoint-action='sleep=1' \\
19905        --checkpoint-action='echo' -c -f archive.tar \\
19906        --listed-incremental db -v dir >/dev/null
19907 )"
19908 echo filerem01.at:37 >"$at_check_line_file"
19909
19910 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
19911    false; }; then
19912   ( $at_traceon;
19913 mkdir gnu
19914 (cd gnu
19915 TEST_TAR_FORMAT=gnu
19916 export TEST_TAR_FORMAT
19917 TAR_OPTIONS="-H gnu"
19918 export TAR_OPTIONS
19919 rm -rf *
19920
19921 mkdir dir
19922 mkdir dir/sub
19923 genfile --file dir/file1
19924 genfile --file dir/sub/file2
19925
19926 genfile --run --checkpoint=3 --unlink dir/file1 -- \
19927        tar --blocking-factor=1 --checkpoint=1 --checkpoint-action='sleep=1' \
19928        --checkpoint-action='echo' -c -f archive.tar \
19929        --listed-incremental db -v dir >/dev/null
19930 ) ) >"$at_stdout" 2>"$at_stder1"
19931   at_func_filter_trace $?
19932 else
19933   ( :;
19934 mkdir gnu
19935 (cd gnu
19936 TEST_TAR_FORMAT=gnu
19937 export TEST_TAR_FORMAT
19938 TAR_OPTIONS="-H gnu"
19939 export TAR_OPTIONS
19940 rm -rf *
19941
19942 mkdir dir
19943 mkdir dir/sub
19944 genfile --file dir/file1
19945 genfile --file dir/sub/file2
19946
19947 genfile --run --checkpoint=3 --unlink dir/file1 -- \
19948        tar --blocking-factor=1 --checkpoint=1 --checkpoint-action='sleep=1' \
19949        --checkpoint-action='echo' -c -f archive.tar \
19950        --listed-incremental db -v dir >/dev/null
19951 ) ) >"$at_stdout" 2>"$at_stderr"
19952 fi
19953 at_status=$?
19954 at_failed=false
19955 echo >>"$at_stderr"; $as_echo "tar: dir: Directory is new
19956 tar: dir/sub: Directory is new
19957 tar: dir/file1: File removed before we read it
19958 " | \
19959   $at_diff - "$at_stderr" || at_failed=:
19960 echo stdout:; cat "$at_stdout"
19961 at_func_check_status 1 $at_status "$at_srcdir/filerem01.at:37"
19962
19963 $at_failed && at_func_log_failure
19964 $at_traceon; }
19965
19966               { $at_traceoff
19967 $as_echo "$at_srcdir/filerem01.at:37:
19968 mkdir posix
19969 (cd posix
19970 TEST_TAR_FORMAT=posix
19971 export TEST_TAR_FORMAT
19972 TAR_OPTIONS=\"-H posix\"
19973 export TAR_OPTIONS
19974 rm -rf *
19975
19976 mkdir dir
19977 mkdir dir/sub
19978 genfile --file dir/file1
19979 genfile --file dir/sub/file2
19980
19981 genfile --run --checkpoint=3 --unlink dir/file1 -- \\
19982        tar --blocking-factor=1 --checkpoint=1 --checkpoint-action='sleep=1' \\
19983        --checkpoint-action='echo' -c -f archive.tar \\
19984        --listed-incremental db -v dir >/dev/null
19985 )"
19986 echo filerem01.at:37 >"$at_check_line_file"
19987
19988 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
19989    false; }; then
19990   ( $at_traceon;
19991 mkdir posix
19992 (cd posix
19993 TEST_TAR_FORMAT=posix
19994 export TEST_TAR_FORMAT
19995 TAR_OPTIONS="-H posix"
19996 export TAR_OPTIONS
19997 rm -rf *
19998
19999 mkdir dir
20000 mkdir dir/sub
20001 genfile --file dir/file1
20002 genfile --file dir/sub/file2
20003
20004 genfile --run --checkpoint=3 --unlink dir/file1 -- \
20005        tar --blocking-factor=1 --checkpoint=1 --checkpoint-action='sleep=1' \
20006        --checkpoint-action='echo' -c -f archive.tar \
20007        --listed-incremental db -v dir >/dev/null
20008 ) ) >"$at_stdout" 2>"$at_stder1"
20009   at_func_filter_trace $?
20010 else
20011   ( :;
20012 mkdir posix
20013 (cd posix
20014 TEST_TAR_FORMAT=posix
20015 export TEST_TAR_FORMAT
20016 TAR_OPTIONS="-H posix"
20017 export TAR_OPTIONS
20018 rm -rf *
20019
20020 mkdir dir
20021 mkdir dir/sub
20022 genfile --file dir/file1
20023 genfile --file dir/sub/file2
20024
20025 genfile --run --checkpoint=3 --unlink dir/file1 -- \
20026        tar --blocking-factor=1 --checkpoint=1 --checkpoint-action='sleep=1' \
20027        --checkpoint-action='echo' -c -f archive.tar \
20028        --listed-incremental db -v dir >/dev/null
20029 ) ) >"$at_stdout" 2>"$at_stderr"
20030 fi
20031 at_status=$?
20032 at_failed=false
20033 echo >>"$at_stderr"; $as_echo "tar: dir: Directory is new
20034 tar: dir/sub: Directory is new
20035 tar: dir/file1: File removed before we read it
20036 " | \
20037   $at_diff - "$at_stderr" || at_failed=:
20038 echo stdout:; cat "$at_stdout"
20039 at_func_check_status 1 $at_status "$at_srcdir/filerem01.at:37"
20040
20041 $at_failed && at_func_log_failure
20042 $at_traceon; }
20043
20044
20045
20046
20047 # Timing information:
20048 #
20049 # For -Hgnu the above command line takes about 8 seconds to execute and
20050 # produces:
20051 #
20052 # tar: dir: Directory is new
20053 # tar: dir/sub: Directory is new
20054 # dir/
20055 # tar: Write checkpoint 1
20056 # tar: Write checkpoint 2
20057 # dir/sub/
20058 # tar: Write checkpoint 3
20059 # tar: Write checkpoint 4
20060 # dir/file1
20061 # tar: Write checkpoint 5
20062 # dir/sub/file2
20063 # tar: Write checkpoint 6
20064 # tar: Write checkpoint 7
20065 # tar: Write checkpoint 8
20066 #
20067 # For -Hposix the above command line takes about 14 seconds to execute and
20068 # produces:
20069 #
20070 # ./tar: dir: Directory is new
20071 # ./tar: dir/sub: Directory is new
20072 # dir/
20073 # ./tar: Write checkpoint 1
20074 # ./tar: Write checkpoint 2
20075 # ./tar: Write checkpoint 3
20076 # dir/sub/
20077 # ./tar: Write checkpoint 4
20078 # ./tar: Write checkpoint 5
20079 # ./tar: Write checkpoint 6
20080 # dir/file1
20081 # ./tar: Write checkpoint 7
20082 # ./tar: Write checkpoint 8
20083 # ./tar: Write checkpoint 9
20084 # dir/sub/file2
20085 # ./tar: Write checkpoint 10
20086 # ./tar: Write checkpoint 11
20087 # ./tar: Write checkpoint 12
20088 # ./tar: Write checkpoint 13
20089 # ./tar: Write checkpoint 14
20090
20091
20092   $at_traceoff
20093   $at_times_p && times >"$at_times_file"
20094 ) 5>&1 2>&1 | eval $at_tee_pipe
20095 at_status=`cat "$at_status_file"`
20096 #AT_STOP_45
20097 #AT_START_46
20098 # 46. filerem02.at:24: toplevel file removed (ca. 24 seconds)
20099 at_setup_line='filerem02.at:24'
20100 at_desc="toplevel file removed (ca. 24 seconds)"
20101 $at_quiet $as_echo_n " 46: $at_desc         "
20102 at_xfail=no
20103       test -f $XFAILFILE && at_xfail=yes
20104 echo "#                             -*- compilation -*-" >> "$at_group_log"
20105 (
20106   $as_echo "46. filerem02.at:24: testing ..."
20107   $at_traceon
20108
20109
20110
20111
20112
20113   { $at_traceoff
20114 $as_echo "$at_srcdir/filerem02.at:27:
20115 mkdir gnu
20116 (cd gnu
20117 TEST_TAR_FORMAT=gnu
20118 export TEST_TAR_FORMAT
20119 TAR_OPTIONS=\"-H gnu\"
20120 export TAR_OPTIONS
20121 rm -rf *
20122
20123 mkdir dir
20124 mkdir dir/sub
20125 genfile --file dir/file1
20126 genfile --file dir/sub/file2
20127 mkdir dir2
20128 genfile --file dir2/file1
20129
20130 genfile --run --checkpoint=3 --exec 'rm -rf dir2' -- \\
20131        tar --blocking-factor=1 --checkpoint=1 --checkpoint-action='sleep=1' \\
20132        --checkpoint-action='echo' -c -f archive.tar \\
20133        --listed-incremental db -v --warning=no-new-dir dir dir2 >/dev/null
20134 )"
20135 echo filerem02.at:27 >"$at_check_line_file"
20136
20137 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
20138    false; }; then
20139   ( $at_traceon;
20140 mkdir gnu
20141 (cd gnu
20142 TEST_TAR_FORMAT=gnu
20143 export TEST_TAR_FORMAT
20144 TAR_OPTIONS="-H gnu"
20145 export TAR_OPTIONS
20146 rm -rf *
20147
20148 mkdir dir
20149 mkdir dir/sub
20150 genfile --file dir/file1
20151 genfile --file dir/sub/file2
20152 mkdir dir2
20153 genfile --file dir2/file1
20154
20155 genfile --run --checkpoint=3 --exec 'rm -rf dir2' -- \
20156        tar --blocking-factor=1 --checkpoint=1 --checkpoint-action='sleep=1' \
20157        --checkpoint-action='echo' -c -f archive.tar \
20158        --listed-incremental db -v --warning=no-new-dir dir dir2 >/dev/null
20159 ) ) >"$at_stdout" 2>"$at_stder1"
20160   at_func_filter_trace $?
20161 else
20162   ( :;
20163 mkdir gnu
20164 (cd gnu
20165 TEST_TAR_FORMAT=gnu
20166 export TEST_TAR_FORMAT
20167 TAR_OPTIONS="-H gnu"
20168 export TAR_OPTIONS
20169 rm -rf *
20170
20171 mkdir dir
20172 mkdir dir/sub
20173 genfile --file dir/file1
20174 genfile --file dir/sub/file2
20175 mkdir dir2
20176 genfile --file dir2/file1
20177
20178 genfile --run --checkpoint=3 --exec 'rm -rf dir2' -- \
20179        tar --blocking-factor=1 --checkpoint=1 --checkpoint-action='sleep=1' \
20180        --checkpoint-action='echo' -c -f archive.tar \
20181        --listed-incremental db -v --warning=no-new-dir dir dir2 >/dev/null
20182 ) ) >"$at_stdout" 2>"$at_stderr"
20183 fi
20184 at_status=$?
20185 at_failed=false
20186 echo >>"$at_stderr"; $as_echo "tar: dir2: Cannot stat: No such file or directory
20187 tar: dir2/file1: File removed before we read it
20188 tar: Exiting with failure status due to previous errors
20189 " | \
20190   $at_diff - "$at_stderr" || at_failed=:
20191 echo stdout:; cat "$at_stdout"
20192 at_func_check_status 2 $at_status "$at_srcdir/filerem02.at:27"
20193
20194 $at_failed && at_func_log_failure
20195 $at_traceon; }
20196
20197               { $at_traceoff
20198 $as_echo "$at_srcdir/filerem02.at:27:
20199 mkdir posix
20200 (cd posix
20201 TEST_TAR_FORMAT=posix
20202 export TEST_TAR_FORMAT
20203 TAR_OPTIONS=\"-H posix\"
20204 export TAR_OPTIONS
20205 rm -rf *
20206
20207 mkdir dir
20208 mkdir dir/sub
20209 genfile --file dir/file1
20210 genfile --file dir/sub/file2
20211 mkdir dir2
20212 genfile --file dir2/file1
20213
20214 genfile --run --checkpoint=3 --exec 'rm -rf dir2' -- \\
20215        tar --blocking-factor=1 --checkpoint=1 --checkpoint-action='sleep=1' \\
20216        --checkpoint-action='echo' -c -f archive.tar \\
20217        --listed-incremental db -v --warning=no-new-dir dir dir2 >/dev/null
20218 )"
20219 echo filerem02.at:27 >"$at_check_line_file"
20220
20221 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
20222    false; }; then
20223   ( $at_traceon;
20224 mkdir posix
20225 (cd posix
20226 TEST_TAR_FORMAT=posix
20227 export TEST_TAR_FORMAT
20228 TAR_OPTIONS="-H posix"
20229 export TAR_OPTIONS
20230 rm -rf *
20231
20232 mkdir dir
20233 mkdir dir/sub
20234 genfile --file dir/file1
20235 genfile --file dir/sub/file2
20236 mkdir dir2
20237 genfile --file dir2/file1
20238
20239 genfile --run --checkpoint=3 --exec 'rm -rf dir2' -- \
20240        tar --blocking-factor=1 --checkpoint=1 --checkpoint-action='sleep=1' \
20241        --checkpoint-action='echo' -c -f archive.tar \
20242        --listed-incremental db -v --warning=no-new-dir dir dir2 >/dev/null
20243 ) ) >"$at_stdout" 2>"$at_stder1"
20244   at_func_filter_trace $?
20245 else
20246   ( :;
20247 mkdir posix
20248 (cd posix
20249 TEST_TAR_FORMAT=posix
20250 export TEST_TAR_FORMAT
20251 TAR_OPTIONS="-H posix"
20252 export TAR_OPTIONS
20253 rm -rf *
20254
20255 mkdir dir
20256 mkdir dir/sub
20257 genfile --file dir/file1
20258 genfile --file dir/sub/file2
20259 mkdir dir2
20260 genfile --file dir2/file1
20261
20262 genfile --run --checkpoint=3 --exec 'rm -rf dir2' -- \
20263        tar --blocking-factor=1 --checkpoint=1 --checkpoint-action='sleep=1' \
20264        --checkpoint-action='echo' -c -f archive.tar \
20265        --listed-incremental db -v --warning=no-new-dir dir dir2 >/dev/null
20266 ) ) >"$at_stdout" 2>"$at_stderr"
20267 fi
20268 at_status=$?
20269 at_failed=false
20270 echo >>"$at_stderr"; $as_echo "tar: dir2: Cannot stat: No such file or directory
20271 tar: dir2/file1: File removed before we read it
20272 tar: Exiting with failure status due to previous errors
20273 " | \
20274   $at_diff - "$at_stderr" || at_failed=:
20275 echo stdout:; cat "$at_stdout"
20276 at_func_check_status 2 $at_status "$at_srcdir/filerem02.at:27"
20277
20278 $at_failed && at_func_log_failure
20279 $at_traceon; }
20280
20281
20282
20283
20284 # Timing information: see filerem01.at
20285
20286   $at_traceoff
20287   $at_times_p && times >"$at_times_file"
20288 ) 5>&1 2>&1 | eval $at_tee_pipe
20289 at_status=`cat "$at_status_file"`
20290 #AT_STOP_46
20291 #AT_START_47
20292 # 47. rename01.at:24: renamed dirs in incrementals
20293 at_setup_line='rename01.at:24'
20294 at_desc="renamed dirs in incrementals"
20295 $at_quiet $as_echo_n " 47: $at_desc                   "
20296 at_xfail=no
20297       test -f $XFAILFILE && at_xfail=yes
20298 echo "#                             -*- compilation -*-" >> "$at_group_log"
20299 (
20300   $as_echo "47. rename01.at:24: testing ..."
20301   $at_traceon
20302
20303
20304
20305
20306
20307   { $at_traceoff
20308 $as_echo "$at_srcdir/rename01.at:27:
20309 mkdir gnu
20310 (cd gnu
20311 TEST_TAR_FORMAT=gnu
20312 export TEST_TAR_FORMAT
20313 TAR_OPTIONS=\"-H gnu\"
20314 export TAR_OPTIONS
20315 rm -rf *
20316
20317
20318 test -z "`sort < /dev/null 2>&1`" || exit 77
20319
20320
20321 mkdir foo
20322 genfile --file foo/file1
20323 genfile --file foo/file2
20324 mkdir foo/bar
20325 genfile --file foo/bar/file
20326
20327 echo \"Creating base archive\"
20328 tar -g incr -cf arch.1 -v foo
20329
20330 mv foo/bar foo/baz
20331
20332 echo \"Creating incremental archive\"
20333 tar -g incr -cf arch.2 -v foo
20334
20335 mv foo old
20336
20337 tar xfg arch.1 /dev/null
20338
20339 echo \"Begin directory listing 1\"
20340 find foo | sort
20341 echo \"End directory listing 1\"
20342
20343 tar xfg arch.2 /dev/null
20344 echo Begin directory listing 2
20345 find foo | sort
20346 echo End directory listing 2
20347 )"
20348 echo rename01.at:27 >"$at_check_line_file"
20349
20350 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
20351    false; }; then
20352   ( $at_traceon;
20353 mkdir gnu
20354 (cd gnu
20355 TEST_TAR_FORMAT=gnu
20356 export TEST_TAR_FORMAT
20357 TAR_OPTIONS="-H gnu"
20358 export TAR_OPTIONS
20359 rm -rf *
20360
20361
20362 test -z "`sort < /dev/null 2>&1`" || exit 77
20363
20364
20365 mkdir foo
20366 genfile --file foo/file1
20367 genfile --file foo/file2
20368 mkdir foo/bar
20369 genfile --file foo/bar/file
20370
20371 echo "Creating base archive"
20372 tar -g incr -cf arch.1 -v foo
20373
20374 mv foo/bar foo/baz
20375
20376 echo "Creating incremental archive"
20377 tar -g incr -cf arch.2 -v foo
20378
20379 mv foo old
20380
20381 tar xfg arch.1 /dev/null
20382
20383 echo "Begin directory listing 1"
20384 find foo | sort
20385 echo "End directory listing 1"
20386
20387 tar xfg arch.2 /dev/null
20388 echo Begin directory listing 2
20389 find foo | sort
20390 echo End directory listing 2
20391 ) ) >"$at_stdout" 2>"$at_stder1"
20392   at_func_filter_trace $?
20393 else
20394   ( :;
20395 mkdir gnu
20396 (cd gnu
20397 TEST_TAR_FORMAT=gnu
20398 export TEST_TAR_FORMAT
20399 TAR_OPTIONS="-H gnu"
20400 export TAR_OPTIONS
20401 rm -rf *
20402
20403
20404 test -z "`sort < /dev/null 2>&1`" || exit 77
20405
20406
20407 mkdir foo
20408 genfile --file foo/file1
20409 genfile --file foo/file2
20410 mkdir foo/bar
20411 genfile --file foo/bar/file
20412
20413 echo "Creating base archive"
20414 tar -g incr -cf arch.1 -v foo
20415
20416 mv foo/bar foo/baz
20417
20418 echo "Creating incremental archive"
20419 tar -g incr -cf arch.2 -v foo
20420
20421 mv foo old
20422
20423 tar xfg arch.1 /dev/null
20424
20425 echo "Begin directory listing 1"
20426 find foo | sort
20427 echo "End directory listing 1"
20428
20429 tar xfg arch.2 /dev/null
20430 echo Begin directory listing 2
20431 find foo | sort
20432 echo End directory listing 2
20433 ) ) >"$at_stdout" 2>"$at_stderr"
20434 fi
20435 at_status=$?
20436 at_failed=false
20437 echo >>"$at_stderr"; $as_echo "tar: foo: Directory is new
20438 tar: foo/bar: Directory is new
20439 tar: foo/baz: Directory has been renamed from \`foo/bar'
20440 " | \
20441   $at_diff - "$at_stderr" || at_failed=:
20442 echo >>"$at_stdout"; $as_echo "Creating base archive
20443 foo/
20444 foo/bar/
20445 foo/file1
20446 foo/file2
20447 foo/bar/file
20448 Creating incremental archive
20449 foo/
20450 foo/baz/
20451 Begin directory listing 1
20452 foo
20453 foo/bar
20454 foo/bar/file
20455 foo/file1
20456 foo/file2
20457 End directory listing 1
20458 Begin directory listing 2
20459 foo
20460 foo/baz
20461 foo/baz/file
20462 foo/file1
20463 foo/file2
20464 End directory listing 2
20465 " | \
20466   $at_diff - "$at_stdout" || at_failed=:
20467 at_func_check_status 0 $at_status "$at_srcdir/rename01.at:27"
20468
20469 $at_failed && at_func_log_failure
20470 $at_traceon; }
20471
20472               { $at_traceoff
20473 $as_echo "$at_srcdir/rename01.at:27:
20474 mkdir oldgnu
20475 (cd oldgnu
20476 TEST_TAR_FORMAT=oldgnu
20477 export TEST_TAR_FORMAT
20478 TAR_OPTIONS=\"-H oldgnu\"
20479 export TAR_OPTIONS
20480 rm -rf *
20481
20482
20483 test -z "`sort < /dev/null 2>&1`" || exit 77
20484
20485
20486 mkdir foo
20487 genfile --file foo/file1
20488 genfile --file foo/file2
20489 mkdir foo/bar
20490 genfile --file foo/bar/file
20491
20492 echo \"Creating base archive\"
20493 tar -g incr -cf arch.1 -v foo
20494
20495 mv foo/bar foo/baz
20496
20497 echo \"Creating incremental archive\"
20498 tar -g incr -cf arch.2 -v foo
20499
20500 mv foo old
20501
20502 tar xfg arch.1 /dev/null
20503
20504 echo \"Begin directory listing 1\"
20505 find foo | sort
20506 echo \"End directory listing 1\"
20507
20508 tar xfg arch.2 /dev/null
20509 echo Begin directory listing 2
20510 find foo | sort
20511 echo End directory listing 2
20512 )"
20513 echo rename01.at:27 >"$at_check_line_file"
20514
20515 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
20516    false; }; then
20517   ( $at_traceon;
20518 mkdir oldgnu
20519 (cd oldgnu
20520 TEST_TAR_FORMAT=oldgnu
20521 export TEST_TAR_FORMAT
20522 TAR_OPTIONS="-H oldgnu"
20523 export TAR_OPTIONS
20524 rm -rf *
20525
20526
20527 test -z "`sort < /dev/null 2>&1`" || exit 77
20528
20529
20530 mkdir foo
20531 genfile --file foo/file1
20532 genfile --file foo/file2
20533 mkdir foo/bar
20534 genfile --file foo/bar/file
20535
20536 echo "Creating base archive"
20537 tar -g incr -cf arch.1 -v foo
20538
20539 mv foo/bar foo/baz
20540
20541 echo "Creating incremental archive"
20542 tar -g incr -cf arch.2 -v foo
20543
20544 mv foo old
20545
20546 tar xfg arch.1 /dev/null
20547
20548 echo "Begin directory listing 1"
20549 find foo | sort
20550 echo "End directory listing 1"
20551
20552 tar xfg arch.2 /dev/null
20553 echo Begin directory listing 2
20554 find foo | sort
20555 echo End directory listing 2
20556 ) ) >"$at_stdout" 2>"$at_stder1"
20557   at_func_filter_trace $?
20558 else
20559   ( :;
20560 mkdir oldgnu
20561 (cd oldgnu
20562 TEST_TAR_FORMAT=oldgnu
20563 export TEST_TAR_FORMAT
20564 TAR_OPTIONS="-H oldgnu"
20565 export TAR_OPTIONS
20566 rm -rf *
20567
20568
20569 test -z "`sort < /dev/null 2>&1`" || exit 77
20570
20571
20572 mkdir foo
20573 genfile --file foo/file1
20574 genfile --file foo/file2
20575 mkdir foo/bar
20576 genfile --file foo/bar/file
20577
20578 echo "Creating base archive"
20579 tar -g incr -cf arch.1 -v foo
20580
20581 mv foo/bar foo/baz
20582
20583 echo "Creating incremental archive"
20584 tar -g incr -cf arch.2 -v foo
20585
20586 mv foo old
20587
20588 tar xfg arch.1 /dev/null
20589
20590 echo "Begin directory listing 1"
20591 find foo | sort
20592 echo "End directory listing 1"
20593
20594 tar xfg arch.2 /dev/null
20595 echo Begin directory listing 2
20596 find foo | sort
20597 echo End directory listing 2
20598 ) ) >"$at_stdout" 2>"$at_stderr"
20599 fi
20600 at_status=$?
20601 at_failed=false
20602 echo >>"$at_stderr"; $as_echo "tar: foo: Directory is new
20603 tar: foo/bar: Directory is new
20604 tar: foo/baz: Directory has been renamed from \`foo/bar'
20605 " | \
20606   $at_diff - "$at_stderr" || at_failed=:
20607 echo >>"$at_stdout"; $as_echo "Creating base archive
20608 foo/
20609 foo/bar/
20610 foo/file1
20611 foo/file2
20612 foo/bar/file
20613 Creating incremental archive
20614 foo/
20615 foo/baz/
20616 Begin directory listing 1
20617 foo
20618 foo/bar
20619 foo/bar/file
20620 foo/file1
20621 foo/file2
20622 End directory listing 1
20623 Begin directory listing 2
20624 foo
20625 foo/baz
20626 foo/baz/file
20627 foo/file1
20628 foo/file2
20629 End directory listing 2
20630 " | \
20631   $at_diff - "$at_stdout" || at_failed=:
20632 at_func_check_status 0 $at_status "$at_srcdir/rename01.at:27"
20633
20634 $at_failed && at_func_log_failure
20635 $at_traceon; }
20636
20637               { $at_traceoff
20638 $as_echo "$at_srcdir/rename01.at:27:
20639 mkdir posix
20640 (cd posix
20641 TEST_TAR_FORMAT=posix
20642 export TEST_TAR_FORMAT
20643 TAR_OPTIONS=\"-H posix\"
20644 export TAR_OPTIONS
20645 rm -rf *
20646
20647
20648 test -z "`sort < /dev/null 2>&1`" || exit 77
20649
20650
20651 mkdir foo
20652 genfile --file foo/file1
20653 genfile --file foo/file2
20654 mkdir foo/bar
20655 genfile --file foo/bar/file
20656
20657 echo \"Creating base archive\"
20658 tar -g incr -cf arch.1 -v foo
20659
20660 mv foo/bar foo/baz
20661
20662 echo \"Creating incremental archive\"
20663 tar -g incr -cf arch.2 -v foo
20664
20665 mv foo old
20666
20667 tar xfg arch.1 /dev/null
20668
20669 echo \"Begin directory listing 1\"
20670 find foo | sort
20671 echo \"End directory listing 1\"
20672
20673 tar xfg arch.2 /dev/null
20674 echo Begin directory listing 2
20675 find foo | sort
20676 echo End directory listing 2
20677 )"
20678 echo rename01.at:27 >"$at_check_line_file"
20679
20680 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
20681    false; }; then
20682   ( $at_traceon;
20683 mkdir posix
20684 (cd posix
20685 TEST_TAR_FORMAT=posix
20686 export TEST_TAR_FORMAT
20687 TAR_OPTIONS="-H posix"
20688 export TAR_OPTIONS
20689 rm -rf *
20690
20691
20692 test -z "`sort < /dev/null 2>&1`" || exit 77
20693
20694
20695 mkdir foo
20696 genfile --file foo/file1
20697 genfile --file foo/file2
20698 mkdir foo/bar
20699 genfile --file foo/bar/file
20700
20701 echo "Creating base archive"
20702 tar -g incr -cf arch.1 -v foo
20703
20704 mv foo/bar foo/baz
20705
20706 echo "Creating incremental archive"
20707 tar -g incr -cf arch.2 -v foo
20708
20709 mv foo old
20710
20711 tar xfg arch.1 /dev/null
20712
20713 echo "Begin directory listing 1"
20714 find foo | sort
20715 echo "End directory listing 1"
20716
20717 tar xfg arch.2 /dev/null
20718 echo Begin directory listing 2
20719 find foo | sort
20720 echo End directory listing 2
20721 ) ) >"$at_stdout" 2>"$at_stder1"
20722   at_func_filter_trace $?
20723 else
20724   ( :;
20725 mkdir posix
20726 (cd posix
20727 TEST_TAR_FORMAT=posix
20728 export TEST_TAR_FORMAT
20729 TAR_OPTIONS="-H posix"
20730 export TAR_OPTIONS
20731 rm -rf *
20732
20733
20734 test -z "`sort < /dev/null 2>&1`" || exit 77
20735
20736
20737 mkdir foo
20738 genfile --file foo/file1
20739 genfile --file foo/file2
20740 mkdir foo/bar
20741 genfile --file foo/bar/file
20742
20743 echo "Creating base archive"
20744 tar -g incr -cf arch.1 -v foo
20745
20746 mv foo/bar foo/baz
20747
20748 echo "Creating incremental archive"
20749 tar -g incr -cf arch.2 -v foo
20750
20751 mv foo old
20752
20753 tar xfg arch.1 /dev/null
20754
20755 echo "Begin directory listing 1"
20756 find foo | sort
20757 echo "End directory listing 1"
20758
20759 tar xfg arch.2 /dev/null
20760 echo Begin directory listing 2
20761 find foo | sort
20762 echo End directory listing 2
20763 ) ) >"$at_stdout" 2>"$at_stderr"
20764 fi
20765 at_status=$?
20766 at_failed=false
20767 echo >>"$at_stderr"; $as_echo "tar: foo: Directory is new
20768 tar: foo/bar: Directory is new
20769 tar: foo/baz: Directory has been renamed from \`foo/bar'
20770 " | \
20771   $at_diff - "$at_stderr" || at_failed=:
20772 echo >>"$at_stdout"; $as_echo "Creating base archive
20773 foo/
20774 foo/bar/
20775 foo/file1
20776 foo/file2
20777 foo/bar/file
20778 Creating incremental archive
20779 foo/
20780 foo/baz/
20781 Begin directory listing 1
20782 foo
20783 foo/bar
20784 foo/bar/file
20785 foo/file1
20786 foo/file2
20787 End directory listing 1
20788 Begin directory listing 2
20789 foo
20790 foo/baz
20791 foo/baz/file
20792 foo/file1
20793 foo/file2
20794 End directory listing 2
20795 " | \
20796   $at_diff - "$at_stdout" || at_failed=:
20797 at_func_check_status 0 $at_status "$at_srcdir/rename01.at:27"
20798
20799 $at_failed && at_func_log_failure
20800 $at_traceon; }
20801
20802
20803
20804
20805   $at_traceoff
20806   $at_times_p && times >"$at_times_file"
20807 ) 5>&1 2>&1 | eval $at_tee_pipe
20808 at_status=`cat "$at_status_file"`
20809 #AT_STOP_47
20810 #AT_START_48
20811 # 48. rename02.at:24: move between hierarchies
20812 at_setup_line='rename02.at:24'
20813 at_desc="move between hierarchies"
20814 $at_quiet $as_echo_n " 48: $at_desc                       "
20815 at_xfail=no
20816       test -f $XFAILFILE && at_xfail=yes
20817 echo "#                             -*- compilation -*-" >> "$at_group_log"
20818 (
20819   $as_echo "48. rename02.at:24: testing ..."
20820   $at_traceon
20821
20822
20823
20824
20825
20826   { $at_traceoff
20827 $as_echo "$at_srcdir/rename02.at:27:
20828 mkdir gnu
20829 (cd gnu
20830 TEST_TAR_FORMAT=gnu
20831 export TEST_TAR_FORMAT
20832 TAR_OPTIONS=\"-H gnu\"
20833 export TAR_OPTIONS
20834 rm -rf *
20835
20836
20837 test -z "`sort < /dev/null 2>&1`" || exit 77
20838
20839 mkdir foo
20840 genfile --file foo/file1
20841 genfile --file foo/file2
20842 mkdir foo/bar
20843 genfile --file foo/bar/file.r
20844 mkdir foo/bar/baz
20845 genfile --file foo/bar/baz/file.z
20846
20847 sleep 1
20848
20849 echo \"Creating base archive\"
20850 tar -g incr -cf arch.1 -v foo
20851
20852 mv foo/bar/baz foo
20853
20854 echo \"Creating incremental archive\"
20855 tar -g incr -cf arch.2 -v foo
20856
20857 mv foo old
20858
20859 tar xfg arch.1 /dev/null 2>tmperr
20860 sort tmperr >&2
20861
20862 echo \"Begin directory listing 1\"
20863 find foo | sort
20864 echo \"End directory listing 1\"
20865
20866 tar xfgv arch.2 /dev/null
20867 echo Begin directory listing 2
20868 find foo | sort
20869 echo End directory listing 2
20870 )"
20871 echo rename02.at:27 >"$at_check_line_file"
20872
20873 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
20874    false; }; then
20875   ( $at_traceon;
20876 mkdir gnu
20877 (cd gnu
20878 TEST_TAR_FORMAT=gnu
20879 export TEST_TAR_FORMAT
20880 TAR_OPTIONS="-H gnu"
20881 export TAR_OPTIONS
20882 rm -rf *
20883
20884
20885 test -z "`sort < /dev/null 2>&1`" || exit 77
20886
20887 mkdir foo
20888 genfile --file foo/file1
20889 genfile --file foo/file2
20890 mkdir foo/bar
20891 genfile --file foo/bar/file.r
20892 mkdir foo/bar/baz
20893 genfile --file foo/bar/baz/file.z
20894
20895 sleep 1
20896
20897 echo "Creating base archive"
20898 tar -g incr -cf arch.1 -v foo
20899
20900 mv foo/bar/baz foo
20901
20902 echo "Creating incremental archive"
20903 tar -g incr -cf arch.2 -v foo
20904
20905 mv foo old
20906
20907 tar xfg arch.1 /dev/null 2>tmperr
20908 sort tmperr >&2
20909
20910 echo "Begin directory listing 1"
20911 find foo | sort
20912 echo "End directory listing 1"
20913
20914 tar xfgv arch.2 /dev/null
20915 echo Begin directory listing 2
20916 find foo | sort
20917 echo End directory listing 2
20918 ) ) >"$at_stdout" 2>"$at_stder1"
20919   at_func_filter_trace $?
20920 else
20921   ( :;
20922 mkdir gnu
20923 (cd gnu
20924 TEST_TAR_FORMAT=gnu
20925 export TEST_TAR_FORMAT
20926 TAR_OPTIONS="-H gnu"
20927 export TAR_OPTIONS
20928 rm -rf *
20929
20930
20931 test -z "`sort < /dev/null 2>&1`" || exit 77
20932
20933 mkdir foo
20934 genfile --file foo/file1
20935 genfile --file foo/file2
20936 mkdir foo/bar
20937 genfile --file foo/bar/file.r
20938 mkdir foo/bar/baz
20939 genfile --file foo/bar/baz/file.z
20940
20941 sleep 1
20942
20943 echo "Creating base archive"
20944 tar -g incr -cf arch.1 -v foo
20945
20946 mv foo/bar/baz foo
20947
20948 echo "Creating incremental archive"
20949 tar -g incr -cf arch.2 -v foo
20950
20951 mv foo old
20952
20953 tar xfg arch.1 /dev/null 2>tmperr
20954 sort tmperr >&2
20955
20956 echo "Begin directory listing 1"
20957 find foo | sort
20958 echo "End directory listing 1"
20959
20960 tar xfgv arch.2 /dev/null
20961 echo Begin directory listing 2
20962 find foo | sort
20963 echo End directory listing 2
20964 ) ) >"$at_stdout" 2>"$at_stderr"
20965 fi
20966 at_status=$?
20967 at_failed=false
20968 echo >>"$at_stderr"; $as_echo "tar: foo: Directory is new
20969 tar: foo/bar: Directory is new
20970 tar: foo/bar/baz: Directory is new
20971 tar: foo/baz: Directory has been renamed from \`foo/bar/baz'
20972 " | \
20973   $at_diff - "$at_stderr" || at_failed=:
20974 echo >>"$at_stdout"; $as_echo "Creating base archive
20975 foo/
20976 foo/bar/
20977 foo/bar/baz/
20978 foo/file1
20979 foo/file2
20980 foo/bar/file.r
20981 foo/bar/baz/file.z
20982 Creating incremental archive
20983 foo/
20984 foo/bar/
20985 foo/baz/
20986 Begin directory listing 1
20987 foo
20988 foo/bar
20989 foo/bar/baz
20990 foo/bar/baz/file.z
20991 foo/bar/file.r
20992 foo/file1
20993 foo/file2
20994 End directory listing 1
20995 foo/
20996 foo/bar/
20997 foo/baz/
20998 Begin directory listing 2
20999 foo
21000 foo/bar
21001 foo/bar/file.r
21002 foo/baz
21003 foo/baz/file.z
21004 foo/file1
21005 foo/file2
21006 End directory listing 2
21007 " | \
21008   $at_diff - "$at_stdout" || at_failed=:
21009 at_func_check_status 0 $at_status "$at_srcdir/rename02.at:27"
21010
21011 $at_failed && at_func_log_failure
21012 $at_traceon; }
21013
21014               { $at_traceoff
21015 $as_echo "$at_srcdir/rename02.at:27:
21016 mkdir oldgnu
21017 (cd oldgnu
21018 TEST_TAR_FORMAT=oldgnu
21019 export TEST_TAR_FORMAT
21020 TAR_OPTIONS=\"-H oldgnu\"
21021 export TAR_OPTIONS
21022 rm -rf *
21023
21024
21025 test -z "`sort < /dev/null 2>&1`" || exit 77
21026
21027 mkdir foo
21028 genfile --file foo/file1
21029 genfile --file foo/file2
21030 mkdir foo/bar
21031 genfile --file foo/bar/file.r
21032 mkdir foo/bar/baz
21033 genfile --file foo/bar/baz/file.z
21034
21035 sleep 1
21036
21037 echo \"Creating base archive\"
21038 tar -g incr -cf arch.1 -v foo
21039
21040 mv foo/bar/baz foo
21041
21042 echo \"Creating incremental archive\"
21043 tar -g incr -cf arch.2 -v foo
21044
21045 mv foo old
21046
21047 tar xfg arch.1 /dev/null 2>tmperr
21048 sort tmperr >&2
21049
21050 echo \"Begin directory listing 1\"
21051 find foo | sort
21052 echo \"End directory listing 1\"
21053
21054 tar xfgv arch.2 /dev/null
21055 echo Begin directory listing 2
21056 find foo | sort
21057 echo End directory listing 2
21058 )"
21059 echo rename02.at:27 >"$at_check_line_file"
21060
21061 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
21062    false; }; then
21063   ( $at_traceon;
21064 mkdir oldgnu
21065 (cd oldgnu
21066 TEST_TAR_FORMAT=oldgnu
21067 export TEST_TAR_FORMAT
21068 TAR_OPTIONS="-H oldgnu"
21069 export TAR_OPTIONS
21070 rm -rf *
21071
21072
21073 test -z "`sort < /dev/null 2>&1`" || exit 77
21074
21075 mkdir foo
21076 genfile --file foo/file1
21077 genfile --file foo/file2
21078 mkdir foo/bar
21079 genfile --file foo/bar/file.r
21080 mkdir foo/bar/baz
21081 genfile --file foo/bar/baz/file.z
21082
21083 sleep 1
21084
21085 echo "Creating base archive"
21086 tar -g incr -cf arch.1 -v foo
21087
21088 mv foo/bar/baz foo
21089
21090 echo "Creating incremental archive"
21091 tar -g incr -cf arch.2 -v foo
21092
21093 mv foo old
21094
21095 tar xfg arch.1 /dev/null 2>tmperr
21096 sort tmperr >&2
21097
21098 echo "Begin directory listing 1"
21099 find foo | sort
21100 echo "End directory listing 1"
21101
21102 tar xfgv arch.2 /dev/null
21103 echo Begin directory listing 2
21104 find foo | sort
21105 echo End directory listing 2
21106 ) ) >"$at_stdout" 2>"$at_stder1"
21107   at_func_filter_trace $?
21108 else
21109   ( :;
21110 mkdir oldgnu
21111 (cd oldgnu
21112 TEST_TAR_FORMAT=oldgnu
21113 export TEST_TAR_FORMAT
21114 TAR_OPTIONS="-H oldgnu"
21115 export TAR_OPTIONS
21116 rm -rf *
21117
21118
21119 test -z "`sort < /dev/null 2>&1`" || exit 77
21120
21121 mkdir foo
21122 genfile --file foo/file1
21123 genfile --file foo/file2
21124 mkdir foo/bar
21125 genfile --file foo/bar/file.r
21126 mkdir foo/bar/baz
21127 genfile --file foo/bar/baz/file.z
21128
21129 sleep 1
21130
21131 echo "Creating base archive"
21132 tar -g incr -cf arch.1 -v foo
21133
21134 mv foo/bar/baz foo
21135
21136 echo "Creating incremental archive"
21137 tar -g incr -cf arch.2 -v foo
21138
21139 mv foo old
21140
21141 tar xfg arch.1 /dev/null 2>tmperr
21142 sort tmperr >&2
21143
21144 echo "Begin directory listing 1"
21145 find foo | sort
21146 echo "End directory listing 1"
21147
21148 tar xfgv arch.2 /dev/null
21149 echo Begin directory listing 2
21150 find foo | sort
21151 echo End directory listing 2
21152 ) ) >"$at_stdout" 2>"$at_stderr"
21153 fi
21154 at_status=$?
21155 at_failed=false
21156 echo >>"$at_stderr"; $as_echo "tar: foo: Directory is new
21157 tar: foo/bar: Directory is new
21158 tar: foo/bar/baz: Directory is new
21159 tar: foo/baz: Directory has been renamed from \`foo/bar/baz'
21160 " | \
21161   $at_diff - "$at_stderr" || at_failed=:
21162 echo >>"$at_stdout"; $as_echo "Creating base archive
21163 foo/
21164 foo/bar/
21165 foo/bar/baz/
21166 foo/file1
21167 foo/file2
21168 foo/bar/file.r
21169 foo/bar/baz/file.z
21170 Creating incremental archive
21171 foo/
21172 foo/bar/
21173 foo/baz/
21174 Begin directory listing 1
21175 foo
21176 foo/bar
21177 foo/bar/baz
21178 foo/bar/baz/file.z
21179 foo/bar/file.r
21180 foo/file1
21181 foo/file2
21182 End directory listing 1
21183 foo/
21184 foo/bar/
21185 foo/baz/
21186 Begin directory listing 2
21187 foo
21188 foo/bar
21189 foo/bar/file.r
21190 foo/baz
21191 foo/baz/file.z
21192 foo/file1
21193 foo/file2
21194 End directory listing 2
21195 " | \
21196   $at_diff - "$at_stdout" || at_failed=:
21197 at_func_check_status 0 $at_status "$at_srcdir/rename02.at:27"
21198
21199 $at_failed && at_func_log_failure
21200 $at_traceon; }
21201
21202               { $at_traceoff
21203 $as_echo "$at_srcdir/rename02.at:27:
21204 mkdir posix
21205 (cd posix
21206 TEST_TAR_FORMAT=posix
21207 export TEST_TAR_FORMAT
21208 TAR_OPTIONS=\"-H posix\"
21209 export TAR_OPTIONS
21210 rm -rf *
21211
21212
21213 test -z "`sort < /dev/null 2>&1`" || exit 77
21214
21215 mkdir foo
21216 genfile --file foo/file1
21217 genfile --file foo/file2
21218 mkdir foo/bar
21219 genfile --file foo/bar/file.r
21220 mkdir foo/bar/baz
21221 genfile --file foo/bar/baz/file.z
21222
21223 sleep 1
21224
21225 echo \"Creating base archive\"
21226 tar -g incr -cf arch.1 -v foo
21227
21228 mv foo/bar/baz foo
21229
21230 echo \"Creating incremental archive\"
21231 tar -g incr -cf arch.2 -v foo
21232
21233 mv foo old
21234
21235 tar xfg arch.1 /dev/null 2>tmperr
21236 sort tmperr >&2
21237
21238 echo \"Begin directory listing 1\"
21239 find foo | sort
21240 echo \"End directory listing 1\"
21241
21242 tar xfgv arch.2 /dev/null
21243 echo Begin directory listing 2
21244 find foo | sort
21245 echo End directory listing 2
21246 )"
21247 echo rename02.at:27 >"$at_check_line_file"
21248
21249 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
21250    false; }; then
21251   ( $at_traceon;
21252 mkdir posix
21253 (cd posix
21254 TEST_TAR_FORMAT=posix
21255 export TEST_TAR_FORMAT
21256 TAR_OPTIONS="-H posix"
21257 export TAR_OPTIONS
21258 rm -rf *
21259
21260
21261 test -z "`sort < /dev/null 2>&1`" || exit 77
21262
21263 mkdir foo
21264 genfile --file foo/file1
21265 genfile --file foo/file2
21266 mkdir foo/bar
21267 genfile --file foo/bar/file.r
21268 mkdir foo/bar/baz
21269 genfile --file foo/bar/baz/file.z
21270
21271 sleep 1
21272
21273 echo "Creating base archive"
21274 tar -g incr -cf arch.1 -v foo
21275
21276 mv foo/bar/baz foo
21277
21278 echo "Creating incremental archive"
21279 tar -g incr -cf arch.2 -v foo
21280
21281 mv foo old
21282
21283 tar xfg arch.1 /dev/null 2>tmperr
21284 sort tmperr >&2
21285
21286 echo "Begin directory listing 1"
21287 find foo | sort
21288 echo "End directory listing 1"
21289
21290 tar xfgv arch.2 /dev/null
21291 echo Begin directory listing 2
21292 find foo | sort
21293 echo End directory listing 2
21294 ) ) >"$at_stdout" 2>"$at_stder1"
21295   at_func_filter_trace $?
21296 else
21297   ( :;
21298 mkdir posix
21299 (cd posix
21300 TEST_TAR_FORMAT=posix
21301 export TEST_TAR_FORMAT
21302 TAR_OPTIONS="-H posix"
21303 export TAR_OPTIONS
21304 rm -rf *
21305
21306
21307 test -z "`sort < /dev/null 2>&1`" || exit 77
21308
21309 mkdir foo
21310 genfile --file foo/file1
21311 genfile --file foo/file2
21312 mkdir foo/bar
21313 genfile --file foo/bar/file.r
21314 mkdir foo/bar/baz
21315 genfile --file foo/bar/baz/file.z
21316
21317 sleep 1
21318
21319 echo "Creating base archive"
21320 tar -g incr -cf arch.1 -v foo
21321
21322 mv foo/bar/baz foo
21323
21324 echo "Creating incremental archive"
21325 tar -g incr -cf arch.2 -v foo
21326
21327 mv foo old
21328
21329 tar xfg arch.1 /dev/null 2>tmperr
21330 sort tmperr >&2
21331
21332 echo "Begin directory listing 1"
21333 find foo | sort
21334 echo "End directory listing 1"
21335
21336 tar xfgv arch.2 /dev/null
21337 echo Begin directory listing 2
21338 find foo | sort
21339 echo End directory listing 2
21340 ) ) >"$at_stdout" 2>"$at_stderr"
21341 fi
21342 at_status=$?
21343 at_failed=false
21344 echo >>"$at_stderr"; $as_echo "tar: foo: Directory is new
21345 tar: foo/bar: Directory is new
21346 tar: foo/bar/baz: Directory is new
21347 tar: foo/baz: Directory has been renamed from \`foo/bar/baz'
21348 " | \
21349   $at_diff - "$at_stderr" || at_failed=:
21350 echo >>"$at_stdout"; $as_echo "Creating base archive
21351 foo/
21352 foo/bar/
21353 foo/bar/baz/
21354 foo/file1
21355 foo/file2
21356 foo/bar/file.r
21357 foo/bar/baz/file.z
21358 Creating incremental archive
21359 foo/
21360 foo/bar/
21361 foo/baz/
21362 Begin directory listing 1
21363 foo
21364 foo/bar
21365 foo/bar/baz
21366 foo/bar/baz/file.z
21367 foo/bar/file.r
21368 foo/file1
21369 foo/file2
21370 End directory listing 1
21371 foo/
21372 foo/bar/
21373 foo/baz/
21374 Begin directory listing 2
21375 foo
21376 foo/bar
21377 foo/bar/file.r
21378 foo/baz
21379 foo/baz/file.z
21380 foo/file1
21381 foo/file2
21382 End directory listing 2
21383 " | \
21384   $at_diff - "$at_stdout" || at_failed=:
21385 at_func_check_status 0 $at_status "$at_srcdir/rename02.at:27"
21386
21387 $at_failed && at_func_log_failure
21388 $at_traceon; }
21389
21390
21391
21392
21393   $at_traceoff
21394   $at_times_p && times >"$at_times_file"
21395 ) 5>&1 2>&1 | eval $at_tee_pipe
21396 at_status=`cat "$at_status_file"`
21397 #AT_STOP_48
21398 #AT_START_49
21399 # 49. rename03.at:23: cyclic renames
21400 at_setup_line='rename03.at:23'
21401 at_desc="cyclic renames"
21402 $at_quiet $as_echo_n " 49: $at_desc                                 "
21403 at_xfail=no
21404       test -f $XFAILFILE && at_xfail=yes
21405 echo "#                             -*- compilation -*-" >> "$at_group_log"
21406 (
21407   $as_echo "49. rename03.at:23: testing ..."
21408   $at_traceon
21409
21410
21411
21412
21413
21414   { $at_traceoff
21415 $as_echo "$at_srcdir/rename03.at:26:
21416 mkdir gnu
21417 (cd gnu
21418 TEST_TAR_FORMAT=gnu
21419 export TEST_TAR_FORMAT
21420 TAR_OPTIONS=\"-H gnu\"
21421 export TAR_OPTIONS
21422 rm -rf *
21423
21424
21425 test -z "`sort < /dev/null 2>&1`" || exit 77
21426
21427
21428 mkdir foo
21429 genfile --file foo/file1
21430 genfile --file foo/file2
21431
21432 mkdir foo/a
21433 genfile --file foo/a/filea
21434
21435 mkdir foo/b
21436 genfile --file foo/b/fileb
21437
21438 mkdir foo/c
21439 genfile --file foo/c/filec
21440
21441 sleep 1
21442
21443 echo \"First dump\"
21444 echo \"First dump\">&2
21445 tar -g incr -cf arch.1 -v foo 2>tmperr
21446 sort tmperr >&2
21447
21448 # Shuffle directories:
21449 (cd foo
21450 mv a \$\$
21451 mv c a
21452 mv b c
21453 mv \$\$ b)
21454
21455 echo \"Second dump\"
21456 echo \"Second dump\" >&2
21457 tar -g incr -cf arch.2 -v foo 2>tmperr
21458 sort tmperr >&2
21459
21460 tar xfg arch.1 /dev/null
21461
21462 echo \"Begin directory listing 1\"
21463 find foo | sort
21464 echo \"End directory listing 1\"
21465
21466 tar xfgv arch.2 /dev/null
21467 echo Begin directory listing 2
21468 find foo | sort
21469 echo End directory listing 2
21470 )"
21471 echo rename03.at:26 >"$at_check_line_file"
21472
21473 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
21474    false; }; then
21475   ( $at_traceon;
21476 mkdir gnu
21477 (cd gnu
21478 TEST_TAR_FORMAT=gnu
21479 export TEST_TAR_FORMAT
21480 TAR_OPTIONS="-H gnu"
21481 export TAR_OPTIONS
21482 rm -rf *
21483
21484
21485 test -z "`sort < /dev/null 2>&1`" || exit 77
21486
21487
21488 mkdir foo
21489 genfile --file foo/file1
21490 genfile --file foo/file2
21491
21492 mkdir foo/a
21493 genfile --file foo/a/filea
21494
21495 mkdir foo/b
21496 genfile --file foo/b/fileb
21497
21498 mkdir foo/c
21499 genfile --file foo/c/filec
21500
21501 sleep 1
21502
21503 echo "First dump"
21504 echo "First dump">&2
21505 tar -g incr -cf arch.1 -v foo 2>tmperr
21506 sort tmperr >&2
21507
21508 # Shuffle directories:
21509 (cd foo
21510 mv a $$
21511 mv c a
21512 mv b c
21513 mv $$ b)
21514
21515 echo "Second dump"
21516 echo "Second dump" >&2
21517 tar -g incr -cf arch.2 -v foo 2>tmperr
21518 sort tmperr >&2
21519
21520 tar xfg arch.1 /dev/null
21521
21522 echo "Begin directory listing 1"
21523 find foo | sort
21524 echo "End directory listing 1"
21525
21526 tar xfgv arch.2 /dev/null
21527 echo Begin directory listing 2
21528 find foo | sort
21529 echo End directory listing 2
21530 ) ) >"$at_stdout" 2>"$at_stder1"
21531   at_func_filter_trace $?
21532 else
21533   ( :;
21534 mkdir gnu
21535 (cd gnu
21536 TEST_TAR_FORMAT=gnu
21537 export TEST_TAR_FORMAT
21538 TAR_OPTIONS="-H gnu"
21539 export TAR_OPTIONS
21540 rm -rf *
21541
21542
21543 test -z "`sort < /dev/null 2>&1`" || exit 77
21544
21545
21546 mkdir foo
21547 genfile --file foo/file1
21548 genfile --file foo/file2
21549
21550 mkdir foo/a
21551 genfile --file foo/a/filea
21552
21553 mkdir foo/b
21554 genfile --file foo/b/fileb
21555
21556 mkdir foo/c
21557 genfile --file foo/c/filec
21558
21559 sleep 1
21560
21561 echo "First dump"
21562 echo "First dump">&2
21563 tar -g incr -cf arch.1 -v foo 2>tmperr
21564 sort tmperr >&2
21565
21566 # Shuffle directories:
21567 (cd foo
21568 mv a $$
21569 mv c a
21570 mv b c
21571 mv $$ b)
21572
21573 echo "Second dump"
21574 echo "Second dump" >&2
21575 tar -g incr -cf arch.2 -v foo 2>tmperr
21576 sort tmperr >&2
21577
21578 tar xfg arch.1 /dev/null
21579
21580 echo "Begin directory listing 1"
21581 find foo | sort
21582 echo "End directory listing 1"
21583
21584 tar xfgv arch.2 /dev/null
21585 echo Begin directory listing 2
21586 find foo | sort
21587 echo End directory listing 2
21588 ) ) >"$at_stdout" 2>"$at_stderr"
21589 fi
21590 at_status=$?
21591 at_failed=false
21592 echo >>"$at_stderr"; $as_echo "First dump
21593 tar: foo/a: Directory is new
21594 tar: foo/b: Directory is new
21595 tar: foo/c: Directory is new
21596 tar: foo: Directory is new
21597 Second dump
21598 tar: foo/a: Directory has been renamed from \`foo/c'
21599 tar: foo/b: Directory has been renamed from \`foo/a'
21600 tar: foo/c: Directory has been renamed from \`foo/b'
21601 " | \
21602   $at_diff - "$at_stderr" || at_failed=:
21603 echo >>"$at_stdout"; $as_echo "First dump
21604 foo/
21605 foo/a/
21606 foo/b/
21607 foo/c/
21608 foo/file1
21609 foo/file2
21610 foo/a/filea
21611 foo/b/fileb
21612 foo/c/filec
21613 Second dump
21614 foo/
21615 foo/a/
21616 foo/b/
21617 foo/c/
21618 Begin directory listing 1
21619 foo
21620 foo/a
21621 foo/a/filea
21622 foo/b
21623 foo/b/fileb
21624 foo/c
21625 foo/c/filec
21626 foo/file1
21627 foo/file2
21628 End directory listing 1
21629 foo/
21630 foo/a/
21631 foo/b/
21632 foo/c/
21633 Begin directory listing 2
21634 foo
21635 foo/a
21636 foo/a/filec
21637 foo/b
21638 foo/b/filea
21639 foo/c
21640 foo/c/fileb
21641 foo/file1
21642 foo/file2
21643 End directory listing 2
21644 " | \
21645   $at_diff - "$at_stdout" || at_failed=:
21646 at_func_check_status 0 $at_status "$at_srcdir/rename03.at:26"
21647
21648 $at_failed && at_func_log_failure
21649 $at_traceon; }
21650
21651               { $at_traceoff
21652 $as_echo "$at_srcdir/rename03.at:26:
21653 mkdir oldgnu
21654 (cd oldgnu
21655 TEST_TAR_FORMAT=oldgnu
21656 export TEST_TAR_FORMAT
21657 TAR_OPTIONS=\"-H oldgnu\"
21658 export TAR_OPTIONS
21659 rm -rf *
21660
21661
21662 test -z "`sort < /dev/null 2>&1`" || exit 77
21663
21664
21665 mkdir foo
21666 genfile --file foo/file1
21667 genfile --file foo/file2
21668
21669 mkdir foo/a
21670 genfile --file foo/a/filea
21671
21672 mkdir foo/b
21673 genfile --file foo/b/fileb
21674
21675 mkdir foo/c
21676 genfile --file foo/c/filec
21677
21678 sleep 1
21679
21680 echo \"First dump\"
21681 echo \"First dump\">&2
21682 tar -g incr -cf arch.1 -v foo 2>tmperr
21683 sort tmperr >&2
21684
21685 # Shuffle directories:
21686 (cd foo
21687 mv a \$\$
21688 mv c a
21689 mv b c
21690 mv \$\$ b)
21691
21692 echo \"Second dump\"
21693 echo \"Second dump\" >&2
21694 tar -g incr -cf arch.2 -v foo 2>tmperr
21695 sort tmperr >&2
21696
21697 tar xfg arch.1 /dev/null
21698
21699 echo \"Begin directory listing 1\"
21700 find foo | sort
21701 echo \"End directory listing 1\"
21702
21703 tar xfgv arch.2 /dev/null
21704 echo Begin directory listing 2
21705 find foo | sort
21706 echo End directory listing 2
21707 )"
21708 echo rename03.at:26 >"$at_check_line_file"
21709
21710 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
21711    false; }; then
21712   ( $at_traceon;
21713 mkdir oldgnu
21714 (cd oldgnu
21715 TEST_TAR_FORMAT=oldgnu
21716 export TEST_TAR_FORMAT
21717 TAR_OPTIONS="-H oldgnu"
21718 export TAR_OPTIONS
21719 rm -rf *
21720
21721
21722 test -z "`sort < /dev/null 2>&1`" || exit 77
21723
21724
21725 mkdir foo
21726 genfile --file foo/file1
21727 genfile --file foo/file2
21728
21729 mkdir foo/a
21730 genfile --file foo/a/filea
21731
21732 mkdir foo/b
21733 genfile --file foo/b/fileb
21734
21735 mkdir foo/c
21736 genfile --file foo/c/filec
21737
21738 sleep 1
21739
21740 echo "First dump"
21741 echo "First dump">&2
21742 tar -g incr -cf arch.1 -v foo 2>tmperr
21743 sort tmperr >&2
21744
21745 # Shuffle directories:
21746 (cd foo
21747 mv a $$
21748 mv c a
21749 mv b c
21750 mv $$ b)
21751
21752 echo "Second dump"
21753 echo "Second dump" >&2
21754 tar -g incr -cf arch.2 -v foo 2>tmperr
21755 sort tmperr >&2
21756
21757 tar xfg arch.1 /dev/null
21758
21759 echo "Begin directory listing 1"
21760 find foo | sort
21761 echo "End directory listing 1"
21762
21763 tar xfgv arch.2 /dev/null
21764 echo Begin directory listing 2
21765 find foo | sort
21766 echo End directory listing 2
21767 ) ) >"$at_stdout" 2>"$at_stder1"
21768   at_func_filter_trace $?
21769 else
21770   ( :;
21771 mkdir oldgnu
21772 (cd oldgnu
21773 TEST_TAR_FORMAT=oldgnu
21774 export TEST_TAR_FORMAT
21775 TAR_OPTIONS="-H oldgnu"
21776 export TAR_OPTIONS
21777 rm -rf *
21778
21779
21780 test -z "`sort < /dev/null 2>&1`" || exit 77
21781
21782
21783 mkdir foo
21784 genfile --file foo/file1
21785 genfile --file foo/file2
21786
21787 mkdir foo/a
21788 genfile --file foo/a/filea
21789
21790 mkdir foo/b
21791 genfile --file foo/b/fileb
21792
21793 mkdir foo/c
21794 genfile --file foo/c/filec
21795
21796 sleep 1
21797
21798 echo "First dump"
21799 echo "First dump">&2
21800 tar -g incr -cf arch.1 -v foo 2>tmperr
21801 sort tmperr >&2
21802
21803 # Shuffle directories:
21804 (cd foo
21805 mv a $$
21806 mv c a
21807 mv b c
21808 mv $$ b)
21809
21810 echo "Second dump"
21811 echo "Second dump" >&2
21812 tar -g incr -cf arch.2 -v foo 2>tmperr
21813 sort tmperr >&2
21814
21815 tar xfg arch.1 /dev/null
21816
21817 echo "Begin directory listing 1"
21818 find foo | sort
21819 echo "End directory listing 1"
21820
21821 tar xfgv arch.2 /dev/null
21822 echo Begin directory listing 2
21823 find foo | sort
21824 echo End directory listing 2
21825 ) ) >"$at_stdout" 2>"$at_stderr"
21826 fi
21827 at_status=$?
21828 at_failed=false
21829 echo >>"$at_stderr"; $as_echo "First dump
21830 tar: foo/a: Directory is new
21831 tar: foo/b: Directory is new
21832 tar: foo/c: Directory is new
21833 tar: foo: Directory is new
21834 Second dump
21835 tar: foo/a: Directory has been renamed from \`foo/c'
21836 tar: foo/b: Directory has been renamed from \`foo/a'
21837 tar: foo/c: Directory has been renamed from \`foo/b'
21838 " | \
21839   $at_diff - "$at_stderr" || at_failed=:
21840 echo >>"$at_stdout"; $as_echo "First dump
21841 foo/
21842 foo/a/
21843 foo/b/
21844 foo/c/
21845 foo/file1
21846 foo/file2
21847 foo/a/filea
21848 foo/b/fileb
21849 foo/c/filec
21850 Second dump
21851 foo/
21852 foo/a/
21853 foo/b/
21854 foo/c/
21855 Begin directory listing 1
21856 foo
21857 foo/a
21858 foo/a/filea
21859 foo/b
21860 foo/b/fileb
21861 foo/c
21862 foo/c/filec
21863 foo/file1
21864 foo/file2
21865 End directory listing 1
21866 foo/
21867 foo/a/
21868 foo/b/
21869 foo/c/
21870 Begin directory listing 2
21871 foo
21872 foo/a
21873 foo/a/filec
21874 foo/b
21875 foo/b/filea
21876 foo/c
21877 foo/c/fileb
21878 foo/file1
21879 foo/file2
21880 End directory listing 2
21881 " | \
21882   $at_diff - "$at_stdout" || at_failed=:
21883 at_func_check_status 0 $at_status "$at_srcdir/rename03.at:26"
21884
21885 $at_failed && at_func_log_failure
21886 $at_traceon; }
21887
21888               { $at_traceoff
21889 $as_echo "$at_srcdir/rename03.at:26:
21890 mkdir posix
21891 (cd posix
21892 TEST_TAR_FORMAT=posix
21893 export TEST_TAR_FORMAT
21894 TAR_OPTIONS=\"-H posix\"
21895 export TAR_OPTIONS
21896 rm -rf *
21897
21898
21899 test -z "`sort < /dev/null 2>&1`" || exit 77
21900
21901
21902 mkdir foo
21903 genfile --file foo/file1
21904 genfile --file foo/file2
21905
21906 mkdir foo/a
21907 genfile --file foo/a/filea
21908
21909 mkdir foo/b
21910 genfile --file foo/b/fileb
21911
21912 mkdir foo/c
21913 genfile --file foo/c/filec
21914
21915 sleep 1
21916
21917 echo \"First dump\"
21918 echo \"First dump\">&2
21919 tar -g incr -cf arch.1 -v foo 2>tmperr
21920 sort tmperr >&2
21921
21922 # Shuffle directories:
21923 (cd foo
21924 mv a \$\$
21925 mv c a
21926 mv b c
21927 mv \$\$ b)
21928
21929 echo \"Second dump\"
21930 echo \"Second dump\" >&2
21931 tar -g incr -cf arch.2 -v foo 2>tmperr
21932 sort tmperr >&2
21933
21934 tar xfg arch.1 /dev/null
21935
21936 echo \"Begin directory listing 1\"
21937 find foo | sort
21938 echo \"End directory listing 1\"
21939
21940 tar xfgv arch.2 /dev/null
21941 echo Begin directory listing 2
21942 find foo | sort
21943 echo End directory listing 2
21944 )"
21945 echo rename03.at:26 >"$at_check_line_file"
21946
21947 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
21948    false; }; then
21949   ( $at_traceon;
21950 mkdir posix
21951 (cd posix
21952 TEST_TAR_FORMAT=posix
21953 export TEST_TAR_FORMAT
21954 TAR_OPTIONS="-H posix"
21955 export TAR_OPTIONS
21956 rm -rf *
21957
21958
21959 test -z "`sort < /dev/null 2>&1`" || exit 77
21960
21961
21962 mkdir foo
21963 genfile --file foo/file1
21964 genfile --file foo/file2
21965
21966 mkdir foo/a
21967 genfile --file foo/a/filea
21968
21969 mkdir foo/b
21970 genfile --file foo/b/fileb
21971
21972 mkdir foo/c
21973 genfile --file foo/c/filec
21974
21975 sleep 1
21976
21977 echo "First dump"
21978 echo "First dump">&2
21979 tar -g incr -cf arch.1 -v foo 2>tmperr
21980 sort tmperr >&2
21981
21982 # Shuffle directories:
21983 (cd foo
21984 mv a $$
21985 mv c a
21986 mv b c
21987 mv $$ b)
21988
21989 echo "Second dump"
21990 echo "Second dump" >&2
21991 tar -g incr -cf arch.2 -v foo 2>tmperr
21992 sort tmperr >&2
21993
21994 tar xfg arch.1 /dev/null
21995
21996 echo "Begin directory listing 1"
21997 find foo | sort
21998 echo "End directory listing 1"
21999
22000 tar xfgv arch.2 /dev/null
22001 echo Begin directory listing 2
22002 find foo | sort
22003 echo End directory listing 2
22004 ) ) >"$at_stdout" 2>"$at_stder1"
22005   at_func_filter_trace $?
22006 else
22007   ( :;
22008 mkdir posix
22009 (cd posix
22010 TEST_TAR_FORMAT=posix
22011 export TEST_TAR_FORMAT
22012 TAR_OPTIONS="-H posix"
22013 export TAR_OPTIONS
22014 rm -rf *
22015
22016
22017 test -z "`sort < /dev/null 2>&1`" || exit 77
22018
22019
22020 mkdir foo
22021 genfile --file foo/file1
22022 genfile --file foo/file2
22023
22024 mkdir foo/a
22025 genfile --file foo/a/filea
22026
22027 mkdir foo/b
22028 genfile --file foo/b/fileb
22029
22030 mkdir foo/c
22031 genfile --file foo/c/filec
22032
22033 sleep 1
22034
22035 echo "First dump"
22036 echo "First dump">&2
22037 tar -g incr -cf arch.1 -v foo 2>tmperr
22038 sort tmperr >&2
22039
22040 # Shuffle directories:
22041 (cd foo
22042 mv a $$
22043 mv c a
22044 mv b c
22045 mv $$ b)
22046
22047 echo "Second dump"
22048 echo "Second dump" >&2
22049 tar -g incr -cf arch.2 -v foo 2>tmperr
22050 sort tmperr >&2
22051
22052 tar xfg arch.1 /dev/null
22053
22054 echo "Begin directory listing 1"
22055 find foo | sort
22056 echo "End directory listing 1"
22057
22058 tar xfgv arch.2 /dev/null
22059 echo Begin directory listing 2
22060 find foo | sort
22061 echo End directory listing 2
22062 ) ) >"$at_stdout" 2>"$at_stderr"
22063 fi
22064 at_status=$?
22065 at_failed=false
22066 echo >>"$at_stderr"; $as_echo "First dump
22067 tar: foo/a: Directory is new
22068 tar: foo/b: Directory is new
22069 tar: foo/c: Directory is new
22070 tar: foo: Directory is new
22071 Second dump
22072 tar: foo/a: Directory has been renamed from \`foo/c'
22073 tar: foo/b: Directory has been renamed from \`foo/a'
22074 tar: foo/c: Directory has been renamed from \`foo/b'
22075 " | \
22076   $at_diff - "$at_stderr" || at_failed=:
22077 echo >>"$at_stdout"; $as_echo "First dump
22078 foo/
22079 foo/a/
22080 foo/b/
22081 foo/c/
22082 foo/file1
22083 foo/file2
22084 foo/a/filea
22085 foo/b/fileb
22086 foo/c/filec
22087 Second dump
22088 foo/
22089 foo/a/
22090 foo/b/
22091 foo/c/
22092 Begin directory listing 1
22093 foo
22094 foo/a
22095 foo/a/filea
22096 foo/b
22097 foo/b/fileb
22098 foo/c
22099 foo/c/filec
22100 foo/file1
22101 foo/file2
22102 End directory listing 1
22103 foo/
22104 foo/a/
22105 foo/b/
22106 foo/c/
22107 Begin directory listing 2
22108 foo
22109 foo/a
22110 foo/a/filec
22111 foo/b
22112 foo/b/filea
22113 foo/c
22114 foo/c/fileb
22115 foo/file1
22116 foo/file2
22117 End directory listing 2
22118 " | \
22119   $at_diff - "$at_stdout" || at_failed=:
22120 at_func_check_status 0 $at_status "$at_srcdir/rename03.at:26"
22121
22122 $at_failed && at_func_log_failure
22123 $at_traceon; }
22124
22125
22126
22127
22128   $at_traceoff
22129   $at_times_p && times >"$at_times_file"
22130 ) 5>&1 2>&1 | eval $at_tee_pipe
22131 at_status=`cat "$at_status_file"`
22132 #AT_STOP_49
22133 #AT_START_50
22134 # 50. rename04.at:27: renamed directory containing subdirectories
22135 at_setup_line='rename04.at:27'
22136 at_desc="renamed directory containing subdirectories"
22137 $at_quiet $as_echo_n " 50: $at_desc    "
22138 at_xfail=no
22139       test -f $XFAILFILE && at_xfail=yes
22140 echo "#                             -*- compilation -*-" >> "$at_group_log"
22141 (
22142   $as_echo "50. rename04.at:27: testing ..."
22143   $at_traceon
22144
22145
22146
22147
22148
22149   { $at_traceoff
22150 $as_echo "$at_srcdir/rename04.at:30:
22151 mkdir gnu
22152 (cd gnu
22153 TEST_TAR_FORMAT=gnu
22154 export TEST_TAR_FORMAT
22155 TAR_OPTIONS=\"-H gnu\"
22156 export TAR_OPTIONS
22157 rm -rf *
22158
22159
22160 test -z "`sort < /dev/null 2>&1`" || exit 77
22161
22162
22163 decho Creating directory structure
22164 mkdir directory
22165 mkdir directory/subdir
22166 genfile --file=directory/file
22167
22168 decho Creating initial archive
22169 tar -cf archive.1 -g db.1 directory
22170
22171 decho Renaming
22172 mv directory dir
22173
22174 decho Creating incremental archive
22175 cp db.1 db.2
22176 tar -cf archive.2 -g db.2 dir
22177
22178 mv dir orig
22179
22180 decho First restore
22181 tar -xf archive.1 -g db.1
22182 find directory | sort
22183
22184 decho Second restore
22185 tar -xf archive.2 -g db.2
22186 find dir | sort
22187 )"
22188 echo rename04.at:30 >"$at_check_line_file"
22189
22190 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
22191    false; }; then
22192   ( $at_traceon;
22193 mkdir gnu
22194 (cd gnu
22195 TEST_TAR_FORMAT=gnu
22196 export TEST_TAR_FORMAT
22197 TAR_OPTIONS="-H gnu"
22198 export TAR_OPTIONS
22199 rm -rf *
22200
22201
22202 test -z "`sort < /dev/null 2>&1`" || exit 77
22203
22204
22205 decho Creating directory structure
22206 mkdir directory
22207 mkdir directory/subdir
22208 genfile --file=directory/file
22209
22210 decho Creating initial archive
22211 tar -cf archive.1 -g db.1 directory
22212
22213 decho Renaming
22214 mv directory dir
22215
22216 decho Creating incremental archive
22217 cp db.1 db.2
22218 tar -cf archive.2 -g db.2 dir
22219
22220 mv dir orig
22221
22222 decho First restore
22223 tar -xf archive.1 -g db.1
22224 find directory | sort
22225
22226 decho Second restore
22227 tar -xf archive.2 -g db.2
22228 find dir | sort
22229 ) ) >"$at_stdout" 2>"$at_stder1"
22230   at_func_filter_trace $?
22231 else
22232   ( :;
22233 mkdir gnu
22234 (cd gnu
22235 TEST_TAR_FORMAT=gnu
22236 export TEST_TAR_FORMAT
22237 TAR_OPTIONS="-H gnu"
22238 export TAR_OPTIONS
22239 rm -rf *
22240
22241
22242 test -z "`sort < /dev/null 2>&1`" || exit 77
22243
22244
22245 decho Creating directory structure
22246 mkdir directory
22247 mkdir directory/subdir
22248 genfile --file=directory/file
22249
22250 decho Creating initial archive
22251 tar -cf archive.1 -g db.1 directory
22252
22253 decho Renaming
22254 mv directory dir
22255
22256 decho Creating incremental archive
22257 cp db.1 db.2
22258 tar -cf archive.2 -g db.2 dir
22259
22260 mv dir orig
22261
22262 decho First restore
22263 tar -xf archive.1 -g db.1
22264 find directory | sort
22265
22266 decho Second restore
22267 tar -xf archive.2 -g db.2
22268 find dir | sort
22269 ) ) >"$at_stdout" 2>"$at_stderr"
22270 fi
22271 at_status=$?
22272 at_failed=false
22273 echo >>"$at_stderr"; $as_echo "Creating directory structure
22274 Creating initial archive
22275 Renaming
22276 Creating incremental archive
22277 First restore
22278 Second restore
22279 " | \
22280   $at_diff - "$at_stderr" || at_failed=:
22281 echo >>"$at_stdout"; $as_echo "Creating directory structure
22282 Creating initial archive
22283 Renaming
22284 Creating incremental archive
22285 First restore
22286 directory
22287 directory/file
22288 directory/subdir
22289 Second restore
22290 dir
22291 dir/subdir
22292 " | \
22293   $at_diff - "$at_stdout" || at_failed=:
22294 at_func_check_status 0 $at_status "$at_srcdir/rename04.at:30"
22295
22296 $at_failed && at_func_log_failure
22297 $at_traceon; }
22298
22299               { $at_traceoff
22300 $as_echo "$at_srcdir/rename04.at:30:
22301 mkdir oldgnu
22302 (cd oldgnu
22303 TEST_TAR_FORMAT=oldgnu
22304 export TEST_TAR_FORMAT
22305 TAR_OPTIONS=\"-H oldgnu\"
22306 export TAR_OPTIONS
22307 rm -rf *
22308
22309
22310 test -z "`sort < /dev/null 2>&1`" || exit 77
22311
22312
22313 decho Creating directory structure
22314 mkdir directory
22315 mkdir directory/subdir
22316 genfile --file=directory/file
22317
22318 decho Creating initial archive
22319 tar -cf archive.1 -g db.1 directory
22320
22321 decho Renaming
22322 mv directory dir
22323
22324 decho Creating incremental archive
22325 cp db.1 db.2
22326 tar -cf archive.2 -g db.2 dir
22327
22328 mv dir orig
22329
22330 decho First restore
22331 tar -xf archive.1 -g db.1
22332 find directory | sort
22333
22334 decho Second restore
22335 tar -xf archive.2 -g db.2
22336 find dir | sort
22337 )"
22338 echo rename04.at:30 >"$at_check_line_file"
22339
22340 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
22341    false; }; then
22342   ( $at_traceon;
22343 mkdir oldgnu
22344 (cd oldgnu
22345 TEST_TAR_FORMAT=oldgnu
22346 export TEST_TAR_FORMAT
22347 TAR_OPTIONS="-H oldgnu"
22348 export TAR_OPTIONS
22349 rm -rf *
22350
22351
22352 test -z "`sort < /dev/null 2>&1`" || exit 77
22353
22354
22355 decho Creating directory structure
22356 mkdir directory
22357 mkdir directory/subdir
22358 genfile --file=directory/file
22359
22360 decho Creating initial archive
22361 tar -cf archive.1 -g db.1 directory
22362
22363 decho Renaming
22364 mv directory dir
22365
22366 decho Creating incremental archive
22367 cp db.1 db.2
22368 tar -cf archive.2 -g db.2 dir
22369
22370 mv dir orig
22371
22372 decho First restore
22373 tar -xf archive.1 -g db.1
22374 find directory | sort
22375
22376 decho Second restore
22377 tar -xf archive.2 -g db.2
22378 find dir | sort
22379 ) ) >"$at_stdout" 2>"$at_stder1"
22380   at_func_filter_trace $?
22381 else
22382   ( :;
22383 mkdir oldgnu
22384 (cd oldgnu
22385 TEST_TAR_FORMAT=oldgnu
22386 export TEST_TAR_FORMAT
22387 TAR_OPTIONS="-H oldgnu"
22388 export TAR_OPTIONS
22389 rm -rf *
22390
22391
22392 test -z "`sort < /dev/null 2>&1`" || exit 77
22393
22394
22395 decho Creating directory structure
22396 mkdir directory
22397 mkdir directory/subdir
22398 genfile --file=directory/file
22399
22400 decho Creating initial archive
22401 tar -cf archive.1 -g db.1 directory
22402
22403 decho Renaming
22404 mv directory dir
22405
22406 decho Creating incremental archive
22407 cp db.1 db.2
22408 tar -cf archive.2 -g db.2 dir
22409
22410 mv dir orig
22411
22412 decho First restore
22413 tar -xf archive.1 -g db.1
22414 find directory | sort
22415
22416 decho Second restore
22417 tar -xf archive.2 -g db.2
22418 find dir | sort
22419 ) ) >"$at_stdout" 2>"$at_stderr"
22420 fi
22421 at_status=$?
22422 at_failed=false
22423 echo >>"$at_stderr"; $as_echo "Creating directory structure
22424 Creating initial archive
22425 Renaming
22426 Creating incremental archive
22427 First restore
22428 Second restore
22429 " | \
22430   $at_diff - "$at_stderr" || at_failed=:
22431 echo >>"$at_stdout"; $as_echo "Creating directory structure
22432 Creating initial archive
22433 Renaming
22434 Creating incremental archive
22435 First restore
22436 directory
22437 directory/file
22438 directory/subdir
22439 Second restore
22440 dir
22441 dir/subdir
22442 " | \
22443   $at_diff - "$at_stdout" || at_failed=:
22444 at_func_check_status 0 $at_status "$at_srcdir/rename04.at:30"
22445
22446 $at_failed && at_func_log_failure
22447 $at_traceon; }
22448
22449               { $at_traceoff
22450 $as_echo "$at_srcdir/rename04.at:30:
22451 mkdir posix
22452 (cd posix
22453 TEST_TAR_FORMAT=posix
22454 export TEST_TAR_FORMAT
22455 TAR_OPTIONS=\"-H posix\"
22456 export TAR_OPTIONS
22457 rm -rf *
22458
22459
22460 test -z "`sort < /dev/null 2>&1`" || exit 77
22461
22462
22463 decho Creating directory structure
22464 mkdir directory
22465 mkdir directory/subdir
22466 genfile --file=directory/file
22467
22468 decho Creating initial archive
22469 tar -cf archive.1 -g db.1 directory
22470
22471 decho Renaming
22472 mv directory dir
22473
22474 decho Creating incremental archive
22475 cp db.1 db.2
22476 tar -cf archive.2 -g db.2 dir
22477
22478 mv dir orig
22479
22480 decho First restore
22481 tar -xf archive.1 -g db.1
22482 find directory | sort
22483
22484 decho Second restore
22485 tar -xf archive.2 -g db.2
22486 find dir | sort
22487 )"
22488 echo rename04.at:30 >"$at_check_line_file"
22489
22490 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
22491    false; }; then
22492   ( $at_traceon;
22493 mkdir posix
22494 (cd posix
22495 TEST_TAR_FORMAT=posix
22496 export TEST_TAR_FORMAT
22497 TAR_OPTIONS="-H posix"
22498 export TAR_OPTIONS
22499 rm -rf *
22500
22501
22502 test -z "`sort < /dev/null 2>&1`" || exit 77
22503
22504
22505 decho Creating directory structure
22506 mkdir directory
22507 mkdir directory/subdir
22508 genfile --file=directory/file
22509
22510 decho Creating initial archive
22511 tar -cf archive.1 -g db.1 directory
22512
22513 decho Renaming
22514 mv directory dir
22515
22516 decho Creating incremental archive
22517 cp db.1 db.2
22518 tar -cf archive.2 -g db.2 dir
22519
22520 mv dir orig
22521
22522 decho First restore
22523 tar -xf archive.1 -g db.1
22524 find directory | sort
22525
22526 decho Second restore
22527 tar -xf archive.2 -g db.2
22528 find dir | sort
22529 ) ) >"$at_stdout" 2>"$at_stder1"
22530   at_func_filter_trace $?
22531 else
22532   ( :;
22533 mkdir posix
22534 (cd posix
22535 TEST_TAR_FORMAT=posix
22536 export TEST_TAR_FORMAT
22537 TAR_OPTIONS="-H posix"
22538 export TAR_OPTIONS
22539 rm -rf *
22540
22541
22542 test -z "`sort < /dev/null 2>&1`" || exit 77
22543
22544
22545 decho Creating directory structure
22546 mkdir directory
22547 mkdir directory/subdir
22548 genfile --file=directory/file
22549
22550 decho Creating initial archive
22551 tar -cf archive.1 -g db.1 directory
22552
22553 decho Renaming
22554 mv directory dir
22555
22556 decho Creating incremental archive
22557 cp db.1 db.2
22558 tar -cf archive.2 -g db.2 dir
22559
22560 mv dir orig
22561
22562 decho First restore
22563 tar -xf archive.1 -g db.1
22564 find directory | sort
22565
22566 decho Second restore
22567 tar -xf archive.2 -g db.2
22568 find dir | sort
22569 ) ) >"$at_stdout" 2>"$at_stderr"
22570 fi
22571 at_status=$?
22572 at_failed=false
22573 echo >>"$at_stderr"; $as_echo "Creating directory structure
22574 Creating initial archive
22575 Renaming
22576 Creating incremental archive
22577 First restore
22578 Second restore
22579 " | \
22580   $at_diff - "$at_stderr" || at_failed=:
22581 echo >>"$at_stdout"; $as_echo "Creating directory structure
22582 Creating initial archive
22583 Renaming
22584 Creating incremental archive
22585 First restore
22586 directory
22587 directory/file
22588 directory/subdir
22589 Second restore
22590 dir
22591 dir/subdir
22592 " | \
22593   $at_diff - "$at_stdout" || at_failed=:
22594 at_func_check_status 0 $at_status "$at_srcdir/rename04.at:30"
22595
22596 $at_failed && at_func_log_failure
22597 $at_traceon; }
22598
22599
22600
22601
22602   $at_traceoff
22603   $at_times_p && times >"$at_times_file"
22604 ) 5>&1 2>&1 | eval $at_tee_pipe
22605 at_status=`cat "$at_status_file"`
22606 #AT_STOP_50
22607 #AT_START_51
22608 # 51. rename05.at:24: renamed subdirectories
22609 at_setup_line='rename05.at:24'
22610 at_desc="renamed subdirectories"
22611 $at_quiet $as_echo_n " 51: $at_desc                         "
22612 at_xfail=no
22613       test -f $XFAILFILE && at_xfail=yes
22614 echo "#                             -*- compilation -*-" >> "$at_group_log"
22615 (
22616   $as_echo "51. rename05.at:24: testing ..."
22617   $at_traceon
22618
22619
22620
22621
22622
22623   { $at_traceoff
22624 $as_echo "$at_srcdir/rename05.at:27:
22625 mkdir gnu
22626 (cd gnu
22627 TEST_TAR_FORMAT=gnu
22628 export TEST_TAR_FORMAT
22629 TAR_OPTIONS=\"-H gnu\"
22630 export TAR_OPTIONS
22631 rm -rf *
22632
22633
22634 test -z "`sort < /dev/null 2>&1`" || exit 77
22635
22636
22637 decho Creating directory structure
22638 mkdir directory
22639 mkdir directory/subdir
22640 genfile --file=directory/file
22641
22642 decho Creating initial archive
22643 tar -cf archive.1 -g db.1 directory
22644
22645 decho Renaming
22646 mv directory/subdir directory/subdir.0
22647 mv directory dir
22648
22649 decho Creating incremental archive
22650 cp db.1 db.2
22651 tar -cf archive.2 -g db.2 dir
22652
22653 mv dir orig
22654
22655 decho First restore
22656 tar -xf archive.1 -g db.1
22657 find directory | sort
22658
22659 decho Second restore
22660 tar -xf archive.2 -g db.2
22661 find dir | sort
22662 )"
22663 echo rename05.at:27 >"$at_check_line_file"
22664
22665 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
22666    false; }; then
22667   ( $at_traceon;
22668 mkdir gnu
22669 (cd gnu
22670 TEST_TAR_FORMAT=gnu
22671 export TEST_TAR_FORMAT
22672 TAR_OPTIONS="-H gnu"
22673 export TAR_OPTIONS
22674 rm -rf *
22675
22676
22677 test -z "`sort < /dev/null 2>&1`" || exit 77
22678
22679
22680 decho Creating directory structure
22681 mkdir directory
22682 mkdir directory/subdir
22683 genfile --file=directory/file
22684
22685 decho Creating initial archive
22686 tar -cf archive.1 -g db.1 directory
22687
22688 decho Renaming
22689 mv directory/subdir directory/subdir.0
22690 mv directory dir
22691
22692 decho Creating incremental archive
22693 cp db.1 db.2
22694 tar -cf archive.2 -g db.2 dir
22695
22696 mv dir orig
22697
22698 decho First restore
22699 tar -xf archive.1 -g db.1
22700 find directory | sort
22701
22702 decho Second restore
22703 tar -xf archive.2 -g db.2
22704 find dir | sort
22705 ) ) >"$at_stdout" 2>"$at_stder1"
22706   at_func_filter_trace $?
22707 else
22708   ( :;
22709 mkdir gnu
22710 (cd gnu
22711 TEST_TAR_FORMAT=gnu
22712 export TEST_TAR_FORMAT
22713 TAR_OPTIONS="-H gnu"
22714 export TAR_OPTIONS
22715 rm -rf *
22716
22717
22718 test -z "`sort < /dev/null 2>&1`" || exit 77
22719
22720
22721 decho Creating directory structure
22722 mkdir directory
22723 mkdir directory/subdir
22724 genfile --file=directory/file
22725
22726 decho Creating initial archive
22727 tar -cf archive.1 -g db.1 directory
22728
22729 decho Renaming
22730 mv directory/subdir directory/subdir.0
22731 mv directory dir
22732
22733 decho Creating incremental archive
22734 cp db.1 db.2
22735 tar -cf archive.2 -g db.2 dir
22736
22737 mv dir orig
22738
22739 decho First restore
22740 tar -xf archive.1 -g db.1
22741 find directory | sort
22742
22743 decho Second restore
22744 tar -xf archive.2 -g db.2
22745 find dir | sort
22746 ) ) >"$at_stdout" 2>"$at_stderr"
22747 fi
22748 at_status=$?
22749 at_failed=false
22750 echo >>"$at_stderr"; $as_echo "Creating directory structure
22751 Creating initial archive
22752 Renaming
22753 Creating incremental archive
22754 First restore
22755 Second restore
22756 " | \
22757   $at_diff - "$at_stderr" || at_failed=:
22758 echo >>"$at_stdout"; $as_echo "Creating directory structure
22759 Creating initial archive
22760 Renaming
22761 Creating incremental archive
22762 First restore
22763 directory
22764 directory/file
22765 directory/subdir
22766 Second restore
22767 dir
22768 dir/subdir.0
22769 " | \
22770   $at_diff - "$at_stdout" || at_failed=:
22771 at_func_check_status 0 $at_status "$at_srcdir/rename05.at:27"
22772
22773 $at_failed && at_func_log_failure
22774 $at_traceon; }
22775
22776               { $at_traceoff
22777 $as_echo "$at_srcdir/rename05.at:27:
22778 mkdir oldgnu
22779 (cd oldgnu
22780 TEST_TAR_FORMAT=oldgnu
22781 export TEST_TAR_FORMAT
22782 TAR_OPTIONS=\"-H oldgnu\"
22783 export TAR_OPTIONS
22784 rm -rf *
22785
22786
22787 test -z "`sort < /dev/null 2>&1`" || exit 77
22788
22789
22790 decho Creating directory structure
22791 mkdir directory
22792 mkdir directory/subdir
22793 genfile --file=directory/file
22794
22795 decho Creating initial archive
22796 tar -cf archive.1 -g db.1 directory
22797
22798 decho Renaming
22799 mv directory/subdir directory/subdir.0
22800 mv directory dir
22801
22802 decho Creating incremental archive
22803 cp db.1 db.2
22804 tar -cf archive.2 -g db.2 dir
22805
22806 mv dir orig
22807
22808 decho First restore
22809 tar -xf archive.1 -g db.1
22810 find directory | sort
22811
22812 decho Second restore
22813 tar -xf archive.2 -g db.2
22814 find dir | sort
22815 )"
22816 echo rename05.at:27 >"$at_check_line_file"
22817
22818 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
22819    false; }; then
22820   ( $at_traceon;
22821 mkdir oldgnu
22822 (cd oldgnu
22823 TEST_TAR_FORMAT=oldgnu
22824 export TEST_TAR_FORMAT
22825 TAR_OPTIONS="-H oldgnu"
22826 export TAR_OPTIONS
22827 rm -rf *
22828
22829
22830 test -z "`sort < /dev/null 2>&1`" || exit 77
22831
22832
22833 decho Creating directory structure
22834 mkdir directory
22835 mkdir directory/subdir
22836 genfile --file=directory/file
22837
22838 decho Creating initial archive
22839 tar -cf archive.1 -g db.1 directory
22840
22841 decho Renaming
22842 mv directory/subdir directory/subdir.0
22843 mv directory dir
22844
22845 decho Creating incremental archive
22846 cp db.1 db.2
22847 tar -cf archive.2 -g db.2 dir
22848
22849 mv dir orig
22850
22851 decho First restore
22852 tar -xf archive.1 -g db.1
22853 find directory | sort
22854
22855 decho Second restore
22856 tar -xf archive.2 -g db.2
22857 find dir | sort
22858 ) ) >"$at_stdout" 2>"$at_stder1"
22859   at_func_filter_trace $?
22860 else
22861   ( :;
22862 mkdir oldgnu
22863 (cd oldgnu
22864 TEST_TAR_FORMAT=oldgnu
22865 export TEST_TAR_FORMAT
22866 TAR_OPTIONS="-H oldgnu"
22867 export TAR_OPTIONS
22868 rm -rf *
22869
22870
22871 test -z "`sort < /dev/null 2>&1`" || exit 77
22872
22873
22874 decho Creating directory structure
22875 mkdir directory
22876 mkdir directory/subdir
22877 genfile --file=directory/file
22878
22879 decho Creating initial archive
22880 tar -cf archive.1 -g db.1 directory
22881
22882 decho Renaming
22883 mv directory/subdir directory/subdir.0
22884 mv directory dir
22885
22886 decho Creating incremental archive
22887 cp db.1 db.2
22888 tar -cf archive.2 -g db.2 dir
22889
22890 mv dir orig
22891
22892 decho First restore
22893 tar -xf archive.1 -g db.1
22894 find directory | sort
22895
22896 decho Second restore
22897 tar -xf archive.2 -g db.2
22898 find dir | sort
22899 ) ) >"$at_stdout" 2>"$at_stderr"
22900 fi
22901 at_status=$?
22902 at_failed=false
22903 echo >>"$at_stderr"; $as_echo "Creating directory structure
22904 Creating initial archive
22905 Renaming
22906 Creating incremental archive
22907 First restore
22908 Second restore
22909 " | \
22910   $at_diff - "$at_stderr" || at_failed=:
22911 echo >>"$at_stdout"; $as_echo "Creating directory structure
22912 Creating initial archive
22913 Renaming
22914 Creating incremental archive
22915 First restore
22916 directory
22917 directory/file
22918 directory/subdir
22919 Second restore
22920 dir
22921 dir/subdir.0
22922 " | \
22923   $at_diff - "$at_stdout" || at_failed=:
22924 at_func_check_status 0 $at_status "$at_srcdir/rename05.at:27"
22925
22926 $at_failed && at_func_log_failure
22927 $at_traceon; }
22928
22929               { $at_traceoff
22930 $as_echo "$at_srcdir/rename05.at:27:
22931 mkdir posix
22932 (cd posix
22933 TEST_TAR_FORMAT=posix
22934 export TEST_TAR_FORMAT
22935 TAR_OPTIONS=\"-H posix\"
22936 export TAR_OPTIONS
22937 rm -rf *
22938
22939
22940 test -z "`sort < /dev/null 2>&1`" || exit 77
22941
22942
22943 decho Creating directory structure
22944 mkdir directory
22945 mkdir directory/subdir
22946 genfile --file=directory/file
22947
22948 decho Creating initial archive
22949 tar -cf archive.1 -g db.1 directory
22950
22951 decho Renaming
22952 mv directory/subdir directory/subdir.0
22953 mv directory dir
22954
22955 decho Creating incremental archive
22956 cp db.1 db.2
22957 tar -cf archive.2 -g db.2 dir
22958
22959 mv dir orig
22960
22961 decho First restore
22962 tar -xf archive.1 -g db.1
22963 find directory | sort
22964
22965 decho Second restore
22966 tar -xf archive.2 -g db.2
22967 find dir | sort
22968 )"
22969 echo rename05.at:27 >"$at_check_line_file"
22970
22971 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
22972    false; }; then
22973   ( $at_traceon;
22974 mkdir posix
22975 (cd posix
22976 TEST_TAR_FORMAT=posix
22977 export TEST_TAR_FORMAT
22978 TAR_OPTIONS="-H posix"
22979 export TAR_OPTIONS
22980 rm -rf *
22981
22982
22983 test -z "`sort < /dev/null 2>&1`" || exit 77
22984
22985
22986 decho Creating directory structure
22987 mkdir directory
22988 mkdir directory/subdir
22989 genfile --file=directory/file
22990
22991 decho Creating initial archive
22992 tar -cf archive.1 -g db.1 directory
22993
22994 decho Renaming
22995 mv directory/subdir directory/subdir.0
22996 mv directory dir
22997
22998 decho Creating incremental archive
22999 cp db.1 db.2
23000 tar -cf archive.2 -g db.2 dir
23001
23002 mv dir orig
23003
23004 decho First restore
23005 tar -xf archive.1 -g db.1
23006 find directory | sort
23007
23008 decho Second restore
23009 tar -xf archive.2 -g db.2
23010 find dir | sort
23011 ) ) >"$at_stdout" 2>"$at_stder1"
23012   at_func_filter_trace $?
23013 else
23014   ( :;
23015 mkdir posix
23016 (cd posix
23017 TEST_TAR_FORMAT=posix
23018 export TEST_TAR_FORMAT
23019 TAR_OPTIONS="-H posix"
23020 export TAR_OPTIONS
23021 rm -rf *
23022
23023
23024 test -z "`sort < /dev/null 2>&1`" || exit 77
23025
23026
23027 decho Creating directory structure
23028 mkdir directory
23029 mkdir directory/subdir
23030 genfile --file=directory/file
23031
23032 decho Creating initial archive
23033 tar -cf archive.1 -g db.1 directory
23034
23035 decho Renaming
23036 mv directory/subdir directory/subdir.0
23037 mv directory dir
23038
23039 decho Creating incremental archive
23040 cp db.1 db.2
23041 tar -cf archive.2 -g db.2 dir
23042
23043 mv dir orig
23044
23045 decho First restore
23046 tar -xf archive.1 -g db.1
23047 find directory | sort
23048
23049 decho Second restore
23050 tar -xf archive.2 -g db.2
23051 find dir | sort
23052 ) ) >"$at_stdout" 2>"$at_stderr"
23053 fi
23054 at_status=$?
23055 at_failed=false
23056 echo >>"$at_stderr"; $as_echo "Creating directory structure
23057 Creating initial archive
23058 Renaming
23059 Creating incremental archive
23060 First restore
23061 Second restore
23062 " | \
23063   $at_diff - "$at_stderr" || at_failed=:
23064 echo >>"$at_stdout"; $as_echo "Creating directory structure
23065 Creating initial archive
23066 Renaming
23067 Creating incremental archive
23068 First restore
23069 directory
23070 directory/file
23071 directory/subdir
23072 Second restore
23073 dir
23074 dir/subdir.0
23075 " | \
23076   $at_diff - "$at_stdout" || at_failed=:
23077 at_func_check_status 0 $at_status "$at_srcdir/rename05.at:27"
23078
23079 $at_failed && at_func_log_failure
23080 $at_traceon; }
23081
23082
23083
23084
23085   $at_traceoff
23086   $at_times_p && times >"$at_times_file"
23087 ) 5>&1 2>&1 | eval $at_tee_pipe
23088 at_status=`cat "$at_status_file"`
23089 #AT_STOP_51
23090 #AT_START_52
23091 # 52. chtype.at:27: changed file types in incrementals
23092 at_setup_line='chtype.at:27'
23093 at_desc="changed file types in incrementals"
23094 $at_quiet $as_echo_n " 52: $at_desc             "
23095 at_xfail=no
23096       test -f $XFAILFILE && at_xfail=yes
23097 echo "#                             -*- compilation -*-" >> "$at_group_log"
23098 (
23099   $as_echo "52. chtype.at:27: testing ..."
23100   $at_traceon
23101
23102
23103
23104
23105
23106   { $at_traceoff
23107 $as_echo "$at_srcdir/chtype.at:30:
23108 mkdir gnu
23109 (cd gnu
23110 TEST_TAR_FORMAT=gnu
23111 export TEST_TAR_FORMAT
23112 TAR_OPTIONS=\"-H gnu\"
23113 export TAR_OPTIONS
23114 rm -rf *
23115
23116
23117 test -z "`sort < /dev/null 2>&1`" || exit 77
23118
23119
23120 install-sh -d directory/b/c >/dev/null && genfile --file directory/b/c/x || exit 77
23121 mkdir directory/a
23122 genfile --file directory/a/a
23123
23124 echo First backup
23125 tar --create --file=archive.1 --listed-incremental=db.1 directory
23126
23127 sleep 2
23128
23129 # Remove directory b and create a file with this name.
23130 # Previous versions were not able to restore over this file.
23131 rm -r directory/b
23132 genfile --file directory/b
23133 genfile --file directory/a/b
23134
23135 echo Second backup
23136 tar --create --file=archive.2 --listed-incremental=db.2 directory
23137
23138 # Delete a
23139 rm -r directory
23140
23141 echo Restore archive.1
23142 tar -xf archive.1 --listed-incremental=/dev/null
23143 echo Restore archive.2
23144 tar -xf archive.2 --listed-incremental=/dev/null
23145 find directory | sort
23146 )"
23147 echo chtype.at:30 >"$at_check_line_file"
23148
23149 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
23150    false; }; then
23151   ( $at_traceon;
23152 mkdir gnu
23153 (cd gnu
23154 TEST_TAR_FORMAT=gnu
23155 export TEST_TAR_FORMAT
23156 TAR_OPTIONS="-H gnu"
23157 export TAR_OPTIONS
23158 rm -rf *
23159
23160
23161 test -z "`sort < /dev/null 2>&1`" || exit 77
23162
23163
23164 install-sh -d directory/b/c >/dev/null && genfile --file directory/b/c/x || exit 77
23165 mkdir directory/a
23166 genfile --file directory/a/a
23167
23168 echo First backup
23169 tar --create --file=archive.1 --listed-incremental=db.1 directory
23170
23171 sleep 2
23172
23173 # Remove directory b and create a file with this name.
23174 # Previous versions were not able to restore over this file.
23175 rm -r directory/b
23176 genfile --file directory/b
23177 genfile --file directory/a/b
23178
23179 echo Second backup
23180 tar --create --file=archive.2 --listed-incremental=db.2 directory
23181
23182 # Delete a
23183 rm -r directory
23184
23185 echo Restore archive.1
23186 tar -xf archive.1 --listed-incremental=/dev/null
23187 echo Restore archive.2
23188 tar -xf archive.2 --listed-incremental=/dev/null
23189 find directory | sort
23190 ) ) >"$at_stdout" 2>"$at_stder1"
23191   at_func_filter_trace $?
23192 else
23193   ( :;
23194 mkdir gnu
23195 (cd gnu
23196 TEST_TAR_FORMAT=gnu
23197 export TEST_TAR_FORMAT
23198 TAR_OPTIONS="-H gnu"
23199 export TAR_OPTIONS
23200 rm -rf *
23201
23202
23203 test -z "`sort < /dev/null 2>&1`" || exit 77
23204
23205
23206 install-sh -d directory/b/c >/dev/null && genfile --file directory/b/c/x || exit 77
23207 mkdir directory/a
23208 genfile --file directory/a/a
23209
23210 echo First backup
23211 tar --create --file=archive.1 --listed-incremental=db.1 directory
23212
23213 sleep 2
23214
23215 # Remove directory b and create a file with this name.
23216 # Previous versions were not able to restore over this file.
23217 rm -r directory/b
23218 genfile --file directory/b
23219 genfile --file directory/a/b
23220
23221 echo Second backup
23222 tar --create --file=archive.2 --listed-incremental=db.2 directory
23223
23224 # Delete a
23225 rm -r directory
23226
23227 echo Restore archive.1
23228 tar -xf archive.1 --listed-incremental=/dev/null
23229 echo Restore archive.2
23230 tar -xf archive.2 --listed-incremental=/dev/null
23231 find directory | sort
23232 ) ) >"$at_stdout" 2>"$at_stderr"
23233 fi
23234 at_status=$?
23235 at_failed=false
23236 at_func_diff_devnull "$at_stderr" || at_failed=:
23237 echo >>"$at_stdout"; $as_echo "First backup
23238 Second backup
23239 Restore archive.1
23240 Restore archive.2
23241 directory
23242 directory/a
23243 directory/a/a
23244 directory/a/b
23245 directory/b
23246 " | \
23247   $at_diff - "$at_stdout" || at_failed=:
23248 at_func_check_status 0 $at_status "$at_srcdir/chtype.at:30"
23249
23250 $at_failed && at_func_log_failure
23251 $at_traceon; }
23252
23253               { $at_traceoff
23254 $as_echo "$at_srcdir/chtype.at:30:
23255 mkdir oldgnu
23256 (cd oldgnu
23257 TEST_TAR_FORMAT=oldgnu
23258 export TEST_TAR_FORMAT
23259 TAR_OPTIONS=\"-H oldgnu\"
23260 export TAR_OPTIONS
23261 rm -rf *
23262
23263
23264 test -z "`sort < /dev/null 2>&1`" || exit 77
23265
23266
23267 install-sh -d directory/b/c >/dev/null && genfile --file directory/b/c/x || exit 77
23268 mkdir directory/a
23269 genfile --file directory/a/a
23270
23271 echo First backup
23272 tar --create --file=archive.1 --listed-incremental=db.1 directory
23273
23274 sleep 2
23275
23276 # Remove directory b and create a file with this name.
23277 # Previous versions were not able to restore over this file.
23278 rm -r directory/b
23279 genfile --file directory/b
23280 genfile --file directory/a/b
23281
23282 echo Second backup
23283 tar --create --file=archive.2 --listed-incremental=db.2 directory
23284
23285 # Delete a
23286 rm -r directory
23287
23288 echo Restore archive.1
23289 tar -xf archive.1 --listed-incremental=/dev/null
23290 echo Restore archive.2
23291 tar -xf archive.2 --listed-incremental=/dev/null
23292 find directory | sort
23293 )"
23294 echo chtype.at:30 >"$at_check_line_file"
23295
23296 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
23297    false; }; then
23298   ( $at_traceon;
23299 mkdir oldgnu
23300 (cd oldgnu
23301 TEST_TAR_FORMAT=oldgnu
23302 export TEST_TAR_FORMAT
23303 TAR_OPTIONS="-H oldgnu"
23304 export TAR_OPTIONS
23305 rm -rf *
23306
23307
23308 test -z "`sort < /dev/null 2>&1`" || exit 77
23309
23310
23311 install-sh -d directory/b/c >/dev/null && genfile --file directory/b/c/x || exit 77
23312 mkdir directory/a
23313 genfile --file directory/a/a
23314
23315 echo First backup
23316 tar --create --file=archive.1 --listed-incremental=db.1 directory
23317
23318 sleep 2
23319
23320 # Remove directory b and create a file with this name.
23321 # Previous versions were not able to restore over this file.
23322 rm -r directory/b
23323 genfile --file directory/b
23324 genfile --file directory/a/b
23325
23326 echo Second backup
23327 tar --create --file=archive.2 --listed-incremental=db.2 directory
23328
23329 # Delete a
23330 rm -r directory
23331
23332 echo Restore archive.1
23333 tar -xf archive.1 --listed-incremental=/dev/null
23334 echo Restore archive.2
23335 tar -xf archive.2 --listed-incremental=/dev/null
23336 find directory | sort
23337 ) ) >"$at_stdout" 2>"$at_stder1"
23338   at_func_filter_trace $?
23339 else
23340   ( :;
23341 mkdir oldgnu
23342 (cd oldgnu
23343 TEST_TAR_FORMAT=oldgnu
23344 export TEST_TAR_FORMAT
23345 TAR_OPTIONS="-H oldgnu"
23346 export TAR_OPTIONS
23347 rm -rf *
23348
23349
23350 test -z "`sort < /dev/null 2>&1`" || exit 77
23351
23352
23353 install-sh -d directory/b/c >/dev/null && genfile --file directory/b/c/x || exit 77
23354 mkdir directory/a
23355 genfile --file directory/a/a
23356
23357 echo First backup
23358 tar --create --file=archive.1 --listed-incremental=db.1 directory
23359
23360 sleep 2
23361
23362 # Remove directory b and create a file with this name.
23363 # Previous versions were not able to restore over this file.
23364 rm -r directory/b
23365 genfile --file directory/b
23366 genfile --file directory/a/b
23367
23368 echo Second backup
23369 tar --create --file=archive.2 --listed-incremental=db.2 directory
23370
23371 # Delete a
23372 rm -r directory
23373
23374 echo Restore archive.1
23375 tar -xf archive.1 --listed-incremental=/dev/null
23376 echo Restore archive.2
23377 tar -xf archive.2 --listed-incremental=/dev/null
23378 find directory | sort
23379 ) ) >"$at_stdout" 2>"$at_stderr"
23380 fi
23381 at_status=$?
23382 at_failed=false
23383 at_func_diff_devnull "$at_stderr" || at_failed=:
23384 echo >>"$at_stdout"; $as_echo "First backup
23385 Second backup
23386 Restore archive.1
23387 Restore archive.2
23388 directory
23389 directory/a
23390 directory/a/a
23391 directory/a/b
23392 directory/b
23393 " | \
23394   $at_diff - "$at_stdout" || at_failed=:
23395 at_func_check_status 0 $at_status "$at_srcdir/chtype.at:30"
23396
23397 $at_failed && at_func_log_failure
23398 $at_traceon; }
23399
23400               { $at_traceoff
23401 $as_echo "$at_srcdir/chtype.at:30:
23402 mkdir posix
23403 (cd posix
23404 TEST_TAR_FORMAT=posix
23405 export TEST_TAR_FORMAT
23406 TAR_OPTIONS=\"-H posix\"
23407 export TAR_OPTIONS
23408 rm -rf *
23409
23410
23411 test -z "`sort < /dev/null 2>&1`" || exit 77
23412
23413
23414 install-sh -d directory/b/c >/dev/null && genfile --file directory/b/c/x || exit 77
23415 mkdir directory/a
23416 genfile --file directory/a/a
23417
23418 echo First backup
23419 tar --create --file=archive.1 --listed-incremental=db.1 directory
23420
23421 sleep 2
23422
23423 # Remove directory b and create a file with this name.
23424 # Previous versions were not able to restore over this file.
23425 rm -r directory/b
23426 genfile --file directory/b
23427 genfile --file directory/a/b
23428
23429 echo Second backup
23430 tar --create --file=archive.2 --listed-incremental=db.2 directory
23431
23432 # Delete a
23433 rm -r directory
23434
23435 echo Restore archive.1
23436 tar -xf archive.1 --listed-incremental=/dev/null
23437 echo Restore archive.2
23438 tar -xf archive.2 --listed-incremental=/dev/null
23439 find directory | sort
23440 )"
23441 echo chtype.at:30 >"$at_check_line_file"
23442
23443 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
23444    false; }; then
23445   ( $at_traceon;
23446 mkdir posix
23447 (cd posix
23448 TEST_TAR_FORMAT=posix
23449 export TEST_TAR_FORMAT
23450 TAR_OPTIONS="-H posix"
23451 export TAR_OPTIONS
23452 rm -rf *
23453
23454
23455 test -z "`sort < /dev/null 2>&1`" || exit 77
23456
23457
23458 install-sh -d directory/b/c >/dev/null && genfile --file directory/b/c/x || exit 77
23459 mkdir directory/a
23460 genfile --file directory/a/a
23461
23462 echo First backup
23463 tar --create --file=archive.1 --listed-incremental=db.1 directory
23464
23465 sleep 2
23466
23467 # Remove directory b and create a file with this name.
23468 # Previous versions were not able to restore over this file.
23469 rm -r directory/b
23470 genfile --file directory/b
23471 genfile --file directory/a/b
23472
23473 echo Second backup
23474 tar --create --file=archive.2 --listed-incremental=db.2 directory
23475
23476 # Delete a
23477 rm -r directory
23478
23479 echo Restore archive.1
23480 tar -xf archive.1 --listed-incremental=/dev/null
23481 echo Restore archive.2
23482 tar -xf archive.2 --listed-incremental=/dev/null
23483 find directory | sort
23484 ) ) >"$at_stdout" 2>"$at_stder1"
23485   at_func_filter_trace $?
23486 else
23487   ( :;
23488 mkdir posix
23489 (cd posix
23490 TEST_TAR_FORMAT=posix
23491 export TEST_TAR_FORMAT
23492 TAR_OPTIONS="-H posix"
23493 export TAR_OPTIONS
23494 rm -rf *
23495
23496
23497 test -z "`sort < /dev/null 2>&1`" || exit 77
23498
23499
23500 install-sh -d directory/b/c >/dev/null && genfile --file directory/b/c/x || exit 77
23501 mkdir directory/a
23502 genfile --file directory/a/a
23503
23504 echo First backup
23505 tar --create --file=archive.1 --listed-incremental=db.1 directory
23506
23507 sleep 2
23508
23509 # Remove directory b and create a file with this name.
23510 # Previous versions were not able to restore over this file.
23511 rm -r directory/b
23512 genfile --file directory/b
23513 genfile --file directory/a/b
23514
23515 echo Second backup
23516 tar --create --file=archive.2 --listed-incremental=db.2 directory
23517
23518 # Delete a
23519 rm -r directory
23520
23521 echo Restore archive.1
23522 tar -xf archive.1 --listed-incremental=/dev/null
23523 echo Restore archive.2
23524 tar -xf archive.2 --listed-incremental=/dev/null
23525 find directory | sort
23526 ) ) >"$at_stdout" 2>"$at_stderr"
23527 fi
23528 at_status=$?
23529 at_failed=false
23530 at_func_diff_devnull "$at_stderr" || at_failed=:
23531 echo >>"$at_stdout"; $as_echo "First backup
23532 Second backup
23533 Restore archive.1
23534 Restore archive.2
23535 directory
23536 directory/a
23537 directory/a/a
23538 directory/a/b
23539 directory/b
23540 " | \
23541   $at_diff - "$at_stdout" || at_failed=:
23542 at_func_check_status 0 $at_status "$at_srcdir/chtype.at:30"
23543
23544 $at_failed && at_func_log_failure
23545 $at_traceon; }
23546
23547
23548
23549
23550   $at_traceoff
23551   $at_times_p && times >"$at_times_file"
23552 ) 5>&1 2>&1 | eval $at_tee_pipe
23553 at_status=`cat "$at_status_file"`
23554 #AT_STOP_52
23555 #AT_START_53
23556 # 53. ignfail.at:23: ignfail
23557 at_setup_line='ignfail.at:23'
23558 at_desc="ignfail"
23559 $at_quiet $as_echo_n " 53: $at_desc                                        "
23560 at_xfail=no
23561       test -f $XFAILFILE && at_xfail=yes
23562 echo "#                             -*- compilation -*-" >> "$at_group_log"
23563 (
23564   $as_echo "53. ignfail.at:23: testing ..."
23565   $at_traceon
23566
23567
23568
23569
23570
23571   { $at_traceoff
23572 $as_echo "$at_srcdir/ignfail.at:26:
23573 mkdir v7
23574 (cd v7
23575 TEST_TAR_FORMAT=v7
23576 export TEST_TAR_FORMAT
23577 TAR_OPTIONS=\"-H v7\"
23578 export TAR_OPTIONS
23579 rm -rf *
23580
23581 # The test is meaningless for super-user.
23582
23583 echo "test" > $$
23584 chmod 0 $$
23585 cat $$ > /dev/null 2>&1
23586 result=$?
23587 rm -f $$
23588 test $result -eq 0 && exit 77
23589
23590
23591 touch file
23592 mkdir directory
23593 touch directory/file
23594
23595 echo 1>&2 -----
23596 chmod 000 file
23597 tar cf archive file
23598 status=\$?
23599 chmod 600 file
23600 test \$status = 2 || exit 1
23601
23602 echo 1>&2 -----
23603 chmod 000 file
23604 tar cf archive --ignore-failed-read file || exit 1
23605 status=\$?
23606 chmod 600 file
23607 test \$status = 0 || exit 1
23608
23609 echo 1>&2 -----
23610 chmod 000 directory
23611 tar cf archive directory
23612 status=\$?
23613 chmod 700 directory
23614 test \$status = 2 || exit 1
23615
23616 echo 1>&2 -----
23617 chmod 000 directory
23618 tar cf archive --ignore-failed-read directory || exit 1
23619 status=\$?
23620 chmod 700 directory
23621 test \$status = 0
23622 )"
23623 echo ignfail.at:26 >"$at_check_line_file"
23624
23625 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
23626    false; }; then
23627   ( $at_traceon;
23628 mkdir v7
23629 (cd v7
23630 TEST_TAR_FORMAT=v7
23631 export TEST_TAR_FORMAT
23632 TAR_OPTIONS="-H v7"
23633 export TAR_OPTIONS
23634 rm -rf *
23635
23636 # The test is meaningless for super-user.
23637
23638 echo "test" > $$
23639 chmod 0 $$
23640 cat $$ > /dev/null 2>&1
23641 result=$?
23642 rm -f $$
23643 test $result -eq 0 && exit 77
23644
23645
23646 touch file
23647 mkdir directory
23648 touch directory/file
23649
23650 echo 1>&2 -----
23651 chmod 000 file
23652 tar cf archive file
23653 status=$?
23654 chmod 600 file
23655 test $status = 2 || exit 1
23656
23657 echo 1>&2 -----
23658 chmod 000 file
23659 tar cf archive --ignore-failed-read file || exit 1
23660 status=$?
23661 chmod 600 file
23662 test $status = 0 || exit 1
23663
23664 echo 1>&2 -----
23665 chmod 000 directory
23666 tar cf archive directory
23667 status=$?
23668 chmod 700 directory
23669 test $status = 2 || exit 1
23670
23671 echo 1>&2 -----
23672 chmod 000 directory
23673 tar cf archive --ignore-failed-read directory || exit 1
23674 status=$?
23675 chmod 700 directory
23676 test $status = 0
23677 ) ) >"$at_stdout" 2>"$at_stder1"
23678   at_func_filter_trace $?
23679 else
23680   ( :;
23681 mkdir v7
23682 (cd v7
23683 TEST_TAR_FORMAT=v7
23684 export TEST_TAR_FORMAT
23685 TAR_OPTIONS="-H v7"
23686 export TAR_OPTIONS
23687 rm -rf *
23688
23689 # The test is meaningless for super-user.
23690
23691 echo "test" > $$
23692 chmod 0 $$
23693 cat $$ > /dev/null 2>&1
23694 result=$?
23695 rm -f $$
23696 test $result -eq 0 && exit 77
23697
23698
23699 touch file
23700 mkdir directory
23701 touch directory/file
23702
23703 echo 1>&2 -----
23704 chmod 000 file
23705 tar cf archive file
23706 status=$?
23707 chmod 600 file
23708 test $status = 2 || exit 1
23709
23710 echo 1>&2 -----
23711 chmod 000 file
23712 tar cf archive --ignore-failed-read file || exit 1
23713 status=$?
23714 chmod 600 file
23715 test $status = 0 || exit 1
23716
23717 echo 1>&2 -----
23718 chmod 000 directory
23719 tar cf archive directory
23720 status=$?
23721 chmod 700 directory
23722 test $status = 2 || exit 1
23723
23724 echo 1>&2 -----
23725 chmod 000 directory
23726 tar cf archive --ignore-failed-read directory || exit 1
23727 status=$?
23728 chmod 700 directory
23729 test $status = 0
23730 ) ) >"$at_stdout" 2>"$at_stderr"
23731 fi
23732 at_status=$?
23733 at_failed=false
23734 echo >>"$at_stderr"; $as_echo "-----
23735 tar: file: Cannot open: Permission denied
23736 tar: Exiting with failure status due to previous errors
23737 -----
23738 tar: file: Warning: Cannot open: Permission denied
23739 -----
23740 tar: directory: Cannot open: Permission denied
23741 tar: Exiting with failure status due to previous errors
23742 -----
23743 tar: directory: Warning: Cannot open: Permission denied
23744 " | \
23745   $at_diff - "$at_stderr" || at_failed=:
23746 at_func_diff_devnull "$at_stdout" || at_failed=:
23747 at_func_check_status 0 $at_status "$at_srcdir/ignfail.at:26"
23748
23749 $at_failed && at_func_log_failure
23750 $at_traceon; }
23751
23752               { $at_traceoff
23753 $as_echo "$at_srcdir/ignfail.at:26:
23754 mkdir oldgnu
23755 (cd oldgnu
23756 TEST_TAR_FORMAT=oldgnu
23757 export TEST_TAR_FORMAT
23758 TAR_OPTIONS=\"-H oldgnu\"
23759 export TAR_OPTIONS
23760 rm -rf *
23761
23762 # The test is meaningless for super-user.
23763
23764 echo "test" > $$
23765 chmod 0 $$
23766 cat $$ > /dev/null 2>&1
23767 result=$?
23768 rm -f $$
23769 test $result -eq 0 && exit 77
23770
23771
23772 touch file
23773 mkdir directory
23774 touch directory/file
23775
23776 echo 1>&2 -----
23777 chmod 000 file
23778 tar cf archive file
23779 status=\$?
23780 chmod 600 file
23781 test \$status = 2 || exit 1
23782
23783 echo 1>&2 -----
23784 chmod 000 file
23785 tar cf archive --ignore-failed-read file || exit 1
23786 status=\$?
23787 chmod 600 file
23788 test \$status = 0 || exit 1
23789
23790 echo 1>&2 -----
23791 chmod 000 directory
23792 tar cf archive directory
23793 status=\$?
23794 chmod 700 directory
23795 test \$status = 2 || exit 1
23796
23797 echo 1>&2 -----
23798 chmod 000 directory
23799 tar cf archive --ignore-failed-read directory || exit 1
23800 status=\$?
23801 chmod 700 directory
23802 test \$status = 0
23803 )"
23804 echo ignfail.at:26 >"$at_check_line_file"
23805
23806 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
23807    false; }; then
23808   ( $at_traceon;
23809 mkdir oldgnu
23810 (cd oldgnu
23811 TEST_TAR_FORMAT=oldgnu
23812 export TEST_TAR_FORMAT
23813 TAR_OPTIONS="-H oldgnu"
23814 export TAR_OPTIONS
23815 rm -rf *
23816
23817 # The test is meaningless for super-user.
23818
23819 echo "test" > $$
23820 chmod 0 $$
23821 cat $$ > /dev/null 2>&1
23822 result=$?
23823 rm -f $$
23824 test $result -eq 0 && exit 77
23825
23826
23827 touch file
23828 mkdir directory
23829 touch directory/file
23830
23831 echo 1>&2 -----
23832 chmod 000 file
23833 tar cf archive file
23834 status=$?
23835 chmod 600 file
23836 test $status = 2 || exit 1
23837
23838 echo 1>&2 -----
23839 chmod 000 file
23840 tar cf archive --ignore-failed-read file || exit 1
23841 status=$?
23842 chmod 600 file
23843 test $status = 0 || exit 1
23844
23845 echo 1>&2 -----
23846 chmod 000 directory
23847 tar cf archive directory
23848 status=$?
23849 chmod 700 directory
23850 test $status = 2 || exit 1
23851
23852 echo 1>&2 -----
23853 chmod 000 directory
23854 tar cf archive --ignore-failed-read directory || exit 1
23855 status=$?
23856 chmod 700 directory
23857 test $status = 0
23858 ) ) >"$at_stdout" 2>"$at_stder1"
23859   at_func_filter_trace $?
23860 else
23861   ( :;
23862 mkdir oldgnu
23863 (cd oldgnu
23864 TEST_TAR_FORMAT=oldgnu
23865 export TEST_TAR_FORMAT
23866 TAR_OPTIONS="-H oldgnu"
23867 export TAR_OPTIONS
23868 rm -rf *
23869
23870 # The test is meaningless for super-user.
23871
23872 echo "test" > $$
23873 chmod 0 $$
23874 cat $$ > /dev/null 2>&1
23875 result=$?
23876 rm -f $$
23877 test $result -eq 0 && exit 77
23878
23879
23880 touch file
23881 mkdir directory
23882 touch directory/file
23883
23884 echo 1>&2 -----
23885 chmod 000 file
23886 tar cf archive file
23887 status=$?
23888 chmod 600 file
23889 test $status = 2 || exit 1
23890
23891 echo 1>&2 -----
23892 chmod 000 file
23893 tar cf archive --ignore-failed-read file || exit 1
23894 status=$?
23895 chmod 600 file
23896 test $status = 0 || exit 1
23897
23898 echo 1>&2 -----
23899 chmod 000 directory
23900 tar cf archive directory
23901 status=$?
23902 chmod 700 directory
23903 test $status = 2 || exit 1
23904
23905 echo 1>&2 -----
23906 chmod 000 directory
23907 tar cf archive --ignore-failed-read directory || exit 1
23908 status=$?
23909 chmod 700 directory
23910 test $status = 0
23911 ) ) >"$at_stdout" 2>"$at_stderr"
23912 fi
23913 at_status=$?
23914 at_failed=false
23915 echo >>"$at_stderr"; $as_echo "-----
23916 tar: file: Cannot open: Permission denied
23917 tar: Exiting with failure status due to previous errors
23918 -----
23919 tar: file: Warning: Cannot open: Permission denied
23920 -----
23921 tar: directory: Cannot open: Permission denied
23922 tar: Exiting with failure status due to previous errors
23923 -----
23924 tar: directory: Warning: Cannot open: Permission denied
23925 " | \
23926   $at_diff - "$at_stderr" || at_failed=:
23927 at_func_diff_devnull "$at_stdout" || at_failed=:
23928 at_func_check_status 0 $at_status "$at_srcdir/ignfail.at:26"
23929
23930 $at_failed && at_func_log_failure
23931 $at_traceon; }
23932
23933               { $at_traceoff
23934 $as_echo "$at_srcdir/ignfail.at:26:
23935 mkdir ustar
23936 (cd ustar
23937 TEST_TAR_FORMAT=ustar
23938 export TEST_TAR_FORMAT
23939 TAR_OPTIONS=\"-H ustar\"
23940 export TAR_OPTIONS
23941 rm -rf *
23942
23943 # The test is meaningless for super-user.
23944
23945 echo "test" > $$
23946 chmod 0 $$
23947 cat $$ > /dev/null 2>&1
23948 result=$?
23949 rm -f $$
23950 test $result -eq 0 && exit 77
23951
23952
23953 touch file
23954 mkdir directory
23955 touch directory/file
23956
23957 echo 1>&2 -----
23958 chmod 000 file
23959 tar cf archive file
23960 status=\$?
23961 chmod 600 file
23962 test \$status = 2 || exit 1
23963
23964 echo 1>&2 -----
23965 chmod 000 file
23966 tar cf archive --ignore-failed-read file || exit 1
23967 status=\$?
23968 chmod 600 file
23969 test \$status = 0 || exit 1
23970
23971 echo 1>&2 -----
23972 chmod 000 directory
23973 tar cf archive directory
23974 status=\$?
23975 chmod 700 directory
23976 test \$status = 2 || exit 1
23977
23978 echo 1>&2 -----
23979 chmod 000 directory
23980 tar cf archive --ignore-failed-read directory || exit 1
23981 status=\$?
23982 chmod 700 directory
23983 test \$status = 0
23984 )"
23985 echo ignfail.at:26 >"$at_check_line_file"
23986
23987 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
23988    false; }; then
23989   ( $at_traceon;
23990 mkdir ustar
23991 (cd ustar
23992 TEST_TAR_FORMAT=ustar
23993 export TEST_TAR_FORMAT
23994 TAR_OPTIONS="-H ustar"
23995 export TAR_OPTIONS
23996 rm -rf *
23997
23998 # The test is meaningless for super-user.
23999
24000 echo "test" > $$
24001 chmod 0 $$
24002 cat $$ > /dev/null 2>&1
24003 result=$?
24004 rm -f $$
24005 test $result -eq 0 && exit 77
24006
24007
24008 touch file
24009 mkdir directory
24010 touch directory/file
24011
24012 echo 1>&2 -----
24013 chmod 000 file
24014 tar cf archive file
24015 status=$?
24016 chmod 600 file
24017 test $status = 2 || exit 1
24018
24019 echo 1>&2 -----
24020 chmod 000 file
24021 tar cf archive --ignore-failed-read file || exit 1
24022 status=$?
24023 chmod 600 file
24024 test $status = 0 || exit 1
24025
24026 echo 1>&2 -----
24027 chmod 000 directory
24028 tar cf archive directory
24029 status=$?
24030 chmod 700 directory
24031 test $status = 2 || exit 1
24032
24033 echo 1>&2 -----
24034 chmod 000 directory
24035 tar cf archive --ignore-failed-read directory || exit 1
24036 status=$?
24037 chmod 700 directory
24038 test $status = 0
24039 ) ) >"$at_stdout" 2>"$at_stder1"
24040   at_func_filter_trace $?
24041 else
24042   ( :;
24043 mkdir ustar
24044 (cd ustar
24045 TEST_TAR_FORMAT=ustar
24046 export TEST_TAR_FORMAT
24047 TAR_OPTIONS="-H ustar"
24048 export TAR_OPTIONS
24049 rm -rf *
24050
24051 # The test is meaningless for super-user.
24052
24053 echo "test" > $$
24054 chmod 0 $$
24055 cat $$ > /dev/null 2>&1
24056 result=$?
24057 rm -f $$
24058 test $result -eq 0 && exit 77
24059
24060
24061 touch file
24062 mkdir directory
24063 touch directory/file
24064
24065 echo 1>&2 -----
24066 chmod 000 file
24067 tar cf archive file
24068 status=$?
24069 chmod 600 file
24070 test $status = 2 || exit 1
24071
24072 echo 1>&2 -----
24073 chmod 000 file
24074 tar cf archive --ignore-failed-read file || exit 1
24075 status=$?
24076 chmod 600 file
24077 test $status = 0 || exit 1
24078
24079 echo 1>&2 -----
24080 chmod 000 directory
24081 tar cf archive directory
24082 status=$?
24083 chmod 700 directory
24084 test $status = 2 || exit 1
24085
24086 echo 1>&2 -----
24087 chmod 000 directory
24088 tar cf archive --ignore-failed-read directory || exit 1
24089 status=$?
24090 chmod 700 directory
24091 test $status = 0
24092 ) ) >"$at_stdout" 2>"$at_stderr"
24093 fi
24094 at_status=$?
24095 at_failed=false
24096 echo >>"$at_stderr"; $as_echo "-----
24097 tar: file: Cannot open: Permission denied
24098 tar: Exiting with failure status due to previous errors
24099 -----
24100 tar: file: Warning: Cannot open: Permission denied
24101 -----
24102 tar: directory: Cannot open: Permission denied
24103 tar: Exiting with failure status due to previous errors
24104 -----
24105 tar: directory: Warning: Cannot open: Permission denied
24106 " | \
24107   $at_diff - "$at_stderr" || at_failed=:
24108 at_func_diff_devnull "$at_stdout" || at_failed=:
24109 at_func_check_status 0 $at_status "$at_srcdir/ignfail.at:26"
24110
24111 $at_failed && at_func_log_failure
24112 $at_traceon; }
24113
24114               { $at_traceoff
24115 $as_echo "$at_srcdir/ignfail.at:26:
24116 mkdir posix
24117 (cd posix
24118 TEST_TAR_FORMAT=posix
24119 export TEST_TAR_FORMAT
24120 TAR_OPTIONS=\"-H posix\"
24121 export TAR_OPTIONS
24122 rm -rf *
24123
24124 # The test is meaningless for super-user.
24125
24126 echo "test" > $$
24127 chmod 0 $$
24128 cat $$ > /dev/null 2>&1
24129 result=$?
24130 rm -f $$
24131 test $result -eq 0 && exit 77
24132
24133
24134 touch file
24135 mkdir directory
24136 touch directory/file
24137
24138 echo 1>&2 -----
24139 chmod 000 file
24140 tar cf archive file
24141 status=\$?
24142 chmod 600 file
24143 test \$status = 2 || exit 1
24144
24145 echo 1>&2 -----
24146 chmod 000 file
24147 tar cf archive --ignore-failed-read file || exit 1
24148 status=\$?
24149 chmod 600 file
24150 test \$status = 0 || exit 1
24151
24152 echo 1>&2 -----
24153 chmod 000 directory
24154 tar cf archive directory
24155 status=\$?
24156 chmod 700 directory
24157 test \$status = 2 || exit 1
24158
24159 echo 1>&2 -----
24160 chmod 000 directory
24161 tar cf archive --ignore-failed-read directory || exit 1
24162 status=\$?
24163 chmod 700 directory
24164 test \$status = 0
24165 )"
24166 echo ignfail.at:26 >"$at_check_line_file"
24167
24168 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
24169    false; }; then
24170   ( $at_traceon;
24171 mkdir posix
24172 (cd posix
24173 TEST_TAR_FORMAT=posix
24174 export TEST_TAR_FORMAT
24175 TAR_OPTIONS="-H posix"
24176 export TAR_OPTIONS
24177 rm -rf *
24178
24179 # The test is meaningless for super-user.
24180
24181 echo "test" > $$
24182 chmod 0 $$
24183 cat $$ > /dev/null 2>&1
24184 result=$?
24185 rm -f $$
24186 test $result -eq 0 && exit 77
24187
24188
24189 touch file
24190 mkdir directory
24191 touch directory/file
24192
24193 echo 1>&2 -----
24194 chmod 000 file
24195 tar cf archive file
24196 status=$?
24197 chmod 600 file
24198 test $status = 2 || exit 1
24199
24200 echo 1>&2 -----
24201 chmod 000 file
24202 tar cf archive --ignore-failed-read file || exit 1
24203 status=$?
24204 chmod 600 file
24205 test $status = 0 || exit 1
24206
24207 echo 1>&2 -----
24208 chmod 000 directory
24209 tar cf archive directory
24210 status=$?
24211 chmod 700 directory
24212 test $status = 2 || exit 1
24213
24214 echo 1>&2 -----
24215 chmod 000 directory
24216 tar cf archive --ignore-failed-read directory || exit 1
24217 status=$?
24218 chmod 700 directory
24219 test $status = 0
24220 ) ) >"$at_stdout" 2>"$at_stder1"
24221   at_func_filter_trace $?
24222 else
24223   ( :;
24224 mkdir posix
24225 (cd posix
24226 TEST_TAR_FORMAT=posix
24227 export TEST_TAR_FORMAT
24228 TAR_OPTIONS="-H posix"
24229 export TAR_OPTIONS
24230 rm -rf *
24231
24232 # The test is meaningless for super-user.
24233
24234 echo "test" > $$
24235 chmod 0 $$
24236 cat $$ > /dev/null 2>&1
24237 result=$?
24238 rm -f $$
24239 test $result -eq 0 && exit 77
24240
24241
24242 touch file
24243 mkdir directory
24244 touch directory/file
24245
24246 echo 1>&2 -----
24247 chmod 000 file
24248 tar cf archive file
24249 status=$?
24250 chmod 600 file
24251 test $status = 2 || exit 1
24252
24253 echo 1>&2 -----
24254 chmod 000 file
24255 tar cf archive --ignore-failed-read file || exit 1
24256 status=$?
24257 chmod 600 file
24258 test $status = 0 || exit 1
24259
24260 echo 1>&2 -----
24261 chmod 000 directory
24262 tar cf archive directory
24263 status=$?
24264 chmod 700 directory
24265 test $status = 2 || exit 1
24266
24267 echo 1>&2 -----
24268 chmod 000 directory
24269 tar cf archive --ignore-failed-read directory || exit 1
24270 status=$?
24271 chmod 700 directory
24272 test $status = 0
24273 ) ) >"$at_stdout" 2>"$at_stderr"
24274 fi
24275 at_status=$?
24276 at_failed=false
24277 echo >>"$at_stderr"; $as_echo "-----
24278 tar: file: Cannot open: Permission denied
24279 tar: Exiting with failure status due to previous errors
24280 -----
24281 tar: file: Warning: Cannot open: Permission denied
24282 -----
24283 tar: directory: Cannot open: Permission denied
24284 tar: Exiting with failure status due to previous errors
24285 -----
24286 tar: directory: Warning: Cannot open: Permission denied
24287 " | \
24288   $at_diff - "$at_stderr" || at_failed=:
24289 at_func_diff_devnull "$at_stdout" || at_failed=:
24290 at_func_check_status 0 $at_status "$at_srcdir/ignfail.at:26"
24291
24292 $at_failed && at_func_log_failure
24293 $at_traceon; }
24294
24295               { $at_traceoff
24296 $as_echo "$at_srcdir/ignfail.at:26:
24297 mkdir gnu
24298 (cd gnu
24299 TEST_TAR_FORMAT=gnu
24300 export TEST_TAR_FORMAT
24301 TAR_OPTIONS=\"-H gnu\"
24302 export TAR_OPTIONS
24303 rm -rf *
24304
24305 # The test is meaningless for super-user.
24306
24307 echo "test" > $$
24308 chmod 0 $$
24309 cat $$ > /dev/null 2>&1
24310 result=$?
24311 rm -f $$
24312 test $result -eq 0 && exit 77
24313
24314
24315 touch file
24316 mkdir directory
24317 touch directory/file
24318
24319 echo 1>&2 -----
24320 chmod 000 file
24321 tar cf archive file
24322 status=\$?
24323 chmod 600 file
24324 test \$status = 2 || exit 1
24325
24326 echo 1>&2 -----
24327 chmod 000 file
24328 tar cf archive --ignore-failed-read file || exit 1
24329 status=\$?
24330 chmod 600 file
24331 test \$status = 0 || exit 1
24332
24333 echo 1>&2 -----
24334 chmod 000 directory
24335 tar cf archive directory
24336 status=\$?
24337 chmod 700 directory
24338 test \$status = 2 || exit 1
24339
24340 echo 1>&2 -----
24341 chmod 000 directory
24342 tar cf archive --ignore-failed-read directory || exit 1
24343 status=\$?
24344 chmod 700 directory
24345 test \$status = 0
24346 )"
24347 echo ignfail.at:26 >"$at_check_line_file"
24348
24349 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
24350    false; }; then
24351   ( $at_traceon;
24352 mkdir gnu
24353 (cd gnu
24354 TEST_TAR_FORMAT=gnu
24355 export TEST_TAR_FORMAT
24356 TAR_OPTIONS="-H gnu"
24357 export TAR_OPTIONS
24358 rm -rf *
24359
24360 # The test is meaningless for super-user.
24361
24362 echo "test" > $$
24363 chmod 0 $$
24364 cat $$ > /dev/null 2>&1
24365 result=$?
24366 rm -f $$
24367 test $result -eq 0 && exit 77
24368
24369
24370 touch file
24371 mkdir directory
24372 touch directory/file
24373
24374 echo 1>&2 -----
24375 chmod 000 file
24376 tar cf archive file
24377 status=$?
24378 chmod 600 file
24379 test $status = 2 || exit 1
24380
24381 echo 1>&2 -----
24382 chmod 000 file
24383 tar cf archive --ignore-failed-read file || exit 1
24384 status=$?
24385 chmod 600 file
24386 test $status = 0 || exit 1
24387
24388 echo 1>&2 -----
24389 chmod 000 directory
24390 tar cf archive directory
24391 status=$?
24392 chmod 700 directory
24393 test $status = 2 || exit 1
24394
24395 echo 1>&2 -----
24396 chmod 000 directory
24397 tar cf archive --ignore-failed-read directory || exit 1
24398 status=$?
24399 chmod 700 directory
24400 test $status = 0
24401 ) ) >"$at_stdout" 2>"$at_stder1"
24402   at_func_filter_trace $?
24403 else
24404   ( :;
24405 mkdir gnu
24406 (cd gnu
24407 TEST_TAR_FORMAT=gnu
24408 export TEST_TAR_FORMAT
24409 TAR_OPTIONS="-H gnu"
24410 export TAR_OPTIONS
24411 rm -rf *
24412
24413 # The test is meaningless for super-user.
24414
24415 echo "test" > $$
24416 chmod 0 $$
24417 cat $$ > /dev/null 2>&1
24418 result=$?
24419 rm -f $$
24420 test $result -eq 0 && exit 77
24421
24422
24423 touch file
24424 mkdir directory
24425 touch directory/file
24426
24427 echo 1>&2 -----
24428 chmod 000 file
24429 tar cf archive file
24430 status=$?
24431 chmod 600 file
24432 test $status = 2 || exit 1
24433
24434 echo 1>&2 -----
24435 chmod 000 file
24436 tar cf archive --ignore-failed-read file || exit 1
24437 status=$?
24438 chmod 600 file
24439 test $status = 0 || exit 1
24440
24441 echo 1>&2 -----
24442 chmod 000 directory
24443 tar cf archive directory
24444 status=$?
24445 chmod 700 directory
24446 test $status = 2 || exit 1
24447
24448 echo 1>&2 -----
24449 chmod 000 directory
24450 tar cf archive --ignore-failed-read directory || exit 1
24451 status=$?
24452 chmod 700 directory
24453 test $status = 0
24454 ) ) >"$at_stdout" 2>"$at_stderr"
24455 fi
24456 at_status=$?
24457 at_failed=false
24458 echo >>"$at_stderr"; $as_echo "-----
24459 tar: file: Cannot open: Permission denied
24460 tar: Exiting with failure status due to previous errors
24461 -----
24462 tar: file: Warning: Cannot open: Permission denied
24463 -----
24464 tar: directory: Cannot open: Permission denied
24465 tar: Exiting with failure status due to previous errors
24466 -----
24467 tar: directory: Warning: Cannot open: Permission denied
24468 " | \
24469   $at_diff - "$at_stderr" || at_failed=:
24470 at_func_diff_devnull "$at_stdout" || at_failed=:
24471 at_func_check_status 0 $at_status "$at_srcdir/ignfail.at:26"
24472
24473 $at_failed && at_func_log_failure
24474 $at_traceon; }
24475
24476
24477
24478
24479   $at_traceoff
24480   $at_times_p && times >"$at_times_file"
24481 ) 5>&1 2>&1 | eval $at_tee_pipe
24482 at_status=`cat "$at_status_file"`
24483 #AT_STOP_53
24484 #AT_START_54
24485 # 54. link01.at:33: link count gt 2
24486 at_setup_line='link01.at:33'
24487 at_desc="link count gt 2"
24488 $at_quiet $as_echo_n " 54: $at_desc                                "
24489 at_xfail=no
24490       test -f $XFAILFILE && at_xfail=yes
24491 echo "#                             -*- compilation -*-" >> "$at_group_log"
24492 (
24493   $as_echo "54. link01.at:33: testing ..."
24494   $at_traceon
24495
24496
24497
24498
24499
24500   { $at_traceoff
24501 $as_echo "$at_srcdir/link01.at:36:
24502 mkdir v7
24503 (cd v7
24504 TEST_TAR_FORMAT=v7
24505 export TEST_TAR_FORMAT
24506 TAR_OPTIONS=\"-H v7\"
24507 export TAR_OPTIONS
24508 rm -rf *
24509
24510 mkdir directory
24511 mkdir directory/test1
24512 mkdir directory/test2
24513
24514 echo TEST > directory/test1/test.txt
24515 ln directory/test1/test.txt directory/test2/test.txt || exit 77
24516
24517 tar cf archive directory/test1/test.txt directory/test1/test.txt
24518
24519 rm -r directory
24520 tar xf archive
24521
24522 ls directory/test1
24523 )"
24524 echo link01.at:36 >"$at_check_line_file"
24525
24526 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
24527    false; }; then
24528   ( $at_traceon;
24529 mkdir v7
24530 (cd v7
24531 TEST_TAR_FORMAT=v7
24532 export TEST_TAR_FORMAT
24533 TAR_OPTIONS="-H v7"
24534 export TAR_OPTIONS
24535 rm -rf *
24536
24537 mkdir directory
24538 mkdir directory/test1
24539 mkdir directory/test2
24540
24541 echo TEST > directory/test1/test.txt
24542 ln directory/test1/test.txt directory/test2/test.txt || exit 77
24543
24544 tar cf archive directory/test1/test.txt directory/test1/test.txt
24545
24546 rm -r directory
24547 tar xf archive
24548
24549 ls directory/test1
24550 ) ) >"$at_stdout" 2>"$at_stder1"
24551   at_func_filter_trace $?
24552 else
24553   ( :;
24554 mkdir v7
24555 (cd v7
24556 TEST_TAR_FORMAT=v7
24557 export TEST_TAR_FORMAT
24558 TAR_OPTIONS="-H v7"
24559 export TAR_OPTIONS
24560 rm -rf *
24561
24562 mkdir directory
24563 mkdir directory/test1
24564 mkdir directory/test2
24565
24566 echo TEST > directory/test1/test.txt
24567 ln directory/test1/test.txt directory/test2/test.txt || exit 77
24568
24569 tar cf archive directory/test1/test.txt directory/test1/test.txt
24570
24571 rm -r directory
24572 tar xf archive
24573
24574 ls directory/test1
24575 ) ) >"$at_stdout" 2>"$at_stderr"
24576 fi
24577 at_status=$?
24578 at_failed=false
24579 at_func_diff_devnull "$at_stderr" || at_failed=:
24580 echo >>"$at_stdout"; $as_echo "test.txt
24581 " | \
24582   $at_diff - "$at_stdout" || at_failed=:
24583 at_func_check_status 0 $at_status "$at_srcdir/link01.at:36"
24584
24585 $at_failed && at_func_log_failure
24586 $at_traceon; }
24587
24588               { $at_traceoff
24589 $as_echo "$at_srcdir/link01.at:36:
24590 mkdir oldgnu
24591 (cd oldgnu
24592 TEST_TAR_FORMAT=oldgnu
24593 export TEST_TAR_FORMAT
24594 TAR_OPTIONS=\"-H oldgnu\"
24595 export TAR_OPTIONS
24596 rm -rf *
24597
24598 mkdir directory
24599 mkdir directory/test1
24600 mkdir directory/test2
24601
24602 echo TEST > directory/test1/test.txt
24603 ln directory/test1/test.txt directory/test2/test.txt || exit 77
24604
24605 tar cf archive directory/test1/test.txt directory/test1/test.txt
24606
24607 rm -r directory
24608 tar xf archive
24609
24610 ls directory/test1
24611 )"
24612 echo link01.at:36 >"$at_check_line_file"
24613
24614 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
24615    false; }; then
24616   ( $at_traceon;
24617 mkdir oldgnu
24618 (cd oldgnu
24619 TEST_TAR_FORMAT=oldgnu
24620 export TEST_TAR_FORMAT
24621 TAR_OPTIONS="-H oldgnu"
24622 export TAR_OPTIONS
24623 rm -rf *
24624
24625 mkdir directory
24626 mkdir directory/test1
24627 mkdir directory/test2
24628
24629 echo TEST > directory/test1/test.txt
24630 ln directory/test1/test.txt directory/test2/test.txt || exit 77
24631
24632 tar cf archive directory/test1/test.txt directory/test1/test.txt
24633
24634 rm -r directory
24635 tar xf archive
24636
24637 ls directory/test1
24638 ) ) >"$at_stdout" 2>"$at_stder1"
24639   at_func_filter_trace $?
24640 else
24641   ( :;
24642 mkdir oldgnu
24643 (cd oldgnu
24644 TEST_TAR_FORMAT=oldgnu
24645 export TEST_TAR_FORMAT
24646 TAR_OPTIONS="-H oldgnu"
24647 export TAR_OPTIONS
24648 rm -rf *
24649
24650 mkdir directory
24651 mkdir directory/test1
24652 mkdir directory/test2
24653
24654 echo TEST > directory/test1/test.txt
24655 ln directory/test1/test.txt directory/test2/test.txt || exit 77
24656
24657 tar cf archive directory/test1/test.txt directory/test1/test.txt
24658
24659 rm -r directory
24660 tar xf archive
24661
24662 ls directory/test1
24663 ) ) >"$at_stdout" 2>"$at_stderr"
24664 fi
24665 at_status=$?
24666 at_failed=false
24667 at_func_diff_devnull "$at_stderr" || at_failed=:
24668 echo >>"$at_stdout"; $as_echo "test.txt
24669 " | \
24670   $at_diff - "$at_stdout" || at_failed=:
24671 at_func_check_status 0 $at_status "$at_srcdir/link01.at:36"
24672
24673 $at_failed && at_func_log_failure
24674 $at_traceon; }
24675
24676               { $at_traceoff
24677 $as_echo "$at_srcdir/link01.at:36:
24678 mkdir ustar
24679 (cd ustar
24680 TEST_TAR_FORMAT=ustar
24681 export TEST_TAR_FORMAT
24682 TAR_OPTIONS=\"-H ustar\"
24683 export TAR_OPTIONS
24684 rm -rf *
24685
24686 mkdir directory
24687 mkdir directory/test1
24688 mkdir directory/test2
24689
24690 echo TEST > directory/test1/test.txt
24691 ln directory/test1/test.txt directory/test2/test.txt || exit 77
24692
24693 tar cf archive directory/test1/test.txt directory/test1/test.txt
24694
24695 rm -r directory
24696 tar xf archive
24697
24698 ls directory/test1
24699 )"
24700 echo link01.at:36 >"$at_check_line_file"
24701
24702 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
24703    false; }; then
24704   ( $at_traceon;
24705 mkdir ustar
24706 (cd ustar
24707 TEST_TAR_FORMAT=ustar
24708 export TEST_TAR_FORMAT
24709 TAR_OPTIONS="-H ustar"
24710 export TAR_OPTIONS
24711 rm -rf *
24712
24713 mkdir directory
24714 mkdir directory/test1
24715 mkdir directory/test2
24716
24717 echo TEST > directory/test1/test.txt
24718 ln directory/test1/test.txt directory/test2/test.txt || exit 77
24719
24720 tar cf archive directory/test1/test.txt directory/test1/test.txt
24721
24722 rm -r directory
24723 tar xf archive
24724
24725 ls directory/test1
24726 ) ) >"$at_stdout" 2>"$at_stder1"
24727   at_func_filter_trace $?
24728 else
24729   ( :;
24730 mkdir ustar
24731 (cd ustar
24732 TEST_TAR_FORMAT=ustar
24733 export TEST_TAR_FORMAT
24734 TAR_OPTIONS="-H ustar"
24735 export TAR_OPTIONS
24736 rm -rf *
24737
24738 mkdir directory
24739 mkdir directory/test1
24740 mkdir directory/test2
24741
24742 echo TEST > directory/test1/test.txt
24743 ln directory/test1/test.txt directory/test2/test.txt || exit 77
24744
24745 tar cf archive directory/test1/test.txt directory/test1/test.txt
24746
24747 rm -r directory
24748 tar xf archive
24749
24750 ls directory/test1
24751 ) ) >"$at_stdout" 2>"$at_stderr"
24752 fi
24753 at_status=$?
24754 at_failed=false
24755 at_func_diff_devnull "$at_stderr" || at_failed=:
24756 echo >>"$at_stdout"; $as_echo "test.txt
24757 " | \
24758   $at_diff - "$at_stdout" || at_failed=:
24759 at_func_check_status 0 $at_status "$at_srcdir/link01.at:36"
24760
24761 $at_failed && at_func_log_failure
24762 $at_traceon; }
24763
24764               { $at_traceoff
24765 $as_echo "$at_srcdir/link01.at:36:
24766 mkdir posix
24767 (cd posix
24768 TEST_TAR_FORMAT=posix
24769 export TEST_TAR_FORMAT
24770 TAR_OPTIONS=\"-H posix\"
24771 export TAR_OPTIONS
24772 rm -rf *
24773
24774 mkdir directory
24775 mkdir directory/test1
24776 mkdir directory/test2
24777
24778 echo TEST > directory/test1/test.txt
24779 ln directory/test1/test.txt directory/test2/test.txt || exit 77
24780
24781 tar cf archive directory/test1/test.txt directory/test1/test.txt
24782
24783 rm -r directory
24784 tar xf archive
24785
24786 ls directory/test1
24787 )"
24788 echo link01.at:36 >"$at_check_line_file"
24789
24790 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
24791    false; }; then
24792   ( $at_traceon;
24793 mkdir posix
24794 (cd posix
24795 TEST_TAR_FORMAT=posix
24796 export TEST_TAR_FORMAT
24797 TAR_OPTIONS="-H posix"
24798 export TAR_OPTIONS
24799 rm -rf *
24800
24801 mkdir directory
24802 mkdir directory/test1
24803 mkdir directory/test2
24804
24805 echo TEST > directory/test1/test.txt
24806 ln directory/test1/test.txt directory/test2/test.txt || exit 77
24807
24808 tar cf archive directory/test1/test.txt directory/test1/test.txt
24809
24810 rm -r directory
24811 tar xf archive
24812
24813 ls directory/test1
24814 ) ) >"$at_stdout" 2>"$at_stder1"
24815   at_func_filter_trace $?
24816 else
24817   ( :;
24818 mkdir posix
24819 (cd posix
24820 TEST_TAR_FORMAT=posix
24821 export TEST_TAR_FORMAT
24822 TAR_OPTIONS="-H posix"
24823 export TAR_OPTIONS
24824 rm -rf *
24825
24826 mkdir directory
24827 mkdir directory/test1
24828 mkdir directory/test2
24829
24830 echo TEST > directory/test1/test.txt
24831 ln directory/test1/test.txt directory/test2/test.txt || exit 77
24832
24833 tar cf archive directory/test1/test.txt directory/test1/test.txt
24834
24835 rm -r directory
24836 tar xf archive
24837
24838 ls directory/test1
24839 ) ) >"$at_stdout" 2>"$at_stderr"
24840 fi
24841 at_status=$?
24842 at_failed=false
24843 at_func_diff_devnull "$at_stderr" || at_failed=:
24844 echo >>"$at_stdout"; $as_echo "test.txt
24845 " | \
24846   $at_diff - "$at_stdout" || at_failed=:
24847 at_func_check_status 0 $at_status "$at_srcdir/link01.at:36"
24848
24849 $at_failed && at_func_log_failure
24850 $at_traceon; }
24851
24852               { $at_traceoff
24853 $as_echo "$at_srcdir/link01.at:36:
24854 mkdir gnu
24855 (cd gnu
24856 TEST_TAR_FORMAT=gnu
24857 export TEST_TAR_FORMAT
24858 TAR_OPTIONS=\"-H gnu\"
24859 export TAR_OPTIONS
24860 rm -rf *
24861
24862 mkdir directory
24863 mkdir directory/test1
24864 mkdir directory/test2
24865
24866 echo TEST > directory/test1/test.txt
24867 ln directory/test1/test.txt directory/test2/test.txt || exit 77
24868
24869 tar cf archive directory/test1/test.txt directory/test1/test.txt
24870
24871 rm -r directory
24872 tar xf archive
24873
24874 ls directory/test1
24875 )"
24876 echo link01.at:36 >"$at_check_line_file"
24877
24878 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
24879    false; }; then
24880   ( $at_traceon;
24881 mkdir gnu
24882 (cd gnu
24883 TEST_TAR_FORMAT=gnu
24884 export TEST_TAR_FORMAT
24885 TAR_OPTIONS="-H gnu"
24886 export TAR_OPTIONS
24887 rm -rf *
24888
24889 mkdir directory
24890 mkdir directory/test1
24891 mkdir directory/test2
24892
24893 echo TEST > directory/test1/test.txt
24894 ln directory/test1/test.txt directory/test2/test.txt || exit 77
24895
24896 tar cf archive directory/test1/test.txt directory/test1/test.txt
24897
24898 rm -r directory
24899 tar xf archive
24900
24901 ls directory/test1
24902 ) ) >"$at_stdout" 2>"$at_stder1"
24903   at_func_filter_trace $?
24904 else
24905   ( :;
24906 mkdir gnu
24907 (cd gnu
24908 TEST_TAR_FORMAT=gnu
24909 export TEST_TAR_FORMAT
24910 TAR_OPTIONS="-H gnu"
24911 export TAR_OPTIONS
24912 rm -rf *
24913
24914 mkdir directory
24915 mkdir directory/test1
24916 mkdir directory/test2
24917
24918 echo TEST > directory/test1/test.txt
24919 ln directory/test1/test.txt directory/test2/test.txt || exit 77
24920
24921 tar cf archive directory/test1/test.txt directory/test1/test.txt
24922
24923 rm -r directory
24924 tar xf archive
24925
24926 ls directory/test1
24927 ) ) >"$at_stdout" 2>"$at_stderr"
24928 fi
24929 at_status=$?
24930 at_failed=false
24931 at_func_diff_devnull "$at_stderr" || at_failed=:
24932 echo >>"$at_stdout"; $as_echo "test.txt
24933 " | \
24934   $at_diff - "$at_stdout" || at_failed=:
24935 at_func_check_status 0 $at_status "$at_srcdir/link01.at:36"
24936
24937 $at_failed && at_func_log_failure
24938 $at_traceon; }
24939
24940
24941
24942
24943   $at_traceoff
24944   $at_times_p && times >"$at_times_file"
24945 ) 5>&1 2>&1 | eval $at_tee_pipe
24946 at_status=`cat "$at_status_file"`
24947 #AT_STOP_54
24948 #AT_START_55
24949 # 55. link02.at:32: preserve hard links with --remove-files
24950 at_setup_line='link02.at:32'
24951 at_desc="preserve hard links with --remove-files"
24952 $at_quiet $as_echo_n " 55: $at_desc        "
24953 at_xfail=no
24954       test -f $XFAILFILE && at_xfail=yes
24955 echo "#                             -*- compilation -*-" >> "$at_group_log"
24956 (
24957   $as_echo "55. link02.at:32: testing ..."
24958   $at_traceon
24959
24960
24961
24962
24963
24964   { $at_traceoff
24965 $as_echo "$at_srcdir/link02.at:35:
24966 mkdir v7
24967 (cd v7
24968 TEST_TAR_FORMAT=v7
24969 export TEST_TAR_FORMAT
24970 TAR_OPTIONS=\"-H v7\"
24971 export TAR_OPTIONS
24972 rm -rf *
24973
24974 genfile -l 64 -f file1
24975 link file1 file2
24976 link file2 file3
24977 link file3 file4
24978 tar -c -f archive --remove-files file1 file2 file3 file4
24979 tar tfv archive | sed -n 's/.*file[2-4] link to //p'
24980 )"
24981 echo link02.at:35 >"$at_check_line_file"
24982
24983 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
24984    false; }; then
24985   ( $at_traceon;
24986 mkdir v7
24987 (cd v7
24988 TEST_TAR_FORMAT=v7
24989 export TEST_TAR_FORMAT
24990 TAR_OPTIONS="-H v7"
24991 export TAR_OPTIONS
24992 rm -rf *
24993
24994 genfile -l 64 -f file1
24995 link file1 file2
24996 link file2 file3
24997 link file3 file4
24998 tar -c -f archive --remove-files file1 file2 file3 file4
24999 tar tfv archive | sed -n 's/.*file[2-4] link to //p'
25000 ) ) >"$at_stdout" 2>"$at_stder1"
25001   at_func_filter_trace $?
25002 else
25003   ( :;
25004 mkdir v7
25005 (cd v7
25006 TEST_TAR_FORMAT=v7
25007 export TEST_TAR_FORMAT
25008 TAR_OPTIONS="-H v7"
25009 export TAR_OPTIONS
25010 rm -rf *
25011
25012 genfile -l 64 -f file1
25013 link file1 file2
25014 link file2 file3
25015 link file3 file4
25016 tar -c -f archive --remove-files file1 file2 file3 file4
25017 tar tfv archive | sed -n 's/.*file[2-4] link to //p'
25018 ) ) >"$at_stdout" 2>"$at_stderr"
25019 fi
25020 at_status=$?
25021 at_failed=false
25022 at_func_diff_devnull "$at_stderr" || at_failed=:
25023 echo >>"$at_stdout"; $as_echo "file1
25024 file1
25025 file1
25026 " | \
25027   $at_diff - "$at_stdout" || at_failed=:
25028 at_func_check_status 0 $at_status "$at_srcdir/link02.at:35"
25029
25030 $at_failed && at_func_log_failure
25031 $at_traceon; }
25032
25033               { $at_traceoff
25034 $as_echo "$at_srcdir/link02.at:35:
25035 mkdir oldgnu
25036 (cd oldgnu
25037 TEST_TAR_FORMAT=oldgnu
25038 export TEST_TAR_FORMAT
25039 TAR_OPTIONS=\"-H oldgnu\"
25040 export TAR_OPTIONS
25041 rm -rf *
25042
25043 genfile -l 64 -f file1
25044 link file1 file2
25045 link file2 file3
25046 link file3 file4
25047 tar -c -f archive --remove-files file1 file2 file3 file4
25048 tar tfv archive | sed -n 's/.*file[2-4] link to //p'
25049 )"
25050 echo link02.at:35 >"$at_check_line_file"
25051
25052 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
25053    false; }; then
25054   ( $at_traceon;
25055 mkdir oldgnu
25056 (cd oldgnu
25057 TEST_TAR_FORMAT=oldgnu
25058 export TEST_TAR_FORMAT
25059 TAR_OPTIONS="-H oldgnu"
25060 export TAR_OPTIONS
25061 rm -rf *
25062
25063 genfile -l 64 -f file1
25064 link file1 file2
25065 link file2 file3
25066 link file3 file4
25067 tar -c -f archive --remove-files file1 file2 file3 file4
25068 tar tfv archive | sed -n 's/.*file[2-4] link to //p'
25069 ) ) >"$at_stdout" 2>"$at_stder1"
25070   at_func_filter_trace $?
25071 else
25072   ( :;
25073 mkdir oldgnu
25074 (cd oldgnu
25075 TEST_TAR_FORMAT=oldgnu
25076 export TEST_TAR_FORMAT
25077 TAR_OPTIONS="-H oldgnu"
25078 export TAR_OPTIONS
25079 rm -rf *
25080
25081 genfile -l 64 -f file1
25082 link file1 file2
25083 link file2 file3
25084 link file3 file4
25085 tar -c -f archive --remove-files file1 file2 file3 file4
25086 tar tfv archive | sed -n 's/.*file[2-4] link to //p'
25087 ) ) >"$at_stdout" 2>"$at_stderr"
25088 fi
25089 at_status=$?
25090 at_failed=false
25091 at_func_diff_devnull "$at_stderr" || at_failed=:
25092 echo >>"$at_stdout"; $as_echo "file1
25093 file1
25094 file1
25095 " | \
25096   $at_diff - "$at_stdout" || at_failed=:
25097 at_func_check_status 0 $at_status "$at_srcdir/link02.at:35"
25098
25099 $at_failed && at_func_log_failure
25100 $at_traceon; }
25101
25102               { $at_traceoff
25103 $as_echo "$at_srcdir/link02.at:35:
25104 mkdir ustar
25105 (cd ustar
25106 TEST_TAR_FORMAT=ustar
25107 export TEST_TAR_FORMAT
25108 TAR_OPTIONS=\"-H ustar\"
25109 export TAR_OPTIONS
25110 rm -rf *
25111
25112 genfile -l 64 -f file1
25113 link file1 file2
25114 link file2 file3
25115 link file3 file4
25116 tar -c -f archive --remove-files file1 file2 file3 file4
25117 tar tfv archive | sed -n 's/.*file[2-4] link to //p'
25118 )"
25119 echo link02.at:35 >"$at_check_line_file"
25120
25121 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
25122    false; }; then
25123   ( $at_traceon;
25124 mkdir ustar
25125 (cd ustar
25126 TEST_TAR_FORMAT=ustar
25127 export TEST_TAR_FORMAT
25128 TAR_OPTIONS="-H ustar"
25129 export TAR_OPTIONS
25130 rm -rf *
25131
25132 genfile -l 64 -f file1
25133 link file1 file2
25134 link file2 file3
25135 link file3 file4
25136 tar -c -f archive --remove-files file1 file2 file3 file4
25137 tar tfv archive | sed -n 's/.*file[2-4] link to //p'
25138 ) ) >"$at_stdout" 2>"$at_stder1"
25139   at_func_filter_trace $?
25140 else
25141   ( :;
25142 mkdir ustar
25143 (cd ustar
25144 TEST_TAR_FORMAT=ustar
25145 export TEST_TAR_FORMAT
25146 TAR_OPTIONS="-H ustar"
25147 export TAR_OPTIONS
25148 rm -rf *
25149
25150 genfile -l 64 -f file1
25151 link file1 file2
25152 link file2 file3
25153 link file3 file4
25154 tar -c -f archive --remove-files file1 file2 file3 file4
25155 tar tfv archive | sed -n 's/.*file[2-4] link to //p'
25156 ) ) >"$at_stdout" 2>"$at_stderr"
25157 fi
25158 at_status=$?
25159 at_failed=false
25160 at_func_diff_devnull "$at_stderr" || at_failed=:
25161 echo >>"$at_stdout"; $as_echo "file1
25162 file1
25163 file1
25164 " | \
25165   $at_diff - "$at_stdout" || at_failed=:
25166 at_func_check_status 0 $at_status "$at_srcdir/link02.at:35"
25167
25168 $at_failed && at_func_log_failure
25169 $at_traceon; }
25170
25171               { $at_traceoff
25172 $as_echo "$at_srcdir/link02.at:35:
25173 mkdir posix
25174 (cd posix
25175 TEST_TAR_FORMAT=posix
25176 export TEST_TAR_FORMAT
25177 TAR_OPTIONS=\"-H posix\"
25178 export TAR_OPTIONS
25179 rm -rf *
25180
25181 genfile -l 64 -f file1
25182 link file1 file2
25183 link file2 file3
25184 link file3 file4
25185 tar -c -f archive --remove-files file1 file2 file3 file4
25186 tar tfv archive | sed -n 's/.*file[2-4] link to //p'
25187 )"
25188 echo link02.at:35 >"$at_check_line_file"
25189
25190 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
25191    false; }; then
25192   ( $at_traceon;
25193 mkdir posix
25194 (cd posix
25195 TEST_TAR_FORMAT=posix
25196 export TEST_TAR_FORMAT
25197 TAR_OPTIONS="-H posix"
25198 export TAR_OPTIONS
25199 rm -rf *
25200
25201 genfile -l 64 -f file1
25202 link file1 file2
25203 link file2 file3
25204 link file3 file4
25205 tar -c -f archive --remove-files file1 file2 file3 file4
25206 tar tfv archive | sed -n 's/.*file[2-4] link to //p'
25207 ) ) >"$at_stdout" 2>"$at_stder1"
25208   at_func_filter_trace $?
25209 else
25210   ( :;
25211 mkdir posix
25212 (cd posix
25213 TEST_TAR_FORMAT=posix
25214 export TEST_TAR_FORMAT
25215 TAR_OPTIONS="-H posix"
25216 export TAR_OPTIONS
25217 rm -rf *
25218
25219 genfile -l 64 -f file1
25220 link file1 file2
25221 link file2 file3
25222 link file3 file4
25223 tar -c -f archive --remove-files file1 file2 file3 file4
25224 tar tfv archive | sed -n 's/.*file[2-4] link to //p'
25225 ) ) >"$at_stdout" 2>"$at_stderr"
25226 fi
25227 at_status=$?
25228 at_failed=false
25229 at_func_diff_devnull "$at_stderr" || at_failed=:
25230 echo >>"$at_stdout"; $as_echo "file1
25231 file1
25232 file1
25233 " | \
25234   $at_diff - "$at_stdout" || at_failed=:
25235 at_func_check_status 0 $at_status "$at_srcdir/link02.at:35"
25236
25237 $at_failed && at_func_log_failure
25238 $at_traceon; }
25239
25240               { $at_traceoff
25241 $as_echo "$at_srcdir/link02.at:35:
25242 mkdir gnu
25243 (cd gnu
25244 TEST_TAR_FORMAT=gnu
25245 export TEST_TAR_FORMAT
25246 TAR_OPTIONS=\"-H gnu\"
25247 export TAR_OPTIONS
25248 rm -rf *
25249
25250 genfile -l 64 -f file1
25251 link file1 file2
25252 link file2 file3
25253 link file3 file4
25254 tar -c -f archive --remove-files file1 file2 file3 file4
25255 tar tfv archive | sed -n 's/.*file[2-4] link to //p'
25256 )"
25257 echo link02.at:35 >"$at_check_line_file"
25258
25259 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
25260    false; }; then
25261   ( $at_traceon;
25262 mkdir gnu
25263 (cd gnu
25264 TEST_TAR_FORMAT=gnu
25265 export TEST_TAR_FORMAT
25266 TAR_OPTIONS="-H gnu"
25267 export TAR_OPTIONS
25268 rm -rf *
25269
25270 genfile -l 64 -f file1
25271 link file1 file2
25272 link file2 file3
25273 link file3 file4
25274 tar -c -f archive --remove-files file1 file2 file3 file4
25275 tar tfv archive | sed -n 's/.*file[2-4] link to //p'
25276 ) ) >"$at_stdout" 2>"$at_stder1"
25277   at_func_filter_trace $?
25278 else
25279   ( :;
25280 mkdir gnu
25281 (cd gnu
25282 TEST_TAR_FORMAT=gnu
25283 export TEST_TAR_FORMAT
25284 TAR_OPTIONS="-H gnu"
25285 export TAR_OPTIONS
25286 rm -rf *
25287
25288 genfile -l 64 -f file1
25289 link file1 file2
25290 link file2 file3
25291 link file3 file4
25292 tar -c -f archive --remove-files file1 file2 file3 file4
25293 tar tfv archive | sed -n 's/.*file[2-4] link to //p'
25294 ) ) >"$at_stdout" 2>"$at_stderr"
25295 fi
25296 at_status=$?
25297 at_failed=false
25298 at_func_diff_devnull "$at_stderr" || at_failed=:
25299 echo >>"$at_stdout"; $as_echo "file1
25300 file1
25301 file1
25302 " | \
25303   $at_diff - "$at_stdout" || at_failed=:
25304 at_func_check_status 0 $at_status "$at_srcdir/link02.at:35"
25305
25306 $at_failed && at_func_log_failure
25307 $at_traceon; }
25308
25309
25310
25311
25312   $at_traceoff
25313   $at_times_p && times >"$at_times_file"
25314 ) 5>&1 2>&1 | eval $at_tee_pipe
25315 at_status=`cat "$at_status_file"`
25316 #AT_STOP_55
25317 #AT_START_56
25318 # 56. link03.at:24: working -l with --remove-files
25319 at_setup_line='link03.at:24'
25320 at_desc="working -l with --remove-files"
25321 $at_quiet $as_echo_n " 56: $at_desc                 "
25322 at_xfail=no
25323       test -f $XFAILFILE && at_xfail=yes
25324 echo "#                             -*- compilation -*-" >> "$at_group_log"
25325 (
25326   $as_echo "56. link03.at:24: testing ..."
25327   $at_traceon
25328
25329
25330
25331
25332
25333
25334
25335   { $at_traceoff
25336 $as_echo "$at_srcdir/link03.at:34:
25337 mkdir v7
25338 (cd v7
25339 TEST_TAR_FORMAT=v7
25340 export TEST_TAR_FORMAT
25341 TAR_OPTIONS=\"-H v7\"
25342 export TAR_OPTIONS
25343 rm -rf *
25344
25345
25346 genfile -l 64 -f file1
25347 link file1 file2
25348 link file2 file3
25349 link file3 file4
25350
25351 echo archive.1
25352 tar -c -f archive.1 -l --remove-files file1 file2 file3 file4
25353
25354 genfile -l 64 -f file1
25355 link file1 file2
25356 link file2 file3
25357 link file3 file4
25358
25359 echo archive.2
25360 tar -c -f archive.2 -l --remove-files file1 file2 file3
25361 echo testing archive.2
25362 tar tfv archive.2 | sed -n 's/.*file[2-3] link to //p'
25363 )"
25364 echo link03.at:34 >"$at_check_line_file"
25365
25366 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
25367    false; }; then
25368   ( $at_traceon;
25369 mkdir v7
25370 (cd v7
25371 TEST_TAR_FORMAT=v7
25372 export TEST_TAR_FORMAT
25373 TAR_OPTIONS="-H v7"
25374 export TAR_OPTIONS
25375 rm -rf *
25376
25377
25378 genfile -l 64 -f file1
25379 link file1 file2
25380 link file2 file3
25381 link file3 file4
25382
25383 echo archive.1
25384 tar -c -f archive.1 -l --remove-files file1 file2 file3 file4
25385
25386 genfile -l 64 -f file1
25387 link file1 file2
25388 link file2 file3
25389 link file3 file4
25390
25391 echo archive.2
25392 tar -c -f archive.2 -l --remove-files file1 file2 file3
25393 echo testing archive.2
25394 tar tfv archive.2 | sed -n 's/.*file[2-3] link to //p'
25395 ) ) >"$at_stdout" 2>"$at_stder1"
25396   at_func_filter_trace $?
25397 else
25398   ( :;
25399 mkdir v7
25400 (cd v7
25401 TEST_TAR_FORMAT=v7
25402 export TEST_TAR_FORMAT
25403 TAR_OPTIONS="-H v7"
25404 export TAR_OPTIONS
25405 rm -rf *
25406
25407
25408 genfile -l 64 -f file1
25409 link file1 file2
25410 link file2 file3
25411 link file3 file4
25412
25413 echo archive.1
25414 tar -c -f archive.1 -l --remove-files file1 file2 file3 file4
25415
25416 genfile -l 64 -f file1
25417 link file1 file2
25418 link file2 file3
25419 link file3 file4
25420
25421 echo archive.2
25422 tar -c -f archive.2 -l --remove-files file1 file2 file3
25423 echo testing archive.2
25424 tar tfv archive.2 | sed -n 's/.*file[2-3] link to //p'
25425 ) ) >"$at_stdout" 2>"$at_stderr"
25426 fi
25427 at_status=$?
25428 at_failed=false
25429 echo >>"$at_stderr"; $as_echo "tar: Missing links to \`file1'.
25430 " | \
25431   $at_diff - "$at_stderr" || at_failed=:
25432 echo >>"$at_stdout"; $as_echo "archive.1
25433 archive.2
25434 testing archive.2
25435 file1
25436 file1
25437 " | \
25438   $at_diff - "$at_stdout" || at_failed=:
25439 at_func_check_status 0 $at_status "$at_srcdir/link03.at:34"
25440
25441 $at_failed && at_func_log_failure
25442 $at_traceon; }
25443
25444               { $at_traceoff
25445 $as_echo "$at_srcdir/link03.at:34:
25446 mkdir oldgnu
25447 (cd oldgnu
25448 TEST_TAR_FORMAT=oldgnu
25449 export TEST_TAR_FORMAT
25450 TAR_OPTIONS=\"-H oldgnu\"
25451 export TAR_OPTIONS
25452 rm -rf *
25453
25454
25455 genfile -l 64 -f file1
25456 link file1 file2
25457 link file2 file3
25458 link file3 file4
25459
25460 echo archive.1
25461 tar -c -f archive.1 -l --remove-files file1 file2 file3 file4
25462
25463 genfile -l 64 -f file1
25464 link file1 file2
25465 link file2 file3
25466 link file3 file4
25467
25468 echo archive.2
25469 tar -c -f archive.2 -l --remove-files file1 file2 file3
25470 echo testing archive.2
25471 tar tfv archive.2 | sed -n 's/.*file[2-3] link to //p'
25472 )"
25473 echo link03.at:34 >"$at_check_line_file"
25474
25475 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
25476    false; }; then
25477   ( $at_traceon;
25478 mkdir oldgnu
25479 (cd oldgnu
25480 TEST_TAR_FORMAT=oldgnu
25481 export TEST_TAR_FORMAT
25482 TAR_OPTIONS="-H oldgnu"
25483 export TAR_OPTIONS
25484 rm -rf *
25485
25486
25487 genfile -l 64 -f file1
25488 link file1 file2
25489 link file2 file3
25490 link file3 file4
25491
25492 echo archive.1
25493 tar -c -f archive.1 -l --remove-files file1 file2 file3 file4
25494
25495 genfile -l 64 -f file1
25496 link file1 file2
25497 link file2 file3
25498 link file3 file4
25499
25500 echo archive.2
25501 tar -c -f archive.2 -l --remove-files file1 file2 file3
25502 echo testing archive.2
25503 tar tfv archive.2 | sed -n 's/.*file[2-3] link to //p'
25504 ) ) >"$at_stdout" 2>"$at_stder1"
25505   at_func_filter_trace $?
25506 else
25507   ( :;
25508 mkdir oldgnu
25509 (cd oldgnu
25510 TEST_TAR_FORMAT=oldgnu
25511 export TEST_TAR_FORMAT
25512 TAR_OPTIONS="-H oldgnu"
25513 export TAR_OPTIONS
25514 rm -rf *
25515
25516
25517 genfile -l 64 -f file1
25518 link file1 file2
25519 link file2 file3
25520 link file3 file4
25521
25522 echo archive.1
25523 tar -c -f archive.1 -l --remove-files file1 file2 file3 file4
25524
25525 genfile -l 64 -f file1
25526 link file1 file2
25527 link file2 file3
25528 link file3 file4
25529
25530 echo archive.2
25531 tar -c -f archive.2 -l --remove-files file1 file2 file3
25532 echo testing archive.2
25533 tar tfv archive.2 | sed -n 's/.*file[2-3] link to //p'
25534 ) ) >"$at_stdout" 2>"$at_stderr"
25535 fi
25536 at_status=$?
25537 at_failed=false
25538 echo >>"$at_stderr"; $as_echo "tar: Missing links to \`file1'.
25539 " | \
25540   $at_diff - "$at_stderr" || at_failed=:
25541 echo >>"$at_stdout"; $as_echo "archive.1
25542 archive.2
25543 testing archive.2
25544 file1
25545 file1
25546 " | \
25547   $at_diff - "$at_stdout" || at_failed=:
25548 at_func_check_status 0 $at_status "$at_srcdir/link03.at:34"
25549
25550 $at_failed && at_func_log_failure
25551 $at_traceon; }
25552
25553               { $at_traceoff
25554 $as_echo "$at_srcdir/link03.at:34:
25555 mkdir ustar
25556 (cd ustar
25557 TEST_TAR_FORMAT=ustar
25558 export TEST_TAR_FORMAT
25559 TAR_OPTIONS=\"-H ustar\"
25560 export TAR_OPTIONS
25561 rm -rf *
25562
25563
25564 genfile -l 64 -f file1
25565 link file1 file2
25566 link file2 file3
25567 link file3 file4
25568
25569 echo archive.1
25570 tar -c -f archive.1 -l --remove-files file1 file2 file3 file4
25571
25572 genfile -l 64 -f file1
25573 link file1 file2
25574 link file2 file3
25575 link file3 file4
25576
25577 echo archive.2
25578 tar -c -f archive.2 -l --remove-files file1 file2 file3
25579 echo testing archive.2
25580 tar tfv archive.2 | sed -n 's/.*file[2-3] link to //p'
25581 )"
25582 echo link03.at:34 >"$at_check_line_file"
25583
25584 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
25585    false; }; then
25586   ( $at_traceon;
25587 mkdir ustar
25588 (cd ustar
25589 TEST_TAR_FORMAT=ustar
25590 export TEST_TAR_FORMAT
25591 TAR_OPTIONS="-H ustar"
25592 export TAR_OPTIONS
25593 rm -rf *
25594
25595
25596 genfile -l 64 -f file1
25597 link file1 file2
25598 link file2 file3
25599 link file3 file4
25600
25601 echo archive.1
25602 tar -c -f archive.1 -l --remove-files file1 file2 file3 file4
25603
25604 genfile -l 64 -f file1
25605 link file1 file2
25606 link file2 file3
25607 link file3 file4
25608
25609 echo archive.2
25610 tar -c -f archive.2 -l --remove-files file1 file2 file3
25611 echo testing archive.2
25612 tar tfv archive.2 | sed -n 's/.*file[2-3] link to //p'
25613 ) ) >"$at_stdout" 2>"$at_stder1"
25614   at_func_filter_trace $?
25615 else
25616   ( :;
25617 mkdir ustar
25618 (cd ustar
25619 TEST_TAR_FORMAT=ustar
25620 export TEST_TAR_FORMAT
25621 TAR_OPTIONS="-H ustar"
25622 export TAR_OPTIONS
25623 rm -rf *
25624
25625
25626 genfile -l 64 -f file1
25627 link file1 file2
25628 link file2 file3
25629 link file3 file4
25630
25631 echo archive.1
25632 tar -c -f archive.1 -l --remove-files file1 file2 file3 file4
25633
25634 genfile -l 64 -f file1
25635 link file1 file2
25636 link file2 file3
25637 link file3 file4
25638
25639 echo archive.2
25640 tar -c -f archive.2 -l --remove-files file1 file2 file3
25641 echo testing archive.2
25642 tar tfv archive.2 | sed -n 's/.*file[2-3] link to //p'
25643 ) ) >"$at_stdout" 2>"$at_stderr"
25644 fi
25645 at_status=$?
25646 at_failed=false
25647 echo >>"$at_stderr"; $as_echo "tar: Missing links to \`file1'.
25648 " | \
25649   $at_diff - "$at_stderr" || at_failed=:
25650 echo >>"$at_stdout"; $as_echo "archive.1
25651 archive.2
25652 testing archive.2
25653 file1
25654 file1
25655 " | \
25656   $at_diff - "$at_stdout" || at_failed=:
25657 at_func_check_status 0 $at_status "$at_srcdir/link03.at:34"
25658
25659 $at_failed && at_func_log_failure
25660 $at_traceon; }
25661
25662               { $at_traceoff
25663 $as_echo "$at_srcdir/link03.at:34:
25664 mkdir posix
25665 (cd posix
25666 TEST_TAR_FORMAT=posix
25667 export TEST_TAR_FORMAT
25668 TAR_OPTIONS=\"-H posix\"
25669 export TAR_OPTIONS
25670 rm -rf *
25671
25672
25673 genfile -l 64 -f file1
25674 link file1 file2
25675 link file2 file3
25676 link file3 file4
25677
25678 echo archive.1
25679 tar -c -f archive.1 -l --remove-files file1 file2 file3 file4
25680
25681 genfile -l 64 -f file1
25682 link file1 file2
25683 link file2 file3
25684 link file3 file4
25685
25686 echo archive.2
25687 tar -c -f archive.2 -l --remove-files file1 file2 file3
25688 echo testing archive.2
25689 tar tfv archive.2 | sed -n 's/.*file[2-3] link to //p'
25690 )"
25691 echo link03.at:34 >"$at_check_line_file"
25692
25693 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
25694    false; }; then
25695   ( $at_traceon;
25696 mkdir posix
25697 (cd posix
25698 TEST_TAR_FORMAT=posix
25699 export TEST_TAR_FORMAT
25700 TAR_OPTIONS="-H posix"
25701 export TAR_OPTIONS
25702 rm -rf *
25703
25704
25705 genfile -l 64 -f file1
25706 link file1 file2
25707 link file2 file3
25708 link file3 file4
25709
25710 echo archive.1
25711 tar -c -f archive.1 -l --remove-files file1 file2 file3 file4
25712
25713 genfile -l 64 -f file1
25714 link file1 file2
25715 link file2 file3
25716 link file3 file4
25717
25718 echo archive.2
25719 tar -c -f archive.2 -l --remove-files file1 file2 file3
25720 echo testing archive.2
25721 tar tfv archive.2 | sed -n 's/.*file[2-3] link to //p'
25722 ) ) >"$at_stdout" 2>"$at_stder1"
25723   at_func_filter_trace $?
25724 else
25725   ( :;
25726 mkdir posix
25727 (cd posix
25728 TEST_TAR_FORMAT=posix
25729 export TEST_TAR_FORMAT
25730 TAR_OPTIONS="-H posix"
25731 export TAR_OPTIONS
25732 rm -rf *
25733
25734
25735 genfile -l 64 -f file1
25736 link file1 file2
25737 link file2 file3
25738 link file3 file4
25739
25740 echo archive.1
25741 tar -c -f archive.1 -l --remove-files file1 file2 file3 file4
25742
25743 genfile -l 64 -f file1
25744 link file1 file2
25745 link file2 file3
25746 link file3 file4
25747
25748 echo archive.2
25749 tar -c -f archive.2 -l --remove-files file1 file2 file3
25750 echo testing archive.2
25751 tar tfv archive.2 | sed -n 's/.*file[2-3] link to //p'
25752 ) ) >"$at_stdout" 2>"$at_stderr"
25753 fi
25754 at_status=$?
25755 at_failed=false
25756 echo >>"$at_stderr"; $as_echo "tar: Missing links to \`file1'.
25757 " | \
25758   $at_diff - "$at_stderr" || at_failed=:
25759 echo >>"$at_stdout"; $as_echo "archive.1
25760 archive.2
25761 testing archive.2
25762 file1
25763 file1
25764 " | \
25765   $at_diff - "$at_stdout" || at_failed=:
25766 at_func_check_status 0 $at_status "$at_srcdir/link03.at:34"
25767
25768 $at_failed && at_func_log_failure
25769 $at_traceon; }
25770
25771               { $at_traceoff
25772 $as_echo "$at_srcdir/link03.at:34:
25773 mkdir gnu
25774 (cd gnu
25775 TEST_TAR_FORMAT=gnu
25776 export TEST_TAR_FORMAT
25777 TAR_OPTIONS=\"-H gnu\"
25778 export TAR_OPTIONS
25779 rm -rf *
25780
25781
25782 genfile -l 64 -f file1
25783 link file1 file2
25784 link file2 file3
25785 link file3 file4
25786
25787 echo archive.1
25788 tar -c -f archive.1 -l --remove-files file1 file2 file3 file4
25789
25790 genfile -l 64 -f file1
25791 link file1 file2
25792 link file2 file3
25793 link file3 file4
25794
25795 echo archive.2
25796 tar -c -f archive.2 -l --remove-files file1 file2 file3
25797 echo testing archive.2
25798 tar tfv archive.2 | sed -n 's/.*file[2-3] link to //p'
25799 )"
25800 echo link03.at:34 >"$at_check_line_file"
25801
25802 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
25803    false; }; then
25804   ( $at_traceon;
25805 mkdir gnu
25806 (cd gnu
25807 TEST_TAR_FORMAT=gnu
25808 export TEST_TAR_FORMAT
25809 TAR_OPTIONS="-H gnu"
25810 export TAR_OPTIONS
25811 rm -rf *
25812
25813
25814 genfile -l 64 -f file1
25815 link file1 file2
25816 link file2 file3
25817 link file3 file4
25818
25819 echo archive.1
25820 tar -c -f archive.1 -l --remove-files file1 file2 file3 file4
25821
25822 genfile -l 64 -f file1
25823 link file1 file2
25824 link file2 file3
25825 link file3 file4
25826
25827 echo archive.2
25828 tar -c -f archive.2 -l --remove-files file1 file2 file3
25829 echo testing archive.2
25830 tar tfv archive.2 | sed -n 's/.*file[2-3] link to //p'
25831 ) ) >"$at_stdout" 2>"$at_stder1"
25832   at_func_filter_trace $?
25833 else
25834   ( :;
25835 mkdir gnu
25836 (cd gnu
25837 TEST_TAR_FORMAT=gnu
25838 export TEST_TAR_FORMAT
25839 TAR_OPTIONS="-H gnu"
25840 export TAR_OPTIONS
25841 rm -rf *
25842
25843
25844 genfile -l 64 -f file1
25845 link file1 file2
25846 link file2 file3
25847 link file3 file4
25848
25849 echo archive.1
25850 tar -c -f archive.1 -l --remove-files file1 file2 file3 file4
25851
25852 genfile -l 64 -f file1
25853 link file1 file2
25854 link file2 file3
25855 link file3 file4
25856
25857 echo archive.2
25858 tar -c -f archive.2 -l --remove-files file1 file2 file3
25859 echo testing archive.2
25860 tar tfv archive.2 | sed -n 's/.*file[2-3] link to //p'
25861 ) ) >"$at_stdout" 2>"$at_stderr"
25862 fi
25863 at_status=$?
25864 at_failed=false
25865 echo >>"$at_stderr"; $as_echo "tar: Missing links to \`file1'.
25866 " | \
25867   $at_diff - "$at_stderr" || at_failed=:
25868 echo >>"$at_stdout"; $as_echo "archive.1
25869 archive.2
25870 testing archive.2
25871 file1
25872 file1
25873 " | \
25874   $at_diff - "$at_stdout" || at_failed=:
25875 at_func_check_status 0 $at_status "$at_srcdir/link03.at:34"
25876
25877 $at_failed && at_func_log_failure
25878 $at_traceon; }
25879
25880
25881
25882
25883   $at_traceoff
25884   $at_times_p && times >"$at_times_file"
25885 ) 5>&1 2>&1 | eval $at_tee_pipe
25886 at_status=`cat "$at_status_file"`
25887 #AT_STOP_56
25888 #AT_START_57
25889 # 57. longv7.at:24: long names in V7 archives
25890 at_setup_line='longv7.at:24'
25891 at_desc="long names in V7 archives"
25892 $at_quiet $as_echo_n " 57: $at_desc                      "
25893 at_xfail=no
25894       test -f $XFAILFILE && at_xfail=yes
25895 echo "#                             -*- compilation -*-" >> "$at_group_log"
25896 (
25897   $as_echo "57. longv7.at:24: testing ..."
25898   $at_traceon
25899
25900
25901
25902
25903
25904
25905
25906
25907   { $at_traceoff
25908 $as_echo "$at_srcdir/longv7.at:30:
25909 mkdir v7
25910 (cd v7
25911 TEST_TAR_FORMAT=v7
25912 export TEST_TAR_FORMAT
25913 TAR_OPTIONS=\"-H v7\"
25914 export TAR_OPTIONS
25915 rm -rf *
25916
25917 mkdir this_is_a_very_long_name_for_a_directory_which_causes_problems
25918 touch this_is_a_very_long_name_for_a_directory_which_causes_problems/this_is_a_very_long_file_name_which_raises_issues.c
25919
25920 tar cf archive this_is_a_very_long_name_for_a_directory_which_causes_problems
25921 echo separator
25922 tar tf archive
25923 )"
25924 echo longv7.at:30 >"$at_check_line_file"
25925
25926 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
25927    false; }; then
25928   ( $at_traceon;
25929 mkdir v7
25930 (cd v7
25931 TEST_TAR_FORMAT=v7
25932 export TEST_TAR_FORMAT
25933 TAR_OPTIONS="-H v7"
25934 export TAR_OPTIONS
25935 rm -rf *
25936
25937 mkdir this_is_a_very_long_name_for_a_directory_which_causes_problems
25938 touch this_is_a_very_long_name_for_a_directory_which_causes_problems/this_is_a_very_long_file_name_which_raises_issues.c
25939
25940 tar cf archive this_is_a_very_long_name_for_a_directory_which_causes_problems
25941 echo separator
25942 tar tf archive
25943 ) ) >"$at_stdout" 2>"$at_stder1"
25944   at_func_filter_trace $?
25945 else
25946   ( :;
25947 mkdir v7
25948 (cd v7
25949 TEST_TAR_FORMAT=v7
25950 export TEST_TAR_FORMAT
25951 TAR_OPTIONS="-H v7"
25952 export TAR_OPTIONS
25953 rm -rf *
25954
25955 mkdir this_is_a_very_long_name_for_a_directory_which_causes_problems
25956 touch this_is_a_very_long_name_for_a_directory_which_causes_problems/this_is_a_very_long_file_name_which_raises_issues.c
25957
25958 tar cf archive this_is_a_very_long_name_for_a_directory_which_causes_problems
25959 echo separator
25960 tar tf archive
25961 ) ) >"$at_stdout" 2>"$at_stderr"
25962 fi
25963 at_status=$?
25964 at_failed=false
25965 echo >>"$at_stderr"; $as_echo "tar: this_is_a_very_long_name_for_a_directory_which_causes_problems/this_is_a_very_long_file_name_which_raises_issues.c: file name is too long (max 99); not dumped
25966 tar: Exiting with failure status due to previous errors
25967 " | \
25968   $at_diff - "$at_stderr" || at_failed=:
25969 echo >>"$at_stdout"; $as_echo "separator
25970 this_is_a_very_long_name_for_a_directory_which_causes_problems/
25971 " | \
25972   $at_diff - "$at_stdout" || at_failed=:
25973 at_func_check_status 0 $at_status "$at_srcdir/longv7.at:30"
25974
25975 $at_failed && at_func_log_failure
25976 $at_traceon; }
25977
25978
25979
25980
25981   $at_traceoff
25982   $at_times_p && times >"$at_times_file"
25983 ) 5>&1 2>&1 | eval $at_tee_pipe
25984 at_status=`cat "$at_status_file"`
25985 #AT_STOP_57
25986 #AT_START_58
25987 # 58. long01.at:28: long file names divisible by block size
25988 at_setup_line='long01.at:28'
25989 at_desc="long file names divisible by block size"
25990 $at_quiet $as_echo_n " 58: $at_desc        "
25991 at_xfail=no
25992       test -f $XFAILFILE && at_xfail=yes
25993 echo "#                             -*- compilation -*-" >> "$at_group_log"
25994 (
25995   $as_echo "58. long01.at:28: testing ..."
25996   $at_traceon
25997
25998
25999
26000
26001
26002
26003
26004
26005
26006   { $at_traceoff
26007 $as_echo "$at_srcdir/long01.at:36:
26008 mkdir gnu
26009 (cd gnu
26010 TEST_TAR_FORMAT=gnu
26011 export TEST_TAR_FORMAT
26012 TAR_OPTIONS=\"-H gnu\"
26013 export TAR_OPTIONS
26014 rm -rf *
26015
26016
26017 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
26018 echo test > endfile
26019
26020 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
26021 tar tf archive)"
26022 echo long01.at:36 >"$at_check_line_file"
26023
26024 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
26025    false; }; then
26026   ( $at_traceon;
26027 mkdir gnu
26028 (cd gnu
26029 TEST_TAR_FORMAT=gnu
26030 export TEST_TAR_FORMAT
26031 TAR_OPTIONS="-H gnu"
26032 export TAR_OPTIONS
26033 rm -rf *
26034
26035
26036 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
26037 echo test > endfile
26038
26039 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
26040 tar tf archive) ) >"$at_stdout" 2>"$at_stder1"
26041   at_func_filter_trace $?
26042 else
26043   ( :;
26044 mkdir gnu
26045 (cd gnu
26046 TEST_TAR_FORMAT=gnu
26047 export TEST_TAR_FORMAT
26048 TAR_OPTIONS="-H gnu"
26049 export TAR_OPTIONS
26050 rm -rf *
26051
26052
26053 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
26054 echo test > endfile
26055
26056 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
26057 tar tf archive) ) >"$at_stdout" 2>"$at_stderr"
26058 fi
26059 at_status=$?
26060 at_failed=false
26061 at_func_diff_devnull "$at_stderr" || at_failed=:
26062 echo >>"$at_stdout"; $as_echo "0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde
26063 endfile
26064 " | \
26065   $at_diff - "$at_stdout" || at_failed=:
26066 at_func_check_status 0 $at_status "$at_srcdir/long01.at:36"
26067
26068 $at_failed && at_func_log_failure
26069 $at_traceon; }
26070
26071               { $at_traceoff
26072 $as_echo "$at_srcdir/long01.at:36:
26073 mkdir oldgnu
26074 (cd oldgnu
26075 TEST_TAR_FORMAT=oldgnu
26076 export TEST_TAR_FORMAT
26077 TAR_OPTIONS=\"-H oldgnu\"
26078 export TAR_OPTIONS
26079 rm -rf *
26080
26081
26082 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
26083 echo test > endfile
26084
26085 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
26086 tar tf archive)"
26087 echo long01.at:36 >"$at_check_line_file"
26088
26089 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
26090    false; }; then
26091   ( $at_traceon;
26092 mkdir oldgnu
26093 (cd oldgnu
26094 TEST_TAR_FORMAT=oldgnu
26095 export TEST_TAR_FORMAT
26096 TAR_OPTIONS="-H oldgnu"
26097 export TAR_OPTIONS
26098 rm -rf *
26099
26100
26101 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
26102 echo test > endfile
26103
26104 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
26105 tar tf archive) ) >"$at_stdout" 2>"$at_stder1"
26106   at_func_filter_trace $?
26107 else
26108   ( :;
26109 mkdir oldgnu
26110 (cd oldgnu
26111 TEST_TAR_FORMAT=oldgnu
26112 export TEST_TAR_FORMAT
26113 TAR_OPTIONS="-H oldgnu"
26114 export TAR_OPTIONS
26115 rm -rf *
26116
26117
26118 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
26119 echo test > endfile
26120
26121 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
26122 tar tf archive) ) >"$at_stdout" 2>"$at_stderr"
26123 fi
26124 at_status=$?
26125 at_failed=false
26126 at_func_diff_devnull "$at_stderr" || at_failed=:
26127 echo >>"$at_stdout"; $as_echo "0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde/0123456789abcde
26128 endfile
26129 " | \
26130   $at_diff - "$at_stdout" || at_failed=:
26131 at_func_check_status 0 $at_status "$at_srcdir/long01.at:36"
26132
26133 $at_failed && at_func_log_failure
26134 $at_traceon; }
26135
26136
26137
26138
26139   $at_traceoff
26140   $at_times_p && times >"$at_times_file"
26141 ) 5>&1 2>&1 | eval $at_tee_pipe
26142 at_status=`cat "$at_status_file"`
26143 #AT_STOP_58
26144 #AT_START_59
26145 # 59. lustar01.at:21: ustar: unsplittable file name
26146 at_setup_line='lustar01.at:21'
26147 at_desc="ustar: unsplittable file name"
26148 $at_quiet $as_echo_n " 59: $at_desc                  "
26149 at_xfail=no
26150       test -f $XFAILFILE && at_xfail=yes
26151 echo "#                             -*- compilation -*-" >> "$at_group_log"
26152 (
26153   $as_echo "59. lustar01.at:21: testing ..."
26154   $at_traceon
26155
26156
26157
26158
26159
26160
26161
26162   { $at_traceoff
26163 $as_echo "$at_srcdir/lustar01.at:27:
26164 mkdir ustar
26165 (cd ustar
26166 TEST_TAR_FORMAT=ustar
26167 export TEST_TAR_FORMAT
26168 TAR_OPTIONS=\"-H ustar\"
26169 export TAR_OPTIONS
26170 rm -rf *
26171
26172 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
26173 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
26174 )"
26175 echo lustar01.at:27 >"$at_check_line_file"
26176
26177 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
26178    false; }; then
26179   ( $at_traceon;
26180 mkdir ustar
26181 (cd ustar
26182 TEST_TAR_FORMAT=ustar
26183 export TEST_TAR_FORMAT
26184 TAR_OPTIONS="-H ustar"
26185 export TAR_OPTIONS
26186 rm -rf *
26187
26188 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
26189 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
26190 ) ) >"$at_stdout" 2>"$at_stder1"
26191   at_func_filter_trace $?
26192 else
26193   ( :;
26194 mkdir ustar
26195 (cd ustar
26196 TEST_TAR_FORMAT=ustar
26197 export TEST_TAR_FORMAT
26198 TAR_OPTIONS="-H ustar"
26199 export TAR_OPTIONS
26200 rm -rf *
26201
26202 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
26203 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
26204 ) ) >"$at_stdout" 2>"$at_stderr"
26205 fi
26206 at_status=$?
26207 at_failed=false
26208 echo >>"$at_stderr"; $as_echo "tar: this_is_a_very_long_name_for_a_file_designed_to_test_generation_of_ustar_archives_by_gnu_tar_semicolon_it_will_not_fit_the_name_field_and_cannot_be_split_between_name_and_prefix: file name is too long (cannot be split); not dumped
26209 tar: Exiting with failure status due to previous errors
26210 " | \
26211   $at_diff - "$at_stderr" || at_failed=:
26212 at_func_diff_devnull "$at_stdout" || at_failed=:
26213 at_func_check_status 2 $at_status "$at_srcdir/lustar01.at:27"
26214
26215 $at_failed && at_func_log_failure
26216 $at_traceon; }
26217
26218
26219
26220
26221   $at_traceoff
26222   $at_times_p && times >"$at_times_file"
26223 ) 5>&1 2>&1 | eval $at_tee_pipe
26224 at_status=`cat "$at_status_file"`
26225 #AT_STOP_59
26226 #AT_START_60
26227 # 60. lustar02.at:21: ustar: unsplittable path name
26228 at_setup_line='lustar02.at:21'
26229 at_desc="ustar: unsplittable path name"
26230 $at_quiet $as_echo_n " 60: $at_desc                  "
26231 at_xfail=no
26232       test -f $XFAILFILE && at_xfail=yes
26233 echo "#                             -*- compilation -*-" >> "$at_group_log"
26234 (
26235   $as_echo "60. lustar02.at:21: testing ..."
26236   $at_traceon
26237
26238
26239
26240
26241
26242
26243
26244
26245
26246
26247
26248   { $at_traceoff
26249 $as_echo "$at_srcdir/lustar02.at:32:
26250 mkdir ustar
26251 (cd ustar
26252 TEST_TAR_FORMAT=ustar
26253 export TEST_TAR_FORMAT
26254 TAR_OPTIONS=\"-H ustar\"
26255 export TAR_OPTIONS
26256 rm -rf *
26257
26258
26259 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
26260 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
26261 )"
26262 echo lustar02.at:32 >"$at_check_line_file"
26263
26264 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
26265    false; }; then
26266   ( $at_traceon;
26267 mkdir ustar
26268 (cd ustar
26269 TEST_TAR_FORMAT=ustar
26270 export TEST_TAR_FORMAT
26271 TAR_OPTIONS="-H ustar"
26272 export TAR_OPTIONS
26273 rm -rf *
26274
26275
26276 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
26277 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
26278 ) ) >"$at_stdout" 2>"$at_stder1"
26279   at_func_filter_trace $?
26280 else
26281   ( :;
26282 mkdir ustar
26283 (cd ustar
26284 TEST_TAR_FORMAT=ustar
26285 export TEST_TAR_FORMAT
26286 TAR_OPTIONS="-H ustar"
26287 export TAR_OPTIONS
26288 rm -rf *
26289
26290
26291 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
26292 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
26293 ) ) >"$at_stdout" 2>"$at_stderr"
26294 fi
26295 at_status=$?
26296 at_failed=false
26297 echo >>"$at_stderr"; $as_echo "tar: this_is_a_very_long_name_for_a_file_designed_to_test_generation_of_ustar_archives_by_gnu_tar_semicolon_it_will_not_fit_the_name_field_and_cannot_be_split_be/: file name is too long (cannot be split); not dumped
26298 tar: Exiting with failure status due to previous errors
26299 " | \
26300   $at_diff - "$at_stderr" || at_failed=:
26301 at_func_diff_devnull "$at_stdout" || at_failed=:
26302 at_func_check_status 2 $at_status "$at_srcdir/lustar02.at:32"
26303
26304 $at_failed && at_func_log_failure
26305 $at_traceon; }
26306
26307
26308
26309
26310   $at_traceoff
26311   $at_times_p && times >"$at_times_file"
26312 ) 5>&1 2>&1 | eval $at_tee_pipe
26313 at_status=`cat "$at_status_file"`
26314 #AT_STOP_60
26315 #AT_START_61
26316 # 61. lustar03.at:21: ustar: splitting long names
26317 at_setup_line='lustar03.at:21'
26318 at_desc="ustar: splitting long names"
26319 $at_quiet $as_echo_n " 61: $at_desc                    "
26320 at_xfail=no
26321       test -f $XFAILFILE && at_xfail=yes
26322 echo "#                             -*- compilation -*-" >> "$at_group_log"
26323 (
26324   $as_echo "61. lustar03.at:21: testing ..."
26325   $at_traceon
26326
26327
26328
26329
26330
26331
26332
26333
26334
26335   { $at_traceoff
26336 $as_echo "$at_srcdir/lustar03.at:29:
26337 mkdir ustar
26338 (cd ustar
26339 TEST_TAR_FORMAT=ustar
26340 export TEST_TAR_FORMAT
26341 TAR_OPTIONS=\"-H ustar\"
26342 export TAR_OPTIONS
26343 rm -rf *
26344
26345
26346 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
26347 echo \"Create archive\"
26348 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
26349 echo \"List archive\"
26350 tar tf archive)"
26351 echo lustar03.at:29 >"$at_check_line_file"
26352
26353 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
26354    false; }; then
26355   ( $at_traceon;
26356 mkdir ustar
26357 (cd ustar
26358 TEST_TAR_FORMAT=ustar
26359 export TEST_TAR_FORMAT
26360 TAR_OPTIONS="-H ustar"
26361 export TAR_OPTIONS
26362 rm -rf *
26363
26364
26365 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
26366 echo "Create archive"
26367 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
26368 echo "List archive"
26369 tar tf archive) ) >"$at_stdout" 2>"$at_stder1"
26370   at_func_filter_trace $?
26371 else
26372   ( :;
26373 mkdir ustar
26374 (cd ustar
26375 TEST_TAR_FORMAT=ustar
26376 export TEST_TAR_FORMAT
26377 TAR_OPTIONS="-H ustar"
26378 export TAR_OPTIONS
26379 rm -rf *
26380
26381
26382 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
26383 echo "Create archive"
26384 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
26385 echo "List archive"
26386 tar tf archive) ) >"$at_stdout" 2>"$at_stderr"
26387 fi
26388 at_status=$?
26389 at_failed=false
26390 at_func_diff_devnull "$at_stderr" || at_failed=:
26391 echo >>"$at_stdout"; $as_echo "Create archive
26392 List archive
26393 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/
26394 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
26395 " | \
26396   $at_diff - "$at_stdout" || at_failed=:
26397 at_func_check_status 0 $at_status "$at_srcdir/lustar03.at:29"
26398
26399 $at_failed && at_func_log_failure
26400 $at_traceon; }
26401
26402
26403
26404
26405   $at_traceoff
26406   $at_times_p && times >"$at_times_file"
26407 ) 5>&1 2>&1 | eval $at_tee_pipe
26408 at_status=`cat "$at_status_file"`
26409 #AT_STOP_61
26410 #AT_START_62
26411 # 62. multiv01.at:23: multivolume dumps from pipes
26412 at_setup_line='multiv01.at:23'
26413 at_desc="multivolume dumps from pipes"
26414 $at_quiet $as_echo_n " 62: $at_desc                   "
26415 at_xfail=no
26416       test -f $XFAILFILE && at_xfail=yes
26417 echo "#                             -*- compilation -*-" >> "$at_group_log"
26418 (
26419   $as_echo "62. multiv01.at:23: testing ..."
26420   $at_traceon
26421
26422
26423
26424 # Fixme: should be configurable
26425 #  TRUSS=truss -o /tmp/tr
26426 #  TRUSS=strace
26427
26428
26429
26430   { $at_traceoff
26431 $as_echo "$at_srcdir/multiv01.at:30:
26432 mkdir gnu
26433 (cd gnu
26434 TEST_TAR_FORMAT=gnu
26435 export TEST_TAR_FORMAT
26436 TAR_OPTIONS=\"-H gnu\"
26437 export TAR_OPTIONS
26438 rm -rf *
26439
26440 exec <&-
26441 genfile --length 7168 --file file1
26442
26443 for block in \" 1\" \" 2\" \" 3\" \" 4\" \" 5\" \" 6\" \" 7\" \" 8\" \\
26444               \" 9\" \"10\" \"11\" \"12\" \"13\" \"14\" \"15\" \"16\" ; do \\
26445   echo \"file2  block \${block} bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla\"
26446   for count in 2 3 4 5 6 7 8 ; do
26447     echo \"bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla\"
26448   done
26449 done >file2
26450
26451 if test \$TEST_TAR_FORMAT = pax; then
26452   TAPE_LENGTH=11
26453 else
26454   TAPE_LENGTH=10
26455 fi
26456
26457 tar -c --multi-volume --tape-length=\$TAPE_LENGTH \\
26458   -f t1-pipe.tar -f t2-pipe.tar ./file1 ./file2 || exit 1
26459
26460 mkdir extract-dir-pipe
26461 dd bs=4096 count=\$TAPE_LENGTH if=t2-pipe.tar 2>/dev/null |
26462 PATH=\$PATH \${TRUSS} tar -f t1-pipe.tar -f - \\
26463       -C extract-dir-pipe -x --multi-volume \\
26464       --tape-length=\$TAPE_LENGTH --read-full-records || exit 1
26465
26466 cmp file1 extract-dir-pipe/file1
26467 cmp file2 extract-dir-pipe/file2
26468 )"
26469 echo multiv01.at:30 >"$at_check_line_file"
26470
26471 if { echo 'Not enabling shell tracing (command contains a ${...} parameter expansion)'
26472    false; }; then
26473   ( $at_traceon;
26474 mkdir gnu
26475 (cd gnu
26476 TEST_TAR_FORMAT=gnu
26477 export TEST_TAR_FORMAT
26478 TAR_OPTIONS="-H gnu"
26479 export TAR_OPTIONS
26480 rm -rf *
26481
26482 exec <&-
26483 genfile --length 7168 --file file1
26484
26485 for block in " 1" " 2" " 3" " 4" " 5" " 6" " 7" " 8" \
26486               " 9" "10" "11" "12" "13" "14" "15" "16" ; do \
26487   echo "file2  block ${block} bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla"
26488   for count in 2 3 4 5 6 7 8 ; do
26489     echo "bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla"
26490   done
26491 done >file2
26492
26493 if test $TEST_TAR_FORMAT = pax; then
26494   TAPE_LENGTH=11
26495 else
26496   TAPE_LENGTH=10
26497 fi
26498
26499 tar -c --multi-volume --tape-length=$TAPE_LENGTH \
26500   -f t1-pipe.tar -f t2-pipe.tar ./file1 ./file2 || exit 1
26501
26502 mkdir extract-dir-pipe
26503 dd bs=4096 count=$TAPE_LENGTH if=t2-pipe.tar 2>/dev/null |
26504 PATH=$PATH ${TRUSS} tar -f t1-pipe.tar -f - \
26505       -C extract-dir-pipe -x --multi-volume \
26506       --tape-length=$TAPE_LENGTH --read-full-records || exit 1
26507
26508 cmp file1 extract-dir-pipe/file1
26509 cmp file2 extract-dir-pipe/file2
26510 ) ) >"$at_stdout" 2>"$at_stder1"
26511   at_func_filter_trace $?
26512 else
26513   ( :;
26514 mkdir gnu
26515 (cd gnu
26516 TEST_TAR_FORMAT=gnu
26517 export TEST_TAR_FORMAT
26518 TAR_OPTIONS="-H gnu"
26519 export TAR_OPTIONS
26520 rm -rf *
26521
26522 exec <&-
26523 genfile --length 7168 --file file1
26524
26525 for block in " 1" " 2" " 3" " 4" " 5" " 6" " 7" " 8" \
26526               " 9" "10" "11" "12" "13" "14" "15" "16" ; do \
26527   echo "file2  block ${block} bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla"
26528   for count in 2 3 4 5 6 7 8 ; do
26529     echo "bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla"
26530   done
26531 done >file2
26532
26533 if test $TEST_TAR_FORMAT = pax; then
26534   TAPE_LENGTH=11
26535 else
26536   TAPE_LENGTH=10
26537 fi
26538
26539 tar -c --multi-volume --tape-length=$TAPE_LENGTH \
26540   -f t1-pipe.tar -f t2-pipe.tar ./file1 ./file2 || exit 1
26541
26542 mkdir extract-dir-pipe
26543 dd bs=4096 count=$TAPE_LENGTH if=t2-pipe.tar 2>/dev/null |
26544 PATH=$PATH ${TRUSS} tar -f t1-pipe.tar -f - \
26545       -C extract-dir-pipe -x --multi-volume \
26546       --tape-length=$TAPE_LENGTH --read-full-records || exit 1
26547
26548 cmp file1 extract-dir-pipe/file1
26549 cmp file2 extract-dir-pipe/file2
26550 ) ) >"$at_stdout" 2>"$at_stderr"
26551 fi
26552 at_status=$?
26553 at_failed=false
26554 at_func_diff_devnull "$at_stderr" || at_failed=:
26555 at_func_diff_devnull "$at_stdout" || at_failed=:
26556 at_func_check_status 0 $at_status "$at_srcdir/multiv01.at:30"
26557
26558 $at_failed && at_func_log_failure
26559 $at_traceon; }
26560
26561               { $at_traceoff
26562 $as_echo "$at_srcdir/multiv01.at:30:
26563 mkdir oldgnu
26564 (cd oldgnu
26565 TEST_TAR_FORMAT=oldgnu
26566 export TEST_TAR_FORMAT
26567 TAR_OPTIONS=\"-H oldgnu\"
26568 export TAR_OPTIONS
26569 rm -rf *
26570
26571 exec <&-
26572 genfile --length 7168 --file file1
26573
26574 for block in \" 1\" \" 2\" \" 3\" \" 4\" \" 5\" \" 6\" \" 7\" \" 8\" \\
26575               \" 9\" \"10\" \"11\" \"12\" \"13\" \"14\" \"15\" \"16\" ; do \\
26576   echo \"file2  block \${block} bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla\"
26577   for count in 2 3 4 5 6 7 8 ; do
26578     echo \"bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla\"
26579   done
26580 done >file2
26581
26582 if test \$TEST_TAR_FORMAT = pax; then
26583   TAPE_LENGTH=11
26584 else
26585   TAPE_LENGTH=10
26586 fi
26587
26588 tar -c --multi-volume --tape-length=\$TAPE_LENGTH \\
26589   -f t1-pipe.tar -f t2-pipe.tar ./file1 ./file2 || exit 1
26590
26591 mkdir extract-dir-pipe
26592 dd bs=4096 count=\$TAPE_LENGTH if=t2-pipe.tar 2>/dev/null |
26593 PATH=\$PATH \${TRUSS} tar -f t1-pipe.tar -f - \\
26594       -C extract-dir-pipe -x --multi-volume \\
26595       --tape-length=\$TAPE_LENGTH --read-full-records || exit 1
26596
26597 cmp file1 extract-dir-pipe/file1
26598 cmp file2 extract-dir-pipe/file2
26599 )"
26600 echo multiv01.at:30 >"$at_check_line_file"
26601
26602 if { echo 'Not enabling shell tracing (command contains a ${...} parameter expansion)'
26603    false; }; then
26604   ( $at_traceon;
26605 mkdir oldgnu
26606 (cd oldgnu
26607 TEST_TAR_FORMAT=oldgnu
26608 export TEST_TAR_FORMAT
26609 TAR_OPTIONS="-H oldgnu"
26610 export TAR_OPTIONS
26611 rm -rf *
26612
26613 exec <&-
26614 genfile --length 7168 --file file1
26615
26616 for block in " 1" " 2" " 3" " 4" " 5" " 6" " 7" " 8" \
26617               " 9" "10" "11" "12" "13" "14" "15" "16" ; do \
26618   echo "file2  block ${block} bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla"
26619   for count in 2 3 4 5 6 7 8 ; do
26620     echo "bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla"
26621   done
26622 done >file2
26623
26624 if test $TEST_TAR_FORMAT = pax; then
26625   TAPE_LENGTH=11
26626 else
26627   TAPE_LENGTH=10
26628 fi
26629
26630 tar -c --multi-volume --tape-length=$TAPE_LENGTH \
26631   -f t1-pipe.tar -f t2-pipe.tar ./file1 ./file2 || exit 1
26632
26633 mkdir extract-dir-pipe
26634 dd bs=4096 count=$TAPE_LENGTH if=t2-pipe.tar 2>/dev/null |
26635 PATH=$PATH ${TRUSS} tar -f t1-pipe.tar -f - \
26636       -C extract-dir-pipe -x --multi-volume \
26637       --tape-length=$TAPE_LENGTH --read-full-records || exit 1
26638
26639 cmp file1 extract-dir-pipe/file1
26640 cmp file2 extract-dir-pipe/file2
26641 ) ) >"$at_stdout" 2>"$at_stder1"
26642   at_func_filter_trace $?
26643 else
26644   ( :;
26645 mkdir oldgnu
26646 (cd oldgnu
26647 TEST_TAR_FORMAT=oldgnu
26648 export TEST_TAR_FORMAT
26649 TAR_OPTIONS="-H oldgnu"
26650 export TAR_OPTIONS
26651 rm -rf *
26652
26653 exec <&-
26654 genfile --length 7168 --file file1
26655
26656 for block in " 1" " 2" " 3" " 4" " 5" " 6" " 7" " 8" \
26657               " 9" "10" "11" "12" "13" "14" "15" "16" ; do \
26658   echo "file2  block ${block} bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla"
26659   for count in 2 3 4 5 6 7 8 ; do
26660     echo "bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla"
26661   done
26662 done >file2
26663
26664 if test $TEST_TAR_FORMAT = pax; then
26665   TAPE_LENGTH=11
26666 else
26667   TAPE_LENGTH=10
26668 fi
26669
26670 tar -c --multi-volume --tape-length=$TAPE_LENGTH \
26671   -f t1-pipe.tar -f t2-pipe.tar ./file1 ./file2 || exit 1
26672
26673 mkdir extract-dir-pipe
26674 dd bs=4096 count=$TAPE_LENGTH if=t2-pipe.tar 2>/dev/null |
26675 PATH=$PATH ${TRUSS} tar -f t1-pipe.tar -f - \
26676       -C extract-dir-pipe -x --multi-volume \
26677       --tape-length=$TAPE_LENGTH --read-full-records || exit 1
26678
26679 cmp file1 extract-dir-pipe/file1
26680 cmp file2 extract-dir-pipe/file2
26681 ) ) >"$at_stdout" 2>"$at_stderr"
26682 fi
26683 at_status=$?
26684 at_failed=false
26685 at_func_diff_devnull "$at_stderr" || at_failed=:
26686 at_func_diff_devnull "$at_stdout" || at_failed=:
26687 at_func_check_status 0 $at_status "$at_srcdir/multiv01.at:30"
26688
26689 $at_failed && at_func_log_failure
26690 $at_traceon; }
26691
26692               { $at_traceoff
26693 $as_echo "$at_srcdir/multiv01.at:30:
26694 mkdir pax
26695 (cd pax
26696 TEST_TAR_FORMAT=pax
26697 export TEST_TAR_FORMAT
26698 TAR_OPTIONS=\"-H pax\"
26699 export TAR_OPTIONS
26700 rm -rf *
26701
26702 exec <&-
26703 genfile --length 7168 --file file1
26704
26705 for block in \" 1\" \" 2\" \" 3\" \" 4\" \" 5\" \" 6\" \" 7\" \" 8\" \\
26706               \" 9\" \"10\" \"11\" \"12\" \"13\" \"14\" \"15\" \"16\" ; do \\
26707   echo \"file2  block \${block} bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla\"
26708   for count in 2 3 4 5 6 7 8 ; do
26709     echo \"bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla\"
26710   done
26711 done >file2
26712
26713 if test \$TEST_TAR_FORMAT = pax; then
26714   TAPE_LENGTH=11
26715 else
26716   TAPE_LENGTH=10
26717 fi
26718
26719 tar -c --multi-volume --tape-length=\$TAPE_LENGTH \\
26720   -f t1-pipe.tar -f t2-pipe.tar ./file1 ./file2 || exit 1
26721
26722 mkdir extract-dir-pipe
26723 dd bs=4096 count=\$TAPE_LENGTH if=t2-pipe.tar 2>/dev/null |
26724 PATH=\$PATH \${TRUSS} tar -f t1-pipe.tar -f - \\
26725       -C extract-dir-pipe -x --multi-volume \\
26726       --tape-length=\$TAPE_LENGTH --read-full-records || exit 1
26727
26728 cmp file1 extract-dir-pipe/file1
26729 cmp file2 extract-dir-pipe/file2
26730 )"
26731 echo multiv01.at:30 >"$at_check_line_file"
26732
26733 if { echo 'Not enabling shell tracing (command contains a ${...} parameter expansion)'
26734    false; }; then
26735   ( $at_traceon;
26736 mkdir pax
26737 (cd pax
26738 TEST_TAR_FORMAT=pax
26739 export TEST_TAR_FORMAT
26740 TAR_OPTIONS="-H pax"
26741 export TAR_OPTIONS
26742 rm -rf *
26743
26744 exec <&-
26745 genfile --length 7168 --file file1
26746
26747 for block in " 1" " 2" " 3" " 4" " 5" " 6" " 7" " 8" \
26748               " 9" "10" "11" "12" "13" "14" "15" "16" ; do \
26749   echo "file2  block ${block} bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla"
26750   for count in 2 3 4 5 6 7 8 ; do
26751     echo "bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla"
26752   done
26753 done >file2
26754
26755 if test $TEST_TAR_FORMAT = pax; then
26756   TAPE_LENGTH=11
26757 else
26758   TAPE_LENGTH=10
26759 fi
26760
26761 tar -c --multi-volume --tape-length=$TAPE_LENGTH \
26762   -f t1-pipe.tar -f t2-pipe.tar ./file1 ./file2 || exit 1
26763
26764 mkdir extract-dir-pipe
26765 dd bs=4096 count=$TAPE_LENGTH if=t2-pipe.tar 2>/dev/null |
26766 PATH=$PATH ${TRUSS} tar -f t1-pipe.tar -f - \
26767       -C extract-dir-pipe -x --multi-volume \
26768       --tape-length=$TAPE_LENGTH --read-full-records || exit 1
26769
26770 cmp file1 extract-dir-pipe/file1
26771 cmp file2 extract-dir-pipe/file2
26772 ) ) >"$at_stdout" 2>"$at_stder1"
26773   at_func_filter_trace $?
26774 else
26775   ( :;
26776 mkdir pax
26777 (cd pax
26778 TEST_TAR_FORMAT=pax
26779 export TEST_TAR_FORMAT
26780 TAR_OPTIONS="-H pax"
26781 export TAR_OPTIONS
26782 rm -rf *
26783
26784 exec <&-
26785 genfile --length 7168 --file file1
26786
26787 for block in " 1" " 2" " 3" " 4" " 5" " 6" " 7" " 8" \
26788               " 9" "10" "11" "12" "13" "14" "15" "16" ; do \
26789   echo "file2  block ${block} bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla"
26790   for count in 2 3 4 5 6 7 8 ; do
26791     echo "bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla"
26792   done
26793 done >file2
26794
26795 if test $TEST_TAR_FORMAT = pax; then
26796   TAPE_LENGTH=11
26797 else
26798   TAPE_LENGTH=10
26799 fi
26800
26801 tar -c --multi-volume --tape-length=$TAPE_LENGTH \
26802   -f t1-pipe.tar -f t2-pipe.tar ./file1 ./file2 || exit 1
26803
26804 mkdir extract-dir-pipe
26805 dd bs=4096 count=$TAPE_LENGTH if=t2-pipe.tar 2>/dev/null |
26806 PATH=$PATH ${TRUSS} tar -f t1-pipe.tar -f - \
26807       -C extract-dir-pipe -x --multi-volume \
26808       --tape-length=$TAPE_LENGTH --read-full-records || exit 1
26809
26810 cmp file1 extract-dir-pipe/file1
26811 cmp file2 extract-dir-pipe/file2
26812 ) ) >"$at_stdout" 2>"$at_stderr"
26813 fi
26814 at_status=$?
26815 at_failed=false
26816 at_func_diff_devnull "$at_stderr" || at_failed=:
26817 at_func_diff_devnull "$at_stdout" || at_failed=:
26818 at_func_check_status 0 $at_status "$at_srcdir/multiv01.at:30"
26819
26820 $at_failed && at_func_log_failure
26821 $at_traceon; }
26822
26823
26824
26825
26826   $at_traceoff
26827   $at_times_p && times >"$at_times_file"
26828 ) 5>&1 2>&1 | eval $at_tee_pipe
26829 at_status=`cat "$at_status_file"`
26830 #AT_STOP_62
26831 #AT_START_63
26832 # 63. multiv02.at:28: skipping a straddling member
26833 at_setup_line='multiv02.at:28'
26834 at_desc="skipping a straddling member"
26835 $at_quiet $as_echo_n " 63: $at_desc                   "
26836 at_xfail=no
26837       test -f $XFAILFILE && at_xfail=yes
26838 echo "#                             -*- compilation -*-" >> "$at_group_log"
26839 (
26840   $as_echo "63. multiv02.at:28: testing ..."
26841   $at_traceon
26842
26843
26844
26845
26846
26847   { $at_traceoff
26848 $as_echo "$at_srcdir/multiv02.at:31:
26849 mkdir gnu
26850 (cd gnu
26851 TEST_TAR_FORMAT=gnu
26852 export TEST_TAR_FORMAT
26853 TAR_OPTIONS=\"-H gnu\"
26854 export TAR_OPTIONS
26855 rm -rf *
26856
26857 genfile --length 10240 --file en
26858 genfile --length 20000 --file to
26859 genfile --length 20000 --file tre
26860 genfile --length 10240 --file fire
26861
26862 exec <&-
26863
26864 tar -c -f A.tar -f B.tar -f C.tar -M -L 30 en to tre fire || exit 1
26865 echo separator
26866 tar -v -x -f A.tar -f B.tar -f C.tar -M en || exit 1
26867 )"
26868 echo multiv02.at:31 >"$at_check_line_file"
26869
26870 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
26871    false; }; then
26872   ( $at_traceon;
26873 mkdir gnu
26874 (cd gnu
26875 TEST_TAR_FORMAT=gnu
26876 export TEST_TAR_FORMAT
26877 TAR_OPTIONS="-H gnu"
26878 export TAR_OPTIONS
26879 rm -rf *
26880
26881 genfile --length 10240 --file en
26882 genfile --length 20000 --file to
26883 genfile --length 20000 --file tre
26884 genfile --length 10240 --file fire
26885
26886 exec <&-
26887
26888 tar -c -f A.tar -f B.tar -f C.tar -M -L 30 en to tre fire || exit 1
26889 echo separator
26890 tar -v -x -f A.tar -f B.tar -f C.tar -M en || exit 1
26891 ) ) >"$at_stdout" 2>"$at_stder1"
26892   at_func_filter_trace $?
26893 else
26894   ( :;
26895 mkdir gnu
26896 (cd gnu
26897 TEST_TAR_FORMAT=gnu
26898 export TEST_TAR_FORMAT
26899 TAR_OPTIONS="-H gnu"
26900 export TAR_OPTIONS
26901 rm -rf *
26902
26903 genfile --length 10240 --file en
26904 genfile --length 20000 --file to
26905 genfile --length 20000 --file tre
26906 genfile --length 10240 --file fire
26907
26908 exec <&-
26909
26910 tar -c -f A.tar -f B.tar -f C.tar -M -L 30 en to tre fire || exit 1
26911 echo separator
26912 tar -v -x -f A.tar -f B.tar -f C.tar -M en || exit 1
26913 ) ) >"$at_stdout" 2>"$at_stderr"
26914 fi
26915 at_status=$?
26916 at_failed=false
26917 at_func_diff_devnull "$at_stderr" || at_failed=:
26918 echo >>"$at_stdout"; $as_echo "separator
26919 en
26920 " | \
26921   $at_diff - "$at_stdout" || at_failed=:
26922 at_func_check_status 0 $at_status "$at_srcdir/multiv02.at:31"
26923
26924 $at_failed && at_func_log_failure
26925 $at_traceon; }
26926
26927               { $at_traceoff
26928 $as_echo "$at_srcdir/multiv02.at:31:
26929 mkdir oldgnu
26930 (cd oldgnu
26931 TEST_TAR_FORMAT=oldgnu
26932 export TEST_TAR_FORMAT
26933 TAR_OPTIONS=\"-H oldgnu\"
26934 export TAR_OPTIONS
26935 rm -rf *
26936
26937 genfile --length 10240 --file en
26938 genfile --length 20000 --file to
26939 genfile --length 20000 --file tre
26940 genfile --length 10240 --file fire
26941
26942 exec <&-
26943
26944 tar -c -f A.tar -f B.tar -f C.tar -M -L 30 en to tre fire || exit 1
26945 echo separator
26946 tar -v -x -f A.tar -f B.tar -f C.tar -M en || exit 1
26947 )"
26948 echo multiv02.at:31 >"$at_check_line_file"
26949
26950 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
26951    false; }; then
26952   ( $at_traceon;
26953 mkdir oldgnu
26954 (cd oldgnu
26955 TEST_TAR_FORMAT=oldgnu
26956 export TEST_TAR_FORMAT
26957 TAR_OPTIONS="-H oldgnu"
26958 export TAR_OPTIONS
26959 rm -rf *
26960
26961 genfile --length 10240 --file en
26962 genfile --length 20000 --file to
26963 genfile --length 20000 --file tre
26964 genfile --length 10240 --file fire
26965
26966 exec <&-
26967
26968 tar -c -f A.tar -f B.tar -f C.tar -M -L 30 en to tre fire || exit 1
26969 echo separator
26970 tar -v -x -f A.tar -f B.tar -f C.tar -M en || exit 1
26971 ) ) >"$at_stdout" 2>"$at_stder1"
26972   at_func_filter_trace $?
26973 else
26974   ( :;
26975 mkdir oldgnu
26976 (cd oldgnu
26977 TEST_TAR_FORMAT=oldgnu
26978 export TEST_TAR_FORMAT
26979 TAR_OPTIONS="-H oldgnu"
26980 export TAR_OPTIONS
26981 rm -rf *
26982
26983 genfile --length 10240 --file en
26984 genfile --length 20000 --file to
26985 genfile --length 20000 --file tre
26986 genfile --length 10240 --file fire
26987
26988 exec <&-
26989
26990 tar -c -f A.tar -f B.tar -f C.tar -M -L 30 en to tre fire || exit 1
26991 echo separator
26992 tar -v -x -f A.tar -f B.tar -f C.tar -M en || exit 1
26993 ) ) >"$at_stdout" 2>"$at_stderr"
26994 fi
26995 at_status=$?
26996 at_failed=false
26997 at_func_diff_devnull "$at_stderr" || at_failed=:
26998 echo >>"$at_stdout"; $as_echo "separator
26999 en
27000 " | \
27001   $at_diff - "$at_stdout" || at_failed=:
27002 at_func_check_status 0 $at_status "$at_srcdir/multiv02.at:31"
27003
27004 $at_failed && at_func_log_failure
27005 $at_traceon; }
27006
27007               { $at_traceoff
27008 $as_echo "$at_srcdir/multiv02.at:31:
27009 mkdir pax
27010 (cd pax
27011 TEST_TAR_FORMAT=pax
27012 export TEST_TAR_FORMAT
27013 TAR_OPTIONS=\"-H pax\"
27014 export TAR_OPTIONS
27015 rm -rf *
27016
27017 genfile --length 10240 --file en
27018 genfile --length 20000 --file to
27019 genfile --length 20000 --file tre
27020 genfile --length 10240 --file fire
27021
27022 exec <&-
27023
27024 tar -c -f A.tar -f B.tar -f C.tar -M -L 30 en to tre fire || exit 1
27025 echo separator
27026 tar -v -x -f A.tar -f B.tar -f C.tar -M en || exit 1
27027 )"
27028 echo multiv02.at:31 >"$at_check_line_file"
27029
27030 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
27031    false; }; then
27032   ( $at_traceon;
27033 mkdir pax
27034 (cd pax
27035 TEST_TAR_FORMAT=pax
27036 export TEST_TAR_FORMAT
27037 TAR_OPTIONS="-H pax"
27038 export TAR_OPTIONS
27039 rm -rf *
27040
27041 genfile --length 10240 --file en
27042 genfile --length 20000 --file to
27043 genfile --length 20000 --file tre
27044 genfile --length 10240 --file fire
27045
27046 exec <&-
27047
27048 tar -c -f A.tar -f B.tar -f C.tar -M -L 30 en to tre fire || exit 1
27049 echo separator
27050 tar -v -x -f A.tar -f B.tar -f C.tar -M en || exit 1
27051 ) ) >"$at_stdout" 2>"$at_stder1"
27052   at_func_filter_trace $?
27053 else
27054   ( :;
27055 mkdir pax
27056 (cd pax
27057 TEST_TAR_FORMAT=pax
27058 export TEST_TAR_FORMAT
27059 TAR_OPTIONS="-H pax"
27060 export TAR_OPTIONS
27061 rm -rf *
27062
27063 genfile --length 10240 --file en
27064 genfile --length 20000 --file to
27065 genfile --length 20000 --file tre
27066 genfile --length 10240 --file fire
27067
27068 exec <&-
27069
27070 tar -c -f A.tar -f B.tar -f C.tar -M -L 30 en to tre fire || exit 1
27071 echo separator
27072 tar -v -x -f A.tar -f B.tar -f C.tar -M en || exit 1
27073 ) ) >"$at_stdout" 2>"$at_stderr"
27074 fi
27075 at_status=$?
27076 at_failed=false
27077 at_func_diff_devnull "$at_stderr" || at_failed=:
27078 echo >>"$at_stdout"; $as_echo "separator
27079 en
27080 " | \
27081   $at_diff - "$at_stdout" || at_failed=:
27082 at_func_check_status 0 $at_status "$at_srcdir/multiv02.at:31"
27083
27084 $at_failed && at_func_log_failure
27085 $at_traceon; }
27086
27087
27088
27089
27090   $at_traceoff
27091   $at_times_p && times >"$at_times_file"
27092 ) 5>&1 2>&1 | eval $at_tee_pipe
27093 at_status=`cat "$at_status_file"`
27094 #AT_STOP_63
27095 #AT_START_64
27096 # 64. multiv03.at:30: MV archive & long filenames
27097 at_setup_line='multiv03.at:30'
27098 at_desc="MV archive & long filenames"
27099 $at_quiet $as_echo_n " 64: $at_desc                    "
27100 at_xfail=no
27101       test -f $XFAILFILE && at_xfail=yes
27102 echo "#                             -*- compilation -*-" >> "$at_group_log"
27103 (
27104   $as_echo "64. multiv03.at:30: testing ..."
27105   $at_traceon
27106
27107
27108
27109
27110
27111   { $at_traceoff
27112 $as_echo "$at_srcdir/multiv03.at:33:
27113 mkdir gnu
27114 (cd gnu
27115 TEST_TAR_FORMAT=gnu
27116 export TEST_TAR_FORMAT
27117 TAR_OPTIONS=\"-H gnu\"
27118 export TAR_OPTIONS
27119 rm -rf *
27120
27121 AFILE=\`awk 'BEGIN { for (i = 0; i < 100; i++) printf \"a\"; exit; }'\`
27122 BFILE=\`awk 'BEGIN { for (i = 0; i < 101; i++) printf \"b\"; exit; }'\`
27123
27124 cat > ../experr <<EOF
27125 tar: \$BFILE: file name too long to be stored in a GNU multivolume header, truncated
27126 tar: \\\`\$BFILE' is possibly continued on this volume: header contains truncated name
27127 EOF
27128
27129 cat > ../expout <<EOF
27130 \$AFILE
27131 separator-1
27132 separator-2
27133 EOF
27134
27135 genfile --length 15360 --file \$AFILE
27136
27137 exec <&-
27138
27139 tar -M -L 10 -c -f arch.1 -f arch.2 \$AFILE || exit 1
27140 tar -tM -f arch.1 -f arch.2 || exit 1
27141
27142 echo separator-1
27143
27144 genfile --length 15360 --file \$BFILE
27145 tar -M -L 10 -c -f arch.1 -f arch.2 \$BFILE || exit 1
27146
27147 echo separator-2
27148 mv \$BFILE bfile
27149 tar -M -x -f arch.1 -f arch.2 || exit 1
27150 cmp \$BFILE bfile
27151 )"
27152 echo multiv03.at:33 >"$at_check_line_file"
27153
27154 if { echo 'Not enabling shell tracing (command contains a `...` command substitution)'
27155    false; }; then
27156   ( $at_traceon;
27157 mkdir gnu
27158 (cd gnu
27159 TEST_TAR_FORMAT=gnu
27160 export TEST_TAR_FORMAT
27161 TAR_OPTIONS="-H gnu"
27162 export TAR_OPTIONS
27163 rm -rf *
27164
27165 AFILE=`awk 'BEGIN { for (i = 0; i < 100; i++) printf "a"; exit; }'`
27166 BFILE=`awk 'BEGIN { for (i = 0; i < 101; i++) printf "b"; exit; }'`
27167
27168 cat > ../experr <<EOF
27169 tar: $BFILE: file name too long to be stored in a GNU multivolume header, truncated
27170 tar: \`$BFILE' is possibly continued on this volume: header contains truncated name
27171 EOF
27172
27173 cat > ../expout <<EOF
27174 $AFILE
27175 separator-1
27176 separator-2
27177 EOF
27178
27179 genfile --length 15360 --file $AFILE
27180
27181 exec <&-
27182
27183 tar -M -L 10 -c -f arch.1 -f arch.2 $AFILE || exit 1
27184 tar -tM -f arch.1 -f arch.2 || exit 1
27185
27186 echo separator-1
27187
27188 genfile --length 15360 --file $BFILE
27189 tar -M -L 10 -c -f arch.1 -f arch.2 $BFILE || exit 1
27190
27191 echo separator-2
27192 mv $BFILE bfile
27193 tar -M -x -f arch.1 -f arch.2 || exit 1
27194 cmp $BFILE bfile
27195 ) ) >"$at_stdout" 2>"$at_stder1"
27196   at_func_filter_trace $?
27197 else
27198   ( :;
27199 mkdir gnu
27200 (cd gnu
27201 TEST_TAR_FORMAT=gnu
27202 export TEST_TAR_FORMAT
27203 TAR_OPTIONS="-H gnu"
27204 export TAR_OPTIONS
27205 rm -rf *
27206
27207 AFILE=`awk 'BEGIN { for (i = 0; i < 100; i++) printf "a"; exit; }'`
27208 BFILE=`awk 'BEGIN { for (i = 0; i < 101; i++) printf "b"; exit; }'`
27209
27210 cat > ../experr <<EOF
27211 tar: $BFILE: file name too long to be stored in a GNU multivolume header, truncated
27212 tar: \`$BFILE' is possibly continued on this volume: header contains truncated name
27213 EOF
27214
27215 cat > ../expout <<EOF
27216 $AFILE
27217 separator-1
27218 separator-2
27219 EOF
27220
27221 genfile --length 15360 --file $AFILE
27222
27223 exec <&-
27224
27225 tar -M -L 10 -c -f arch.1 -f arch.2 $AFILE || exit 1
27226 tar -tM -f arch.1 -f arch.2 || exit 1
27227
27228 echo separator-1
27229
27230 genfile --length 15360 --file $BFILE
27231 tar -M -L 10 -c -f arch.1 -f arch.2 $BFILE || exit 1
27232
27233 echo separator-2
27234 mv $BFILE bfile
27235 tar -M -x -f arch.1 -f arch.2 || exit 1
27236 cmp $BFILE bfile
27237 ) ) >"$at_stdout" 2>"$at_stderr"
27238 fi
27239 at_status=$?
27240 at_failed=false
27241 $at_diff experr "$at_stderr" || at_failed=:
27242 $at_diff expout "$at_stdout" || at_failed=:
27243 at_func_check_status 0 $at_status "$at_srcdir/multiv03.at:33"
27244
27245 $at_failed && at_func_log_failure
27246 $at_traceon; }
27247
27248               { $at_traceoff
27249 $as_echo "$at_srcdir/multiv03.at:33:
27250 mkdir oldgnu
27251 (cd oldgnu
27252 TEST_TAR_FORMAT=oldgnu
27253 export TEST_TAR_FORMAT
27254 TAR_OPTIONS=\"-H oldgnu\"
27255 export TAR_OPTIONS
27256 rm -rf *
27257
27258 AFILE=\`awk 'BEGIN { for (i = 0; i < 100; i++) printf \"a\"; exit; }'\`
27259 BFILE=\`awk 'BEGIN { for (i = 0; i < 101; i++) printf \"b\"; exit; }'\`
27260
27261 cat > ../experr <<EOF
27262 tar: \$BFILE: file name too long to be stored in a GNU multivolume header, truncated
27263 tar: \\\`\$BFILE' is possibly continued on this volume: header contains truncated name
27264 EOF
27265
27266 cat > ../expout <<EOF
27267 \$AFILE
27268 separator-1
27269 separator-2
27270 EOF
27271
27272 genfile --length 15360 --file \$AFILE
27273
27274 exec <&-
27275
27276 tar -M -L 10 -c -f arch.1 -f arch.2 \$AFILE || exit 1
27277 tar -tM -f arch.1 -f arch.2 || exit 1
27278
27279 echo separator-1
27280
27281 genfile --length 15360 --file \$BFILE
27282 tar -M -L 10 -c -f arch.1 -f arch.2 \$BFILE || exit 1
27283
27284 echo separator-2
27285 mv \$BFILE bfile
27286 tar -M -x -f arch.1 -f arch.2 || exit 1
27287 cmp \$BFILE bfile
27288 )"
27289 echo multiv03.at:33 >"$at_check_line_file"
27290
27291 if { echo 'Not enabling shell tracing (command contains a `...` command substitution)'
27292    false; }; then
27293   ( $at_traceon;
27294 mkdir oldgnu
27295 (cd oldgnu
27296 TEST_TAR_FORMAT=oldgnu
27297 export TEST_TAR_FORMAT
27298 TAR_OPTIONS="-H oldgnu"
27299 export TAR_OPTIONS
27300 rm -rf *
27301
27302 AFILE=`awk 'BEGIN { for (i = 0; i < 100; i++) printf "a"; exit; }'`
27303 BFILE=`awk 'BEGIN { for (i = 0; i < 101; i++) printf "b"; exit; }'`
27304
27305 cat > ../experr <<EOF
27306 tar: $BFILE: file name too long to be stored in a GNU multivolume header, truncated
27307 tar: \`$BFILE' is possibly continued on this volume: header contains truncated name
27308 EOF
27309
27310 cat > ../expout <<EOF
27311 $AFILE
27312 separator-1
27313 separator-2
27314 EOF
27315
27316 genfile --length 15360 --file $AFILE
27317
27318 exec <&-
27319
27320 tar -M -L 10 -c -f arch.1 -f arch.2 $AFILE || exit 1
27321 tar -tM -f arch.1 -f arch.2 || exit 1
27322
27323 echo separator-1
27324
27325 genfile --length 15360 --file $BFILE
27326 tar -M -L 10 -c -f arch.1 -f arch.2 $BFILE || exit 1
27327
27328 echo separator-2
27329 mv $BFILE bfile
27330 tar -M -x -f arch.1 -f arch.2 || exit 1
27331 cmp $BFILE bfile
27332 ) ) >"$at_stdout" 2>"$at_stder1"
27333   at_func_filter_trace $?
27334 else
27335   ( :;
27336 mkdir oldgnu
27337 (cd oldgnu
27338 TEST_TAR_FORMAT=oldgnu
27339 export TEST_TAR_FORMAT
27340 TAR_OPTIONS="-H oldgnu"
27341 export TAR_OPTIONS
27342 rm -rf *
27343
27344 AFILE=`awk 'BEGIN { for (i = 0; i < 100; i++) printf "a"; exit; }'`
27345 BFILE=`awk 'BEGIN { for (i = 0; i < 101; i++) printf "b"; exit; }'`
27346
27347 cat > ../experr <<EOF
27348 tar: $BFILE: file name too long to be stored in a GNU multivolume header, truncated
27349 tar: \`$BFILE' is possibly continued on this volume: header contains truncated name
27350 EOF
27351
27352 cat > ../expout <<EOF
27353 $AFILE
27354 separator-1
27355 separator-2
27356 EOF
27357
27358 genfile --length 15360 --file $AFILE
27359
27360 exec <&-
27361
27362 tar -M -L 10 -c -f arch.1 -f arch.2 $AFILE || exit 1
27363 tar -tM -f arch.1 -f arch.2 || exit 1
27364
27365 echo separator-1
27366
27367 genfile --length 15360 --file $BFILE
27368 tar -M -L 10 -c -f arch.1 -f arch.2 $BFILE || exit 1
27369
27370 echo separator-2
27371 mv $BFILE bfile
27372 tar -M -x -f arch.1 -f arch.2 || exit 1
27373 cmp $BFILE bfile
27374 ) ) >"$at_stdout" 2>"$at_stderr"
27375 fi
27376 at_status=$?
27377 at_failed=false
27378 $at_diff experr "$at_stderr" || at_failed=:
27379 $at_diff expout "$at_stdout" || at_failed=:
27380 at_func_check_status 0 $at_status "$at_srcdir/multiv03.at:33"
27381
27382 $at_failed && at_func_log_failure
27383 $at_traceon; }
27384
27385
27386
27387
27388   $at_traceoff
27389   $at_times_p && times >"$at_times_file"
27390 ) 5>&1 2>&1 | eval $at_tee_pipe
27391 at_status=`cat "$at_status_file"`
27392 #AT_STOP_64
27393 #AT_START_65
27394 # 65. multiv04.at:36: split directory members in a MV archive
27395 at_setup_line='multiv04.at:36'
27396 at_desc="split directory members in a MV archive"
27397 $at_quiet $as_echo_n " 65: $at_desc        "
27398 at_xfail=no
27399       test -f $XFAILFILE && at_xfail=yes
27400 echo "#                             -*- compilation -*-" >> "$at_group_log"
27401 (
27402   $as_echo "65. multiv04.at:36: testing ..."
27403   $at_traceon
27404
27405
27406
27407
27408
27409   { $at_traceoff
27410 $as_echo "$at_srcdir/multiv04.at:39:
27411 mkdir gnu
27412 (cd gnu
27413 TEST_TAR_FORMAT=gnu
27414 export TEST_TAR_FORMAT
27415 TAR_OPTIONS=\"-H gnu\"
27416 export TAR_OPTIONS
27417 rm -rf *
27418
27419
27420 mkdir directory
27421 awk 'BEGIN { for (i = 0; i < 1024; i++) printf(\"directory/%014x\\n\", i); }' </dev/null | genfile --files-from -
27422
27423 exec <&-
27424
27425 sleep 2
27426
27427 tar --listed-incremental=list -c -f archive.a directory
27428
27429 sleep 2
27430
27431 tar --listed-incremental=list -c --record-size 1024 -L 16 -f arc.1 -f arc.2 -v directory
27432
27433 echo separator
27434
27435 tar -MRt -f arc.1 -f arc.2)"
27436 echo multiv04.at:39 >"$at_check_line_file"
27437
27438 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
27439    false; }; then
27440   ( $at_traceon;
27441 mkdir gnu
27442 (cd gnu
27443 TEST_TAR_FORMAT=gnu
27444 export TEST_TAR_FORMAT
27445 TAR_OPTIONS="-H gnu"
27446 export TAR_OPTIONS
27447 rm -rf *
27448
27449
27450 mkdir directory
27451 awk 'BEGIN { for (i = 0; i < 1024; i++) printf("directory/%014x\n", i); }' </dev/null | genfile --files-from -
27452
27453 exec <&-
27454
27455 sleep 2
27456
27457 tar --listed-incremental=list -c -f archive.a directory
27458
27459 sleep 2
27460
27461 tar --listed-incremental=list -c --record-size 1024 -L 16 -f arc.1 -f arc.2 -v directory
27462
27463 echo separator
27464
27465 tar -MRt -f arc.1 -f arc.2) ) >"$at_stdout" 2>"$at_stder1"
27466   at_func_filter_trace $?
27467 else
27468   ( :;
27469 mkdir gnu
27470 (cd gnu
27471 TEST_TAR_FORMAT=gnu
27472 export TEST_TAR_FORMAT
27473 TAR_OPTIONS="-H gnu"
27474 export TAR_OPTIONS
27475 rm -rf *
27476
27477
27478 mkdir directory
27479 awk 'BEGIN { for (i = 0; i < 1024; i++) printf("directory/%014x\n", i); }' </dev/null | genfile --files-from -
27480
27481 exec <&-
27482
27483 sleep 2
27484
27485 tar --listed-incremental=list -c -f archive.a directory
27486
27487 sleep 2
27488
27489 tar --listed-incremental=list -c --record-size 1024 -L 16 -f arc.1 -f arc.2 -v directory
27490
27491 echo separator
27492
27493 tar -MRt -f arc.1 -f arc.2) ) >"$at_stdout" 2>"$at_stderr"
27494 fi
27495 at_status=$?
27496 at_failed=false
27497 at_func_diff_devnull "$at_stderr" || at_failed=:
27498 echo >>"$at_stdout"; $as_echo "directory/
27499 separator
27500 block 0: directory/
27501 block 35: ** Block of NULs **
27502 " | \
27503   $at_diff - "$at_stdout" || at_failed=:
27504 at_func_check_status 0 $at_status "$at_srcdir/multiv04.at:39"
27505
27506 $at_failed && at_func_log_failure
27507 $at_traceon; }
27508
27509               { $at_traceoff
27510 $as_echo "$at_srcdir/multiv04.at:39:
27511 mkdir oldgnu
27512 (cd oldgnu
27513 TEST_TAR_FORMAT=oldgnu
27514 export TEST_TAR_FORMAT
27515 TAR_OPTIONS=\"-H oldgnu\"
27516 export TAR_OPTIONS
27517 rm -rf *
27518
27519
27520 mkdir directory
27521 awk 'BEGIN { for (i = 0; i < 1024; i++) printf(\"directory/%014x\\n\", i); }' </dev/null | genfile --files-from -
27522
27523 exec <&-
27524
27525 sleep 2
27526
27527 tar --listed-incremental=list -c -f archive.a directory
27528
27529 sleep 2
27530
27531 tar --listed-incremental=list -c --record-size 1024 -L 16 -f arc.1 -f arc.2 -v directory
27532
27533 echo separator
27534
27535 tar -MRt -f arc.1 -f arc.2)"
27536 echo multiv04.at:39 >"$at_check_line_file"
27537
27538 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
27539    false; }; then
27540   ( $at_traceon;
27541 mkdir oldgnu
27542 (cd oldgnu
27543 TEST_TAR_FORMAT=oldgnu
27544 export TEST_TAR_FORMAT
27545 TAR_OPTIONS="-H oldgnu"
27546 export TAR_OPTIONS
27547 rm -rf *
27548
27549
27550 mkdir directory
27551 awk 'BEGIN { for (i = 0; i < 1024; i++) printf("directory/%014x\n", i); }' </dev/null | genfile --files-from -
27552
27553 exec <&-
27554
27555 sleep 2
27556
27557 tar --listed-incremental=list -c -f archive.a directory
27558
27559 sleep 2
27560
27561 tar --listed-incremental=list -c --record-size 1024 -L 16 -f arc.1 -f arc.2 -v directory
27562
27563 echo separator
27564
27565 tar -MRt -f arc.1 -f arc.2) ) >"$at_stdout" 2>"$at_stder1"
27566   at_func_filter_trace $?
27567 else
27568   ( :;
27569 mkdir oldgnu
27570 (cd oldgnu
27571 TEST_TAR_FORMAT=oldgnu
27572 export TEST_TAR_FORMAT
27573 TAR_OPTIONS="-H oldgnu"
27574 export TAR_OPTIONS
27575 rm -rf *
27576
27577
27578 mkdir directory
27579 awk 'BEGIN { for (i = 0; i < 1024; i++) printf("directory/%014x\n", i); }' </dev/null | genfile --files-from -
27580
27581 exec <&-
27582
27583 sleep 2
27584
27585 tar --listed-incremental=list -c -f archive.a directory
27586
27587 sleep 2
27588
27589 tar --listed-incremental=list -c --record-size 1024 -L 16 -f arc.1 -f arc.2 -v directory
27590
27591 echo separator
27592
27593 tar -MRt -f arc.1 -f arc.2) ) >"$at_stdout" 2>"$at_stderr"
27594 fi
27595 at_status=$?
27596 at_failed=false
27597 at_func_diff_devnull "$at_stderr" || at_failed=:
27598 echo >>"$at_stdout"; $as_echo "directory/
27599 separator
27600 block 0: directory/
27601 block 35: ** Block of NULs **
27602 " | \
27603   $at_diff - "$at_stdout" || at_failed=:
27604 at_func_check_status 0 $at_status "$at_srcdir/multiv04.at:39"
27605
27606 $at_failed && at_func_log_failure
27607 $at_traceon; }
27608
27609
27610
27611
27612   $at_traceoff
27613   $at_times_p && times >"$at_times_file"
27614 ) 5>&1 2>&1 | eval $at_tee_pipe
27615 at_status=`cat "$at_status_file"`
27616 #AT_STOP_65
27617 #AT_START_66
27618 # 66. multiv05.at:26: Restoring after an out of sync volume
27619 at_setup_line='multiv05.at:26'
27620 at_desc="Restoring after an out of sync volume"
27621 $at_quiet $as_echo_n " 66: $at_desc          "
27622 at_xfail=no
27623       test -f $XFAILFILE && at_xfail=yes
27624 echo "#                             -*- compilation -*-" >> "$at_group_log"
27625 (
27626   $as_echo "66. multiv05.at:26: testing ..."
27627   $at_traceon
27628
27629
27630
27631
27632
27633
27634   { $at_traceoff
27635 $as_echo "$at_srcdir/multiv05.at:30:
27636 mkdir gnu
27637 (cd gnu
27638 TEST_TAR_FORMAT=gnu
27639 export TEST_TAR_FORMAT
27640 TAR_OPTIONS=\"-H gnu\"
27641 export TAR_OPTIONS
27642 rm -rf *
27643
27644 exec <&-
27645
27646 genfile --length 250k --file jeden
27647 genfile --length 250k --file dwa
27648 genfile --length 250k --file trzy
27649 genfile --length 250k --file cztery
27650 genfile --length 250k --file piec
27651 genfile --length 250k --file szesc
27652
27653
27654 echo Creating archive
27655 tar -c -M -L 502 -f a.tar -f b.tar -f c.tar jeden dwa trzy cztery piec szesc
27656 echo separator
27657 mkdir bak
27658 mv jeden dwa trzy cztery piec szesc bak
27659 tar -vxM -f a.tar -f c.tar -f b.tar -f c.tar
27660 echo Diffing jeden
27661    cmp bak/jeden jeden || exit 1
27662 echo Diffing dwa
27663    cmp bak/dwa dwa || exit 1
27664 echo Diffing trzy
27665    cmp bak/trzy trzy || exit 1
27666 echo Diffing cztery
27667    cmp bak/cztery cztery || exit 1
27668 echo Diffing piec
27669    cmp bak/piec piec || exit 1
27670 echo Diffing szesc
27671    cmp bak/szesc szesc || exit 1
27672 )"
27673 echo multiv05.at:30 >"$at_check_line_file"
27674
27675 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
27676    false; }; then
27677   ( $at_traceon;
27678 mkdir gnu
27679 (cd gnu
27680 TEST_TAR_FORMAT=gnu
27681 export TEST_TAR_FORMAT
27682 TAR_OPTIONS="-H gnu"
27683 export TAR_OPTIONS
27684 rm -rf *
27685
27686 exec <&-
27687
27688 genfile --length 250k --file jeden
27689 genfile --length 250k --file dwa
27690 genfile --length 250k --file trzy
27691 genfile --length 250k --file cztery
27692 genfile --length 250k --file piec
27693 genfile --length 250k --file szesc
27694
27695
27696 echo Creating archive
27697 tar -c -M -L 502 -f a.tar -f b.tar -f c.tar jeden dwa trzy cztery piec szesc
27698 echo separator
27699 mkdir bak
27700 mv jeden dwa trzy cztery piec szesc bak
27701 tar -vxM -f a.tar -f c.tar -f b.tar -f c.tar
27702 echo Diffing jeden
27703    cmp bak/jeden jeden || exit 1
27704 echo Diffing dwa
27705    cmp bak/dwa dwa || exit 1
27706 echo Diffing trzy
27707    cmp bak/trzy trzy || exit 1
27708 echo Diffing cztery
27709    cmp bak/cztery cztery || exit 1
27710 echo Diffing piec
27711    cmp bak/piec piec || exit 1
27712 echo Diffing szesc
27713    cmp bak/szesc szesc || exit 1
27714 ) ) >"$at_stdout" 2>"$at_stder1"
27715   at_func_filter_trace $?
27716 else
27717   ( :;
27718 mkdir gnu
27719 (cd gnu
27720 TEST_TAR_FORMAT=gnu
27721 export TEST_TAR_FORMAT
27722 TAR_OPTIONS="-H gnu"
27723 export TAR_OPTIONS
27724 rm -rf *
27725
27726 exec <&-
27727
27728 genfile --length 250k --file jeden
27729 genfile --length 250k --file dwa
27730 genfile --length 250k --file trzy
27731 genfile --length 250k --file cztery
27732 genfile --length 250k --file piec
27733 genfile --length 250k --file szesc
27734
27735
27736 echo Creating archive
27737 tar -c -M -L 502 -f a.tar -f b.tar -f c.tar jeden dwa trzy cztery piec szesc
27738 echo separator
27739 mkdir bak
27740 mv jeden dwa trzy cztery piec szesc bak
27741 tar -vxM -f a.tar -f c.tar -f b.tar -f c.tar
27742 echo Diffing jeden
27743    cmp bak/jeden jeden || exit 1
27744 echo Diffing dwa
27745    cmp bak/dwa dwa || exit 1
27746 echo Diffing trzy
27747    cmp bak/trzy trzy || exit 1
27748 echo Diffing cztery
27749    cmp bak/cztery cztery || exit 1
27750 echo Diffing piec
27751    cmp bak/piec piec || exit 1
27752 echo Diffing szesc
27753    cmp bak/szesc szesc || exit 1
27754 ) ) >"$at_stdout" 2>"$at_stderr"
27755 fi
27756 at_status=$?
27757 at_failed=false
27758 echo >>"$at_stderr"; $as_echo "tar: \`trzy' is not continued on this volume
27759 " | \
27760   $at_diff - "$at_stderr" || at_failed=:
27761 echo >>"$at_stdout"; $as_echo "Creating archive
27762 separator
27763 jeden
27764 dwa
27765 trzy
27766 cztery
27767 piec
27768 szesc
27769 Diffing jeden
27770 Diffing dwa
27771 Diffing trzy
27772 Diffing cztery
27773 Diffing piec
27774 Diffing szesc
27775 " | \
27776   $at_diff - "$at_stdout" || at_failed=:
27777 at_func_check_status 0 $at_status "$at_srcdir/multiv05.at:30"
27778
27779 $at_failed && at_func_log_failure
27780 $at_traceon; }
27781
27782
27783
27784
27785   $at_traceoff
27786   $at_times_p && times >"$at_times_file"
27787 ) 5>&1 2>&1 | eval $at_tee_pipe
27788 at_status=`cat "$at_status_file"`
27789 #AT_STOP_66
27790 #AT_START_67
27791 # 67. multiv06.at:27: Multivolumes with L=record_size
27792 at_setup_line='multiv06.at:27'
27793 at_desc="Multivolumes with L=record_size"
27794 $at_quiet $as_echo_n " 67: $at_desc                "
27795 at_xfail=no
27796       test -f $XFAILFILE && at_xfail=yes
27797 echo "#                             -*- compilation -*-" >> "$at_group_log"
27798 (
27799   $as_echo "67. multiv06.at:27: testing ..."
27800   $at_traceon
27801
27802
27803
27804
27805
27806   { $at_traceoff
27807 $as_echo "$at_srcdir/multiv06.at:30:
27808 mkdir gnu
27809 (cd gnu
27810 TEST_TAR_FORMAT=gnu
27811 export TEST_TAR_FORMAT
27812 TAR_OPTIONS=\"-H gnu\"
27813 export TAR_OPTIONS
27814 rm -rf *
27815
27816 exec <&-
27817 decho Creating file
27818 genfile --length 20139 --file file
27819 decho Creating archive
27820 tar -c -M -L10 -b20 -farc.1 -farc.2 -farc.3 file
27821 decho Testing archive
27822 tar -t -M -farc.1 -farc.2 -farc.3)"
27823 echo multiv06.at:30 >"$at_check_line_file"
27824
27825 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
27826    false; }; then
27827   ( $at_traceon;
27828 mkdir gnu
27829 (cd gnu
27830 TEST_TAR_FORMAT=gnu
27831 export TEST_TAR_FORMAT
27832 TAR_OPTIONS="-H gnu"
27833 export TAR_OPTIONS
27834 rm -rf *
27835
27836 exec <&-
27837 decho Creating file
27838 genfile --length 20139 --file file
27839 decho Creating archive
27840 tar -c -M -L10 -b20 -farc.1 -farc.2 -farc.3 file
27841 decho Testing archive
27842 tar -t -M -farc.1 -farc.2 -farc.3) ) >"$at_stdout" 2>"$at_stder1"
27843   at_func_filter_trace $?
27844 else
27845   ( :;
27846 mkdir gnu
27847 (cd gnu
27848 TEST_TAR_FORMAT=gnu
27849 export TEST_TAR_FORMAT
27850 TAR_OPTIONS="-H gnu"
27851 export TAR_OPTIONS
27852 rm -rf *
27853
27854 exec <&-
27855 decho Creating file
27856 genfile --length 20139 --file file
27857 decho Creating archive
27858 tar -c -M -L10 -b20 -farc.1 -farc.2 -farc.3 file
27859 decho Testing archive
27860 tar -t -M -farc.1 -farc.2 -farc.3) ) >"$at_stdout" 2>"$at_stderr"
27861 fi
27862 at_status=$?
27863 at_failed=false
27864 echo >>"$at_stderr"; $as_echo "Creating file
27865 Creating archive
27866 Testing archive
27867 " | \
27868   $at_diff - "$at_stderr" || at_failed=:
27869 echo >>"$at_stdout"; $as_echo "Creating file
27870 Creating archive
27871 Testing archive
27872 file
27873 " | \
27874   $at_diff - "$at_stdout" || at_failed=:
27875 at_func_check_status 0 $at_status "$at_srcdir/multiv06.at:30"
27876
27877 $at_failed && at_func_log_failure
27878 $at_traceon; }
27879
27880               { $at_traceoff
27881 $as_echo "$at_srcdir/multiv06.at:30:
27882 mkdir pax
27883 (cd pax
27884 TEST_TAR_FORMAT=pax
27885 export TEST_TAR_FORMAT
27886 TAR_OPTIONS=\"-H pax\"
27887 export TAR_OPTIONS
27888 rm -rf *
27889
27890 exec <&-
27891 decho Creating file
27892 genfile --length 20139 --file file
27893 decho Creating archive
27894 tar -c -M -L10 -b20 -farc.1 -farc.2 -farc.3 file
27895 decho Testing archive
27896 tar -t -M -farc.1 -farc.2 -farc.3)"
27897 echo multiv06.at:30 >"$at_check_line_file"
27898
27899 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
27900    false; }; then
27901   ( $at_traceon;
27902 mkdir pax
27903 (cd pax
27904 TEST_TAR_FORMAT=pax
27905 export TEST_TAR_FORMAT
27906 TAR_OPTIONS="-H pax"
27907 export TAR_OPTIONS
27908 rm -rf *
27909
27910 exec <&-
27911 decho Creating file
27912 genfile --length 20139 --file file
27913 decho Creating archive
27914 tar -c -M -L10 -b20 -farc.1 -farc.2 -farc.3 file
27915 decho Testing archive
27916 tar -t -M -farc.1 -farc.2 -farc.3) ) >"$at_stdout" 2>"$at_stder1"
27917   at_func_filter_trace $?
27918 else
27919   ( :;
27920 mkdir pax
27921 (cd pax
27922 TEST_TAR_FORMAT=pax
27923 export TEST_TAR_FORMAT
27924 TAR_OPTIONS="-H pax"
27925 export TAR_OPTIONS
27926 rm -rf *
27927
27928 exec <&-
27929 decho Creating file
27930 genfile --length 20139 --file file
27931 decho Creating archive
27932 tar -c -M -L10 -b20 -farc.1 -farc.2 -farc.3 file
27933 decho Testing archive
27934 tar -t -M -farc.1 -farc.2 -farc.3) ) >"$at_stdout" 2>"$at_stderr"
27935 fi
27936 at_status=$?
27937 at_failed=false
27938 echo >>"$at_stderr"; $as_echo "Creating file
27939 Creating archive
27940 Testing archive
27941 " | \
27942   $at_diff - "$at_stderr" || at_failed=:
27943 echo >>"$at_stdout"; $as_echo "Creating file
27944 Creating archive
27945 Testing archive
27946 file
27947 " | \
27948   $at_diff - "$at_stdout" || at_failed=:
27949 at_func_check_status 0 $at_status "$at_srcdir/multiv06.at:30"
27950
27951 $at_failed && at_func_log_failure
27952 $at_traceon; }
27953
27954
27955
27956
27957   $at_traceoff
27958   $at_times_p && times >"$at_times_file"
27959 ) 5>&1 2>&1 | eval $at_tee_pipe
27960 at_status=`cat "$at_status_file"`
27961 #AT_STOP_67
27962 #AT_START_68
27963 # 68. multiv07.at:26: volumes split at an extended header
27964 at_setup_line='multiv07.at:26'
27965 at_desc="volumes split at an extended header"
27966 $at_quiet $as_echo_n " 68: $at_desc            "
27967 at_xfail=no
27968       test -f \$XFAILFILE && at_xfail=yes
27969       test -f $XFAILFILE && at_xfail=yes
27970       test -f $XFAILFILE && at_xfail=yes
27971 echo "#                             -*- compilation -*-" >> "$at_group_log"
27972 (
27973   $as_echo "68. multiv07.at:26: testing ..."
27974   $at_traceon
27975
27976
27977
27978 { $at_traceoff
27979 $as_echo "$at_srcdir/multiv07.at:29:
27980
27981
27982 test -z "$TEST_DATA_DIR" && exit 77
27983 tarball_prereq xsplit-1.tar 0e008c84c517e48fbf23ca6a7033cde6 $TEST_DATA_DIR $TEST_DATA_URL || exit 77
27984
27985 test -z "$TEST_DATA_DIR" && exit 77
27986 tarball_prereq xsplit-2.tar 03150b9852d285458f43734e9e0b9a45 $TEST_DATA_DIR $TEST_DATA_URL || exit 77
27987
27988 cd \$TEST_DATA_DIR
27989 tar -t -M -fxsplit-1.tar -fxsplit-2.tar
27990 "
27991 echo multiv07.at:29 >"$at_check_line_file"
27992
27993 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
27994    false; }; then
27995   ( $at_traceon;
27996
27997
27998 test -z "$TEST_DATA_DIR" && exit 77
27999 tarball_prereq xsplit-1.tar 0e008c84c517e48fbf23ca6a7033cde6 $TEST_DATA_DIR $TEST_DATA_URL || exit 77
28000
28001 test -z "$TEST_DATA_DIR" && exit 77
28002 tarball_prereq xsplit-2.tar 03150b9852d285458f43734e9e0b9a45 $TEST_DATA_DIR $TEST_DATA_URL || exit 77
28003
28004 cd $TEST_DATA_DIR
28005 tar -t -M -fxsplit-1.tar -fxsplit-2.tar
28006  ) >"$at_stdout" 2>"$at_stder1"
28007   at_func_filter_trace $?
28008 else
28009   ( :;
28010
28011
28012 test -z "$TEST_DATA_DIR" && exit 77
28013 tarball_prereq xsplit-1.tar 0e008c84c517e48fbf23ca6a7033cde6 $TEST_DATA_DIR $TEST_DATA_URL || exit 77
28014
28015 test -z "$TEST_DATA_DIR" && exit 77
28016 tarball_prereq xsplit-2.tar 03150b9852d285458f43734e9e0b9a45 $TEST_DATA_DIR $TEST_DATA_URL || exit 77
28017
28018 cd $TEST_DATA_DIR
28019 tar -t -M -fxsplit-1.tar -fxsplit-2.tar
28020  ) >"$at_stdout" 2>"$at_stderr"
28021 fi
28022 at_status=$?
28023 at_failed=false
28024 at_func_diff_devnull "$at_stderr" || at_failed=:
28025 echo >>"$at_stdout"; $as_echo "Archive volumes split at an extended header Volume 1
28026 foo
28027 bar
28028 " | \
28029   $at_diff - "$at_stdout" || at_failed=:
28030 at_func_check_status 0 $at_status "$at_srcdir/multiv07.at:29"
28031
28032 $at_failed && at_func_log_failure
28033 $at_traceon; }
28034
28035
28036   $at_traceoff
28037   $at_times_p && times >"$at_times_file"
28038 ) 5>&1 2>&1 | eval $at_tee_pipe
28039 at_status=`cat "$at_status_file"`
28040 #AT_STOP_68
28041 #AT_START_69
28042 # 69. old.at:23: old archives
28043 at_setup_line='old.at:23'
28044 at_desc="old archives"
28045 $at_quiet $as_echo_n " 69: $at_desc                                   "
28046 at_xfail=no
28047 echo "#                             -*- compilation -*-" >> "$at_group_log"
28048 (
28049   $as_echo "69. old.at:23: testing ..."
28050   $at_traceon
28051
28052
28053
28054 unset TAR_OPTIONS
28055 { $at_traceoff
28056 $as_echo "$at_srcdir/old.at:27:
28057 mkdir directory
28058 tar cfvo archive directory || exit 1
28059 tar tf archive
28060 "
28061 echo old.at:27 >"$at_check_line_file"
28062
28063 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
28064    false; }; then
28065   ( $at_traceon;
28066 mkdir directory
28067 tar cfvo archive directory || exit 1
28068 tar tf archive
28069  ) >"$at_stdout" 2>"$at_stder1"
28070   at_func_filter_trace $?
28071 else
28072   ( :;
28073 mkdir directory
28074 tar cfvo archive directory || exit 1
28075 tar tf archive
28076  ) >"$at_stdout" 2>"$at_stderr"
28077 fi
28078 at_status=$?
28079 at_failed=false
28080 at_func_diff_devnull "$at_stderr" || at_failed=:
28081 echo >>"$at_stdout"; $as_echo "directory/
28082 directory/
28083 " | \
28084   $at_diff - "$at_stdout" || at_failed=:
28085 at_func_check_status 0 $at_status "$at_srcdir/old.at:27"
28086
28087 $at_failed && at_func_log_failure
28088 $at_traceon; }
28089
28090
28091   $at_traceoff
28092   $at_times_p && times >"$at_times_file"
28093 ) 5>&1 2>&1 | eval $at_tee_pipe
28094 at_status=`cat "$at_status_file"`
28095 #AT_STOP_69
28096 #AT_START_70
28097 # 70. recurse.at:21: recurse
28098 at_setup_line='recurse.at:21'
28099 at_desc="recurse"
28100 $at_quiet $as_echo_n " 70: $at_desc                                        "
28101 at_xfail=no
28102       test -f $XFAILFILE && at_xfail=yes
28103 echo "#                             -*- compilation -*-" >> "$at_group_log"
28104 (
28105   $as_echo "70. recurse.at:21: testing ..."
28106   $at_traceon
28107
28108
28109
28110
28111
28112   { $at_traceoff
28113 $as_echo "$at_srcdir/recurse.at:24:
28114 mkdir v7
28115 (cd v7
28116 TEST_TAR_FORMAT=v7
28117 export TEST_TAR_FORMAT
28118 TAR_OPTIONS=\"-H v7\"
28119 export TAR_OPTIONS
28120 rm -rf *
28121
28122 mkdir directory
28123 touch directory/file
28124 tar --create --file archive --no-recursion directory || exit 1
28125 tar tf archive
28126 )"
28127 echo recurse.at:24 >"$at_check_line_file"
28128
28129 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
28130    false; }; then
28131   ( $at_traceon;
28132 mkdir v7
28133 (cd v7
28134 TEST_TAR_FORMAT=v7
28135 export TEST_TAR_FORMAT
28136 TAR_OPTIONS="-H v7"
28137 export TAR_OPTIONS
28138 rm -rf *
28139
28140 mkdir directory
28141 touch directory/file
28142 tar --create --file archive --no-recursion directory || exit 1
28143 tar tf archive
28144 ) ) >"$at_stdout" 2>"$at_stder1"
28145   at_func_filter_trace $?
28146 else
28147   ( :;
28148 mkdir v7
28149 (cd v7
28150 TEST_TAR_FORMAT=v7
28151 export TEST_TAR_FORMAT
28152 TAR_OPTIONS="-H v7"
28153 export TAR_OPTIONS
28154 rm -rf *
28155
28156 mkdir directory
28157 touch directory/file
28158 tar --create --file archive --no-recursion directory || exit 1
28159 tar tf archive
28160 ) ) >"$at_stdout" 2>"$at_stderr"
28161 fi
28162 at_status=$?
28163 at_failed=false
28164 at_func_diff_devnull "$at_stderr" || at_failed=:
28165 echo >>"$at_stdout"; $as_echo "directory/
28166 " | \
28167   $at_diff - "$at_stdout" || at_failed=:
28168 at_func_check_status 0 $at_status "$at_srcdir/recurse.at:24"
28169
28170 $at_failed && at_func_log_failure
28171 $at_traceon; }
28172
28173               { $at_traceoff
28174 $as_echo "$at_srcdir/recurse.at:24:
28175 mkdir oldgnu
28176 (cd oldgnu
28177 TEST_TAR_FORMAT=oldgnu
28178 export TEST_TAR_FORMAT
28179 TAR_OPTIONS=\"-H oldgnu\"
28180 export TAR_OPTIONS
28181 rm -rf *
28182
28183 mkdir directory
28184 touch directory/file
28185 tar --create --file archive --no-recursion directory || exit 1
28186 tar tf archive
28187 )"
28188 echo recurse.at:24 >"$at_check_line_file"
28189
28190 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
28191    false; }; then
28192   ( $at_traceon;
28193 mkdir oldgnu
28194 (cd oldgnu
28195 TEST_TAR_FORMAT=oldgnu
28196 export TEST_TAR_FORMAT
28197 TAR_OPTIONS="-H oldgnu"
28198 export TAR_OPTIONS
28199 rm -rf *
28200
28201 mkdir directory
28202 touch directory/file
28203 tar --create --file archive --no-recursion directory || exit 1
28204 tar tf archive
28205 ) ) >"$at_stdout" 2>"$at_stder1"
28206   at_func_filter_trace $?
28207 else
28208   ( :;
28209 mkdir oldgnu
28210 (cd oldgnu
28211 TEST_TAR_FORMAT=oldgnu
28212 export TEST_TAR_FORMAT
28213 TAR_OPTIONS="-H oldgnu"
28214 export TAR_OPTIONS
28215 rm -rf *
28216
28217 mkdir directory
28218 touch directory/file
28219 tar --create --file archive --no-recursion directory || exit 1
28220 tar tf archive
28221 ) ) >"$at_stdout" 2>"$at_stderr"
28222 fi
28223 at_status=$?
28224 at_failed=false
28225 at_func_diff_devnull "$at_stderr" || at_failed=:
28226 echo >>"$at_stdout"; $as_echo "directory/
28227 " | \
28228   $at_diff - "$at_stdout" || at_failed=:
28229 at_func_check_status 0 $at_status "$at_srcdir/recurse.at:24"
28230
28231 $at_failed && at_func_log_failure
28232 $at_traceon; }
28233
28234               { $at_traceoff
28235 $as_echo "$at_srcdir/recurse.at:24:
28236 mkdir ustar
28237 (cd ustar
28238 TEST_TAR_FORMAT=ustar
28239 export TEST_TAR_FORMAT
28240 TAR_OPTIONS=\"-H ustar\"
28241 export TAR_OPTIONS
28242 rm -rf *
28243
28244 mkdir directory
28245 touch directory/file
28246 tar --create --file archive --no-recursion directory || exit 1
28247 tar tf archive
28248 )"
28249 echo recurse.at:24 >"$at_check_line_file"
28250
28251 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
28252    false; }; then
28253   ( $at_traceon;
28254 mkdir ustar
28255 (cd ustar
28256 TEST_TAR_FORMAT=ustar
28257 export TEST_TAR_FORMAT
28258 TAR_OPTIONS="-H ustar"
28259 export TAR_OPTIONS
28260 rm -rf *
28261
28262 mkdir directory
28263 touch directory/file
28264 tar --create --file archive --no-recursion directory || exit 1
28265 tar tf archive
28266 ) ) >"$at_stdout" 2>"$at_stder1"
28267   at_func_filter_trace $?
28268 else
28269   ( :;
28270 mkdir ustar
28271 (cd ustar
28272 TEST_TAR_FORMAT=ustar
28273 export TEST_TAR_FORMAT
28274 TAR_OPTIONS="-H ustar"
28275 export TAR_OPTIONS
28276 rm -rf *
28277
28278 mkdir directory
28279 touch directory/file
28280 tar --create --file archive --no-recursion directory || exit 1
28281 tar tf archive
28282 ) ) >"$at_stdout" 2>"$at_stderr"
28283 fi
28284 at_status=$?
28285 at_failed=false
28286 at_func_diff_devnull "$at_stderr" || at_failed=:
28287 echo >>"$at_stdout"; $as_echo "directory/
28288 " | \
28289   $at_diff - "$at_stdout" || at_failed=:
28290 at_func_check_status 0 $at_status "$at_srcdir/recurse.at:24"
28291
28292 $at_failed && at_func_log_failure
28293 $at_traceon; }
28294
28295               { $at_traceoff
28296 $as_echo "$at_srcdir/recurse.at:24:
28297 mkdir posix
28298 (cd posix
28299 TEST_TAR_FORMAT=posix
28300 export TEST_TAR_FORMAT
28301 TAR_OPTIONS=\"-H posix\"
28302 export TAR_OPTIONS
28303 rm -rf *
28304
28305 mkdir directory
28306 touch directory/file
28307 tar --create --file archive --no-recursion directory || exit 1
28308 tar tf archive
28309 )"
28310 echo recurse.at:24 >"$at_check_line_file"
28311
28312 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
28313    false; }; then
28314   ( $at_traceon;
28315 mkdir posix
28316 (cd posix
28317 TEST_TAR_FORMAT=posix
28318 export TEST_TAR_FORMAT
28319 TAR_OPTIONS="-H posix"
28320 export TAR_OPTIONS
28321 rm -rf *
28322
28323 mkdir directory
28324 touch directory/file
28325 tar --create --file archive --no-recursion directory || exit 1
28326 tar tf archive
28327 ) ) >"$at_stdout" 2>"$at_stder1"
28328   at_func_filter_trace $?
28329 else
28330   ( :;
28331 mkdir posix
28332 (cd posix
28333 TEST_TAR_FORMAT=posix
28334 export TEST_TAR_FORMAT
28335 TAR_OPTIONS="-H posix"
28336 export TAR_OPTIONS
28337 rm -rf *
28338
28339 mkdir directory
28340 touch directory/file
28341 tar --create --file archive --no-recursion directory || exit 1
28342 tar tf archive
28343 ) ) >"$at_stdout" 2>"$at_stderr"
28344 fi
28345 at_status=$?
28346 at_failed=false
28347 at_func_diff_devnull "$at_stderr" || at_failed=:
28348 echo >>"$at_stdout"; $as_echo "directory/
28349 " | \
28350   $at_diff - "$at_stdout" || at_failed=:
28351 at_func_check_status 0 $at_status "$at_srcdir/recurse.at:24"
28352
28353 $at_failed && at_func_log_failure
28354 $at_traceon; }
28355
28356               { $at_traceoff
28357 $as_echo "$at_srcdir/recurse.at:24:
28358 mkdir gnu
28359 (cd gnu
28360 TEST_TAR_FORMAT=gnu
28361 export TEST_TAR_FORMAT
28362 TAR_OPTIONS=\"-H gnu\"
28363 export TAR_OPTIONS
28364 rm -rf *
28365
28366 mkdir directory
28367 touch directory/file
28368 tar --create --file archive --no-recursion directory || exit 1
28369 tar tf archive
28370 )"
28371 echo recurse.at:24 >"$at_check_line_file"
28372
28373 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
28374    false; }; then
28375   ( $at_traceon;
28376 mkdir gnu
28377 (cd gnu
28378 TEST_TAR_FORMAT=gnu
28379 export TEST_TAR_FORMAT
28380 TAR_OPTIONS="-H gnu"
28381 export TAR_OPTIONS
28382 rm -rf *
28383
28384 mkdir directory
28385 touch directory/file
28386 tar --create --file archive --no-recursion directory || exit 1
28387 tar tf archive
28388 ) ) >"$at_stdout" 2>"$at_stder1"
28389   at_func_filter_trace $?
28390 else
28391   ( :;
28392 mkdir gnu
28393 (cd gnu
28394 TEST_TAR_FORMAT=gnu
28395 export TEST_TAR_FORMAT
28396 TAR_OPTIONS="-H gnu"
28397 export TAR_OPTIONS
28398 rm -rf *
28399
28400 mkdir directory
28401 touch directory/file
28402 tar --create --file archive --no-recursion directory || exit 1
28403 tar tf archive
28404 ) ) >"$at_stdout" 2>"$at_stderr"
28405 fi
28406 at_status=$?
28407 at_failed=false
28408 at_func_diff_devnull "$at_stderr" || at_failed=:
28409 echo >>"$at_stdout"; $as_echo "directory/
28410 " | \
28411   $at_diff - "$at_stdout" || at_failed=:
28412 at_func_check_status 0 $at_status "$at_srcdir/recurse.at:24"
28413
28414 $at_failed && at_func_log_failure
28415 $at_traceon; }
28416
28417
28418
28419
28420   $at_traceoff
28421   $at_times_p && times >"$at_times_file"
28422 ) 5>&1 2>&1 | eval $at_tee_pipe
28423 at_status=`cat "$at_status_file"`
28424 #AT_STOP_70
28425 #AT_START_71
28426 # 71. same-order01.at:26: working -C with --same-order
28427 at_setup_line='same-order01.at:26'
28428 at_desc="working -C with --same-order"
28429 $at_quiet $as_echo_n " 71: $at_desc                   "
28430 at_xfail=no
28431       test -f $XFAILFILE && at_xfail=yes
28432 echo "#                             -*- compilation -*-" >> "$at_group_log"
28433 (
28434   $as_echo "71. same-order01.at:26: testing ..."
28435   $at_traceon
28436
28437
28438
28439
28440
28441   { $at_traceoff
28442 $as_echo "$at_srcdir/same-order01.at:29:
28443 mkdir v7
28444 (cd v7
28445 TEST_TAR_FORMAT=v7
28446 export TEST_TAR_FORMAT
28447 TAR_OPTIONS=\"-H v7\"
28448 export TAR_OPTIONS
28449 rm -rf *
28450
28451
28452 test -z "`sort < /dev/null 2>&1`" || exit 77
28453
28454
28455 genfile -l 1024 -f file1
28456 genfile -l 1024 -f file2
28457 tar cf archive file1 file2
28458
28459 mkdir directory
28460 tar -xf archive --same-order -C directory || exit 1
28461
28462 ls directory|sort
28463 )"
28464 echo same-order01.at:29 >"$at_check_line_file"
28465
28466 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
28467    false; }; then
28468   ( $at_traceon;
28469 mkdir v7
28470 (cd v7
28471 TEST_TAR_FORMAT=v7
28472 export TEST_TAR_FORMAT
28473 TAR_OPTIONS="-H v7"
28474 export TAR_OPTIONS
28475 rm -rf *
28476
28477
28478 test -z "`sort < /dev/null 2>&1`" || exit 77
28479
28480
28481 genfile -l 1024 -f file1
28482 genfile -l 1024 -f file2
28483 tar cf archive file1 file2
28484
28485 mkdir directory
28486 tar -xf archive --same-order -C directory || exit 1
28487
28488 ls directory|sort
28489 ) ) >"$at_stdout" 2>"$at_stder1"
28490   at_func_filter_trace $?
28491 else
28492   ( :;
28493 mkdir v7
28494 (cd v7
28495 TEST_TAR_FORMAT=v7
28496 export TEST_TAR_FORMAT
28497 TAR_OPTIONS="-H v7"
28498 export TAR_OPTIONS
28499 rm -rf *
28500
28501
28502 test -z "`sort < /dev/null 2>&1`" || exit 77
28503
28504
28505 genfile -l 1024 -f file1
28506 genfile -l 1024 -f file2
28507 tar cf archive file1 file2
28508
28509 mkdir directory
28510 tar -xf archive --same-order -C directory || exit 1
28511
28512 ls directory|sort
28513 ) ) >"$at_stdout" 2>"$at_stderr"
28514 fi
28515 at_status=$?
28516 at_failed=false
28517 at_func_diff_devnull "$at_stderr" || at_failed=:
28518 echo >>"$at_stdout"; $as_echo "file1
28519 file2
28520 " | \
28521   $at_diff - "$at_stdout" || at_failed=:
28522 at_func_check_status 0 $at_status "$at_srcdir/same-order01.at:29"
28523
28524 $at_failed && at_func_log_failure
28525 $at_traceon; }
28526
28527               { $at_traceoff
28528 $as_echo "$at_srcdir/same-order01.at:29:
28529 mkdir oldgnu
28530 (cd oldgnu
28531 TEST_TAR_FORMAT=oldgnu
28532 export TEST_TAR_FORMAT
28533 TAR_OPTIONS=\"-H oldgnu\"
28534 export TAR_OPTIONS
28535 rm -rf *
28536
28537
28538 test -z "`sort < /dev/null 2>&1`" || exit 77
28539
28540
28541 genfile -l 1024 -f file1
28542 genfile -l 1024 -f file2
28543 tar cf archive file1 file2
28544
28545 mkdir directory
28546 tar -xf archive --same-order -C directory || exit 1
28547
28548 ls directory|sort
28549 )"
28550 echo same-order01.at:29 >"$at_check_line_file"
28551
28552 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
28553    false; }; then
28554   ( $at_traceon;
28555 mkdir oldgnu
28556 (cd oldgnu
28557 TEST_TAR_FORMAT=oldgnu
28558 export TEST_TAR_FORMAT
28559 TAR_OPTIONS="-H oldgnu"
28560 export TAR_OPTIONS
28561 rm -rf *
28562
28563
28564 test -z "`sort < /dev/null 2>&1`" || exit 77
28565
28566
28567 genfile -l 1024 -f file1
28568 genfile -l 1024 -f file2
28569 tar cf archive file1 file2
28570
28571 mkdir directory
28572 tar -xf archive --same-order -C directory || exit 1
28573
28574 ls directory|sort
28575 ) ) >"$at_stdout" 2>"$at_stder1"
28576   at_func_filter_trace $?
28577 else
28578   ( :;
28579 mkdir oldgnu
28580 (cd oldgnu
28581 TEST_TAR_FORMAT=oldgnu
28582 export TEST_TAR_FORMAT
28583 TAR_OPTIONS="-H oldgnu"
28584 export TAR_OPTIONS
28585 rm -rf *
28586
28587
28588 test -z "`sort < /dev/null 2>&1`" || exit 77
28589
28590
28591 genfile -l 1024 -f file1
28592 genfile -l 1024 -f file2
28593 tar cf archive file1 file2
28594
28595 mkdir directory
28596 tar -xf archive --same-order -C directory || exit 1
28597
28598 ls directory|sort
28599 ) ) >"$at_stdout" 2>"$at_stderr"
28600 fi
28601 at_status=$?
28602 at_failed=false
28603 at_func_diff_devnull "$at_stderr" || at_failed=:
28604 echo >>"$at_stdout"; $as_echo "file1
28605 file2
28606 " | \
28607   $at_diff - "$at_stdout" || at_failed=:
28608 at_func_check_status 0 $at_status "$at_srcdir/same-order01.at:29"
28609
28610 $at_failed && at_func_log_failure
28611 $at_traceon; }
28612
28613               { $at_traceoff
28614 $as_echo "$at_srcdir/same-order01.at:29:
28615 mkdir ustar
28616 (cd ustar
28617 TEST_TAR_FORMAT=ustar
28618 export TEST_TAR_FORMAT
28619 TAR_OPTIONS=\"-H ustar\"
28620 export TAR_OPTIONS
28621 rm -rf *
28622
28623
28624 test -z "`sort < /dev/null 2>&1`" || exit 77
28625
28626
28627 genfile -l 1024 -f file1
28628 genfile -l 1024 -f file2
28629 tar cf archive file1 file2
28630
28631 mkdir directory
28632 tar -xf archive --same-order -C directory || exit 1
28633
28634 ls directory|sort
28635 )"
28636 echo same-order01.at:29 >"$at_check_line_file"
28637
28638 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
28639    false; }; then
28640   ( $at_traceon;
28641 mkdir ustar
28642 (cd ustar
28643 TEST_TAR_FORMAT=ustar
28644 export TEST_TAR_FORMAT
28645 TAR_OPTIONS="-H ustar"
28646 export TAR_OPTIONS
28647 rm -rf *
28648
28649
28650 test -z "`sort < /dev/null 2>&1`" || exit 77
28651
28652
28653 genfile -l 1024 -f file1
28654 genfile -l 1024 -f file2
28655 tar cf archive file1 file2
28656
28657 mkdir directory
28658 tar -xf archive --same-order -C directory || exit 1
28659
28660 ls directory|sort
28661 ) ) >"$at_stdout" 2>"$at_stder1"
28662   at_func_filter_trace $?
28663 else
28664   ( :;
28665 mkdir ustar
28666 (cd ustar
28667 TEST_TAR_FORMAT=ustar
28668 export TEST_TAR_FORMAT
28669 TAR_OPTIONS="-H ustar"
28670 export TAR_OPTIONS
28671 rm -rf *
28672
28673
28674 test -z "`sort < /dev/null 2>&1`" || exit 77
28675
28676
28677 genfile -l 1024 -f file1
28678 genfile -l 1024 -f file2
28679 tar cf archive file1 file2
28680
28681 mkdir directory
28682 tar -xf archive --same-order -C directory || exit 1
28683
28684 ls directory|sort
28685 ) ) >"$at_stdout" 2>"$at_stderr"
28686 fi
28687 at_status=$?
28688 at_failed=false
28689 at_func_diff_devnull "$at_stderr" || at_failed=:
28690 echo >>"$at_stdout"; $as_echo "file1
28691 file2
28692 " | \
28693   $at_diff - "$at_stdout" || at_failed=:
28694 at_func_check_status 0 $at_status "$at_srcdir/same-order01.at:29"
28695
28696 $at_failed && at_func_log_failure
28697 $at_traceon; }
28698
28699               { $at_traceoff
28700 $as_echo "$at_srcdir/same-order01.at:29:
28701 mkdir posix
28702 (cd posix
28703 TEST_TAR_FORMAT=posix
28704 export TEST_TAR_FORMAT
28705 TAR_OPTIONS=\"-H posix\"
28706 export TAR_OPTIONS
28707 rm -rf *
28708
28709
28710 test -z "`sort < /dev/null 2>&1`" || exit 77
28711
28712
28713 genfile -l 1024 -f file1
28714 genfile -l 1024 -f file2
28715 tar cf archive file1 file2
28716
28717 mkdir directory
28718 tar -xf archive --same-order -C directory || exit 1
28719
28720 ls directory|sort
28721 )"
28722 echo same-order01.at:29 >"$at_check_line_file"
28723
28724 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
28725    false; }; then
28726   ( $at_traceon;
28727 mkdir posix
28728 (cd posix
28729 TEST_TAR_FORMAT=posix
28730 export TEST_TAR_FORMAT
28731 TAR_OPTIONS="-H posix"
28732 export TAR_OPTIONS
28733 rm -rf *
28734
28735
28736 test -z "`sort < /dev/null 2>&1`" || exit 77
28737
28738
28739 genfile -l 1024 -f file1
28740 genfile -l 1024 -f file2
28741 tar cf archive file1 file2
28742
28743 mkdir directory
28744 tar -xf archive --same-order -C directory || exit 1
28745
28746 ls directory|sort
28747 ) ) >"$at_stdout" 2>"$at_stder1"
28748   at_func_filter_trace $?
28749 else
28750   ( :;
28751 mkdir posix
28752 (cd posix
28753 TEST_TAR_FORMAT=posix
28754 export TEST_TAR_FORMAT
28755 TAR_OPTIONS="-H posix"
28756 export TAR_OPTIONS
28757 rm -rf *
28758
28759
28760 test -z "`sort < /dev/null 2>&1`" || exit 77
28761
28762
28763 genfile -l 1024 -f file1
28764 genfile -l 1024 -f file2
28765 tar cf archive file1 file2
28766
28767 mkdir directory
28768 tar -xf archive --same-order -C directory || exit 1
28769
28770 ls directory|sort
28771 ) ) >"$at_stdout" 2>"$at_stderr"
28772 fi
28773 at_status=$?
28774 at_failed=false
28775 at_func_diff_devnull "$at_stderr" || at_failed=:
28776 echo >>"$at_stdout"; $as_echo "file1
28777 file2
28778 " | \
28779   $at_diff - "$at_stdout" || at_failed=:
28780 at_func_check_status 0 $at_status "$at_srcdir/same-order01.at:29"
28781
28782 $at_failed && at_func_log_failure
28783 $at_traceon; }
28784
28785               { $at_traceoff
28786 $as_echo "$at_srcdir/same-order01.at:29:
28787 mkdir gnu
28788 (cd gnu
28789 TEST_TAR_FORMAT=gnu
28790 export TEST_TAR_FORMAT
28791 TAR_OPTIONS=\"-H gnu\"
28792 export TAR_OPTIONS
28793 rm -rf *
28794
28795
28796 test -z "`sort < /dev/null 2>&1`" || exit 77
28797
28798
28799 genfile -l 1024 -f file1
28800 genfile -l 1024 -f file2
28801 tar cf archive file1 file2
28802
28803 mkdir directory
28804 tar -xf archive --same-order -C directory || exit 1
28805
28806 ls directory|sort
28807 )"
28808 echo same-order01.at:29 >"$at_check_line_file"
28809
28810 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
28811    false; }; then
28812   ( $at_traceon;
28813 mkdir gnu
28814 (cd gnu
28815 TEST_TAR_FORMAT=gnu
28816 export TEST_TAR_FORMAT
28817 TAR_OPTIONS="-H gnu"
28818 export TAR_OPTIONS
28819 rm -rf *
28820
28821
28822 test -z "`sort < /dev/null 2>&1`" || exit 77
28823
28824
28825 genfile -l 1024 -f file1
28826 genfile -l 1024 -f file2
28827 tar cf archive file1 file2
28828
28829 mkdir directory
28830 tar -xf archive --same-order -C directory || exit 1
28831
28832 ls directory|sort
28833 ) ) >"$at_stdout" 2>"$at_stder1"
28834   at_func_filter_trace $?
28835 else
28836   ( :;
28837 mkdir gnu
28838 (cd gnu
28839 TEST_TAR_FORMAT=gnu
28840 export TEST_TAR_FORMAT
28841 TAR_OPTIONS="-H gnu"
28842 export TAR_OPTIONS
28843 rm -rf *
28844
28845
28846 test -z "`sort < /dev/null 2>&1`" || exit 77
28847
28848
28849 genfile -l 1024 -f file1
28850 genfile -l 1024 -f file2
28851 tar cf archive file1 file2
28852
28853 mkdir directory
28854 tar -xf archive --same-order -C directory || exit 1
28855
28856 ls directory|sort
28857 ) ) >"$at_stdout" 2>"$at_stderr"
28858 fi
28859 at_status=$?
28860 at_failed=false
28861 at_func_diff_devnull "$at_stderr" || at_failed=:
28862 echo >>"$at_stdout"; $as_echo "file1
28863 file2
28864 " | \
28865   $at_diff - "$at_stdout" || at_failed=:
28866 at_func_check_status 0 $at_status "$at_srcdir/same-order01.at:29"
28867
28868 $at_failed && at_func_log_failure
28869 $at_traceon; }
28870
28871
28872
28873
28874   $at_traceoff
28875   $at_times_p && times >"$at_times_file"
28876 ) 5>&1 2>&1 | eval $at_tee_pipe
28877 at_status=`cat "$at_status_file"`
28878 #AT_STOP_71
28879 #AT_START_72
28880 # 72. same-order02.at:25: multiple -C options
28881 at_setup_line='same-order02.at:25'
28882 at_desc="multiple -C options"
28883 $at_quiet $as_echo_n " 72: $at_desc                            "
28884 at_xfail=no
28885       test -f $XFAILFILE && at_xfail=yes
28886 echo "#                             -*- compilation -*-" >> "$at_group_log"
28887 (
28888   $as_echo "72. same-order02.at:25: testing ..."
28889   $at_traceon
28890
28891
28892
28893
28894
28895   { $at_traceoff
28896 $as_echo "$at_srcdir/same-order02.at:28:
28897 mkdir v7
28898 (cd v7
28899 TEST_TAR_FORMAT=v7
28900 export TEST_TAR_FORMAT
28901 TAR_OPTIONS=\"-H v7\"
28902 export TAR_OPTIONS
28903 rm -rf *
28904
28905 genfile -l 1024 -f file1
28906 genfile -l 1024 -f file2
28907 tar cf archive file1 file2
28908
28909 mkdir en
28910 mkdir to
28911
28912 HERE=\`pwd\`
28913 tar -xf archive --same-order -C \$HERE/en file1 -C \$HERE/to file2 || exit 1
28914
28915 ls en
28916 echo separator
28917 ls to
28918 )"
28919 echo same-order02.at:28 >"$at_check_line_file"
28920
28921 if { echo 'Not enabling shell tracing (command contains a `...` command substitution)'
28922    false; }; then
28923   ( $at_traceon;
28924 mkdir v7
28925 (cd v7
28926 TEST_TAR_FORMAT=v7
28927 export TEST_TAR_FORMAT
28928 TAR_OPTIONS="-H v7"
28929 export TAR_OPTIONS
28930 rm -rf *
28931
28932 genfile -l 1024 -f file1
28933 genfile -l 1024 -f file2
28934 tar cf archive file1 file2
28935
28936 mkdir en
28937 mkdir to
28938
28939 HERE=`pwd`
28940 tar -xf archive --same-order -C $HERE/en file1 -C $HERE/to file2 || exit 1
28941
28942 ls en
28943 echo separator
28944 ls to
28945 ) ) >"$at_stdout" 2>"$at_stder1"
28946   at_func_filter_trace $?
28947 else
28948   ( :;
28949 mkdir v7
28950 (cd v7
28951 TEST_TAR_FORMAT=v7
28952 export TEST_TAR_FORMAT
28953 TAR_OPTIONS="-H v7"
28954 export TAR_OPTIONS
28955 rm -rf *
28956
28957 genfile -l 1024 -f file1
28958 genfile -l 1024 -f file2
28959 tar cf archive file1 file2
28960
28961 mkdir en
28962 mkdir to
28963
28964 HERE=`pwd`
28965 tar -xf archive --same-order -C $HERE/en file1 -C $HERE/to file2 || exit 1
28966
28967 ls en
28968 echo separator
28969 ls to
28970 ) ) >"$at_stdout" 2>"$at_stderr"
28971 fi
28972 at_status=$?
28973 at_failed=false
28974 at_func_diff_devnull "$at_stderr" || at_failed=:
28975 echo >>"$at_stdout"; $as_echo "file1
28976 separator
28977 file2
28978 " | \
28979   $at_diff - "$at_stdout" || at_failed=:
28980 at_func_check_status 0 $at_status "$at_srcdir/same-order02.at:28"
28981
28982 $at_failed && at_func_log_failure
28983 $at_traceon; }
28984
28985               { $at_traceoff
28986 $as_echo "$at_srcdir/same-order02.at:28:
28987 mkdir oldgnu
28988 (cd oldgnu
28989 TEST_TAR_FORMAT=oldgnu
28990 export TEST_TAR_FORMAT
28991 TAR_OPTIONS=\"-H oldgnu\"
28992 export TAR_OPTIONS
28993 rm -rf *
28994
28995 genfile -l 1024 -f file1
28996 genfile -l 1024 -f file2
28997 tar cf archive file1 file2
28998
28999 mkdir en
29000 mkdir to
29001
29002 HERE=\`pwd\`
29003 tar -xf archive --same-order -C \$HERE/en file1 -C \$HERE/to file2 || exit 1
29004
29005 ls en
29006 echo separator
29007 ls to
29008 )"
29009 echo same-order02.at:28 >"$at_check_line_file"
29010
29011 if { echo 'Not enabling shell tracing (command contains a `...` command substitution)'
29012    false; }; then
29013   ( $at_traceon;
29014 mkdir oldgnu
29015 (cd oldgnu
29016 TEST_TAR_FORMAT=oldgnu
29017 export TEST_TAR_FORMAT
29018 TAR_OPTIONS="-H oldgnu"
29019 export TAR_OPTIONS
29020 rm -rf *
29021
29022 genfile -l 1024 -f file1
29023 genfile -l 1024 -f file2
29024 tar cf archive file1 file2
29025
29026 mkdir en
29027 mkdir to
29028
29029 HERE=`pwd`
29030 tar -xf archive --same-order -C $HERE/en file1 -C $HERE/to file2 || exit 1
29031
29032 ls en
29033 echo separator
29034 ls to
29035 ) ) >"$at_stdout" 2>"$at_stder1"
29036   at_func_filter_trace $?
29037 else
29038   ( :;
29039 mkdir oldgnu
29040 (cd oldgnu
29041 TEST_TAR_FORMAT=oldgnu
29042 export TEST_TAR_FORMAT
29043 TAR_OPTIONS="-H oldgnu"
29044 export TAR_OPTIONS
29045 rm -rf *
29046
29047 genfile -l 1024 -f file1
29048 genfile -l 1024 -f file2
29049 tar cf archive file1 file2
29050
29051 mkdir en
29052 mkdir to
29053
29054 HERE=`pwd`
29055 tar -xf archive --same-order -C $HERE/en file1 -C $HERE/to file2 || exit 1
29056
29057 ls en
29058 echo separator
29059 ls to
29060 ) ) >"$at_stdout" 2>"$at_stderr"
29061 fi
29062 at_status=$?
29063 at_failed=false
29064 at_func_diff_devnull "$at_stderr" || at_failed=:
29065 echo >>"$at_stdout"; $as_echo "file1
29066 separator
29067 file2
29068 " | \
29069   $at_diff - "$at_stdout" || at_failed=:
29070 at_func_check_status 0 $at_status "$at_srcdir/same-order02.at:28"
29071
29072 $at_failed && at_func_log_failure
29073 $at_traceon; }
29074
29075               { $at_traceoff
29076 $as_echo "$at_srcdir/same-order02.at:28:
29077 mkdir ustar
29078 (cd ustar
29079 TEST_TAR_FORMAT=ustar
29080 export TEST_TAR_FORMAT
29081 TAR_OPTIONS=\"-H ustar\"
29082 export TAR_OPTIONS
29083 rm -rf *
29084
29085 genfile -l 1024 -f file1
29086 genfile -l 1024 -f file2
29087 tar cf archive file1 file2
29088
29089 mkdir en
29090 mkdir to
29091
29092 HERE=\`pwd\`
29093 tar -xf archive --same-order -C \$HERE/en file1 -C \$HERE/to file2 || exit 1
29094
29095 ls en
29096 echo separator
29097 ls to
29098 )"
29099 echo same-order02.at:28 >"$at_check_line_file"
29100
29101 if { echo 'Not enabling shell tracing (command contains a `...` command substitution)'
29102    false; }; then
29103   ( $at_traceon;
29104 mkdir ustar
29105 (cd ustar
29106 TEST_TAR_FORMAT=ustar
29107 export TEST_TAR_FORMAT
29108 TAR_OPTIONS="-H ustar"
29109 export TAR_OPTIONS
29110 rm -rf *
29111
29112 genfile -l 1024 -f file1
29113 genfile -l 1024 -f file2
29114 tar cf archive file1 file2
29115
29116 mkdir en
29117 mkdir to
29118
29119 HERE=`pwd`
29120 tar -xf archive --same-order -C $HERE/en file1 -C $HERE/to file2 || exit 1
29121
29122 ls en
29123 echo separator
29124 ls to
29125 ) ) >"$at_stdout" 2>"$at_stder1"
29126   at_func_filter_trace $?
29127 else
29128   ( :;
29129 mkdir ustar
29130 (cd ustar
29131 TEST_TAR_FORMAT=ustar
29132 export TEST_TAR_FORMAT
29133 TAR_OPTIONS="-H ustar"
29134 export TAR_OPTIONS
29135 rm -rf *
29136
29137 genfile -l 1024 -f file1
29138 genfile -l 1024 -f file2
29139 tar cf archive file1 file2
29140
29141 mkdir en
29142 mkdir to
29143
29144 HERE=`pwd`
29145 tar -xf archive --same-order -C $HERE/en file1 -C $HERE/to file2 || exit 1
29146
29147 ls en
29148 echo separator
29149 ls to
29150 ) ) >"$at_stdout" 2>"$at_stderr"
29151 fi
29152 at_status=$?
29153 at_failed=false
29154 at_func_diff_devnull "$at_stderr" || at_failed=:
29155 echo >>"$at_stdout"; $as_echo "file1
29156 separator
29157 file2
29158 " | \
29159   $at_diff - "$at_stdout" || at_failed=:
29160 at_func_check_status 0 $at_status "$at_srcdir/same-order02.at:28"
29161
29162 $at_failed && at_func_log_failure
29163 $at_traceon; }
29164
29165               { $at_traceoff
29166 $as_echo "$at_srcdir/same-order02.at:28:
29167 mkdir posix
29168 (cd posix
29169 TEST_TAR_FORMAT=posix
29170 export TEST_TAR_FORMAT
29171 TAR_OPTIONS=\"-H posix\"
29172 export TAR_OPTIONS
29173 rm -rf *
29174
29175 genfile -l 1024 -f file1
29176 genfile -l 1024 -f file2
29177 tar cf archive file1 file2
29178
29179 mkdir en
29180 mkdir to
29181
29182 HERE=\`pwd\`
29183 tar -xf archive --same-order -C \$HERE/en file1 -C \$HERE/to file2 || exit 1
29184
29185 ls en
29186 echo separator
29187 ls to
29188 )"
29189 echo same-order02.at:28 >"$at_check_line_file"
29190
29191 if { echo 'Not enabling shell tracing (command contains a `...` command substitution)'
29192    false; }; then
29193   ( $at_traceon;
29194 mkdir posix
29195 (cd posix
29196 TEST_TAR_FORMAT=posix
29197 export TEST_TAR_FORMAT
29198 TAR_OPTIONS="-H posix"
29199 export TAR_OPTIONS
29200 rm -rf *
29201
29202 genfile -l 1024 -f file1
29203 genfile -l 1024 -f file2
29204 tar cf archive file1 file2
29205
29206 mkdir en
29207 mkdir to
29208
29209 HERE=`pwd`
29210 tar -xf archive --same-order -C $HERE/en file1 -C $HERE/to file2 || exit 1
29211
29212 ls en
29213 echo separator
29214 ls to
29215 ) ) >"$at_stdout" 2>"$at_stder1"
29216   at_func_filter_trace $?
29217 else
29218   ( :;
29219 mkdir posix
29220 (cd posix
29221 TEST_TAR_FORMAT=posix
29222 export TEST_TAR_FORMAT
29223 TAR_OPTIONS="-H posix"
29224 export TAR_OPTIONS
29225 rm -rf *
29226
29227 genfile -l 1024 -f file1
29228 genfile -l 1024 -f file2
29229 tar cf archive file1 file2
29230
29231 mkdir en
29232 mkdir to
29233
29234 HERE=`pwd`
29235 tar -xf archive --same-order -C $HERE/en file1 -C $HERE/to file2 || exit 1
29236
29237 ls en
29238 echo separator
29239 ls to
29240 ) ) >"$at_stdout" 2>"$at_stderr"
29241 fi
29242 at_status=$?
29243 at_failed=false
29244 at_func_diff_devnull "$at_stderr" || at_failed=:
29245 echo >>"$at_stdout"; $as_echo "file1
29246 separator
29247 file2
29248 " | \
29249   $at_diff - "$at_stdout" || at_failed=:
29250 at_func_check_status 0 $at_status "$at_srcdir/same-order02.at:28"
29251
29252 $at_failed && at_func_log_failure
29253 $at_traceon; }
29254
29255               { $at_traceoff
29256 $as_echo "$at_srcdir/same-order02.at:28:
29257 mkdir gnu
29258 (cd gnu
29259 TEST_TAR_FORMAT=gnu
29260 export TEST_TAR_FORMAT
29261 TAR_OPTIONS=\"-H gnu\"
29262 export TAR_OPTIONS
29263 rm -rf *
29264
29265 genfile -l 1024 -f file1
29266 genfile -l 1024 -f file2
29267 tar cf archive file1 file2
29268
29269 mkdir en
29270 mkdir to
29271
29272 HERE=\`pwd\`
29273 tar -xf archive --same-order -C \$HERE/en file1 -C \$HERE/to file2 || exit 1
29274
29275 ls en
29276 echo separator
29277 ls to
29278 )"
29279 echo same-order02.at:28 >"$at_check_line_file"
29280
29281 if { echo 'Not enabling shell tracing (command contains a `...` command substitution)'
29282    false; }; then
29283   ( $at_traceon;
29284 mkdir gnu
29285 (cd gnu
29286 TEST_TAR_FORMAT=gnu
29287 export TEST_TAR_FORMAT
29288 TAR_OPTIONS="-H gnu"
29289 export TAR_OPTIONS
29290 rm -rf *
29291
29292 genfile -l 1024 -f file1
29293 genfile -l 1024 -f file2
29294 tar cf archive file1 file2
29295
29296 mkdir en
29297 mkdir to
29298
29299 HERE=`pwd`
29300 tar -xf archive --same-order -C $HERE/en file1 -C $HERE/to file2 || exit 1
29301
29302 ls en
29303 echo separator
29304 ls to
29305 ) ) >"$at_stdout" 2>"$at_stder1"
29306   at_func_filter_trace $?
29307 else
29308   ( :;
29309 mkdir gnu
29310 (cd gnu
29311 TEST_TAR_FORMAT=gnu
29312 export TEST_TAR_FORMAT
29313 TAR_OPTIONS="-H gnu"
29314 export TAR_OPTIONS
29315 rm -rf *
29316
29317 genfile -l 1024 -f file1
29318 genfile -l 1024 -f file2
29319 tar cf archive file1 file2
29320
29321 mkdir en
29322 mkdir to
29323
29324 HERE=`pwd`
29325 tar -xf archive --same-order -C $HERE/en file1 -C $HERE/to file2 || exit 1
29326
29327 ls en
29328 echo separator
29329 ls to
29330 ) ) >"$at_stdout" 2>"$at_stderr"
29331 fi
29332 at_status=$?
29333 at_failed=false
29334 at_func_diff_devnull "$at_stderr" || at_failed=:
29335 echo >>"$at_stdout"; $as_echo "file1
29336 separator
29337 file2
29338 " | \
29339   $at_diff - "$at_stdout" || at_failed=:
29340 at_func_check_status 0 $at_status "$at_srcdir/same-order02.at:28"
29341
29342 $at_failed && at_func_log_failure
29343 $at_traceon; }
29344
29345
29346
29347
29348   $at_traceoff
29349   $at_times_p && times >"$at_times_file"
29350 ) 5>&1 2>&1 | eval $at_tee_pipe
29351 at_status=`cat "$at_status_file"`
29352 #AT_STOP_72
29353 #AT_START_73
29354 # 73. shortrec.at:25: short records
29355 at_setup_line='shortrec.at:25'
29356 at_desc="short records"
29357 $at_quiet $as_echo_n " 73: $at_desc                                  "
29358 at_xfail=no
29359       test -f $XFAILFILE && at_xfail=yes
29360 echo "#                             -*- compilation -*-" >> "$at_group_log"
29361 (
29362   $as_echo "73. shortrec.at:25: testing ..."
29363   $at_traceon
29364
29365
29366
29367
29368
29369   { $at_traceoff
29370 $as_echo "$at_srcdir/shortrec.at:28:
29371 mkdir v7
29372 (cd v7
29373 TEST_TAR_FORMAT=v7
29374 export TEST_TAR_FORMAT
29375 TAR_OPTIONS=\"-H v7\"
29376 export TAR_OPTIONS
29377 rm -rf *
29378
29379 mkdir directory
29380 (cd directory && touch a b c d e f g h i j k l m n o p q r)
29381 tar -c -b 1 -f - directory | tar -t -f - > /dev/null
29382 tar -c -b 1 -f archive directory
29383 tar -t -f archive > /dev/null
29384 tar -t -f - < archive > /dev/null
29385
29386 rm -r directory
29387 )"
29388 echo shortrec.at:28 >"$at_check_line_file"
29389
29390 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
29391    false; }; then
29392   ( $at_traceon;
29393 mkdir v7
29394 (cd v7
29395 TEST_TAR_FORMAT=v7
29396 export TEST_TAR_FORMAT
29397 TAR_OPTIONS="-H v7"
29398 export TAR_OPTIONS
29399 rm -rf *
29400
29401 mkdir directory
29402 (cd directory && touch a b c d e f g h i j k l m n o p q r)
29403 tar -c -b 1 -f - directory | tar -t -f - > /dev/null
29404 tar -c -b 1 -f archive directory
29405 tar -t -f archive > /dev/null
29406 tar -t -f - < archive > /dev/null
29407
29408 rm -r directory
29409 ) ) >"$at_stdout" 2>"$at_stder1"
29410   at_func_filter_trace $?
29411 else
29412   ( :;
29413 mkdir v7
29414 (cd v7
29415 TEST_TAR_FORMAT=v7
29416 export TEST_TAR_FORMAT
29417 TAR_OPTIONS="-H v7"
29418 export TAR_OPTIONS
29419 rm -rf *
29420
29421 mkdir directory
29422 (cd directory && touch a b c d e f g h i j k l m n o p q r)
29423 tar -c -b 1 -f - directory | tar -t -f - > /dev/null
29424 tar -c -b 1 -f archive directory
29425 tar -t -f archive > /dev/null
29426 tar -t -f - < archive > /dev/null
29427
29428 rm -r directory
29429 ) ) >"$at_stdout" 2>"$at_stderr"
29430 fi
29431 at_status=$?
29432 at_failed=false
29433 at_func_diff_devnull "$at_stderr" || at_failed=:
29434 at_func_diff_devnull "$at_stdout" || at_failed=:
29435 at_func_check_status 0 $at_status "$at_srcdir/shortrec.at:28"
29436
29437 $at_failed && at_func_log_failure
29438 $at_traceon; }
29439
29440               { $at_traceoff
29441 $as_echo "$at_srcdir/shortrec.at:28:
29442 mkdir oldgnu
29443 (cd oldgnu
29444 TEST_TAR_FORMAT=oldgnu
29445 export TEST_TAR_FORMAT
29446 TAR_OPTIONS=\"-H oldgnu\"
29447 export TAR_OPTIONS
29448 rm -rf *
29449
29450 mkdir directory
29451 (cd directory && touch a b c d e f g h i j k l m n o p q r)
29452 tar -c -b 1 -f - directory | tar -t -f - > /dev/null
29453 tar -c -b 1 -f archive directory
29454 tar -t -f archive > /dev/null
29455 tar -t -f - < archive > /dev/null
29456
29457 rm -r directory
29458 )"
29459 echo shortrec.at:28 >"$at_check_line_file"
29460
29461 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
29462    false; }; then
29463   ( $at_traceon;
29464 mkdir oldgnu
29465 (cd oldgnu
29466 TEST_TAR_FORMAT=oldgnu
29467 export TEST_TAR_FORMAT
29468 TAR_OPTIONS="-H oldgnu"
29469 export TAR_OPTIONS
29470 rm -rf *
29471
29472 mkdir directory
29473 (cd directory && touch a b c d e f g h i j k l m n o p q r)
29474 tar -c -b 1 -f - directory | tar -t -f - > /dev/null
29475 tar -c -b 1 -f archive directory
29476 tar -t -f archive > /dev/null
29477 tar -t -f - < archive > /dev/null
29478
29479 rm -r directory
29480 ) ) >"$at_stdout" 2>"$at_stder1"
29481   at_func_filter_trace $?
29482 else
29483   ( :;
29484 mkdir oldgnu
29485 (cd oldgnu
29486 TEST_TAR_FORMAT=oldgnu
29487 export TEST_TAR_FORMAT
29488 TAR_OPTIONS="-H oldgnu"
29489 export TAR_OPTIONS
29490 rm -rf *
29491
29492 mkdir directory
29493 (cd directory && touch a b c d e f g h i j k l m n o p q r)
29494 tar -c -b 1 -f - directory | tar -t -f - > /dev/null
29495 tar -c -b 1 -f archive directory
29496 tar -t -f archive > /dev/null
29497 tar -t -f - < archive > /dev/null
29498
29499 rm -r directory
29500 ) ) >"$at_stdout" 2>"$at_stderr"
29501 fi
29502 at_status=$?
29503 at_failed=false
29504 at_func_diff_devnull "$at_stderr" || at_failed=:
29505 at_func_diff_devnull "$at_stdout" || at_failed=:
29506 at_func_check_status 0 $at_status "$at_srcdir/shortrec.at:28"
29507
29508 $at_failed && at_func_log_failure
29509 $at_traceon; }
29510
29511               { $at_traceoff
29512 $as_echo "$at_srcdir/shortrec.at:28:
29513 mkdir ustar
29514 (cd ustar
29515 TEST_TAR_FORMAT=ustar
29516 export TEST_TAR_FORMAT
29517 TAR_OPTIONS=\"-H ustar\"
29518 export TAR_OPTIONS
29519 rm -rf *
29520
29521 mkdir directory
29522 (cd directory && touch a b c d e f g h i j k l m n o p q r)
29523 tar -c -b 1 -f - directory | tar -t -f - > /dev/null
29524 tar -c -b 1 -f archive directory
29525 tar -t -f archive > /dev/null
29526 tar -t -f - < archive > /dev/null
29527
29528 rm -r directory
29529 )"
29530 echo shortrec.at:28 >"$at_check_line_file"
29531
29532 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
29533    false; }; then
29534   ( $at_traceon;
29535 mkdir ustar
29536 (cd ustar
29537 TEST_TAR_FORMAT=ustar
29538 export TEST_TAR_FORMAT
29539 TAR_OPTIONS="-H ustar"
29540 export TAR_OPTIONS
29541 rm -rf *
29542
29543 mkdir directory
29544 (cd directory && touch a b c d e f g h i j k l m n o p q r)
29545 tar -c -b 1 -f - directory | tar -t -f - > /dev/null
29546 tar -c -b 1 -f archive directory
29547 tar -t -f archive > /dev/null
29548 tar -t -f - < archive > /dev/null
29549
29550 rm -r directory
29551 ) ) >"$at_stdout" 2>"$at_stder1"
29552   at_func_filter_trace $?
29553 else
29554   ( :;
29555 mkdir ustar
29556 (cd ustar
29557 TEST_TAR_FORMAT=ustar
29558 export TEST_TAR_FORMAT
29559 TAR_OPTIONS="-H ustar"
29560 export TAR_OPTIONS
29561 rm -rf *
29562
29563 mkdir directory
29564 (cd directory && touch a b c d e f g h i j k l m n o p q r)
29565 tar -c -b 1 -f - directory | tar -t -f - > /dev/null
29566 tar -c -b 1 -f archive directory
29567 tar -t -f archive > /dev/null
29568 tar -t -f - < archive > /dev/null
29569
29570 rm -r directory
29571 ) ) >"$at_stdout" 2>"$at_stderr"
29572 fi
29573 at_status=$?
29574 at_failed=false
29575 at_func_diff_devnull "$at_stderr" || at_failed=:
29576 at_func_diff_devnull "$at_stdout" || at_failed=:
29577 at_func_check_status 0 $at_status "$at_srcdir/shortrec.at:28"
29578
29579 $at_failed && at_func_log_failure
29580 $at_traceon; }
29581
29582               { $at_traceoff
29583 $as_echo "$at_srcdir/shortrec.at:28:
29584 mkdir posix
29585 (cd posix
29586 TEST_TAR_FORMAT=posix
29587 export TEST_TAR_FORMAT
29588 TAR_OPTIONS=\"-H posix\"
29589 export TAR_OPTIONS
29590 rm -rf *
29591
29592 mkdir directory
29593 (cd directory && touch a b c d e f g h i j k l m n o p q r)
29594 tar -c -b 1 -f - directory | tar -t -f - > /dev/null
29595 tar -c -b 1 -f archive directory
29596 tar -t -f archive > /dev/null
29597 tar -t -f - < archive > /dev/null
29598
29599 rm -r directory
29600 )"
29601 echo shortrec.at:28 >"$at_check_line_file"
29602
29603 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
29604    false; }; then
29605   ( $at_traceon;
29606 mkdir posix
29607 (cd posix
29608 TEST_TAR_FORMAT=posix
29609 export TEST_TAR_FORMAT
29610 TAR_OPTIONS="-H posix"
29611 export TAR_OPTIONS
29612 rm -rf *
29613
29614 mkdir directory
29615 (cd directory && touch a b c d e f g h i j k l m n o p q r)
29616 tar -c -b 1 -f - directory | tar -t -f - > /dev/null
29617 tar -c -b 1 -f archive directory
29618 tar -t -f archive > /dev/null
29619 tar -t -f - < archive > /dev/null
29620
29621 rm -r directory
29622 ) ) >"$at_stdout" 2>"$at_stder1"
29623   at_func_filter_trace $?
29624 else
29625   ( :;
29626 mkdir posix
29627 (cd posix
29628 TEST_TAR_FORMAT=posix
29629 export TEST_TAR_FORMAT
29630 TAR_OPTIONS="-H posix"
29631 export TAR_OPTIONS
29632 rm -rf *
29633
29634 mkdir directory
29635 (cd directory && touch a b c d e f g h i j k l m n o p q r)
29636 tar -c -b 1 -f - directory | tar -t -f - > /dev/null
29637 tar -c -b 1 -f archive directory
29638 tar -t -f archive > /dev/null
29639 tar -t -f - < archive > /dev/null
29640
29641 rm -r directory
29642 ) ) >"$at_stdout" 2>"$at_stderr"
29643 fi
29644 at_status=$?
29645 at_failed=false
29646 at_func_diff_devnull "$at_stderr" || at_failed=:
29647 at_func_diff_devnull "$at_stdout" || at_failed=:
29648 at_func_check_status 0 $at_status "$at_srcdir/shortrec.at:28"
29649
29650 $at_failed && at_func_log_failure
29651 $at_traceon; }
29652
29653               { $at_traceoff
29654 $as_echo "$at_srcdir/shortrec.at:28:
29655 mkdir gnu
29656 (cd gnu
29657 TEST_TAR_FORMAT=gnu
29658 export TEST_TAR_FORMAT
29659 TAR_OPTIONS=\"-H gnu\"
29660 export TAR_OPTIONS
29661 rm -rf *
29662
29663 mkdir directory
29664 (cd directory && touch a b c d e f g h i j k l m n o p q r)
29665 tar -c -b 1 -f - directory | tar -t -f - > /dev/null
29666 tar -c -b 1 -f archive directory
29667 tar -t -f archive > /dev/null
29668 tar -t -f - < archive > /dev/null
29669
29670 rm -r directory
29671 )"
29672 echo shortrec.at:28 >"$at_check_line_file"
29673
29674 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
29675    false; }; then
29676   ( $at_traceon;
29677 mkdir gnu
29678 (cd gnu
29679 TEST_TAR_FORMAT=gnu
29680 export TEST_TAR_FORMAT
29681 TAR_OPTIONS="-H gnu"
29682 export TAR_OPTIONS
29683 rm -rf *
29684
29685 mkdir directory
29686 (cd directory && touch a b c d e f g h i j k l m n o p q r)
29687 tar -c -b 1 -f - directory | tar -t -f - > /dev/null
29688 tar -c -b 1 -f archive directory
29689 tar -t -f archive > /dev/null
29690 tar -t -f - < archive > /dev/null
29691
29692 rm -r directory
29693 ) ) >"$at_stdout" 2>"$at_stder1"
29694   at_func_filter_trace $?
29695 else
29696   ( :;
29697 mkdir gnu
29698 (cd gnu
29699 TEST_TAR_FORMAT=gnu
29700 export TEST_TAR_FORMAT
29701 TAR_OPTIONS="-H gnu"
29702 export TAR_OPTIONS
29703 rm -rf *
29704
29705 mkdir directory
29706 (cd directory && touch a b c d e f g h i j k l m n o p q r)
29707 tar -c -b 1 -f - directory | tar -t -f - > /dev/null
29708 tar -c -b 1 -f archive directory
29709 tar -t -f archive > /dev/null
29710 tar -t -f - < archive > /dev/null
29711
29712 rm -r directory
29713 ) ) >"$at_stdout" 2>"$at_stderr"
29714 fi
29715 at_status=$?
29716 at_failed=false
29717 at_func_diff_devnull "$at_stderr" || at_failed=:
29718 at_func_diff_devnull "$at_stdout" || at_failed=:
29719 at_func_check_status 0 $at_status "$at_srcdir/shortrec.at:28"
29720
29721 $at_failed && at_func_log_failure
29722 $at_traceon; }
29723
29724
29725
29726
29727   $at_traceoff
29728   $at_times_p && times >"$at_times_file"
29729 ) 5>&1 2>&1 | eval $at_tee_pipe
29730 at_status=`cat "$at_status_file"`
29731 #AT_STOP_73
29732 #AT_START_74
29733 # 74. sparse01.at:21: sparse files
29734 at_setup_line='sparse01.at:21'
29735 at_desc="sparse files"
29736 $at_quiet $as_echo_n " 74: $at_desc                                   "
29737 at_xfail=no
29738       test -f $XFAILFILE && at_xfail=yes
29739 echo "#                             -*- compilation -*-" >> "$at_group_log"
29740 (
29741   $as_echo "74. sparse01.at:21: testing ..."
29742   $at_traceon
29743
29744
29745
29746
29747
29748   { $at_traceoff
29749 $as_echo "$at_srcdir/sparse01.at:24:
29750 mkdir posix
29751 (cd posix
29752 TEST_TAR_FORMAT=posix
29753 export TEST_TAR_FORMAT
29754 TAR_OPTIONS=\"-H posix\"
29755 export TAR_OPTIONS
29756 rm -rf *
29757
29758 genfile --length 1000 -f begin
29759 genfile --length 1000 -f end
29760 genfile --sparse --file sparsefile --block-size 512 0 ABCD 1M EFGH 2000K IJKL || exit 77
29761 tar -c -f archive --sparse begin sparsefile end || exit 1
29762 echo separator
29763
29764 tar tfv archive
29765 echo separator
29766 mkdir directory
29767 tar Cxf directory archive
29768 genfile --stat=name,size sparsefile
29769 cmp sparsefile directory/sparsefile
29770 )"
29771 echo sparse01.at:24 >"$at_check_line_file"
29772
29773 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
29774    false; }; then
29775   ( $at_traceon;
29776 mkdir posix
29777 (cd posix
29778 TEST_TAR_FORMAT=posix
29779 export TEST_TAR_FORMAT
29780 TAR_OPTIONS="-H posix"
29781 export TAR_OPTIONS
29782 rm -rf *
29783
29784 genfile --length 1000 -f begin
29785 genfile --length 1000 -f end
29786 genfile --sparse --file sparsefile --block-size 512 0 ABCD 1M EFGH 2000K IJKL || exit 77
29787 tar -c -f archive --sparse begin sparsefile end || exit 1
29788 echo separator
29789
29790 tar tfv archive
29791 echo separator
29792 mkdir directory
29793 tar Cxf directory archive
29794 genfile --stat=name,size sparsefile
29795 cmp sparsefile directory/sparsefile
29796 ) ) >"$at_stdout" 2>"$at_stder1"
29797   at_func_filter_trace $?
29798 else
29799   ( :;
29800 mkdir posix
29801 (cd posix
29802 TEST_TAR_FORMAT=posix
29803 export TEST_TAR_FORMAT
29804 TAR_OPTIONS="-H posix"
29805 export TAR_OPTIONS
29806 rm -rf *
29807
29808 genfile --length 1000 -f begin
29809 genfile --length 1000 -f end
29810 genfile --sparse --file sparsefile --block-size 512 0 ABCD 1M EFGH 2000K IJKL || exit 77
29811 tar -c -f archive --sparse begin sparsefile end || exit 1
29812 echo separator
29813
29814 tar tfv archive
29815 echo separator
29816 mkdir directory
29817 tar Cxf directory archive
29818 genfile --stat=name,size sparsefile
29819 cmp sparsefile directory/sparsefile
29820 ) ) >"$at_stdout" 2>"$at_stderr"
29821 fi
29822 at_status=$?
29823 at_failed=false
29824 at_func_diff_devnull "$at_stderr" || at_failed=:
29825 echo stdout:; tee stdout <"$at_stdout"
29826 at_func_check_status 0 $at_status "$at_srcdir/sparse01.at:24"
29827
29828 $at_failed && at_func_log_failure
29829 $at_traceon; }
29830
29831               { $at_traceoff
29832 $as_echo "$at_srcdir/sparse01.at:24:
29833 mkdir gnu
29834 (cd gnu
29835 TEST_TAR_FORMAT=gnu
29836 export TEST_TAR_FORMAT
29837 TAR_OPTIONS=\"-H gnu\"
29838 export TAR_OPTIONS
29839 rm -rf *
29840
29841 genfile --length 1000 -f begin
29842 genfile --length 1000 -f end
29843 genfile --sparse --file sparsefile --block-size 512 0 ABCD 1M EFGH 2000K IJKL || exit 77
29844 tar -c -f archive --sparse begin sparsefile end || exit 1
29845 echo separator
29846
29847 tar tfv archive
29848 echo separator
29849 mkdir directory
29850 tar Cxf directory archive
29851 genfile --stat=name,size sparsefile
29852 cmp sparsefile directory/sparsefile
29853 )"
29854 echo sparse01.at:24 >"$at_check_line_file"
29855
29856 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
29857    false; }; then
29858   ( $at_traceon;
29859 mkdir gnu
29860 (cd gnu
29861 TEST_TAR_FORMAT=gnu
29862 export TEST_TAR_FORMAT
29863 TAR_OPTIONS="-H gnu"
29864 export TAR_OPTIONS
29865 rm -rf *
29866
29867 genfile --length 1000 -f begin
29868 genfile --length 1000 -f end
29869 genfile --sparse --file sparsefile --block-size 512 0 ABCD 1M EFGH 2000K IJKL || exit 77
29870 tar -c -f archive --sparse begin sparsefile end || exit 1
29871 echo separator
29872
29873 tar tfv archive
29874 echo separator
29875 mkdir directory
29876 tar Cxf directory archive
29877 genfile --stat=name,size sparsefile
29878 cmp sparsefile directory/sparsefile
29879 ) ) >"$at_stdout" 2>"$at_stder1"
29880   at_func_filter_trace $?
29881 else
29882   ( :;
29883 mkdir gnu
29884 (cd gnu
29885 TEST_TAR_FORMAT=gnu
29886 export TEST_TAR_FORMAT
29887 TAR_OPTIONS="-H gnu"
29888 export TAR_OPTIONS
29889 rm -rf *
29890
29891 genfile --length 1000 -f begin
29892 genfile --length 1000 -f end
29893 genfile --sparse --file sparsefile --block-size 512 0 ABCD 1M EFGH 2000K IJKL || exit 77
29894 tar -c -f archive --sparse begin sparsefile end || exit 1
29895 echo separator
29896
29897 tar tfv archive
29898 echo separator
29899 mkdir directory
29900 tar Cxf directory archive
29901 genfile --stat=name,size sparsefile
29902 cmp sparsefile directory/sparsefile
29903 ) ) >"$at_stdout" 2>"$at_stderr"
29904 fi
29905 at_status=$?
29906 at_failed=false
29907 at_func_diff_devnull "$at_stderr" || at_failed=:
29908 echo stdout:; tee stdout <"$at_stdout"
29909 at_func_check_status 0 $at_status "$at_srcdir/sparse01.at:24"
29910
29911 $at_failed && at_func_log_failure
29912 $at_traceon; }
29913
29914               { $at_traceoff
29915 $as_echo "$at_srcdir/sparse01.at:24:
29916 mkdir oldgnu
29917 (cd oldgnu
29918 TEST_TAR_FORMAT=oldgnu
29919 export TEST_TAR_FORMAT
29920 TAR_OPTIONS=\"-H oldgnu\"
29921 export TAR_OPTIONS
29922 rm -rf *
29923
29924 genfile --length 1000 -f begin
29925 genfile --length 1000 -f end
29926 genfile --sparse --file sparsefile --block-size 512 0 ABCD 1M EFGH 2000K IJKL || exit 77
29927 tar -c -f archive --sparse begin sparsefile end || exit 1
29928 echo separator
29929
29930 tar tfv archive
29931 echo separator
29932 mkdir directory
29933 tar Cxf directory archive
29934 genfile --stat=name,size sparsefile
29935 cmp sparsefile directory/sparsefile
29936 )"
29937 echo sparse01.at:24 >"$at_check_line_file"
29938
29939 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
29940    false; }; then
29941   ( $at_traceon;
29942 mkdir oldgnu
29943 (cd oldgnu
29944 TEST_TAR_FORMAT=oldgnu
29945 export TEST_TAR_FORMAT
29946 TAR_OPTIONS="-H oldgnu"
29947 export TAR_OPTIONS
29948 rm -rf *
29949
29950 genfile --length 1000 -f begin
29951 genfile --length 1000 -f end
29952 genfile --sparse --file sparsefile --block-size 512 0 ABCD 1M EFGH 2000K IJKL || exit 77
29953 tar -c -f archive --sparse begin sparsefile end || exit 1
29954 echo separator
29955
29956 tar tfv archive
29957 echo separator
29958 mkdir directory
29959 tar Cxf directory archive
29960 genfile --stat=name,size sparsefile
29961 cmp sparsefile directory/sparsefile
29962 ) ) >"$at_stdout" 2>"$at_stder1"
29963   at_func_filter_trace $?
29964 else
29965   ( :;
29966 mkdir oldgnu
29967 (cd oldgnu
29968 TEST_TAR_FORMAT=oldgnu
29969 export TEST_TAR_FORMAT
29970 TAR_OPTIONS="-H oldgnu"
29971 export TAR_OPTIONS
29972 rm -rf *
29973
29974 genfile --length 1000 -f begin
29975 genfile --length 1000 -f end
29976 genfile --sparse --file sparsefile --block-size 512 0 ABCD 1M EFGH 2000K IJKL || exit 77
29977 tar -c -f archive --sparse begin sparsefile end || exit 1
29978 echo separator
29979
29980 tar tfv archive
29981 echo separator
29982 mkdir directory
29983 tar Cxf directory archive
29984 genfile --stat=name,size sparsefile
29985 cmp sparsefile directory/sparsefile
29986 ) ) >"$at_stdout" 2>"$at_stderr"
29987 fi
29988 at_status=$?
29989 at_failed=false
29990 at_func_diff_devnull "$at_stderr" || at_failed=:
29991 echo stdout:; tee stdout <"$at_stdout"
29992 at_func_check_status 0 $at_status "$at_srcdir/sparse01.at:24"
29993
29994 $at_failed && at_func_log_failure
29995 $at_traceon; }
29996
29997
29998
29999
30000
30001 cat >stdout.re <<'_ATEOF'
30002 separator
30003 -rw-r--r-- ^ ^ *  *1000 0-90-90-90-9-0-90-9-0-90-9 0-90-9:0-90-9 begin
30004 -rw-r--r-- ^ ^ *  *10344448 0-90-90-90-9-0-90-9-0-90-9 0-90-9:0-90-9 sparsefile
30005 -rw-r--r-- ^ ^ *  *1000 0-90-90-90-9-0-90-9-0-90-9 0-90-9:0-90-9 end
30006 separator
30007 sparsefile 10344448
30008 _ATEOF
30009
30010 awk '{print NR " " $0}' stdout > $$.1
30011 awk '{print NR " " $0}' stdout.re | join - $$.1 |
30012 while read NUM RE LINE
30013 do
30014   echo "$LINE" | grep -- "$RE" >/dev/null || exit 1
30015 done
30016
30017
30018   $at_traceoff
30019   $at_times_p && times >"$at_times_file"
30020 ) 5>&1 2>&1 | eval $at_tee_pipe
30021 at_status=`cat "$at_status_file"`
30022 #AT_STOP_74
30023 #AT_START_75
30024 # 75. sparse02.at:21: extracting sparse file over a pipe
30025 at_setup_line='sparse02.at:21'
30026 at_desc="extracting sparse file over a pipe"
30027 $at_quiet $as_echo_n " 75: $at_desc             "
30028 at_xfail=no
30029       test -f $XFAILFILE && at_xfail=yes
30030 echo "#                             -*- compilation -*-" >> "$at_group_log"
30031 (
30032   $as_echo "75. sparse02.at:21: testing ..."
30033   $at_traceon
30034
30035
30036
30037 # Tar 1.14 - 1.15.1 was unable to extract sparse files to a pipe.
30038 # References: <16896.21739.460782.124775@jik.kamens.brookline.ma.us>
30039 # http://lists.gnu.org/archive/html/bug-tar/2005-02/msg00003.html
30040
30041
30042
30043   { $at_traceoff
30044 $as_echo "$at_srcdir/sparse02.at:28:
30045 mkdir posix
30046 (cd posix
30047 TEST_TAR_FORMAT=posix
30048 export TEST_TAR_FORMAT
30049 TAR_OPTIONS=\"-H posix\"
30050 export TAR_OPTIONS
30051 rm -rf *
30052
30053 genfile --sparse --file sparsefile --block-size 512 0 ABCD 1M EFGH 2000K IJKL || exit 77
30054 tar -c -f archive --sparse sparsefile || exit 1
30055 echo separator
30056
30057 tar xfO archive | cat - > sparsecopy || exit 1
30058 cmp sparsefile sparsecopy
30059 )"
30060 echo sparse02.at:28 >"$at_check_line_file"
30061
30062 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
30063    false; }; then
30064   ( $at_traceon;
30065 mkdir posix
30066 (cd posix
30067 TEST_TAR_FORMAT=posix
30068 export TEST_TAR_FORMAT
30069 TAR_OPTIONS="-H posix"
30070 export TAR_OPTIONS
30071 rm -rf *
30072
30073 genfile --sparse --file sparsefile --block-size 512 0 ABCD 1M EFGH 2000K IJKL || exit 77
30074 tar -c -f archive --sparse sparsefile || exit 1
30075 echo separator
30076
30077 tar xfO archive | cat - > sparsecopy || exit 1
30078 cmp sparsefile sparsecopy
30079 ) ) >"$at_stdout" 2>"$at_stder1"
30080   at_func_filter_trace $?
30081 else
30082   ( :;
30083 mkdir posix
30084 (cd posix
30085 TEST_TAR_FORMAT=posix
30086 export TEST_TAR_FORMAT
30087 TAR_OPTIONS="-H posix"
30088 export TAR_OPTIONS
30089 rm -rf *
30090
30091 genfile --sparse --file sparsefile --block-size 512 0 ABCD 1M EFGH 2000K IJKL || exit 77
30092 tar -c -f archive --sparse sparsefile || exit 1
30093 echo separator
30094
30095 tar xfO archive | cat - > sparsecopy || exit 1
30096 cmp sparsefile sparsecopy
30097 ) ) >"$at_stdout" 2>"$at_stderr"
30098 fi
30099 at_status=$?
30100 at_failed=false
30101 at_func_diff_devnull "$at_stderr" || at_failed=:
30102 echo >>"$at_stdout"; $as_echo "separator
30103 " | \
30104   $at_diff - "$at_stdout" || at_failed=:
30105 at_func_check_status 0 $at_status "$at_srcdir/sparse02.at:28"
30106
30107 $at_failed && at_func_log_failure
30108 $at_traceon; }
30109
30110               { $at_traceoff
30111 $as_echo "$at_srcdir/sparse02.at:28:
30112 mkdir gnu
30113 (cd gnu
30114 TEST_TAR_FORMAT=gnu
30115 export TEST_TAR_FORMAT
30116 TAR_OPTIONS=\"-H gnu\"
30117 export TAR_OPTIONS
30118 rm -rf *
30119
30120 genfile --sparse --file sparsefile --block-size 512 0 ABCD 1M EFGH 2000K IJKL || exit 77
30121 tar -c -f archive --sparse sparsefile || exit 1
30122 echo separator
30123
30124 tar xfO archive | cat - > sparsecopy || exit 1
30125 cmp sparsefile sparsecopy
30126 )"
30127 echo sparse02.at:28 >"$at_check_line_file"
30128
30129 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
30130    false; }; then
30131   ( $at_traceon;
30132 mkdir gnu
30133 (cd gnu
30134 TEST_TAR_FORMAT=gnu
30135 export TEST_TAR_FORMAT
30136 TAR_OPTIONS="-H gnu"
30137 export TAR_OPTIONS
30138 rm -rf *
30139
30140 genfile --sparse --file sparsefile --block-size 512 0 ABCD 1M EFGH 2000K IJKL || exit 77
30141 tar -c -f archive --sparse sparsefile || exit 1
30142 echo separator
30143
30144 tar xfO archive | cat - > sparsecopy || exit 1
30145 cmp sparsefile sparsecopy
30146 ) ) >"$at_stdout" 2>"$at_stder1"
30147   at_func_filter_trace $?
30148 else
30149   ( :;
30150 mkdir gnu
30151 (cd gnu
30152 TEST_TAR_FORMAT=gnu
30153 export TEST_TAR_FORMAT
30154 TAR_OPTIONS="-H gnu"
30155 export TAR_OPTIONS
30156 rm -rf *
30157
30158 genfile --sparse --file sparsefile --block-size 512 0 ABCD 1M EFGH 2000K IJKL || exit 77
30159 tar -c -f archive --sparse sparsefile || exit 1
30160 echo separator
30161
30162 tar xfO archive | cat - > sparsecopy || exit 1
30163 cmp sparsefile sparsecopy
30164 ) ) >"$at_stdout" 2>"$at_stderr"
30165 fi
30166 at_status=$?
30167 at_failed=false
30168 at_func_diff_devnull "$at_stderr" || at_failed=:
30169 echo >>"$at_stdout"; $as_echo "separator
30170 " | \
30171   $at_diff - "$at_stdout" || at_failed=:
30172 at_func_check_status 0 $at_status "$at_srcdir/sparse02.at:28"
30173
30174 $at_failed && at_func_log_failure
30175 $at_traceon; }
30176
30177               { $at_traceoff
30178 $as_echo "$at_srcdir/sparse02.at:28:
30179 mkdir oldgnu
30180 (cd oldgnu
30181 TEST_TAR_FORMAT=oldgnu
30182 export TEST_TAR_FORMAT
30183 TAR_OPTIONS=\"-H oldgnu\"
30184 export TAR_OPTIONS
30185 rm -rf *
30186
30187 genfile --sparse --file sparsefile --block-size 512 0 ABCD 1M EFGH 2000K IJKL || exit 77
30188 tar -c -f archive --sparse sparsefile || exit 1
30189 echo separator
30190
30191 tar xfO archive | cat - > sparsecopy || exit 1
30192 cmp sparsefile sparsecopy
30193 )"
30194 echo sparse02.at:28 >"$at_check_line_file"
30195
30196 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
30197    false; }; then
30198   ( $at_traceon;
30199 mkdir oldgnu
30200 (cd oldgnu
30201 TEST_TAR_FORMAT=oldgnu
30202 export TEST_TAR_FORMAT
30203 TAR_OPTIONS="-H oldgnu"
30204 export TAR_OPTIONS
30205 rm -rf *
30206
30207 genfile --sparse --file sparsefile --block-size 512 0 ABCD 1M EFGH 2000K IJKL || exit 77
30208 tar -c -f archive --sparse sparsefile || exit 1
30209 echo separator
30210
30211 tar xfO archive | cat - > sparsecopy || exit 1
30212 cmp sparsefile sparsecopy
30213 ) ) >"$at_stdout" 2>"$at_stder1"
30214   at_func_filter_trace $?
30215 else
30216   ( :;
30217 mkdir oldgnu
30218 (cd oldgnu
30219 TEST_TAR_FORMAT=oldgnu
30220 export TEST_TAR_FORMAT
30221 TAR_OPTIONS="-H oldgnu"
30222 export TAR_OPTIONS
30223 rm -rf *
30224
30225 genfile --sparse --file sparsefile --block-size 512 0 ABCD 1M EFGH 2000K IJKL || exit 77
30226 tar -c -f archive --sparse sparsefile || exit 1
30227 echo separator
30228
30229 tar xfO archive | cat - > sparsecopy || exit 1
30230 cmp sparsefile sparsecopy
30231 ) ) >"$at_stdout" 2>"$at_stderr"
30232 fi
30233 at_status=$?
30234 at_failed=false
30235 at_func_diff_devnull "$at_stderr" || at_failed=:
30236 echo >>"$at_stdout"; $as_echo "separator
30237 " | \
30238   $at_diff - "$at_stdout" || at_failed=:
30239 at_func_check_status 0 $at_status "$at_srcdir/sparse02.at:28"
30240
30241 $at_failed && at_func_log_failure
30242 $at_traceon; }
30243
30244
30245
30246
30247   $at_traceoff
30248   $at_times_p && times >"$at_times_file"
30249 ) 5>&1 2>&1 | eval $at_tee_pipe
30250 at_status=`cat "$at_status_file"`
30251 #AT_STOP_75
30252 #AT_START_76
30253 # 76. sparse03.at:21: storing sparse files > 8G
30254 at_setup_line='sparse03.at:21'
30255 at_desc="storing sparse files > 8G"
30256 $at_quiet $as_echo_n " 76: $at_desc                      "
30257 at_xfail=no
30258       test -f $XFAILFILE && at_xfail=yes
30259 echo "#                             -*- compilation -*-" >> "$at_group_log"
30260 (
30261   $as_echo "76. sparse03.at:21: testing ..."
30262   $at_traceon
30263
30264
30265
30266 # Tar 1.15.1 incorrectly computed sparse member size if the extended
30267 # PAX header contained size keyword.
30268 # References: <87vf46nb36.fsf@penguin.cs.ucla.edu>
30269 # http://lists.gnu.org/archive/html/bug-tar/2005-06/msg00040.html
30270
30271
30272
30273   { $at_traceoff
30274 $as_echo "$at_srcdir/sparse03.at:29:
30275 mkdir posix
30276 (cd posix
30277 TEST_TAR_FORMAT=posix
30278 export TEST_TAR_FORMAT
30279 TAR_OPTIONS=\"-H posix\"
30280 export TAR_OPTIONS
30281 rm -rf *
30282
30283 genfile --length 1000 --file begin
30284 genfile --length 1000 --file end
30285 genfile --sparse --file sparsefile --block-size 512 8G A || exit 77
30286 tar -c -f archive --sparse begin sparsefile end || exit 1
30287 echo separator
30288
30289 tar tfv archive
30290 echo separator
30291 mkdir directory
30292 tar Cxf directory archive
30293 genfile --stat=name,size sparsefile
30294 cmp sparsefile directory/sparsefile
30295 )"
30296 echo sparse03.at:29 >"$at_check_line_file"
30297
30298 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
30299    false; }; then
30300   ( $at_traceon;
30301 mkdir posix
30302 (cd posix
30303 TEST_TAR_FORMAT=posix
30304 export TEST_TAR_FORMAT
30305 TAR_OPTIONS="-H posix"
30306 export TAR_OPTIONS
30307 rm -rf *
30308
30309 genfile --length 1000 --file begin
30310 genfile --length 1000 --file end
30311 genfile --sparse --file sparsefile --block-size 512 8G A || exit 77
30312 tar -c -f archive --sparse begin sparsefile end || exit 1
30313 echo separator
30314
30315 tar tfv archive
30316 echo separator
30317 mkdir directory
30318 tar Cxf directory archive
30319 genfile --stat=name,size sparsefile
30320 cmp sparsefile directory/sparsefile
30321 ) ) >"$at_stdout" 2>"$at_stder1"
30322   at_func_filter_trace $?
30323 else
30324   ( :;
30325 mkdir posix
30326 (cd posix
30327 TEST_TAR_FORMAT=posix
30328 export TEST_TAR_FORMAT
30329 TAR_OPTIONS="-H posix"
30330 export TAR_OPTIONS
30331 rm -rf *
30332
30333 genfile --length 1000 --file begin
30334 genfile --length 1000 --file end
30335 genfile --sparse --file sparsefile --block-size 512 8G A || exit 77
30336 tar -c -f archive --sparse begin sparsefile end || exit 1
30337 echo separator
30338
30339 tar tfv archive
30340 echo separator
30341 mkdir directory
30342 tar Cxf directory archive
30343 genfile --stat=name,size sparsefile
30344 cmp sparsefile directory/sparsefile
30345 ) ) >"$at_stdout" 2>"$at_stderr"
30346 fi
30347 at_status=$?
30348 at_failed=false
30349 at_func_diff_devnull "$at_stderr" || at_failed=:
30350 echo stdout:; tee stdout <"$at_stdout"
30351 at_func_check_status 0 $at_status "$at_srcdir/sparse03.at:29"
30352
30353 $at_failed && at_func_log_failure
30354 $at_traceon; }
30355
30356
30357
30358
30359
30360 cat >stdout.re <<'_ATEOF'
30361 separator
30362 -rw-r--r-- ^ ^ *  *1000 0-90-90-90-9-0-90-9-0-90-9 0-90-9:0-90-9 begin
30363 -rw-r--r-- ^ ^ *  *8589935104 0-90-90-90-9-0-90-9-0-90-9 0-90-9:0-90-9 sparsefile
30364 -rw-r--r-- ^ ^ *  *1000 0-90-90-90-9-0-90-9-0-90-9 0-90-9:0-90-9 end
30365 separator
30366 sparsefile 8589935104
30367 _ATEOF
30368
30369 awk '{print NR " " $0}' stdout > $$.1
30370 awk '{print NR " " $0}' stdout.re | join - $$.1 |
30371 while read NUM RE LINE
30372 do
30373   echo "$LINE" | grep -- "$RE" >/dev/null || exit 1
30374 done
30375
30376
30377   $at_traceoff
30378   $at_times_p && times >"$at_times_file"
30379 ) 5>&1 2>&1 | eval $at_tee_pipe
30380 at_status=`cat "$at_status_file"`
30381 #AT_STOP_76
30382 #AT_START_77
30383 # 77. sparsemv.at:21: sparse files in MV archives
30384 at_setup_line='sparsemv.at:21'
30385 at_desc="sparse files in MV archives"
30386 $at_quiet $as_echo_n " 77: $at_desc                    "
30387 at_xfail=no
30388       test -f $XFAILFILE && at_xfail=yes
30389 echo "#                             -*- compilation -*-" >> "$at_group_log"
30390 (
30391   $as_echo "77. sparsemv.at:21: testing ..."
30392   $at_traceon
30393
30394
30395
30396 # Check if sparse files are correctly split between GNU multi-volume
30397 # archives.
30398 # There are two cases: the file can be split within an empty (null) block,
30399 # or within a data block. Since null blocks are not archived, the first
30400 # case means the file is split between two consecutive data blocks.
30401 #
30402
30403
30404
30405   { $at_traceoff
30406 $as_echo "$at_srcdir/sparsemv.at:31:
30407 mkdir gnu
30408 (cd gnu
30409 TEST_TAR_FORMAT=gnu
30410 export TEST_TAR_FORMAT
30411 TAR_OPTIONS=\"-H gnu\"
30412 export TAR_OPTIONS
30413 rm -rf *
30414
30415 exec <&-
30416 genfile --sparse --file sparsefile 0 ABCDEFGHIJK 1M ABCDEFGHI || exit 77
30417 echo \"Pass 1: Split between data blocks\"
30418 echo \"Create archive\"
30419 tar --sparse -c --record-size=512 -M -L6 -f arc.1 -f arc.2 sparsefile || exit 1
30420 echo \"Test archive\"
30421 tar --record-size=512 -t -M -f arc.1 -f arc.2
30422 echo \"Compare archive\"
30423 tar --record-size=512 -d -M -f arc.1 -f arc.2
30424
30425 echo \"Pass 2: Split within a data block\"
30426 genfile --sparse --file sparsefile 0 ABCDEFGHIJ 1M ABCDEFGHI || exit 77
30427 echo \"Create archive\"
30428 tar --sparse -c --record-size=512 -M -L6 -f arc.1 -f arc.2 sparsefile || exit 1
30429 echo \"Test archive\"
30430 tar --record-size=512 -t -M -f arc.1 -f arc.2
30431 echo \"Compare archive\"
30432 tar --record-size=512 -d -M -f arc.1 -f arc.2
30433 )"
30434 echo sparsemv.at:31 >"$at_check_line_file"
30435
30436 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
30437    false; }; then
30438   ( $at_traceon;
30439 mkdir gnu
30440 (cd gnu
30441 TEST_TAR_FORMAT=gnu
30442 export TEST_TAR_FORMAT
30443 TAR_OPTIONS="-H gnu"
30444 export TAR_OPTIONS
30445 rm -rf *
30446
30447 exec <&-
30448 genfile --sparse --file sparsefile 0 ABCDEFGHIJK 1M ABCDEFGHI || exit 77
30449 echo "Pass 1: Split between data blocks"
30450 echo "Create archive"
30451 tar --sparse -c --record-size=512 -M -L6 -f arc.1 -f arc.2 sparsefile || exit 1
30452 echo "Test archive"
30453 tar --record-size=512 -t -M -f arc.1 -f arc.2
30454 echo "Compare archive"
30455 tar --record-size=512 -d -M -f arc.1 -f arc.2
30456
30457 echo "Pass 2: Split within a data block"
30458 genfile --sparse --file sparsefile 0 ABCDEFGHIJ 1M ABCDEFGHI || exit 77
30459 echo "Create archive"
30460 tar --sparse -c --record-size=512 -M -L6 -f arc.1 -f arc.2 sparsefile || exit 1
30461 echo "Test archive"
30462 tar --record-size=512 -t -M -f arc.1 -f arc.2
30463 echo "Compare archive"
30464 tar --record-size=512 -d -M -f arc.1 -f arc.2
30465 ) ) >"$at_stdout" 2>"$at_stder1"
30466   at_func_filter_trace $?
30467 else
30468   ( :;
30469 mkdir gnu
30470 (cd gnu
30471 TEST_TAR_FORMAT=gnu
30472 export TEST_TAR_FORMAT
30473 TAR_OPTIONS="-H gnu"
30474 export TAR_OPTIONS
30475 rm -rf *
30476
30477 exec <&-
30478 genfile --sparse --file sparsefile 0 ABCDEFGHIJK 1M ABCDEFGHI || exit 77
30479 echo "Pass 1: Split between data blocks"
30480 echo "Create archive"
30481 tar --sparse -c --record-size=512 -M -L6 -f arc.1 -f arc.2 sparsefile || exit 1
30482 echo "Test archive"
30483 tar --record-size=512 -t -M -f arc.1 -f arc.2
30484 echo "Compare archive"
30485 tar --record-size=512 -d -M -f arc.1 -f arc.2
30486
30487 echo "Pass 2: Split within a data block"
30488 genfile --sparse --file sparsefile 0 ABCDEFGHIJ 1M ABCDEFGHI || exit 77
30489 echo "Create archive"
30490 tar --sparse -c --record-size=512 -M -L6 -f arc.1 -f arc.2 sparsefile || exit 1
30491 echo "Test archive"
30492 tar --record-size=512 -t -M -f arc.1 -f arc.2
30493 echo "Compare archive"
30494 tar --record-size=512 -d -M -f arc.1 -f arc.2
30495 ) ) >"$at_stdout" 2>"$at_stderr"
30496 fi
30497 at_status=$?
30498 at_failed=false
30499 at_func_diff_devnull "$at_stderr" || at_failed=:
30500 echo >>"$at_stdout"; $as_echo "Pass 1: Split between data blocks
30501 Create archive
30502 Test archive
30503 sparsefile
30504 Compare archive
30505 Pass 2: Split within a data block
30506 Create archive
30507 Test archive
30508 sparsefile
30509 Compare archive
30510 " | \
30511   $at_diff - "$at_stdout" || at_failed=:
30512 at_func_check_status 0 $at_status "$at_srcdir/sparsemv.at:31"
30513
30514 $at_failed && at_func_log_failure
30515 $at_traceon; }
30516
30517               { $at_traceoff
30518 $as_echo "$at_srcdir/sparsemv.at:31:
30519 mkdir oldgnu
30520 (cd oldgnu
30521 TEST_TAR_FORMAT=oldgnu
30522 export TEST_TAR_FORMAT
30523 TAR_OPTIONS=\"-H oldgnu\"
30524 export TAR_OPTIONS
30525 rm -rf *
30526
30527 exec <&-
30528 genfile --sparse --file sparsefile 0 ABCDEFGHIJK 1M ABCDEFGHI || exit 77
30529 echo \"Pass 1: Split between data blocks\"
30530 echo \"Create archive\"
30531 tar --sparse -c --record-size=512 -M -L6 -f arc.1 -f arc.2 sparsefile || exit 1
30532 echo \"Test archive\"
30533 tar --record-size=512 -t -M -f arc.1 -f arc.2
30534 echo \"Compare archive\"
30535 tar --record-size=512 -d -M -f arc.1 -f arc.2
30536
30537 echo \"Pass 2: Split within a data block\"
30538 genfile --sparse --file sparsefile 0 ABCDEFGHIJ 1M ABCDEFGHI || exit 77
30539 echo \"Create archive\"
30540 tar --sparse -c --record-size=512 -M -L6 -f arc.1 -f arc.2 sparsefile || exit 1
30541 echo \"Test archive\"
30542 tar --record-size=512 -t -M -f arc.1 -f arc.2
30543 echo \"Compare archive\"
30544 tar --record-size=512 -d -M -f arc.1 -f arc.2
30545 )"
30546 echo sparsemv.at:31 >"$at_check_line_file"
30547
30548 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
30549    false; }; then
30550   ( $at_traceon;
30551 mkdir oldgnu
30552 (cd oldgnu
30553 TEST_TAR_FORMAT=oldgnu
30554 export TEST_TAR_FORMAT
30555 TAR_OPTIONS="-H oldgnu"
30556 export TAR_OPTIONS
30557 rm -rf *
30558
30559 exec <&-
30560 genfile --sparse --file sparsefile 0 ABCDEFGHIJK 1M ABCDEFGHI || exit 77
30561 echo "Pass 1: Split between data blocks"
30562 echo "Create archive"
30563 tar --sparse -c --record-size=512 -M -L6 -f arc.1 -f arc.2 sparsefile || exit 1
30564 echo "Test archive"
30565 tar --record-size=512 -t -M -f arc.1 -f arc.2
30566 echo "Compare archive"
30567 tar --record-size=512 -d -M -f arc.1 -f arc.2
30568
30569 echo "Pass 2: Split within a data block"
30570 genfile --sparse --file sparsefile 0 ABCDEFGHIJ 1M ABCDEFGHI || exit 77
30571 echo "Create archive"
30572 tar --sparse -c --record-size=512 -M -L6 -f arc.1 -f arc.2 sparsefile || exit 1
30573 echo "Test archive"
30574 tar --record-size=512 -t -M -f arc.1 -f arc.2
30575 echo "Compare archive"
30576 tar --record-size=512 -d -M -f arc.1 -f arc.2
30577 ) ) >"$at_stdout" 2>"$at_stder1"
30578   at_func_filter_trace $?
30579 else
30580   ( :;
30581 mkdir oldgnu
30582 (cd oldgnu
30583 TEST_TAR_FORMAT=oldgnu
30584 export TEST_TAR_FORMAT
30585 TAR_OPTIONS="-H oldgnu"
30586 export TAR_OPTIONS
30587 rm -rf *
30588
30589 exec <&-
30590 genfile --sparse --file sparsefile 0 ABCDEFGHIJK 1M ABCDEFGHI || exit 77
30591 echo "Pass 1: Split between data blocks"
30592 echo "Create archive"
30593 tar --sparse -c --record-size=512 -M -L6 -f arc.1 -f arc.2 sparsefile || exit 1
30594 echo "Test archive"
30595 tar --record-size=512 -t -M -f arc.1 -f arc.2
30596 echo "Compare archive"
30597 tar --record-size=512 -d -M -f arc.1 -f arc.2
30598
30599 echo "Pass 2: Split within a data block"
30600 genfile --sparse --file sparsefile 0 ABCDEFGHIJ 1M ABCDEFGHI || exit 77
30601 echo "Create archive"
30602 tar --sparse -c --record-size=512 -M -L6 -f arc.1 -f arc.2 sparsefile || exit 1
30603 echo "Test archive"
30604 tar --record-size=512 -t -M -f arc.1 -f arc.2
30605 echo "Compare archive"
30606 tar --record-size=512 -d -M -f arc.1 -f arc.2
30607 ) ) >"$at_stdout" 2>"$at_stderr"
30608 fi
30609 at_status=$?
30610 at_failed=false
30611 at_func_diff_devnull "$at_stderr" || at_failed=:
30612 echo >>"$at_stdout"; $as_echo "Pass 1: Split between data blocks
30613 Create archive
30614 Test archive
30615 sparsefile
30616 Compare archive
30617 Pass 2: Split within a data block
30618 Create archive
30619 Test archive
30620 sparsefile
30621 Compare archive
30622 " | \
30623   $at_diff - "$at_stdout" || at_failed=:
30624 at_func_check_status 0 $at_status "$at_srcdir/sparsemv.at:31"
30625
30626 $at_failed && at_func_log_failure
30627 $at_traceon; }
30628
30629
30630
30631
30632   $at_traceoff
30633   $at_times_p && times >"$at_times_file"
30634 ) 5>&1 2>&1 | eval $at_tee_pipe
30635 at_status=`cat "$at_status_file"`
30636 #AT_STOP_77
30637 #AT_START_78
30638 # 78. spmvp00.at:21: sparse files in PAX MV archives, v.0.0
30639 at_setup_line='spmvp00.at:21'
30640 at_desc="sparse files in PAX MV archives, v.0.0"
30641 $at_quiet $as_echo_n " 78: $at_desc         "
30642 at_xfail=no
30643       test -f $XFAILFILE && at_xfail=yes
30644 echo "#                             -*- compilation -*-" >> "$at_group_log"
30645 (
30646   $as_echo "78. spmvp00.at:21: testing ..."
30647   $at_traceon
30648
30649
30650
30651
30652
30653
30654   { $at_traceoff
30655 $as_echo "$at_srcdir/spmvp00.at:24:
30656 mkdir pax
30657 (cd pax
30658 TEST_TAR_FORMAT=pax
30659 export TEST_TAR_FORMAT
30660 TAR_OPTIONS=\"-H pax\"
30661 export TAR_OPTIONS
30662 rm -rf *
30663
30664 exec <&-
30665 genfile --sparse --file sparsefile 0 ABCDEFGHI 1M ABCDEFGHI || exit 77
30666 echo \"Pass 1: Split between data blocks\"
30667 echo \"Create archive\"
30668 tar --sparse --sparse-version=0.0 -c --record-size=512 -M -L6 -f arc.1 -f arc.2 -f arc.3 sparsefile
30669 echo \"Test archive\"
30670 tar -t -M -f arc.1 -f arc.2 -f arc.3
30671 echo \"Compare archive\"
30672 tar -d -M -f arc.1 -f arc.2 -f arc.3
30673
30674 echo \"Pass 2: Split within a data block\"
30675 genfile --sparse --file sparsefile 0 ABCDEFGH 1M ABCDEFGHI || exit 77
30676 echo \"Create archive\"
30677 tar --sparse --sparse-version=0.0 -c --record-size=512 -M -L6 -f arc.1 -f arc.2 -f arc.3 sparsefile
30678 echo \"Test archive\"
30679 tar -t -M -f arc.1 -f arc.2 -f arc.3
30680 echo \"Compare archive\"
30681 tar -d -M -f arc.1 -f arc.2 -f arc.3
30682 )"
30683 echo spmvp00.at:24 >"$at_check_line_file"
30684
30685 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
30686    false; }; then
30687   ( $at_traceon;
30688 mkdir pax
30689 (cd pax
30690 TEST_TAR_FORMAT=pax
30691 export TEST_TAR_FORMAT
30692 TAR_OPTIONS="-H pax"
30693 export TAR_OPTIONS
30694 rm -rf *
30695
30696 exec <&-
30697 genfile --sparse --file sparsefile 0 ABCDEFGHI 1M ABCDEFGHI || exit 77
30698 echo "Pass 1: Split between data blocks"
30699 echo "Create archive"
30700 tar --sparse --sparse-version=0.0 -c --record-size=512 -M -L6 -f arc.1 -f arc.2 -f arc.3 sparsefile
30701 echo "Test archive"
30702 tar -t -M -f arc.1 -f arc.2 -f arc.3
30703 echo "Compare archive"
30704 tar -d -M -f arc.1 -f arc.2 -f arc.3
30705
30706 echo "Pass 2: Split within a data block"
30707 genfile --sparse --file sparsefile 0 ABCDEFGH 1M ABCDEFGHI || exit 77
30708 echo "Create archive"
30709 tar --sparse --sparse-version=0.0 -c --record-size=512 -M -L6 -f arc.1 -f arc.2 -f arc.3 sparsefile
30710 echo "Test archive"
30711 tar -t -M -f arc.1 -f arc.2 -f arc.3
30712 echo "Compare archive"
30713 tar -d -M -f arc.1 -f arc.2 -f arc.3
30714 ) ) >"$at_stdout" 2>"$at_stder1"
30715   at_func_filter_trace $?
30716 else
30717   ( :;
30718 mkdir pax
30719 (cd pax
30720 TEST_TAR_FORMAT=pax
30721 export TEST_TAR_FORMAT
30722 TAR_OPTIONS="-H pax"
30723 export TAR_OPTIONS
30724 rm -rf *
30725
30726 exec <&-
30727 genfile --sparse --file sparsefile 0 ABCDEFGHI 1M ABCDEFGHI || exit 77
30728 echo "Pass 1: Split between data blocks"
30729 echo "Create archive"
30730 tar --sparse --sparse-version=0.0 -c --record-size=512 -M -L6 -f arc.1 -f arc.2 -f arc.3 sparsefile
30731 echo "Test archive"
30732 tar -t -M -f arc.1 -f arc.2 -f arc.3
30733 echo "Compare archive"
30734 tar -d -M -f arc.1 -f arc.2 -f arc.3
30735
30736 echo "Pass 2: Split within a data block"
30737 genfile --sparse --file sparsefile 0 ABCDEFGH 1M ABCDEFGHI || exit 77
30738 echo "Create archive"
30739 tar --sparse --sparse-version=0.0 -c --record-size=512 -M -L6 -f arc.1 -f arc.2 -f arc.3 sparsefile
30740 echo "Test archive"
30741 tar -t -M -f arc.1 -f arc.2 -f arc.3
30742 echo "Compare archive"
30743 tar -d -M -f arc.1 -f arc.2 -f arc.3
30744 ) ) >"$at_stdout" 2>"$at_stderr"
30745 fi
30746 at_status=$?
30747 at_failed=false
30748 at_func_diff_devnull "$at_stderr" || at_failed=:
30749 echo >>"$at_stdout"; $as_echo "Pass 1: Split between data blocks
30750 Create archive
30751 Test archive
30752 sparsefile
30753 Compare archive
30754 Pass 2: Split within a data block
30755 Create archive
30756 Test archive
30757 sparsefile
30758 Compare archive
30759 " | \
30760   $at_diff - "$at_stdout" || at_failed=:
30761 at_func_check_status 0 $at_status "$at_srcdir/spmvp00.at:24"
30762
30763 $at_failed && at_func_log_failure
30764 $at_traceon; }
30765
30766
30767
30768
30769   $at_traceoff
30770   $at_times_p && times >"$at_times_file"
30771 ) 5>&1 2>&1 | eval $at_tee_pipe
30772 at_status=`cat "$at_status_file"`
30773 #AT_STOP_78
30774 #AT_START_79
30775 # 79. spmvp01.at:21: sparse files in PAX MV archives, v.0.1
30776 at_setup_line='spmvp01.at:21'
30777 at_desc="sparse files in PAX MV archives, v.0.1"
30778 $at_quiet $as_echo_n " 79: $at_desc         "
30779 at_xfail=no
30780       test -f $XFAILFILE && at_xfail=yes
30781 echo "#                             -*- compilation -*-" >> "$at_group_log"
30782 (
30783   $as_echo "79. spmvp01.at:21: testing ..."
30784   $at_traceon
30785
30786
30787
30788
30789
30790
30791   { $at_traceoff
30792 $as_echo "$at_srcdir/spmvp01.at:24:
30793 mkdir pax
30794 (cd pax
30795 TEST_TAR_FORMAT=pax
30796 export TEST_TAR_FORMAT
30797 TAR_OPTIONS=\"-H pax\"
30798 export TAR_OPTIONS
30799 rm -rf *
30800
30801 exec <&-
30802 genfile --sparse --file sparsefile 0 ABCDEFGHIJK 1M ABCDEFGHI || exit 77
30803 echo \"Pass 1: Split between data blocks\"
30804 echo \"Create archive\"
30805 tar --sparse --sparse-version=0.1 -c --record-size=512 -M -L6 -f arc.1 -f arc.2 -f arc.3 sparsefile
30806 echo \"Test archive\"
30807 tar -t -M -f arc.1 -f arc.2 -f arc.3
30808 echo \"Compare archive\"
30809 tar -d -M -f arc.1 -f arc.2 -f arc.3
30810
30811 echo \"Pass 2: Split within a data block\"
30812 genfile --sparse --file sparsefile 0 ABCDEFGHIJ 1M ABCDEFGHI || exit 77
30813 echo \"Create archive\"
30814 tar --sparse --sparse-version=0.1 -c --record-size=512 -M -L6 -f arc.1 -f arc.2 -f arc.3 sparsefile
30815 echo \"Test archive\"
30816 tar -t -M -f arc.1 -f arc.2 -f arc.3
30817 echo \"Compare archive\"
30818 tar -d -M -f arc.1 -f arc.2 -f arc.3
30819 )"
30820 echo spmvp01.at:24 >"$at_check_line_file"
30821
30822 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
30823    false; }; then
30824   ( $at_traceon;
30825 mkdir pax
30826 (cd pax
30827 TEST_TAR_FORMAT=pax
30828 export TEST_TAR_FORMAT
30829 TAR_OPTIONS="-H pax"
30830 export TAR_OPTIONS
30831 rm -rf *
30832
30833 exec <&-
30834 genfile --sparse --file sparsefile 0 ABCDEFGHIJK 1M ABCDEFGHI || exit 77
30835 echo "Pass 1: Split between data blocks"
30836 echo "Create archive"
30837 tar --sparse --sparse-version=0.1 -c --record-size=512 -M -L6 -f arc.1 -f arc.2 -f arc.3 sparsefile
30838 echo "Test archive"
30839 tar -t -M -f arc.1 -f arc.2 -f arc.3
30840 echo "Compare archive"
30841 tar -d -M -f arc.1 -f arc.2 -f arc.3
30842
30843 echo "Pass 2: Split within a data block"
30844 genfile --sparse --file sparsefile 0 ABCDEFGHIJ 1M ABCDEFGHI || exit 77
30845 echo "Create archive"
30846 tar --sparse --sparse-version=0.1 -c --record-size=512 -M -L6 -f arc.1 -f arc.2 -f arc.3 sparsefile
30847 echo "Test archive"
30848 tar -t -M -f arc.1 -f arc.2 -f arc.3
30849 echo "Compare archive"
30850 tar -d -M -f arc.1 -f arc.2 -f arc.3
30851 ) ) >"$at_stdout" 2>"$at_stder1"
30852   at_func_filter_trace $?
30853 else
30854   ( :;
30855 mkdir pax
30856 (cd pax
30857 TEST_TAR_FORMAT=pax
30858 export TEST_TAR_FORMAT
30859 TAR_OPTIONS="-H pax"
30860 export TAR_OPTIONS
30861 rm -rf *
30862
30863 exec <&-
30864 genfile --sparse --file sparsefile 0 ABCDEFGHIJK 1M ABCDEFGHI || exit 77
30865 echo "Pass 1: Split between data blocks"
30866 echo "Create archive"
30867 tar --sparse --sparse-version=0.1 -c --record-size=512 -M -L6 -f arc.1 -f arc.2 -f arc.3 sparsefile
30868 echo "Test archive"
30869 tar -t -M -f arc.1 -f arc.2 -f arc.3
30870 echo "Compare archive"
30871 tar -d -M -f arc.1 -f arc.2 -f arc.3
30872
30873 echo "Pass 2: Split within a data block"
30874 genfile --sparse --file sparsefile 0 ABCDEFGHIJ 1M ABCDEFGHI || exit 77
30875 echo "Create archive"
30876 tar --sparse --sparse-version=0.1 -c --record-size=512 -M -L6 -f arc.1 -f arc.2 -f arc.3 sparsefile
30877 echo "Test archive"
30878 tar -t -M -f arc.1 -f arc.2 -f arc.3
30879 echo "Compare archive"
30880 tar -d -M -f arc.1 -f arc.2 -f arc.3
30881 ) ) >"$at_stdout" 2>"$at_stderr"
30882 fi
30883 at_status=$?
30884 at_failed=false
30885 at_func_diff_devnull "$at_stderr" || at_failed=:
30886 echo >>"$at_stdout"; $as_echo "Pass 1: Split between data blocks
30887 Create archive
30888 Test archive
30889 sparsefile
30890 Compare archive
30891 Pass 2: Split within a data block
30892 Create archive
30893 Test archive
30894 sparsefile
30895 Compare archive
30896 " | \
30897   $at_diff - "$at_stdout" || at_failed=:
30898 at_func_check_status 0 $at_status "$at_srcdir/spmvp01.at:24"
30899
30900 $at_failed && at_func_log_failure
30901 $at_traceon; }
30902
30903
30904
30905
30906   $at_traceoff
30907   $at_times_p && times >"$at_times_file"
30908 ) 5>&1 2>&1 | eval $at_tee_pipe
30909 at_status=`cat "$at_status_file"`
30910 #AT_STOP_79
30911 #AT_START_80
30912 # 80. spmvp10.at:21: sparse files in PAX MV archives, v.1.0
30913 at_setup_line='spmvp10.at:21'
30914 at_desc="sparse files in PAX MV archives, v.1.0"
30915 $at_quiet $as_echo_n " 80: $at_desc         "
30916 at_xfail=no
30917       test -f $XFAILFILE && at_xfail=yes
30918 echo "#                             -*- compilation -*-" >> "$at_group_log"
30919 (
30920   $as_echo "80. spmvp10.at:21: testing ..."
30921   $at_traceon
30922
30923
30924
30925
30926
30927
30928   { $at_traceoff
30929 $as_echo "$at_srcdir/spmvp10.at:24:
30930 mkdir pax
30931 (cd pax
30932 TEST_TAR_FORMAT=pax
30933 export TEST_TAR_FORMAT
30934 TAR_OPTIONS=\"-H pax\"
30935 export TAR_OPTIONS
30936 rm -rf *
30937
30938 exec <&-
30939 genfile --sparse --file sparsefile 0 ABCDEFGH 1M ABCDEFGHI || exit 77
30940 echo \"Pass 1: Split between data blocks\"
30941 echo \"Create archive\"
30942 tar --sparse --sparse-version=1.0 -c --record-size=512 -M -L6 -f arc.1 -f arc.2 -f arc.3 sparsefile
30943 echo \"Test archive\"
30944 tar -t -M -f arc.1 -f arc.2 -f arc.3
30945 echo \"Compare archive\"
30946 tar -d -M -f arc.1 -f arc.2 -f arc.3
30947
30948 echo \"Pass 2: Split within a data block\"
30949 genfile --sparse --file sparsefile 0 ABCDEFG 1M ABCDEFGHI || exit 77
30950 echo \"Create archive\"
30951 tar --sparse --sparse-version=1.0 -c --record-size=512 -M -L6 -f arc.1 -f arc.2 -f arc.3 sparsefile
30952 echo \"Test archive\"
30953 tar -t -M -f arc.1 -f arc.2 -f arc.3
30954 echo \"Compare archive\"
30955 tar -d -M -f arc.1 -f arc.2 -f arc.3
30956 )"
30957 echo spmvp10.at:24 >"$at_check_line_file"
30958
30959 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
30960    false; }; then
30961   ( $at_traceon;
30962 mkdir pax
30963 (cd pax
30964 TEST_TAR_FORMAT=pax
30965 export TEST_TAR_FORMAT
30966 TAR_OPTIONS="-H pax"
30967 export TAR_OPTIONS
30968 rm -rf *
30969
30970 exec <&-
30971 genfile --sparse --file sparsefile 0 ABCDEFGH 1M ABCDEFGHI || exit 77
30972 echo "Pass 1: Split between data blocks"
30973 echo "Create archive"
30974 tar --sparse --sparse-version=1.0 -c --record-size=512 -M -L6 -f arc.1 -f arc.2 -f arc.3 sparsefile
30975 echo "Test archive"
30976 tar -t -M -f arc.1 -f arc.2 -f arc.3
30977 echo "Compare archive"
30978 tar -d -M -f arc.1 -f arc.2 -f arc.3
30979
30980 echo "Pass 2: Split within a data block"
30981 genfile --sparse --file sparsefile 0 ABCDEFG 1M ABCDEFGHI || exit 77
30982 echo "Create archive"
30983 tar --sparse --sparse-version=1.0 -c --record-size=512 -M -L6 -f arc.1 -f arc.2 -f arc.3 sparsefile
30984 echo "Test archive"
30985 tar -t -M -f arc.1 -f arc.2 -f arc.3
30986 echo "Compare archive"
30987 tar -d -M -f arc.1 -f arc.2 -f arc.3
30988 ) ) >"$at_stdout" 2>"$at_stder1"
30989   at_func_filter_trace $?
30990 else
30991   ( :;
30992 mkdir pax
30993 (cd pax
30994 TEST_TAR_FORMAT=pax
30995 export TEST_TAR_FORMAT
30996 TAR_OPTIONS="-H pax"
30997 export TAR_OPTIONS
30998 rm -rf *
30999
31000 exec <&-
31001 genfile --sparse --file sparsefile 0 ABCDEFGH 1M ABCDEFGHI || exit 77
31002 echo "Pass 1: Split between data blocks"
31003 echo "Create archive"
31004 tar --sparse --sparse-version=1.0 -c --record-size=512 -M -L6 -f arc.1 -f arc.2 -f arc.3 sparsefile
31005 echo "Test archive"
31006 tar -t -M -f arc.1 -f arc.2 -f arc.3
31007 echo "Compare archive"
31008 tar -d -M -f arc.1 -f arc.2 -f arc.3
31009
31010 echo "Pass 2: Split within a data block"
31011 genfile --sparse --file sparsefile 0 ABCDEFG 1M ABCDEFGHI || exit 77
31012 echo "Create archive"
31013 tar --sparse --sparse-version=1.0 -c --record-size=512 -M -L6 -f arc.1 -f arc.2 -f arc.3 sparsefile
31014 echo "Test archive"
31015 tar -t -M -f arc.1 -f arc.2 -f arc.3
31016 echo "Compare archive"
31017 tar -d -M -f arc.1 -f arc.2 -f arc.3
31018 ) ) >"$at_stdout" 2>"$at_stderr"
31019 fi
31020 at_status=$?
31021 at_failed=false
31022 at_func_diff_devnull "$at_stderr" || at_failed=:
31023 echo >>"$at_stdout"; $as_echo "Pass 1: Split between data blocks
31024 Create archive
31025 Test archive
31026 sparsefile
31027 Compare archive
31028 Pass 2: Split within a data block
31029 Create archive
31030 Test archive
31031 sparsefile
31032 Compare archive
31033 " | \
31034   $at_diff - "$at_stdout" || at_failed=:
31035 at_func_check_status 0 $at_status "$at_srcdir/spmvp10.at:24"
31036
31037 $at_failed && at_func_log_failure
31038 $at_traceon; }
31039
31040
31041
31042
31043   $at_traceoff
31044   $at_times_p && times >"$at_times_file"
31045 ) 5>&1 2>&1 | eval $at_tee_pipe
31046 at_status=`cat "$at_status_file"`
31047 #AT_STOP_80
31048 #AT_START_81
31049 # 81. update.at:28: update unchanged directories
31050 at_setup_line='update.at:28'
31051 at_desc="update unchanged directories"
31052 $at_quiet $as_echo_n " 81: $at_desc                   "
31053 at_xfail=no
31054       test -f $XFAILFILE && at_xfail=yes
31055 echo "#                             -*- compilation -*-" >> "$at_group_log"
31056 (
31057   $as_echo "81. update.at:28: testing ..."
31058   $at_traceon
31059
31060
31061
31062
31063
31064   { $at_traceoff
31065 $as_echo "$at_srcdir/update.at:31:
31066 mkdir v7
31067 (cd v7
31068 TEST_TAR_FORMAT=v7
31069 export TEST_TAR_FORMAT
31070 TAR_OPTIONS=\"-H v7\"
31071 export TAR_OPTIONS
31072 rm -rf *
31073
31074
31075 test -z "`sort < /dev/null 2>&1`" || exit 77
31076
31077 mkdir directory
31078 genfile --length 10240 --pattern zeros --file directory/file1
31079 genfile --length 10240 --pattern default --file directory/file2
31080
31081 tar cf archive directory || exit 1
31082 echo separator
31083 tar uf archive directory || exit 1
31084 echo separator
31085 tar tf archive | sort || exit 1
31086 )"
31087 echo update.at:31 >"$at_check_line_file"
31088
31089 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
31090    false; }; then
31091   ( $at_traceon;
31092 mkdir v7
31093 (cd v7
31094 TEST_TAR_FORMAT=v7
31095 export TEST_TAR_FORMAT
31096 TAR_OPTIONS="-H v7"
31097 export TAR_OPTIONS
31098 rm -rf *
31099
31100
31101 test -z "`sort < /dev/null 2>&1`" || exit 77
31102
31103 mkdir directory
31104 genfile --length 10240 --pattern zeros --file directory/file1
31105 genfile --length 10240 --pattern default --file directory/file2
31106
31107 tar cf archive directory || exit 1
31108 echo separator
31109 tar uf archive directory || exit 1
31110 echo separator
31111 tar tf archive | sort || exit 1
31112 ) ) >"$at_stdout" 2>"$at_stder1"
31113   at_func_filter_trace $?
31114 else
31115   ( :;
31116 mkdir v7
31117 (cd v7
31118 TEST_TAR_FORMAT=v7
31119 export TEST_TAR_FORMAT
31120 TAR_OPTIONS="-H v7"
31121 export TAR_OPTIONS
31122 rm -rf *
31123
31124
31125 test -z "`sort < /dev/null 2>&1`" || exit 77
31126
31127 mkdir directory
31128 genfile --length 10240 --pattern zeros --file directory/file1
31129 genfile --length 10240 --pattern default --file directory/file2
31130
31131 tar cf archive directory || exit 1
31132 echo separator
31133 tar uf archive directory || exit 1
31134 echo separator
31135 tar tf archive | sort || exit 1
31136 ) ) >"$at_stdout" 2>"$at_stderr"
31137 fi
31138 at_status=$?
31139 at_failed=false
31140 at_func_diff_devnull "$at_stderr" || at_failed=:
31141 echo >>"$at_stdout"; $as_echo "separator
31142 separator
31143 directory/
31144 directory/file1
31145 directory/file2
31146 " | \
31147   $at_diff - "$at_stdout" || at_failed=:
31148 at_func_check_status 0 $at_status "$at_srcdir/update.at:31"
31149
31150 $at_failed && at_func_log_failure
31151 $at_traceon; }
31152
31153               { $at_traceoff
31154 $as_echo "$at_srcdir/update.at:31:
31155 mkdir oldgnu
31156 (cd oldgnu
31157 TEST_TAR_FORMAT=oldgnu
31158 export TEST_TAR_FORMAT
31159 TAR_OPTIONS=\"-H oldgnu\"
31160 export TAR_OPTIONS
31161 rm -rf *
31162
31163
31164 test -z "`sort < /dev/null 2>&1`" || exit 77
31165
31166 mkdir directory
31167 genfile --length 10240 --pattern zeros --file directory/file1
31168 genfile --length 10240 --pattern default --file directory/file2
31169
31170 tar cf archive directory || exit 1
31171 echo separator
31172 tar uf archive directory || exit 1
31173 echo separator
31174 tar tf archive | sort || exit 1
31175 )"
31176 echo update.at:31 >"$at_check_line_file"
31177
31178 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
31179    false; }; then
31180   ( $at_traceon;
31181 mkdir oldgnu
31182 (cd oldgnu
31183 TEST_TAR_FORMAT=oldgnu
31184 export TEST_TAR_FORMAT
31185 TAR_OPTIONS="-H oldgnu"
31186 export TAR_OPTIONS
31187 rm -rf *
31188
31189
31190 test -z "`sort < /dev/null 2>&1`" || exit 77
31191
31192 mkdir directory
31193 genfile --length 10240 --pattern zeros --file directory/file1
31194 genfile --length 10240 --pattern default --file directory/file2
31195
31196 tar cf archive directory || exit 1
31197 echo separator
31198 tar uf archive directory || exit 1
31199 echo separator
31200 tar tf archive | sort || exit 1
31201 ) ) >"$at_stdout" 2>"$at_stder1"
31202   at_func_filter_trace $?
31203 else
31204   ( :;
31205 mkdir oldgnu
31206 (cd oldgnu
31207 TEST_TAR_FORMAT=oldgnu
31208 export TEST_TAR_FORMAT
31209 TAR_OPTIONS="-H oldgnu"
31210 export TAR_OPTIONS
31211 rm -rf *
31212
31213
31214 test -z "`sort < /dev/null 2>&1`" || exit 77
31215
31216 mkdir directory
31217 genfile --length 10240 --pattern zeros --file directory/file1
31218 genfile --length 10240 --pattern default --file directory/file2
31219
31220 tar cf archive directory || exit 1
31221 echo separator
31222 tar uf archive directory || exit 1
31223 echo separator
31224 tar tf archive | sort || exit 1
31225 ) ) >"$at_stdout" 2>"$at_stderr"
31226 fi
31227 at_status=$?
31228 at_failed=false
31229 at_func_diff_devnull "$at_stderr" || at_failed=:
31230 echo >>"$at_stdout"; $as_echo "separator
31231 separator
31232 directory/
31233 directory/file1
31234 directory/file2
31235 " | \
31236   $at_diff - "$at_stdout" || at_failed=:
31237 at_func_check_status 0 $at_status "$at_srcdir/update.at:31"
31238
31239 $at_failed && at_func_log_failure
31240 $at_traceon; }
31241
31242               { $at_traceoff
31243 $as_echo "$at_srcdir/update.at:31:
31244 mkdir ustar
31245 (cd ustar
31246 TEST_TAR_FORMAT=ustar
31247 export TEST_TAR_FORMAT
31248 TAR_OPTIONS=\"-H ustar\"
31249 export TAR_OPTIONS
31250 rm -rf *
31251
31252
31253 test -z "`sort < /dev/null 2>&1`" || exit 77
31254
31255 mkdir directory
31256 genfile --length 10240 --pattern zeros --file directory/file1
31257 genfile --length 10240 --pattern default --file directory/file2
31258
31259 tar cf archive directory || exit 1
31260 echo separator
31261 tar uf archive directory || exit 1
31262 echo separator
31263 tar tf archive | sort || exit 1
31264 )"
31265 echo update.at:31 >"$at_check_line_file"
31266
31267 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
31268    false; }; then
31269   ( $at_traceon;
31270 mkdir ustar
31271 (cd ustar
31272 TEST_TAR_FORMAT=ustar
31273 export TEST_TAR_FORMAT
31274 TAR_OPTIONS="-H ustar"
31275 export TAR_OPTIONS
31276 rm -rf *
31277
31278
31279 test -z "`sort < /dev/null 2>&1`" || exit 77
31280
31281 mkdir directory
31282 genfile --length 10240 --pattern zeros --file directory/file1
31283 genfile --length 10240 --pattern default --file directory/file2
31284
31285 tar cf archive directory || exit 1
31286 echo separator
31287 tar uf archive directory || exit 1
31288 echo separator
31289 tar tf archive | sort || exit 1
31290 ) ) >"$at_stdout" 2>"$at_stder1"
31291   at_func_filter_trace $?
31292 else
31293   ( :;
31294 mkdir ustar
31295 (cd ustar
31296 TEST_TAR_FORMAT=ustar
31297 export TEST_TAR_FORMAT
31298 TAR_OPTIONS="-H ustar"
31299 export TAR_OPTIONS
31300 rm -rf *
31301
31302
31303 test -z "`sort < /dev/null 2>&1`" || exit 77
31304
31305 mkdir directory
31306 genfile --length 10240 --pattern zeros --file directory/file1
31307 genfile --length 10240 --pattern default --file directory/file2
31308
31309 tar cf archive directory || exit 1
31310 echo separator
31311 tar uf archive directory || exit 1
31312 echo separator
31313 tar tf archive | sort || exit 1
31314 ) ) >"$at_stdout" 2>"$at_stderr"
31315 fi
31316 at_status=$?
31317 at_failed=false
31318 at_func_diff_devnull "$at_stderr" || at_failed=:
31319 echo >>"$at_stdout"; $as_echo "separator
31320 separator
31321 directory/
31322 directory/file1
31323 directory/file2
31324 " | \
31325   $at_diff - "$at_stdout" || at_failed=:
31326 at_func_check_status 0 $at_status "$at_srcdir/update.at:31"
31327
31328 $at_failed && at_func_log_failure
31329 $at_traceon; }
31330
31331               { $at_traceoff
31332 $as_echo "$at_srcdir/update.at:31:
31333 mkdir posix
31334 (cd posix
31335 TEST_TAR_FORMAT=posix
31336 export TEST_TAR_FORMAT
31337 TAR_OPTIONS=\"-H posix\"
31338 export TAR_OPTIONS
31339 rm -rf *
31340
31341
31342 test -z "`sort < /dev/null 2>&1`" || exit 77
31343
31344 mkdir directory
31345 genfile --length 10240 --pattern zeros --file directory/file1
31346 genfile --length 10240 --pattern default --file directory/file2
31347
31348 tar cf archive directory || exit 1
31349 echo separator
31350 tar uf archive directory || exit 1
31351 echo separator
31352 tar tf archive | sort || exit 1
31353 )"
31354 echo update.at:31 >"$at_check_line_file"
31355
31356 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
31357    false; }; then
31358   ( $at_traceon;
31359 mkdir posix
31360 (cd posix
31361 TEST_TAR_FORMAT=posix
31362 export TEST_TAR_FORMAT
31363 TAR_OPTIONS="-H posix"
31364 export TAR_OPTIONS
31365 rm -rf *
31366
31367
31368 test -z "`sort < /dev/null 2>&1`" || exit 77
31369
31370 mkdir directory
31371 genfile --length 10240 --pattern zeros --file directory/file1
31372 genfile --length 10240 --pattern default --file directory/file2
31373
31374 tar cf archive directory || exit 1
31375 echo separator
31376 tar uf archive directory || exit 1
31377 echo separator
31378 tar tf archive | sort || exit 1
31379 ) ) >"$at_stdout" 2>"$at_stder1"
31380   at_func_filter_trace $?
31381 else
31382   ( :;
31383 mkdir posix
31384 (cd posix
31385 TEST_TAR_FORMAT=posix
31386 export TEST_TAR_FORMAT
31387 TAR_OPTIONS="-H posix"
31388 export TAR_OPTIONS
31389 rm -rf *
31390
31391
31392 test -z "`sort < /dev/null 2>&1`" || exit 77
31393
31394 mkdir directory
31395 genfile --length 10240 --pattern zeros --file directory/file1
31396 genfile --length 10240 --pattern default --file directory/file2
31397
31398 tar cf archive directory || exit 1
31399 echo separator
31400 tar uf archive directory || exit 1
31401 echo separator
31402 tar tf archive | sort || exit 1
31403 ) ) >"$at_stdout" 2>"$at_stderr"
31404 fi
31405 at_status=$?
31406 at_failed=false
31407 at_func_diff_devnull "$at_stderr" || at_failed=:
31408 echo >>"$at_stdout"; $as_echo "separator
31409 separator
31410 directory/
31411 directory/file1
31412 directory/file2
31413 " | \
31414   $at_diff - "$at_stdout" || at_failed=:
31415 at_func_check_status 0 $at_status "$at_srcdir/update.at:31"
31416
31417 $at_failed && at_func_log_failure
31418 $at_traceon; }
31419
31420               { $at_traceoff
31421 $as_echo "$at_srcdir/update.at:31:
31422 mkdir gnu
31423 (cd gnu
31424 TEST_TAR_FORMAT=gnu
31425 export TEST_TAR_FORMAT
31426 TAR_OPTIONS=\"-H gnu\"
31427 export TAR_OPTIONS
31428 rm -rf *
31429
31430
31431 test -z "`sort < /dev/null 2>&1`" || exit 77
31432
31433 mkdir directory
31434 genfile --length 10240 --pattern zeros --file directory/file1
31435 genfile --length 10240 --pattern default --file directory/file2
31436
31437 tar cf archive directory || exit 1
31438 echo separator
31439 tar uf archive directory || exit 1
31440 echo separator
31441 tar tf archive | sort || exit 1
31442 )"
31443 echo update.at:31 >"$at_check_line_file"
31444
31445 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
31446    false; }; then
31447   ( $at_traceon;
31448 mkdir gnu
31449 (cd gnu
31450 TEST_TAR_FORMAT=gnu
31451 export TEST_TAR_FORMAT
31452 TAR_OPTIONS="-H gnu"
31453 export TAR_OPTIONS
31454 rm -rf *
31455
31456
31457 test -z "`sort < /dev/null 2>&1`" || exit 77
31458
31459 mkdir directory
31460 genfile --length 10240 --pattern zeros --file directory/file1
31461 genfile --length 10240 --pattern default --file directory/file2
31462
31463 tar cf archive directory || exit 1
31464 echo separator
31465 tar uf archive directory || exit 1
31466 echo separator
31467 tar tf archive | sort || exit 1
31468 ) ) >"$at_stdout" 2>"$at_stder1"
31469   at_func_filter_trace $?
31470 else
31471   ( :;
31472 mkdir gnu
31473 (cd gnu
31474 TEST_TAR_FORMAT=gnu
31475 export TEST_TAR_FORMAT
31476 TAR_OPTIONS="-H gnu"
31477 export TAR_OPTIONS
31478 rm -rf *
31479
31480
31481 test -z "`sort < /dev/null 2>&1`" || exit 77
31482
31483 mkdir directory
31484 genfile --length 10240 --pattern zeros --file directory/file1
31485 genfile --length 10240 --pattern default --file directory/file2
31486
31487 tar cf archive directory || exit 1
31488 echo separator
31489 tar uf archive directory || exit 1
31490 echo separator
31491 tar tf archive | sort || exit 1
31492 ) ) >"$at_stdout" 2>"$at_stderr"
31493 fi
31494 at_status=$?
31495 at_failed=false
31496 at_func_diff_devnull "$at_stderr" || at_failed=:
31497 echo >>"$at_stdout"; $as_echo "separator
31498 separator
31499 directory/
31500 directory/file1
31501 directory/file2
31502 " | \
31503   $at_diff - "$at_stdout" || at_failed=:
31504 at_func_check_status 0 $at_status "$at_srcdir/update.at:31"
31505
31506 $at_failed && at_func_log_failure
31507 $at_traceon; }
31508
31509
31510
31511
31512   $at_traceoff
31513   $at_times_p && times >"$at_times_file"
31514 ) 5>&1 2>&1 | eval $at_tee_pipe
31515 at_status=`cat "$at_status_file"`
31516 #AT_STOP_81
31517 #AT_START_82
31518 # 82. update01.at:29: update directories
31519 at_setup_line='update01.at:29'
31520 at_desc="update directories"
31521 $at_quiet $as_echo_n " 82: $at_desc                             "
31522 at_xfail=no
31523       test -f $XFAILFILE && at_xfail=yes
31524 echo "#                             -*- compilation -*-" >> "$at_group_log"
31525 (
31526   $as_echo "82. update01.at:29: testing ..."
31527   $at_traceon
31528
31529
31530
31531
31532
31533   { $at_traceoff
31534 $as_echo "$at_srcdir/update01.at:32:
31535 mkdir v7
31536 (cd v7
31537 TEST_TAR_FORMAT=v7
31538 export TEST_TAR_FORMAT
31539 TAR_OPTIONS=\"-H v7\"
31540 export TAR_OPTIONS
31541 rm -rf *
31542
31543
31544 test -z "`sort < /dev/null 2>&1`" || exit 77
31545
31546 mkdir a
31547 genfile --file a/b
31548
31549 tar cf arc a
31550
31551 echo \"separator\"
31552
31553 sleep 2
31554 genfile --file a/c
31555
31556 tar ufv arc a
31557 echo \"separator\"
31558 tar tf arc | sort || exit 1
31559 )"
31560 echo update01.at:32 >"$at_check_line_file"
31561
31562 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
31563    false; }; then
31564   ( $at_traceon;
31565 mkdir v7
31566 (cd v7
31567 TEST_TAR_FORMAT=v7
31568 export TEST_TAR_FORMAT
31569 TAR_OPTIONS="-H v7"
31570 export TAR_OPTIONS
31571 rm -rf *
31572
31573
31574 test -z "`sort < /dev/null 2>&1`" || exit 77
31575
31576 mkdir a
31577 genfile --file a/b
31578
31579 tar cf arc a
31580
31581 echo "separator"
31582
31583 sleep 2
31584 genfile --file a/c
31585
31586 tar ufv arc a
31587 echo "separator"
31588 tar tf arc | sort || exit 1
31589 ) ) >"$at_stdout" 2>"$at_stder1"
31590   at_func_filter_trace $?
31591 else
31592   ( :;
31593 mkdir v7
31594 (cd v7
31595 TEST_TAR_FORMAT=v7
31596 export TEST_TAR_FORMAT
31597 TAR_OPTIONS="-H v7"
31598 export TAR_OPTIONS
31599 rm -rf *
31600
31601
31602 test -z "`sort < /dev/null 2>&1`" || exit 77
31603
31604 mkdir a
31605 genfile --file a/b
31606
31607 tar cf arc a
31608
31609 echo "separator"
31610
31611 sleep 2
31612 genfile --file a/c
31613
31614 tar ufv arc a
31615 echo "separator"
31616 tar tf arc | sort || exit 1
31617 ) ) >"$at_stdout" 2>"$at_stderr"
31618 fi
31619 at_status=$?
31620 at_failed=false
31621 at_func_diff_devnull "$at_stderr" || at_failed=:
31622 echo >>"$at_stdout"; $as_echo "separator
31623 a/c
31624 separator
31625 a/
31626 a/b
31627 a/c
31628 " | \
31629   $at_diff - "$at_stdout" || at_failed=:
31630 at_func_check_status 0 $at_status "$at_srcdir/update01.at:32"
31631
31632 $at_failed && at_func_log_failure
31633 $at_traceon; }
31634
31635               { $at_traceoff
31636 $as_echo "$at_srcdir/update01.at:32:
31637 mkdir oldgnu
31638 (cd oldgnu
31639 TEST_TAR_FORMAT=oldgnu
31640 export TEST_TAR_FORMAT
31641 TAR_OPTIONS=\"-H oldgnu\"
31642 export TAR_OPTIONS
31643 rm -rf *
31644
31645
31646 test -z "`sort < /dev/null 2>&1`" || exit 77
31647
31648 mkdir a
31649 genfile --file a/b
31650
31651 tar cf arc a
31652
31653 echo \"separator\"
31654
31655 sleep 2
31656 genfile --file a/c
31657
31658 tar ufv arc a
31659 echo \"separator\"
31660 tar tf arc | sort || exit 1
31661 )"
31662 echo update01.at:32 >"$at_check_line_file"
31663
31664 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
31665    false; }; then
31666   ( $at_traceon;
31667 mkdir oldgnu
31668 (cd oldgnu
31669 TEST_TAR_FORMAT=oldgnu
31670 export TEST_TAR_FORMAT
31671 TAR_OPTIONS="-H oldgnu"
31672 export TAR_OPTIONS
31673 rm -rf *
31674
31675
31676 test -z "`sort < /dev/null 2>&1`" || exit 77
31677
31678 mkdir a
31679 genfile --file a/b
31680
31681 tar cf arc a
31682
31683 echo "separator"
31684
31685 sleep 2
31686 genfile --file a/c
31687
31688 tar ufv arc a
31689 echo "separator"
31690 tar tf arc | sort || exit 1
31691 ) ) >"$at_stdout" 2>"$at_stder1"
31692   at_func_filter_trace $?
31693 else
31694   ( :;
31695 mkdir oldgnu
31696 (cd oldgnu
31697 TEST_TAR_FORMAT=oldgnu
31698 export TEST_TAR_FORMAT
31699 TAR_OPTIONS="-H oldgnu"
31700 export TAR_OPTIONS
31701 rm -rf *
31702
31703
31704 test -z "`sort < /dev/null 2>&1`" || exit 77
31705
31706 mkdir a
31707 genfile --file a/b
31708
31709 tar cf arc a
31710
31711 echo "separator"
31712
31713 sleep 2
31714 genfile --file a/c
31715
31716 tar ufv arc a
31717 echo "separator"
31718 tar tf arc | sort || exit 1
31719 ) ) >"$at_stdout" 2>"$at_stderr"
31720 fi
31721 at_status=$?
31722 at_failed=false
31723 at_func_diff_devnull "$at_stderr" || at_failed=:
31724 echo >>"$at_stdout"; $as_echo "separator
31725 a/c
31726 separator
31727 a/
31728 a/b
31729 a/c
31730 " | \
31731   $at_diff - "$at_stdout" || at_failed=:
31732 at_func_check_status 0 $at_status "$at_srcdir/update01.at:32"
31733
31734 $at_failed && at_func_log_failure
31735 $at_traceon; }
31736
31737               { $at_traceoff
31738 $as_echo "$at_srcdir/update01.at:32:
31739 mkdir ustar
31740 (cd ustar
31741 TEST_TAR_FORMAT=ustar
31742 export TEST_TAR_FORMAT
31743 TAR_OPTIONS=\"-H ustar\"
31744 export TAR_OPTIONS
31745 rm -rf *
31746
31747
31748 test -z "`sort < /dev/null 2>&1`" || exit 77
31749
31750 mkdir a
31751 genfile --file a/b
31752
31753 tar cf arc a
31754
31755 echo \"separator\"
31756
31757 sleep 2
31758 genfile --file a/c
31759
31760 tar ufv arc a
31761 echo \"separator\"
31762 tar tf arc | sort || exit 1
31763 )"
31764 echo update01.at:32 >"$at_check_line_file"
31765
31766 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
31767    false; }; then
31768   ( $at_traceon;
31769 mkdir ustar
31770 (cd ustar
31771 TEST_TAR_FORMAT=ustar
31772 export TEST_TAR_FORMAT
31773 TAR_OPTIONS="-H ustar"
31774 export TAR_OPTIONS
31775 rm -rf *
31776
31777
31778 test -z "`sort < /dev/null 2>&1`" || exit 77
31779
31780 mkdir a
31781 genfile --file a/b
31782
31783 tar cf arc a
31784
31785 echo "separator"
31786
31787 sleep 2
31788 genfile --file a/c
31789
31790 tar ufv arc a
31791 echo "separator"
31792 tar tf arc | sort || exit 1
31793 ) ) >"$at_stdout" 2>"$at_stder1"
31794   at_func_filter_trace $?
31795 else
31796   ( :;
31797 mkdir ustar
31798 (cd ustar
31799 TEST_TAR_FORMAT=ustar
31800 export TEST_TAR_FORMAT
31801 TAR_OPTIONS="-H ustar"
31802 export TAR_OPTIONS
31803 rm -rf *
31804
31805
31806 test -z "`sort < /dev/null 2>&1`" || exit 77
31807
31808 mkdir a
31809 genfile --file a/b
31810
31811 tar cf arc a
31812
31813 echo "separator"
31814
31815 sleep 2
31816 genfile --file a/c
31817
31818 tar ufv arc a
31819 echo "separator"
31820 tar tf arc | sort || exit 1
31821 ) ) >"$at_stdout" 2>"$at_stderr"
31822 fi
31823 at_status=$?
31824 at_failed=false
31825 at_func_diff_devnull "$at_stderr" || at_failed=:
31826 echo >>"$at_stdout"; $as_echo "separator
31827 a/c
31828 separator
31829 a/
31830 a/b
31831 a/c
31832 " | \
31833   $at_diff - "$at_stdout" || at_failed=:
31834 at_func_check_status 0 $at_status "$at_srcdir/update01.at:32"
31835
31836 $at_failed && at_func_log_failure
31837 $at_traceon; }
31838
31839               { $at_traceoff
31840 $as_echo "$at_srcdir/update01.at:32:
31841 mkdir posix
31842 (cd posix
31843 TEST_TAR_FORMAT=posix
31844 export TEST_TAR_FORMAT
31845 TAR_OPTIONS=\"-H posix\"
31846 export TAR_OPTIONS
31847 rm -rf *
31848
31849
31850 test -z "`sort < /dev/null 2>&1`" || exit 77
31851
31852 mkdir a
31853 genfile --file a/b
31854
31855 tar cf arc a
31856
31857 echo \"separator\"
31858
31859 sleep 2
31860 genfile --file a/c
31861
31862 tar ufv arc a
31863 echo \"separator\"
31864 tar tf arc | sort || exit 1
31865 )"
31866 echo update01.at:32 >"$at_check_line_file"
31867
31868 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
31869    false; }; then
31870   ( $at_traceon;
31871 mkdir posix
31872 (cd posix
31873 TEST_TAR_FORMAT=posix
31874 export TEST_TAR_FORMAT
31875 TAR_OPTIONS="-H posix"
31876 export TAR_OPTIONS
31877 rm -rf *
31878
31879
31880 test -z "`sort < /dev/null 2>&1`" || exit 77
31881
31882 mkdir a
31883 genfile --file a/b
31884
31885 tar cf arc a
31886
31887 echo "separator"
31888
31889 sleep 2
31890 genfile --file a/c
31891
31892 tar ufv arc a
31893 echo "separator"
31894 tar tf arc | sort || exit 1
31895 ) ) >"$at_stdout" 2>"$at_stder1"
31896   at_func_filter_trace $?
31897 else
31898   ( :;
31899 mkdir posix
31900 (cd posix
31901 TEST_TAR_FORMAT=posix
31902 export TEST_TAR_FORMAT
31903 TAR_OPTIONS="-H posix"
31904 export TAR_OPTIONS
31905 rm -rf *
31906
31907
31908 test -z "`sort < /dev/null 2>&1`" || exit 77
31909
31910 mkdir a
31911 genfile --file a/b
31912
31913 tar cf arc a
31914
31915 echo "separator"
31916
31917 sleep 2
31918 genfile --file a/c
31919
31920 tar ufv arc a
31921 echo "separator"
31922 tar tf arc | sort || exit 1
31923 ) ) >"$at_stdout" 2>"$at_stderr"
31924 fi
31925 at_status=$?
31926 at_failed=false
31927 at_func_diff_devnull "$at_stderr" || at_failed=:
31928 echo >>"$at_stdout"; $as_echo "separator
31929 a/c
31930 separator
31931 a/
31932 a/b
31933 a/c
31934 " | \
31935   $at_diff - "$at_stdout" || at_failed=:
31936 at_func_check_status 0 $at_status "$at_srcdir/update01.at:32"
31937
31938 $at_failed && at_func_log_failure
31939 $at_traceon; }
31940
31941               { $at_traceoff
31942 $as_echo "$at_srcdir/update01.at:32:
31943 mkdir gnu
31944 (cd gnu
31945 TEST_TAR_FORMAT=gnu
31946 export TEST_TAR_FORMAT
31947 TAR_OPTIONS=\"-H gnu\"
31948 export TAR_OPTIONS
31949 rm -rf *
31950
31951
31952 test -z "`sort < /dev/null 2>&1`" || exit 77
31953
31954 mkdir a
31955 genfile --file a/b
31956
31957 tar cf arc a
31958
31959 echo \"separator\"
31960
31961 sleep 2
31962 genfile --file a/c
31963
31964 tar ufv arc a
31965 echo \"separator\"
31966 tar tf arc | sort || exit 1
31967 )"
31968 echo update01.at:32 >"$at_check_line_file"
31969
31970 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
31971    false; }; then
31972   ( $at_traceon;
31973 mkdir gnu
31974 (cd gnu
31975 TEST_TAR_FORMAT=gnu
31976 export TEST_TAR_FORMAT
31977 TAR_OPTIONS="-H gnu"
31978 export TAR_OPTIONS
31979 rm -rf *
31980
31981
31982 test -z "`sort < /dev/null 2>&1`" || exit 77
31983
31984 mkdir a
31985 genfile --file a/b
31986
31987 tar cf arc a
31988
31989 echo "separator"
31990
31991 sleep 2
31992 genfile --file a/c
31993
31994 tar ufv arc a
31995 echo "separator"
31996 tar tf arc | sort || exit 1
31997 ) ) >"$at_stdout" 2>"$at_stder1"
31998   at_func_filter_trace $?
31999 else
32000   ( :;
32001 mkdir gnu
32002 (cd gnu
32003 TEST_TAR_FORMAT=gnu
32004 export TEST_TAR_FORMAT
32005 TAR_OPTIONS="-H gnu"
32006 export TAR_OPTIONS
32007 rm -rf *
32008
32009
32010 test -z "`sort < /dev/null 2>&1`" || exit 77
32011
32012 mkdir a
32013 genfile --file a/b
32014
32015 tar cf arc a
32016
32017 echo "separator"
32018
32019 sleep 2
32020 genfile --file a/c
32021
32022 tar ufv arc a
32023 echo "separator"
32024 tar tf arc | sort || exit 1
32025 ) ) >"$at_stdout" 2>"$at_stderr"
32026 fi
32027 at_status=$?
32028 at_failed=false
32029 at_func_diff_devnull "$at_stderr" || at_failed=:
32030 echo >>"$at_stdout"; $as_echo "separator
32031 a/c
32032 separator
32033 a/
32034 a/b
32035 a/c
32036 " | \
32037   $at_diff - "$at_stdout" || at_failed=:
32038 at_func_check_status 0 $at_status "$at_srcdir/update01.at:32"
32039
32040 $at_failed && at_func_log_failure
32041 $at_traceon; }
32042
32043
32044
32045
32046   $at_traceoff
32047   $at_times_p && times >"$at_times_file"
32048 ) 5>&1 2>&1 | eval $at_tee_pipe
32049 at_status=`cat "$at_status_file"`
32050 #AT_STOP_82
32051 #AT_START_83
32052 # 83. update02.at:26: update changed files
32053 at_setup_line='update02.at:26'
32054 at_desc="update changed files"
32055 $at_quiet $as_echo_n " 83: $at_desc                           "
32056 at_xfail=no
32057       test -f $XFAILFILE && at_xfail=yes
32058 echo "#                             -*- compilation -*-" >> "$at_group_log"
32059 (
32060   $as_echo "83. update02.at:26: testing ..."
32061   $at_traceon
32062
32063
32064
32065
32066
32067   { $at_traceoff
32068 $as_echo "$at_srcdir/update02.at:29:
32069 mkdir v7
32070 (cd v7
32071 TEST_TAR_FORMAT=v7
32072 export TEST_TAR_FORMAT
32073 TAR_OPTIONS=\"-H v7\"
32074 export TAR_OPTIONS
32075 rm -rf *
32076
32077
32078 test -z "`sort < /dev/null 2>&1`" || exit 77
32079
32080 mkdir a
32081 genfile --file a/b
32082
32083 tar cf arc a
32084
32085 echo \"separator\"
32086
32087 sleep 2
32088 touch a/b
32089
32090 tar ufv arc a
32091 echo \"separator\"
32092 tar tf arc | sort || exit 1
32093 )"
32094 echo update02.at:29 >"$at_check_line_file"
32095
32096 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
32097    false; }; then
32098   ( $at_traceon;
32099 mkdir v7
32100 (cd v7
32101 TEST_TAR_FORMAT=v7
32102 export TEST_TAR_FORMAT
32103 TAR_OPTIONS="-H v7"
32104 export TAR_OPTIONS
32105 rm -rf *
32106
32107
32108 test -z "`sort < /dev/null 2>&1`" || exit 77
32109
32110 mkdir a
32111 genfile --file a/b
32112
32113 tar cf arc a
32114
32115 echo "separator"
32116
32117 sleep 2
32118 touch a/b
32119
32120 tar ufv arc a
32121 echo "separator"
32122 tar tf arc | sort || exit 1
32123 ) ) >"$at_stdout" 2>"$at_stder1"
32124   at_func_filter_trace $?
32125 else
32126   ( :;
32127 mkdir v7
32128 (cd v7
32129 TEST_TAR_FORMAT=v7
32130 export TEST_TAR_FORMAT
32131 TAR_OPTIONS="-H v7"
32132 export TAR_OPTIONS
32133 rm -rf *
32134
32135
32136 test -z "`sort < /dev/null 2>&1`" || exit 77
32137
32138 mkdir a
32139 genfile --file a/b
32140
32141 tar cf arc a
32142
32143 echo "separator"
32144
32145 sleep 2
32146 touch a/b
32147
32148 tar ufv arc a
32149 echo "separator"
32150 tar tf arc | sort || exit 1
32151 ) ) >"$at_stdout" 2>"$at_stderr"
32152 fi
32153 at_status=$?
32154 at_failed=false
32155 at_func_diff_devnull "$at_stderr" || at_failed=:
32156 echo >>"$at_stdout"; $as_echo "separator
32157 a/b
32158 separator
32159 a/
32160 a/b
32161 a/b
32162 " | \
32163   $at_diff - "$at_stdout" || at_failed=:
32164 at_func_check_status 0 $at_status "$at_srcdir/update02.at:29"
32165
32166 $at_failed && at_func_log_failure
32167 $at_traceon; }
32168
32169               { $at_traceoff
32170 $as_echo "$at_srcdir/update02.at:29:
32171 mkdir oldgnu
32172 (cd oldgnu
32173 TEST_TAR_FORMAT=oldgnu
32174 export TEST_TAR_FORMAT
32175 TAR_OPTIONS=\"-H oldgnu\"
32176 export TAR_OPTIONS
32177 rm -rf *
32178
32179
32180 test -z "`sort < /dev/null 2>&1`" || exit 77
32181
32182 mkdir a
32183 genfile --file a/b
32184
32185 tar cf arc a
32186
32187 echo \"separator\"
32188
32189 sleep 2
32190 touch a/b
32191
32192 tar ufv arc a
32193 echo \"separator\"
32194 tar tf arc | sort || exit 1
32195 )"
32196 echo update02.at:29 >"$at_check_line_file"
32197
32198 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
32199    false; }; then
32200   ( $at_traceon;
32201 mkdir oldgnu
32202 (cd oldgnu
32203 TEST_TAR_FORMAT=oldgnu
32204 export TEST_TAR_FORMAT
32205 TAR_OPTIONS="-H oldgnu"
32206 export TAR_OPTIONS
32207 rm -rf *
32208
32209
32210 test -z "`sort < /dev/null 2>&1`" || exit 77
32211
32212 mkdir a
32213 genfile --file a/b
32214
32215 tar cf arc a
32216
32217 echo "separator"
32218
32219 sleep 2
32220 touch a/b
32221
32222 tar ufv arc a
32223 echo "separator"
32224 tar tf arc | sort || exit 1
32225 ) ) >"$at_stdout" 2>"$at_stder1"
32226   at_func_filter_trace $?
32227 else
32228   ( :;
32229 mkdir oldgnu
32230 (cd oldgnu
32231 TEST_TAR_FORMAT=oldgnu
32232 export TEST_TAR_FORMAT
32233 TAR_OPTIONS="-H oldgnu"
32234 export TAR_OPTIONS
32235 rm -rf *
32236
32237
32238 test -z "`sort < /dev/null 2>&1`" || exit 77
32239
32240 mkdir a
32241 genfile --file a/b
32242
32243 tar cf arc a
32244
32245 echo "separator"
32246
32247 sleep 2
32248 touch a/b
32249
32250 tar ufv arc a
32251 echo "separator"
32252 tar tf arc | sort || exit 1
32253 ) ) >"$at_stdout" 2>"$at_stderr"
32254 fi
32255 at_status=$?
32256 at_failed=false
32257 at_func_diff_devnull "$at_stderr" || at_failed=:
32258 echo >>"$at_stdout"; $as_echo "separator
32259 a/b
32260 separator
32261 a/
32262 a/b
32263 a/b
32264 " | \
32265   $at_diff - "$at_stdout" || at_failed=:
32266 at_func_check_status 0 $at_status "$at_srcdir/update02.at:29"
32267
32268 $at_failed && at_func_log_failure
32269 $at_traceon; }
32270
32271               { $at_traceoff
32272 $as_echo "$at_srcdir/update02.at:29:
32273 mkdir ustar
32274 (cd ustar
32275 TEST_TAR_FORMAT=ustar
32276 export TEST_TAR_FORMAT
32277 TAR_OPTIONS=\"-H ustar\"
32278 export TAR_OPTIONS
32279 rm -rf *
32280
32281
32282 test -z "`sort < /dev/null 2>&1`" || exit 77
32283
32284 mkdir a
32285 genfile --file a/b
32286
32287 tar cf arc a
32288
32289 echo \"separator\"
32290
32291 sleep 2
32292 touch a/b
32293
32294 tar ufv arc a
32295 echo \"separator\"
32296 tar tf arc | sort || exit 1
32297 )"
32298 echo update02.at:29 >"$at_check_line_file"
32299
32300 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
32301    false; }; then
32302   ( $at_traceon;
32303 mkdir ustar
32304 (cd ustar
32305 TEST_TAR_FORMAT=ustar
32306 export TEST_TAR_FORMAT
32307 TAR_OPTIONS="-H ustar"
32308 export TAR_OPTIONS
32309 rm -rf *
32310
32311
32312 test -z "`sort < /dev/null 2>&1`" || exit 77
32313
32314 mkdir a
32315 genfile --file a/b
32316
32317 tar cf arc a
32318
32319 echo "separator"
32320
32321 sleep 2
32322 touch a/b
32323
32324 tar ufv arc a
32325 echo "separator"
32326 tar tf arc | sort || exit 1
32327 ) ) >"$at_stdout" 2>"$at_stder1"
32328   at_func_filter_trace $?
32329 else
32330   ( :;
32331 mkdir ustar
32332 (cd ustar
32333 TEST_TAR_FORMAT=ustar
32334 export TEST_TAR_FORMAT
32335 TAR_OPTIONS="-H ustar"
32336 export TAR_OPTIONS
32337 rm -rf *
32338
32339
32340 test -z "`sort < /dev/null 2>&1`" || exit 77
32341
32342 mkdir a
32343 genfile --file a/b
32344
32345 tar cf arc a
32346
32347 echo "separator"
32348
32349 sleep 2
32350 touch a/b
32351
32352 tar ufv arc a
32353 echo "separator"
32354 tar tf arc | sort || exit 1
32355 ) ) >"$at_stdout" 2>"$at_stderr"
32356 fi
32357 at_status=$?
32358 at_failed=false
32359 at_func_diff_devnull "$at_stderr" || at_failed=:
32360 echo >>"$at_stdout"; $as_echo "separator
32361 a/b
32362 separator
32363 a/
32364 a/b
32365 a/b
32366 " | \
32367   $at_diff - "$at_stdout" || at_failed=:
32368 at_func_check_status 0 $at_status "$at_srcdir/update02.at:29"
32369
32370 $at_failed && at_func_log_failure
32371 $at_traceon; }
32372
32373               { $at_traceoff
32374 $as_echo "$at_srcdir/update02.at:29:
32375 mkdir posix
32376 (cd posix
32377 TEST_TAR_FORMAT=posix
32378 export TEST_TAR_FORMAT
32379 TAR_OPTIONS=\"-H posix\"
32380 export TAR_OPTIONS
32381 rm -rf *
32382
32383
32384 test -z "`sort < /dev/null 2>&1`" || exit 77
32385
32386 mkdir a
32387 genfile --file a/b
32388
32389 tar cf arc a
32390
32391 echo \"separator\"
32392
32393 sleep 2
32394 touch a/b
32395
32396 tar ufv arc a
32397 echo \"separator\"
32398 tar tf arc | sort || exit 1
32399 )"
32400 echo update02.at:29 >"$at_check_line_file"
32401
32402 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
32403    false; }; then
32404   ( $at_traceon;
32405 mkdir posix
32406 (cd posix
32407 TEST_TAR_FORMAT=posix
32408 export TEST_TAR_FORMAT
32409 TAR_OPTIONS="-H posix"
32410 export TAR_OPTIONS
32411 rm -rf *
32412
32413
32414 test -z "`sort < /dev/null 2>&1`" || exit 77
32415
32416 mkdir a
32417 genfile --file a/b
32418
32419 tar cf arc a
32420
32421 echo "separator"
32422
32423 sleep 2
32424 touch a/b
32425
32426 tar ufv arc a
32427 echo "separator"
32428 tar tf arc | sort || exit 1
32429 ) ) >"$at_stdout" 2>"$at_stder1"
32430   at_func_filter_trace $?
32431 else
32432   ( :;
32433 mkdir posix
32434 (cd posix
32435 TEST_TAR_FORMAT=posix
32436 export TEST_TAR_FORMAT
32437 TAR_OPTIONS="-H posix"
32438 export TAR_OPTIONS
32439 rm -rf *
32440
32441
32442 test -z "`sort < /dev/null 2>&1`" || exit 77
32443
32444 mkdir a
32445 genfile --file a/b
32446
32447 tar cf arc a
32448
32449 echo "separator"
32450
32451 sleep 2
32452 touch a/b
32453
32454 tar ufv arc a
32455 echo "separator"
32456 tar tf arc | sort || exit 1
32457 ) ) >"$at_stdout" 2>"$at_stderr"
32458 fi
32459 at_status=$?
32460 at_failed=false
32461 at_func_diff_devnull "$at_stderr" || at_failed=:
32462 echo >>"$at_stdout"; $as_echo "separator
32463 a/b
32464 separator
32465 a/
32466 a/b
32467 a/b
32468 " | \
32469   $at_diff - "$at_stdout" || at_failed=:
32470 at_func_check_status 0 $at_status "$at_srcdir/update02.at:29"
32471
32472 $at_failed && at_func_log_failure
32473 $at_traceon; }
32474
32475               { $at_traceoff
32476 $as_echo "$at_srcdir/update02.at:29:
32477 mkdir gnu
32478 (cd gnu
32479 TEST_TAR_FORMAT=gnu
32480 export TEST_TAR_FORMAT
32481 TAR_OPTIONS=\"-H gnu\"
32482 export TAR_OPTIONS
32483 rm -rf *
32484
32485
32486 test -z "`sort < /dev/null 2>&1`" || exit 77
32487
32488 mkdir a
32489 genfile --file a/b
32490
32491 tar cf arc a
32492
32493 echo \"separator\"
32494
32495 sleep 2
32496 touch a/b
32497
32498 tar ufv arc a
32499 echo \"separator\"
32500 tar tf arc | sort || exit 1
32501 )"
32502 echo update02.at:29 >"$at_check_line_file"
32503
32504 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
32505    false; }; then
32506   ( $at_traceon;
32507 mkdir gnu
32508 (cd gnu
32509 TEST_TAR_FORMAT=gnu
32510 export TEST_TAR_FORMAT
32511 TAR_OPTIONS="-H gnu"
32512 export TAR_OPTIONS
32513 rm -rf *
32514
32515
32516 test -z "`sort < /dev/null 2>&1`" || exit 77
32517
32518 mkdir a
32519 genfile --file a/b
32520
32521 tar cf arc a
32522
32523 echo "separator"
32524
32525 sleep 2
32526 touch a/b
32527
32528 tar ufv arc a
32529 echo "separator"
32530 tar tf arc | sort || exit 1
32531 ) ) >"$at_stdout" 2>"$at_stder1"
32532   at_func_filter_trace $?
32533 else
32534   ( :;
32535 mkdir gnu
32536 (cd gnu
32537 TEST_TAR_FORMAT=gnu
32538 export TEST_TAR_FORMAT
32539 TAR_OPTIONS="-H gnu"
32540 export TAR_OPTIONS
32541 rm -rf *
32542
32543
32544 test -z "`sort < /dev/null 2>&1`" || exit 77
32545
32546 mkdir a
32547 genfile --file a/b
32548
32549 tar cf arc a
32550
32551 echo "separator"
32552
32553 sleep 2
32554 touch a/b
32555
32556 tar ufv arc a
32557 echo "separator"
32558 tar tf arc | sort || exit 1
32559 ) ) >"$at_stdout" 2>"$at_stderr"
32560 fi
32561 at_status=$?
32562 at_failed=false
32563 at_func_diff_devnull "$at_stderr" || at_failed=:
32564 echo >>"$at_stdout"; $as_echo "separator
32565 a/b
32566 separator
32567 a/
32568 a/b
32569 a/b
32570 " | \
32571   $at_diff - "$at_stdout" || at_failed=:
32572 at_func_check_status 0 $at_status "$at_srcdir/update02.at:29"
32573
32574 $at_failed && at_func_log_failure
32575 $at_traceon; }
32576
32577
32578
32579
32580   $at_traceoff
32581   $at_times_p && times >"$at_times_file"
32582 ) 5>&1 2>&1 | eval $at_tee_pipe
32583 at_status=`cat "$at_status_file"`
32584 #AT_STOP_83
32585 #AT_START_84
32586 # 84. volume.at:23: volume
32587 at_setup_line='volume.at:23'
32588 at_desc="volume"
32589 $at_quiet $as_echo_n " 84: $at_desc                                         "
32590 at_xfail=no
32591       test -f $XFAILFILE && at_xfail=yes
32592 echo "#                             -*- compilation -*-" >> "$at_group_log"
32593 (
32594   $as_echo "84. volume.at:23: testing ..."
32595   $at_traceon
32596
32597
32598
32599
32600
32601   { $at_traceoff
32602 $as_echo "$at_srcdir/volume.at:26:
32603 mkdir gnu
32604 (cd gnu
32605 TEST_TAR_FORMAT=gnu
32606 export TEST_TAR_FORMAT
32607 TAR_OPTIONS=\"-H gnu\"
32608 export TAR_OPTIONS
32609 rm -rf *
32610
32611 tar -cf archive -V label -T /dev/null || exit 1
32612
32613 tar xfV archive label || exit 1
32614 tar xfV archive 'la?el' || exit 1
32615 tar xfV archive 'l*l' || exit 1
32616
32617 echo 1>&2 -----
32618 tar xfV archive lab
32619 test \$? = 2 || exit 1
32620 echo 1>&2 -----
32621 tar xfV archive bel
32622 test \$? = 2 || exit 1
32623 echo 1>&2 -----
32624 tar xfV archive babel
32625 test \$? = 2
32626 )"
32627 echo volume.at:26 >"$at_check_line_file"
32628
32629 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
32630    false; }; then
32631   ( $at_traceon;
32632 mkdir gnu
32633 (cd gnu
32634 TEST_TAR_FORMAT=gnu
32635 export TEST_TAR_FORMAT
32636 TAR_OPTIONS="-H gnu"
32637 export TAR_OPTIONS
32638 rm -rf *
32639
32640 tar -cf archive -V label -T /dev/null || exit 1
32641
32642 tar xfV archive label || exit 1
32643 tar xfV archive 'la?el' || exit 1
32644 tar xfV archive 'l*l' || exit 1
32645
32646 echo 1>&2 -----
32647 tar xfV archive lab
32648 test $? = 2 || exit 1
32649 echo 1>&2 -----
32650 tar xfV archive bel
32651 test $? = 2 || exit 1
32652 echo 1>&2 -----
32653 tar xfV archive babel
32654 test $? = 2
32655 ) ) >"$at_stdout" 2>"$at_stder1"
32656   at_func_filter_trace $?
32657 else
32658   ( :;
32659 mkdir gnu
32660 (cd gnu
32661 TEST_TAR_FORMAT=gnu
32662 export TEST_TAR_FORMAT
32663 TAR_OPTIONS="-H gnu"
32664 export TAR_OPTIONS
32665 rm -rf *
32666
32667 tar -cf archive -V label -T /dev/null || exit 1
32668
32669 tar xfV archive label || exit 1
32670 tar xfV archive 'la?el' || exit 1
32671 tar xfV archive 'l*l' || exit 1
32672
32673 echo 1>&2 -----
32674 tar xfV archive lab
32675 test $? = 2 || exit 1
32676 echo 1>&2 -----
32677 tar xfV archive bel
32678 test $? = 2 || exit 1
32679 echo 1>&2 -----
32680 tar xfV archive babel
32681 test $? = 2
32682 ) ) >"$at_stdout" 2>"$at_stderr"
32683 fi
32684 at_status=$?
32685 at_failed=false
32686 echo >>"$at_stderr"; $as_echo "-----
32687 tar: Volume \`label' does not match \`lab'
32688 tar: Error is not recoverable: exiting now
32689 -----
32690 tar: Volume \`label' does not match \`bel'
32691 tar: Error is not recoverable: exiting now
32692 -----
32693 tar: Volume \`label' does not match \`babel'
32694 tar: Error is not recoverable: exiting now
32695 " | \
32696   $at_diff - "$at_stderr" || at_failed=:
32697 at_func_diff_devnull "$at_stdout" || at_failed=:
32698 at_func_check_status 0 $at_status "$at_srcdir/volume.at:26"
32699
32700 $at_failed && at_func_log_failure
32701 $at_traceon; }
32702
32703               { $at_traceoff
32704 $as_echo "$at_srcdir/volume.at:26:
32705 mkdir oldgnu
32706 (cd oldgnu
32707 TEST_TAR_FORMAT=oldgnu
32708 export TEST_TAR_FORMAT
32709 TAR_OPTIONS=\"-H oldgnu\"
32710 export TAR_OPTIONS
32711 rm -rf *
32712
32713 tar -cf archive -V label -T /dev/null || exit 1
32714
32715 tar xfV archive label || exit 1
32716 tar xfV archive 'la?el' || exit 1
32717 tar xfV archive 'l*l' || exit 1
32718
32719 echo 1>&2 -----
32720 tar xfV archive lab
32721 test \$? = 2 || exit 1
32722 echo 1>&2 -----
32723 tar xfV archive bel
32724 test \$? = 2 || exit 1
32725 echo 1>&2 -----
32726 tar xfV archive babel
32727 test \$? = 2
32728 )"
32729 echo volume.at:26 >"$at_check_line_file"
32730
32731 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
32732    false; }; then
32733   ( $at_traceon;
32734 mkdir oldgnu
32735 (cd oldgnu
32736 TEST_TAR_FORMAT=oldgnu
32737 export TEST_TAR_FORMAT
32738 TAR_OPTIONS="-H oldgnu"
32739 export TAR_OPTIONS
32740 rm -rf *
32741
32742 tar -cf archive -V label -T /dev/null || exit 1
32743
32744 tar xfV archive label || exit 1
32745 tar xfV archive 'la?el' || exit 1
32746 tar xfV archive 'l*l' || exit 1
32747
32748 echo 1>&2 -----
32749 tar xfV archive lab
32750 test $? = 2 || exit 1
32751 echo 1>&2 -----
32752 tar xfV archive bel
32753 test $? = 2 || exit 1
32754 echo 1>&2 -----
32755 tar xfV archive babel
32756 test $? = 2
32757 ) ) >"$at_stdout" 2>"$at_stder1"
32758   at_func_filter_trace $?
32759 else
32760   ( :;
32761 mkdir oldgnu
32762 (cd oldgnu
32763 TEST_TAR_FORMAT=oldgnu
32764 export TEST_TAR_FORMAT
32765 TAR_OPTIONS="-H oldgnu"
32766 export TAR_OPTIONS
32767 rm -rf *
32768
32769 tar -cf archive -V label -T /dev/null || exit 1
32770
32771 tar xfV archive label || exit 1
32772 tar xfV archive 'la?el' || exit 1
32773 tar xfV archive 'l*l' || exit 1
32774
32775 echo 1>&2 -----
32776 tar xfV archive lab
32777 test $? = 2 || exit 1
32778 echo 1>&2 -----
32779 tar xfV archive bel
32780 test $? = 2 || exit 1
32781 echo 1>&2 -----
32782 tar xfV archive babel
32783 test $? = 2
32784 ) ) >"$at_stdout" 2>"$at_stderr"
32785 fi
32786 at_status=$?
32787 at_failed=false
32788 echo >>"$at_stderr"; $as_echo "-----
32789 tar: Volume \`label' does not match \`lab'
32790 tar: Error is not recoverable: exiting now
32791 -----
32792 tar: Volume \`label' does not match \`bel'
32793 tar: Error is not recoverable: exiting now
32794 -----
32795 tar: Volume \`label' does not match \`babel'
32796 tar: Error is not recoverable: exiting now
32797 " | \
32798   $at_diff - "$at_stderr" || at_failed=:
32799 at_func_diff_devnull "$at_stdout" || at_failed=:
32800 at_func_check_status 0 $at_status "$at_srcdir/volume.at:26"
32801
32802 $at_failed && at_func_log_failure
32803 $at_traceon; }
32804
32805
32806
32807
32808   $at_traceoff
32809   $at_times_p && times >"$at_times_file"
32810 ) 5>&1 2>&1 | eval $at_tee_pipe
32811 at_status=`cat "$at_status_file"`
32812 #AT_STOP_84
32813 #AT_START_85
32814 # 85. volsize.at:29: volume header size
32815 at_setup_line='volsize.at:29'
32816 at_desc="volume header size"
32817 $at_quiet $as_echo_n " 85: $at_desc                             "
32818 at_xfail=no
32819       test -f $XFAILFILE && at_xfail=yes
32820 echo "#                             -*- compilation -*-" >> "$at_group_log"
32821 (
32822   $as_echo "85. volsize.at:29: testing ..."
32823   $at_traceon
32824
32825
32826
32827
32828
32829   { $at_traceoff
32830 $as_echo "$at_srcdir/volsize.at:32:
32831 mkdir v7
32832 (cd v7
32833 TEST_TAR_FORMAT=v7
32834 export TEST_TAR_FORMAT
32835 TAR_OPTIONS=\"-H v7\"
32836 export TAR_OPTIONS
32837 rm -rf *
32838
32839
32840 test -z "`sort < /dev/null 2>&1`" || exit 77
32841
32842
32843 test -z "$TEST_DATA_DIR" && exit 77
32844 tarball_prereq abc.tar 540f196ceddcad9e7bd2f2d7533d0474 $TEST_DATA_DIR $TEST_DATA_URL || exit 77
32845
32846 echo Short Listing
32847 tar tf \$TEST_DATA_DIR/abc.tar
32848 echo Verbose Listing
32849 tar --utc -tvf \$TEST_DATA_DIR/abc.tar
32850 echo Extracted directory
32851 tar xf \$TEST_DATA_DIR/abc.tar
32852 find abc|sort
32853 )"
32854 echo volsize.at:32 >"$at_check_line_file"
32855
32856 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
32857    false; }; then
32858   ( $at_traceon;
32859 mkdir v7
32860 (cd v7
32861 TEST_TAR_FORMAT=v7
32862 export TEST_TAR_FORMAT
32863 TAR_OPTIONS="-H v7"
32864 export TAR_OPTIONS
32865 rm -rf *
32866
32867
32868 test -z "`sort < /dev/null 2>&1`" || exit 77
32869
32870
32871 test -z "$TEST_DATA_DIR" && exit 77
32872 tarball_prereq abc.tar 540f196ceddcad9e7bd2f2d7533d0474 $TEST_DATA_DIR $TEST_DATA_URL || exit 77
32873
32874 echo Short Listing
32875 tar tf $TEST_DATA_DIR/abc.tar
32876 echo Verbose Listing
32877 tar --utc -tvf $TEST_DATA_DIR/abc.tar
32878 echo Extracted directory
32879 tar xf $TEST_DATA_DIR/abc.tar
32880 find abc|sort
32881 ) ) >"$at_stdout" 2>"$at_stder1"
32882   at_func_filter_trace $?
32883 else
32884   ( :;
32885 mkdir v7
32886 (cd v7
32887 TEST_TAR_FORMAT=v7
32888 export TEST_TAR_FORMAT
32889 TAR_OPTIONS="-H v7"
32890 export TAR_OPTIONS
32891 rm -rf *
32892
32893
32894 test -z "`sort < /dev/null 2>&1`" || exit 77
32895
32896
32897 test -z "$TEST_DATA_DIR" && exit 77
32898 tarball_prereq abc.tar 540f196ceddcad9e7bd2f2d7533d0474 $TEST_DATA_DIR $TEST_DATA_URL || exit 77
32899
32900 echo Short Listing
32901 tar tf $TEST_DATA_DIR/abc.tar
32902 echo Verbose Listing
32903 tar --utc -tvf $TEST_DATA_DIR/abc.tar
32904 echo Extracted directory
32905 tar xf $TEST_DATA_DIR/abc.tar
32906 find abc|sort
32907 ) ) >"$at_stdout" 2>"$at_stderr"
32908 fi
32909 at_status=$?
32910 at_failed=false
32911 at_func_diff_devnull "$at_stderr" || at_failed=:
32912 echo >>"$at_stdout"; $as_echo "Short Listing
32913 abc/not-a-file.gif
32914 abc/CCC
32915 Verbose Listing
32916 V--------- 0/0            1536 2006-05-08 22:07 abc/not-a-file.gif--Volume Header--
32917 -rw-r--r-- tom/users         0 2006-04-22 19:52 abc/CCC
32918 Extracted directory
32919 abc
32920 abc/CCC
32921 " | \
32922   $at_diff - "$at_stdout" || at_failed=:
32923 at_func_check_status 0 $at_status "$at_srcdir/volsize.at:32"
32924
32925 $at_failed && at_func_log_failure
32926 $at_traceon; }
32927
32928               { $at_traceoff
32929 $as_echo "$at_srcdir/volsize.at:32:
32930 mkdir oldgnu
32931 (cd oldgnu
32932 TEST_TAR_FORMAT=oldgnu
32933 export TEST_TAR_FORMAT
32934 TAR_OPTIONS=\"-H oldgnu\"
32935 export TAR_OPTIONS
32936 rm -rf *
32937
32938
32939 test -z "`sort < /dev/null 2>&1`" || exit 77
32940
32941
32942 test -z "$TEST_DATA_DIR" && exit 77
32943 tarball_prereq abc.tar 540f196ceddcad9e7bd2f2d7533d0474 $TEST_DATA_DIR $TEST_DATA_URL || exit 77
32944
32945 echo Short Listing
32946 tar tf \$TEST_DATA_DIR/abc.tar
32947 echo Verbose Listing
32948 tar --utc -tvf \$TEST_DATA_DIR/abc.tar
32949 echo Extracted directory
32950 tar xf \$TEST_DATA_DIR/abc.tar
32951 find abc|sort
32952 )"
32953 echo volsize.at:32 >"$at_check_line_file"
32954
32955 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
32956    false; }; then
32957   ( $at_traceon;
32958 mkdir oldgnu
32959 (cd oldgnu
32960 TEST_TAR_FORMAT=oldgnu
32961 export TEST_TAR_FORMAT
32962 TAR_OPTIONS="-H oldgnu"
32963 export TAR_OPTIONS
32964 rm -rf *
32965
32966
32967 test -z "`sort < /dev/null 2>&1`" || exit 77
32968
32969
32970 test -z "$TEST_DATA_DIR" && exit 77
32971 tarball_prereq abc.tar 540f196ceddcad9e7bd2f2d7533d0474 $TEST_DATA_DIR $TEST_DATA_URL || exit 77
32972
32973 echo Short Listing
32974 tar tf $TEST_DATA_DIR/abc.tar
32975 echo Verbose Listing
32976 tar --utc -tvf $TEST_DATA_DIR/abc.tar
32977 echo Extracted directory
32978 tar xf $TEST_DATA_DIR/abc.tar
32979 find abc|sort
32980 ) ) >"$at_stdout" 2>"$at_stder1"
32981   at_func_filter_trace $?
32982 else
32983   ( :;
32984 mkdir oldgnu
32985 (cd oldgnu
32986 TEST_TAR_FORMAT=oldgnu
32987 export TEST_TAR_FORMAT
32988 TAR_OPTIONS="-H oldgnu"
32989 export TAR_OPTIONS
32990 rm -rf *
32991
32992
32993 test -z "`sort < /dev/null 2>&1`" || exit 77
32994
32995
32996 test -z "$TEST_DATA_DIR" && exit 77
32997 tarball_prereq abc.tar 540f196ceddcad9e7bd2f2d7533d0474 $TEST_DATA_DIR $TEST_DATA_URL || exit 77
32998
32999 echo Short Listing
33000 tar tf $TEST_DATA_DIR/abc.tar
33001 echo Verbose Listing
33002 tar --utc -tvf $TEST_DATA_DIR/abc.tar
33003 echo Extracted directory
33004 tar xf $TEST_DATA_DIR/abc.tar
33005 find abc|sort
33006 ) ) >"$at_stdout" 2>"$at_stderr"
33007 fi
33008 at_status=$?
33009 at_failed=false
33010 at_func_diff_devnull "$at_stderr" || at_failed=:
33011 echo >>"$at_stdout"; $as_echo "Short Listing
33012 abc/not-a-file.gif
33013 abc/CCC
33014 Verbose Listing
33015 V--------- 0/0            1536 2006-05-08 22:07 abc/not-a-file.gif--Volume Header--
33016 -rw-r--r-- tom/users         0 2006-04-22 19:52 abc/CCC
33017 Extracted directory
33018 abc
33019 abc/CCC
33020 " | \
33021   $at_diff - "$at_stdout" || at_failed=:
33022 at_func_check_status 0 $at_status "$at_srcdir/volsize.at:32"
33023
33024 $at_failed && at_func_log_failure
33025 $at_traceon; }
33026
33027               { $at_traceoff
33028 $as_echo "$at_srcdir/volsize.at:32:
33029 mkdir ustar
33030 (cd ustar
33031 TEST_TAR_FORMAT=ustar
33032 export TEST_TAR_FORMAT
33033 TAR_OPTIONS=\"-H ustar\"
33034 export TAR_OPTIONS
33035 rm -rf *
33036
33037
33038 test -z "`sort < /dev/null 2>&1`" || exit 77
33039
33040
33041 test -z "$TEST_DATA_DIR" && exit 77
33042 tarball_prereq abc.tar 540f196ceddcad9e7bd2f2d7533d0474 $TEST_DATA_DIR $TEST_DATA_URL || exit 77
33043
33044 echo Short Listing
33045 tar tf \$TEST_DATA_DIR/abc.tar
33046 echo Verbose Listing
33047 tar --utc -tvf \$TEST_DATA_DIR/abc.tar
33048 echo Extracted directory
33049 tar xf \$TEST_DATA_DIR/abc.tar
33050 find abc|sort
33051 )"
33052 echo volsize.at:32 >"$at_check_line_file"
33053
33054 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
33055    false; }; then
33056   ( $at_traceon;
33057 mkdir ustar
33058 (cd ustar
33059 TEST_TAR_FORMAT=ustar
33060 export TEST_TAR_FORMAT
33061 TAR_OPTIONS="-H ustar"
33062 export TAR_OPTIONS
33063 rm -rf *
33064
33065
33066 test -z "`sort < /dev/null 2>&1`" || exit 77
33067
33068
33069 test -z "$TEST_DATA_DIR" && exit 77
33070 tarball_prereq abc.tar 540f196ceddcad9e7bd2f2d7533d0474 $TEST_DATA_DIR $TEST_DATA_URL || exit 77
33071
33072 echo Short Listing
33073 tar tf $TEST_DATA_DIR/abc.tar
33074 echo Verbose Listing
33075 tar --utc -tvf $TEST_DATA_DIR/abc.tar
33076 echo Extracted directory
33077 tar xf $TEST_DATA_DIR/abc.tar
33078 find abc|sort
33079 ) ) >"$at_stdout" 2>"$at_stder1"
33080   at_func_filter_trace $?
33081 else
33082   ( :;
33083 mkdir ustar
33084 (cd ustar
33085 TEST_TAR_FORMAT=ustar
33086 export TEST_TAR_FORMAT
33087 TAR_OPTIONS="-H ustar"
33088 export TAR_OPTIONS
33089 rm -rf *
33090
33091
33092 test -z "`sort < /dev/null 2>&1`" || exit 77
33093
33094
33095 test -z "$TEST_DATA_DIR" && exit 77
33096 tarball_prereq abc.tar 540f196ceddcad9e7bd2f2d7533d0474 $TEST_DATA_DIR $TEST_DATA_URL || exit 77
33097
33098 echo Short Listing
33099 tar tf $TEST_DATA_DIR/abc.tar
33100 echo Verbose Listing
33101 tar --utc -tvf $TEST_DATA_DIR/abc.tar
33102 echo Extracted directory
33103 tar xf $TEST_DATA_DIR/abc.tar
33104 find abc|sort
33105 ) ) >"$at_stdout" 2>"$at_stderr"
33106 fi
33107 at_status=$?
33108 at_failed=false
33109 at_func_diff_devnull "$at_stderr" || at_failed=:
33110 echo >>"$at_stdout"; $as_echo "Short Listing
33111 abc/not-a-file.gif
33112 abc/CCC
33113 Verbose Listing
33114 V--------- 0/0            1536 2006-05-08 22:07 abc/not-a-file.gif--Volume Header--
33115 -rw-r--r-- tom/users         0 2006-04-22 19:52 abc/CCC
33116 Extracted directory
33117 abc
33118 abc/CCC
33119 " | \
33120   $at_diff - "$at_stdout" || at_failed=:
33121 at_func_check_status 0 $at_status "$at_srcdir/volsize.at:32"
33122
33123 $at_failed && at_func_log_failure
33124 $at_traceon; }
33125
33126               { $at_traceoff
33127 $as_echo "$at_srcdir/volsize.at:32:
33128 mkdir posix
33129 (cd posix
33130 TEST_TAR_FORMAT=posix
33131 export TEST_TAR_FORMAT
33132 TAR_OPTIONS=\"-H posix\"
33133 export TAR_OPTIONS
33134 rm -rf *
33135
33136
33137 test -z "`sort < /dev/null 2>&1`" || exit 77
33138
33139
33140 test -z "$TEST_DATA_DIR" && exit 77
33141 tarball_prereq abc.tar 540f196ceddcad9e7bd2f2d7533d0474 $TEST_DATA_DIR $TEST_DATA_URL || exit 77
33142
33143 echo Short Listing
33144 tar tf \$TEST_DATA_DIR/abc.tar
33145 echo Verbose Listing
33146 tar --utc -tvf \$TEST_DATA_DIR/abc.tar
33147 echo Extracted directory
33148 tar xf \$TEST_DATA_DIR/abc.tar
33149 find abc|sort
33150 )"
33151 echo volsize.at:32 >"$at_check_line_file"
33152
33153 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
33154    false; }; then
33155   ( $at_traceon;
33156 mkdir posix
33157 (cd posix
33158 TEST_TAR_FORMAT=posix
33159 export TEST_TAR_FORMAT
33160 TAR_OPTIONS="-H posix"
33161 export TAR_OPTIONS
33162 rm -rf *
33163
33164
33165 test -z "`sort < /dev/null 2>&1`" || exit 77
33166
33167
33168 test -z "$TEST_DATA_DIR" && exit 77
33169 tarball_prereq abc.tar 540f196ceddcad9e7bd2f2d7533d0474 $TEST_DATA_DIR $TEST_DATA_URL || exit 77
33170
33171 echo Short Listing
33172 tar tf $TEST_DATA_DIR/abc.tar
33173 echo Verbose Listing
33174 tar --utc -tvf $TEST_DATA_DIR/abc.tar
33175 echo Extracted directory
33176 tar xf $TEST_DATA_DIR/abc.tar
33177 find abc|sort
33178 ) ) >"$at_stdout" 2>"$at_stder1"
33179   at_func_filter_trace $?
33180 else
33181   ( :;
33182 mkdir posix
33183 (cd posix
33184 TEST_TAR_FORMAT=posix
33185 export TEST_TAR_FORMAT
33186 TAR_OPTIONS="-H posix"
33187 export TAR_OPTIONS
33188 rm -rf *
33189
33190
33191 test -z "`sort < /dev/null 2>&1`" || exit 77
33192
33193
33194 test -z "$TEST_DATA_DIR" && exit 77
33195 tarball_prereq abc.tar 540f196ceddcad9e7bd2f2d7533d0474 $TEST_DATA_DIR $TEST_DATA_URL || exit 77
33196
33197 echo Short Listing
33198 tar tf $TEST_DATA_DIR/abc.tar
33199 echo Verbose Listing
33200 tar --utc -tvf $TEST_DATA_DIR/abc.tar
33201 echo Extracted directory
33202 tar xf $TEST_DATA_DIR/abc.tar
33203 find abc|sort
33204 ) ) >"$at_stdout" 2>"$at_stderr"
33205 fi
33206 at_status=$?
33207 at_failed=false
33208 at_func_diff_devnull "$at_stderr" || at_failed=:
33209 echo >>"$at_stdout"; $as_echo "Short Listing
33210 abc/not-a-file.gif
33211 abc/CCC
33212 Verbose Listing
33213 V--------- 0/0            1536 2006-05-08 22:07 abc/not-a-file.gif--Volume Header--
33214 -rw-r--r-- tom/users         0 2006-04-22 19:52 abc/CCC
33215 Extracted directory
33216 abc
33217 abc/CCC
33218 " | \
33219   $at_diff - "$at_stdout" || at_failed=:
33220 at_func_check_status 0 $at_status "$at_srcdir/volsize.at:32"
33221
33222 $at_failed && at_func_log_failure
33223 $at_traceon; }
33224
33225               { $at_traceoff
33226 $as_echo "$at_srcdir/volsize.at:32:
33227 mkdir gnu
33228 (cd gnu
33229 TEST_TAR_FORMAT=gnu
33230 export TEST_TAR_FORMAT
33231 TAR_OPTIONS=\"-H gnu\"
33232 export TAR_OPTIONS
33233 rm -rf *
33234
33235
33236 test -z "`sort < /dev/null 2>&1`" || exit 77
33237
33238
33239 test -z "$TEST_DATA_DIR" && exit 77
33240 tarball_prereq abc.tar 540f196ceddcad9e7bd2f2d7533d0474 $TEST_DATA_DIR $TEST_DATA_URL || exit 77
33241
33242 echo Short Listing
33243 tar tf \$TEST_DATA_DIR/abc.tar
33244 echo Verbose Listing
33245 tar --utc -tvf \$TEST_DATA_DIR/abc.tar
33246 echo Extracted directory
33247 tar xf \$TEST_DATA_DIR/abc.tar
33248 find abc|sort
33249 )"
33250 echo volsize.at:32 >"$at_check_line_file"
33251
33252 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
33253    false; }; then
33254   ( $at_traceon;
33255 mkdir gnu
33256 (cd gnu
33257 TEST_TAR_FORMAT=gnu
33258 export TEST_TAR_FORMAT
33259 TAR_OPTIONS="-H gnu"
33260 export TAR_OPTIONS
33261 rm -rf *
33262
33263
33264 test -z "`sort < /dev/null 2>&1`" || exit 77
33265
33266
33267 test -z "$TEST_DATA_DIR" && exit 77
33268 tarball_prereq abc.tar 540f196ceddcad9e7bd2f2d7533d0474 $TEST_DATA_DIR $TEST_DATA_URL || exit 77
33269
33270 echo Short Listing
33271 tar tf $TEST_DATA_DIR/abc.tar
33272 echo Verbose Listing
33273 tar --utc -tvf $TEST_DATA_DIR/abc.tar
33274 echo Extracted directory
33275 tar xf $TEST_DATA_DIR/abc.tar
33276 find abc|sort
33277 ) ) >"$at_stdout" 2>"$at_stder1"
33278   at_func_filter_trace $?
33279 else
33280   ( :;
33281 mkdir gnu
33282 (cd gnu
33283 TEST_TAR_FORMAT=gnu
33284 export TEST_TAR_FORMAT
33285 TAR_OPTIONS="-H gnu"
33286 export TAR_OPTIONS
33287 rm -rf *
33288
33289
33290 test -z "`sort < /dev/null 2>&1`" || exit 77
33291
33292
33293 test -z "$TEST_DATA_DIR" && exit 77
33294 tarball_prereq abc.tar 540f196ceddcad9e7bd2f2d7533d0474 $TEST_DATA_DIR $TEST_DATA_URL || exit 77
33295
33296 echo Short Listing
33297 tar tf $TEST_DATA_DIR/abc.tar
33298 echo Verbose Listing
33299 tar --utc -tvf $TEST_DATA_DIR/abc.tar
33300 echo Extracted directory
33301 tar xf $TEST_DATA_DIR/abc.tar
33302 find abc|sort
33303 ) ) >"$at_stdout" 2>"$at_stderr"
33304 fi
33305 at_status=$?
33306 at_failed=false
33307 at_func_diff_devnull "$at_stderr" || at_failed=:
33308 echo >>"$at_stdout"; $as_echo "Short Listing
33309 abc/not-a-file.gif
33310 abc/CCC
33311 Verbose Listing
33312 V--------- 0/0            1536 2006-05-08 22:07 abc/not-a-file.gif--Volume Header--
33313 -rw-r--r-- tom/users         0 2006-04-22 19:52 abc/CCC
33314 Extracted directory
33315 abc
33316 abc/CCC
33317 " | \
33318   $at_diff - "$at_stdout" || at_failed=:
33319 at_func_check_status 0 $at_status "$at_srcdir/volsize.at:32"
33320
33321 $at_failed && at_func_log_failure
33322 $at_traceon; }
33323
33324
33325
33326
33327   $at_traceoff
33328   $at_times_p && times >"$at_times_file"
33329 ) 5>&1 2>&1 | eval $at_tee_pipe
33330 at_status=`cat "$at_status_file"`
33331 #AT_STOP_85
33332 #AT_START_86
33333 # 86. comprec.at:21: compressed format recognition
33334 at_setup_line='comprec.at:21'
33335 at_desc="compressed format recognition"
33336 $at_quiet $as_echo_n " 86: $at_desc                  "
33337 at_xfail=no
33338       test -f $XFAILFILE && at_xfail=yes
33339 echo "#                             -*- compilation -*-" >> "$at_group_log"
33340 (
33341   $as_echo "86. comprec.at:21: testing ..."
33342   $at_traceon
33343
33344
33345
33346
33347
33348
33349   { $at_traceoff
33350 $as_echo "$at_srcdir/comprec.at:25:
33351 mkdir v7
33352 (cd v7
33353 TEST_TAR_FORMAT=v7
33354 export TEST_TAR_FORMAT
33355 TAR_OPTIONS=\"-H v7\"
33356 export TAR_OPTIONS
33357 rm -rf *
33358
33359
33360 cat /dev/null | gzip - > /dev/null 2>&1 || exit 77
33361
33362 genfile --length 10240 --file file1
33363 echo \"separator\"
33364 tar cfz archive file1
33365 echo \"separator\"
33366 mv file1 orig
33367 tar xfv archive
33368 cmp orig file1
33369 )"
33370 echo comprec.at:25 >"$at_check_line_file"
33371
33372 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
33373    false; }; then
33374   ( $at_traceon;
33375 mkdir v7
33376 (cd v7
33377 TEST_TAR_FORMAT=v7
33378 export TEST_TAR_FORMAT
33379 TAR_OPTIONS="-H v7"
33380 export TAR_OPTIONS
33381 rm -rf *
33382
33383
33384 cat /dev/null | gzip - > /dev/null 2>&1 || exit 77
33385
33386 genfile --length 10240 --file file1
33387 echo "separator"
33388 tar cfz archive file1
33389 echo "separator"
33390 mv file1 orig
33391 tar xfv archive
33392 cmp orig file1
33393 ) ) >"$at_stdout" 2>"$at_stder1"
33394   at_func_filter_trace $?
33395 else
33396   ( :;
33397 mkdir v7
33398 (cd v7
33399 TEST_TAR_FORMAT=v7
33400 export TEST_TAR_FORMAT
33401 TAR_OPTIONS="-H v7"
33402 export TAR_OPTIONS
33403 rm -rf *
33404
33405
33406 cat /dev/null | gzip - > /dev/null 2>&1 || exit 77
33407
33408 genfile --length 10240 --file file1
33409 echo "separator"
33410 tar cfz archive file1
33411 echo "separator"
33412 mv file1 orig
33413 tar xfv archive
33414 cmp orig file1
33415 ) ) >"$at_stdout" 2>"$at_stderr"
33416 fi
33417 at_status=$?
33418 at_failed=false
33419 at_func_diff_devnull "$at_stderr" || at_failed=:
33420 echo >>"$at_stdout"; $as_echo "separator
33421 separator
33422 file1
33423 " | \
33424   $at_diff - "$at_stdout" || at_failed=:
33425 at_func_check_status 0 $at_status "$at_srcdir/comprec.at:25"
33426
33427 $at_failed && at_func_log_failure
33428 $at_traceon; }
33429
33430               { $at_traceoff
33431 $as_echo "$at_srcdir/comprec.at:25:
33432 mkdir oldgnu
33433 (cd oldgnu
33434 TEST_TAR_FORMAT=oldgnu
33435 export TEST_TAR_FORMAT
33436 TAR_OPTIONS=\"-H oldgnu\"
33437 export TAR_OPTIONS
33438 rm -rf *
33439
33440
33441 cat /dev/null | gzip - > /dev/null 2>&1 || exit 77
33442
33443 genfile --length 10240 --file file1
33444 echo \"separator\"
33445 tar cfz archive file1
33446 echo \"separator\"
33447 mv file1 orig
33448 tar xfv archive
33449 cmp orig file1
33450 )"
33451 echo comprec.at:25 >"$at_check_line_file"
33452
33453 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
33454    false; }; then
33455   ( $at_traceon;
33456 mkdir oldgnu
33457 (cd oldgnu
33458 TEST_TAR_FORMAT=oldgnu
33459 export TEST_TAR_FORMAT
33460 TAR_OPTIONS="-H oldgnu"
33461 export TAR_OPTIONS
33462 rm -rf *
33463
33464
33465 cat /dev/null | gzip - > /dev/null 2>&1 || exit 77
33466
33467 genfile --length 10240 --file file1
33468 echo "separator"
33469 tar cfz archive file1
33470 echo "separator"
33471 mv file1 orig
33472 tar xfv archive
33473 cmp orig file1
33474 ) ) >"$at_stdout" 2>"$at_stder1"
33475   at_func_filter_trace $?
33476 else
33477   ( :;
33478 mkdir oldgnu
33479 (cd oldgnu
33480 TEST_TAR_FORMAT=oldgnu
33481 export TEST_TAR_FORMAT
33482 TAR_OPTIONS="-H oldgnu"
33483 export TAR_OPTIONS
33484 rm -rf *
33485
33486
33487 cat /dev/null | gzip - > /dev/null 2>&1 || exit 77
33488
33489 genfile --length 10240 --file file1
33490 echo "separator"
33491 tar cfz archive file1
33492 echo "separator"
33493 mv file1 orig
33494 tar xfv archive
33495 cmp orig file1
33496 ) ) >"$at_stdout" 2>"$at_stderr"
33497 fi
33498 at_status=$?
33499 at_failed=false
33500 at_func_diff_devnull "$at_stderr" || at_failed=:
33501 echo >>"$at_stdout"; $as_echo "separator
33502 separator
33503 file1
33504 " | \
33505   $at_diff - "$at_stdout" || at_failed=:
33506 at_func_check_status 0 $at_status "$at_srcdir/comprec.at:25"
33507
33508 $at_failed && at_func_log_failure
33509 $at_traceon; }
33510
33511               { $at_traceoff
33512 $as_echo "$at_srcdir/comprec.at:25:
33513 mkdir ustar
33514 (cd ustar
33515 TEST_TAR_FORMAT=ustar
33516 export TEST_TAR_FORMAT
33517 TAR_OPTIONS=\"-H ustar\"
33518 export TAR_OPTIONS
33519 rm -rf *
33520
33521
33522 cat /dev/null | gzip - > /dev/null 2>&1 || exit 77
33523
33524 genfile --length 10240 --file file1
33525 echo \"separator\"
33526 tar cfz archive file1
33527 echo \"separator\"
33528 mv file1 orig
33529 tar xfv archive
33530 cmp orig file1
33531 )"
33532 echo comprec.at:25 >"$at_check_line_file"
33533
33534 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
33535    false; }; then
33536   ( $at_traceon;
33537 mkdir ustar
33538 (cd ustar
33539 TEST_TAR_FORMAT=ustar
33540 export TEST_TAR_FORMAT
33541 TAR_OPTIONS="-H ustar"
33542 export TAR_OPTIONS
33543 rm -rf *
33544
33545
33546 cat /dev/null | gzip - > /dev/null 2>&1 || exit 77
33547
33548 genfile --length 10240 --file file1
33549 echo "separator"
33550 tar cfz archive file1
33551 echo "separator"
33552 mv file1 orig
33553 tar xfv archive
33554 cmp orig file1
33555 ) ) >"$at_stdout" 2>"$at_stder1"
33556   at_func_filter_trace $?
33557 else
33558   ( :;
33559 mkdir ustar
33560 (cd ustar
33561 TEST_TAR_FORMAT=ustar
33562 export TEST_TAR_FORMAT
33563 TAR_OPTIONS="-H ustar"
33564 export TAR_OPTIONS
33565 rm -rf *
33566
33567
33568 cat /dev/null | gzip - > /dev/null 2>&1 || exit 77
33569
33570 genfile --length 10240 --file file1
33571 echo "separator"
33572 tar cfz archive file1
33573 echo "separator"
33574 mv file1 orig
33575 tar xfv archive
33576 cmp orig file1
33577 ) ) >"$at_stdout" 2>"$at_stderr"
33578 fi
33579 at_status=$?
33580 at_failed=false
33581 at_func_diff_devnull "$at_stderr" || at_failed=:
33582 echo >>"$at_stdout"; $as_echo "separator
33583 separator
33584 file1
33585 " | \
33586   $at_diff - "$at_stdout" || at_failed=:
33587 at_func_check_status 0 $at_status "$at_srcdir/comprec.at:25"
33588
33589 $at_failed && at_func_log_failure
33590 $at_traceon; }
33591
33592               { $at_traceoff
33593 $as_echo "$at_srcdir/comprec.at:25:
33594 mkdir posix
33595 (cd posix
33596 TEST_TAR_FORMAT=posix
33597 export TEST_TAR_FORMAT
33598 TAR_OPTIONS=\"-H posix\"
33599 export TAR_OPTIONS
33600 rm -rf *
33601
33602
33603 cat /dev/null | gzip - > /dev/null 2>&1 || exit 77
33604
33605 genfile --length 10240 --file file1
33606 echo \"separator\"
33607 tar cfz archive file1
33608 echo \"separator\"
33609 mv file1 orig
33610 tar xfv archive
33611 cmp orig file1
33612 )"
33613 echo comprec.at:25 >"$at_check_line_file"
33614
33615 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
33616    false; }; then
33617   ( $at_traceon;
33618 mkdir posix
33619 (cd posix
33620 TEST_TAR_FORMAT=posix
33621 export TEST_TAR_FORMAT
33622 TAR_OPTIONS="-H posix"
33623 export TAR_OPTIONS
33624 rm -rf *
33625
33626
33627 cat /dev/null | gzip - > /dev/null 2>&1 || exit 77
33628
33629 genfile --length 10240 --file file1
33630 echo "separator"
33631 tar cfz archive file1
33632 echo "separator"
33633 mv file1 orig
33634 tar xfv archive
33635 cmp orig file1
33636 ) ) >"$at_stdout" 2>"$at_stder1"
33637   at_func_filter_trace $?
33638 else
33639   ( :;
33640 mkdir posix
33641 (cd posix
33642 TEST_TAR_FORMAT=posix
33643 export TEST_TAR_FORMAT
33644 TAR_OPTIONS="-H posix"
33645 export TAR_OPTIONS
33646 rm -rf *
33647
33648
33649 cat /dev/null | gzip - > /dev/null 2>&1 || exit 77
33650
33651 genfile --length 10240 --file file1
33652 echo "separator"
33653 tar cfz archive file1
33654 echo "separator"
33655 mv file1 orig
33656 tar xfv archive
33657 cmp orig file1
33658 ) ) >"$at_stdout" 2>"$at_stderr"
33659 fi
33660 at_status=$?
33661 at_failed=false
33662 at_func_diff_devnull "$at_stderr" || at_failed=:
33663 echo >>"$at_stdout"; $as_echo "separator
33664 separator
33665 file1
33666 " | \
33667   $at_diff - "$at_stdout" || at_failed=:
33668 at_func_check_status 0 $at_status "$at_srcdir/comprec.at:25"
33669
33670 $at_failed && at_func_log_failure
33671 $at_traceon; }
33672
33673               { $at_traceoff
33674 $as_echo "$at_srcdir/comprec.at:25:
33675 mkdir gnu
33676 (cd gnu
33677 TEST_TAR_FORMAT=gnu
33678 export TEST_TAR_FORMAT
33679 TAR_OPTIONS=\"-H gnu\"
33680 export TAR_OPTIONS
33681 rm -rf *
33682
33683
33684 cat /dev/null | gzip - > /dev/null 2>&1 || exit 77
33685
33686 genfile --length 10240 --file file1
33687 echo \"separator\"
33688 tar cfz archive file1
33689 echo \"separator\"
33690 mv file1 orig
33691 tar xfv archive
33692 cmp orig file1
33693 )"
33694 echo comprec.at:25 >"$at_check_line_file"
33695
33696 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
33697    false; }; then
33698   ( $at_traceon;
33699 mkdir gnu
33700 (cd gnu
33701 TEST_TAR_FORMAT=gnu
33702 export TEST_TAR_FORMAT
33703 TAR_OPTIONS="-H gnu"
33704 export TAR_OPTIONS
33705 rm -rf *
33706
33707
33708 cat /dev/null | gzip - > /dev/null 2>&1 || exit 77
33709
33710 genfile --length 10240 --file file1
33711 echo "separator"
33712 tar cfz archive file1
33713 echo "separator"
33714 mv file1 orig
33715 tar xfv archive
33716 cmp orig file1
33717 ) ) >"$at_stdout" 2>"$at_stder1"
33718   at_func_filter_trace $?
33719 else
33720   ( :;
33721 mkdir gnu
33722 (cd gnu
33723 TEST_TAR_FORMAT=gnu
33724 export TEST_TAR_FORMAT
33725 TAR_OPTIONS="-H gnu"
33726 export TAR_OPTIONS
33727 rm -rf *
33728
33729
33730 cat /dev/null | gzip - > /dev/null 2>&1 || exit 77
33731
33732 genfile --length 10240 --file file1
33733 echo "separator"
33734 tar cfz archive file1
33735 echo "separator"
33736 mv file1 orig
33737 tar xfv archive
33738 cmp orig file1
33739 ) ) >"$at_stdout" 2>"$at_stderr"
33740 fi
33741 at_status=$?
33742 at_failed=false
33743 at_func_diff_devnull "$at_stderr" || at_failed=:
33744 echo >>"$at_stdout"; $as_echo "separator
33745 separator
33746 file1
33747 " | \
33748   $at_diff - "$at_stdout" || at_failed=:
33749 at_func_check_status 0 $at_status "$at_srcdir/comprec.at:25"
33750
33751 $at_failed && at_func_log_failure
33752 $at_traceon; }
33753
33754
33755
33756
33757   $at_traceoff
33758   $at_times_p && times >"$at_times_file"
33759 ) 5>&1 2>&1 | eval $at_tee_pipe
33760 at_status=`cat "$at_status_file"`
33761 #AT_STOP_86
33762 #AT_START_87
33763 # 87. shortfile.at:26: short input files
33764 at_setup_line='shortfile.at:26'
33765 at_desc="short input files"
33766 $at_quiet $as_echo_n " 87: $at_desc                              "
33767 at_xfail=no
33768       test -f $XFAILFILE && at_xfail=yes
33769 echo "#                             -*- compilation -*-" >> "$at_group_log"
33770 (
33771   $as_echo "87. shortfile.at:26: testing ..."
33772   $at_traceon
33773
33774
33775
33776
33777
33778   { $at_traceoff
33779 $as_echo "$at_srcdir/shortfile.at:29:
33780 mkdir gnu
33781 (cd gnu
33782 TEST_TAR_FORMAT=gnu
33783 export TEST_TAR_FORMAT
33784 TAR_OPTIONS=\"-H gnu\"
33785 export TAR_OPTIONS
33786 rm -rf *
33787
33788 genfile --length 511 --file foo || exit 5
33789 tar tf foo
33790 )"
33791 echo shortfile.at:29 >"$at_check_line_file"
33792
33793 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
33794    false; }; then
33795   ( $at_traceon;
33796 mkdir gnu
33797 (cd gnu
33798 TEST_TAR_FORMAT=gnu
33799 export TEST_TAR_FORMAT
33800 TAR_OPTIONS="-H gnu"
33801 export TAR_OPTIONS
33802 rm -rf *
33803
33804 genfile --length 511 --file foo || exit 5
33805 tar tf foo
33806 ) ) >"$at_stdout" 2>"$at_stder1"
33807   at_func_filter_trace $?
33808 else
33809   ( :;
33810 mkdir gnu
33811 (cd gnu
33812 TEST_TAR_FORMAT=gnu
33813 export TEST_TAR_FORMAT
33814 TAR_OPTIONS="-H gnu"
33815 export TAR_OPTIONS
33816 rm -rf *
33817
33818 genfile --length 511 --file foo || exit 5
33819 tar tf foo
33820 ) ) >"$at_stdout" 2>"$at_stderr"
33821 fi
33822 at_status=$?
33823 at_failed=false
33824 echo >>"$at_stderr"; $as_echo "tar: This does not look like a tar archive
33825 tar: Exiting with failure status due to previous errors
33826 " | \
33827   $at_diff - "$at_stderr" || at_failed=:
33828 at_func_diff_devnull "$at_stdout" || at_failed=:
33829 at_func_check_status 2 $at_status "$at_srcdir/shortfile.at:29"
33830
33831 $at_failed && at_func_log_failure
33832 $at_traceon; }
33833
33834
33835
33836
33837   $at_traceoff
33838   $at_times_p && times >"$at_times_file"
33839 ) 5>&1 2>&1 | eval $at_tee_pipe
33840 at_status=`cat "$at_status_file"`
33841 #AT_STOP_87
33842 #AT_START_88
33843 # 88. shortupd.at:29: updating short archives
33844 at_setup_line='shortupd.at:29'
33845 at_desc="updating short archives"
33846 $at_quiet $as_echo_n " 88: $at_desc                        "
33847 at_xfail=no
33848       test -f $XFAILFILE && at_xfail=yes
33849 echo "#                             -*- compilation -*-" >> "$at_group_log"
33850 (
33851   $as_echo "88. shortupd.at:29: testing ..."
33852   $at_traceon
33853
33854
33855
33856
33857
33858   { $at_traceoff
33859 $as_echo "$at_srcdir/shortupd.at:32:
33860 mkdir v7
33861 (cd v7
33862 TEST_TAR_FORMAT=v7
33863 export TEST_TAR_FORMAT
33864 TAR_OPTIONS=\"-H v7\"
33865 export TAR_OPTIONS
33866 rm -rf *
33867
33868 touch foo
33869 tar uf archive foo
33870 )"
33871 echo shortupd.at:32 >"$at_check_line_file"
33872
33873 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
33874    false; }; then
33875   ( $at_traceon;
33876 mkdir v7
33877 (cd v7
33878 TEST_TAR_FORMAT=v7
33879 export TEST_TAR_FORMAT
33880 TAR_OPTIONS="-H v7"
33881 export TAR_OPTIONS
33882 rm -rf *
33883
33884 touch foo
33885 tar uf archive foo
33886 ) ) >"$at_stdout" 2>"$at_stder1"
33887   at_func_filter_trace $?
33888 else
33889   ( :;
33890 mkdir v7
33891 (cd v7
33892 TEST_TAR_FORMAT=v7
33893 export TEST_TAR_FORMAT
33894 TAR_OPTIONS="-H v7"
33895 export TAR_OPTIONS
33896 rm -rf *
33897
33898 touch foo
33899 tar uf archive foo
33900 ) ) >"$at_stdout" 2>"$at_stderr"
33901 fi
33902 at_status=$?
33903 at_failed=false
33904 at_func_diff_devnull "$at_stderr" || at_failed=:
33905 at_func_diff_devnull "$at_stdout" || at_failed=:
33906 at_func_check_status 0 $at_status "$at_srcdir/shortupd.at:32"
33907
33908 $at_failed && at_func_log_failure
33909 $at_traceon; }
33910
33911               { $at_traceoff
33912 $as_echo "$at_srcdir/shortupd.at:32:
33913 mkdir oldgnu
33914 (cd oldgnu
33915 TEST_TAR_FORMAT=oldgnu
33916 export TEST_TAR_FORMAT
33917 TAR_OPTIONS=\"-H oldgnu\"
33918 export TAR_OPTIONS
33919 rm -rf *
33920
33921 touch foo
33922 tar uf archive foo
33923 )"
33924 echo shortupd.at:32 >"$at_check_line_file"
33925
33926 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
33927    false; }; then
33928   ( $at_traceon;
33929 mkdir oldgnu
33930 (cd oldgnu
33931 TEST_TAR_FORMAT=oldgnu
33932 export TEST_TAR_FORMAT
33933 TAR_OPTIONS="-H oldgnu"
33934 export TAR_OPTIONS
33935 rm -rf *
33936
33937 touch foo
33938 tar uf archive foo
33939 ) ) >"$at_stdout" 2>"$at_stder1"
33940   at_func_filter_trace $?
33941 else
33942   ( :;
33943 mkdir oldgnu
33944 (cd oldgnu
33945 TEST_TAR_FORMAT=oldgnu
33946 export TEST_TAR_FORMAT
33947 TAR_OPTIONS="-H oldgnu"
33948 export TAR_OPTIONS
33949 rm -rf *
33950
33951 touch foo
33952 tar uf archive foo
33953 ) ) >"$at_stdout" 2>"$at_stderr"
33954 fi
33955 at_status=$?
33956 at_failed=false
33957 at_func_diff_devnull "$at_stderr" || at_failed=:
33958 at_func_diff_devnull "$at_stdout" || at_failed=:
33959 at_func_check_status 0 $at_status "$at_srcdir/shortupd.at:32"
33960
33961 $at_failed && at_func_log_failure
33962 $at_traceon; }
33963
33964               { $at_traceoff
33965 $as_echo "$at_srcdir/shortupd.at:32:
33966 mkdir ustar
33967 (cd ustar
33968 TEST_TAR_FORMAT=ustar
33969 export TEST_TAR_FORMAT
33970 TAR_OPTIONS=\"-H ustar\"
33971 export TAR_OPTIONS
33972 rm -rf *
33973
33974 touch foo
33975 tar uf archive foo
33976 )"
33977 echo shortupd.at:32 >"$at_check_line_file"
33978
33979 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
33980    false; }; then
33981   ( $at_traceon;
33982 mkdir ustar
33983 (cd ustar
33984 TEST_TAR_FORMAT=ustar
33985 export TEST_TAR_FORMAT
33986 TAR_OPTIONS="-H ustar"
33987 export TAR_OPTIONS
33988 rm -rf *
33989
33990 touch foo
33991 tar uf archive foo
33992 ) ) >"$at_stdout" 2>"$at_stder1"
33993   at_func_filter_trace $?
33994 else
33995   ( :;
33996 mkdir ustar
33997 (cd ustar
33998 TEST_TAR_FORMAT=ustar
33999 export TEST_TAR_FORMAT
34000 TAR_OPTIONS="-H ustar"
34001 export TAR_OPTIONS
34002 rm -rf *
34003
34004 touch foo
34005 tar uf archive foo
34006 ) ) >"$at_stdout" 2>"$at_stderr"
34007 fi
34008 at_status=$?
34009 at_failed=false
34010 at_func_diff_devnull "$at_stderr" || at_failed=:
34011 at_func_diff_devnull "$at_stdout" || at_failed=:
34012 at_func_check_status 0 $at_status "$at_srcdir/shortupd.at:32"
34013
34014 $at_failed && at_func_log_failure
34015 $at_traceon; }
34016
34017               { $at_traceoff
34018 $as_echo "$at_srcdir/shortupd.at:32:
34019 mkdir posix
34020 (cd posix
34021 TEST_TAR_FORMAT=posix
34022 export TEST_TAR_FORMAT
34023 TAR_OPTIONS=\"-H posix\"
34024 export TAR_OPTIONS
34025 rm -rf *
34026
34027 touch foo
34028 tar uf archive foo
34029 )"
34030 echo shortupd.at:32 >"$at_check_line_file"
34031
34032 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
34033    false; }; then
34034   ( $at_traceon;
34035 mkdir posix
34036 (cd posix
34037 TEST_TAR_FORMAT=posix
34038 export TEST_TAR_FORMAT
34039 TAR_OPTIONS="-H posix"
34040 export TAR_OPTIONS
34041 rm -rf *
34042
34043 touch foo
34044 tar uf archive foo
34045 ) ) >"$at_stdout" 2>"$at_stder1"
34046   at_func_filter_trace $?
34047 else
34048   ( :;
34049 mkdir posix
34050 (cd posix
34051 TEST_TAR_FORMAT=posix
34052 export TEST_TAR_FORMAT
34053 TAR_OPTIONS="-H posix"
34054 export TAR_OPTIONS
34055 rm -rf *
34056
34057 touch foo
34058 tar uf archive foo
34059 ) ) >"$at_stdout" 2>"$at_stderr"
34060 fi
34061 at_status=$?
34062 at_failed=false
34063 at_func_diff_devnull "$at_stderr" || at_failed=:
34064 at_func_diff_devnull "$at_stdout" || at_failed=:
34065 at_func_check_status 0 $at_status "$at_srcdir/shortupd.at:32"
34066
34067 $at_failed && at_func_log_failure
34068 $at_traceon; }
34069
34070               { $at_traceoff
34071 $as_echo "$at_srcdir/shortupd.at:32:
34072 mkdir gnu
34073 (cd gnu
34074 TEST_TAR_FORMAT=gnu
34075 export TEST_TAR_FORMAT
34076 TAR_OPTIONS=\"-H gnu\"
34077 export TAR_OPTIONS
34078 rm -rf *
34079
34080 touch foo
34081 tar uf archive foo
34082 )"
34083 echo shortupd.at:32 >"$at_check_line_file"
34084
34085 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
34086    false; }; then
34087   ( $at_traceon;
34088 mkdir gnu
34089 (cd gnu
34090 TEST_TAR_FORMAT=gnu
34091 export TEST_TAR_FORMAT
34092 TAR_OPTIONS="-H gnu"
34093 export TAR_OPTIONS
34094 rm -rf *
34095
34096 touch foo
34097 tar uf archive foo
34098 ) ) >"$at_stdout" 2>"$at_stder1"
34099   at_func_filter_trace $?
34100 else
34101   ( :;
34102 mkdir gnu
34103 (cd gnu
34104 TEST_TAR_FORMAT=gnu
34105 export TEST_TAR_FORMAT
34106 TAR_OPTIONS="-H gnu"
34107 export TAR_OPTIONS
34108 rm -rf *
34109
34110 touch foo
34111 tar uf archive foo
34112 ) ) >"$at_stdout" 2>"$at_stderr"
34113 fi
34114 at_status=$?
34115 at_failed=false
34116 at_func_diff_devnull "$at_stderr" || at_failed=:
34117 at_func_diff_devnull "$at_stdout" || at_failed=:
34118 at_func_check_status 0 $at_status "$at_srcdir/shortupd.at:32"
34119
34120 $at_failed && at_func_log_failure
34121 $at_traceon; }
34122
34123
34124
34125
34126   $at_traceoff
34127   $at_times_p && times >"$at_times_file"
34128 ) 5>&1 2>&1 | eval $at_tee_pipe
34129 at_status=`cat "$at_status_file"`
34130 #AT_STOP_88
34131 #AT_START_89
34132 # 89. truncate.at:29: truncate
34133 at_setup_line='truncate.at:29'
34134 at_desc="truncate"
34135 $at_quiet $as_echo_n " 89: $at_desc                                       "
34136 at_xfail=no
34137       test -f $XFAILFILE && at_xfail=yes
34138 echo "#                             -*- compilation -*-" >> "$at_group_log"
34139 (
34140   $as_echo "89. truncate.at:29: testing ..."
34141   $at_traceon
34142
34143
34144
34145
34146
34147   { $at_traceoff
34148 $as_echo "$at_srcdir/truncate.at:32:
34149 mkdir v7
34150 (cd v7
34151 TEST_TAR_FORMAT=v7
34152 export TEST_TAR_FORMAT
34153 TAR_OPTIONS=\"-H v7\"
34154 export TAR_OPTIONS
34155 rm -rf *
34156
34157 genfile --file foo --length 50000k
34158 genfile --file baz
34159 genfile --run --checkpoint 10 --length 49995k --truncate foo -- tar --checkpoint -vcf bar foo baz
34160 echo Exit status: \$?
34161 echo separator
34162 sleep 1
34163 genfile --file foo --seek 49995k --length 5k --pattern=zeros
34164 tar dvf bar)"
34165 echo truncate.at:32 >"$at_check_line_file"
34166
34167 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
34168    false; }; then
34169   ( $at_traceon;
34170 mkdir v7
34171 (cd v7
34172 TEST_TAR_FORMAT=v7
34173 export TEST_TAR_FORMAT
34174 TAR_OPTIONS="-H v7"
34175 export TAR_OPTIONS
34176 rm -rf *
34177
34178 genfile --file foo --length 50000k
34179 genfile --file baz
34180 genfile --run --checkpoint 10 --length 49995k --truncate foo -- tar --checkpoint -vcf bar foo baz
34181 echo Exit status: $?
34182 echo separator
34183 sleep 1
34184 genfile --file foo --seek 49995k --length 5k --pattern=zeros
34185 tar dvf bar) ) >"$at_stdout" 2>"$at_stder1"
34186   at_func_filter_trace $?
34187 else
34188   ( :;
34189 mkdir v7
34190 (cd v7
34191 TEST_TAR_FORMAT=v7
34192 export TEST_TAR_FORMAT
34193 TAR_OPTIONS="-H v7"
34194 export TAR_OPTIONS
34195 rm -rf *
34196
34197 genfile --file foo --length 50000k
34198 genfile --file baz
34199 genfile --run --checkpoint 10 --length 49995k --truncate foo -- tar --checkpoint -vcf bar foo baz
34200 echo Exit status: $?
34201 echo separator
34202 sleep 1
34203 genfile --file foo --seek 49995k --length 5k --pattern=zeros
34204 tar dvf bar) ) >"$at_stdout" 2>"$at_stderr"
34205 fi
34206 at_status=$?
34207 at_failed=false
34208 echo >>"$at_stderr"; $as_echo "tar: foo: File shrank by 5120 bytes; padding with zeros
34209 " | \
34210   $at_diff - "$at_stderr" || at_failed=:
34211 echo >>"$at_stdout"; $as_echo "foo
34212 baz
34213 Exit status: 1
34214 separator
34215 foo
34216 foo: Mod time differs
34217 baz
34218 " | \
34219   $at_diff - "$at_stdout" || at_failed=:
34220 at_func_check_status 1 $at_status "$at_srcdir/truncate.at:32"
34221
34222 $at_failed && at_func_log_failure
34223 $at_traceon; }
34224
34225               { $at_traceoff
34226 $as_echo "$at_srcdir/truncate.at:32:
34227 mkdir oldgnu
34228 (cd oldgnu
34229 TEST_TAR_FORMAT=oldgnu
34230 export TEST_TAR_FORMAT
34231 TAR_OPTIONS=\"-H oldgnu\"
34232 export TAR_OPTIONS
34233 rm -rf *
34234
34235 genfile --file foo --length 50000k
34236 genfile --file baz
34237 genfile --run --checkpoint 10 --length 49995k --truncate foo -- tar --checkpoint -vcf bar foo baz
34238 echo Exit status: \$?
34239 echo separator
34240 sleep 1
34241 genfile --file foo --seek 49995k --length 5k --pattern=zeros
34242 tar dvf bar)"
34243 echo truncate.at:32 >"$at_check_line_file"
34244
34245 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
34246    false; }; then
34247   ( $at_traceon;
34248 mkdir oldgnu
34249 (cd oldgnu
34250 TEST_TAR_FORMAT=oldgnu
34251 export TEST_TAR_FORMAT
34252 TAR_OPTIONS="-H oldgnu"
34253 export TAR_OPTIONS
34254 rm -rf *
34255
34256 genfile --file foo --length 50000k
34257 genfile --file baz
34258 genfile --run --checkpoint 10 --length 49995k --truncate foo -- tar --checkpoint -vcf bar foo baz
34259 echo Exit status: $?
34260 echo separator
34261 sleep 1
34262 genfile --file foo --seek 49995k --length 5k --pattern=zeros
34263 tar dvf bar) ) >"$at_stdout" 2>"$at_stder1"
34264   at_func_filter_trace $?
34265 else
34266   ( :;
34267 mkdir oldgnu
34268 (cd oldgnu
34269 TEST_TAR_FORMAT=oldgnu
34270 export TEST_TAR_FORMAT
34271 TAR_OPTIONS="-H oldgnu"
34272 export TAR_OPTIONS
34273 rm -rf *
34274
34275 genfile --file foo --length 50000k
34276 genfile --file baz
34277 genfile --run --checkpoint 10 --length 49995k --truncate foo -- tar --checkpoint -vcf bar foo baz
34278 echo Exit status: $?
34279 echo separator
34280 sleep 1
34281 genfile --file foo --seek 49995k --length 5k --pattern=zeros
34282 tar dvf bar) ) >"$at_stdout" 2>"$at_stderr"
34283 fi
34284 at_status=$?
34285 at_failed=false
34286 echo >>"$at_stderr"; $as_echo "tar: foo: File shrank by 5120 bytes; padding with zeros
34287 " | \
34288   $at_diff - "$at_stderr" || at_failed=:
34289 echo >>"$at_stdout"; $as_echo "foo
34290 baz
34291 Exit status: 1
34292 separator
34293 foo
34294 foo: Mod time differs
34295 baz
34296 " | \
34297   $at_diff - "$at_stdout" || at_failed=:
34298 at_func_check_status 1 $at_status "$at_srcdir/truncate.at:32"
34299
34300 $at_failed && at_func_log_failure
34301 $at_traceon; }
34302
34303               { $at_traceoff
34304 $as_echo "$at_srcdir/truncate.at:32:
34305 mkdir ustar
34306 (cd ustar
34307 TEST_TAR_FORMAT=ustar
34308 export TEST_TAR_FORMAT
34309 TAR_OPTIONS=\"-H ustar\"
34310 export TAR_OPTIONS
34311 rm -rf *
34312
34313 genfile --file foo --length 50000k
34314 genfile --file baz
34315 genfile --run --checkpoint 10 --length 49995k --truncate foo -- tar --checkpoint -vcf bar foo baz
34316 echo Exit status: \$?
34317 echo separator
34318 sleep 1
34319 genfile --file foo --seek 49995k --length 5k --pattern=zeros
34320 tar dvf bar)"
34321 echo truncate.at:32 >"$at_check_line_file"
34322
34323 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
34324    false; }; then
34325   ( $at_traceon;
34326 mkdir ustar
34327 (cd ustar
34328 TEST_TAR_FORMAT=ustar
34329 export TEST_TAR_FORMAT
34330 TAR_OPTIONS="-H ustar"
34331 export TAR_OPTIONS
34332 rm -rf *
34333
34334 genfile --file foo --length 50000k
34335 genfile --file baz
34336 genfile --run --checkpoint 10 --length 49995k --truncate foo -- tar --checkpoint -vcf bar foo baz
34337 echo Exit status: $?
34338 echo separator
34339 sleep 1
34340 genfile --file foo --seek 49995k --length 5k --pattern=zeros
34341 tar dvf bar) ) >"$at_stdout" 2>"$at_stder1"
34342   at_func_filter_trace $?
34343 else
34344   ( :;
34345 mkdir ustar
34346 (cd ustar
34347 TEST_TAR_FORMAT=ustar
34348 export TEST_TAR_FORMAT
34349 TAR_OPTIONS="-H ustar"
34350 export TAR_OPTIONS
34351 rm -rf *
34352
34353 genfile --file foo --length 50000k
34354 genfile --file baz
34355 genfile --run --checkpoint 10 --length 49995k --truncate foo -- tar --checkpoint -vcf bar foo baz
34356 echo Exit status: $?
34357 echo separator
34358 sleep 1
34359 genfile --file foo --seek 49995k --length 5k --pattern=zeros
34360 tar dvf bar) ) >"$at_stdout" 2>"$at_stderr"
34361 fi
34362 at_status=$?
34363 at_failed=false
34364 echo >>"$at_stderr"; $as_echo "tar: foo: File shrank by 5120 bytes; padding with zeros
34365 " | \
34366   $at_diff - "$at_stderr" || at_failed=:
34367 echo >>"$at_stdout"; $as_echo "foo
34368 baz
34369 Exit status: 1
34370 separator
34371 foo
34372 foo: Mod time differs
34373 baz
34374 " | \
34375   $at_diff - "$at_stdout" || at_failed=:
34376 at_func_check_status 1 $at_status "$at_srcdir/truncate.at:32"
34377
34378 $at_failed && at_func_log_failure
34379 $at_traceon; }
34380
34381               { $at_traceoff
34382 $as_echo "$at_srcdir/truncate.at:32:
34383 mkdir posix
34384 (cd posix
34385 TEST_TAR_FORMAT=posix
34386 export TEST_TAR_FORMAT
34387 TAR_OPTIONS=\"-H posix\"
34388 export TAR_OPTIONS
34389 rm -rf *
34390
34391 genfile --file foo --length 50000k
34392 genfile --file baz
34393 genfile --run --checkpoint 10 --length 49995k --truncate foo -- tar --checkpoint -vcf bar foo baz
34394 echo Exit status: \$?
34395 echo separator
34396 sleep 1
34397 genfile --file foo --seek 49995k --length 5k --pattern=zeros
34398 tar dvf bar)"
34399 echo truncate.at:32 >"$at_check_line_file"
34400
34401 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
34402    false; }; then
34403   ( $at_traceon;
34404 mkdir posix
34405 (cd posix
34406 TEST_TAR_FORMAT=posix
34407 export TEST_TAR_FORMAT
34408 TAR_OPTIONS="-H posix"
34409 export TAR_OPTIONS
34410 rm -rf *
34411
34412 genfile --file foo --length 50000k
34413 genfile --file baz
34414 genfile --run --checkpoint 10 --length 49995k --truncate foo -- tar --checkpoint -vcf bar foo baz
34415 echo Exit status: $?
34416 echo separator
34417 sleep 1
34418 genfile --file foo --seek 49995k --length 5k --pattern=zeros
34419 tar dvf bar) ) >"$at_stdout" 2>"$at_stder1"
34420   at_func_filter_trace $?
34421 else
34422   ( :;
34423 mkdir posix
34424 (cd posix
34425 TEST_TAR_FORMAT=posix
34426 export TEST_TAR_FORMAT
34427 TAR_OPTIONS="-H posix"
34428 export TAR_OPTIONS
34429 rm -rf *
34430
34431 genfile --file foo --length 50000k
34432 genfile --file baz
34433 genfile --run --checkpoint 10 --length 49995k --truncate foo -- tar --checkpoint -vcf bar foo baz
34434 echo Exit status: $?
34435 echo separator
34436 sleep 1
34437 genfile --file foo --seek 49995k --length 5k --pattern=zeros
34438 tar dvf bar) ) >"$at_stdout" 2>"$at_stderr"
34439 fi
34440 at_status=$?
34441 at_failed=false
34442 echo >>"$at_stderr"; $as_echo "tar: foo: File shrank by 5120 bytes; padding with zeros
34443 " | \
34444   $at_diff - "$at_stderr" || at_failed=:
34445 echo >>"$at_stdout"; $as_echo "foo
34446 baz
34447 Exit status: 1
34448 separator
34449 foo
34450 foo: Mod time differs
34451 baz
34452 " | \
34453   $at_diff - "$at_stdout" || at_failed=:
34454 at_func_check_status 1 $at_status "$at_srcdir/truncate.at:32"
34455
34456 $at_failed && at_func_log_failure
34457 $at_traceon; }
34458
34459               { $at_traceoff
34460 $as_echo "$at_srcdir/truncate.at:32:
34461 mkdir gnu
34462 (cd gnu
34463 TEST_TAR_FORMAT=gnu
34464 export TEST_TAR_FORMAT
34465 TAR_OPTIONS=\"-H gnu\"
34466 export TAR_OPTIONS
34467 rm -rf *
34468
34469 genfile --file foo --length 50000k
34470 genfile --file baz
34471 genfile --run --checkpoint 10 --length 49995k --truncate foo -- tar --checkpoint -vcf bar foo baz
34472 echo Exit status: \$?
34473 echo separator
34474 sleep 1
34475 genfile --file foo --seek 49995k --length 5k --pattern=zeros
34476 tar dvf bar)"
34477 echo truncate.at:32 >"$at_check_line_file"
34478
34479 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
34480    false; }; then
34481   ( $at_traceon;
34482 mkdir gnu
34483 (cd gnu
34484 TEST_TAR_FORMAT=gnu
34485 export TEST_TAR_FORMAT
34486 TAR_OPTIONS="-H gnu"
34487 export TAR_OPTIONS
34488 rm -rf *
34489
34490 genfile --file foo --length 50000k
34491 genfile --file baz
34492 genfile --run --checkpoint 10 --length 49995k --truncate foo -- tar --checkpoint -vcf bar foo baz
34493 echo Exit status: $?
34494 echo separator
34495 sleep 1
34496 genfile --file foo --seek 49995k --length 5k --pattern=zeros
34497 tar dvf bar) ) >"$at_stdout" 2>"$at_stder1"
34498   at_func_filter_trace $?
34499 else
34500   ( :;
34501 mkdir gnu
34502 (cd gnu
34503 TEST_TAR_FORMAT=gnu
34504 export TEST_TAR_FORMAT
34505 TAR_OPTIONS="-H gnu"
34506 export TAR_OPTIONS
34507 rm -rf *
34508
34509 genfile --file foo --length 50000k
34510 genfile --file baz
34511 genfile --run --checkpoint 10 --length 49995k --truncate foo -- tar --checkpoint -vcf bar foo baz
34512 echo Exit status: $?
34513 echo separator
34514 sleep 1
34515 genfile --file foo --seek 49995k --length 5k --pattern=zeros
34516 tar dvf bar) ) >"$at_stdout" 2>"$at_stderr"
34517 fi
34518 at_status=$?
34519 at_failed=false
34520 echo >>"$at_stderr"; $as_echo "tar: foo: File shrank by 5120 bytes; padding with zeros
34521 " | \
34522   $at_diff - "$at_stderr" || at_failed=:
34523 echo >>"$at_stdout"; $as_echo "foo
34524 baz
34525 Exit status: 1
34526 separator
34527 foo
34528 foo: Mod time differs
34529 baz
34530 " | \
34531   $at_diff - "$at_stdout" || at_failed=:
34532 at_func_check_status 1 $at_status "$at_srcdir/truncate.at:32"
34533
34534 $at_failed && at_func_log_failure
34535 $at_traceon; }
34536
34537
34538
34539
34540   $at_traceoff
34541   $at_times_p && times >"$at_times_file"
34542 ) 5>&1 2>&1 | eval $at_tee_pipe
34543 at_status=`cat "$at_status_file"`
34544 #AT_STOP_89
34545 #AT_START_90
34546 # 90. grow.at:24: grow
34547 at_setup_line='grow.at:24'
34548 at_desc="grow"
34549 $at_quiet $as_echo_n " 90: $at_desc                                           "
34550 at_xfail=no
34551       test -f $XFAILFILE && at_xfail=yes
34552 echo "#                             -*- compilation -*-" >> "$at_group_log"
34553 (
34554   $as_echo "90. grow.at:24: testing ..."
34555   $at_traceon
34556
34557
34558
34559
34560
34561   { $at_traceoff
34562 $as_echo "$at_srcdir/grow.at:27:
34563 mkdir v7
34564 (cd v7
34565 TEST_TAR_FORMAT=v7
34566 export TEST_TAR_FORMAT
34567 TAR_OPTIONS=\"-H v7\"
34568 export TAR_OPTIONS
34569 rm -rf *
34570
34571 genfile --file foo --length 50000k
34572 genfile --file baz
34573 genfile --run --checkpoint 10 --length 1024 --append foo -- tar --checkpoint -vcf bar foo baz
34574 )"
34575 echo grow.at:27 >"$at_check_line_file"
34576
34577 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
34578    false; }; then
34579   ( $at_traceon;
34580 mkdir v7
34581 (cd v7
34582 TEST_TAR_FORMAT=v7
34583 export TEST_TAR_FORMAT
34584 TAR_OPTIONS="-H v7"
34585 export TAR_OPTIONS
34586 rm -rf *
34587
34588 genfile --file foo --length 50000k
34589 genfile --file baz
34590 genfile --run --checkpoint 10 --length 1024 --append foo -- tar --checkpoint -vcf bar foo baz
34591 ) ) >"$at_stdout" 2>"$at_stder1"
34592   at_func_filter_trace $?
34593 else
34594   ( :;
34595 mkdir v7
34596 (cd v7
34597 TEST_TAR_FORMAT=v7
34598 export TEST_TAR_FORMAT
34599 TAR_OPTIONS="-H v7"
34600 export TAR_OPTIONS
34601 rm -rf *
34602
34603 genfile --file foo --length 50000k
34604 genfile --file baz
34605 genfile --run --checkpoint 10 --length 1024 --append foo -- tar --checkpoint -vcf bar foo baz
34606 ) ) >"$at_stdout" 2>"$at_stderr"
34607 fi
34608 at_status=$?
34609 at_failed=false
34610 echo >>"$at_stderr"; $as_echo "tar: foo: file changed as we read it
34611 " | \
34612   $at_diff - "$at_stderr" || at_failed=:
34613 echo >>"$at_stdout"; $as_echo "foo
34614 baz
34615 " | \
34616   $at_diff - "$at_stdout" || at_failed=:
34617 at_func_check_status 1 $at_status "$at_srcdir/grow.at:27"
34618
34619 $at_failed && at_func_log_failure
34620 $at_traceon; }
34621
34622               { $at_traceoff
34623 $as_echo "$at_srcdir/grow.at:27:
34624 mkdir oldgnu
34625 (cd oldgnu
34626 TEST_TAR_FORMAT=oldgnu
34627 export TEST_TAR_FORMAT
34628 TAR_OPTIONS=\"-H oldgnu\"
34629 export TAR_OPTIONS
34630 rm -rf *
34631
34632 genfile --file foo --length 50000k
34633 genfile --file baz
34634 genfile --run --checkpoint 10 --length 1024 --append foo -- tar --checkpoint -vcf bar foo baz
34635 )"
34636 echo grow.at:27 >"$at_check_line_file"
34637
34638 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
34639    false; }; then
34640   ( $at_traceon;
34641 mkdir oldgnu
34642 (cd oldgnu
34643 TEST_TAR_FORMAT=oldgnu
34644 export TEST_TAR_FORMAT
34645 TAR_OPTIONS="-H oldgnu"
34646 export TAR_OPTIONS
34647 rm -rf *
34648
34649 genfile --file foo --length 50000k
34650 genfile --file baz
34651 genfile --run --checkpoint 10 --length 1024 --append foo -- tar --checkpoint -vcf bar foo baz
34652 ) ) >"$at_stdout" 2>"$at_stder1"
34653   at_func_filter_trace $?
34654 else
34655   ( :;
34656 mkdir oldgnu
34657 (cd oldgnu
34658 TEST_TAR_FORMAT=oldgnu
34659 export TEST_TAR_FORMAT
34660 TAR_OPTIONS="-H oldgnu"
34661 export TAR_OPTIONS
34662 rm -rf *
34663
34664 genfile --file foo --length 50000k
34665 genfile --file baz
34666 genfile --run --checkpoint 10 --length 1024 --append foo -- tar --checkpoint -vcf bar foo baz
34667 ) ) >"$at_stdout" 2>"$at_stderr"
34668 fi
34669 at_status=$?
34670 at_failed=false
34671 echo >>"$at_stderr"; $as_echo "tar: foo: file changed as we read it
34672 " | \
34673   $at_diff - "$at_stderr" || at_failed=:
34674 echo >>"$at_stdout"; $as_echo "foo
34675 baz
34676 " | \
34677   $at_diff - "$at_stdout" || at_failed=:
34678 at_func_check_status 1 $at_status "$at_srcdir/grow.at:27"
34679
34680 $at_failed && at_func_log_failure
34681 $at_traceon; }
34682
34683               { $at_traceoff
34684 $as_echo "$at_srcdir/grow.at:27:
34685 mkdir ustar
34686 (cd ustar
34687 TEST_TAR_FORMAT=ustar
34688 export TEST_TAR_FORMAT
34689 TAR_OPTIONS=\"-H ustar\"
34690 export TAR_OPTIONS
34691 rm -rf *
34692
34693 genfile --file foo --length 50000k
34694 genfile --file baz
34695 genfile --run --checkpoint 10 --length 1024 --append foo -- tar --checkpoint -vcf bar foo baz
34696 )"
34697 echo grow.at:27 >"$at_check_line_file"
34698
34699 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
34700    false; }; then
34701   ( $at_traceon;
34702 mkdir ustar
34703 (cd ustar
34704 TEST_TAR_FORMAT=ustar
34705 export TEST_TAR_FORMAT
34706 TAR_OPTIONS="-H ustar"
34707 export TAR_OPTIONS
34708 rm -rf *
34709
34710 genfile --file foo --length 50000k
34711 genfile --file baz
34712 genfile --run --checkpoint 10 --length 1024 --append foo -- tar --checkpoint -vcf bar foo baz
34713 ) ) >"$at_stdout" 2>"$at_stder1"
34714   at_func_filter_trace $?
34715 else
34716   ( :;
34717 mkdir ustar
34718 (cd ustar
34719 TEST_TAR_FORMAT=ustar
34720 export TEST_TAR_FORMAT
34721 TAR_OPTIONS="-H ustar"
34722 export TAR_OPTIONS
34723 rm -rf *
34724
34725 genfile --file foo --length 50000k
34726 genfile --file baz
34727 genfile --run --checkpoint 10 --length 1024 --append foo -- tar --checkpoint -vcf bar foo baz
34728 ) ) >"$at_stdout" 2>"$at_stderr"
34729 fi
34730 at_status=$?
34731 at_failed=false
34732 echo >>"$at_stderr"; $as_echo "tar: foo: file changed as we read it
34733 " | \
34734   $at_diff - "$at_stderr" || at_failed=:
34735 echo >>"$at_stdout"; $as_echo "foo
34736 baz
34737 " | \
34738   $at_diff - "$at_stdout" || at_failed=:
34739 at_func_check_status 1 $at_status "$at_srcdir/grow.at:27"
34740
34741 $at_failed && at_func_log_failure
34742 $at_traceon; }
34743
34744               { $at_traceoff
34745 $as_echo "$at_srcdir/grow.at:27:
34746 mkdir posix
34747 (cd posix
34748 TEST_TAR_FORMAT=posix
34749 export TEST_TAR_FORMAT
34750 TAR_OPTIONS=\"-H posix\"
34751 export TAR_OPTIONS
34752 rm -rf *
34753
34754 genfile --file foo --length 50000k
34755 genfile --file baz
34756 genfile --run --checkpoint 10 --length 1024 --append foo -- tar --checkpoint -vcf bar foo baz
34757 )"
34758 echo grow.at:27 >"$at_check_line_file"
34759
34760 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
34761    false; }; then
34762   ( $at_traceon;
34763 mkdir posix
34764 (cd posix
34765 TEST_TAR_FORMAT=posix
34766 export TEST_TAR_FORMAT
34767 TAR_OPTIONS="-H posix"
34768 export TAR_OPTIONS
34769 rm -rf *
34770
34771 genfile --file foo --length 50000k
34772 genfile --file baz
34773 genfile --run --checkpoint 10 --length 1024 --append foo -- tar --checkpoint -vcf bar foo baz
34774 ) ) >"$at_stdout" 2>"$at_stder1"
34775   at_func_filter_trace $?
34776 else
34777   ( :;
34778 mkdir posix
34779 (cd posix
34780 TEST_TAR_FORMAT=posix
34781 export TEST_TAR_FORMAT
34782 TAR_OPTIONS="-H posix"
34783 export TAR_OPTIONS
34784 rm -rf *
34785
34786 genfile --file foo --length 50000k
34787 genfile --file baz
34788 genfile --run --checkpoint 10 --length 1024 --append foo -- tar --checkpoint -vcf bar foo baz
34789 ) ) >"$at_stdout" 2>"$at_stderr"
34790 fi
34791 at_status=$?
34792 at_failed=false
34793 echo >>"$at_stderr"; $as_echo "tar: foo: file changed as we read it
34794 " | \
34795   $at_diff - "$at_stderr" || at_failed=:
34796 echo >>"$at_stdout"; $as_echo "foo
34797 baz
34798 " | \
34799   $at_diff - "$at_stdout" || at_failed=:
34800 at_func_check_status 1 $at_status "$at_srcdir/grow.at:27"
34801
34802 $at_failed && at_func_log_failure
34803 $at_traceon; }
34804
34805               { $at_traceoff
34806 $as_echo "$at_srcdir/grow.at:27:
34807 mkdir gnu
34808 (cd gnu
34809 TEST_TAR_FORMAT=gnu
34810 export TEST_TAR_FORMAT
34811 TAR_OPTIONS=\"-H gnu\"
34812 export TAR_OPTIONS
34813 rm -rf *
34814
34815 genfile --file foo --length 50000k
34816 genfile --file baz
34817 genfile --run --checkpoint 10 --length 1024 --append foo -- tar --checkpoint -vcf bar foo baz
34818 )"
34819 echo grow.at:27 >"$at_check_line_file"
34820
34821 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
34822    false; }; then
34823   ( $at_traceon;
34824 mkdir gnu
34825 (cd gnu
34826 TEST_TAR_FORMAT=gnu
34827 export TEST_TAR_FORMAT
34828 TAR_OPTIONS="-H gnu"
34829 export TAR_OPTIONS
34830 rm -rf *
34831
34832 genfile --file foo --length 50000k
34833 genfile --file baz
34834 genfile --run --checkpoint 10 --length 1024 --append foo -- tar --checkpoint -vcf bar foo baz
34835 ) ) >"$at_stdout" 2>"$at_stder1"
34836   at_func_filter_trace $?
34837 else
34838   ( :;
34839 mkdir gnu
34840 (cd gnu
34841 TEST_TAR_FORMAT=gnu
34842 export TEST_TAR_FORMAT
34843 TAR_OPTIONS="-H gnu"
34844 export TAR_OPTIONS
34845 rm -rf *
34846
34847 genfile --file foo --length 50000k
34848 genfile --file baz
34849 genfile --run --checkpoint 10 --length 1024 --append foo -- tar --checkpoint -vcf bar foo baz
34850 ) ) >"$at_stdout" 2>"$at_stderr"
34851 fi
34852 at_status=$?
34853 at_failed=false
34854 echo >>"$at_stderr"; $as_echo "tar: foo: file changed as we read it
34855 " | \
34856   $at_diff - "$at_stderr" || at_failed=:
34857 echo >>"$at_stdout"; $as_echo "foo
34858 baz
34859 " | \
34860   $at_diff - "$at_stdout" || at_failed=:
34861 at_func_check_status 1 $at_status "$at_srcdir/grow.at:27"
34862
34863 $at_failed && at_func_log_failure
34864 $at_traceon; }
34865
34866
34867
34868
34869   $at_traceoff
34870   $at_times_p && times >"$at_times_file"
34871 ) 5>&1 2>&1 | eval $at_tee_pipe
34872 at_status=`cat "$at_status_file"`
34873 #AT_STOP_90
34874 #AT_START_91
34875 # 91. remfiles01.at:28: remove-files with compression
34876 at_setup_line='remfiles01.at:28'
34877 at_desc="remove-files with compression"
34878 $at_quiet $as_echo_n " 91: $at_desc                  "
34879 at_xfail=no
34880 echo "#                             -*- compilation -*-" >> "$at_group_log"
34881 (
34882   $as_echo "91. remfiles01.at:28: testing ..."
34883   $at_traceon
34884
34885
34886
34887 unset TAR_OPTIONS
34888 { $at_traceoff
34889 $as_echo "$at_srcdir/remfiles01.at:32:
34890
34891 cat /dev/null | gzip - > /dev/null 2>&1 || exit 77
34892
34893
34894 test -z "`sort < /dev/null 2>&1`" || exit 77
34895
34896
34897 mkdir dir
34898 cd dir
34899 genfile --file a --length 0
34900 chmod 0 a
34901 genfile --file b
34902 mkdir c
34903
34904 # Depending on when the SIGPIPE gets delivered, the invocation below
34905 # may finish with either
34906 #  tar: a: Cannot write: Broken pipe
34907 # or
34908 #  tar: Child returned status 2
34909
34910 tar -c -f a -z --remove-files b c 2>err
34911 EC=\$?
34912 sed -n '/(child)/p' err >&2
34913 rm err
34914 find . | sort
34915 exit \$EC
34916 "
34917 echo remfiles01.at:32 >"$at_check_line_file"
34918
34919 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
34920    false; }; then
34921   ( $at_traceon;
34922
34923 cat /dev/null | gzip - > /dev/null 2>&1 || exit 77
34924
34925
34926 test -z "`sort < /dev/null 2>&1`" || exit 77
34927
34928
34929 mkdir dir
34930 cd dir
34931 genfile --file a --length 0
34932 chmod 0 a
34933 genfile --file b
34934 mkdir c
34935
34936 # Depending on when the SIGPIPE gets delivered, the invocation below
34937 # may finish with either
34938 #  tar: a: Cannot write: Broken pipe
34939 # or
34940 #  tar: Child returned status 2
34941
34942 tar -c -f a -z --remove-files b c 2>err
34943 EC=$?
34944 sed -n '/(child)/p' err >&2
34945 rm err
34946 find . | sort
34947 exit $EC
34948  ) >"$at_stdout" 2>"$at_stder1"
34949   at_func_filter_trace $?
34950 else
34951   ( :;
34952
34953 cat /dev/null | gzip - > /dev/null 2>&1 || exit 77
34954
34955
34956 test -z "`sort < /dev/null 2>&1`" || exit 77
34957
34958
34959 mkdir dir
34960 cd dir
34961 genfile --file a --length 0
34962 chmod 0 a
34963 genfile --file b
34964 mkdir c
34965
34966 # Depending on when the SIGPIPE gets delivered, the invocation below
34967 # may finish with either
34968 #  tar: a: Cannot write: Broken pipe
34969 # or
34970 #  tar: Child returned status 2
34971
34972 tar -c -f a -z --remove-files b c 2>err
34973 EC=$?
34974 sed -n '/(child)/p' err >&2
34975 rm err
34976 find . | sort
34977 exit $EC
34978  ) >"$at_stdout" 2>"$at_stderr"
34979 fi
34980 at_status=$?
34981 at_failed=false
34982 echo >>"$at_stderr"; $as_echo "tar (child): a: Cannot open: Permission denied
34983 tar (child): Error is not recoverable: exiting now
34984 " | \
34985   $at_diff - "$at_stderr" || at_failed=:
34986 echo >>"$at_stdout"; $as_echo ".
34987 ./a
34988 ./b
34989 ./c
34990 " | \
34991   $at_diff - "$at_stdout" || at_failed=:
34992 at_func_check_status 2 $at_status "$at_srcdir/remfiles01.at:32"
34993
34994 $at_failed && at_func_log_failure
34995 $at_traceon; }
34996
34997
34998   $at_traceoff
34999   $at_times_p && times >"$at_times_file"
35000 ) 5>&1 2>&1 | eval $at_tee_pipe
35001 at_status=`cat "$at_status_file"`
35002 #AT_STOP_91
35003 #AT_START_92
35004 # 92. remfiles02.at:28: remove-files with compression: grand-child
35005 at_setup_line='remfiles02.at:28'
35006 at_desc="remove-files with compression: grand-child"
35007 $at_quiet $as_echo_n " 92: $at_desc     "
35008 at_xfail=no
35009 echo "#                             -*- compilation -*-" >> "$at_group_log"
35010 (
35011   $as_echo "92. remfiles02.at:28: testing ..."
35012   $at_traceon
35013
35014
35015
35016 unset TAR_OPTIONS
35017 { $at_traceoff
35018 $as_echo "$at_srcdir/remfiles02.at:32:
35019
35020 cat /dev/null | gzip - > /dev/null 2>&1 || exit 77
35021
35022
35023 test -z "`sort < /dev/null 2>&1`" || exit 77
35024
35025
35026 mkdir dir
35027 cd dir
35028 mkdir a
35029 genfile --file b
35030 mkdir c
35031
35032 tar -c -f a -z --remove-files b c 2>err
35033 EC=\$?
35034 sed -n '/(child)/p' err >&2
35035 rm err
35036 find . | sort
35037 exit \$EC
35038 "
35039 echo remfiles02.at:32 >"$at_check_line_file"
35040
35041 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
35042    false; }; then
35043   ( $at_traceon;
35044
35045 cat /dev/null | gzip - > /dev/null 2>&1 || exit 77
35046
35047
35048 test -z "`sort < /dev/null 2>&1`" || exit 77
35049
35050
35051 mkdir dir
35052 cd dir
35053 mkdir a
35054 genfile --file b
35055 mkdir c
35056
35057 tar -c -f a -z --remove-files b c 2>err
35058 EC=$?
35059 sed -n '/(child)/p' err >&2
35060 rm err
35061 find . | sort
35062 exit $EC
35063  ) >"$at_stdout" 2>"$at_stder1"
35064   at_func_filter_trace $?
35065 else
35066   ( :;
35067
35068 cat /dev/null | gzip - > /dev/null 2>&1 || exit 77
35069
35070
35071 test -z "`sort < /dev/null 2>&1`" || exit 77
35072
35073
35074 mkdir dir
35075 cd dir
35076 mkdir a
35077 genfile --file b
35078 mkdir c
35079
35080 tar -c -f a -z --remove-files b c 2>err
35081 EC=$?
35082 sed -n '/(child)/p' err >&2
35083 rm err
35084 find . | sort
35085 exit $EC
35086  ) >"$at_stdout" 2>"$at_stderr"
35087 fi
35088 at_status=$?
35089 at_failed=false
35090 echo >>"$at_stderr"; $as_echo "tar (child): a: Cannot open: Is a directory
35091 tar (child): Error is not recoverable: exiting now
35092 " | \
35093   $at_diff - "$at_stderr" || at_failed=:
35094 echo >>"$at_stdout"; $as_echo ".
35095 ./a
35096 ./b
35097 ./c
35098 " | \
35099   $at_diff - "$at_stdout" || at_failed=:
35100 at_func_check_status 2 $at_status "$at_srcdir/remfiles02.at:32"
35101
35102 $at_failed && at_func_log_failure
35103 $at_traceon; }
35104
35105
35106   $at_traceoff
35107   $at_times_p && times >"$at_times_file"
35108 ) 5>&1 2>&1 | eval $at_tee_pipe
35109 at_status=`cat "$at_status_file"`
35110 #AT_STOP_92
35111 #AT_START_93
35112 # 93. gtarfail.at:21: gtarfail
35113 at_setup_line='gtarfail.at:21'
35114 at_desc="gtarfail"
35115 $at_quiet $as_echo_n " 93: $at_desc                                       "
35116 at_xfail=no
35117 echo "#                             -*- compilation -*-" >> "$at_group_log"
35118 (
35119   $as_echo "93. gtarfail.at:21: testing ..."
35120   $at_traceon
35121
35122
35123
35124 unset TAR_OPTIONS
35125
35126 { $at_traceoff
35127 $as_echo "$at_srcdir/gtarfail.at:26:
35128
35129 test -z "$STAR_TESTSCRIPTS" && exit 77
35130 tarball_prereq gtarfail.tar bf7612e401aaa679edbb07ae1183811b $STAR_TESTSCRIPTS $STAR_DATA_URL || exit 77
35131
35132
35133 tar --utc -tvf \$STAR_TESTSCRIPTS/gtarfail.tar
35134 "
35135 echo gtarfail.at:26 >"$at_check_line_file"
35136
35137 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
35138    false; }; then
35139   ( $at_traceon;
35140
35141 test -z "$STAR_TESTSCRIPTS" && exit 77
35142 tarball_prereq gtarfail.tar bf7612e401aaa679edbb07ae1183811b $STAR_TESTSCRIPTS $STAR_DATA_URL || exit 77
35143
35144
35145 tar --utc -tvf $STAR_TESTSCRIPTS/gtarfail.tar
35146  ) >"$at_stdout" 2>"$at_stder1"
35147   at_func_filter_trace $?
35148 else
35149   ( :;
35150
35151 test -z "$STAR_TESTSCRIPTS" && exit 77
35152 tarball_prereq gtarfail.tar bf7612e401aaa679edbb07ae1183811b $STAR_TESTSCRIPTS $STAR_DATA_URL || exit 77
35153
35154
35155 tar --utc -tvf $STAR_TESTSCRIPTS/gtarfail.tar
35156  ) >"$at_stdout" 2>"$at_stderr"
35157 fi
35158 at_status=$?
35159 at_failed=false
35160 at_func_diff_devnull "$at_stderr" || at_failed=:
35161 echo >>"$at_stdout"; $as_echo "-rw-r--r-- jes/glone       518 2001-05-25 14:41 vedpowered.gif
35162 -rw-r--r-- jes/glone      6825 1997-04-29 00:19 cd.gif
35163 -rw-r--r-- jes/glone     33354 1999-06-22 12:17 DSCN0049c.JPG
35164 -rw-r--r-- jes/glone     86159 2001-06-05 18:16 Window1.jpg
35165 -rw-r--r-- jes/glone      1310 2001-05-25 13:05 vipower.gif
35166 -rw-rw-rw- jes/glone    148753 1998-09-15 13:08 billyboy.jpg
35167 " | \
35168   $at_diff - "$at_stdout" || at_failed=:
35169 at_func_check_status 0 $at_status "$at_srcdir/gtarfail.at:26"
35170
35171 $at_failed && at_func_log_failure
35172 $at_traceon; }
35173
35174
35175   $at_traceoff
35176   $at_times_p && times >"$at_times_file"
35177 ) 5>&1 2>&1 | eval $at_tee_pipe
35178 at_status=`cat "$at_status_file"`
35179 #AT_STOP_93
35180 #AT_START_94
35181 # 94. gtarfail2.at:21: gtarfail2
35182 at_setup_line='gtarfail2.at:21'
35183 at_desc="gtarfail2"
35184 $at_quiet $as_echo_n " 94: $at_desc                                      "
35185 at_xfail=no
35186 echo "#                             -*- compilation -*-" >> "$at_group_log"
35187 (
35188   $as_echo "94. gtarfail2.at:21: testing ..."
35189   $at_traceon
35190
35191
35192
35193 unset TAR_OPTIONS
35194
35195 { $at_traceoff
35196 $as_echo "$at_srcdir/gtarfail2.at:26:
35197
35198 test -z "$STAR_TESTSCRIPTS" && exit 77
35199 tarball_prereq gtarfail2.tar 6b607d1faec14b82f69525d9c5b66e53 $STAR_TESTSCRIPTS $STAR_DATA_URL || exit 77
35200
35201 tar --utc -tvf \$STAR_TESTSCRIPTS/gtarfail2.tar
35202 "
35203 echo gtarfail2.at:26 >"$at_check_line_file"
35204
35205 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
35206    false; }; then
35207   ( $at_traceon;
35208
35209 test -z "$STAR_TESTSCRIPTS" && exit 77
35210 tarball_prereq gtarfail2.tar 6b607d1faec14b82f69525d9c5b66e53 $STAR_TESTSCRIPTS $STAR_DATA_URL || exit 77
35211
35212 tar --utc -tvf $STAR_TESTSCRIPTS/gtarfail2.tar
35213  ) >"$at_stdout" 2>"$at_stder1"
35214   at_func_filter_trace $?
35215 else
35216   ( :;
35217
35218 test -z "$STAR_TESTSCRIPTS" && exit 77
35219 tarball_prereq gtarfail2.tar 6b607d1faec14b82f69525d9c5b66e53 $STAR_TESTSCRIPTS $STAR_DATA_URL || exit 77
35220
35221 tar --utc -tvf $STAR_TESTSCRIPTS/gtarfail2.tar
35222  ) >"$at_stdout" 2>"$at_stderr"
35223 fi
35224 at_status=$?
35225 at_failed=false
35226 at_func_diff_devnull "$at_stderr" || at_failed=:
35227 echo >>"$at_stdout"; $as_echo "-rwxr-xr-x jes/glone       214 2001-09-21 14:08 .clean
35228 lrwxrwxrwx jes/cats          0 1998-05-07 12:39 RULES -> makefiles/RULES
35229 drwxr-sr-x jes/glone         0 2001-12-10 00:00 build/
35230 -rw-r--r-- jes/glone    312019 2001-12-10 00:00 build/smake-1.2.tar.gz
35231 drwxr-sr-x jes/glone         0 2001-11-09 18:20 build/psmake/
35232 -rwxr-xr-x jes/glone       259 2000-01-09 16:36 build/psmake/MAKE
35233 -rwxr-xr-x jes/glone      4820 2001-02-25 22:45 build/psmake/MAKE.sh
35234 -rw-r--r-- jes/glone       647 2001-02-25 23:50 build/psmake/Makefile
35235 lrwxrwxrwx jes/glone         0 2001-08-29 10:53 build/psmake/archconf.c -> ../archconf.c
35236 lrwxrwxrwx jes/glone         0 2001-08-29 10:54 build/psmake/astoi.c -> ../../lib/astoi.c
35237 " | \
35238   $at_diff - "$at_stdout" || at_failed=:
35239 at_func_check_status 0 $at_status "$at_srcdir/gtarfail2.at:26"
35240
35241 $at_failed && at_func_log_failure
35242 $at_traceon; }
35243
35244
35245   $at_traceoff
35246   $at_times_p && times >"$at_times_file"
35247 ) 5>&1 2>&1 | eval $at_tee_pipe
35248 at_status=`cat "$at_status_file"`
35249 #AT_STOP_94
35250 #AT_START_95
35251 # 95. multi-fail.at:21: multi-fail
35252 at_setup_line='multi-fail.at:21'
35253 at_desc="multi-fail"
35254 $at_quiet $as_echo_n " 95: $at_desc                                     "
35255 at_xfail=no
35256 echo "#                             -*- compilation -*-" >> "$at_group_log"
35257 (
35258   $as_echo "95. multi-fail.at:21: testing ..."
35259   $at_traceon
35260
35261
35262
35263 unset TAR_OPTIONS
35264
35265 { $at_traceoff
35266 $as_echo "$at_srcdir/multi-fail.at:26:
35267
35268 test -z "$STAR_TESTSCRIPTS" && exit 77
35269 tarball_prereq gnu-multi-fail-volume1.gtar 7c28663dd98b0bd91ceb4be7af55254e $STAR_TESTSCRIPTS $STAR_DATA_URL || exit 77
35270
35271
35272 test -z "$STAR_TESTSCRIPTS" && exit 77
35273 tarball_prereq gnu-multi-fail-volume2.gtar b5d41c4c3ec440687d4a44957b5079a8 $STAR_TESTSCRIPTS $STAR_DATA_URL || exit 77
35274
35275
35276 tar --utc -tvM -f \$STAR_TESTSCRIPTS/gnu-multi-fail-volume1.gtar \\
35277                -f \$STAR_TESTSCRIPTS/gnu-multi-fail-volume2.gtar <&-
35278 "
35279 echo multi-fail.at:26 >"$at_check_line_file"
35280
35281 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
35282    false; }; then
35283   ( $at_traceon;
35284
35285 test -z "$STAR_TESTSCRIPTS" && exit 77
35286 tarball_prereq gnu-multi-fail-volume1.gtar 7c28663dd98b0bd91ceb4be7af55254e $STAR_TESTSCRIPTS $STAR_DATA_URL || exit 77
35287
35288
35289 test -z "$STAR_TESTSCRIPTS" && exit 77
35290 tarball_prereq gnu-multi-fail-volume2.gtar b5d41c4c3ec440687d4a44957b5079a8 $STAR_TESTSCRIPTS $STAR_DATA_URL || exit 77
35291
35292
35293 tar --utc -tvM -f $STAR_TESTSCRIPTS/gnu-multi-fail-volume1.gtar \
35294                -f $STAR_TESTSCRIPTS/gnu-multi-fail-volume2.gtar <&-
35295  ) >"$at_stdout" 2>"$at_stder1"
35296   at_func_filter_trace $?
35297 else
35298   ( :;
35299
35300 test -z "$STAR_TESTSCRIPTS" && exit 77
35301 tarball_prereq gnu-multi-fail-volume1.gtar 7c28663dd98b0bd91ceb4be7af55254e $STAR_TESTSCRIPTS $STAR_DATA_URL || exit 77
35302
35303
35304 test -z "$STAR_TESTSCRIPTS" && exit 77
35305 tarball_prereq gnu-multi-fail-volume2.gtar b5d41c4c3ec440687d4a44957b5079a8 $STAR_TESTSCRIPTS $STAR_DATA_URL || exit 77
35306
35307
35308 tar --utc -tvM -f $STAR_TESTSCRIPTS/gnu-multi-fail-volume1.gtar \
35309                -f $STAR_TESTSCRIPTS/gnu-multi-fail-volume2.gtar <&-
35310  ) >"$at_stdout" 2>"$at_stderr"
35311 fi
35312 at_status=$?
35313 at_failed=false
35314 at_func_diff_devnull "$at_stderr" || at_failed=:
35315 echo >>"$at_stdout"; $as_echo "drwxrwsr-x joerg/bs          0 2003-10-11 14:32 OBJ/i386-sunos5-gcc/
35316 -rw-r--r-- joerg/bs          1 2003-10-11 14:32 OBJ/i386-sunos5-gcc/Dnull
35317 -rw-r--r-- joerg/bs       1743 2003-10-10 18:06 OBJ/i386-sunos5-gcc/star.d
35318 -rw-r--r-- joerg/bs       1460 2003-10-11 11:53 OBJ/i386-sunos5-gcc/header.d
35319 -rw-r--r-- joerg/bs       1540 2003-10-10 18:06 OBJ/i386-sunos5-gcc/cpiohdr.d
35320 -rw-r--r-- joerg/bs       2245 2003-10-10 18:06 OBJ/i386-sunos5-gcc/xheader.d
35321 -rw-r--r-- joerg/bs       1254 2003-10-10 18:06 OBJ/i386-sunos5-gcc/xattr.d
35322 -rw-r--r-- joerg/bs       1330 2003-10-10 18:06 OBJ/i386-sunos5-gcc/list.d
35323 -rw-r--r-- joerg/bs       1745 2003-10-10 18:06 OBJ/i386-sunos5-gcc/extract.d
35324 -rw-r--r-- joerg/bs       1518 2003-10-10 18:06 OBJ/i386-sunos5-gcc/create.d
35325 -rw-r--r-- joerg/bs       1235 2003-10-10 18:06 OBJ/i386-sunos5-gcc/append.d
35326 -rw-r--r-- joerg/bs       1368 2003-10-10 18:06 OBJ/i386-sunos5-gcc/diff.d
35327 -rw-r--r-- joerg/bs       1423 2003-10-10 18:06 OBJ/i386-sunos5-gcc/remove.d
35328 -rw-r--r-- joerg/bs       1493 2003-10-10 18:07 OBJ/i386-sunos5-gcc/star_unix.d
35329 -rw-r--r-- joerg/bs       1572 2003-10-10 18:07 OBJ/i386-sunos5-gcc/acl_unix.d
35330 -rw-r--r-- joerg/bs       1453 2003-10-10 18:07 OBJ/i386-sunos5-gcc/fflags.d
35331 -rw-r--r-- joerg/bs       2257 2003-10-11 14:32 OBJ/i386-sunos5-gcc/buffer.d
35332 -rw-r--r-- joerg/bs        969 2003-10-07 17:53 OBJ/i386-sunos5-gcc/dirtime.d
35333 -rw-r--r-- joerg/bs       1308 2003-10-10 18:07 OBJ/i386-sunos5-gcc/lhash.d
35334 -rw-r--r-- joerg/bs       1287 2003-10-10 18:07 OBJ/i386-sunos5-gcc/hole.d
35335 -rw-r--r-- joerg/bs       1105 2003-10-10 18:07 OBJ/i386-sunos5-gcc/longnames.d
35336 -rw-r--r-- joerg/bs       1230 2003-10-10 18:07 OBJ/i386-sunos5-gcc/names.d
35337 -rw-r--r-- joerg/bs       1091 2003-10-10 18:07 OBJ/i386-sunos5-gcc/movearch.d
35338 -rw-r--r-- joerg/bs        961 2003-10-07 17:53 OBJ/i386-sunos5-gcc/table.d
35339 -rw-r--r-- joerg/bs       1113 2003-10-10 18:07 OBJ/i386-sunos5-gcc/props.d
35340 -rw-r--r-- joerg/bs       2146 2003-10-10 18:07 OBJ/i386-sunos5-gcc/fetchdir.d
35341 -rw-r--r-- joerg/bs       1093 2003-10-10 18:07 OBJ/i386-sunos5-gcc/unicode.d
35342 -rw-r--r-- joerg/bs       1211 2003-10-10 18:07 OBJ/i386-sunos5-gcc/subst.d
35343 -rw-r--r-- joerg/bs       2076 2003-10-11 11:53 OBJ/i386-sunos5-gcc/volhdr.d
35344 -rw-r--r-- joerg/bs       1480 2003-10-10 18:07 OBJ/i386-sunos5-gcc/chdir.d
35345 -rw-r--r-- joerg/bs      42460 2003-10-10 18:07 OBJ/i386-sunos5-gcc/star.o
35346 -rw-r--r-- joerg/bs      22564 2003-10-11 11:53 OBJ/i386-sunos5-gcc/header.o
35347 -rw-r--r-- joerg/bs       7880 2003-10-10 18:07 OBJ/i386-sunos5-gcc/cpiohdr.o
35348 -rw-r--r-- joerg/bs      14624 2003-10-10 18:07 OBJ/i386-sunos5-gcc/xheader.o
35349 -rw-r--r-- joerg/bs        924 2003-10-10 18:07 OBJ/i386-sunos5-gcc/xattr.o
35350 -rw-r--r-- joerg/bs       6120 2003-10-10 18:07 OBJ/i386-sunos5-gcc/list.o
35351 -rw-r--r-- joerg/bs      12764 2003-10-10 18:07 OBJ/i386-sunos5-gcc/extract.o
35352 -rw-r--r-- joerg/bs      14668 2003-10-10 18:07 OBJ/i386-sunos5-gcc/create.o
35353 -rw-r--r-- joerg/bs       2576 2003-10-10 18:07 OBJ/i386-sunos5-gcc/append.o
35354 -rw-r--r-- joerg/bs       7636 2003-10-10 18:07 OBJ/i386-sunos5-gcc/diff.o
35355 -rw-r--r-- joerg/bs       3072 2003-10-10 18:07 OBJ/i386-sunos5-gcc/remove.o
35356 -rw-r--r-- joerg/bs       5612 2003-10-10 18:07 OBJ/i386-sunos5-gcc/star_unix.o
35357 -rw-r--r-- joerg/bs       6220 2003-10-10 18:07 OBJ/i386-sunos5-gcc/acl_unix.o
35358 -rw-r--r-- joerg/bs       1092 2003-10-10 18:07 OBJ/i386-sunos5-gcc/fflags.o
35359 -rw-r--r-- joerg/bs      20996 2003-10-11 14:32 OBJ/i386-sunos5-gcc/buffer.o
35360 -rw-r--r-- joerg/bs       2060 2003-10-07 17:53 OBJ/i386-sunos5-gcc/dirtime.o
35361 -rw-r--r-- joerg/bs       1664 2003-10-10 18:07 OBJ/i386-sunos5-gcc/lhash.o
35362 -rw-r--r-- joerg/bs      10564 2003-10-10 18:07 OBJ/i386-sunos5-gcc/hole.o
35363 -rw-r--r-- joerg/bs       3864 2003-10-10 18:07 OBJ/i386-sunos5-gcc/longnames.o
35364 -rw-r--r-- joerg/bs       2576 2003-10-10 18:07 OBJ/i386-sunos5-gcc/names.o
35365 -rw-r--r-- joerg/bs        952 2003-10-10 18:07 OBJ/i386-sunos5-gcc/movearch.o
35366 -rw-r--r-- joerg/bs       2756 2003-10-07 17:53 OBJ/i386-sunos5-gcc/table.o
35367 " | \
35368   $at_diff - "$at_stdout" || at_failed=:
35369 at_func_check_status 0 $at_status "$at_srcdir/multi-fail.at:26"
35370
35371 $at_failed && at_func_log_failure
35372 $at_traceon; }
35373
35374
35375   $at_traceoff
35376   $at_times_p && times >"$at_times_file"
35377 ) 5>&1 2>&1 | eval $at_tee_pipe
35378 at_status=`cat "$at_status_file"`
35379 #AT_STOP_95
35380 #AT_START_96
35381 # 96. ustar-big-2g.at:21: ustar-big-2g
35382 at_setup_line='ustar-big-2g.at:21'
35383 at_desc="ustar-big-2g"
35384 $at_quiet $as_echo_n " 96: $at_desc                                   "
35385 at_xfail=no
35386 echo "#                             -*- compilation -*-" >> "$at_group_log"
35387 (
35388   $as_echo "96. ustar-big-2g.at:21: testing ..."
35389   $at_traceon
35390
35391
35392
35393 unset TAR_OPTIONS
35394
35395 { $at_traceoff
35396 $as_echo "$at_srcdir/ustar-big-2g.at:26:
35397
35398 cat /dev/null | bzip2 - > /dev/null 2>&1 || exit 77
35399
35400
35401 test -z "$STAR_TESTSCRIPTS" && exit 77
35402 tarball_prereq ustar-big-2g.tar.bz2 b63979733629c8fcdf40b60065422767 $STAR_TESTSCRIPTS $STAR_DATA_URL || exit 77
35403
35404
35405 tar --utc -tvjf \$STAR_TESTSCRIPTS/ustar-big-2g.tar.bz2
35406 "
35407 echo ustar-big-2g.at:26 >"$at_check_line_file"
35408
35409 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
35410    false; }; then
35411   ( $at_traceon;
35412
35413 cat /dev/null | bzip2 - > /dev/null 2>&1 || exit 77
35414
35415
35416 test -z "$STAR_TESTSCRIPTS" && exit 77
35417 tarball_prereq ustar-big-2g.tar.bz2 b63979733629c8fcdf40b60065422767 $STAR_TESTSCRIPTS $STAR_DATA_URL || exit 77
35418
35419
35420 tar --utc -tvjf $STAR_TESTSCRIPTS/ustar-big-2g.tar.bz2
35421  ) >"$at_stdout" 2>"$at_stder1"
35422   at_func_filter_trace $?
35423 else
35424   ( :;
35425
35426 cat /dev/null | bzip2 - > /dev/null 2>&1 || exit 77
35427
35428
35429 test -z "$STAR_TESTSCRIPTS" && exit 77
35430 tarball_prereq ustar-big-2g.tar.bz2 b63979733629c8fcdf40b60065422767 $STAR_TESTSCRIPTS $STAR_DATA_URL || exit 77
35431
35432
35433 tar --utc -tvjf $STAR_TESTSCRIPTS/ustar-big-2g.tar.bz2
35434  ) >"$at_stdout" 2>"$at_stderr"
35435 fi
35436 at_status=$?
35437 at_failed=false
35438 echo stderr:; tee stderr <"$at_stderr"
35439 echo >>"$at_stdout"; $as_echo "-rw------- jes/glone 2147483647 2002-06-15 14:53 big
35440 -rw-r--r-- jes/glone          0 2002-06-15 14:53 file
35441 " | \
35442   $at_diff - "$at_stdout" || at_failed=:
35443 at_func_check_status 0 $at_status "$at_srcdir/ustar-big-2g.at:26"
35444
35445 $at_failed && at_func_log_failure
35446 $at_traceon; }
35447
35448
35449
35450 cat >stderr.re <<'_ATEOF'
35451 tar: Record size = .*
35452 _ATEOF
35453
35454 awk '{print NR " " $0}' stderr > $$.1
35455 awk '{print NR " " $0}' stderr.re | join - $$.1 |
35456 while read NUM RE LINE
35457 do
35458   echo "$LINE" | grep -- "$RE" >/dev/null || exit 1
35459 done
35460
35461
35462   $at_traceoff
35463   $at_times_p && times >"$at_times_file"
35464 ) 5>&1 2>&1 | eval $at_tee_pipe
35465 at_status=`cat "$at_status_file"`
35466 #AT_STOP_96
35467 #AT_START_97
35468 # 97. ustar-big-8g.at:21: ustar-big-8g
35469 at_setup_line='ustar-big-8g.at:21'
35470 at_desc="ustar-big-8g"
35471 $at_quiet $as_echo_n " 97: $at_desc                                   "
35472 at_xfail=no
35473 echo "#                             -*- compilation -*-" >> "$at_group_log"
35474 (
35475   $as_echo "97. ustar-big-8g.at:21: testing ..."
35476   $at_traceon
35477
35478
35479
35480 unset TAR_OPTIONS
35481
35482 { $at_traceoff
35483 $as_echo "$at_srcdir/ustar-big-8g.at:26:
35484
35485 cat /dev/null | bzip2 - > /dev/null 2>&1 || exit 77
35486
35487
35488 test -z "$STAR_TESTSCRIPTS" && exit 77
35489 tarball_prereq ustar-big-8g.tar.bz2 60ff503fa4b8288bef7ada89e9c91b0f $STAR_TESTSCRIPTS $STAR_DATA_URL || exit 77
35490
35491
35492 tar --utc -tvjf \$STAR_TESTSCRIPTS/ustar-big-8g.tar.bz2
35493 "
35494 echo ustar-big-8g.at:26 >"$at_check_line_file"
35495
35496 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
35497    false; }; then
35498   ( $at_traceon;
35499
35500 cat /dev/null | bzip2 - > /dev/null 2>&1 || exit 77
35501
35502
35503 test -z "$STAR_TESTSCRIPTS" && exit 77
35504 tarball_prereq ustar-big-8g.tar.bz2 60ff503fa4b8288bef7ada89e9c91b0f $STAR_TESTSCRIPTS $STAR_DATA_URL || exit 77
35505
35506
35507 tar --utc -tvjf $STAR_TESTSCRIPTS/ustar-big-8g.tar.bz2
35508  ) >"$at_stdout" 2>"$at_stder1"
35509   at_func_filter_trace $?
35510 else
35511   ( :;
35512
35513 cat /dev/null | bzip2 - > /dev/null 2>&1 || exit 77
35514
35515
35516 test -z "$STAR_TESTSCRIPTS" && exit 77
35517 tarball_prereq ustar-big-8g.tar.bz2 60ff503fa4b8288bef7ada89e9c91b0f $STAR_TESTSCRIPTS $STAR_DATA_URL || exit 77
35518
35519
35520 tar --utc -tvjf $STAR_TESTSCRIPTS/ustar-big-8g.tar.bz2
35521  ) >"$at_stdout" 2>"$at_stderr"
35522 fi
35523 at_status=$?
35524 at_failed=false
35525 echo stderr:; tee stderr <"$at_stderr"
35526 echo >>"$at_stdout"; $as_echo "-rw------- jes/glone 8589934591 2002-06-15 15:08 8gb-1
35527 -rw-r--r-- jes/glone          0 2002-06-15 14:53 file
35528 " | \
35529   $at_diff - "$at_stdout" || at_failed=:
35530 at_func_check_status 0 $at_status "$at_srcdir/ustar-big-8g.at:26"
35531
35532 $at_failed && at_func_log_failure
35533 $at_traceon; }
35534
35535
35536
35537 cat >stderr.re <<'_ATEOF'
35538 tar: Record size = .*
35539 _ATEOF
35540
35541 awk '{print NR " " $0}' stderr > $$.1
35542 awk '{print NR " " $0}' stderr.re | join - $$.1 |
35543 while read NUM RE LINE
35544 do
35545   echo "$LINE" | grep -- "$RE" >/dev/null || exit 1
35546 done
35547
35548
35549   $at_traceoff
35550   $at_times_p && times >"$at_times_file"
35551 ) 5>&1 2>&1 | eval $at_tee_pipe
35552 at_status=`cat "$at_status_file"`
35553 #AT_STOP_97
35554 #AT_START_98
35555 # 98. pax-big-10g.at:21: pax-big-10g
35556 at_setup_line='pax-big-10g.at:21'
35557 at_desc="pax-big-10g"
35558 $at_quiet $as_echo_n " 98: $at_desc                                    "
35559 at_xfail=no
35560 echo "#                             -*- compilation -*-" >> "$at_group_log"
35561 (
35562   $as_echo "98. pax-big-10g.at:21: testing ..."
35563   $at_traceon
35564
35565
35566
35567 unset TAR_OPTIONS
35568
35569 { $at_traceoff
35570 $as_echo "$at_srcdir/pax-big-10g.at:26:
35571
35572 cat /dev/null | bzip2 - > /dev/null 2>&1 || exit 77
35573
35574
35575 test -z "$STAR_TESTSCRIPTS" && exit 77
35576 tarball_prereq pax-big-10g.tar.bz2 ca15c23acc8d8bb1f27e60113a5f8bff $STAR_TESTSCRIPTS $STAR_DATA_URL || exit 77
35577
35578
35579 tar --utc -tvjf \$STAR_TESTSCRIPTS/pax-big-10g.tar.bz2
35580 "
35581 echo pax-big-10g.at:26 >"$at_check_line_file"
35582
35583 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
35584    false; }; then
35585   ( $at_traceon;
35586
35587 cat /dev/null | bzip2 - > /dev/null 2>&1 || exit 77
35588
35589
35590 test -z "$STAR_TESTSCRIPTS" && exit 77
35591 tarball_prereq pax-big-10g.tar.bz2 ca15c23acc8d8bb1f27e60113a5f8bff $STAR_TESTSCRIPTS $STAR_DATA_URL || exit 77
35592
35593
35594 tar --utc -tvjf $STAR_TESTSCRIPTS/pax-big-10g.tar.bz2
35595  ) >"$at_stdout" 2>"$at_stder1"
35596   at_func_filter_trace $?
35597 else
35598   ( :;
35599
35600 cat /dev/null | bzip2 - > /dev/null 2>&1 || exit 77
35601
35602
35603 test -z "$STAR_TESTSCRIPTS" && exit 77
35604 tarball_prereq pax-big-10g.tar.bz2 ca15c23acc8d8bb1f27e60113a5f8bff $STAR_TESTSCRIPTS $STAR_DATA_URL || exit 77
35605
35606
35607 tar --utc -tvjf $STAR_TESTSCRIPTS/pax-big-10g.tar.bz2
35608  ) >"$at_stdout" 2>"$at_stderr"
35609 fi
35610 at_status=$?
35611 at_failed=false
35612 echo stderr:; tee stderr <"$at_stderr"
35613 echo >>"$at_stdout"; $as_echo "-rw------- jes/glone 10737418240 2002-06-15 21:18 10g
35614 -rw-r--r-- jes/glone           0 2002-06-15 14:53 file
35615 " | \
35616   $at_diff - "$at_stdout" || at_failed=:
35617 at_func_check_status 0 $at_status "$at_srcdir/pax-big-10g.at:26"
35618
35619 $at_failed && at_func_log_failure
35620 $at_traceon; }
35621
35622
35623
35624 cat >stderr.re <<'_ATEOF'
35625 tar: Record size = .*
35626 _ATEOF
35627
35628 awk '{print NR " " $0}' stderr > $$.1
35629 awk '{print NR " " $0}' stderr.re | join - $$.1 |
35630 while read NUM RE LINE
35631 do
35632   echo "$LINE" | grep -- "$RE" >/dev/null || exit 1
35633 done
35634
35635
35636   $at_traceoff
35637   $at_times_p && times >"$at_times_file"
35638 ) 5>&1 2>&1 | eval $at_tee_pipe
35639 at_status=`cat "$at_status_file"`
35640 #AT_STOP_98