Import upstream version 1.26
[debian/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 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121'
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;append03.at:19;append with name transformation;append append03;
642 13;xform-h.at:30;transforming hard links on create;transform xform xform-h;
643 14;xform01.at:26;transformations and GNU volume labels;transform xform xform01 volume;
644 15;exclude.at:23;exclude;exclude;
645 16;exclude01.at:17;exclude wildcards;exclude exclude01;
646 17;exclude02.at:17;exclude: anchoring;exclude exclude02;
647 18;exclude03.at:17;exclude: wildcards match slash;exclude exclude03;
648 19;exclude04.at:17;exclude: case insensitive;exclude exclude04;
649 20;exclude05.at:19;exclude: lots of excludes;exclude exclude05;
650 21;exclude06.at:24;exclude: long files in pax archives;exclude exclude06;
651 22;delete01.at:23;deleting a member after a big one;delete delete01;
652 23;delete02.at:23;deleting a member from stdin archive;delete delete02;
653 24;delete03.at:21;deleting members with long names;delete delete03;
654 25;delete04.at:23;deleting a large last member;delete delete04;
655 26;delete05.at:27;deleting non-existing member;delete delete05;
656 27;extrac01.at:23;extract over an existing directory;extract extract01;
657 28;extrac02.at:23;extracting symlinks over an existing file;extract extract02 symlink;
658 29;extrac03.at:23;extraction loops;extract extract03;
659 30;extrac04.at:23;extract + fnmatch;extract extract04 fnmatch;
660 31;extrac05.at:30;extracting selected members from pax;extract extract05;
661 32;extrac06.at:33;mode of extracted directories;extract extract06 directory mode;
662 33;extrac07.at:27;extracting symlinks to a read-only dir;extract extract07 read-only symlink;
663 34;extrac08.at:33;restoring mode on existing directory;extract extrac08;
664 35;extrac09.at:22;no need to save dir with unreadable . and ..;extract extrac09;
665 36;extrac10.at:27;-C and delayed setting of metadata;extract extrac10;
666 37;extrac11.at:23;scarce file descriptors;extract extrac11;
667 38;extrac12.at:23;extract dot permissions;extract extrac12;
668 39;extrac13.at:24;extract over symlinks;extract extrac13;
669 40;extrac14.at:23;extract -C symlink;extract extrac14;
670 41;extrac15.at:23;extract parent mkdir failure;extract extrac15;
671 42;extrac16.at:24;extract empty directory with -C;extract extrac16;
672 43;extrac17.at:19;name matching/transformation ordering;extract extrac17;
673 44;label01.at:19;single-volume label;label label01;
674 45;label02.at:19;multi-volume label;label label02 multi-label multivolume multiv;
675 46;label03.at:25;test-label option;label label03 test-label;
676 47;label04.at:25;label with non-create option;label label04;
677 48;label05.at:22;label with non-create option;label label05;
678 49;backup01.at:33;extracting existing dir with --backup;extract backup backup01;
679 50;gzip.at:23;gzip;gzip;
680 51;incremental.at:23;incremental;incremental incr00;
681 52;incr01.at:27;restore broken symlinks from incremental;incremental incr01;
682 53;incr02.at:32;restoring timestamps from incremental;incremental timestamp restore incr02;
683 54;listed01.at:26;--listed for individual files;listed incremental listed01;
684 55;listed02.at:28;working --listed;listed incremental listed02;
685 56;listed03.at:22;incremental dump when the parent directory is unreadable;listed incremental listed03;
686 57;listed04.at:24;--listed-incremental and --one-file-system;listed incremental listed04;
687 58;incr03.at:28;renamed files in incrementals;incremental incr03 rename;
688 59;incr04.at:29;proper icontents initialization;incremental incr04 icontents;
689 60;incr05.at:19;incremental dumps with -C;incremental incr05;
690 61;incr06.at:19;incremental dumps of nested directories;incremental incr06;
691 62;filerem01.at:34;file removed as we read it (ca. 22 seconds);create incremental filechange filerem filerem01;
692 63;filerem02.at:24;toplevel file removed (ca. 24 seconds);create incremental filechange filerem filerem02;
693 64;rename01.at:24;renamed dirs in incrementals;incremental rename rename01;
694 65;rename02.at:24;move between hierarchies;incremental rename rename02;
695 66;rename03.at:23;cyclic renames;incremental rename rename03 cyclic-rename;
696 67;rename04.at:27;renamed directory containing subdirectories;incremental rename04 rename;
697 68;rename05.at:24;renamed subdirectories;incremental rename05 rename;
698 69;chtype.at:27;changed file types in incrementals;incremental chtype;
699 70;ignfail.at:23;ignfail;ignfail;
700 71;link01.at:33;link count gt 2;hardlinks link01;
701 72;link02.at:32;preserve hard links with --remove-files;hardlinks link02;
702 73;link03.at:24;working -l with --remove-files;hardlinks link03;
703 74;link04.at:29;link count is 1 but multiple occurrences;hardlinks link04;
704 75;longv7.at:24;long names in V7 archives;longname longv7;
705 76;long01.at:28;long file names divisible by block size;longname long512;
706 77;lustar01.at:21;ustar: unsplittable file name;longname ustar lustar01;
707 78;lustar02.at:21;ustar: unsplittable path name;longname ustar lustar02;
708 79;lustar03.at:21;ustar: splitting long names;longname ustar lustar03;
709 80;multiv01.at:23;multivolume dumps from pipes;multivolume multiv multiv01;
710 81;multiv02.at:28;skipping a straddling member;multivolume multiv multiv02;
711 82;multiv03.at:30;MV archive & long filenames;multivolume multiv multiv03;
712 83;multiv04.at:36;split directory members in a MV archive;multivolume multiv incremental multiv04;
713 84;multiv05.at:26;Restoring after an out of sync volume;multivolume multiv multiv05 sync;
714 85;multiv06.at:27;Multivolumes with L=record_size;multivolume multiv multiv06;
715 86;multiv07.at:26;volumes split at an extended header;multivolume multiv multiv07 xsplit;
716 87;multiv08.at:23;multivolume header creation;multivolume multiv multiv08;
717 88;old.at:23;old archives;old;
718 89;recurse.at:21;recurse;recurse;
719 90;same-order01.at:26;working -C with --same-order;same-order same-order01;
720 91;same-order02.at:25;multiple -C options;same-order same-order02;
721 92;shortrec.at:25;short records;shortrec;
722 93;sparse01.at:21;sparse files;sparse sparse01;
723 94;sparse02.at:21;extracting sparse file over a pipe;sparse sparse02;
724 95;sparse03.at:21;storing sparse files > 8G;sparse sparse03;
725 96;sparse04.at:21;storing long sparse file names;sparse sparse04;
726 97;sparsemv.at:21;sparse files in MV archives;sparse multiv sparsemv;
727 98;spmvp00.at:21;sparse files in PAX MV archives, v.0.0;sparse multivolume multiv sparsemvp sparsemvp00;
728 99;spmvp01.at:21;sparse files in PAX MV archives, v.0.1;sparse multiv sparsemvp sparsemvp01;
729 100;spmvp10.at:21;sparse files in PAX MV archives, v.1.0;sparse multivolume multiv sparsemvp sparsemvp10;
730 101;update.at:28;update unchanged directories;update update00;
731 102;update01.at:29;update directories;update update01;
732 103;update02.at:26;update changed files;update update02;
733 104;verify.at:25;verify;verify;
734 105;volume.at:23;volume;volume volcheck;
735 106;volsize.at:29;volume header size;volume volsize;
736 107;comprec.at:21;compressed format recognition;comprec;
737 108;shortfile.at:26;short input files;shortfile shortfile0;
738 109;shortupd.at:29;updating short archives;shortfile shortfile1 shortupd;
739 110;truncate.at:29;truncate;truncate filechange;
740 111;grow.at:24;grow;grow filechange;
741 112;remfiles01.at:28;remove-files with compression;create remove-files remfiles01 gzip;
742 113;remfiles02.at:28;remove-files with compression: grand-child;create remove-files remfiles02 gzip;
743 114;remfiles03.at:28;remove-files with symbolic links;create remove-files remfiles03;
744 115;sigpipe.at:19;sigpipe handling;sigpipe;
745 116;gtarfail.at:21;gtarfail;star gtarfail;
746 117;gtarfail2.at:21;gtarfail2;star gtarfail2;
747 118;multi-fail.at:21;multi-fail;star multivolume multiv multi-fail;
748 119;ustar-big-2g.at:21;ustar-big-2g;star ustar-big-2g;
749 120;ustar-big-8g.at:21;ustar-big-8g;star ustar-big-8g;
750 121;pax-big-10g.at:21;pax-big-10g;star pax-big-10g;
751 "
752
753 # at_func_validate_ranges [NAME...]
754 # ---------------------------------
755 # Validate and normalize the test group number contained in each
756 # variable NAME.  Leading zeroes are treated as decimal.
757 at_func_validate_ranges ()
758 {
759   for at_grp
760   do
761     eval at_value=\$$at_grp
762     if test $at_value -lt 1 || test $at_value -gt 121; then
763       $as_echo "invalid test group: $at_value" >&2
764       exit 1
765     fi
766     case $at_value in
767       0*) # We want to treat leading 0 as decimal, like expr and test, but
768           # at_func_arith treats it as octal if it uses $(( )).
769           # With XSI shells, ${at_value#${at_value%%[1-9]*}} avoids the
770           # expr fork, but it is not worth the effort to determine if the
771           # shell supports XSI when the user can just avoid leading 0.
772           eval $at_grp='`expr $at_value + 0`' ;;
773     esac
774   done
775 }
776
777 at_prev=
778 for at_option
779 do
780   # If the previous option needs an argument, assign it.
781   if test -n "$at_prev"; then
782     at_option=$at_prev=$at_option
783     at_prev=
784   fi
785
786   case $at_option in
787   *=*) at_optarg=`expr "x$at_option" : 'x[^=]*=\(.*\)'` ;;
788   *)   at_optarg= ;;
789   esac
790
791   # Accept the important Cygnus configure options, so we can diagnose typos.
792
793   case $at_option in
794     --help | -h )
795         at_help_p=:
796         ;;
797
798     --list | -l )
799         at_list_p=:
800         ;;
801
802     --version | -V )
803         at_version_p=:
804         ;;
805
806     --clean | -c )
807         at_clean=:
808         ;;
809
810     --debug | -d )
811         at_debug_p=:
812         ;;
813
814     --errexit | -e )
815         at_debug_p=:
816         at_errexit_p=:
817         ;;
818
819     --verbose | -v )
820         at_verbose=; at_quiet=:
821         ;;
822
823     --trace | -x )
824         at_traceon='set -x'; at_traceoff='set +x'
825         ;;
826
827     [0-9] | [0-9][0-9] | [0-9][0-9][0-9] | [0-9][0-9][0-9][0-9])
828         at_func_validate_ranges at_option
829         at_groups="$at_groups$at_option "
830         ;;
831
832     # Ranges
833     [0-9]- | [0-9][0-9]- | [0-9][0-9][0-9]- | [0-9][0-9][0-9][0-9]-)
834         at_range_start=`echo $at_option |tr -d X-`
835         at_func_validate_ranges at_range_start
836         at_range=`$as_echo " $at_groups_all " | \
837           sed -e 's/^.* \('$at_range_start' \)/\1/'`
838         at_groups="$at_groups$at_range "
839         ;;
840
841     -[0-9] | -[0-9][0-9] | -[0-9][0-9][0-9] | -[0-9][0-9][0-9][0-9])
842         at_range_end=`echo $at_option |tr -d X-`
843         at_func_validate_ranges at_range_end
844         at_range=`$as_echo " $at_groups_all " | \
845           sed -e 's/\( '$at_range_end'\) .*$/\1/'`
846         at_groups="$at_groups$at_range "
847         ;;
848
849     [0-9]-[0-9] | [0-9]-[0-9][0-9] | [0-9]-[0-9][0-9][0-9] | \
850     [0-9]-[0-9][0-9][0-9][0-9] | [0-9][0-9]-[0-9][0-9] | \
851     [0-9][0-9]-[0-9][0-9][0-9] | [0-9][0-9]-[0-9][0-9][0-9][0-9] | \
852     [0-9][0-9][0-9]-[0-9][0-9][0-9] | \
853     [0-9][0-9][0-9]-[0-9][0-9][0-9][0-9] | \
854     [0-9][0-9][0-9][0-9]-[0-9][0-9][0-9][0-9] )
855         at_range_start=`expr $at_option : '\(.*\)-'`
856         at_range_end=`expr $at_option : '.*-\(.*\)'`
857         if test $at_range_start -gt $at_range_end; then
858           at_tmp=$at_range_end
859           at_range_end=$at_range_start
860           at_range_start=$at_tmp
861         fi
862         at_func_validate_ranges at_range_start at_range_end
863         at_range=`$as_echo " $at_groups_all " | \
864           sed -e 's/^.*\( '$at_range_start' \)/\1/' \
865               -e 's/\( '$at_range_end'\) .*$/\1/'`
866         at_groups="$at_groups$at_range "
867         ;;
868
869     # Directory selection.
870     --directory | -C )
871         at_prev=--directory
872         ;;
873     --directory=* )
874         at_change_dir=:
875         at_dir=$at_optarg
876         ;;
877
878     # Keywords.
879     --keywords | -k )
880         at_prev=--keywords
881         ;;
882     --keywords=* )
883         at_groups_selected=$at_help_all
884         at_save_IFS=$IFS
885         IFS=,
886         set X $at_optarg
887         shift
888         IFS=$at_save_IFS
889         for at_keyword
890         do
891           at_invert=
892           case $at_keyword in
893           '!'*)
894             at_invert="-v"
895             at_keyword=`expr "X$at_keyword" : 'X!\(.*\)'`
896             ;;
897           esac
898           # It is on purpose that we match the test group titles too.
899           at_groups_selected=`$as_echo "$at_groups_selected" |
900               grep -i $at_invert "^[1-9][^;]*;.*[; ]$at_keyword[ ;]"`
901         done
902         # Smash the newlines.
903         at_groups_selected=`$as_echo "$at_groups_selected" | sed 's/;.*//' |
904           tr "$as_nl" ' '
905         `
906         at_groups="$at_groups$at_groups_selected "
907         ;;
908
909     *=*)
910         at_envvar=`expr "x$at_option" : 'x\([^=]*\)='`
911         # Reject names that are not valid shell variable names.
912         case $at_envvar in
913           '' | [0-9]* | *[!_$as_cr_alnum]* )
914             { { $as_echo "$as_me:$LINENO: error: invalid variable name: $at_envvar" >&5
915 $as_echo "$as_me: error: invalid variable name: $at_envvar" >&2;}
916    { (exit 1); exit 1; }; } ;;
917         esac
918         at_value=`$as_echo "$at_optarg" | sed "s/'/'\\\\\\\\''/g"`
919         # Export now, but save eval for later and for debug scripts.
920         export $at_envvar
921         at_debug_args="$at_debug_args $at_envvar='$at_value'"
922         ;;
923
924      *) $as_echo "$as_me: invalid option: $at_option" >&2
925         $as_echo "Try \`$0 --help' for more information." >&2
926         exit 1
927         ;;
928   esac
929 done
930
931 # Verify our last option didn't require an argument
932 if test -n "$at_prev"; then
933   { { $as_echo "$as_me:$LINENO: error: \`$at_prev' requires an argument." >&5
934 $as_echo "$as_me: error: \`$at_prev' requires an argument." >&2;}
935    { (exit 1); exit 1; }; }
936 fi
937
938
939 # Selected test groups.
940 if test -z "$at_groups"; then
941   at_groups=$at_groups_all
942 else
943   # Sort the tests, removing duplicates.
944   at_groups=`$as_echo "$at_groups" | tr ' ' "$as_nl" | sort -nu`
945 fi
946
947 # Help message.
948 if $at_help_p; then
949   cat <<_ATEOF || at_write_fail=1
950 Usage: $0 [OPTION]... [VARIABLE=VALUE]... [TESTS]
951
952 Run all the tests, or the selected TESTS, given by numeric ranges, and
953 save a detailed log file.  Upon failure, create debugging scripts.
954
955 You should not change environment variables unless explicitly passed
956 as command line arguments.  Set \`AUTOTEST_PATH' to select the executables
957 to exercise.  Each relative directory is expanded as build and source
958 directories relatively to the top level of this distribution.  E.g.,
959
960   $ $0 AUTOTEST_PATH=bin
961
962 possibly amounts into
963
964   PATH=/tmp/foo-1.0/bin:/src/foo-1.0/bin:\$PATH
965 _ATEOF
966 cat <<_ATEOF || at_write_fail=1
967
968 Operation modes:
969   -h, --help     print the help message, then exit
970   -V, --version  print version number, then exit
971   -c, --clean    remove all the files this test suite might create and exit
972   -l, --list     describes all the tests, or the selected TESTS
973 _ATEOF
974 cat <<_ATEOF || at_write_fail=1
975
976 Execution tuning:
977   -C, --directory=DIR
978                  change to directory DIR before starting
979   -k, --keywords=KEYWORDS
980                  select the tests matching all the comma-separated KEYWORDS
981                  multiple \`-k' accumulate; prefixed \`!' negates a KEYWORD
982   -e, --errexit  abort as soon as a test fails; implies --debug
983   -v, --verbose  force more detailed output
984                  default for debugging scripts
985   -d, --debug    inhibit clean up and top-level logging
986                  default for debugging scripts
987   -x, --trace    enable tests shell tracing
988 _ATEOF
989 cat <<_ATEOF || at_write_fail=1
990
991 Report bugs to <bug-tar@gnu.org>.
992 _ATEOF
993   exit $at_write_fail
994 fi
995
996 # List of tests.
997 if $at_list_p; then
998   cat <<_ATEOF || at_write_fail=1
999 GNU tar 1.26 test suite test groups:
1000
1001  NUM: FILE-NAME:LINE     TEST-GROUP-NAME
1002       KEYWORDS
1003
1004 _ATEOF
1005   # Passing at_groups is tricky.  We cannot use it to form a literal string
1006   # or regexp because of the limitation of AIX awk.  And Solaris' awk
1007   # doesn't grok more than 99 fields in a record, so we have to use `split'.
1008   # at_groups needs to be space-separated for this script to work.
1009   case $at_groups in
1010     *"$as_nl"* )
1011       at_groups=`$as_echo "$at_groups" | tr "$as_nl" ' '` ;;
1012   esac
1013   $as_echo "$at_groups$as_nl$at_help_all" |
1014     awk 'BEGIN { FS = ";" }
1015          NR == 1 {
1016            for (n = split($ 0, a, " "); n; n--) selected[a[n]] = 1
1017            next
1018          }
1019          {
1020            if (selected[$ 1]) {
1021              printf " %3d: %-18s %s\n", $ 1, $ 2, $ 3
1022              if ($ 4) printf "      %s\n", $ 4
1023            }
1024          }' || at_write_fail=1
1025   exit $at_write_fail
1026 fi
1027 if $at_version_p; then
1028   $as_echo "$as_me (GNU tar 1.26)" &&
1029   cat <<\_ACEOF || at_write_fail=1
1030
1031 Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
1032 Free Software Foundation, Inc.
1033 This test suite is free software; the Free Software Foundation gives
1034 unlimited permission to copy, distribute and modify it.
1035 _ACEOF
1036   exit $at_write_fail
1037 fi
1038
1039 # Should we print banners?  at_groups is space-separated for entire test,
1040 # newline-separated if only a subset of the testsuite is run.
1041 case $at_groups in
1042   *' '*' '* | *"$as_nl"*"$as_nl"* )
1043       at_print_banners=: ;;
1044   * ) at_print_banners=false ;;
1045 esac
1046 # Text for banner N, set to empty once printed.
1047
1048 # Take any -C into account.
1049 if $at_change_dir ; then
1050   if test x- = "x$at_dir" ; then
1051     at_dir=./-
1052   fi
1053   test x != "x$at_dir" && cd "$at_dir" \
1054     || { { $as_echo "$as_me:$LINENO: error: unable to change directory" >&5
1055 $as_echo "$as_me: error: unable to change directory" >&2;}
1056    { (exit 1); exit 1; }; }
1057   at_dir=`pwd`
1058 fi
1059
1060 # Load the config files for any default variable assignments.
1061 for at_file in atconfig atlocal
1062 do
1063   test -r $at_file || continue
1064   . ./$at_file || { { $as_echo "$as_me:$LINENO: error: invalid content: $at_file" >&5
1065 $as_echo "$as_me: error: invalid content: $at_file" >&2;}
1066    { (exit 1); exit 1; }; }
1067 done
1068
1069 # Autoconf <=2.59b set at_top_builddir instead of at_top_build_prefix:
1070 : ${at_top_build_prefix=$at_top_builddir}
1071
1072 # Perform any assignments requested during argument parsing.
1073 eval "$at_debug_args"
1074
1075 # atconfig delivers names relative to the directory the test suite is
1076 # in, but the groups themselves are run in testsuite-dir/group-dir.
1077 if test -n "$at_top_srcdir"; then
1078   builddir=../..
1079   for at_dir_var in srcdir top_srcdir top_build_prefix
1080   do
1081     at_val=`eval 'as_val=${'at_$at_dir_var'}
1082                  $as_echo "$as_val"'`
1083     case $at_val in
1084       [\\/$]* | ?:[\\/]* ) at_prefix= ;;
1085       *) at_prefix=../../ ;;
1086     esac
1087     eval "$at_dir_var=\$at_prefix\$at_val"
1088   done
1089 fi
1090
1091 ## ------------------- ##
1092 ## Directory structure ##
1093 ## ------------------- ##
1094
1095 # This is the set of directories and files used by this script
1096 # (non-literals are capitalized):
1097 #
1098 # TESTSUITE         - the testsuite
1099 # TESTSUITE.log     - summarizes the complete testsuite run
1100 # TESTSUITE.dir/    - created during a run, remains after -d or failed test
1101 # + at-groups/      - during a run: status of all groups in run
1102 # | + NNN/          - during a run: meta-data about test group NNN
1103 # | | + check-line  - location (source file and line) of current AT_CHECK
1104 # | | + status      - exit status of current AT_CHECK
1105 # | | + stdout      - stdout of current AT_CHECK
1106 # | | + stder1      - stderr, including trace
1107 # | | + stderr      - stderr, with trace filtered out
1108 # | | + test-source - portion of testsuite that defines group
1109 # | | + times       - timestamps for computing duration
1110 # | | + pass        - created if group passed
1111 # | | + xpass       - created if group xpassed
1112 # | | + fail        - created if group failed
1113 # | | + xfail       - created if group xfailed
1114 # | | + skip        - created if group skipped
1115 # + at-stop         - during a run: end the run if this file exists
1116 # + at-source-lines - during a run: cache of TESTSUITE line numbers for extraction
1117 # + 0..NNN/         - created for each group NNN, remains after -d or failed test
1118 # | + TESTSUITE.log - summarizes the group results
1119 # | + ...           - files created during the group
1120
1121 # The directory the whole suite works in.
1122 # Should be absolute to let the user `cd' at will.
1123 at_suite_dir=$at_dir/$as_me.dir
1124 # The file containing the suite.
1125 at_suite_log=$at_dir/$as_me.log
1126 # The directory containing helper files per test group.
1127 at_helper_dir=$at_suite_dir/at-groups
1128 # Stop file: if it exists, do not start new jobs.
1129 at_stop_file=$at_suite_dir/at-stop
1130
1131 if $at_clean; then
1132   test -d "$at_suite_dir" &&
1133     find "$at_suite_dir" -type d ! -perm -700 -exec chmod u+rwx \{\} \;
1134   rm -f -r "$at_suite_dir" "$at_suite_log"
1135   exit $?
1136 fi
1137
1138 # Don't take risks: use only absolute directories in PATH.
1139 #
1140 # For stand-alone test suites (ie. atconfig was not found),
1141 # AUTOTEST_PATH is relative to `.'.
1142 #
1143 # For embedded test suites, AUTOTEST_PATH is relative to the top level
1144 # of the package.  Then expand it into build/src parts, since users
1145 # may create executables in both places.
1146 AUTOTEST_PATH=`$as_echo "$AUTOTEST_PATH" | sed "s|:|$PATH_SEPARATOR|g"`
1147 at_path=
1148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1149 for as_dir in $AUTOTEST_PATH $PATH
1150 do
1151   IFS=$as_save_IFS
1152   test -z "$as_dir" && as_dir=.
1153   test -n "$at_path" && at_path=$at_path$PATH_SEPARATOR
1154 case $as_dir in
1155   [\\/]* | ?:[\\/]* )
1156     at_path=$at_path$as_dir
1157     ;;
1158   * )
1159     if test -z "$at_top_build_prefix"; then
1160       # Stand-alone test suite.
1161       at_path=$at_path$as_dir
1162     else
1163       # Embedded test suite.
1164       at_path=$at_path$at_top_build_prefix$as_dir$PATH_SEPARATOR
1165       at_path=$at_path$at_top_srcdir/$as_dir
1166     fi
1167     ;;
1168 esac
1169 done
1170 IFS=$as_save_IFS
1171
1172
1173 # Now build and simplify PATH.
1174 #
1175 # There might be directories that don't exist, but don't redirect
1176 # builtins' (eg., cd) stderr directly: Ultrix's sh hates that.
1177 at_new_path=
1178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1179 for as_dir in $at_path
1180 do
1181   IFS=$as_save_IFS
1182   test -z "$as_dir" && as_dir=.
1183   test -d "$as_dir" || continue
1184 case $as_dir in
1185   [\\/]* | ?:[\\/]* ) ;;
1186   * ) as_dir=`(cd "$as_dir" && pwd) 2>/dev/null` ;;
1187 esac
1188 case $PATH_SEPARATOR$at_new_path$PATH_SEPARATOR in
1189   *$PATH_SEPARATOR$as_dir$PATH_SEPARATOR*) ;;
1190   $PATH_SEPARATOR$PATH_SEPARATOR) at_new_path=$as_dir ;;
1191   *) at_new_path=$at_new_path$PATH_SEPARATOR$as_dir ;;
1192 esac
1193 done
1194 IFS=$as_save_IFS
1195
1196 PATH=$at_new_path
1197 export PATH
1198
1199 # Setting up the FDs.
1200 # 5 is the log file.  Not to be overwritten if `-d'.
1201 if $at_debug_p; then
1202   at_suite_log=/dev/null
1203 else
1204   : >"$at_suite_log"
1205 fi
1206 exec 5>>"$at_suite_log"
1207
1208 # Banners and logs.
1209 cat <<\_ASBOX
1210 ## ------------------------ ##
1211 ## GNU tar 1.26 test suite. ##
1212 ## ------------------------ ##
1213 _ASBOX
1214 {
1215   cat <<\_ASBOX
1216 ## ------------------------ ##
1217 ## GNU tar 1.26 test suite. ##
1218 ## ------------------------ ##
1219 _ASBOX
1220   echo
1221
1222   $as_echo "$as_me: command line was:"
1223   $as_echo "  \$ $0 $at_cli_args"
1224   echo
1225
1226   # Try to find a few ChangeLogs in case it might help determining the
1227   # exact version.  Use the relative dir: if the top dir is a symlink,
1228   # find will not follow it (and options to follow the links are not
1229   # portable), which would result in no output here.  Prune directories
1230   # matching the package tarname, since they tend to be leftovers from
1231   # `make dist' or `make distcheck' and contain redundant or stale logs.
1232   if test -n "$at_top_srcdir"; then
1233     cat <<\_ASBOX
1234 ## ----------- ##
1235 ## ChangeLogs. ##
1236 ## ----------- ##
1237 _ASBOX
1238     echo
1239     for at_file in `find "$at_top_srcdir" -name "tar-*" -prune -o -name ChangeLog -print`
1240     do
1241       $as_echo "$as_me: $at_file:"
1242       sed 's/^/| /;10q' $at_file
1243       echo
1244     done
1245
1246   fi
1247
1248   {
1249 cat <<_ASUNAME
1250 ## --------- ##
1251 ## Platform. ##
1252 ## --------- ##
1253
1254 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1255 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1256 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1257 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1258 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1259
1260 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1261 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1262
1263 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1264 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1265 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1266 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1267 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1268 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1269 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1270
1271 _ASUNAME
1272
1273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1274 for as_dir in $PATH
1275 do
1276   IFS=$as_save_IFS
1277   test -z "$as_dir" && as_dir=.
1278   $as_echo "PATH: $as_dir"
1279 done
1280 IFS=$as_save_IFS
1281
1282 }
1283   echo
1284
1285   # Contents of the config files.
1286   for at_file in atconfig atlocal
1287   do
1288     test -r $at_file || continue
1289     $as_echo "$as_me: $at_file:"
1290     sed 's/^/| /' $at_file
1291     echo
1292   done
1293 } >&5
1294
1295
1296 ## --------------- ##
1297 ## Shell functions ##
1298 ## --------------- ##
1299
1300 # at_func_banner NUMBER
1301 # ---------------------
1302 # Output banner NUMBER, provided the testsuite is running multiple groups
1303 # and this particular banner has not yet been printed.
1304 at_func_banner ()
1305 {
1306   $at_print_banners || return 0
1307   eval at_banner_text=\$at_banner_text_$1
1308   test "x$at_banner_text" = x && return 0
1309   eval at_banner_text_$1=
1310   $as_echo "$as_nl$at_banner_text$as_nl"
1311 } # at_func_banner
1312
1313 # at_func_check_newline COMMAND
1314 # -----------------------------
1315 # Test if COMMAND includes a newline and, if so, print a message and return
1316 # exit code 1
1317 at_func_check_newline ()
1318 {
1319   case "$1" in
1320  *'
1321 '*) echo 'Not enabling shell tracing (command contains an embedded newline)'
1322     return 1 ;;
1323  *) return 0 ;;
1324   esac
1325 }
1326
1327 # at_func_filter_trace EXIT-CODE
1328 # ------------------------------
1329 # Split the contents of file "$at_stder1" into the "set -x" trace (on stderr)
1330 # and the other lines (on file "$at_stderr").  Return the exit code EXIT-CODE.
1331 at_func_filter_trace ()
1332 {
1333   grep '^ *+' "$at_stder1" >&2
1334   grep -v '^ *+' "$at_stder1" >"$at_stderr"
1335   return $1
1336 }
1337
1338 # at_func_log_failure FILE-LIST
1339 # -----------------------------
1340 # Copy the files in the list on stdout with a "> " prefix, and exit the shell
1341 # with a failure exit code.
1342 at_func_log_failure ()
1343 {
1344   for file
1345     do $as_echo "$file:"; sed 's/^/> /' "$file"; done
1346   echo 1 > "$at_status_file"
1347   exit 1
1348 }
1349
1350 # at_func_check_skip EXIT-CODE
1351 # ----------------------------
1352 # Check whether EXIT-CODE is the special exit code 77, and if so exit the shell
1353 # with that same exit code.
1354 at_func_check_skip ()
1355 {
1356   case $1 in
1357     77) echo 77 > "$at_status_file"; exit 77;;
1358   esac
1359 }
1360
1361 # at_func_check_status EXPECTED EXIT-CODE LINE
1362 # --------------------------------------------
1363 # Check whether EXIT-CODE is the expected exit code, and if so do nothing.
1364 # Otherwise, if it is 77 exit the shell with that same exit code; if it is
1365 # anything else print an error message and fail the test.
1366 at_func_check_status ()
1367 {
1368   case $2 in
1369     $1 ) ;;
1370     77) echo 77 > "$at_status_file"; exit 77;;
1371     *) $as_echo "$3: exit code was $2, expected $1"
1372       at_failed=:;;
1373   esac
1374 }
1375
1376 # at_func_diff_devnull FILE
1377 # -------------------------
1378 # Emit a diff between /dev/null and FILE.  Uses "test -s" to avoid useless
1379 # diff invocations.
1380 at_func_diff_devnull ()
1381 {
1382   test -s "$1" || return 0
1383   $at_diff "$at_devnull" "$1"
1384 }
1385
1386 # at_func_test NUMBER
1387 # -------------------
1388 # Parse out test NUMBER from the tail of this file.
1389 at_func_test ()
1390 {
1391   eval at_sed=\$at_sed$1
1392   sed "$at_sed" "$at_myself" > "$at_test_source"
1393 }
1394
1395 # at_func_create_debugging_script
1396 # -------------------------------
1397 # Create the debugging script $at_group_dir/run which will reproduce the
1398 # current test group.
1399 at_func_create_debugging_script ()
1400 {
1401   {
1402     echo "#! /bin/sh" &&
1403     echo 'test "${ZSH_VERSION+set}" = set && alias -g '\''${1+"$@"}'\''='\''"$@"'\''' &&
1404     $as_echo "cd '$at_dir'" &&
1405     $as_echo "exec \${CONFIG_SHELL-$SHELL} \"$at_myself\" -v -d $at_debug_args $at_group \${1+\"\$@\"}" &&
1406     echo 'exit 1'
1407   } >"$at_group_dir/run" &&
1408   chmod +x "$at_group_dir/run"
1409 }
1410
1411 # at_func_arith
1412 # -------------
1413 # Arithmetic evaluation, avoids expr if the shell is sane.  The
1414 # interpretation of leading zeroes is unspecified.
1415 #
1416 # subshell and eval are needed to keep Solaris sh from bailing out:
1417 if ( eval 'test $(( 1 + 1 )) = 2' ) 2>/dev/null; then
1418   # With "$@", bash does not split positional parameters:
1419   eval 'at_func_arith ()
1420   {
1421     at_func_arith_result=$(( $* ))
1422   }'
1423 else
1424   at_func_arith ()
1425   {
1426     at_func_arith_result=`expr "$@"`
1427   }
1428 fi
1429
1430 ## ---------------------- ##
1431 ## End of shell functions ##
1432 ## ---------------------- ##
1433 {
1434   cat <<\_ASBOX
1435 ## ---------------- ##
1436 ## Tested programs. ##
1437 ## ---------------- ##
1438 _ASBOX
1439   echo
1440 } >&5
1441
1442 # Report what programs are being tested.
1443 for at_program in : $at_tested
1444 do
1445   test "$at_program" = : && continue
1446   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1447 for as_dir in $PATH
1448 do
1449   IFS=$as_save_IFS
1450   test -z "$as_dir" && as_dir=.
1451   test -f "$as_dir/$at_program" && break
1452 done
1453 IFS=$as_save_IFS
1454
1455   if test -f "$as_dir/$at_program"; then
1456     {
1457       $as_echo "$at_srcdir/testsuite.at:112: $as_dir/$at_program --version"
1458       "$as_dir/$at_program" --version </dev/null
1459       echo
1460     } >&5 2>&1
1461   else
1462     { { $as_echo "$as_me:$LINENO: error: cannot find $at_program" >&5
1463 $as_echo "$as_me: error: cannot find $at_program" >&2;}
1464    { (exit 1); exit 1; }; }
1465   fi
1466 done
1467
1468 {
1469   cat <<\_ASBOX
1470 ## ------------------ ##
1471 ## Running the tests. ##
1472 ## ------------------ ##
1473 _ASBOX
1474 } >&5
1475
1476 at_start_date=`date`
1477 at_start_time=`date +%s 2>/dev/null`
1478 $as_echo "$as_me: starting at: $at_start_date" >&5
1479
1480 # Create the master directory if it doesn't already exist.
1481 test -d "$at_suite_dir" ||
1482   mkdir "$at_suite_dir" ||
1483   { { $as_echo "$as_me:$LINENO: error: cannot create '$at_suite_dir'" >&5
1484 $as_echo "$as_me: error: cannot create '$at_suite_dir'" >&2;}
1485    { (exit 1); exit 1; }; }
1486
1487 # Can we diff with `/dev/null'?  DU 5.0 refuses.
1488 if diff /dev/null /dev/null >/dev/null 2>&1; then
1489   at_devnull=/dev/null
1490 else
1491   at_devnull=$at_suite_dir/devnull
1492   >"$at_devnull"
1493 fi
1494
1495 # Use `diff -u' when possible.
1496 if at_diff=`diff -u "$at_devnull" "$at_devnull" 2>&1` && test -z "$at_diff"
1497 then
1498   at_diff='diff -u'
1499 else
1500   at_diff=diff
1501 fi
1502
1503 # Get the last needed group.
1504 for at_group in : $at_groups; do :; done
1505
1506 # Extract the start and end lines of each test group at the tail
1507 # of this file
1508 awk '
1509 BEGIN { FS="\a" }
1510 /^#AT_START_/ {
1511   start = NR
1512 }
1513 /^#AT_STOP_/ {
1514   test = substr ($ 0, 10)
1515   print "at_sed" test "=\"1," start "d;" (NR-1) "q\""
1516   if (test == "'"$at_group"'") exit
1517 }' "$at_myself" > "$at_suite_dir/at-source-lines" &&
1518 . "$at_suite_dir/at-source-lines" ||
1519   { { $as_echo "$as_me:$LINENO: error: cannot create test line number cache" >&5
1520 $as_echo "$as_me: error: cannot create test line number cache" >&2;}
1521    { (exit 1); exit 1; }; }
1522 rm -f "$at_suite_dir/at-source-lines"
1523
1524 # Set up helper dirs.
1525 rm -rf "$at_helper_dir" &&
1526 mkdir "$at_helper_dir" &&
1527 cd "$at_helper_dir" &&
1528 { test -z "$at_groups" || mkdir $at_groups; } ||
1529 { { $as_echo "$as_me:$LINENO: error: testsuite directory setup failed" >&5
1530 $as_echo "$as_me: error: testsuite directory setup failed" >&2;}
1531    { (exit 1); exit 1; }; }
1532
1533 # Functions for running a test group.  We leave the actual
1534 # test group execution outside of a shell function in order
1535 # to avoid hitting zsh 4.x exit status bugs.
1536
1537 # at_func_group_prepare
1538 # ---------------------
1539 # Prepare running a test group
1540 at_func_group_prepare ()
1541 {
1542   # The directory for additional per-group helper files.
1543   at_job_dir=$at_helper_dir/$at_group
1544   # The file containing the location of the last AT_CHECK.
1545   at_check_line_file=$at_job_dir/check-line
1546   # The file containing the exit status of the last command.
1547   at_status_file=$at_job_dir/status
1548   # The files containing the output of the tested commands.
1549   at_stdout=$at_job_dir/stdout
1550   at_stder1=$at_job_dir/stder1
1551   at_stderr=$at_job_dir/stderr
1552   # The file containing the code for a test group.
1553   at_test_source=$at_job_dir/test-source
1554   # The file containing dates.
1555   at_times_file=$at_job_dir/times
1556
1557   # Be sure to come back to the top test directory.
1558   cd "$at_suite_dir"
1559
1560   # Clearly separate the test groups when verbose.
1561   $at_first || $at_verbose echo
1562
1563   at_group_normalized=$at_group
1564
1565   eval 'while :; do
1566     case $at_group_normalized in #(
1567     '"$at_format"'*) break;;
1568     esac
1569     at_group_normalized=0$at_group_normalized
1570   done'
1571
1572
1573   # Create a fresh directory for the next test group, and enter.
1574   at_group_dir=$at_suite_dir/$at_group_normalized
1575   at_group_log=$at_group_dir/$as_me.log
1576   if test -d "$at_group_dir"; then
1577     find "$at_group_dir" -type d ! -perm -700 -exec chmod u+rwx \{\} \;
1578     rm -fr "$at_group_dir" ||
1579     { $as_echo "$as_me:$LINENO: WARNING: test directory for $at_group_normalized could not be cleaned." >&5
1580 $as_echo "$as_me: WARNING: test directory for $at_group_normalized could not be cleaned." >&2;}
1581   fi
1582   # Be tolerant if the above `rm' was not able to remove the directory.
1583   { as_dir="$at_group_dir"
1584   case $as_dir in #(
1585   -*) as_dir=./$as_dir;;
1586   esac
1587   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
1588     as_dirs=
1589     while :; do
1590       case $as_dir in #(
1591       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
1592       *) as_qdir=$as_dir;;
1593       esac
1594       as_dirs="'$as_qdir' $as_dirs"
1595       as_dir=`$as_dirname -- "$as_dir" ||
1596 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1597          X"$as_dir" : 'X\(//\)[^/]' \| \
1598          X"$as_dir" : 'X\(//\)$' \| \
1599          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
1600 $as_echo X"$as_dir" |
1601     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1602             s//\1/
1603             q
1604           }
1605           /^X\(\/\/\)[^/].*/{
1606             s//\1/
1607             q
1608           }
1609           /^X\(\/\/\)$/{
1610             s//\1/
1611             q
1612           }
1613           /^X\(\/\).*/{
1614             s//\1/
1615             q
1616           }
1617           s/.*/./; q'`
1618       test -d "$as_dir" && break
1619     done
1620     test -z "$as_dirs" || eval "mkdir $as_dirs"
1621   } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
1622 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
1623    { (exit 1); exit 1; }; }; }
1624
1625   echo 0 > "$at_status_file"
1626
1627   # In verbose mode, append to the log file *and* show on
1628   # the standard output; in quiet mode only write to the log.
1629   if test -z "$at_verbose"; then
1630     at_tee_pipe='tee -a "$at_group_log"'
1631   else
1632     at_tee_pipe='cat >> "$at_group_log"'
1633   fi
1634 }
1635
1636 # at_func_group_postprocess
1637 # -------------------------
1638 at_func_group_postprocess ()
1639 {
1640   # Be sure to come back to the suite directory, in particular
1641   # since below we might `rm' the group directory we are in currently.
1642   cd "$at_suite_dir"
1643
1644   if test ! -f "$at_check_line_file"; then
1645     sed "s/^ */$as_me: WARNING: /" <<_ATEOF
1646       A failure happened in a test group before any test could be
1647       run. This means that test suite is improperly designed.  Please
1648       report this failure to <bug-tar@gnu.org>.
1649 _ATEOF
1650     $as_echo "$at_setup_line" >"$at_check_line_file"
1651   fi
1652   $at_verbose $as_echo_n "$at_group. $at_setup_line: "
1653   $as_echo_n "$at_group. $at_setup_line: " >> "$at_group_log"
1654   case $at_xfail:$at_status in
1655     yes:0)
1656         at_msg="UNEXPECTED PASS"
1657         at_res=xpass
1658         at_errexit=$at_errexit_p
1659         ;;
1660     no:0)
1661         at_msg="ok"
1662         at_res=pass
1663         at_errexit=false
1664         ;;
1665     *:77)
1666         at_msg='skipped ('`cat "$at_check_line_file"`')'
1667         at_res=skip
1668         at_errexit=false
1669         ;;
1670     yes:*)
1671         at_msg='expected failure ('`cat "$at_check_line_file"`')'
1672         at_res=xfail
1673         at_errexit=false
1674         ;;
1675     no:*)
1676         at_msg='FAILED ('`cat "$at_check_line_file"`')'
1677         at_res=fail
1678         at_errexit=$at_errexit_p
1679         ;;
1680   esac
1681   echo "$at_res" > "$at_job_dir/$at_res"
1682   # Make sure there is a separator even with long titles.
1683   $as_echo " $at_msg"
1684   at_log_msg="$at_group. $at_desc ($at_setup_line): $at_msg"
1685   case $at_status in
1686     0|77)
1687       # $at_times_file is only available if the group succeeded.
1688       # We're not including the group log, so the success message
1689       # is written in the global log separately.  But we also
1690       # write to the group log in case they're using -d.
1691       if test -f "$at_times_file"; then
1692         at_log_msg="$at_log_msg     ("`sed 1d "$at_times_file"`')'
1693         rm -f "$at_times_file"
1694       fi
1695       $as_echo "$at_log_msg" >> "$at_group_log"
1696       $as_echo "$at_log_msg" >&5
1697
1698       # Cleanup the group directory, unless the user wants the files.
1699       if $at_debug_p; then
1700         at_func_create_debugging_script
1701       else
1702         if test -d "$at_group_dir"; then
1703           find "$at_group_dir" -type d ! -perm -700 -exec chmod u+rwx \{\} \;
1704           rm -fr "$at_group_dir"
1705         fi
1706         rm -f "$at_test_source"
1707       fi
1708       ;;
1709     *)
1710       # Upon failure, include the log into the testsuite's global
1711       # log.  The failure message is written in the group log.  It
1712       # is later included in the global log.
1713       $as_echo "$at_log_msg" >> "$at_group_log"
1714
1715       # Upon failure, keep the group directory for autopsy, and create
1716       # the debugging script.  With -e, do not start any further tests.
1717       at_func_create_debugging_script
1718       if $at_errexit; then
1719         echo stop > "$at_stop_file"
1720       fi
1721       ;;
1722   esac
1723 }
1724
1725
1726 ## ------------ ##
1727 ## Driver loop. ##
1728 ## ------------ ##
1729
1730 rm -f "$at_stop_file"
1731 at_first=:
1732
1733 for at_group in $at_groups; do
1734   at_func_group_prepare
1735   if cd "$at_group_dir" &&
1736      at_func_test $at_group &&
1737      . "$at_test_source"; then :; else
1738     { $as_echo "$as_me:$LINENO: WARNING: unable to parse test group: $at_group" >&5
1739 $as_echo "$as_me: WARNING: unable to parse test group: $at_group" >&2;}
1740     at_failed=:
1741   fi
1742   at_func_group_postprocess
1743   test -f "$at_stop_file" && break
1744   at_first=false
1745 done
1746
1747 # Wrap up the test suite with summary statistics.
1748 cd "$at_helper_dir"
1749
1750 # Use ?..???? when the list must remain sorted, the faster * otherwise.
1751 at_pass_list=`for f in */pass; do echo $f; done | sed '/\*/d; s,/pass,,'`
1752 at_skip_list=`for f in */skip; do echo $f; done | sed '/\*/d; s,/skip,,'`
1753 at_xfail_list=`for f in */xfail; do echo $f; done | sed '/\*/d; s,/xfail,,'`
1754 at_xpass_list=`for f in ?/xpass ??/xpass ???/xpass ????/xpass; do
1755                  echo $f; done | sed '/?/d; s,/xpass,,'`
1756 at_fail_list=`for f in ?/fail ??/fail ???/fail ????/fail; do
1757                 echo $f; done | sed '/?/d; s,/fail,,'`
1758
1759 set X $at_pass_list $at_xpass_list $at_xfail_list $at_fail_list $at_skip_list
1760 shift; at_group_count=$#
1761 set X $at_xpass_list; shift; at_xpass_count=$#; at_xpass_list=$*
1762 set X $at_xfail_list; shift; at_xfail_count=$#
1763 set X $at_fail_list; shift; at_fail_count=$#; at_fail_list=$*
1764 set X $at_skip_list; shift; at_skip_count=$#
1765
1766 at_func_arith $at_group_count - $at_skip_count
1767 at_run_count=$at_func_arith_result
1768 at_func_arith $at_xpass_count + $at_fail_count
1769 at_unexpected_count=$at_func_arith_result
1770 at_func_arith $at_xfail_count + $at_fail_count
1771 at_total_fail_count=$at_func_arith_result
1772
1773 # Back to the top directory.
1774 cd "$at_dir"
1775 rm -rf "$at_helper_dir"
1776
1777 # Compute the duration of the suite.
1778 at_stop_date=`date`
1779 at_stop_time=`date +%s 2>/dev/null`
1780 $as_echo "$as_me: ending at: $at_stop_date" >&5
1781 case $at_start_time,$at_stop_time in
1782   [0-9]*,[0-9]*)
1783     at_func_arith $at_stop_time - $at_start_time
1784     at_duration_s=$at_func_arith_result
1785     at_func_arith $at_duration_s / 60
1786     at_duration_m=$at_func_arith_result
1787     at_func_arith $at_duration_m / 60
1788     at_duration_h=$at_func_arith_result
1789     at_func_arith $at_duration_s % 60
1790     at_duration_s=$at_func_arith_result
1791     at_func_arith $at_duration_m % 60
1792     at_duration_m=$at_func_arith_result
1793     at_duration="${at_duration_h}h ${at_duration_m}m ${at_duration_s}s"
1794     $as_echo "$as_me: test suite duration: $at_duration" >&5
1795     ;;
1796 esac
1797
1798 echo
1799 cat <<\_ASBOX
1800 ## ------------- ##
1801 ## Test results. ##
1802 ## ------------- ##
1803 _ASBOX
1804 echo
1805 {
1806   echo
1807   cat <<\_ASBOX
1808 ## ------------- ##
1809 ## Test results. ##
1810 ## ------------- ##
1811 _ASBOX
1812   echo
1813 } >&5
1814
1815 if test $at_run_count = 1; then
1816   at_result="1 test"
1817   at_were=was
1818 else
1819   at_result="$at_run_count tests"
1820   at_were=were
1821 fi
1822 if $at_errexit_p && test $at_unexpected_count != 0; then
1823   if test $at_xpass_count = 1; then
1824     at_result="$at_result $at_were run, one passed"
1825   else
1826     at_result="$at_result $at_were run, one failed"
1827   fi
1828   at_result="$at_result unexpectedly and inhibited subsequent tests."
1829 else
1830   # Don't you just love exponential explosion of the number of cases?
1831   case $at_xpass_count:$at_fail_count:$at_xfail_count in
1832     # So far, so good.
1833     0:0:0) at_result="$at_result $at_were successful." ;;
1834     0:0:*) at_result="$at_result behaved as expected." ;;
1835
1836     # Some unexpected failures
1837     0:*:0) at_result="$at_result $at_were run,
1838 $at_fail_count failed unexpectedly." ;;
1839
1840     # Some failures, both expected and unexpected
1841     0:*:1) at_result="$at_result $at_were run,
1842 $at_total_fail_count failed ($at_xfail_count expected failure)." ;;
1843     0:*:*) at_result="$at_result $at_were run,
1844 $at_total_fail_count failed ($at_xfail_count expected failures)." ;;
1845
1846     # No unexpected failures, but some xpasses
1847     *:0:*) at_result="$at_result $at_were run,
1848 $at_xpass_count passed unexpectedly." ;;
1849
1850     # No expected failures, but failures and xpasses
1851     *:1:0) at_result="$at_result $at_were run,
1852 $at_unexpected_count did not behave as expected ($at_fail_count unexpected failure)." ;;
1853     *:*:0) at_result="$at_result $at_were run,
1854 $at_unexpected_count did not behave as expected ($at_fail_count unexpected failures)." ;;
1855
1856     # All of them.
1857     *:*:1) at_result="$at_result $at_were run,
1858 $at_xpass_count passed unexpectedly,
1859 $at_total_fail_count failed ($at_xfail_count expected failure)." ;;
1860     *:*:*) at_result="$at_result $at_were run,
1861 $at_xpass_count passed unexpectedly,
1862 $at_total_fail_count failed ($at_xfail_count expected failures)." ;;
1863   esac
1864
1865   if test $at_skip_count = 0 && test $at_run_count -gt 1; then
1866     at_result="All $at_result"
1867   fi
1868 fi
1869
1870 # Now put skips in the mix.
1871 case $at_skip_count in
1872   0) ;;
1873   1) at_result="$at_result
1874 1 test was skipped." ;;
1875   *) at_result="$at_result
1876 $at_skip_count tests were skipped." ;;
1877 esac
1878
1879 if test $at_unexpected_count = 0; then
1880   echo "$at_result"
1881   echo "$at_result" >&5
1882 else
1883   echo "ERROR: $at_result" >&2
1884   echo "ERROR: $at_result" >&5
1885   {
1886     echo
1887     cat <<\_ASBOX
1888 ## ------------------------ ##
1889 ## Summary of the failures. ##
1890 ## ------------------------ ##
1891 _ASBOX
1892
1893     # Summary of failed and skipped tests.
1894     if test $at_fail_count != 0; then
1895       echo "Failed tests:"
1896       $SHELL "$at_myself" $at_fail_list --list
1897       echo
1898     fi
1899     if test $at_skip_count != 0; then
1900       echo "Skipped tests:"
1901       $SHELL "$at_myself" $at_skip_list --list
1902       echo
1903     fi
1904     if test $at_xpass_count != 0; then
1905       echo "Unexpected passes:"
1906       $SHELL "$at_myself" $at_xpass_list --list
1907       echo
1908     fi
1909     if test $at_fail_count != 0; then
1910       cat <<\_ASBOX
1911 ## ---------------------- ##
1912 ## Detailed failed tests. ##
1913 ## ---------------------- ##
1914 _ASBOX
1915       echo
1916       for at_group in $at_fail_list
1917       do
1918         at_group_normalized=$at_group
1919
1920   eval 'while :; do
1921     case $at_group_normalized in #(
1922     '"$at_format"'*) break;;
1923     esac
1924     at_group_normalized=0$at_group_normalized
1925   done'
1926
1927         cat "$at_suite_dir/$at_group_normalized/$as_me.log"
1928         echo
1929       done
1930       echo
1931     fi
1932     if test -n "$at_top_srcdir"; then
1933       sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
1934 ## ${at_top_build_prefix}config.log ##
1935 _ASBOX
1936       sed 's/^/| /' ${at_top_build_prefix}config.log
1937       echo
1938     fi
1939   } >&5
1940
1941   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
1942 ## $as_me.log was created. ##
1943 _ASBOX
1944
1945   echo
1946   $as_echo "Please send \`${at_testdir+${at_testdir}/}$as_me.log' and all information you think might help:
1947
1948    To: <bug-tar@gnu.org>
1949    Subject: [GNU tar 1.26] $as_me: $at_fail_list${at_fail_list:+ failed${at_xpass_list:+, }}$at_xpass_list${at_xpass_list:+ passed unexpectedly}
1950 "
1951   if test $at_debug_p = false; then
1952     echo
1953     echo 'You may investigate any problem if you feel able to do so, in which'
1954     echo 'case the test suite provides a good starting point.  Its output may'
1955     $as_echo "be found below \`${at_testdir+${at_testdir}/}$as_me.dir'."
1956     echo
1957   fi
1958     exit 1
1959 fi
1960
1961 exit 0
1962
1963 ## ------------- ##
1964 ## Actual tests. ##
1965 ## ------------- ##
1966 #AT_START_1
1967 # 1. version.at:19: tar version
1968 at_setup_line='version.at:19'
1969 at_desc="tar version"
1970 $at_quiet $as_echo_n "  1: $at_desc                                    "
1971 at_xfail=no
1972 echo "#                             -*- compilation -*-" >> "$at_group_log"
1973 (
1974   $as_echo "1. version.at:19: testing ..."
1975   $at_traceon
1976
1977
1978 { $at_traceoff
1979 $as_echo "$at_srcdir/version.at:21: tar --version | sed 1q"
1980 echo version.at:21 >"$at_check_line_file"
1981
1982 if test -n "$at_traceon"; then
1983   ( $at_traceon; tar --version | sed 1q ) >"$at_stdout" 2>"$at_stder1"
1984   at_func_filter_trace $?
1985 else
1986   ( :; tar --version | sed 1q ) >"$at_stdout" 2>"$at_stderr"
1987 fi
1988 at_status=$?
1989 at_failed=false
1990 at_func_diff_devnull "$at_stderr" || at_failed=:
1991 echo >>"$at_stdout"; $as_echo "tar (GNU tar) 1.26
1992 " | \
1993   $at_diff - "$at_stdout" || at_failed=:
1994 at_func_check_status 0 $at_status "$at_srcdir/version.at:21"
1995 if $at_failed; then
1996   cat >$XFAILFILE <<'_EOT'
1997
1998 ==============================================================
1999 WARNING: Not using the proper version, *all* checks dubious...
2000 ==============================================================
2001 _EOT
2002
2003 else
2004   rm -f $XFAILFILE
2005 fi
2006
2007 $at_failed && at_func_log_failure
2008 $at_traceon; }
2009
2010
2011   $at_traceoff
2012   $at_times_p && times >"$at_times_file"
2013 ) 5>&1 2>&1 | eval $at_tee_pipe
2014 at_status=`cat "$at_status_file"`
2015 #AT_STOP_1
2016 #AT_START_2
2017 # 2. pipe.at:30: decompressing from stdin
2018 at_setup_line='pipe.at:30'
2019 at_desc="decompressing from stdin"
2020 $at_quiet $as_echo_n "  2: $at_desc                       "
2021 at_xfail=no
2022       test -f $XFAILFILE && at_xfail=yes
2023 echo "#                             -*- compilation -*-" >> "$at_group_log"
2024 (
2025   $as_echo "2. pipe.at:30: testing ..."
2026   $at_traceon
2027
2028
2029
2030
2031
2032
2033   { $at_traceoff
2034 $as_echo "$at_srcdir/pipe.at:34:
2035 mkdir v7
2036 (cd v7
2037 TEST_TAR_FORMAT=v7
2038 export TEST_TAR_FORMAT
2039 TAR_OPTIONS=\"-H v7\"
2040 export TAR_OPTIONS
2041 rm -rf *
2042
2043
2044 test -z "`sort < /dev/null 2>&1`" || exit 77
2045
2046
2047 mkdir directory
2048 genfile --length 10240 --pattern zeros --file directory/file1
2049 genfile --length 13 --file directory/file2
2050 tar cf archive directory
2051 mv directory orig
2052 cat archive | tar xfv - --warning=no-timestamp | sort
2053 echo \"separator\"
2054 cmp orig/file1 directory/file1
2055 echo \"separator\"
2056 cmp orig/file2 directory/file2)"
2057 echo pipe.at:34 >"$at_check_line_file"
2058
2059 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
2060    false; }; then
2061   ( $at_traceon;
2062 mkdir v7
2063 (cd v7
2064 TEST_TAR_FORMAT=v7
2065 export TEST_TAR_FORMAT
2066 TAR_OPTIONS="-H v7"
2067 export TAR_OPTIONS
2068 rm -rf *
2069
2070
2071 test -z "`sort < /dev/null 2>&1`" || exit 77
2072
2073
2074 mkdir directory
2075 genfile --length 10240 --pattern zeros --file directory/file1
2076 genfile --length 13 --file directory/file2
2077 tar cf archive directory
2078 mv directory orig
2079 cat archive | tar xfv - --warning=no-timestamp | sort
2080 echo "separator"
2081 cmp orig/file1 directory/file1
2082 echo "separator"
2083 cmp orig/file2 directory/file2) ) >"$at_stdout" 2>"$at_stder1"
2084   at_func_filter_trace $?
2085 else
2086   ( :;
2087 mkdir v7
2088 (cd v7
2089 TEST_TAR_FORMAT=v7
2090 export TEST_TAR_FORMAT
2091 TAR_OPTIONS="-H v7"
2092 export TAR_OPTIONS
2093 rm -rf *
2094
2095
2096 test -z "`sort < /dev/null 2>&1`" || exit 77
2097
2098
2099 mkdir directory
2100 genfile --length 10240 --pattern zeros --file directory/file1
2101 genfile --length 13 --file directory/file2
2102 tar cf archive directory
2103 mv directory orig
2104 cat archive | tar xfv - --warning=no-timestamp | sort
2105 echo "separator"
2106 cmp orig/file1 directory/file1
2107 echo "separator"
2108 cmp orig/file2 directory/file2) ) >"$at_stdout" 2>"$at_stderr"
2109 fi
2110 at_status=$?
2111 at_failed=false
2112 at_func_diff_devnull "$at_stderr" || at_failed=:
2113 echo >>"$at_stdout"; $as_echo "directory/
2114 directory/file1
2115 directory/file2
2116 separator
2117 separator
2118 " | \
2119   $at_diff - "$at_stdout" || at_failed=:
2120 at_func_check_status 0 $at_status "$at_srcdir/pipe.at:34"
2121
2122 $at_failed && at_func_log_failure
2123 $at_traceon; }
2124
2125               { $at_traceoff
2126 $as_echo "$at_srcdir/pipe.at:34:
2127 mkdir oldgnu
2128 (cd oldgnu
2129 TEST_TAR_FORMAT=oldgnu
2130 export TEST_TAR_FORMAT
2131 TAR_OPTIONS=\"-H oldgnu\"
2132 export TAR_OPTIONS
2133 rm -rf *
2134
2135
2136 test -z "`sort < /dev/null 2>&1`" || exit 77
2137
2138
2139 mkdir directory
2140 genfile --length 10240 --pattern zeros --file directory/file1
2141 genfile --length 13 --file directory/file2
2142 tar cf archive directory
2143 mv directory orig
2144 cat archive | tar xfv - --warning=no-timestamp | sort
2145 echo \"separator\"
2146 cmp orig/file1 directory/file1
2147 echo \"separator\"
2148 cmp orig/file2 directory/file2)"
2149 echo pipe.at:34 >"$at_check_line_file"
2150
2151 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
2152    false; }; then
2153   ( $at_traceon;
2154 mkdir oldgnu
2155 (cd oldgnu
2156 TEST_TAR_FORMAT=oldgnu
2157 export TEST_TAR_FORMAT
2158 TAR_OPTIONS="-H oldgnu"
2159 export TAR_OPTIONS
2160 rm -rf *
2161
2162
2163 test -z "`sort < /dev/null 2>&1`" || exit 77
2164
2165
2166 mkdir directory
2167 genfile --length 10240 --pattern zeros --file directory/file1
2168 genfile --length 13 --file directory/file2
2169 tar cf archive directory
2170 mv directory orig
2171 cat archive | tar xfv - --warning=no-timestamp | sort
2172 echo "separator"
2173 cmp orig/file1 directory/file1
2174 echo "separator"
2175 cmp orig/file2 directory/file2) ) >"$at_stdout" 2>"$at_stder1"
2176   at_func_filter_trace $?
2177 else
2178   ( :;
2179 mkdir oldgnu
2180 (cd oldgnu
2181 TEST_TAR_FORMAT=oldgnu
2182 export TEST_TAR_FORMAT
2183 TAR_OPTIONS="-H oldgnu"
2184 export TAR_OPTIONS
2185 rm -rf *
2186
2187
2188 test -z "`sort < /dev/null 2>&1`" || exit 77
2189
2190
2191 mkdir directory
2192 genfile --length 10240 --pattern zeros --file directory/file1
2193 genfile --length 13 --file directory/file2
2194 tar cf archive directory
2195 mv directory orig
2196 cat archive | tar xfv - --warning=no-timestamp | sort
2197 echo "separator"
2198 cmp orig/file1 directory/file1
2199 echo "separator"
2200 cmp orig/file2 directory/file2) ) >"$at_stdout" 2>"$at_stderr"
2201 fi
2202 at_status=$?
2203 at_failed=false
2204 at_func_diff_devnull "$at_stderr" || at_failed=:
2205 echo >>"$at_stdout"; $as_echo "directory/
2206 directory/file1
2207 directory/file2
2208 separator
2209 separator
2210 " | \
2211   $at_diff - "$at_stdout" || at_failed=:
2212 at_func_check_status 0 $at_status "$at_srcdir/pipe.at:34"
2213
2214 $at_failed && at_func_log_failure
2215 $at_traceon; }
2216
2217               { $at_traceoff
2218 $as_echo "$at_srcdir/pipe.at:34:
2219 mkdir ustar
2220 (cd ustar
2221 TEST_TAR_FORMAT=ustar
2222 export TEST_TAR_FORMAT
2223 TAR_OPTIONS=\"-H ustar\"
2224 export TAR_OPTIONS
2225 rm -rf *
2226
2227
2228 test -z "`sort < /dev/null 2>&1`" || exit 77
2229
2230
2231 mkdir directory
2232 genfile --length 10240 --pattern zeros --file directory/file1
2233 genfile --length 13 --file directory/file2
2234 tar cf archive directory
2235 mv directory orig
2236 cat archive | tar xfv - --warning=no-timestamp | sort
2237 echo \"separator\"
2238 cmp orig/file1 directory/file1
2239 echo \"separator\"
2240 cmp orig/file2 directory/file2)"
2241 echo pipe.at:34 >"$at_check_line_file"
2242
2243 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
2244    false; }; then
2245   ( $at_traceon;
2246 mkdir ustar
2247 (cd ustar
2248 TEST_TAR_FORMAT=ustar
2249 export TEST_TAR_FORMAT
2250 TAR_OPTIONS="-H ustar"
2251 export TAR_OPTIONS
2252 rm -rf *
2253
2254
2255 test -z "`sort < /dev/null 2>&1`" || exit 77
2256
2257
2258 mkdir directory
2259 genfile --length 10240 --pattern zeros --file directory/file1
2260 genfile --length 13 --file directory/file2
2261 tar cf archive directory
2262 mv directory orig
2263 cat archive | tar xfv - --warning=no-timestamp | sort
2264 echo "separator"
2265 cmp orig/file1 directory/file1
2266 echo "separator"
2267 cmp orig/file2 directory/file2) ) >"$at_stdout" 2>"$at_stder1"
2268   at_func_filter_trace $?
2269 else
2270   ( :;
2271 mkdir ustar
2272 (cd ustar
2273 TEST_TAR_FORMAT=ustar
2274 export TEST_TAR_FORMAT
2275 TAR_OPTIONS="-H ustar"
2276 export TAR_OPTIONS
2277 rm -rf *
2278
2279
2280 test -z "`sort < /dev/null 2>&1`" || exit 77
2281
2282
2283 mkdir directory
2284 genfile --length 10240 --pattern zeros --file directory/file1
2285 genfile --length 13 --file directory/file2
2286 tar cf archive directory
2287 mv directory orig
2288 cat archive | tar xfv - --warning=no-timestamp | sort
2289 echo "separator"
2290 cmp orig/file1 directory/file1
2291 echo "separator"
2292 cmp orig/file2 directory/file2) ) >"$at_stdout" 2>"$at_stderr"
2293 fi
2294 at_status=$?
2295 at_failed=false
2296 at_func_diff_devnull "$at_stderr" || at_failed=:
2297 echo >>"$at_stdout"; $as_echo "directory/
2298 directory/file1
2299 directory/file2
2300 separator
2301 separator
2302 " | \
2303   $at_diff - "$at_stdout" || at_failed=:
2304 at_func_check_status 0 $at_status "$at_srcdir/pipe.at:34"
2305
2306 $at_failed && at_func_log_failure
2307 $at_traceon; }
2308
2309               { $at_traceoff
2310 $as_echo "$at_srcdir/pipe.at:34:
2311 mkdir posix
2312 (cd posix
2313 TEST_TAR_FORMAT=posix
2314 export TEST_TAR_FORMAT
2315 TAR_OPTIONS=\"-H posix\"
2316 export TAR_OPTIONS
2317 rm -rf *
2318
2319
2320 test -z "`sort < /dev/null 2>&1`" || exit 77
2321
2322
2323 mkdir directory
2324 genfile --length 10240 --pattern zeros --file directory/file1
2325 genfile --length 13 --file directory/file2
2326 tar cf archive directory
2327 mv directory orig
2328 cat archive | tar xfv - --warning=no-timestamp | sort
2329 echo \"separator\"
2330 cmp orig/file1 directory/file1
2331 echo \"separator\"
2332 cmp orig/file2 directory/file2)"
2333 echo pipe.at:34 >"$at_check_line_file"
2334
2335 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
2336    false; }; then
2337   ( $at_traceon;
2338 mkdir posix
2339 (cd posix
2340 TEST_TAR_FORMAT=posix
2341 export TEST_TAR_FORMAT
2342 TAR_OPTIONS="-H posix"
2343 export TAR_OPTIONS
2344 rm -rf *
2345
2346
2347 test -z "`sort < /dev/null 2>&1`" || exit 77
2348
2349
2350 mkdir directory
2351 genfile --length 10240 --pattern zeros --file directory/file1
2352 genfile --length 13 --file directory/file2
2353 tar cf archive directory
2354 mv directory orig
2355 cat archive | tar xfv - --warning=no-timestamp | sort
2356 echo "separator"
2357 cmp orig/file1 directory/file1
2358 echo "separator"
2359 cmp orig/file2 directory/file2) ) >"$at_stdout" 2>"$at_stder1"
2360   at_func_filter_trace $?
2361 else
2362   ( :;
2363 mkdir posix
2364 (cd posix
2365 TEST_TAR_FORMAT=posix
2366 export TEST_TAR_FORMAT
2367 TAR_OPTIONS="-H posix"
2368 export TAR_OPTIONS
2369 rm -rf *
2370
2371
2372 test -z "`sort < /dev/null 2>&1`" || exit 77
2373
2374
2375 mkdir directory
2376 genfile --length 10240 --pattern zeros --file directory/file1
2377 genfile --length 13 --file directory/file2
2378 tar cf archive directory
2379 mv directory orig
2380 cat archive | tar xfv - --warning=no-timestamp | sort
2381 echo "separator"
2382 cmp orig/file1 directory/file1
2383 echo "separator"
2384 cmp orig/file2 directory/file2) ) >"$at_stdout" 2>"$at_stderr"
2385 fi
2386 at_status=$?
2387 at_failed=false
2388 at_func_diff_devnull "$at_stderr" || at_failed=:
2389 echo >>"$at_stdout"; $as_echo "directory/
2390 directory/file1
2391 directory/file2
2392 separator
2393 separator
2394 " | \
2395   $at_diff - "$at_stdout" || at_failed=:
2396 at_func_check_status 0 $at_status "$at_srcdir/pipe.at:34"
2397
2398 $at_failed && at_func_log_failure
2399 $at_traceon; }
2400
2401               { $at_traceoff
2402 $as_echo "$at_srcdir/pipe.at:34:
2403 mkdir gnu
2404 (cd gnu
2405 TEST_TAR_FORMAT=gnu
2406 export TEST_TAR_FORMAT
2407 TAR_OPTIONS=\"-H gnu\"
2408 export TAR_OPTIONS
2409 rm -rf *
2410
2411
2412 test -z "`sort < /dev/null 2>&1`" || exit 77
2413
2414
2415 mkdir directory
2416 genfile --length 10240 --pattern zeros --file directory/file1
2417 genfile --length 13 --file directory/file2
2418 tar cf archive directory
2419 mv directory orig
2420 cat archive | tar xfv - --warning=no-timestamp | sort
2421 echo \"separator\"
2422 cmp orig/file1 directory/file1
2423 echo \"separator\"
2424 cmp orig/file2 directory/file2)"
2425 echo pipe.at:34 >"$at_check_line_file"
2426
2427 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
2428    false; }; then
2429   ( $at_traceon;
2430 mkdir gnu
2431 (cd gnu
2432 TEST_TAR_FORMAT=gnu
2433 export TEST_TAR_FORMAT
2434 TAR_OPTIONS="-H gnu"
2435 export TAR_OPTIONS
2436 rm -rf *
2437
2438
2439 test -z "`sort < /dev/null 2>&1`" || exit 77
2440
2441
2442 mkdir directory
2443 genfile --length 10240 --pattern zeros --file directory/file1
2444 genfile --length 13 --file directory/file2
2445 tar cf archive directory
2446 mv directory orig
2447 cat archive | tar xfv - --warning=no-timestamp | sort
2448 echo "separator"
2449 cmp orig/file1 directory/file1
2450 echo "separator"
2451 cmp orig/file2 directory/file2) ) >"$at_stdout" 2>"$at_stder1"
2452   at_func_filter_trace $?
2453 else
2454   ( :;
2455 mkdir gnu
2456 (cd gnu
2457 TEST_TAR_FORMAT=gnu
2458 export TEST_TAR_FORMAT
2459 TAR_OPTIONS="-H gnu"
2460 export TAR_OPTIONS
2461 rm -rf *
2462
2463
2464 test -z "`sort < /dev/null 2>&1`" || exit 77
2465
2466
2467 mkdir directory
2468 genfile --length 10240 --pattern zeros --file directory/file1
2469 genfile --length 13 --file directory/file2
2470 tar cf archive directory
2471 mv directory orig
2472 cat archive | tar xfv - --warning=no-timestamp | sort
2473 echo "separator"
2474 cmp orig/file1 directory/file1
2475 echo "separator"
2476 cmp orig/file2 directory/file2) ) >"$at_stdout" 2>"$at_stderr"
2477 fi
2478 at_status=$?
2479 at_failed=false
2480 at_func_diff_devnull "$at_stderr" || at_failed=:
2481 echo >>"$at_stdout"; $as_echo "directory/
2482 directory/file1
2483 directory/file2
2484 separator
2485 separator
2486 " | \
2487   $at_diff - "$at_stdout" || at_failed=:
2488 at_func_check_status 0 $at_status "$at_srcdir/pipe.at:34"
2489
2490 $at_failed && at_func_log_failure
2491 $at_traceon; }
2492
2493
2494
2495
2496   $at_traceoff
2497   $at_times_p && times >"$at_times_file"
2498 ) 5>&1 2>&1 | eval $at_tee_pipe
2499 at_status=`cat "$at_status_file"`
2500 #AT_STOP_2
2501 #AT_START_3
2502 # 3. options.at:24: mixing options
2503 at_setup_line='options.at:24'
2504 at_desc="mixing options"
2505 $at_quiet $as_echo_n "  3: $at_desc                                 "
2506 at_xfail=no
2507 echo "#                             -*- compilation -*-" >> "$at_group_log"
2508 (
2509   $as_echo "3. options.at:24: testing ..."
2510   $at_traceon
2511
2512
2513
2514 { $at_traceoff
2515 $as_echo "$at_srcdir/options.at:27:
2516 echo > file1
2517 TAR_OPTIONS=--numeric-owner tar chof archive file1
2518 tar tf archive
2519 "
2520 echo options.at:27 >"$at_check_line_file"
2521
2522 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
2523    false; }; then
2524   ( $at_traceon;
2525 echo > file1
2526 TAR_OPTIONS=--numeric-owner tar chof archive file1
2527 tar tf archive
2528  ) >"$at_stdout" 2>"$at_stder1"
2529   at_func_filter_trace $?
2530 else
2531   ( :;
2532 echo > file1
2533 TAR_OPTIONS=--numeric-owner tar chof archive file1
2534 tar tf archive
2535  ) >"$at_stdout" 2>"$at_stderr"
2536 fi
2537 at_status=$?
2538 at_failed=false
2539 at_func_diff_devnull "$at_stderr" || at_failed=:
2540 echo >>"$at_stdout"; $as_echo "file1
2541 " | \
2542   $at_diff - "$at_stdout" || at_failed=:
2543 at_func_check_status 0 $at_status "$at_srcdir/options.at:27"
2544
2545 $at_failed && at_func_log_failure
2546 $at_traceon; }
2547
2548
2549   $at_traceoff
2550   $at_times_p && times >"$at_times_file"
2551 ) 5>&1 2>&1 | eval $at_tee_pipe
2552 at_status=`cat "$at_status_file"`
2553 #AT_STOP_3
2554 #AT_START_4
2555 # 4. options02.at:26: interspersed options
2556 at_setup_line='options02.at:26'
2557 at_desc="interspersed options"
2558 $at_quiet $as_echo_n "  4: $at_desc                           "
2559 at_xfail=no
2560 echo "#                             -*- compilation -*-" >> "$at_group_log"
2561 (
2562   $as_echo "4. options02.at:26: testing ..."
2563   $at_traceon
2564
2565
2566
2567 { $at_traceoff
2568 $as_echo "$at_srcdir/options02.at:29:
2569 echo > file1
2570 tar c file1 -f archive
2571 tar tf archive
2572 "
2573 echo options02.at:29 >"$at_check_line_file"
2574
2575 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
2576    false; }; then
2577   ( $at_traceon;
2578 echo > file1
2579 tar c file1 -f archive
2580 tar tf archive
2581  ) >"$at_stdout" 2>"$at_stder1"
2582   at_func_filter_trace $?
2583 else
2584   ( :;
2585 echo > file1
2586 tar c file1 -f archive
2587 tar tf archive
2588  ) >"$at_stdout" 2>"$at_stderr"
2589 fi
2590 at_status=$?
2591 at_failed=false
2592 at_func_diff_devnull "$at_stderr" || at_failed=:
2593 echo >>"$at_stdout"; $as_echo "file1
2594 " | \
2595   $at_diff - "$at_stdout" || at_failed=:
2596 at_func_check_status 0 $at_status "$at_srcdir/options02.at:29"
2597
2598 $at_failed && at_func_log_failure
2599 $at_traceon; }
2600
2601
2602   $at_traceoff
2603   $at_times_p && times >"$at_times_file"
2604 ) 5>&1 2>&1 | eval $at_tee_pipe
2605 at_status=`cat "$at_status_file"`
2606 #AT_STOP_4
2607 #AT_START_5
2608 # 5. T-empty.at:26: files-from: empty entries
2609 at_setup_line='T-empty.at:26'
2610 at_desc="files-from: empty entries"
2611 $at_quiet $as_echo_n "  5: $at_desc                      "
2612 at_xfail=no
2613       test -f $XFAILFILE && at_xfail=yes
2614 echo "#                             -*- compilation -*-" >> "$at_group_log"
2615 (
2616   $as_echo "5. T-empty.at:26: testing ..."
2617   $at_traceon
2618
2619
2620
2621 cat >file-list <<'_ATEOF'
2622 jeden
2623 dwa
2624
2625 trzy
2626 _ATEOF
2627
2628
2629
2630
2631   { $at_traceoff
2632 $as_echo "$at_srcdir/T-empty.at:36:
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 )"
2651 echo T-empty.at:36 >"$at_check_line_file"
2652
2653 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
2654    false; }; then
2655   ( $at_traceon;
2656 mkdir ustar
2657 (cd ustar
2658 TEST_TAR_FORMAT=ustar
2659 export TEST_TAR_FORMAT
2660 TAR_OPTIONS="-H ustar"
2661 export TAR_OPTIONS
2662 rm -rf *
2663
2664
2665 test -z "`sort < /dev/null 2>&1`" || exit 77
2666
2667
2668 genfile --file jeden
2669 genfile --file dwa
2670 genfile --file trzy
2671
2672 tar cfvT archive ../file-list | sort
2673 ) ) >"$at_stdout" 2>"$at_stder1"
2674   at_func_filter_trace $?
2675 else
2676   ( :;
2677 mkdir ustar
2678 (cd ustar
2679 TEST_TAR_FORMAT=ustar
2680 export TEST_TAR_FORMAT
2681 TAR_OPTIONS="-H ustar"
2682 export TAR_OPTIONS
2683 rm -rf *
2684
2685
2686 test -z "`sort < /dev/null 2>&1`" || exit 77
2687
2688
2689 genfile --file jeden
2690 genfile --file dwa
2691 genfile --file trzy
2692
2693 tar cfvT archive ../file-list | sort
2694 ) ) >"$at_stdout" 2>"$at_stderr"
2695 fi
2696 at_status=$?
2697 at_failed=false
2698 at_func_diff_devnull "$at_stderr" || at_failed=:
2699 echo >>"$at_stdout"; $as_echo "dwa
2700 jeden
2701 trzy
2702 " | \
2703   $at_diff - "$at_stdout" || at_failed=:
2704 at_func_check_status 0 $at_status "$at_srcdir/T-empty.at:36"
2705
2706 $at_failed && at_func_log_failure
2707 $at_traceon; }
2708
2709
2710  # Testing one format is enough
2711
2712   $at_traceoff
2713   $at_times_p && times >"$at_times_file"
2714 ) 5>&1 2>&1 | eval $at_tee_pipe
2715 at_status=`cat "$at_status_file"`
2716 #AT_STOP_5
2717 #AT_START_6
2718 # 6. T-null.at:21: files-from: 0-separated file without -0
2719 at_setup_line='T-null.at:21'
2720 at_desc="files-from: 0-separated file without -0"
2721 $at_quiet $as_echo_n "  6: $at_desc        "
2722 at_xfail=no
2723       test -f $XFAILFILE && at_xfail=yes
2724 echo "#                             -*- compilation -*-" >> "$at_group_log"
2725 (
2726   $as_echo "6. T-null.at:21: testing ..."
2727   $at_traceon
2728
2729
2730
2731 cat >expout <<'_ATEOF'
2732 jeden\ndwa
2733 trzy
2734 _ATEOF
2735
2736
2737
2738
2739   { $at_traceoff
2740 $as_echo "$at_srcdir/T-null.at:28:
2741 mkdir ustar
2742 (cd ustar
2743 TEST_TAR_FORMAT=ustar
2744 export TEST_TAR_FORMAT
2745 TAR_OPTIONS=\"-H ustar\"
2746 export TAR_OPTIONS
2747 rm -rf *
2748
2749
2750 test -z "`sort < /dev/null 2>&1`" || exit 77
2751
2752
2753 echo dwa > temp
2754 echo trzy >> temp
2755 cat temp | tr '\\n' '\\0' > temp1
2756 echo jeden > file-list
2757 cat temp1 >> file-list
2758
2759 genfile -f \"jeden
2760 dwa\" || exit 77
2761 genfile -f trzy
2762
2763 tar cfTv archive file-list | sort
2764 )"
2765 echo T-null.at:28 >"$at_check_line_file"
2766
2767 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
2768    false; }; then
2769   ( $at_traceon;
2770 mkdir ustar
2771 (cd ustar
2772 TEST_TAR_FORMAT=ustar
2773 export TEST_TAR_FORMAT
2774 TAR_OPTIONS="-H ustar"
2775 export TAR_OPTIONS
2776 rm -rf *
2777
2778
2779 test -z "`sort < /dev/null 2>&1`" || exit 77
2780
2781
2782 echo dwa > temp
2783 echo trzy >> temp
2784 cat temp | tr '\n' '\0' > temp1
2785 echo jeden > file-list
2786 cat temp1 >> file-list
2787
2788 genfile -f "jeden
2789 dwa" || exit 77
2790 genfile -f trzy
2791
2792 tar cfTv archive file-list | sort
2793 ) ) >"$at_stdout" 2>"$at_stder1"
2794   at_func_filter_trace $?
2795 else
2796   ( :;
2797 mkdir ustar
2798 (cd ustar
2799 TEST_TAR_FORMAT=ustar
2800 export TEST_TAR_FORMAT
2801 TAR_OPTIONS="-H ustar"
2802 export TAR_OPTIONS
2803 rm -rf *
2804
2805
2806 test -z "`sort < /dev/null 2>&1`" || exit 77
2807
2808
2809 echo dwa > temp
2810 echo trzy >> temp
2811 cat temp | tr '\n' '\0' > temp1
2812 echo jeden > file-list
2813 cat temp1 >> file-list
2814
2815 genfile -f "jeden
2816 dwa" || exit 77
2817 genfile -f trzy
2818
2819 tar cfTv archive file-list | sort
2820 ) ) >"$at_stdout" 2>"$at_stderr"
2821 fi
2822 at_status=$?
2823 at_failed=false
2824 echo >>"$at_stderr"; $as_echo "tar: file-list: file name read contains nul character
2825 " | \
2826   $at_diff - "$at_stderr" || at_failed=:
2827 $at_diff expout "$at_stdout" || at_failed=:
2828 at_func_check_status 0 $at_status "$at_srcdir/T-null.at:28"
2829
2830 $at_failed && at_func_log_failure
2831 $at_traceon; }
2832
2833
2834  # Testing one format is enough
2835
2836   $at_traceoff
2837   $at_times_p && times >"$at_times_file"
2838 ) 5>&1 2>&1 | eval $at_tee_pipe
2839 at_status=`cat "$at_status_file"`
2840 #AT_STOP_6
2841 #AT_START_7
2842 # 7. indexfile.at:26: tar --index-file=FILE --file=-
2843 at_setup_line='indexfile.at:26'
2844 at_desc="tar --index-file=FILE --file=-"
2845 $at_quiet $as_echo_n "  7: $at_desc                 "
2846 at_xfail=no
2847       test -f $XFAILFILE && at_xfail=yes
2848 echo "#                             -*- compilation -*-" >> "$at_group_log"
2849 (
2850   $as_echo "7. indexfile.at:26: testing ..."
2851   $at_traceon
2852
2853
2854
2855
2856
2857   { $at_traceoff
2858 $as_echo "$at_srcdir/indexfile.at:29:
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 )"
2877 echo indexfile.at:29 >"$at_check_line_file"
2878
2879 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
2880    false; }; then
2881   ( $at_traceon;
2882 mkdir v7
2883 (cd v7
2884 TEST_TAR_FORMAT=v7
2885 export TEST_TAR_FORMAT
2886 TAR_OPTIONS="-H v7"
2887 export TAR_OPTIONS
2888 rm -rf *
2889
2890
2891 mkdir directory
2892 genfile --file=directory/a --length=1035
2893
2894 echo "Creating the archive"
2895 tar -c -v -f - --index-file=idx directory > archive
2896
2897 echo "Testing the archive"
2898 tar -tf archive
2899 ) ) >"$at_stdout" 2>"$at_stder1"
2900   at_func_filter_trace $?
2901 else
2902   ( :;
2903 mkdir v7
2904 (cd v7
2905 TEST_TAR_FORMAT=v7
2906 export TEST_TAR_FORMAT
2907 TAR_OPTIONS="-H v7"
2908 export TAR_OPTIONS
2909 rm -rf *
2910
2911
2912 mkdir directory
2913 genfile --file=directory/a --length=1035
2914
2915 echo "Creating the archive"
2916 tar -c -v -f - --index-file=idx directory > archive
2917
2918 echo "Testing the archive"
2919 tar -tf archive
2920 ) ) >"$at_stdout" 2>"$at_stderr"
2921 fi
2922 at_status=$?
2923 at_failed=false
2924 at_func_diff_devnull "$at_stderr" || at_failed=:
2925 echo >>"$at_stdout"; $as_echo "Creating the archive
2926 Testing the archive
2927 directory/
2928 directory/a
2929 " | \
2930   $at_diff - "$at_stdout" || at_failed=:
2931 at_func_check_status 0 $at_status "$at_srcdir/indexfile.at:29"
2932
2933 $at_failed && at_func_log_failure
2934 $at_traceon; }
2935
2936               { $at_traceoff
2937 $as_echo "$at_srcdir/indexfile.at:29:
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 )"
2956 echo indexfile.at:29 >"$at_check_line_file"
2957
2958 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
2959    false; }; then
2960   ( $at_traceon;
2961 mkdir oldgnu
2962 (cd oldgnu
2963 TEST_TAR_FORMAT=oldgnu
2964 export TEST_TAR_FORMAT
2965 TAR_OPTIONS="-H oldgnu"
2966 export TAR_OPTIONS
2967 rm -rf *
2968
2969
2970 mkdir directory
2971 genfile --file=directory/a --length=1035
2972
2973 echo "Creating the archive"
2974 tar -c -v -f - --index-file=idx directory > archive
2975
2976 echo "Testing the archive"
2977 tar -tf archive
2978 ) ) >"$at_stdout" 2>"$at_stder1"
2979   at_func_filter_trace $?
2980 else
2981   ( :;
2982 mkdir oldgnu
2983 (cd oldgnu
2984 TEST_TAR_FORMAT=oldgnu
2985 export TEST_TAR_FORMAT
2986 TAR_OPTIONS="-H oldgnu"
2987 export TAR_OPTIONS
2988 rm -rf *
2989
2990
2991 mkdir directory
2992 genfile --file=directory/a --length=1035
2993
2994 echo "Creating the archive"
2995 tar -c -v -f - --index-file=idx directory > archive
2996
2997 echo "Testing the archive"
2998 tar -tf archive
2999 ) ) >"$at_stdout" 2>"$at_stderr"
3000 fi
3001 at_status=$?
3002 at_failed=false
3003 at_func_diff_devnull "$at_stderr" || at_failed=:
3004 echo >>"$at_stdout"; $as_echo "Creating the archive
3005 Testing the archive
3006 directory/
3007 directory/a
3008 " | \
3009   $at_diff - "$at_stdout" || at_failed=:
3010 at_func_check_status 0 $at_status "$at_srcdir/indexfile.at:29"
3011
3012 $at_failed && at_func_log_failure
3013 $at_traceon; }
3014
3015               { $at_traceoff
3016 $as_echo "$at_srcdir/indexfile.at:29:
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 )"
3035 echo indexfile.at:29 >"$at_check_line_file"
3036
3037 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
3038    false; }; then
3039   ( $at_traceon;
3040 mkdir ustar
3041 (cd ustar
3042 TEST_TAR_FORMAT=ustar
3043 export TEST_TAR_FORMAT
3044 TAR_OPTIONS="-H ustar"
3045 export TAR_OPTIONS
3046 rm -rf *
3047
3048
3049 mkdir directory
3050 genfile --file=directory/a --length=1035
3051
3052 echo "Creating the archive"
3053 tar -c -v -f - --index-file=idx directory > archive
3054
3055 echo "Testing the archive"
3056 tar -tf archive
3057 ) ) >"$at_stdout" 2>"$at_stder1"
3058   at_func_filter_trace $?
3059 else
3060   ( :;
3061 mkdir ustar
3062 (cd ustar
3063 TEST_TAR_FORMAT=ustar
3064 export TEST_TAR_FORMAT
3065 TAR_OPTIONS="-H ustar"
3066 export TAR_OPTIONS
3067 rm -rf *
3068
3069
3070 mkdir directory
3071 genfile --file=directory/a --length=1035
3072
3073 echo "Creating the archive"
3074 tar -c -v -f - --index-file=idx directory > archive
3075
3076 echo "Testing the archive"
3077 tar -tf archive
3078 ) ) >"$at_stdout" 2>"$at_stderr"
3079 fi
3080 at_status=$?
3081 at_failed=false
3082 at_func_diff_devnull "$at_stderr" || at_failed=:
3083 echo >>"$at_stdout"; $as_echo "Creating the archive
3084 Testing the archive
3085 directory/
3086 directory/a
3087 " | \
3088   $at_diff - "$at_stdout" || at_failed=:
3089 at_func_check_status 0 $at_status "$at_srcdir/indexfile.at:29"
3090
3091 $at_failed && at_func_log_failure
3092 $at_traceon; }
3093
3094               { $at_traceoff
3095 $as_echo "$at_srcdir/indexfile.at:29:
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 )"
3114 echo indexfile.at:29 >"$at_check_line_file"
3115
3116 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
3117    false; }; then
3118   ( $at_traceon;
3119 mkdir posix
3120 (cd posix
3121 TEST_TAR_FORMAT=posix
3122 export TEST_TAR_FORMAT
3123 TAR_OPTIONS="-H posix"
3124 export TAR_OPTIONS
3125 rm -rf *
3126
3127
3128 mkdir directory
3129 genfile --file=directory/a --length=1035
3130
3131 echo "Creating the archive"
3132 tar -c -v -f - --index-file=idx directory > archive
3133
3134 echo "Testing the archive"
3135 tar -tf archive
3136 ) ) >"$at_stdout" 2>"$at_stder1"
3137   at_func_filter_trace $?
3138 else
3139   ( :;
3140 mkdir posix
3141 (cd posix
3142 TEST_TAR_FORMAT=posix
3143 export TEST_TAR_FORMAT
3144 TAR_OPTIONS="-H posix"
3145 export TAR_OPTIONS
3146 rm -rf *
3147
3148
3149 mkdir directory
3150 genfile --file=directory/a --length=1035
3151
3152 echo "Creating the archive"
3153 tar -c -v -f - --index-file=idx directory > archive
3154
3155 echo "Testing the archive"
3156 tar -tf archive
3157 ) ) >"$at_stdout" 2>"$at_stderr"
3158 fi
3159 at_status=$?
3160 at_failed=false
3161 at_func_diff_devnull "$at_stderr" || at_failed=:
3162 echo >>"$at_stdout"; $as_echo "Creating the archive
3163 Testing the archive
3164 directory/
3165 directory/a
3166 " | \
3167   $at_diff - "$at_stdout" || at_failed=:
3168 at_func_check_status 0 $at_status "$at_srcdir/indexfile.at:29"
3169
3170 $at_failed && at_func_log_failure
3171 $at_traceon; }
3172
3173               { $at_traceoff
3174 $as_echo "$at_srcdir/indexfile.at:29:
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 )"
3193 echo indexfile.at:29 >"$at_check_line_file"
3194
3195 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
3196    false; }; then
3197   ( $at_traceon;
3198 mkdir gnu
3199 (cd gnu
3200 TEST_TAR_FORMAT=gnu
3201 export TEST_TAR_FORMAT
3202 TAR_OPTIONS="-H gnu"
3203 export TAR_OPTIONS
3204 rm -rf *
3205
3206
3207 mkdir directory
3208 genfile --file=directory/a --length=1035
3209
3210 echo "Creating the archive"
3211 tar -c -v -f - --index-file=idx directory > archive
3212
3213 echo "Testing the archive"
3214 tar -tf archive
3215 ) ) >"$at_stdout" 2>"$at_stder1"
3216   at_func_filter_trace $?
3217 else
3218   ( :;
3219 mkdir gnu
3220 (cd gnu
3221 TEST_TAR_FORMAT=gnu
3222 export TEST_TAR_FORMAT
3223 TAR_OPTIONS="-H gnu"
3224 export TAR_OPTIONS
3225 rm -rf *
3226
3227
3228 mkdir directory
3229 genfile --file=directory/a --length=1035
3230
3231 echo "Creating the archive"
3232 tar -c -v -f - --index-file=idx directory > archive
3233
3234 echo "Testing the archive"
3235 tar -tf archive
3236 ) ) >"$at_stdout" 2>"$at_stderr"
3237 fi
3238 at_status=$?
3239 at_failed=false
3240 at_func_diff_devnull "$at_stderr" || at_failed=:
3241 echo >>"$at_stdout"; $as_echo "Creating the archive
3242 Testing the archive
3243 directory/
3244 directory/a
3245 " | \
3246   $at_diff - "$at_stdout" || at_failed=:
3247 at_func_check_status 0 $at_status "$at_srcdir/indexfile.at:29"
3248
3249 $at_failed && at_func_log_failure
3250 $at_traceon; }
3251
3252
3253
3254
3255   $at_traceoff
3256   $at_times_p && times >"$at_times_file"
3257 ) 5>&1 2>&1 | eval $at_tee_pipe
3258 at_status=`cat "$at_status_file"`
3259 #AT_STOP_7
3260 #AT_START_8
3261 # 8. verbose.at:26: tar cvf -
3262 at_setup_line='verbose.at:26'
3263 at_desc="tar cvf -"
3264 $at_quiet $as_echo_n "  8: $at_desc                                      "
3265 at_xfail=no
3266       test -f $XFAILFILE && at_xfail=yes
3267 echo "#                             -*- compilation -*-" >> "$at_group_log"
3268 (
3269   $as_echo "8. verbose.at:26: testing ..."
3270   $at_traceon
3271
3272
3273
3274
3275
3276   { $at_traceoff
3277 $as_echo "$at_srcdir/verbose.at:29:
3278 mkdir v7
3279 (cd v7
3280 TEST_TAR_FORMAT=v7
3281 export TEST_TAR_FORMAT
3282 TAR_OPTIONS=\"-H v7\"
3283 export TAR_OPTIONS
3284 rm -rf *
3285
3286 genfile --file file --length 10240
3287 echo Creating the archive
3288 tar cvf - file > archive
3289 echo Testing the archive
3290 tar tf archive
3291 )"
3292 echo verbose.at:29 >"$at_check_line_file"
3293
3294 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
3295    false; }; then
3296   ( $at_traceon;
3297 mkdir v7
3298 (cd v7
3299 TEST_TAR_FORMAT=v7
3300 export TEST_TAR_FORMAT
3301 TAR_OPTIONS="-H v7"
3302 export TAR_OPTIONS
3303 rm -rf *
3304
3305 genfile --file file --length 10240
3306 echo Creating the archive
3307 tar cvf - file > archive
3308 echo Testing the archive
3309 tar tf archive
3310 ) ) >"$at_stdout" 2>"$at_stder1"
3311   at_func_filter_trace $?
3312 else
3313   ( :;
3314 mkdir v7
3315 (cd v7
3316 TEST_TAR_FORMAT=v7
3317 export TEST_TAR_FORMAT
3318 TAR_OPTIONS="-H v7"
3319 export TAR_OPTIONS
3320 rm -rf *
3321
3322 genfile --file file --length 10240
3323 echo Creating the archive
3324 tar cvf - file > archive
3325 echo Testing the archive
3326 tar tf archive
3327 ) ) >"$at_stdout" 2>"$at_stderr"
3328 fi
3329 at_status=$?
3330 at_failed=false
3331 echo >>"$at_stderr"; $as_echo "file
3332 " | \
3333   $at_diff - "$at_stderr" || at_failed=:
3334 echo >>"$at_stdout"; $as_echo "Creating the archive
3335 Testing the archive
3336 file
3337 " | \
3338   $at_diff - "$at_stdout" || at_failed=:
3339 at_func_check_status 0 $at_status "$at_srcdir/verbose.at:29"
3340
3341 $at_failed && at_func_log_failure
3342 $at_traceon; }
3343
3344               { $at_traceoff
3345 $as_echo "$at_srcdir/verbose.at:29:
3346 mkdir oldgnu
3347 (cd oldgnu
3348 TEST_TAR_FORMAT=oldgnu
3349 export TEST_TAR_FORMAT
3350 TAR_OPTIONS=\"-H oldgnu\"
3351 export TAR_OPTIONS
3352 rm -rf *
3353
3354 genfile --file file --length 10240
3355 echo Creating the archive
3356 tar cvf - file > archive
3357 echo Testing the archive
3358 tar tf archive
3359 )"
3360 echo verbose.at:29 >"$at_check_line_file"
3361
3362 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
3363    false; }; then
3364   ( $at_traceon;
3365 mkdir oldgnu
3366 (cd oldgnu
3367 TEST_TAR_FORMAT=oldgnu
3368 export TEST_TAR_FORMAT
3369 TAR_OPTIONS="-H oldgnu"
3370 export TAR_OPTIONS
3371 rm -rf *
3372
3373 genfile --file file --length 10240
3374 echo Creating the archive
3375 tar cvf - file > archive
3376 echo Testing the archive
3377 tar tf archive
3378 ) ) >"$at_stdout" 2>"$at_stder1"
3379   at_func_filter_trace $?
3380 else
3381   ( :;
3382 mkdir oldgnu
3383 (cd oldgnu
3384 TEST_TAR_FORMAT=oldgnu
3385 export TEST_TAR_FORMAT
3386 TAR_OPTIONS="-H oldgnu"
3387 export TAR_OPTIONS
3388 rm -rf *
3389
3390 genfile --file file --length 10240
3391 echo Creating the archive
3392 tar cvf - file > archive
3393 echo Testing the archive
3394 tar tf archive
3395 ) ) >"$at_stdout" 2>"$at_stderr"
3396 fi
3397 at_status=$?
3398 at_failed=false
3399 echo >>"$at_stderr"; $as_echo "file
3400 " | \
3401   $at_diff - "$at_stderr" || at_failed=:
3402 echo >>"$at_stdout"; $as_echo "Creating the archive
3403 Testing the archive
3404 file
3405 " | \
3406   $at_diff - "$at_stdout" || at_failed=:
3407 at_func_check_status 0 $at_status "$at_srcdir/verbose.at:29"
3408
3409 $at_failed && at_func_log_failure
3410 $at_traceon; }
3411
3412               { $at_traceoff
3413 $as_echo "$at_srcdir/verbose.at:29:
3414 mkdir ustar
3415 (cd ustar
3416 TEST_TAR_FORMAT=ustar
3417 export TEST_TAR_FORMAT
3418 TAR_OPTIONS=\"-H ustar\"
3419 export TAR_OPTIONS
3420 rm -rf *
3421
3422 genfile --file file --length 10240
3423 echo Creating the archive
3424 tar cvf - file > archive
3425 echo Testing the archive
3426 tar tf archive
3427 )"
3428 echo verbose.at:29 >"$at_check_line_file"
3429
3430 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
3431    false; }; then
3432   ( $at_traceon;
3433 mkdir ustar
3434 (cd ustar
3435 TEST_TAR_FORMAT=ustar
3436 export TEST_TAR_FORMAT
3437 TAR_OPTIONS="-H ustar"
3438 export TAR_OPTIONS
3439 rm -rf *
3440
3441 genfile --file file --length 10240
3442 echo Creating the archive
3443 tar cvf - file > archive
3444 echo Testing the archive
3445 tar tf archive
3446 ) ) >"$at_stdout" 2>"$at_stder1"
3447   at_func_filter_trace $?
3448 else
3449   ( :;
3450 mkdir ustar
3451 (cd ustar
3452 TEST_TAR_FORMAT=ustar
3453 export TEST_TAR_FORMAT
3454 TAR_OPTIONS="-H ustar"
3455 export TAR_OPTIONS
3456 rm -rf *
3457
3458 genfile --file file --length 10240
3459 echo Creating the archive
3460 tar cvf - file > archive
3461 echo Testing the archive
3462 tar tf archive
3463 ) ) >"$at_stdout" 2>"$at_stderr"
3464 fi
3465 at_status=$?
3466 at_failed=false
3467 echo >>"$at_stderr"; $as_echo "file
3468 " | \
3469   $at_diff - "$at_stderr" || at_failed=:
3470 echo >>"$at_stdout"; $as_echo "Creating the archive
3471 Testing the archive
3472 file
3473 " | \
3474   $at_diff - "$at_stdout" || at_failed=:
3475 at_func_check_status 0 $at_status "$at_srcdir/verbose.at:29"
3476
3477 $at_failed && at_func_log_failure
3478 $at_traceon; }
3479
3480               { $at_traceoff
3481 $as_echo "$at_srcdir/verbose.at:29:
3482 mkdir posix
3483 (cd posix
3484 TEST_TAR_FORMAT=posix
3485 export TEST_TAR_FORMAT
3486 TAR_OPTIONS=\"-H posix\"
3487 export TAR_OPTIONS
3488 rm -rf *
3489
3490 genfile --file file --length 10240
3491 echo Creating the archive
3492 tar cvf - file > archive
3493 echo Testing the archive
3494 tar tf archive
3495 )"
3496 echo verbose.at:29 >"$at_check_line_file"
3497
3498 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
3499    false; }; then
3500   ( $at_traceon;
3501 mkdir posix
3502 (cd posix
3503 TEST_TAR_FORMAT=posix
3504 export TEST_TAR_FORMAT
3505 TAR_OPTIONS="-H posix"
3506 export TAR_OPTIONS
3507 rm -rf *
3508
3509 genfile --file file --length 10240
3510 echo Creating the archive
3511 tar cvf - file > archive
3512 echo Testing the archive
3513 tar tf archive
3514 ) ) >"$at_stdout" 2>"$at_stder1"
3515   at_func_filter_trace $?
3516 else
3517   ( :;
3518 mkdir posix
3519 (cd posix
3520 TEST_TAR_FORMAT=posix
3521 export TEST_TAR_FORMAT
3522 TAR_OPTIONS="-H posix"
3523 export TAR_OPTIONS
3524 rm -rf *
3525
3526 genfile --file file --length 10240
3527 echo Creating the archive
3528 tar cvf - file > archive
3529 echo Testing the archive
3530 tar tf archive
3531 ) ) >"$at_stdout" 2>"$at_stderr"
3532 fi
3533 at_status=$?
3534 at_failed=false
3535 echo >>"$at_stderr"; $as_echo "file
3536 " | \
3537   $at_diff - "$at_stderr" || at_failed=:
3538 echo >>"$at_stdout"; $as_echo "Creating the archive
3539 Testing the archive
3540 file
3541 " | \
3542   $at_diff - "$at_stdout" || at_failed=:
3543 at_func_check_status 0 $at_status "$at_srcdir/verbose.at:29"
3544
3545 $at_failed && at_func_log_failure
3546 $at_traceon; }
3547
3548               { $at_traceoff
3549 $as_echo "$at_srcdir/verbose.at:29:
3550 mkdir gnu
3551 (cd gnu
3552 TEST_TAR_FORMAT=gnu
3553 export TEST_TAR_FORMAT
3554 TAR_OPTIONS=\"-H gnu\"
3555 export TAR_OPTIONS
3556 rm -rf *
3557
3558 genfile --file file --length 10240
3559 echo Creating the archive
3560 tar cvf - file > archive
3561 echo Testing the archive
3562 tar tf archive
3563 )"
3564 echo verbose.at:29 >"$at_check_line_file"
3565
3566 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
3567    false; }; then
3568   ( $at_traceon;
3569 mkdir gnu
3570 (cd gnu
3571 TEST_TAR_FORMAT=gnu
3572 export TEST_TAR_FORMAT
3573 TAR_OPTIONS="-H gnu"
3574 export TAR_OPTIONS
3575 rm -rf *
3576
3577 genfile --file file --length 10240
3578 echo Creating the archive
3579 tar cvf - file > archive
3580 echo Testing the archive
3581 tar tf archive
3582 ) ) >"$at_stdout" 2>"$at_stder1"
3583   at_func_filter_trace $?
3584 else
3585   ( :;
3586 mkdir gnu
3587 (cd gnu
3588 TEST_TAR_FORMAT=gnu
3589 export TEST_TAR_FORMAT
3590 TAR_OPTIONS="-H gnu"
3591 export TAR_OPTIONS
3592 rm -rf *
3593
3594 genfile --file file --length 10240
3595 echo Creating the archive
3596 tar cvf - file > archive
3597 echo Testing the archive
3598 tar tf archive
3599 ) ) >"$at_stdout" 2>"$at_stderr"
3600 fi
3601 at_status=$?
3602 at_failed=false
3603 echo >>"$at_stderr"; $as_echo "file
3604 " | \
3605   $at_diff - "$at_stderr" || at_failed=:
3606 echo >>"$at_stdout"; $as_echo "Creating the archive
3607 Testing the archive
3608 file
3609 " | \
3610   $at_diff - "$at_stdout" || at_failed=:
3611 at_func_check_status 0 $at_status "$at_srcdir/verbose.at:29"
3612
3613 $at_failed && at_func_log_failure
3614 $at_traceon; }
3615
3616
3617
3618
3619   $at_traceoff
3620   $at_times_p && times >"$at_times_file"
3621 ) 5>&1 2>&1 | eval $at_tee_pipe
3622 at_status=`cat "$at_status_file"`
3623 #AT_STOP_8
3624 #AT_START_9
3625 # 9. append.at:21: append
3626 at_setup_line='append.at:21'
3627 at_desc="append"
3628 $at_quiet $as_echo_n "  9: $at_desc                                         "
3629 at_xfail=no
3630       test -f $XFAILFILE && at_xfail=yes
3631 echo "#                             -*- compilation -*-" >> "$at_group_log"
3632 (
3633   $as_echo "9. append.at:21: testing ..."
3634   $at_traceon
3635
3636
3637
3638
3639
3640   { $at_traceoff
3641 $as_echo "$at_srcdir/append.at:24:
3642 mkdir v7
3643 (cd v7
3644 TEST_TAR_FORMAT=v7
3645 export TEST_TAR_FORMAT
3646 TAR_OPTIONS=\"-H v7\"
3647 export TAR_OPTIONS
3648 rm -rf *
3649 touch file1
3650           touch file2
3651           tar cf archive file1
3652           tar rf archive file2
3653           tar tf archive)"
3654 echo append.at:24 >"$at_check_line_file"
3655
3656 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
3657    false; }; then
3658   ( $at_traceon;
3659 mkdir v7
3660 (cd v7
3661 TEST_TAR_FORMAT=v7
3662 export TEST_TAR_FORMAT
3663 TAR_OPTIONS="-H v7"
3664 export TAR_OPTIONS
3665 rm -rf *
3666 touch file1
3667           touch file2
3668           tar cf archive file1
3669           tar rf archive file2
3670           tar tf archive) ) >"$at_stdout" 2>"$at_stder1"
3671   at_func_filter_trace $?
3672 else
3673   ( :;
3674 mkdir v7
3675 (cd v7
3676 TEST_TAR_FORMAT=v7
3677 export TEST_TAR_FORMAT
3678 TAR_OPTIONS="-H v7"
3679 export TAR_OPTIONS
3680 rm -rf *
3681 touch file1
3682           touch file2
3683           tar cf archive file1
3684           tar rf archive file2
3685           tar tf archive) ) >"$at_stdout" 2>"$at_stderr"
3686 fi
3687 at_status=$?
3688 at_failed=false
3689 at_func_diff_devnull "$at_stderr" || at_failed=:
3690 echo >>"$at_stdout"; $as_echo "file1
3691 file2
3692 " | \
3693   $at_diff - "$at_stdout" || at_failed=:
3694 at_func_check_status 0 $at_status "$at_srcdir/append.at:24"
3695
3696 $at_failed && at_func_log_failure
3697 $at_traceon; }
3698
3699               { $at_traceoff
3700 $as_echo "$at_srcdir/append.at:24:
3701 mkdir oldgnu
3702 (cd oldgnu
3703 TEST_TAR_FORMAT=oldgnu
3704 export TEST_TAR_FORMAT
3705 TAR_OPTIONS=\"-H oldgnu\"
3706 export TAR_OPTIONS
3707 rm -rf *
3708 touch file1
3709           touch file2
3710           tar cf archive file1
3711           tar rf archive file2
3712           tar tf archive)"
3713 echo append.at:24 >"$at_check_line_file"
3714
3715 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
3716    false; }; then
3717   ( $at_traceon;
3718 mkdir oldgnu
3719 (cd oldgnu
3720 TEST_TAR_FORMAT=oldgnu
3721 export TEST_TAR_FORMAT
3722 TAR_OPTIONS="-H oldgnu"
3723 export TAR_OPTIONS
3724 rm -rf *
3725 touch file1
3726           touch file2
3727           tar cf archive file1
3728           tar rf archive file2
3729           tar tf archive) ) >"$at_stdout" 2>"$at_stder1"
3730   at_func_filter_trace $?
3731 else
3732   ( :;
3733 mkdir oldgnu
3734 (cd oldgnu
3735 TEST_TAR_FORMAT=oldgnu
3736 export TEST_TAR_FORMAT
3737 TAR_OPTIONS="-H oldgnu"
3738 export TAR_OPTIONS
3739 rm -rf *
3740 touch file1
3741           touch file2
3742           tar cf archive file1
3743           tar rf archive file2
3744           tar tf archive) ) >"$at_stdout" 2>"$at_stderr"
3745 fi
3746 at_status=$?
3747 at_failed=false
3748 at_func_diff_devnull "$at_stderr" || at_failed=:
3749 echo >>"$at_stdout"; $as_echo "file1
3750 file2
3751 " | \
3752   $at_diff - "$at_stdout" || at_failed=:
3753 at_func_check_status 0 $at_status "$at_srcdir/append.at:24"
3754
3755 $at_failed && at_func_log_failure
3756 $at_traceon; }
3757
3758               { $at_traceoff
3759 $as_echo "$at_srcdir/append.at:24:
3760 mkdir ustar
3761 (cd ustar
3762 TEST_TAR_FORMAT=ustar
3763 export TEST_TAR_FORMAT
3764 TAR_OPTIONS=\"-H ustar\"
3765 export TAR_OPTIONS
3766 rm -rf *
3767 touch file1
3768           touch file2
3769           tar cf archive file1
3770           tar rf archive file2
3771           tar tf archive)"
3772 echo append.at:24 >"$at_check_line_file"
3773
3774 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
3775    false; }; then
3776   ( $at_traceon;
3777 mkdir ustar
3778 (cd ustar
3779 TEST_TAR_FORMAT=ustar
3780 export TEST_TAR_FORMAT
3781 TAR_OPTIONS="-H ustar"
3782 export TAR_OPTIONS
3783 rm -rf *
3784 touch file1
3785           touch file2
3786           tar cf archive file1
3787           tar rf archive file2
3788           tar tf archive) ) >"$at_stdout" 2>"$at_stder1"
3789   at_func_filter_trace $?
3790 else
3791   ( :;
3792 mkdir ustar
3793 (cd ustar
3794 TEST_TAR_FORMAT=ustar
3795 export TEST_TAR_FORMAT
3796 TAR_OPTIONS="-H ustar"
3797 export TAR_OPTIONS
3798 rm -rf *
3799 touch file1
3800           touch file2
3801           tar cf archive file1
3802           tar rf archive file2
3803           tar tf archive) ) >"$at_stdout" 2>"$at_stderr"
3804 fi
3805 at_status=$?
3806 at_failed=false
3807 at_func_diff_devnull "$at_stderr" || at_failed=:
3808 echo >>"$at_stdout"; $as_echo "file1
3809 file2
3810 " | \
3811   $at_diff - "$at_stdout" || at_failed=:
3812 at_func_check_status 0 $at_status "$at_srcdir/append.at:24"
3813
3814 $at_failed && at_func_log_failure
3815 $at_traceon; }
3816
3817               { $at_traceoff
3818 $as_echo "$at_srcdir/append.at:24:
3819 mkdir posix
3820 (cd posix
3821 TEST_TAR_FORMAT=posix
3822 export TEST_TAR_FORMAT
3823 TAR_OPTIONS=\"-H posix\"
3824 export TAR_OPTIONS
3825 rm -rf *
3826 touch file1
3827           touch file2
3828           tar cf archive file1
3829           tar rf archive file2
3830           tar tf archive)"
3831 echo append.at:24 >"$at_check_line_file"
3832
3833 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
3834    false; }; then
3835   ( $at_traceon;
3836 mkdir posix
3837 (cd posix
3838 TEST_TAR_FORMAT=posix
3839 export TEST_TAR_FORMAT
3840 TAR_OPTIONS="-H posix"
3841 export TAR_OPTIONS
3842 rm -rf *
3843 touch file1
3844           touch file2
3845           tar cf archive file1
3846           tar rf archive file2
3847           tar tf archive) ) >"$at_stdout" 2>"$at_stder1"
3848   at_func_filter_trace $?
3849 else
3850   ( :;
3851 mkdir posix
3852 (cd posix
3853 TEST_TAR_FORMAT=posix
3854 export TEST_TAR_FORMAT
3855 TAR_OPTIONS="-H posix"
3856 export TAR_OPTIONS
3857 rm -rf *
3858 touch file1
3859           touch file2
3860           tar cf archive file1
3861           tar rf archive file2
3862           tar tf archive) ) >"$at_stdout" 2>"$at_stderr"
3863 fi
3864 at_status=$?
3865 at_failed=false
3866 at_func_diff_devnull "$at_stderr" || at_failed=:
3867 echo >>"$at_stdout"; $as_echo "file1
3868 file2
3869 " | \
3870   $at_diff - "$at_stdout" || at_failed=:
3871 at_func_check_status 0 $at_status "$at_srcdir/append.at:24"
3872
3873 $at_failed && at_func_log_failure
3874 $at_traceon; }
3875
3876               { $at_traceoff
3877 $as_echo "$at_srcdir/append.at:24:
3878 mkdir gnu
3879 (cd gnu
3880 TEST_TAR_FORMAT=gnu
3881 export TEST_TAR_FORMAT
3882 TAR_OPTIONS=\"-H gnu\"
3883 export TAR_OPTIONS
3884 rm -rf *
3885 touch file1
3886           touch file2
3887           tar cf archive file1
3888           tar rf archive file2
3889           tar tf archive)"
3890 echo append.at:24 >"$at_check_line_file"
3891
3892 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
3893    false; }; then
3894   ( $at_traceon;
3895 mkdir gnu
3896 (cd gnu
3897 TEST_TAR_FORMAT=gnu
3898 export TEST_TAR_FORMAT
3899 TAR_OPTIONS="-H gnu"
3900 export TAR_OPTIONS
3901 rm -rf *
3902 touch file1
3903           touch file2
3904           tar cf archive file1
3905           tar rf archive file2
3906           tar tf archive) ) >"$at_stdout" 2>"$at_stder1"
3907   at_func_filter_trace $?
3908 else
3909   ( :;
3910 mkdir gnu
3911 (cd gnu
3912 TEST_TAR_FORMAT=gnu
3913 export TEST_TAR_FORMAT
3914 TAR_OPTIONS="-H gnu"
3915 export TAR_OPTIONS
3916 rm -rf *
3917 touch file1
3918           touch file2
3919           tar cf archive file1
3920           tar rf archive file2
3921           tar tf archive) ) >"$at_stdout" 2>"$at_stderr"
3922 fi
3923 at_status=$?
3924 at_failed=false
3925 at_func_diff_devnull "$at_stderr" || at_failed=:
3926 echo >>"$at_stdout"; $as_echo "file1
3927 file2
3928 " | \
3929   $at_diff - "$at_stdout" || at_failed=:
3930 at_func_check_status 0 $at_status "$at_srcdir/append.at:24"
3931
3932 $at_failed && at_func_log_failure
3933 $at_traceon; }
3934
3935
3936
3937
3938   $at_traceoff
3939   $at_times_p && times >"$at_times_file"
3940 ) 5>&1 2>&1 | eval $at_tee_pipe
3941 at_status=`cat "$at_status_file"`
3942 #AT_STOP_9
3943 #AT_START_10
3944 # 10. append01.at:29: appending files with long names
3945 at_setup_line='append01.at:29'
3946 at_desc="appending files with long names"
3947 $at_quiet $as_echo_n " 10: $at_desc                "
3948 at_xfail=no
3949       test -f $XFAILFILE && at_xfail=yes
3950 echo "#                             -*- compilation -*-" >> "$at_group_log"
3951 (
3952   $as_echo "10. append01.at:29: testing ..."
3953   $at_traceon
3954
3955
3956
3957
3958
3959
3960
3961   { $at_traceoff
3962 $as_echo "$at_srcdir/append01.at:34:
3963 mkdir oldgnu
3964 (cd oldgnu
3965 TEST_TAR_FORMAT=oldgnu
3966 export TEST_TAR_FORMAT
3967 TAR_OPTIONS=\"-H oldgnu\"
3968 export TAR_OPTIONS
3969 rm -rf *
3970
3971 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
3972 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
3973 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
3974 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
3975 tar tf archive
3976 )"
3977 echo append01.at:34 >"$at_check_line_file"
3978
3979 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
3980    false; }; then
3981   ( $at_traceon;
3982 mkdir oldgnu
3983 (cd oldgnu
3984 TEST_TAR_FORMAT=oldgnu
3985 export TEST_TAR_FORMAT
3986 TAR_OPTIONS="-H oldgnu"
3987 export TAR_OPTIONS
3988 rm -rf *
3989
3990 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
3991 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
3992 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
3993 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
3994 tar tf archive
3995 ) ) >"$at_stdout" 2>"$at_stder1"
3996   at_func_filter_trace $?
3997 else
3998   ( :;
3999 mkdir oldgnu
4000 (cd oldgnu
4001 TEST_TAR_FORMAT=oldgnu
4002 export TEST_TAR_FORMAT
4003 TAR_OPTIONS="-H oldgnu"
4004 export TAR_OPTIONS
4005 rm -rf *
4006
4007 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
4008 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
4009 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
4010 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
4011 tar tf archive
4012 ) ) >"$at_stdout" 2>"$at_stderr"
4013 fi
4014 at_status=$?
4015 at_failed=false
4016 at_func_diff_devnull "$at_stderr" || at_failed=:
4017 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
4018 This_is_a_very_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
4019 " | \
4020   $at_diff - "$at_stdout" || at_failed=:
4021 at_func_check_status 0 $at_status "$at_srcdir/append01.at:34"
4022
4023 $at_failed && at_func_log_failure
4024 $at_traceon; }
4025
4026               { $at_traceoff
4027 $as_echo "$at_srcdir/append01.at:34:
4028 mkdir ustar
4029 (cd ustar
4030 TEST_TAR_FORMAT=ustar
4031 export TEST_TAR_FORMAT
4032 TAR_OPTIONS=\"-H ustar\"
4033 export TAR_OPTIONS
4034 rm -rf *
4035
4036 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
4037 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
4038 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
4039 tar rf archive This_is_a_very_long_file_name_prefix_that_is_designed_to_cause_problems_with_appending_long_file_names_that_run_into_a_limit_of_the_ustar_tarX/file2
4040 tar tf archive
4041 )"
4042 echo append01.at:34 >"$at_check_line_file"
4043
4044 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
4045    false; }; then
4046   ( $at_traceon;
4047 mkdir ustar
4048 (cd ustar
4049 TEST_TAR_FORMAT=ustar
4050 export TEST_TAR_FORMAT
4051 TAR_OPTIONS="-H ustar"
4052 export TAR_OPTIONS
4053 rm -rf *
4054
4055 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
4056 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
4057 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
4058 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
4059 tar tf archive
4060 ) ) >"$at_stdout" 2>"$at_stder1"
4061   at_func_filter_trace $?
4062 else
4063   ( :;
4064 mkdir ustar
4065 (cd ustar
4066 TEST_TAR_FORMAT=ustar
4067 export TEST_TAR_FORMAT
4068 TAR_OPTIONS="-H ustar"
4069 export TAR_OPTIONS
4070 rm -rf *
4071
4072 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
4073 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
4074 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
4075 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
4076 tar tf archive
4077 ) ) >"$at_stdout" 2>"$at_stderr"
4078 fi
4079 at_status=$?
4080 at_failed=false
4081 at_func_diff_devnull "$at_stderr" || at_failed=:
4082 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
4083 This_is_a_very_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
4084 " | \
4085   $at_diff - "$at_stdout" || at_failed=:
4086 at_func_check_status 0 $at_status "$at_srcdir/append01.at:34"
4087
4088 $at_failed && at_func_log_failure
4089 $at_traceon; }
4090
4091               { $at_traceoff
4092 $as_echo "$at_srcdir/append01.at:34:
4093 mkdir posix
4094 (cd posix
4095 TEST_TAR_FORMAT=posix
4096 export TEST_TAR_FORMAT
4097 TAR_OPTIONS=\"-H posix\"
4098 export TAR_OPTIONS
4099 rm -rf *
4100
4101 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
4102 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
4103 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
4104 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
4105 tar tf archive
4106 )"
4107 echo append01.at:34 >"$at_check_line_file"
4108
4109 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
4110    false; }; then
4111   ( $at_traceon;
4112 mkdir posix
4113 (cd posix
4114 TEST_TAR_FORMAT=posix
4115 export TEST_TAR_FORMAT
4116 TAR_OPTIONS="-H posix"
4117 export TAR_OPTIONS
4118 rm -rf *
4119
4120 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
4121 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
4122 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
4123 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
4124 tar tf archive
4125 ) ) >"$at_stdout" 2>"$at_stder1"
4126   at_func_filter_trace $?
4127 else
4128   ( :;
4129 mkdir posix
4130 (cd posix
4131 TEST_TAR_FORMAT=posix
4132 export TEST_TAR_FORMAT
4133 TAR_OPTIONS="-H posix"
4134 export TAR_OPTIONS
4135 rm -rf *
4136
4137 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
4138 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
4139 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
4140 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
4141 tar tf archive
4142 ) ) >"$at_stdout" 2>"$at_stderr"
4143 fi
4144 at_status=$?
4145 at_failed=false
4146 at_func_diff_devnull "$at_stderr" || at_failed=:
4147 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
4148 This_is_a_very_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
4149 " | \
4150   $at_diff - "$at_stdout" || at_failed=:
4151 at_func_check_status 0 $at_status "$at_srcdir/append01.at:34"
4152
4153 $at_failed && at_func_log_failure
4154 $at_traceon; }
4155
4156               { $at_traceoff
4157 $as_echo "$at_srcdir/append01.at:34:
4158 mkdir gnu
4159 (cd gnu
4160 TEST_TAR_FORMAT=gnu
4161 export TEST_TAR_FORMAT
4162 TAR_OPTIONS=\"-H gnu\"
4163 export TAR_OPTIONS
4164 rm -rf *
4165
4166 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
4167 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
4168 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
4169 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
4170 tar tf archive
4171 )"
4172 echo append01.at:34 >"$at_check_line_file"
4173
4174 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
4175    false; }; then
4176   ( $at_traceon;
4177 mkdir gnu
4178 (cd gnu
4179 TEST_TAR_FORMAT=gnu
4180 export TEST_TAR_FORMAT
4181 TAR_OPTIONS="-H gnu"
4182 export TAR_OPTIONS
4183 rm -rf *
4184
4185 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
4186 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
4187 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
4188 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
4189 tar tf archive
4190 ) ) >"$at_stdout" 2>"$at_stder1"
4191   at_func_filter_trace $?
4192 else
4193   ( :;
4194 mkdir gnu
4195 (cd gnu
4196 TEST_TAR_FORMAT=gnu
4197 export TEST_TAR_FORMAT
4198 TAR_OPTIONS="-H gnu"
4199 export TAR_OPTIONS
4200 rm -rf *
4201
4202 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
4203 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
4204 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
4205 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
4206 tar tf archive
4207 ) ) >"$at_stdout" 2>"$at_stderr"
4208 fi
4209 at_status=$?
4210 at_failed=false
4211 at_func_diff_devnull "$at_stderr" || at_failed=:
4212 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
4213 This_is_a_very_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
4214 " | \
4215   $at_diff - "$at_stdout" || at_failed=:
4216 at_func_check_status 0 $at_status "$at_srcdir/append01.at:34"
4217
4218 $at_failed && at_func_log_failure
4219 $at_traceon; }
4220
4221
4222
4223
4224   $at_traceoff
4225   $at_times_p && times >"$at_times_file"
4226 ) 5>&1 2>&1 | eval $at_tee_pipe
4227 at_status=`cat "$at_status_file"`
4228 #AT_STOP_10
4229 #AT_START_11
4230 # 11. append02.at:54: append vs. create
4231 at_setup_line='append02.at:54'
4232 at_desc="append vs. create"
4233 $at_quiet $as_echo_n " 11: $at_desc                              "
4234 at_xfail=no
4235       test -f $XFAILFILE && at_xfail=yes
4236 echo "#                             -*- compilation -*-" >> "$at_group_log"
4237 (
4238   $as_echo "11. append02.at:54: testing ..."
4239   $at_traceon
4240
4241
4242
4243
4244
4245   { $at_traceoff
4246 $as_echo "$at_srcdir/append02.at:57:
4247 mkdir v7
4248 (cd v7
4249 TEST_TAR_FORMAT=v7
4250 export TEST_TAR_FORMAT
4251 TAR_OPTIONS=\"-H v7\"
4252 export TAR_OPTIONS
4253 rm -rf *
4254
4255 genfile --file file1
4256 genfile --file file2
4257
4258 # Make sure file timestamps in the archive will not differ
4259 MTIME=\"--mtime=@0\"
4260
4261 # For PAX archives, we need to make sure extended header names are
4262 # reproducible and that their contents won't change with time
4263 if test \$TEST_TAR_FORMAT = posix; then
4264   TAR_OPTIONS=\"\$TAR_OPTIONS --pax-option=exthdr.name=%d/PaxHeaders/%f,delete=mtime,delete=atime,delete=ctime\"
4265 fi
4266
4267 echo Creating archive.1
4268 tar \$MTIME -cf archive.1 file1 file2
4269
4270 echo Creating archive.2
4271 tar \$MTIME -cf archive.2 -T /dev/null
4272 tar \$MTIME -rf archive.2 file1
4273 tar \$MTIME -rf archive.2 file2
4274
4275 echo Comparing archives
4276 cmp archive.1 archive.2
4277 )"
4278 echo append02.at:57 >"$at_check_line_file"
4279
4280 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
4281    false; }; then
4282   ( $at_traceon;
4283 mkdir v7
4284 (cd v7
4285 TEST_TAR_FORMAT=v7
4286 export TEST_TAR_FORMAT
4287 TAR_OPTIONS="-H v7"
4288 export TAR_OPTIONS
4289 rm -rf *
4290
4291 genfile --file file1
4292 genfile --file file2
4293
4294 # Make sure file timestamps in the archive will not differ
4295 MTIME="--mtime=@0"
4296
4297 # For PAX archives, we need to make sure extended header names are
4298 # reproducible and that their contents won't change with time
4299 if test $TEST_TAR_FORMAT = posix; then
4300   TAR_OPTIONS="$TAR_OPTIONS --pax-option=exthdr.name=%d/PaxHeaders/%f,delete=mtime,delete=atime,delete=ctime"
4301 fi
4302
4303 echo Creating archive.1
4304 tar $MTIME -cf archive.1 file1 file2
4305
4306 echo Creating archive.2
4307 tar $MTIME -cf archive.2 -T /dev/null
4308 tar $MTIME -rf archive.2 file1
4309 tar $MTIME -rf archive.2 file2
4310
4311 echo Comparing archives
4312 cmp archive.1 archive.2
4313 ) ) >"$at_stdout" 2>"$at_stder1"
4314   at_func_filter_trace $?
4315 else
4316   ( :;
4317 mkdir v7
4318 (cd v7
4319 TEST_TAR_FORMAT=v7
4320 export TEST_TAR_FORMAT
4321 TAR_OPTIONS="-H v7"
4322 export TAR_OPTIONS
4323 rm -rf *
4324
4325 genfile --file file1
4326 genfile --file file2
4327
4328 # Make sure file timestamps in the archive will not differ
4329 MTIME="--mtime=@0"
4330
4331 # For PAX archives, we need to make sure extended header names are
4332 # reproducible and that their contents won't change with time
4333 if test $TEST_TAR_FORMAT = posix; then
4334   TAR_OPTIONS="$TAR_OPTIONS --pax-option=exthdr.name=%d/PaxHeaders/%f,delete=mtime,delete=atime,delete=ctime"
4335 fi
4336
4337 echo Creating archive.1
4338 tar $MTIME -cf archive.1 file1 file2
4339
4340 echo Creating archive.2
4341 tar $MTIME -cf archive.2 -T /dev/null
4342 tar $MTIME -rf archive.2 file1
4343 tar $MTIME -rf archive.2 file2
4344
4345 echo Comparing archives
4346 cmp archive.1 archive.2
4347 ) ) >"$at_stdout" 2>"$at_stderr"
4348 fi
4349 at_status=$?
4350 at_failed=false
4351 at_func_diff_devnull "$at_stderr" || at_failed=:
4352 echo >>"$at_stdout"; $as_echo "Creating archive.1
4353 Creating archive.2
4354 Comparing archives
4355 " | \
4356   $at_diff - "$at_stdout" || at_failed=:
4357 at_func_check_status 0 $at_status "$at_srcdir/append02.at:57"
4358
4359 $at_failed && at_func_log_failure
4360 $at_traceon; }
4361
4362               { $at_traceoff
4363 $as_echo "$at_srcdir/append02.at:57:
4364 mkdir oldgnu
4365 (cd oldgnu
4366 TEST_TAR_FORMAT=oldgnu
4367 export TEST_TAR_FORMAT
4368 TAR_OPTIONS=\"-H oldgnu\"
4369 export TAR_OPTIONS
4370 rm -rf *
4371
4372 genfile --file file1
4373 genfile --file file2
4374
4375 # Make sure file timestamps in the archive will not differ
4376 MTIME=\"--mtime=@0\"
4377
4378 # For PAX archives, we need to make sure extended header names are
4379 # reproducible and that their contents won't change with time
4380 if test \$TEST_TAR_FORMAT = posix; then
4381   TAR_OPTIONS=\"\$TAR_OPTIONS --pax-option=exthdr.name=%d/PaxHeaders/%f,delete=mtime,delete=atime,delete=ctime\"
4382 fi
4383
4384 echo Creating archive.1
4385 tar \$MTIME -cf archive.1 file1 file2
4386
4387 echo Creating archive.2
4388 tar \$MTIME -cf archive.2 -T /dev/null
4389 tar \$MTIME -rf archive.2 file1
4390 tar \$MTIME -rf archive.2 file2
4391
4392 echo Comparing archives
4393 cmp archive.1 archive.2
4394 )"
4395 echo append02.at:57 >"$at_check_line_file"
4396
4397 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
4398    false; }; then
4399   ( $at_traceon;
4400 mkdir oldgnu
4401 (cd oldgnu
4402 TEST_TAR_FORMAT=oldgnu
4403 export TEST_TAR_FORMAT
4404 TAR_OPTIONS="-H oldgnu"
4405 export TAR_OPTIONS
4406 rm -rf *
4407
4408 genfile --file file1
4409 genfile --file file2
4410
4411 # Make sure file timestamps in the archive will not differ
4412 MTIME="--mtime=@0"
4413
4414 # For PAX archives, we need to make sure extended header names are
4415 # reproducible and that their contents won't change with time
4416 if test $TEST_TAR_FORMAT = posix; then
4417   TAR_OPTIONS="$TAR_OPTIONS --pax-option=exthdr.name=%d/PaxHeaders/%f,delete=mtime,delete=atime,delete=ctime"
4418 fi
4419
4420 echo Creating archive.1
4421 tar $MTIME -cf archive.1 file1 file2
4422
4423 echo Creating archive.2
4424 tar $MTIME -cf archive.2 -T /dev/null
4425 tar $MTIME -rf archive.2 file1
4426 tar $MTIME -rf archive.2 file2
4427
4428 echo Comparing archives
4429 cmp archive.1 archive.2
4430 ) ) >"$at_stdout" 2>"$at_stder1"
4431   at_func_filter_trace $?
4432 else
4433   ( :;
4434 mkdir oldgnu
4435 (cd oldgnu
4436 TEST_TAR_FORMAT=oldgnu
4437 export TEST_TAR_FORMAT
4438 TAR_OPTIONS="-H oldgnu"
4439 export TAR_OPTIONS
4440 rm -rf *
4441
4442 genfile --file file1
4443 genfile --file file2
4444
4445 # Make sure file timestamps in the archive will not differ
4446 MTIME="--mtime=@0"
4447
4448 # For PAX archives, we need to make sure extended header names are
4449 # reproducible and that their contents won't change with time
4450 if test $TEST_TAR_FORMAT = posix; then
4451   TAR_OPTIONS="$TAR_OPTIONS --pax-option=exthdr.name=%d/PaxHeaders/%f,delete=mtime,delete=atime,delete=ctime"
4452 fi
4453
4454 echo Creating archive.1
4455 tar $MTIME -cf archive.1 file1 file2
4456
4457 echo Creating archive.2
4458 tar $MTIME -cf archive.2 -T /dev/null
4459 tar $MTIME -rf archive.2 file1
4460 tar $MTIME -rf archive.2 file2
4461
4462 echo Comparing archives
4463 cmp archive.1 archive.2
4464 ) ) >"$at_stdout" 2>"$at_stderr"
4465 fi
4466 at_status=$?
4467 at_failed=false
4468 at_func_diff_devnull "$at_stderr" || at_failed=:
4469 echo >>"$at_stdout"; $as_echo "Creating archive.1
4470 Creating archive.2
4471 Comparing archives
4472 " | \
4473   $at_diff - "$at_stdout" || at_failed=:
4474 at_func_check_status 0 $at_status "$at_srcdir/append02.at:57"
4475
4476 $at_failed && at_func_log_failure
4477 $at_traceon; }
4478
4479               { $at_traceoff
4480 $as_echo "$at_srcdir/append02.at:57:
4481 mkdir ustar
4482 (cd ustar
4483 TEST_TAR_FORMAT=ustar
4484 export TEST_TAR_FORMAT
4485 TAR_OPTIONS=\"-H ustar\"
4486 export TAR_OPTIONS
4487 rm -rf *
4488
4489 genfile --file file1
4490 genfile --file file2
4491
4492 # Make sure file timestamps in the archive will not differ
4493 MTIME=\"--mtime=@0\"
4494
4495 # For PAX archives, we need to make sure extended header names are
4496 # reproducible and that their contents won't change with time
4497 if test \$TEST_TAR_FORMAT = posix; then
4498   TAR_OPTIONS=\"\$TAR_OPTIONS --pax-option=exthdr.name=%d/PaxHeaders/%f,delete=mtime,delete=atime,delete=ctime\"
4499 fi
4500
4501 echo Creating archive.1
4502 tar \$MTIME -cf archive.1 file1 file2
4503
4504 echo Creating archive.2
4505 tar \$MTIME -cf archive.2 -T /dev/null
4506 tar \$MTIME -rf archive.2 file1
4507 tar \$MTIME -rf archive.2 file2
4508
4509 echo Comparing archives
4510 cmp archive.1 archive.2
4511 )"
4512 echo append02.at:57 >"$at_check_line_file"
4513
4514 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
4515    false; }; then
4516   ( $at_traceon;
4517 mkdir ustar
4518 (cd ustar
4519 TEST_TAR_FORMAT=ustar
4520 export TEST_TAR_FORMAT
4521 TAR_OPTIONS="-H ustar"
4522 export TAR_OPTIONS
4523 rm -rf *
4524
4525 genfile --file file1
4526 genfile --file file2
4527
4528 # Make sure file timestamps in the archive will not differ
4529 MTIME="--mtime=@0"
4530
4531 # For PAX archives, we need to make sure extended header names are
4532 # reproducible and that their contents won't change with time
4533 if test $TEST_TAR_FORMAT = posix; then
4534   TAR_OPTIONS="$TAR_OPTIONS --pax-option=exthdr.name=%d/PaxHeaders/%f,delete=mtime,delete=atime,delete=ctime"
4535 fi
4536
4537 echo Creating archive.1
4538 tar $MTIME -cf archive.1 file1 file2
4539
4540 echo Creating archive.2
4541 tar $MTIME -cf archive.2 -T /dev/null
4542 tar $MTIME -rf archive.2 file1
4543 tar $MTIME -rf archive.2 file2
4544
4545 echo Comparing archives
4546 cmp archive.1 archive.2
4547 ) ) >"$at_stdout" 2>"$at_stder1"
4548   at_func_filter_trace $?
4549 else
4550   ( :;
4551 mkdir ustar
4552 (cd ustar
4553 TEST_TAR_FORMAT=ustar
4554 export TEST_TAR_FORMAT
4555 TAR_OPTIONS="-H ustar"
4556 export TAR_OPTIONS
4557 rm -rf *
4558
4559 genfile --file file1
4560 genfile --file file2
4561
4562 # Make sure file timestamps in the archive will not differ
4563 MTIME="--mtime=@0"
4564
4565 # For PAX archives, we need to make sure extended header names are
4566 # reproducible and that their contents won't change with time
4567 if test $TEST_TAR_FORMAT = posix; then
4568   TAR_OPTIONS="$TAR_OPTIONS --pax-option=exthdr.name=%d/PaxHeaders/%f,delete=mtime,delete=atime,delete=ctime"
4569 fi
4570
4571 echo Creating archive.1
4572 tar $MTIME -cf archive.1 file1 file2
4573
4574 echo Creating archive.2
4575 tar $MTIME -cf archive.2 -T /dev/null
4576 tar $MTIME -rf archive.2 file1
4577 tar $MTIME -rf archive.2 file2
4578
4579 echo Comparing archives
4580 cmp archive.1 archive.2
4581 ) ) >"$at_stdout" 2>"$at_stderr"
4582 fi
4583 at_status=$?
4584 at_failed=false
4585 at_func_diff_devnull "$at_stderr" || at_failed=:
4586 echo >>"$at_stdout"; $as_echo "Creating archive.1
4587 Creating archive.2
4588 Comparing archives
4589 " | \
4590   $at_diff - "$at_stdout" || at_failed=:
4591 at_func_check_status 0 $at_status "$at_srcdir/append02.at:57"
4592
4593 $at_failed && at_func_log_failure
4594 $at_traceon; }
4595
4596               { $at_traceoff
4597 $as_echo "$at_srcdir/append02.at:57:
4598 mkdir posix
4599 (cd posix
4600 TEST_TAR_FORMAT=posix
4601 export TEST_TAR_FORMAT
4602 TAR_OPTIONS=\"-H posix\"
4603 export TAR_OPTIONS
4604 rm -rf *
4605
4606 genfile --file file1
4607 genfile --file file2
4608
4609 # Make sure file timestamps in the archive will not differ
4610 MTIME=\"--mtime=@0\"
4611
4612 # For PAX archives, we need to make sure extended header names are
4613 # reproducible and that their contents won't change with time
4614 if test \$TEST_TAR_FORMAT = posix; then
4615   TAR_OPTIONS=\"\$TAR_OPTIONS --pax-option=exthdr.name=%d/PaxHeaders/%f,delete=mtime,delete=atime,delete=ctime\"
4616 fi
4617
4618 echo Creating archive.1
4619 tar \$MTIME -cf archive.1 file1 file2
4620
4621 echo Creating archive.2
4622 tar \$MTIME -cf archive.2 -T /dev/null
4623 tar \$MTIME -rf archive.2 file1
4624 tar \$MTIME -rf archive.2 file2
4625
4626 echo Comparing archives
4627 cmp archive.1 archive.2
4628 )"
4629 echo append02.at:57 >"$at_check_line_file"
4630
4631 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
4632    false; }; then
4633   ( $at_traceon;
4634 mkdir posix
4635 (cd posix
4636 TEST_TAR_FORMAT=posix
4637 export TEST_TAR_FORMAT
4638 TAR_OPTIONS="-H posix"
4639 export TAR_OPTIONS
4640 rm -rf *
4641
4642 genfile --file file1
4643 genfile --file file2
4644
4645 # Make sure file timestamps in the archive will not differ
4646 MTIME="--mtime=@0"
4647
4648 # For PAX archives, we need to make sure extended header names are
4649 # reproducible and that their contents won't change with time
4650 if test $TEST_TAR_FORMAT = posix; then
4651   TAR_OPTIONS="$TAR_OPTIONS --pax-option=exthdr.name=%d/PaxHeaders/%f,delete=mtime,delete=atime,delete=ctime"
4652 fi
4653
4654 echo Creating archive.1
4655 tar $MTIME -cf archive.1 file1 file2
4656
4657 echo Creating archive.2
4658 tar $MTIME -cf archive.2 -T /dev/null
4659 tar $MTIME -rf archive.2 file1
4660 tar $MTIME -rf archive.2 file2
4661
4662 echo Comparing archives
4663 cmp archive.1 archive.2
4664 ) ) >"$at_stdout" 2>"$at_stder1"
4665   at_func_filter_trace $?
4666 else
4667   ( :;
4668 mkdir posix
4669 (cd posix
4670 TEST_TAR_FORMAT=posix
4671 export TEST_TAR_FORMAT
4672 TAR_OPTIONS="-H posix"
4673 export TAR_OPTIONS
4674 rm -rf *
4675
4676 genfile --file file1
4677 genfile --file file2
4678
4679 # Make sure file timestamps in the archive will not differ
4680 MTIME="--mtime=@0"
4681
4682 # For PAX archives, we need to make sure extended header names are
4683 # reproducible and that their contents won't change with time
4684 if test $TEST_TAR_FORMAT = posix; then
4685   TAR_OPTIONS="$TAR_OPTIONS --pax-option=exthdr.name=%d/PaxHeaders/%f,delete=mtime,delete=atime,delete=ctime"
4686 fi
4687
4688 echo Creating archive.1
4689 tar $MTIME -cf archive.1 file1 file2
4690
4691 echo Creating archive.2
4692 tar $MTIME -cf archive.2 -T /dev/null
4693 tar $MTIME -rf archive.2 file1
4694 tar $MTIME -rf archive.2 file2
4695
4696 echo Comparing archives
4697 cmp archive.1 archive.2
4698 ) ) >"$at_stdout" 2>"$at_stderr"
4699 fi
4700 at_status=$?
4701 at_failed=false
4702 at_func_diff_devnull "$at_stderr" || at_failed=:
4703 echo >>"$at_stdout"; $as_echo "Creating archive.1
4704 Creating archive.2
4705 Comparing archives
4706 " | \
4707   $at_diff - "$at_stdout" || at_failed=:
4708 at_func_check_status 0 $at_status "$at_srcdir/append02.at:57"
4709
4710 $at_failed && at_func_log_failure
4711 $at_traceon; }
4712
4713               { $at_traceoff
4714 $as_echo "$at_srcdir/append02.at:57:
4715 mkdir gnu
4716 (cd gnu
4717 TEST_TAR_FORMAT=gnu
4718 export TEST_TAR_FORMAT
4719 TAR_OPTIONS=\"-H gnu\"
4720 export TAR_OPTIONS
4721 rm -rf *
4722
4723 genfile --file file1
4724 genfile --file file2
4725
4726 # Make sure file timestamps in the archive will not differ
4727 MTIME=\"--mtime=@0\"
4728
4729 # For PAX archives, we need to make sure extended header names are
4730 # reproducible and that their contents won't change with time
4731 if test \$TEST_TAR_FORMAT = posix; then
4732   TAR_OPTIONS=\"\$TAR_OPTIONS --pax-option=exthdr.name=%d/PaxHeaders/%f,delete=mtime,delete=atime,delete=ctime\"
4733 fi
4734
4735 echo Creating archive.1
4736 tar \$MTIME -cf archive.1 file1 file2
4737
4738 echo Creating archive.2
4739 tar \$MTIME -cf archive.2 -T /dev/null
4740 tar \$MTIME -rf archive.2 file1
4741 tar \$MTIME -rf archive.2 file2
4742
4743 echo Comparing archives
4744 cmp archive.1 archive.2
4745 )"
4746 echo append02.at:57 >"$at_check_line_file"
4747
4748 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
4749    false; }; then
4750   ( $at_traceon;
4751 mkdir gnu
4752 (cd gnu
4753 TEST_TAR_FORMAT=gnu
4754 export TEST_TAR_FORMAT
4755 TAR_OPTIONS="-H gnu"
4756 export TAR_OPTIONS
4757 rm -rf *
4758
4759 genfile --file file1
4760 genfile --file file2
4761
4762 # Make sure file timestamps in the archive will not differ
4763 MTIME="--mtime=@0"
4764
4765 # For PAX archives, we need to make sure extended header names are
4766 # reproducible and that their contents won't change with time
4767 if test $TEST_TAR_FORMAT = posix; then
4768   TAR_OPTIONS="$TAR_OPTIONS --pax-option=exthdr.name=%d/PaxHeaders/%f,delete=mtime,delete=atime,delete=ctime"
4769 fi
4770
4771 echo Creating archive.1
4772 tar $MTIME -cf archive.1 file1 file2
4773
4774 echo Creating archive.2
4775 tar $MTIME -cf archive.2 -T /dev/null
4776 tar $MTIME -rf archive.2 file1
4777 tar $MTIME -rf archive.2 file2
4778
4779 echo Comparing archives
4780 cmp archive.1 archive.2
4781 ) ) >"$at_stdout" 2>"$at_stder1"
4782   at_func_filter_trace $?
4783 else
4784   ( :;
4785 mkdir gnu
4786 (cd gnu
4787 TEST_TAR_FORMAT=gnu
4788 export TEST_TAR_FORMAT
4789 TAR_OPTIONS="-H gnu"
4790 export TAR_OPTIONS
4791 rm -rf *
4792
4793 genfile --file file1
4794 genfile --file file2
4795
4796 # Make sure file timestamps in the archive will not differ
4797 MTIME="--mtime=@0"
4798
4799 # For PAX archives, we need to make sure extended header names are
4800 # reproducible and that their contents won't change with time
4801 if test $TEST_TAR_FORMAT = posix; then
4802   TAR_OPTIONS="$TAR_OPTIONS --pax-option=exthdr.name=%d/PaxHeaders/%f,delete=mtime,delete=atime,delete=ctime"
4803 fi
4804
4805 echo Creating archive.1
4806 tar $MTIME -cf archive.1 file1 file2
4807
4808 echo Creating archive.2
4809 tar $MTIME -cf archive.2 -T /dev/null
4810 tar $MTIME -rf archive.2 file1
4811 tar $MTIME -rf archive.2 file2
4812
4813 echo Comparing archives
4814 cmp archive.1 archive.2
4815 ) ) >"$at_stdout" 2>"$at_stderr"
4816 fi
4817 at_status=$?
4818 at_failed=false
4819 at_func_diff_devnull "$at_stderr" || at_failed=:
4820 echo >>"$at_stdout"; $as_echo "Creating archive.1
4821 Creating archive.2
4822 Comparing archives
4823 " | \
4824   $at_diff - "$at_stdout" || at_failed=:
4825 at_func_check_status 0 $at_status "$at_srcdir/append02.at:57"
4826
4827 $at_failed && at_func_log_failure
4828 $at_traceon; }
4829
4830
4831
4832
4833   $at_traceoff
4834   $at_times_p && times >"$at_times_file"
4835 ) 5>&1 2>&1 | eval $at_tee_pipe
4836 at_status=`cat "$at_status_file"`
4837 #AT_STOP_11
4838 #AT_START_12
4839 # 12. append03.at:19: append with name transformation
4840 at_setup_line='append03.at:19'
4841 at_desc="append with name transformation"
4842 $at_quiet $as_echo_n " 12: $at_desc                "
4843 at_xfail=no
4844       test -f $XFAILFILE && at_xfail=yes
4845 echo "#                             -*- compilation -*-" >> "$at_group_log"
4846 (
4847   $as_echo "12. append03.at:19: testing ..."
4848   $at_traceon
4849
4850
4851
4852 # Description: Make sure filenames are transformed during append.
4853
4854
4855
4856   { $at_traceoff
4857 $as_echo "$at_srcdir/append03.at:24:
4858 mkdir v7
4859 (cd v7
4860 TEST_TAR_FORMAT=v7
4861 export TEST_TAR_FORMAT
4862 TAR_OPTIONS=\"-H v7\"
4863 export TAR_OPTIONS
4864 rm -rf *
4865
4866 genfile --file file.1
4867 genfile --file file.2
4868
4869 tar -c -f archive --transform 's/file/plik/' file.*
4870 echo Appending
4871 tar -r -f archive --transform 's/file/plik/' -v --show-transformed-names file.1
4872 echo Testing
4873 tar tf archive
4874 )"
4875 echo append03.at:24 >"$at_check_line_file"
4876
4877 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
4878    false; }; then
4879   ( $at_traceon;
4880 mkdir v7
4881 (cd v7
4882 TEST_TAR_FORMAT=v7
4883 export TEST_TAR_FORMAT
4884 TAR_OPTIONS="-H v7"
4885 export TAR_OPTIONS
4886 rm -rf *
4887
4888 genfile --file file.1
4889 genfile --file file.2
4890
4891 tar -c -f archive --transform 's/file/plik/' file.*
4892 echo Appending
4893 tar -r -f archive --transform 's/file/plik/' -v --show-transformed-names file.1
4894 echo Testing
4895 tar tf archive
4896 ) ) >"$at_stdout" 2>"$at_stder1"
4897   at_func_filter_trace $?
4898 else
4899   ( :;
4900 mkdir v7
4901 (cd v7
4902 TEST_TAR_FORMAT=v7
4903 export TEST_TAR_FORMAT
4904 TAR_OPTIONS="-H v7"
4905 export TAR_OPTIONS
4906 rm -rf *
4907
4908 genfile --file file.1
4909 genfile --file file.2
4910
4911 tar -c -f archive --transform 's/file/plik/' file.*
4912 echo Appending
4913 tar -r -f archive --transform 's/file/plik/' -v --show-transformed-names file.1
4914 echo Testing
4915 tar tf archive
4916 ) ) >"$at_stdout" 2>"$at_stderr"
4917 fi
4918 at_status=$?
4919 at_failed=false
4920 at_func_diff_devnull "$at_stderr" || at_failed=:
4921 echo >>"$at_stdout"; $as_echo "Appending
4922 plik.1
4923 Testing
4924 plik.1
4925 plik.2
4926 plik.1
4927 " | \
4928   $at_diff - "$at_stdout" || at_failed=:
4929 at_func_check_status 0 $at_status "$at_srcdir/append03.at:24"
4930
4931 $at_failed && at_func_log_failure
4932 $at_traceon; }
4933
4934               { $at_traceoff
4935 $as_echo "$at_srcdir/append03.at:24:
4936 mkdir oldgnu
4937 (cd oldgnu
4938 TEST_TAR_FORMAT=oldgnu
4939 export TEST_TAR_FORMAT
4940 TAR_OPTIONS=\"-H oldgnu\"
4941 export TAR_OPTIONS
4942 rm -rf *
4943
4944 genfile --file file.1
4945 genfile --file file.2
4946
4947 tar -c -f archive --transform 's/file/plik/' file.*
4948 echo Appending
4949 tar -r -f archive --transform 's/file/plik/' -v --show-transformed-names file.1
4950 echo Testing
4951 tar tf archive
4952 )"
4953 echo append03.at:24 >"$at_check_line_file"
4954
4955 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
4956    false; }; then
4957   ( $at_traceon;
4958 mkdir oldgnu
4959 (cd oldgnu
4960 TEST_TAR_FORMAT=oldgnu
4961 export TEST_TAR_FORMAT
4962 TAR_OPTIONS="-H oldgnu"
4963 export TAR_OPTIONS
4964 rm -rf *
4965
4966 genfile --file file.1
4967 genfile --file file.2
4968
4969 tar -c -f archive --transform 's/file/plik/' file.*
4970 echo Appending
4971 tar -r -f archive --transform 's/file/plik/' -v --show-transformed-names file.1
4972 echo Testing
4973 tar tf archive
4974 ) ) >"$at_stdout" 2>"$at_stder1"
4975   at_func_filter_trace $?
4976 else
4977   ( :;
4978 mkdir oldgnu
4979 (cd oldgnu
4980 TEST_TAR_FORMAT=oldgnu
4981 export TEST_TAR_FORMAT
4982 TAR_OPTIONS="-H oldgnu"
4983 export TAR_OPTIONS
4984 rm -rf *
4985
4986 genfile --file file.1
4987 genfile --file file.2
4988
4989 tar -c -f archive --transform 's/file/plik/' file.*
4990 echo Appending
4991 tar -r -f archive --transform 's/file/plik/' -v --show-transformed-names file.1
4992 echo Testing
4993 tar tf archive
4994 ) ) >"$at_stdout" 2>"$at_stderr"
4995 fi
4996 at_status=$?
4997 at_failed=false
4998 at_func_diff_devnull "$at_stderr" || at_failed=:
4999 echo >>"$at_stdout"; $as_echo "Appending
5000 plik.1
5001 Testing
5002 plik.1
5003 plik.2
5004 plik.1
5005 " | \
5006   $at_diff - "$at_stdout" || at_failed=:
5007 at_func_check_status 0 $at_status "$at_srcdir/append03.at:24"
5008
5009 $at_failed && at_func_log_failure
5010 $at_traceon; }
5011
5012               { $at_traceoff
5013 $as_echo "$at_srcdir/append03.at:24:
5014 mkdir ustar
5015 (cd ustar
5016 TEST_TAR_FORMAT=ustar
5017 export TEST_TAR_FORMAT
5018 TAR_OPTIONS=\"-H ustar\"
5019 export TAR_OPTIONS
5020 rm -rf *
5021
5022 genfile --file file.1
5023 genfile --file file.2
5024
5025 tar -c -f archive --transform 's/file/plik/' file.*
5026 echo Appending
5027 tar -r -f archive --transform 's/file/plik/' -v --show-transformed-names file.1
5028 echo Testing
5029 tar tf archive
5030 )"
5031 echo append03.at:24 >"$at_check_line_file"
5032
5033 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
5034    false; }; then
5035   ( $at_traceon;
5036 mkdir ustar
5037 (cd ustar
5038 TEST_TAR_FORMAT=ustar
5039 export TEST_TAR_FORMAT
5040 TAR_OPTIONS="-H ustar"
5041 export TAR_OPTIONS
5042 rm -rf *
5043
5044 genfile --file file.1
5045 genfile --file file.2
5046
5047 tar -c -f archive --transform 's/file/plik/' file.*
5048 echo Appending
5049 tar -r -f archive --transform 's/file/plik/' -v --show-transformed-names file.1
5050 echo Testing
5051 tar tf archive
5052 ) ) >"$at_stdout" 2>"$at_stder1"
5053   at_func_filter_trace $?
5054 else
5055   ( :;
5056 mkdir ustar
5057 (cd ustar
5058 TEST_TAR_FORMAT=ustar
5059 export TEST_TAR_FORMAT
5060 TAR_OPTIONS="-H ustar"
5061 export TAR_OPTIONS
5062 rm -rf *
5063
5064 genfile --file file.1
5065 genfile --file file.2
5066
5067 tar -c -f archive --transform 's/file/plik/' file.*
5068 echo Appending
5069 tar -r -f archive --transform 's/file/plik/' -v --show-transformed-names file.1
5070 echo Testing
5071 tar tf archive
5072 ) ) >"$at_stdout" 2>"$at_stderr"
5073 fi
5074 at_status=$?
5075 at_failed=false
5076 at_func_diff_devnull "$at_stderr" || at_failed=:
5077 echo >>"$at_stdout"; $as_echo "Appending
5078 plik.1
5079 Testing
5080 plik.1
5081 plik.2
5082 plik.1
5083 " | \
5084   $at_diff - "$at_stdout" || at_failed=:
5085 at_func_check_status 0 $at_status "$at_srcdir/append03.at:24"
5086
5087 $at_failed && at_func_log_failure
5088 $at_traceon; }
5089
5090               { $at_traceoff
5091 $as_echo "$at_srcdir/append03.at:24:
5092 mkdir posix
5093 (cd posix
5094 TEST_TAR_FORMAT=posix
5095 export TEST_TAR_FORMAT
5096 TAR_OPTIONS=\"-H posix\"
5097 export TAR_OPTIONS
5098 rm -rf *
5099
5100 genfile --file file.1
5101 genfile --file file.2
5102
5103 tar -c -f archive --transform 's/file/plik/' file.*
5104 echo Appending
5105 tar -r -f archive --transform 's/file/plik/' -v --show-transformed-names file.1
5106 echo Testing
5107 tar tf archive
5108 )"
5109 echo append03.at:24 >"$at_check_line_file"
5110
5111 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
5112    false; }; then
5113   ( $at_traceon;
5114 mkdir posix
5115 (cd posix
5116 TEST_TAR_FORMAT=posix
5117 export TEST_TAR_FORMAT
5118 TAR_OPTIONS="-H posix"
5119 export TAR_OPTIONS
5120 rm -rf *
5121
5122 genfile --file file.1
5123 genfile --file file.2
5124
5125 tar -c -f archive --transform 's/file/plik/' file.*
5126 echo Appending
5127 tar -r -f archive --transform 's/file/plik/' -v --show-transformed-names file.1
5128 echo Testing
5129 tar tf archive
5130 ) ) >"$at_stdout" 2>"$at_stder1"
5131   at_func_filter_trace $?
5132 else
5133   ( :;
5134 mkdir posix
5135 (cd posix
5136 TEST_TAR_FORMAT=posix
5137 export TEST_TAR_FORMAT
5138 TAR_OPTIONS="-H posix"
5139 export TAR_OPTIONS
5140 rm -rf *
5141
5142 genfile --file file.1
5143 genfile --file file.2
5144
5145 tar -c -f archive --transform 's/file/plik/' file.*
5146 echo Appending
5147 tar -r -f archive --transform 's/file/plik/' -v --show-transformed-names file.1
5148 echo Testing
5149 tar tf archive
5150 ) ) >"$at_stdout" 2>"$at_stderr"
5151 fi
5152 at_status=$?
5153 at_failed=false
5154 at_func_diff_devnull "$at_stderr" || at_failed=:
5155 echo >>"$at_stdout"; $as_echo "Appending
5156 plik.1
5157 Testing
5158 plik.1
5159 plik.2
5160 plik.1
5161 " | \
5162   $at_diff - "$at_stdout" || at_failed=:
5163 at_func_check_status 0 $at_status "$at_srcdir/append03.at:24"
5164
5165 $at_failed && at_func_log_failure
5166 $at_traceon; }
5167
5168               { $at_traceoff
5169 $as_echo "$at_srcdir/append03.at:24:
5170 mkdir gnu
5171 (cd gnu
5172 TEST_TAR_FORMAT=gnu
5173 export TEST_TAR_FORMAT
5174 TAR_OPTIONS=\"-H gnu\"
5175 export TAR_OPTIONS
5176 rm -rf *
5177
5178 genfile --file file.1
5179 genfile --file file.2
5180
5181 tar -c -f archive --transform 's/file/plik/' file.*
5182 echo Appending
5183 tar -r -f archive --transform 's/file/plik/' -v --show-transformed-names file.1
5184 echo Testing
5185 tar tf archive
5186 )"
5187 echo append03.at:24 >"$at_check_line_file"
5188
5189 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
5190    false; }; then
5191   ( $at_traceon;
5192 mkdir gnu
5193 (cd gnu
5194 TEST_TAR_FORMAT=gnu
5195 export TEST_TAR_FORMAT
5196 TAR_OPTIONS="-H gnu"
5197 export TAR_OPTIONS
5198 rm -rf *
5199
5200 genfile --file file.1
5201 genfile --file file.2
5202
5203 tar -c -f archive --transform 's/file/plik/' file.*
5204 echo Appending
5205 tar -r -f archive --transform 's/file/plik/' -v --show-transformed-names file.1
5206 echo Testing
5207 tar tf archive
5208 ) ) >"$at_stdout" 2>"$at_stder1"
5209   at_func_filter_trace $?
5210 else
5211   ( :;
5212 mkdir gnu
5213 (cd gnu
5214 TEST_TAR_FORMAT=gnu
5215 export TEST_TAR_FORMAT
5216 TAR_OPTIONS="-H gnu"
5217 export TAR_OPTIONS
5218 rm -rf *
5219
5220 genfile --file file.1
5221 genfile --file file.2
5222
5223 tar -c -f archive --transform 's/file/plik/' file.*
5224 echo Appending
5225 tar -r -f archive --transform 's/file/plik/' -v --show-transformed-names file.1
5226 echo Testing
5227 tar tf archive
5228 ) ) >"$at_stdout" 2>"$at_stderr"
5229 fi
5230 at_status=$?
5231 at_failed=false
5232 at_func_diff_devnull "$at_stderr" || at_failed=:
5233 echo >>"$at_stdout"; $as_echo "Appending
5234 plik.1
5235 Testing
5236 plik.1
5237 plik.2
5238 plik.1
5239 " | \
5240   $at_diff - "$at_stdout" || at_failed=:
5241 at_func_check_status 0 $at_status "$at_srcdir/append03.at:24"
5242
5243 $at_failed && at_func_log_failure
5244 $at_traceon; }
5245
5246
5247
5248
5249   $at_traceoff
5250   $at_times_p && times >"$at_times_file"
5251 ) 5>&1 2>&1 | eval $at_tee_pipe
5252 at_status=`cat "$at_status_file"`
5253 #AT_STOP_12
5254 #AT_START_13
5255 # 13. xform-h.at:30: transforming hard links on create
5256 at_setup_line='xform-h.at:30'
5257 at_desc="transforming hard links on create"
5258 $at_quiet $as_echo_n " 13: $at_desc              "
5259 at_xfail=no
5260       test -f $XFAILFILE && at_xfail=yes
5261 echo "#                             -*- compilation -*-" >> "$at_group_log"
5262 (
5263   $as_echo "13. xform-h.at:30: testing ..."
5264   $at_traceon
5265
5266
5267
5268
5269
5270
5271
5272   { $at_traceoff
5273 $as_echo "$at_srcdir/xform-h.at:39:
5274 mkdir v7
5275 (cd v7
5276 TEST_TAR_FORMAT=v7
5277 export TEST_TAR_FORMAT
5278 TAR_OPTIONS=\"-H v7\"
5279 export TAR_OPTIONS
5280 rm -rf *
5281
5282 mkdir basedir
5283 echo \"hello\" > basedir/test
5284 ln basedir/test basedir/test_link
5285
5286
5287 echo "Default transform scope"
5288 tar cf archive --transform="s,^basedir/,," basedir/test basedir/test_link
5289 tar tvf archive | sed -n 's/.*test_link link to //p'
5290
5291
5292 echo "Transforming hard links"
5293 tar cf archive --transform="s,^basedir/,,h" basedir/test basedir/test_link
5294 tar tvf archive | sed -n 's/.*test_link link to //p'
5295
5296
5297 echo "Not 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 xform-h.at:39 >"$at_check_line_file"
5303
5304 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
5305    false; }; then
5306   ( $at_traceon;
5307 mkdir v7
5308 (cd v7
5309 TEST_TAR_FORMAT=v7
5310 export TEST_TAR_FORMAT
5311 TAR_OPTIONS="-H v7"
5312 export TAR_OPTIONS
5313 rm -rf *
5314
5315 mkdir basedir
5316 echo "hello" > basedir/test
5317 ln basedir/test basedir/test_link
5318
5319
5320 echo "Default transform scope"
5321 tar cf archive --transform="s,^basedir/,," basedir/test basedir/test_link
5322 tar tvf archive | sed -n 's/.*test_link link to //p'
5323
5324
5325 echo "Transforming hard links"
5326 tar cf archive --transform="s,^basedir/,,h" basedir/test basedir/test_link
5327 tar tvf archive | sed -n 's/.*test_link link to //p'
5328
5329
5330 echo "Not 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 ) ) >"$at_stdout" 2>"$at_stder1"
5335   at_func_filter_trace $?
5336 else
5337   ( :;
5338 mkdir v7
5339 (cd v7
5340 TEST_TAR_FORMAT=v7
5341 export TEST_TAR_FORMAT
5342 TAR_OPTIONS="-H v7"
5343 export TAR_OPTIONS
5344 rm -rf *
5345
5346 mkdir basedir
5347 echo "hello" > basedir/test
5348 ln basedir/test basedir/test_link
5349
5350
5351 echo "Default transform scope"
5352 tar cf archive --transform="s,^basedir/,," basedir/test basedir/test_link
5353 tar tvf archive | sed -n 's/.*test_link link to //p'
5354
5355
5356 echo "Transforming hard links"
5357 tar cf archive --transform="s,^basedir/,,h" basedir/test basedir/test_link
5358 tar tvf archive | sed -n 's/.*test_link link to //p'
5359
5360
5361 echo "Not 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 ) ) >"$at_stdout" 2>"$at_stderr"
5366 fi
5367 at_status=$?
5368 at_failed=false
5369 at_func_diff_devnull "$at_stderr" || at_failed=:
5370 echo >>"$at_stdout"; $as_echo "Default transform scope
5371 test
5372 Transforming hard links
5373 test
5374 Not transforming hard links
5375 basedir/test
5376 " | \
5377   $at_diff - "$at_stdout" || at_failed=:
5378 at_func_check_status 0 $at_status "$at_srcdir/xform-h.at:39"
5379
5380 $at_failed && at_func_log_failure
5381 $at_traceon; }
5382
5383               { $at_traceoff
5384 $as_echo "$at_srcdir/xform-h.at:39:
5385 mkdir oldgnu
5386 (cd oldgnu
5387 TEST_TAR_FORMAT=oldgnu
5388 export TEST_TAR_FORMAT
5389 TAR_OPTIONS=\"-H oldgnu\"
5390 export TAR_OPTIONS
5391 rm -rf *
5392
5393 mkdir basedir
5394 echo \"hello\" > basedir/test
5395 ln basedir/test basedir/test_link
5396
5397
5398 echo "Default transform scope"
5399 tar cf archive --transform="s,^basedir/,," basedir/test basedir/test_link
5400 tar tvf archive | sed -n 's/.*test_link link to //p'
5401
5402
5403 echo "Transforming hard links"
5404 tar cf archive --transform="s,^basedir/,,h" basedir/test basedir/test_link
5405 tar tvf archive | sed -n 's/.*test_link link to //p'
5406
5407
5408 echo "Not transforming hard links"
5409 tar cf archive --transform="s,^basedir/,,H" basedir/test basedir/test_link
5410 tar tvf archive | sed -n 's/.*test_link link to //p'
5411
5412 )"
5413 echo xform-h.at:39 >"$at_check_line_file"
5414
5415 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
5416    false; }; then
5417   ( $at_traceon;
5418 mkdir oldgnu
5419 (cd oldgnu
5420 TEST_TAR_FORMAT=oldgnu
5421 export TEST_TAR_FORMAT
5422 TAR_OPTIONS="-H oldgnu"
5423 export TAR_OPTIONS
5424 rm -rf *
5425
5426 mkdir basedir
5427 echo "hello" > basedir/test
5428 ln basedir/test basedir/test_link
5429
5430
5431 echo "Default transform scope"
5432 tar cf archive --transform="s,^basedir/,," basedir/test basedir/test_link
5433 tar tvf archive | sed -n 's/.*test_link link to //p'
5434
5435
5436 echo "Transforming hard links"
5437 tar cf archive --transform="s,^basedir/,,h" basedir/test basedir/test_link
5438 tar tvf archive | sed -n 's/.*test_link link to //p'
5439
5440
5441 echo "Not transforming hard links"
5442 tar cf archive --transform="s,^basedir/,,H" basedir/test basedir/test_link
5443 tar tvf archive | sed -n 's/.*test_link link to //p'
5444
5445 ) ) >"$at_stdout" 2>"$at_stder1"
5446   at_func_filter_trace $?
5447 else
5448   ( :;
5449 mkdir oldgnu
5450 (cd oldgnu
5451 TEST_TAR_FORMAT=oldgnu
5452 export TEST_TAR_FORMAT
5453 TAR_OPTIONS="-H oldgnu"
5454 export TAR_OPTIONS
5455 rm -rf *
5456
5457 mkdir basedir
5458 echo "hello" > basedir/test
5459 ln basedir/test basedir/test_link
5460
5461
5462 echo "Default transform scope"
5463 tar cf archive --transform="s,^basedir/,," basedir/test basedir/test_link
5464 tar tvf archive | sed -n 's/.*test_link link to //p'
5465
5466
5467 echo "Transforming hard links"
5468 tar cf archive --transform="s,^basedir/,,h" basedir/test basedir/test_link
5469 tar tvf archive | sed -n 's/.*test_link link to //p'
5470
5471
5472 echo "Not transforming hard links"
5473 tar cf archive --transform="s,^basedir/,,H" basedir/test basedir/test_link
5474 tar tvf archive | sed -n 's/.*test_link link to //p'
5475
5476 ) ) >"$at_stdout" 2>"$at_stderr"
5477 fi
5478 at_status=$?
5479 at_failed=false
5480 at_func_diff_devnull "$at_stderr" || at_failed=:
5481 echo >>"$at_stdout"; $as_echo "Default transform scope
5482 test
5483 Transforming hard links
5484 test
5485 Not transforming hard links
5486 basedir/test
5487 " | \
5488   $at_diff - "$at_stdout" || at_failed=:
5489 at_func_check_status 0 $at_status "$at_srcdir/xform-h.at:39"
5490
5491 $at_failed && at_func_log_failure
5492 $at_traceon; }
5493
5494               { $at_traceoff
5495 $as_echo "$at_srcdir/xform-h.at:39:
5496 mkdir ustar
5497 (cd ustar
5498 TEST_TAR_FORMAT=ustar
5499 export TEST_TAR_FORMAT
5500 TAR_OPTIONS=\"-H ustar\"
5501 export TAR_OPTIONS
5502 rm -rf *
5503
5504 mkdir basedir
5505 echo \"hello\" > basedir/test
5506 ln basedir/test basedir/test_link
5507
5508
5509 echo "Default transform scope"
5510 tar cf archive --transform="s,^basedir/,," basedir/test basedir/test_link
5511 tar tvf archive | sed -n 's/.*test_link link to //p'
5512
5513
5514 echo "Transforming hard links"
5515 tar cf archive --transform="s,^basedir/,,h" basedir/test basedir/test_link
5516 tar tvf archive | sed -n 's/.*test_link link to //p'
5517
5518
5519 echo "Not transforming hard links"
5520 tar cf archive --transform="s,^basedir/,,H" basedir/test basedir/test_link
5521 tar tvf archive | sed -n 's/.*test_link link to //p'
5522
5523 )"
5524 echo xform-h.at:39 >"$at_check_line_file"
5525
5526 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
5527    false; }; then
5528   ( $at_traceon;
5529 mkdir ustar
5530 (cd ustar
5531 TEST_TAR_FORMAT=ustar
5532 export TEST_TAR_FORMAT
5533 TAR_OPTIONS="-H ustar"
5534 export TAR_OPTIONS
5535 rm -rf *
5536
5537 mkdir basedir
5538 echo "hello" > basedir/test
5539 ln basedir/test basedir/test_link
5540
5541
5542 echo "Default transform scope"
5543 tar cf archive --transform="s,^basedir/,," basedir/test basedir/test_link
5544 tar tvf archive | sed -n 's/.*test_link link to //p'
5545
5546
5547 echo "Transforming hard links"
5548 tar cf archive --transform="s,^basedir/,,h" basedir/test basedir/test_link
5549 tar tvf archive | sed -n 's/.*test_link link to //p'
5550
5551
5552 echo "Not transforming hard links"
5553 tar cf archive --transform="s,^basedir/,,H" basedir/test basedir/test_link
5554 tar tvf archive | sed -n 's/.*test_link link to //p'
5555
5556 ) ) >"$at_stdout" 2>"$at_stder1"
5557   at_func_filter_trace $?
5558 else
5559   ( :;
5560 mkdir ustar
5561 (cd ustar
5562 TEST_TAR_FORMAT=ustar
5563 export TEST_TAR_FORMAT
5564 TAR_OPTIONS="-H ustar"
5565 export TAR_OPTIONS
5566 rm -rf *
5567
5568 mkdir basedir
5569 echo "hello" > basedir/test
5570 ln basedir/test basedir/test_link
5571
5572
5573 echo "Default transform scope"
5574 tar cf archive --transform="s,^basedir/,," basedir/test basedir/test_link
5575 tar tvf archive | sed -n 's/.*test_link link to //p'
5576
5577
5578 echo "Transforming hard links"
5579 tar cf archive --transform="s,^basedir/,,h" basedir/test basedir/test_link
5580 tar tvf archive | sed -n 's/.*test_link link to //p'
5581
5582
5583 echo "Not transforming hard links"
5584 tar cf archive --transform="s,^basedir/,,H" basedir/test basedir/test_link
5585 tar tvf archive | sed -n 's/.*test_link link to //p'
5586
5587 ) ) >"$at_stdout" 2>"$at_stderr"
5588 fi
5589 at_status=$?
5590 at_failed=false
5591 at_func_diff_devnull "$at_stderr" || at_failed=:
5592 echo >>"$at_stdout"; $as_echo "Default transform scope
5593 test
5594 Transforming hard links
5595 test
5596 Not transforming hard links
5597 basedir/test
5598 " | \
5599   $at_diff - "$at_stdout" || at_failed=:
5600 at_func_check_status 0 $at_status "$at_srcdir/xform-h.at:39"
5601
5602 $at_failed && at_func_log_failure
5603 $at_traceon; }
5604
5605               { $at_traceoff
5606 $as_echo "$at_srcdir/xform-h.at:39:
5607 mkdir posix
5608 (cd posix
5609 TEST_TAR_FORMAT=posix
5610 export TEST_TAR_FORMAT
5611 TAR_OPTIONS=\"-H posix\"
5612 export TAR_OPTIONS
5613 rm -rf *
5614
5615 mkdir basedir
5616 echo \"hello\" > basedir/test
5617 ln basedir/test basedir/test_link
5618
5619
5620 echo "Default transform scope"
5621 tar cf archive --transform="s,^basedir/,," basedir/test basedir/test_link
5622 tar tvf archive | sed -n 's/.*test_link link to //p'
5623
5624
5625 echo "Transforming hard links"
5626 tar cf archive --transform="s,^basedir/,,h" basedir/test basedir/test_link
5627 tar tvf archive | sed -n 's/.*test_link link to //p'
5628
5629
5630 echo "Not transforming hard links"
5631 tar cf archive --transform="s,^basedir/,,H" basedir/test basedir/test_link
5632 tar tvf archive | sed -n 's/.*test_link link to //p'
5633
5634 )"
5635 echo xform-h.at:39 >"$at_check_line_file"
5636
5637 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
5638    false; }; then
5639   ( $at_traceon;
5640 mkdir posix
5641 (cd posix
5642 TEST_TAR_FORMAT=posix
5643 export TEST_TAR_FORMAT
5644 TAR_OPTIONS="-H posix"
5645 export TAR_OPTIONS
5646 rm -rf *
5647
5648 mkdir basedir
5649 echo "hello" > basedir/test
5650 ln basedir/test basedir/test_link
5651
5652
5653 echo "Default transform scope"
5654 tar cf archive --transform="s,^basedir/,," basedir/test basedir/test_link
5655 tar tvf archive | sed -n 's/.*test_link link to //p'
5656
5657
5658 echo "Transforming hard links"
5659 tar cf archive --transform="s,^basedir/,,h" basedir/test basedir/test_link
5660 tar tvf archive | sed -n 's/.*test_link link to //p'
5661
5662
5663 echo "Not transforming hard links"
5664 tar cf archive --transform="s,^basedir/,,H" basedir/test basedir/test_link
5665 tar tvf archive | sed -n 's/.*test_link link to //p'
5666
5667 ) ) >"$at_stdout" 2>"$at_stder1"
5668   at_func_filter_trace $?
5669 else
5670   ( :;
5671 mkdir posix
5672 (cd posix
5673 TEST_TAR_FORMAT=posix
5674 export TEST_TAR_FORMAT
5675 TAR_OPTIONS="-H posix"
5676 export TAR_OPTIONS
5677 rm -rf *
5678
5679 mkdir basedir
5680 echo "hello" > basedir/test
5681 ln basedir/test basedir/test_link
5682
5683
5684 echo "Default transform scope"
5685 tar cf archive --transform="s,^basedir/,," basedir/test basedir/test_link
5686 tar tvf archive | sed -n 's/.*test_link link to //p'
5687
5688
5689 echo "Transforming hard links"
5690 tar cf archive --transform="s,^basedir/,,h" basedir/test basedir/test_link
5691 tar tvf archive | sed -n 's/.*test_link link to //p'
5692
5693
5694 echo "Not transforming hard links"
5695 tar cf archive --transform="s,^basedir/,,H" basedir/test basedir/test_link
5696 tar tvf archive | sed -n 's/.*test_link link to //p'
5697
5698 ) ) >"$at_stdout" 2>"$at_stderr"
5699 fi
5700 at_status=$?
5701 at_failed=false
5702 at_func_diff_devnull "$at_stderr" || at_failed=:
5703 echo >>"$at_stdout"; $as_echo "Default transform scope
5704 test
5705 Transforming hard links
5706 test
5707 Not transforming hard links
5708 basedir/test
5709 " | \
5710   $at_diff - "$at_stdout" || at_failed=:
5711 at_func_check_status 0 $at_status "$at_srcdir/xform-h.at:39"
5712
5713 $at_failed && at_func_log_failure
5714 $at_traceon; }
5715
5716               { $at_traceoff
5717 $as_echo "$at_srcdir/xform-h.at:39:
5718 mkdir gnu
5719 (cd gnu
5720 TEST_TAR_FORMAT=gnu
5721 export TEST_TAR_FORMAT
5722 TAR_OPTIONS=\"-H gnu\"
5723 export TAR_OPTIONS
5724 rm -rf *
5725
5726 mkdir basedir
5727 echo \"hello\" > basedir/test
5728 ln basedir/test basedir/test_link
5729
5730
5731 echo "Default transform scope"
5732 tar cf archive --transform="s,^basedir/,," basedir/test basedir/test_link
5733 tar tvf archive | sed -n 's/.*test_link link to //p'
5734
5735
5736 echo "Transforming hard links"
5737 tar cf archive --transform="s,^basedir/,,h" basedir/test basedir/test_link
5738 tar tvf archive | sed -n 's/.*test_link link to //p'
5739
5740
5741 echo "Not transforming hard links"
5742 tar cf archive --transform="s,^basedir/,,H" basedir/test basedir/test_link
5743 tar tvf archive | sed -n 's/.*test_link link to //p'
5744
5745 )"
5746 echo xform-h.at:39 >"$at_check_line_file"
5747
5748 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
5749    false; }; then
5750   ( $at_traceon;
5751 mkdir gnu
5752 (cd gnu
5753 TEST_TAR_FORMAT=gnu
5754 export TEST_TAR_FORMAT
5755 TAR_OPTIONS="-H gnu"
5756 export TAR_OPTIONS
5757 rm -rf *
5758
5759 mkdir basedir
5760 echo "hello" > basedir/test
5761 ln basedir/test basedir/test_link
5762
5763
5764 echo "Default transform scope"
5765 tar cf archive --transform="s,^basedir/,," basedir/test basedir/test_link
5766 tar tvf archive | sed -n 's/.*test_link link to //p'
5767
5768
5769 echo "Transforming hard links"
5770 tar cf archive --transform="s,^basedir/,,h" basedir/test basedir/test_link
5771 tar tvf archive | sed -n 's/.*test_link link to //p'
5772
5773
5774 echo "Not transforming hard links"
5775 tar cf archive --transform="s,^basedir/,,H" basedir/test basedir/test_link
5776 tar tvf archive | sed -n 's/.*test_link link to //p'
5777
5778 ) ) >"$at_stdout" 2>"$at_stder1"
5779   at_func_filter_trace $?
5780 else
5781   ( :;
5782 mkdir gnu
5783 (cd gnu
5784 TEST_TAR_FORMAT=gnu
5785 export TEST_TAR_FORMAT
5786 TAR_OPTIONS="-H gnu"
5787 export TAR_OPTIONS
5788 rm -rf *
5789
5790 mkdir basedir
5791 echo "hello" > basedir/test
5792 ln basedir/test basedir/test_link
5793
5794
5795 echo "Default transform scope"
5796 tar cf archive --transform="s,^basedir/,," basedir/test basedir/test_link
5797 tar tvf archive | sed -n 's/.*test_link link to //p'
5798
5799
5800 echo "Transforming hard links"
5801 tar cf archive --transform="s,^basedir/,,h" basedir/test basedir/test_link
5802 tar tvf archive | sed -n 's/.*test_link link to //p'
5803
5804
5805 echo "Not transforming hard links"
5806 tar cf archive --transform="s,^basedir/,,H" basedir/test basedir/test_link
5807 tar tvf archive | sed -n 's/.*test_link link to //p'
5808
5809 ) ) >"$at_stdout" 2>"$at_stderr"
5810 fi
5811 at_status=$?
5812 at_failed=false
5813 at_func_diff_devnull "$at_stderr" || at_failed=:
5814 echo >>"$at_stdout"; $as_echo "Default transform scope
5815 test
5816 Transforming hard links
5817 test
5818 Not transforming hard links
5819 basedir/test
5820 " | \
5821   $at_diff - "$at_stdout" || at_failed=:
5822 at_func_check_status 0 $at_status "$at_srcdir/xform-h.at:39"
5823
5824 $at_failed && at_func_log_failure
5825 $at_traceon; }
5826
5827
5828
5829
5830
5831
5832   $at_traceoff
5833   $at_times_p && times >"$at_times_file"
5834 ) 5>&1 2>&1 | eval $at_tee_pipe
5835 at_status=`cat "$at_status_file"`
5836 #AT_STOP_13
5837 #AT_START_14
5838 # 14. xform01.at:26: transformations and GNU volume labels
5839 at_setup_line='xform01.at:26'
5840 at_desc="transformations and GNU volume labels"
5841 $at_quiet $as_echo_n " 14: $at_desc          "
5842 at_xfail=no
5843       test -f $XFAILFILE && at_xfail=yes
5844 echo "#                             -*- compilation -*-" >> "$at_group_log"
5845 (
5846   $as_echo "14. xform01.at:26: testing ..."
5847   $at_traceon
5848
5849
5850
5851
5852
5853   { $at_traceoff
5854 $as_echo "$at_srcdir/xform01.at:29:
5855 mkdir gnu
5856 (cd gnu
5857 TEST_TAR_FORMAT=gnu
5858 export TEST_TAR_FORMAT
5859 TAR_OPTIONS=\"-H gnu\"
5860 export TAR_OPTIONS
5861 rm -rf *
5862
5863 genfile --file file
5864 tar -cf archive.tar -V /label/ file
5865 tar tf archive.tar
5866 )"
5867 echo xform01.at:29 >"$at_check_line_file"
5868
5869 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
5870    false; }; then
5871   ( $at_traceon;
5872 mkdir gnu
5873 (cd gnu
5874 TEST_TAR_FORMAT=gnu
5875 export TEST_TAR_FORMAT
5876 TAR_OPTIONS="-H gnu"
5877 export TAR_OPTIONS
5878 rm -rf *
5879
5880 genfile --file file
5881 tar -cf archive.tar -V /label/ file
5882 tar tf archive.tar
5883 ) ) >"$at_stdout" 2>"$at_stder1"
5884   at_func_filter_trace $?
5885 else
5886   ( :;
5887 mkdir gnu
5888 (cd gnu
5889 TEST_TAR_FORMAT=gnu
5890 export TEST_TAR_FORMAT
5891 TAR_OPTIONS="-H gnu"
5892 export TAR_OPTIONS
5893 rm -rf *
5894
5895 genfile --file file
5896 tar -cf archive.tar -V /label/ file
5897 tar tf archive.tar
5898 ) ) >"$at_stdout" 2>"$at_stderr"
5899 fi
5900 at_status=$?
5901 at_failed=false
5902 at_func_diff_devnull "$at_stderr" || at_failed=:
5903 echo >>"$at_stdout"; $as_echo "/label/
5904 file
5905 " | \
5906   $at_diff - "$at_stdout" || at_failed=:
5907 at_func_check_status 0 $at_status "$at_srcdir/xform01.at:29"
5908
5909 $at_failed && at_func_log_failure
5910 $at_traceon; }
5911
5912
5913
5914
5915   $at_traceoff
5916   $at_times_p && times >"$at_times_file"
5917 ) 5>&1 2>&1 | eval $at_tee_pipe
5918 at_status=`cat "$at_status_file"`
5919 #AT_STOP_14
5920 #AT_START_15
5921 # 15. exclude.at:23: exclude
5922 at_setup_line='exclude.at:23'
5923 at_desc="exclude"
5924 $at_quiet $as_echo_n " 15: $at_desc                                        "
5925 at_xfail=no
5926       test -f $XFAILFILE && at_xfail=yes
5927 echo "#                             -*- compilation -*-" >> "$at_group_log"
5928 (
5929   $as_echo "15. exclude.at:23: testing ..."
5930   $at_traceon
5931
5932
5933
5934
5935
5936   { $at_traceoff
5937 $as_echo "$at_srcdir/exclude.at:26:
5938 mkdir ustar
5939 (cd ustar
5940 TEST_TAR_FORMAT=ustar
5941 export TEST_TAR_FORMAT
5942 TAR_OPTIONS=\"-H ustar\"
5943 export TAR_OPTIONS
5944 rm -rf *
5945
5946
5947 test -z "`sort < /dev/null 2>&1`" || exit 77
5948
5949
5950 mkdir dir
5951 echo blues > dir/blues
5952 echo jazz > dir/jazz
5953 mkdir dir/folk
5954 echo tagfile > dir/folk/tagfile
5955 echo sanjuan > dir/folk/sanjuan
5956 mkdir dir/rock
5957 echo \"Signature: 8a477f597d28d172789f06886806bc55\" > dir/rock/CACHEDIR.TAG
5958 echo \"test\" > dir/rock/file
5959
5960 for option in exclude-caches exclude-caches-under exclude-caches-all
5961 do
5962   echo OPTION \$option
5963   tar -cf archive.tar --\$option -v dir 2>err | sort
5964   cat err
5965   echo ARCHIVE
5966   tar tf archive.tar | sort
5967 done
5968
5969 for option in exclude-tag exclude-tag-under exclude-tag-all
5970 do
5971   echo OPTION \$option
5972   tar -cf archive.tar --\${option}=tagfile -v dir 2>err | sort
5973   cat err
5974   echo ARCHIVE
5975   tar tf archive.tar | sort
5976 done
5977 )"
5978 echo exclude.at:26 >"$at_check_line_file"
5979
5980 if { echo 'Not enabling shell tracing (command contains a ${...} parameter expansion)'
5981    false; }; then
5982   ( $at_traceon;
5983 mkdir ustar
5984 (cd ustar
5985 TEST_TAR_FORMAT=ustar
5986 export TEST_TAR_FORMAT
5987 TAR_OPTIONS="-H ustar"
5988 export TAR_OPTIONS
5989 rm -rf *
5990
5991
5992 test -z "`sort < /dev/null 2>&1`" || exit 77
5993
5994
5995 mkdir dir
5996 echo blues > dir/blues
5997 echo jazz > dir/jazz
5998 mkdir dir/folk
5999 echo tagfile > dir/folk/tagfile
6000 echo sanjuan > dir/folk/sanjuan
6001 mkdir dir/rock
6002 echo "Signature: 8a477f597d28d172789f06886806bc55" > dir/rock/CACHEDIR.TAG
6003 echo "test" > dir/rock/file
6004
6005 for option in exclude-caches exclude-caches-under exclude-caches-all
6006 do
6007   echo OPTION $option
6008   tar -cf archive.tar --$option -v dir 2>err | sort
6009   cat err
6010   echo ARCHIVE
6011   tar tf archive.tar | sort
6012 done
6013
6014 for option in exclude-tag exclude-tag-under exclude-tag-all
6015 do
6016   echo OPTION $option
6017   tar -cf archive.tar --${option}=tagfile -v dir 2>err | sort
6018   cat err
6019   echo ARCHIVE
6020   tar tf archive.tar | sort
6021 done
6022 ) ) >"$at_stdout" 2>"$at_stder1"
6023   at_func_filter_trace $?
6024 else
6025   ( :;
6026 mkdir ustar
6027 (cd ustar
6028 TEST_TAR_FORMAT=ustar
6029 export TEST_TAR_FORMAT
6030 TAR_OPTIONS="-H ustar"
6031 export TAR_OPTIONS
6032 rm -rf *
6033
6034
6035 test -z "`sort < /dev/null 2>&1`" || exit 77
6036
6037
6038 mkdir dir
6039 echo blues > dir/blues
6040 echo jazz > dir/jazz
6041 mkdir dir/folk
6042 echo tagfile > dir/folk/tagfile
6043 echo sanjuan > dir/folk/sanjuan
6044 mkdir dir/rock
6045 echo "Signature: 8a477f597d28d172789f06886806bc55" > dir/rock/CACHEDIR.TAG
6046 echo "test" > dir/rock/file
6047
6048 for option in exclude-caches exclude-caches-under exclude-caches-all
6049 do
6050   echo OPTION $option
6051   tar -cf archive.tar --$option -v dir 2>err | sort
6052   cat err
6053   echo ARCHIVE
6054   tar tf archive.tar | sort
6055 done
6056
6057 for option in exclude-tag exclude-tag-under exclude-tag-all
6058 do
6059   echo OPTION $option
6060   tar -cf archive.tar --${option}=tagfile -v dir 2>err | sort
6061   cat err
6062   echo ARCHIVE
6063   tar tf archive.tar | sort
6064 done
6065 ) ) >"$at_stdout" 2>"$at_stderr"
6066 fi
6067 at_status=$?
6068 at_failed=false
6069 at_func_diff_devnull "$at_stderr" || at_failed=:
6070 echo >>"$at_stdout"; $as_echo "OPTION exclude-caches
6071 dir/
6072 dir/blues
6073 dir/folk/
6074 dir/folk/sanjuan
6075 dir/folk/tagfile
6076 dir/jazz
6077 dir/rock/
6078 dir/rock/CACHEDIR.TAG
6079 tar: dir/rock/: contains a cache directory tag CACHEDIR.TAG; contents not dumped
6080 ARCHIVE
6081 dir/
6082 dir/blues
6083 dir/folk/
6084 dir/folk/sanjuan
6085 dir/folk/tagfile
6086 dir/jazz
6087 dir/rock/
6088 dir/rock/CACHEDIR.TAG
6089 OPTION exclude-caches-under
6090 dir/
6091 dir/blues
6092 dir/folk/
6093 dir/folk/sanjuan
6094 dir/folk/tagfile
6095 dir/jazz
6096 dir/rock/
6097 tar: dir/rock/: contains a cache directory tag CACHEDIR.TAG; contents not dumped
6098 ARCHIVE
6099 dir/
6100 dir/blues
6101 dir/folk/
6102 dir/folk/sanjuan
6103 dir/folk/tagfile
6104 dir/jazz
6105 dir/rock/
6106 OPTION exclude-caches-all
6107 dir/
6108 dir/blues
6109 dir/folk/
6110 dir/folk/sanjuan
6111 dir/folk/tagfile
6112 dir/jazz
6113 tar: dir/rock/: contains a cache directory tag CACHEDIR.TAG; directory not dumped
6114 ARCHIVE
6115 dir/
6116 dir/blues
6117 dir/folk/
6118 dir/folk/sanjuan
6119 dir/folk/tagfile
6120 dir/jazz
6121 OPTION exclude-tag
6122 dir/
6123 dir/blues
6124 dir/folk/
6125 dir/folk/tagfile
6126 dir/jazz
6127 dir/rock/
6128 dir/rock/CACHEDIR.TAG
6129 dir/rock/file
6130 tar: dir/folk/: contains a cache directory tag tagfile; contents not dumped
6131 ARCHIVE
6132 dir/
6133 dir/blues
6134 dir/folk/
6135 dir/folk/tagfile
6136 dir/jazz
6137 dir/rock/
6138 dir/rock/CACHEDIR.TAG
6139 dir/rock/file
6140 OPTION exclude-tag-under
6141 dir/
6142 dir/blues
6143 dir/folk/
6144 dir/jazz
6145 dir/rock/
6146 dir/rock/CACHEDIR.TAG
6147 dir/rock/file
6148 tar: dir/folk/: contains a cache directory tag tagfile; contents not dumped
6149 ARCHIVE
6150 dir/
6151 dir/blues
6152 dir/folk/
6153 dir/jazz
6154 dir/rock/
6155 dir/rock/CACHEDIR.TAG
6156 dir/rock/file
6157 OPTION exclude-tag-all
6158 dir/
6159 dir/blues
6160 dir/jazz
6161 dir/rock/
6162 dir/rock/CACHEDIR.TAG
6163 dir/rock/file
6164 tar: dir/folk/: contains a cache directory tag tagfile; directory not dumped
6165 ARCHIVE
6166 dir/
6167 dir/blues
6168 dir/jazz
6169 dir/rock/
6170 dir/rock/CACHEDIR.TAG
6171 dir/rock/file
6172 " | \
6173   $at_diff - "$at_stdout" || at_failed=:
6174 at_func_check_status 0 $at_status "$at_srcdir/exclude.at:26"
6175
6176 $at_failed && at_func_log_failure
6177 $at_traceon; }
6178
6179
6180
6181
6182   $at_traceoff
6183   $at_times_p && times >"$at_times_file"
6184 ) 5>&1 2>&1 | eval $at_tee_pipe
6185 at_status=`cat "$at_status_file"`
6186 #AT_STOP_15
6187 #AT_START_16
6188 # 16. exclude01.at:17: exclude wildcards
6189 at_setup_line='exclude01.at:17'
6190 at_desc="exclude wildcards"
6191 $at_quiet $as_echo_n " 16: $at_desc                              "
6192 at_xfail=no
6193       test -f $XFAILFILE && at_xfail=yes
6194 echo "#                             -*- compilation -*-" >> "$at_group_log"
6195 (
6196   $as_echo "16. exclude01.at:17: testing ..."
6197   $at_traceon
6198
6199
6200
6201
6202
6203   { $at_traceoff
6204 $as_echo "$at_srcdir/exclude01.at:20:
6205 mkdir v7
6206 (cd v7
6207 TEST_TAR_FORMAT=v7
6208 export TEST_TAR_FORMAT
6209 TAR_OPTIONS=\"-H v7\"
6210 export TAR_OPTIONS
6211 rm -rf *
6212
6213
6214 test -z "`sort < /dev/null 2>&1`" || exit 77
6215
6216
6217 rm -rf testdir
6218 mkdir -p testdir/dir1 testdir/dir2 testdir/dir3
6219 touch testdir/dir1/file1
6220 touch testdir/dir1/\\*
6221 touch testdir/dir2/file2
6222 touch testdir/dir2/\\*
6223 touch testdir/dir3/file3
6224 touch testdir/dir3/\\*
6225
6226 tar cf archive --exclude=testdir/dir1/\\* \\
6227                --no-wildcards \\
6228                --exclude=testdir/dir2/\\* \\
6229                --wildcards \\
6230                --exclude=testdir/dir3/\\* \\
6231                testdir
6232 tar tf archive | sort
6233
6234 echo \"NEXT\"
6235 tar cf archive testdir
6236 tar t \"testdir/dir1/*\" -f archive | sort
6237
6238 echo \"NEXT\"
6239 tar cf archive testdir/dir1
6240 tar t --no-wildcards \"testdir/dir1/*\" -f archive | sort
6241
6242 echo \"NEXT\"
6243 tar cf archive testdir
6244 tar t --wildcards \"testdir/dir1/*\" -f archive | sort
6245
6246 rm -rf testdir
6247 )"
6248 echo exclude01.at:20 >"$at_check_line_file"
6249
6250 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
6251    false; }; then
6252   ( $at_traceon;
6253 mkdir v7
6254 (cd v7
6255 TEST_TAR_FORMAT=v7
6256 export TEST_TAR_FORMAT
6257 TAR_OPTIONS="-H v7"
6258 export TAR_OPTIONS
6259 rm -rf *
6260
6261
6262 test -z "`sort < /dev/null 2>&1`" || exit 77
6263
6264
6265 rm -rf testdir
6266 mkdir -p testdir/dir1 testdir/dir2 testdir/dir3
6267 touch testdir/dir1/file1
6268 touch testdir/dir1/\*
6269 touch testdir/dir2/file2
6270 touch testdir/dir2/\*
6271 touch testdir/dir3/file3
6272 touch testdir/dir3/\*
6273
6274 tar cf archive --exclude=testdir/dir1/\* \
6275                --no-wildcards \
6276                --exclude=testdir/dir2/\* \
6277                --wildcards \
6278                --exclude=testdir/dir3/\* \
6279                testdir
6280 tar tf archive | sort
6281
6282 echo "NEXT"
6283 tar cf archive testdir
6284 tar t "testdir/dir1/*" -f archive | sort
6285
6286 echo "NEXT"
6287 tar cf archive testdir/dir1
6288 tar t --no-wildcards "testdir/dir1/*" -f archive | sort
6289
6290 echo "NEXT"
6291 tar cf archive testdir
6292 tar t --wildcards "testdir/dir1/*" -f archive | sort
6293
6294 rm -rf testdir
6295 ) ) >"$at_stdout" 2>"$at_stder1"
6296   at_func_filter_trace $?
6297 else
6298   ( :;
6299 mkdir v7
6300 (cd v7
6301 TEST_TAR_FORMAT=v7
6302 export TEST_TAR_FORMAT
6303 TAR_OPTIONS="-H v7"
6304 export TAR_OPTIONS
6305 rm -rf *
6306
6307
6308 test -z "`sort < /dev/null 2>&1`" || exit 77
6309
6310
6311 rm -rf testdir
6312 mkdir -p testdir/dir1 testdir/dir2 testdir/dir3
6313 touch testdir/dir1/file1
6314 touch testdir/dir1/\*
6315 touch testdir/dir2/file2
6316 touch testdir/dir2/\*
6317 touch testdir/dir3/file3
6318 touch testdir/dir3/\*
6319
6320 tar cf archive --exclude=testdir/dir1/\* \
6321                --no-wildcards \
6322                --exclude=testdir/dir2/\* \
6323                --wildcards \
6324                --exclude=testdir/dir3/\* \
6325                testdir
6326 tar tf archive | sort
6327
6328 echo "NEXT"
6329 tar cf archive testdir
6330 tar t "testdir/dir1/*" -f archive | sort
6331
6332 echo "NEXT"
6333 tar cf archive testdir/dir1
6334 tar t --no-wildcards "testdir/dir1/*" -f archive | sort
6335
6336 echo "NEXT"
6337 tar cf archive testdir
6338 tar t --wildcards "testdir/dir1/*" -f archive | sort
6339
6340 rm -rf testdir
6341 ) ) >"$at_stdout" 2>"$at_stderr"
6342 fi
6343 at_status=$?
6344 at_failed=false
6345 at_func_diff_devnull "$at_stderr" || at_failed=:
6346 echo >>"$at_stdout"; $as_echo "testdir/
6347 testdir/dir1/
6348 testdir/dir2/
6349 testdir/dir2/file2
6350 testdir/dir3/
6351 NEXT
6352 testdir/dir1/*
6353 NEXT
6354 testdir/dir1/*
6355 NEXT
6356 testdir/dir1/*
6357 testdir/dir1/file1
6358 " | \
6359   $at_diff - "$at_stdout" || at_failed=:
6360 at_func_check_status 0 $at_status "$at_srcdir/exclude01.at:20"
6361
6362 $at_failed && at_func_log_failure
6363 $at_traceon; }
6364
6365               { $at_traceoff
6366 $as_echo "$at_srcdir/exclude01.at:20:
6367 mkdir oldgnu
6368 (cd oldgnu
6369 TEST_TAR_FORMAT=oldgnu
6370 export TEST_TAR_FORMAT
6371 TAR_OPTIONS=\"-H oldgnu\"
6372 export TAR_OPTIONS
6373 rm -rf *
6374
6375
6376 test -z "`sort < /dev/null 2>&1`" || exit 77
6377
6378
6379 rm -rf testdir
6380 mkdir -p testdir/dir1 testdir/dir2 testdir/dir3
6381 touch testdir/dir1/file1
6382 touch testdir/dir1/\\*
6383 touch testdir/dir2/file2
6384 touch testdir/dir2/\\*
6385 touch testdir/dir3/file3
6386 touch testdir/dir3/\\*
6387
6388 tar cf archive --exclude=testdir/dir1/\\* \\
6389                --no-wildcards \\
6390                --exclude=testdir/dir2/\\* \\
6391                --wildcards \\
6392                --exclude=testdir/dir3/\\* \\
6393                testdir
6394 tar tf archive | sort
6395
6396 echo \"NEXT\"
6397 tar cf archive testdir
6398 tar t \"testdir/dir1/*\" -f archive | sort
6399
6400 echo \"NEXT\"
6401 tar cf archive testdir/dir1
6402 tar t --no-wildcards \"testdir/dir1/*\" -f archive | sort
6403
6404 echo \"NEXT\"
6405 tar cf archive testdir
6406 tar t --wildcards \"testdir/dir1/*\" -f archive | sort
6407
6408 rm -rf testdir
6409 )"
6410 echo exclude01.at:20 >"$at_check_line_file"
6411
6412 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
6413    false; }; then
6414   ( $at_traceon;
6415 mkdir oldgnu
6416 (cd oldgnu
6417 TEST_TAR_FORMAT=oldgnu
6418 export TEST_TAR_FORMAT
6419 TAR_OPTIONS="-H oldgnu"
6420 export TAR_OPTIONS
6421 rm -rf *
6422
6423
6424 test -z "`sort < /dev/null 2>&1`" || exit 77
6425
6426
6427 rm -rf testdir
6428 mkdir -p testdir/dir1 testdir/dir2 testdir/dir3
6429 touch testdir/dir1/file1
6430 touch testdir/dir1/\*
6431 touch testdir/dir2/file2
6432 touch testdir/dir2/\*
6433 touch testdir/dir3/file3
6434 touch testdir/dir3/\*
6435
6436 tar cf archive --exclude=testdir/dir1/\* \
6437                --no-wildcards \
6438                --exclude=testdir/dir2/\* \
6439                --wildcards \
6440                --exclude=testdir/dir3/\* \
6441                testdir
6442 tar tf archive | sort
6443
6444 echo "NEXT"
6445 tar cf archive testdir
6446 tar t "testdir/dir1/*" -f archive | sort
6447
6448 echo "NEXT"
6449 tar cf archive testdir/dir1
6450 tar t --no-wildcards "testdir/dir1/*" -f archive | sort
6451
6452 echo "NEXT"
6453 tar cf archive testdir
6454 tar t --wildcards "testdir/dir1/*" -f archive | sort
6455
6456 rm -rf testdir
6457 ) ) >"$at_stdout" 2>"$at_stder1"
6458   at_func_filter_trace $?
6459 else
6460   ( :;
6461 mkdir oldgnu
6462 (cd oldgnu
6463 TEST_TAR_FORMAT=oldgnu
6464 export TEST_TAR_FORMAT
6465 TAR_OPTIONS="-H oldgnu"
6466 export TAR_OPTIONS
6467 rm -rf *
6468
6469
6470 test -z "`sort < /dev/null 2>&1`" || exit 77
6471
6472
6473 rm -rf testdir
6474 mkdir -p testdir/dir1 testdir/dir2 testdir/dir3
6475 touch testdir/dir1/file1
6476 touch testdir/dir1/\*
6477 touch testdir/dir2/file2
6478 touch testdir/dir2/\*
6479 touch testdir/dir3/file3
6480 touch testdir/dir3/\*
6481
6482 tar cf archive --exclude=testdir/dir1/\* \
6483                --no-wildcards \
6484                --exclude=testdir/dir2/\* \
6485                --wildcards \
6486                --exclude=testdir/dir3/\* \
6487                testdir
6488 tar tf archive | sort
6489
6490 echo "NEXT"
6491 tar cf archive testdir
6492 tar t "testdir/dir1/*" -f archive | sort
6493
6494 echo "NEXT"
6495 tar cf archive testdir/dir1
6496 tar t --no-wildcards "testdir/dir1/*" -f archive | sort
6497
6498 echo "NEXT"
6499 tar cf archive testdir
6500 tar t --wildcards "testdir/dir1/*" -f archive | sort
6501
6502 rm -rf testdir
6503 ) ) >"$at_stdout" 2>"$at_stderr"
6504 fi
6505 at_status=$?
6506 at_failed=false
6507 at_func_diff_devnull "$at_stderr" || at_failed=:
6508 echo >>"$at_stdout"; $as_echo "testdir/
6509 testdir/dir1/
6510 testdir/dir2/
6511 testdir/dir2/file2
6512 testdir/dir3/
6513 NEXT
6514 testdir/dir1/*
6515 NEXT
6516 testdir/dir1/*
6517 NEXT
6518 testdir/dir1/*
6519 testdir/dir1/file1
6520 " | \
6521   $at_diff - "$at_stdout" || at_failed=:
6522 at_func_check_status 0 $at_status "$at_srcdir/exclude01.at:20"
6523
6524 $at_failed && at_func_log_failure
6525 $at_traceon; }
6526
6527               { $at_traceoff
6528 $as_echo "$at_srcdir/exclude01.at:20:
6529 mkdir ustar
6530 (cd ustar
6531 TEST_TAR_FORMAT=ustar
6532 export TEST_TAR_FORMAT
6533 TAR_OPTIONS=\"-H ustar\"
6534 export TAR_OPTIONS
6535 rm -rf *
6536
6537
6538 test -z "`sort < /dev/null 2>&1`" || exit 77
6539
6540
6541 rm -rf testdir
6542 mkdir -p testdir/dir1 testdir/dir2 testdir/dir3
6543 touch testdir/dir1/file1
6544 touch testdir/dir1/\\*
6545 touch testdir/dir2/file2
6546 touch testdir/dir2/\\*
6547 touch testdir/dir3/file3
6548 touch testdir/dir3/\\*
6549
6550 tar cf archive --exclude=testdir/dir1/\\* \\
6551                --no-wildcards \\
6552                --exclude=testdir/dir2/\\* \\
6553                --wildcards \\
6554                --exclude=testdir/dir3/\\* \\
6555                testdir
6556 tar tf archive | sort
6557
6558 echo \"NEXT\"
6559 tar cf archive testdir
6560 tar t \"testdir/dir1/*\" -f archive | sort
6561
6562 echo \"NEXT\"
6563 tar cf archive testdir/dir1
6564 tar t --no-wildcards \"testdir/dir1/*\" -f archive | sort
6565
6566 echo \"NEXT\"
6567 tar cf archive testdir
6568 tar t --wildcards \"testdir/dir1/*\" -f archive | sort
6569
6570 rm -rf testdir
6571 )"
6572 echo exclude01.at:20 >"$at_check_line_file"
6573
6574 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
6575    false; }; then
6576   ( $at_traceon;
6577 mkdir ustar
6578 (cd ustar
6579 TEST_TAR_FORMAT=ustar
6580 export TEST_TAR_FORMAT
6581 TAR_OPTIONS="-H ustar"
6582 export TAR_OPTIONS
6583 rm -rf *
6584
6585
6586 test -z "`sort < /dev/null 2>&1`" || exit 77
6587
6588
6589 rm -rf testdir
6590 mkdir -p testdir/dir1 testdir/dir2 testdir/dir3
6591 touch testdir/dir1/file1
6592 touch testdir/dir1/\*
6593 touch testdir/dir2/file2
6594 touch testdir/dir2/\*
6595 touch testdir/dir3/file3
6596 touch testdir/dir3/\*
6597
6598 tar cf archive --exclude=testdir/dir1/\* \
6599                --no-wildcards \
6600                --exclude=testdir/dir2/\* \
6601                --wildcards \
6602                --exclude=testdir/dir3/\* \
6603                testdir
6604 tar tf archive | sort
6605
6606 echo "NEXT"
6607 tar cf archive testdir
6608 tar t "testdir/dir1/*" -f archive | sort
6609
6610 echo "NEXT"
6611 tar cf archive testdir/dir1
6612 tar t --no-wildcards "testdir/dir1/*" -f archive | sort
6613
6614 echo "NEXT"
6615 tar cf archive testdir
6616 tar t --wildcards "testdir/dir1/*" -f archive | sort
6617
6618 rm -rf testdir
6619 ) ) >"$at_stdout" 2>"$at_stder1"
6620   at_func_filter_trace $?
6621 else
6622   ( :;
6623 mkdir ustar
6624 (cd ustar
6625 TEST_TAR_FORMAT=ustar
6626 export TEST_TAR_FORMAT
6627 TAR_OPTIONS="-H ustar"
6628 export TAR_OPTIONS
6629 rm -rf *
6630
6631
6632 test -z "`sort < /dev/null 2>&1`" || exit 77
6633
6634
6635 rm -rf testdir
6636 mkdir -p testdir/dir1 testdir/dir2 testdir/dir3
6637 touch testdir/dir1/file1
6638 touch testdir/dir1/\*
6639 touch testdir/dir2/file2
6640 touch testdir/dir2/\*
6641 touch testdir/dir3/file3
6642 touch testdir/dir3/\*
6643
6644 tar cf archive --exclude=testdir/dir1/\* \
6645                --no-wildcards \
6646                --exclude=testdir/dir2/\* \
6647                --wildcards \
6648                --exclude=testdir/dir3/\* \
6649                testdir
6650 tar tf archive | sort
6651
6652 echo "NEXT"
6653 tar cf archive testdir
6654 tar t "testdir/dir1/*" -f archive | sort
6655
6656 echo "NEXT"
6657 tar cf archive testdir/dir1
6658 tar t --no-wildcards "testdir/dir1/*" -f archive | sort
6659
6660 echo "NEXT"
6661 tar cf archive testdir
6662 tar t --wildcards "testdir/dir1/*" -f archive | sort
6663
6664 rm -rf testdir
6665 ) ) >"$at_stdout" 2>"$at_stderr"
6666 fi
6667 at_status=$?
6668 at_failed=false
6669 at_func_diff_devnull "$at_stderr" || at_failed=:
6670 echo >>"$at_stdout"; $as_echo "testdir/
6671 testdir/dir1/
6672 testdir/dir2/
6673 testdir/dir2/file2
6674 testdir/dir3/
6675 NEXT
6676 testdir/dir1/*
6677 NEXT
6678 testdir/dir1/*
6679 NEXT
6680 testdir/dir1/*
6681 testdir/dir1/file1
6682 " | \
6683   $at_diff - "$at_stdout" || at_failed=:
6684 at_func_check_status 0 $at_status "$at_srcdir/exclude01.at:20"
6685
6686 $at_failed && at_func_log_failure
6687 $at_traceon; }
6688
6689               { $at_traceoff
6690 $as_echo "$at_srcdir/exclude01.at:20:
6691 mkdir posix
6692 (cd posix
6693 TEST_TAR_FORMAT=posix
6694 export TEST_TAR_FORMAT
6695 TAR_OPTIONS=\"-H posix\"
6696 export TAR_OPTIONS
6697 rm -rf *
6698
6699
6700 test -z "`sort < /dev/null 2>&1`" || exit 77
6701
6702
6703 rm -rf testdir
6704 mkdir -p testdir/dir1 testdir/dir2 testdir/dir3
6705 touch testdir/dir1/file1
6706 touch testdir/dir1/\\*
6707 touch testdir/dir2/file2
6708 touch testdir/dir2/\\*
6709 touch testdir/dir3/file3
6710 touch testdir/dir3/\\*
6711
6712 tar cf archive --exclude=testdir/dir1/\\* \\
6713                --no-wildcards \\
6714                --exclude=testdir/dir2/\\* \\
6715                --wildcards \\
6716                --exclude=testdir/dir3/\\* \\
6717                testdir
6718 tar tf archive | sort
6719
6720 echo \"NEXT\"
6721 tar cf archive testdir
6722 tar t \"testdir/dir1/*\" -f archive | sort
6723
6724 echo \"NEXT\"
6725 tar cf archive testdir/dir1
6726 tar t --no-wildcards \"testdir/dir1/*\" -f archive | sort
6727
6728 echo \"NEXT\"
6729 tar cf archive testdir
6730 tar t --wildcards \"testdir/dir1/*\" -f archive | sort
6731
6732 rm -rf testdir
6733 )"
6734 echo exclude01.at:20 >"$at_check_line_file"
6735
6736 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
6737    false; }; then
6738   ( $at_traceon;
6739 mkdir posix
6740 (cd posix
6741 TEST_TAR_FORMAT=posix
6742 export TEST_TAR_FORMAT
6743 TAR_OPTIONS="-H posix"
6744 export TAR_OPTIONS
6745 rm -rf *
6746
6747
6748 test -z "`sort < /dev/null 2>&1`" || exit 77
6749
6750
6751 rm -rf testdir
6752 mkdir -p testdir/dir1 testdir/dir2 testdir/dir3
6753 touch testdir/dir1/file1
6754 touch testdir/dir1/\*
6755 touch testdir/dir2/file2
6756 touch testdir/dir2/\*
6757 touch testdir/dir3/file3
6758 touch testdir/dir3/\*
6759
6760 tar cf archive --exclude=testdir/dir1/\* \
6761                --no-wildcards \
6762                --exclude=testdir/dir2/\* \
6763                --wildcards \
6764                --exclude=testdir/dir3/\* \
6765                testdir
6766 tar tf archive | sort
6767
6768 echo "NEXT"
6769 tar cf archive testdir
6770 tar t "testdir/dir1/*" -f archive | sort
6771
6772 echo "NEXT"
6773 tar cf archive testdir/dir1
6774 tar t --no-wildcards "testdir/dir1/*" -f archive | sort
6775
6776 echo "NEXT"
6777 tar cf archive testdir
6778 tar t --wildcards "testdir/dir1/*" -f archive | sort
6779
6780 rm -rf testdir
6781 ) ) >"$at_stdout" 2>"$at_stder1"
6782   at_func_filter_trace $?
6783 else
6784   ( :;
6785 mkdir posix
6786 (cd posix
6787 TEST_TAR_FORMAT=posix
6788 export TEST_TAR_FORMAT
6789 TAR_OPTIONS="-H posix"
6790 export TAR_OPTIONS
6791 rm -rf *
6792
6793
6794 test -z "`sort < /dev/null 2>&1`" || exit 77
6795
6796
6797 rm -rf testdir
6798 mkdir -p testdir/dir1 testdir/dir2 testdir/dir3
6799 touch testdir/dir1/file1
6800 touch testdir/dir1/\*
6801 touch testdir/dir2/file2
6802 touch testdir/dir2/\*
6803 touch testdir/dir3/file3
6804 touch testdir/dir3/\*
6805
6806 tar cf archive --exclude=testdir/dir1/\* \
6807                --no-wildcards \
6808                --exclude=testdir/dir2/\* \
6809                --wildcards \
6810                --exclude=testdir/dir3/\* \
6811                testdir
6812 tar tf archive | sort
6813
6814 echo "NEXT"
6815 tar cf archive testdir
6816 tar t "testdir/dir1/*" -f archive | sort
6817
6818 echo "NEXT"
6819 tar cf archive testdir/dir1
6820 tar t --no-wildcards "testdir/dir1/*" -f archive | sort
6821
6822 echo "NEXT"
6823 tar cf archive testdir
6824 tar t --wildcards "testdir/dir1/*" -f archive | sort
6825
6826 rm -rf testdir
6827 ) ) >"$at_stdout" 2>"$at_stderr"
6828 fi
6829 at_status=$?
6830 at_failed=false
6831 at_func_diff_devnull "$at_stderr" || at_failed=:
6832 echo >>"$at_stdout"; $as_echo "testdir/
6833 testdir/dir1/
6834 testdir/dir2/
6835 testdir/dir2/file2
6836 testdir/dir3/
6837 NEXT
6838 testdir/dir1/*
6839 NEXT
6840 testdir/dir1/*
6841 NEXT
6842 testdir/dir1/*
6843 testdir/dir1/file1
6844 " | \
6845   $at_diff - "$at_stdout" || at_failed=:
6846 at_func_check_status 0 $at_status "$at_srcdir/exclude01.at:20"
6847
6848 $at_failed && at_func_log_failure
6849 $at_traceon; }
6850
6851               { $at_traceoff
6852 $as_echo "$at_srcdir/exclude01.at:20:
6853 mkdir gnu
6854 (cd gnu
6855 TEST_TAR_FORMAT=gnu
6856 export TEST_TAR_FORMAT
6857 TAR_OPTIONS=\"-H gnu\"
6858 export TAR_OPTIONS
6859 rm -rf *
6860
6861
6862 test -z "`sort < /dev/null 2>&1`" || exit 77
6863
6864
6865 rm -rf testdir
6866 mkdir -p testdir/dir1 testdir/dir2 testdir/dir3
6867 touch testdir/dir1/file1
6868 touch testdir/dir1/\\*
6869 touch testdir/dir2/file2
6870 touch testdir/dir2/\\*
6871 touch testdir/dir3/file3
6872 touch testdir/dir3/\\*
6873
6874 tar cf archive --exclude=testdir/dir1/\\* \\
6875                --no-wildcards \\
6876                --exclude=testdir/dir2/\\* \\
6877                --wildcards \\
6878                --exclude=testdir/dir3/\\* \\
6879                testdir
6880 tar tf archive | sort
6881
6882 echo \"NEXT\"
6883 tar cf archive testdir
6884 tar t \"testdir/dir1/*\" -f archive | sort
6885
6886 echo \"NEXT\"
6887 tar cf archive testdir/dir1
6888 tar t --no-wildcards \"testdir/dir1/*\" -f archive | sort
6889
6890 echo \"NEXT\"
6891 tar cf archive testdir
6892 tar t --wildcards \"testdir/dir1/*\" -f archive | sort
6893
6894 rm -rf testdir
6895 )"
6896 echo exclude01.at:20 >"$at_check_line_file"
6897
6898 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
6899    false; }; then
6900   ( $at_traceon;
6901 mkdir gnu
6902 (cd gnu
6903 TEST_TAR_FORMAT=gnu
6904 export TEST_TAR_FORMAT
6905 TAR_OPTIONS="-H gnu"
6906 export TAR_OPTIONS
6907 rm -rf *
6908
6909
6910 test -z "`sort < /dev/null 2>&1`" || exit 77
6911
6912
6913 rm -rf testdir
6914 mkdir -p testdir/dir1 testdir/dir2 testdir/dir3
6915 touch testdir/dir1/file1
6916 touch testdir/dir1/\*
6917 touch testdir/dir2/file2
6918 touch testdir/dir2/\*
6919 touch testdir/dir3/file3
6920 touch testdir/dir3/\*
6921
6922 tar cf archive --exclude=testdir/dir1/\* \
6923                --no-wildcards \
6924                --exclude=testdir/dir2/\* \
6925                --wildcards \
6926                --exclude=testdir/dir3/\* \
6927                testdir
6928 tar tf archive | sort
6929
6930 echo "NEXT"
6931 tar cf archive testdir
6932 tar t "testdir/dir1/*" -f archive | sort
6933
6934 echo "NEXT"
6935 tar cf archive testdir/dir1
6936 tar t --no-wildcards "testdir/dir1/*" -f archive | sort
6937
6938 echo "NEXT"
6939 tar cf archive testdir
6940 tar t --wildcards "testdir/dir1/*" -f archive | sort
6941
6942 rm -rf testdir
6943 ) ) >"$at_stdout" 2>"$at_stder1"
6944   at_func_filter_trace $?
6945 else
6946   ( :;
6947 mkdir gnu
6948 (cd gnu
6949 TEST_TAR_FORMAT=gnu
6950 export TEST_TAR_FORMAT
6951 TAR_OPTIONS="-H gnu"
6952 export TAR_OPTIONS
6953 rm -rf *
6954
6955
6956 test -z "`sort < /dev/null 2>&1`" || exit 77
6957
6958
6959 rm -rf testdir
6960 mkdir -p testdir/dir1 testdir/dir2 testdir/dir3
6961 touch testdir/dir1/file1
6962 touch testdir/dir1/\*
6963 touch testdir/dir2/file2
6964 touch testdir/dir2/\*
6965 touch testdir/dir3/file3
6966 touch testdir/dir3/\*
6967
6968 tar cf archive --exclude=testdir/dir1/\* \
6969                --no-wildcards \
6970                --exclude=testdir/dir2/\* \
6971                --wildcards \
6972                --exclude=testdir/dir3/\* \
6973                testdir
6974 tar tf archive | sort
6975
6976 echo "NEXT"
6977 tar cf archive testdir
6978 tar t "testdir/dir1/*" -f archive | sort
6979
6980 echo "NEXT"
6981 tar cf archive testdir/dir1
6982 tar t --no-wildcards "testdir/dir1/*" -f archive | sort
6983
6984 echo "NEXT"
6985 tar cf archive testdir
6986 tar t --wildcards "testdir/dir1/*" -f archive | sort
6987
6988 rm -rf testdir
6989 ) ) >"$at_stdout" 2>"$at_stderr"
6990 fi
6991 at_status=$?
6992 at_failed=false
6993 at_func_diff_devnull "$at_stderr" || at_failed=:
6994 echo >>"$at_stdout"; $as_echo "testdir/
6995 testdir/dir1/
6996 testdir/dir2/
6997 testdir/dir2/file2
6998 testdir/dir3/
6999 NEXT
7000 testdir/dir1/*
7001 NEXT
7002 testdir/dir1/*
7003 NEXT
7004 testdir/dir1/*
7005 testdir/dir1/file1
7006 " | \
7007   $at_diff - "$at_stdout" || at_failed=:
7008 at_func_check_status 0 $at_status "$at_srcdir/exclude01.at:20"
7009
7010 $at_failed && at_func_log_failure
7011 $at_traceon; }
7012
7013
7014
7015
7016   $at_traceoff
7017   $at_times_p && times >"$at_times_file"
7018 ) 5>&1 2>&1 | eval $at_tee_pipe
7019 at_status=`cat "$at_status_file"`
7020 #AT_STOP_16
7021 #AT_START_17
7022 # 17. exclude02.at:17: exclude: anchoring
7023 at_setup_line='exclude02.at:17'
7024 at_desc="exclude: anchoring"
7025 $at_quiet $as_echo_n " 17: $at_desc                             "
7026 at_xfail=no
7027       test -f $XFAILFILE && at_xfail=yes
7028 echo "#                             -*- compilation -*-" >> "$at_group_log"
7029 (
7030   $as_echo "17. exclude02.at:17: testing ..."
7031   $at_traceon
7032
7033
7034
7035
7036
7037   { $at_traceoff
7038 $as_echo "$at_srcdir/exclude02.at:20:
7039 mkdir v7
7040 (cd v7
7041 TEST_TAR_FORMAT=v7
7042 export TEST_TAR_FORMAT
7043 TAR_OPTIONS=\"-H v7\"
7044 export TAR_OPTIONS
7045 rm -rf *
7046
7047
7048 test -z "`sort < /dev/null 2>&1`" || exit 77
7049
7050
7051 rm -rf testdir
7052 mkdir -p testdir
7053 touch file1.txt
7054 touch testdir/file1.txt
7055 touch testdir/file2
7056
7057 tar cf archive --exclude=\"file1.txt\" \\
7058                testdir
7059 tar tf archive | sort
7060
7061 echo \"SUB 1\"
7062 tar cf archive --no-anchored \\
7063                --exclude=\"file1.txt\" \\
7064                testdir
7065 tar tf archive | sort
7066
7067 echo \"SUB 2\"
7068 tar cf archive --anchored \\
7069                --exclude=\"file1.txt\" \\
7070                testdir
7071 tar tf archive | sort
7072
7073 echo \"SUB 3\"
7074 tar cf archive testdir file1.txt
7075 tar t \"file1.txt\" -f archive | sort
7076
7077 echo \"SUB 4\"
7078 tar t --no-anchored \"file1.txt\" -f archive | sort
7079
7080 echo \"SUB 5\"
7081 tar t --anchored \"file1.txt\" -f archive | sort
7082
7083 rm -rf testdir file1.txt
7084
7085 )"
7086 echo exclude02.at:20 >"$at_check_line_file"
7087
7088 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
7089    false; }; then
7090   ( $at_traceon;
7091 mkdir v7
7092 (cd v7
7093 TEST_TAR_FORMAT=v7
7094 export TEST_TAR_FORMAT
7095 TAR_OPTIONS="-H v7"
7096 export TAR_OPTIONS
7097 rm -rf *
7098
7099
7100 test -z "`sort < /dev/null 2>&1`" || exit 77
7101
7102
7103 rm -rf testdir
7104 mkdir -p testdir
7105 touch file1.txt
7106 touch testdir/file1.txt
7107 touch testdir/file2
7108
7109 tar cf archive --exclude="file1.txt" \
7110                testdir
7111 tar tf archive | sort
7112
7113 echo "SUB 1"
7114 tar cf archive --no-anchored \
7115                --exclude="file1.txt" \
7116                testdir
7117 tar tf archive | sort
7118
7119 echo "SUB 2"
7120 tar cf archive --anchored \
7121                --exclude="file1.txt" \
7122                testdir
7123 tar tf archive | sort
7124
7125 echo "SUB 3"
7126 tar cf archive testdir file1.txt
7127 tar t "file1.txt" -f archive | sort
7128
7129 echo "SUB 4"
7130 tar t --no-anchored "file1.txt" -f archive | sort
7131
7132 echo "SUB 5"
7133 tar t --anchored "file1.txt" -f archive | sort
7134
7135 rm -rf testdir file1.txt
7136
7137 ) ) >"$at_stdout" 2>"$at_stder1"
7138   at_func_filter_trace $?
7139 else
7140   ( :;
7141 mkdir v7
7142 (cd v7
7143 TEST_TAR_FORMAT=v7
7144 export TEST_TAR_FORMAT
7145 TAR_OPTIONS="-H v7"
7146 export TAR_OPTIONS
7147 rm -rf *
7148
7149
7150 test -z "`sort < /dev/null 2>&1`" || exit 77
7151
7152
7153 rm -rf testdir
7154 mkdir -p testdir
7155 touch file1.txt
7156 touch testdir/file1.txt
7157 touch testdir/file2
7158
7159 tar cf archive --exclude="file1.txt" \
7160                testdir
7161 tar tf archive | sort
7162
7163 echo "SUB 1"
7164 tar cf archive --no-anchored \
7165                --exclude="file1.txt" \
7166                testdir
7167 tar tf archive | sort
7168
7169 echo "SUB 2"
7170 tar cf archive --anchored \
7171                --exclude="file1.txt" \
7172                testdir
7173 tar tf archive | sort
7174
7175 echo "SUB 3"
7176 tar cf archive testdir file1.txt
7177 tar t "file1.txt" -f archive | sort
7178
7179 echo "SUB 4"
7180 tar t --no-anchored "file1.txt" -f archive | sort
7181
7182 echo "SUB 5"
7183 tar t --anchored "file1.txt" -f archive | sort
7184
7185 rm -rf testdir file1.txt
7186
7187 ) ) >"$at_stdout" 2>"$at_stderr"
7188 fi
7189 at_status=$?
7190 at_failed=false
7191 at_func_diff_devnull "$at_stderr" || at_failed=:
7192 echo >>"$at_stdout"; $as_echo "testdir/
7193 testdir/file2
7194 SUB 1
7195 testdir/
7196 testdir/file2
7197 SUB 2
7198 testdir/
7199 testdir/file1.txt
7200 testdir/file2
7201 SUB 3
7202 file1.txt
7203 SUB 4
7204 file1.txt
7205 testdir/file1.txt
7206 SUB 5
7207 file1.txt
7208 " | \
7209   $at_diff - "$at_stdout" || at_failed=:
7210 at_func_check_status 0 $at_status "$at_srcdir/exclude02.at:20"
7211
7212 $at_failed && at_func_log_failure
7213 $at_traceon; }
7214
7215               { $at_traceoff
7216 $as_echo "$at_srcdir/exclude02.at:20:
7217 mkdir oldgnu
7218 (cd oldgnu
7219 TEST_TAR_FORMAT=oldgnu
7220 export TEST_TAR_FORMAT
7221 TAR_OPTIONS=\"-H oldgnu\"
7222 export TAR_OPTIONS
7223 rm -rf *
7224
7225
7226 test -z "`sort < /dev/null 2>&1`" || exit 77
7227
7228
7229 rm -rf testdir
7230 mkdir -p testdir
7231 touch file1.txt
7232 touch testdir/file1.txt
7233 touch testdir/file2
7234
7235 tar cf archive --exclude=\"file1.txt\" \\
7236                testdir
7237 tar tf archive | sort
7238
7239 echo \"SUB 1\"
7240 tar cf archive --no-anchored \\
7241                --exclude=\"file1.txt\" \\
7242                testdir
7243 tar tf archive | sort
7244
7245 echo \"SUB 2\"
7246 tar cf archive --anchored \\
7247                --exclude=\"file1.txt\" \\
7248                testdir
7249 tar tf archive | sort
7250
7251 echo \"SUB 3\"
7252 tar cf archive testdir file1.txt
7253 tar t \"file1.txt\" -f archive | sort
7254
7255 echo \"SUB 4\"
7256 tar t --no-anchored \"file1.txt\" -f archive | sort
7257
7258 echo \"SUB 5\"
7259 tar t --anchored \"file1.txt\" -f archive | sort
7260
7261 rm -rf testdir file1.txt
7262
7263 )"
7264 echo exclude02.at:20 >"$at_check_line_file"
7265
7266 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
7267    false; }; then
7268   ( $at_traceon;
7269 mkdir oldgnu
7270 (cd oldgnu
7271 TEST_TAR_FORMAT=oldgnu
7272 export TEST_TAR_FORMAT
7273 TAR_OPTIONS="-H oldgnu"
7274 export TAR_OPTIONS
7275 rm -rf *
7276
7277
7278 test -z "`sort < /dev/null 2>&1`" || exit 77
7279
7280
7281 rm -rf testdir
7282 mkdir -p testdir
7283 touch file1.txt
7284 touch testdir/file1.txt
7285 touch testdir/file2
7286
7287 tar cf archive --exclude="file1.txt" \
7288                testdir
7289 tar tf archive | sort
7290
7291 echo "SUB 1"
7292 tar cf archive --no-anchored \
7293                --exclude="file1.txt" \
7294                testdir
7295 tar tf archive | sort
7296
7297 echo "SUB 2"
7298 tar cf archive --anchored \
7299                --exclude="file1.txt" \
7300                testdir
7301 tar tf archive | sort
7302
7303 echo "SUB 3"
7304 tar cf archive testdir file1.txt
7305 tar t "file1.txt" -f archive | sort
7306
7307 echo "SUB 4"
7308 tar t --no-anchored "file1.txt" -f archive | sort
7309
7310 echo "SUB 5"
7311 tar t --anchored "file1.txt" -f archive | sort
7312
7313 rm -rf testdir file1.txt
7314
7315 ) ) >"$at_stdout" 2>"$at_stder1"
7316   at_func_filter_trace $?
7317 else
7318   ( :;
7319 mkdir oldgnu
7320 (cd oldgnu
7321 TEST_TAR_FORMAT=oldgnu
7322 export TEST_TAR_FORMAT
7323 TAR_OPTIONS="-H oldgnu"
7324 export TAR_OPTIONS
7325 rm -rf *
7326
7327
7328 test -z "`sort < /dev/null 2>&1`" || exit 77
7329
7330
7331 rm -rf testdir
7332 mkdir -p testdir
7333 touch file1.txt
7334 touch testdir/file1.txt
7335 touch testdir/file2
7336
7337 tar cf archive --exclude="file1.txt" \
7338                testdir
7339 tar tf archive | sort
7340
7341 echo "SUB 1"
7342 tar cf archive --no-anchored \
7343                --exclude="file1.txt" \
7344                testdir
7345 tar tf archive | sort
7346
7347 echo "SUB 2"
7348 tar cf archive --anchored \
7349                --exclude="file1.txt" \
7350                testdir
7351 tar tf archive | sort
7352
7353 echo "SUB 3"
7354 tar cf archive testdir file1.txt
7355 tar t "file1.txt" -f archive | sort
7356
7357 echo "SUB 4"
7358 tar t --no-anchored "file1.txt" -f archive | sort
7359
7360 echo "SUB 5"
7361 tar t --anchored "file1.txt" -f archive | sort
7362
7363 rm -rf testdir file1.txt
7364
7365 ) ) >"$at_stdout" 2>"$at_stderr"
7366 fi
7367 at_status=$?
7368 at_failed=false
7369 at_func_diff_devnull "$at_stderr" || at_failed=:
7370 echo >>"$at_stdout"; $as_echo "testdir/
7371 testdir/file2
7372 SUB 1
7373 testdir/
7374 testdir/file2
7375 SUB 2
7376 testdir/
7377 testdir/file1.txt
7378 testdir/file2
7379 SUB 3
7380 file1.txt
7381 SUB 4
7382 file1.txt
7383 testdir/file1.txt
7384 SUB 5
7385 file1.txt
7386 " | \
7387   $at_diff - "$at_stdout" || at_failed=:
7388 at_func_check_status 0 $at_status "$at_srcdir/exclude02.at:20"
7389
7390 $at_failed && at_func_log_failure
7391 $at_traceon; }
7392
7393               { $at_traceoff
7394 $as_echo "$at_srcdir/exclude02.at:20:
7395 mkdir ustar
7396 (cd ustar
7397 TEST_TAR_FORMAT=ustar
7398 export TEST_TAR_FORMAT
7399 TAR_OPTIONS=\"-H ustar\"
7400 export TAR_OPTIONS
7401 rm -rf *
7402
7403
7404 test -z "`sort < /dev/null 2>&1`" || exit 77
7405
7406
7407 rm -rf testdir
7408 mkdir -p testdir
7409 touch file1.txt
7410 touch testdir/file1.txt
7411 touch testdir/file2
7412
7413 tar cf archive --exclude=\"file1.txt\" \\
7414                testdir
7415 tar tf archive | sort
7416
7417 echo \"SUB 1\"
7418 tar cf archive --no-anchored \\
7419                --exclude=\"file1.txt\" \\
7420                testdir
7421 tar tf archive | sort
7422
7423 echo \"SUB 2\"
7424 tar cf archive --anchored \\
7425                --exclude=\"file1.txt\" \\
7426                testdir
7427 tar tf archive | sort
7428
7429 echo \"SUB 3\"
7430 tar cf archive testdir file1.txt
7431 tar t \"file1.txt\" -f archive | sort
7432
7433 echo \"SUB 4\"
7434 tar t --no-anchored \"file1.txt\" -f archive | sort
7435
7436 echo \"SUB 5\"
7437 tar t --anchored \"file1.txt\" -f archive | sort
7438
7439 rm -rf testdir file1.txt
7440
7441 )"
7442 echo exclude02.at:20 >"$at_check_line_file"
7443
7444 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
7445    false; }; then
7446   ( $at_traceon;
7447 mkdir ustar
7448 (cd ustar
7449 TEST_TAR_FORMAT=ustar
7450 export TEST_TAR_FORMAT
7451 TAR_OPTIONS="-H ustar"
7452 export TAR_OPTIONS
7453 rm -rf *
7454
7455
7456 test -z "`sort < /dev/null 2>&1`" || exit 77
7457
7458
7459 rm -rf testdir
7460 mkdir -p testdir
7461 touch file1.txt
7462 touch testdir/file1.txt
7463 touch testdir/file2
7464
7465 tar cf archive --exclude="file1.txt" \
7466                testdir
7467 tar tf archive | sort
7468
7469 echo "SUB 1"
7470 tar cf archive --no-anchored \
7471                --exclude="file1.txt" \
7472                testdir
7473 tar tf archive | sort
7474
7475 echo "SUB 2"
7476 tar cf archive --anchored \
7477                --exclude="file1.txt" \
7478                testdir
7479 tar tf archive | sort
7480
7481 echo "SUB 3"
7482 tar cf archive testdir file1.txt
7483 tar t "file1.txt" -f archive | sort
7484
7485 echo "SUB 4"
7486 tar t --no-anchored "file1.txt" -f archive | sort
7487
7488 echo "SUB 5"
7489 tar t --anchored "file1.txt" -f archive | sort
7490
7491 rm -rf testdir file1.txt
7492
7493 ) ) >"$at_stdout" 2>"$at_stder1"
7494   at_func_filter_trace $?
7495 else
7496   ( :;
7497 mkdir ustar
7498 (cd ustar
7499 TEST_TAR_FORMAT=ustar
7500 export TEST_TAR_FORMAT
7501 TAR_OPTIONS="-H ustar"
7502 export TAR_OPTIONS
7503 rm -rf *
7504
7505
7506 test -z "`sort < /dev/null 2>&1`" || exit 77
7507
7508
7509 rm -rf testdir
7510 mkdir -p testdir
7511 touch file1.txt
7512 touch testdir/file1.txt
7513 touch testdir/file2
7514
7515 tar cf archive --exclude="file1.txt" \
7516                testdir
7517 tar tf archive | sort
7518
7519 echo "SUB 1"
7520 tar cf archive --no-anchored \
7521                --exclude="file1.txt" \
7522                testdir
7523 tar tf archive | sort
7524
7525 echo "SUB 2"
7526 tar cf archive --anchored \
7527                --exclude="file1.txt" \
7528                testdir
7529 tar tf archive | sort
7530
7531 echo "SUB 3"
7532 tar cf archive testdir file1.txt
7533 tar t "file1.txt" -f archive | sort
7534
7535 echo "SUB 4"
7536 tar t --no-anchored "file1.txt" -f archive | sort
7537
7538 echo "SUB 5"
7539 tar t --anchored "file1.txt" -f archive | sort
7540
7541 rm -rf testdir file1.txt
7542
7543 ) ) >"$at_stdout" 2>"$at_stderr"
7544 fi
7545 at_status=$?
7546 at_failed=false
7547 at_func_diff_devnull "$at_stderr" || at_failed=:
7548 echo >>"$at_stdout"; $as_echo "testdir/
7549 testdir/file2
7550 SUB 1
7551 testdir/
7552 testdir/file2
7553 SUB 2
7554 testdir/
7555 testdir/file1.txt
7556 testdir/file2
7557 SUB 3
7558 file1.txt
7559 SUB 4
7560 file1.txt
7561 testdir/file1.txt
7562 SUB 5
7563 file1.txt
7564 " | \
7565   $at_diff - "$at_stdout" || at_failed=:
7566 at_func_check_status 0 $at_status "$at_srcdir/exclude02.at:20"
7567
7568 $at_failed && at_func_log_failure
7569 $at_traceon; }
7570
7571               { $at_traceoff
7572 $as_echo "$at_srcdir/exclude02.at:20:
7573 mkdir posix
7574 (cd posix
7575 TEST_TAR_FORMAT=posix
7576 export TEST_TAR_FORMAT
7577 TAR_OPTIONS=\"-H posix\"
7578 export TAR_OPTIONS
7579 rm -rf *
7580
7581
7582 test -z "`sort < /dev/null 2>&1`" || exit 77
7583
7584
7585 rm -rf testdir
7586 mkdir -p testdir
7587 touch file1.txt
7588 touch testdir/file1.txt
7589 touch testdir/file2
7590
7591 tar cf archive --exclude=\"file1.txt\" \\
7592                testdir
7593 tar tf archive | sort
7594
7595 echo \"SUB 1\"
7596 tar cf archive --no-anchored \\
7597                --exclude=\"file1.txt\" \\
7598                testdir
7599 tar tf archive | sort
7600
7601 echo \"SUB 2\"
7602 tar cf archive --anchored \\
7603                --exclude=\"file1.txt\" \\
7604                testdir
7605 tar tf archive | sort
7606
7607 echo \"SUB 3\"
7608 tar cf archive testdir file1.txt
7609 tar t \"file1.txt\" -f archive | sort
7610
7611 echo \"SUB 4\"
7612 tar t --no-anchored \"file1.txt\" -f archive | sort
7613
7614 echo \"SUB 5\"
7615 tar t --anchored \"file1.txt\" -f archive | sort
7616
7617 rm -rf testdir file1.txt
7618
7619 )"
7620 echo exclude02.at:20 >"$at_check_line_file"
7621
7622 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
7623    false; }; then
7624   ( $at_traceon;
7625 mkdir posix
7626 (cd posix
7627 TEST_TAR_FORMAT=posix
7628 export TEST_TAR_FORMAT
7629 TAR_OPTIONS="-H posix"
7630 export TAR_OPTIONS
7631 rm -rf *
7632
7633
7634 test -z "`sort < /dev/null 2>&1`" || exit 77
7635
7636
7637 rm -rf testdir
7638 mkdir -p testdir
7639 touch file1.txt
7640 touch testdir/file1.txt
7641 touch testdir/file2
7642
7643 tar cf archive --exclude="file1.txt" \
7644                testdir
7645 tar tf archive | sort
7646
7647 echo "SUB 1"
7648 tar cf archive --no-anchored \
7649                --exclude="file1.txt" \
7650                testdir
7651 tar tf archive | sort
7652
7653 echo "SUB 2"
7654 tar cf archive --anchored \
7655                --exclude="file1.txt" \
7656                testdir
7657 tar tf archive | sort
7658
7659 echo "SUB 3"
7660 tar cf archive testdir file1.txt
7661 tar t "file1.txt" -f archive | sort
7662
7663 echo "SUB 4"
7664 tar t --no-anchored "file1.txt" -f archive | sort
7665
7666 echo "SUB 5"
7667 tar t --anchored "file1.txt" -f archive | sort
7668
7669 rm -rf testdir file1.txt
7670
7671 ) ) >"$at_stdout" 2>"$at_stder1"
7672   at_func_filter_trace $?
7673 else
7674   ( :;
7675 mkdir posix
7676 (cd posix
7677 TEST_TAR_FORMAT=posix
7678 export TEST_TAR_FORMAT
7679 TAR_OPTIONS="-H posix"
7680 export TAR_OPTIONS
7681 rm -rf *
7682
7683
7684 test -z "`sort < /dev/null 2>&1`" || exit 77
7685
7686
7687 rm -rf testdir
7688 mkdir -p testdir
7689 touch file1.txt
7690 touch testdir/file1.txt
7691 touch testdir/file2
7692
7693 tar cf archive --exclude="file1.txt" \
7694                testdir
7695 tar tf archive | sort
7696
7697 echo "SUB 1"
7698 tar cf archive --no-anchored \
7699                --exclude="file1.txt" \
7700                testdir
7701 tar tf archive | sort
7702
7703 echo "SUB 2"
7704 tar cf archive --anchored \
7705                --exclude="file1.txt" \
7706                testdir
7707 tar tf archive | sort
7708
7709 echo "SUB 3"
7710 tar cf archive testdir file1.txt
7711 tar t "file1.txt" -f archive | sort
7712
7713 echo "SUB 4"
7714 tar t --no-anchored "file1.txt" -f archive | sort
7715
7716 echo "SUB 5"
7717 tar t --anchored "file1.txt" -f archive | sort
7718
7719 rm -rf testdir file1.txt
7720
7721 ) ) >"$at_stdout" 2>"$at_stderr"
7722 fi
7723 at_status=$?
7724 at_failed=false
7725 at_func_diff_devnull "$at_stderr" || at_failed=:
7726 echo >>"$at_stdout"; $as_echo "testdir/
7727 testdir/file2
7728 SUB 1
7729 testdir/
7730 testdir/file2
7731 SUB 2
7732 testdir/
7733 testdir/file1.txt
7734 testdir/file2
7735 SUB 3
7736 file1.txt
7737 SUB 4
7738 file1.txt
7739 testdir/file1.txt
7740 SUB 5
7741 file1.txt
7742 " | \
7743   $at_diff - "$at_stdout" || at_failed=:
7744 at_func_check_status 0 $at_status "$at_srcdir/exclude02.at:20"
7745
7746 $at_failed && at_func_log_failure
7747 $at_traceon; }
7748
7749               { $at_traceoff
7750 $as_echo "$at_srcdir/exclude02.at:20:
7751 mkdir gnu
7752 (cd gnu
7753 TEST_TAR_FORMAT=gnu
7754 export TEST_TAR_FORMAT
7755 TAR_OPTIONS=\"-H gnu\"
7756 export TAR_OPTIONS
7757 rm -rf *
7758
7759
7760 test -z "`sort < /dev/null 2>&1`" || exit 77
7761
7762
7763 rm -rf testdir
7764 mkdir -p testdir
7765 touch file1.txt
7766 touch testdir/file1.txt
7767 touch testdir/file2
7768
7769 tar cf archive --exclude=\"file1.txt\" \\
7770                testdir
7771 tar tf archive | sort
7772
7773 echo \"SUB 1\"
7774 tar cf archive --no-anchored \\
7775                --exclude=\"file1.txt\" \\
7776                testdir
7777 tar tf archive | sort
7778
7779 echo \"SUB 2\"
7780 tar cf archive --anchored \\
7781                --exclude=\"file1.txt\" \\
7782                testdir
7783 tar tf archive | sort
7784
7785 echo \"SUB 3\"
7786 tar cf archive testdir file1.txt
7787 tar t \"file1.txt\" -f archive | sort
7788
7789 echo \"SUB 4\"
7790 tar t --no-anchored \"file1.txt\" -f archive | sort
7791
7792 echo \"SUB 5\"
7793 tar t --anchored \"file1.txt\" -f archive | sort
7794
7795 rm -rf testdir file1.txt
7796
7797 )"
7798 echo exclude02.at:20 >"$at_check_line_file"
7799
7800 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
7801    false; }; then
7802   ( $at_traceon;
7803 mkdir gnu
7804 (cd gnu
7805 TEST_TAR_FORMAT=gnu
7806 export TEST_TAR_FORMAT
7807 TAR_OPTIONS="-H gnu"
7808 export TAR_OPTIONS
7809 rm -rf *
7810
7811
7812 test -z "`sort < /dev/null 2>&1`" || exit 77
7813
7814
7815 rm -rf testdir
7816 mkdir -p testdir
7817 touch file1.txt
7818 touch testdir/file1.txt
7819 touch testdir/file2
7820
7821 tar cf archive --exclude="file1.txt" \
7822                testdir
7823 tar tf archive | sort
7824
7825 echo "SUB 1"
7826 tar cf archive --no-anchored \
7827                --exclude="file1.txt" \
7828                testdir
7829 tar tf archive | sort
7830
7831 echo "SUB 2"
7832 tar cf archive --anchored \
7833                --exclude="file1.txt" \
7834                testdir
7835 tar tf archive | sort
7836
7837 echo "SUB 3"
7838 tar cf archive testdir file1.txt
7839 tar t "file1.txt" -f archive | sort
7840
7841 echo "SUB 4"
7842 tar t --no-anchored "file1.txt" -f archive | sort
7843
7844 echo "SUB 5"
7845 tar t --anchored "file1.txt" -f archive | sort
7846
7847 rm -rf testdir file1.txt
7848
7849 ) ) >"$at_stdout" 2>"$at_stder1"
7850   at_func_filter_trace $?
7851 else
7852   ( :;
7853 mkdir gnu
7854 (cd gnu
7855 TEST_TAR_FORMAT=gnu
7856 export TEST_TAR_FORMAT
7857 TAR_OPTIONS="-H gnu"
7858 export TAR_OPTIONS
7859 rm -rf *
7860
7861
7862 test -z "`sort < /dev/null 2>&1`" || exit 77
7863
7864
7865 rm -rf testdir
7866 mkdir -p testdir
7867 touch file1.txt
7868 touch testdir/file1.txt
7869 touch testdir/file2
7870
7871 tar cf archive --exclude="file1.txt" \
7872                testdir
7873 tar tf archive | sort
7874
7875 echo "SUB 1"
7876 tar cf archive --no-anchored \
7877                --exclude="file1.txt" \
7878                testdir
7879 tar tf archive | sort
7880
7881 echo "SUB 2"
7882 tar cf archive --anchored \
7883                --exclude="file1.txt" \
7884                testdir
7885 tar tf archive | sort
7886
7887 echo "SUB 3"
7888 tar cf archive testdir file1.txt
7889 tar t "file1.txt" -f archive | sort
7890
7891 echo "SUB 4"
7892 tar t --no-anchored "file1.txt" -f archive | sort
7893
7894 echo "SUB 5"
7895 tar t --anchored "file1.txt" -f archive | sort
7896
7897 rm -rf testdir file1.txt
7898
7899 ) ) >"$at_stdout" 2>"$at_stderr"
7900 fi
7901 at_status=$?
7902 at_failed=false
7903 at_func_diff_devnull "$at_stderr" || at_failed=:
7904 echo >>"$at_stdout"; $as_echo "testdir/
7905 testdir/file2
7906 SUB 1
7907 testdir/
7908 testdir/file2
7909 SUB 2
7910 testdir/
7911 testdir/file1.txt
7912 testdir/file2
7913 SUB 3
7914 file1.txt
7915 SUB 4
7916 file1.txt
7917 testdir/file1.txt
7918 SUB 5
7919 file1.txt
7920 " | \
7921   $at_diff - "$at_stdout" || at_failed=:
7922 at_func_check_status 0 $at_status "$at_srcdir/exclude02.at:20"
7923
7924 $at_failed && at_func_log_failure
7925 $at_traceon; }
7926
7927
7928
7929
7930   $at_traceoff
7931   $at_times_p && times >"$at_times_file"
7932 ) 5>&1 2>&1 | eval $at_tee_pipe
7933 at_status=`cat "$at_status_file"`
7934 #AT_STOP_17
7935 #AT_START_18
7936 # 18. exclude03.at:17: exclude: wildcards match slash
7937 at_setup_line='exclude03.at:17'
7938 at_desc="exclude: wildcards match slash"
7939 $at_quiet $as_echo_n " 18: $at_desc                 "
7940 at_xfail=no
7941       test -f $XFAILFILE && at_xfail=yes
7942 echo "#                             -*- compilation -*-" >> "$at_group_log"
7943 (
7944   $as_echo "18. exclude03.at:17: testing ..."
7945   $at_traceon
7946
7947
7948
7949
7950
7951   { $at_traceoff
7952 $as_echo "$at_srcdir/exclude03.at:20:
7953 mkdir v7
7954 (cd v7
7955 TEST_TAR_FORMAT=v7
7956 export TEST_TAR_FORMAT
7957 TAR_OPTIONS=\"-H v7\"
7958 export TAR_OPTIONS
7959 rm -rf *
7960
7961
7962 test -z "`sort < /dev/null 2>&1`" || exit 77
7963
7964
7965 rm -rf testdir
7966 mkdir -p testdir/dir1 testdir/dir2 testdir/dir3
7967 touch testdir/\\*f\\*1
7968 touch testdir/dir1/file1
7969 touch testdir/dir1/\\*
7970 touch testdir/dir2/file2
7971 touch testdir/dir2/\\*
7972 touch testdir/dir3/file3
7973 touch testdir/dir3/\\*
7974
7975 tar cf archive --exclude='testdir*f*1' \\
7976                --no-wildcards-match-slash \\
7977                --exclude='testdir*f*2' \\
7978                --wildcards-match-slash \\
7979                --exclude='testdir*f*3' \\
7980                testdir
7981 tar tf archive | sort
7982
7983 echo \"NEXT\"
7984 tar cf archive testdir
7985 tar t --wildcards 'testdir/*f*1' -f archive | sort
7986
7987 echo \"NEXT\"
7988 tar t --wildcards --no-wildcards-match-slash 'testdir/*f*1' -f archive | sort
7989
7990 echo \"NEXT\"
7991 tar t --wildcards --wildcards-match-slash 'testdir/*f*1' -f archive | sort
7992
7993 rm -rf testdir
7994
7995 )"
7996 echo exclude03.at:20 >"$at_check_line_file"
7997
7998 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
7999    false; }; then
8000   ( $at_traceon;
8001 mkdir v7
8002 (cd v7
8003 TEST_TAR_FORMAT=v7
8004 export TEST_TAR_FORMAT
8005 TAR_OPTIONS="-H v7"
8006 export TAR_OPTIONS
8007 rm -rf *
8008
8009
8010 test -z "`sort < /dev/null 2>&1`" || exit 77
8011
8012
8013 rm -rf testdir
8014 mkdir -p testdir/dir1 testdir/dir2 testdir/dir3
8015 touch testdir/\*f\*1
8016 touch testdir/dir1/file1
8017 touch testdir/dir1/\*
8018 touch testdir/dir2/file2
8019 touch testdir/dir2/\*
8020 touch testdir/dir3/file3
8021 touch testdir/dir3/\*
8022
8023 tar cf archive --exclude='testdir*f*1' \
8024                --no-wildcards-match-slash \
8025                --exclude='testdir*f*2' \
8026                --wildcards-match-slash \
8027                --exclude='testdir*f*3' \
8028                testdir
8029 tar tf archive | sort
8030
8031 echo "NEXT"
8032 tar cf archive testdir
8033 tar t --wildcards 'testdir/*f*1' -f archive | sort
8034
8035 echo "NEXT"
8036 tar t --wildcards --no-wildcards-match-slash 'testdir/*f*1' -f archive | sort
8037
8038 echo "NEXT"
8039 tar t --wildcards --wildcards-match-slash 'testdir/*f*1' -f archive | sort
8040
8041 rm -rf testdir
8042
8043 ) ) >"$at_stdout" 2>"$at_stder1"
8044   at_func_filter_trace $?
8045 else
8046   ( :;
8047 mkdir v7
8048 (cd v7
8049 TEST_TAR_FORMAT=v7
8050 export TEST_TAR_FORMAT
8051 TAR_OPTIONS="-H v7"
8052 export TAR_OPTIONS
8053 rm -rf *
8054
8055
8056 test -z "`sort < /dev/null 2>&1`" || exit 77
8057
8058
8059 rm -rf testdir
8060 mkdir -p testdir/dir1 testdir/dir2 testdir/dir3
8061 touch testdir/\*f\*1
8062 touch testdir/dir1/file1
8063 touch testdir/dir1/\*
8064 touch testdir/dir2/file2
8065 touch testdir/dir2/\*
8066 touch testdir/dir3/file3
8067 touch testdir/dir3/\*
8068
8069 tar cf archive --exclude='testdir*f*1' \
8070                --no-wildcards-match-slash \
8071                --exclude='testdir*f*2' \
8072                --wildcards-match-slash \
8073                --exclude='testdir*f*3' \
8074                testdir
8075 tar tf archive | sort
8076
8077 echo "NEXT"
8078 tar cf archive testdir
8079 tar t --wildcards 'testdir/*f*1' -f archive | sort
8080
8081 echo "NEXT"
8082 tar t --wildcards --no-wildcards-match-slash 'testdir/*f*1' -f archive | sort
8083
8084 echo "NEXT"
8085 tar t --wildcards --wildcards-match-slash 'testdir/*f*1' -f archive | sort
8086
8087 rm -rf testdir
8088
8089 ) ) >"$at_stdout" 2>"$at_stderr"
8090 fi
8091 at_status=$?
8092 at_failed=false
8093 at_func_diff_devnull "$at_stderr" || at_failed=:
8094 echo >>"$at_stdout"; $as_echo "testdir/
8095 testdir/dir1/
8096 testdir/dir1/*
8097 testdir/dir2/
8098 testdir/dir2/*
8099 testdir/dir2/file2
8100 testdir/dir3/
8101 testdir/dir3/*
8102 NEXT
8103 testdir/*f*1
8104 testdir/dir1/file1
8105 NEXT
8106 testdir/*f*1
8107 NEXT
8108 testdir/*f*1
8109 testdir/dir1/file1
8110 " | \
8111   $at_diff - "$at_stdout" || at_failed=:
8112 at_func_check_status 0 $at_status "$at_srcdir/exclude03.at:20"
8113
8114 $at_failed && at_func_log_failure
8115 $at_traceon; }
8116
8117               { $at_traceoff
8118 $as_echo "$at_srcdir/exclude03.at:20:
8119 mkdir oldgnu
8120 (cd oldgnu
8121 TEST_TAR_FORMAT=oldgnu
8122 export TEST_TAR_FORMAT
8123 TAR_OPTIONS=\"-H oldgnu\"
8124 export TAR_OPTIONS
8125 rm -rf *
8126
8127
8128 test -z "`sort < /dev/null 2>&1`" || exit 77
8129
8130
8131 rm -rf testdir
8132 mkdir -p testdir/dir1 testdir/dir2 testdir/dir3
8133 touch testdir/\\*f\\*1
8134 touch testdir/dir1/file1
8135 touch testdir/dir1/\\*
8136 touch testdir/dir2/file2
8137 touch testdir/dir2/\\*
8138 touch testdir/dir3/file3
8139 touch testdir/dir3/\\*
8140
8141 tar cf archive --exclude='testdir*f*1' \\
8142                --no-wildcards-match-slash \\
8143                --exclude='testdir*f*2' \\
8144                --wildcards-match-slash \\
8145                --exclude='testdir*f*3' \\
8146                testdir
8147 tar tf archive | sort
8148
8149 echo \"NEXT\"
8150 tar cf archive testdir
8151 tar t --wildcards 'testdir/*f*1' -f archive | sort
8152
8153 echo \"NEXT\"
8154 tar t --wildcards --no-wildcards-match-slash 'testdir/*f*1' -f archive | sort
8155
8156 echo \"NEXT\"
8157 tar t --wildcards --wildcards-match-slash 'testdir/*f*1' -f archive | sort
8158
8159 rm -rf testdir
8160
8161 )"
8162 echo exclude03.at:20 >"$at_check_line_file"
8163
8164 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
8165    false; }; then
8166   ( $at_traceon;
8167 mkdir oldgnu
8168 (cd oldgnu
8169 TEST_TAR_FORMAT=oldgnu
8170 export TEST_TAR_FORMAT
8171 TAR_OPTIONS="-H oldgnu"
8172 export TAR_OPTIONS
8173 rm -rf *
8174
8175
8176 test -z "`sort < /dev/null 2>&1`" || exit 77
8177
8178
8179 rm -rf testdir
8180 mkdir -p testdir/dir1 testdir/dir2 testdir/dir3
8181 touch testdir/\*f\*1
8182 touch testdir/dir1/file1
8183 touch testdir/dir1/\*
8184 touch testdir/dir2/file2
8185 touch testdir/dir2/\*
8186 touch testdir/dir3/file3
8187 touch testdir/dir3/\*
8188
8189 tar cf archive --exclude='testdir*f*1' \
8190                --no-wildcards-match-slash \
8191                --exclude='testdir*f*2' \
8192                --wildcards-match-slash \
8193                --exclude='testdir*f*3' \
8194                testdir
8195 tar tf archive | sort
8196
8197 echo "NEXT"
8198 tar cf archive testdir
8199 tar t --wildcards 'testdir/*f*1' -f archive | sort
8200
8201 echo "NEXT"
8202 tar t --wildcards --no-wildcards-match-slash 'testdir/*f*1' -f archive | sort
8203
8204 echo "NEXT"
8205 tar t --wildcards --wildcards-match-slash 'testdir/*f*1' -f archive | sort
8206
8207 rm -rf testdir
8208
8209 ) ) >"$at_stdout" 2>"$at_stder1"
8210   at_func_filter_trace $?
8211 else
8212   ( :;
8213 mkdir oldgnu
8214 (cd oldgnu
8215 TEST_TAR_FORMAT=oldgnu
8216 export TEST_TAR_FORMAT
8217 TAR_OPTIONS="-H oldgnu"
8218 export TAR_OPTIONS
8219 rm -rf *
8220
8221
8222 test -z "`sort < /dev/null 2>&1`" || exit 77
8223
8224
8225 rm -rf testdir
8226 mkdir -p testdir/dir1 testdir/dir2 testdir/dir3
8227 touch testdir/\*f\*1
8228 touch testdir/dir1/file1
8229 touch testdir/dir1/\*
8230 touch testdir/dir2/file2
8231 touch testdir/dir2/\*
8232 touch testdir/dir3/file3
8233 touch testdir/dir3/\*
8234
8235 tar cf archive --exclude='testdir*f*1' \
8236                --no-wildcards-match-slash \
8237                --exclude='testdir*f*2' \
8238                --wildcards-match-slash \
8239                --exclude='testdir*f*3' \
8240                testdir
8241 tar tf archive | sort
8242
8243 echo "NEXT"
8244 tar cf archive testdir
8245 tar t --wildcards 'testdir/*f*1' -f archive | sort
8246
8247 echo "NEXT"
8248 tar t --wildcards --no-wildcards-match-slash 'testdir/*f*1' -f archive | sort
8249
8250 echo "NEXT"
8251 tar t --wildcards --wildcards-match-slash 'testdir/*f*1' -f archive | sort
8252
8253 rm -rf testdir
8254
8255 ) ) >"$at_stdout" 2>"$at_stderr"
8256 fi
8257 at_status=$?
8258 at_failed=false
8259 at_func_diff_devnull "$at_stderr" || at_failed=:
8260 echo >>"$at_stdout"; $as_echo "testdir/
8261 testdir/dir1/
8262 testdir/dir1/*
8263 testdir/dir2/
8264 testdir/dir2/*
8265 testdir/dir2/file2
8266 testdir/dir3/
8267 testdir/dir3/*
8268 NEXT
8269 testdir/*f*1
8270 testdir/dir1/file1
8271 NEXT
8272 testdir/*f*1
8273 NEXT
8274 testdir/*f*1
8275 testdir/dir1/file1
8276 " | \
8277   $at_diff - "$at_stdout" || at_failed=:
8278 at_func_check_status 0 $at_status "$at_srcdir/exclude03.at:20"
8279
8280 $at_failed && at_func_log_failure
8281 $at_traceon; }
8282
8283               { $at_traceoff
8284 $as_echo "$at_srcdir/exclude03.at:20:
8285 mkdir ustar
8286 (cd ustar
8287 TEST_TAR_FORMAT=ustar
8288 export TEST_TAR_FORMAT
8289 TAR_OPTIONS=\"-H ustar\"
8290 export TAR_OPTIONS
8291 rm -rf *
8292
8293
8294 test -z "`sort < /dev/null 2>&1`" || exit 77
8295
8296
8297 rm -rf testdir
8298 mkdir -p testdir/dir1 testdir/dir2 testdir/dir3
8299 touch testdir/\\*f\\*1
8300 touch testdir/dir1/file1
8301 touch testdir/dir1/\\*
8302 touch testdir/dir2/file2
8303 touch testdir/dir2/\\*
8304 touch testdir/dir3/file3
8305 touch testdir/dir3/\\*
8306
8307 tar cf archive --exclude='testdir*f*1' \\
8308                --no-wildcards-match-slash \\
8309                --exclude='testdir*f*2' \\
8310                --wildcards-match-slash \\
8311                --exclude='testdir*f*3' \\
8312                testdir
8313 tar tf archive | sort
8314
8315 echo \"NEXT\"
8316 tar cf archive testdir
8317 tar t --wildcards 'testdir/*f*1' -f archive | sort
8318
8319 echo \"NEXT\"
8320 tar t --wildcards --no-wildcards-match-slash 'testdir/*f*1' -f archive | sort
8321
8322 echo \"NEXT\"
8323 tar t --wildcards --wildcards-match-slash 'testdir/*f*1' -f archive | sort
8324
8325 rm -rf testdir
8326
8327 )"
8328 echo exclude03.at:20 >"$at_check_line_file"
8329
8330 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
8331    false; }; then
8332   ( $at_traceon;
8333 mkdir ustar
8334 (cd ustar
8335 TEST_TAR_FORMAT=ustar
8336 export TEST_TAR_FORMAT
8337 TAR_OPTIONS="-H ustar"
8338 export TAR_OPTIONS
8339 rm -rf *
8340
8341
8342 test -z "`sort < /dev/null 2>&1`" || exit 77
8343
8344
8345 rm -rf testdir
8346 mkdir -p testdir/dir1 testdir/dir2 testdir/dir3
8347 touch testdir/\*f\*1
8348 touch testdir/dir1/file1
8349 touch testdir/dir1/\*
8350 touch testdir/dir2/file2
8351 touch testdir/dir2/\*
8352 touch testdir/dir3/file3
8353 touch testdir/dir3/\*
8354
8355 tar cf archive --exclude='testdir*f*1' \
8356                --no-wildcards-match-slash \
8357                --exclude='testdir*f*2' \
8358                --wildcards-match-slash \
8359                --exclude='testdir*f*3' \
8360                testdir
8361 tar tf archive | sort
8362
8363 echo "NEXT"
8364 tar cf archive testdir
8365 tar t --wildcards 'testdir/*f*1' -f archive | sort
8366
8367 echo "NEXT"
8368 tar t --wildcards --no-wildcards-match-slash 'testdir/*f*1' -f archive | sort
8369
8370 echo "NEXT"
8371 tar t --wildcards --wildcards-match-slash 'testdir/*f*1' -f archive | sort
8372
8373 rm -rf testdir
8374
8375 ) ) >"$at_stdout" 2>"$at_stder1"
8376   at_func_filter_trace $?
8377 else
8378   ( :;
8379 mkdir ustar
8380 (cd ustar
8381 TEST_TAR_FORMAT=ustar
8382 export TEST_TAR_FORMAT
8383 TAR_OPTIONS="-H ustar"
8384 export TAR_OPTIONS
8385 rm -rf *
8386
8387
8388 test -z "`sort < /dev/null 2>&1`" || exit 77
8389
8390
8391 rm -rf testdir
8392 mkdir -p testdir/dir1 testdir/dir2 testdir/dir3
8393 touch testdir/\*f\*1
8394 touch testdir/dir1/file1
8395 touch testdir/dir1/\*
8396 touch testdir/dir2/file2
8397 touch testdir/dir2/\*
8398 touch testdir/dir3/file3
8399 touch testdir/dir3/\*
8400
8401 tar cf archive --exclude='testdir*f*1' \
8402                --no-wildcards-match-slash \
8403                --exclude='testdir*f*2' \
8404                --wildcards-match-slash \
8405                --exclude='testdir*f*3' \
8406                testdir
8407 tar tf archive | sort
8408
8409 echo "NEXT"
8410 tar cf archive testdir
8411 tar t --wildcards 'testdir/*f*1' -f archive | sort
8412
8413 echo "NEXT"
8414 tar t --wildcards --no-wildcards-match-slash 'testdir/*f*1' -f archive | sort
8415
8416 echo "NEXT"
8417 tar t --wildcards --wildcards-match-slash 'testdir/*f*1' -f archive | sort
8418
8419 rm -rf testdir
8420
8421 ) ) >"$at_stdout" 2>"$at_stderr"
8422 fi
8423 at_status=$?
8424 at_failed=false
8425 at_func_diff_devnull "$at_stderr" || at_failed=:
8426 echo >>"$at_stdout"; $as_echo "testdir/
8427 testdir/dir1/
8428 testdir/dir1/*
8429 testdir/dir2/
8430 testdir/dir2/*
8431 testdir/dir2/file2
8432 testdir/dir3/
8433 testdir/dir3/*
8434 NEXT
8435 testdir/*f*1
8436 testdir/dir1/file1
8437 NEXT
8438 testdir/*f*1
8439 NEXT
8440 testdir/*f*1
8441 testdir/dir1/file1
8442 " | \
8443   $at_diff - "$at_stdout" || at_failed=:
8444 at_func_check_status 0 $at_status "$at_srcdir/exclude03.at:20"
8445
8446 $at_failed && at_func_log_failure
8447 $at_traceon; }
8448
8449               { $at_traceoff
8450 $as_echo "$at_srcdir/exclude03.at:20:
8451 mkdir posix
8452 (cd posix
8453 TEST_TAR_FORMAT=posix
8454 export TEST_TAR_FORMAT
8455 TAR_OPTIONS=\"-H posix\"
8456 export TAR_OPTIONS
8457 rm -rf *
8458
8459
8460 test -z "`sort < /dev/null 2>&1`" || exit 77
8461
8462
8463 rm -rf testdir
8464 mkdir -p testdir/dir1 testdir/dir2 testdir/dir3
8465 touch testdir/\\*f\\*1
8466 touch testdir/dir1/file1
8467 touch testdir/dir1/\\*
8468 touch testdir/dir2/file2
8469 touch testdir/dir2/\\*
8470 touch testdir/dir3/file3
8471 touch testdir/dir3/\\*
8472
8473 tar cf archive --exclude='testdir*f*1' \\
8474                --no-wildcards-match-slash \\
8475                --exclude='testdir*f*2' \\
8476                --wildcards-match-slash \\
8477                --exclude='testdir*f*3' \\
8478                testdir
8479 tar tf archive | sort
8480
8481 echo \"NEXT\"
8482 tar cf archive testdir
8483 tar t --wildcards 'testdir/*f*1' -f archive | sort
8484
8485 echo \"NEXT\"
8486 tar t --wildcards --no-wildcards-match-slash 'testdir/*f*1' -f archive | sort
8487
8488 echo \"NEXT\"
8489 tar t --wildcards --wildcards-match-slash 'testdir/*f*1' -f archive | sort
8490
8491 rm -rf testdir
8492
8493 )"
8494 echo exclude03.at:20 >"$at_check_line_file"
8495
8496 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
8497    false; }; then
8498   ( $at_traceon;
8499 mkdir posix
8500 (cd posix
8501 TEST_TAR_FORMAT=posix
8502 export TEST_TAR_FORMAT
8503 TAR_OPTIONS="-H posix"
8504 export TAR_OPTIONS
8505 rm -rf *
8506
8507
8508 test -z "`sort < /dev/null 2>&1`" || exit 77
8509
8510
8511 rm -rf testdir
8512 mkdir -p testdir/dir1 testdir/dir2 testdir/dir3
8513 touch testdir/\*f\*1
8514 touch testdir/dir1/file1
8515 touch testdir/dir1/\*
8516 touch testdir/dir2/file2
8517 touch testdir/dir2/\*
8518 touch testdir/dir3/file3
8519 touch testdir/dir3/\*
8520
8521 tar cf archive --exclude='testdir*f*1' \
8522                --no-wildcards-match-slash \
8523                --exclude='testdir*f*2' \
8524                --wildcards-match-slash \
8525                --exclude='testdir*f*3' \
8526                testdir
8527 tar tf archive | sort
8528
8529 echo "NEXT"
8530 tar cf archive testdir
8531 tar t --wildcards 'testdir/*f*1' -f archive | sort
8532
8533 echo "NEXT"
8534 tar t --wildcards --no-wildcards-match-slash 'testdir/*f*1' -f archive | sort
8535
8536 echo "NEXT"
8537 tar t --wildcards --wildcards-match-slash 'testdir/*f*1' -f archive | sort
8538
8539 rm -rf testdir
8540
8541 ) ) >"$at_stdout" 2>"$at_stder1"
8542   at_func_filter_trace $?
8543 else
8544   ( :;
8545 mkdir posix
8546 (cd posix
8547 TEST_TAR_FORMAT=posix
8548 export TEST_TAR_FORMAT
8549 TAR_OPTIONS="-H posix"
8550 export TAR_OPTIONS
8551 rm -rf *
8552
8553
8554 test -z "`sort < /dev/null 2>&1`" || exit 77
8555
8556
8557 rm -rf testdir
8558 mkdir -p testdir/dir1 testdir/dir2 testdir/dir3
8559 touch testdir/\*f\*1
8560 touch testdir/dir1/file1
8561 touch testdir/dir1/\*
8562 touch testdir/dir2/file2
8563 touch testdir/dir2/\*
8564 touch testdir/dir3/file3
8565 touch testdir/dir3/\*
8566
8567 tar cf archive --exclude='testdir*f*1' \
8568                --no-wildcards-match-slash \
8569                --exclude='testdir*f*2' \
8570                --wildcards-match-slash \
8571                --exclude='testdir*f*3' \
8572                testdir
8573 tar tf archive | sort
8574
8575 echo "NEXT"
8576 tar cf archive testdir
8577 tar t --wildcards 'testdir/*f*1' -f archive | sort
8578
8579 echo "NEXT"
8580 tar t --wildcards --no-wildcards-match-slash 'testdir/*f*1' -f archive | sort
8581
8582 echo "NEXT"
8583 tar t --wildcards --wildcards-match-slash 'testdir/*f*1' -f archive | sort
8584
8585 rm -rf testdir
8586
8587 ) ) >"$at_stdout" 2>"$at_stderr"
8588 fi
8589 at_status=$?
8590 at_failed=false
8591 at_func_diff_devnull "$at_stderr" || at_failed=:
8592 echo >>"$at_stdout"; $as_echo "testdir/
8593 testdir/dir1/
8594 testdir/dir1/*
8595 testdir/dir2/
8596 testdir/dir2/*
8597 testdir/dir2/file2
8598 testdir/dir3/
8599 testdir/dir3/*
8600 NEXT
8601 testdir/*f*1
8602 testdir/dir1/file1
8603 NEXT
8604 testdir/*f*1
8605 NEXT
8606 testdir/*f*1
8607 testdir/dir1/file1
8608 " | \
8609   $at_diff - "$at_stdout" || at_failed=:
8610 at_func_check_status 0 $at_status "$at_srcdir/exclude03.at:20"
8611
8612 $at_failed && at_func_log_failure
8613 $at_traceon; }
8614
8615               { $at_traceoff
8616 $as_echo "$at_srcdir/exclude03.at:20:
8617 mkdir gnu
8618 (cd gnu
8619 TEST_TAR_FORMAT=gnu
8620 export TEST_TAR_FORMAT
8621 TAR_OPTIONS=\"-H gnu\"
8622 export TAR_OPTIONS
8623 rm -rf *
8624
8625
8626 test -z "`sort < /dev/null 2>&1`" || exit 77
8627
8628
8629 rm -rf testdir
8630 mkdir -p testdir/dir1 testdir/dir2 testdir/dir3
8631 touch testdir/\\*f\\*1
8632 touch testdir/dir1/file1
8633 touch testdir/dir1/\\*
8634 touch testdir/dir2/file2
8635 touch testdir/dir2/\\*
8636 touch testdir/dir3/file3
8637 touch testdir/dir3/\\*
8638
8639 tar cf archive --exclude='testdir*f*1' \\
8640                --no-wildcards-match-slash \\
8641                --exclude='testdir*f*2' \\
8642                --wildcards-match-slash \\
8643                --exclude='testdir*f*3' \\
8644                testdir
8645 tar tf archive | sort
8646
8647 echo \"NEXT\"
8648 tar cf archive testdir
8649 tar t --wildcards 'testdir/*f*1' -f archive | sort
8650
8651 echo \"NEXT\"
8652 tar t --wildcards --no-wildcards-match-slash 'testdir/*f*1' -f archive | sort
8653
8654 echo \"NEXT\"
8655 tar t --wildcards --wildcards-match-slash 'testdir/*f*1' -f archive | sort
8656
8657 rm -rf testdir
8658
8659 )"
8660 echo exclude03.at:20 >"$at_check_line_file"
8661
8662 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
8663    false; }; then
8664   ( $at_traceon;
8665 mkdir gnu
8666 (cd gnu
8667 TEST_TAR_FORMAT=gnu
8668 export TEST_TAR_FORMAT
8669 TAR_OPTIONS="-H gnu"
8670 export TAR_OPTIONS
8671 rm -rf *
8672
8673
8674 test -z "`sort < /dev/null 2>&1`" || exit 77
8675
8676
8677 rm -rf testdir
8678 mkdir -p testdir/dir1 testdir/dir2 testdir/dir3
8679 touch testdir/\*f\*1
8680 touch testdir/dir1/file1
8681 touch testdir/dir1/\*
8682 touch testdir/dir2/file2
8683 touch testdir/dir2/\*
8684 touch testdir/dir3/file3
8685 touch testdir/dir3/\*
8686
8687 tar cf archive --exclude='testdir*f*1' \
8688                --no-wildcards-match-slash \
8689                --exclude='testdir*f*2' \
8690                --wildcards-match-slash \
8691                --exclude='testdir*f*3' \
8692                testdir
8693 tar tf archive | sort
8694
8695 echo "NEXT"
8696 tar cf archive testdir
8697 tar t --wildcards 'testdir/*f*1' -f archive | sort
8698
8699 echo "NEXT"
8700 tar t --wildcards --no-wildcards-match-slash 'testdir/*f*1' -f archive | sort
8701
8702 echo "NEXT"
8703 tar t --wildcards --wildcards-match-slash 'testdir/*f*1' -f archive | sort
8704
8705 rm -rf testdir
8706
8707 ) ) >"$at_stdout" 2>"$at_stder1"
8708   at_func_filter_trace $?
8709 else
8710   ( :;
8711 mkdir gnu
8712 (cd gnu
8713 TEST_TAR_FORMAT=gnu
8714 export TEST_TAR_FORMAT
8715 TAR_OPTIONS="-H gnu"
8716 export TAR_OPTIONS
8717 rm -rf *
8718
8719
8720 test -z "`sort < /dev/null 2>&1`" || exit 77
8721
8722
8723 rm -rf testdir
8724 mkdir -p testdir/dir1 testdir/dir2 testdir/dir3
8725 touch testdir/\*f\*1
8726 touch testdir/dir1/file1
8727 touch testdir/dir1/\*
8728 touch testdir/dir2/file2
8729 touch testdir/dir2/\*
8730 touch testdir/dir3/file3
8731 touch testdir/dir3/\*
8732
8733 tar cf archive --exclude='testdir*f*1' \
8734                --no-wildcards-match-slash \
8735                --exclude='testdir*f*2' \
8736                --wildcards-match-slash \
8737                --exclude='testdir*f*3' \
8738                testdir
8739 tar tf archive | sort
8740
8741 echo "NEXT"
8742 tar cf archive testdir
8743 tar t --wildcards 'testdir/*f*1' -f archive | sort
8744
8745 echo "NEXT"
8746 tar t --wildcards --no-wildcards-match-slash 'testdir/*f*1' -f archive | sort
8747
8748 echo "NEXT"
8749 tar t --wildcards --wildcards-match-slash 'testdir/*f*1' -f archive | sort
8750
8751 rm -rf testdir
8752
8753 ) ) >"$at_stdout" 2>"$at_stderr"
8754 fi
8755 at_status=$?
8756 at_failed=false
8757 at_func_diff_devnull "$at_stderr" || at_failed=:
8758 echo >>"$at_stdout"; $as_echo "testdir/
8759 testdir/dir1/
8760 testdir/dir1/*
8761 testdir/dir2/
8762 testdir/dir2/*
8763 testdir/dir2/file2
8764 testdir/dir3/
8765 testdir/dir3/*
8766 NEXT
8767 testdir/*f*1
8768 testdir/dir1/file1
8769 NEXT
8770 testdir/*f*1
8771 NEXT
8772 testdir/*f*1
8773 testdir/dir1/file1
8774 " | \
8775   $at_diff - "$at_stdout" || at_failed=:
8776 at_func_check_status 0 $at_status "$at_srcdir/exclude03.at:20"
8777
8778 $at_failed && at_func_log_failure
8779 $at_traceon; }
8780
8781
8782
8783
8784   $at_traceoff
8785   $at_times_p && times >"$at_times_file"
8786 ) 5>&1 2>&1 | eval $at_tee_pipe
8787 at_status=`cat "$at_status_file"`
8788 #AT_STOP_18
8789 #AT_START_19
8790 # 19. exclude04.at:17: exclude: case insensitive
8791 at_setup_line='exclude04.at:17'
8792 at_desc="exclude: case insensitive"
8793 $at_quiet $as_echo_n " 19: $at_desc                      "
8794 at_xfail=no
8795       test -f $XFAILFILE && at_xfail=yes
8796 echo "#                             -*- compilation -*-" >> "$at_group_log"
8797 (
8798   $as_echo "19. exclude04.at:17: testing ..."
8799   $at_traceon
8800
8801
8802
8803
8804
8805   { $at_traceoff
8806 $as_echo "$at_srcdir/exclude04.at:20:
8807 mkdir v7
8808 (cd v7
8809 TEST_TAR_FORMAT=v7
8810 export TEST_TAR_FORMAT
8811 TAR_OPTIONS=\"-H v7\"
8812 export TAR_OPTIONS
8813 rm -rf *
8814
8815
8816 test -z "`sort < /dev/null 2>&1`" || exit 77
8817
8818
8819 rm -rf testdir
8820 mkdir -p testdir/dir
8821 touch testdir/file1
8822 touch testdir/file2
8823 touch testdir/file3
8824 touch testdir/file4
8825 touch testdir/dir/File1
8826 touch testdir/dir/File2
8827 touch testdir/dir/File3
8828 touch testdir/dir/File4
8829
8830 tar cf archive --exclude=FILE2 \\
8831                --exclude=file1 \\
8832                --ignore-case \\
8833                --exclude=file3 \\
8834                --no-ignore-case \\
8835                --exclude=FILE2 \\
8836                --exclude=file4 \\
8837                testdir
8838 tar tf archive | sort
8839
8840 echo \"SUB 1\"
8841 tar cf archive testdir
8842 tar t --wildcards --wildcards-match-slash '*File2' -f archive | sort
8843
8844 echo \"SUB 2\"
8845 tar t --wildcards --wildcards-match-slash --ignore-case '*File2' -f archive | sort
8846
8847 echo \"SUB 3\"
8848 tar t --wildcards --wildcards-match-slash --no-ignore-case '*File2' -f archive | sort
8849
8850 rm -rf testdir
8851
8852 )"
8853 echo exclude04.at:20 >"$at_check_line_file"
8854
8855 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
8856    false; }; then
8857   ( $at_traceon;
8858 mkdir v7
8859 (cd v7
8860 TEST_TAR_FORMAT=v7
8861 export TEST_TAR_FORMAT
8862 TAR_OPTIONS="-H v7"
8863 export TAR_OPTIONS
8864 rm -rf *
8865
8866
8867 test -z "`sort < /dev/null 2>&1`" || exit 77
8868
8869
8870 rm -rf testdir
8871 mkdir -p testdir/dir
8872 touch testdir/file1
8873 touch testdir/file2
8874 touch testdir/file3
8875 touch testdir/file4
8876 touch testdir/dir/File1
8877 touch testdir/dir/File2
8878 touch testdir/dir/File3
8879 touch testdir/dir/File4
8880
8881 tar cf archive --exclude=FILE2 \
8882                --exclude=file1 \
8883                --ignore-case \
8884                --exclude=file3 \
8885                --no-ignore-case \
8886                --exclude=FILE2 \
8887                --exclude=file4 \
8888                testdir
8889 tar tf archive | sort
8890
8891 echo "SUB 1"
8892 tar cf archive testdir
8893 tar t --wildcards --wildcards-match-slash '*File2' -f archive | sort
8894
8895 echo "SUB 2"
8896 tar t --wildcards --wildcards-match-slash --ignore-case '*File2' -f archive | sort
8897
8898 echo "SUB 3"
8899 tar t --wildcards --wildcards-match-slash --no-ignore-case '*File2' -f archive | sort
8900
8901 rm -rf testdir
8902
8903 ) ) >"$at_stdout" 2>"$at_stder1"
8904   at_func_filter_trace $?
8905 else
8906   ( :;
8907 mkdir v7
8908 (cd v7
8909 TEST_TAR_FORMAT=v7
8910 export TEST_TAR_FORMAT
8911 TAR_OPTIONS="-H v7"
8912 export TAR_OPTIONS
8913 rm -rf *
8914
8915
8916 test -z "`sort < /dev/null 2>&1`" || exit 77
8917
8918
8919 rm -rf testdir
8920 mkdir -p testdir/dir
8921 touch testdir/file1
8922 touch testdir/file2
8923 touch testdir/file3
8924 touch testdir/file4
8925 touch testdir/dir/File1
8926 touch testdir/dir/File2
8927 touch testdir/dir/File3
8928 touch testdir/dir/File4
8929
8930 tar cf archive --exclude=FILE2 \
8931                --exclude=file1 \
8932                --ignore-case \
8933                --exclude=file3 \
8934                --no-ignore-case \
8935                --exclude=FILE2 \
8936                --exclude=file4 \
8937                testdir
8938 tar tf archive | sort
8939
8940 echo "SUB 1"
8941 tar cf archive testdir
8942 tar t --wildcards --wildcards-match-slash '*File2' -f archive | sort
8943
8944 echo "SUB 2"
8945 tar t --wildcards --wildcards-match-slash --ignore-case '*File2' -f archive | sort
8946
8947 echo "SUB 3"
8948 tar t --wildcards --wildcards-match-slash --no-ignore-case '*File2' -f archive | sort
8949
8950 rm -rf testdir
8951
8952 ) ) >"$at_stdout" 2>"$at_stderr"
8953 fi
8954 at_status=$?
8955 at_failed=false
8956 at_func_diff_devnull "$at_stderr" || at_failed=:
8957 echo >>"$at_stdout"; $as_echo "testdir/
8958 testdir/dir/
8959 testdir/dir/File1
8960 testdir/dir/File2
8961 testdir/dir/File4
8962 testdir/file2
8963 SUB 1
8964 testdir/dir/File2
8965 SUB 2
8966 testdir/dir/File2
8967 testdir/file2
8968 SUB 3
8969 testdir/dir/File2
8970 " | \
8971   $at_diff - "$at_stdout" || at_failed=:
8972 at_func_check_status 0 $at_status "$at_srcdir/exclude04.at:20"
8973
8974 $at_failed && at_func_log_failure
8975 $at_traceon; }
8976
8977               { $at_traceoff
8978 $as_echo "$at_srcdir/exclude04.at:20:
8979 mkdir oldgnu
8980 (cd oldgnu
8981 TEST_TAR_FORMAT=oldgnu
8982 export TEST_TAR_FORMAT
8983 TAR_OPTIONS=\"-H oldgnu\"
8984 export TAR_OPTIONS
8985 rm -rf *
8986
8987
8988 test -z "`sort < /dev/null 2>&1`" || exit 77
8989
8990
8991 rm -rf testdir
8992 mkdir -p testdir/dir
8993 touch testdir/file1
8994 touch testdir/file2
8995 touch testdir/file3
8996 touch testdir/file4
8997 touch testdir/dir/File1
8998 touch testdir/dir/File2
8999 touch testdir/dir/File3
9000 touch testdir/dir/File4
9001
9002 tar cf archive --exclude=FILE2 \\
9003                --exclude=file1 \\
9004                --ignore-case \\
9005                --exclude=file3 \\
9006                --no-ignore-case \\
9007                --exclude=FILE2 \\
9008                --exclude=file4 \\
9009                testdir
9010 tar tf archive | sort
9011
9012 echo \"SUB 1\"
9013 tar cf archive testdir
9014 tar t --wildcards --wildcards-match-slash '*File2' -f archive | sort
9015
9016 echo \"SUB 2\"
9017 tar t --wildcards --wildcards-match-slash --ignore-case '*File2' -f archive | sort
9018
9019 echo \"SUB 3\"
9020 tar t --wildcards --wildcards-match-slash --no-ignore-case '*File2' -f archive | sort
9021
9022 rm -rf testdir
9023
9024 )"
9025 echo exclude04.at:20 >"$at_check_line_file"
9026
9027 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
9028    false; }; then
9029   ( $at_traceon;
9030 mkdir oldgnu
9031 (cd oldgnu
9032 TEST_TAR_FORMAT=oldgnu
9033 export TEST_TAR_FORMAT
9034 TAR_OPTIONS="-H oldgnu"
9035 export TAR_OPTIONS
9036 rm -rf *
9037
9038
9039 test -z "`sort < /dev/null 2>&1`" || exit 77
9040
9041
9042 rm -rf testdir
9043 mkdir -p testdir/dir
9044 touch testdir/file1
9045 touch testdir/file2
9046 touch testdir/file3
9047 touch testdir/file4
9048 touch testdir/dir/File1
9049 touch testdir/dir/File2
9050 touch testdir/dir/File3
9051 touch testdir/dir/File4
9052
9053 tar cf archive --exclude=FILE2 \
9054                --exclude=file1 \
9055                --ignore-case \
9056                --exclude=file3 \
9057                --no-ignore-case \
9058                --exclude=FILE2 \
9059                --exclude=file4 \
9060                testdir
9061 tar tf archive | sort
9062
9063 echo "SUB 1"
9064 tar cf archive testdir
9065 tar t --wildcards --wildcards-match-slash '*File2' -f archive | sort
9066
9067 echo "SUB 2"
9068 tar t --wildcards --wildcards-match-slash --ignore-case '*File2' -f archive | sort
9069
9070 echo "SUB 3"
9071 tar t --wildcards --wildcards-match-slash --no-ignore-case '*File2' -f archive | sort
9072
9073 rm -rf testdir
9074
9075 ) ) >"$at_stdout" 2>"$at_stder1"
9076   at_func_filter_trace $?
9077 else
9078   ( :;
9079 mkdir oldgnu
9080 (cd oldgnu
9081 TEST_TAR_FORMAT=oldgnu
9082 export TEST_TAR_FORMAT
9083 TAR_OPTIONS="-H oldgnu"
9084 export TAR_OPTIONS
9085 rm -rf *
9086
9087
9088 test -z "`sort < /dev/null 2>&1`" || exit 77
9089
9090
9091 rm -rf testdir
9092 mkdir -p testdir/dir
9093 touch testdir/file1
9094 touch testdir/file2
9095 touch testdir/file3
9096 touch testdir/file4
9097 touch testdir/dir/File1
9098 touch testdir/dir/File2
9099 touch testdir/dir/File3
9100 touch testdir/dir/File4
9101
9102 tar cf archive --exclude=FILE2 \
9103                --exclude=file1 \
9104                --ignore-case \
9105                --exclude=file3 \
9106                --no-ignore-case \
9107                --exclude=FILE2 \
9108                --exclude=file4 \
9109                testdir
9110 tar tf archive | sort
9111
9112 echo "SUB 1"
9113 tar cf archive testdir
9114 tar t --wildcards --wildcards-match-slash '*File2' -f archive | sort
9115
9116 echo "SUB 2"
9117 tar t --wildcards --wildcards-match-slash --ignore-case '*File2' -f archive | sort
9118
9119 echo "SUB 3"
9120 tar t --wildcards --wildcards-match-slash --no-ignore-case '*File2' -f archive | sort
9121
9122 rm -rf testdir
9123
9124 ) ) >"$at_stdout" 2>"$at_stderr"
9125 fi
9126 at_status=$?
9127 at_failed=false
9128 at_func_diff_devnull "$at_stderr" || at_failed=:
9129 echo >>"$at_stdout"; $as_echo "testdir/
9130 testdir/dir/
9131 testdir/dir/File1
9132 testdir/dir/File2
9133 testdir/dir/File4
9134 testdir/file2
9135 SUB 1
9136 testdir/dir/File2
9137 SUB 2
9138 testdir/dir/File2
9139 testdir/file2
9140 SUB 3
9141 testdir/dir/File2
9142 " | \
9143   $at_diff - "$at_stdout" || at_failed=:
9144 at_func_check_status 0 $at_status "$at_srcdir/exclude04.at:20"
9145
9146 $at_failed && at_func_log_failure
9147 $at_traceon; }
9148
9149               { $at_traceoff
9150 $as_echo "$at_srcdir/exclude04.at:20:
9151 mkdir ustar
9152 (cd ustar
9153 TEST_TAR_FORMAT=ustar
9154 export TEST_TAR_FORMAT
9155 TAR_OPTIONS=\"-H ustar\"
9156 export TAR_OPTIONS
9157 rm -rf *
9158
9159
9160 test -z "`sort < /dev/null 2>&1`" || exit 77
9161
9162
9163 rm -rf testdir
9164 mkdir -p testdir/dir
9165 touch testdir/file1
9166 touch testdir/file2
9167 touch testdir/file3
9168 touch testdir/file4
9169 touch testdir/dir/File1
9170 touch testdir/dir/File2
9171 touch testdir/dir/File3
9172 touch testdir/dir/File4
9173
9174 tar cf archive --exclude=FILE2 \\
9175                --exclude=file1 \\
9176                --ignore-case \\
9177                --exclude=file3 \\
9178                --no-ignore-case \\
9179                --exclude=FILE2 \\
9180                --exclude=file4 \\
9181                testdir
9182 tar tf archive | sort
9183
9184 echo \"SUB 1\"
9185 tar cf archive testdir
9186 tar t --wildcards --wildcards-match-slash '*File2' -f archive | sort
9187
9188 echo \"SUB 2\"
9189 tar t --wildcards --wildcards-match-slash --ignore-case '*File2' -f archive | sort
9190
9191 echo \"SUB 3\"
9192 tar t --wildcards --wildcards-match-slash --no-ignore-case '*File2' -f archive | sort
9193
9194 rm -rf testdir
9195
9196 )"
9197 echo exclude04.at:20 >"$at_check_line_file"
9198
9199 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
9200    false; }; then
9201   ( $at_traceon;
9202 mkdir ustar
9203 (cd ustar
9204 TEST_TAR_FORMAT=ustar
9205 export TEST_TAR_FORMAT
9206 TAR_OPTIONS="-H ustar"
9207 export TAR_OPTIONS
9208 rm -rf *
9209
9210
9211 test -z "`sort < /dev/null 2>&1`" || exit 77
9212
9213
9214 rm -rf testdir
9215 mkdir -p testdir/dir
9216 touch testdir/file1
9217 touch testdir/file2
9218 touch testdir/file3
9219 touch testdir/file4
9220 touch testdir/dir/File1
9221 touch testdir/dir/File2
9222 touch testdir/dir/File3
9223 touch testdir/dir/File4
9224
9225 tar cf archive --exclude=FILE2 \
9226                --exclude=file1 \
9227                --ignore-case \
9228                --exclude=file3 \
9229                --no-ignore-case \
9230                --exclude=FILE2 \
9231                --exclude=file4 \
9232                testdir
9233 tar tf archive | sort
9234
9235 echo "SUB 1"
9236 tar cf archive testdir
9237 tar t --wildcards --wildcards-match-slash '*File2' -f archive | sort
9238
9239 echo "SUB 2"
9240 tar t --wildcards --wildcards-match-slash --ignore-case '*File2' -f archive | sort
9241
9242 echo "SUB 3"
9243 tar t --wildcards --wildcards-match-slash --no-ignore-case '*File2' -f archive | sort
9244
9245 rm -rf testdir
9246
9247 ) ) >"$at_stdout" 2>"$at_stder1"
9248   at_func_filter_trace $?
9249 else
9250   ( :;
9251 mkdir ustar
9252 (cd ustar
9253 TEST_TAR_FORMAT=ustar
9254 export TEST_TAR_FORMAT
9255 TAR_OPTIONS="-H ustar"
9256 export TAR_OPTIONS
9257 rm -rf *
9258
9259
9260 test -z "`sort < /dev/null 2>&1`" || exit 77
9261
9262
9263 rm -rf testdir
9264 mkdir -p testdir/dir
9265 touch testdir/file1
9266 touch testdir/file2
9267 touch testdir/file3
9268 touch testdir/file4
9269 touch testdir/dir/File1
9270 touch testdir/dir/File2
9271 touch testdir/dir/File3
9272 touch testdir/dir/File4
9273
9274 tar cf archive --exclude=FILE2 \
9275                --exclude=file1 \
9276                --ignore-case \
9277                --exclude=file3 \
9278                --no-ignore-case \
9279                --exclude=FILE2 \
9280                --exclude=file4 \
9281                testdir
9282 tar tf archive | sort
9283
9284 echo "SUB 1"
9285 tar cf archive testdir
9286 tar t --wildcards --wildcards-match-slash '*File2' -f archive | sort
9287
9288 echo "SUB 2"
9289 tar t --wildcards --wildcards-match-slash --ignore-case '*File2' -f archive | sort
9290
9291 echo "SUB 3"
9292 tar t --wildcards --wildcards-match-slash --no-ignore-case '*File2' -f archive | sort
9293
9294 rm -rf testdir
9295
9296 ) ) >"$at_stdout" 2>"$at_stderr"
9297 fi
9298 at_status=$?
9299 at_failed=false
9300 at_func_diff_devnull "$at_stderr" || at_failed=:
9301 echo >>"$at_stdout"; $as_echo "testdir/
9302 testdir/dir/
9303 testdir/dir/File1
9304 testdir/dir/File2
9305 testdir/dir/File4
9306 testdir/file2
9307 SUB 1
9308 testdir/dir/File2
9309 SUB 2
9310 testdir/dir/File2
9311 testdir/file2
9312 SUB 3
9313 testdir/dir/File2
9314 " | \
9315   $at_diff - "$at_stdout" || at_failed=:
9316 at_func_check_status 0 $at_status "$at_srcdir/exclude04.at:20"
9317
9318 $at_failed && at_func_log_failure
9319 $at_traceon; }
9320
9321               { $at_traceoff
9322 $as_echo "$at_srcdir/exclude04.at:20:
9323 mkdir posix
9324 (cd posix
9325 TEST_TAR_FORMAT=posix
9326 export TEST_TAR_FORMAT
9327 TAR_OPTIONS=\"-H posix\"
9328 export TAR_OPTIONS
9329 rm -rf *
9330
9331
9332 test -z "`sort < /dev/null 2>&1`" || exit 77
9333
9334
9335 rm -rf testdir
9336 mkdir -p testdir/dir
9337 touch testdir/file1
9338 touch testdir/file2
9339 touch testdir/file3
9340 touch testdir/file4
9341 touch testdir/dir/File1
9342 touch testdir/dir/File2
9343 touch testdir/dir/File3
9344 touch testdir/dir/File4
9345
9346 tar cf archive --exclude=FILE2 \\
9347                --exclude=file1 \\
9348                --ignore-case \\
9349                --exclude=file3 \\
9350                --no-ignore-case \\
9351                --exclude=FILE2 \\
9352                --exclude=file4 \\
9353                testdir
9354 tar tf archive | sort
9355
9356 echo \"SUB 1\"
9357 tar cf archive testdir
9358 tar t --wildcards --wildcards-match-slash '*File2' -f archive | sort
9359
9360 echo \"SUB 2\"
9361 tar t --wildcards --wildcards-match-slash --ignore-case '*File2' -f archive | sort
9362
9363 echo \"SUB 3\"
9364 tar t --wildcards --wildcards-match-slash --no-ignore-case '*File2' -f archive | sort
9365
9366 rm -rf testdir
9367
9368 )"
9369 echo exclude04.at:20 >"$at_check_line_file"
9370
9371 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
9372    false; }; then
9373   ( $at_traceon;
9374 mkdir posix
9375 (cd posix
9376 TEST_TAR_FORMAT=posix
9377 export TEST_TAR_FORMAT
9378 TAR_OPTIONS="-H posix"
9379 export TAR_OPTIONS
9380 rm -rf *
9381
9382
9383 test -z "`sort < /dev/null 2>&1`" || exit 77
9384
9385
9386 rm -rf testdir
9387 mkdir -p testdir/dir
9388 touch testdir/file1
9389 touch testdir/file2
9390 touch testdir/file3
9391 touch testdir/file4
9392 touch testdir/dir/File1
9393 touch testdir/dir/File2
9394 touch testdir/dir/File3
9395 touch testdir/dir/File4
9396
9397 tar cf archive --exclude=FILE2 \
9398                --exclude=file1 \
9399                --ignore-case \
9400                --exclude=file3 \
9401                --no-ignore-case \
9402                --exclude=FILE2 \
9403                --exclude=file4 \
9404                testdir
9405 tar tf archive | sort
9406
9407 echo "SUB 1"
9408 tar cf archive testdir
9409 tar t --wildcards --wildcards-match-slash '*File2' -f archive | sort
9410
9411 echo "SUB 2"
9412 tar t --wildcards --wildcards-match-slash --ignore-case '*File2' -f archive | sort
9413
9414 echo "SUB 3"
9415 tar t --wildcards --wildcards-match-slash --no-ignore-case '*File2' -f archive | sort
9416
9417 rm -rf testdir
9418
9419 ) ) >"$at_stdout" 2>"$at_stder1"
9420   at_func_filter_trace $?
9421 else
9422   ( :;
9423 mkdir posix
9424 (cd posix
9425 TEST_TAR_FORMAT=posix
9426 export TEST_TAR_FORMAT
9427 TAR_OPTIONS="-H posix"
9428 export TAR_OPTIONS
9429 rm -rf *
9430
9431
9432 test -z "`sort < /dev/null 2>&1`" || exit 77
9433
9434
9435 rm -rf testdir
9436 mkdir -p testdir/dir
9437 touch testdir/file1
9438 touch testdir/file2
9439 touch testdir/file3
9440 touch testdir/file4
9441 touch testdir/dir/File1
9442 touch testdir/dir/File2
9443 touch testdir/dir/File3
9444 touch testdir/dir/File4
9445
9446 tar cf archive --exclude=FILE2 \
9447                --exclude=file1 \
9448                --ignore-case \
9449                --exclude=file3 \
9450                --no-ignore-case \
9451                --exclude=FILE2 \
9452                --exclude=file4 \
9453                testdir
9454 tar tf archive | sort
9455
9456 echo "SUB 1"
9457 tar cf archive testdir
9458 tar t --wildcards --wildcards-match-slash '*File2' -f archive | sort
9459
9460 echo "SUB 2"
9461 tar t --wildcards --wildcards-match-slash --ignore-case '*File2' -f archive | sort
9462
9463 echo "SUB 3"
9464 tar t --wildcards --wildcards-match-slash --no-ignore-case '*File2' -f archive | sort
9465
9466 rm -rf testdir
9467
9468 ) ) >"$at_stdout" 2>"$at_stderr"
9469 fi
9470 at_status=$?
9471 at_failed=false
9472 at_func_diff_devnull "$at_stderr" || at_failed=:
9473 echo >>"$at_stdout"; $as_echo "testdir/
9474 testdir/dir/
9475 testdir/dir/File1
9476 testdir/dir/File2
9477 testdir/dir/File4
9478 testdir/file2
9479 SUB 1
9480 testdir/dir/File2
9481 SUB 2
9482 testdir/dir/File2
9483 testdir/file2
9484 SUB 3
9485 testdir/dir/File2
9486 " | \
9487   $at_diff - "$at_stdout" || at_failed=:
9488 at_func_check_status 0 $at_status "$at_srcdir/exclude04.at:20"
9489
9490 $at_failed && at_func_log_failure
9491 $at_traceon; }
9492
9493               { $at_traceoff
9494 $as_echo "$at_srcdir/exclude04.at:20:
9495 mkdir gnu
9496 (cd gnu
9497 TEST_TAR_FORMAT=gnu
9498 export TEST_TAR_FORMAT
9499 TAR_OPTIONS=\"-H gnu\"
9500 export TAR_OPTIONS
9501 rm -rf *
9502
9503
9504 test -z "`sort < /dev/null 2>&1`" || exit 77
9505
9506
9507 rm -rf testdir
9508 mkdir -p testdir/dir
9509 touch testdir/file1
9510 touch testdir/file2
9511 touch testdir/file3
9512 touch testdir/file4
9513 touch testdir/dir/File1
9514 touch testdir/dir/File2
9515 touch testdir/dir/File3
9516 touch testdir/dir/File4
9517
9518 tar cf archive --exclude=FILE2 \\
9519                --exclude=file1 \\
9520                --ignore-case \\
9521                --exclude=file3 \\
9522                --no-ignore-case \\
9523                --exclude=FILE2 \\
9524                --exclude=file4 \\
9525                testdir
9526 tar tf archive | sort
9527
9528 echo \"SUB 1\"
9529 tar cf archive testdir
9530 tar t --wildcards --wildcards-match-slash '*File2' -f archive | sort
9531
9532 echo \"SUB 2\"
9533 tar t --wildcards --wildcards-match-slash --ignore-case '*File2' -f archive | sort
9534
9535 echo \"SUB 3\"
9536 tar t --wildcards --wildcards-match-slash --no-ignore-case '*File2' -f archive | sort
9537
9538 rm -rf testdir
9539
9540 )"
9541 echo exclude04.at:20 >"$at_check_line_file"
9542
9543 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
9544    false; }; then
9545   ( $at_traceon;
9546 mkdir gnu
9547 (cd gnu
9548 TEST_TAR_FORMAT=gnu
9549 export TEST_TAR_FORMAT
9550 TAR_OPTIONS="-H gnu"
9551 export TAR_OPTIONS
9552 rm -rf *
9553
9554
9555 test -z "`sort < /dev/null 2>&1`" || exit 77
9556
9557
9558 rm -rf testdir
9559 mkdir -p testdir/dir
9560 touch testdir/file1
9561 touch testdir/file2
9562 touch testdir/file3
9563 touch testdir/file4
9564 touch testdir/dir/File1
9565 touch testdir/dir/File2
9566 touch testdir/dir/File3
9567 touch testdir/dir/File4
9568
9569 tar cf archive --exclude=FILE2 \
9570                --exclude=file1 \
9571                --ignore-case \
9572                --exclude=file3 \
9573                --no-ignore-case \
9574                --exclude=FILE2 \
9575                --exclude=file4 \
9576                testdir
9577 tar tf archive | sort
9578
9579 echo "SUB 1"
9580 tar cf archive testdir
9581 tar t --wildcards --wildcards-match-slash '*File2' -f archive | sort
9582
9583 echo "SUB 2"
9584 tar t --wildcards --wildcards-match-slash --ignore-case '*File2' -f archive | sort
9585
9586 echo "SUB 3"
9587 tar t --wildcards --wildcards-match-slash --no-ignore-case '*File2' -f archive | sort
9588
9589 rm -rf testdir
9590
9591 ) ) >"$at_stdout" 2>"$at_stder1"
9592   at_func_filter_trace $?
9593 else
9594   ( :;
9595 mkdir gnu
9596 (cd gnu
9597 TEST_TAR_FORMAT=gnu
9598 export TEST_TAR_FORMAT
9599 TAR_OPTIONS="-H gnu"
9600 export TAR_OPTIONS
9601 rm -rf *
9602
9603
9604 test -z "`sort < /dev/null 2>&1`" || exit 77
9605
9606
9607 rm -rf testdir
9608 mkdir -p testdir/dir
9609 touch testdir/file1
9610 touch testdir/file2
9611 touch testdir/file3
9612 touch testdir/file4
9613 touch testdir/dir/File1
9614 touch testdir/dir/File2
9615 touch testdir/dir/File3
9616 touch testdir/dir/File4
9617
9618 tar cf archive --exclude=FILE2 \
9619                --exclude=file1 \
9620                --ignore-case \
9621                --exclude=file3 \
9622                --no-ignore-case \
9623                --exclude=FILE2 \
9624                --exclude=file4 \
9625                testdir
9626 tar tf archive | sort
9627
9628 echo "SUB 1"
9629 tar cf archive testdir
9630 tar t --wildcards --wildcards-match-slash '*File2' -f archive | sort
9631
9632 echo "SUB 2"
9633 tar t --wildcards --wildcards-match-slash --ignore-case '*File2' -f archive | sort
9634
9635 echo "SUB 3"
9636 tar t --wildcards --wildcards-match-slash --no-ignore-case '*File2' -f archive | sort
9637
9638 rm -rf testdir
9639
9640 ) ) >"$at_stdout" 2>"$at_stderr"
9641 fi
9642 at_status=$?
9643 at_failed=false
9644 at_func_diff_devnull "$at_stderr" || at_failed=:
9645 echo >>"$at_stdout"; $as_echo "testdir/
9646 testdir/dir/
9647 testdir/dir/File1
9648 testdir/dir/File2
9649 testdir/dir/File4
9650 testdir/file2
9651 SUB 1
9652 testdir/dir/File2
9653 SUB 2
9654 testdir/dir/File2
9655 testdir/file2
9656 SUB 3
9657 testdir/dir/File2
9658 " | \
9659   $at_diff - "$at_stdout" || at_failed=:
9660 at_func_check_status 0 $at_status "$at_srcdir/exclude04.at:20"
9661
9662 $at_failed && at_func_log_failure
9663 $at_traceon; }
9664
9665
9666
9667
9668   $at_traceoff
9669   $at_times_p && times >"$at_times_file"
9670 ) 5>&1 2>&1 | eval $at_tee_pipe
9671 at_status=`cat "$at_status_file"`
9672 #AT_STOP_19
9673 #AT_START_20
9674 # 20. exclude05.at:19: exclude: lots of excludes
9675 at_setup_line='exclude05.at:19'
9676 at_desc="exclude: lots of excludes"
9677 $at_quiet $as_echo_n " 20: $at_desc                      "
9678 at_xfail=no
9679       test -f $XFAILFILE && at_xfail=yes
9680 echo "#                             -*- compilation -*-" >> "$at_group_log"
9681 (
9682   $as_echo "20. exclude05.at:19: testing ..."
9683   $at_traceon
9684
9685
9686
9687
9688
9689   { $at_traceoff
9690 $as_echo "$at_srcdir/exclude05.at:22:
9691 mkdir v7
9692 (cd v7
9693 TEST_TAR_FORMAT=v7
9694 export TEST_TAR_FORMAT
9695 TAR_OPTIONS=\"-H v7\"
9696 export TAR_OPTIONS
9697 rm -rf *
9698
9699
9700 test -z "`sort < /dev/null 2>&1`" || exit 77
9701
9702
9703 rm -rf testdir exclfile
9704 mkdir -p testdir
9705 awk 'BEGIN {for (i=9; i < 100; ++i ) { print \"testdir/file\" i; }}' < /dev/null | \\
9706  while read name
9707  do
9708    genfile --file \$name
9709  done
9710
9711 awk 'BEGIN {for (i=1000000; i >= 12; --i ) { print \"testdir/file\" i }}' < /dev/null > exclfile
9712
9713 tar cf archive --anchored --exclude-from=exclfile \\
9714                testdir
9715 tar tf archive | sort
9716
9717 echo \"NEXT\"
9718 tar cf archive --exclude-from=exclfile \\
9719                testdir
9720 tar tf archive | sort
9721
9722 rm -rf testdir exclfile
9723
9724 )"
9725 echo exclude05.at:22 >"$at_check_line_file"
9726
9727 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
9728    false; }; then
9729   ( $at_traceon;
9730 mkdir v7
9731 (cd v7
9732 TEST_TAR_FORMAT=v7
9733 export TEST_TAR_FORMAT
9734 TAR_OPTIONS="-H v7"
9735 export TAR_OPTIONS
9736 rm -rf *
9737
9738
9739 test -z "`sort < /dev/null 2>&1`" || exit 77
9740
9741
9742 rm -rf testdir exclfile
9743 mkdir -p testdir
9744 awk 'BEGIN {for (i=9; i < 100; ++i ) { print "testdir/file" i; }}' < /dev/null | \
9745  while read name
9746  do
9747    genfile --file $name
9748  done
9749
9750 awk 'BEGIN {for (i=1000000; i >= 12; --i ) { print "testdir/file" i }}' < /dev/null > exclfile
9751
9752 tar cf archive --anchored --exclude-from=exclfile \
9753                testdir
9754 tar tf archive | sort
9755
9756 echo "NEXT"
9757 tar cf archive --exclude-from=exclfile \
9758                testdir
9759 tar tf archive | sort
9760
9761 rm -rf testdir exclfile
9762
9763 ) ) >"$at_stdout" 2>"$at_stder1"
9764   at_func_filter_trace $?
9765 else
9766   ( :;
9767 mkdir v7
9768 (cd v7
9769 TEST_TAR_FORMAT=v7
9770 export TEST_TAR_FORMAT
9771 TAR_OPTIONS="-H v7"
9772 export TAR_OPTIONS
9773 rm -rf *
9774
9775
9776 test -z "`sort < /dev/null 2>&1`" || exit 77
9777
9778
9779 rm -rf testdir exclfile
9780 mkdir -p testdir
9781 awk 'BEGIN {for (i=9; i < 100; ++i ) { print "testdir/file" i; }}' < /dev/null | \
9782  while read name
9783  do
9784    genfile --file $name
9785  done
9786
9787 awk 'BEGIN {for (i=1000000; i >= 12; --i ) { print "testdir/file" i }}' < /dev/null > exclfile
9788
9789 tar cf archive --anchored --exclude-from=exclfile \
9790                testdir
9791 tar tf archive | sort
9792
9793 echo "NEXT"
9794 tar cf archive --exclude-from=exclfile \
9795                testdir
9796 tar tf archive | sort
9797
9798 rm -rf testdir exclfile
9799
9800 ) ) >"$at_stdout" 2>"$at_stderr"
9801 fi
9802 at_status=$?
9803 at_failed=false
9804 at_func_diff_devnull "$at_stderr" || at_failed=:
9805 echo >>"$at_stdout"; $as_echo "testdir/
9806 testdir/file10
9807 testdir/file11
9808 testdir/file9
9809 NEXT
9810 testdir/
9811 testdir/file10
9812 testdir/file11
9813 testdir/file9
9814 " | \
9815   $at_diff - "$at_stdout" || at_failed=:
9816 at_func_check_status 0 $at_status "$at_srcdir/exclude05.at:22"
9817
9818 $at_failed && at_func_log_failure
9819 $at_traceon; }
9820
9821               { $at_traceoff
9822 $as_echo "$at_srcdir/exclude05.at:22:
9823 mkdir oldgnu
9824 (cd oldgnu
9825 TEST_TAR_FORMAT=oldgnu
9826 export TEST_TAR_FORMAT
9827 TAR_OPTIONS=\"-H oldgnu\"
9828 export TAR_OPTIONS
9829 rm -rf *
9830
9831
9832 test -z "`sort < /dev/null 2>&1`" || exit 77
9833
9834
9835 rm -rf testdir exclfile
9836 mkdir -p testdir
9837 awk 'BEGIN {for (i=9; i < 100; ++i ) { print \"testdir/file\" i; }}' < /dev/null | \\
9838  while read name
9839  do
9840    genfile --file \$name
9841  done
9842
9843 awk 'BEGIN {for (i=1000000; i >= 12; --i ) { print \"testdir/file\" i }}' < /dev/null > exclfile
9844
9845 tar cf archive --anchored --exclude-from=exclfile \\
9846                testdir
9847 tar tf archive | sort
9848
9849 echo \"NEXT\"
9850 tar cf archive --exclude-from=exclfile \\
9851                testdir
9852 tar tf archive | sort
9853
9854 rm -rf testdir exclfile
9855
9856 )"
9857 echo exclude05.at:22 >"$at_check_line_file"
9858
9859 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
9860    false; }; then
9861   ( $at_traceon;
9862 mkdir oldgnu
9863 (cd oldgnu
9864 TEST_TAR_FORMAT=oldgnu
9865 export TEST_TAR_FORMAT
9866 TAR_OPTIONS="-H oldgnu"
9867 export TAR_OPTIONS
9868 rm -rf *
9869
9870
9871 test -z "`sort < /dev/null 2>&1`" || exit 77
9872
9873
9874 rm -rf testdir exclfile
9875 mkdir -p testdir
9876 awk 'BEGIN {for (i=9; i < 100; ++i ) { print "testdir/file" i; }}' < /dev/null | \
9877  while read name
9878  do
9879    genfile --file $name
9880  done
9881
9882 awk 'BEGIN {for (i=1000000; i >= 12; --i ) { print "testdir/file" i }}' < /dev/null > exclfile
9883
9884 tar cf archive --anchored --exclude-from=exclfile \
9885                testdir
9886 tar tf archive | sort
9887
9888 echo "NEXT"
9889 tar cf archive --exclude-from=exclfile \
9890                testdir
9891 tar tf archive | sort
9892
9893 rm -rf testdir exclfile
9894
9895 ) ) >"$at_stdout" 2>"$at_stder1"
9896   at_func_filter_trace $?
9897 else
9898   ( :;
9899 mkdir oldgnu
9900 (cd oldgnu
9901 TEST_TAR_FORMAT=oldgnu
9902 export TEST_TAR_FORMAT
9903 TAR_OPTIONS="-H oldgnu"
9904 export TAR_OPTIONS
9905 rm -rf *
9906
9907
9908 test -z "`sort < /dev/null 2>&1`" || exit 77
9909
9910
9911 rm -rf testdir exclfile
9912 mkdir -p testdir
9913 awk 'BEGIN {for (i=9; i < 100; ++i ) { print "testdir/file" i; }}' < /dev/null | \
9914  while read name
9915  do
9916    genfile --file $name
9917  done
9918
9919 awk 'BEGIN {for (i=1000000; i >= 12; --i ) { print "testdir/file" i }}' < /dev/null > exclfile
9920
9921 tar cf archive --anchored --exclude-from=exclfile \
9922                testdir
9923 tar tf archive | sort
9924
9925 echo "NEXT"
9926 tar cf archive --exclude-from=exclfile \
9927                testdir
9928 tar tf archive | sort
9929
9930 rm -rf testdir exclfile
9931
9932 ) ) >"$at_stdout" 2>"$at_stderr"
9933 fi
9934 at_status=$?
9935 at_failed=false
9936 at_func_diff_devnull "$at_stderr" || at_failed=:
9937 echo >>"$at_stdout"; $as_echo "testdir/
9938 testdir/file10
9939 testdir/file11
9940 testdir/file9
9941 NEXT
9942 testdir/
9943 testdir/file10
9944 testdir/file11
9945 testdir/file9
9946 " | \
9947   $at_diff - "$at_stdout" || at_failed=:
9948 at_func_check_status 0 $at_status "$at_srcdir/exclude05.at:22"
9949
9950 $at_failed && at_func_log_failure
9951 $at_traceon; }
9952
9953               { $at_traceoff
9954 $as_echo "$at_srcdir/exclude05.at:22:
9955 mkdir ustar
9956 (cd ustar
9957 TEST_TAR_FORMAT=ustar
9958 export TEST_TAR_FORMAT
9959 TAR_OPTIONS=\"-H ustar\"
9960 export TAR_OPTIONS
9961 rm -rf *
9962
9963
9964 test -z "`sort < /dev/null 2>&1`" || exit 77
9965
9966
9967 rm -rf testdir exclfile
9968 mkdir -p testdir
9969 awk 'BEGIN {for (i=9; i < 100; ++i ) { print \"testdir/file\" i; }}' < /dev/null | \\
9970  while read name
9971  do
9972    genfile --file \$name
9973  done
9974
9975 awk 'BEGIN {for (i=1000000; i >= 12; --i ) { print \"testdir/file\" i }}' < /dev/null > exclfile
9976
9977 tar cf archive --anchored --exclude-from=exclfile \\
9978                testdir
9979 tar tf archive | sort
9980
9981 echo \"NEXT\"
9982 tar cf archive --exclude-from=exclfile \\
9983                testdir
9984 tar tf archive | sort
9985
9986 rm -rf testdir exclfile
9987
9988 )"
9989 echo exclude05.at:22 >"$at_check_line_file"
9990
9991 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
9992    false; }; then
9993   ( $at_traceon;
9994 mkdir ustar
9995 (cd ustar
9996 TEST_TAR_FORMAT=ustar
9997 export TEST_TAR_FORMAT
9998 TAR_OPTIONS="-H ustar"
9999 export TAR_OPTIONS
10000 rm -rf *
10001
10002
10003 test -z "`sort < /dev/null 2>&1`" || exit 77
10004
10005
10006 rm -rf testdir exclfile
10007 mkdir -p testdir
10008 awk 'BEGIN {for (i=9; i < 100; ++i ) { print "testdir/file" i; }}' < /dev/null | \
10009  while read name
10010  do
10011    genfile --file $name
10012  done
10013
10014 awk 'BEGIN {for (i=1000000; i >= 12; --i ) { print "testdir/file" i }}' < /dev/null > exclfile
10015
10016 tar cf archive --anchored --exclude-from=exclfile \
10017                testdir
10018 tar tf archive | sort
10019
10020 echo "NEXT"
10021 tar cf archive --exclude-from=exclfile \
10022                testdir
10023 tar tf archive | sort
10024
10025 rm -rf testdir exclfile
10026
10027 ) ) >"$at_stdout" 2>"$at_stder1"
10028   at_func_filter_trace $?
10029 else
10030   ( :;
10031 mkdir ustar
10032 (cd ustar
10033 TEST_TAR_FORMAT=ustar
10034 export TEST_TAR_FORMAT
10035 TAR_OPTIONS="-H ustar"
10036 export TAR_OPTIONS
10037 rm -rf *
10038
10039
10040 test -z "`sort < /dev/null 2>&1`" || exit 77
10041
10042
10043 rm -rf testdir exclfile
10044 mkdir -p testdir
10045 awk 'BEGIN {for (i=9; i < 100; ++i ) { print "testdir/file" i; }}' < /dev/null | \
10046  while read name
10047  do
10048    genfile --file $name
10049  done
10050
10051 awk 'BEGIN {for (i=1000000; i >= 12; --i ) { print "testdir/file" i }}' < /dev/null > exclfile
10052
10053 tar cf archive --anchored --exclude-from=exclfile \
10054                testdir
10055 tar tf archive | sort
10056
10057 echo "NEXT"
10058 tar cf archive --exclude-from=exclfile \
10059                testdir
10060 tar tf archive | sort
10061
10062 rm -rf testdir exclfile
10063
10064 ) ) >"$at_stdout" 2>"$at_stderr"
10065 fi
10066 at_status=$?
10067 at_failed=false
10068 at_func_diff_devnull "$at_stderr" || at_failed=:
10069 echo >>"$at_stdout"; $as_echo "testdir/
10070 testdir/file10
10071 testdir/file11
10072 testdir/file9
10073 NEXT
10074 testdir/
10075 testdir/file10
10076 testdir/file11
10077 testdir/file9
10078 " | \
10079   $at_diff - "$at_stdout" || at_failed=:
10080 at_func_check_status 0 $at_status "$at_srcdir/exclude05.at:22"
10081
10082 $at_failed && at_func_log_failure
10083 $at_traceon; }
10084
10085               { $at_traceoff
10086 $as_echo "$at_srcdir/exclude05.at:22:
10087 mkdir posix
10088 (cd posix
10089 TEST_TAR_FORMAT=posix
10090 export TEST_TAR_FORMAT
10091 TAR_OPTIONS=\"-H posix\"
10092 export TAR_OPTIONS
10093 rm -rf *
10094
10095
10096 test -z "`sort < /dev/null 2>&1`" || exit 77
10097
10098
10099 rm -rf testdir exclfile
10100 mkdir -p testdir
10101 awk 'BEGIN {for (i=9; i < 100; ++i ) { print \"testdir/file\" i; }}' < /dev/null | \\
10102  while read name
10103  do
10104    genfile --file \$name
10105  done
10106
10107 awk 'BEGIN {for (i=1000000; i >= 12; --i ) { print \"testdir/file\" i }}' < /dev/null > exclfile
10108
10109 tar cf archive --anchored --exclude-from=exclfile \\
10110                testdir
10111 tar tf archive | sort
10112
10113 echo \"NEXT\"
10114 tar cf archive --exclude-from=exclfile \\
10115                testdir
10116 tar tf archive | sort
10117
10118 rm -rf testdir exclfile
10119
10120 )"
10121 echo exclude05.at:22 >"$at_check_line_file"
10122
10123 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
10124    false; }; then
10125   ( $at_traceon;
10126 mkdir posix
10127 (cd posix
10128 TEST_TAR_FORMAT=posix
10129 export TEST_TAR_FORMAT
10130 TAR_OPTIONS="-H posix"
10131 export TAR_OPTIONS
10132 rm -rf *
10133
10134
10135 test -z "`sort < /dev/null 2>&1`" || exit 77
10136
10137
10138 rm -rf testdir exclfile
10139 mkdir -p testdir
10140 awk 'BEGIN {for (i=9; i < 100; ++i ) { print "testdir/file" i; }}' < /dev/null | \
10141  while read name
10142  do
10143    genfile --file $name
10144  done
10145
10146 awk 'BEGIN {for (i=1000000; i >= 12; --i ) { print "testdir/file" i }}' < /dev/null > exclfile
10147
10148 tar cf archive --anchored --exclude-from=exclfile \
10149                testdir
10150 tar tf archive | sort
10151
10152 echo "NEXT"
10153 tar cf archive --exclude-from=exclfile \
10154                testdir
10155 tar tf archive | sort
10156
10157 rm -rf testdir exclfile
10158
10159 ) ) >"$at_stdout" 2>"$at_stder1"
10160   at_func_filter_trace $?
10161 else
10162   ( :;
10163 mkdir posix
10164 (cd posix
10165 TEST_TAR_FORMAT=posix
10166 export TEST_TAR_FORMAT
10167 TAR_OPTIONS="-H posix"
10168 export TAR_OPTIONS
10169 rm -rf *
10170
10171
10172 test -z "`sort < /dev/null 2>&1`" || exit 77
10173
10174
10175 rm -rf testdir exclfile
10176 mkdir -p testdir
10177 awk 'BEGIN {for (i=9; i < 100; ++i ) { print "testdir/file" i; }}' < /dev/null | \
10178  while read name
10179  do
10180    genfile --file $name
10181  done
10182
10183 awk 'BEGIN {for (i=1000000; i >= 12; --i ) { print "testdir/file" i }}' < /dev/null > exclfile
10184
10185 tar cf archive --anchored --exclude-from=exclfile \
10186                testdir
10187 tar tf archive | sort
10188
10189 echo "NEXT"
10190 tar cf archive --exclude-from=exclfile \
10191                testdir
10192 tar tf archive | sort
10193
10194 rm -rf testdir exclfile
10195
10196 ) ) >"$at_stdout" 2>"$at_stderr"
10197 fi
10198 at_status=$?
10199 at_failed=false
10200 at_func_diff_devnull "$at_stderr" || at_failed=:
10201 echo >>"$at_stdout"; $as_echo "testdir/
10202 testdir/file10
10203 testdir/file11
10204 testdir/file9
10205 NEXT
10206 testdir/
10207 testdir/file10
10208 testdir/file11
10209 testdir/file9
10210 " | \
10211   $at_diff - "$at_stdout" || at_failed=:
10212 at_func_check_status 0 $at_status "$at_srcdir/exclude05.at:22"
10213
10214 $at_failed && at_func_log_failure
10215 $at_traceon; }
10216
10217               { $at_traceoff
10218 $as_echo "$at_srcdir/exclude05.at:22:
10219 mkdir gnu
10220 (cd gnu
10221 TEST_TAR_FORMAT=gnu
10222 export TEST_TAR_FORMAT
10223 TAR_OPTIONS=\"-H gnu\"
10224 export TAR_OPTIONS
10225 rm -rf *
10226
10227
10228 test -z "`sort < /dev/null 2>&1`" || exit 77
10229
10230
10231 rm -rf testdir exclfile
10232 mkdir -p testdir
10233 awk 'BEGIN {for (i=9; i < 100; ++i ) { print \"testdir/file\" i; }}' < /dev/null | \\
10234  while read name
10235  do
10236    genfile --file \$name
10237  done
10238
10239 awk 'BEGIN {for (i=1000000; i >= 12; --i ) { print \"testdir/file\" i }}' < /dev/null > exclfile
10240
10241 tar cf archive --anchored --exclude-from=exclfile \\
10242                testdir
10243 tar tf archive | sort
10244
10245 echo \"NEXT\"
10246 tar cf archive --exclude-from=exclfile \\
10247                testdir
10248 tar tf archive | sort
10249
10250 rm -rf testdir exclfile
10251
10252 )"
10253 echo exclude05.at:22 >"$at_check_line_file"
10254
10255 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
10256    false; }; then
10257   ( $at_traceon;
10258 mkdir gnu
10259 (cd gnu
10260 TEST_TAR_FORMAT=gnu
10261 export TEST_TAR_FORMAT
10262 TAR_OPTIONS="-H gnu"
10263 export TAR_OPTIONS
10264 rm -rf *
10265
10266
10267 test -z "`sort < /dev/null 2>&1`" || exit 77
10268
10269
10270 rm -rf testdir exclfile
10271 mkdir -p testdir
10272 awk 'BEGIN {for (i=9; i < 100; ++i ) { print "testdir/file" i; }}' < /dev/null | \
10273  while read name
10274  do
10275    genfile --file $name
10276  done
10277
10278 awk 'BEGIN {for (i=1000000; i >= 12; --i ) { print "testdir/file" i }}' < /dev/null > exclfile
10279
10280 tar cf archive --anchored --exclude-from=exclfile \
10281                testdir
10282 tar tf archive | sort
10283
10284 echo "NEXT"
10285 tar cf archive --exclude-from=exclfile \
10286                testdir
10287 tar tf archive | sort
10288
10289 rm -rf testdir exclfile
10290
10291 ) ) >"$at_stdout" 2>"$at_stder1"
10292   at_func_filter_trace $?
10293 else
10294   ( :;
10295 mkdir gnu
10296 (cd gnu
10297 TEST_TAR_FORMAT=gnu
10298 export TEST_TAR_FORMAT
10299 TAR_OPTIONS="-H gnu"
10300 export TAR_OPTIONS
10301 rm -rf *
10302
10303
10304 test -z "`sort < /dev/null 2>&1`" || exit 77
10305
10306
10307 rm -rf testdir exclfile
10308 mkdir -p testdir
10309 awk 'BEGIN {for (i=9; i < 100; ++i ) { print "testdir/file" i; }}' < /dev/null | \
10310  while read name
10311  do
10312    genfile --file $name
10313  done
10314
10315 awk 'BEGIN {for (i=1000000; i >= 12; --i ) { print "testdir/file" i }}' < /dev/null > exclfile
10316
10317 tar cf archive --anchored --exclude-from=exclfile \
10318                testdir
10319 tar tf archive | sort
10320
10321 echo "NEXT"
10322 tar cf archive --exclude-from=exclfile \
10323                testdir
10324 tar tf archive | sort
10325
10326 rm -rf testdir exclfile
10327
10328 ) ) >"$at_stdout" 2>"$at_stderr"
10329 fi
10330 at_status=$?
10331 at_failed=false
10332 at_func_diff_devnull "$at_stderr" || at_failed=:
10333 echo >>"$at_stdout"; $as_echo "testdir/
10334 testdir/file10
10335 testdir/file11
10336 testdir/file9
10337 NEXT
10338 testdir/
10339 testdir/file10
10340 testdir/file11
10341 testdir/file9
10342 " | \
10343   $at_diff - "$at_stdout" || at_failed=:
10344 at_func_check_status 0 $at_status "$at_srcdir/exclude05.at:22"
10345
10346 $at_failed && at_func_log_failure
10347 $at_traceon; }
10348
10349
10350
10351
10352   $at_traceoff
10353   $at_times_p && times >"$at_times_file"
10354 ) 5>&1 2>&1 | eval $at_tee_pipe
10355 at_status=`cat "$at_status_file"`
10356 #AT_STOP_20
10357 #AT_START_21
10358 # 21. exclude06.at:24: exclude: long files in pax archives
10359 at_setup_line='exclude06.at:24'
10360 at_desc="exclude: long files in pax archives"
10361 $at_quiet $as_echo_n " 21: $at_desc            "
10362 at_xfail=no
10363       test -f $XFAILFILE && at_xfail=yes
10364 echo "#                             -*- compilation -*-" >> "$at_group_log"
10365 (
10366   $as_echo "21. exclude06.at:24: testing ..."
10367   $at_traceon
10368
10369
10370
10371
10372
10373
10374
10375   { $at_traceoff
10376 $as_echo "$at_srcdir/exclude06.at:29:
10377 mkdir pax
10378 (cd pax
10379 TEST_TAR_FORMAT=pax
10380 export TEST_TAR_FORMAT
10381 TAR_OPTIONS=\"-H pax\"
10382 export TAR_OPTIONS
10383 rm -rf *
10384
10385
10386 install-sh -d one/two/three/four/five/six/seven/eight/nine/ten/eleven/twelve/thirteen/fourteen/fifteen/sixteen/seventeen >/dev/null  || exit 77
10387 genfile --length 20 -f one/two/three/four/five/six/seven/eight/nine/ten/eleven/twelve/thirteen/fourteen/fifteen/sixteen/seventeen/1.txt
10388 genfile --length 20 -f one/two/three/four/five/six/seven/eight/nine/ten/eleven/twelve/thirteen/fourteen/fifteen/sixteen/seventeen/1.c
10389
10390 tar cf archive.tar one/two/three/four/five/six/seven/eight/nine/ten/eleven/twelve/thirteen/fourteen/fifteen/sixteen/seventeen
10391 mkdir out
10392 tar -C out -xf archive.tar --exclude='*.txt' --warning=no-timestamp
10393 find out -type f
10394 )"
10395 echo exclude06.at:29 >"$at_check_line_file"
10396
10397 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
10398    false; }; then
10399   ( $at_traceon;
10400 mkdir pax
10401 (cd pax
10402 TEST_TAR_FORMAT=pax
10403 export TEST_TAR_FORMAT
10404 TAR_OPTIONS="-H pax"
10405 export TAR_OPTIONS
10406 rm -rf *
10407
10408
10409 install-sh -d one/two/three/four/five/six/seven/eight/nine/ten/eleven/twelve/thirteen/fourteen/fifteen/sixteen/seventeen >/dev/null  || exit 77
10410 genfile --length 20 -f one/two/three/four/five/six/seven/eight/nine/ten/eleven/twelve/thirteen/fourteen/fifteen/sixteen/seventeen/1.txt
10411 genfile --length 20 -f one/two/three/four/five/six/seven/eight/nine/ten/eleven/twelve/thirteen/fourteen/fifteen/sixteen/seventeen/1.c
10412
10413 tar cf archive.tar one/two/three/four/five/six/seven/eight/nine/ten/eleven/twelve/thirteen/fourteen/fifteen/sixteen/seventeen
10414 mkdir out
10415 tar -C out -xf archive.tar --exclude='*.txt' --warning=no-timestamp
10416 find out -type f
10417 ) ) >"$at_stdout" 2>"$at_stder1"
10418   at_func_filter_trace $?
10419 else
10420   ( :;
10421 mkdir pax
10422 (cd pax
10423 TEST_TAR_FORMAT=pax
10424 export TEST_TAR_FORMAT
10425 TAR_OPTIONS="-H pax"
10426 export TAR_OPTIONS
10427 rm -rf *
10428
10429
10430 install-sh -d one/two/three/four/five/six/seven/eight/nine/ten/eleven/twelve/thirteen/fourteen/fifteen/sixteen/seventeen >/dev/null  || exit 77
10431 genfile --length 20 -f one/two/three/four/five/six/seven/eight/nine/ten/eleven/twelve/thirteen/fourteen/fifteen/sixteen/seventeen/1.txt
10432 genfile --length 20 -f one/two/three/four/five/six/seven/eight/nine/ten/eleven/twelve/thirteen/fourteen/fifteen/sixteen/seventeen/1.c
10433
10434 tar cf archive.tar one/two/three/four/five/six/seven/eight/nine/ten/eleven/twelve/thirteen/fourteen/fifteen/sixteen/seventeen
10435 mkdir out
10436 tar -C out -xf archive.tar --exclude='*.txt' --warning=no-timestamp
10437 find out -type f
10438 ) ) >"$at_stdout" 2>"$at_stderr"
10439 fi
10440 at_status=$?
10441 at_failed=false
10442 at_func_diff_devnull "$at_stderr" || at_failed=:
10443 echo >>"$at_stdout"; $as_echo "out/one/two/three/four/five/six/seven/eight/nine/ten/eleven/twelve/thirteen/fourteen/fifteen/sixteen/seventeen/1.c
10444 " | \
10445   $at_diff - "$at_stdout" || at_failed=:
10446 at_func_check_status 0 $at_status "$at_srcdir/exclude06.at:29"
10447
10448 $at_failed && at_func_log_failure
10449 $at_traceon; }
10450
10451
10452
10453
10454   $at_traceoff
10455   $at_times_p && times >"$at_times_file"
10456 ) 5>&1 2>&1 | eval $at_tee_pipe
10457 at_status=`cat "$at_status_file"`
10458 #AT_STOP_21
10459 #AT_START_22
10460 # 22. delete01.at:23: deleting a member after a big one
10461 at_setup_line='delete01.at:23'
10462 at_desc="deleting a member after a big one"
10463 $at_quiet $as_echo_n " 22: $at_desc              "
10464 at_xfail=no
10465       test -f $XFAILFILE && at_xfail=yes
10466 echo "#                             -*- compilation -*-" >> "$at_group_log"
10467 (
10468   $as_echo "22. delete01.at:23: testing ..."
10469   $at_traceon
10470
10471
10472
10473
10474
10475   { $at_traceoff
10476 $as_echo "$at_srcdir/delete01.at:26:
10477 mkdir v7
10478 (cd v7
10479 TEST_TAR_FORMAT=v7
10480 export TEST_TAR_FORMAT
10481 TAR_OPTIONS=\"-H v7\"
10482 export TAR_OPTIONS
10483 rm -rf *
10484
10485 genfile -l 50000 --file file1
10486 genfile -l 1024 --file file2
10487 tar cf archive file1 file2
10488 tar f archive --delete file2
10489 tar tf archive)"
10490 echo delete01.at:26 >"$at_check_line_file"
10491
10492 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
10493    false; }; then
10494   ( $at_traceon;
10495 mkdir v7
10496 (cd v7
10497 TEST_TAR_FORMAT=v7
10498 export TEST_TAR_FORMAT
10499 TAR_OPTIONS="-H v7"
10500 export TAR_OPTIONS
10501 rm -rf *
10502
10503 genfile -l 50000 --file file1
10504 genfile -l 1024 --file file2
10505 tar cf archive file1 file2
10506 tar f archive --delete file2
10507 tar tf archive) ) >"$at_stdout" 2>"$at_stder1"
10508   at_func_filter_trace $?
10509 else
10510   ( :;
10511 mkdir v7
10512 (cd v7
10513 TEST_TAR_FORMAT=v7
10514 export TEST_TAR_FORMAT
10515 TAR_OPTIONS="-H v7"
10516 export TAR_OPTIONS
10517 rm -rf *
10518
10519 genfile -l 50000 --file file1
10520 genfile -l 1024 --file file2
10521 tar cf archive file1 file2
10522 tar f archive --delete file2
10523 tar tf archive) ) >"$at_stdout" 2>"$at_stderr"
10524 fi
10525 at_status=$?
10526 at_failed=false
10527 at_func_diff_devnull "$at_stderr" || at_failed=:
10528 echo >>"$at_stdout"; $as_echo "file1
10529 " | \
10530   $at_diff - "$at_stdout" || at_failed=:
10531 at_func_check_status 0 $at_status "$at_srcdir/delete01.at:26"
10532
10533 $at_failed && at_func_log_failure
10534 $at_traceon; }
10535
10536               { $at_traceoff
10537 $as_echo "$at_srcdir/delete01.at:26:
10538 mkdir oldgnu
10539 (cd oldgnu
10540 TEST_TAR_FORMAT=oldgnu
10541 export TEST_TAR_FORMAT
10542 TAR_OPTIONS=\"-H oldgnu\"
10543 export TAR_OPTIONS
10544 rm -rf *
10545
10546 genfile -l 50000 --file file1
10547 genfile -l 1024 --file file2
10548 tar cf archive file1 file2
10549 tar f archive --delete file2
10550 tar tf archive)"
10551 echo delete01.at:26 >"$at_check_line_file"
10552
10553 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
10554    false; }; then
10555   ( $at_traceon;
10556 mkdir oldgnu
10557 (cd oldgnu
10558 TEST_TAR_FORMAT=oldgnu
10559 export TEST_TAR_FORMAT
10560 TAR_OPTIONS="-H oldgnu"
10561 export TAR_OPTIONS
10562 rm -rf *
10563
10564 genfile -l 50000 --file file1
10565 genfile -l 1024 --file file2
10566 tar cf archive file1 file2
10567 tar f archive --delete file2
10568 tar tf archive) ) >"$at_stdout" 2>"$at_stder1"
10569   at_func_filter_trace $?
10570 else
10571   ( :;
10572 mkdir oldgnu
10573 (cd oldgnu
10574 TEST_TAR_FORMAT=oldgnu
10575 export TEST_TAR_FORMAT
10576 TAR_OPTIONS="-H oldgnu"
10577 export TAR_OPTIONS
10578 rm -rf *
10579
10580 genfile -l 50000 --file file1
10581 genfile -l 1024 --file file2
10582 tar cf archive file1 file2
10583 tar f archive --delete file2
10584 tar tf archive) ) >"$at_stdout" 2>"$at_stderr"
10585 fi
10586 at_status=$?
10587 at_failed=false
10588 at_func_diff_devnull "$at_stderr" || at_failed=:
10589 echo >>"$at_stdout"; $as_echo "file1
10590 " | \
10591   $at_diff - "$at_stdout" || at_failed=:
10592 at_func_check_status 0 $at_status "$at_srcdir/delete01.at:26"
10593
10594 $at_failed && at_func_log_failure
10595 $at_traceon; }
10596
10597               { $at_traceoff
10598 $as_echo "$at_srcdir/delete01.at:26:
10599 mkdir ustar
10600 (cd ustar
10601 TEST_TAR_FORMAT=ustar
10602 export TEST_TAR_FORMAT
10603 TAR_OPTIONS=\"-H ustar\"
10604 export TAR_OPTIONS
10605 rm -rf *
10606
10607 genfile -l 50000 --file file1
10608 genfile -l 1024 --file file2
10609 tar cf archive file1 file2
10610 tar f archive --delete file2
10611 tar tf archive)"
10612 echo delete01.at:26 >"$at_check_line_file"
10613
10614 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
10615    false; }; then
10616   ( $at_traceon;
10617 mkdir ustar
10618 (cd ustar
10619 TEST_TAR_FORMAT=ustar
10620 export TEST_TAR_FORMAT
10621 TAR_OPTIONS="-H ustar"
10622 export TAR_OPTIONS
10623 rm -rf *
10624
10625 genfile -l 50000 --file file1
10626 genfile -l 1024 --file file2
10627 tar cf archive file1 file2
10628 tar f archive --delete file2
10629 tar tf archive) ) >"$at_stdout" 2>"$at_stder1"
10630   at_func_filter_trace $?
10631 else
10632   ( :;
10633 mkdir ustar
10634 (cd ustar
10635 TEST_TAR_FORMAT=ustar
10636 export TEST_TAR_FORMAT
10637 TAR_OPTIONS="-H ustar"
10638 export TAR_OPTIONS
10639 rm -rf *
10640
10641 genfile -l 50000 --file file1
10642 genfile -l 1024 --file file2
10643 tar cf archive file1 file2
10644 tar f archive --delete file2
10645 tar tf archive) ) >"$at_stdout" 2>"$at_stderr"
10646 fi
10647 at_status=$?
10648 at_failed=false
10649 at_func_diff_devnull "$at_stderr" || at_failed=:
10650 echo >>"$at_stdout"; $as_echo "file1
10651 " | \
10652   $at_diff - "$at_stdout" || at_failed=:
10653 at_func_check_status 0 $at_status "$at_srcdir/delete01.at:26"
10654
10655 $at_failed && at_func_log_failure
10656 $at_traceon; }
10657
10658               { $at_traceoff
10659 $as_echo "$at_srcdir/delete01.at:26:
10660 mkdir posix
10661 (cd posix
10662 TEST_TAR_FORMAT=posix
10663 export TEST_TAR_FORMAT
10664 TAR_OPTIONS=\"-H posix\"
10665 export TAR_OPTIONS
10666 rm -rf *
10667
10668 genfile -l 50000 --file file1
10669 genfile -l 1024 --file file2
10670 tar cf archive file1 file2
10671 tar f archive --delete file2
10672 tar tf archive)"
10673 echo delete01.at:26 >"$at_check_line_file"
10674
10675 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
10676    false; }; then
10677   ( $at_traceon;
10678 mkdir posix
10679 (cd posix
10680 TEST_TAR_FORMAT=posix
10681 export TEST_TAR_FORMAT
10682 TAR_OPTIONS="-H posix"
10683 export TAR_OPTIONS
10684 rm -rf *
10685
10686 genfile -l 50000 --file file1
10687 genfile -l 1024 --file file2
10688 tar cf archive file1 file2
10689 tar f archive --delete file2
10690 tar tf archive) ) >"$at_stdout" 2>"$at_stder1"
10691   at_func_filter_trace $?
10692 else
10693   ( :;
10694 mkdir posix
10695 (cd posix
10696 TEST_TAR_FORMAT=posix
10697 export TEST_TAR_FORMAT
10698 TAR_OPTIONS="-H posix"
10699 export TAR_OPTIONS
10700 rm -rf *
10701
10702 genfile -l 50000 --file file1
10703 genfile -l 1024 --file file2
10704 tar cf archive file1 file2
10705 tar f archive --delete file2
10706 tar tf archive) ) >"$at_stdout" 2>"$at_stderr"
10707 fi
10708 at_status=$?
10709 at_failed=false
10710 at_func_diff_devnull "$at_stderr" || at_failed=:
10711 echo >>"$at_stdout"; $as_echo "file1
10712 " | \
10713   $at_diff - "$at_stdout" || at_failed=:
10714 at_func_check_status 0 $at_status "$at_srcdir/delete01.at:26"
10715
10716 $at_failed && at_func_log_failure
10717 $at_traceon; }
10718
10719               { $at_traceoff
10720 $as_echo "$at_srcdir/delete01.at:26:
10721 mkdir gnu
10722 (cd gnu
10723 TEST_TAR_FORMAT=gnu
10724 export TEST_TAR_FORMAT
10725 TAR_OPTIONS=\"-H gnu\"
10726 export TAR_OPTIONS
10727 rm -rf *
10728
10729 genfile -l 50000 --file file1
10730 genfile -l 1024 --file file2
10731 tar cf archive file1 file2
10732 tar f archive --delete file2
10733 tar tf archive)"
10734 echo delete01.at:26 >"$at_check_line_file"
10735
10736 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
10737    false; }; then
10738   ( $at_traceon;
10739 mkdir gnu
10740 (cd gnu
10741 TEST_TAR_FORMAT=gnu
10742 export TEST_TAR_FORMAT
10743 TAR_OPTIONS="-H gnu"
10744 export TAR_OPTIONS
10745 rm -rf *
10746
10747 genfile -l 50000 --file file1
10748 genfile -l 1024 --file file2
10749 tar cf archive file1 file2
10750 tar f archive --delete file2
10751 tar tf archive) ) >"$at_stdout" 2>"$at_stder1"
10752   at_func_filter_trace $?
10753 else
10754   ( :;
10755 mkdir gnu
10756 (cd gnu
10757 TEST_TAR_FORMAT=gnu
10758 export TEST_TAR_FORMAT
10759 TAR_OPTIONS="-H gnu"
10760 export TAR_OPTIONS
10761 rm -rf *
10762
10763 genfile -l 50000 --file file1
10764 genfile -l 1024 --file file2
10765 tar cf archive file1 file2
10766 tar f archive --delete file2
10767 tar tf archive) ) >"$at_stdout" 2>"$at_stderr"
10768 fi
10769 at_status=$?
10770 at_failed=false
10771 at_func_diff_devnull "$at_stderr" || at_failed=:
10772 echo >>"$at_stdout"; $as_echo "file1
10773 " | \
10774   $at_diff - "$at_stdout" || at_failed=:
10775 at_func_check_status 0 $at_status "$at_srcdir/delete01.at:26"
10776
10777 $at_failed && at_func_log_failure
10778 $at_traceon; }
10779
10780
10781
10782
10783   $at_traceoff
10784   $at_times_p && times >"$at_times_file"
10785 ) 5>&1 2>&1 | eval $at_tee_pipe
10786 at_status=`cat "$at_status_file"`
10787 #AT_STOP_22
10788 #AT_START_23
10789 # 23. delete02.at:23: deleting a member from stdin archive
10790 at_setup_line='delete02.at:23'
10791 at_desc="deleting a member from stdin archive"
10792 $at_quiet $as_echo_n " 23: $at_desc           "
10793 at_xfail=no
10794       test -f $XFAILFILE && at_xfail=yes
10795 echo "#                             -*- compilation -*-" >> "$at_group_log"
10796 (
10797   $as_echo "23. delete02.at:23: testing ..."
10798   $at_traceon
10799
10800
10801
10802
10803
10804   { $at_traceoff
10805 $as_echo "$at_srcdir/delete02.at:26:
10806 mkdir v7
10807 (cd v7
10808 TEST_TAR_FORMAT=v7
10809 export TEST_TAR_FORMAT
10810 TAR_OPTIONS=\"-H v7\"
10811 export TAR_OPTIONS
10812 rm -rf *
10813
10814 genfile -l 3073 -p zeros --file 1
10815 cp 1 2
10816 cp 2 3
10817 tar cf archive 1 2 3
10818 tar tf archive
10819 cat archive | tar f - --delete 2 > archive2
10820 echo separator
10821 tar tf archive2)"
10822 echo delete02.at:26 >"$at_check_line_file"
10823
10824 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
10825    false; }; then
10826   ( $at_traceon;
10827 mkdir v7
10828 (cd v7
10829 TEST_TAR_FORMAT=v7
10830 export TEST_TAR_FORMAT
10831 TAR_OPTIONS="-H v7"
10832 export TAR_OPTIONS
10833 rm -rf *
10834
10835 genfile -l 3073 -p zeros --file 1
10836 cp 1 2
10837 cp 2 3
10838 tar cf archive 1 2 3
10839 tar tf archive
10840 cat archive | tar f - --delete 2 > archive2
10841 echo separator
10842 tar tf archive2) ) >"$at_stdout" 2>"$at_stder1"
10843   at_func_filter_trace $?
10844 else
10845   ( :;
10846 mkdir v7
10847 (cd v7
10848 TEST_TAR_FORMAT=v7
10849 export TEST_TAR_FORMAT
10850 TAR_OPTIONS="-H v7"
10851 export TAR_OPTIONS
10852 rm -rf *
10853
10854 genfile -l 3073 -p zeros --file 1
10855 cp 1 2
10856 cp 2 3
10857 tar cf archive 1 2 3
10858 tar tf archive
10859 cat archive | tar f - --delete 2 > archive2
10860 echo separator
10861 tar tf archive2) ) >"$at_stdout" 2>"$at_stderr"
10862 fi
10863 at_status=$?
10864 at_failed=false
10865 at_func_diff_devnull "$at_stderr" || at_failed=:
10866 echo >>"$at_stdout"; $as_echo "1
10867 2
10868 3
10869 separator
10870 1
10871 3
10872 " | \
10873   $at_diff - "$at_stdout" || at_failed=:
10874 at_func_check_status 0 $at_status "$at_srcdir/delete02.at:26"
10875
10876 $at_failed && at_func_log_failure
10877 $at_traceon; }
10878
10879               { $at_traceoff
10880 $as_echo "$at_srcdir/delete02.at:26:
10881 mkdir oldgnu
10882 (cd oldgnu
10883 TEST_TAR_FORMAT=oldgnu
10884 export TEST_TAR_FORMAT
10885 TAR_OPTIONS=\"-H oldgnu\"
10886 export TAR_OPTIONS
10887 rm -rf *
10888
10889 genfile -l 3073 -p zeros --file 1
10890 cp 1 2
10891 cp 2 3
10892 tar cf archive 1 2 3
10893 tar tf archive
10894 cat archive | tar f - --delete 2 > archive2
10895 echo separator
10896 tar tf archive2)"
10897 echo delete02.at:26 >"$at_check_line_file"
10898
10899 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
10900    false; }; then
10901   ( $at_traceon;
10902 mkdir oldgnu
10903 (cd oldgnu
10904 TEST_TAR_FORMAT=oldgnu
10905 export TEST_TAR_FORMAT
10906 TAR_OPTIONS="-H oldgnu"
10907 export TAR_OPTIONS
10908 rm -rf *
10909
10910 genfile -l 3073 -p zeros --file 1
10911 cp 1 2
10912 cp 2 3
10913 tar cf archive 1 2 3
10914 tar tf archive
10915 cat archive | tar f - --delete 2 > archive2
10916 echo separator
10917 tar tf archive2) ) >"$at_stdout" 2>"$at_stder1"
10918   at_func_filter_trace $?
10919 else
10920   ( :;
10921 mkdir oldgnu
10922 (cd oldgnu
10923 TEST_TAR_FORMAT=oldgnu
10924 export TEST_TAR_FORMAT
10925 TAR_OPTIONS="-H oldgnu"
10926 export TAR_OPTIONS
10927 rm -rf *
10928
10929 genfile -l 3073 -p zeros --file 1
10930 cp 1 2
10931 cp 2 3
10932 tar cf archive 1 2 3
10933 tar tf archive
10934 cat archive | tar f - --delete 2 > archive2
10935 echo separator
10936 tar tf archive2) ) >"$at_stdout" 2>"$at_stderr"
10937 fi
10938 at_status=$?
10939 at_failed=false
10940 at_func_diff_devnull "$at_stderr" || at_failed=:
10941 echo >>"$at_stdout"; $as_echo "1
10942 2
10943 3
10944 separator
10945 1
10946 3
10947 " | \
10948   $at_diff - "$at_stdout" || at_failed=:
10949 at_func_check_status 0 $at_status "$at_srcdir/delete02.at:26"
10950
10951 $at_failed && at_func_log_failure
10952 $at_traceon; }
10953
10954               { $at_traceoff
10955 $as_echo "$at_srcdir/delete02.at:26:
10956 mkdir ustar
10957 (cd ustar
10958 TEST_TAR_FORMAT=ustar
10959 export TEST_TAR_FORMAT
10960 TAR_OPTIONS=\"-H ustar\"
10961 export TAR_OPTIONS
10962 rm -rf *
10963
10964 genfile -l 3073 -p zeros --file 1
10965 cp 1 2
10966 cp 2 3
10967 tar cf archive 1 2 3
10968 tar tf archive
10969 cat archive | tar f - --delete 2 > archive2
10970 echo separator
10971 tar tf archive2)"
10972 echo delete02.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 ustar
10978 (cd ustar
10979 TEST_TAR_FORMAT=ustar
10980 export TEST_TAR_FORMAT
10981 TAR_OPTIONS="-H ustar"
10982 export TAR_OPTIONS
10983 rm -rf *
10984
10985 genfile -l 3073 -p zeros --file 1
10986 cp 1 2
10987 cp 2 3
10988 tar cf archive 1 2 3
10989 tar tf archive
10990 cat archive | tar f - --delete 2 > archive2
10991 echo separator
10992 tar tf archive2) ) >"$at_stdout" 2>"$at_stder1"
10993   at_func_filter_trace $?
10994 else
10995   ( :;
10996 mkdir ustar
10997 (cd ustar
10998 TEST_TAR_FORMAT=ustar
10999 export TEST_TAR_FORMAT
11000 TAR_OPTIONS="-H ustar"
11001 export TAR_OPTIONS
11002 rm -rf *
11003
11004 genfile -l 3073 -p zeros --file 1
11005 cp 1 2
11006 cp 2 3
11007 tar cf archive 1 2 3
11008 tar tf archive
11009 cat archive | tar f - --delete 2 > archive2
11010 echo separator
11011 tar tf archive2) ) >"$at_stdout" 2>"$at_stderr"
11012 fi
11013 at_status=$?
11014 at_failed=false
11015 at_func_diff_devnull "$at_stderr" || at_failed=:
11016 echo >>"$at_stdout"; $as_echo "1
11017 2
11018 3
11019 separator
11020 1
11021 3
11022 " | \
11023   $at_diff - "$at_stdout" || at_failed=:
11024 at_func_check_status 0 $at_status "$at_srcdir/delete02.at:26"
11025
11026 $at_failed && at_func_log_failure
11027 $at_traceon; }
11028
11029               { $at_traceoff
11030 $as_echo "$at_srcdir/delete02.at:26:
11031 mkdir posix
11032 (cd posix
11033 TEST_TAR_FORMAT=posix
11034 export TEST_TAR_FORMAT
11035 TAR_OPTIONS=\"-H posix\"
11036 export TAR_OPTIONS
11037 rm -rf *
11038
11039 genfile -l 3073 -p zeros --file 1
11040 cp 1 2
11041 cp 2 3
11042 tar cf archive 1 2 3
11043 tar tf archive
11044 cat archive | tar f - --delete 2 > archive2
11045 echo separator
11046 tar tf archive2)"
11047 echo delete02.at:26 >"$at_check_line_file"
11048
11049 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
11050    false; }; then
11051   ( $at_traceon;
11052 mkdir posix
11053 (cd posix
11054 TEST_TAR_FORMAT=posix
11055 export TEST_TAR_FORMAT
11056 TAR_OPTIONS="-H posix"
11057 export TAR_OPTIONS
11058 rm -rf *
11059
11060 genfile -l 3073 -p zeros --file 1
11061 cp 1 2
11062 cp 2 3
11063 tar cf archive 1 2 3
11064 tar tf archive
11065 cat archive | tar f - --delete 2 > archive2
11066 echo separator
11067 tar tf archive2) ) >"$at_stdout" 2>"$at_stder1"
11068   at_func_filter_trace $?
11069 else
11070   ( :;
11071 mkdir posix
11072 (cd posix
11073 TEST_TAR_FORMAT=posix
11074 export TEST_TAR_FORMAT
11075 TAR_OPTIONS="-H posix"
11076 export TAR_OPTIONS
11077 rm -rf *
11078
11079 genfile -l 3073 -p zeros --file 1
11080 cp 1 2
11081 cp 2 3
11082 tar cf archive 1 2 3
11083 tar tf archive
11084 cat archive | tar f - --delete 2 > archive2
11085 echo separator
11086 tar tf archive2) ) >"$at_stdout" 2>"$at_stderr"
11087 fi
11088 at_status=$?
11089 at_failed=false
11090 at_func_diff_devnull "$at_stderr" || at_failed=:
11091 echo >>"$at_stdout"; $as_echo "1
11092 2
11093 3
11094 separator
11095 1
11096 3
11097 " | \
11098   $at_diff - "$at_stdout" || at_failed=:
11099 at_func_check_status 0 $at_status "$at_srcdir/delete02.at:26"
11100
11101 $at_failed && at_func_log_failure
11102 $at_traceon; }
11103
11104               { $at_traceoff
11105 $as_echo "$at_srcdir/delete02.at:26:
11106 mkdir gnu
11107 (cd gnu
11108 TEST_TAR_FORMAT=gnu
11109 export TEST_TAR_FORMAT
11110 TAR_OPTIONS=\"-H gnu\"
11111 export TAR_OPTIONS
11112 rm -rf *
11113
11114 genfile -l 3073 -p zeros --file 1
11115 cp 1 2
11116 cp 2 3
11117 tar cf archive 1 2 3
11118 tar tf archive
11119 cat archive | tar f - --delete 2 > archive2
11120 echo separator
11121 tar tf archive2)"
11122 echo delete02.at:26 >"$at_check_line_file"
11123
11124 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
11125    false; }; then
11126   ( $at_traceon;
11127 mkdir gnu
11128 (cd gnu
11129 TEST_TAR_FORMAT=gnu
11130 export TEST_TAR_FORMAT
11131 TAR_OPTIONS="-H gnu"
11132 export TAR_OPTIONS
11133 rm -rf *
11134
11135 genfile -l 3073 -p zeros --file 1
11136 cp 1 2
11137 cp 2 3
11138 tar cf archive 1 2 3
11139 tar tf archive
11140 cat archive | tar f - --delete 2 > archive2
11141 echo separator
11142 tar tf archive2) ) >"$at_stdout" 2>"$at_stder1"
11143   at_func_filter_trace $?
11144 else
11145   ( :;
11146 mkdir gnu
11147 (cd gnu
11148 TEST_TAR_FORMAT=gnu
11149 export TEST_TAR_FORMAT
11150 TAR_OPTIONS="-H gnu"
11151 export TAR_OPTIONS
11152 rm -rf *
11153
11154 genfile -l 3073 -p zeros --file 1
11155 cp 1 2
11156 cp 2 3
11157 tar cf archive 1 2 3
11158 tar tf archive
11159 cat archive | tar f - --delete 2 > archive2
11160 echo separator
11161 tar tf archive2) ) >"$at_stdout" 2>"$at_stderr"
11162 fi
11163 at_status=$?
11164 at_failed=false
11165 at_func_diff_devnull "$at_stderr" || at_failed=:
11166 echo >>"$at_stdout"; $as_echo "1
11167 2
11168 3
11169 separator
11170 1
11171 3
11172 " | \
11173   $at_diff - "$at_stdout" || at_failed=:
11174 at_func_check_status 0 $at_status "$at_srcdir/delete02.at:26"
11175
11176 $at_failed && at_func_log_failure
11177 $at_traceon; }
11178
11179
11180
11181
11182   $at_traceoff
11183   $at_times_p && times >"$at_times_file"
11184 ) 5>&1 2>&1 | eval $at_tee_pipe
11185 at_status=`cat "$at_status_file"`
11186 #AT_STOP_23
11187 #AT_START_24
11188 # 24. delete03.at:21: deleting members with long names
11189 at_setup_line='delete03.at:21'
11190 at_desc="deleting members with long names"
11191 $at_quiet $as_echo_n " 24: $at_desc               "
11192 at_xfail=no
11193       test -f $XFAILFILE && at_xfail=yes
11194 echo "#                             -*- compilation -*-" >> "$at_group_log"
11195 (
11196   $as_echo "24. delete03.at:21: testing ..."
11197   $at_traceon
11198
11199
11200
11201
11202
11203
11204
11205   { $at_traceoff
11206 $as_echo "$at_srcdir/delete03.at:26:
11207 mkdir gnu
11208 (cd gnu
11209 TEST_TAR_FORMAT=gnu
11210 export TEST_TAR_FORMAT
11211 TAR_OPTIONS=\"-H gnu\"
11212 export TAR_OPTIONS
11213 rm -rf *
11214
11215
11216 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
11217 rm -f \$prefix*
11218 for i in 1 2 3 4 5 6 7 8 9
11219 do touch \$prefix\$i
11220 done
11221 tar -cf archive ./\$prefix* &&
11222  tar --delete -f archive ./\${prefix}5 &&
11223  tar -tf archive
11224 )"
11225 echo delete03.at:26 >"$at_check_line_file"
11226
11227 if { echo 'Not enabling shell tracing (command contains a ${...} parameter expansion)'
11228    false; }; then
11229   ( $at_traceon;
11230 mkdir gnu
11231 (cd gnu
11232 TEST_TAR_FORMAT=gnu
11233 export TEST_TAR_FORMAT
11234 TAR_OPTIONS="-H gnu"
11235 export TAR_OPTIONS
11236 rm -rf *
11237
11238
11239 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
11240 rm -f $prefix*
11241 for i in 1 2 3 4 5 6 7 8 9
11242 do touch $prefix$i
11243 done
11244 tar -cf archive ./$prefix* &&
11245  tar --delete -f archive ./${prefix}5 &&
11246  tar -tf archive
11247 ) ) >"$at_stdout" 2>"$at_stder1"
11248   at_func_filter_trace $?
11249 else
11250   ( :;
11251 mkdir gnu
11252 (cd gnu
11253 TEST_TAR_FORMAT=gnu
11254 export TEST_TAR_FORMAT
11255 TAR_OPTIONS="-H gnu"
11256 export TAR_OPTIONS
11257 rm -rf *
11258
11259
11260 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
11261 rm -f $prefix*
11262 for i in 1 2 3 4 5 6 7 8 9
11263 do touch $prefix$i
11264 done
11265 tar -cf archive ./$prefix* &&
11266  tar --delete -f archive ./${prefix}5 &&
11267  tar -tf archive
11268 ) ) >"$at_stdout" 2>"$at_stderr"
11269 fi
11270 at_status=$?
11271 at_failed=false
11272 at_func_diff_devnull "$at_stderr" || at_failed=:
11273 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
11274 ./This_is_a_very_long_file_name_prefix_that_is_designed_to_cause_problems_with_file_names_that_run_into_a_limit_of_the_posix_tar_formatXX2
11275 ./This_is_a_very_long_file_name_prefix_that_is_designed_to_cause_problems_with_file_names_that_run_into_a_limit_of_the_posix_tar_formatXX3
11276 ./This_is_a_very_long_file_name_prefix_that_is_designed_to_cause_problems_with_file_names_that_run_into_a_limit_of_the_posix_tar_formatXX4
11277 ./This_is_a_very_long_file_name_prefix_that_is_designed_to_cause_problems_with_file_names_that_run_into_a_limit_of_the_posix_tar_formatXX6
11278 ./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
11279 ./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
11280 ./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
11281 " | \
11282   $at_diff - "$at_stdout" || at_failed=:
11283 at_func_check_status 0 $at_status "$at_srcdir/delete03.at:26"
11284
11285 $at_failed && at_func_log_failure
11286 $at_traceon; }
11287
11288               { $at_traceoff
11289 $as_echo "$at_srcdir/delete03.at:26:
11290 mkdir oldgnu
11291 (cd oldgnu
11292 TEST_TAR_FORMAT=oldgnu
11293 export TEST_TAR_FORMAT
11294 TAR_OPTIONS=\"-H oldgnu\"
11295 export TAR_OPTIONS
11296 rm -rf *
11297
11298
11299 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
11300 rm -f \$prefix*
11301 for i in 1 2 3 4 5 6 7 8 9
11302 do touch \$prefix\$i
11303 done
11304 tar -cf archive ./\$prefix* &&
11305  tar --delete -f archive ./\${prefix}5 &&
11306  tar -tf archive
11307 )"
11308 echo delete03.at:26 >"$at_check_line_file"
11309
11310 if { echo 'Not enabling shell tracing (command contains a ${...} parameter expansion)'
11311    false; }; then
11312   ( $at_traceon;
11313 mkdir oldgnu
11314 (cd oldgnu
11315 TEST_TAR_FORMAT=oldgnu
11316 export TEST_TAR_FORMAT
11317 TAR_OPTIONS="-H oldgnu"
11318 export TAR_OPTIONS
11319 rm -rf *
11320
11321
11322 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
11323 rm -f $prefix*
11324 for i in 1 2 3 4 5 6 7 8 9
11325 do touch $prefix$i
11326 done
11327 tar -cf archive ./$prefix* &&
11328  tar --delete -f archive ./${prefix}5 &&
11329  tar -tf archive
11330 ) ) >"$at_stdout" 2>"$at_stder1"
11331   at_func_filter_trace $?
11332 else
11333   ( :;
11334 mkdir oldgnu
11335 (cd oldgnu
11336 TEST_TAR_FORMAT=oldgnu
11337 export TEST_TAR_FORMAT
11338 TAR_OPTIONS="-H oldgnu"
11339 export TAR_OPTIONS
11340 rm -rf *
11341
11342
11343 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
11344 rm -f $prefix*
11345 for i in 1 2 3 4 5 6 7 8 9
11346 do touch $prefix$i
11347 done
11348 tar -cf archive ./$prefix* &&
11349  tar --delete -f archive ./${prefix}5 &&
11350  tar -tf archive
11351 ) ) >"$at_stdout" 2>"$at_stderr"
11352 fi
11353 at_status=$?
11354 at_failed=false
11355 at_func_diff_devnull "$at_stderr" || at_failed=:
11356 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
11357 ./This_is_a_very_long_file_name_prefix_that_is_designed_to_cause_problems_with_file_names_that_run_into_a_limit_of_the_posix_tar_formatXX2
11358 ./This_is_a_very_long_file_name_prefix_that_is_designed_to_cause_problems_with_file_names_that_run_into_a_limit_of_the_posix_tar_formatXX3
11359 ./This_is_a_very_long_file_name_prefix_that_is_designed_to_cause_problems_with_file_names_that_run_into_a_limit_of_the_posix_tar_formatXX4
11360 ./This_is_a_very_long_file_name_prefix_that_is_designed_to_cause_problems_with_file_names_that_run_into_a_limit_of_the_posix_tar_formatXX6
11361 ./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
11362 ./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
11363 ./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
11364 " | \
11365   $at_diff - "$at_stdout" || at_failed=:
11366 at_func_check_status 0 $at_status "$at_srcdir/delete03.at:26"
11367
11368 $at_failed && at_func_log_failure
11369 $at_traceon; }
11370
11371               { $at_traceoff
11372 $as_echo "$at_srcdir/delete03.at:26:
11373 mkdir posix
11374 (cd posix
11375 TEST_TAR_FORMAT=posix
11376 export TEST_TAR_FORMAT
11377 TAR_OPTIONS=\"-H posix\"
11378 export TAR_OPTIONS
11379 rm -rf *
11380
11381
11382 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
11383 rm -f \$prefix*
11384 for i in 1 2 3 4 5 6 7 8 9
11385 do touch \$prefix\$i
11386 done
11387 tar -cf archive ./\$prefix* &&
11388  tar --delete -f archive ./\${prefix}5 &&
11389  tar -tf archive
11390 )"
11391 echo delete03.at:26 >"$at_check_line_file"
11392
11393 if { echo 'Not enabling shell tracing (command contains a ${...} parameter expansion)'
11394    false; }; then
11395   ( $at_traceon;
11396 mkdir posix
11397 (cd posix
11398 TEST_TAR_FORMAT=posix
11399 export TEST_TAR_FORMAT
11400 TAR_OPTIONS="-H posix"
11401 export TAR_OPTIONS
11402 rm -rf *
11403
11404
11405 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
11406 rm -f $prefix*
11407 for i in 1 2 3 4 5 6 7 8 9
11408 do touch $prefix$i
11409 done
11410 tar -cf archive ./$prefix* &&
11411  tar --delete -f archive ./${prefix}5 &&
11412  tar -tf archive
11413 ) ) >"$at_stdout" 2>"$at_stder1"
11414   at_func_filter_trace $?
11415 else
11416   ( :;
11417 mkdir posix
11418 (cd posix
11419 TEST_TAR_FORMAT=posix
11420 export TEST_TAR_FORMAT
11421 TAR_OPTIONS="-H posix"
11422 export TAR_OPTIONS
11423 rm -rf *
11424
11425
11426 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
11427 rm -f $prefix*
11428 for i in 1 2 3 4 5 6 7 8 9
11429 do touch $prefix$i
11430 done
11431 tar -cf archive ./$prefix* &&
11432  tar --delete -f archive ./${prefix}5 &&
11433  tar -tf archive
11434 ) ) >"$at_stdout" 2>"$at_stderr"
11435 fi
11436 at_status=$?
11437 at_failed=false
11438 at_func_diff_devnull "$at_stderr" || at_failed=:
11439 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
11440 ./This_is_a_very_long_file_name_prefix_that_is_designed_to_cause_problems_with_file_names_that_run_into_a_limit_of_the_posix_tar_formatXX2
11441 ./This_is_a_very_long_file_name_prefix_that_is_designed_to_cause_problems_with_file_names_that_run_into_a_limit_of_the_posix_tar_formatXX3
11442 ./This_is_a_very_long_file_name_prefix_that_is_designed_to_cause_problems_with_file_names_that_run_into_a_limit_of_the_posix_tar_formatXX4
11443 ./This_is_a_very_long_file_name_prefix_that_is_designed_to_cause_problems_with_file_names_that_run_into_a_limit_of_the_posix_tar_formatXX6
11444 ./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
11445 ./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
11446 ./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
11447 " | \
11448   $at_diff - "$at_stdout" || at_failed=:
11449 at_func_check_status 0 $at_status "$at_srcdir/delete03.at:26"
11450
11451 $at_failed && at_func_log_failure
11452 $at_traceon; }
11453
11454
11455
11456
11457   $at_traceoff
11458   $at_times_p && times >"$at_times_file"
11459 ) 5>&1 2>&1 | eval $at_tee_pipe
11460 at_status=`cat "$at_status_file"`
11461 #AT_STOP_24
11462 #AT_START_25
11463 # 25. delete04.at:23: deleting a large last member
11464 at_setup_line='delete04.at:23'
11465 at_desc="deleting a large last member"
11466 $at_quiet $as_echo_n " 25: $at_desc                   "
11467 at_xfail=no
11468       test -f $XFAILFILE && at_xfail=yes
11469 echo "#                             -*- compilation -*-" >> "$at_group_log"
11470 (
11471   $as_echo "25. delete04.at:23: testing ..."
11472   $at_traceon
11473
11474
11475
11476
11477
11478   { $at_traceoff
11479 $as_echo "$at_srcdir/delete04.at:26:
11480 mkdir v7
11481 (cd v7
11482 TEST_TAR_FORMAT=v7
11483 export TEST_TAR_FORMAT
11484 TAR_OPTIONS=\"-H v7\"
11485 export TAR_OPTIONS
11486 rm -rf *
11487
11488 genfile -l      3 -f file1
11489 genfile -l      5 -f file2
11490 genfile -l      3 -f file3
11491 genfile -l      6 -f file4
11492 genfile -l     24 -f file5
11493 genfile -l     13 -f file6
11494 genfile -l   1385 -f file7
11495 genfile -l     30 -f file8
11496 genfile -l     10 -f file9
11497 genfile -l 256000 -f file10
11498 tar cf archive file1 file2 file3 file4 file5 file6 file7 file8 file9 file10
11499 tar f archive --delete file10
11500 tar tf archive
11501 )"
11502 echo delete04.at:26 >"$at_check_line_file"
11503
11504 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
11505    false; }; then
11506   ( $at_traceon;
11507 mkdir v7
11508 (cd v7
11509 TEST_TAR_FORMAT=v7
11510 export TEST_TAR_FORMAT
11511 TAR_OPTIONS="-H v7"
11512 export TAR_OPTIONS
11513 rm -rf *
11514
11515 genfile -l      3 -f file1
11516 genfile -l      5 -f file2
11517 genfile -l      3 -f file3
11518 genfile -l      6 -f file4
11519 genfile -l     24 -f file5
11520 genfile -l     13 -f file6
11521 genfile -l   1385 -f file7
11522 genfile -l     30 -f file8
11523 genfile -l     10 -f file9
11524 genfile -l 256000 -f file10
11525 tar cf archive file1 file2 file3 file4 file5 file6 file7 file8 file9 file10
11526 tar f archive --delete file10
11527 tar tf archive
11528 ) ) >"$at_stdout" 2>"$at_stder1"
11529   at_func_filter_trace $?
11530 else
11531   ( :;
11532 mkdir v7
11533 (cd v7
11534 TEST_TAR_FORMAT=v7
11535 export TEST_TAR_FORMAT
11536 TAR_OPTIONS="-H v7"
11537 export TAR_OPTIONS
11538 rm -rf *
11539
11540 genfile -l      3 -f file1
11541 genfile -l      5 -f file2
11542 genfile -l      3 -f file3
11543 genfile -l      6 -f file4
11544 genfile -l     24 -f file5
11545 genfile -l     13 -f file6
11546 genfile -l   1385 -f file7
11547 genfile -l     30 -f file8
11548 genfile -l     10 -f file9
11549 genfile -l 256000 -f file10
11550 tar cf archive file1 file2 file3 file4 file5 file6 file7 file8 file9 file10
11551 tar f archive --delete file10
11552 tar tf archive
11553 ) ) >"$at_stdout" 2>"$at_stderr"
11554 fi
11555 at_status=$?
11556 at_failed=false
11557 at_func_diff_devnull "$at_stderr" || at_failed=:
11558 echo >>"$at_stdout"; $as_echo "file1
11559 file2
11560 file3
11561 file4
11562 file5
11563 file6
11564 file7
11565 file8
11566 file9
11567 " | \
11568   $at_diff - "$at_stdout" || at_failed=:
11569 at_func_check_status 0 $at_status "$at_srcdir/delete04.at:26"
11570
11571 $at_failed && at_func_log_failure
11572 $at_traceon; }
11573
11574               { $at_traceoff
11575 $as_echo "$at_srcdir/delete04.at:26:
11576 mkdir oldgnu
11577 (cd oldgnu
11578 TEST_TAR_FORMAT=oldgnu
11579 export TEST_TAR_FORMAT
11580 TAR_OPTIONS=\"-H oldgnu\"
11581 export TAR_OPTIONS
11582 rm -rf *
11583
11584 genfile -l      3 -f file1
11585 genfile -l      5 -f file2
11586 genfile -l      3 -f file3
11587 genfile -l      6 -f file4
11588 genfile -l     24 -f file5
11589 genfile -l     13 -f file6
11590 genfile -l   1385 -f file7
11591 genfile -l     30 -f file8
11592 genfile -l     10 -f file9
11593 genfile -l 256000 -f file10
11594 tar cf archive file1 file2 file3 file4 file5 file6 file7 file8 file9 file10
11595 tar f archive --delete file10
11596 tar tf archive
11597 )"
11598 echo delete04.at:26 >"$at_check_line_file"
11599
11600 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
11601    false; }; then
11602   ( $at_traceon;
11603 mkdir oldgnu
11604 (cd oldgnu
11605 TEST_TAR_FORMAT=oldgnu
11606 export TEST_TAR_FORMAT
11607 TAR_OPTIONS="-H oldgnu"
11608 export TAR_OPTIONS
11609 rm -rf *
11610
11611 genfile -l      3 -f file1
11612 genfile -l      5 -f file2
11613 genfile -l      3 -f file3
11614 genfile -l      6 -f file4
11615 genfile -l     24 -f file5
11616 genfile -l     13 -f file6
11617 genfile -l   1385 -f file7
11618 genfile -l     30 -f file8
11619 genfile -l     10 -f file9
11620 genfile -l 256000 -f file10
11621 tar cf archive file1 file2 file3 file4 file5 file6 file7 file8 file9 file10
11622 tar f archive --delete file10
11623 tar tf archive
11624 ) ) >"$at_stdout" 2>"$at_stder1"
11625   at_func_filter_trace $?
11626 else
11627   ( :;
11628 mkdir oldgnu
11629 (cd oldgnu
11630 TEST_TAR_FORMAT=oldgnu
11631 export TEST_TAR_FORMAT
11632 TAR_OPTIONS="-H oldgnu"
11633 export TAR_OPTIONS
11634 rm -rf *
11635
11636 genfile -l      3 -f file1
11637 genfile -l      5 -f file2
11638 genfile -l      3 -f file3
11639 genfile -l      6 -f file4
11640 genfile -l     24 -f file5
11641 genfile -l     13 -f file6
11642 genfile -l   1385 -f file7
11643 genfile -l     30 -f file8
11644 genfile -l     10 -f file9
11645 genfile -l 256000 -f file10
11646 tar cf archive file1 file2 file3 file4 file5 file6 file7 file8 file9 file10
11647 tar f archive --delete file10
11648 tar tf archive
11649 ) ) >"$at_stdout" 2>"$at_stderr"
11650 fi
11651 at_status=$?
11652 at_failed=false
11653 at_func_diff_devnull "$at_stderr" || at_failed=:
11654 echo >>"$at_stdout"; $as_echo "file1
11655 file2
11656 file3
11657 file4
11658 file5
11659 file6
11660 file7
11661 file8
11662 file9
11663 " | \
11664   $at_diff - "$at_stdout" || at_failed=:
11665 at_func_check_status 0 $at_status "$at_srcdir/delete04.at:26"
11666
11667 $at_failed && at_func_log_failure
11668 $at_traceon; }
11669
11670               { $at_traceoff
11671 $as_echo "$at_srcdir/delete04.at:26:
11672 mkdir ustar
11673 (cd ustar
11674 TEST_TAR_FORMAT=ustar
11675 export TEST_TAR_FORMAT
11676 TAR_OPTIONS=\"-H ustar\"
11677 export TAR_OPTIONS
11678 rm -rf *
11679
11680 genfile -l      3 -f file1
11681 genfile -l      5 -f file2
11682 genfile -l      3 -f file3
11683 genfile -l      6 -f file4
11684 genfile -l     24 -f file5
11685 genfile -l     13 -f file6
11686 genfile -l   1385 -f file7
11687 genfile -l     30 -f file8
11688 genfile -l     10 -f file9
11689 genfile -l 256000 -f file10
11690 tar cf archive file1 file2 file3 file4 file5 file6 file7 file8 file9 file10
11691 tar f archive --delete file10
11692 tar tf archive
11693 )"
11694 echo delete04.at:26 >"$at_check_line_file"
11695
11696 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
11697    false; }; then
11698   ( $at_traceon;
11699 mkdir ustar
11700 (cd ustar
11701 TEST_TAR_FORMAT=ustar
11702 export TEST_TAR_FORMAT
11703 TAR_OPTIONS="-H ustar"
11704 export TAR_OPTIONS
11705 rm -rf *
11706
11707 genfile -l      3 -f file1
11708 genfile -l      5 -f file2
11709 genfile -l      3 -f file3
11710 genfile -l      6 -f file4
11711 genfile -l     24 -f file5
11712 genfile -l     13 -f file6
11713 genfile -l   1385 -f file7
11714 genfile -l     30 -f file8
11715 genfile -l     10 -f file9
11716 genfile -l 256000 -f file10
11717 tar cf archive file1 file2 file3 file4 file5 file6 file7 file8 file9 file10
11718 tar f archive --delete file10
11719 tar tf archive
11720 ) ) >"$at_stdout" 2>"$at_stder1"
11721   at_func_filter_trace $?
11722 else
11723   ( :;
11724 mkdir ustar
11725 (cd ustar
11726 TEST_TAR_FORMAT=ustar
11727 export TEST_TAR_FORMAT
11728 TAR_OPTIONS="-H ustar"
11729 export TAR_OPTIONS
11730 rm -rf *
11731
11732 genfile -l      3 -f file1
11733 genfile -l      5 -f file2
11734 genfile -l      3 -f file3
11735 genfile -l      6 -f file4
11736 genfile -l     24 -f file5
11737 genfile -l     13 -f file6
11738 genfile -l   1385 -f file7
11739 genfile -l     30 -f file8
11740 genfile -l     10 -f file9
11741 genfile -l 256000 -f file10
11742 tar cf archive file1 file2 file3 file4 file5 file6 file7 file8 file9 file10
11743 tar f archive --delete file10
11744 tar tf archive
11745 ) ) >"$at_stdout" 2>"$at_stderr"
11746 fi
11747 at_status=$?
11748 at_failed=false
11749 at_func_diff_devnull "$at_stderr" || at_failed=:
11750 echo >>"$at_stdout"; $as_echo "file1
11751 file2
11752 file3
11753 file4
11754 file5
11755 file6
11756 file7
11757 file8
11758 file9
11759 " | \
11760   $at_diff - "$at_stdout" || at_failed=:
11761 at_func_check_status 0 $at_status "$at_srcdir/delete04.at:26"
11762
11763 $at_failed && at_func_log_failure
11764 $at_traceon; }
11765
11766               { $at_traceoff
11767 $as_echo "$at_srcdir/delete04.at:26:
11768 mkdir posix
11769 (cd posix
11770 TEST_TAR_FORMAT=posix
11771 export TEST_TAR_FORMAT
11772 TAR_OPTIONS=\"-H posix\"
11773 export TAR_OPTIONS
11774 rm -rf *
11775
11776 genfile -l      3 -f file1
11777 genfile -l      5 -f file2
11778 genfile -l      3 -f file3
11779 genfile -l      6 -f file4
11780 genfile -l     24 -f file5
11781 genfile -l     13 -f file6
11782 genfile -l   1385 -f file7
11783 genfile -l     30 -f file8
11784 genfile -l     10 -f file9
11785 genfile -l 256000 -f file10
11786 tar cf archive file1 file2 file3 file4 file5 file6 file7 file8 file9 file10
11787 tar f archive --delete file10
11788 tar tf archive
11789 )"
11790 echo delete04.at:26 >"$at_check_line_file"
11791
11792 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
11793    false; }; then
11794   ( $at_traceon;
11795 mkdir posix
11796 (cd posix
11797 TEST_TAR_FORMAT=posix
11798 export TEST_TAR_FORMAT
11799 TAR_OPTIONS="-H posix"
11800 export TAR_OPTIONS
11801 rm -rf *
11802
11803 genfile -l      3 -f file1
11804 genfile -l      5 -f file2
11805 genfile -l      3 -f file3
11806 genfile -l      6 -f file4
11807 genfile -l     24 -f file5
11808 genfile -l     13 -f file6
11809 genfile -l   1385 -f file7
11810 genfile -l     30 -f file8
11811 genfile -l     10 -f file9
11812 genfile -l 256000 -f file10
11813 tar cf archive file1 file2 file3 file4 file5 file6 file7 file8 file9 file10
11814 tar f archive --delete file10
11815 tar tf archive
11816 ) ) >"$at_stdout" 2>"$at_stder1"
11817   at_func_filter_trace $?
11818 else
11819   ( :;
11820 mkdir posix
11821 (cd posix
11822 TEST_TAR_FORMAT=posix
11823 export TEST_TAR_FORMAT
11824 TAR_OPTIONS="-H posix"
11825 export TAR_OPTIONS
11826 rm -rf *
11827
11828 genfile -l      3 -f file1
11829 genfile -l      5 -f file2
11830 genfile -l      3 -f file3
11831 genfile -l      6 -f file4
11832 genfile -l     24 -f file5
11833 genfile -l     13 -f file6
11834 genfile -l   1385 -f file7
11835 genfile -l     30 -f file8
11836 genfile -l     10 -f file9
11837 genfile -l 256000 -f file10
11838 tar cf archive file1 file2 file3 file4 file5 file6 file7 file8 file9 file10
11839 tar f archive --delete file10
11840 tar tf archive
11841 ) ) >"$at_stdout" 2>"$at_stderr"
11842 fi
11843 at_status=$?
11844 at_failed=false
11845 at_func_diff_devnull "$at_stderr" || at_failed=:
11846 echo >>"$at_stdout"; $as_echo "file1
11847 file2
11848 file3
11849 file4
11850 file5
11851 file6
11852 file7
11853 file8
11854 file9
11855 " | \
11856   $at_diff - "$at_stdout" || at_failed=:
11857 at_func_check_status 0 $at_status "$at_srcdir/delete04.at:26"
11858
11859 $at_failed && at_func_log_failure
11860 $at_traceon; }
11861
11862               { $at_traceoff
11863 $as_echo "$at_srcdir/delete04.at:26:
11864 mkdir gnu
11865 (cd gnu
11866 TEST_TAR_FORMAT=gnu
11867 export TEST_TAR_FORMAT
11868 TAR_OPTIONS=\"-H gnu\"
11869 export TAR_OPTIONS
11870 rm -rf *
11871
11872 genfile -l      3 -f file1
11873 genfile -l      5 -f file2
11874 genfile -l      3 -f file3
11875 genfile -l      6 -f file4
11876 genfile -l     24 -f file5
11877 genfile -l     13 -f file6
11878 genfile -l   1385 -f file7
11879 genfile -l     30 -f file8
11880 genfile -l     10 -f file9
11881 genfile -l 256000 -f file10
11882 tar cf archive file1 file2 file3 file4 file5 file6 file7 file8 file9 file10
11883 tar f archive --delete file10
11884 tar tf archive
11885 )"
11886 echo delete04.at:26 >"$at_check_line_file"
11887
11888 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
11889    false; }; then
11890   ( $at_traceon;
11891 mkdir gnu
11892 (cd gnu
11893 TEST_TAR_FORMAT=gnu
11894 export TEST_TAR_FORMAT
11895 TAR_OPTIONS="-H gnu"
11896 export TAR_OPTIONS
11897 rm -rf *
11898
11899 genfile -l      3 -f file1
11900 genfile -l      5 -f file2
11901 genfile -l      3 -f file3
11902 genfile -l      6 -f file4
11903 genfile -l     24 -f file5
11904 genfile -l     13 -f file6
11905 genfile -l   1385 -f file7
11906 genfile -l     30 -f file8
11907 genfile -l     10 -f file9
11908 genfile -l 256000 -f file10
11909 tar cf archive file1 file2 file3 file4 file5 file6 file7 file8 file9 file10
11910 tar f archive --delete file10
11911 tar tf archive
11912 ) ) >"$at_stdout" 2>"$at_stder1"
11913   at_func_filter_trace $?
11914 else
11915   ( :;
11916 mkdir gnu
11917 (cd gnu
11918 TEST_TAR_FORMAT=gnu
11919 export TEST_TAR_FORMAT
11920 TAR_OPTIONS="-H gnu"
11921 export TAR_OPTIONS
11922 rm -rf *
11923
11924 genfile -l      3 -f file1
11925 genfile -l      5 -f file2
11926 genfile -l      3 -f file3
11927 genfile -l      6 -f file4
11928 genfile -l     24 -f file5
11929 genfile -l     13 -f file6
11930 genfile -l   1385 -f file7
11931 genfile -l     30 -f file8
11932 genfile -l     10 -f file9
11933 genfile -l 256000 -f file10
11934 tar cf archive file1 file2 file3 file4 file5 file6 file7 file8 file9 file10
11935 tar f archive --delete file10
11936 tar tf archive
11937 ) ) >"$at_stdout" 2>"$at_stderr"
11938 fi
11939 at_status=$?
11940 at_failed=false
11941 at_func_diff_devnull "$at_stderr" || at_failed=:
11942 echo >>"$at_stdout"; $as_echo "file1
11943 file2
11944 file3
11945 file4
11946 file5
11947 file6
11948 file7
11949 file8
11950 file9
11951 " | \
11952   $at_diff - "$at_stdout" || at_failed=:
11953 at_func_check_status 0 $at_status "$at_srcdir/delete04.at:26"
11954
11955 $at_failed && at_func_log_failure
11956 $at_traceon; }
11957
11958
11959
11960
11961   $at_traceoff
11962   $at_times_p && times >"$at_times_file"
11963 ) 5>&1 2>&1 | eval $at_tee_pipe
11964 at_status=`cat "$at_status_file"`
11965 #AT_STOP_25
11966 #AT_START_26
11967 # 26. delete05.at:27: deleting non-existing member
11968 at_setup_line='delete05.at:27'
11969 at_desc="deleting non-existing member"
11970 $at_quiet $as_echo_n " 26: $at_desc                   "
11971 at_xfail=no
11972       test -f $XFAILFILE && at_xfail=yes
11973 echo "#                             -*- compilation -*-" >> "$at_group_log"
11974 (
11975   $as_echo "26. delete05.at:27: testing ..."
11976   $at_traceon
11977
11978
11979
11980
11981
11982   { $at_traceoff
11983 $as_echo "$at_srcdir/delete05.at:30:
11984 mkdir v7
11985 (cd v7
11986 TEST_TAR_FORMAT=v7
11987 export TEST_TAR_FORMAT
11988 TAR_OPTIONS=\"-H v7\"
11989 export TAR_OPTIONS
11990 rm -rf *
11991
11992 genfile -l 1024 -f en
11993 genfile -l 1024 -f to
11994
11995 tar cf archive en to
11996 # Make sure we don't use bogus blocking factor.
11997 # GNU tar up to and including 1.14.91 produced an empty archive this way:
11998 tar --file archive --blocking-factor=20 --delete tre
11999 tar tf archive
12000 )"
12001 echo delete05.at:30 >"$at_check_line_file"
12002
12003 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
12004    false; }; then
12005   ( $at_traceon;
12006 mkdir v7
12007 (cd v7
12008 TEST_TAR_FORMAT=v7
12009 export TEST_TAR_FORMAT
12010 TAR_OPTIONS="-H v7"
12011 export TAR_OPTIONS
12012 rm -rf *
12013
12014 genfile -l 1024 -f en
12015 genfile -l 1024 -f to
12016
12017 tar cf archive en to
12018 # Make sure we don't use bogus blocking factor.
12019 # GNU tar up to and including 1.14.91 produced an empty archive this way:
12020 tar --file archive --blocking-factor=20 --delete tre
12021 tar tf archive
12022 ) ) >"$at_stdout" 2>"$at_stder1"
12023   at_func_filter_trace $?
12024 else
12025   ( :;
12026 mkdir v7
12027 (cd v7
12028 TEST_TAR_FORMAT=v7
12029 export TEST_TAR_FORMAT
12030 TAR_OPTIONS="-H v7"
12031 export TAR_OPTIONS
12032 rm -rf *
12033
12034 genfile -l 1024 -f en
12035 genfile -l 1024 -f to
12036
12037 tar cf archive en to
12038 # Make sure we don't use bogus blocking factor.
12039 # GNU tar up to and including 1.14.91 produced an empty archive this way:
12040 tar --file archive --blocking-factor=20 --delete tre
12041 tar tf archive
12042 ) ) >"$at_stdout" 2>"$at_stderr"
12043 fi
12044 at_status=$?
12045 at_failed=false
12046 echo >>"$at_stderr"; $as_echo "tar: tre: Not found in archive
12047 tar: Exiting with failure status due to previous errors
12048 " | \
12049   $at_diff - "$at_stderr" || at_failed=:
12050 echo >>"$at_stdout"; $as_echo "en
12051 to
12052 " | \
12053   $at_diff - "$at_stdout" || at_failed=:
12054 at_func_check_status 0 $at_status "$at_srcdir/delete05.at:30"
12055
12056 $at_failed && at_func_log_failure
12057 $at_traceon; }
12058
12059               { $at_traceoff
12060 $as_echo "$at_srcdir/delete05.at:30:
12061 mkdir oldgnu
12062 (cd oldgnu
12063 TEST_TAR_FORMAT=oldgnu
12064 export TEST_TAR_FORMAT
12065 TAR_OPTIONS=\"-H oldgnu\"
12066 export TAR_OPTIONS
12067 rm -rf *
12068
12069 genfile -l 1024 -f en
12070 genfile -l 1024 -f to
12071
12072 tar cf archive en to
12073 # Make sure we don't use bogus blocking factor.
12074 # GNU tar up to and including 1.14.91 produced an empty archive this way:
12075 tar --file archive --blocking-factor=20 --delete tre
12076 tar tf archive
12077 )"
12078 echo delete05.at:30 >"$at_check_line_file"
12079
12080 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
12081    false; }; then
12082   ( $at_traceon;
12083 mkdir oldgnu
12084 (cd oldgnu
12085 TEST_TAR_FORMAT=oldgnu
12086 export TEST_TAR_FORMAT
12087 TAR_OPTIONS="-H oldgnu"
12088 export TAR_OPTIONS
12089 rm -rf *
12090
12091 genfile -l 1024 -f en
12092 genfile -l 1024 -f to
12093
12094 tar cf archive en to
12095 # Make sure we don't use bogus blocking factor.
12096 # GNU tar up to and including 1.14.91 produced an empty archive this way:
12097 tar --file archive --blocking-factor=20 --delete tre
12098 tar tf archive
12099 ) ) >"$at_stdout" 2>"$at_stder1"
12100   at_func_filter_trace $?
12101 else
12102   ( :;
12103 mkdir oldgnu
12104 (cd oldgnu
12105 TEST_TAR_FORMAT=oldgnu
12106 export TEST_TAR_FORMAT
12107 TAR_OPTIONS="-H oldgnu"
12108 export TAR_OPTIONS
12109 rm -rf *
12110
12111 genfile -l 1024 -f en
12112 genfile -l 1024 -f to
12113
12114 tar cf archive en to
12115 # Make sure we don't use bogus blocking factor.
12116 # GNU tar up to and including 1.14.91 produced an empty archive this way:
12117 tar --file archive --blocking-factor=20 --delete tre
12118 tar tf archive
12119 ) ) >"$at_stdout" 2>"$at_stderr"
12120 fi
12121 at_status=$?
12122 at_failed=false
12123 echo >>"$at_stderr"; $as_echo "tar: tre: Not found in archive
12124 tar: Exiting with failure status due to previous errors
12125 " | \
12126   $at_diff - "$at_stderr" || at_failed=:
12127 echo >>"$at_stdout"; $as_echo "en
12128 to
12129 " | \
12130   $at_diff - "$at_stdout" || at_failed=:
12131 at_func_check_status 0 $at_status "$at_srcdir/delete05.at:30"
12132
12133 $at_failed && at_func_log_failure
12134 $at_traceon; }
12135
12136               { $at_traceoff
12137 $as_echo "$at_srcdir/delete05.at:30:
12138 mkdir ustar
12139 (cd ustar
12140 TEST_TAR_FORMAT=ustar
12141 export TEST_TAR_FORMAT
12142 TAR_OPTIONS=\"-H ustar\"
12143 export TAR_OPTIONS
12144 rm -rf *
12145
12146 genfile -l 1024 -f en
12147 genfile -l 1024 -f to
12148
12149 tar cf archive en to
12150 # Make sure we don't use bogus blocking factor.
12151 # GNU tar up to and including 1.14.91 produced an empty archive this way:
12152 tar --file archive --blocking-factor=20 --delete tre
12153 tar tf archive
12154 )"
12155 echo delete05.at:30 >"$at_check_line_file"
12156
12157 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
12158    false; }; then
12159   ( $at_traceon;
12160 mkdir ustar
12161 (cd ustar
12162 TEST_TAR_FORMAT=ustar
12163 export TEST_TAR_FORMAT
12164 TAR_OPTIONS="-H ustar"
12165 export TAR_OPTIONS
12166 rm -rf *
12167
12168 genfile -l 1024 -f en
12169 genfile -l 1024 -f to
12170
12171 tar cf archive en to
12172 # Make sure we don't use bogus blocking factor.
12173 # GNU tar up to and including 1.14.91 produced an empty archive this way:
12174 tar --file archive --blocking-factor=20 --delete tre
12175 tar tf archive
12176 ) ) >"$at_stdout" 2>"$at_stder1"
12177   at_func_filter_trace $?
12178 else
12179   ( :;
12180 mkdir ustar
12181 (cd ustar
12182 TEST_TAR_FORMAT=ustar
12183 export TEST_TAR_FORMAT
12184 TAR_OPTIONS="-H ustar"
12185 export TAR_OPTIONS
12186 rm -rf *
12187
12188 genfile -l 1024 -f en
12189 genfile -l 1024 -f to
12190
12191 tar cf archive en to
12192 # Make sure we don't use bogus blocking factor.
12193 # GNU tar up to and including 1.14.91 produced an empty archive this way:
12194 tar --file archive --blocking-factor=20 --delete tre
12195 tar tf archive
12196 ) ) >"$at_stdout" 2>"$at_stderr"
12197 fi
12198 at_status=$?
12199 at_failed=false
12200 echo >>"$at_stderr"; $as_echo "tar: tre: Not found in archive
12201 tar: Exiting with failure status due to previous errors
12202 " | \
12203   $at_diff - "$at_stderr" || at_failed=:
12204 echo >>"$at_stdout"; $as_echo "en
12205 to
12206 " | \
12207   $at_diff - "$at_stdout" || at_failed=:
12208 at_func_check_status 0 $at_status "$at_srcdir/delete05.at:30"
12209
12210 $at_failed && at_func_log_failure
12211 $at_traceon; }
12212
12213               { $at_traceoff
12214 $as_echo "$at_srcdir/delete05.at:30:
12215 mkdir posix
12216 (cd posix
12217 TEST_TAR_FORMAT=posix
12218 export TEST_TAR_FORMAT
12219 TAR_OPTIONS=\"-H posix\"
12220 export TAR_OPTIONS
12221 rm -rf *
12222
12223 genfile -l 1024 -f en
12224 genfile -l 1024 -f to
12225
12226 tar cf archive en to
12227 # Make sure we don't use bogus blocking factor.
12228 # GNU tar up to and including 1.14.91 produced an empty archive this way:
12229 tar --file archive --blocking-factor=20 --delete tre
12230 tar tf archive
12231 )"
12232 echo delete05.at:30 >"$at_check_line_file"
12233
12234 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
12235    false; }; then
12236   ( $at_traceon;
12237 mkdir posix
12238 (cd posix
12239 TEST_TAR_FORMAT=posix
12240 export TEST_TAR_FORMAT
12241 TAR_OPTIONS="-H posix"
12242 export TAR_OPTIONS
12243 rm -rf *
12244
12245 genfile -l 1024 -f en
12246 genfile -l 1024 -f to
12247
12248 tar cf archive en to
12249 # Make sure we don't use bogus blocking factor.
12250 # GNU tar up to and including 1.14.91 produced an empty archive this way:
12251 tar --file archive --blocking-factor=20 --delete tre
12252 tar tf archive
12253 ) ) >"$at_stdout" 2>"$at_stder1"
12254   at_func_filter_trace $?
12255 else
12256   ( :;
12257 mkdir posix
12258 (cd posix
12259 TEST_TAR_FORMAT=posix
12260 export TEST_TAR_FORMAT
12261 TAR_OPTIONS="-H posix"
12262 export TAR_OPTIONS
12263 rm -rf *
12264
12265 genfile -l 1024 -f en
12266 genfile -l 1024 -f to
12267
12268 tar cf archive en to
12269 # Make sure we don't use bogus blocking factor.
12270 # GNU tar up to and including 1.14.91 produced an empty archive this way:
12271 tar --file archive --blocking-factor=20 --delete tre
12272 tar tf archive
12273 ) ) >"$at_stdout" 2>"$at_stderr"
12274 fi
12275 at_status=$?
12276 at_failed=false
12277 echo >>"$at_stderr"; $as_echo "tar: tre: Not found in archive
12278 tar: Exiting with failure status due to previous errors
12279 " | \
12280   $at_diff - "$at_stderr" || at_failed=:
12281 echo >>"$at_stdout"; $as_echo "en
12282 to
12283 " | \
12284   $at_diff - "$at_stdout" || at_failed=:
12285 at_func_check_status 0 $at_status "$at_srcdir/delete05.at:30"
12286
12287 $at_failed && at_func_log_failure
12288 $at_traceon; }
12289
12290               { $at_traceoff
12291 $as_echo "$at_srcdir/delete05.at:30:
12292 mkdir gnu
12293 (cd gnu
12294 TEST_TAR_FORMAT=gnu
12295 export TEST_TAR_FORMAT
12296 TAR_OPTIONS=\"-H gnu\"
12297 export TAR_OPTIONS
12298 rm -rf *
12299
12300 genfile -l 1024 -f en
12301 genfile -l 1024 -f to
12302
12303 tar cf archive en to
12304 # Make sure we don't use bogus blocking factor.
12305 # GNU tar up to and including 1.14.91 produced an empty archive this way:
12306 tar --file archive --blocking-factor=20 --delete tre
12307 tar tf archive
12308 )"
12309 echo delete05.at:30 >"$at_check_line_file"
12310
12311 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
12312    false; }; then
12313   ( $at_traceon;
12314 mkdir gnu
12315 (cd gnu
12316 TEST_TAR_FORMAT=gnu
12317 export TEST_TAR_FORMAT
12318 TAR_OPTIONS="-H gnu"
12319 export TAR_OPTIONS
12320 rm -rf *
12321
12322 genfile -l 1024 -f en
12323 genfile -l 1024 -f to
12324
12325 tar cf archive en to
12326 # Make sure we don't use bogus blocking factor.
12327 # GNU tar up to and including 1.14.91 produced an empty archive this way:
12328 tar --file archive --blocking-factor=20 --delete tre
12329 tar tf archive
12330 ) ) >"$at_stdout" 2>"$at_stder1"
12331   at_func_filter_trace $?
12332 else
12333   ( :;
12334 mkdir gnu
12335 (cd gnu
12336 TEST_TAR_FORMAT=gnu
12337 export TEST_TAR_FORMAT
12338 TAR_OPTIONS="-H gnu"
12339 export TAR_OPTIONS
12340 rm -rf *
12341
12342 genfile -l 1024 -f en
12343 genfile -l 1024 -f to
12344
12345 tar cf archive en to
12346 # Make sure we don't use bogus blocking factor.
12347 # GNU tar up to and including 1.14.91 produced an empty archive this way:
12348 tar --file archive --blocking-factor=20 --delete tre
12349 tar tf archive
12350 ) ) >"$at_stdout" 2>"$at_stderr"
12351 fi
12352 at_status=$?
12353 at_failed=false
12354 echo >>"$at_stderr"; $as_echo "tar: tre: Not found in archive
12355 tar: Exiting with failure status due to previous errors
12356 " | \
12357   $at_diff - "$at_stderr" || at_failed=:
12358 echo >>"$at_stdout"; $as_echo "en
12359 to
12360 " | \
12361   $at_diff - "$at_stdout" || at_failed=:
12362 at_func_check_status 0 $at_status "$at_srcdir/delete05.at:30"
12363
12364 $at_failed && at_func_log_failure
12365 $at_traceon; }
12366
12367
12368
12369
12370   $at_traceoff
12371   $at_times_p && times >"$at_times_file"
12372 ) 5>&1 2>&1 | eval $at_tee_pipe
12373 at_status=`cat "$at_status_file"`
12374 #AT_STOP_26
12375 #AT_START_27
12376 # 27. extrac01.at:23: extract over an existing directory
12377 at_setup_line='extrac01.at:23'
12378 at_desc="extract over an existing directory"
12379 $at_quiet $as_echo_n " 27: $at_desc             "
12380 at_xfail=no
12381       test -f $XFAILFILE && at_xfail=yes
12382 echo "#                             -*- compilation -*-" >> "$at_group_log"
12383 (
12384   $as_echo "27. extrac01.at:23: testing ..."
12385   $at_traceon
12386
12387
12388
12389
12390
12391   { $at_traceoff
12392 $as_echo "$at_srcdir/extrac01.at:26:
12393 mkdir v7
12394 (cd v7
12395 TEST_TAR_FORMAT=v7
12396 export TEST_TAR_FORMAT
12397 TAR_OPTIONS=\"-H v7\"
12398 export TAR_OPTIONS
12399 rm -rf *
12400
12401 mkdir directory
12402 touch directory/file
12403 tar cf archive directory || exit 1
12404 tar xf archive --warning=no-timestamp || exit 1
12405 )"
12406 echo extrac01.at:26 >"$at_check_line_file"
12407
12408 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
12409    false; }; then
12410   ( $at_traceon;
12411 mkdir v7
12412 (cd v7
12413 TEST_TAR_FORMAT=v7
12414 export TEST_TAR_FORMAT
12415 TAR_OPTIONS="-H v7"
12416 export TAR_OPTIONS
12417 rm -rf *
12418
12419 mkdir directory
12420 touch directory/file
12421 tar cf archive directory || exit 1
12422 tar xf archive --warning=no-timestamp || exit 1
12423 ) ) >"$at_stdout" 2>"$at_stder1"
12424   at_func_filter_trace $?
12425 else
12426   ( :;
12427 mkdir v7
12428 (cd v7
12429 TEST_TAR_FORMAT=v7
12430 export TEST_TAR_FORMAT
12431 TAR_OPTIONS="-H v7"
12432 export TAR_OPTIONS
12433 rm -rf *
12434
12435 mkdir directory
12436 touch directory/file
12437 tar cf archive directory || exit 1
12438 tar xf archive --warning=no-timestamp || exit 1
12439 ) ) >"$at_stdout" 2>"$at_stderr"
12440 fi
12441 at_status=$?
12442 at_failed=false
12443 at_func_diff_devnull "$at_stderr" || at_failed=:
12444 at_func_diff_devnull "$at_stdout" || at_failed=:
12445 at_func_check_status 0 $at_status "$at_srcdir/extrac01.at:26"
12446
12447 $at_failed && at_func_log_failure
12448 $at_traceon; }
12449
12450               { $at_traceoff
12451 $as_echo "$at_srcdir/extrac01.at:26:
12452 mkdir oldgnu
12453 (cd oldgnu
12454 TEST_TAR_FORMAT=oldgnu
12455 export TEST_TAR_FORMAT
12456 TAR_OPTIONS=\"-H oldgnu\"
12457 export TAR_OPTIONS
12458 rm -rf *
12459
12460 mkdir directory
12461 touch directory/file
12462 tar cf archive directory || exit 1
12463 tar xf archive --warning=no-timestamp || exit 1
12464 )"
12465 echo extrac01.at:26 >"$at_check_line_file"
12466
12467 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
12468    false; }; then
12469   ( $at_traceon;
12470 mkdir oldgnu
12471 (cd oldgnu
12472 TEST_TAR_FORMAT=oldgnu
12473 export TEST_TAR_FORMAT
12474 TAR_OPTIONS="-H oldgnu"
12475 export TAR_OPTIONS
12476 rm -rf *
12477
12478 mkdir directory
12479 touch directory/file
12480 tar cf archive directory || exit 1
12481 tar xf archive --warning=no-timestamp || exit 1
12482 ) ) >"$at_stdout" 2>"$at_stder1"
12483   at_func_filter_trace $?
12484 else
12485   ( :;
12486 mkdir oldgnu
12487 (cd oldgnu
12488 TEST_TAR_FORMAT=oldgnu
12489 export TEST_TAR_FORMAT
12490 TAR_OPTIONS="-H oldgnu"
12491 export TAR_OPTIONS
12492 rm -rf *
12493
12494 mkdir directory
12495 touch directory/file
12496 tar cf archive directory || exit 1
12497 tar xf archive --warning=no-timestamp || exit 1
12498 ) ) >"$at_stdout" 2>"$at_stderr"
12499 fi
12500 at_status=$?
12501 at_failed=false
12502 at_func_diff_devnull "$at_stderr" || at_failed=:
12503 at_func_diff_devnull "$at_stdout" || at_failed=:
12504 at_func_check_status 0 $at_status "$at_srcdir/extrac01.at:26"
12505
12506 $at_failed && at_func_log_failure
12507 $at_traceon; }
12508
12509               { $at_traceoff
12510 $as_echo "$at_srcdir/extrac01.at:26:
12511 mkdir ustar
12512 (cd ustar
12513 TEST_TAR_FORMAT=ustar
12514 export TEST_TAR_FORMAT
12515 TAR_OPTIONS=\"-H ustar\"
12516 export TAR_OPTIONS
12517 rm -rf *
12518
12519 mkdir directory
12520 touch directory/file
12521 tar cf archive directory || exit 1
12522 tar xf archive --warning=no-timestamp || exit 1
12523 )"
12524 echo extrac01.at:26 >"$at_check_line_file"
12525
12526 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
12527    false; }; then
12528   ( $at_traceon;
12529 mkdir ustar
12530 (cd ustar
12531 TEST_TAR_FORMAT=ustar
12532 export TEST_TAR_FORMAT
12533 TAR_OPTIONS="-H ustar"
12534 export TAR_OPTIONS
12535 rm -rf *
12536
12537 mkdir directory
12538 touch directory/file
12539 tar cf archive directory || exit 1
12540 tar xf archive --warning=no-timestamp || exit 1
12541 ) ) >"$at_stdout" 2>"$at_stder1"
12542   at_func_filter_trace $?
12543 else
12544   ( :;
12545 mkdir ustar
12546 (cd ustar
12547 TEST_TAR_FORMAT=ustar
12548 export TEST_TAR_FORMAT
12549 TAR_OPTIONS="-H ustar"
12550 export TAR_OPTIONS
12551 rm -rf *
12552
12553 mkdir directory
12554 touch directory/file
12555 tar cf archive directory || exit 1
12556 tar xf archive --warning=no-timestamp || exit 1
12557 ) ) >"$at_stdout" 2>"$at_stderr"
12558 fi
12559 at_status=$?
12560 at_failed=false
12561 at_func_diff_devnull "$at_stderr" || at_failed=:
12562 at_func_diff_devnull "$at_stdout" || at_failed=:
12563 at_func_check_status 0 $at_status "$at_srcdir/extrac01.at:26"
12564
12565 $at_failed && at_func_log_failure
12566 $at_traceon; }
12567
12568               { $at_traceoff
12569 $as_echo "$at_srcdir/extrac01.at:26:
12570 mkdir posix
12571 (cd posix
12572 TEST_TAR_FORMAT=posix
12573 export TEST_TAR_FORMAT
12574 TAR_OPTIONS=\"-H posix\"
12575 export TAR_OPTIONS
12576 rm -rf *
12577
12578 mkdir directory
12579 touch directory/file
12580 tar cf archive directory || exit 1
12581 tar xf archive --warning=no-timestamp || exit 1
12582 )"
12583 echo extrac01.at:26 >"$at_check_line_file"
12584
12585 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
12586    false; }; then
12587   ( $at_traceon;
12588 mkdir posix
12589 (cd posix
12590 TEST_TAR_FORMAT=posix
12591 export TEST_TAR_FORMAT
12592 TAR_OPTIONS="-H posix"
12593 export TAR_OPTIONS
12594 rm -rf *
12595
12596 mkdir directory
12597 touch directory/file
12598 tar cf archive directory || exit 1
12599 tar xf archive --warning=no-timestamp || exit 1
12600 ) ) >"$at_stdout" 2>"$at_stder1"
12601   at_func_filter_trace $?
12602 else
12603   ( :;
12604 mkdir posix
12605 (cd posix
12606 TEST_TAR_FORMAT=posix
12607 export TEST_TAR_FORMAT
12608 TAR_OPTIONS="-H posix"
12609 export TAR_OPTIONS
12610 rm -rf *
12611
12612 mkdir directory
12613 touch directory/file
12614 tar cf archive directory || exit 1
12615 tar xf archive --warning=no-timestamp || exit 1
12616 ) ) >"$at_stdout" 2>"$at_stderr"
12617 fi
12618 at_status=$?
12619 at_failed=false
12620 at_func_diff_devnull "$at_stderr" || at_failed=:
12621 at_func_diff_devnull "$at_stdout" || at_failed=:
12622 at_func_check_status 0 $at_status "$at_srcdir/extrac01.at:26"
12623
12624 $at_failed && at_func_log_failure
12625 $at_traceon; }
12626
12627               { $at_traceoff
12628 $as_echo "$at_srcdir/extrac01.at:26:
12629 mkdir gnu
12630 (cd gnu
12631 TEST_TAR_FORMAT=gnu
12632 export TEST_TAR_FORMAT
12633 TAR_OPTIONS=\"-H gnu\"
12634 export TAR_OPTIONS
12635 rm -rf *
12636
12637 mkdir directory
12638 touch directory/file
12639 tar cf archive directory || exit 1
12640 tar xf archive --warning=no-timestamp || exit 1
12641 )"
12642 echo extrac01.at:26 >"$at_check_line_file"
12643
12644 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
12645    false; }; then
12646   ( $at_traceon;
12647 mkdir gnu
12648 (cd gnu
12649 TEST_TAR_FORMAT=gnu
12650 export TEST_TAR_FORMAT
12651 TAR_OPTIONS="-H gnu"
12652 export TAR_OPTIONS
12653 rm -rf *
12654
12655 mkdir directory
12656 touch directory/file
12657 tar cf archive directory || exit 1
12658 tar xf archive --warning=no-timestamp || exit 1
12659 ) ) >"$at_stdout" 2>"$at_stder1"
12660   at_func_filter_trace $?
12661 else
12662   ( :;
12663 mkdir gnu
12664 (cd gnu
12665 TEST_TAR_FORMAT=gnu
12666 export TEST_TAR_FORMAT
12667 TAR_OPTIONS="-H gnu"
12668 export TAR_OPTIONS
12669 rm -rf *
12670
12671 mkdir directory
12672 touch directory/file
12673 tar cf archive directory || exit 1
12674 tar xf archive --warning=no-timestamp || exit 1
12675 ) ) >"$at_stdout" 2>"$at_stderr"
12676 fi
12677 at_status=$?
12678 at_failed=false
12679 at_func_diff_devnull "$at_stderr" || at_failed=:
12680 at_func_diff_devnull "$at_stdout" || at_failed=:
12681 at_func_check_status 0 $at_status "$at_srcdir/extrac01.at:26"
12682
12683 $at_failed && at_func_log_failure
12684 $at_traceon; }
12685
12686
12687
12688
12689   $at_traceoff
12690   $at_times_p && times >"$at_times_file"
12691 ) 5>&1 2>&1 | eval $at_tee_pipe
12692 at_status=`cat "$at_status_file"`
12693 #AT_STOP_27
12694 #AT_START_28
12695 # 28. extrac02.at:23: extracting symlinks over an existing file
12696 at_setup_line='extrac02.at:23'
12697 at_desc="extracting symlinks over an existing file"
12698 $at_quiet $as_echo_n " 28: $at_desc      "
12699 at_xfail=no
12700       test -f $XFAILFILE && at_xfail=yes
12701 echo "#                             -*- compilation -*-" >> "$at_group_log"
12702 (
12703   $as_echo "28. extrac02.at:23: testing ..."
12704   $at_traceon
12705
12706
12707
12708 # FIXME: Skip if symlinks are not supported on the system
12709
12710
12711
12712   { $at_traceoff
12713 $as_echo "$at_srcdir/extrac02.at:28:
12714 mkdir v7
12715 (cd v7
12716 TEST_TAR_FORMAT=v7
12717 export TEST_TAR_FORMAT
12718 TAR_OPTIONS=\"-H v7\"
12719 export TAR_OPTIONS
12720 rm -rf *
12721
12722 touch file
12723 ln -s file link 2> /dev/null || ln file link
12724 tar cf archive link
12725 rm link
12726 touch link
12727 tar xf archive
12728 )"
12729 echo extrac02.at:28 >"$at_check_line_file"
12730
12731 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
12732    false; }; then
12733   ( $at_traceon;
12734 mkdir v7
12735 (cd v7
12736 TEST_TAR_FORMAT=v7
12737 export TEST_TAR_FORMAT
12738 TAR_OPTIONS="-H v7"
12739 export TAR_OPTIONS
12740 rm -rf *
12741
12742 touch file
12743 ln -s file link 2> /dev/null || ln file link
12744 tar cf archive link
12745 rm link
12746 touch link
12747 tar xf archive
12748 ) ) >"$at_stdout" 2>"$at_stder1"
12749   at_func_filter_trace $?
12750 else
12751   ( :;
12752 mkdir v7
12753 (cd v7
12754 TEST_TAR_FORMAT=v7
12755 export TEST_TAR_FORMAT
12756 TAR_OPTIONS="-H v7"
12757 export TAR_OPTIONS
12758 rm -rf *
12759
12760 touch file
12761 ln -s file link 2> /dev/null || ln file link
12762 tar cf archive link
12763 rm link
12764 touch link
12765 tar xf archive
12766 ) ) >"$at_stdout" 2>"$at_stderr"
12767 fi
12768 at_status=$?
12769 at_failed=false
12770 at_func_diff_devnull "$at_stderr" || at_failed=:
12771 at_func_diff_devnull "$at_stdout" || at_failed=:
12772 at_func_check_status 0 $at_status "$at_srcdir/extrac02.at:28"
12773
12774 $at_failed && at_func_log_failure
12775 $at_traceon; }
12776
12777               { $at_traceoff
12778 $as_echo "$at_srcdir/extrac02.at:28:
12779 mkdir oldgnu
12780 (cd oldgnu
12781 TEST_TAR_FORMAT=oldgnu
12782 export TEST_TAR_FORMAT
12783 TAR_OPTIONS=\"-H oldgnu\"
12784 export TAR_OPTIONS
12785 rm -rf *
12786
12787 touch file
12788 ln -s file link 2> /dev/null || ln file link
12789 tar cf archive link
12790 rm link
12791 touch link
12792 tar xf archive
12793 )"
12794 echo extrac02.at:28 >"$at_check_line_file"
12795
12796 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
12797    false; }; then
12798   ( $at_traceon;
12799 mkdir oldgnu
12800 (cd oldgnu
12801 TEST_TAR_FORMAT=oldgnu
12802 export TEST_TAR_FORMAT
12803 TAR_OPTIONS="-H oldgnu"
12804 export TAR_OPTIONS
12805 rm -rf *
12806
12807 touch file
12808 ln -s file link 2> /dev/null || ln file link
12809 tar cf archive link
12810 rm link
12811 touch link
12812 tar xf archive
12813 ) ) >"$at_stdout" 2>"$at_stder1"
12814   at_func_filter_trace $?
12815 else
12816   ( :;
12817 mkdir oldgnu
12818 (cd oldgnu
12819 TEST_TAR_FORMAT=oldgnu
12820 export TEST_TAR_FORMAT
12821 TAR_OPTIONS="-H oldgnu"
12822 export TAR_OPTIONS
12823 rm -rf *
12824
12825 touch file
12826 ln -s file link 2> /dev/null || ln file link
12827 tar cf archive link
12828 rm link
12829 touch link
12830 tar xf archive
12831 ) ) >"$at_stdout" 2>"$at_stderr"
12832 fi
12833 at_status=$?
12834 at_failed=false
12835 at_func_diff_devnull "$at_stderr" || at_failed=:
12836 at_func_diff_devnull "$at_stdout" || at_failed=:
12837 at_func_check_status 0 $at_status "$at_srcdir/extrac02.at:28"
12838
12839 $at_failed && at_func_log_failure
12840 $at_traceon; }
12841
12842               { $at_traceoff
12843 $as_echo "$at_srcdir/extrac02.at:28:
12844 mkdir ustar
12845 (cd ustar
12846 TEST_TAR_FORMAT=ustar
12847 export TEST_TAR_FORMAT
12848 TAR_OPTIONS=\"-H ustar\"
12849 export TAR_OPTIONS
12850 rm -rf *
12851
12852 touch file
12853 ln -s file link 2> /dev/null || ln file link
12854 tar cf archive link
12855 rm link
12856 touch link
12857 tar xf archive
12858 )"
12859 echo extrac02.at:28 >"$at_check_line_file"
12860
12861 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
12862    false; }; then
12863   ( $at_traceon;
12864 mkdir ustar
12865 (cd ustar
12866 TEST_TAR_FORMAT=ustar
12867 export TEST_TAR_FORMAT
12868 TAR_OPTIONS="-H ustar"
12869 export TAR_OPTIONS
12870 rm -rf *
12871
12872 touch file
12873 ln -s file link 2> /dev/null || ln file link
12874 tar cf archive link
12875 rm link
12876 touch link
12877 tar xf archive
12878 ) ) >"$at_stdout" 2>"$at_stder1"
12879   at_func_filter_trace $?
12880 else
12881   ( :;
12882 mkdir ustar
12883 (cd ustar
12884 TEST_TAR_FORMAT=ustar
12885 export TEST_TAR_FORMAT
12886 TAR_OPTIONS="-H ustar"
12887 export TAR_OPTIONS
12888 rm -rf *
12889
12890 touch file
12891 ln -s file link 2> /dev/null || ln file link
12892 tar cf archive link
12893 rm link
12894 touch link
12895 tar xf archive
12896 ) ) >"$at_stdout" 2>"$at_stderr"
12897 fi
12898 at_status=$?
12899 at_failed=false
12900 at_func_diff_devnull "$at_stderr" || at_failed=:
12901 at_func_diff_devnull "$at_stdout" || at_failed=:
12902 at_func_check_status 0 $at_status "$at_srcdir/extrac02.at:28"
12903
12904 $at_failed && at_func_log_failure
12905 $at_traceon; }
12906
12907               { $at_traceoff
12908 $as_echo "$at_srcdir/extrac02.at:28:
12909 mkdir posix
12910 (cd posix
12911 TEST_TAR_FORMAT=posix
12912 export TEST_TAR_FORMAT
12913 TAR_OPTIONS=\"-H posix\"
12914 export TAR_OPTIONS
12915 rm -rf *
12916
12917 touch file
12918 ln -s file link 2> /dev/null || ln file link
12919 tar cf archive link
12920 rm link
12921 touch link
12922 tar xf archive
12923 )"
12924 echo extrac02.at:28 >"$at_check_line_file"
12925
12926 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
12927    false; }; then
12928   ( $at_traceon;
12929 mkdir posix
12930 (cd posix
12931 TEST_TAR_FORMAT=posix
12932 export TEST_TAR_FORMAT
12933 TAR_OPTIONS="-H posix"
12934 export TAR_OPTIONS
12935 rm -rf *
12936
12937 touch file
12938 ln -s file link 2> /dev/null || ln file link
12939 tar cf archive link
12940 rm link
12941 touch link
12942 tar xf archive
12943 ) ) >"$at_stdout" 2>"$at_stder1"
12944   at_func_filter_trace $?
12945 else
12946   ( :;
12947 mkdir posix
12948 (cd posix
12949 TEST_TAR_FORMAT=posix
12950 export TEST_TAR_FORMAT
12951 TAR_OPTIONS="-H posix"
12952 export TAR_OPTIONS
12953 rm -rf *
12954
12955 touch file
12956 ln -s file link 2> /dev/null || ln file link
12957 tar cf archive link
12958 rm link
12959 touch link
12960 tar xf archive
12961 ) ) >"$at_stdout" 2>"$at_stderr"
12962 fi
12963 at_status=$?
12964 at_failed=false
12965 at_func_diff_devnull "$at_stderr" || at_failed=:
12966 at_func_diff_devnull "$at_stdout" || at_failed=:
12967 at_func_check_status 0 $at_status "$at_srcdir/extrac02.at:28"
12968
12969 $at_failed && at_func_log_failure
12970 $at_traceon; }
12971
12972               { $at_traceoff
12973 $as_echo "$at_srcdir/extrac02.at:28:
12974 mkdir gnu
12975 (cd gnu
12976 TEST_TAR_FORMAT=gnu
12977 export TEST_TAR_FORMAT
12978 TAR_OPTIONS=\"-H gnu\"
12979 export TAR_OPTIONS
12980 rm -rf *
12981
12982 touch file
12983 ln -s file link 2> /dev/null || ln file link
12984 tar cf archive link
12985 rm link
12986 touch link
12987 tar xf archive
12988 )"
12989 echo extrac02.at:28 >"$at_check_line_file"
12990
12991 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
12992    false; }; then
12993   ( $at_traceon;
12994 mkdir gnu
12995 (cd gnu
12996 TEST_TAR_FORMAT=gnu
12997 export TEST_TAR_FORMAT
12998 TAR_OPTIONS="-H gnu"
12999 export TAR_OPTIONS
13000 rm -rf *
13001
13002 touch file
13003 ln -s file link 2> /dev/null || ln file link
13004 tar cf archive link
13005 rm link
13006 touch link
13007 tar xf archive
13008 ) ) >"$at_stdout" 2>"$at_stder1"
13009   at_func_filter_trace $?
13010 else
13011   ( :;
13012 mkdir gnu
13013 (cd gnu
13014 TEST_TAR_FORMAT=gnu
13015 export TEST_TAR_FORMAT
13016 TAR_OPTIONS="-H gnu"
13017 export TAR_OPTIONS
13018 rm -rf *
13019
13020 touch file
13021 ln -s file link 2> /dev/null || ln file link
13022 tar cf archive link
13023 rm link
13024 touch link
13025 tar xf archive
13026 ) ) >"$at_stdout" 2>"$at_stderr"
13027 fi
13028 at_status=$?
13029 at_failed=false
13030 at_func_diff_devnull "$at_stderr" || at_failed=:
13031 at_func_diff_devnull "$at_stdout" || at_failed=:
13032 at_func_check_status 0 $at_status "$at_srcdir/extrac02.at:28"
13033
13034 $at_failed && at_func_log_failure
13035 $at_traceon; }
13036
13037
13038
13039
13040   $at_traceoff
13041   $at_times_p && times >"$at_times_file"
13042 ) 5>&1 2>&1 | eval $at_tee_pipe
13043 at_status=`cat "$at_status_file"`
13044 #AT_STOP_28
13045 #AT_START_29
13046 # 29. extrac03.at:23: extraction loops
13047 at_setup_line='extrac03.at:23'
13048 at_desc="extraction loops"
13049 $at_quiet $as_echo_n " 29: $at_desc                               "
13050 at_xfail=no
13051       test -f $XFAILFILE && at_xfail=yes
13052 echo "#                             -*- compilation -*-" >> "$at_group_log"
13053 (
13054   $as_echo "29. extrac03.at:23: testing ..."
13055   $at_traceon
13056
13057
13058
13059
13060
13061   { $at_traceoff
13062 $as_echo "$at_srcdir/extrac03.at:26:
13063 mkdir v7
13064 (cd v7
13065 TEST_TAR_FORMAT=v7
13066 export TEST_TAR_FORMAT
13067 TAR_OPTIONS=\"-H v7\"
13068 export TAR_OPTIONS
13069 rm -rf *
13070
13071 mkdir directory
13072 tar -cPvf archive directory/../directory
13073 echo separator
13074 tar -xPvf archive --warning=no-timestamp)"
13075 echo extrac03.at:26 >"$at_check_line_file"
13076
13077 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
13078    false; }; then
13079   ( $at_traceon;
13080 mkdir v7
13081 (cd v7
13082 TEST_TAR_FORMAT=v7
13083 export TEST_TAR_FORMAT
13084 TAR_OPTIONS="-H v7"
13085 export TAR_OPTIONS
13086 rm -rf *
13087
13088 mkdir directory
13089 tar -cPvf archive directory/../directory
13090 echo separator
13091 tar -xPvf archive --warning=no-timestamp) ) >"$at_stdout" 2>"$at_stder1"
13092   at_func_filter_trace $?
13093 else
13094   ( :;
13095 mkdir v7
13096 (cd v7
13097 TEST_TAR_FORMAT=v7
13098 export TEST_TAR_FORMAT
13099 TAR_OPTIONS="-H v7"
13100 export TAR_OPTIONS
13101 rm -rf *
13102
13103 mkdir directory
13104 tar -cPvf archive directory/../directory
13105 echo separator
13106 tar -xPvf archive --warning=no-timestamp) ) >"$at_stdout" 2>"$at_stderr"
13107 fi
13108 at_status=$?
13109 at_failed=false
13110 at_func_diff_devnull "$at_stderr" || at_failed=:
13111 echo >>"$at_stdout"; $as_echo "directory/../directory/
13112 separator
13113 directory/../directory/
13114 " | \
13115   $at_diff - "$at_stdout" || at_failed=:
13116 at_func_check_status 0 $at_status "$at_srcdir/extrac03.at:26"
13117
13118 $at_failed && at_func_log_failure
13119 $at_traceon; }
13120
13121               { $at_traceoff
13122 $as_echo "$at_srcdir/extrac03.at:26:
13123 mkdir oldgnu
13124 (cd oldgnu
13125 TEST_TAR_FORMAT=oldgnu
13126 export TEST_TAR_FORMAT
13127 TAR_OPTIONS=\"-H oldgnu\"
13128 export TAR_OPTIONS
13129 rm -rf *
13130
13131 mkdir directory
13132 tar -cPvf archive directory/../directory
13133 echo separator
13134 tar -xPvf archive --warning=no-timestamp)"
13135 echo extrac03.at:26 >"$at_check_line_file"
13136
13137 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
13138    false; }; then
13139   ( $at_traceon;
13140 mkdir oldgnu
13141 (cd oldgnu
13142 TEST_TAR_FORMAT=oldgnu
13143 export TEST_TAR_FORMAT
13144 TAR_OPTIONS="-H oldgnu"
13145 export TAR_OPTIONS
13146 rm -rf *
13147
13148 mkdir directory
13149 tar -cPvf archive directory/../directory
13150 echo separator
13151 tar -xPvf archive --warning=no-timestamp) ) >"$at_stdout" 2>"$at_stder1"
13152   at_func_filter_trace $?
13153 else
13154   ( :;
13155 mkdir oldgnu
13156 (cd oldgnu
13157 TEST_TAR_FORMAT=oldgnu
13158 export TEST_TAR_FORMAT
13159 TAR_OPTIONS="-H oldgnu"
13160 export TAR_OPTIONS
13161 rm -rf *
13162
13163 mkdir directory
13164 tar -cPvf archive directory/../directory
13165 echo separator
13166 tar -xPvf archive --warning=no-timestamp) ) >"$at_stdout" 2>"$at_stderr"
13167 fi
13168 at_status=$?
13169 at_failed=false
13170 at_func_diff_devnull "$at_stderr" || at_failed=:
13171 echo >>"$at_stdout"; $as_echo "directory/../directory/
13172 separator
13173 directory/../directory/
13174 " | \
13175   $at_diff - "$at_stdout" || at_failed=:
13176 at_func_check_status 0 $at_status "$at_srcdir/extrac03.at:26"
13177
13178 $at_failed && at_func_log_failure
13179 $at_traceon; }
13180
13181               { $at_traceoff
13182 $as_echo "$at_srcdir/extrac03.at:26:
13183 mkdir ustar
13184 (cd ustar
13185 TEST_TAR_FORMAT=ustar
13186 export TEST_TAR_FORMAT
13187 TAR_OPTIONS=\"-H ustar\"
13188 export TAR_OPTIONS
13189 rm -rf *
13190
13191 mkdir directory
13192 tar -cPvf archive directory/../directory
13193 echo separator
13194 tar -xPvf archive --warning=no-timestamp)"
13195 echo extrac03.at:26 >"$at_check_line_file"
13196
13197 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
13198    false; }; then
13199   ( $at_traceon;
13200 mkdir ustar
13201 (cd ustar
13202 TEST_TAR_FORMAT=ustar
13203 export TEST_TAR_FORMAT
13204 TAR_OPTIONS="-H ustar"
13205 export TAR_OPTIONS
13206 rm -rf *
13207
13208 mkdir directory
13209 tar -cPvf archive directory/../directory
13210 echo separator
13211 tar -xPvf archive --warning=no-timestamp) ) >"$at_stdout" 2>"$at_stder1"
13212   at_func_filter_trace $?
13213 else
13214   ( :;
13215 mkdir ustar
13216 (cd ustar
13217 TEST_TAR_FORMAT=ustar
13218 export TEST_TAR_FORMAT
13219 TAR_OPTIONS="-H ustar"
13220 export TAR_OPTIONS
13221 rm -rf *
13222
13223 mkdir directory
13224 tar -cPvf archive directory/../directory
13225 echo separator
13226 tar -xPvf archive --warning=no-timestamp) ) >"$at_stdout" 2>"$at_stderr"
13227 fi
13228 at_status=$?
13229 at_failed=false
13230 at_func_diff_devnull "$at_stderr" || at_failed=:
13231 echo >>"$at_stdout"; $as_echo "directory/../directory/
13232 separator
13233 directory/../directory/
13234 " | \
13235   $at_diff - "$at_stdout" || at_failed=:
13236 at_func_check_status 0 $at_status "$at_srcdir/extrac03.at:26"
13237
13238 $at_failed && at_func_log_failure
13239 $at_traceon; }
13240
13241               { $at_traceoff
13242 $as_echo "$at_srcdir/extrac03.at:26:
13243 mkdir posix
13244 (cd posix
13245 TEST_TAR_FORMAT=posix
13246 export TEST_TAR_FORMAT
13247 TAR_OPTIONS=\"-H posix\"
13248 export TAR_OPTIONS
13249 rm -rf *
13250
13251 mkdir directory
13252 tar -cPvf archive directory/../directory
13253 echo separator
13254 tar -xPvf archive --warning=no-timestamp)"
13255 echo extrac03.at:26 >"$at_check_line_file"
13256
13257 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
13258    false; }; then
13259   ( $at_traceon;
13260 mkdir posix
13261 (cd posix
13262 TEST_TAR_FORMAT=posix
13263 export TEST_TAR_FORMAT
13264 TAR_OPTIONS="-H posix"
13265 export TAR_OPTIONS
13266 rm -rf *
13267
13268 mkdir directory
13269 tar -cPvf archive directory/../directory
13270 echo separator
13271 tar -xPvf archive --warning=no-timestamp) ) >"$at_stdout" 2>"$at_stder1"
13272   at_func_filter_trace $?
13273 else
13274   ( :;
13275 mkdir posix
13276 (cd posix
13277 TEST_TAR_FORMAT=posix
13278 export TEST_TAR_FORMAT
13279 TAR_OPTIONS="-H posix"
13280 export TAR_OPTIONS
13281 rm -rf *
13282
13283 mkdir directory
13284 tar -cPvf archive directory/../directory
13285 echo separator
13286 tar -xPvf archive --warning=no-timestamp) ) >"$at_stdout" 2>"$at_stderr"
13287 fi
13288 at_status=$?
13289 at_failed=false
13290 at_func_diff_devnull "$at_stderr" || at_failed=:
13291 echo >>"$at_stdout"; $as_echo "directory/../directory/
13292 separator
13293 directory/../directory/
13294 " | \
13295   $at_diff - "$at_stdout" || at_failed=:
13296 at_func_check_status 0 $at_status "$at_srcdir/extrac03.at:26"
13297
13298 $at_failed && at_func_log_failure
13299 $at_traceon; }
13300
13301               { $at_traceoff
13302 $as_echo "$at_srcdir/extrac03.at:26:
13303 mkdir gnu
13304 (cd gnu
13305 TEST_TAR_FORMAT=gnu
13306 export TEST_TAR_FORMAT
13307 TAR_OPTIONS=\"-H gnu\"
13308 export TAR_OPTIONS
13309 rm -rf *
13310
13311 mkdir directory
13312 tar -cPvf archive directory/../directory
13313 echo separator
13314 tar -xPvf archive --warning=no-timestamp)"
13315 echo extrac03.at:26 >"$at_check_line_file"
13316
13317 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
13318    false; }; then
13319   ( $at_traceon;
13320 mkdir gnu
13321 (cd gnu
13322 TEST_TAR_FORMAT=gnu
13323 export TEST_TAR_FORMAT
13324 TAR_OPTIONS="-H gnu"
13325 export TAR_OPTIONS
13326 rm -rf *
13327
13328 mkdir directory
13329 tar -cPvf archive directory/../directory
13330 echo separator
13331 tar -xPvf archive --warning=no-timestamp) ) >"$at_stdout" 2>"$at_stder1"
13332   at_func_filter_trace $?
13333 else
13334   ( :;
13335 mkdir gnu
13336 (cd gnu
13337 TEST_TAR_FORMAT=gnu
13338 export TEST_TAR_FORMAT
13339 TAR_OPTIONS="-H gnu"
13340 export TAR_OPTIONS
13341 rm -rf *
13342
13343 mkdir directory
13344 tar -cPvf archive directory/../directory
13345 echo separator
13346 tar -xPvf archive --warning=no-timestamp) ) >"$at_stdout" 2>"$at_stderr"
13347 fi
13348 at_status=$?
13349 at_failed=false
13350 at_func_diff_devnull "$at_stderr" || at_failed=:
13351 echo >>"$at_stdout"; $as_echo "directory/../directory/
13352 separator
13353 directory/../directory/
13354 " | \
13355   $at_diff - "$at_stdout" || at_failed=:
13356 at_func_check_status 0 $at_status "$at_srcdir/extrac03.at:26"
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_29
13369 #AT_START_30
13370 # 30. extrac04.at:23: extract + fnmatch
13371 at_setup_line='extrac04.at:23'
13372 at_desc="extract + fnmatch"
13373 $at_quiet $as_echo_n " 30: $at_desc                              "
13374 at_xfail=no
13375       test -f $XFAILFILE && at_xfail=yes
13376 echo "#                             -*- compilation -*-" >> "$at_group_log"
13377 (
13378   $as_echo "30. extrac04.at:23: testing ..."
13379   $at_traceon
13380
13381
13382
13383
13384
13385   { $at_traceoff
13386 $as_echo "$at_srcdir/extrac04.at:26:
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 test -z "`sort < /dev/null 2>&1`" || exit 77
13397
13398 touch file1
13399 mkdir directory
13400 mkdir directory/subdirectory
13401 touch directory/file1
13402 touch directory/file2
13403 touch directory/subdirectory/file1
13404 touch directory/subdirectory/file2
13405 tar -cf archive ./file1 directory
13406 tar -tf archive \\
13407   --exclude='./*1' \\
13408   --exclude='d*/*1' \\
13409   --exclude='d*/s*/*2' | sort
13410 )"
13411 echo extrac04.at:26 >"$at_check_line_file"
13412
13413 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
13414    false; }; then
13415   ( $at_traceon;
13416 mkdir v7
13417 (cd v7
13418 TEST_TAR_FORMAT=v7
13419 export TEST_TAR_FORMAT
13420 TAR_OPTIONS="-H v7"
13421 export TAR_OPTIONS
13422 rm -rf *
13423
13424
13425 test -z "`sort < /dev/null 2>&1`" || exit 77
13426
13427 touch file1
13428 mkdir directory
13429 mkdir directory/subdirectory
13430 touch directory/file1
13431 touch directory/file2
13432 touch directory/subdirectory/file1
13433 touch directory/subdirectory/file2
13434 tar -cf archive ./file1 directory
13435 tar -tf archive \
13436   --exclude='./*1' \
13437   --exclude='d*/*1' \
13438   --exclude='d*/s*/*2' | sort
13439 ) ) >"$at_stdout" 2>"$at_stder1"
13440   at_func_filter_trace $?
13441 else
13442   ( :;
13443 mkdir v7
13444 (cd v7
13445 TEST_TAR_FORMAT=v7
13446 export TEST_TAR_FORMAT
13447 TAR_OPTIONS="-H v7"
13448 export TAR_OPTIONS
13449 rm -rf *
13450
13451
13452 test -z "`sort < /dev/null 2>&1`" || exit 77
13453
13454 touch file1
13455 mkdir directory
13456 mkdir directory/subdirectory
13457 touch directory/file1
13458 touch directory/file2
13459 touch directory/subdirectory/file1
13460 touch directory/subdirectory/file2
13461 tar -cf archive ./file1 directory
13462 tar -tf archive \
13463   --exclude='./*1' \
13464   --exclude='d*/*1' \
13465   --exclude='d*/s*/*2' | sort
13466 ) ) >"$at_stdout" 2>"$at_stderr"
13467 fi
13468 at_status=$?
13469 at_failed=false
13470 at_func_diff_devnull "$at_stderr" || at_failed=:
13471 echo >>"$at_stdout"; $as_echo "directory/
13472 directory/file2
13473 directory/subdirectory/
13474 " | \
13475   $at_diff - "$at_stdout" || at_failed=:
13476 at_func_check_status 0 $at_status "$at_srcdir/extrac04.at:26"
13477
13478 $at_failed && at_func_log_failure
13479 $at_traceon; }
13480
13481               { $at_traceoff
13482 $as_echo "$at_srcdir/extrac04.at:26:
13483 mkdir oldgnu
13484 (cd oldgnu
13485 TEST_TAR_FORMAT=oldgnu
13486 export TEST_TAR_FORMAT
13487 TAR_OPTIONS=\"-H oldgnu\"
13488 export TAR_OPTIONS
13489 rm -rf *
13490
13491
13492 test -z "`sort < /dev/null 2>&1`" || exit 77
13493
13494 touch file1
13495 mkdir directory
13496 mkdir directory/subdirectory
13497 touch directory/file1
13498 touch directory/file2
13499 touch directory/subdirectory/file1
13500 touch directory/subdirectory/file2
13501 tar -cf archive ./file1 directory
13502 tar -tf archive \\
13503   --exclude='./*1' \\
13504   --exclude='d*/*1' \\
13505   --exclude='d*/s*/*2' | sort
13506 )"
13507 echo extrac04.at:26 >"$at_check_line_file"
13508
13509 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
13510    false; }; then
13511   ( $at_traceon;
13512 mkdir oldgnu
13513 (cd oldgnu
13514 TEST_TAR_FORMAT=oldgnu
13515 export TEST_TAR_FORMAT
13516 TAR_OPTIONS="-H oldgnu"
13517 export TAR_OPTIONS
13518 rm -rf *
13519
13520
13521 test -z "`sort < /dev/null 2>&1`" || exit 77
13522
13523 touch file1
13524 mkdir directory
13525 mkdir directory/subdirectory
13526 touch directory/file1
13527 touch directory/file2
13528 touch directory/subdirectory/file1
13529 touch directory/subdirectory/file2
13530 tar -cf archive ./file1 directory
13531 tar -tf archive \
13532   --exclude='./*1' \
13533   --exclude='d*/*1' \
13534   --exclude='d*/s*/*2' | sort
13535 ) ) >"$at_stdout" 2>"$at_stder1"
13536   at_func_filter_trace $?
13537 else
13538   ( :;
13539 mkdir oldgnu
13540 (cd oldgnu
13541 TEST_TAR_FORMAT=oldgnu
13542 export TEST_TAR_FORMAT
13543 TAR_OPTIONS="-H oldgnu"
13544 export TAR_OPTIONS
13545 rm -rf *
13546
13547
13548 test -z "`sort < /dev/null 2>&1`" || exit 77
13549
13550 touch file1
13551 mkdir directory
13552 mkdir directory/subdirectory
13553 touch directory/file1
13554 touch directory/file2
13555 touch directory/subdirectory/file1
13556 touch directory/subdirectory/file2
13557 tar -cf archive ./file1 directory
13558 tar -tf archive \
13559   --exclude='./*1' \
13560   --exclude='d*/*1' \
13561   --exclude='d*/s*/*2' | sort
13562 ) ) >"$at_stdout" 2>"$at_stderr"
13563 fi
13564 at_status=$?
13565 at_failed=false
13566 at_func_diff_devnull "$at_stderr" || at_failed=:
13567 echo >>"$at_stdout"; $as_echo "directory/
13568 directory/file2
13569 directory/subdirectory/
13570 " | \
13571   $at_diff - "$at_stdout" || at_failed=:
13572 at_func_check_status 0 $at_status "$at_srcdir/extrac04.at:26"
13573
13574 $at_failed && at_func_log_failure
13575 $at_traceon; }
13576
13577               { $at_traceoff
13578 $as_echo "$at_srcdir/extrac04.at:26:
13579 mkdir ustar
13580 (cd ustar
13581 TEST_TAR_FORMAT=ustar
13582 export TEST_TAR_FORMAT
13583 TAR_OPTIONS=\"-H ustar\"
13584 export TAR_OPTIONS
13585 rm -rf *
13586
13587
13588 test -z "`sort < /dev/null 2>&1`" || exit 77
13589
13590 touch file1
13591 mkdir directory
13592 mkdir directory/subdirectory
13593 touch directory/file1
13594 touch directory/file2
13595 touch directory/subdirectory/file1
13596 touch directory/subdirectory/file2
13597 tar -cf archive ./file1 directory
13598 tar -tf archive \\
13599   --exclude='./*1' \\
13600   --exclude='d*/*1' \\
13601   --exclude='d*/s*/*2' | sort
13602 )"
13603 echo extrac04.at:26 >"$at_check_line_file"
13604
13605 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
13606    false; }; then
13607   ( $at_traceon;
13608 mkdir ustar
13609 (cd ustar
13610 TEST_TAR_FORMAT=ustar
13611 export TEST_TAR_FORMAT
13612 TAR_OPTIONS="-H ustar"
13613 export TAR_OPTIONS
13614 rm -rf *
13615
13616
13617 test -z "`sort < /dev/null 2>&1`" || exit 77
13618
13619 touch file1
13620 mkdir directory
13621 mkdir directory/subdirectory
13622 touch directory/file1
13623 touch directory/file2
13624 touch directory/subdirectory/file1
13625 touch directory/subdirectory/file2
13626 tar -cf archive ./file1 directory
13627 tar -tf archive \
13628   --exclude='./*1' \
13629   --exclude='d*/*1' \
13630   --exclude='d*/s*/*2' | sort
13631 ) ) >"$at_stdout" 2>"$at_stder1"
13632   at_func_filter_trace $?
13633 else
13634   ( :;
13635 mkdir ustar
13636 (cd ustar
13637 TEST_TAR_FORMAT=ustar
13638 export TEST_TAR_FORMAT
13639 TAR_OPTIONS="-H ustar"
13640 export TAR_OPTIONS
13641 rm -rf *
13642
13643
13644 test -z "`sort < /dev/null 2>&1`" || exit 77
13645
13646 touch file1
13647 mkdir directory
13648 mkdir directory/subdirectory
13649 touch directory/file1
13650 touch directory/file2
13651 touch directory/subdirectory/file1
13652 touch directory/subdirectory/file2
13653 tar -cf archive ./file1 directory
13654 tar -tf archive \
13655   --exclude='./*1' \
13656   --exclude='d*/*1' \
13657   --exclude='d*/s*/*2' | sort
13658 ) ) >"$at_stdout" 2>"$at_stderr"
13659 fi
13660 at_status=$?
13661 at_failed=false
13662 at_func_diff_devnull "$at_stderr" || at_failed=:
13663 echo >>"$at_stdout"; $as_echo "directory/
13664 directory/file2
13665 directory/subdirectory/
13666 " | \
13667   $at_diff - "$at_stdout" || at_failed=:
13668 at_func_check_status 0 $at_status "$at_srcdir/extrac04.at:26"
13669
13670 $at_failed && at_func_log_failure
13671 $at_traceon; }
13672
13673               { $at_traceoff
13674 $as_echo "$at_srcdir/extrac04.at:26:
13675 mkdir posix
13676 (cd posix
13677 TEST_TAR_FORMAT=posix
13678 export TEST_TAR_FORMAT
13679 TAR_OPTIONS=\"-H posix\"
13680 export TAR_OPTIONS
13681 rm -rf *
13682
13683
13684 test -z "`sort < /dev/null 2>&1`" || exit 77
13685
13686 touch file1
13687 mkdir directory
13688 mkdir directory/subdirectory
13689 touch directory/file1
13690 touch directory/file2
13691 touch directory/subdirectory/file1
13692 touch directory/subdirectory/file2
13693 tar -cf archive ./file1 directory
13694 tar -tf archive \\
13695   --exclude='./*1' \\
13696   --exclude='d*/*1' \\
13697   --exclude='d*/s*/*2' | sort
13698 )"
13699 echo extrac04.at:26 >"$at_check_line_file"
13700
13701 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
13702    false; }; then
13703   ( $at_traceon;
13704 mkdir posix
13705 (cd posix
13706 TEST_TAR_FORMAT=posix
13707 export TEST_TAR_FORMAT
13708 TAR_OPTIONS="-H posix"
13709 export TAR_OPTIONS
13710 rm -rf *
13711
13712
13713 test -z "`sort < /dev/null 2>&1`" || exit 77
13714
13715 touch file1
13716 mkdir directory
13717 mkdir directory/subdirectory
13718 touch directory/file1
13719 touch directory/file2
13720 touch directory/subdirectory/file1
13721 touch directory/subdirectory/file2
13722 tar -cf archive ./file1 directory
13723 tar -tf archive \
13724   --exclude='./*1' \
13725   --exclude='d*/*1' \
13726   --exclude='d*/s*/*2' | sort
13727 ) ) >"$at_stdout" 2>"$at_stder1"
13728   at_func_filter_trace $?
13729 else
13730   ( :;
13731 mkdir posix
13732 (cd posix
13733 TEST_TAR_FORMAT=posix
13734 export TEST_TAR_FORMAT
13735 TAR_OPTIONS="-H posix"
13736 export TAR_OPTIONS
13737 rm -rf *
13738
13739
13740 test -z "`sort < /dev/null 2>&1`" || exit 77
13741
13742 touch file1
13743 mkdir directory
13744 mkdir directory/subdirectory
13745 touch directory/file1
13746 touch directory/file2
13747 touch directory/subdirectory/file1
13748 touch directory/subdirectory/file2
13749 tar -cf archive ./file1 directory
13750 tar -tf archive \
13751   --exclude='./*1' \
13752   --exclude='d*/*1' \
13753   --exclude='d*/s*/*2' | sort
13754 ) ) >"$at_stdout" 2>"$at_stderr"
13755 fi
13756 at_status=$?
13757 at_failed=false
13758 at_func_diff_devnull "$at_stderr" || at_failed=:
13759 echo >>"$at_stdout"; $as_echo "directory/
13760 directory/file2
13761 directory/subdirectory/
13762 " | \
13763   $at_diff - "$at_stdout" || at_failed=:
13764 at_func_check_status 0 $at_status "$at_srcdir/extrac04.at:26"
13765
13766 $at_failed && at_func_log_failure
13767 $at_traceon; }
13768
13769               { $at_traceoff
13770 $as_echo "$at_srcdir/extrac04.at:26:
13771 mkdir gnu
13772 (cd gnu
13773 TEST_TAR_FORMAT=gnu
13774 export TEST_TAR_FORMAT
13775 TAR_OPTIONS=\"-H gnu\"
13776 export TAR_OPTIONS
13777 rm -rf *
13778
13779
13780 test -z "`sort < /dev/null 2>&1`" || exit 77
13781
13782 touch file1
13783 mkdir directory
13784 mkdir directory/subdirectory
13785 touch directory/file1
13786 touch directory/file2
13787 touch directory/subdirectory/file1
13788 touch directory/subdirectory/file2
13789 tar -cf archive ./file1 directory
13790 tar -tf archive \\
13791   --exclude='./*1' \\
13792   --exclude='d*/*1' \\
13793   --exclude='d*/s*/*2' | sort
13794 )"
13795 echo extrac04.at:26 >"$at_check_line_file"
13796
13797 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
13798    false; }; then
13799   ( $at_traceon;
13800 mkdir gnu
13801 (cd gnu
13802 TEST_TAR_FORMAT=gnu
13803 export TEST_TAR_FORMAT
13804 TAR_OPTIONS="-H gnu"
13805 export TAR_OPTIONS
13806 rm -rf *
13807
13808
13809 test -z "`sort < /dev/null 2>&1`" || exit 77
13810
13811 touch file1
13812 mkdir directory
13813 mkdir directory/subdirectory
13814 touch directory/file1
13815 touch directory/file2
13816 touch directory/subdirectory/file1
13817 touch directory/subdirectory/file2
13818 tar -cf archive ./file1 directory
13819 tar -tf archive \
13820   --exclude='./*1' \
13821   --exclude='d*/*1' \
13822   --exclude='d*/s*/*2' | sort
13823 ) ) >"$at_stdout" 2>"$at_stder1"
13824   at_func_filter_trace $?
13825 else
13826   ( :;
13827 mkdir gnu
13828 (cd gnu
13829 TEST_TAR_FORMAT=gnu
13830 export TEST_TAR_FORMAT
13831 TAR_OPTIONS="-H gnu"
13832 export TAR_OPTIONS
13833 rm -rf *
13834
13835
13836 test -z "`sort < /dev/null 2>&1`" || exit 77
13837
13838 touch file1
13839 mkdir directory
13840 mkdir directory/subdirectory
13841 touch directory/file1
13842 touch directory/file2
13843 touch directory/subdirectory/file1
13844 touch directory/subdirectory/file2
13845 tar -cf archive ./file1 directory
13846 tar -tf archive \
13847   --exclude='./*1' \
13848   --exclude='d*/*1' \
13849   --exclude='d*/s*/*2' | sort
13850 ) ) >"$at_stdout" 2>"$at_stderr"
13851 fi
13852 at_status=$?
13853 at_failed=false
13854 at_func_diff_devnull "$at_stderr" || at_failed=:
13855 echo >>"$at_stdout"; $as_echo "directory/
13856 directory/file2
13857 directory/subdirectory/
13858 " | \
13859   $at_diff - "$at_stdout" || at_failed=:
13860 at_func_check_status 0 $at_status "$at_srcdir/extrac04.at:26"
13861
13862 $at_failed && at_func_log_failure
13863 $at_traceon; }
13864
13865
13866
13867
13868   $at_traceoff
13869   $at_times_p && times >"$at_times_file"
13870 ) 5>&1 2>&1 | eval $at_tee_pipe
13871 at_status=`cat "$at_status_file"`
13872 #AT_STOP_30
13873 #AT_START_31
13874 # 31. extrac05.at:30: extracting selected members from pax
13875 at_setup_line='extrac05.at:30'
13876 at_desc="extracting selected members from pax"
13877 $at_quiet $as_echo_n " 31: $at_desc           "
13878 at_xfail=no
13879       test -f $XFAILFILE && at_xfail=yes
13880 echo "#                             -*- compilation -*-" >> "$at_group_log"
13881 (
13882   $as_echo "31. extrac05.at:30: testing ..."
13883   $at_traceon
13884
13885
13886
13887 cat >list <<'_ATEOF'
13888 jeden
13889 cztery
13890 _ATEOF
13891
13892
13893
13894
13895   { $at_traceoff
13896 $as_echo "$at_srcdir/extrac05.at:38:
13897 mkdir posix
13898 (cd posix
13899 TEST_TAR_FORMAT=posix
13900 export TEST_TAR_FORMAT
13901 TAR_OPTIONS=\"-H posix\"
13902 export TAR_OPTIONS
13903 rm -rf *
13904
13905 genfile --sparse --file sparsefile 0 ABCD 1M EFGH 2000K IJKL || exit 77
13906 genfile --length 118 --file jeden
13907 genfile --length 223 --file dwa
13908 genfile --length 517 --file trzy
13909 genfile --length 110 --file cztery
13910
13911 tar cf archive jeden dwa trzy cztery || exit 1
13912
13913 mkdir dir
13914 cd dir
13915
13916 tar xvfT ../archive ../../list --warning=no-timestamp || exit 1
13917
13918 cd ..
13919 )"
13920 echo extrac05.at:38 >"$at_check_line_file"
13921
13922 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
13923    false; }; then
13924   ( $at_traceon;
13925 mkdir posix
13926 (cd posix
13927 TEST_TAR_FORMAT=posix
13928 export TEST_TAR_FORMAT
13929 TAR_OPTIONS="-H posix"
13930 export TAR_OPTIONS
13931 rm -rf *
13932
13933 genfile --sparse --file sparsefile 0 ABCD 1M EFGH 2000K IJKL || exit 77
13934 genfile --length 118 --file jeden
13935 genfile --length 223 --file dwa
13936 genfile --length 517 --file trzy
13937 genfile --length 110 --file cztery
13938
13939 tar cf archive jeden dwa trzy cztery || exit 1
13940
13941 mkdir dir
13942 cd dir
13943
13944 tar xvfT ../archive ../../list --warning=no-timestamp || exit 1
13945
13946 cd ..
13947 ) ) >"$at_stdout" 2>"$at_stder1"
13948   at_func_filter_trace $?
13949 else
13950   ( :;
13951 mkdir posix
13952 (cd posix
13953 TEST_TAR_FORMAT=posix
13954 export TEST_TAR_FORMAT
13955 TAR_OPTIONS="-H posix"
13956 export TAR_OPTIONS
13957 rm -rf *
13958
13959 genfile --sparse --file sparsefile 0 ABCD 1M EFGH 2000K IJKL || exit 77
13960 genfile --length 118 --file jeden
13961 genfile --length 223 --file dwa
13962 genfile --length 517 --file trzy
13963 genfile --length 110 --file cztery
13964
13965 tar cf archive jeden dwa trzy cztery || exit 1
13966
13967 mkdir dir
13968 cd dir
13969
13970 tar xvfT ../archive ../../list --warning=no-timestamp || exit 1
13971
13972 cd ..
13973 ) ) >"$at_stdout" 2>"$at_stderr"
13974 fi
13975 at_status=$?
13976 at_failed=false
13977 at_func_diff_devnull "$at_stderr" || at_failed=:
13978 echo >>"$at_stdout"; $as_echo "jeden
13979 cztery
13980 " | \
13981   $at_diff - "$at_stdout" || at_failed=:
13982 at_func_check_status 0 $at_status "$at_srcdir/extrac05.at:38"
13983
13984 $at_failed && at_func_log_failure
13985 $at_traceon; }
13986
13987
13988
13989
13990   $at_traceoff
13991   $at_times_p && times >"$at_times_file"
13992 ) 5>&1 2>&1 | eval $at_tee_pipe
13993 at_status=`cat "$at_status_file"`
13994 #AT_STOP_31
13995 #AT_START_32
13996 # 32. extrac06.at:33: mode of extracted directories
13997 at_setup_line='extrac06.at:33'
13998 at_desc="mode of extracted directories"
13999 $at_quiet $as_echo_n " 32: $at_desc                  "
14000 at_xfail=no
14001       test -f $XFAILFILE && at_xfail=yes
14002 echo "#                             -*- compilation -*-" >> "$at_group_log"
14003 (
14004   $as_echo "32. extrac06.at:33: testing ..."
14005   $at_traceon
14006
14007
14008
14009
14010
14011   { $at_traceoff
14012 $as_echo "$at_srcdir/extrac06.at:36:
14013 mkdir v7
14014 (cd v7
14015 TEST_TAR_FORMAT=v7
14016 export TEST_TAR_FORMAT
14017 TAR_OPTIONS=\"-H v7\"
14018 export TAR_OPTIONS
14019 rm -rf *
14020
14021
14022 # Force umask
14023 umask 022
14024
14025 # Make sure user's umask is honored, even if we are superuser
14026 TAR_OPTIONS=\"\$TAR_OPTIONS --no-same-permissions\"
14027
14028 # Create a directory
14029 mkdir directory
14030 chmod 777 directory
14031 genfile --stat=mode:777 directory
14032
14033 # Archive it
14034 tar cf arc directory
14035
14036 # Change its permissions ...
14037 chmod 755 directory
14038 genfile --stat=mode:777 directory
14039
14040 # ... and attempt to restore it twice
14041 tar xf arc directory --warning=no-timestamp
14042 genfile --stat=mode:777 directory
14043
14044 tar xf arc directory --warning=no-timestamp
14045 genfile --stat=mode:777 directory
14046
14047 # After both restores, the directory mode should be 755
14048 )"
14049 echo extrac06.at:36 >"$at_check_line_file"
14050
14051 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
14052    false; }; then
14053   ( $at_traceon;
14054 mkdir v7
14055 (cd v7
14056 TEST_TAR_FORMAT=v7
14057 export TEST_TAR_FORMAT
14058 TAR_OPTIONS="-H v7"
14059 export TAR_OPTIONS
14060 rm -rf *
14061
14062
14063 # Force umask
14064 umask 022
14065
14066 # Make sure user's umask is honored, even if we are superuser
14067 TAR_OPTIONS="$TAR_OPTIONS --no-same-permissions"
14068
14069 # Create a directory
14070 mkdir directory
14071 chmod 777 directory
14072 genfile --stat=mode:777 directory
14073
14074 # Archive it
14075 tar cf arc directory
14076
14077 # Change its permissions ...
14078 chmod 755 directory
14079 genfile --stat=mode:777 directory
14080
14081 # ... and attempt to restore it twice
14082 tar xf arc directory --warning=no-timestamp
14083 genfile --stat=mode:777 directory
14084
14085 tar xf arc directory --warning=no-timestamp
14086 genfile --stat=mode:777 directory
14087
14088 # After both restores, the directory mode should be 755
14089 ) ) >"$at_stdout" 2>"$at_stder1"
14090   at_func_filter_trace $?
14091 else
14092   ( :;
14093 mkdir v7
14094 (cd v7
14095 TEST_TAR_FORMAT=v7
14096 export TEST_TAR_FORMAT
14097 TAR_OPTIONS="-H v7"
14098 export TAR_OPTIONS
14099 rm -rf *
14100
14101
14102 # Force umask
14103 umask 022
14104
14105 # Make sure user's umask is honored, even if we are superuser
14106 TAR_OPTIONS="$TAR_OPTIONS --no-same-permissions"
14107
14108 # Create a directory
14109 mkdir directory
14110 chmod 777 directory
14111 genfile --stat=mode:777 directory
14112
14113 # Archive it
14114 tar cf arc directory
14115
14116 # Change its permissions ...
14117 chmod 755 directory
14118 genfile --stat=mode:777 directory
14119
14120 # ... and attempt to restore it twice
14121 tar xf arc directory --warning=no-timestamp
14122 genfile --stat=mode:777 directory
14123
14124 tar xf arc directory --warning=no-timestamp
14125 genfile --stat=mode:777 directory
14126
14127 # After both restores, the directory mode should be 755
14128 ) ) >"$at_stdout" 2>"$at_stderr"
14129 fi
14130 at_status=$?
14131 at_failed=false
14132 at_func_diff_devnull "$at_stderr" || at_failed=:
14133 echo >>"$at_stdout"; $as_echo "777
14134 755
14135 755
14136 755
14137 " | \
14138   $at_diff - "$at_stdout" || at_failed=:
14139 at_func_check_status 0 $at_status "$at_srcdir/extrac06.at:36"
14140
14141 $at_failed && at_func_log_failure
14142 $at_traceon; }
14143
14144               { $at_traceoff
14145 $as_echo "$at_srcdir/extrac06.at:36:
14146 mkdir oldgnu
14147 (cd oldgnu
14148 TEST_TAR_FORMAT=oldgnu
14149 export TEST_TAR_FORMAT
14150 TAR_OPTIONS=\"-H oldgnu\"
14151 export TAR_OPTIONS
14152 rm -rf *
14153
14154
14155 # Force umask
14156 umask 022
14157
14158 # Make sure user's umask is honored, even if we are superuser
14159 TAR_OPTIONS=\"\$TAR_OPTIONS --no-same-permissions\"
14160
14161 # Create a directory
14162 mkdir directory
14163 chmod 777 directory
14164 genfile --stat=mode:777 directory
14165
14166 # Archive it
14167 tar cf arc directory
14168
14169 # Change its permissions ...
14170 chmod 755 directory
14171 genfile --stat=mode:777 directory
14172
14173 # ... and attempt to restore it twice
14174 tar xf arc directory --warning=no-timestamp
14175 genfile --stat=mode:777 directory
14176
14177 tar xf arc directory --warning=no-timestamp
14178 genfile --stat=mode:777 directory
14179
14180 # After both restores, the directory mode should be 755
14181 )"
14182 echo extrac06.at:36 >"$at_check_line_file"
14183
14184 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
14185    false; }; then
14186   ( $at_traceon;
14187 mkdir oldgnu
14188 (cd oldgnu
14189 TEST_TAR_FORMAT=oldgnu
14190 export TEST_TAR_FORMAT
14191 TAR_OPTIONS="-H oldgnu"
14192 export TAR_OPTIONS
14193 rm -rf *
14194
14195
14196 # Force umask
14197 umask 022
14198
14199 # Make sure user's umask is honored, even if we are superuser
14200 TAR_OPTIONS="$TAR_OPTIONS --no-same-permissions"
14201
14202 # Create a directory
14203 mkdir directory
14204 chmod 777 directory
14205 genfile --stat=mode:777 directory
14206
14207 # Archive it
14208 tar cf arc directory
14209
14210 # Change its permissions ...
14211 chmod 755 directory
14212 genfile --stat=mode:777 directory
14213
14214 # ... and attempt to restore it twice
14215 tar xf arc directory --warning=no-timestamp
14216 genfile --stat=mode:777 directory
14217
14218 tar xf arc directory --warning=no-timestamp
14219 genfile --stat=mode:777 directory
14220
14221 # After both restores, the directory mode should be 755
14222 ) ) >"$at_stdout" 2>"$at_stder1"
14223   at_func_filter_trace $?
14224 else
14225   ( :;
14226 mkdir oldgnu
14227 (cd oldgnu
14228 TEST_TAR_FORMAT=oldgnu
14229 export TEST_TAR_FORMAT
14230 TAR_OPTIONS="-H oldgnu"
14231 export TAR_OPTIONS
14232 rm -rf *
14233
14234
14235 # Force umask
14236 umask 022
14237
14238 # Make sure user's umask is honored, even if we are superuser
14239 TAR_OPTIONS="$TAR_OPTIONS --no-same-permissions"
14240
14241 # Create a directory
14242 mkdir directory
14243 chmod 777 directory
14244 genfile --stat=mode:777 directory
14245
14246 # Archive it
14247 tar cf arc directory
14248
14249 # Change its permissions ...
14250 chmod 755 directory
14251 genfile --stat=mode:777 directory
14252
14253 # ... and attempt to restore it twice
14254 tar xf arc directory --warning=no-timestamp
14255 genfile --stat=mode:777 directory
14256
14257 tar xf arc directory --warning=no-timestamp
14258 genfile --stat=mode:777 directory
14259
14260 # After both restores, the directory mode should be 755
14261 ) ) >"$at_stdout" 2>"$at_stderr"
14262 fi
14263 at_status=$?
14264 at_failed=false
14265 at_func_diff_devnull "$at_stderr" || at_failed=:
14266 echo >>"$at_stdout"; $as_echo "777
14267 755
14268 755
14269 755
14270 " | \
14271   $at_diff - "$at_stdout" || at_failed=:
14272 at_func_check_status 0 $at_status "$at_srcdir/extrac06.at:36"
14273
14274 $at_failed && at_func_log_failure
14275 $at_traceon; }
14276
14277               { $at_traceoff
14278 $as_echo "$at_srcdir/extrac06.at:36:
14279 mkdir ustar
14280 (cd ustar
14281 TEST_TAR_FORMAT=ustar
14282 export TEST_TAR_FORMAT
14283 TAR_OPTIONS=\"-H ustar\"
14284 export TAR_OPTIONS
14285 rm -rf *
14286
14287
14288 # Force umask
14289 umask 022
14290
14291 # Make sure user's umask is honored, even if we are superuser
14292 TAR_OPTIONS=\"\$TAR_OPTIONS --no-same-permissions\"
14293
14294 # Create a directory
14295 mkdir directory
14296 chmod 777 directory
14297 genfile --stat=mode:777 directory
14298
14299 # Archive it
14300 tar cf arc directory
14301
14302 # Change its permissions ...
14303 chmod 755 directory
14304 genfile --stat=mode:777 directory
14305
14306 # ... and attempt to restore it twice
14307 tar xf arc directory --warning=no-timestamp
14308 genfile --stat=mode:777 directory
14309
14310 tar xf arc directory --warning=no-timestamp
14311 genfile --stat=mode:777 directory
14312
14313 # After both restores, the directory mode should be 755
14314 )"
14315 echo extrac06.at:36 >"$at_check_line_file"
14316
14317 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
14318    false; }; then
14319   ( $at_traceon;
14320 mkdir ustar
14321 (cd ustar
14322 TEST_TAR_FORMAT=ustar
14323 export TEST_TAR_FORMAT
14324 TAR_OPTIONS="-H ustar"
14325 export TAR_OPTIONS
14326 rm -rf *
14327
14328
14329 # Force umask
14330 umask 022
14331
14332 # Make sure user's umask is honored, even if we are superuser
14333 TAR_OPTIONS="$TAR_OPTIONS --no-same-permissions"
14334
14335 # Create a directory
14336 mkdir directory
14337 chmod 777 directory
14338 genfile --stat=mode:777 directory
14339
14340 # Archive it
14341 tar cf arc directory
14342
14343 # Change its permissions ...
14344 chmod 755 directory
14345 genfile --stat=mode:777 directory
14346
14347 # ... and attempt to restore it twice
14348 tar xf arc directory --warning=no-timestamp
14349 genfile --stat=mode:777 directory
14350
14351 tar xf arc directory --warning=no-timestamp
14352 genfile --stat=mode:777 directory
14353
14354 # After both restores, the directory mode should be 755
14355 ) ) >"$at_stdout" 2>"$at_stder1"
14356   at_func_filter_trace $?
14357 else
14358   ( :;
14359 mkdir ustar
14360 (cd ustar
14361 TEST_TAR_FORMAT=ustar
14362 export TEST_TAR_FORMAT
14363 TAR_OPTIONS="-H ustar"
14364 export TAR_OPTIONS
14365 rm -rf *
14366
14367
14368 # Force umask
14369 umask 022
14370
14371 # Make sure user's umask is honored, even if we are superuser
14372 TAR_OPTIONS="$TAR_OPTIONS --no-same-permissions"
14373
14374 # Create a directory
14375 mkdir directory
14376 chmod 777 directory
14377 genfile --stat=mode:777 directory
14378
14379 # Archive it
14380 tar cf arc directory
14381
14382 # Change its permissions ...
14383 chmod 755 directory
14384 genfile --stat=mode:777 directory
14385
14386 # ... and attempt to restore it twice
14387 tar xf arc directory --warning=no-timestamp
14388 genfile --stat=mode:777 directory
14389
14390 tar xf arc directory --warning=no-timestamp
14391 genfile --stat=mode:777 directory
14392
14393 # After both restores, the directory mode should be 755
14394 ) ) >"$at_stdout" 2>"$at_stderr"
14395 fi
14396 at_status=$?
14397 at_failed=false
14398 at_func_diff_devnull "$at_stderr" || at_failed=:
14399 echo >>"$at_stdout"; $as_echo "777
14400 755
14401 755
14402 755
14403 " | \
14404   $at_diff - "$at_stdout" || at_failed=:
14405 at_func_check_status 0 $at_status "$at_srcdir/extrac06.at:36"
14406
14407 $at_failed && at_func_log_failure
14408 $at_traceon; }
14409
14410               { $at_traceoff
14411 $as_echo "$at_srcdir/extrac06.at:36:
14412 mkdir posix
14413 (cd posix
14414 TEST_TAR_FORMAT=posix
14415 export TEST_TAR_FORMAT
14416 TAR_OPTIONS=\"-H posix\"
14417 export TAR_OPTIONS
14418 rm -rf *
14419
14420
14421 # Force umask
14422 umask 022
14423
14424 # Make sure user's umask is honored, even if we are superuser
14425 TAR_OPTIONS=\"\$TAR_OPTIONS --no-same-permissions\"
14426
14427 # Create a directory
14428 mkdir directory
14429 chmod 777 directory
14430 genfile --stat=mode:777 directory
14431
14432 # Archive it
14433 tar cf arc directory
14434
14435 # Change its permissions ...
14436 chmod 755 directory
14437 genfile --stat=mode:777 directory
14438
14439 # ... and attempt to restore it twice
14440 tar xf arc directory --warning=no-timestamp
14441 genfile --stat=mode:777 directory
14442
14443 tar xf arc directory --warning=no-timestamp
14444 genfile --stat=mode:777 directory
14445
14446 # After both restores, the directory mode should be 755
14447 )"
14448 echo extrac06.at:36 >"$at_check_line_file"
14449
14450 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
14451    false; }; then
14452   ( $at_traceon;
14453 mkdir posix
14454 (cd posix
14455 TEST_TAR_FORMAT=posix
14456 export TEST_TAR_FORMAT
14457 TAR_OPTIONS="-H posix"
14458 export TAR_OPTIONS
14459 rm -rf *
14460
14461
14462 # Force umask
14463 umask 022
14464
14465 # Make sure user's umask is honored, even if we are superuser
14466 TAR_OPTIONS="$TAR_OPTIONS --no-same-permissions"
14467
14468 # Create a directory
14469 mkdir directory
14470 chmod 777 directory
14471 genfile --stat=mode:777 directory
14472
14473 # Archive it
14474 tar cf arc directory
14475
14476 # Change its permissions ...
14477 chmod 755 directory
14478 genfile --stat=mode:777 directory
14479
14480 # ... and attempt to restore it twice
14481 tar xf arc directory --warning=no-timestamp
14482 genfile --stat=mode:777 directory
14483
14484 tar xf arc directory --warning=no-timestamp
14485 genfile --stat=mode:777 directory
14486
14487 # After both restores, the directory mode should be 755
14488 ) ) >"$at_stdout" 2>"$at_stder1"
14489   at_func_filter_trace $?
14490 else
14491   ( :;
14492 mkdir posix
14493 (cd posix
14494 TEST_TAR_FORMAT=posix
14495 export TEST_TAR_FORMAT
14496 TAR_OPTIONS="-H posix"
14497 export TAR_OPTIONS
14498 rm -rf *
14499
14500
14501 # Force umask
14502 umask 022
14503
14504 # Make sure user's umask is honored, even if we are superuser
14505 TAR_OPTIONS="$TAR_OPTIONS --no-same-permissions"
14506
14507 # Create a directory
14508 mkdir directory
14509 chmod 777 directory
14510 genfile --stat=mode:777 directory
14511
14512 # Archive it
14513 tar cf arc directory
14514
14515 # Change its permissions ...
14516 chmod 755 directory
14517 genfile --stat=mode:777 directory
14518
14519 # ... and attempt to restore it twice
14520 tar xf arc directory --warning=no-timestamp
14521 genfile --stat=mode:777 directory
14522
14523 tar xf arc directory --warning=no-timestamp
14524 genfile --stat=mode:777 directory
14525
14526 # After both restores, the directory mode should be 755
14527 ) ) >"$at_stdout" 2>"$at_stderr"
14528 fi
14529 at_status=$?
14530 at_failed=false
14531 at_func_diff_devnull "$at_stderr" || at_failed=:
14532 echo >>"$at_stdout"; $as_echo "777
14533 755
14534 755
14535 755
14536 " | \
14537   $at_diff - "$at_stdout" || at_failed=:
14538 at_func_check_status 0 $at_status "$at_srcdir/extrac06.at:36"
14539
14540 $at_failed && at_func_log_failure
14541 $at_traceon; }
14542
14543               { $at_traceoff
14544 $as_echo "$at_srcdir/extrac06.at:36:
14545 mkdir gnu
14546 (cd gnu
14547 TEST_TAR_FORMAT=gnu
14548 export TEST_TAR_FORMAT
14549 TAR_OPTIONS=\"-H gnu\"
14550 export TAR_OPTIONS
14551 rm -rf *
14552
14553
14554 # Force umask
14555 umask 022
14556
14557 # Make sure user's umask is honored, even if we are superuser
14558 TAR_OPTIONS=\"\$TAR_OPTIONS --no-same-permissions\"
14559
14560 # Create a directory
14561 mkdir directory
14562 chmod 777 directory
14563 genfile --stat=mode:777 directory
14564
14565 # Archive it
14566 tar cf arc directory
14567
14568 # Change its permissions ...
14569 chmod 755 directory
14570 genfile --stat=mode:777 directory
14571
14572 # ... and attempt to restore it twice
14573 tar xf arc directory --warning=no-timestamp
14574 genfile --stat=mode:777 directory
14575
14576 tar xf arc directory --warning=no-timestamp
14577 genfile --stat=mode:777 directory
14578
14579 # After both restores, the directory mode should be 755
14580 )"
14581 echo extrac06.at:36 >"$at_check_line_file"
14582
14583 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
14584    false; }; then
14585   ( $at_traceon;
14586 mkdir gnu
14587 (cd gnu
14588 TEST_TAR_FORMAT=gnu
14589 export TEST_TAR_FORMAT
14590 TAR_OPTIONS="-H gnu"
14591 export TAR_OPTIONS
14592 rm -rf *
14593
14594
14595 # Force umask
14596 umask 022
14597
14598 # Make sure user's umask is honored, even if we are superuser
14599 TAR_OPTIONS="$TAR_OPTIONS --no-same-permissions"
14600
14601 # Create a directory
14602 mkdir directory
14603 chmod 777 directory
14604 genfile --stat=mode:777 directory
14605
14606 # Archive it
14607 tar cf arc directory
14608
14609 # Change its permissions ...
14610 chmod 755 directory
14611 genfile --stat=mode:777 directory
14612
14613 # ... and attempt to restore it twice
14614 tar xf arc directory --warning=no-timestamp
14615 genfile --stat=mode:777 directory
14616
14617 tar xf arc directory --warning=no-timestamp
14618 genfile --stat=mode:777 directory
14619
14620 # After both restores, the directory mode should be 755
14621 ) ) >"$at_stdout" 2>"$at_stder1"
14622   at_func_filter_trace $?
14623 else
14624   ( :;
14625 mkdir gnu
14626 (cd gnu
14627 TEST_TAR_FORMAT=gnu
14628 export TEST_TAR_FORMAT
14629 TAR_OPTIONS="-H gnu"
14630 export TAR_OPTIONS
14631 rm -rf *
14632
14633
14634 # Force umask
14635 umask 022
14636
14637 # Make sure user's umask is honored, even if we are superuser
14638 TAR_OPTIONS="$TAR_OPTIONS --no-same-permissions"
14639
14640 # Create a directory
14641 mkdir directory
14642 chmod 777 directory
14643 genfile --stat=mode:777 directory
14644
14645 # Archive it
14646 tar cf arc directory
14647
14648 # Change its permissions ...
14649 chmod 755 directory
14650 genfile --stat=mode:777 directory
14651
14652 # ... and attempt to restore it twice
14653 tar xf arc directory --warning=no-timestamp
14654 genfile --stat=mode:777 directory
14655
14656 tar xf arc directory --warning=no-timestamp
14657 genfile --stat=mode:777 directory
14658
14659 # After both restores, the directory mode should be 755
14660 ) ) >"$at_stdout" 2>"$at_stderr"
14661 fi
14662 at_status=$?
14663 at_failed=false
14664 at_func_diff_devnull "$at_stderr" || at_failed=:
14665 echo >>"$at_stdout"; $as_echo "777
14666 755
14667 755
14668 755
14669 " | \
14670   $at_diff - "$at_stdout" || at_failed=:
14671 at_func_check_status 0 $at_status "$at_srcdir/extrac06.at:36"
14672
14673 $at_failed && at_func_log_failure
14674 $at_traceon; }
14675
14676
14677
14678
14679   $at_traceoff
14680   $at_times_p && times >"$at_times_file"
14681 ) 5>&1 2>&1 | eval $at_tee_pipe
14682 at_status=`cat "$at_status_file"`
14683 #AT_STOP_32
14684 #AT_START_33
14685 # 33. extrac07.at:27: extracting symlinks to a read-only dir
14686 at_setup_line='extrac07.at:27'
14687 at_desc="extracting symlinks to a read-only dir"
14688 $at_quiet $as_echo_n " 33: $at_desc         "
14689 at_xfail=no
14690       test -f $XFAILFILE && at_xfail=yes
14691 echo "#                             -*- compilation -*-" >> "$at_group_log"
14692 (
14693   $as_echo "33. extrac07.at:27: testing ..."
14694   $at_traceon
14695
14696
14697
14698
14699
14700   { $at_traceoff
14701 $as_echo "$at_srcdir/extrac07.at:30:
14702 mkdir ustar
14703 (cd ustar
14704 TEST_TAR_FORMAT=ustar
14705 export TEST_TAR_FORMAT
14706 TAR_OPTIONS=\"-H ustar\"
14707 export TAR_OPTIONS
14708 rm -rf *
14709
14710
14711 echo "test" > $$
14712 chmod 0 $$
14713 cat $$ > /dev/null 2>&1
14714 result=$?
14715 rm -f $$
14716 test $result -eq 0 && exit 77
14717
14718
14719 echo Prepare the directory
14720 mkdir dir
14721 genfile -f foo
14722 cd dir
14723 ln -s ../foo .
14724 cd ..
14725 chmod a-w dir
14726
14727 echo Create the archive
14728 tar cf archive dir || exit 1
14729
14730 chmod +w dir
14731
14732 echo Extract
14733 mkdir out
14734 tar -C out -xvf archive
14735 )"
14736 echo extrac07.at:30 >"$at_check_line_file"
14737
14738 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
14739    false; }; then
14740   ( $at_traceon;
14741 mkdir ustar
14742 (cd ustar
14743 TEST_TAR_FORMAT=ustar
14744 export TEST_TAR_FORMAT
14745 TAR_OPTIONS="-H ustar"
14746 export TAR_OPTIONS
14747 rm -rf *
14748
14749
14750 echo "test" > $$
14751 chmod 0 $$
14752 cat $$ > /dev/null 2>&1
14753 result=$?
14754 rm -f $$
14755 test $result -eq 0 && exit 77
14756
14757
14758 echo Prepare the directory
14759 mkdir dir
14760 genfile -f foo
14761 cd dir
14762 ln -s ../foo .
14763 cd ..
14764 chmod a-w dir
14765
14766 echo Create the archive
14767 tar cf archive dir || exit 1
14768
14769 chmod +w dir
14770
14771 echo Extract
14772 mkdir out
14773 tar -C out -xvf archive
14774 ) ) >"$at_stdout" 2>"$at_stder1"
14775   at_func_filter_trace $?
14776 else
14777   ( :;
14778 mkdir ustar
14779 (cd ustar
14780 TEST_TAR_FORMAT=ustar
14781 export TEST_TAR_FORMAT
14782 TAR_OPTIONS="-H ustar"
14783 export TAR_OPTIONS
14784 rm -rf *
14785
14786
14787 echo "test" > $$
14788 chmod 0 $$
14789 cat $$ > /dev/null 2>&1
14790 result=$?
14791 rm -f $$
14792 test $result -eq 0 && exit 77
14793
14794
14795 echo Prepare the directory
14796 mkdir dir
14797 genfile -f foo
14798 cd dir
14799 ln -s ../foo .
14800 cd ..
14801 chmod a-w dir
14802
14803 echo Create the archive
14804 tar cf archive dir || exit 1
14805
14806 chmod +w dir
14807
14808 echo Extract
14809 mkdir out
14810 tar -C out -xvf archive
14811 ) ) >"$at_stdout" 2>"$at_stderr"
14812 fi
14813 at_status=$?
14814 at_failed=false
14815 at_func_diff_devnull "$at_stderr" || at_failed=:
14816 echo >>"$at_stdout"; $as_echo "Prepare the directory
14817 Create the archive
14818 Extract
14819 dir/
14820 dir/foo
14821 " | \
14822   $at_diff - "$at_stdout" || at_failed=:
14823 at_func_check_status 0 $at_status "$at_srcdir/extrac07.at:30"
14824
14825 $at_failed && at_func_log_failure
14826 $at_traceon; }
14827
14828
14829  # Testing one format is enough
14830
14831   $at_traceoff
14832   $at_times_p && times >"$at_times_file"
14833 ) 5>&1 2>&1 | eval $at_tee_pipe
14834 at_status=`cat "$at_status_file"`
14835 #AT_STOP_33
14836 #AT_START_34
14837 # 34. extrac08.at:33: restoring mode on existing directory
14838 at_setup_line='extrac08.at:33'
14839 at_desc="restoring mode on existing directory"
14840 $at_quiet $as_echo_n " 34: $at_desc           "
14841 at_xfail=no
14842       test -f $XFAILFILE && at_xfail=yes
14843 echo "#                             -*- compilation -*-" >> "$at_group_log"
14844 (
14845   $as_echo "34. extrac08.at:33: testing ..."
14846   $at_traceon
14847
14848
14849
14850
14851
14852   { $at_traceoff
14853 $as_echo "$at_srcdir/extrac08.at:36:
14854 mkdir v7
14855 (cd v7
14856 TEST_TAR_FORMAT=v7
14857 export TEST_TAR_FORMAT
14858 TAR_OPTIONS=\"-H v7\"
14859 export TAR_OPTIONS
14860 rm -rf *
14861
14862 umask 000
14863 mkdir dir
14864 chmod 755 dir
14865 echo bla > dir/file
14866 tar cf test.tar dir
14867 chmod 700 dir
14868 tar xfv test.tar --warning=no-timestamp
14869 genfile --stat=mode.777 dir
14870 )"
14871 echo extrac08.at:36 >"$at_check_line_file"
14872
14873 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
14874    false; }; then
14875   ( $at_traceon;
14876 mkdir v7
14877 (cd v7
14878 TEST_TAR_FORMAT=v7
14879 export TEST_TAR_FORMAT
14880 TAR_OPTIONS="-H v7"
14881 export TAR_OPTIONS
14882 rm -rf *
14883
14884 umask 000
14885 mkdir dir
14886 chmod 755 dir
14887 echo bla > dir/file
14888 tar cf test.tar dir
14889 chmod 700 dir
14890 tar xfv test.tar --warning=no-timestamp
14891 genfile --stat=mode.777 dir
14892 ) ) >"$at_stdout" 2>"$at_stder1"
14893   at_func_filter_trace $?
14894 else
14895   ( :;
14896 mkdir v7
14897 (cd v7
14898 TEST_TAR_FORMAT=v7
14899 export TEST_TAR_FORMAT
14900 TAR_OPTIONS="-H v7"
14901 export TAR_OPTIONS
14902 rm -rf *
14903
14904 umask 000
14905 mkdir dir
14906 chmod 755 dir
14907 echo bla > dir/file
14908 tar cf test.tar dir
14909 chmod 700 dir
14910 tar xfv test.tar --warning=no-timestamp
14911 genfile --stat=mode.777 dir
14912 ) ) >"$at_stdout" 2>"$at_stderr"
14913 fi
14914 at_status=$?
14915 at_failed=false
14916 at_func_diff_devnull "$at_stderr" || at_failed=:
14917 echo >>"$at_stdout"; $as_echo "dir/
14918 dir/file
14919 755
14920 " | \
14921   $at_diff - "$at_stdout" || at_failed=:
14922 at_func_check_status 0 $at_status "$at_srcdir/extrac08.at:36"
14923
14924 $at_failed && at_func_log_failure
14925 $at_traceon; }
14926
14927               { $at_traceoff
14928 $as_echo "$at_srcdir/extrac08.at:36:
14929 mkdir oldgnu
14930 (cd oldgnu
14931 TEST_TAR_FORMAT=oldgnu
14932 export TEST_TAR_FORMAT
14933 TAR_OPTIONS=\"-H oldgnu\"
14934 export TAR_OPTIONS
14935 rm -rf *
14936
14937 umask 000
14938 mkdir dir
14939 chmod 755 dir
14940 echo bla > dir/file
14941 tar cf test.tar dir
14942 chmod 700 dir
14943 tar xfv test.tar --warning=no-timestamp
14944 genfile --stat=mode.777 dir
14945 )"
14946 echo extrac08.at:36 >"$at_check_line_file"
14947
14948 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
14949    false; }; then
14950   ( $at_traceon;
14951 mkdir oldgnu
14952 (cd oldgnu
14953 TEST_TAR_FORMAT=oldgnu
14954 export TEST_TAR_FORMAT
14955 TAR_OPTIONS="-H oldgnu"
14956 export TAR_OPTIONS
14957 rm -rf *
14958
14959 umask 000
14960 mkdir dir
14961 chmod 755 dir
14962 echo bla > dir/file
14963 tar cf test.tar dir
14964 chmod 700 dir
14965 tar xfv test.tar --warning=no-timestamp
14966 genfile --stat=mode.777 dir
14967 ) ) >"$at_stdout" 2>"$at_stder1"
14968   at_func_filter_trace $?
14969 else
14970   ( :;
14971 mkdir oldgnu
14972 (cd oldgnu
14973 TEST_TAR_FORMAT=oldgnu
14974 export TEST_TAR_FORMAT
14975 TAR_OPTIONS="-H oldgnu"
14976 export TAR_OPTIONS
14977 rm -rf *
14978
14979 umask 000
14980 mkdir dir
14981 chmod 755 dir
14982 echo bla > dir/file
14983 tar cf test.tar dir
14984 chmod 700 dir
14985 tar xfv test.tar --warning=no-timestamp
14986 genfile --stat=mode.777 dir
14987 ) ) >"$at_stdout" 2>"$at_stderr"
14988 fi
14989 at_status=$?
14990 at_failed=false
14991 at_func_diff_devnull "$at_stderr" || at_failed=:
14992 echo >>"$at_stdout"; $as_echo "dir/
14993 dir/file
14994 755
14995 " | \
14996   $at_diff - "$at_stdout" || at_failed=:
14997 at_func_check_status 0 $at_status "$at_srcdir/extrac08.at:36"
14998
14999 $at_failed && at_func_log_failure
15000 $at_traceon; }
15001
15002               { $at_traceoff
15003 $as_echo "$at_srcdir/extrac08.at:36:
15004 mkdir ustar
15005 (cd ustar
15006 TEST_TAR_FORMAT=ustar
15007 export TEST_TAR_FORMAT
15008 TAR_OPTIONS=\"-H ustar\"
15009 export TAR_OPTIONS
15010 rm -rf *
15011
15012 umask 000
15013 mkdir dir
15014 chmod 755 dir
15015 echo bla > dir/file
15016 tar cf test.tar dir
15017 chmod 700 dir
15018 tar xfv test.tar --warning=no-timestamp
15019 genfile --stat=mode.777 dir
15020 )"
15021 echo extrac08.at:36 >"$at_check_line_file"
15022
15023 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
15024    false; }; then
15025   ( $at_traceon;
15026 mkdir ustar
15027 (cd ustar
15028 TEST_TAR_FORMAT=ustar
15029 export TEST_TAR_FORMAT
15030 TAR_OPTIONS="-H ustar"
15031 export TAR_OPTIONS
15032 rm -rf *
15033
15034 umask 000
15035 mkdir dir
15036 chmod 755 dir
15037 echo bla > dir/file
15038 tar cf test.tar dir
15039 chmod 700 dir
15040 tar xfv test.tar --warning=no-timestamp
15041 genfile --stat=mode.777 dir
15042 ) ) >"$at_stdout" 2>"$at_stder1"
15043   at_func_filter_trace $?
15044 else
15045   ( :;
15046 mkdir ustar
15047 (cd ustar
15048 TEST_TAR_FORMAT=ustar
15049 export TEST_TAR_FORMAT
15050 TAR_OPTIONS="-H ustar"
15051 export TAR_OPTIONS
15052 rm -rf *
15053
15054 umask 000
15055 mkdir dir
15056 chmod 755 dir
15057 echo bla > dir/file
15058 tar cf test.tar dir
15059 chmod 700 dir
15060 tar xfv test.tar --warning=no-timestamp
15061 genfile --stat=mode.777 dir
15062 ) ) >"$at_stdout" 2>"$at_stderr"
15063 fi
15064 at_status=$?
15065 at_failed=false
15066 at_func_diff_devnull "$at_stderr" || at_failed=:
15067 echo >>"$at_stdout"; $as_echo "dir/
15068 dir/file
15069 755
15070 " | \
15071   $at_diff - "$at_stdout" || at_failed=:
15072 at_func_check_status 0 $at_status "$at_srcdir/extrac08.at:36"
15073
15074 $at_failed && at_func_log_failure
15075 $at_traceon; }
15076
15077               { $at_traceoff
15078 $as_echo "$at_srcdir/extrac08.at:36:
15079 mkdir posix
15080 (cd posix
15081 TEST_TAR_FORMAT=posix
15082 export TEST_TAR_FORMAT
15083 TAR_OPTIONS=\"-H posix\"
15084 export TAR_OPTIONS
15085 rm -rf *
15086
15087 umask 000
15088 mkdir dir
15089 chmod 755 dir
15090 echo bla > dir/file
15091 tar cf test.tar dir
15092 chmod 700 dir
15093 tar xfv test.tar --warning=no-timestamp
15094 genfile --stat=mode.777 dir
15095 )"
15096 echo extrac08.at:36 >"$at_check_line_file"
15097
15098 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
15099    false; }; then
15100   ( $at_traceon;
15101 mkdir posix
15102 (cd posix
15103 TEST_TAR_FORMAT=posix
15104 export TEST_TAR_FORMAT
15105 TAR_OPTIONS="-H posix"
15106 export TAR_OPTIONS
15107 rm -rf *
15108
15109 umask 000
15110 mkdir dir
15111 chmod 755 dir
15112 echo bla > dir/file
15113 tar cf test.tar dir
15114 chmod 700 dir
15115 tar xfv test.tar --warning=no-timestamp
15116 genfile --stat=mode.777 dir
15117 ) ) >"$at_stdout" 2>"$at_stder1"
15118   at_func_filter_trace $?
15119 else
15120   ( :;
15121 mkdir posix
15122 (cd posix
15123 TEST_TAR_FORMAT=posix
15124 export TEST_TAR_FORMAT
15125 TAR_OPTIONS="-H posix"
15126 export TAR_OPTIONS
15127 rm -rf *
15128
15129 umask 000
15130 mkdir dir
15131 chmod 755 dir
15132 echo bla > dir/file
15133 tar cf test.tar dir
15134 chmod 700 dir
15135 tar xfv test.tar --warning=no-timestamp
15136 genfile --stat=mode.777 dir
15137 ) ) >"$at_stdout" 2>"$at_stderr"
15138 fi
15139 at_status=$?
15140 at_failed=false
15141 at_func_diff_devnull "$at_stderr" || at_failed=:
15142 echo >>"$at_stdout"; $as_echo "dir/
15143 dir/file
15144 755
15145 " | \
15146   $at_diff - "$at_stdout" || at_failed=:
15147 at_func_check_status 0 $at_status "$at_srcdir/extrac08.at:36"
15148
15149 $at_failed && at_func_log_failure
15150 $at_traceon; }
15151
15152               { $at_traceoff
15153 $as_echo "$at_srcdir/extrac08.at:36:
15154 mkdir gnu
15155 (cd gnu
15156 TEST_TAR_FORMAT=gnu
15157 export TEST_TAR_FORMAT
15158 TAR_OPTIONS=\"-H gnu\"
15159 export TAR_OPTIONS
15160 rm -rf *
15161
15162 umask 000
15163 mkdir dir
15164 chmod 755 dir
15165 echo bla > dir/file
15166 tar cf test.tar dir
15167 chmod 700 dir
15168 tar xfv test.tar --warning=no-timestamp
15169 genfile --stat=mode.777 dir
15170 )"
15171 echo extrac08.at:36 >"$at_check_line_file"
15172
15173 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
15174    false; }; then
15175   ( $at_traceon;
15176 mkdir gnu
15177 (cd gnu
15178 TEST_TAR_FORMAT=gnu
15179 export TEST_TAR_FORMAT
15180 TAR_OPTIONS="-H gnu"
15181 export TAR_OPTIONS
15182 rm -rf *
15183
15184 umask 000
15185 mkdir dir
15186 chmod 755 dir
15187 echo bla > dir/file
15188 tar cf test.tar dir
15189 chmod 700 dir
15190 tar xfv test.tar --warning=no-timestamp
15191 genfile --stat=mode.777 dir
15192 ) ) >"$at_stdout" 2>"$at_stder1"
15193   at_func_filter_trace $?
15194 else
15195   ( :;
15196 mkdir gnu
15197 (cd gnu
15198 TEST_TAR_FORMAT=gnu
15199 export TEST_TAR_FORMAT
15200 TAR_OPTIONS="-H gnu"
15201 export TAR_OPTIONS
15202 rm -rf *
15203
15204 umask 000
15205 mkdir dir
15206 chmod 755 dir
15207 echo bla > dir/file
15208 tar cf test.tar dir
15209 chmod 700 dir
15210 tar xfv test.tar --warning=no-timestamp
15211 genfile --stat=mode.777 dir
15212 ) ) >"$at_stdout" 2>"$at_stderr"
15213 fi
15214 at_status=$?
15215 at_failed=false
15216 at_func_diff_devnull "$at_stderr" || at_failed=:
15217 echo >>"$at_stdout"; $as_echo "dir/
15218 dir/file
15219 755
15220 " | \
15221   $at_diff - "$at_stdout" || at_failed=:
15222 at_func_check_status 0 $at_status "$at_srcdir/extrac08.at:36"
15223
15224 $at_failed && at_func_log_failure
15225 $at_traceon; }
15226
15227
15228
15229
15230   $at_traceoff
15231   $at_times_p && times >"$at_times_file"
15232 ) 5>&1 2>&1 | eval $at_tee_pipe
15233 at_status=`cat "$at_status_file"`
15234 #AT_STOP_34
15235 #AT_START_35
15236 # 35. extrac09.at:22: no need to save dir with unreadable . and ..
15237 at_setup_line='extrac09.at:22'
15238 at_desc="no need to save dir with unreadable . and .."
15239 $at_quiet $as_echo_n " 35: $at_desc   "
15240 at_xfail=no
15241       test -f $XFAILFILE && at_xfail=yes
15242 echo "#                             -*- compilation -*-" >> "$at_group_log"
15243 (
15244   $as_echo "35. extrac09.at:22: testing ..."
15245   $at_traceon
15246
15247
15248
15249
15250
15251   { $at_traceoff
15252 $as_echo "$at_srcdir/extrac09.at:25:
15253 mkdir gnu
15254 (cd gnu
15255 TEST_TAR_FORMAT=gnu
15256 export TEST_TAR_FORMAT
15257 TAR_OPTIONS=\"-H gnu\"
15258 export TAR_OPTIONS
15259 rm -rf *
15260
15261
15262 echo "test" > $$
15263 chmod 0 $$
15264 cat $$ > /dev/null 2>&1
15265 result=$?
15266 rm -f $$
15267 test $result -eq 0 && exit 77
15268
15269
15270 mkdir dir
15271 mkdir dir/sub
15272 mkdir dir/sub/extract
15273 genfile --file dir/sub/f
15274 cd dir/sub
15275
15276 tar -cf archive.tar f
15277
15278 chmod a-r . ..
15279 tar -xvf archive.tar -C extract f
15280 status=\$?
15281 chmod a+r . ..
15282 cmp f extract/f || status=\$?
15283 exit \$status
15284 )"
15285 echo extrac09.at:25 >"$at_check_line_file"
15286
15287 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
15288    false; }; then
15289   ( $at_traceon;
15290 mkdir gnu
15291 (cd gnu
15292 TEST_TAR_FORMAT=gnu
15293 export TEST_TAR_FORMAT
15294 TAR_OPTIONS="-H gnu"
15295 export TAR_OPTIONS
15296 rm -rf *
15297
15298
15299 echo "test" > $$
15300 chmod 0 $$
15301 cat $$ > /dev/null 2>&1
15302 result=$?
15303 rm -f $$
15304 test $result -eq 0 && exit 77
15305
15306
15307 mkdir dir
15308 mkdir dir/sub
15309 mkdir dir/sub/extract
15310 genfile --file dir/sub/f
15311 cd dir/sub
15312
15313 tar -cf archive.tar f
15314
15315 chmod a-r . ..
15316 tar -xvf archive.tar -C extract f
15317 status=$?
15318 chmod a+r . ..
15319 cmp f extract/f || status=$?
15320 exit $status
15321 ) ) >"$at_stdout" 2>"$at_stder1"
15322   at_func_filter_trace $?
15323 else
15324   ( :;
15325 mkdir gnu
15326 (cd gnu
15327 TEST_TAR_FORMAT=gnu
15328 export TEST_TAR_FORMAT
15329 TAR_OPTIONS="-H gnu"
15330 export TAR_OPTIONS
15331 rm -rf *
15332
15333
15334 echo "test" > $$
15335 chmod 0 $$
15336 cat $$ > /dev/null 2>&1
15337 result=$?
15338 rm -f $$
15339 test $result -eq 0 && exit 77
15340
15341
15342 mkdir dir
15343 mkdir dir/sub
15344 mkdir dir/sub/extract
15345 genfile --file dir/sub/f
15346 cd dir/sub
15347
15348 tar -cf archive.tar f
15349
15350 chmod a-r . ..
15351 tar -xvf archive.tar -C extract f
15352 status=$?
15353 chmod a+r . ..
15354 cmp f extract/f || status=$?
15355 exit $status
15356 ) ) >"$at_stdout" 2>"$at_stderr"
15357 fi
15358 at_status=$?
15359 at_failed=false
15360 at_func_diff_devnull "$at_stderr" || at_failed=:
15361 echo >>"$at_stdout"; $as_echo "f
15362 " | \
15363   $at_diff - "$at_stdout" || at_failed=:
15364 at_func_check_status 0 $at_status "$at_srcdir/extrac09.at:25"
15365
15366 $at_failed && at_func_log_failure
15367 $at_traceon; }
15368
15369
15370
15371
15372   $at_traceoff
15373   $at_times_p && times >"$at_times_file"
15374 ) 5>&1 2>&1 | eval $at_tee_pipe
15375 at_status=`cat "$at_status_file"`
15376 #AT_STOP_35
15377 #AT_START_36
15378 # 36. extrac10.at:27: -C and delayed setting of metadata
15379 at_setup_line='extrac10.at:27'
15380 at_desc="-C and delayed setting of metadata"
15381 $at_quiet $as_echo_n " 36: $at_desc             "
15382 at_xfail=no
15383       test -f $XFAILFILE && at_xfail=yes
15384 echo "#                             -*- compilation -*-" >> "$at_group_log"
15385 (
15386   $as_echo "36. extrac10.at:27: testing ..."
15387   $at_traceon
15388
15389
15390
15391
15392
15393   { $at_traceoff
15394 $as_echo "$at_srcdir/extrac10.at:30:
15395 mkdir gnu
15396 (cd gnu
15397 TEST_TAR_FORMAT=gnu
15398 export TEST_TAR_FORMAT
15399 TAR_OPTIONS=\"-H gnu\"
15400 export TAR_OPTIONS
15401 rm -rf *
15402
15403 mkdir d x x/y
15404 echo foo >d/d1
15405 echo bar >e
15406
15407 tar -cf archive.tar d e &&
15408 tar -xf archive.tar -C x d -C y e &&
15409 diff -r d x/d &&
15410 diff e x/y/e
15411 )"
15412 echo extrac10.at:30 >"$at_check_line_file"
15413
15414 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
15415    false; }; then
15416   ( $at_traceon;
15417 mkdir gnu
15418 (cd gnu
15419 TEST_TAR_FORMAT=gnu
15420 export TEST_TAR_FORMAT
15421 TAR_OPTIONS="-H gnu"
15422 export TAR_OPTIONS
15423 rm -rf *
15424
15425 mkdir d x x/y
15426 echo foo >d/d1
15427 echo bar >e
15428
15429 tar -cf archive.tar d e &&
15430 tar -xf archive.tar -C x d -C y e &&
15431 diff -r d x/d &&
15432 diff e x/y/e
15433 ) ) >"$at_stdout" 2>"$at_stder1"
15434   at_func_filter_trace $?
15435 else
15436   ( :;
15437 mkdir gnu
15438 (cd gnu
15439 TEST_TAR_FORMAT=gnu
15440 export TEST_TAR_FORMAT
15441 TAR_OPTIONS="-H gnu"
15442 export TAR_OPTIONS
15443 rm -rf *
15444
15445 mkdir d x x/y
15446 echo foo >d/d1
15447 echo bar >e
15448
15449 tar -cf archive.tar d e &&
15450 tar -xf archive.tar -C x d -C y e &&
15451 diff -r d x/d &&
15452 diff e x/y/e
15453 ) ) >"$at_stdout" 2>"$at_stderr"
15454 fi
15455 at_status=$?
15456 at_failed=false
15457 at_func_diff_devnull "$at_stderr" || at_failed=:
15458 at_func_diff_devnull "$at_stdout" || at_failed=:
15459 at_func_check_status 0 $at_status "$at_srcdir/extrac10.at:30"
15460
15461 $at_failed && at_func_log_failure
15462 $at_traceon; }
15463
15464
15465
15466
15467   $at_traceoff
15468   $at_times_p && times >"$at_times_file"
15469 ) 5>&1 2>&1 | eval $at_tee_pipe
15470 at_status=`cat "$at_status_file"`
15471 #AT_STOP_36
15472 #AT_START_37
15473 # 37. extrac11.at:23: scarce file descriptors
15474 at_setup_line='extrac11.at:23'
15475 at_desc="scarce file descriptors"
15476 $at_quiet $as_echo_n " 37: $at_desc                        "
15477 at_xfail=no
15478       test -f $XFAILFILE && at_xfail=yes
15479 echo "#                             -*- compilation -*-" >> "$at_group_log"
15480 (
15481   $as_echo "37. extrac11.at:23: testing ..."
15482   $at_traceon
15483
15484
15485
15486
15487
15488   { $at_traceoff
15489 $as_echo "$at_srcdir/extrac11.at:26:
15490 mkdir gnu
15491 (cd gnu
15492 TEST_TAR_FORMAT=gnu
15493 export TEST_TAR_FORMAT
15494 TAR_OPTIONS=\"-H gnu\"
15495 export TAR_OPTIONS
15496 rm -rf *
15497
15498 exec </dev/null
15499 dirs='a
15500       a/b
15501       a/b/c
15502       a/b/c/d
15503       a/b/c/d/e
15504       a/b/c/d/e/f
15505       a/b/c/d/e/f/g
15506       a/b/c/d/e/f/g/h
15507       a/b/c/d/e/f/g/h/i
15508       a/b/c/d/e/f/g/h/i/j
15509       a/b/c/d/e/f/g/h/i/j/k
15510 '
15511 files=
15512 mkdir \$dirs dest1 dest2 dest3 || exit
15513 for dir in \$dirs; do
15514   for file in X Y Z; do
15515     echo \$file >\$dir/\$file || exit
15516     files=\"\$files \$file\"
15517   done
15518 done
15519
15520 # Check that \"ulimit\" itself works.  Close file descriptors before
15521 # invoking ulimit, to work around a bug (or a \"feature\") in some shells,
15522 # where they squirrel away dups of file descriptors into FD 10 and up
15523 # before closing the originals.
15524 ( (exec 3<&- 4<&- 5<&- 6<&- 7<&- 8<&- 9<&- &&
15525    ulimit -n 100 &&
15526    tar -cf archive1.tar a &&
15527    tar -xf archive1.tar -C dest1 a
15528   ) &&
15529   diff -r a dest1/a
15530 ) >/dev/null 2>&1 ||
15531    exit 77
15532
15533 # Another test that \"ulimit\" itself works:
15534 # tar should fail when completely starved of file descriptors.
15535 ( (exec 3<&- 4<&- 5<&- 6<&- 7<&- 8<&- 9<&- &&
15536    ulimit -n 4 &&
15537    tar -cf archive2.tar a &&
15538    tar -xf archive2.tar -C dest2 a
15539   ) &&
15540   diff -r a dest2/a
15541 ) >/dev/null 2>&1 &&
15542    exit 77
15543
15544 # Tar should work when there are few, but enough, file descriptors.
15545 ( (exec 3<&- 4<&- 5<&- 6<&- 7<&- 8<&- 9<&- &&
15546    ulimit -n 10 &&
15547    tar -cf archive3.tar a &&
15548    tar -xf archive3.tar -C dest3 a
15549   ) &&
15550   diff -r a dest3/a >/dev/null 2>&1
15551 ) || { diff -r a dest3/a; exit 1; }
15552 )"
15553 echo extrac11.at:26 >"$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 gnu
15559 (cd gnu
15560 TEST_TAR_FORMAT=gnu
15561 export TEST_TAR_FORMAT
15562 TAR_OPTIONS="-H gnu"
15563 export TAR_OPTIONS
15564 rm -rf *
15565
15566 exec </dev/null
15567 dirs='a
15568       a/b
15569       a/b/c
15570       a/b/c/d
15571       a/b/c/d/e
15572       a/b/c/d/e/f
15573       a/b/c/d/e/f/g
15574       a/b/c/d/e/f/g/h
15575       a/b/c/d/e/f/g/h/i
15576       a/b/c/d/e/f/g/h/i/j
15577       a/b/c/d/e/f/g/h/i/j/k
15578 '
15579 files=
15580 mkdir $dirs dest1 dest2 dest3 || exit
15581 for dir in $dirs; do
15582   for file in X Y Z; do
15583     echo $file >$dir/$file || exit
15584     files="$files $file"
15585   done
15586 done
15587
15588 # Check that "ulimit" itself works.  Close file descriptors before
15589 # invoking ulimit, to work around a bug (or a "feature") in some shells,
15590 # where they squirrel away dups of file descriptors into FD 10 and up
15591 # before closing the originals.
15592 ( (exec 3<&- 4<&- 5<&- 6<&- 7<&- 8<&- 9<&- &&
15593    ulimit -n 100 &&
15594    tar -cf archive1.tar a &&
15595    tar -xf archive1.tar -C dest1 a
15596   ) &&
15597   diff -r a dest1/a
15598 ) >/dev/null 2>&1 ||
15599    exit 77
15600
15601 # Another test that "ulimit" itself works:
15602 # tar should fail when completely starved of file descriptors.
15603 ( (exec 3<&- 4<&- 5<&- 6<&- 7<&- 8<&- 9<&- &&
15604    ulimit -n 4 &&
15605    tar -cf archive2.tar a &&
15606    tar -xf archive2.tar -C dest2 a
15607   ) &&
15608   diff -r a dest2/a
15609 ) >/dev/null 2>&1 &&
15610    exit 77
15611
15612 # Tar should work when there are few, but enough, file descriptors.
15613 ( (exec 3<&- 4<&- 5<&- 6<&- 7<&- 8<&- 9<&- &&
15614    ulimit -n 10 &&
15615    tar -cf archive3.tar a &&
15616    tar -xf archive3.tar -C dest3 a
15617   ) &&
15618   diff -r a dest3/a >/dev/null 2>&1
15619 ) || { diff -r a dest3/a; exit 1; }
15620 ) ) >"$at_stdout" 2>"$at_stder1"
15621   at_func_filter_trace $?
15622 else
15623   ( :;
15624 mkdir gnu
15625 (cd gnu
15626 TEST_TAR_FORMAT=gnu
15627 export TEST_TAR_FORMAT
15628 TAR_OPTIONS="-H gnu"
15629 export TAR_OPTIONS
15630 rm -rf *
15631
15632 exec </dev/null
15633 dirs='a
15634       a/b
15635       a/b/c
15636       a/b/c/d
15637       a/b/c/d/e
15638       a/b/c/d/e/f
15639       a/b/c/d/e/f/g
15640       a/b/c/d/e/f/g/h
15641       a/b/c/d/e/f/g/h/i
15642       a/b/c/d/e/f/g/h/i/j
15643       a/b/c/d/e/f/g/h/i/j/k
15644 '
15645 files=
15646 mkdir $dirs dest1 dest2 dest3 || exit
15647 for dir in $dirs; do
15648   for file in X Y Z; do
15649     echo $file >$dir/$file || exit
15650     files="$files $file"
15651   done
15652 done
15653
15654 # Check that "ulimit" itself works.  Close file descriptors before
15655 # invoking ulimit, to work around a bug (or a "feature") in some shells,
15656 # where they squirrel away dups of file descriptors into FD 10 and up
15657 # before closing the originals.
15658 ( (exec 3<&- 4<&- 5<&- 6<&- 7<&- 8<&- 9<&- &&
15659    ulimit -n 100 &&
15660    tar -cf archive1.tar a &&
15661    tar -xf archive1.tar -C dest1 a
15662   ) &&
15663   diff -r a dest1/a
15664 ) >/dev/null 2>&1 ||
15665    exit 77
15666
15667 # Another test that "ulimit" itself works:
15668 # tar should fail when completely starved of file descriptors.
15669 ( (exec 3<&- 4<&- 5<&- 6<&- 7<&- 8<&- 9<&- &&
15670    ulimit -n 4 &&
15671    tar -cf archive2.tar a &&
15672    tar -xf archive2.tar -C dest2 a
15673   ) &&
15674   diff -r a dest2/a
15675 ) >/dev/null 2>&1 &&
15676    exit 77
15677
15678 # Tar should work when there are few, but enough, file descriptors.
15679 ( (exec 3<&- 4<&- 5<&- 6<&- 7<&- 8<&- 9<&- &&
15680    ulimit -n 10 &&
15681    tar -cf archive3.tar a &&
15682    tar -xf archive3.tar -C dest3 a
15683   ) &&
15684   diff -r a dest3/a >/dev/null 2>&1
15685 ) || { diff -r a dest3/a; exit 1; }
15686 ) ) >"$at_stdout" 2>"$at_stderr"
15687 fi
15688 at_status=$?
15689 at_failed=false
15690 at_func_diff_devnull "$at_stderr" || at_failed=:
15691 at_func_diff_devnull "$at_stdout" || at_failed=:
15692 at_func_check_status 0 $at_status "$at_srcdir/extrac11.at:26"
15693
15694 $at_failed && at_func_log_failure
15695 $at_traceon; }
15696
15697
15698
15699
15700   $at_traceoff
15701   $at_times_p && times >"$at_times_file"
15702 ) 5>&1 2>&1 | eval $at_tee_pipe
15703 at_status=`cat "$at_status_file"`
15704 #AT_STOP_37
15705 #AT_START_38
15706 # 38. extrac12.at:23: extract dot permissions
15707 at_setup_line='extrac12.at:23'
15708 at_desc="extract dot permissions"
15709 $at_quiet $as_echo_n " 38: $at_desc                        "
15710 at_xfail=no
15711       test -f $XFAILFILE && at_xfail=yes
15712 echo "#                             -*- compilation -*-" >> "$at_group_log"
15713 (
15714   $as_echo "38. extrac12.at:23: testing ..."
15715   $at_traceon
15716
15717
15718
15719
15720
15721   { $at_traceoff
15722 $as_echo "$at_srcdir/extrac12.at:26:
15723 mkdir gnu
15724 (cd gnu
15725 TEST_TAR_FORMAT=gnu
15726 export TEST_TAR_FORMAT
15727 TAR_OPTIONS=\"-H gnu\"
15728 export TAR_OPTIONS
15729 rm -rf *
15730
15731 mkdir src dst
15732 echo file1 >src/file1
15733 echo file2 >src/file2
15734 chmod a-w src
15735
15736 tar --no-recursion -cf archive.tar -C src . ./file1 file2 &&
15737 tar -xf archive.tar -C dst &&
15738 cmp src/file1 dst/file1 &&
15739 cmp src/file2 dst/file2
15740 )"
15741 echo extrac12.at:26 >"$at_check_line_file"
15742
15743 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
15744    false; }; then
15745   ( $at_traceon;
15746 mkdir gnu
15747 (cd gnu
15748 TEST_TAR_FORMAT=gnu
15749 export TEST_TAR_FORMAT
15750 TAR_OPTIONS="-H gnu"
15751 export TAR_OPTIONS
15752 rm -rf *
15753
15754 mkdir src dst
15755 echo file1 >src/file1
15756 echo file2 >src/file2
15757 chmod a-w src
15758
15759 tar --no-recursion -cf archive.tar -C src . ./file1 file2 &&
15760 tar -xf archive.tar -C dst &&
15761 cmp src/file1 dst/file1 &&
15762 cmp src/file2 dst/file2
15763 ) ) >"$at_stdout" 2>"$at_stder1"
15764   at_func_filter_trace $?
15765 else
15766   ( :;
15767 mkdir gnu
15768 (cd gnu
15769 TEST_TAR_FORMAT=gnu
15770 export TEST_TAR_FORMAT
15771 TAR_OPTIONS="-H gnu"
15772 export TAR_OPTIONS
15773 rm -rf *
15774
15775 mkdir src dst
15776 echo file1 >src/file1
15777 echo file2 >src/file2
15778 chmod a-w src
15779
15780 tar --no-recursion -cf archive.tar -C src . ./file1 file2 &&
15781 tar -xf archive.tar -C dst &&
15782 cmp src/file1 dst/file1 &&
15783 cmp src/file2 dst/file2
15784 ) ) >"$at_stdout" 2>"$at_stderr"
15785 fi
15786 at_status=$?
15787 at_failed=false
15788 at_func_diff_devnull "$at_stderr" || at_failed=:
15789 at_func_diff_devnull "$at_stdout" || at_failed=:
15790 at_func_check_status 0 $at_status "$at_srcdir/extrac12.at:26"
15791
15792 $at_failed && at_func_log_failure
15793 $at_traceon; }
15794
15795
15796
15797
15798   $at_traceoff
15799   $at_times_p && times >"$at_times_file"
15800 ) 5>&1 2>&1 | eval $at_tee_pipe
15801 at_status=`cat "$at_status_file"`
15802 #AT_STOP_38
15803 #AT_START_39
15804 # 39. extrac13.at:24: extract over symlinks
15805 at_setup_line='extrac13.at:24'
15806 at_desc="extract over symlinks"
15807 $at_quiet $as_echo_n " 39: $at_desc                          "
15808 at_xfail=no
15809       test -f $XFAILFILE && at_xfail=yes
15810 echo "#                             -*- compilation -*-" >> "$at_group_log"
15811 (
15812   $as_echo "39. extrac13.at:24: testing ..."
15813   $at_traceon
15814
15815
15816
15817
15818
15819   { $at_traceoff
15820 $as_echo "$at_srcdir/extrac13.at:27:
15821 mkdir gnu
15822 (cd gnu
15823 TEST_TAR_FORMAT=gnu
15824 export TEST_TAR_FORMAT
15825 TAR_OPTIONS=\"-H gnu\"
15826 export TAR_OPTIONS
15827 rm -rf *
15828
15829 mkdir src dst1 dst2 dst3
15830 echo file1 >src/file1
15831 ln -s target1 dst1/file1
15832 echo target1 >dst1/target1
15833 echo target1 >target1
15834
15835 tar -cf archive.tar -C src . &&
15836 tar -xf archive.tar -C dst1 --warning=no-timestamp &&
15837 diff src/file1 dst1/file1 &&
15838 diff target1 dst1/target1
15839
15840 ln -s target1 dst2/file1
15841 echo target1 >dst2/target1
15842 tar --overwrite -xf archive.tar -C dst2 --warning=no-timestamp &&
15843 diff src/file1 dst2/file1 &&
15844 diff target1 dst2/target1
15845
15846 ln -s target1 dst3/file1
15847 echo target1 >dst3/target1
15848 tar --overwrite -xhf archive.tar -C dst3 --warning=no-timestamp &&
15849 diff src/file1 dst3/file1 &&
15850 diff src/file1 dst3/target1
15851 )"
15852 echo extrac13.at:27 >"$at_check_line_file"
15853
15854 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
15855    false; }; then
15856   ( $at_traceon;
15857 mkdir gnu
15858 (cd gnu
15859 TEST_TAR_FORMAT=gnu
15860 export TEST_TAR_FORMAT
15861 TAR_OPTIONS="-H gnu"
15862 export TAR_OPTIONS
15863 rm -rf *
15864
15865 mkdir src dst1 dst2 dst3
15866 echo file1 >src/file1
15867 ln -s target1 dst1/file1
15868 echo target1 >dst1/target1
15869 echo target1 >target1
15870
15871 tar -cf archive.tar -C src . &&
15872 tar -xf archive.tar -C dst1 --warning=no-timestamp &&
15873 diff src/file1 dst1/file1 &&
15874 diff target1 dst1/target1
15875
15876 ln -s target1 dst2/file1
15877 echo target1 >dst2/target1
15878 tar --overwrite -xf archive.tar -C dst2 --warning=no-timestamp &&
15879 diff src/file1 dst2/file1 &&
15880 diff target1 dst2/target1
15881
15882 ln -s target1 dst3/file1
15883 echo target1 >dst3/target1
15884 tar --overwrite -xhf archive.tar -C dst3 --warning=no-timestamp &&
15885 diff src/file1 dst3/file1 &&
15886 diff src/file1 dst3/target1
15887 ) ) >"$at_stdout" 2>"$at_stder1"
15888   at_func_filter_trace $?
15889 else
15890   ( :;
15891 mkdir gnu
15892 (cd gnu
15893 TEST_TAR_FORMAT=gnu
15894 export TEST_TAR_FORMAT
15895 TAR_OPTIONS="-H gnu"
15896 export TAR_OPTIONS
15897 rm -rf *
15898
15899 mkdir src dst1 dst2 dst3
15900 echo file1 >src/file1
15901 ln -s target1 dst1/file1
15902 echo target1 >dst1/target1
15903 echo target1 >target1
15904
15905 tar -cf archive.tar -C src . &&
15906 tar -xf archive.tar -C dst1 --warning=no-timestamp &&
15907 diff src/file1 dst1/file1 &&
15908 diff target1 dst1/target1
15909
15910 ln -s target1 dst2/file1
15911 echo target1 >dst2/target1
15912 tar --overwrite -xf archive.tar -C dst2 --warning=no-timestamp &&
15913 diff src/file1 dst2/file1 &&
15914 diff target1 dst2/target1
15915
15916 ln -s target1 dst3/file1
15917 echo target1 >dst3/target1
15918 tar --overwrite -xhf archive.tar -C dst3 --warning=no-timestamp &&
15919 diff src/file1 dst3/file1 &&
15920 diff src/file1 dst3/target1
15921 ) ) >"$at_stdout" 2>"$at_stderr"
15922 fi
15923 at_status=$?
15924 at_failed=false
15925 at_func_diff_devnull "$at_stderr" || at_failed=:
15926 at_func_diff_devnull "$at_stdout" || at_failed=:
15927 at_func_check_status 0 $at_status "$at_srcdir/extrac13.at:27"
15928
15929 $at_failed && at_func_log_failure
15930 $at_traceon; }
15931
15932
15933
15934
15935   $at_traceoff
15936   $at_times_p && times >"$at_times_file"
15937 ) 5>&1 2>&1 | eval $at_tee_pipe
15938 at_status=`cat "$at_status_file"`
15939 #AT_STOP_39
15940 #AT_START_40
15941 # 40. extrac14.at:23: extract -C symlink
15942 at_setup_line='extrac14.at:23'
15943 at_desc="extract -C symlink"
15944 $at_quiet $as_echo_n " 40: $at_desc                             "
15945 at_xfail=no
15946       test -f $XFAILFILE && at_xfail=yes
15947 echo "#                             -*- compilation -*-" >> "$at_group_log"
15948 (
15949   $as_echo "40. extrac14.at:23: testing ..."
15950   $at_traceon
15951
15952
15953
15954
15955
15956   { $at_traceoff
15957 $as_echo "$at_srcdir/extrac14.at:26:
15958 mkdir gnu
15959 (cd gnu
15960 TEST_TAR_FORMAT=gnu
15961 export TEST_TAR_FORMAT
15962 TAR_OPTIONS=\"-H gnu\"
15963 export TAR_OPTIONS
15964 rm -rf *
15965
15966 mkdir dest
15967 ln -s dest symlink
15968 echo foo >foo
15969 tar -cf archive.tar foo &&
15970 tar -xf archive.tar -C symlink --warning=no-timestamp &&
15971 cmp foo dest/foo
15972 )"
15973 echo extrac14.at:26 >"$at_check_line_file"
15974
15975 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
15976    false; }; then
15977   ( $at_traceon;
15978 mkdir gnu
15979 (cd gnu
15980 TEST_TAR_FORMAT=gnu
15981 export TEST_TAR_FORMAT
15982 TAR_OPTIONS="-H gnu"
15983 export TAR_OPTIONS
15984 rm -rf *
15985
15986 mkdir dest
15987 ln -s dest symlink
15988 echo foo >foo
15989 tar -cf archive.tar foo &&
15990 tar -xf archive.tar -C symlink --warning=no-timestamp &&
15991 cmp foo dest/foo
15992 ) ) >"$at_stdout" 2>"$at_stder1"
15993   at_func_filter_trace $?
15994 else
15995   ( :;
15996 mkdir gnu
15997 (cd gnu
15998 TEST_TAR_FORMAT=gnu
15999 export TEST_TAR_FORMAT
16000 TAR_OPTIONS="-H gnu"
16001 export TAR_OPTIONS
16002 rm -rf *
16003
16004 mkdir dest
16005 ln -s dest symlink
16006 echo foo >foo
16007 tar -cf archive.tar foo &&
16008 tar -xf archive.tar -C symlink --warning=no-timestamp &&
16009 cmp foo dest/foo
16010 ) ) >"$at_stdout" 2>"$at_stderr"
16011 fi
16012 at_status=$?
16013 at_failed=false
16014 at_func_diff_devnull "$at_stderr" || at_failed=:
16015 at_func_diff_devnull "$at_stdout" || at_failed=:
16016 at_func_check_status 0 $at_status "$at_srcdir/extrac14.at:26"
16017
16018 $at_failed && at_func_log_failure
16019 $at_traceon; }
16020
16021
16022
16023
16024   $at_traceoff
16025   $at_times_p && times >"$at_times_file"
16026 ) 5>&1 2>&1 | eval $at_tee_pipe
16027 at_status=`cat "$at_status_file"`
16028 #AT_STOP_40
16029 #AT_START_41
16030 # 41. extrac15.at:23: extract parent mkdir failure
16031 at_setup_line='extrac15.at:23'
16032 at_desc="extract parent mkdir failure"
16033 $at_quiet $as_echo_n " 41: $at_desc                   "
16034 at_xfail=no
16035       test -f $XFAILFILE && at_xfail=yes
16036 echo "#                             -*- compilation -*-" >> "$at_group_log"
16037 (
16038   $as_echo "41. extrac15.at:23: testing ..."
16039   $at_traceon
16040
16041
16042
16043
16044
16045   { $at_traceoff
16046 $as_echo "$at_srcdir/extrac15.at:26:
16047 mkdir gnu
16048 (cd gnu
16049 TEST_TAR_FORMAT=gnu
16050 export TEST_TAR_FORMAT
16051 TAR_OPTIONS=\"-H gnu\"
16052 export TAR_OPTIONS
16053 rm -rf *
16054
16055
16056 echo "test" > $$
16057 chmod 0 $$
16058 cat $$ > /dev/null 2>&1
16059 result=$?
16060 rm -f $$
16061 test $result -eq 0 && exit 77
16062
16063
16064 mkdir src src/a src/a/b dest dest/a
16065 touch src/a/b/c
16066 chmod a-w dest/a
16067
16068 tar -cf archive.tar -C src a/b/c &&
16069 if tar -xf archive.tar -C dest a/b/c
16070 then (exit 1)
16071 else (exit 0)
16072 fi
16073 )"
16074 echo extrac15.at:26 >"$at_check_line_file"
16075
16076 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
16077    false; }; then
16078   ( $at_traceon;
16079 mkdir gnu
16080 (cd gnu
16081 TEST_TAR_FORMAT=gnu
16082 export TEST_TAR_FORMAT
16083 TAR_OPTIONS="-H gnu"
16084 export TAR_OPTIONS
16085 rm -rf *
16086
16087
16088 echo "test" > $$
16089 chmod 0 $$
16090 cat $$ > /dev/null 2>&1
16091 result=$?
16092 rm -f $$
16093 test $result -eq 0 && exit 77
16094
16095
16096 mkdir src src/a src/a/b dest dest/a
16097 touch src/a/b/c
16098 chmod a-w dest/a
16099
16100 tar -cf archive.tar -C src a/b/c &&
16101 if tar -xf archive.tar -C dest a/b/c
16102 then (exit 1)
16103 else (exit 0)
16104 fi
16105 ) ) >"$at_stdout" 2>"$at_stder1"
16106   at_func_filter_trace $?
16107 else
16108   ( :;
16109 mkdir gnu
16110 (cd gnu
16111 TEST_TAR_FORMAT=gnu
16112 export TEST_TAR_FORMAT
16113 TAR_OPTIONS="-H gnu"
16114 export TAR_OPTIONS
16115 rm -rf *
16116
16117
16118 echo "test" > $$
16119 chmod 0 $$
16120 cat $$ > /dev/null 2>&1
16121 result=$?
16122 rm -f $$
16123 test $result -eq 0 && exit 77
16124
16125
16126 mkdir src src/a src/a/b dest dest/a
16127 touch src/a/b/c
16128 chmod a-w dest/a
16129
16130 tar -cf archive.tar -C src a/b/c &&
16131 if tar -xf archive.tar -C dest a/b/c
16132 then (exit 1)
16133 else (exit 0)
16134 fi
16135 ) ) >"$at_stdout" 2>"$at_stderr"
16136 fi
16137 at_status=$?
16138 at_failed=false
16139 echo >>"$at_stderr"; $as_echo "tar: a/b: Cannot mkdir: Permission denied
16140 tar: a/b/c: Cannot open: No such file or directory
16141 tar: Exiting with failure status due to previous errors
16142 " | \
16143   $at_diff - "$at_stderr" || at_failed=:
16144 at_func_diff_devnull "$at_stdout" || at_failed=:
16145 at_func_check_status 0 $at_status "$at_srcdir/extrac15.at:26"
16146
16147 $at_failed && at_func_log_failure
16148 $at_traceon; }
16149
16150
16151
16152
16153   $at_traceoff
16154   $at_times_p && times >"$at_times_file"
16155 ) 5>&1 2>&1 | eval $at_tee_pipe
16156 at_status=`cat "$at_status_file"`
16157 #AT_STOP_41
16158 #AT_START_42
16159 # 42. extrac16.at:24: extract empty directory with -C
16160 at_setup_line='extrac16.at:24'
16161 at_desc="extract empty directory with -C"
16162 $at_quiet $as_echo_n " 42: $at_desc                "
16163 at_xfail=no
16164       test -f $XFAILFILE && at_xfail=yes
16165 echo "#                             -*- compilation -*-" >> "$at_group_log"
16166 (
16167   $as_echo "42. extrac16.at:24: testing ..."
16168   $at_traceon
16169
16170
16171
16172
16173
16174   { $at_traceoff
16175 $as_echo "$at_srcdir/extrac16.at:27:
16176 mkdir gnu
16177 (cd gnu
16178 TEST_TAR_FORMAT=gnu
16179 export TEST_TAR_FORMAT
16180 TAR_OPTIONS=\"-H gnu\"
16181 export TAR_OPTIONS
16182 rm -rf *
16183
16184 mkdir src src/a src/a/b dest
16185 touch src/a/c
16186
16187 tar -cf archive.tar -C src a &&
16188 tar -xf archive.tar -C dest
16189 )"
16190 echo extrac16.at:27 >"$at_check_line_file"
16191
16192 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
16193    false; }; then
16194   ( $at_traceon;
16195 mkdir gnu
16196 (cd gnu
16197 TEST_TAR_FORMAT=gnu
16198 export TEST_TAR_FORMAT
16199 TAR_OPTIONS="-H gnu"
16200 export TAR_OPTIONS
16201 rm -rf *
16202
16203 mkdir src src/a src/a/b dest
16204 touch src/a/c
16205
16206 tar -cf archive.tar -C src a &&
16207 tar -xf archive.tar -C dest
16208 ) ) >"$at_stdout" 2>"$at_stder1"
16209   at_func_filter_trace $?
16210 else
16211   ( :;
16212 mkdir gnu
16213 (cd gnu
16214 TEST_TAR_FORMAT=gnu
16215 export TEST_TAR_FORMAT
16216 TAR_OPTIONS="-H gnu"
16217 export TAR_OPTIONS
16218 rm -rf *
16219
16220 mkdir src src/a src/a/b dest
16221 touch src/a/c
16222
16223 tar -cf archive.tar -C src a &&
16224 tar -xf archive.tar -C dest
16225 ) ) >"$at_stdout" 2>"$at_stderr"
16226 fi
16227 at_status=$?
16228 at_failed=false
16229 at_func_diff_devnull "$at_stderr" || at_failed=:
16230 at_func_diff_devnull "$at_stdout" || at_failed=:
16231 at_func_check_status 0 $at_status "$at_srcdir/extrac16.at:27"
16232
16233 $at_failed && at_func_log_failure
16234 $at_traceon; }
16235
16236
16237
16238
16239   $at_traceoff
16240   $at_times_p && times >"$at_times_file"
16241 ) 5>&1 2>&1 | eval $at_tee_pipe
16242 at_status=`cat "$at_status_file"`
16243 #AT_STOP_42
16244 #AT_START_43
16245 # 43. extrac17.at:19: name matching/transformation ordering
16246 at_setup_line='extrac17.at:19'
16247 at_desc="name matching/transformation ordering"
16248 $at_quiet $as_echo_n " 43: $at_desc          "
16249 at_xfail=no
16250       test -f $XFAILFILE && at_xfail=yes
16251 echo "#                             -*- compilation -*-" >> "$at_group_log"
16252 (
16253   $as_echo "43. extrac17.at:19: testing ..."
16254   $at_traceon
16255
16256
16257
16258 # Description: Tar 1.24 changed the ordering of name matching and
16259 # name transformation so that the former saw already transformed
16260 # file names (see commit 9c194c99 and exclude06.at).  This reverted
16261 # ordering made it impossible to match file names in certain cases.
16262 # In particular, the testcase below would not extract anything.
16263 #
16264 # Reported-by: "Gabor Z. Papp" <gzp@papp.hu>
16265 # References: <x6r5fd9jye@gzp>, <20101026175126.29028@Pirx.gnu.org.ua>
16266 #             http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00047.html
16267
16268
16269
16270   { $at_traceoff
16271 $as_echo "$at_srcdir/extrac17.at:32:
16272 mkdir v7
16273 (cd v7
16274 TEST_TAR_FORMAT=v7
16275 export TEST_TAR_FORMAT
16276 TAR_OPTIONS=\"-H v7\"
16277 export TAR_OPTIONS
16278 rm -rf *
16279
16280 mkdir dir dir/subdir1 dir/subdir2 out
16281 genfile --file dir/subdir1/file1
16282 genfile --file dir/subdir2/file2
16283
16284 tar cf dir.tar dir
16285
16286 tar -x -v -f dir.tar -C out --strip-components=2 --warning=no-timestamp \\
16287   dir/subdir1/
16288 )"
16289 echo extrac17.at:32 >"$at_check_line_file"
16290
16291 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
16292    false; }; then
16293   ( $at_traceon;
16294 mkdir v7
16295 (cd v7
16296 TEST_TAR_FORMAT=v7
16297 export TEST_TAR_FORMAT
16298 TAR_OPTIONS="-H v7"
16299 export TAR_OPTIONS
16300 rm -rf *
16301
16302 mkdir dir dir/subdir1 dir/subdir2 out
16303 genfile --file dir/subdir1/file1
16304 genfile --file dir/subdir2/file2
16305
16306 tar cf dir.tar dir
16307
16308 tar -x -v -f dir.tar -C out --strip-components=2 --warning=no-timestamp \
16309   dir/subdir1/
16310 ) ) >"$at_stdout" 2>"$at_stder1"
16311   at_func_filter_trace $?
16312 else
16313   ( :;
16314 mkdir v7
16315 (cd v7
16316 TEST_TAR_FORMAT=v7
16317 export TEST_TAR_FORMAT
16318 TAR_OPTIONS="-H v7"
16319 export TAR_OPTIONS
16320 rm -rf *
16321
16322 mkdir dir dir/subdir1 dir/subdir2 out
16323 genfile --file dir/subdir1/file1
16324 genfile --file dir/subdir2/file2
16325
16326 tar cf dir.tar dir
16327
16328 tar -x -v -f dir.tar -C out --strip-components=2 --warning=no-timestamp \
16329   dir/subdir1/
16330 ) ) >"$at_stdout" 2>"$at_stderr"
16331 fi
16332 at_status=$?
16333 at_failed=false
16334 at_func_diff_devnull "$at_stderr" || at_failed=:
16335 echo >>"$at_stdout"; $as_echo "dir/subdir1/file1
16336 " | \
16337   $at_diff - "$at_stdout" || at_failed=:
16338 at_func_check_status 0 $at_status "$at_srcdir/extrac17.at:32"
16339
16340 $at_failed && at_func_log_failure
16341 $at_traceon; }
16342
16343               { $at_traceoff
16344 $as_echo "$at_srcdir/extrac17.at:32:
16345 mkdir oldgnu
16346 (cd oldgnu
16347 TEST_TAR_FORMAT=oldgnu
16348 export TEST_TAR_FORMAT
16349 TAR_OPTIONS=\"-H oldgnu\"
16350 export TAR_OPTIONS
16351 rm -rf *
16352
16353 mkdir dir dir/subdir1 dir/subdir2 out
16354 genfile --file dir/subdir1/file1
16355 genfile --file dir/subdir2/file2
16356
16357 tar cf dir.tar dir
16358
16359 tar -x -v -f dir.tar -C out --strip-components=2 --warning=no-timestamp \\
16360   dir/subdir1/
16361 )"
16362 echo extrac17.at:32 >"$at_check_line_file"
16363
16364 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
16365    false; }; then
16366   ( $at_traceon;
16367 mkdir oldgnu
16368 (cd oldgnu
16369 TEST_TAR_FORMAT=oldgnu
16370 export TEST_TAR_FORMAT
16371 TAR_OPTIONS="-H oldgnu"
16372 export TAR_OPTIONS
16373 rm -rf *
16374
16375 mkdir dir dir/subdir1 dir/subdir2 out
16376 genfile --file dir/subdir1/file1
16377 genfile --file dir/subdir2/file2
16378
16379 tar cf dir.tar dir
16380
16381 tar -x -v -f dir.tar -C out --strip-components=2 --warning=no-timestamp \
16382   dir/subdir1/
16383 ) ) >"$at_stdout" 2>"$at_stder1"
16384   at_func_filter_trace $?
16385 else
16386   ( :;
16387 mkdir oldgnu
16388 (cd oldgnu
16389 TEST_TAR_FORMAT=oldgnu
16390 export TEST_TAR_FORMAT
16391 TAR_OPTIONS="-H oldgnu"
16392 export TAR_OPTIONS
16393 rm -rf *
16394
16395 mkdir dir dir/subdir1 dir/subdir2 out
16396 genfile --file dir/subdir1/file1
16397 genfile --file dir/subdir2/file2
16398
16399 tar cf dir.tar dir
16400
16401 tar -x -v -f dir.tar -C out --strip-components=2 --warning=no-timestamp \
16402   dir/subdir1/
16403 ) ) >"$at_stdout" 2>"$at_stderr"
16404 fi
16405 at_status=$?
16406 at_failed=false
16407 at_func_diff_devnull "$at_stderr" || at_failed=:
16408 echo >>"$at_stdout"; $as_echo "dir/subdir1/file1
16409 " | \
16410   $at_diff - "$at_stdout" || at_failed=:
16411 at_func_check_status 0 $at_status "$at_srcdir/extrac17.at:32"
16412
16413 $at_failed && at_func_log_failure
16414 $at_traceon; }
16415
16416               { $at_traceoff
16417 $as_echo "$at_srcdir/extrac17.at:32:
16418 mkdir ustar
16419 (cd ustar
16420 TEST_TAR_FORMAT=ustar
16421 export TEST_TAR_FORMAT
16422 TAR_OPTIONS=\"-H ustar\"
16423 export TAR_OPTIONS
16424 rm -rf *
16425
16426 mkdir dir dir/subdir1 dir/subdir2 out
16427 genfile --file dir/subdir1/file1
16428 genfile --file dir/subdir2/file2
16429
16430 tar cf dir.tar dir
16431
16432 tar -x -v -f dir.tar -C out --strip-components=2 --warning=no-timestamp \\
16433   dir/subdir1/
16434 )"
16435 echo extrac17.at:32 >"$at_check_line_file"
16436
16437 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
16438    false; }; then
16439   ( $at_traceon;
16440 mkdir ustar
16441 (cd ustar
16442 TEST_TAR_FORMAT=ustar
16443 export TEST_TAR_FORMAT
16444 TAR_OPTIONS="-H ustar"
16445 export TAR_OPTIONS
16446 rm -rf *
16447
16448 mkdir dir dir/subdir1 dir/subdir2 out
16449 genfile --file dir/subdir1/file1
16450 genfile --file dir/subdir2/file2
16451
16452 tar cf dir.tar dir
16453
16454 tar -x -v -f dir.tar -C out --strip-components=2 --warning=no-timestamp \
16455   dir/subdir1/
16456 ) ) >"$at_stdout" 2>"$at_stder1"
16457   at_func_filter_trace $?
16458 else
16459   ( :;
16460 mkdir ustar
16461 (cd ustar
16462 TEST_TAR_FORMAT=ustar
16463 export TEST_TAR_FORMAT
16464 TAR_OPTIONS="-H ustar"
16465 export TAR_OPTIONS
16466 rm -rf *
16467
16468 mkdir dir dir/subdir1 dir/subdir2 out
16469 genfile --file dir/subdir1/file1
16470 genfile --file dir/subdir2/file2
16471
16472 tar cf dir.tar dir
16473
16474 tar -x -v -f dir.tar -C out --strip-components=2 --warning=no-timestamp \
16475   dir/subdir1/
16476 ) ) >"$at_stdout" 2>"$at_stderr"
16477 fi
16478 at_status=$?
16479 at_failed=false
16480 at_func_diff_devnull "$at_stderr" || at_failed=:
16481 echo >>"$at_stdout"; $as_echo "dir/subdir1/file1
16482 " | \
16483   $at_diff - "$at_stdout" || at_failed=:
16484 at_func_check_status 0 $at_status "$at_srcdir/extrac17.at:32"
16485
16486 $at_failed && at_func_log_failure
16487 $at_traceon; }
16488
16489               { $at_traceoff
16490 $as_echo "$at_srcdir/extrac17.at:32:
16491 mkdir posix
16492 (cd posix
16493 TEST_TAR_FORMAT=posix
16494 export TEST_TAR_FORMAT
16495 TAR_OPTIONS=\"-H posix\"
16496 export TAR_OPTIONS
16497 rm -rf *
16498
16499 mkdir dir dir/subdir1 dir/subdir2 out
16500 genfile --file dir/subdir1/file1
16501 genfile --file dir/subdir2/file2
16502
16503 tar cf dir.tar dir
16504
16505 tar -x -v -f dir.tar -C out --strip-components=2 --warning=no-timestamp \\
16506   dir/subdir1/
16507 )"
16508 echo extrac17.at:32 >"$at_check_line_file"
16509
16510 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
16511    false; }; then
16512   ( $at_traceon;
16513 mkdir posix
16514 (cd posix
16515 TEST_TAR_FORMAT=posix
16516 export TEST_TAR_FORMAT
16517 TAR_OPTIONS="-H posix"
16518 export TAR_OPTIONS
16519 rm -rf *
16520
16521 mkdir dir dir/subdir1 dir/subdir2 out
16522 genfile --file dir/subdir1/file1
16523 genfile --file dir/subdir2/file2
16524
16525 tar cf dir.tar dir
16526
16527 tar -x -v -f dir.tar -C out --strip-components=2 --warning=no-timestamp \
16528   dir/subdir1/
16529 ) ) >"$at_stdout" 2>"$at_stder1"
16530   at_func_filter_trace $?
16531 else
16532   ( :;
16533 mkdir posix
16534 (cd posix
16535 TEST_TAR_FORMAT=posix
16536 export TEST_TAR_FORMAT
16537 TAR_OPTIONS="-H posix"
16538 export TAR_OPTIONS
16539 rm -rf *
16540
16541 mkdir dir dir/subdir1 dir/subdir2 out
16542 genfile --file dir/subdir1/file1
16543 genfile --file dir/subdir2/file2
16544
16545 tar cf dir.tar dir
16546
16547 tar -x -v -f dir.tar -C out --strip-components=2 --warning=no-timestamp \
16548   dir/subdir1/
16549 ) ) >"$at_stdout" 2>"$at_stderr"
16550 fi
16551 at_status=$?
16552 at_failed=false
16553 at_func_diff_devnull "$at_stderr" || at_failed=:
16554 echo >>"$at_stdout"; $as_echo "dir/subdir1/file1
16555 " | \
16556   $at_diff - "$at_stdout" || at_failed=:
16557 at_func_check_status 0 $at_status "$at_srcdir/extrac17.at:32"
16558
16559 $at_failed && at_func_log_failure
16560 $at_traceon; }
16561
16562               { $at_traceoff
16563 $as_echo "$at_srcdir/extrac17.at:32:
16564 mkdir gnu
16565 (cd gnu
16566 TEST_TAR_FORMAT=gnu
16567 export TEST_TAR_FORMAT
16568 TAR_OPTIONS=\"-H gnu\"
16569 export TAR_OPTIONS
16570 rm -rf *
16571
16572 mkdir dir dir/subdir1 dir/subdir2 out
16573 genfile --file dir/subdir1/file1
16574 genfile --file dir/subdir2/file2
16575
16576 tar cf dir.tar dir
16577
16578 tar -x -v -f dir.tar -C out --strip-components=2 --warning=no-timestamp \\
16579   dir/subdir1/
16580 )"
16581 echo extrac17.at:32 >"$at_check_line_file"
16582
16583 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
16584    false; }; then
16585   ( $at_traceon;
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 mkdir dir dir/subdir1 dir/subdir2 out
16595 genfile --file dir/subdir1/file1
16596 genfile --file dir/subdir2/file2
16597
16598 tar cf dir.tar dir
16599
16600 tar -x -v -f dir.tar -C out --strip-components=2 --warning=no-timestamp \
16601   dir/subdir1/
16602 ) ) >"$at_stdout" 2>"$at_stder1"
16603   at_func_filter_trace $?
16604 else
16605   ( :;
16606 mkdir gnu
16607 (cd gnu
16608 TEST_TAR_FORMAT=gnu
16609 export TEST_TAR_FORMAT
16610 TAR_OPTIONS="-H gnu"
16611 export TAR_OPTIONS
16612 rm -rf *
16613
16614 mkdir dir dir/subdir1 dir/subdir2 out
16615 genfile --file dir/subdir1/file1
16616 genfile --file dir/subdir2/file2
16617
16618 tar cf dir.tar dir
16619
16620 tar -x -v -f dir.tar -C out --strip-components=2 --warning=no-timestamp \
16621   dir/subdir1/
16622 ) ) >"$at_stdout" 2>"$at_stderr"
16623 fi
16624 at_status=$?
16625 at_failed=false
16626 at_func_diff_devnull "$at_stderr" || at_failed=:
16627 echo >>"$at_stdout"; $as_echo "dir/subdir1/file1
16628 " | \
16629   $at_diff - "$at_stdout" || at_failed=:
16630 at_func_check_status 0 $at_status "$at_srcdir/extrac17.at:32"
16631
16632 $at_failed && at_func_log_failure
16633 $at_traceon; }
16634
16635
16636
16637
16638   $at_traceoff
16639   $at_times_p && times >"$at_times_file"
16640 ) 5>&1 2>&1 | eval $at_tee_pipe
16641 at_status=`cat "$at_status_file"`
16642 #AT_STOP_43
16643 #AT_START_44
16644 # 44. label01.at:19: single-volume label
16645 at_setup_line='label01.at:19'
16646 at_desc="single-volume label"
16647 $at_quiet $as_echo_n " 44: $at_desc                            "
16648 at_xfail=no
16649       test -f $XFAILFILE && at_xfail=yes
16650 echo "#                             -*- compilation -*-" >> "$at_group_log"
16651 (
16652   $as_echo "44. label01.at:19: testing ..."
16653   $at_traceon
16654
16655
16656
16657
16658
16659   { $at_traceoff
16660 $as_echo "$at_srcdir/label01.at:22:
16661 mkdir gnu
16662 (cd gnu
16663 TEST_TAR_FORMAT=gnu
16664 export TEST_TAR_FORMAT
16665 TAR_OPTIONS=\"-H gnu\"
16666 export TAR_OPTIONS
16667 rm -rf *
16668
16669 genfile --file foo
16670 genfile --file bar
16671 tar -cf archive --label=Test foo bar
16672 tar tf archive
16673 )"
16674 echo label01.at:22 >"$at_check_line_file"
16675
16676 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
16677    false; }; then
16678   ( $at_traceon;
16679 mkdir gnu
16680 (cd gnu
16681 TEST_TAR_FORMAT=gnu
16682 export TEST_TAR_FORMAT
16683 TAR_OPTIONS="-H gnu"
16684 export TAR_OPTIONS
16685 rm -rf *
16686
16687 genfile --file foo
16688 genfile --file bar
16689 tar -cf archive --label=Test foo bar
16690 tar tf archive
16691 ) ) >"$at_stdout" 2>"$at_stder1"
16692   at_func_filter_trace $?
16693 else
16694   ( :;
16695 mkdir gnu
16696 (cd gnu
16697 TEST_TAR_FORMAT=gnu
16698 export TEST_TAR_FORMAT
16699 TAR_OPTIONS="-H gnu"
16700 export TAR_OPTIONS
16701 rm -rf *
16702
16703 genfile --file foo
16704 genfile --file bar
16705 tar -cf archive --label=Test foo bar
16706 tar tf archive
16707 ) ) >"$at_stdout" 2>"$at_stderr"
16708 fi
16709 at_status=$?
16710 at_failed=false
16711 at_func_diff_devnull "$at_stderr" || at_failed=:
16712 echo >>"$at_stdout"; $as_echo "Test
16713 foo
16714 bar
16715 " | \
16716   $at_diff - "$at_stdout" || at_failed=:
16717 at_func_check_status 0 $at_status "$at_srcdir/label01.at:22"
16718
16719 $at_failed && at_func_log_failure
16720 $at_traceon; }
16721
16722               { $at_traceoff
16723 $as_echo "$at_srcdir/label01.at:22:
16724 mkdir oldgnu
16725 (cd oldgnu
16726 TEST_TAR_FORMAT=oldgnu
16727 export TEST_TAR_FORMAT
16728 TAR_OPTIONS=\"-H oldgnu\"
16729 export TAR_OPTIONS
16730 rm -rf *
16731
16732 genfile --file foo
16733 genfile --file bar
16734 tar -cf archive --label=Test foo bar
16735 tar tf archive
16736 )"
16737 echo label01.at:22 >"$at_check_line_file"
16738
16739 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
16740    false; }; then
16741   ( $at_traceon;
16742 mkdir oldgnu
16743 (cd oldgnu
16744 TEST_TAR_FORMAT=oldgnu
16745 export TEST_TAR_FORMAT
16746 TAR_OPTIONS="-H oldgnu"
16747 export TAR_OPTIONS
16748 rm -rf *
16749
16750 genfile --file foo
16751 genfile --file bar
16752 tar -cf archive --label=Test foo bar
16753 tar tf archive
16754 ) ) >"$at_stdout" 2>"$at_stder1"
16755   at_func_filter_trace $?
16756 else
16757   ( :;
16758 mkdir oldgnu
16759 (cd oldgnu
16760 TEST_TAR_FORMAT=oldgnu
16761 export TEST_TAR_FORMAT
16762 TAR_OPTIONS="-H oldgnu"
16763 export TAR_OPTIONS
16764 rm -rf *
16765
16766 genfile --file foo
16767 genfile --file bar
16768 tar -cf archive --label=Test foo bar
16769 tar tf archive
16770 ) ) >"$at_stdout" 2>"$at_stderr"
16771 fi
16772 at_status=$?
16773 at_failed=false
16774 at_func_diff_devnull "$at_stderr" || at_failed=:
16775 echo >>"$at_stdout"; $as_echo "Test
16776 foo
16777 bar
16778 " | \
16779   $at_diff - "$at_stdout" || at_failed=:
16780 at_func_check_status 0 $at_status "$at_srcdir/label01.at:22"
16781
16782 $at_failed && at_func_log_failure
16783 $at_traceon; }
16784
16785               { $at_traceoff
16786 $as_echo "$at_srcdir/label01.at:22:
16787 mkdir posix
16788 (cd posix
16789 TEST_TAR_FORMAT=posix
16790 export TEST_TAR_FORMAT
16791 TAR_OPTIONS=\"-H posix\"
16792 export TAR_OPTIONS
16793 rm -rf *
16794
16795 genfile --file foo
16796 genfile --file bar
16797 tar -cf archive --label=Test foo bar
16798 tar tf archive
16799 )"
16800 echo label01.at:22 >"$at_check_line_file"
16801
16802 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
16803    false; }; then
16804   ( $at_traceon;
16805 mkdir posix
16806 (cd posix
16807 TEST_TAR_FORMAT=posix
16808 export TEST_TAR_FORMAT
16809 TAR_OPTIONS="-H posix"
16810 export TAR_OPTIONS
16811 rm -rf *
16812
16813 genfile --file foo
16814 genfile --file bar
16815 tar -cf archive --label=Test foo bar
16816 tar tf archive
16817 ) ) >"$at_stdout" 2>"$at_stder1"
16818   at_func_filter_trace $?
16819 else
16820   ( :;
16821 mkdir posix
16822 (cd posix
16823 TEST_TAR_FORMAT=posix
16824 export TEST_TAR_FORMAT
16825 TAR_OPTIONS="-H posix"
16826 export TAR_OPTIONS
16827 rm -rf *
16828
16829 genfile --file foo
16830 genfile --file bar
16831 tar -cf archive --label=Test foo bar
16832 tar tf archive
16833 ) ) >"$at_stdout" 2>"$at_stderr"
16834 fi
16835 at_status=$?
16836 at_failed=false
16837 at_func_diff_devnull "$at_stderr" || at_failed=:
16838 echo >>"$at_stdout"; $as_echo "Test
16839 foo
16840 bar
16841 " | \
16842   $at_diff - "$at_stdout" || at_failed=:
16843 at_func_check_status 0 $at_status "$at_srcdir/label01.at:22"
16844
16845 $at_failed && at_func_log_failure
16846 $at_traceon; }
16847
16848
16849
16850
16851   $at_traceoff
16852   $at_times_p && times >"$at_times_file"
16853 ) 5>&1 2>&1 | eval $at_tee_pipe
16854 at_status=`cat "$at_status_file"`
16855 #AT_STOP_44
16856 #AT_START_45
16857 # 45. label02.at:19: multi-volume label
16858 at_setup_line='label02.at:19'
16859 at_desc="multi-volume label"
16860 $at_quiet $as_echo_n " 45: $at_desc                             "
16861 at_xfail=no
16862       test -f $XFAILFILE && at_xfail=yes
16863 echo "#                             -*- compilation -*-" >> "$at_group_log"
16864 (
16865   $as_echo "45. label02.at:19: testing ..."
16866   $at_traceon
16867
16868
16869
16870
16871
16872   { $at_traceoff
16873 $as_echo "$at_srcdir/label02.at:22:
16874 mkdir gnu
16875 (cd gnu
16876 TEST_TAR_FORMAT=gnu
16877 export TEST_TAR_FORMAT
16878 TAR_OPTIONS=\"-H gnu\"
16879 export TAR_OPTIONS
16880 rm -rf *
16881
16882 exec <&-
16883 genfile --length 0 --file foo
16884 genfile --length 12288 --file bar
16885 genfile --length 12288 --file baz
16886 tar --label=Test -cM -L10 -f 1.tar -f 2.tar -f 3.tar -f 4.tar foo bar baz
16887 tar -Mt -f 1.tar -f 2.tar -f 3.tar -f 4.tar
16888 )"
16889 echo label02.at:22 >"$at_check_line_file"
16890
16891 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
16892    false; }; then
16893   ( $at_traceon;
16894 mkdir gnu
16895 (cd gnu
16896 TEST_TAR_FORMAT=gnu
16897 export TEST_TAR_FORMAT
16898 TAR_OPTIONS="-H gnu"
16899 export TAR_OPTIONS
16900 rm -rf *
16901
16902 exec <&-
16903 genfile --length 0 --file foo
16904 genfile --length 12288 --file bar
16905 genfile --length 12288 --file baz
16906 tar --label=Test -cM -L10 -f 1.tar -f 2.tar -f 3.tar -f 4.tar foo bar baz
16907 tar -Mt -f 1.tar -f 2.tar -f 3.tar -f 4.tar
16908 ) ) >"$at_stdout" 2>"$at_stder1"
16909   at_func_filter_trace $?
16910 else
16911   ( :;
16912 mkdir gnu
16913 (cd gnu
16914 TEST_TAR_FORMAT=gnu
16915 export TEST_TAR_FORMAT
16916 TAR_OPTIONS="-H gnu"
16917 export TAR_OPTIONS
16918 rm -rf *
16919
16920 exec <&-
16921 genfile --length 0 --file foo
16922 genfile --length 12288 --file bar
16923 genfile --length 12288 --file baz
16924 tar --label=Test -cM -L10 -f 1.tar -f 2.tar -f 3.tar -f 4.tar foo bar baz
16925 tar -Mt -f 1.tar -f 2.tar -f 3.tar -f 4.tar
16926 ) ) >"$at_stdout" 2>"$at_stderr"
16927 fi
16928 at_status=$?
16929 at_failed=false
16930 at_func_diff_devnull "$at_stderr" || at_failed=:
16931 echo >>"$at_stdout"; $as_echo "Test Volume 1
16932 foo
16933 bar
16934 baz
16935 " | \
16936   $at_diff - "$at_stdout" || at_failed=:
16937 at_func_check_status 0 $at_status "$at_srcdir/label02.at:22"
16938
16939 $at_failed && at_func_log_failure
16940 $at_traceon; }
16941
16942               { $at_traceoff
16943 $as_echo "$at_srcdir/label02.at:22:
16944 mkdir oldgnu
16945 (cd oldgnu
16946 TEST_TAR_FORMAT=oldgnu
16947 export TEST_TAR_FORMAT
16948 TAR_OPTIONS=\"-H oldgnu\"
16949 export TAR_OPTIONS
16950 rm -rf *
16951
16952 exec <&-
16953 genfile --length 0 --file foo
16954 genfile --length 12288 --file bar
16955 genfile --length 12288 --file baz
16956 tar --label=Test -cM -L10 -f 1.tar -f 2.tar -f 3.tar -f 4.tar foo bar baz
16957 tar -Mt -f 1.tar -f 2.tar -f 3.tar -f 4.tar
16958 )"
16959 echo label02.at:22 >"$at_check_line_file"
16960
16961 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
16962    false; }; then
16963   ( $at_traceon;
16964 mkdir oldgnu
16965 (cd oldgnu
16966 TEST_TAR_FORMAT=oldgnu
16967 export TEST_TAR_FORMAT
16968 TAR_OPTIONS="-H oldgnu"
16969 export TAR_OPTIONS
16970 rm -rf *
16971
16972 exec <&-
16973 genfile --length 0 --file foo
16974 genfile --length 12288 --file bar
16975 genfile --length 12288 --file baz
16976 tar --label=Test -cM -L10 -f 1.tar -f 2.tar -f 3.tar -f 4.tar foo bar baz
16977 tar -Mt -f 1.tar -f 2.tar -f 3.tar -f 4.tar
16978 ) ) >"$at_stdout" 2>"$at_stder1"
16979   at_func_filter_trace $?
16980 else
16981   ( :;
16982 mkdir oldgnu
16983 (cd oldgnu
16984 TEST_TAR_FORMAT=oldgnu
16985 export TEST_TAR_FORMAT
16986 TAR_OPTIONS="-H oldgnu"
16987 export TAR_OPTIONS
16988 rm -rf *
16989
16990 exec <&-
16991 genfile --length 0 --file foo
16992 genfile --length 12288 --file bar
16993 genfile --length 12288 --file baz
16994 tar --label=Test -cM -L10 -f 1.tar -f 2.tar -f 3.tar -f 4.tar foo bar baz
16995 tar -Mt -f 1.tar -f 2.tar -f 3.tar -f 4.tar
16996 ) ) >"$at_stdout" 2>"$at_stderr"
16997 fi
16998 at_status=$?
16999 at_failed=false
17000 at_func_diff_devnull "$at_stderr" || at_failed=:
17001 echo >>"$at_stdout"; $as_echo "Test Volume 1
17002 foo
17003 bar
17004 baz
17005 " | \
17006   $at_diff - "$at_stdout" || at_failed=:
17007 at_func_check_status 0 $at_status "$at_srcdir/label02.at:22"
17008
17009 $at_failed && at_func_log_failure
17010 $at_traceon; }
17011
17012               { $at_traceoff
17013 $as_echo "$at_srcdir/label02.at:22:
17014 mkdir posix
17015 (cd posix
17016 TEST_TAR_FORMAT=posix
17017 export TEST_TAR_FORMAT
17018 TAR_OPTIONS=\"-H posix\"
17019 export TAR_OPTIONS
17020 rm -rf *
17021
17022 exec <&-
17023 genfile --length 0 --file foo
17024 genfile --length 12288 --file bar
17025 genfile --length 12288 --file baz
17026 tar --label=Test -cM -L10 -f 1.tar -f 2.tar -f 3.tar -f 4.tar foo bar baz
17027 tar -Mt -f 1.tar -f 2.tar -f 3.tar -f 4.tar
17028 )"
17029 echo label02.at:22 >"$at_check_line_file"
17030
17031 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
17032    false; }; then
17033   ( $at_traceon;
17034 mkdir posix
17035 (cd posix
17036 TEST_TAR_FORMAT=posix
17037 export TEST_TAR_FORMAT
17038 TAR_OPTIONS="-H posix"
17039 export TAR_OPTIONS
17040 rm -rf *
17041
17042 exec <&-
17043 genfile --length 0 --file foo
17044 genfile --length 12288 --file bar
17045 genfile --length 12288 --file baz
17046 tar --label=Test -cM -L10 -f 1.tar -f 2.tar -f 3.tar -f 4.tar foo bar baz
17047 tar -Mt -f 1.tar -f 2.tar -f 3.tar -f 4.tar
17048 ) ) >"$at_stdout" 2>"$at_stder1"
17049   at_func_filter_trace $?
17050 else
17051   ( :;
17052 mkdir posix
17053 (cd posix
17054 TEST_TAR_FORMAT=posix
17055 export TEST_TAR_FORMAT
17056 TAR_OPTIONS="-H posix"
17057 export TAR_OPTIONS
17058 rm -rf *
17059
17060 exec <&-
17061 genfile --length 0 --file foo
17062 genfile --length 12288 --file bar
17063 genfile --length 12288 --file baz
17064 tar --label=Test -cM -L10 -f 1.tar -f 2.tar -f 3.tar -f 4.tar foo bar baz
17065 tar -Mt -f 1.tar -f 2.tar -f 3.tar -f 4.tar
17066 ) ) >"$at_stdout" 2>"$at_stderr"
17067 fi
17068 at_status=$?
17069 at_failed=false
17070 at_func_diff_devnull "$at_stderr" || at_failed=:
17071 echo >>"$at_stdout"; $as_echo "Test Volume 1
17072 foo
17073 bar
17074 baz
17075 " | \
17076   $at_diff - "$at_stdout" || at_failed=:
17077 at_func_check_status 0 $at_status "$at_srcdir/label02.at:22"
17078
17079 $at_failed && at_func_log_failure
17080 $at_traceon; }
17081
17082
17083
17084
17085   $at_traceoff
17086   $at_times_p && times >"$at_times_file"
17087 ) 5>&1 2>&1 | eval $at_tee_pipe
17088 at_status=`cat "$at_status_file"`
17089 #AT_STOP_45
17090 #AT_START_46
17091 # 46. label03.at:25: test-label option
17092 at_setup_line='label03.at:25'
17093 at_desc="test-label option"
17094 $at_quiet $as_echo_n " 46: $at_desc                              "
17095 at_xfail=no
17096       test -f $XFAILFILE && at_xfail=yes
17097 echo "#                             -*- compilation -*-" >> "$at_group_log"
17098 (
17099   $as_echo "46. label03.at:25: testing ..."
17100   $at_traceon
17101
17102
17103
17104
17105
17106   { $at_traceoff
17107 $as_echo "$at_srcdir/label03.at:28:
17108 mkdir gnu
17109 (cd gnu
17110 TEST_TAR_FORMAT=gnu
17111 export TEST_TAR_FORMAT
17112 TAR_OPTIONS=\"-H gnu\"
17113 export TAR_OPTIONS
17114 rm -rf *
17115
17116 exec <&-
17117 genfile --file file
17118 tar -c --label='iamalabel' --file iamanarchive file
17119 tar -c --file unlabeled.tar file
17120 decho \"# Display label\"
17121 tar --test-label --file=iamanarchive; echo \$?
17122 decho \"# Display label: unlabeled\"
17123 tar --test-label --file=unlabeled.tar; echo \$?
17124 decho \"# Test label: success\"
17125 tar --test-label --file=iamanarchive 'iamalabel'; echo \$?
17126 decho \"# Test label: failure\"
17127 tar --test-label --file=iamanarchive 'amalabel'; echo \$?
17128 decho \"# Test label: unlabeled\"
17129 tar --test-label --file=unlabeled.tar 'amalabel'; echo \$?
17130 decho \"# Test label, verbose: success\"
17131 tar --test-label --verbose --file=iamanarchive 'iamalabel'; echo \$?
17132 decho \"# Test label, verbose: failure\"
17133 tar --test-label --verbose --file=iamanarchive 'amalabel'; echo \$?
17134 decho \"# Test label: multiple arguments\"
17135 tar --test-label --file=iamanarchive a iamalabel b; echo \$?
17136 decho \"# Test label: wildcards\"
17137 tar --test-label --file=iamanarchive --wildcards '*label'; echo \$?
17138 )"
17139 echo label03.at:28 >"$at_check_line_file"
17140
17141 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
17142    false; }; then
17143   ( $at_traceon;
17144 mkdir gnu
17145 (cd gnu
17146 TEST_TAR_FORMAT=gnu
17147 export TEST_TAR_FORMAT
17148 TAR_OPTIONS="-H gnu"
17149 export TAR_OPTIONS
17150 rm -rf *
17151
17152 exec <&-
17153 genfile --file file
17154 tar -c --label='iamalabel' --file iamanarchive file
17155 tar -c --file unlabeled.tar file
17156 decho "# Display label"
17157 tar --test-label --file=iamanarchive; echo $?
17158 decho "# Display label: unlabeled"
17159 tar --test-label --file=unlabeled.tar; echo $?
17160 decho "# Test label: success"
17161 tar --test-label --file=iamanarchive 'iamalabel'; echo $?
17162 decho "# Test label: failure"
17163 tar --test-label --file=iamanarchive 'amalabel'; echo $?
17164 decho "# Test label: unlabeled"
17165 tar --test-label --file=unlabeled.tar 'amalabel'; echo $?
17166 decho "# Test label, verbose: success"
17167 tar --test-label --verbose --file=iamanarchive 'iamalabel'; echo $?
17168 decho "# Test label, verbose: failure"
17169 tar --test-label --verbose --file=iamanarchive 'amalabel'; echo $?
17170 decho "# Test label: multiple arguments"
17171 tar --test-label --file=iamanarchive a iamalabel b; echo $?
17172 decho "# Test label: wildcards"
17173 tar --test-label --file=iamanarchive --wildcards '*label'; echo $?
17174 ) ) >"$at_stdout" 2>"$at_stder1"
17175   at_func_filter_trace $?
17176 else
17177   ( :;
17178 mkdir gnu
17179 (cd gnu
17180 TEST_TAR_FORMAT=gnu
17181 export TEST_TAR_FORMAT
17182 TAR_OPTIONS="-H gnu"
17183 export TAR_OPTIONS
17184 rm -rf *
17185
17186 exec <&-
17187 genfile --file file
17188 tar -c --label='iamalabel' --file iamanarchive file
17189 tar -c --file unlabeled.tar file
17190 decho "# Display label"
17191 tar --test-label --file=iamanarchive; echo $?
17192 decho "# Display label: unlabeled"
17193 tar --test-label --file=unlabeled.tar; echo $?
17194 decho "# Test label: success"
17195 tar --test-label --file=iamanarchive 'iamalabel'; echo $?
17196 decho "# Test label: failure"
17197 tar --test-label --file=iamanarchive 'amalabel'; echo $?
17198 decho "# Test label: unlabeled"
17199 tar --test-label --file=unlabeled.tar 'amalabel'; echo $?
17200 decho "# Test label, verbose: success"
17201 tar --test-label --verbose --file=iamanarchive 'iamalabel'; echo $?
17202 decho "# Test label, verbose: failure"
17203 tar --test-label --verbose --file=iamanarchive 'amalabel'; echo $?
17204 decho "# Test label: multiple arguments"
17205 tar --test-label --file=iamanarchive a iamalabel b; echo $?
17206 decho "# Test label: wildcards"
17207 tar --test-label --file=iamanarchive --wildcards '*label'; echo $?
17208 ) ) >"$at_stdout" 2>"$at_stderr"
17209 fi
17210 at_status=$?
17211 at_failed=false
17212 echo >>"$at_stderr"; $as_echo "# Display label
17213 # Display label: unlabeled
17214 # Test label: success
17215 # Test label: failure
17216 # Test label: unlabeled
17217 # Test label, verbose: success
17218 # Test label, verbose: failure
17219 tar: Archive label mismatch
17220 # Test label: multiple arguments
17221 # Test label: wildcards
17222 " | \
17223   $at_diff - "$at_stderr" || at_failed=:
17224 echo >>"$at_stdout"; $as_echo "# Display label
17225 iamalabel
17226 0
17227 # Display label: unlabeled
17228 0
17229 # Test label: success
17230 0
17231 # Test label: failure
17232 1
17233 # Test label: unlabeled
17234 1
17235 # Test label, verbose: success
17236 iamalabel
17237 0
17238 # Test label, verbose: failure
17239 iamalabel
17240 1
17241 # Test label: multiple arguments
17242 0
17243 # Test label: wildcards
17244 0
17245 " | \
17246   $at_diff - "$at_stdout" || at_failed=:
17247 at_func_check_status 0 $at_status "$at_srcdir/label03.at:28"
17248
17249 $at_failed && at_func_log_failure
17250 $at_traceon; }
17251
17252               { $at_traceoff
17253 $as_echo "$at_srcdir/label03.at:28:
17254 mkdir oldgnu
17255 (cd oldgnu
17256 TEST_TAR_FORMAT=oldgnu
17257 export TEST_TAR_FORMAT
17258 TAR_OPTIONS=\"-H oldgnu\"
17259 export TAR_OPTIONS
17260 rm -rf *
17261
17262 exec <&-
17263 genfile --file file
17264 tar -c --label='iamalabel' --file iamanarchive file
17265 tar -c --file unlabeled.tar file
17266 decho \"# Display label\"
17267 tar --test-label --file=iamanarchive; echo \$?
17268 decho \"# Display label: unlabeled\"
17269 tar --test-label --file=unlabeled.tar; echo \$?
17270 decho \"# Test label: success\"
17271 tar --test-label --file=iamanarchive 'iamalabel'; echo \$?
17272 decho \"# Test label: failure\"
17273 tar --test-label --file=iamanarchive 'amalabel'; echo \$?
17274 decho \"# Test label: unlabeled\"
17275 tar --test-label --file=unlabeled.tar 'amalabel'; echo \$?
17276 decho \"# Test label, verbose: success\"
17277 tar --test-label --verbose --file=iamanarchive 'iamalabel'; echo \$?
17278 decho \"# Test label, verbose: failure\"
17279 tar --test-label --verbose --file=iamanarchive 'amalabel'; echo \$?
17280 decho \"# Test label: multiple arguments\"
17281 tar --test-label --file=iamanarchive a iamalabel b; echo \$?
17282 decho \"# Test label: wildcards\"
17283 tar --test-label --file=iamanarchive --wildcards '*label'; echo \$?
17284 )"
17285 echo label03.at:28 >"$at_check_line_file"
17286
17287 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
17288    false; }; then
17289   ( $at_traceon;
17290 mkdir oldgnu
17291 (cd oldgnu
17292 TEST_TAR_FORMAT=oldgnu
17293 export TEST_TAR_FORMAT
17294 TAR_OPTIONS="-H oldgnu"
17295 export TAR_OPTIONS
17296 rm -rf *
17297
17298 exec <&-
17299 genfile --file file
17300 tar -c --label='iamalabel' --file iamanarchive file
17301 tar -c --file unlabeled.tar file
17302 decho "# Display label"
17303 tar --test-label --file=iamanarchive; echo $?
17304 decho "# Display label: unlabeled"
17305 tar --test-label --file=unlabeled.tar; echo $?
17306 decho "# Test label: success"
17307 tar --test-label --file=iamanarchive 'iamalabel'; echo $?
17308 decho "# Test label: failure"
17309 tar --test-label --file=iamanarchive 'amalabel'; echo $?
17310 decho "# Test label: unlabeled"
17311 tar --test-label --file=unlabeled.tar 'amalabel'; echo $?
17312 decho "# Test label, verbose: success"
17313 tar --test-label --verbose --file=iamanarchive 'iamalabel'; echo $?
17314 decho "# Test label, verbose: failure"
17315 tar --test-label --verbose --file=iamanarchive 'amalabel'; echo $?
17316 decho "# Test label: multiple arguments"
17317 tar --test-label --file=iamanarchive a iamalabel b; echo $?
17318 decho "# Test label: wildcards"
17319 tar --test-label --file=iamanarchive --wildcards '*label'; echo $?
17320 ) ) >"$at_stdout" 2>"$at_stder1"
17321   at_func_filter_trace $?
17322 else
17323   ( :;
17324 mkdir oldgnu
17325 (cd oldgnu
17326 TEST_TAR_FORMAT=oldgnu
17327 export TEST_TAR_FORMAT
17328 TAR_OPTIONS="-H oldgnu"
17329 export TAR_OPTIONS
17330 rm -rf *
17331
17332 exec <&-
17333 genfile --file file
17334 tar -c --label='iamalabel' --file iamanarchive file
17335 tar -c --file unlabeled.tar file
17336 decho "# Display label"
17337 tar --test-label --file=iamanarchive; echo $?
17338 decho "# Display label: unlabeled"
17339 tar --test-label --file=unlabeled.tar; echo $?
17340 decho "# Test label: success"
17341 tar --test-label --file=iamanarchive 'iamalabel'; echo $?
17342 decho "# Test label: failure"
17343 tar --test-label --file=iamanarchive 'amalabel'; echo $?
17344 decho "# Test label: unlabeled"
17345 tar --test-label --file=unlabeled.tar 'amalabel'; echo $?
17346 decho "# Test label, verbose: success"
17347 tar --test-label --verbose --file=iamanarchive 'iamalabel'; echo $?
17348 decho "# Test label, verbose: failure"
17349 tar --test-label --verbose --file=iamanarchive 'amalabel'; echo $?
17350 decho "# Test label: multiple arguments"
17351 tar --test-label --file=iamanarchive a iamalabel b; echo $?
17352 decho "# Test label: wildcards"
17353 tar --test-label --file=iamanarchive --wildcards '*label'; echo $?
17354 ) ) >"$at_stdout" 2>"$at_stderr"
17355 fi
17356 at_status=$?
17357 at_failed=false
17358 echo >>"$at_stderr"; $as_echo "# Display label
17359 # Display label: unlabeled
17360 # Test label: success
17361 # Test label: failure
17362 # Test label: unlabeled
17363 # Test label, verbose: success
17364 # Test label, verbose: failure
17365 tar: Archive label mismatch
17366 # Test label: multiple arguments
17367 # Test label: wildcards
17368 " | \
17369   $at_diff - "$at_stderr" || at_failed=:
17370 echo >>"$at_stdout"; $as_echo "# Display label
17371 iamalabel
17372 0
17373 # Display label: unlabeled
17374 0
17375 # Test label: success
17376 0
17377 # Test label: failure
17378 1
17379 # Test label: unlabeled
17380 1
17381 # Test label, verbose: success
17382 iamalabel
17383 0
17384 # Test label, verbose: failure
17385 iamalabel
17386 1
17387 # Test label: multiple arguments
17388 0
17389 # Test label: wildcards
17390 0
17391 " | \
17392   $at_diff - "$at_stdout" || at_failed=:
17393 at_func_check_status 0 $at_status "$at_srcdir/label03.at:28"
17394
17395 $at_failed && at_func_log_failure
17396 $at_traceon; }
17397
17398               { $at_traceoff
17399 $as_echo "$at_srcdir/label03.at:28:
17400 mkdir posix
17401 (cd posix
17402 TEST_TAR_FORMAT=posix
17403 export TEST_TAR_FORMAT
17404 TAR_OPTIONS=\"-H posix\"
17405 export TAR_OPTIONS
17406 rm -rf *
17407
17408 exec <&-
17409 genfile --file file
17410 tar -c --label='iamalabel' --file iamanarchive file
17411 tar -c --file unlabeled.tar file
17412 decho \"# Display label\"
17413 tar --test-label --file=iamanarchive; echo \$?
17414 decho \"# Display label: unlabeled\"
17415 tar --test-label --file=unlabeled.tar; echo \$?
17416 decho \"# Test label: success\"
17417 tar --test-label --file=iamanarchive 'iamalabel'; echo \$?
17418 decho \"# Test label: failure\"
17419 tar --test-label --file=iamanarchive 'amalabel'; echo \$?
17420 decho \"# Test label: unlabeled\"
17421 tar --test-label --file=unlabeled.tar 'amalabel'; echo \$?
17422 decho \"# Test label, verbose: success\"
17423 tar --test-label --verbose --file=iamanarchive 'iamalabel'; echo \$?
17424 decho \"# Test label, verbose: failure\"
17425 tar --test-label --verbose --file=iamanarchive 'amalabel'; echo \$?
17426 decho \"# Test label: multiple arguments\"
17427 tar --test-label --file=iamanarchive a iamalabel b; echo \$?
17428 decho \"# Test label: wildcards\"
17429 tar --test-label --file=iamanarchive --wildcards '*label'; echo \$?
17430 )"
17431 echo label03.at:28 >"$at_check_line_file"
17432
17433 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
17434    false; }; then
17435   ( $at_traceon;
17436 mkdir posix
17437 (cd posix
17438 TEST_TAR_FORMAT=posix
17439 export TEST_TAR_FORMAT
17440 TAR_OPTIONS="-H posix"
17441 export TAR_OPTIONS
17442 rm -rf *
17443
17444 exec <&-
17445 genfile --file file
17446 tar -c --label='iamalabel' --file iamanarchive file
17447 tar -c --file unlabeled.tar file
17448 decho "# Display label"
17449 tar --test-label --file=iamanarchive; echo $?
17450 decho "# Display label: unlabeled"
17451 tar --test-label --file=unlabeled.tar; echo $?
17452 decho "# Test label: success"
17453 tar --test-label --file=iamanarchive 'iamalabel'; echo $?
17454 decho "# Test label: failure"
17455 tar --test-label --file=iamanarchive 'amalabel'; echo $?
17456 decho "# Test label: unlabeled"
17457 tar --test-label --file=unlabeled.tar 'amalabel'; echo $?
17458 decho "# Test label, verbose: success"
17459 tar --test-label --verbose --file=iamanarchive 'iamalabel'; echo $?
17460 decho "# Test label, verbose: failure"
17461 tar --test-label --verbose --file=iamanarchive 'amalabel'; echo $?
17462 decho "# Test label: multiple arguments"
17463 tar --test-label --file=iamanarchive a iamalabel b; echo $?
17464 decho "# Test label: wildcards"
17465 tar --test-label --file=iamanarchive --wildcards '*label'; echo $?
17466 ) ) >"$at_stdout" 2>"$at_stder1"
17467   at_func_filter_trace $?
17468 else
17469   ( :;
17470 mkdir posix
17471 (cd posix
17472 TEST_TAR_FORMAT=posix
17473 export TEST_TAR_FORMAT
17474 TAR_OPTIONS="-H posix"
17475 export TAR_OPTIONS
17476 rm -rf *
17477
17478 exec <&-
17479 genfile --file file
17480 tar -c --label='iamalabel' --file iamanarchive file
17481 tar -c --file unlabeled.tar file
17482 decho "# Display label"
17483 tar --test-label --file=iamanarchive; echo $?
17484 decho "# Display label: unlabeled"
17485 tar --test-label --file=unlabeled.tar; echo $?
17486 decho "# Test label: success"
17487 tar --test-label --file=iamanarchive 'iamalabel'; echo $?
17488 decho "# Test label: failure"
17489 tar --test-label --file=iamanarchive 'amalabel'; echo $?
17490 decho "# Test label: unlabeled"
17491 tar --test-label --file=unlabeled.tar 'amalabel'; echo $?
17492 decho "# Test label, verbose: success"
17493 tar --test-label --verbose --file=iamanarchive 'iamalabel'; echo $?
17494 decho "# Test label, verbose: failure"
17495 tar --test-label --verbose --file=iamanarchive 'amalabel'; echo $?
17496 decho "# Test label: multiple arguments"
17497 tar --test-label --file=iamanarchive a iamalabel b; echo $?
17498 decho "# Test label: wildcards"
17499 tar --test-label --file=iamanarchive --wildcards '*label'; echo $?
17500 ) ) >"$at_stdout" 2>"$at_stderr"
17501 fi
17502 at_status=$?
17503 at_failed=false
17504 echo >>"$at_stderr"; $as_echo "# Display label
17505 # Display label: unlabeled
17506 # Test label: success
17507 # Test label: failure
17508 # Test label: unlabeled
17509 # Test label, verbose: success
17510 # Test label, verbose: failure
17511 tar: Archive label mismatch
17512 # Test label: multiple arguments
17513 # Test label: wildcards
17514 " | \
17515   $at_diff - "$at_stderr" || at_failed=:
17516 echo >>"$at_stdout"; $as_echo "# Display label
17517 iamalabel
17518 0
17519 # Display label: unlabeled
17520 0
17521 # Test label: success
17522 0
17523 # Test label: failure
17524 1
17525 # Test label: unlabeled
17526 1
17527 # Test label, verbose: success
17528 iamalabel
17529 0
17530 # Test label, verbose: failure
17531 iamalabel
17532 1
17533 # Test label: multiple arguments
17534 0
17535 # Test label: wildcards
17536 0
17537 " | \
17538   $at_diff - "$at_stdout" || at_failed=:
17539 at_func_check_status 0 $at_status "$at_srcdir/label03.at:28"
17540
17541 $at_failed && at_func_log_failure
17542 $at_traceon; }
17543
17544
17545
17546
17547   $at_traceoff
17548   $at_times_p && times >"$at_times_file"
17549 ) 5>&1 2>&1 | eval $at_tee_pipe
17550 at_status=`cat "$at_status_file"`
17551 #AT_STOP_46
17552 #AT_START_47
17553 # 47. label04.at:25: label with non-create option
17554 at_setup_line='label04.at:25'
17555 at_desc="label with non-create option"
17556 $at_quiet $as_echo_n " 47: $at_desc                   "
17557 at_xfail=no
17558       test -f $XFAILFILE && at_xfail=yes
17559 echo "#                             -*- compilation -*-" >> "$at_group_log"
17560 (
17561   $as_echo "47. label04.at:25: testing ..."
17562   $at_traceon
17563
17564
17565
17566
17567
17568   { $at_traceoff
17569 $as_echo "$at_srcdir/label04.at:28:
17570 mkdir gnu
17571 (cd gnu
17572 TEST_TAR_FORMAT=gnu
17573 export TEST_TAR_FORMAT
17574 TAR_OPTIONS=\"-H gnu\"
17575 export TAR_OPTIONS
17576 rm -rf *
17577
17578 exec <&-
17579 genfile --file file
17580 decho \"# Create volume\"
17581 tar -c -f archive --label='New volume' file
17582 decho \"# Update: wrong label\"
17583 tar -rf archive --label='My volume' file; echo \$?
17584 decho \"# Update: right label\"
17585 tar -rf archive --label='New volume' file
17586 )"
17587 echo label04.at:28 >"$at_check_line_file"
17588
17589 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
17590    false; }; then
17591   ( $at_traceon;
17592 mkdir gnu
17593 (cd gnu
17594 TEST_TAR_FORMAT=gnu
17595 export TEST_TAR_FORMAT
17596 TAR_OPTIONS="-H gnu"
17597 export TAR_OPTIONS
17598 rm -rf *
17599
17600 exec <&-
17601 genfile --file file
17602 decho "# Create volume"
17603 tar -c -f archive --label='New volume' file
17604 decho "# Update: wrong label"
17605 tar -rf archive --label='My volume' file; echo $?
17606 decho "# Update: right label"
17607 tar -rf archive --label='New volume' file
17608 ) ) >"$at_stdout" 2>"$at_stder1"
17609   at_func_filter_trace $?
17610 else
17611   ( :;
17612 mkdir gnu
17613 (cd gnu
17614 TEST_TAR_FORMAT=gnu
17615 export TEST_TAR_FORMAT
17616 TAR_OPTIONS="-H gnu"
17617 export TAR_OPTIONS
17618 rm -rf *
17619
17620 exec <&-
17621 genfile --file file
17622 decho "# Create volume"
17623 tar -c -f archive --label='New volume' file
17624 decho "# Update: wrong label"
17625 tar -rf archive --label='My volume' file; echo $?
17626 decho "# Update: right label"
17627 tar -rf archive --label='New volume' file
17628 ) ) >"$at_stdout" 2>"$at_stderr"
17629 fi
17630 at_status=$?
17631 at_failed=false
17632 echo >>"$at_stderr"; $as_echo "# Create volume
17633 # Update: wrong label
17634 tar: Volume \`New volume' does not match \`My volume'
17635 tar: Error is not recoverable: exiting now
17636 # Update: right label
17637 " | \
17638   $at_diff - "$at_stderr" || at_failed=:
17639 echo >>"$at_stdout"; $as_echo "# Create volume
17640 # Update: wrong label
17641 2
17642 # Update: right label
17643 " | \
17644   $at_diff - "$at_stdout" || at_failed=:
17645 at_func_check_status 0 $at_status "$at_srcdir/label04.at:28"
17646
17647 $at_failed && at_func_log_failure
17648 $at_traceon; }
17649
17650               { $at_traceoff
17651 $as_echo "$at_srcdir/label04.at:28:
17652 mkdir oldgnu
17653 (cd oldgnu
17654 TEST_TAR_FORMAT=oldgnu
17655 export TEST_TAR_FORMAT
17656 TAR_OPTIONS=\"-H oldgnu\"
17657 export TAR_OPTIONS
17658 rm -rf *
17659
17660 exec <&-
17661 genfile --file file
17662 decho \"# Create volume\"
17663 tar -c -f archive --label='New volume' file
17664 decho \"# Update: wrong label\"
17665 tar -rf archive --label='My volume' file; echo \$?
17666 decho \"# Update: right label\"
17667 tar -rf archive --label='New volume' file
17668 )"
17669 echo label04.at:28 >"$at_check_line_file"
17670
17671 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
17672    false; }; then
17673   ( $at_traceon;
17674 mkdir oldgnu
17675 (cd oldgnu
17676 TEST_TAR_FORMAT=oldgnu
17677 export TEST_TAR_FORMAT
17678 TAR_OPTIONS="-H oldgnu"
17679 export TAR_OPTIONS
17680 rm -rf *
17681
17682 exec <&-
17683 genfile --file file
17684 decho "# Create volume"
17685 tar -c -f archive --label='New volume' file
17686 decho "# Update: wrong label"
17687 tar -rf archive --label='My volume' file; echo $?
17688 decho "# Update: right label"
17689 tar -rf archive --label='New volume' file
17690 ) ) >"$at_stdout" 2>"$at_stder1"
17691   at_func_filter_trace $?
17692 else
17693   ( :;
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 exec <&-
17703 genfile --file file
17704 decho "# Create volume"
17705 tar -c -f archive --label='New volume' file
17706 decho "# Update: wrong label"
17707 tar -rf archive --label='My volume' file; echo $?
17708 decho "# Update: right label"
17709 tar -rf archive --label='New volume' file
17710 ) ) >"$at_stdout" 2>"$at_stderr"
17711 fi
17712 at_status=$?
17713 at_failed=false
17714 echo >>"$at_stderr"; $as_echo "# Create volume
17715 # Update: wrong label
17716 tar: Volume \`New volume' does not match \`My volume'
17717 tar: Error is not recoverable: exiting now
17718 # Update: right label
17719 " | \
17720   $at_diff - "$at_stderr" || at_failed=:
17721 echo >>"$at_stdout"; $as_echo "# Create volume
17722 # Update: wrong label
17723 2
17724 # Update: right label
17725 " | \
17726   $at_diff - "$at_stdout" || at_failed=:
17727 at_func_check_status 0 $at_status "$at_srcdir/label04.at:28"
17728
17729 $at_failed && at_func_log_failure
17730 $at_traceon; }
17731
17732               { $at_traceoff
17733 $as_echo "$at_srcdir/label04.at:28:
17734 mkdir posix
17735 (cd posix
17736 TEST_TAR_FORMAT=posix
17737 export TEST_TAR_FORMAT
17738 TAR_OPTIONS=\"-H posix\"
17739 export TAR_OPTIONS
17740 rm -rf *
17741
17742 exec <&-
17743 genfile --file file
17744 decho \"# Create volume\"
17745 tar -c -f archive --label='New volume' file
17746 decho \"# Update: wrong label\"
17747 tar -rf archive --label='My volume' file; echo \$?
17748 decho \"# Update: right label\"
17749 tar -rf archive --label='New volume' file
17750 )"
17751 echo label04.at:28 >"$at_check_line_file"
17752
17753 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
17754    false; }; then
17755   ( $at_traceon;
17756 mkdir posix
17757 (cd posix
17758 TEST_TAR_FORMAT=posix
17759 export TEST_TAR_FORMAT
17760 TAR_OPTIONS="-H posix"
17761 export TAR_OPTIONS
17762 rm -rf *
17763
17764 exec <&-
17765 genfile --file file
17766 decho "# Create volume"
17767 tar -c -f archive --label='New volume' file
17768 decho "# Update: wrong label"
17769 tar -rf archive --label='My volume' file; echo $?
17770 decho "# Update: right label"
17771 tar -rf archive --label='New volume' file
17772 ) ) >"$at_stdout" 2>"$at_stder1"
17773   at_func_filter_trace $?
17774 else
17775   ( :;
17776 mkdir posix
17777 (cd posix
17778 TEST_TAR_FORMAT=posix
17779 export TEST_TAR_FORMAT
17780 TAR_OPTIONS="-H posix"
17781 export TAR_OPTIONS
17782 rm -rf *
17783
17784 exec <&-
17785 genfile --file file
17786 decho "# Create volume"
17787 tar -c -f archive --label='New volume' file
17788 decho "# Update: wrong label"
17789 tar -rf archive --label='My volume' file; echo $?
17790 decho "# Update: right label"
17791 tar -rf archive --label='New volume' file
17792 ) ) >"$at_stdout" 2>"$at_stderr"
17793 fi
17794 at_status=$?
17795 at_failed=false
17796 echo >>"$at_stderr"; $as_echo "# Create volume
17797 # Update: wrong label
17798 tar: Volume \`New volume' does not match \`My volume'
17799 tar: Error is not recoverable: exiting now
17800 # Update: right label
17801 " | \
17802   $at_diff - "$at_stderr" || at_failed=:
17803 echo >>"$at_stdout"; $as_echo "# Create volume
17804 # Update: wrong label
17805 2
17806 # Update: right label
17807 " | \
17808   $at_diff - "$at_stdout" || at_failed=:
17809 at_func_check_status 0 $at_status "$at_srcdir/label04.at:28"
17810
17811 $at_failed && at_func_log_failure
17812 $at_traceon; }
17813
17814
17815
17816
17817   $at_traceoff
17818   $at_times_p && times >"$at_times_file"
17819 ) 5>&1 2>&1 | eval $at_tee_pipe
17820 at_status=`cat "$at_status_file"`
17821 #AT_STOP_47
17822 #AT_START_48
17823 # 48. label05.at:22: label with non-create option
17824 at_setup_line='label05.at:22'
17825 at_desc="label with non-create option"
17826 $at_quiet $as_echo_n " 48: $at_desc                   "
17827 at_xfail=no
17828       test -f $XFAILFILE && at_xfail=yes
17829 echo "#                             -*- compilation -*-" >> "$at_group_log"
17830 (
17831   $as_echo "48. label05.at:22: testing ..."
17832   $at_traceon
17833
17834
17835
17836
17837
17838   { $at_traceoff
17839 $as_echo "$at_srcdir/label05.at:25:
17840 mkdir gnu
17841 (cd gnu
17842 TEST_TAR_FORMAT=gnu
17843 export TEST_TAR_FORMAT
17844 TAR_OPTIONS=\"-H gnu\"
17845 export TAR_OPTIONS
17846 rm -rf *
17847
17848 exec <&-
17849 genfile --file file
17850 decho \"# Create volume\"
17851 tar -c -f archive file
17852 decho \"# Update: wrong label\"
17853 tar -rf archive --label='My volume' file; echo \$?
17854 decho \"# Update: right label\"
17855 tar -rf archive file
17856 )"
17857 echo label05.at:25 >"$at_check_line_file"
17858
17859 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
17860    false; }; then
17861   ( $at_traceon;
17862 mkdir gnu
17863 (cd gnu
17864 TEST_TAR_FORMAT=gnu
17865 export TEST_TAR_FORMAT
17866 TAR_OPTIONS="-H gnu"
17867 export TAR_OPTIONS
17868 rm -rf *
17869
17870 exec <&-
17871 genfile --file file
17872 decho "# Create volume"
17873 tar -c -f archive file
17874 decho "# Update: wrong label"
17875 tar -rf archive --label='My volume' file; echo $?
17876 decho "# Update: right label"
17877 tar -rf archive file
17878 ) ) >"$at_stdout" 2>"$at_stder1"
17879   at_func_filter_trace $?
17880 else
17881   ( :;
17882 mkdir gnu
17883 (cd gnu
17884 TEST_TAR_FORMAT=gnu
17885 export TEST_TAR_FORMAT
17886 TAR_OPTIONS="-H gnu"
17887 export TAR_OPTIONS
17888 rm -rf *
17889
17890 exec <&-
17891 genfile --file file
17892 decho "# Create volume"
17893 tar -c -f archive file
17894 decho "# Update: wrong label"
17895 tar -rf archive --label='My volume' file; echo $?
17896 decho "# Update: right label"
17897 tar -rf archive file
17898 ) ) >"$at_stdout" 2>"$at_stderr"
17899 fi
17900 at_status=$?
17901 at_failed=false
17902 echo >>"$at_stderr"; $as_echo "# Create volume
17903 # Update: wrong label
17904 tar: Archive not labeled to match \`My volume'
17905 tar: Error is not recoverable: exiting now
17906 # Update: right label
17907 " | \
17908   $at_diff - "$at_stderr" || at_failed=:
17909 echo >>"$at_stdout"; $as_echo "# Create volume
17910 # Update: wrong label
17911 2
17912 # Update: right label
17913 " | \
17914   $at_diff - "$at_stdout" || at_failed=:
17915 at_func_check_status 0 $at_status "$at_srcdir/label05.at:25"
17916
17917 $at_failed && at_func_log_failure
17918 $at_traceon; }
17919
17920               { $at_traceoff
17921 $as_echo "$at_srcdir/label05.at:25:
17922 mkdir oldgnu
17923 (cd oldgnu
17924 TEST_TAR_FORMAT=oldgnu
17925 export TEST_TAR_FORMAT
17926 TAR_OPTIONS=\"-H oldgnu\"
17927 export TAR_OPTIONS
17928 rm -rf *
17929
17930 exec <&-
17931 genfile --file file
17932 decho \"# Create volume\"
17933 tar -c -f archive file
17934 decho \"# Update: wrong label\"
17935 tar -rf archive --label='My volume' file; echo \$?
17936 decho \"# Update: right label\"
17937 tar -rf archive file
17938 )"
17939 echo label05.at:25 >"$at_check_line_file"
17940
17941 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
17942    false; }; then
17943   ( $at_traceon;
17944 mkdir oldgnu
17945 (cd oldgnu
17946 TEST_TAR_FORMAT=oldgnu
17947 export TEST_TAR_FORMAT
17948 TAR_OPTIONS="-H oldgnu"
17949 export TAR_OPTIONS
17950 rm -rf *
17951
17952 exec <&-
17953 genfile --file file
17954 decho "# Create volume"
17955 tar -c -f archive file
17956 decho "# Update: wrong label"
17957 tar -rf archive --label='My volume' file; echo $?
17958 decho "# Update: right label"
17959 tar -rf archive file
17960 ) ) >"$at_stdout" 2>"$at_stder1"
17961   at_func_filter_trace $?
17962 else
17963   ( :;
17964 mkdir oldgnu
17965 (cd oldgnu
17966 TEST_TAR_FORMAT=oldgnu
17967 export TEST_TAR_FORMAT
17968 TAR_OPTIONS="-H oldgnu"
17969 export TAR_OPTIONS
17970 rm -rf *
17971
17972 exec <&-
17973 genfile --file file
17974 decho "# Create volume"
17975 tar -c -f archive file
17976 decho "# Update: wrong label"
17977 tar -rf archive --label='My volume' file; echo $?
17978 decho "# Update: right label"
17979 tar -rf archive file
17980 ) ) >"$at_stdout" 2>"$at_stderr"
17981 fi
17982 at_status=$?
17983 at_failed=false
17984 echo >>"$at_stderr"; $as_echo "# Create volume
17985 # Update: wrong label
17986 tar: Archive not labeled to match \`My volume'
17987 tar: Error is not recoverable: exiting now
17988 # Update: right label
17989 " | \
17990   $at_diff - "$at_stderr" || at_failed=:
17991 echo >>"$at_stdout"; $as_echo "# Create volume
17992 # Update: wrong label
17993 2
17994 # Update: right label
17995 " | \
17996   $at_diff - "$at_stdout" || at_failed=:
17997 at_func_check_status 0 $at_status "$at_srcdir/label05.at:25"
17998
17999 $at_failed && at_func_log_failure
18000 $at_traceon; }
18001
18002               { $at_traceoff
18003 $as_echo "$at_srcdir/label05.at:25:
18004 mkdir posix
18005 (cd posix
18006 TEST_TAR_FORMAT=posix
18007 export TEST_TAR_FORMAT
18008 TAR_OPTIONS=\"-H posix\"
18009 export TAR_OPTIONS
18010 rm -rf *
18011
18012 exec <&-
18013 genfile --file file
18014 decho \"# Create volume\"
18015 tar -c -f archive file
18016 decho \"# Update: wrong label\"
18017 tar -rf archive --label='My volume' file; echo \$?
18018 decho \"# Update: right label\"
18019 tar -rf archive file
18020 )"
18021 echo label05.at:25 >"$at_check_line_file"
18022
18023 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
18024    false; }; then
18025   ( $at_traceon;
18026 mkdir posix
18027 (cd posix
18028 TEST_TAR_FORMAT=posix
18029 export TEST_TAR_FORMAT
18030 TAR_OPTIONS="-H posix"
18031 export TAR_OPTIONS
18032 rm -rf *
18033
18034 exec <&-
18035 genfile --file file
18036 decho "# Create volume"
18037 tar -c -f archive file
18038 decho "# Update: wrong label"
18039 tar -rf archive --label='My volume' file; echo $?
18040 decho "# Update: right label"
18041 tar -rf archive file
18042 ) ) >"$at_stdout" 2>"$at_stder1"
18043   at_func_filter_trace $?
18044 else
18045   ( :;
18046 mkdir posix
18047 (cd posix
18048 TEST_TAR_FORMAT=posix
18049 export TEST_TAR_FORMAT
18050 TAR_OPTIONS="-H posix"
18051 export TAR_OPTIONS
18052 rm -rf *
18053
18054 exec <&-
18055 genfile --file file
18056 decho "# Create volume"
18057 tar -c -f archive file
18058 decho "# Update: wrong label"
18059 tar -rf archive --label='My volume' file; echo $?
18060 decho "# Update: right label"
18061 tar -rf archive file
18062 ) ) >"$at_stdout" 2>"$at_stderr"
18063 fi
18064 at_status=$?
18065 at_failed=false
18066 echo >>"$at_stderr"; $as_echo "# Create volume
18067 # Update: wrong label
18068 tar: Archive not labeled to match \`My volume'
18069 tar: Error is not recoverable: exiting now
18070 # Update: right label
18071 " | \
18072   $at_diff - "$at_stderr" || at_failed=:
18073 echo >>"$at_stdout"; $as_echo "# Create volume
18074 # Update: wrong label
18075 2
18076 # Update: right label
18077 " | \
18078   $at_diff - "$at_stdout" || at_failed=:
18079 at_func_check_status 0 $at_status "$at_srcdir/label05.at:25"
18080
18081 $at_failed && at_func_log_failure
18082 $at_traceon; }
18083
18084
18085
18086
18087   $at_traceoff
18088   $at_times_p && times >"$at_times_file"
18089 ) 5>&1 2>&1 | eval $at_tee_pipe
18090 at_status=`cat "$at_status_file"`
18091 #AT_STOP_48
18092 #AT_START_49
18093 # 49. backup01.at:33: extracting existing dir with --backup
18094 at_setup_line='backup01.at:33'
18095 at_desc="extracting existing dir with --backup"
18096 $at_quiet $as_echo_n " 49: $at_desc          "
18097 at_xfail=no
18098       test -f $XFAILFILE && at_xfail=yes
18099 echo "#                             -*- compilation -*-" >> "$at_group_log"
18100 (
18101   $as_echo "49. backup01.at:33: testing ..."
18102   $at_traceon
18103
18104
18105
18106
18107
18108   { $at_traceoff
18109 $as_echo "$at_srcdir/backup01.at:36:
18110 mkdir v7
18111 (cd v7
18112 TEST_TAR_FORMAT=v7
18113 export TEST_TAR_FORMAT
18114 TAR_OPTIONS=\"-H v7\"
18115 export TAR_OPTIONS
18116 rm -rf *
18117
18118 unset VERSION_CONTROL
18119 mkdir dir1 dir2
18120 echo bla > dir1/file1
18121 tar cf test.tar dir1 dir2
18122 tar xfv test.tar --backup --warning=no-timestamp
18123 )"
18124 echo backup01.at:36 >"$at_check_line_file"
18125
18126 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
18127    false; }; then
18128   ( $at_traceon;
18129 mkdir v7
18130 (cd v7
18131 TEST_TAR_FORMAT=v7
18132 export TEST_TAR_FORMAT
18133 TAR_OPTIONS="-H v7"
18134 export TAR_OPTIONS
18135 rm -rf *
18136
18137 unset VERSION_CONTROL
18138 mkdir dir1 dir2
18139 echo bla > dir1/file1
18140 tar cf test.tar dir1 dir2
18141 tar xfv test.tar --backup --warning=no-timestamp
18142 ) ) >"$at_stdout" 2>"$at_stder1"
18143   at_func_filter_trace $?
18144 else
18145   ( :;
18146 mkdir v7
18147 (cd v7
18148 TEST_TAR_FORMAT=v7
18149 export TEST_TAR_FORMAT
18150 TAR_OPTIONS="-H v7"
18151 export TAR_OPTIONS
18152 rm -rf *
18153
18154 unset VERSION_CONTROL
18155 mkdir dir1 dir2
18156 echo bla > dir1/file1
18157 tar cf test.tar dir1 dir2
18158 tar xfv test.tar --backup --warning=no-timestamp
18159 ) ) >"$at_stdout" 2>"$at_stderr"
18160 fi
18161 at_status=$?
18162 at_failed=false
18163 at_func_diff_devnull "$at_stderr" || at_failed=:
18164 echo >>"$at_stdout"; $as_echo "dir1/
18165 dir1/file1
18166 Renaming \`dir1/file1' to \`dir1/file1~'
18167 dir2/
18168 " | \
18169   $at_diff - "$at_stdout" || at_failed=:
18170 at_func_check_status 0 $at_status "$at_srcdir/backup01.at:36"
18171
18172 $at_failed && at_func_log_failure
18173 $at_traceon; }
18174
18175               { $at_traceoff
18176 $as_echo "$at_srcdir/backup01.at:36:
18177 mkdir oldgnu
18178 (cd oldgnu
18179 TEST_TAR_FORMAT=oldgnu
18180 export TEST_TAR_FORMAT
18181 TAR_OPTIONS=\"-H oldgnu\"
18182 export TAR_OPTIONS
18183 rm -rf *
18184
18185 unset VERSION_CONTROL
18186 mkdir dir1 dir2
18187 echo bla > dir1/file1
18188 tar cf test.tar dir1 dir2
18189 tar xfv test.tar --backup --warning=no-timestamp
18190 )"
18191 echo backup01.at:36 >"$at_check_line_file"
18192
18193 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
18194    false; }; then
18195   ( $at_traceon;
18196 mkdir oldgnu
18197 (cd oldgnu
18198 TEST_TAR_FORMAT=oldgnu
18199 export TEST_TAR_FORMAT
18200 TAR_OPTIONS="-H oldgnu"
18201 export TAR_OPTIONS
18202 rm -rf *
18203
18204 unset VERSION_CONTROL
18205 mkdir dir1 dir2
18206 echo bla > dir1/file1
18207 tar cf test.tar dir1 dir2
18208 tar xfv test.tar --backup --warning=no-timestamp
18209 ) ) >"$at_stdout" 2>"$at_stder1"
18210   at_func_filter_trace $?
18211 else
18212   ( :;
18213 mkdir oldgnu
18214 (cd oldgnu
18215 TEST_TAR_FORMAT=oldgnu
18216 export TEST_TAR_FORMAT
18217 TAR_OPTIONS="-H oldgnu"
18218 export TAR_OPTIONS
18219 rm -rf *
18220
18221 unset VERSION_CONTROL
18222 mkdir dir1 dir2
18223 echo bla > dir1/file1
18224 tar cf test.tar dir1 dir2
18225 tar xfv test.tar --backup --warning=no-timestamp
18226 ) ) >"$at_stdout" 2>"$at_stderr"
18227 fi
18228 at_status=$?
18229 at_failed=false
18230 at_func_diff_devnull "$at_stderr" || at_failed=:
18231 echo >>"$at_stdout"; $as_echo "dir1/
18232 dir1/file1
18233 Renaming \`dir1/file1' to \`dir1/file1~'
18234 dir2/
18235 " | \
18236   $at_diff - "$at_stdout" || at_failed=:
18237 at_func_check_status 0 $at_status "$at_srcdir/backup01.at:36"
18238
18239 $at_failed && at_func_log_failure
18240 $at_traceon; }
18241
18242               { $at_traceoff
18243 $as_echo "$at_srcdir/backup01.at:36:
18244 mkdir ustar
18245 (cd ustar
18246 TEST_TAR_FORMAT=ustar
18247 export TEST_TAR_FORMAT
18248 TAR_OPTIONS=\"-H ustar\"
18249 export TAR_OPTIONS
18250 rm -rf *
18251
18252 unset VERSION_CONTROL
18253 mkdir dir1 dir2
18254 echo bla > dir1/file1
18255 tar cf test.tar dir1 dir2
18256 tar xfv test.tar --backup --warning=no-timestamp
18257 )"
18258 echo backup01.at:36 >"$at_check_line_file"
18259
18260 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
18261    false; }; then
18262   ( $at_traceon;
18263 mkdir ustar
18264 (cd ustar
18265 TEST_TAR_FORMAT=ustar
18266 export TEST_TAR_FORMAT
18267 TAR_OPTIONS="-H ustar"
18268 export TAR_OPTIONS
18269 rm -rf *
18270
18271 unset VERSION_CONTROL
18272 mkdir dir1 dir2
18273 echo bla > dir1/file1
18274 tar cf test.tar dir1 dir2
18275 tar xfv test.tar --backup --warning=no-timestamp
18276 ) ) >"$at_stdout" 2>"$at_stder1"
18277   at_func_filter_trace $?
18278 else
18279   ( :;
18280 mkdir ustar
18281 (cd ustar
18282 TEST_TAR_FORMAT=ustar
18283 export TEST_TAR_FORMAT
18284 TAR_OPTIONS="-H ustar"
18285 export TAR_OPTIONS
18286 rm -rf *
18287
18288 unset VERSION_CONTROL
18289 mkdir dir1 dir2
18290 echo bla > dir1/file1
18291 tar cf test.tar dir1 dir2
18292 tar xfv test.tar --backup --warning=no-timestamp
18293 ) ) >"$at_stdout" 2>"$at_stderr"
18294 fi
18295 at_status=$?
18296 at_failed=false
18297 at_func_diff_devnull "$at_stderr" || at_failed=:
18298 echo >>"$at_stdout"; $as_echo "dir1/
18299 dir1/file1
18300 Renaming \`dir1/file1' to \`dir1/file1~'
18301 dir2/
18302 " | \
18303   $at_diff - "$at_stdout" || at_failed=:
18304 at_func_check_status 0 $at_status "$at_srcdir/backup01.at:36"
18305
18306 $at_failed && at_func_log_failure
18307 $at_traceon; }
18308
18309               { $at_traceoff
18310 $as_echo "$at_srcdir/backup01.at:36:
18311 mkdir posix
18312 (cd posix
18313 TEST_TAR_FORMAT=posix
18314 export TEST_TAR_FORMAT
18315 TAR_OPTIONS=\"-H posix\"
18316 export TAR_OPTIONS
18317 rm -rf *
18318
18319 unset VERSION_CONTROL
18320 mkdir dir1 dir2
18321 echo bla > dir1/file1
18322 tar cf test.tar dir1 dir2
18323 tar xfv test.tar --backup --warning=no-timestamp
18324 )"
18325 echo backup01.at:36 >"$at_check_line_file"
18326
18327 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
18328    false; }; then
18329   ( $at_traceon;
18330 mkdir posix
18331 (cd posix
18332 TEST_TAR_FORMAT=posix
18333 export TEST_TAR_FORMAT
18334 TAR_OPTIONS="-H posix"
18335 export TAR_OPTIONS
18336 rm -rf *
18337
18338 unset VERSION_CONTROL
18339 mkdir dir1 dir2
18340 echo bla > dir1/file1
18341 tar cf test.tar dir1 dir2
18342 tar xfv test.tar --backup --warning=no-timestamp
18343 ) ) >"$at_stdout" 2>"$at_stder1"
18344   at_func_filter_trace $?
18345 else
18346   ( :;
18347 mkdir posix
18348 (cd posix
18349 TEST_TAR_FORMAT=posix
18350 export TEST_TAR_FORMAT
18351 TAR_OPTIONS="-H posix"
18352 export TAR_OPTIONS
18353 rm -rf *
18354
18355 unset VERSION_CONTROL
18356 mkdir dir1 dir2
18357 echo bla > dir1/file1
18358 tar cf test.tar dir1 dir2
18359 tar xfv test.tar --backup --warning=no-timestamp
18360 ) ) >"$at_stdout" 2>"$at_stderr"
18361 fi
18362 at_status=$?
18363 at_failed=false
18364 at_func_diff_devnull "$at_stderr" || at_failed=:
18365 echo >>"$at_stdout"; $as_echo "dir1/
18366 dir1/file1
18367 Renaming \`dir1/file1' to \`dir1/file1~'
18368 dir2/
18369 " | \
18370   $at_diff - "$at_stdout" || at_failed=:
18371 at_func_check_status 0 $at_status "$at_srcdir/backup01.at:36"
18372
18373 $at_failed && at_func_log_failure
18374 $at_traceon; }
18375
18376               { $at_traceoff
18377 $as_echo "$at_srcdir/backup01.at:36:
18378 mkdir gnu
18379 (cd gnu
18380 TEST_TAR_FORMAT=gnu
18381 export TEST_TAR_FORMAT
18382 TAR_OPTIONS=\"-H gnu\"
18383 export TAR_OPTIONS
18384 rm -rf *
18385
18386 unset VERSION_CONTROL
18387 mkdir dir1 dir2
18388 echo bla > dir1/file1
18389 tar cf test.tar dir1 dir2
18390 tar xfv test.tar --backup --warning=no-timestamp
18391 )"
18392 echo backup01.at:36 >"$at_check_line_file"
18393
18394 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
18395    false; }; then
18396   ( $at_traceon;
18397 mkdir gnu
18398 (cd gnu
18399 TEST_TAR_FORMAT=gnu
18400 export TEST_TAR_FORMAT
18401 TAR_OPTIONS="-H gnu"
18402 export TAR_OPTIONS
18403 rm -rf *
18404
18405 unset VERSION_CONTROL
18406 mkdir dir1 dir2
18407 echo bla > dir1/file1
18408 tar cf test.tar dir1 dir2
18409 tar xfv test.tar --backup --warning=no-timestamp
18410 ) ) >"$at_stdout" 2>"$at_stder1"
18411   at_func_filter_trace $?
18412 else
18413   ( :;
18414 mkdir gnu
18415 (cd gnu
18416 TEST_TAR_FORMAT=gnu
18417 export TEST_TAR_FORMAT
18418 TAR_OPTIONS="-H gnu"
18419 export TAR_OPTIONS
18420 rm -rf *
18421
18422 unset VERSION_CONTROL
18423 mkdir dir1 dir2
18424 echo bla > dir1/file1
18425 tar cf test.tar dir1 dir2
18426 tar xfv test.tar --backup --warning=no-timestamp
18427 ) ) >"$at_stdout" 2>"$at_stderr"
18428 fi
18429 at_status=$?
18430 at_failed=false
18431 at_func_diff_devnull "$at_stderr" || at_failed=:
18432 echo >>"$at_stdout"; $as_echo "dir1/
18433 dir1/file1
18434 Renaming \`dir1/file1' to \`dir1/file1~'
18435 dir2/
18436 " | \
18437   $at_diff - "$at_stdout" || at_failed=:
18438 at_func_check_status 0 $at_status "$at_srcdir/backup01.at:36"
18439
18440 $at_failed && at_func_log_failure
18441 $at_traceon; }
18442
18443
18444
18445
18446   $at_traceoff
18447   $at_times_p && times >"$at_times_file"
18448 ) 5>&1 2>&1 | eval $at_tee_pipe
18449 at_status=`cat "$at_status_file"`
18450 #AT_STOP_49
18451 #AT_START_50
18452 # 50. gzip.at:23: gzip
18453 at_setup_line='gzip.at:23'
18454 at_desc="gzip"
18455 $at_quiet $as_echo_n " 50: $at_desc                                           "
18456 at_xfail=no
18457 echo "#                             -*- compilation -*-" >> "$at_group_log"
18458 (
18459   $as_echo "50. gzip.at:23: testing ..."
18460   $at_traceon
18461
18462
18463
18464 unset TAR_OPTIONS
18465
18466 { $at_traceoff
18467 $as_echo "$at_srcdir/gzip.at:28:
18468
18469 cat /dev/null | gzip - > /dev/null 2>&1 || exit 77
18470
18471 tar xfvz /dev/null 2>err
18472 RC=\$?
18473 sed -n '/^tar:/p' err >&2
18474 exit \$RC
18475 "
18476 echo gzip.at:28 >"$at_check_line_file"
18477
18478 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
18479    false; }; then
18480   ( $at_traceon;
18481
18482 cat /dev/null | gzip - > /dev/null 2>&1 || exit 77
18483
18484 tar xfvz /dev/null 2>err
18485 RC=$?
18486 sed -n '/^tar:/p' err >&2
18487 exit $RC
18488  ) >"$at_stdout" 2>"$at_stder1"
18489   at_func_filter_trace $?
18490 else
18491   ( :;
18492
18493 cat /dev/null | gzip - > /dev/null 2>&1 || exit 77
18494
18495 tar xfvz /dev/null 2>err
18496 RC=$?
18497 sed -n '/^tar:/p' err >&2
18498 exit $RC
18499  ) >"$at_stdout" 2>"$at_stderr"
18500 fi
18501 at_status=$?
18502 at_failed=false
18503 echo >>"$at_stderr"; $as_echo "tar: Child returned status 1
18504 tar: Error is not recoverable: exiting now
18505 " | \
18506   $at_diff - "$at_stderr" || at_failed=:
18507 at_func_diff_devnull "$at_stdout" || at_failed=:
18508 at_func_check_status 2 $at_status "$at_srcdir/gzip.at:28"
18509
18510 $at_failed && at_func_log_failure
18511 $at_traceon; }
18512
18513
18514   $at_traceoff
18515   $at_times_p && times >"$at_times_file"
18516 ) 5>&1 2>&1 | eval $at_tee_pipe
18517 at_status=`cat "$at_status_file"`
18518 #AT_STOP_50
18519 #AT_START_51
18520 # 51. incremental.at:23: incremental
18521 at_setup_line='incremental.at:23'
18522 at_desc="incremental"
18523 $at_quiet $as_echo_n " 51: $at_desc                                    "
18524 at_xfail=no
18525       test -f $XFAILFILE && at_xfail=yes
18526 echo "#                             -*- compilation -*-" >> "$at_group_log"
18527 (
18528   $as_echo "51. incremental.at:23: testing ..."
18529   $at_traceon
18530
18531
18532
18533
18534
18535   { $at_traceoff
18536 $as_echo "$at_srcdir/incremental.at:26:
18537 mkdir gnu
18538 (cd gnu
18539 TEST_TAR_FORMAT=gnu
18540 export TEST_TAR_FORMAT
18541 TAR_OPTIONS=\"-H gnu\"
18542 export TAR_OPTIONS
18543 rm -rf *
18544
18545 mkdir structure
18546 echo x >structure/file
18547
18548 # On Nextstep (and perhaps other 4.3BSD systems),
18549 # a newly created file's ctime isn't updated
18550 # until the next sync or stat operation on the file.
18551 ls -l structure/file >/dev/null
18552
18553 # If the time of an initial backup and the creation time of a file contained
18554 # in that backup are the same, the file will be backed up again when an
18555 # incremental backup is done, because the incremental backup backs up
18556 # files created \`on or after' the initial backup time.  Without the sleep
18557 # command, behaviour of tar becomes variable, depending whether the system
18558 # clock ticked over to the next second between creating the file and
18559 # backing it up.
18560 sleep 1
18561
18562 tar cf archive --listed=list structure
18563 tar cfv archive --listed=list structure
18564 echo separator
18565 # ReiserFS often offsets the timestamps of newly created files
18566 # 1 second to the past.  Try to compensate for it, until a better
18567 # solution is found.
18568 sleep 2
18569 echo y >structure/file
18570 tar cfv archive --listed=list structure
18571 )"
18572 echo incremental.at:26 >"$at_check_line_file"
18573
18574 if { echo 'Not enabling shell tracing (command contains a `...` command substitution)'
18575    false; }; then
18576   ( $at_traceon;
18577 mkdir gnu
18578 (cd gnu
18579 TEST_TAR_FORMAT=gnu
18580 export TEST_TAR_FORMAT
18581 TAR_OPTIONS="-H gnu"
18582 export TAR_OPTIONS
18583 rm -rf *
18584
18585 mkdir structure
18586 echo x >structure/file
18587
18588 # On Nextstep (and perhaps other 4.3BSD systems),
18589 # a newly created file's ctime isn't updated
18590 # until the next sync or stat operation on the file.
18591 ls -l structure/file >/dev/null
18592
18593 # If the time of an initial backup and the creation time of a file contained
18594 # in that backup are the same, the file will be backed up again when an
18595 # incremental backup is done, because the incremental backup backs up
18596 # files created `on or after' the initial backup time.  Without the sleep
18597 # command, behaviour of tar becomes variable, depending whether the system
18598 # clock ticked over to the next second between creating the file and
18599 # backing it up.
18600 sleep 1
18601
18602 tar cf archive --listed=list structure
18603 tar cfv archive --listed=list structure
18604 echo separator
18605 # ReiserFS often offsets the timestamps of newly created files
18606 # 1 second to the past.  Try to compensate for it, until a better
18607 # solution is found.
18608 sleep 2
18609 echo y >structure/file
18610 tar cfv archive --listed=list structure
18611 ) ) >"$at_stdout" 2>"$at_stder1"
18612   at_func_filter_trace $?
18613 else
18614   ( :;
18615 mkdir gnu
18616 (cd gnu
18617 TEST_TAR_FORMAT=gnu
18618 export TEST_TAR_FORMAT
18619 TAR_OPTIONS="-H gnu"
18620 export TAR_OPTIONS
18621 rm -rf *
18622
18623 mkdir structure
18624 echo x >structure/file
18625
18626 # On Nextstep (and perhaps other 4.3BSD systems),
18627 # a newly created file's ctime isn't updated
18628 # until the next sync or stat operation on the file.
18629 ls -l structure/file >/dev/null
18630
18631 # If the time of an initial backup and the creation time of a file contained
18632 # in that backup are the same, the file will be backed up again when an
18633 # incremental backup is done, because the incremental backup backs up
18634 # files created `on or after' the initial backup time.  Without the sleep
18635 # command, behaviour of tar becomes variable, depending whether the system
18636 # clock ticked over to the next second between creating the file and
18637 # backing it up.
18638 sleep 1
18639
18640 tar cf archive --listed=list structure
18641 tar cfv archive --listed=list structure
18642 echo separator
18643 # ReiserFS often offsets the timestamps of newly created files
18644 # 1 second to the past.  Try to compensate for it, until a better
18645 # solution is found.
18646 sleep 2
18647 echo y >structure/file
18648 tar cfv archive --listed=list structure
18649 ) ) >"$at_stdout" 2>"$at_stderr"
18650 fi
18651 at_status=$?
18652 at_failed=false
18653 at_func_diff_devnull "$at_stderr" || at_failed=:
18654 echo >>"$at_stdout"; $as_echo "structure/
18655 separator
18656 structure/
18657 structure/file
18658 " | \
18659   $at_diff - "$at_stdout" || at_failed=:
18660 at_func_check_status 0 $at_status "$at_srcdir/incremental.at:26"
18661
18662 $at_failed && at_func_log_failure
18663 $at_traceon; }
18664
18665               { $at_traceoff
18666 $as_echo "$at_srcdir/incremental.at:26:
18667 mkdir oldgnu
18668 (cd oldgnu
18669 TEST_TAR_FORMAT=oldgnu
18670 export TEST_TAR_FORMAT
18671 TAR_OPTIONS=\"-H oldgnu\"
18672 export TAR_OPTIONS
18673 rm -rf *
18674
18675 mkdir structure
18676 echo x >structure/file
18677
18678 # On Nextstep (and perhaps other 4.3BSD systems),
18679 # a newly created file's ctime isn't updated
18680 # until the next sync or stat operation on the file.
18681 ls -l structure/file >/dev/null
18682
18683 # If the time of an initial backup and the creation time of a file contained
18684 # in that backup are the same, the file will be backed up again when an
18685 # incremental backup is done, because the incremental backup backs up
18686 # files created \`on or after' the initial backup time.  Without the sleep
18687 # command, behaviour of tar becomes variable, depending whether the system
18688 # clock ticked over to the next second between creating the file and
18689 # backing it up.
18690 sleep 1
18691
18692 tar cf archive --listed=list structure
18693 tar cfv archive --listed=list structure
18694 echo separator
18695 # ReiserFS often offsets the timestamps of newly created files
18696 # 1 second to the past.  Try to compensate for it, until a better
18697 # solution is found.
18698 sleep 2
18699 echo y >structure/file
18700 tar cfv archive --listed=list structure
18701 )"
18702 echo incremental.at:26 >"$at_check_line_file"
18703
18704 if { echo 'Not enabling shell tracing (command contains a `...` command substitution)'
18705    false; }; then
18706   ( $at_traceon;
18707 mkdir oldgnu
18708 (cd oldgnu
18709 TEST_TAR_FORMAT=oldgnu
18710 export TEST_TAR_FORMAT
18711 TAR_OPTIONS="-H oldgnu"
18712 export TAR_OPTIONS
18713 rm -rf *
18714
18715 mkdir structure
18716 echo x >structure/file
18717
18718 # On Nextstep (and perhaps other 4.3BSD systems),
18719 # a newly created file's ctime isn't updated
18720 # until the next sync or stat operation on the file.
18721 ls -l structure/file >/dev/null
18722
18723 # If the time of an initial backup and the creation time of a file contained
18724 # in that backup are the same, the file will be backed up again when an
18725 # incremental backup is done, because the incremental backup backs up
18726 # files created `on or after' the initial backup time.  Without the sleep
18727 # command, behaviour of tar becomes variable, depending whether the system
18728 # clock ticked over to the next second between creating the file and
18729 # backing it up.
18730 sleep 1
18731
18732 tar cf archive --listed=list structure
18733 tar cfv archive --listed=list structure
18734 echo separator
18735 # ReiserFS often offsets the timestamps of newly created files
18736 # 1 second to the past.  Try to compensate for it, until a better
18737 # solution is found.
18738 sleep 2
18739 echo y >structure/file
18740 tar cfv archive --listed=list structure
18741 ) ) >"$at_stdout" 2>"$at_stder1"
18742   at_func_filter_trace $?
18743 else
18744   ( :;
18745 mkdir oldgnu
18746 (cd oldgnu
18747 TEST_TAR_FORMAT=oldgnu
18748 export TEST_TAR_FORMAT
18749 TAR_OPTIONS="-H oldgnu"
18750 export TAR_OPTIONS
18751 rm -rf *
18752
18753 mkdir structure
18754 echo x >structure/file
18755
18756 # On Nextstep (and perhaps other 4.3BSD systems),
18757 # a newly created file's ctime isn't updated
18758 # until the next sync or stat operation on the file.
18759 ls -l structure/file >/dev/null
18760
18761 # If the time of an initial backup and the creation time of a file contained
18762 # in that backup are the same, the file will be backed up again when an
18763 # incremental backup is done, because the incremental backup backs up
18764 # files created `on or after' the initial backup time.  Without the sleep
18765 # command, behaviour of tar becomes variable, depending whether the system
18766 # clock ticked over to the next second between creating the file and
18767 # backing it up.
18768 sleep 1
18769
18770 tar cf archive --listed=list structure
18771 tar cfv archive --listed=list structure
18772 echo separator
18773 # ReiserFS often offsets the timestamps of newly created files
18774 # 1 second to the past.  Try to compensate for it, until a better
18775 # solution is found.
18776 sleep 2
18777 echo y >structure/file
18778 tar cfv archive --listed=list structure
18779 ) ) >"$at_stdout" 2>"$at_stderr"
18780 fi
18781 at_status=$?
18782 at_failed=false
18783 at_func_diff_devnull "$at_stderr" || at_failed=:
18784 echo >>"$at_stdout"; $as_echo "structure/
18785 separator
18786 structure/
18787 structure/file
18788 " | \
18789   $at_diff - "$at_stdout" || at_failed=:
18790 at_func_check_status 0 $at_status "$at_srcdir/incremental.at:26"
18791
18792 $at_failed && at_func_log_failure
18793 $at_traceon; }
18794
18795               { $at_traceoff
18796 $as_echo "$at_srcdir/incremental.at:26:
18797 mkdir posix
18798 (cd posix
18799 TEST_TAR_FORMAT=posix
18800 export TEST_TAR_FORMAT
18801 TAR_OPTIONS=\"-H posix\"
18802 export TAR_OPTIONS
18803 rm -rf *
18804
18805 mkdir structure
18806 echo x >structure/file
18807
18808 # On Nextstep (and perhaps other 4.3BSD systems),
18809 # a newly created file's ctime isn't updated
18810 # until the next sync or stat operation on the file.
18811 ls -l structure/file >/dev/null
18812
18813 # If the time of an initial backup and the creation time of a file contained
18814 # in that backup are the same, the file will be backed up again when an
18815 # incremental backup is done, because the incremental backup backs up
18816 # files created \`on or after' the initial backup time.  Without the sleep
18817 # command, behaviour of tar becomes variable, depending whether the system
18818 # clock ticked over to the next second between creating the file and
18819 # backing it up.
18820 sleep 1
18821
18822 tar cf archive --listed=list structure
18823 tar cfv archive --listed=list structure
18824 echo separator
18825 # ReiserFS often offsets the timestamps of newly created files
18826 # 1 second to the past.  Try to compensate for it, until a better
18827 # solution is found.
18828 sleep 2
18829 echo y >structure/file
18830 tar cfv archive --listed=list structure
18831 )"
18832 echo incremental.at:26 >"$at_check_line_file"
18833
18834 if { echo 'Not enabling shell tracing (command contains a `...` command substitution)'
18835    false; }; then
18836   ( $at_traceon;
18837 mkdir posix
18838 (cd posix
18839 TEST_TAR_FORMAT=posix
18840 export TEST_TAR_FORMAT
18841 TAR_OPTIONS="-H posix"
18842 export TAR_OPTIONS
18843 rm -rf *
18844
18845 mkdir structure
18846 echo x >structure/file
18847
18848 # On Nextstep (and perhaps other 4.3BSD systems),
18849 # a newly created file's ctime isn't updated
18850 # until the next sync or stat operation on the file.
18851 ls -l structure/file >/dev/null
18852
18853 # If the time of an initial backup and the creation time of a file contained
18854 # in that backup are the same, the file will be backed up again when an
18855 # incremental backup is done, because the incremental backup backs up
18856 # files created `on or after' the initial backup time.  Without the sleep
18857 # command, behaviour of tar becomes variable, depending whether the system
18858 # clock ticked over to the next second between creating the file and
18859 # backing it up.
18860 sleep 1
18861
18862 tar cf archive --listed=list structure
18863 tar cfv archive --listed=list structure
18864 echo separator
18865 # ReiserFS often offsets the timestamps of newly created files
18866 # 1 second to the past.  Try to compensate for it, until a better
18867 # solution is found.
18868 sleep 2
18869 echo y >structure/file
18870 tar cfv archive --listed=list structure
18871 ) ) >"$at_stdout" 2>"$at_stder1"
18872   at_func_filter_trace $?
18873 else
18874   ( :;
18875 mkdir posix
18876 (cd posix
18877 TEST_TAR_FORMAT=posix
18878 export TEST_TAR_FORMAT
18879 TAR_OPTIONS="-H posix"
18880 export TAR_OPTIONS
18881 rm -rf *
18882
18883 mkdir structure
18884 echo x >structure/file
18885
18886 # On Nextstep (and perhaps other 4.3BSD systems),
18887 # a newly created file's ctime isn't updated
18888 # until the next sync or stat operation on the file.
18889 ls -l structure/file >/dev/null
18890
18891 # If the time of an initial backup and the creation time of a file contained
18892 # in that backup are the same, the file will be backed up again when an
18893 # incremental backup is done, because the incremental backup backs up
18894 # files created `on or after' the initial backup time.  Without the sleep
18895 # command, behaviour of tar becomes variable, depending whether the system
18896 # clock ticked over to the next second between creating the file and
18897 # backing it up.
18898 sleep 1
18899
18900 tar cf archive --listed=list structure
18901 tar cfv archive --listed=list structure
18902 echo separator
18903 # ReiserFS often offsets the timestamps of newly created files
18904 # 1 second to the past.  Try to compensate for it, until a better
18905 # solution is found.
18906 sleep 2
18907 echo y >structure/file
18908 tar cfv archive --listed=list structure
18909 ) ) >"$at_stdout" 2>"$at_stderr"
18910 fi
18911 at_status=$?
18912 at_failed=false
18913 at_func_diff_devnull "$at_stderr" || at_failed=:
18914 echo >>"$at_stdout"; $as_echo "structure/
18915 separator
18916 structure/
18917 structure/file
18918 " | \
18919   $at_diff - "$at_stdout" || at_failed=:
18920 at_func_check_status 0 $at_status "$at_srcdir/incremental.at:26"
18921
18922 $at_failed && at_func_log_failure
18923 $at_traceon; }
18924
18925
18926
18927
18928   $at_traceoff
18929   $at_times_p && times >"$at_times_file"
18930 ) 5>&1 2>&1 | eval $at_tee_pipe
18931 at_status=`cat "$at_status_file"`
18932 #AT_STOP_51
18933 #AT_START_52
18934 # 52. incr01.at:27: restore broken symlinks from incremental
18935 at_setup_line='incr01.at:27'
18936 at_desc="restore broken symlinks from incremental"
18937 $at_quiet $as_echo_n " 52: $at_desc       "
18938 at_xfail=no
18939       test -f $XFAILFILE && at_xfail=yes
18940 echo "#                             -*- compilation -*-" >> "$at_group_log"
18941 (
18942   $as_echo "52. incr01.at:27: testing ..."
18943   $at_traceon
18944
18945
18946
18947
18948
18949   { $at_traceoff
18950 $as_echo "$at_srcdir/incr01.at:30:
18951 mkdir gnu
18952 (cd gnu
18953 TEST_TAR_FORMAT=gnu
18954 export TEST_TAR_FORMAT
18955 TAR_OPTIONS=\"-H gnu\"
18956 export TAR_OPTIONS
18957 rm -rf *
18958
18959 mkdir directory
18960 \$as_ln_s foo directory/bar
18961
18962 tar -cf archive.0 -g db directory
18963 rm directory/bar
18964 tar -cf archive.1 -g db directory
18965
18966 mv directory orig
18967
18968 tar xvfg archive.0 /dev/null --warning=no-timestamp
18969 echo separator
18970 tar xvfg archive.1 /dev/null --warning=no-timestamp
18971 )"
18972 echo incr01.at:30 >"$at_check_line_file"
18973
18974 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
18975    false; }; then
18976   ( $at_traceon;
18977 mkdir gnu
18978 (cd gnu
18979 TEST_TAR_FORMAT=gnu
18980 export TEST_TAR_FORMAT
18981 TAR_OPTIONS="-H gnu"
18982 export TAR_OPTIONS
18983 rm -rf *
18984
18985 mkdir directory
18986 $as_ln_s foo directory/bar
18987
18988 tar -cf archive.0 -g db directory
18989 rm directory/bar
18990 tar -cf archive.1 -g db directory
18991
18992 mv directory orig
18993
18994 tar xvfg archive.0 /dev/null --warning=no-timestamp
18995 echo separator
18996 tar xvfg archive.1 /dev/null --warning=no-timestamp
18997 ) ) >"$at_stdout" 2>"$at_stder1"
18998   at_func_filter_trace $?
18999 else
19000   ( :;
19001 mkdir gnu
19002 (cd gnu
19003 TEST_TAR_FORMAT=gnu
19004 export TEST_TAR_FORMAT
19005 TAR_OPTIONS="-H gnu"
19006 export TAR_OPTIONS
19007 rm -rf *
19008
19009 mkdir directory
19010 $as_ln_s foo directory/bar
19011
19012 tar -cf archive.0 -g db directory
19013 rm directory/bar
19014 tar -cf archive.1 -g db directory
19015
19016 mv directory orig
19017
19018 tar xvfg archive.0 /dev/null --warning=no-timestamp
19019 echo separator
19020 tar xvfg archive.1 /dev/null --warning=no-timestamp
19021 ) ) >"$at_stdout" 2>"$at_stderr"
19022 fi
19023 at_status=$?
19024 at_failed=false
19025 at_func_diff_devnull "$at_stderr" || at_failed=:
19026 echo >>"$at_stdout"; $as_echo "directory/
19027 directory/bar
19028 separator
19029 directory/
19030 tar: Deleting \`directory/bar'
19031 " | \
19032   $at_diff - "$at_stdout" || at_failed=:
19033 at_func_check_status 0 $at_status "$at_srcdir/incr01.at:30"
19034
19035 $at_failed && at_func_log_failure
19036 $at_traceon; }
19037
19038               { $at_traceoff
19039 $as_echo "$at_srcdir/incr01.at:30:
19040 mkdir oldgnu
19041 (cd oldgnu
19042 TEST_TAR_FORMAT=oldgnu
19043 export TEST_TAR_FORMAT
19044 TAR_OPTIONS=\"-H oldgnu\"
19045 export TAR_OPTIONS
19046 rm -rf *
19047
19048 mkdir directory
19049 \$as_ln_s foo directory/bar
19050
19051 tar -cf archive.0 -g db directory
19052 rm directory/bar
19053 tar -cf archive.1 -g db directory
19054
19055 mv directory orig
19056
19057 tar xvfg archive.0 /dev/null --warning=no-timestamp
19058 echo separator
19059 tar xvfg archive.1 /dev/null --warning=no-timestamp
19060 )"
19061 echo incr01.at:30 >"$at_check_line_file"
19062
19063 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
19064    false; }; then
19065   ( $at_traceon;
19066 mkdir oldgnu
19067 (cd oldgnu
19068 TEST_TAR_FORMAT=oldgnu
19069 export TEST_TAR_FORMAT
19070 TAR_OPTIONS="-H oldgnu"
19071 export TAR_OPTIONS
19072 rm -rf *
19073
19074 mkdir directory
19075 $as_ln_s foo directory/bar
19076
19077 tar -cf archive.0 -g db directory
19078 rm directory/bar
19079 tar -cf archive.1 -g db directory
19080
19081 mv directory orig
19082
19083 tar xvfg archive.0 /dev/null --warning=no-timestamp
19084 echo separator
19085 tar xvfg archive.1 /dev/null --warning=no-timestamp
19086 ) ) >"$at_stdout" 2>"$at_stder1"
19087   at_func_filter_trace $?
19088 else
19089   ( :;
19090 mkdir oldgnu
19091 (cd oldgnu
19092 TEST_TAR_FORMAT=oldgnu
19093 export TEST_TAR_FORMAT
19094 TAR_OPTIONS="-H oldgnu"
19095 export TAR_OPTIONS
19096 rm -rf *
19097
19098 mkdir directory
19099 $as_ln_s foo directory/bar
19100
19101 tar -cf archive.0 -g db directory
19102 rm directory/bar
19103 tar -cf archive.1 -g db directory
19104
19105 mv directory orig
19106
19107 tar xvfg archive.0 /dev/null --warning=no-timestamp
19108 echo separator
19109 tar xvfg archive.1 /dev/null --warning=no-timestamp
19110 ) ) >"$at_stdout" 2>"$at_stderr"
19111 fi
19112 at_status=$?
19113 at_failed=false
19114 at_func_diff_devnull "$at_stderr" || at_failed=:
19115 echo >>"$at_stdout"; $as_echo "directory/
19116 directory/bar
19117 separator
19118 directory/
19119 tar: Deleting \`directory/bar'
19120 " | \
19121   $at_diff - "$at_stdout" || at_failed=:
19122 at_func_check_status 0 $at_status "$at_srcdir/incr01.at:30"
19123
19124 $at_failed && at_func_log_failure
19125 $at_traceon; }
19126
19127               { $at_traceoff
19128 $as_echo "$at_srcdir/incr01.at:30:
19129 mkdir posix
19130 (cd posix
19131 TEST_TAR_FORMAT=posix
19132 export TEST_TAR_FORMAT
19133 TAR_OPTIONS=\"-H posix\"
19134 export TAR_OPTIONS
19135 rm -rf *
19136
19137 mkdir directory
19138 \$as_ln_s foo directory/bar
19139
19140 tar -cf archive.0 -g db directory
19141 rm directory/bar
19142 tar -cf archive.1 -g db directory
19143
19144 mv directory orig
19145
19146 tar xvfg archive.0 /dev/null --warning=no-timestamp
19147 echo separator
19148 tar xvfg archive.1 /dev/null --warning=no-timestamp
19149 )"
19150 echo incr01.at:30 >"$at_check_line_file"
19151
19152 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
19153    false; }; then
19154   ( $at_traceon;
19155 mkdir posix
19156 (cd posix
19157 TEST_TAR_FORMAT=posix
19158 export TEST_TAR_FORMAT
19159 TAR_OPTIONS="-H posix"
19160 export TAR_OPTIONS
19161 rm -rf *
19162
19163 mkdir directory
19164 $as_ln_s foo directory/bar
19165
19166 tar -cf archive.0 -g db directory
19167 rm directory/bar
19168 tar -cf archive.1 -g db directory
19169
19170 mv directory orig
19171
19172 tar xvfg archive.0 /dev/null --warning=no-timestamp
19173 echo separator
19174 tar xvfg archive.1 /dev/null --warning=no-timestamp
19175 ) ) >"$at_stdout" 2>"$at_stder1"
19176   at_func_filter_trace $?
19177 else
19178   ( :;
19179 mkdir posix
19180 (cd posix
19181 TEST_TAR_FORMAT=posix
19182 export TEST_TAR_FORMAT
19183 TAR_OPTIONS="-H posix"
19184 export TAR_OPTIONS
19185 rm -rf *
19186
19187 mkdir directory
19188 $as_ln_s foo directory/bar
19189
19190 tar -cf archive.0 -g db directory
19191 rm directory/bar
19192 tar -cf archive.1 -g db directory
19193
19194 mv directory orig
19195
19196 tar xvfg archive.0 /dev/null --warning=no-timestamp
19197 echo separator
19198 tar xvfg archive.1 /dev/null --warning=no-timestamp
19199 ) ) >"$at_stdout" 2>"$at_stderr"
19200 fi
19201 at_status=$?
19202 at_failed=false
19203 at_func_diff_devnull "$at_stderr" || at_failed=:
19204 echo >>"$at_stdout"; $as_echo "directory/
19205 directory/bar
19206 separator
19207 directory/
19208 tar: Deleting \`directory/bar'
19209 " | \
19210   $at_diff - "$at_stdout" || at_failed=:
19211 at_func_check_status 0 $at_status "$at_srcdir/incr01.at:30"
19212
19213 $at_failed && at_func_log_failure
19214 $at_traceon; }
19215
19216
19217
19218
19219   $at_traceoff
19220   $at_times_p && times >"$at_times_file"
19221 ) 5>&1 2>&1 | eval $at_tee_pipe
19222 at_status=`cat "$at_status_file"`
19223 #AT_STOP_52
19224 #AT_START_53
19225 # 53. incr02.at:32: restoring timestamps from incremental
19226 at_setup_line='incr02.at:32'
19227 at_desc="restoring timestamps from incremental"
19228 $at_quiet $as_echo_n " 53: $at_desc          "
19229 at_xfail=no
19230       test -f $XFAILFILE && at_xfail=yes
19231 echo "#                             -*- compilation -*-" >> "$at_group_log"
19232 (
19233   $as_echo "53. incr02.at:32: testing ..."
19234   $at_traceon
19235
19236
19237
19238
19239
19240   { $at_traceoff
19241 $as_echo "$at_srcdir/incr02.at:35:
19242 mkdir gnu
19243 (cd gnu
19244 TEST_TAR_FORMAT=gnu
19245 export TEST_TAR_FORMAT
19246 TAR_OPTIONS=\"-H gnu\"
19247 export TAR_OPTIONS
19248 rm -rf *
19249
19250 # Create directory structure
19251 mkdir dir
19252 mkdir dir/subdir1
19253 mkdir dir/subdir2
19254 genfile --length 10 --file dir/subdir1/file
19255
19256 # Save mtime for later comparison
19257 genfile --stat=mtime dir/subdir1 > ts
19258
19259 # Create an archive. Using incremental mode makes sure the
19260 # archive will have a directory-first member ordering,
19261 # i.e.:
19262 # dir/
19263 # dir/subdir1/
19264 # dir/subdir2/
19265 # dir/subdir1/foofile
19266 #
19267 # When restoring from this directory structure, \`dir/subdir2/' used to
19268 # trigger apply_nonancestor_delayed_set_stat() which restored stats for
19269 # \`subdir1' prior to restoring \`dir/subdir1/foofile'. Then, restoring the
19270 # latter clobbered the directory timestamp.
19271
19272 tar -cf archive -g db dir
19273
19274 # Move away the directory
19275 mv dir orig
19276
19277 # Wait enough time for timestamps to differ in case of failure.
19278 sleep 5
19279
19280 # Restore the directory
19281 tar -xf archive dir
19282
19283 # Check the timestamp
19284 genfile --stat=mtime dir/subdir1 | diff ts -
19285 )"
19286 echo incr02.at:35 >"$at_check_line_file"
19287
19288 if { echo 'Not enabling shell tracing (command contains a `...` command substitution)'
19289    false; }; then
19290   ( $at_traceon;
19291 mkdir gnu
19292 (cd gnu
19293 TEST_TAR_FORMAT=gnu
19294 export TEST_TAR_FORMAT
19295 TAR_OPTIONS="-H gnu"
19296 export TAR_OPTIONS
19297 rm -rf *
19298
19299 # Create directory structure
19300 mkdir dir
19301 mkdir dir/subdir1
19302 mkdir dir/subdir2
19303 genfile --length 10 --file dir/subdir1/file
19304
19305 # Save mtime for later comparison
19306 genfile --stat=mtime dir/subdir1 > ts
19307
19308 # Create an archive. Using incremental mode makes sure the
19309 # archive will have a directory-first member ordering,
19310 # i.e.:
19311 # dir/
19312 # dir/subdir1/
19313 # dir/subdir2/
19314 # dir/subdir1/foofile
19315 #
19316 # When restoring from this directory structure, `dir/subdir2/' used to
19317 # trigger apply_nonancestor_delayed_set_stat() which restored stats for
19318 # `subdir1' prior to restoring `dir/subdir1/foofile'. Then, restoring the
19319 # latter clobbered the directory timestamp.
19320
19321 tar -cf archive -g db dir
19322
19323 # Move away the directory
19324 mv dir orig
19325
19326 # Wait enough time for timestamps to differ in case of failure.
19327 sleep 5
19328
19329 # Restore the directory
19330 tar -xf archive dir
19331
19332 # Check the timestamp
19333 genfile --stat=mtime dir/subdir1 | diff ts -
19334 ) ) >"$at_stdout" 2>"$at_stder1"
19335   at_func_filter_trace $?
19336 else
19337   ( :;
19338 mkdir gnu
19339 (cd gnu
19340 TEST_TAR_FORMAT=gnu
19341 export TEST_TAR_FORMAT
19342 TAR_OPTIONS="-H gnu"
19343 export TAR_OPTIONS
19344 rm -rf *
19345
19346 # Create directory structure
19347 mkdir dir
19348 mkdir dir/subdir1
19349 mkdir dir/subdir2
19350 genfile --length 10 --file dir/subdir1/file
19351
19352 # Save mtime for later comparison
19353 genfile --stat=mtime dir/subdir1 > ts
19354
19355 # Create an archive. Using incremental mode makes sure the
19356 # archive will have a directory-first member ordering,
19357 # i.e.:
19358 # dir/
19359 # dir/subdir1/
19360 # dir/subdir2/
19361 # dir/subdir1/foofile
19362 #
19363 # When restoring from this directory structure, `dir/subdir2/' used to
19364 # trigger apply_nonancestor_delayed_set_stat() which restored stats for
19365 # `subdir1' prior to restoring `dir/subdir1/foofile'. Then, restoring the
19366 # latter clobbered the directory timestamp.
19367
19368 tar -cf archive -g db dir
19369
19370 # Move away the directory
19371 mv dir orig
19372
19373 # Wait enough time for timestamps to differ in case of failure.
19374 sleep 5
19375
19376 # Restore the directory
19377 tar -xf archive dir
19378
19379 # Check the timestamp
19380 genfile --stat=mtime dir/subdir1 | diff ts -
19381 ) ) >"$at_stdout" 2>"$at_stderr"
19382 fi
19383 at_status=$?
19384 at_failed=false
19385 at_func_diff_devnull "$at_stderr" || at_failed=:
19386 at_func_diff_devnull "$at_stdout" || at_failed=:
19387 at_func_check_status 0 $at_status "$at_srcdir/incr02.at:35"
19388
19389 $at_failed && at_func_log_failure
19390 $at_traceon; }
19391
19392               { $at_traceoff
19393 $as_echo "$at_srcdir/incr02.at:35:
19394 mkdir oldgnu
19395 (cd oldgnu
19396 TEST_TAR_FORMAT=oldgnu
19397 export TEST_TAR_FORMAT
19398 TAR_OPTIONS=\"-H oldgnu\"
19399 export TAR_OPTIONS
19400 rm -rf *
19401
19402 # Create directory structure
19403 mkdir dir
19404 mkdir dir/subdir1
19405 mkdir dir/subdir2
19406 genfile --length 10 --file dir/subdir1/file
19407
19408 # Save mtime for later comparison
19409 genfile --stat=mtime dir/subdir1 > ts
19410
19411 # Create an archive. Using incremental mode makes sure the
19412 # archive will have a directory-first member ordering,
19413 # i.e.:
19414 # dir/
19415 # dir/subdir1/
19416 # dir/subdir2/
19417 # dir/subdir1/foofile
19418 #
19419 # When restoring from this directory structure, \`dir/subdir2/' used to
19420 # trigger apply_nonancestor_delayed_set_stat() which restored stats for
19421 # \`subdir1' prior to restoring \`dir/subdir1/foofile'. Then, restoring the
19422 # latter clobbered the directory timestamp.
19423
19424 tar -cf archive -g db dir
19425
19426 # Move away the directory
19427 mv dir orig
19428
19429 # Wait enough time for timestamps to differ in case of failure.
19430 sleep 5
19431
19432 # Restore the directory
19433 tar -xf archive dir
19434
19435 # Check the timestamp
19436 genfile --stat=mtime dir/subdir1 | diff ts -
19437 )"
19438 echo incr02.at:35 >"$at_check_line_file"
19439
19440 if { echo 'Not enabling shell tracing (command contains a `...` command substitution)'
19441    false; }; then
19442   ( $at_traceon;
19443 mkdir oldgnu
19444 (cd oldgnu
19445 TEST_TAR_FORMAT=oldgnu
19446 export TEST_TAR_FORMAT
19447 TAR_OPTIONS="-H oldgnu"
19448 export TAR_OPTIONS
19449 rm -rf *
19450
19451 # Create directory structure
19452 mkdir dir
19453 mkdir dir/subdir1
19454 mkdir dir/subdir2
19455 genfile --length 10 --file dir/subdir1/file
19456
19457 # Save mtime for later comparison
19458 genfile --stat=mtime dir/subdir1 > ts
19459
19460 # Create an archive. Using incremental mode makes sure the
19461 # archive will have a directory-first member ordering,
19462 # i.e.:
19463 # dir/
19464 # dir/subdir1/
19465 # dir/subdir2/
19466 # dir/subdir1/foofile
19467 #
19468 # When restoring from this directory structure, `dir/subdir2/' used to
19469 # trigger apply_nonancestor_delayed_set_stat() which restored stats for
19470 # `subdir1' prior to restoring `dir/subdir1/foofile'. Then, restoring the
19471 # latter clobbered the directory timestamp.
19472
19473 tar -cf archive -g db dir
19474
19475 # Move away the directory
19476 mv dir orig
19477
19478 # Wait enough time for timestamps to differ in case of failure.
19479 sleep 5
19480
19481 # Restore the directory
19482 tar -xf archive dir
19483
19484 # Check the timestamp
19485 genfile --stat=mtime dir/subdir1 | diff ts -
19486 ) ) >"$at_stdout" 2>"$at_stder1"
19487   at_func_filter_trace $?
19488 else
19489   ( :;
19490 mkdir oldgnu
19491 (cd oldgnu
19492 TEST_TAR_FORMAT=oldgnu
19493 export TEST_TAR_FORMAT
19494 TAR_OPTIONS="-H oldgnu"
19495 export TAR_OPTIONS
19496 rm -rf *
19497
19498 # Create directory structure
19499 mkdir dir
19500 mkdir dir/subdir1
19501 mkdir dir/subdir2
19502 genfile --length 10 --file dir/subdir1/file
19503
19504 # Save mtime for later comparison
19505 genfile --stat=mtime dir/subdir1 > ts
19506
19507 # Create an archive. Using incremental mode makes sure the
19508 # archive will have a directory-first member ordering,
19509 # i.e.:
19510 # dir/
19511 # dir/subdir1/
19512 # dir/subdir2/
19513 # dir/subdir1/foofile
19514 #
19515 # When restoring from this directory structure, `dir/subdir2/' used to
19516 # trigger apply_nonancestor_delayed_set_stat() which restored stats for
19517 # `subdir1' prior to restoring `dir/subdir1/foofile'. Then, restoring the
19518 # latter clobbered the directory timestamp.
19519
19520 tar -cf archive -g db dir
19521
19522 # Move away the directory
19523 mv dir orig
19524
19525 # Wait enough time for timestamps to differ in case of failure.
19526 sleep 5
19527
19528 # Restore the directory
19529 tar -xf archive dir
19530
19531 # Check the timestamp
19532 genfile --stat=mtime dir/subdir1 | diff ts -
19533 ) ) >"$at_stdout" 2>"$at_stderr"
19534 fi
19535 at_status=$?
19536 at_failed=false
19537 at_func_diff_devnull "$at_stderr" || at_failed=:
19538 at_func_diff_devnull "$at_stdout" || at_failed=:
19539 at_func_check_status 0 $at_status "$at_srcdir/incr02.at:35"
19540
19541 $at_failed && at_func_log_failure
19542 $at_traceon; }
19543
19544               { $at_traceoff
19545 $as_echo "$at_srcdir/incr02.at:35:
19546 mkdir posix
19547 (cd posix
19548 TEST_TAR_FORMAT=posix
19549 export TEST_TAR_FORMAT
19550 TAR_OPTIONS=\"-H posix\"
19551 export TAR_OPTIONS
19552 rm -rf *
19553
19554 # Create directory structure
19555 mkdir dir
19556 mkdir dir/subdir1
19557 mkdir dir/subdir2
19558 genfile --length 10 --file dir/subdir1/file
19559
19560 # Save mtime for later comparison
19561 genfile --stat=mtime dir/subdir1 > ts
19562
19563 # Create an archive. Using incremental mode makes sure the
19564 # archive will have a directory-first member ordering,
19565 # i.e.:
19566 # dir/
19567 # dir/subdir1/
19568 # dir/subdir2/
19569 # dir/subdir1/foofile
19570 #
19571 # When restoring from this directory structure, \`dir/subdir2/' used to
19572 # trigger apply_nonancestor_delayed_set_stat() which restored stats for
19573 # \`subdir1' prior to restoring \`dir/subdir1/foofile'. Then, restoring the
19574 # latter clobbered the directory timestamp.
19575
19576 tar -cf archive -g db dir
19577
19578 # Move away the directory
19579 mv dir orig
19580
19581 # Wait enough time for timestamps to differ in case of failure.
19582 sleep 5
19583
19584 # Restore the directory
19585 tar -xf archive dir
19586
19587 # Check the timestamp
19588 genfile --stat=mtime dir/subdir1 | diff ts -
19589 )"
19590 echo incr02.at:35 >"$at_check_line_file"
19591
19592 if { echo 'Not enabling shell tracing (command contains a `...` command substitution)'
19593    false; }; then
19594   ( $at_traceon;
19595 mkdir posix
19596 (cd posix
19597 TEST_TAR_FORMAT=posix
19598 export TEST_TAR_FORMAT
19599 TAR_OPTIONS="-H posix"
19600 export TAR_OPTIONS
19601 rm -rf *
19602
19603 # Create directory structure
19604 mkdir dir
19605 mkdir dir/subdir1
19606 mkdir dir/subdir2
19607 genfile --length 10 --file dir/subdir1/file
19608
19609 # Save mtime for later comparison
19610 genfile --stat=mtime dir/subdir1 > ts
19611
19612 # Create an archive. Using incremental mode makes sure the
19613 # archive will have a directory-first member ordering,
19614 # i.e.:
19615 # dir/
19616 # dir/subdir1/
19617 # dir/subdir2/
19618 # dir/subdir1/foofile
19619 #
19620 # When restoring from this directory structure, `dir/subdir2/' used to
19621 # trigger apply_nonancestor_delayed_set_stat() which restored stats for
19622 # `subdir1' prior to restoring `dir/subdir1/foofile'. Then, restoring the
19623 # latter clobbered the directory timestamp.
19624
19625 tar -cf archive -g db dir
19626
19627 # Move away the directory
19628 mv dir orig
19629
19630 # Wait enough time for timestamps to differ in case of failure.
19631 sleep 5
19632
19633 # Restore the directory
19634 tar -xf archive dir
19635
19636 # Check the timestamp
19637 genfile --stat=mtime dir/subdir1 | diff ts -
19638 ) ) >"$at_stdout" 2>"$at_stder1"
19639   at_func_filter_trace $?
19640 else
19641   ( :;
19642 mkdir posix
19643 (cd posix
19644 TEST_TAR_FORMAT=posix
19645 export TEST_TAR_FORMAT
19646 TAR_OPTIONS="-H posix"
19647 export TAR_OPTIONS
19648 rm -rf *
19649
19650 # Create directory structure
19651 mkdir dir
19652 mkdir dir/subdir1
19653 mkdir dir/subdir2
19654 genfile --length 10 --file dir/subdir1/file
19655
19656 # Save mtime for later comparison
19657 genfile --stat=mtime dir/subdir1 > ts
19658
19659 # Create an archive. Using incremental mode makes sure the
19660 # archive will have a directory-first member ordering,
19661 # i.e.:
19662 # dir/
19663 # dir/subdir1/
19664 # dir/subdir2/
19665 # dir/subdir1/foofile
19666 #
19667 # When restoring from this directory structure, `dir/subdir2/' used to
19668 # trigger apply_nonancestor_delayed_set_stat() which restored stats for
19669 # `subdir1' prior to restoring `dir/subdir1/foofile'. Then, restoring the
19670 # latter clobbered the directory timestamp.
19671
19672 tar -cf archive -g db dir
19673
19674 # Move away the directory
19675 mv dir orig
19676
19677 # Wait enough time for timestamps to differ in case of failure.
19678 sleep 5
19679
19680 # Restore the directory
19681 tar -xf archive dir
19682
19683 # Check the timestamp
19684 genfile --stat=mtime dir/subdir1 | diff ts -
19685 ) ) >"$at_stdout" 2>"$at_stderr"
19686 fi
19687 at_status=$?
19688 at_failed=false
19689 at_func_diff_devnull "$at_stderr" || at_failed=:
19690 at_func_diff_devnull "$at_stdout" || at_failed=:
19691 at_func_check_status 0 $at_status "$at_srcdir/incr02.at:35"
19692
19693 $at_failed && at_func_log_failure
19694 $at_traceon; }
19695
19696
19697
19698
19699   $at_traceoff
19700   $at_times_p && times >"$at_times_file"
19701 ) 5>&1 2>&1 | eval $at_tee_pipe
19702 at_status=`cat "$at_status_file"`
19703 #AT_STOP_53
19704 #AT_START_54
19705 # 54. listed01.at:26: --listed for individual files
19706 at_setup_line='listed01.at:26'
19707 at_desc="--listed for individual files"
19708 $at_quiet $as_echo_n " 54: $at_desc                  "
19709 at_xfail=no
19710       test -f $XFAILFILE && at_xfail=yes
19711 echo "#                             -*- compilation -*-" >> "$at_group_log"
19712 (
19713   $as_echo "54. listed01.at:26: testing ..."
19714   $at_traceon
19715
19716
19717
19718
19719
19720   { $at_traceoff
19721 $as_echo "$at_srcdir/listed01.at:29:
19722 mkdir gnu
19723 (cd gnu
19724 TEST_TAR_FORMAT=gnu
19725 export TEST_TAR_FORMAT
19726 TAR_OPTIONS=\"-H gnu\"
19727 export TAR_OPTIONS
19728 rm -rf *
19729
19730 mkdir directory
19731 genfile --length 10240 --pattern zeros --file directory/file1
19732 # Let the things settle
19733 sleep 1
19734
19735 tar --create \\
19736     --file=archive.1 \\
19737     --listed-incremental=listing \\
19738     directory/file*
19739
19740 tar tf archive.1 || exit 1
19741
19742 sleep 2
19743
19744 genfile --length 10240 --pattern zeros --file directory/file2
19745
19746 echo \"separator\"
19747 cp listing listing.old
19748 tar --create \\
19749     --file=archive.2 \\
19750     --listed-incremental=listing \\
19751     directory/file* || exit 1
19752
19753 tar tf archive.2 || exit 1
19754 )"
19755 echo listed01.at:29 >"$at_check_line_file"
19756
19757 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
19758    false; }; then
19759   ( $at_traceon;
19760 mkdir gnu
19761 (cd gnu
19762 TEST_TAR_FORMAT=gnu
19763 export TEST_TAR_FORMAT
19764 TAR_OPTIONS="-H gnu"
19765 export TAR_OPTIONS
19766 rm -rf *
19767
19768 mkdir directory
19769 genfile --length 10240 --pattern zeros --file directory/file1
19770 # Let the things settle
19771 sleep 1
19772
19773 tar --create \
19774     --file=archive.1 \
19775     --listed-incremental=listing \
19776     directory/file*
19777
19778 tar tf archive.1 || exit 1
19779
19780 sleep 2
19781
19782 genfile --length 10240 --pattern zeros --file directory/file2
19783
19784 echo "separator"
19785 cp listing listing.old
19786 tar --create \
19787     --file=archive.2 \
19788     --listed-incremental=listing \
19789     directory/file* || exit 1
19790
19791 tar tf archive.2 || exit 1
19792 ) ) >"$at_stdout" 2>"$at_stder1"
19793   at_func_filter_trace $?
19794 else
19795   ( :;
19796 mkdir gnu
19797 (cd gnu
19798 TEST_TAR_FORMAT=gnu
19799 export TEST_TAR_FORMAT
19800 TAR_OPTIONS="-H gnu"
19801 export TAR_OPTIONS
19802 rm -rf *
19803
19804 mkdir directory
19805 genfile --length 10240 --pattern zeros --file directory/file1
19806 # Let the things settle
19807 sleep 1
19808
19809 tar --create \
19810     --file=archive.1 \
19811     --listed-incremental=listing \
19812     directory/file*
19813
19814 tar tf archive.1 || exit 1
19815
19816 sleep 2
19817
19818 genfile --length 10240 --pattern zeros --file directory/file2
19819
19820 echo "separator"
19821 cp listing listing.old
19822 tar --create \
19823     --file=archive.2 \
19824     --listed-incremental=listing \
19825     directory/file* || exit 1
19826
19827 tar tf archive.2 || exit 1
19828 ) ) >"$at_stdout" 2>"$at_stderr"
19829 fi
19830 at_status=$?
19831 at_failed=false
19832 at_func_diff_devnull "$at_stderr" || at_failed=:
19833 echo >>"$at_stdout"; $as_echo "directory/file1
19834 separator
19835 directory/file2
19836 " | \
19837   $at_diff - "$at_stdout" || at_failed=:
19838 at_func_check_status 0 $at_status "$at_srcdir/listed01.at:29"
19839
19840 $at_failed && at_func_log_failure
19841 $at_traceon; }
19842
19843               { $at_traceoff
19844 $as_echo "$at_srcdir/listed01.at:29:
19845 mkdir oldgnu
19846 (cd oldgnu
19847 TEST_TAR_FORMAT=oldgnu
19848 export TEST_TAR_FORMAT
19849 TAR_OPTIONS=\"-H oldgnu\"
19850 export TAR_OPTIONS
19851 rm -rf *
19852
19853 mkdir directory
19854 genfile --length 10240 --pattern zeros --file directory/file1
19855 # Let the things settle
19856 sleep 1
19857
19858 tar --create \\
19859     --file=archive.1 \\
19860     --listed-incremental=listing \\
19861     directory/file*
19862
19863 tar tf archive.1 || exit 1
19864
19865 sleep 2
19866
19867 genfile --length 10240 --pattern zeros --file directory/file2
19868
19869 echo \"separator\"
19870 cp listing listing.old
19871 tar --create \\
19872     --file=archive.2 \\
19873     --listed-incremental=listing \\
19874     directory/file* || exit 1
19875
19876 tar tf archive.2 || exit 1
19877 )"
19878 echo listed01.at:29 >"$at_check_line_file"
19879
19880 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
19881    false; }; then
19882   ( $at_traceon;
19883 mkdir oldgnu
19884 (cd oldgnu
19885 TEST_TAR_FORMAT=oldgnu
19886 export TEST_TAR_FORMAT
19887 TAR_OPTIONS="-H oldgnu"
19888 export TAR_OPTIONS
19889 rm -rf *
19890
19891 mkdir directory
19892 genfile --length 10240 --pattern zeros --file directory/file1
19893 # Let the things settle
19894 sleep 1
19895
19896 tar --create \
19897     --file=archive.1 \
19898     --listed-incremental=listing \
19899     directory/file*
19900
19901 tar tf archive.1 || exit 1
19902
19903 sleep 2
19904
19905 genfile --length 10240 --pattern zeros --file directory/file2
19906
19907 echo "separator"
19908 cp listing listing.old
19909 tar --create \
19910     --file=archive.2 \
19911     --listed-incremental=listing \
19912     directory/file* || exit 1
19913
19914 tar tf archive.2 || exit 1
19915 ) ) >"$at_stdout" 2>"$at_stder1"
19916   at_func_filter_trace $?
19917 else
19918   ( :;
19919 mkdir oldgnu
19920 (cd oldgnu
19921 TEST_TAR_FORMAT=oldgnu
19922 export TEST_TAR_FORMAT
19923 TAR_OPTIONS="-H oldgnu"
19924 export TAR_OPTIONS
19925 rm -rf *
19926
19927 mkdir directory
19928 genfile --length 10240 --pattern zeros --file directory/file1
19929 # Let the things settle
19930 sleep 1
19931
19932 tar --create \
19933     --file=archive.1 \
19934     --listed-incremental=listing \
19935     directory/file*
19936
19937 tar tf archive.1 || exit 1
19938
19939 sleep 2
19940
19941 genfile --length 10240 --pattern zeros --file directory/file2
19942
19943 echo "separator"
19944 cp listing listing.old
19945 tar --create \
19946     --file=archive.2 \
19947     --listed-incremental=listing \
19948     directory/file* || exit 1
19949
19950 tar tf archive.2 || exit 1
19951 ) ) >"$at_stdout" 2>"$at_stderr"
19952 fi
19953 at_status=$?
19954 at_failed=false
19955 at_func_diff_devnull "$at_stderr" || at_failed=:
19956 echo >>"$at_stdout"; $as_echo "directory/file1
19957 separator
19958 directory/file2
19959 " | \
19960   $at_diff - "$at_stdout" || at_failed=:
19961 at_func_check_status 0 $at_status "$at_srcdir/listed01.at:29"
19962
19963 $at_failed && at_func_log_failure
19964 $at_traceon; }
19965
19966
19967
19968
19969   $at_traceoff
19970   $at_times_p && times >"$at_times_file"
19971 ) 5>&1 2>&1 | eval $at_tee_pipe
19972 at_status=`cat "$at_status_file"`
19973 #AT_STOP_54
19974 #AT_START_55
19975 # 55. listed02.at:28: working --listed
19976 at_setup_line='listed02.at:28'
19977 at_desc="working --listed"
19978 $at_quiet $as_echo_n " 55: $at_desc                               "
19979 at_xfail=no
19980       test -f $XFAILFILE && at_xfail=yes
19981 echo "#                             -*- compilation -*-" >> "$at_group_log"
19982 (
19983   $as_echo "55. listed02.at:28: testing ..."
19984   $at_traceon
19985
19986
19987
19988
19989
19990   { $at_traceoff
19991 $as_echo "$at_srcdir/listed02.at:31:
19992 mkdir gnu
19993 (cd gnu
19994 TEST_TAR_FORMAT=gnu
19995 export TEST_TAR_FORMAT
19996 TAR_OPTIONS=\"-H gnu\"
19997 export TAR_OPTIONS
19998 rm -rf *
19999
20000
20001 test -z "`sort < /dev/null 2>&1`" || exit 77
20002
20003 echo Create directories
20004
20005 mkdir tart
20006 sleep 1
20007 mkdir tart/c0
20008 sleep 1
20009 mkdir tart/c1
20010 sleep 1
20011
20012 for file in tart/a1 tart/b1 tart/c0/cq1 tart/c0/cq2 tart/c1/ca1 tart/c1/ca2
20013 do
20014   echo File \$file > \$file
20015   sleep 1
20016 done
20017
20018 sleep 1
20019 echo Creating main archive
20020 echo >&2 \"Creating main archive\"
20021 tar -c -v --listed-incremental=tart.incr1 -f archive.1 tart 2> err || exit 1
20022
20023 # The above prints two lines to stderr announcing the new directories c0 and c1.
20024 # Ensure that they appear in this script's stderr in sorted order.
20025 sort err 1>&2; rm -f err
20026
20027 sleep 1
20028 echo Modifying filesystem
20029 rm tart/a1
20030
20031 mv tart/b1 tart/b2
20032 mv tart/c1 tart/c2
20033 touch tart/c2/ca3
20034
20035 echo Directory contents
20036 find tart -print | sort 2>/dev/null
20037
20038 sleep 1
20039 echo Creating incremental archive
20040 echo >&2 \"Creating incremental archive\"
20041 cp -p tart.incr1 tart.incr2
20042 tar -c -v --listed-incremental=tart.incr2 -f archive.2 tart || exit 1
20043
20044 sleep 1
20045
20046 rm -rf tart/*
20047 echo Extracting main archive
20048 echo >&2 \"Extracting main archive\"
20049 tar -x -v --listed-incremental=tart.incr1 -f archive.1 || exit 1
20050 echo Extracting incremental archive
20051 # This command should produce three messages about deletion
20052 # of the existing files, that may appear in any order. Piping
20053 # to sort makes sure we don't depend on any particular ordering.
20054 tar -x -v --listed-incremental=tart.incr2 -f archive.2 | sort 2>/dev/null
20055
20056 echo Final files:
20057 find tart -print | sort 2>/dev/null
20058 )"
20059 echo listed02.at:31 >"$at_check_line_file"
20060
20061 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
20062    false; }; then
20063   ( $at_traceon;
20064 mkdir gnu
20065 (cd gnu
20066 TEST_TAR_FORMAT=gnu
20067 export TEST_TAR_FORMAT
20068 TAR_OPTIONS="-H gnu"
20069 export TAR_OPTIONS
20070 rm -rf *
20071
20072
20073 test -z "`sort < /dev/null 2>&1`" || exit 77
20074
20075 echo Create directories
20076
20077 mkdir tart
20078 sleep 1
20079 mkdir tart/c0
20080 sleep 1
20081 mkdir tart/c1
20082 sleep 1
20083
20084 for file in tart/a1 tart/b1 tart/c0/cq1 tart/c0/cq2 tart/c1/ca1 tart/c1/ca2
20085 do
20086   echo File $file > $file
20087   sleep 1
20088 done
20089
20090 sleep 1
20091 echo Creating main archive
20092 echo >&2 "Creating main archive"
20093 tar -c -v --listed-incremental=tart.incr1 -f archive.1 tart 2> err || exit 1
20094
20095 # The above prints two lines to stderr announcing the new directories c0 and c1.
20096 # Ensure that they appear in this script's stderr in sorted order.
20097 sort err 1>&2; rm -f err
20098
20099 sleep 1
20100 echo Modifying filesystem
20101 rm tart/a1
20102
20103 mv tart/b1 tart/b2
20104 mv tart/c1 tart/c2
20105 touch tart/c2/ca3
20106
20107 echo Directory contents
20108 find tart -print | sort 2>/dev/null
20109
20110 sleep 1
20111 echo Creating incremental archive
20112 echo >&2 "Creating incremental archive"
20113 cp -p tart.incr1 tart.incr2
20114 tar -c -v --listed-incremental=tart.incr2 -f archive.2 tart || exit 1
20115
20116 sleep 1
20117
20118 rm -rf tart/*
20119 echo Extracting main archive
20120 echo >&2 "Extracting main archive"
20121 tar -x -v --listed-incremental=tart.incr1 -f archive.1 || exit 1
20122 echo Extracting incremental archive
20123 # This command should produce three messages about deletion
20124 # of the existing files, that may appear in any order. Piping
20125 # to sort makes sure we don't depend on any particular ordering.
20126 tar -x -v --listed-incremental=tart.incr2 -f archive.2 | sort 2>/dev/null
20127
20128 echo Final files:
20129 find tart -print | sort 2>/dev/null
20130 ) ) >"$at_stdout" 2>"$at_stder1"
20131   at_func_filter_trace $?
20132 else
20133   ( :;
20134 mkdir gnu
20135 (cd gnu
20136 TEST_TAR_FORMAT=gnu
20137 export TEST_TAR_FORMAT
20138 TAR_OPTIONS="-H gnu"
20139 export TAR_OPTIONS
20140 rm -rf *
20141
20142
20143 test -z "`sort < /dev/null 2>&1`" || exit 77
20144
20145 echo Create directories
20146
20147 mkdir tart
20148 sleep 1
20149 mkdir tart/c0
20150 sleep 1
20151 mkdir tart/c1
20152 sleep 1
20153
20154 for file in tart/a1 tart/b1 tart/c0/cq1 tart/c0/cq2 tart/c1/ca1 tart/c1/ca2
20155 do
20156   echo File $file > $file
20157   sleep 1
20158 done
20159
20160 sleep 1
20161 echo Creating main archive
20162 echo >&2 "Creating main archive"
20163 tar -c -v --listed-incremental=tart.incr1 -f archive.1 tart 2> err || exit 1
20164
20165 # The above prints two lines to stderr announcing the new directories c0 and c1.
20166 # Ensure that they appear in this script's stderr in sorted order.
20167 sort err 1>&2; rm -f err
20168
20169 sleep 1
20170 echo Modifying filesystem
20171 rm tart/a1
20172
20173 mv tart/b1 tart/b2
20174 mv tart/c1 tart/c2
20175 touch tart/c2/ca3
20176
20177 echo Directory contents
20178 find tart -print | sort 2>/dev/null
20179
20180 sleep 1
20181 echo Creating incremental archive
20182 echo >&2 "Creating incremental archive"
20183 cp -p tart.incr1 tart.incr2
20184 tar -c -v --listed-incremental=tart.incr2 -f archive.2 tart || exit 1
20185
20186 sleep 1
20187
20188 rm -rf tart/*
20189 echo Extracting main archive
20190 echo >&2 "Extracting main archive"
20191 tar -x -v --listed-incremental=tart.incr1 -f archive.1 || exit 1
20192 echo Extracting incremental archive
20193 # This command should produce three messages about deletion
20194 # of the existing files, that may appear in any order. Piping
20195 # to sort makes sure we don't depend on any particular ordering.
20196 tar -x -v --listed-incremental=tart.incr2 -f archive.2 | sort 2>/dev/null
20197
20198 echo Final files:
20199 find tart -print | sort 2>/dev/null
20200 ) ) >"$at_stdout" 2>"$at_stderr"
20201 fi
20202 at_status=$?
20203 at_failed=false
20204 echo >>"$at_stderr"; $as_echo "Creating main archive
20205 tar: tart/c0: Directory is new
20206 tar: tart/c1: Directory is new
20207 tar: tart: Directory is new
20208 Creating incremental archive
20209 tar: tart/c2: Directory has been renamed from \`tart/c1'
20210 Extracting main archive
20211 " | \
20212   $at_diff - "$at_stderr" || at_failed=:
20213 echo >>"$at_stdout"; $as_echo "Create directories
20214 Creating main archive
20215 tart/
20216 tart/c0/
20217 tart/c1/
20218 tart/a1
20219 tart/b1
20220 tart/c0/cq1
20221 tart/c0/cq2
20222 tart/c1/ca1
20223 tart/c1/ca2
20224 Modifying filesystem
20225 Directory contents
20226 tart
20227 tart/b2
20228 tart/c0
20229 tart/c0/cq1
20230 tart/c0/cq2
20231 tart/c2
20232 tart/c2/ca1
20233 tart/c2/ca2
20234 tart/c2/ca3
20235 Creating incremental archive
20236 tart/
20237 tart/c0/
20238 tart/c2/
20239 tart/b2
20240 tart/c2/ca3
20241 Extracting main archive
20242 tart/
20243 tart/c0/
20244 tart/c1/
20245 tart/a1
20246 tart/b1
20247 tart/c0/cq1
20248 tart/c0/cq2
20249 tart/c1/ca1
20250 tart/c1/ca2
20251 Extracting incremental archive
20252 tar: Deleting \`tart/a1'
20253 tar: Deleting \`tart/b1'
20254 tart/
20255 tart/b2
20256 tart/c0/
20257 tart/c2/
20258 tart/c2/ca3
20259 Final files:
20260 tart
20261 tart/b2
20262 tart/c0
20263 tart/c0/cq1
20264 tart/c0/cq2
20265 tart/c2
20266 tart/c2/ca1
20267 tart/c2/ca2
20268 tart/c2/ca3
20269 " | \
20270   $at_diff - "$at_stdout" || at_failed=:
20271 at_func_check_status 0 $at_status "$at_srcdir/listed02.at:31"
20272
20273 $at_failed && at_func_log_failure
20274 $at_traceon; }
20275
20276               { $at_traceoff
20277 $as_echo "$at_srcdir/listed02.at:31:
20278 mkdir oldgnu
20279 (cd oldgnu
20280 TEST_TAR_FORMAT=oldgnu
20281 export TEST_TAR_FORMAT
20282 TAR_OPTIONS=\"-H oldgnu\"
20283 export TAR_OPTIONS
20284 rm -rf *
20285
20286
20287 test -z "`sort < /dev/null 2>&1`" || exit 77
20288
20289 echo Create directories
20290
20291 mkdir tart
20292 sleep 1
20293 mkdir tart/c0
20294 sleep 1
20295 mkdir tart/c1
20296 sleep 1
20297
20298 for file in tart/a1 tart/b1 tart/c0/cq1 tart/c0/cq2 tart/c1/ca1 tart/c1/ca2
20299 do
20300   echo File \$file > \$file
20301   sleep 1
20302 done
20303
20304 sleep 1
20305 echo Creating main archive
20306 echo >&2 \"Creating main archive\"
20307 tar -c -v --listed-incremental=tart.incr1 -f archive.1 tart 2> err || exit 1
20308
20309 # The above prints two lines to stderr announcing the new directories c0 and c1.
20310 # Ensure that they appear in this script's stderr in sorted order.
20311 sort err 1>&2; rm -f err
20312
20313 sleep 1
20314 echo Modifying filesystem
20315 rm tart/a1
20316
20317 mv tart/b1 tart/b2
20318 mv tart/c1 tart/c2
20319 touch tart/c2/ca3
20320
20321 echo Directory contents
20322 find tart -print | sort 2>/dev/null
20323
20324 sleep 1
20325 echo Creating incremental archive
20326 echo >&2 \"Creating incremental archive\"
20327 cp -p tart.incr1 tart.incr2
20328 tar -c -v --listed-incremental=tart.incr2 -f archive.2 tart || exit 1
20329
20330 sleep 1
20331
20332 rm -rf tart/*
20333 echo Extracting main archive
20334 echo >&2 \"Extracting main archive\"
20335 tar -x -v --listed-incremental=tart.incr1 -f archive.1 || exit 1
20336 echo Extracting incremental archive
20337 # This command should produce three messages about deletion
20338 # of the existing files, that may appear in any order. Piping
20339 # to sort makes sure we don't depend on any particular ordering.
20340 tar -x -v --listed-incremental=tart.incr2 -f archive.2 | sort 2>/dev/null
20341
20342 echo Final files:
20343 find tart -print | sort 2>/dev/null
20344 )"
20345 echo listed02.at:31 >"$at_check_line_file"
20346
20347 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
20348    false; }; then
20349   ( $at_traceon;
20350 mkdir oldgnu
20351 (cd oldgnu
20352 TEST_TAR_FORMAT=oldgnu
20353 export TEST_TAR_FORMAT
20354 TAR_OPTIONS="-H oldgnu"
20355 export TAR_OPTIONS
20356 rm -rf *
20357
20358
20359 test -z "`sort < /dev/null 2>&1`" || exit 77
20360
20361 echo Create directories
20362
20363 mkdir tart
20364 sleep 1
20365 mkdir tart/c0
20366 sleep 1
20367 mkdir tart/c1
20368 sleep 1
20369
20370 for file in tart/a1 tart/b1 tart/c0/cq1 tart/c0/cq2 tart/c1/ca1 tart/c1/ca2
20371 do
20372   echo File $file > $file
20373   sleep 1
20374 done
20375
20376 sleep 1
20377 echo Creating main archive
20378 echo >&2 "Creating main archive"
20379 tar -c -v --listed-incremental=tart.incr1 -f archive.1 tart 2> err || exit 1
20380
20381 # The above prints two lines to stderr announcing the new directories c0 and c1.
20382 # Ensure that they appear in this script's stderr in sorted order.
20383 sort err 1>&2; rm -f err
20384
20385 sleep 1
20386 echo Modifying filesystem
20387 rm tart/a1
20388
20389 mv tart/b1 tart/b2
20390 mv tart/c1 tart/c2
20391 touch tart/c2/ca3
20392
20393 echo Directory contents
20394 find tart -print | sort 2>/dev/null
20395
20396 sleep 1
20397 echo Creating incremental archive
20398 echo >&2 "Creating incremental archive"
20399 cp -p tart.incr1 tart.incr2
20400 tar -c -v --listed-incremental=tart.incr2 -f archive.2 tart || exit 1
20401
20402 sleep 1
20403
20404 rm -rf tart/*
20405 echo Extracting main archive
20406 echo >&2 "Extracting main archive"
20407 tar -x -v --listed-incremental=tart.incr1 -f archive.1 || exit 1
20408 echo Extracting incremental archive
20409 # This command should produce three messages about deletion
20410 # of the existing files, that may appear in any order. Piping
20411 # to sort makes sure we don't depend on any particular ordering.
20412 tar -x -v --listed-incremental=tart.incr2 -f archive.2 | sort 2>/dev/null
20413
20414 echo Final files:
20415 find tart -print | sort 2>/dev/null
20416 ) ) >"$at_stdout" 2>"$at_stder1"
20417   at_func_filter_trace $?
20418 else
20419   ( :;
20420 mkdir oldgnu
20421 (cd oldgnu
20422 TEST_TAR_FORMAT=oldgnu
20423 export TEST_TAR_FORMAT
20424 TAR_OPTIONS="-H oldgnu"
20425 export TAR_OPTIONS
20426 rm -rf *
20427
20428
20429 test -z "`sort < /dev/null 2>&1`" || exit 77
20430
20431 echo Create directories
20432
20433 mkdir tart
20434 sleep 1
20435 mkdir tart/c0
20436 sleep 1
20437 mkdir tart/c1
20438 sleep 1
20439
20440 for file in tart/a1 tart/b1 tart/c0/cq1 tart/c0/cq2 tart/c1/ca1 tart/c1/ca2
20441 do
20442   echo File $file > $file
20443   sleep 1
20444 done
20445
20446 sleep 1
20447 echo Creating main archive
20448 echo >&2 "Creating main archive"
20449 tar -c -v --listed-incremental=tart.incr1 -f archive.1 tart 2> err || exit 1
20450
20451 # The above prints two lines to stderr announcing the new directories c0 and c1.
20452 # Ensure that they appear in this script's stderr in sorted order.
20453 sort err 1>&2; rm -f err
20454
20455 sleep 1
20456 echo Modifying filesystem
20457 rm tart/a1
20458
20459 mv tart/b1 tart/b2
20460 mv tart/c1 tart/c2
20461 touch tart/c2/ca3
20462
20463 echo Directory contents
20464 find tart -print | sort 2>/dev/null
20465
20466 sleep 1
20467 echo Creating incremental archive
20468 echo >&2 "Creating incremental archive"
20469 cp -p tart.incr1 tart.incr2
20470 tar -c -v --listed-incremental=tart.incr2 -f archive.2 tart || exit 1
20471
20472 sleep 1
20473
20474 rm -rf tart/*
20475 echo Extracting main archive
20476 echo >&2 "Extracting main archive"
20477 tar -x -v --listed-incremental=tart.incr1 -f archive.1 || exit 1
20478 echo Extracting incremental archive
20479 # This command should produce three messages about deletion
20480 # of the existing files, that may appear in any order. Piping
20481 # to sort makes sure we don't depend on any particular ordering.
20482 tar -x -v --listed-incremental=tart.incr2 -f archive.2 | sort 2>/dev/null
20483
20484 echo Final files:
20485 find tart -print | sort 2>/dev/null
20486 ) ) >"$at_stdout" 2>"$at_stderr"
20487 fi
20488 at_status=$?
20489 at_failed=false
20490 echo >>"$at_stderr"; $as_echo "Creating main archive
20491 tar: tart/c0: Directory is new
20492 tar: tart/c1: Directory is new
20493 tar: tart: Directory is new
20494 Creating incremental archive
20495 tar: tart/c2: Directory has been renamed from \`tart/c1'
20496 Extracting main archive
20497 " | \
20498   $at_diff - "$at_stderr" || at_failed=:
20499 echo >>"$at_stdout"; $as_echo "Create directories
20500 Creating main archive
20501 tart/
20502 tart/c0/
20503 tart/c1/
20504 tart/a1
20505 tart/b1
20506 tart/c0/cq1
20507 tart/c0/cq2
20508 tart/c1/ca1
20509 tart/c1/ca2
20510 Modifying filesystem
20511 Directory contents
20512 tart
20513 tart/b2
20514 tart/c0
20515 tart/c0/cq1
20516 tart/c0/cq2
20517 tart/c2
20518 tart/c2/ca1
20519 tart/c2/ca2
20520 tart/c2/ca3
20521 Creating incremental archive
20522 tart/
20523 tart/c0/
20524 tart/c2/
20525 tart/b2
20526 tart/c2/ca3
20527 Extracting main archive
20528 tart/
20529 tart/c0/
20530 tart/c1/
20531 tart/a1
20532 tart/b1
20533 tart/c0/cq1
20534 tart/c0/cq2
20535 tart/c1/ca1
20536 tart/c1/ca2
20537 Extracting incremental archive
20538 tar: Deleting \`tart/a1'
20539 tar: Deleting \`tart/b1'
20540 tart/
20541 tart/b2
20542 tart/c0/
20543 tart/c2/
20544 tart/c2/ca3
20545 Final files:
20546 tart
20547 tart/b2
20548 tart/c0
20549 tart/c0/cq1
20550 tart/c0/cq2
20551 tart/c2
20552 tart/c2/ca1
20553 tart/c2/ca2
20554 tart/c2/ca3
20555 " | \
20556   $at_diff - "$at_stdout" || at_failed=:
20557 at_func_check_status 0 $at_status "$at_srcdir/listed02.at:31"
20558
20559 $at_failed && at_func_log_failure
20560 $at_traceon; }
20561
20562
20563
20564
20565   $at_traceoff
20566   $at_times_p && times >"$at_times_file"
20567 ) 5>&1 2>&1 | eval $at_tee_pipe
20568 at_status=`cat "$at_status_file"`
20569 #AT_STOP_55
20570 #AT_START_56
20571 # 56. listed03.at:22: incremental dump when the parent directory is unreadable
20572 at_setup_line='listed03.at:22'
20573 at_desc="incremental dump when the parent directory is unreadable"
20574 $at_quiet $as_echo_n " 56: $at_desc"
20575 at_xfail=no
20576       test -f $XFAILFILE && at_xfail=yes
20577 echo "#                             -*- compilation -*-" >> "$at_group_log"
20578 (
20579   $as_echo "56. listed03.at:22: testing ..."
20580   $at_traceon
20581
20582
20583
20584
20585
20586   { $at_traceoff
20587 $as_echo "$at_srcdir/listed03.at:25:
20588 mkdir gnu
20589 (cd gnu
20590 TEST_TAR_FORMAT=gnu
20591 export TEST_TAR_FORMAT
20592 TAR_OPTIONS=\"-H gnu\"
20593 export TAR_OPTIONS
20594 rm -rf *
20595
20596
20597 echo "test" > $$
20598 chmod 0 $$
20599 cat $$ > /dev/null 2>&1
20600 result=$?
20601 rm -f $$
20602 test $result -eq 0 && exit 77
20603
20604
20605 mkdir dir
20606 mkdir dir/sub
20607 mkdir dir/sub/a
20608 genfile --file dir/sub/a/file
20609 cd dir/sub
20610
20611 chmod a-r ..
20612 tar -c -f archive.tar --listed-incremental=db.1 -v a
20613 status=\$?
20614 chmod a+r ..
20615 exit \$status
20616 )"
20617 echo listed03.at:25 >"$at_check_line_file"
20618
20619 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
20620    false; }; then
20621   ( $at_traceon;
20622 mkdir gnu
20623 (cd gnu
20624 TEST_TAR_FORMAT=gnu
20625 export TEST_TAR_FORMAT
20626 TAR_OPTIONS="-H gnu"
20627 export TAR_OPTIONS
20628 rm -rf *
20629
20630
20631 echo "test" > $$
20632 chmod 0 $$
20633 cat $$ > /dev/null 2>&1
20634 result=$?
20635 rm -f $$
20636 test $result -eq 0 && exit 77
20637
20638
20639 mkdir dir
20640 mkdir dir/sub
20641 mkdir dir/sub/a
20642 genfile --file dir/sub/a/file
20643 cd dir/sub
20644
20645 chmod a-r ..
20646 tar -c -f archive.tar --listed-incremental=db.1 -v a
20647 status=$?
20648 chmod a+r ..
20649 exit $status
20650 ) ) >"$at_stdout" 2>"$at_stder1"
20651   at_func_filter_trace $?
20652 else
20653   ( :;
20654 mkdir gnu
20655 (cd gnu
20656 TEST_TAR_FORMAT=gnu
20657 export TEST_TAR_FORMAT
20658 TAR_OPTIONS="-H gnu"
20659 export TAR_OPTIONS
20660 rm -rf *
20661
20662
20663 echo "test" > $$
20664 chmod 0 $$
20665 cat $$ > /dev/null 2>&1
20666 result=$?
20667 rm -f $$
20668 test $result -eq 0 && exit 77
20669
20670
20671 mkdir dir
20672 mkdir dir/sub
20673 mkdir dir/sub/a
20674 genfile --file dir/sub/a/file
20675 cd dir/sub
20676
20677 chmod a-r ..
20678 tar -c -f archive.tar --listed-incremental=db.1 -v a
20679 status=$?
20680 chmod a+r ..
20681 exit $status
20682 ) ) >"$at_stdout" 2>"$at_stderr"
20683 fi
20684 at_status=$?
20685 at_failed=false
20686 echo >>"$at_stderr"; $as_echo "tar: a: Directory is new
20687 " | \
20688   $at_diff - "$at_stderr" || at_failed=:
20689 echo >>"$at_stdout"; $as_echo "a/
20690 a/file
20691 " | \
20692   $at_diff - "$at_stdout" || at_failed=:
20693 at_func_check_status 0 $at_status "$at_srcdir/listed03.at:25"
20694
20695 $at_failed && at_func_log_failure
20696 $at_traceon; }
20697
20698
20699
20700
20701   $at_traceoff
20702   $at_times_p && times >"$at_times_file"
20703 ) 5>&1 2>&1 | eval $at_tee_pipe
20704 at_status=`cat "$at_status_file"`
20705 #AT_STOP_56
20706 #AT_START_57
20707 # 57. listed04.at:24: --listed-incremental and --one-file-system
20708 at_setup_line='listed04.at:24'
20709 at_desc="--listed-incremental and --one-file-system"
20710 $at_quiet $as_echo_n " 57: $at_desc     "
20711 at_xfail=no
20712       test -f $XFAILFILE && at_xfail=yes
20713 echo "#                             -*- compilation -*-" >> "$at_group_log"
20714 (
20715   $as_echo "57. listed04.at:24: testing ..."
20716   $at_traceon
20717
20718
20719
20720
20721
20722   { $at_traceoff
20723 $as_echo "$at_srcdir/listed04.at:27:
20724 mkdir gnu
20725 (cd gnu
20726 TEST_TAR_FORMAT=gnu
20727 export TEST_TAR_FORMAT
20728 TAR_OPTIONS=\"-H gnu\"
20729 export TAR_OPTIONS
20730 rm -rf *
20731
20732
20733 mkdir dir
20734 echo a >dir/a
20735 echo b >dir/b
20736
20737 tar --one-file-system -cvf archive.tar -g archive.incr dir || exit
20738 tar -tf archive.tar || exit
20739 )"
20740 echo listed04.at:27 >"$at_check_line_file"
20741
20742 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
20743    false; }; then
20744   ( $at_traceon;
20745 mkdir gnu
20746 (cd gnu
20747 TEST_TAR_FORMAT=gnu
20748 export TEST_TAR_FORMAT
20749 TAR_OPTIONS="-H gnu"
20750 export TAR_OPTIONS
20751 rm -rf *
20752
20753
20754 mkdir dir
20755 echo a >dir/a
20756 echo b >dir/b
20757
20758 tar --one-file-system -cvf archive.tar -g archive.incr dir || exit
20759 tar -tf archive.tar || exit
20760 ) ) >"$at_stdout" 2>"$at_stder1"
20761   at_func_filter_trace $?
20762 else
20763   ( :;
20764 mkdir gnu
20765 (cd gnu
20766 TEST_TAR_FORMAT=gnu
20767 export TEST_TAR_FORMAT
20768 TAR_OPTIONS="-H gnu"
20769 export TAR_OPTIONS
20770 rm -rf *
20771
20772
20773 mkdir dir
20774 echo a >dir/a
20775 echo b >dir/b
20776
20777 tar --one-file-system -cvf archive.tar -g archive.incr dir || exit
20778 tar -tf archive.tar || exit
20779 ) ) >"$at_stdout" 2>"$at_stderr"
20780 fi
20781 at_status=$?
20782 at_failed=false
20783 echo >>"$at_stderr"; $as_echo "tar: dir: Directory is new
20784 " | \
20785   $at_diff - "$at_stderr" || at_failed=:
20786 echo >>"$at_stdout"; $as_echo "dir/
20787 dir/a
20788 dir/b
20789 dir/
20790 dir/a
20791 dir/b
20792 " | \
20793   $at_diff - "$at_stdout" || at_failed=:
20794 at_func_check_status 0 $at_status "$at_srcdir/listed04.at:27"
20795
20796 $at_failed && at_func_log_failure
20797 $at_traceon; }
20798
20799
20800
20801
20802   $at_traceoff
20803   $at_times_p && times >"$at_times_file"
20804 ) 5>&1 2>&1 | eval $at_tee_pipe
20805 at_status=`cat "$at_status_file"`
20806 #AT_STOP_57
20807 #AT_START_58
20808 # 58. incr03.at:28: renamed files in incrementals
20809 at_setup_line='incr03.at:28'
20810 at_desc="renamed files in incrementals"
20811 $at_quiet $as_echo_n " 58: $at_desc                  "
20812 at_xfail=no
20813       test -f $XFAILFILE && at_xfail=yes
20814 echo "#                             -*- compilation -*-" >> "$at_group_log"
20815 (
20816   $as_echo "58. incr03.at:28: testing ..."
20817   $at_traceon
20818
20819
20820
20821
20822
20823   { $at_traceoff
20824 $as_echo "$at_srcdir/incr03.at:31:
20825 mkdir gnu
20826 (cd gnu
20827 TEST_TAR_FORMAT=gnu
20828 export TEST_TAR_FORMAT
20829 TAR_OPTIONS=\"-H gnu\"
20830 export TAR_OPTIONS
20831 rm -rf *
20832
20833
20834 test -z "`sort < /dev/null 2>&1`" || exit 77
20835
20836 mkdir directory
20837 genfile --file=directory/x
20838 genfile --file=directory/y
20839
20840 sleep 1
20841
20842 tar -cf archive.1 -g db directory
20843
20844 mv directory/x directory/z
20845 cp db db.old
20846 tar -cf archive.2 -g db directory
20847
20848 mv directory orig
20849
20850 echo Listing of archive.1
20851 tar -tf archive.1 | sort
20852 echo Listing of archive.2
20853 tar -tf archive.2 | sort
20854
20855 echo Directory after first restore
20856 tar -xf archive.1 -g db --warning=no-timestamp
20857 find directory | sort
20858
20859 echo Directory after second restore
20860 tar -xf archive.2 -g db --warning=no-timestamp
20861 find directory | sort
20862 )"
20863 echo incr03.at:31 >"$at_check_line_file"
20864
20865 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
20866    false; }; then
20867   ( $at_traceon;
20868 mkdir gnu
20869 (cd gnu
20870 TEST_TAR_FORMAT=gnu
20871 export TEST_TAR_FORMAT
20872 TAR_OPTIONS="-H gnu"
20873 export TAR_OPTIONS
20874 rm -rf *
20875
20876
20877 test -z "`sort < /dev/null 2>&1`" || exit 77
20878
20879 mkdir directory
20880 genfile --file=directory/x
20881 genfile --file=directory/y
20882
20883 sleep 1
20884
20885 tar -cf archive.1 -g db directory
20886
20887 mv directory/x directory/z
20888 cp db db.old
20889 tar -cf archive.2 -g db directory
20890
20891 mv directory orig
20892
20893 echo Listing of archive.1
20894 tar -tf archive.1 | sort
20895 echo Listing of archive.2
20896 tar -tf archive.2 | sort
20897
20898 echo Directory after first restore
20899 tar -xf archive.1 -g db --warning=no-timestamp
20900 find directory | sort
20901
20902 echo Directory after second restore
20903 tar -xf archive.2 -g db --warning=no-timestamp
20904 find directory | sort
20905 ) ) >"$at_stdout" 2>"$at_stder1"
20906   at_func_filter_trace $?
20907 else
20908   ( :;
20909 mkdir gnu
20910 (cd gnu
20911 TEST_TAR_FORMAT=gnu
20912 export TEST_TAR_FORMAT
20913 TAR_OPTIONS="-H gnu"
20914 export TAR_OPTIONS
20915 rm -rf *
20916
20917
20918 test -z "`sort < /dev/null 2>&1`" || exit 77
20919
20920 mkdir directory
20921 genfile --file=directory/x
20922 genfile --file=directory/y
20923
20924 sleep 1
20925
20926 tar -cf archive.1 -g db directory
20927
20928 mv directory/x directory/z
20929 cp db db.old
20930 tar -cf archive.2 -g db directory
20931
20932 mv directory orig
20933
20934 echo Listing of archive.1
20935 tar -tf archive.1 | sort
20936 echo Listing of archive.2
20937 tar -tf archive.2 | sort
20938
20939 echo Directory after first restore
20940 tar -xf archive.1 -g db --warning=no-timestamp
20941 find directory | sort
20942
20943 echo Directory after second restore
20944 tar -xf archive.2 -g db --warning=no-timestamp
20945 find directory | sort
20946 ) ) >"$at_stdout" 2>"$at_stderr"
20947 fi
20948 at_status=$?
20949 at_failed=false
20950 at_func_diff_devnull "$at_stderr" || at_failed=:
20951 echo >>"$at_stdout"; $as_echo "Listing of archive.1
20952 directory/
20953 directory/x
20954 directory/y
20955 Listing of archive.2
20956 directory/
20957 directory/z
20958 Directory after first restore
20959 directory
20960 directory/x
20961 directory/y
20962 Directory after second restore
20963 directory
20964 directory/y
20965 directory/z
20966 " | \
20967   $at_diff - "$at_stdout" || at_failed=:
20968 at_func_check_status 0 $at_status "$at_srcdir/incr03.at:31"
20969
20970 $at_failed && at_func_log_failure
20971 $at_traceon; }
20972
20973               { $at_traceoff
20974 $as_echo "$at_srcdir/incr03.at:31:
20975 mkdir oldgnu
20976 (cd oldgnu
20977 TEST_TAR_FORMAT=oldgnu
20978 export TEST_TAR_FORMAT
20979 TAR_OPTIONS=\"-H oldgnu\"
20980 export TAR_OPTIONS
20981 rm -rf *
20982
20983
20984 test -z "`sort < /dev/null 2>&1`" || exit 77
20985
20986 mkdir directory
20987 genfile --file=directory/x
20988 genfile --file=directory/y
20989
20990 sleep 1
20991
20992 tar -cf archive.1 -g db directory
20993
20994 mv directory/x directory/z
20995 cp db db.old
20996 tar -cf archive.2 -g db directory
20997
20998 mv directory orig
20999
21000 echo Listing of archive.1
21001 tar -tf archive.1 | sort
21002 echo Listing of archive.2
21003 tar -tf archive.2 | sort
21004
21005 echo Directory after first restore
21006 tar -xf archive.1 -g db --warning=no-timestamp
21007 find directory | sort
21008
21009 echo Directory after second restore
21010 tar -xf archive.2 -g db --warning=no-timestamp
21011 find directory | sort
21012 )"
21013 echo incr03.at:31 >"$at_check_line_file"
21014
21015 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
21016    false; }; then
21017   ( $at_traceon;
21018 mkdir oldgnu
21019 (cd oldgnu
21020 TEST_TAR_FORMAT=oldgnu
21021 export TEST_TAR_FORMAT
21022 TAR_OPTIONS="-H oldgnu"
21023 export TAR_OPTIONS
21024 rm -rf *
21025
21026
21027 test -z "`sort < /dev/null 2>&1`" || exit 77
21028
21029 mkdir directory
21030 genfile --file=directory/x
21031 genfile --file=directory/y
21032
21033 sleep 1
21034
21035 tar -cf archive.1 -g db directory
21036
21037 mv directory/x directory/z
21038 cp db db.old
21039 tar -cf archive.2 -g db directory
21040
21041 mv directory orig
21042
21043 echo Listing of archive.1
21044 tar -tf archive.1 | sort
21045 echo Listing of archive.2
21046 tar -tf archive.2 | sort
21047
21048 echo Directory after first restore
21049 tar -xf archive.1 -g db --warning=no-timestamp
21050 find directory | sort
21051
21052 echo Directory after second restore
21053 tar -xf archive.2 -g db --warning=no-timestamp
21054 find directory | sort
21055 ) ) >"$at_stdout" 2>"$at_stder1"
21056   at_func_filter_trace $?
21057 else
21058   ( :;
21059 mkdir oldgnu
21060 (cd oldgnu
21061 TEST_TAR_FORMAT=oldgnu
21062 export TEST_TAR_FORMAT
21063 TAR_OPTIONS="-H oldgnu"
21064 export TAR_OPTIONS
21065 rm -rf *
21066
21067
21068 test -z "`sort < /dev/null 2>&1`" || exit 77
21069
21070 mkdir directory
21071 genfile --file=directory/x
21072 genfile --file=directory/y
21073
21074 sleep 1
21075
21076 tar -cf archive.1 -g db directory
21077
21078 mv directory/x directory/z
21079 cp db db.old
21080 tar -cf archive.2 -g db directory
21081
21082 mv directory orig
21083
21084 echo Listing of archive.1
21085 tar -tf archive.1 | sort
21086 echo Listing of archive.2
21087 tar -tf archive.2 | sort
21088
21089 echo Directory after first restore
21090 tar -xf archive.1 -g db --warning=no-timestamp
21091 find directory | sort
21092
21093 echo Directory after second restore
21094 tar -xf archive.2 -g db --warning=no-timestamp
21095 find directory | sort
21096 ) ) >"$at_stdout" 2>"$at_stderr"
21097 fi
21098 at_status=$?
21099 at_failed=false
21100 at_func_diff_devnull "$at_stderr" || at_failed=:
21101 echo >>"$at_stdout"; $as_echo "Listing of archive.1
21102 directory/
21103 directory/x
21104 directory/y
21105 Listing of archive.2
21106 directory/
21107 directory/z
21108 Directory after first restore
21109 directory
21110 directory/x
21111 directory/y
21112 Directory after second restore
21113 directory
21114 directory/y
21115 directory/z
21116 " | \
21117   $at_diff - "$at_stdout" || at_failed=:
21118 at_func_check_status 0 $at_status "$at_srcdir/incr03.at:31"
21119
21120 $at_failed && at_func_log_failure
21121 $at_traceon; }
21122
21123               { $at_traceoff
21124 $as_echo "$at_srcdir/incr03.at:31:
21125 mkdir posix
21126 (cd posix
21127 TEST_TAR_FORMAT=posix
21128 export TEST_TAR_FORMAT
21129 TAR_OPTIONS=\"-H posix\"
21130 export TAR_OPTIONS
21131 rm -rf *
21132
21133
21134 test -z "`sort < /dev/null 2>&1`" || exit 77
21135
21136 mkdir directory
21137 genfile --file=directory/x
21138 genfile --file=directory/y
21139
21140 sleep 1
21141
21142 tar -cf archive.1 -g db directory
21143
21144 mv directory/x directory/z
21145 cp db db.old
21146 tar -cf archive.2 -g db directory
21147
21148 mv directory orig
21149
21150 echo Listing of archive.1
21151 tar -tf archive.1 | sort
21152 echo Listing of archive.2
21153 tar -tf archive.2 | sort
21154
21155 echo Directory after first restore
21156 tar -xf archive.1 -g db --warning=no-timestamp
21157 find directory | sort
21158
21159 echo Directory after second restore
21160 tar -xf archive.2 -g db --warning=no-timestamp
21161 find directory | sort
21162 )"
21163 echo incr03.at:31 >"$at_check_line_file"
21164
21165 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
21166    false; }; then
21167   ( $at_traceon;
21168 mkdir posix
21169 (cd posix
21170 TEST_TAR_FORMAT=posix
21171 export TEST_TAR_FORMAT
21172 TAR_OPTIONS="-H posix"
21173 export TAR_OPTIONS
21174 rm -rf *
21175
21176
21177 test -z "`sort < /dev/null 2>&1`" || exit 77
21178
21179 mkdir directory
21180 genfile --file=directory/x
21181 genfile --file=directory/y
21182
21183 sleep 1
21184
21185 tar -cf archive.1 -g db directory
21186
21187 mv directory/x directory/z
21188 cp db db.old
21189 tar -cf archive.2 -g db directory
21190
21191 mv directory orig
21192
21193 echo Listing of archive.1
21194 tar -tf archive.1 | sort
21195 echo Listing of archive.2
21196 tar -tf archive.2 | sort
21197
21198 echo Directory after first restore
21199 tar -xf archive.1 -g db --warning=no-timestamp
21200 find directory | sort
21201
21202 echo Directory after second restore
21203 tar -xf archive.2 -g db --warning=no-timestamp
21204 find directory | sort
21205 ) ) >"$at_stdout" 2>"$at_stder1"
21206   at_func_filter_trace $?
21207 else
21208   ( :;
21209 mkdir posix
21210 (cd posix
21211 TEST_TAR_FORMAT=posix
21212 export TEST_TAR_FORMAT
21213 TAR_OPTIONS="-H posix"
21214 export TAR_OPTIONS
21215 rm -rf *
21216
21217
21218 test -z "`sort < /dev/null 2>&1`" || exit 77
21219
21220 mkdir directory
21221 genfile --file=directory/x
21222 genfile --file=directory/y
21223
21224 sleep 1
21225
21226 tar -cf archive.1 -g db directory
21227
21228 mv directory/x directory/z
21229 cp db db.old
21230 tar -cf archive.2 -g db directory
21231
21232 mv directory orig
21233
21234 echo Listing of archive.1
21235 tar -tf archive.1 | sort
21236 echo Listing of archive.2
21237 tar -tf archive.2 | sort
21238
21239 echo Directory after first restore
21240 tar -xf archive.1 -g db --warning=no-timestamp
21241 find directory | sort
21242
21243 echo Directory after second restore
21244 tar -xf archive.2 -g db --warning=no-timestamp
21245 find directory | sort
21246 ) ) >"$at_stdout" 2>"$at_stderr"
21247 fi
21248 at_status=$?
21249 at_failed=false
21250 at_func_diff_devnull "$at_stderr" || at_failed=:
21251 echo >>"$at_stdout"; $as_echo "Listing of archive.1
21252 directory/
21253 directory/x
21254 directory/y
21255 Listing of archive.2
21256 directory/
21257 directory/z
21258 Directory after first restore
21259 directory
21260 directory/x
21261 directory/y
21262 Directory after second restore
21263 directory
21264 directory/y
21265 directory/z
21266 " | \
21267   $at_diff - "$at_stdout" || at_failed=:
21268 at_func_check_status 0 $at_status "$at_srcdir/incr03.at:31"
21269
21270 $at_failed && at_func_log_failure
21271 $at_traceon; }
21272
21273
21274
21275
21276   $at_traceoff
21277   $at_times_p && times >"$at_times_file"
21278 ) 5>&1 2>&1 | eval $at_tee_pipe
21279 at_status=`cat "$at_status_file"`
21280 #AT_STOP_58
21281 #AT_START_59
21282 # 59. incr04.at:29: proper icontents initialization
21283 at_setup_line='incr04.at:29'
21284 at_desc="proper icontents initialization"
21285 $at_quiet $as_echo_n " 59: $at_desc                "
21286 at_xfail=no
21287       test -f $XFAILFILE && at_xfail=yes
21288 echo "#                             -*- compilation -*-" >> "$at_group_log"
21289 (
21290   $as_echo "59. incr04.at:29: testing ..."
21291   $at_traceon
21292
21293
21294
21295
21296
21297
21298
21299   { $at_traceoff
21300 $as_echo "$at_srcdir/incr04.at:34:
21301 mkdir gnu
21302 (cd gnu
21303 TEST_TAR_FORMAT=gnu
21304 export TEST_TAR_FORMAT
21305 TAR_OPTIONS=\"-H gnu\"
21306 export TAR_OPTIONS
21307 rm -rf *
21308
21309
21310 install-sh -d a/b >/dev/null  || exit 77
21311 awk 'BEGIN {
21312   for (i=1;i<=142;i++)
21313     printf(\"a/b/one_31_chars_long_file_name_%03d\\n\", i);
21314   }' < /dev/null | genfile --files-from -
21315
21316 sleep 1
21317
21318 echo \"Initial dump\"
21319 tar cvf a0.tar -g a.sna a
21320 mv a/b a/c
21321 echo \"Incremental dump\"
21322 tar cvf a1.tar -g a.sna a
21323 )"
21324 echo incr04.at:34 >"$at_check_line_file"
21325
21326 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
21327    false; }; then
21328   ( $at_traceon;
21329 mkdir gnu
21330 (cd gnu
21331 TEST_TAR_FORMAT=gnu
21332 export TEST_TAR_FORMAT
21333 TAR_OPTIONS="-H gnu"
21334 export TAR_OPTIONS
21335 rm -rf *
21336
21337
21338 install-sh -d a/b >/dev/null  || exit 77
21339 awk 'BEGIN {
21340   for (i=1;i<=142;i++)
21341     printf("a/b/one_31_chars_long_file_name_%03d\n", i);
21342   }' < /dev/null | genfile --files-from -
21343
21344 sleep 1
21345
21346 echo "Initial dump"
21347 tar cvf a0.tar -g a.sna a
21348 mv a/b a/c
21349 echo "Incremental dump"
21350 tar cvf a1.tar -g a.sna a
21351 ) ) >"$at_stdout" 2>"$at_stder1"
21352   at_func_filter_trace $?
21353 else
21354   ( :;
21355 mkdir gnu
21356 (cd gnu
21357 TEST_TAR_FORMAT=gnu
21358 export TEST_TAR_FORMAT
21359 TAR_OPTIONS="-H gnu"
21360 export TAR_OPTIONS
21361 rm -rf *
21362
21363
21364 install-sh -d a/b >/dev/null  || exit 77
21365 awk 'BEGIN {
21366   for (i=1;i<=142;i++)
21367     printf("a/b/one_31_chars_long_file_name_%03d\n", i);
21368   }' < /dev/null | genfile --files-from -
21369
21370 sleep 1
21371
21372 echo "Initial dump"
21373 tar cvf a0.tar -g a.sna a
21374 mv a/b a/c
21375 echo "Incremental dump"
21376 tar cvf a1.tar -g a.sna a
21377 ) ) >"$at_stdout" 2>"$at_stderr"
21378 fi
21379 at_status=$?
21380 at_failed=false
21381 echo >>"$at_stderr"; $as_echo "tar: a: Directory is new
21382 tar: a/b: Directory is new
21383 tar: a/c: Directory has been renamed from \`a/b'
21384 " | \
21385   $at_diff - "$at_stderr" || at_failed=:
21386 echo >>"$at_stdout"; $as_echo "Initial dump
21387 a/
21388 a/b/
21389 a/b/one_31_chars_long_file_name_001
21390 a/b/one_31_chars_long_file_name_002
21391 a/b/one_31_chars_long_file_name_003
21392 a/b/one_31_chars_long_file_name_004
21393 a/b/one_31_chars_long_file_name_005
21394 a/b/one_31_chars_long_file_name_006
21395 a/b/one_31_chars_long_file_name_007
21396 a/b/one_31_chars_long_file_name_008
21397 a/b/one_31_chars_long_file_name_009
21398 a/b/one_31_chars_long_file_name_010
21399 a/b/one_31_chars_long_file_name_011
21400 a/b/one_31_chars_long_file_name_012
21401 a/b/one_31_chars_long_file_name_013
21402 a/b/one_31_chars_long_file_name_014
21403 a/b/one_31_chars_long_file_name_015
21404 a/b/one_31_chars_long_file_name_016
21405 a/b/one_31_chars_long_file_name_017
21406 a/b/one_31_chars_long_file_name_018
21407 a/b/one_31_chars_long_file_name_019
21408 a/b/one_31_chars_long_file_name_020
21409 a/b/one_31_chars_long_file_name_021
21410 a/b/one_31_chars_long_file_name_022
21411 a/b/one_31_chars_long_file_name_023
21412 a/b/one_31_chars_long_file_name_024
21413 a/b/one_31_chars_long_file_name_025
21414 a/b/one_31_chars_long_file_name_026
21415 a/b/one_31_chars_long_file_name_027
21416 a/b/one_31_chars_long_file_name_028
21417 a/b/one_31_chars_long_file_name_029
21418 a/b/one_31_chars_long_file_name_030
21419 a/b/one_31_chars_long_file_name_031
21420 a/b/one_31_chars_long_file_name_032
21421 a/b/one_31_chars_long_file_name_033
21422 a/b/one_31_chars_long_file_name_034
21423 a/b/one_31_chars_long_file_name_035
21424 a/b/one_31_chars_long_file_name_036
21425 a/b/one_31_chars_long_file_name_037
21426 a/b/one_31_chars_long_file_name_038
21427 a/b/one_31_chars_long_file_name_039
21428 a/b/one_31_chars_long_file_name_040
21429 a/b/one_31_chars_long_file_name_041
21430 a/b/one_31_chars_long_file_name_042
21431 a/b/one_31_chars_long_file_name_043
21432 a/b/one_31_chars_long_file_name_044
21433 a/b/one_31_chars_long_file_name_045
21434 a/b/one_31_chars_long_file_name_046
21435 a/b/one_31_chars_long_file_name_047
21436 a/b/one_31_chars_long_file_name_048
21437 a/b/one_31_chars_long_file_name_049
21438 a/b/one_31_chars_long_file_name_050
21439 a/b/one_31_chars_long_file_name_051
21440 a/b/one_31_chars_long_file_name_052
21441 a/b/one_31_chars_long_file_name_053
21442 a/b/one_31_chars_long_file_name_054
21443 a/b/one_31_chars_long_file_name_055
21444 a/b/one_31_chars_long_file_name_056
21445 a/b/one_31_chars_long_file_name_057
21446 a/b/one_31_chars_long_file_name_058
21447 a/b/one_31_chars_long_file_name_059
21448 a/b/one_31_chars_long_file_name_060
21449 a/b/one_31_chars_long_file_name_061
21450 a/b/one_31_chars_long_file_name_062
21451 a/b/one_31_chars_long_file_name_063
21452 a/b/one_31_chars_long_file_name_064
21453 a/b/one_31_chars_long_file_name_065
21454 a/b/one_31_chars_long_file_name_066
21455 a/b/one_31_chars_long_file_name_067
21456 a/b/one_31_chars_long_file_name_068
21457 a/b/one_31_chars_long_file_name_069
21458 a/b/one_31_chars_long_file_name_070
21459 a/b/one_31_chars_long_file_name_071
21460 a/b/one_31_chars_long_file_name_072
21461 a/b/one_31_chars_long_file_name_073
21462 a/b/one_31_chars_long_file_name_074
21463 a/b/one_31_chars_long_file_name_075
21464 a/b/one_31_chars_long_file_name_076
21465 a/b/one_31_chars_long_file_name_077
21466 a/b/one_31_chars_long_file_name_078
21467 a/b/one_31_chars_long_file_name_079
21468 a/b/one_31_chars_long_file_name_080
21469 a/b/one_31_chars_long_file_name_081
21470 a/b/one_31_chars_long_file_name_082
21471 a/b/one_31_chars_long_file_name_083
21472 a/b/one_31_chars_long_file_name_084
21473 a/b/one_31_chars_long_file_name_085
21474 a/b/one_31_chars_long_file_name_086
21475 a/b/one_31_chars_long_file_name_087
21476 a/b/one_31_chars_long_file_name_088
21477 a/b/one_31_chars_long_file_name_089
21478 a/b/one_31_chars_long_file_name_090
21479 a/b/one_31_chars_long_file_name_091
21480 a/b/one_31_chars_long_file_name_092
21481 a/b/one_31_chars_long_file_name_093
21482 a/b/one_31_chars_long_file_name_094
21483 a/b/one_31_chars_long_file_name_095
21484 a/b/one_31_chars_long_file_name_096
21485 a/b/one_31_chars_long_file_name_097
21486 a/b/one_31_chars_long_file_name_098
21487 a/b/one_31_chars_long_file_name_099
21488 a/b/one_31_chars_long_file_name_100
21489 a/b/one_31_chars_long_file_name_101
21490 a/b/one_31_chars_long_file_name_102
21491 a/b/one_31_chars_long_file_name_103
21492 a/b/one_31_chars_long_file_name_104
21493 a/b/one_31_chars_long_file_name_105
21494 a/b/one_31_chars_long_file_name_106
21495 a/b/one_31_chars_long_file_name_107
21496 a/b/one_31_chars_long_file_name_108
21497 a/b/one_31_chars_long_file_name_109
21498 a/b/one_31_chars_long_file_name_110
21499 a/b/one_31_chars_long_file_name_111
21500 a/b/one_31_chars_long_file_name_112
21501 a/b/one_31_chars_long_file_name_113
21502 a/b/one_31_chars_long_file_name_114
21503 a/b/one_31_chars_long_file_name_115
21504 a/b/one_31_chars_long_file_name_116
21505 a/b/one_31_chars_long_file_name_117
21506 a/b/one_31_chars_long_file_name_118
21507 a/b/one_31_chars_long_file_name_119
21508 a/b/one_31_chars_long_file_name_120
21509 a/b/one_31_chars_long_file_name_121
21510 a/b/one_31_chars_long_file_name_122
21511 a/b/one_31_chars_long_file_name_123
21512 a/b/one_31_chars_long_file_name_124
21513 a/b/one_31_chars_long_file_name_125
21514 a/b/one_31_chars_long_file_name_126
21515 a/b/one_31_chars_long_file_name_127
21516 a/b/one_31_chars_long_file_name_128
21517 a/b/one_31_chars_long_file_name_129
21518 a/b/one_31_chars_long_file_name_130
21519 a/b/one_31_chars_long_file_name_131
21520 a/b/one_31_chars_long_file_name_132
21521 a/b/one_31_chars_long_file_name_133
21522 a/b/one_31_chars_long_file_name_134
21523 a/b/one_31_chars_long_file_name_135
21524 a/b/one_31_chars_long_file_name_136
21525 a/b/one_31_chars_long_file_name_137
21526 a/b/one_31_chars_long_file_name_138
21527 a/b/one_31_chars_long_file_name_139
21528 a/b/one_31_chars_long_file_name_140
21529 a/b/one_31_chars_long_file_name_141
21530 a/b/one_31_chars_long_file_name_142
21531 Incremental dump
21532 a/
21533 a/c/
21534 " | \
21535   $at_diff - "$at_stdout" || at_failed=:
21536 at_func_check_status 0 $at_status "$at_srcdir/incr04.at:34"
21537
21538 $at_failed && at_func_log_failure
21539 $at_traceon; }
21540
21541               { $at_traceoff
21542 $as_echo "$at_srcdir/incr04.at:34:
21543 mkdir oldgnu
21544 (cd oldgnu
21545 TEST_TAR_FORMAT=oldgnu
21546 export TEST_TAR_FORMAT
21547 TAR_OPTIONS=\"-H oldgnu\"
21548 export TAR_OPTIONS
21549 rm -rf *
21550
21551
21552 install-sh -d a/b >/dev/null  || exit 77
21553 awk 'BEGIN {
21554   for (i=1;i<=142;i++)
21555     printf(\"a/b/one_31_chars_long_file_name_%03d\\n\", i);
21556   }' < /dev/null | genfile --files-from -
21557
21558 sleep 1
21559
21560 echo \"Initial dump\"
21561 tar cvf a0.tar -g a.sna a
21562 mv a/b a/c
21563 echo \"Incremental dump\"
21564 tar cvf a1.tar -g a.sna a
21565 )"
21566 echo incr04.at:34 >"$at_check_line_file"
21567
21568 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
21569    false; }; then
21570   ( $at_traceon;
21571 mkdir oldgnu
21572 (cd oldgnu
21573 TEST_TAR_FORMAT=oldgnu
21574 export TEST_TAR_FORMAT
21575 TAR_OPTIONS="-H oldgnu"
21576 export TAR_OPTIONS
21577 rm -rf *
21578
21579
21580 install-sh -d a/b >/dev/null  || exit 77
21581 awk 'BEGIN {
21582   for (i=1;i<=142;i++)
21583     printf("a/b/one_31_chars_long_file_name_%03d\n", i);
21584   }' < /dev/null | genfile --files-from -
21585
21586 sleep 1
21587
21588 echo "Initial dump"
21589 tar cvf a0.tar -g a.sna a
21590 mv a/b a/c
21591 echo "Incremental dump"
21592 tar cvf a1.tar -g a.sna a
21593 ) ) >"$at_stdout" 2>"$at_stder1"
21594   at_func_filter_trace $?
21595 else
21596   ( :;
21597 mkdir oldgnu
21598 (cd oldgnu
21599 TEST_TAR_FORMAT=oldgnu
21600 export TEST_TAR_FORMAT
21601 TAR_OPTIONS="-H oldgnu"
21602 export TAR_OPTIONS
21603 rm -rf *
21604
21605
21606 install-sh -d a/b >/dev/null  || exit 77
21607 awk 'BEGIN {
21608   for (i=1;i<=142;i++)
21609     printf("a/b/one_31_chars_long_file_name_%03d\n", i);
21610   }' < /dev/null | genfile --files-from -
21611
21612 sleep 1
21613
21614 echo "Initial dump"
21615 tar cvf a0.tar -g a.sna a
21616 mv a/b a/c
21617 echo "Incremental dump"
21618 tar cvf a1.tar -g a.sna a
21619 ) ) >"$at_stdout" 2>"$at_stderr"
21620 fi
21621 at_status=$?
21622 at_failed=false
21623 echo >>"$at_stderr"; $as_echo "tar: a: Directory is new
21624 tar: a/b: Directory is new
21625 tar: a/c: Directory has been renamed from \`a/b'
21626 " | \
21627   $at_diff - "$at_stderr" || at_failed=:
21628 echo >>"$at_stdout"; $as_echo "Initial dump
21629 a/
21630 a/b/
21631 a/b/one_31_chars_long_file_name_001
21632 a/b/one_31_chars_long_file_name_002
21633 a/b/one_31_chars_long_file_name_003
21634 a/b/one_31_chars_long_file_name_004
21635 a/b/one_31_chars_long_file_name_005
21636 a/b/one_31_chars_long_file_name_006
21637 a/b/one_31_chars_long_file_name_007
21638 a/b/one_31_chars_long_file_name_008
21639 a/b/one_31_chars_long_file_name_009
21640 a/b/one_31_chars_long_file_name_010
21641 a/b/one_31_chars_long_file_name_011
21642 a/b/one_31_chars_long_file_name_012
21643 a/b/one_31_chars_long_file_name_013
21644 a/b/one_31_chars_long_file_name_014
21645 a/b/one_31_chars_long_file_name_015
21646 a/b/one_31_chars_long_file_name_016
21647 a/b/one_31_chars_long_file_name_017
21648 a/b/one_31_chars_long_file_name_018
21649 a/b/one_31_chars_long_file_name_019
21650 a/b/one_31_chars_long_file_name_020
21651 a/b/one_31_chars_long_file_name_021
21652 a/b/one_31_chars_long_file_name_022
21653 a/b/one_31_chars_long_file_name_023
21654 a/b/one_31_chars_long_file_name_024
21655 a/b/one_31_chars_long_file_name_025
21656 a/b/one_31_chars_long_file_name_026
21657 a/b/one_31_chars_long_file_name_027
21658 a/b/one_31_chars_long_file_name_028
21659 a/b/one_31_chars_long_file_name_029
21660 a/b/one_31_chars_long_file_name_030
21661 a/b/one_31_chars_long_file_name_031
21662 a/b/one_31_chars_long_file_name_032
21663 a/b/one_31_chars_long_file_name_033
21664 a/b/one_31_chars_long_file_name_034
21665 a/b/one_31_chars_long_file_name_035
21666 a/b/one_31_chars_long_file_name_036
21667 a/b/one_31_chars_long_file_name_037
21668 a/b/one_31_chars_long_file_name_038
21669 a/b/one_31_chars_long_file_name_039
21670 a/b/one_31_chars_long_file_name_040
21671 a/b/one_31_chars_long_file_name_041
21672 a/b/one_31_chars_long_file_name_042
21673 a/b/one_31_chars_long_file_name_043
21674 a/b/one_31_chars_long_file_name_044
21675 a/b/one_31_chars_long_file_name_045
21676 a/b/one_31_chars_long_file_name_046
21677 a/b/one_31_chars_long_file_name_047
21678 a/b/one_31_chars_long_file_name_048
21679 a/b/one_31_chars_long_file_name_049
21680 a/b/one_31_chars_long_file_name_050
21681 a/b/one_31_chars_long_file_name_051
21682 a/b/one_31_chars_long_file_name_052
21683 a/b/one_31_chars_long_file_name_053
21684 a/b/one_31_chars_long_file_name_054
21685 a/b/one_31_chars_long_file_name_055
21686 a/b/one_31_chars_long_file_name_056
21687 a/b/one_31_chars_long_file_name_057
21688 a/b/one_31_chars_long_file_name_058
21689 a/b/one_31_chars_long_file_name_059
21690 a/b/one_31_chars_long_file_name_060
21691 a/b/one_31_chars_long_file_name_061
21692 a/b/one_31_chars_long_file_name_062
21693 a/b/one_31_chars_long_file_name_063
21694 a/b/one_31_chars_long_file_name_064
21695 a/b/one_31_chars_long_file_name_065
21696 a/b/one_31_chars_long_file_name_066
21697 a/b/one_31_chars_long_file_name_067
21698 a/b/one_31_chars_long_file_name_068
21699 a/b/one_31_chars_long_file_name_069
21700 a/b/one_31_chars_long_file_name_070
21701 a/b/one_31_chars_long_file_name_071
21702 a/b/one_31_chars_long_file_name_072
21703 a/b/one_31_chars_long_file_name_073
21704 a/b/one_31_chars_long_file_name_074
21705 a/b/one_31_chars_long_file_name_075
21706 a/b/one_31_chars_long_file_name_076
21707 a/b/one_31_chars_long_file_name_077
21708 a/b/one_31_chars_long_file_name_078
21709 a/b/one_31_chars_long_file_name_079
21710 a/b/one_31_chars_long_file_name_080
21711 a/b/one_31_chars_long_file_name_081
21712 a/b/one_31_chars_long_file_name_082
21713 a/b/one_31_chars_long_file_name_083
21714 a/b/one_31_chars_long_file_name_084
21715 a/b/one_31_chars_long_file_name_085
21716 a/b/one_31_chars_long_file_name_086
21717 a/b/one_31_chars_long_file_name_087
21718 a/b/one_31_chars_long_file_name_088
21719 a/b/one_31_chars_long_file_name_089
21720 a/b/one_31_chars_long_file_name_090
21721 a/b/one_31_chars_long_file_name_091
21722 a/b/one_31_chars_long_file_name_092
21723 a/b/one_31_chars_long_file_name_093
21724 a/b/one_31_chars_long_file_name_094
21725 a/b/one_31_chars_long_file_name_095
21726 a/b/one_31_chars_long_file_name_096
21727 a/b/one_31_chars_long_file_name_097
21728 a/b/one_31_chars_long_file_name_098
21729 a/b/one_31_chars_long_file_name_099
21730 a/b/one_31_chars_long_file_name_100
21731 a/b/one_31_chars_long_file_name_101
21732 a/b/one_31_chars_long_file_name_102
21733 a/b/one_31_chars_long_file_name_103
21734 a/b/one_31_chars_long_file_name_104
21735 a/b/one_31_chars_long_file_name_105
21736 a/b/one_31_chars_long_file_name_106
21737 a/b/one_31_chars_long_file_name_107
21738 a/b/one_31_chars_long_file_name_108
21739 a/b/one_31_chars_long_file_name_109
21740 a/b/one_31_chars_long_file_name_110
21741 a/b/one_31_chars_long_file_name_111
21742 a/b/one_31_chars_long_file_name_112
21743 a/b/one_31_chars_long_file_name_113
21744 a/b/one_31_chars_long_file_name_114
21745 a/b/one_31_chars_long_file_name_115
21746 a/b/one_31_chars_long_file_name_116
21747 a/b/one_31_chars_long_file_name_117
21748 a/b/one_31_chars_long_file_name_118
21749 a/b/one_31_chars_long_file_name_119
21750 a/b/one_31_chars_long_file_name_120
21751 a/b/one_31_chars_long_file_name_121
21752 a/b/one_31_chars_long_file_name_122
21753 a/b/one_31_chars_long_file_name_123
21754 a/b/one_31_chars_long_file_name_124
21755 a/b/one_31_chars_long_file_name_125
21756 a/b/one_31_chars_long_file_name_126
21757 a/b/one_31_chars_long_file_name_127
21758 a/b/one_31_chars_long_file_name_128
21759 a/b/one_31_chars_long_file_name_129
21760 a/b/one_31_chars_long_file_name_130
21761 a/b/one_31_chars_long_file_name_131
21762 a/b/one_31_chars_long_file_name_132
21763 a/b/one_31_chars_long_file_name_133
21764 a/b/one_31_chars_long_file_name_134
21765 a/b/one_31_chars_long_file_name_135
21766 a/b/one_31_chars_long_file_name_136
21767 a/b/one_31_chars_long_file_name_137
21768 a/b/one_31_chars_long_file_name_138
21769 a/b/one_31_chars_long_file_name_139
21770 a/b/one_31_chars_long_file_name_140
21771 a/b/one_31_chars_long_file_name_141
21772 a/b/one_31_chars_long_file_name_142
21773 Incremental dump
21774 a/
21775 a/c/
21776 " | \
21777   $at_diff - "$at_stdout" || at_failed=:
21778 at_func_check_status 0 $at_status "$at_srcdir/incr04.at:34"
21779
21780 $at_failed && at_func_log_failure
21781 $at_traceon; }
21782
21783               { $at_traceoff
21784 $as_echo "$at_srcdir/incr04.at:34:
21785 mkdir posix
21786 (cd posix
21787 TEST_TAR_FORMAT=posix
21788 export TEST_TAR_FORMAT
21789 TAR_OPTIONS=\"-H posix\"
21790 export TAR_OPTIONS
21791 rm -rf *
21792
21793
21794 install-sh -d a/b >/dev/null  || exit 77
21795 awk 'BEGIN {
21796   for (i=1;i<=142;i++)
21797     printf(\"a/b/one_31_chars_long_file_name_%03d\\n\", i);
21798   }' < /dev/null | genfile --files-from -
21799
21800 sleep 1
21801
21802 echo \"Initial dump\"
21803 tar cvf a0.tar -g a.sna a
21804 mv a/b a/c
21805 echo \"Incremental dump\"
21806 tar cvf a1.tar -g a.sna a
21807 )"
21808 echo incr04.at:34 >"$at_check_line_file"
21809
21810 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
21811    false; }; then
21812   ( $at_traceon;
21813 mkdir posix
21814 (cd posix
21815 TEST_TAR_FORMAT=posix
21816 export TEST_TAR_FORMAT
21817 TAR_OPTIONS="-H posix"
21818 export TAR_OPTIONS
21819 rm -rf *
21820
21821
21822 install-sh -d a/b >/dev/null  || exit 77
21823 awk 'BEGIN {
21824   for (i=1;i<=142;i++)
21825     printf("a/b/one_31_chars_long_file_name_%03d\n", i);
21826   }' < /dev/null | genfile --files-from -
21827
21828 sleep 1
21829
21830 echo "Initial dump"
21831 tar cvf a0.tar -g a.sna a
21832 mv a/b a/c
21833 echo "Incremental dump"
21834 tar cvf a1.tar -g a.sna a
21835 ) ) >"$at_stdout" 2>"$at_stder1"
21836   at_func_filter_trace $?
21837 else
21838   ( :;
21839 mkdir posix
21840 (cd posix
21841 TEST_TAR_FORMAT=posix
21842 export TEST_TAR_FORMAT
21843 TAR_OPTIONS="-H posix"
21844 export TAR_OPTIONS
21845 rm -rf *
21846
21847
21848 install-sh -d a/b >/dev/null  || exit 77
21849 awk 'BEGIN {
21850   for (i=1;i<=142;i++)
21851     printf("a/b/one_31_chars_long_file_name_%03d\n", i);
21852   }' < /dev/null | genfile --files-from -
21853
21854 sleep 1
21855
21856 echo "Initial dump"
21857 tar cvf a0.tar -g a.sna a
21858 mv a/b a/c
21859 echo "Incremental dump"
21860 tar cvf a1.tar -g a.sna a
21861 ) ) >"$at_stdout" 2>"$at_stderr"
21862 fi
21863 at_status=$?
21864 at_failed=false
21865 echo >>"$at_stderr"; $as_echo "tar: a: Directory is new
21866 tar: a/b: Directory is new
21867 tar: a/c: Directory has been renamed from \`a/b'
21868 " | \
21869   $at_diff - "$at_stderr" || at_failed=:
21870 echo >>"$at_stdout"; $as_echo "Initial dump
21871 a/
21872 a/b/
21873 a/b/one_31_chars_long_file_name_001
21874 a/b/one_31_chars_long_file_name_002
21875 a/b/one_31_chars_long_file_name_003
21876 a/b/one_31_chars_long_file_name_004
21877 a/b/one_31_chars_long_file_name_005
21878 a/b/one_31_chars_long_file_name_006
21879 a/b/one_31_chars_long_file_name_007
21880 a/b/one_31_chars_long_file_name_008
21881 a/b/one_31_chars_long_file_name_009
21882 a/b/one_31_chars_long_file_name_010
21883 a/b/one_31_chars_long_file_name_011
21884 a/b/one_31_chars_long_file_name_012
21885 a/b/one_31_chars_long_file_name_013
21886 a/b/one_31_chars_long_file_name_014
21887 a/b/one_31_chars_long_file_name_015
21888 a/b/one_31_chars_long_file_name_016
21889 a/b/one_31_chars_long_file_name_017
21890 a/b/one_31_chars_long_file_name_018
21891 a/b/one_31_chars_long_file_name_019
21892 a/b/one_31_chars_long_file_name_020
21893 a/b/one_31_chars_long_file_name_021
21894 a/b/one_31_chars_long_file_name_022
21895 a/b/one_31_chars_long_file_name_023
21896 a/b/one_31_chars_long_file_name_024
21897 a/b/one_31_chars_long_file_name_025
21898 a/b/one_31_chars_long_file_name_026
21899 a/b/one_31_chars_long_file_name_027
21900 a/b/one_31_chars_long_file_name_028
21901 a/b/one_31_chars_long_file_name_029
21902 a/b/one_31_chars_long_file_name_030
21903 a/b/one_31_chars_long_file_name_031
21904 a/b/one_31_chars_long_file_name_032
21905 a/b/one_31_chars_long_file_name_033
21906 a/b/one_31_chars_long_file_name_034
21907 a/b/one_31_chars_long_file_name_035
21908 a/b/one_31_chars_long_file_name_036
21909 a/b/one_31_chars_long_file_name_037
21910 a/b/one_31_chars_long_file_name_038
21911 a/b/one_31_chars_long_file_name_039
21912 a/b/one_31_chars_long_file_name_040
21913 a/b/one_31_chars_long_file_name_041
21914 a/b/one_31_chars_long_file_name_042
21915 a/b/one_31_chars_long_file_name_043
21916 a/b/one_31_chars_long_file_name_044
21917 a/b/one_31_chars_long_file_name_045
21918 a/b/one_31_chars_long_file_name_046
21919 a/b/one_31_chars_long_file_name_047
21920 a/b/one_31_chars_long_file_name_048
21921 a/b/one_31_chars_long_file_name_049
21922 a/b/one_31_chars_long_file_name_050
21923 a/b/one_31_chars_long_file_name_051
21924 a/b/one_31_chars_long_file_name_052
21925 a/b/one_31_chars_long_file_name_053
21926 a/b/one_31_chars_long_file_name_054
21927 a/b/one_31_chars_long_file_name_055
21928 a/b/one_31_chars_long_file_name_056
21929 a/b/one_31_chars_long_file_name_057
21930 a/b/one_31_chars_long_file_name_058
21931 a/b/one_31_chars_long_file_name_059
21932 a/b/one_31_chars_long_file_name_060
21933 a/b/one_31_chars_long_file_name_061
21934 a/b/one_31_chars_long_file_name_062
21935 a/b/one_31_chars_long_file_name_063
21936 a/b/one_31_chars_long_file_name_064
21937 a/b/one_31_chars_long_file_name_065
21938 a/b/one_31_chars_long_file_name_066
21939 a/b/one_31_chars_long_file_name_067
21940 a/b/one_31_chars_long_file_name_068
21941 a/b/one_31_chars_long_file_name_069
21942 a/b/one_31_chars_long_file_name_070
21943 a/b/one_31_chars_long_file_name_071
21944 a/b/one_31_chars_long_file_name_072
21945 a/b/one_31_chars_long_file_name_073
21946 a/b/one_31_chars_long_file_name_074
21947 a/b/one_31_chars_long_file_name_075
21948 a/b/one_31_chars_long_file_name_076
21949 a/b/one_31_chars_long_file_name_077
21950 a/b/one_31_chars_long_file_name_078
21951 a/b/one_31_chars_long_file_name_079
21952 a/b/one_31_chars_long_file_name_080
21953 a/b/one_31_chars_long_file_name_081
21954 a/b/one_31_chars_long_file_name_082
21955 a/b/one_31_chars_long_file_name_083
21956 a/b/one_31_chars_long_file_name_084
21957 a/b/one_31_chars_long_file_name_085
21958 a/b/one_31_chars_long_file_name_086
21959 a/b/one_31_chars_long_file_name_087
21960 a/b/one_31_chars_long_file_name_088
21961 a/b/one_31_chars_long_file_name_089
21962 a/b/one_31_chars_long_file_name_090
21963 a/b/one_31_chars_long_file_name_091
21964 a/b/one_31_chars_long_file_name_092
21965 a/b/one_31_chars_long_file_name_093
21966 a/b/one_31_chars_long_file_name_094
21967 a/b/one_31_chars_long_file_name_095
21968 a/b/one_31_chars_long_file_name_096
21969 a/b/one_31_chars_long_file_name_097
21970 a/b/one_31_chars_long_file_name_098
21971 a/b/one_31_chars_long_file_name_099
21972 a/b/one_31_chars_long_file_name_100
21973 a/b/one_31_chars_long_file_name_101
21974 a/b/one_31_chars_long_file_name_102
21975 a/b/one_31_chars_long_file_name_103
21976 a/b/one_31_chars_long_file_name_104
21977 a/b/one_31_chars_long_file_name_105
21978 a/b/one_31_chars_long_file_name_106
21979 a/b/one_31_chars_long_file_name_107
21980 a/b/one_31_chars_long_file_name_108
21981 a/b/one_31_chars_long_file_name_109
21982 a/b/one_31_chars_long_file_name_110
21983 a/b/one_31_chars_long_file_name_111
21984 a/b/one_31_chars_long_file_name_112
21985 a/b/one_31_chars_long_file_name_113
21986 a/b/one_31_chars_long_file_name_114
21987 a/b/one_31_chars_long_file_name_115
21988 a/b/one_31_chars_long_file_name_116
21989 a/b/one_31_chars_long_file_name_117
21990 a/b/one_31_chars_long_file_name_118
21991 a/b/one_31_chars_long_file_name_119
21992 a/b/one_31_chars_long_file_name_120
21993 a/b/one_31_chars_long_file_name_121
21994 a/b/one_31_chars_long_file_name_122
21995 a/b/one_31_chars_long_file_name_123
21996 a/b/one_31_chars_long_file_name_124
21997 a/b/one_31_chars_long_file_name_125
21998 a/b/one_31_chars_long_file_name_126
21999 a/b/one_31_chars_long_file_name_127
22000 a/b/one_31_chars_long_file_name_128
22001 a/b/one_31_chars_long_file_name_129
22002 a/b/one_31_chars_long_file_name_130
22003 a/b/one_31_chars_long_file_name_131
22004 a/b/one_31_chars_long_file_name_132
22005 a/b/one_31_chars_long_file_name_133
22006 a/b/one_31_chars_long_file_name_134
22007 a/b/one_31_chars_long_file_name_135
22008 a/b/one_31_chars_long_file_name_136
22009 a/b/one_31_chars_long_file_name_137
22010 a/b/one_31_chars_long_file_name_138
22011 a/b/one_31_chars_long_file_name_139
22012 a/b/one_31_chars_long_file_name_140
22013 a/b/one_31_chars_long_file_name_141
22014 a/b/one_31_chars_long_file_name_142
22015 Incremental dump
22016 a/
22017 a/c/
22018 " | \
22019   $at_diff - "$at_stdout" || at_failed=:
22020 at_func_check_status 0 $at_status "$at_srcdir/incr04.at:34"
22021
22022 $at_failed && at_func_log_failure
22023 $at_traceon; }
22024
22025
22026
22027
22028   $at_traceoff
22029   $at_times_p && times >"$at_times_file"
22030 ) 5>&1 2>&1 | eval $at_tee_pipe
22031 at_status=`cat "$at_status_file"`
22032 #AT_STOP_59
22033 #AT_START_60
22034 # 60. incr05.at:19: incremental dumps with -C
22035 at_setup_line='incr05.at:19'
22036 at_desc="incremental dumps with -C"
22037 $at_quiet $as_echo_n " 60: $at_desc                      "
22038 at_xfail=no
22039       test -f $XFAILFILE && at_xfail=yes
22040 echo "#                             -*- compilation -*-" >> "$at_group_log"
22041 (
22042   $as_echo "60. incr05.at:19: testing ..."
22043   $at_traceon
22044
22045
22046
22047
22048
22049   { $at_traceoff
22050 $as_echo "$at_srcdir/incr05.at:22:
22051 mkdir gnu
22052 (cd gnu
22053 TEST_TAR_FORMAT=gnu
22054 export TEST_TAR_FORMAT
22055 TAR_OPTIONS=\"-H gnu\"
22056 export TAR_OPTIONS
22057 rm -rf *
22058
22059 mkdir dir
22060 mkdir dir/sub
22061 genfile --file dir/file1
22062 genfile --file dir/sub/file2
22063
22064 echo Level 0
22065 tar -c -f archive.tar -g db -C dir -v --warning=no-new-dir .
22066
22067 genfile --file dir/file3
22068 echo Level 1
22069 tar -c -f archive.tar -g db -C dir -v --warning=no-new-dir .
22070 )"
22071 echo incr05.at:22 >"$at_check_line_file"
22072
22073 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
22074    false; }; then
22075   ( $at_traceon;
22076 mkdir gnu
22077 (cd gnu
22078 TEST_TAR_FORMAT=gnu
22079 export TEST_TAR_FORMAT
22080 TAR_OPTIONS="-H gnu"
22081 export TAR_OPTIONS
22082 rm -rf *
22083
22084 mkdir dir
22085 mkdir dir/sub
22086 genfile --file dir/file1
22087 genfile --file dir/sub/file2
22088
22089 echo Level 0
22090 tar -c -f archive.tar -g db -C dir -v --warning=no-new-dir .
22091
22092 genfile --file dir/file3
22093 echo Level 1
22094 tar -c -f archive.tar -g db -C dir -v --warning=no-new-dir .
22095 ) ) >"$at_stdout" 2>"$at_stder1"
22096   at_func_filter_trace $?
22097 else
22098   ( :;
22099 mkdir gnu
22100 (cd gnu
22101 TEST_TAR_FORMAT=gnu
22102 export TEST_TAR_FORMAT
22103 TAR_OPTIONS="-H gnu"
22104 export TAR_OPTIONS
22105 rm -rf *
22106
22107 mkdir dir
22108 mkdir dir/sub
22109 genfile --file dir/file1
22110 genfile --file dir/sub/file2
22111
22112 echo Level 0
22113 tar -c -f archive.tar -g db -C dir -v --warning=no-new-dir .
22114
22115 genfile --file dir/file3
22116 echo Level 1
22117 tar -c -f archive.tar -g db -C dir -v --warning=no-new-dir .
22118 ) ) >"$at_stdout" 2>"$at_stderr"
22119 fi
22120 at_status=$?
22121 at_failed=false
22122 at_func_diff_devnull "$at_stderr" || at_failed=:
22123 echo >>"$at_stdout"; $as_echo "Level 0
22124 ./
22125 ./sub/
22126 ./file1
22127 ./sub/file2
22128 Level 1
22129 ./
22130 ./sub/
22131 ./file3
22132 " | \
22133   $at_diff - "$at_stdout" || at_failed=:
22134 at_func_check_status 0 $at_status "$at_srcdir/incr05.at:22"
22135
22136 $at_failed && at_func_log_failure
22137 $at_traceon; }
22138
22139               { $at_traceoff
22140 $as_echo "$at_srcdir/incr05.at:22:
22141 mkdir oldgnu
22142 (cd oldgnu
22143 TEST_TAR_FORMAT=oldgnu
22144 export TEST_TAR_FORMAT
22145 TAR_OPTIONS=\"-H oldgnu\"
22146 export TAR_OPTIONS
22147 rm -rf *
22148
22149 mkdir dir
22150 mkdir dir/sub
22151 genfile --file dir/file1
22152 genfile --file dir/sub/file2
22153
22154 echo Level 0
22155 tar -c -f archive.tar -g db -C dir -v --warning=no-new-dir .
22156
22157 genfile --file dir/file3
22158 echo Level 1
22159 tar -c -f archive.tar -g db -C dir -v --warning=no-new-dir .
22160 )"
22161 echo incr05.at:22 >"$at_check_line_file"
22162
22163 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
22164    false; }; then
22165   ( $at_traceon;
22166 mkdir oldgnu
22167 (cd oldgnu
22168 TEST_TAR_FORMAT=oldgnu
22169 export TEST_TAR_FORMAT
22170 TAR_OPTIONS="-H oldgnu"
22171 export TAR_OPTIONS
22172 rm -rf *
22173
22174 mkdir dir
22175 mkdir dir/sub
22176 genfile --file dir/file1
22177 genfile --file dir/sub/file2
22178
22179 echo Level 0
22180 tar -c -f archive.tar -g db -C dir -v --warning=no-new-dir .
22181
22182 genfile --file dir/file3
22183 echo Level 1
22184 tar -c -f archive.tar -g db -C dir -v --warning=no-new-dir .
22185 ) ) >"$at_stdout" 2>"$at_stder1"
22186   at_func_filter_trace $?
22187 else
22188   ( :;
22189 mkdir oldgnu
22190 (cd oldgnu
22191 TEST_TAR_FORMAT=oldgnu
22192 export TEST_TAR_FORMAT
22193 TAR_OPTIONS="-H oldgnu"
22194 export TAR_OPTIONS
22195 rm -rf *
22196
22197 mkdir dir
22198 mkdir dir/sub
22199 genfile --file dir/file1
22200 genfile --file dir/sub/file2
22201
22202 echo Level 0
22203 tar -c -f archive.tar -g db -C dir -v --warning=no-new-dir .
22204
22205 genfile --file dir/file3
22206 echo Level 1
22207 tar -c -f archive.tar -g db -C dir -v --warning=no-new-dir .
22208 ) ) >"$at_stdout" 2>"$at_stderr"
22209 fi
22210 at_status=$?
22211 at_failed=false
22212 at_func_diff_devnull "$at_stderr" || at_failed=:
22213 echo >>"$at_stdout"; $as_echo "Level 0
22214 ./
22215 ./sub/
22216 ./file1
22217 ./sub/file2
22218 Level 1
22219 ./
22220 ./sub/
22221 ./file3
22222 " | \
22223   $at_diff - "$at_stdout" || at_failed=:
22224 at_func_check_status 0 $at_status "$at_srcdir/incr05.at:22"
22225
22226 $at_failed && at_func_log_failure
22227 $at_traceon; }
22228
22229               { $at_traceoff
22230 $as_echo "$at_srcdir/incr05.at:22:
22231 mkdir posix
22232 (cd posix
22233 TEST_TAR_FORMAT=posix
22234 export TEST_TAR_FORMAT
22235 TAR_OPTIONS=\"-H posix\"
22236 export TAR_OPTIONS
22237 rm -rf *
22238
22239 mkdir dir
22240 mkdir dir/sub
22241 genfile --file dir/file1
22242 genfile --file dir/sub/file2
22243
22244 echo Level 0
22245 tar -c -f archive.tar -g db -C dir -v --warning=no-new-dir .
22246
22247 genfile --file dir/file3
22248 echo Level 1
22249 tar -c -f archive.tar -g db -C dir -v --warning=no-new-dir .
22250 )"
22251 echo incr05.at:22 >"$at_check_line_file"
22252
22253 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
22254    false; }; then
22255   ( $at_traceon;
22256 mkdir posix
22257 (cd posix
22258 TEST_TAR_FORMAT=posix
22259 export TEST_TAR_FORMAT
22260 TAR_OPTIONS="-H posix"
22261 export TAR_OPTIONS
22262 rm -rf *
22263
22264 mkdir dir
22265 mkdir dir/sub
22266 genfile --file dir/file1
22267 genfile --file dir/sub/file2
22268
22269 echo Level 0
22270 tar -c -f archive.tar -g db -C dir -v --warning=no-new-dir .
22271
22272 genfile --file dir/file3
22273 echo Level 1
22274 tar -c -f archive.tar -g db -C dir -v --warning=no-new-dir .
22275 ) ) >"$at_stdout" 2>"$at_stder1"
22276   at_func_filter_trace $?
22277 else
22278   ( :;
22279 mkdir posix
22280 (cd posix
22281 TEST_TAR_FORMAT=posix
22282 export TEST_TAR_FORMAT
22283 TAR_OPTIONS="-H posix"
22284 export TAR_OPTIONS
22285 rm -rf *
22286
22287 mkdir dir
22288 mkdir dir/sub
22289 genfile --file dir/file1
22290 genfile --file dir/sub/file2
22291
22292 echo Level 0
22293 tar -c -f archive.tar -g db -C dir -v --warning=no-new-dir .
22294
22295 genfile --file dir/file3
22296 echo Level 1
22297 tar -c -f archive.tar -g db -C dir -v --warning=no-new-dir .
22298 ) ) >"$at_stdout" 2>"$at_stderr"
22299 fi
22300 at_status=$?
22301 at_failed=false
22302 at_func_diff_devnull "$at_stderr" || at_failed=:
22303 echo >>"$at_stdout"; $as_echo "Level 0
22304 ./
22305 ./sub/
22306 ./file1
22307 ./sub/file2
22308 Level 1
22309 ./
22310 ./sub/
22311 ./file3
22312 " | \
22313   $at_diff - "$at_stdout" || at_failed=:
22314 at_func_check_status 0 $at_status "$at_srcdir/incr05.at:22"
22315
22316 $at_failed && at_func_log_failure
22317 $at_traceon; }
22318
22319
22320
22321
22322   $at_traceoff
22323   $at_times_p && times >"$at_times_file"
22324 ) 5>&1 2>&1 | eval $at_tee_pipe
22325 at_status=`cat "$at_status_file"`
22326 #AT_STOP_60
22327 #AT_START_61
22328 # 61. incr06.at:19: incremental dumps of nested directories
22329 at_setup_line='incr06.at:19'
22330 at_desc="incremental dumps of nested directories"
22331 $at_quiet $as_echo_n " 61: $at_desc        "
22332 at_xfail=no
22333       test -f $XFAILFILE && at_xfail=yes
22334 echo "#                             -*- compilation -*-" >> "$at_group_log"
22335 (
22336   $as_echo "61. incr06.at:19: testing ..."
22337   $at_traceon
22338
22339
22340
22341
22342
22343   { $at_traceoff
22344 $as_echo "$at_srcdir/incr06.at:22:
22345 mkdir gnu
22346 (cd gnu
22347 TEST_TAR_FORMAT=gnu
22348 export TEST_TAR_FORMAT
22349 TAR_OPTIONS=\"-H gnu\"
22350 export TAR_OPTIONS
22351 rm -rf *
22352
22353 mkdir dir
22354 mkdir dir/sub
22355 mkdir dir/sub/a
22356 mkdir dir/sub/b
22357 genfile --file dir/file1
22358 genfile --file dir/sub/file2
22359 genfile --file dir/sub/a/file3
22360
22361 echo Level 0 . sub
22362 tar -c -f archive-0.1.tar -g db.1 -C dir -v --warning=no-new-dir . sub
22363 echo Level 0 sub .
22364 tar -c -f archive-0.2.tar -g db.2 -C dir -v --warning=no-new-dir sub .
22365
22366 mkdir dir/c
22367 genfile --file dir/sub/b/file4
22368
22369 echo Level 1 . sub
22370 tar -c -f archive-1.1.tar -g db.1 -C dir -v --warning=no-new-dir . sub
22371 echo Level 1 sub .
22372 tar -c -f archive-1.2.tar -g db.2 -C dir -v --warning=no-new-dir sub .
22373 )"
22374 echo incr06.at:22 >"$at_check_line_file"
22375
22376 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
22377    false; }; then
22378   ( $at_traceon;
22379 mkdir gnu
22380 (cd gnu
22381 TEST_TAR_FORMAT=gnu
22382 export TEST_TAR_FORMAT
22383 TAR_OPTIONS="-H gnu"
22384 export TAR_OPTIONS
22385 rm -rf *
22386
22387 mkdir dir
22388 mkdir dir/sub
22389 mkdir dir/sub/a
22390 mkdir dir/sub/b
22391 genfile --file dir/file1
22392 genfile --file dir/sub/file2
22393 genfile --file dir/sub/a/file3
22394
22395 echo Level 0 . sub
22396 tar -c -f archive-0.1.tar -g db.1 -C dir -v --warning=no-new-dir . sub
22397 echo Level 0 sub .
22398 tar -c -f archive-0.2.tar -g db.2 -C dir -v --warning=no-new-dir sub .
22399
22400 mkdir dir/c
22401 genfile --file dir/sub/b/file4
22402
22403 echo Level 1 . sub
22404 tar -c -f archive-1.1.tar -g db.1 -C dir -v --warning=no-new-dir . sub
22405 echo Level 1 sub .
22406 tar -c -f archive-1.2.tar -g db.2 -C dir -v --warning=no-new-dir sub .
22407 ) ) >"$at_stdout" 2>"$at_stder1"
22408   at_func_filter_trace $?
22409 else
22410   ( :;
22411 mkdir gnu
22412 (cd gnu
22413 TEST_TAR_FORMAT=gnu
22414 export TEST_TAR_FORMAT
22415 TAR_OPTIONS="-H gnu"
22416 export TAR_OPTIONS
22417 rm -rf *
22418
22419 mkdir dir
22420 mkdir dir/sub
22421 mkdir dir/sub/a
22422 mkdir dir/sub/b
22423 genfile --file dir/file1
22424 genfile --file dir/sub/file2
22425 genfile --file dir/sub/a/file3
22426
22427 echo Level 0 . sub
22428 tar -c -f archive-0.1.tar -g db.1 -C dir -v --warning=no-new-dir . sub
22429 echo Level 0 sub .
22430 tar -c -f archive-0.2.tar -g db.2 -C dir -v --warning=no-new-dir sub .
22431
22432 mkdir dir/c
22433 genfile --file dir/sub/b/file4
22434
22435 echo Level 1 . sub
22436 tar -c -f archive-1.1.tar -g db.1 -C dir -v --warning=no-new-dir . sub
22437 echo Level 1 sub .
22438 tar -c -f archive-1.2.tar -g db.2 -C dir -v --warning=no-new-dir sub .
22439 ) ) >"$at_stdout" 2>"$at_stderr"
22440 fi
22441 at_status=$?
22442 at_failed=false
22443 at_func_diff_devnull "$at_stderr" || at_failed=:
22444 echo >>"$at_stdout"; $as_echo "Level 0 . sub
22445 ./
22446 sub/
22447 sub/a/
22448 sub/b/
22449 ./file1
22450 sub/file2
22451 sub/a/file3
22452 Level 0 sub .
22453 ./
22454 sub/
22455 sub/a/
22456 sub/b/
22457 ./file1
22458 sub/file2
22459 sub/a/file3
22460 Level 1 . sub
22461 ./
22462 ./c/
22463 sub/
22464 sub/a/
22465 sub/b/
22466 sub/b/file4
22467 Level 1 sub .
22468 ./
22469 ./c/
22470 sub/
22471 sub/a/
22472 sub/b/
22473 sub/b/file4
22474 " | \
22475   $at_diff - "$at_stdout" || at_failed=:
22476 at_func_check_status 0 $at_status "$at_srcdir/incr06.at:22"
22477
22478 $at_failed && at_func_log_failure
22479 $at_traceon; }
22480
22481               { $at_traceoff
22482 $as_echo "$at_srcdir/incr06.at:22:
22483 mkdir oldgnu
22484 (cd oldgnu
22485 TEST_TAR_FORMAT=oldgnu
22486 export TEST_TAR_FORMAT
22487 TAR_OPTIONS=\"-H oldgnu\"
22488 export TAR_OPTIONS
22489 rm -rf *
22490
22491 mkdir dir
22492 mkdir dir/sub
22493 mkdir dir/sub/a
22494 mkdir dir/sub/b
22495 genfile --file dir/file1
22496 genfile --file dir/sub/file2
22497 genfile --file dir/sub/a/file3
22498
22499 echo Level 0 . sub
22500 tar -c -f archive-0.1.tar -g db.1 -C dir -v --warning=no-new-dir . sub
22501 echo Level 0 sub .
22502 tar -c -f archive-0.2.tar -g db.2 -C dir -v --warning=no-new-dir sub .
22503
22504 mkdir dir/c
22505 genfile --file dir/sub/b/file4
22506
22507 echo Level 1 . sub
22508 tar -c -f archive-1.1.tar -g db.1 -C dir -v --warning=no-new-dir . sub
22509 echo Level 1 sub .
22510 tar -c -f archive-1.2.tar -g db.2 -C dir -v --warning=no-new-dir sub .
22511 )"
22512 echo incr06.at:22 >"$at_check_line_file"
22513
22514 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
22515    false; }; then
22516   ( $at_traceon;
22517 mkdir oldgnu
22518 (cd oldgnu
22519 TEST_TAR_FORMAT=oldgnu
22520 export TEST_TAR_FORMAT
22521 TAR_OPTIONS="-H oldgnu"
22522 export TAR_OPTIONS
22523 rm -rf *
22524
22525 mkdir dir
22526 mkdir dir/sub
22527 mkdir dir/sub/a
22528 mkdir dir/sub/b
22529 genfile --file dir/file1
22530 genfile --file dir/sub/file2
22531 genfile --file dir/sub/a/file3
22532
22533 echo Level 0 . sub
22534 tar -c -f archive-0.1.tar -g db.1 -C dir -v --warning=no-new-dir . sub
22535 echo Level 0 sub .
22536 tar -c -f archive-0.2.tar -g db.2 -C dir -v --warning=no-new-dir sub .
22537
22538 mkdir dir/c
22539 genfile --file dir/sub/b/file4
22540
22541 echo Level 1 . sub
22542 tar -c -f archive-1.1.tar -g db.1 -C dir -v --warning=no-new-dir . sub
22543 echo Level 1 sub .
22544 tar -c -f archive-1.2.tar -g db.2 -C dir -v --warning=no-new-dir sub .
22545 ) ) >"$at_stdout" 2>"$at_stder1"
22546   at_func_filter_trace $?
22547 else
22548   ( :;
22549 mkdir oldgnu
22550 (cd oldgnu
22551 TEST_TAR_FORMAT=oldgnu
22552 export TEST_TAR_FORMAT
22553 TAR_OPTIONS="-H oldgnu"
22554 export TAR_OPTIONS
22555 rm -rf *
22556
22557 mkdir dir
22558 mkdir dir/sub
22559 mkdir dir/sub/a
22560 mkdir dir/sub/b
22561 genfile --file dir/file1
22562 genfile --file dir/sub/file2
22563 genfile --file dir/sub/a/file3
22564
22565 echo Level 0 . sub
22566 tar -c -f archive-0.1.tar -g db.1 -C dir -v --warning=no-new-dir . sub
22567 echo Level 0 sub .
22568 tar -c -f archive-0.2.tar -g db.2 -C dir -v --warning=no-new-dir sub .
22569
22570 mkdir dir/c
22571 genfile --file dir/sub/b/file4
22572
22573 echo Level 1 . sub
22574 tar -c -f archive-1.1.tar -g db.1 -C dir -v --warning=no-new-dir . sub
22575 echo Level 1 sub .
22576 tar -c -f archive-1.2.tar -g db.2 -C dir -v --warning=no-new-dir sub .
22577 ) ) >"$at_stdout" 2>"$at_stderr"
22578 fi
22579 at_status=$?
22580 at_failed=false
22581 at_func_diff_devnull "$at_stderr" || at_failed=:
22582 echo >>"$at_stdout"; $as_echo "Level 0 . sub
22583 ./
22584 sub/
22585 sub/a/
22586 sub/b/
22587 ./file1
22588 sub/file2
22589 sub/a/file3
22590 Level 0 sub .
22591 ./
22592 sub/
22593 sub/a/
22594 sub/b/
22595 ./file1
22596 sub/file2
22597 sub/a/file3
22598 Level 1 . sub
22599 ./
22600 ./c/
22601 sub/
22602 sub/a/
22603 sub/b/
22604 sub/b/file4
22605 Level 1 sub .
22606 ./
22607 ./c/
22608 sub/
22609 sub/a/
22610 sub/b/
22611 sub/b/file4
22612 " | \
22613   $at_diff - "$at_stdout" || at_failed=:
22614 at_func_check_status 0 $at_status "$at_srcdir/incr06.at:22"
22615
22616 $at_failed && at_func_log_failure
22617 $at_traceon; }
22618
22619               { $at_traceoff
22620 $as_echo "$at_srcdir/incr06.at:22:
22621 mkdir posix
22622 (cd posix
22623 TEST_TAR_FORMAT=posix
22624 export TEST_TAR_FORMAT
22625 TAR_OPTIONS=\"-H posix\"
22626 export TAR_OPTIONS
22627 rm -rf *
22628
22629 mkdir dir
22630 mkdir dir/sub
22631 mkdir dir/sub/a
22632 mkdir dir/sub/b
22633 genfile --file dir/file1
22634 genfile --file dir/sub/file2
22635 genfile --file dir/sub/a/file3
22636
22637 echo Level 0 . sub
22638 tar -c -f archive-0.1.tar -g db.1 -C dir -v --warning=no-new-dir . sub
22639 echo Level 0 sub .
22640 tar -c -f archive-0.2.tar -g db.2 -C dir -v --warning=no-new-dir sub .
22641
22642 mkdir dir/c
22643 genfile --file dir/sub/b/file4
22644
22645 echo Level 1 . sub
22646 tar -c -f archive-1.1.tar -g db.1 -C dir -v --warning=no-new-dir . sub
22647 echo Level 1 sub .
22648 tar -c -f archive-1.2.tar -g db.2 -C dir -v --warning=no-new-dir sub .
22649 )"
22650 echo incr06.at:22 >"$at_check_line_file"
22651
22652 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
22653    false; }; then
22654   ( $at_traceon;
22655 mkdir posix
22656 (cd posix
22657 TEST_TAR_FORMAT=posix
22658 export TEST_TAR_FORMAT
22659 TAR_OPTIONS="-H posix"
22660 export TAR_OPTIONS
22661 rm -rf *
22662
22663 mkdir dir
22664 mkdir dir/sub
22665 mkdir dir/sub/a
22666 mkdir dir/sub/b
22667 genfile --file dir/file1
22668 genfile --file dir/sub/file2
22669 genfile --file dir/sub/a/file3
22670
22671 echo Level 0 . sub
22672 tar -c -f archive-0.1.tar -g db.1 -C dir -v --warning=no-new-dir . sub
22673 echo Level 0 sub .
22674 tar -c -f archive-0.2.tar -g db.2 -C dir -v --warning=no-new-dir sub .
22675
22676 mkdir dir/c
22677 genfile --file dir/sub/b/file4
22678
22679 echo Level 1 . sub
22680 tar -c -f archive-1.1.tar -g db.1 -C dir -v --warning=no-new-dir . sub
22681 echo Level 1 sub .
22682 tar -c -f archive-1.2.tar -g db.2 -C dir -v --warning=no-new-dir sub .
22683 ) ) >"$at_stdout" 2>"$at_stder1"
22684   at_func_filter_trace $?
22685 else
22686   ( :;
22687 mkdir posix
22688 (cd posix
22689 TEST_TAR_FORMAT=posix
22690 export TEST_TAR_FORMAT
22691 TAR_OPTIONS="-H posix"
22692 export TAR_OPTIONS
22693 rm -rf *
22694
22695 mkdir dir
22696 mkdir dir/sub
22697 mkdir dir/sub/a
22698 mkdir dir/sub/b
22699 genfile --file dir/file1
22700 genfile --file dir/sub/file2
22701 genfile --file dir/sub/a/file3
22702
22703 echo Level 0 . sub
22704 tar -c -f archive-0.1.tar -g db.1 -C dir -v --warning=no-new-dir . sub
22705 echo Level 0 sub .
22706 tar -c -f archive-0.2.tar -g db.2 -C dir -v --warning=no-new-dir sub .
22707
22708 mkdir dir/c
22709 genfile --file dir/sub/b/file4
22710
22711 echo Level 1 . sub
22712 tar -c -f archive-1.1.tar -g db.1 -C dir -v --warning=no-new-dir . sub
22713 echo Level 1 sub .
22714 tar -c -f archive-1.2.tar -g db.2 -C dir -v --warning=no-new-dir sub .
22715 ) ) >"$at_stdout" 2>"$at_stderr"
22716 fi
22717 at_status=$?
22718 at_failed=false
22719 at_func_diff_devnull "$at_stderr" || at_failed=:
22720 echo >>"$at_stdout"; $as_echo "Level 0 . sub
22721 ./
22722 sub/
22723 sub/a/
22724 sub/b/
22725 ./file1
22726 sub/file2
22727 sub/a/file3
22728 Level 0 sub .
22729 ./
22730 sub/
22731 sub/a/
22732 sub/b/
22733 ./file1
22734 sub/file2
22735 sub/a/file3
22736 Level 1 . sub
22737 ./
22738 ./c/
22739 sub/
22740 sub/a/
22741 sub/b/
22742 sub/b/file4
22743 Level 1 sub .
22744 ./
22745 ./c/
22746 sub/
22747 sub/a/
22748 sub/b/
22749 sub/b/file4
22750 " | \
22751   $at_diff - "$at_stdout" || at_failed=:
22752 at_func_check_status 0 $at_status "$at_srcdir/incr06.at:22"
22753
22754 $at_failed && at_func_log_failure
22755 $at_traceon; }
22756
22757
22758
22759
22760   $at_traceoff
22761   $at_times_p && times >"$at_times_file"
22762 ) 5>&1 2>&1 | eval $at_tee_pipe
22763 at_status=`cat "$at_status_file"`
22764 #AT_STOP_61
22765 #AT_START_62
22766 # 62. filerem01.at:34: file removed as we read it (ca. 22 seconds)
22767 at_setup_line='filerem01.at:34'
22768 at_desc="file removed as we read it (ca. 22 seconds)"
22769 $at_quiet $as_echo_n " 62: $at_desc    "
22770 at_xfail=no
22771       test -f $XFAILFILE && at_xfail=yes
22772 echo "#                             -*- compilation -*-" >> "$at_group_log"
22773 (
22774   $as_echo "62. filerem01.at:34: testing ..."
22775   $at_traceon
22776
22777
22778
22779
22780
22781   { $at_traceoff
22782 $as_echo "$at_srcdir/filerem01.at:37:
22783 mkdir gnu
22784 (cd gnu
22785 TEST_TAR_FORMAT=gnu
22786 export TEST_TAR_FORMAT
22787 TAR_OPTIONS=\"-H gnu\"
22788 export TAR_OPTIONS
22789 rm -rf *
22790
22791 mkdir dir
22792 mkdir dir/sub
22793 genfile --file dir/file1
22794 genfile --file dir/sub/file2
22795
22796 genfile --run --checkpoint=3 --unlink dir/file1 -- \\
22797        tar --blocking-factor=1 --checkpoint=1 --checkpoint-action='sleep=1' \\
22798        --checkpoint-action='echo' -c -f archive.tar \\
22799        --listed-incremental db -v dir >/dev/null
22800 )"
22801 echo filerem01.at:37 >"$at_check_line_file"
22802
22803 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
22804    false; }; then
22805   ( $at_traceon;
22806 mkdir gnu
22807 (cd gnu
22808 TEST_TAR_FORMAT=gnu
22809 export TEST_TAR_FORMAT
22810 TAR_OPTIONS="-H gnu"
22811 export TAR_OPTIONS
22812 rm -rf *
22813
22814 mkdir dir
22815 mkdir dir/sub
22816 genfile --file dir/file1
22817 genfile --file dir/sub/file2
22818
22819 genfile --run --checkpoint=3 --unlink dir/file1 -- \
22820        tar --blocking-factor=1 --checkpoint=1 --checkpoint-action='sleep=1' \
22821        --checkpoint-action='echo' -c -f archive.tar \
22822        --listed-incremental db -v dir >/dev/null
22823 ) ) >"$at_stdout" 2>"$at_stder1"
22824   at_func_filter_trace $?
22825 else
22826   ( :;
22827 mkdir gnu
22828 (cd gnu
22829 TEST_TAR_FORMAT=gnu
22830 export TEST_TAR_FORMAT
22831 TAR_OPTIONS="-H gnu"
22832 export TAR_OPTIONS
22833 rm -rf *
22834
22835 mkdir dir
22836 mkdir dir/sub
22837 genfile --file dir/file1
22838 genfile --file dir/sub/file2
22839
22840 genfile --run --checkpoint=3 --unlink dir/file1 -- \
22841        tar --blocking-factor=1 --checkpoint=1 --checkpoint-action='sleep=1' \
22842        --checkpoint-action='echo' -c -f archive.tar \
22843        --listed-incremental db -v dir >/dev/null
22844 ) ) >"$at_stdout" 2>"$at_stderr"
22845 fi
22846 at_status=$?
22847 at_failed=false
22848 echo >>"$at_stderr"; $as_echo "tar: dir: Directory is new
22849 tar: dir/sub: Directory is new
22850 tar: dir/file1: File removed before we read it
22851 " | \
22852   $at_diff - "$at_stderr" || at_failed=:
22853 echo stdout:; cat "$at_stdout"
22854 at_func_check_status 1 $at_status "$at_srcdir/filerem01.at:37"
22855
22856 $at_failed && at_func_log_failure
22857 $at_traceon; }
22858
22859               { $at_traceoff
22860 $as_echo "$at_srcdir/filerem01.at:37:
22861 mkdir posix
22862 (cd posix
22863 TEST_TAR_FORMAT=posix
22864 export TEST_TAR_FORMAT
22865 TAR_OPTIONS=\"-H posix\"
22866 export TAR_OPTIONS
22867 rm -rf *
22868
22869 mkdir dir
22870 mkdir dir/sub
22871 genfile --file dir/file1
22872 genfile --file dir/sub/file2
22873
22874 genfile --run --checkpoint=3 --unlink dir/file1 -- \\
22875        tar --blocking-factor=1 --checkpoint=1 --checkpoint-action='sleep=1' \\
22876        --checkpoint-action='echo' -c -f archive.tar \\
22877        --listed-incremental db -v dir >/dev/null
22878 )"
22879 echo filerem01.at:37 >"$at_check_line_file"
22880
22881 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
22882    false; }; then
22883   ( $at_traceon;
22884 mkdir posix
22885 (cd posix
22886 TEST_TAR_FORMAT=posix
22887 export TEST_TAR_FORMAT
22888 TAR_OPTIONS="-H posix"
22889 export TAR_OPTIONS
22890 rm -rf *
22891
22892 mkdir dir
22893 mkdir dir/sub
22894 genfile --file dir/file1
22895 genfile --file dir/sub/file2
22896
22897 genfile --run --checkpoint=3 --unlink dir/file1 -- \
22898        tar --blocking-factor=1 --checkpoint=1 --checkpoint-action='sleep=1' \
22899        --checkpoint-action='echo' -c -f archive.tar \
22900        --listed-incremental db -v dir >/dev/null
22901 ) ) >"$at_stdout" 2>"$at_stder1"
22902   at_func_filter_trace $?
22903 else
22904   ( :;
22905 mkdir posix
22906 (cd posix
22907 TEST_TAR_FORMAT=posix
22908 export TEST_TAR_FORMAT
22909 TAR_OPTIONS="-H posix"
22910 export TAR_OPTIONS
22911 rm -rf *
22912
22913 mkdir dir
22914 mkdir dir/sub
22915 genfile --file dir/file1
22916 genfile --file dir/sub/file2
22917
22918 genfile --run --checkpoint=3 --unlink dir/file1 -- \
22919        tar --blocking-factor=1 --checkpoint=1 --checkpoint-action='sleep=1' \
22920        --checkpoint-action='echo' -c -f archive.tar \
22921        --listed-incremental db -v dir >/dev/null
22922 ) ) >"$at_stdout" 2>"$at_stderr"
22923 fi
22924 at_status=$?
22925 at_failed=false
22926 echo >>"$at_stderr"; $as_echo "tar: dir: Directory is new
22927 tar: dir/sub: Directory is new
22928 tar: dir/file1: File removed before we read it
22929 " | \
22930   $at_diff - "$at_stderr" || at_failed=:
22931 echo stdout:; cat "$at_stdout"
22932 at_func_check_status 1 $at_status "$at_srcdir/filerem01.at:37"
22933
22934 $at_failed && at_func_log_failure
22935 $at_traceon; }
22936
22937
22938
22939
22940 # Timing information:
22941 #
22942 # For -Hgnu the above command line takes about 8 seconds to execute and
22943 # produces:
22944 #
22945 # tar: dir: Directory is new
22946 # tar: dir/sub: Directory is new
22947 # dir/
22948 # tar: Write checkpoint 1
22949 # tar: Write checkpoint 2
22950 # dir/sub/
22951 # tar: Write checkpoint 3
22952 # tar: Write checkpoint 4
22953 # dir/file1
22954 # tar: Write checkpoint 5
22955 # dir/sub/file2
22956 # tar: Write checkpoint 6
22957 # tar: Write checkpoint 7
22958 # tar: Write checkpoint 8
22959 #
22960 # For -Hposix the above command line takes about 14 seconds to execute and
22961 # produces:
22962 #
22963 # ./tar: dir: Directory is new
22964 # ./tar: dir/sub: Directory is new
22965 # dir/
22966 # ./tar: Write checkpoint 1
22967 # ./tar: Write checkpoint 2
22968 # ./tar: Write checkpoint 3
22969 # dir/sub/
22970 # ./tar: Write checkpoint 4
22971 # ./tar: Write checkpoint 5
22972 # ./tar: Write checkpoint 6
22973 # dir/file1
22974 # ./tar: Write checkpoint 7
22975 # ./tar: Write checkpoint 8
22976 # ./tar: Write checkpoint 9
22977 # dir/sub/file2
22978 # ./tar: Write checkpoint 10
22979 # ./tar: Write checkpoint 11
22980 # ./tar: Write checkpoint 12
22981 # ./tar: Write checkpoint 13
22982 # ./tar: Write checkpoint 14
22983
22984
22985   $at_traceoff
22986   $at_times_p && times >"$at_times_file"
22987 ) 5>&1 2>&1 | eval $at_tee_pipe
22988 at_status=`cat "$at_status_file"`
22989 #AT_STOP_62
22990 #AT_START_63
22991 # 63. filerem02.at:24: toplevel file removed (ca. 24 seconds)
22992 at_setup_line='filerem02.at:24'
22993 at_desc="toplevel file removed (ca. 24 seconds)"
22994 $at_quiet $as_echo_n " 63: $at_desc         "
22995 at_xfail=no
22996       test -f $XFAILFILE && at_xfail=yes
22997 echo "#                             -*- compilation -*-" >> "$at_group_log"
22998 (
22999   $as_echo "63. filerem02.at:24: testing ..."
23000   $at_traceon
23001
23002
23003
23004
23005
23006   { $at_traceoff
23007 $as_echo "$at_srcdir/filerem02.at:27:
23008 mkdir gnu
23009 (cd gnu
23010 TEST_TAR_FORMAT=gnu
23011 export TEST_TAR_FORMAT
23012 TAR_OPTIONS=\"-H gnu\"
23013 export TAR_OPTIONS
23014 rm -rf *
23015
23016 mkdir dir
23017 mkdir dir/sub
23018 genfile --file dir/file1
23019 genfile --file dir/sub/file2
23020 mkdir dir2
23021 genfile --file dir2/file1
23022
23023 genfile --run --checkpoint=3 --exec 'rm -rf dir2' -- \\
23024        tar --blocking-factor=1 --checkpoint=1 --checkpoint-action='sleep=1' \\
23025        --checkpoint-action='echo' -c -f archive.tar \\
23026        --listed-incremental db -v --warning=no-new-dir dir dir2 >/dev/null
23027 )"
23028 echo filerem02.at:27 >"$at_check_line_file"
23029
23030 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
23031    false; }; then
23032   ( $at_traceon;
23033 mkdir gnu
23034 (cd gnu
23035 TEST_TAR_FORMAT=gnu
23036 export TEST_TAR_FORMAT
23037 TAR_OPTIONS="-H gnu"
23038 export TAR_OPTIONS
23039 rm -rf *
23040
23041 mkdir dir
23042 mkdir dir/sub
23043 genfile --file dir/file1
23044 genfile --file dir/sub/file2
23045 mkdir dir2
23046 genfile --file dir2/file1
23047
23048 genfile --run --checkpoint=3 --exec 'rm -rf dir2' -- \
23049        tar --blocking-factor=1 --checkpoint=1 --checkpoint-action='sleep=1' \
23050        --checkpoint-action='echo' -c -f archive.tar \
23051        --listed-incremental db -v --warning=no-new-dir dir dir2 >/dev/null
23052 ) ) >"$at_stdout" 2>"$at_stder1"
23053   at_func_filter_trace $?
23054 else
23055   ( :;
23056 mkdir gnu
23057 (cd gnu
23058 TEST_TAR_FORMAT=gnu
23059 export TEST_TAR_FORMAT
23060 TAR_OPTIONS="-H gnu"
23061 export TAR_OPTIONS
23062 rm -rf *
23063
23064 mkdir dir
23065 mkdir dir/sub
23066 genfile --file dir/file1
23067 genfile --file dir/sub/file2
23068 mkdir dir2
23069 genfile --file dir2/file1
23070
23071 genfile --run --checkpoint=3 --exec 'rm -rf dir2' -- \
23072        tar --blocking-factor=1 --checkpoint=1 --checkpoint-action='sleep=1' \
23073        --checkpoint-action='echo' -c -f archive.tar \
23074        --listed-incremental db -v --warning=no-new-dir dir dir2 >/dev/null
23075 ) ) >"$at_stdout" 2>"$at_stderr"
23076 fi
23077 at_status=$?
23078 at_failed=false
23079 echo stderr:; cat "$at_stderr"
23080 echo stdout:; cat "$at_stdout"
23081 at_func_check_status 2 $at_status "$at_srcdir/filerem02.at:27"
23082
23083 $at_failed && at_func_log_failure
23084 $at_traceon; }
23085
23086               { $at_traceoff
23087 $as_echo "$at_srcdir/filerem02.at:27:
23088 mkdir posix
23089 (cd posix
23090 TEST_TAR_FORMAT=posix
23091 export TEST_TAR_FORMAT
23092 TAR_OPTIONS=\"-H posix\"
23093 export TAR_OPTIONS
23094 rm -rf *
23095
23096 mkdir dir
23097 mkdir dir/sub
23098 genfile --file dir/file1
23099 genfile --file dir/sub/file2
23100 mkdir dir2
23101 genfile --file dir2/file1
23102
23103 genfile --run --checkpoint=3 --exec 'rm -rf dir2' -- \\
23104        tar --blocking-factor=1 --checkpoint=1 --checkpoint-action='sleep=1' \\
23105        --checkpoint-action='echo' -c -f archive.tar \\
23106        --listed-incremental db -v --warning=no-new-dir dir dir2 >/dev/null
23107 )"
23108 echo filerem02.at:27 >"$at_check_line_file"
23109
23110 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
23111    false; }; then
23112   ( $at_traceon;
23113 mkdir posix
23114 (cd posix
23115 TEST_TAR_FORMAT=posix
23116 export TEST_TAR_FORMAT
23117 TAR_OPTIONS="-H posix"
23118 export TAR_OPTIONS
23119 rm -rf *
23120
23121 mkdir dir
23122 mkdir dir/sub
23123 genfile --file dir/file1
23124 genfile --file dir/sub/file2
23125 mkdir dir2
23126 genfile --file dir2/file1
23127
23128 genfile --run --checkpoint=3 --exec 'rm -rf dir2' -- \
23129        tar --blocking-factor=1 --checkpoint=1 --checkpoint-action='sleep=1' \
23130        --checkpoint-action='echo' -c -f archive.tar \
23131        --listed-incremental db -v --warning=no-new-dir dir dir2 >/dev/null
23132 ) ) >"$at_stdout" 2>"$at_stder1"
23133   at_func_filter_trace $?
23134 else
23135   ( :;
23136 mkdir posix
23137 (cd posix
23138 TEST_TAR_FORMAT=posix
23139 export TEST_TAR_FORMAT
23140 TAR_OPTIONS="-H posix"
23141 export TAR_OPTIONS
23142 rm -rf *
23143
23144 mkdir dir
23145 mkdir dir/sub
23146 genfile --file dir/file1
23147 genfile --file dir/sub/file2
23148 mkdir dir2
23149 genfile --file dir2/file1
23150
23151 genfile --run --checkpoint=3 --exec 'rm -rf dir2' -- \
23152        tar --blocking-factor=1 --checkpoint=1 --checkpoint-action='sleep=1' \
23153        --checkpoint-action='echo' -c -f archive.tar \
23154        --listed-incremental db -v --warning=no-new-dir dir dir2 >/dev/null
23155 ) ) >"$at_stdout" 2>"$at_stderr"
23156 fi
23157 at_status=$?
23158 at_failed=false
23159 echo stderr:; cat "$at_stderr"
23160 echo stdout:; cat "$at_stdout"
23161 at_func_check_status 2 $at_status "$at_srcdir/filerem02.at:27"
23162
23163 $at_failed && at_func_log_failure
23164 $at_traceon; }
23165
23166
23167
23168
23169 # Ignore stdout and stderr because their contents depend on
23170 # the file system implementation.
23171
23172 # Timing information: see filerem01.at
23173
23174   $at_traceoff
23175   $at_times_p && times >"$at_times_file"
23176 ) 5>&1 2>&1 | eval $at_tee_pipe
23177 at_status=`cat "$at_status_file"`
23178 #AT_STOP_63
23179 #AT_START_64
23180 # 64. rename01.at:24: renamed dirs in incrementals
23181 at_setup_line='rename01.at:24'
23182 at_desc="renamed dirs in incrementals"
23183 $at_quiet $as_echo_n " 64: $at_desc                   "
23184 at_xfail=no
23185       test -f $XFAILFILE && at_xfail=yes
23186 echo "#                             -*- compilation -*-" >> "$at_group_log"
23187 (
23188   $as_echo "64. rename01.at:24: testing ..."
23189   $at_traceon
23190
23191
23192
23193
23194
23195   { $at_traceoff
23196 $as_echo "$at_srcdir/rename01.at:27:
23197 mkdir gnu
23198 (cd gnu
23199 TEST_TAR_FORMAT=gnu
23200 export TEST_TAR_FORMAT
23201 TAR_OPTIONS=\"-H gnu\"
23202 export TAR_OPTIONS
23203 rm -rf *
23204
23205
23206 test -z "`sort < /dev/null 2>&1`" || exit 77
23207
23208
23209 mkdir foo
23210 genfile --file foo/file1
23211 genfile --file foo/file2
23212 mkdir foo/bar
23213 genfile --file foo/bar/file
23214
23215 echo \"Creating base archive\"
23216 tar -g incr -cf arch.1 -v foo
23217
23218 mv foo/bar foo/baz
23219
23220 echo \"Creating incremental archive\"
23221 tar -g incr -cf arch.2 -v foo
23222
23223 mv foo old
23224
23225 tar xfg arch.1 /dev/null
23226
23227 echo \"Begin directory listing 1\"
23228 find foo | sort
23229 echo \"End directory listing 1\"
23230
23231 tar xfg arch.2 /dev/null
23232 echo Begin directory listing 2
23233 find foo | sort
23234 echo End directory listing 2
23235 )"
23236 echo rename01.at:27 >"$at_check_line_file"
23237
23238 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
23239    false; }; then
23240   ( $at_traceon;
23241 mkdir gnu
23242 (cd gnu
23243 TEST_TAR_FORMAT=gnu
23244 export TEST_TAR_FORMAT
23245 TAR_OPTIONS="-H gnu"
23246 export TAR_OPTIONS
23247 rm -rf *
23248
23249
23250 test -z "`sort < /dev/null 2>&1`" || exit 77
23251
23252
23253 mkdir foo
23254 genfile --file foo/file1
23255 genfile --file foo/file2
23256 mkdir foo/bar
23257 genfile --file foo/bar/file
23258
23259 echo "Creating base archive"
23260 tar -g incr -cf arch.1 -v foo
23261
23262 mv foo/bar foo/baz
23263
23264 echo "Creating incremental archive"
23265 tar -g incr -cf arch.2 -v foo
23266
23267 mv foo old
23268
23269 tar xfg arch.1 /dev/null
23270
23271 echo "Begin directory listing 1"
23272 find foo | sort
23273 echo "End directory listing 1"
23274
23275 tar xfg arch.2 /dev/null
23276 echo Begin directory listing 2
23277 find foo | sort
23278 echo End directory listing 2
23279 ) ) >"$at_stdout" 2>"$at_stder1"
23280   at_func_filter_trace $?
23281 else
23282   ( :;
23283 mkdir gnu
23284 (cd gnu
23285 TEST_TAR_FORMAT=gnu
23286 export TEST_TAR_FORMAT
23287 TAR_OPTIONS="-H gnu"
23288 export TAR_OPTIONS
23289 rm -rf *
23290
23291
23292 test -z "`sort < /dev/null 2>&1`" || exit 77
23293
23294
23295 mkdir foo
23296 genfile --file foo/file1
23297 genfile --file foo/file2
23298 mkdir foo/bar
23299 genfile --file foo/bar/file
23300
23301 echo "Creating base archive"
23302 tar -g incr -cf arch.1 -v foo
23303
23304 mv foo/bar foo/baz
23305
23306 echo "Creating incremental archive"
23307 tar -g incr -cf arch.2 -v foo
23308
23309 mv foo old
23310
23311 tar xfg arch.1 /dev/null
23312
23313 echo "Begin directory listing 1"
23314 find foo | sort
23315 echo "End directory listing 1"
23316
23317 tar xfg arch.2 /dev/null
23318 echo Begin directory listing 2
23319 find foo | sort
23320 echo End directory listing 2
23321 ) ) >"$at_stdout" 2>"$at_stderr"
23322 fi
23323 at_status=$?
23324 at_failed=false
23325 echo >>"$at_stderr"; $as_echo "tar: foo: Directory is new
23326 tar: foo/bar: Directory is new
23327 tar: foo/baz: Directory has been renamed from \`foo/bar'
23328 " | \
23329   $at_diff - "$at_stderr" || at_failed=:
23330 echo >>"$at_stdout"; $as_echo "Creating base archive
23331 foo/
23332 foo/bar/
23333 foo/file1
23334 foo/file2
23335 foo/bar/file
23336 Creating incremental archive
23337 foo/
23338 foo/baz/
23339 Begin directory listing 1
23340 foo
23341 foo/bar
23342 foo/bar/file
23343 foo/file1
23344 foo/file2
23345 End directory listing 1
23346 Begin directory listing 2
23347 foo
23348 foo/baz
23349 foo/baz/file
23350 foo/file1
23351 foo/file2
23352 End directory listing 2
23353 " | \
23354   $at_diff - "$at_stdout" || at_failed=:
23355 at_func_check_status 0 $at_status "$at_srcdir/rename01.at:27"
23356
23357 $at_failed && at_func_log_failure
23358 $at_traceon; }
23359
23360               { $at_traceoff
23361 $as_echo "$at_srcdir/rename01.at:27:
23362 mkdir oldgnu
23363 (cd oldgnu
23364 TEST_TAR_FORMAT=oldgnu
23365 export TEST_TAR_FORMAT
23366 TAR_OPTIONS=\"-H oldgnu\"
23367 export TAR_OPTIONS
23368 rm -rf *
23369
23370
23371 test -z "`sort < /dev/null 2>&1`" || exit 77
23372
23373
23374 mkdir foo
23375 genfile --file foo/file1
23376 genfile --file foo/file2
23377 mkdir foo/bar
23378 genfile --file foo/bar/file
23379
23380 echo \"Creating base archive\"
23381 tar -g incr -cf arch.1 -v foo
23382
23383 mv foo/bar foo/baz
23384
23385 echo \"Creating incremental archive\"
23386 tar -g incr -cf arch.2 -v foo
23387
23388 mv foo old
23389
23390 tar xfg arch.1 /dev/null
23391
23392 echo \"Begin directory listing 1\"
23393 find foo | sort
23394 echo \"End directory listing 1\"
23395
23396 tar xfg arch.2 /dev/null
23397 echo Begin directory listing 2
23398 find foo | sort
23399 echo End directory listing 2
23400 )"
23401 echo rename01.at:27 >"$at_check_line_file"
23402
23403 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
23404    false; }; then
23405   ( $at_traceon;
23406 mkdir oldgnu
23407 (cd oldgnu
23408 TEST_TAR_FORMAT=oldgnu
23409 export TEST_TAR_FORMAT
23410 TAR_OPTIONS="-H oldgnu"
23411 export TAR_OPTIONS
23412 rm -rf *
23413
23414
23415 test -z "`sort < /dev/null 2>&1`" || exit 77
23416
23417
23418 mkdir foo
23419 genfile --file foo/file1
23420 genfile --file foo/file2
23421 mkdir foo/bar
23422 genfile --file foo/bar/file
23423
23424 echo "Creating base archive"
23425 tar -g incr -cf arch.1 -v foo
23426
23427 mv foo/bar foo/baz
23428
23429 echo "Creating incremental archive"
23430 tar -g incr -cf arch.2 -v foo
23431
23432 mv foo old
23433
23434 tar xfg arch.1 /dev/null
23435
23436 echo "Begin directory listing 1"
23437 find foo | sort
23438 echo "End directory listing 1"
23439
23440 tar xfg arch.2 /dev/null
23441 echo Begin directory listing 2
23442 find foo | sort
23443 echo End directory listing 2
23444 ) ) >"$at_stdout" 2>"$at_stder1"
23445   at_func_filter_trace $?
23446 else
23447   ( :;
23448 mkdir oldgnu
23449 (cd oldgnu
23450 TEST_TAR_FORMAT=oldgnu
23451 export TEST_TAR_FORMAT
23452 TAR_OPTIONS="-H oldgnu"
23453 export TAR_OPTIONS
23454 rm -rf *
23455
23456
23457 test -z "`sort < /dev/null 2>&1`" || exit 77
23458
23459
23460 mkdir foo
23461 genfile --file foo/file1
23462 genfile --file foo/file2
23463 mkdir foo/bar
23464 genfile --file foo/bar/file
23465
23466 echo "Creating base archive"
23467 tar -g incr -cf arch.1 -v foo
23468
23469 mv foo/bar foo/baz
23470
23471 echo "Creating incremental archive"
23472 tar -g incr -cf arch.2 -v foo
23473
23474 mv foo old
23475
23476 tar xfg arch.1 /dev/null
23477
23478 echo "Begin directory listing 1"
23479 find foo | sort
23480 echo "End directory listing 1"
23481
23482 tar xfg arch.2 /dev/null
23483 echo Begin directory listing 2
23484 find foo | sort
23485 echo End directory listing 2
23486 ) ) >"$at_stdout" 2>"$at_stderr"
23487 fi
23488 at_status=$?
23489 at_failed=false
23490 echo >>"$at_stderr"; $as_echo "tar: foo: Directory is new
23491 tar: foo/bar: Directory is new
23492 tar: foo/baz: Directory has been renamed from \`foo/bar'
23493 " | \
23494   $at_diff - "$at_stderr" || at_failed=:
23495 echo >>"$at_stdout"; $as_echo "Creating base archive
23496 foo/
23497 foo/bar/
23498 foo/file1
23499 foo/file2
23500 foo/bar/file
23501 Creating incremental archive
23502 foo/
23503 foo/baz/
23504 Begin directory listing 1
23505 foo
23506 foo/bar
23507 foo/bar/file
23508 foo/file1
23509 foo/file2
23510 End directory listing 1
23511 Begin directory listing 2
23512 foo
23513 foo/baz
23514 foo/baz/file
23515 foo/file1
23516 foo/file2
23517 End directory listing 2
23518 " | \
23519   $at_diff - "$at_stdout" || at_failed=:
23520 at_func_check_status 0 $at_status "$at_srcdir/rename01.at:27"
23521
23522 $at_failed && at_func_log_failure
23523 $at_traceon; }
23524
23525               { $at_traceoff
23526 $as_echo "$at_srcdir/rename01.at:27:
23527 mkdir posix
23528 (cd posix
23529 TEST_TAR_FORMAT=posix
23530 export TEST_TAR_FORMAT
23531 TAR_OPTIONS=\"-H posix\"
23532 export TAR_OPTIONS
23533 rm -rf *
23534
23535
23536 test -z "`sort < /dev/null 2>&1`" || exit 77
23537
23538
23539 mkdir foo
23540 genfile --file foo/file1
23541 genfile --file foo/file2
23542 mkdir foo/bar
23543 genfile --file foo/bar/file
23544
23545 echo \"Creating base archive\"
23546 tar -g incr -cf arch.1 -v foo
23547
23548 mv foo/bar foo/baz
23549
23550 echo \"Creating incremental archive\"
23551 tar -g incr -cf arch.2 -v foo
23552
23553 mv foo old
23554
23555 tar xfg arch.1 /dev/null
23556
23557 echo \"Begin directory listing 1\"
23558 find foo | sort
23559 echo \"End directory listing 1\"
23560
23561 tar xfg arch.2 /dev/null
23562 echo Begin directory listing 2
23563 find foo | sort
23564 echo End directory listing 2
23565 )"
23566 echo rename01.at:27 >"$at_check_line_file"
23567
23568 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
23569    false; }; then
23570   ( $at_traceon;
23571 mkdir posix
23572 (cd posix
23573 TEST_TAR_FORMAT=posix
23574 export TEST_TAR_FORMAT
23575 TAR_OPTIONS="-H posix"
23576 export TAR_OPTIONS
23577 rm -rf *
23578
23579
23580 test -z "`sort < /dev/null 2>&1`" || exit 77
23581
23582
23583 mkdir foo
23584 genfile --file foo/file1
23585 genfile --file foo/file2
23586 mkdir foo/bar
23587 genfile --file foo/bar/file
23588
23589 echo "Creating base archive"
23590 tar -g incr -cf arch.1 -v foo
23591
23592 mv foo/bar foo/baz
23593
23594 echo "Creating incremental archive"
23595 tar -g incr -cf arch.2 -v foo
23596
23597 mv foo old
23598
23599 tar xfg arch.1 /dev/null
23600
23601 echo "Begin directory listing 1"
23602 find foo | sort
23603 echo "End directory listing 1"
23604
23605 tar xfg arch.2 /dev/null
23606 echo Begin directory listing 2
23607 find foo | sort
23608 echo End directory listing 2
23609 ) ) >"$at_stdout" 2>"$at_stder1"
23610   at_func_filter_trace $?
23611 else
23612   ( :;
23613 mkdir posix
23614 (cd posix
23615 TEST_TAR_FORMAT=posix
23616 export TEST_TAR_FORMAT
23617 TAR_OPTIONS="-H posix"
23618 export TAR_OPTIONS
23619 rm -rf *
23620
23621
23622 test -z "`sort < /dev/null 2>&1`" || exit 77
23623
23624
23625 mkdir foo
23626 genfile --file foo/file1
23627 genfile --file foo/file2
23628 mkdir foo/bar
23629 genfile --file foo/bar/file
23630
23631 echo "Creating base archive"
23632 tar -g incr -cf arch.1 -v foo
23633
23634 mv foo/bar foo/baz
23635
23636 echo "Creating incremental archive"
23637 tar -g incr -cf arch.2 -v foo
23638
23639 mv foo old
23640
23641 tar xfg arch.1 /dev/null
23642
23643 echo "Begin directory listing 1"
23644 find foo | sort
23645 echo "End directory listing 1"
23646
23647 tar xfg arch.2 /dev/null
23648 echo Begin directory listing 2
23649 find foo | sort
23650 echo End directory listing 2
23651 ) ) >"$at_stdout" 2>"$at_stderr"
23652 fi
23653 at_status=$?
23654 at_failed=false
23655 echo >>"$at_stderr"; $as_echo "tar: foo: Directory is new
23656 tar: foo/bar: Directory is new
23657 tar: foo/baz: Directory has been renamed from \`foo/bar'
23658 " | \
23659   $at_diff - "$at_stderr" || at_failed=:
23660 echo >>"$at_stdout"; $as_echo "Creating base archive
23661 foo/
23662 foo/bar/
23663 foo/file1
23664 foo/file2
23665 foo/bar/file
23666 Creating incremental archive
23667 foo/
23668 foo/baz/
23669 Begin directory listing 1
23670 foo
23671 foo/bar
23672 foo/bar/file
23673 foo/file1
23674 foo/file2
23675 End directory listing 1
23676 Begin directory listing 2
23677 foo
23678 foo/baz
23679 foo/baz/file
23680 foo/file1
23681 foo/file2
23682 End directory listing 2
23683 " | \
23684   $at_diff - "$at_stdout" || at_failed=:
23685 at_func_check_status 0 $at_status "$at_srcdir/rename01.at:27"
23686
23687 $at_failed && at_func_log_failure
23688 $at_traceon; }
23689
23690
23691
23692
23693   $at_traceoff
23694   $at_times_p && times >"$at_times_file"
23695 ) 5>&1 2>&1 | eval $at_tee_pipe
23696 at_status=`cat "$at_status_file"`
23697 #AT_STOP_64
23698 #AT_START_65
23699 # 65. rename02.at:24: move between hierarchies
23700 at_setup_line='rename02.at:24'
23701 at_desc="move between hierarchies"
23702 $at_quiet $as_echo_n " 65: $at_desc                       "
23703 at_xfail=no
23704       test -f $XFAILFILE && at_xfail=yes
23705 echo "#                             -*- compilation -*-" >> "$at_group_log"
23706 (
23707   $as_echo "65. rename02.at:24: testing ..."
23708   $at_traceon
23709
23710
23711
23712
23713
23714   { $at_traceoff
23715 $as_echo "$at_srcdir/rename02.at:27:
23716 mkdir gnu
23717 (cd gnu
23718 TEST_TAR_FORMAT=gnu
23719 export TEST_TAR_FORMAT
23720 TAR_OPTIONS=\"-H gnu\"
23721 export TAR_OPTIONS
23722 rm -rf *
23723
23724
23725 test -z "`sort < /dev/null 2>&1`" || exit 77
23726
23727 mkdir foo
23728 genfile --file foo/file1
23729 genfile --file foo/file2
23730 mkdir foo/bar
23731 genfile --file foo/bar/file.r
23732 mkdir foo/bar/baz
23733 genfile --file foo/bar/baz/file.z
23734
23735 sleep 1
23736
23737 echo \"Creating base archive\"
23738 tar -g incr -cf arch.1 -v foo
23739
23740 mv foo/bar/baz foo
23741
23742 echo \"Creating incremental archive\"
23743 tar -g incr -cf arch.2 -v foo
23744
23745 mv foo old
23746
23747 tar xfg arch.1 /dev/null --warning=no-timestamp 2>tmperr
23748 sort tmperr >&2
23749
23750 echo \"Begin directory listing 1\"
23751 find foo | sort
23752 echo \"End directory listing 1\"
23753
23754 tar xfgv arch.2 /dev/null --warning=no-timestamp
23755 echo Begin directory listing 2
23756 find foo | sort
23757 echo End directory listing 2
23758 )"
23759 echo rename02.at:27 >"$at_check_line_file"
23760
23761 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
23762    false; }; then
23763   ( $at_traceon;
23764 mkdir gnu
23765 (cd gnu
23766 TEST_TAR_FORMAT=gnu
23767 export TEST_TAR_FORMAT
23768 TAR_OPTIONS="-H gnu"
23769 export TAR_OPTIONS
23770 rm -rf *
23771
23772
23773 test -z "`sort < /dev/null 2>&1`" || exit 77
23774
23775 mkdir foo
23776 genfile --file foo/file1
23777 genfile --file foo/file2
23778 mkdir foo/bar
23779 genfile --file foo/bar/file.r
23780 mkdir foo/bar/baz
23781 genfile --file foo/bar/baz/file.z
23782
23783 sleep 1
23784
23785 echo "Creating base archive"
23786 tar -g incr -cf arch.1 -v foo
23787
23788 mv foo/bar/baz foo
23789
23790 echo "Creating incremental archive"
23791 tar -g incr -cf arch.2 -v foo
23792
23793 mv foo old
23794
23795 tar xfg arch.1 /dev/null --warning=no-timestamp 2>tmperr
23796 sort tmperr >&2
23797
23798 echo "Begin directory listing 1"
23799 find foo | sort
23800 echo "End directory listing 1"
23801
23802 tar xfgv arch.2 /dev/null --warning=no-timestamp
23803 echo Begin directory listing 2
23804 find foo | sort
23805 echo End directory listing 2
23806 ) ) >"$at_stdout" 2>"$at_stder1"
23807   at_func_filter_trace $?
23808 else
23809   ( :;
23810 mkdir gnu
23811 (cd gnu
23812 TEST_TAR_FORMAT=gnu
23813 export TEST_TAR_FORMAT
23814 TAR_OPTIONS="-H gnu"
23815 export TAR_OPTIONS
23816 rm -rf *
23817
23818
23819 test -z "`sort < /dev/null 2>&1`" || exit 77
23820
23821 mkdir foo
23822 genfile --file foo/file1
23823 genfile --file foo/file2
23824 mkdir foo/bar
23825 genfile --file foo/bar/file.r
23826 mkdir foo/bar/baz
23827 genfile --file foo/bar/baz/file.z
23828
23829 sleep 1
23830
23831 echo "Creating base archive"
23832 tar -g incr -cf arch.1 -v foo
23833
23834 mv foo/bar/baz foo
23835
23836 echo "Creating incremental archive"
23837 tar -g incr -cf arch.2 -v foo
23838
23839 mv foo old
23840
23841 tar xfg arch.1 /dev/null --warning=no-timestamp 2>tmperr
23842 sort tmperr >&2
23843
23844 echo "Begin directory listing 1"
23845 find foo | sort
23846 echo "End directory listing 1"
23847
23848 tar xfgv arch.2 /dev/null --warning=no-timestamp
23849 echo Begin directory listing 2
23850 find foo | sort
23851 echo End directory listing 2
23852 ) ) >"$at_stdout" 2>"$at_stderr"
23853 fi
23854 at_status=$?
23855 at_failed=false
23856 echo >>"$at_stderr"; $as_echo "tar: foo: Directory is new
23857 tar: foo/bar: Directory is new
23858 tar: foo/bar/baz: Directory is new
23859 tar: foo/baz: Directory has been renamed from \`foo/bar/baz'
23860 " | \
23861   $at_diff - "$at_stderr" || at_failed=:
23862 echo >>"$at_stdout"; $as_echo "Creating base archive
23863 foo/
23864 foo/bar/
23865 foo/bar/baz/
23866 foo/file1
23867 foo/file2
23868 foo/bar/file.r
23869 foo/bar/baz/file.z
23870 Creating incremental archive
23871 foo/
23872 foo/bar/
23873 foo/baz/
23874 Begin directory listing 1
23875 foo
23876 foo/bar
23877 foo/bar/baz
23878 foo/bar/baz/file.z
23879 foo/bar/file.r
23880 foo/file1
23881 foo/file2
23882 End directory listing 1
23883 foo/
23884 foo/bar/
23885 foo/baz/
23886 Begin directory listing 2
23887 foo
23888 foo/bar
23889 foo/bar/file.r
23890 foo/baz
23891 foo/baz/file.z
23892 foo/file1
23893 foo/file2
23894 End directory listing 2
23895 " | \
23896   $at_diff - "$at_stdout" || at_failed=:
23897 at_func_check_status 0 $at_status "$at_srcdir/rename02.at:27"
23898
23899 $at_failed && at_func_log_failure
23900 $at_traceon; }
23901
23902               { $at_traceoff
23903 $as_echo "$at_srcdir/rename02.at:27:
23904 mkdir oldgnu
23905 (cd oldgnu
23906 TEST_TAR_FORMAT=oldgnu
23907 export TEST_TAR_FORMAT
23908 TAR_OPTIONS=\"-H oldgnu\"
23909 export TAR_OPTIONS
23910 rm -rf *
23911
23912
23913 test -z "`sort < /dev/null 2>&1`" || exit 77
23914
23915 mkdir foo
23916 genfile --file foo/file1
23917 genfile --file foo/file2
23918 mkdir foo/bar
23919 genfile --file foo/bar/file.r
23920 mkdir foo/bar/baz
23921 genfile --file foo/bar/baz/file.z
23922
23923 sleep 1
23924
23925 echo \"Creating base archive\"
23926 tar -g incr -cf arch.1 -v foo
23927
23928 mv foo/bar/baz foo
23929
23930 echo \"Creating incremental archive\"
23931 tar -g incr -cf arch.2 -v foo
23932
23933 mv foo old
23934
23935 tar xfg arch.1 /dev/null --warning=no-timestamp 2>tmperr
23936 sort tmperr >&2
23937
23938 echo \"Begin directory listing 1\"
23939 find foo | sort
23940 echo \"End directory listing 1\"
23941
23942 tar xfgv arch.2 /dev/null --warning=no-timestamp
23943 echo Begin directory listing 2
23944 find foo | sort
23945 echo End directory listing 2
23946 )"
23947 echo rename02.at:27 >"$at_check_line_file"
23948
23949 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
23950    false; }; then
23951   ( $at_traceon;
23952 mkdir oldgnu
23953 (cd oldgnu
23954 TEST_TAR_FORMAT=oldgnu
23955 export TEST_TAR_FORMAT
23956 TAR_OPTIONS="-H oldgnu"
23957 export TAR_OPTIONS
23958 rm -rf *
23959
23960
23961 test -z "`sort < /dev/null 2>&1`" || exit 77
23962
23963 mkdir foo
23964 genfile --file foo/file1
23965 genfile --file foo/file2
23966 mkdir foo/bar
23967 genfile --file foo/bar/file.r
23968 mkdir foo/bar/baz
23969 genfile --file foo/bar/baz/file.z
23970
23971 sleep 1
23972
23973 echo "Creating base archive"
23974 tar -g incr -cf arch.1 -v foo
23975
23976 mv foo/bar/baz foo
23977
23978 echo "Creating incremental archive"
23979 tar -g incr -cf arch.2 -v foo
23980
23981 mv foo old
23982
23983 tar xfg arch.1 /dev/null --warning=no-timestamp 2>tmperr
23984 sort tmperr >&2
23985
23986 echo "Begin directory listing 1"
23987 find foo | sort
23988 echo "End directory listing 1"
23989
23990 tar xfgv arch.2 /dev/null --warning=no-timestamp
23991 echo Begin directory listing 2
23992 find foo | sort
23993 echo End directory listing 2
23994 ) ) >"$at_stdout" 2>"$at_stder1"
23995   at_func_filter_trace $?
23996 else
23997   ( :;
23998 mkdir oldgnu
23999 (cd oldgnu
24000 TEST_TAR_FORMAT=oldgnu
24001 export TEST_TAR_FORMAT
24002 TAR_OPTIONS="-H oldgnu"
24003 export TAR_OPTIONS
24004 rm -rf *
24005
24006
24007 test -z "`sort < /dev/null 2>&1`" || exit 77
24008
24009 mkdir foo
24010 genfile --file foo/file1
24011 genfile --file foo/file2
24012 mkdir foo/bar
24013 genfile --file foo/bar/file.r
24014 mkdir foo/bar/baz
24015 genfile --file foo/bar/baz/file.z
24016
24017 sleep 1
24018
24019 echo "Creating base archive"
24020 tar -g incr -cf arch.1 -v foo
24021
24022 mv foo/bar/baz foo
24023
24024 echo "Creating incremental archive"
24025 tar -g incr -cf arch.2 -v foo
24026
24027 mv foo old
24028
24029 tar xfg arch.1 /dev/null --warning=no-timestamp 2>tmperr
24030 sort tmperr >&2
24031
24032 echo "Begin directory listing 1"
24033 find foo | sort
24034 echo "End directory listing 1"
24035
24036 tar xfgv arch.2 /dev/null --warning=no-timestamp
24037 echo Begin directory listing 2
24038 find foo | sort
24039 echo End directory listing 2
24040 ) ) >"$at_stdout" 2>"$at_stderr"
24041 fi
24042 at_status=$?
24043 at_failed=false
24044 echo >>"$at_stderr"; $as_echo "tar: foo: Directory is new
24045 tar: foo/bar: Directory is new
24046 tar: foo/bar/baz: Directory is new
24047 tar: foo/baz: Directory has been renamed from \`foo/bar/baz'
24048 " | \
24049   $at_diff - "$at_stderr" || at_failed=:
24050 echo >>"$at_stdout"; $as_echo "Creating base archive
24051 foo/
24052 foo/bar/
24053 foo/bar/baz/
24054 foo/file1
24055 foo/file2
24056 foo/bar/file.r
24057 foo/bar/baz/file.z
24058 Creating incremental archive
24059 foo/
24060 foo/bar/
24061 foo/baz/
24062 Begin directory listing 1
24063 foo
24064 foo/bar
24065 foo/bar/baz
24066 foo/bar/baz/file.z
24067 foo/bar/file.r
24068 foo/file1
24069 foo/file2
24070 End directory listing 1
24071 foo/
24072 foo/bar/
24073 foo/baz/
24074 Begin directory listing 2
24075 foo
24076 foo/bar
24077 foo/bar/file.r
24078 foo/baz
24079 foo/baz/file.z
24080 foo/file1
24081 foo/file2
24082 End directory listing 2
24083 " | \
24084   $at_diff - "$at_stdout" || at_failed=:
24085 at_func_check_status 0 $at_status "$at_srcdir/rename02.at:27"
24086
24087 $at_failed && at_func_log_failure
24088 $at_traceon; }
24089
24090               { $at_traceoff
24091 $as_echo "$at_srcdir/rename02.at:27:
24092 mkdir posix
24093 (cd posix
24094 TEST_TAR_FORMAT=posix
24095 export TEST_TAR_FORMAT
24096 TAR_OPTIONS=\"-H posix\"
24097 export TAR_OPTIONS
24098 rm -rf *
24099
24100
24101 test -z "`sort < /dev/null 2>&1`" || exit 77
24102
24103 mkdir foo
24104 genfile --file foo/file1
24105 genfile --file foo/file2
24106 mkdir foo/bar
24107 genfile --file foo/bar/file.r
24108 mkdir foo/bar/baz
24109 genfile --file foo/bar/baz/file.z
24110
24111 sleep 1
24112
24113 echo \"Creating base archive\"
24114 tar -g incr -cf arch.1 -v foo
24115
24116 mv foo/bar/baz foo
24117
24118 echo \"Creating incremental archive\"
24119 tar -g incr -cf arch.2 -v foo
24120
24121 mv foo old
24122
24123 tar xfg arch.1 /dev/null --warning=no-timestamp 2>tmperr
24124 sort tmperr >&2
24125
24126 echo \"Begin directory listing 1\"
24127 find foo | sort
24128 echo \"End directory listing 1\"
24129
24130 tar xfgv arch.2 /dev/null --warning=no-timestamp
24131 echo Begin directory listing 2
24132 find foo | sort
24133 echo End directory listing 2
24134 )"
24135 echo rename02.at:27 >"$at_check_line_file"
24136
24137 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
24138    false; }; then
24139   ( $at_traceon;
24140 mkdir posix
24141 (cd posix
24142 TEST_TAR_FORMAT=posix
24143 export TEST_TAR_FORMAT
24144 TAR_OPTIONS="-H posix"
24145 export TAR_OPTIONS
24146 rm -rf *
24147
24148
24149 test -z "`sort < /dev/null 2>&1`" || exit 77
24150
24151 mkdir foo
24152 genfile --file foo/file1
24153 genfile --file foo/file2
24154 mkdir foo/bar
24155 genfile --file foo/bar/file.r
24156 mkdir foo/bar/baz
24157 genfile --file foo/bar/baz/file.z
24158
24159 sleep 1
24160
24161 echo "Creating base archive"
24162 tar -g incr -cf arch.1 -v foo
24163
24164 mv foo/bar/baz foo
24165
24166 echo "Creating incremental archive"
24167 tar -g incr -cf arch.2 -v foo
24168
24169 mv foo old
24170
24171 tar xfg arch.1 /dev/null --warning=no-timestamp 2>tmperr
24172 sort tmperr >&2
24173
24174 echo "Begin directory listing 1"
24175 find foo | sort
24176 echo "End directory listing 1"
24177
24178 tar xfgv arch.2 /dev/null --warning=no-timestamp
24179 echo Begin directory listing 2
24180 find foo | sort
24181 echo End directory listing 2
24182 ) ) >"$at_stdout" 2>"$at_stder1"
24183   at_func_filter_trace $?
24184 else
24185   ( :;
24186 mkdir posix
24187 (cd posix
24188 TEST_TAR_FORMAT=posix
24189 export TEST_TAR_FORMAT
24190 TAR_OPTIONS="-H posix"
24191 export TAR_OPTIONS
24192 rm -rf *
24193
24194
24195 test -z "`sort < /dev/null 2>&1`" || exit 77
24196
24197 mkdir foo
24198 genfile --file foo/file1
24199 genfile --file foo/file2
24200 mkdir foo/bar
24201 genfile --file foo/bar/file.r
24202 mkdir foo/bar/baz
24203 genfile --file foo/bar/baz/file.z
24204
24205 sleep 1
24206
24207 echo "Creating base archive"
24208 tar -g incr -cf arch.1 -v foo
24209
24210 mv foo/bar/baz foo
24211
24212 echo "Creating incremental archive"
24213 tar -g incr -cf arch.2 -v foo
24214
24215 mv foo old
24216
24217 tar xfg arch.1 /dev/null --warning=no-timestamp 2>tmperr
24218 sort tmperr >&2
24219
24220 echo "Begin directory listing 1"
24221 find foo | sort
24222 echo "End directory listing 1"
24223
24224 tar xfgv arch.2 /dev/null --warning=no-timestamp
24225 echo Begin directory listing 2
24226 find foo | sort
24227 echo End directory listing 2
24228 ) ) >"$at_stdout" 2>"$at_stderr"
24229 fi
24230 at_status=$?
24231 at_failed=false
24232 echo >>"$at_stderr"; $as_echo "tar: foo: Directory is new
24233 tar: foo/bar: Directory is new
24234 tar: foo/bar/baz: Directory is new
24235 tar: foo/baz: Directory has been renamed from \`foo/bar/baz'
24236 " | \
24237   $at_diff - "$at_stderr" || at_failed=:
24238 echo >>"$at_stdout"; $as_echo "Creating base archive
24239 foo/
24240 foo/bar/
24241 foo/bar/baz/
24242 foo/file1
24243 foo/file2
24244 foo/bar/file.r
24245 foo/bar/baz/file.z
24246 Creating incremental archive
24247 foo/
24248 foo/bar/
24249 foo/baz/
24250 Begin directory listing 1
24251 foo
24252 foo/bar
24253 foo/bar/baz
24254 foo/bar/baz/file.z
24255 foo/bar/file.r
24256 foo/file1
24257 foo/file2
24258 End directory listing 1
24259 foo/
24260 foo/bar/
24261 foo/baz/
24262 Begin directory listing 2
24263 foo
24264 foo/bar
24265 foo/bar/file.r
24266 foo/baz
24267 foo/baz/file.z
24268 foo/file1
24269 foo/file2
24270 End directory listing 2
24271 " | \
24272   $at_diff - "$at_stdout" || at_failed=:
24273 at_func_check_status 0 $at_status "$at_srcdir/rename02.at:27"
24274
24275 $at_failed && at_func_log_failure
24276 $at_traceon; }
24277
24278
24279
24280
24281   $at_traceoff
24282   $at_times_p && times >"$at_times_file"
24283 ) 5>&1 2>&1 | eval $at_tee_pipe
24284 at_status=`cat "$at_status_file"`
24285 #AT_STOP_65
24286 #AT_START_66
24287 # 66. rename03.at:23: cyclic renames
24288 at_setup_line='rename03.at:23'
24289 at_desc="cyclic renames"
24290 $at_quiet $as_echo_n " 66: $at_desc                                 "
24291 at_xfail=no
24292       test -f $XFAILFILE && at_xfail=yes
24293 echo "#                             -*- compilation -*-" >> "$at_group_log"
24294 (
24295   $as_echo "66. rename03.at:23: testing ..."
24296   $at_traceon
24297
24298
24299
24300
24301
24302   { $at_traceoff
24303 $as_echo "$at_srcdir/rename03.at:26:
24304 mkdir gnu
24305 (cd gnu
24306 TEST_TAR_FORMAT=gnu
24307 export TEST_TAR_FORMAT
24308 TAR_OPTIONS=\"-H gnu\"
24309 export TAR_OPTIONS
24310 rm -rf *
24311
24312
24313 test -z "`sort < /dev/null 2>&1`" || exit 77
24314
24315
24316 mkdir foo
24317 genfile --file foo/file1
24318 genfile --file foo/file2
24319
24320 mkdir foo/a
24321 genfile --file foo/a/filea
24322
24323 mkdir foo/b
24324 genfile --file foo/b/fileb
24325
24326 mkdir foo/c
24327 genfile --file foo/c/filec
24328
24329 sleep 1
24330
24331 echo \"First dump\"
24332 echo \"First dump\">&2
24333 tar -g incr -cf arch.1 -v foo 2>tmperr
24334 sort tmperr >&2
24335
24336 # Shuffle directories:
24337 (cd foo
24338 mv a \$\$
24339 mv c a
24340 mv b c
24341 mv \$\$ b)
24342
24343 echo \"Second dump\"
24344 echo \"Second dump\" >&2
24345 tar -g incr -cf arch.2 -v foo 2>tmperr
24346 sort tmperr >&2
24347
24348 tar xfg arch.1 /dev/null --warning=no-timestamp
24349
24350 echo \"Begin directory listing 1\"
24351 find foo | sort
24352 echo \"End directory listing 1\"
24353
24354 tar xfgv arch.2 /dev/null --warning=no-timestamp
24355 echo Begin directory listing 2
24356 find foo | sort
24357 echo End directory listing 2
24358 )"
24359 echo rename03.at:26 >"$at_check_line_file"
24360
24361 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
24362    false; }; then
24363   ( $at_traceon;
24364 mkdir gnu
24365 (cd gnu
24366 TEST_TAR_FORMAT=gnu
24367 export TEST_TAR_FORMAT
24368 TAR_OPTIONS="-H gnu"
24369 export TAR_OPTIONS
24370 rm -rf *
24371
24372
24373 test -z "`sort < /dev/null 2>&1`" || exit 77
24374
24375
24376 mkdir foo
24377 genfile --file foo/file1
24378 genfile --file foo/file2
24379
24380 mkdir foo/a
24381 genfile --file foo/a/filea
24382
24383 mkdir foo/b
24384 genfile --file foo/b/fileb
24385
24386 mkdir foo/c
24387 genfile --file foo/c/filec
24388
24389 sleep 1
24390
24391 echo "First dump"
24392 echo "First dump">&2
24393 tar -g incr -cf arch.1 -v foo 2>tmperr
24394 sort tmperr >&2
24395
24396 # Shuffle directories:
24397 (cd foo
24398 mv a $$
24399 mv c a
24400 mv b c
24401 mv $$ b)
24402
24403 echo "Second dump"
24404 echo "Second dump" >&2
24405 tar -g incr -cf arch.2 -v foo 2>tmperr
24406 sort tmperr >&2
24407
24408 tar xfg arch.1 /dev/null --warning=no-timestamp
24409
24410 echo "Begin directory listing 1"
24411 find foo | sort
24412 echo "End directory listing 1"
24413
24414 tar xfgv arch.2 /dev/null --warning=no-timestamp
24415 echo Begin directory listing 2
24416 find foo | sort
24417 echo End directory listing 2
24418 ) ) >"$at_stdout" 2>"$at_stder1"
24419   at_func_filter_trace $?
24420 else
24421   ( :;
24422 mkdir gnu
24423 (cd gnu
24424 TEST_TAR_FORMAT=gnu
24425 export TEST_TAR_FORMAT
24426 TAR_OPTIONS="-H gnu"
24427 export TAR_OPTIONS
24428 rm -rf *
24429
24430
24431 test -z "`sort < /dev/null 2>&1`" || exit 77
24432
24433
24434 mkdir foo
24435 genfile --file foo/file1
24436 genfile --file foo/file2
24437
24438 mkdir foo/a
24439 genfile --file foo/a/filea
24440
24441 mkdir foo/b
24442 genfile --file foo/b/fileb
24443
24444 mkdir foo/c
24445 genfile --file foo/c/filec
24446
24447 sleep 1
24448
24449 echo "First dump"
24450 echo "First dump">&2
24451 tar -g incr -cf arch.1 -v foo 2>tmperr
24452 sort tmperr >&2
24453
24454 # Shuffle directories:
24455 (cd foo
24456 mv a $$
24457 mv c a
24458 mv b c
24459 mv $$ b)
24460
24461 echo "Second dump"
24462 echo "Second dump" >&2
24463 tar -g incr -cf arch.2 -v foo 2>tmperr
24464 sort tmperr >&2
24465
24466 tar xfg arch.1 /dev/null --warning=no-timestamp
24467
24468 echo "Begin directory listing 1"
24469 find foo | sort
24470 echo "End directory listing 1"
24471
24472 tar xfgv arch.2 /dev/null --warning=no-timestamp
24473 echo Begin directory listing 2
24474 find foo | sort
24475 echo End directory listing 2
24476 ) ) >"$at_stdout" 2>"$at_stderr"
24477 fi
24478 at_status=$?
24479 at_failed=false
24480 echo >>"$at_stderr"; $as_echo "First dump
24481 tar: foo/a: Directory is new
24482 tar: foo/b: Directory is new
24483 tar: foo/c: Directory is new
24484 tar: foo: Directory is new
24485 Second dump
24486 tar: foo/a: Directory has been renamed from \`foo/c'
24487 tar: foo/b: Directory has been renamed from \`foo/a'
24488 tar: foo/c: Directory has been renamed from \`foo/b'
24489 " | \
24490   $at_diff - "$at_stderr" || at_failed=:
24491 echo >>"$at_stdout"; $as_echo "First dump
24492 foo/
24493 foo/a/
24494 foo/b/
24495 foo/c/
24496 foo/file1
24497 foo/file2
24498 foo/a/filea
24499 foo/b/fileb
24500 foo/c/filec
24501 Second dump
24502 foo/
24503 foo/a/
24504 foo/b/
24505 foo/c/
24506 Begin directory listing 1
24507 foo
24508 foo/a
24509 foo/a/filea
24510 foo/b
24511 foo/b/fileb
24512 foo/c
24513 foo/c/filec
24514 foo/file1
24515 foo/file2
24516 End directory listing 1
24517 foo/
24518 foo/a/
24519 foo/b/
24520 foo/c/
24521 Begin directory listing 2
24522 foo
24523 foo/a
24524 foo/a/filec
24525 foo/b
24526 foo/b/filea
24527 foo/c
24528 foo/c/fileb
24529 foo/file1
24530 foo/file2
24531 End directory listing 2
24532 " | \
24533   $at_diff - "$at_stdout" || at_failed=:
24534 at_func_check_status 0 $at_status "$at_srcdir/rename03.at:26"
24535
24536 $at_failed && at_func_log_failure
24537 $at_traceon; }
24538
24539               { $at_traceoff
24540 $as_echo "$at_srcdir/rename03.at:26:
24541 mkdir oldgnu
24542 (cd oldgnu
24543 TEST_TAR_FORMAT=oldgnu
24544 export TEST_TAR_FORMAT
24545 TAR_OPTIONS=\"-H oldgnu\"
24546 export TAR_OPTIONS
24547 rm -rf *
24548
24549
24550 test -z "`sort < /dev/null 2>&1`" || exit 77
24551
24552
24553 mkdir foo
24554 genfile --file foo/file1
24555 genfile --file foo/file2
24556
24557 mkdir foo/a
24558 genfile --file foo/a/filea
24559
24560 mkdir foo/b
24561 genfile --file foo/b/fileb
24562
24563 mkdir foo/c
24564 genfile --file foo/c/filec
24565
24566 sleep 1
24567
24568 echo \"First dump\"
24569 echo \"First dump\">&2
24570 tar -g incr -cf arch.1 -v foo 2>tmperr
24571 sort tmperr >&2
24572
24573 # Shuffle directories:
24574 (cd foo
24575 mv a \$\$
24576 mv c a
24577 mv b c
24578 mv \$\$ b)
24579
24580 echo \"Second dump\"
24581 echo \"Second dump\" >&2
24582 tar -g incr -cf arch.2 -v foo 2>tmperr
24583 sort tmperr >&2
24584
24585 tar xfg arch.1 /dev/null --warning=no-timestamp
24586
24587 echo \"Begin directory listing 1\"
24588 find foo | sort
24589 echo \"End directory listing 1\"
24590
24591 tar xfgv arch.2 /dev/null --warning=no-timestamp
24592 echo Begin directory listing 2
24593 find foo | sort
24594 echo End directory listing 2
24595 )"
24596 echo rename03.at:26 >"$at_check_line_file"
24597
24598 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
24599    false; }; then
24600   ( $at_traceon;
24601 mkdir oldgnu
24602 (cd oldgnu
24603 TEST_TAR_FORMAT=oldgnu
24604 export TEST_TAR_FORMAT
24605 TAR_OPTIONS="-H oldgnu"
24606 export TAR_OPTIONS
24607 rm -rf *
24608
24609
24610 test -z "`sort < /dev/null 2>&1`" || exit 77
24611
24612
24613 mkdir foo
24614 genfile --file foo/file1
24615 genfile --file foo/file2
24616
24617 mkdir foo/a
24618 genfile --file foo/a/filea
24619
24620 mkdir foo/b
24621 genfile --file foo/b/fileb
24622
24623 mkdir foo/c
24624 genfile --file foo/c/filec
24625
24626 sleep 1
24627
24628 echo "First dump"
24629 echo "First dump">&2
24630 tar -g incr -cf arch.1 -v foo 2>tmperr
24631 sort tmperr >&2
24632
24633 # Shuffle directories:
24634 (cd foo
24635 mv a $$
24636 mv c a
24637 mv b c
24638 mv $$ b)
24639
24640 echo "Second dump"
24641 echo "Second dump" >&2
24642 tar -g incr -cf arch.2 -v foo 2>tmperr
24643 sort tmperr >&2
24644
24645 tar xfg arch.1 /dev/null --warning=no-timestamp
24646
24647 echo "Begin directory listing 1"
24648 find foo | sort
24649 echo "End directory listing 1"
24650
24651 tar xfgv arch.2 /dev/null --warning=no-timestamp
24652 echo Begin directory listing 2
24653 find foo | sort
24654 echo End directory listing 2
24655 ) ) >"$at_stdout" 2>"$at_stder1"
24656   at_func_filter_trace $?
24657 else
24658   ( :;
24659 mkdir oldgnu
24660 (cd oldgnu
24661 TEST_TAR_FORMAT=oldgnu
24662 export TEST_TAR_FORMAT
24663 TAR_OPTIONS="-H oldgnu"
24664 export TAR_OPTIONS
24665 rm -rf *
24666
24667
24668 test -z "`sort < /dev/null 2>&1`" || exit 77
24669
24670
24671 mkdir foo
24672 genfile --file foo/file1
24673 genfile --file foo/file2
24674
24675 mkdir foo/a
24676 genfile --file foo/a/filea
24677
24678 mkdir foo/b
24679 genfile --file foo/b/fileb
24680
24681 mkdir foo/c
24682 genfile --file foo/c/filec
24683
24684 sleep 1
24685
24686 echo "First dump"
24687 echo "First dump">&2
24688 tar -g incr -cf arch.1 -v foo 2>tmperr
24689 sort tmperr >&2
24690
24691 # Shuffle directories:
24692 (cd foo
24693 mv a $$
24694 mv c a
24695 mv b c
24696 mv $$ b)
24697
24698 echo "Second dump"
24699 echo "Second dump" >&2
24700 tar -g incr -cf arch.2 -v foo 2>tmperr
24701 sort tmperr >&2
24702
24703 tar xfg arch.1 /dev/null --warning=no-timestamp
24704
24705 echo "Begin directory listing 1"
24706 find foo | sort
24707 echo "End directory listing 1"
24708
24709 tar xfgv arch.2 /dev/null --warning=no-timestamp
24710 echo Begin directory listing 2
24711 find foo | sort
24712 echo End directory listing 2
24713 ) ) >"$at_stdout" 2>"$at_stderr"
24714 fi
24715 at_status=$?
24716 at_failed=false
24717 echo >>"$at_stderr"; $as_echo "First dump
24718 tar: foo/a: Directory is new
24719 tar: foo/b: Directory is new
24720 tar: foo/c: Directory is new
24721 tar: foo: Directory is new
24722 Second dump
24723 tar: foo/a: Directory has been renamed from \`foo/c'
24724 tar: foo/b: Directory has been renamed from \`foo/a'
24725 tar: foo/c: Directory has been renamed from \`foo/b'
24726 " | \
24727   $at_diff - "$at_stderr" || at_failed=:
24728 echo >>"$at_stdout"; $as_echo "First dump
24729 foo/
24730 foo/a/
24731 foo/b/
24732 foo/c/
24733 foo/file1
24734 foo/file2
24735 foo/a/filea
24736 foo/b/fileb
24737 foo/c/filec
24738 Second dump
24739 foo/
24740 foo/a/
24741 foo/b/
24742 foo/c/
24743 Begin directory listing 1
24744 foo
24745 foo/a
24746 foo/a/filea
24747 foo/b
24748 foo/b/fileb
24749 foo/c
24750 foo/c/filec
24751 foo/file1
24752 foo/file2
24753 End directory listing 1
24754 foo/
24755 foo/a/
24756 foo/b/
24757 foo/c/
24758 Begin directory listing 2
24759 foo
24760 foo/a
24761 foo/a/filec
24762 foo/b
24763 foo/b/filea
24764 foo/c
24765 foo/c/fileb
24766 foo/file1
24767 foo/file2
24768 End directory listing 2
24769 " | \
24770   $at_diff - "$at_stdout" || at_failed=:
24771 at_func_check_status 0 $at_status "$at_srcdir/rename03.at:26"
24772
24773 $at_failed && at_func_log_failure
24774 $at_traceon; }
24775
24776               { $at_traceoff
24777 $as_echo "$at_srcdir/rename03.at:26:
24778 mkdir posix
24779 (cd posix
24780 TEST_TAR_FORMAT=posix
24781 export TEST_TAR_FORMAT
24782 TAR_OPTIONS=\"-H posix\"
24783 export TAR_OPTIONS
24784 rm -rf *
24785
24786
24787 test -z "`sort < /dev/null 2>&1`" || exit 77
24788
24789
24790 mkdir foo
24791 genfile --file foo/file1
24792 genfile --file foo/file2
24793
24794 mkdir foo/a
24795 genfile --file foo/a/filea
24796
24797 mkdir foo/b
24798 genfile --file foo/b/fileb
24799
24800 mkdir foo/c
24801 genfile --file foo/c/filec
24802
24803 sleep 1
24804
24805 echo \"First dump\"
24806 echo \"First dump\">&2
24807 tar -g incr -cf arch.1 -v foo 2>tmperr
24808 sort tmperr >&2
24809
24810 # Shuffle directories:
24811 (cd foo
24812 mv a \$\$
24813 mv c a
24814 mv b c
24815 mv \$\$ b)
24816
24817 echo \"Second dump\"
24818 echo \"Second dump\" >&2
24819 tar -g incr -cf arch.2 -v foo 2>tmperr
24820 sort tmperr >&2
24821
24822 tar xfg arch.1 /dev/null --warning=no-timestamp
24823
24824 echo \"Begin directory listing 1\"
24825 find foo | sort
24826 echo \"End directory listing 1\"
24827
24828 tar xfgv arch.2 /dev/null --warning=no-timestamp
24829 echo Begin directory listing 2
24830 find foo | sort
24831 echo End directory listing 2
24832 )"
24833 echo rename03.at:26 >"$at_check_line_file"
24834
24835 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
24836    false; }; then
24837   ( $at_traceon;
24838 mkdir posix
24839 (cd posix
24840 TEST_TAR_FORMAT=posix
24841 export TEST_TAR_FORMAT
24842 TAR_OPTIONS="-H posix"
24843 export TAR_OPTIONS
24844 rm -rf *
24845
24846
24847 test -z "`sort < /dev/null 2>&1`" || exit 77
24848
24849
24850 mkdir foo
24851 genfile --file foo/file1
24852 genfile --file foo/file2
24853
24854 mkdir foo/a
24855 genfile --file foo/a/filea
24856
24857 mkdir foo/b
24858 genfile --file foo/b/fileb
24859
24860 mkdir foo/c
24861 genfile --file foo/c/filec
24862
24863 sleep 1
24864
24865 echo "First dump"
24866 echo "First dump">&2
24867 tar -g incr -cf arch.1 -v foo 2>tmperr
24868 sort tmperr >&2
24869
24870 # Shuffle directories:
24871 (cd foo
24872 mv a $$
24873 mv c a
24874 mv b c
24875 mv $$ b)
24876
24877 echo "Second dump"
24878 echo "Second dump" >&2
24879 tar -g incr -cf arch.2 -v foo 2>tmperr
24880 sort tmperr >&2
24881
24882 tar xfg arch.1 /dev/null --warning=no-timestamp
24883
24884 echo "Begin directory listing 1"
24885 find foo | sort
24886 echo "End directory listing 1"
24887
24888 tar xfgv arch.2 /dev/null --warning=no-timestamp
24889 echo Begin directory listing 2
24890 find foo | sort
24891 echo End directory listing 2
24892 ) ) >"$at_stdout" 2>"$at_stder1"
24893   at_func_filter_trace $?
24894 else
24895   ( :;
24896 mkdir posix
24897 (cd posix
24898 TEST_TAR_FORMAT=posix
24899 export TEST_TAR_FORMAT
24900 TAR_OPTIONS="-H posix"
24901 export TAR_OPTIONS
24902 rm -rf *
24903
24904
24905 test -z "`sort < /dev/null 2>&1`" || exit 77
24906
24907
24908 mkdir foo
24909 genfile --file foo/file1
24910 genfile --file foo/file2
24911
24912 mkdir foo/a
24913 genfile --file foo/a/filea
24914
24915 mkdir foo/b
24916 genfile --file foo/b/fileb
24917
24918 mkdir foo/c
24919 genfile --file foo/c/filec
24920
24921 sleep 1
24922
24923 echo "First dump"
24924 echo "First dump">&2
24925 tar -g incr -cf arch.1 -v foo 2>tmperr
24926 sort tmperr >&2
24927
24928 # Shuffle directories:
24929 (cd foo
24930 mv a $$
24931 mv c a
24932 mv b c
24933 mv $$ b)
24934
24935 echo "Second dump"
24936 echo "Second dump" >&2
24937 tar -g incr -cf arch.2 -v foo 2>tmperr
24938 sort tmperr >&2
24939
24940 tar xfg arch.1 /dev/null --warning=no-timestamp
24941
24942 echo "Begin directory listing 1"
24943 find foo | sort
24944 echo "End directory listing 1"
24945
24946 tar xfgv arch.2 /dev/null --warning=no-timestamp
24947 echo Begin directory listing 2
24948 find foo | sort
24949 echo End directory listing 2
24950 ) ) >"$at_stdout" 2>"$at_stderr"
24951 fi
24952 at_status=$?
24953 at_failed=false
24954 echo >>"$at_stderr"; $as_echo "First dump
24955 tar: foo/a: Directory is new
24956 tar: foo/b: Directory is new
24957 tar: foo/c: Directory is new
24958 tar: foo: Directory is new
24959 Second dump
24960 tar: foo/a: Directory has been renamed from \`foo/c'
24961 tar: foo/b: Directory has been renamed from \`foo/a'
24962 tar: foo/c: Directory has been renamed from \`foo/b'
24963 " | \
24964   $at_diff - "$at_stderr" || at_failed=:
24965 echo >>"$at_stdout"; $as_echo "First dump
24966 foo/
24967 foo/a/
24968 foo/b/
24969 foo/c/
24970 foo/file1
24971 foo/file2
24972 foo/a/filea
24973 foo/b/fileb
24974 foo/c/filec
24975 Second dump
24976 foo/
24977 foo/a/
24978 foo/b/
24979 foo/c/
24980 Begin directory listing 1
24981 foo
24982 foo/a
24983 foo/a/filea
24984 foo/b
24985 foo/b/fileb
24986 foo/c
24987 foo/c/filec
24988 foo/file1
24989 foo/file2
24990 End directory listing 1
24991 foo/
24992 foo/a/
24993 foo/b/
24994 foo/c/
24995 Begin directory listing 2
24996 foo
24997 foo/a
24998 foo/a/filec
24999 foo/b
25000 foo/b/filea
25001 foo/c
25002 foo/c/fileb
25003 foo/file1
25004 foo/file2
25005 End directory listing 2
25006 " | \
25007   $at_diff - "$at_stdout" || at_failed=:
25008 at_func_check_status 0 $at_status "$at_srcdir/rename03.at:26"
25009
25010 $at_failed && at_func_log_failure
25011 $at_traceon; }
25012
25013
25014
25015
25016   $at_traceoff
25017   $at_times_p && times >"$at_times_file"
25018 ) 5>&1 2>&1 | eval $at_tee_pipe
25019 at_status=`cat "$at_status_file"`
25020 #AT_STOP_66
25021 #AT_START_67
25022 # 67. rename04.at:27: renamed directory containing subdirectories
25023 at_setup_line='rename04.at:27'
25024 at_desc="renamed directory containing subdirectories"
25025 $at_quiet $as_echo_n " 67: $at_desc    "
25026 at_xfail=no
25027       test -f $XFAILFILE && at_xfail=yes
25028 echo "#                             -*- compilation -*-" >> "$at_group_log"
25029 (
25030   $as_echo "67. rename04.at:27: testing ..."
25031   $at_traceon
25032
25033
25034
25035
25036
25037   { $at_traceoff
25038 $as_echo "$at_srcdir/rename04.at:30:
25039 mkdir gnu
25040 (cd gnu
25041 TEST_TAR_FORMAT=gnu
25042 export TEST_TAR_FORMAT
25043 TAR_OPTIONS=\"-H gnu\"
25044 export TAR_OPTIONS
25045 rm -rf *
25046
25047
25048 test -z "`sort < /dev/null 2>&1`" || exit 77
25049
25050
25051 decho Creating directory structure
25052 mkdir directory
25053 mkdir directory/subdir
25054 genfile --file=directory/file
25055
25056 decho Creating initial archive
25057 tar -cf archive.1 -g db.1 directory
25058
25059 decho Renaming
25060 mv directory dir
25061
25062 decho Creating incremental archive
25063 cp db.1 db.2
25064 tar -cf archive.2 -g db.2 dir
25065
25066 mv dir orig
25067
25068 decho First restore
25069 tar -xf archive.1 -g db.1
25070 find directory | sort
25071
25072 decho Second restore
25073 tar -xf archive.2 -g db.2
25074 find dir | sort
25075 )"
25076 echo rename04.at:30 >"$at_check_line_file"
25077
25078 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
25079    false; }; then
25080   ( $at_traceon;
25081 mkdir gnu
25082 (cd gnu
25083 TEST_TAR_FORMAT=gnu
25084 export TEST_TAR_FORMAT
25085 TAR_OPTIONS="-H gnu"
25086 export TAR_OPTIONS
25087 rm -rf *
25088
25089
25090 test -z "`sort < /dev/null 2>&1`" || exit 77
25091
25092
25093 decho Creating directory structure
25094 mkdir directory
25095 mkdir directory/subdir
25096 genfile --file=directory/file
25097
25098 decho Creating initial archive
25099 tar -cf archive.1 -g db.1 directory
25100
25101 decho Renaming
25102 mv directory dir
25103
25104 decho Creating incremental archive
25105 cp db.1 db.2
25106 tar -cf archive.2 -g db.2 dir
25107
25108 mv dir orig
25109
25110 decho First restore
25111 tar -xf archive.1 -g db.1
25112 find directory | sort
25113
25114 decho Second restore
25115 tar -xf archive.2 -g db.2
25116 find dir | sort
25117 ) ) >"$at_stdout" 2>"$at_stder1"
25118   at_func_filter_trace $?
25119 else
25120   ( :;
25121 mkdir gnu
25122 (cd gnu
25123 TEST_TAR_FORMAT=gnu
25124 export TEST_TAR_FORMAT
25125 TAR_OPTIONS="-H gnu"
25126 export TAR_OPTIONS
25127 rm -rf *
25128
25129
25130 test -z "`sort < /dev/null 2>&1`" || exit 77
25131
25132
25133 decho Creating directory structure
25134 mkdir directory
25135 mkdir directory/subdir
25136 genfile --file=directory/file
25137
25138 decho Creating initial archive
25139 tar -cf archive.1 -g db.1 directory
25140
25141 decho Renaming
25142 mv directory dir
25143
25144 decho Creating incremental archive
25145 cp db.1 db.2
25146 tar -cf archive.2 -g db.2 dir
25147
25148 mv dir orig
25149
25150 decho First restore
25151 tar -xf archive.1 -g db.1
25152 find directory | sort
25153
25154 decho Second restore
25155 tar -xf archive.2 -g db.2
25156 find dir | sort
25157 ) ) >"$at_stdout" 2>"$at_stderr"
25158 fi
25159 at_status=$?
25160 at_failed=false
25161 echo >>"$at_stderr"; $as_echo "Creating directory structure
25162 Creating initial archive
25163 Renaming
25164 Creating incremental archive
25165 First restore
25166 Second restore
25167 " | \
25168   $at_diff - "$at_stderr" || at_failed=:
25169 echo >>"$at_stdout"; $as_echo "Creating directory structure
25170 Creating initial archive
25171 Renaming
25172 Creating incremental archive
25173 First restore
25174 directory
25175 directory/file
25176 directory/subdir
25177 Second restore
25178 dir
25179 dir/subdir
25180 " | \
25181   $at_diff - "$at_stdout" || at_failed=:
25182 at_func_check_status 0 $at_status "$at_srcdir/rename04.at:30"
25183
25184 $at_failed && at_func_log_failure
25185 $at_traceon; }
25186
25187               { $at_traceoff
25188 $as_echo "$at_srcdir/rename04.at:30:
25189 mkdir oldgnu
25190 (cd oldgnu
25191 TEST_TAR_FORMAT=oldgnu
25192 export TEST_TAR_FORMAT
25193 TAR_OPTIONS=\"-H oldgnu\"
25194 export TAR_OPTIONS
25195 rm -rf *
25196
25197
25198 test -z "`sort < /dev/null 2>&1`" || exit 77
25199
25200
25201 decho Creating directory structure
25202 mkdir directory
25203 mkdir directory/subdir
25204 genfile --file=directory/file
25205
25206 decho Creating initial archive
25207 tar -cf archive.1 -g db.1 directory
25208
25209 decho Renaming
25210 mv directory dir
25211
25212 decho Creating incremental archive
25213 cp db.1 db.2
25214 tar -cf archive.2 -g db.2 dir
25215
25216 mv dir orig
25217
25218 decho First restore
25219 tar -xf archive.1 -g db.1
25220 find directory | sort
25221
25222 decho Second restore
25223 tar -xf archive.2 -g db.2
25224 find dir | sort
25225 )"
25226 echo rename04.at:30 >"$at_check_line_file"
25227
25228 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
25229    false; }; then
25230   ( $at_traceon;
25231 mkdir oldgnu
25232 (cd oldgnu
25233 TEST_TAR_FORMAT=oldgnu
25234 export TEST_TAR_FORMAT
25235 TAR_OPTIONS="-H oldgnu"
25236 export TAR_OPTIONS
25237 rm -rf *
25238
25239
25240 test -z "`sort < /dev/null 2>&1`" || exit 77
25241
25242
25243 decho Creating directory structure
25244 mkdir directory
25245 mkdir directory/subdir
25246 genfile --file=directory/file
25247
25248 decho Creating initial archive
25249 tar -cf archive.1 -g db.1 directory
25250
25251 decho Renaming
25252 mv directory dir
25253
25254 decho Creating incremental archive
25255 cp db.1 db.2
25256 tar -cf archive.2 -g db.2 dir
25257
25258 mv dir orig
25259
25260 decho First restore
25261 tar -xf archive.1 -g db.1
25262 find directory | sort
25263
25264 decho Second restore
25265 tar -xf archive.2 -g db.2
25266 find dir | sort
25267 ) ) >"$at_stdout" 2>"$at_stder1"
25268   at_func_filter_trace $?
25269 else
25270   ( :;
25271 mkdir oldgnu
25272 (cd oldgnu
25273 TEST_TAR_FORMAT=oldgnu
25274 export TEST_TAR_FORMAT
25275 TAR_OPTIONS="-H oldgnu"
25276 export TAR_OPTIONS
25277 rm -rf *
25278
25279
25280 test -z "`sort < /dev/null 2>&1`" || exit 77
25281
25282
25283 decho Creating directory structure
25284 mkdir directory
25285 mkdir directory/subdir
25286 genfile --file=directory/file
25287
25288 decho Creating initial archive
25289 tar -cf archive.1 -g db.1 directory
25290
25291 decho Renaming
25292 mv directory dir
25293
25294 decho Creating incremental archive
25295 cp db.1 db.2
25296 tar -cf archive.2 -g db.2 dir
25297
25298 mv dir orig
25299
25300 decho First restore
25301 tar -xf archive.1 -g db.1
25302 find directory | sort
25303
25304 decho Second restore
25305 tar -xf archive.2 -g db.2
25306 find dir | sort
25307 ) ) >"$at_stdout" 2>"$at_stderr"
25308 fi
25309 at_status=$?
25310 at_failed=false
25311 echo >>"$at_stderr"; $as_echo "Creating directory structure
25312 Creating initial archive
25313 Renaming
25314 Creating incremental archive
25315 First restore
25316 Second restore
25317 " | \
25318   $at_diff - "$at_stderr" || at_failed=:
25319 echo >>"$at_stdout"; $as_echo "Creating directory structure
25320 Creating initial archive
25321 Renaming
25322 Creating incremental archive
25323 First restore
25324 directory
25325 directory/file
25326 directory/subdir
25327 Second restore
25328 dir
25329 dir/subdir
25330 " | \
25331   $at_diff - "$at_stdout" || at_failed=:
25332 at_func_check_status 0 $at_status "$at_srcdir/rename04.at:30"
25333
25334 $at_failed && at_func_log_failure
25335 $at_traceon; }
25336
25337               { $at_traceoff
25338 $as_echo "$at_srcdir/rename04.at:30:
25339 mkdir posix
25340 (cd posix
25341 TEST_TAR_FORMAT=posix
25342 export TEST_TAR_FORMAT
25343 TAR_OPTIONS=\"-H posix\"
25344 export TAR_OPTIONS
25345 rm -rf *
25346
25347
25348 test -z "`sort < /dev/null 2>&1`" || exit 77
25349
25350
25351 decho Creating directory structure
25352 mkdir directory
25353 mkdir directory/subdir
25354 genfile --file=directory/file
25355
25356 decho Creating initial archive
25357 tar -cf archive.1 -g db.1 directory
25358
25359 decho Renaming
25360 mv directory dir
25361
25362 decho Creating incremental archive
25363 cp db.1 db.2
25364 tar -cf archive.2 -g db.2 dir
25365
25366 mv dir orig
25367
25368 decho First restore
25369 tar -xf archive.1 -g db.1
25370 find directory | sort
25371
25372 decho Second restore
25373 tar -xf archive.2 -g db.2
25374 find dir | sort
25375 )"
25376 echo rename04.at:30 >"$at_check_line_file"
25377
25378 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
25379    false; }; then
25380   ( $at_traceon;
25381 mkdir posix
25382 (cd posix
25383 TEST_TAR_FORMAT=posix
25384 export TEST_TAR_FORMAT
25385 TAR_OPTIONS="-H posix"
25386 export TAR_OPTIONS
25387 rm -rf *
25388
25389
25390 test -z "`sort < /dev/null 2>&1`" || exit 77
25391
25392
25393 decho Creating directory structure
25394 mkdir directory
25395 mkdir directory/subdir
25396 genfile --file=directory/file
25397
25398 decho Creating initial archive
25399 tar -cf archive.1 -g db.1 directory
25400
25401 decho Renaming
25402 mv directory dir
25403
25404 decho Creating incremental archive
25405 cp db.1 db.2
25406 tar -cf archive.2 -g db.2 dir
25407
25408 mv dir orig
25409
25410 decho First restore
25411 tar -xf archive.1 -g db.1
25412 find directory | sort
25413
25414 decho Second restore
25415 tar -xf archive.2 -g db.2
25416 find dir | sort
25417 ) ) >"$at_stdout" 2>"$at_stder1"
25418   at_func_filter_trace $?
25419 else
25420   ( :;
25421 mkdir posix
25422 (cd posix
25423 TEST_TAR_FORMAT=posix
25424 export TEST_TAR_FORMAT
25425 TAR_OPTIONS="-H posix"
25426 export TAR_OPTIONS
25427 rm -rf *
25428
25429
25430 test -z "`sort < /dev/null 2>&1`" || exit 77
25431
25432
25433 decho Creating directory structure
25434 mkdir directory
25435 mkdir directory/subdir
25436 genfile --file=directory/file
25437
25438 decho Creating initial archive
25439 tar -cf archive.1 -g db.1 directory
25440
25441 decho Renaming
25442 mv directory dir
25443
25444 decho Creating incremental archive
25445 cp db.1 db.2
25446 tar -cf archive.2 -g db.2 dir
25447
25448 mv dir orig
25449
25450 decho First restore
25451 tar -xf archive.1 -g db.1
25452 find directory | sort
25453
25454 decho Second restore
25455 tar -xf archive.2 -g db.2
25456 find dir | sort
25457 ) ) >"$at_stdout" 2>"$at_stderr"
25458 fi
25459 at_status=$?
25460 at_failed=false
25461 echo >>"$at_stderr"; $as_echo "Creating directory structure
25462 Creating initial archive
25463 Renaming
25464 Creating incremental archive
25465 First restore
25466 Second restore
25467 " | \
25468   $at_diff - "$at_stderr" || at_failed=:
25469 echo >>"$at_stdout"; $as_echo "Creating directory structure
25470 Creating initial archive
25471 Renaming
25472 Creating incremental archive
25473 First restore
25474 directory
25475 directory/file
25476 directory/subdir
25477 Second restore
25478 dir
25479 dir/subdir
25480 " | \
25481   $at_diff - "$at_stdout" || at_failed=:
25482 at_func_check_status 0 $at_status "$at_srcdir/rename04.at:30"
25483
25484 $at_failed && at_func_log_failure
25485 $at_traceon; }
25486
25487
25488
25489
25490   $at_traceoff
25491   $at_times_p && times >"$at_times_file"
25492 ) 5>&1 2>&1 | eval $at_tee_pipe
25493 at_status=`cat "$at_status_file"`
25494 #AT_STOP_67
25495 #AT_START_68
25496 # 68. rename05.at:24: renamed subdirectories
25497 at_setup_line='rename05.at:24'
25498 at_desc="renamed subdirectories"
25499 $at_quiet $as_echo_n " 68: $at_desc                         "
25500 at_xfail=no
25501       test -f $XFAILFILE && at_xfail=yes
25502 echo "#                             -*- compilation -*-" >> "$at_group_log"
25503 (
25504   $as_echo "68. rename05.at:24: testing ..."
25505   $at_traceon
25506
25507
25508
25509
25510
25511   { $at_traceoff
25512 $as_echo "$at_srcdir/rename05.at:27:
25513 mkdir gnu
25514 (cd gnu
25515 TEST_TAR_FORMAT=gnu
25516 export TEST_TAR_FORMAT
25517 TAR_OPTIONS=\"-H gnu\"
25518 export TAR_OPTIONS
25519 rm -rf *
25520
25521
25522 test -z "`sort < /dev/null 2>&1`" || exit 77
25523
25524
25525 decho Creating directory structure
25526 mkdir directory
25527 mkdir directory/subdir
25528 genfile --file=directory/file
25529
25530 decho Creating initial archive
25531 tar -cf archive.1 -g db.1 directory
25532
25533 decho Renaming
25534 mv directory/subdir directory/subdir.0
25535 mv directory dir
25536
25537 decho Creating incremental archive
25538 cp db.1 db.2
25539 tar -cf archive.2 -g db.2 dir
25540
25541 mv dir orig
25542
25543 decho First restore
25544 tar -xf archive.1 -g db.1 --warning=no-timestamp
25545 find directory | sort
25546
25547 decho Second restore
25548 tar -xf archive.2 -g db.2 --warning=no-timestamp
25549 find dir | sort
25550 )"
25551 echo rename05.at:27 >"$at_check_line_file"
25552
25553 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
25554    false; }; then
25555   ( $at_traceon;
25556 mkdir gnu
25557 (cd gnu
25558 TEST_TAR_FORMAT=gnu
25559 export TEST_TAR_FORMAT
25560 TAR_OPTIONS="-H gnu"
25561 export TAR_OPTIONS
25562 rm -rf *
25563
25564
25565 test -z "`sort < /dev/null 2>&1`" || exit 77
25566
25567
25568 decho Creating directory structure
25569 mkdir directory
25570 mkdir directory/subdir
25571 genfile --file=directory/file
25572
25573 decho Creating initial archive
25574 tar -cf archive.1 -g db.1 directory
25575
25576 decho Renaming
25577 mv directory/subdir directory/subdir.0
25578 mv directory dir
25579
25580 decho Creating incremental archive
25581 cp db.1 db.2
25582 tar -cf archive.2 -g db.2 dir
25583
25584 mv dir orig
25585
25586 decho First restore
25587 tar -xf archive.1 -g db.1 --warning=no-timestamp
25588 find directory | sort
25589
25590 decho Second restore
25591 tar -xf archive.2 -g db.2 --warning=no-timestamp
25592 find dir | sort
25593 ) ) >"$at_stdout" 2>"$at_stder1"
25594   at_func_filter_trace $?
25595 else
25596   ( :;
25597 mkdir gnu
25598 (cd gnu
25599 TEST_TAR_FORMAT=gnu
25600 export TEST_TAR_FORMAT
25601 TAR_OPTIONS="-H gnu"
25602 export TAR_OPTIONS
25603 rm -rf *
25604
25605
25606 test -z "`sort < /dev/null 2>&1`" || exit 77
25607
25608
25609 decho Creating directory structure
25610 mkdir directory
25611 mkdir directory/subdir
25612 genfile --file=directory/file
25613
25614 decho Creating initial archive
25615 tar -cf archive.1 -g db.1 directory
25616
25617 decho Renaming
25618 mv directory/subdir directory/subdir.0
25619 mv directory dir
25620
25621 decho Creating incremental archive
25622 cp db.1 db.2
25623 tar -cf archive.2 -g db.2 dir
25624
25625 mv dir orig
25626
25627 decho First restore
25628 tar -xf archive.1 -g db.1 --warning=no-timestamp
25629 find directory | sort
25630
25631 decho Second restore
25632 tar -xf archive.2 -g db.2 --warning=no-timestamp
25633 find dir | sort
25634 ) ) >"$at_stdout" 2>"$at_stderr"
25635 fi
25636 at_status=$?
25637 at_failed=false
25638 echo >>"$at_stderr"; $as_echo "Creating directory structure
25639 Creating initial archive
25640 Renaming
25641 Creating incremental archive
25642 First restore
25643 Second restore
25644 " | \
25645   $at_diff - "$at_stderr" || at_failed=:
25646 echo >>"$at_stdout"; $as_echo "Creating directory structure
25647 Creating initial archive
25648 Renaming
25649 Creating incremental archive
25650 First restore
25651 directory
25652 directory/file
25653 directory/subdir
25654 Second restore
25655 dir
25656 dir/subdir.0
25657 " | \
25658   $at_diff - "$at_stdout" || at_failed=:
25659 at_func_check_status 0 $at_status "$at_srcdir/rename05.at:27"
25660
25661 $at_failed && at_func_log_failure
25662 $at_traceon; }
25663
25664               { $at_traceoff
25665 $as_echo "$at_srcdir/rename05.at:27:
25666 mkdir oldgnu
25667 (cd oldgnu
25668 TEST_TAR_FORMAT=oldgnu
25669 export TEST_TAR_FORMAT
25670 TAR_OPTIONS=\"-H oldgnu\"
25671 export TAR_OPTIONS
25672 rm -rf *
25673
25674
25675 test -z "`sort < /dev/null 2>&1`" || exit 77
25676
25677
25678 decho Creating directory structure
25679 mkdir directory
25680 mkdir directory/subdir
25681 genfile --file=directory/file
25682
25683 decho Creating initial archive
25684 tar -cf archive.1 -g db.1 directory
25685
25686 decho Renaming
25687 mv directory/subdir directory/subdir.0
25688 mv directory dir
25689
25690 decho Creating incremental archive
25691 cp db.1 db.2
25692 tar -cf archive.2 -g db.2 dir
25693
25694 mv dir orig
25695
25696 decho First restore
25697 tar -xf archive.1 -g db.1 --warning=no-timestamp
25698 find directory | sort
25699
25700 decho Second restore
25701 tar -xf archive.2 -g db.2 --warning=no-timestamp
25702 find dir | sort
25703 )"
25704 echo rename05.at:27 >"$at_check_line_file"
25705
25706 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
25707    false; }; then
25708   ( $at_traceon;
25709 mkdir oldgnu
25710 (cd oldgnu
25711 TEST_TAR_FORMAT=oldgnu
25712 export TEST_TAR_FORMAT
25713 TAR_OPTIONS="-H oldgnu"
25714 export TAR_OPTIONS
25715 rm -rf *
25716
25717
25718 test -z "`sort < /dev/null 2>&1`" || exit 77
25719
25720
25721 decho Creating directory structure
25722 mkdir directory
25723 mkdir directory/subdir
25724 genfile --file=directory/file
25725
25726 decho Creating initial archive
25727 tar -cf archive.1 -g db.1 directory
25728
25729 decho Renaming
25730 mv directory/subdir directory/subdir.0
25731 mv directory dir
25732
25733 decho Creating incremental archive
25734 cp db.1 db.2
25735 tar -cf archive.2 -g db.2 dir
25736
25737 mv dir orig
25738
25739 decho First restore
25740 tar -xf archive.1 -g db.1 --warning=no-timestamp
25741 find directory | sort
25742
25743 decho Second restore
25744 tar -xf archive.2 -g db.2 --warning=no-timestamp
25745 find dir | sort
25746 ) ) >"$at_stdout" 2>"$at_stder1"
25747   at_func_filter_trace $?
25748 else
25749   ( :;
25750 mkdir oldgnu
25751 (cd oldgnu
25752 TEST_TAR_FORMAT=oldgnu
25753 export TEST_TAR_FORMAT
25754 TAR_OPTIONS="-H oldgnu"
25755 export TAR_OPTIONS
25756 rm -rf *
25757
25758
25759 test -z "`sort < /dev/null 2>&1`" || exit 77
25760
25761
25762 decho Creating directory structure
25763 mkdir directory
25764 mkdir directory/subdir
25765 genfile --file=directory/file
25766
25767 decho Creating initial archive
25768 tar -cf archive.1 -g db.1 directory
25769
25770 decho Renaming
25771 mv directory/subdir directory/subdir.0
25772 mv directory dir
25773
25774 decho Creating incremental archive
25775 cp db.1 db.2
25776 tar -cf archive.2 -g db.2 dir
25777
25778 mv dir orig
25779
25780 decho First restore
25781 tar -xf archive.1 -g db.1 --warning=no-timestamp
25782 find directory | sort
25783
25784 decho Second restore
25785 tar -xf archive.2 -g db.2 --warning=no-timestamp
25786 find dir | sort
25787 ) ) >"$at_stdout" 2>"$at_stderr"
25788 fi
25789 at_status=$?
25790 at_failed=false
25791 echo >>"$at_stderr"; $as_echo "Creating directory structure
25792 Creating initial archive
25793 Renaming
25794 Creating incremental archive
25795 First restore
25796 Second restore
25797 " | \
25798   $at_diff - "$at_stderr" || at_failed=:
25799 echo >>"$at_stdout"; $as_echo "Creating directory structure
25800 Creating initial archive
25801 Renaming
25802 Creating incremental archive
25803 First restore
25804 directory
25805 directory/file
25806 directory/subdir
25807 Second restore
25808 dir
25809 dir/subdir.0
25810 " | \
25811   $at_diff - "$at_stdout" || at_failed=:
25812 at_func_check_status 0 $at_status "$at_srcdir/rename05.at:27"
25813
25814 $at_failed && at_func_log_failure
25815 $at_traceon; }
25816
25817               { $at_traceoff
25818 $as_echo "$at_srcdir/rename05.at:27:
25819 mkdir posix
25820 (cd posix
25821 TEST_TAR_FORMAT=posix
25822 export TEST_TAR_FORMAT
25823 TAR_OPTIONS=\"-H posix\"
25824 export TAR_OPTIONS
25825 rm -rf *
25826
25827
25828 test -z "`sort < /dev/null 2>&1`" || exit 77
25829
25830
25831 decho Creating directory structure
25832 mkdir directory
25833 mkdir directory/subdir
25834 genfile --file=directory/file
25835
25836 decho Creating initial archive
25837 tar -cf archive.1 -g db.1 directory
25838
25839 decho Renaming
25840 mv directory/subdir directory/subdir.0
25841 mv directory dir
25842
25843 decho Creating incremental archive
25844 cp db.1 db.2
25845 tar -cf archive.2 -g db.2 dir
25846
25847 mv dir orig
25848
25849 decho First restore
25850 tar -xf archive.1 -g db.1 --warning=no-timestamp
25851 find directory | sort
25852
25853 decho Second restore
25854 tar -xf archive.2 -g db.2 --warning=no-timestamp
25855 find dir | sort
25856 )"
25857 echo rename05.at:27 >"$at_check_line_file"
25858
25859 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
25860    false; }; then
25861   ( $at_traceon;
25862 mkdir posix
25863 (cd posix
25864 TEST_TAR_FORMAT=posix
25865 export TEST_TAR_FORMAT
25866 TAR_OPTIONS="-H posix"
25867 export TAR_OPTIONS
25868 rm -rf *
25869
25870
25871 test -z "`sort < /dev/null 2>&1`" || exit 77
25872
25873
25874 decho Creating directory structure
25875 mkdir directory
25876 mkdir directory/subdir
25877 genfile --file=directory/file
25878
25879 decho Creating initial archive
25880 tar -cf archive.1 -g db.1 directory
25881
25882 decho Renaming
25883 mv directory/subdir directory/subdir.0
25884 mv directory dir
25885
25886 decho Creating incremental archive
25887 cp db.1 db.2
25888 tar -cf archive.2 -g db.2 dir
25889
25890 mv dir orig
25891
25892 decho First restore
25893 tar -xf archive.1 -g db.1 --warning=no-timestamp
25894 find directory | sort
25895
25896 decho Second restore
25897 tar -xf archive.2 -g db.2 --warning=no-timestamp
25898 find dir | sort
25899 ) ) >"$at_stdout" 2>"$at_stder1"
25900   at_func_filter_trace $?
25901 else
25902   ( :;
25903 mkdir posix
25904 (cd posix
25905 TEST_TAR_FORMAT=posix
25906 export TEST_TAR_FORMAT
25907 TAR_OPTIONS="-H posix"
25908 export TAR_OPTIONS
25909 rm -rf *
25910
25911
25912 test -z "`sort < /dev/null 2>&1`" || exit 77
25913
25914
25915 decho Creating directory structure
25916 mkdir directory
25917 mkdir directory/subdir
25918 genfile --file=directory/file
25919
25920 decho Creating initial archive
25921 tar -cf archive.1 -g db.1 directory
25922
25923 decho Renaming
25924 mv directory/subdir directory/subdir.0
25925 mv directory dir
25926
25927 decho Creating incremental archive
25928 cp db.1 db.2
25929 tar -cf archive.2 -g db.2 dir
25930
25931 mv dir orig
25932
25933 decho First restore
25934 tar -xf archive.1 -g db.1 --warning=no-timestamp
25935 find directory | sort
25936
25937 decho Second restore
25938 tar -xf archive.2 -g db.2 --warning=no-timestamp
25939 find dir | sort
25940 ) ) >"$at_stdout" 2>"$at_stderr"
25941 fi
25942 at_status=$?
25943 at_failed=false
25944 echo >>"$at_stderr"; $as_echo "Creating directory structure
25945 Creating initial archive
25946 Renaming
25947 Creating incremental archive
25948 First restore
25949 Second restore
25950 " | \
25951   $at_diff - "$at_stderr" || at_failed=:
25952 echo >>"$at_stdout"; $as_echo "Creating directory structure
25953 Creating initial archive
25954 Renaming
25955 Creating incremental archive
25956 First restore
25957 directory
25958 directory/file
25959 directory/subdir
25960 Second restore
25961 dir
25962 dir/subdir.0
25963 " | \
25964   $at_diff - "$at_stdout" || at_failed=:
25965 at_func_check_status 0 $at_status "$at_srcdir/rename05.at:27"
25966
25967 $at_failed && at_func_log_failure
25968 $at_traceon; }
25969
25970
25971
25972
25973   $at_traceoff
25974   $at_times_p && times >"$at_times_file"
25975 ) 5>&1 2>&1 | eval $at_tee_pipe
25976 at_status=`cat "$at_status_file"`
25977 #AT_STOP_68
25978 #AT_START_69
25979 # 69. chtype.at:27: changed file types in incrementals
25980 at_setup_line='chtype.at:27'
25981 at_desc="changed file types in incrementals"
25982 $at_quiet $as_echo_n " 69: $at_desc             "
25983 at_xfail=no
25984       test -f $XFAILFILE && at_xfail=yes
25985 echo "#                             -*- compilation -*-" >> "$at_group_log"
25986 (
25987   $as_echo "69. chtype.at:27: testing ..."
25988   $at_traceon
25989
25990
25991
25992
25993
25994   { $at_traceoff
25995 $as_echo "$at_srcdir/chtype.at:30:
25996 mkdir gnu
25997 (cd gnu
25998 TEST_TAR_FORMAT=gnu
25999 export TEST_TAR_FORMAT
26000 TAR_OPTIONS=\"-H gnu\"
26001 export TAR_OPTIONS
26002 rm -rf *
26003
26004
26005 test -z "`sort < /dev/null 2>&1`" || exit 77
26006
26007
26008 install-sh -d directory/b/c >/dev/null && genfile --file directory/b/c/x || exit 77
26009 mkdir directory/a
26010 genfile --file directory/a/a
26011
26012 echo First backup
26013 tar --create --file=archive.1 --listed-incremental=db.1 directory
26014
26015 sleep 2
26016
26017 # Remove directory b and create a file with this name.
26018 # Previous versions were not able to restore over this file.
26019 rm -r directory/b
26020 genfile --file directory/b
26021 genfile --file directory/a/b
26022
26023 echo Second backup
26024 tar --create --file=archive.2 --listed-incremental=db.2 directory
26025
26026 # Delete a
26027 rm -r directory
26028
26029 echo Restore archive.1
26030 tar -xf archive.1 --listed-incremental=/dev/null --warning=no-timestamp
26031 echo Restore archive.2
26032 tar -xf archive.2 --listed-incremental=/dev/null --warning=no-timestamp
26033 find directory | sort
26034 )"
26035 echo chtype.at:30 >"$at_check_line_file"
26036
26037 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
26038    false; }; then
26039   ( $at_traceon;
26040 mkdir gnu
26041 (cd gnu
26042 TEST_TAR_FORMAT=gnu
26043 export TEST_TAR_FORMAT
26044 TAR_OPTIONS="-H gnu"
26045 export TAR_OPTIONS
26046 rm -rf *
26047
26048
26049 test -z "`sort < /dev/null 2>&1`" || exit 77
26050
26051
26052 install-sh -d directory/b/c >/dev/null && genfile --file directory/b/c/x || exit 77
26053 mkdir directory/a
26054 genfile --file directory/a/a
26055
26056 echo First backup
26057 tar --create --file=archive.1 --listed-incremental=db.1 directory
26058
26059 sleep 2
26060
26061 # Remove directory b and create a file with this name.
26062 # Previous versions were not able to restore over this file.
26063 rm -r directory/b
26064 genfile --file directory/b
26065 genfile --file directory/a/b
26066
26067 echo Second backup
26068 tar --create --file=archive.2 --listed-incremental=db.2 directory
26069
26070 # Delete a
26071 rm -r directory
26072
26073 echo Restore archive.1
26074 tar -xf archive.1 --listed-incremental=/dev/null --warning=no-timestamp
26075 echo Restore archive.2
26076 tar -xf archive.2 --listed-incremental=/dev/null --warning=no-timestamp
26077 find directory | sort
26078 ) ) >"$at_stdout" 2>"$at_stder1"
26079   at_func_filter_trace $?
26080 else
26081   ( :;
26082 mkdir gnu
26083 (cd gnu
26084 TEST_TAR_FORMAT=gnu
26085 export TEST_TAR_FORMAT
26086 TAR_OPTIONS="-H gnu"
26087 export TAR_OPTIONS
26088 rm -rf *
26089
26090
26091 test -z "`sort < /dev/null 2>&1`" || exit 77
26092
26093
26094 install-sh -d directory/b/c >/dev/null && genfile --file directory/b/c/x || exit 77
26095 mkdir directory/a
26096 genfile --file directory/a/a
26097
26098 echo First backup
26099 tar --create --file=archive.1 --listed-incremental=db.1 directory
26100
26101 sleep 2
26102
26103 # Remove directory b and create a file with this name.
26104 # Previous versions were not able to restore over this file.
26105 rm -r directory/b
26106 genfile --file directory/b
26107 genfile --file directory/a/b
26108
26109 echo Second backup
26110 tar --create --file=archive.2 --listed-incremental=db.2 directory
26111
26112 # Delete a
26113 rm -r directory
26114
26115 echo Restore archive.1
26116 tar -xf archive.1 --listed-incremental=/dev/null --warning=no-timestamp
26117 echo Restore archive.2
26118 tar -xf archive.2 --listed-incremental=/dev/null --warning=no-timestamp
26119 find directory | sort
26120 ) ) >"$at_stdout" 2>"$at_stderr"
26121 fi
26122 at_status=$?
26123 at_failed=false
26124 at_func_diff_devnull "$at_stderr" || at_failed=:
26125 echo >>"$at_stdout"; $as_echo "First backup
26126 Second backup
26127 Restore archive.1
26128 Restore archive.2
26129 directory
26130 directory/a
26131 directory/a/a
26132 directory/a/b
26133 directory/b
26134 " | \
26135   $at_diff - "$at_stdout" || at_failed=:
26136 at_func_check_status 0 $at_status "$at_srcdir/chtype.at:30"
26137
26138 $at_failed && at_func_log_failure
26139 $at_traceon; }
26140
26141               { $at_traceoff
26142 $as_echo "$at_srcdir/chtype.at:30:
26143 mkdir oldgnu
26144 (cd oldgnu
26145 TEST_TAR_FORMAT=oldgnu
26146 export TEST_TAR_FORMAT
26147 TAR_OPTIONS=\"-H oldgnu\"
26148 export TAR_OPTIONS
26149 rm -rf *
26150
26151
26152 test -z "`sort < /dev/null 2>&1`" || exit 77
26153
26154
26155 install-sh -d directory/b/c >/dev/null && genfile --file directory/b/c/x || exit 77
26156 mkdir directory/a
26157 genfile --file directory/a/a
26158
26159 echo First backup
26160 tar --create --file=archive.1 --listed-incremental=db.1 directory
26161
26162 sleep 2
26163
26164 # Remove directory b and create a file with this name.
26165 # Previous versions were not able to restore over this file.
26166 rm -r directory/b
26167 genfile --file directory/b
26168 genfile --file directory/a/b
26169
26170 echo Second backup
26171 tar --create --file=archive.2 --listed-incremental=db.2 directory
26172
26173 # Delete a
26174 rm -r directory
26175
26176 echo Restore archive.1
26177 tar -xf archive.1 --listed-incremental=/dev/null --warning=no-timestamp
26178 echo Restore archive.2
26179 tar -xf archive.2 --listed-incremental=/dev/null --warning=no-timestamp
26180 find directory | sort
26181 )"
26182 echo chtype.at:30 >"$at_check_line_file"
26183
26184 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
26185    false; }; then
26186   ( $at_traceon;
26187 mkdir oldgnu
26188 (cd oldgnu
26189 TEST_TAR_FORMAT=oldgnu
26190 export TEST_TAR_FORMAT
26191 TAR_OPTIONS="-H oldgnu"
26192 export TAR_OPTIONS
26193 rm -rf *
26194
26195
26196 test -z "`sort < /dev/null 2>&1`" || exit 77
26197
26198
26199 install-sh -d directory/b/c >/dev/null && genfile --file directory/b/c/x || exit 77
26200 mkdir directory/a
26201 genfile --file directory/a/a
26202
26203 echo First backup
26204 tar --create --file=archive.1 --listed-incremental=db.1 directory
26205
26206 sleep 2
26207
26208 # Remove directory b and create a file with this name.
26209 # Previous versions were not able to restore over this file.
26210 rm -r directory/b
26211 genfile --file directory/b
26212 genfile --file directory/a/b
26213
26214 echo Second backup
26215 tar --create --file=archive.2 --listed-incremental=db.2 directory
26216
26217 # Delete a
26218 rm -r directory
26219
26220 echo Restore archive.1
26221 tar -xf archive.1 --listed-incremental=/dev/null --warning=no-timestamp
26222 echo Restore archive.2
26223 tar -xf archive.2 --listed-incremental=/dev/null --warning=no-timestamp
26224 find directory | sort
26225 ) ) >"$at_stdout" 2>"$at_stder1"
26226   at_func_filter_trace $?
26227 else
26228   ( :;
26229 mkdir oldgnu
26230 (cd oldgnu
26231 TEST_TAR_FORMAT=oldgnu
26232 export TEST_TAR_FORMAT
26233 TAR_OPTIONS="-H oldgnu"
26234 export TAR_OPTIONS
26235 rm -rf *
26236
26237
26238 test -z "`sort < /dev/null 2>&1`" || exit 77
26239
26240
26241 install-sh -d directory/b/c >/dev/null && genfile --file directory/b/c/x || exit 77
26242 mkdir directory/a
26243 genfile --file directory/a/a
26244
26245 echo First backup
26246 tar --create --file=archive.1 --listed-incremental=db.1 directory
26247
26248 sleep 2
26249
26250 # Remove directory b and create a file with this name.
26251 # Previous versions were not able to restore over this file.
26252 rm -r directory/b
26253 genfile --file directory/b
26254 genfile --file directory/a/b
26255
26256 echo Second backup
26257 tar --create --file=archive.2 --listed-incremental=db.2 directory
26258
26259 # Delete a
26260 rm -r directory
26261
26262 echo Restore archive.1
26263 tar -xf archive.1 --listed-incremental=/dev/null --warning=no-timestamp
26264 echo Restore archive.2
26265 tar -xf archive.2 --listed-incremental=/dev/null --warning=no-timestamp
26266 find directory | sort
26267 ) ) >"$at_stdout" 2>"$at_stderr"
26268 fi
26269 at_status=$?
26270 at_failed=false
26271 at_func_diff_devnull "$at_stderr" || at_failed=:
26272 echo >>"$at_stdout"; $as_echo "First backup
26273 Second backup
26274 Restore archive.1
26275 Restore archive.2
26276 directory
26277 directory/a
26278 directory/a/a
26279 directory/a/b
26280 directory/b
26281 " | \
26282   $at_diff - "$at_stdout" || at_failed=:
26283 at_func_check_status 0 $at_status "$at_srcdir/chtype.at:30"
26284
26285 $at_failed && at_func_log_failure
26286 $at_traceon; }
26287
26288               { $at_traceoff
26289 $as_echo "$at_srcdir/chtype.at:30:
26290 mkdir posix
26291 (cd posix
26292 TEST_TAR_FORMAT=posix
26293 export TEST_TAR_FORMAT
26294 TAR_OPTIONS=\"-H posix\"
26295 export TAR_OPTIONS
26296 rm -rf *
26297
26298
26299 test -z "`sort < /dev/null 2>&1`" || exit 77
26300
26301
26302 install-sh -d directory/b/c >/dev/null && genfile --file directory/b/c/x || exit 77
26303 mkdir directory/a
26304 genfile --file directory/a/a
26305
26306 echo First backup
26307 tar --create --file=archive.1 --listed-incremental=db.1 directory
26308
26309 sleep 2
26310
26311 # Remove directory b and create a file with this name.
26312 # Previous versions were not able to restore over this file.
26313 rm -r directory/b
26314 genfile --file directory/b
26315 genfile --file directory/a/b
26316
26317 echo Second backup
26318 tar --create --file=archive.2 --listed-incremental=db.2 directory
26319
26320 # Delete a
26321 rm -r directory
26322
26323 echo Restore archive.1
26324 tar -xf archive.1 --listed-incremental=/dev/null --warning=no-timestamp
26325 echo Restore archive.2
26326 tar -xf archive.2 --listed-incremental=/dev/null --warning=no-timestamp
26327 find directory | sort
26328 )"
26329 echo chtype.at:30 >"$at_check_line_file"
26330
26331 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
26332    false; }; then
26333   ( $at_traceon;
26334 mkdir posix
26335 (cd posix
26336 TEST_TAR_FORMAT=posix
26337 export TEST_TAR_FORMAT
26338 TAR_OPTIONS="-H posix"
26339 export TAR_OPTIONS
26340 rm -rf *
26341
26342
26343 test -z "`sort < /dev/null 2>&1`" || exit 77
26344
26345
26346 install-sh -d directory/b/c >/dev/null && genfile --file directory/b/c/x || exit 77
26347 mkdir directory/a
26348 genfile --file directory/a/a
26349
26350 echo First backup
26351 tar --create --file=archive.1 --listed-incremental=db.1 directory
26352
26353 sleep 2
26354
26355 # Remove directory b and create a file with this name.
26356 # Previous versions were not able to restore over this file.
26357 rm -r directory/b
26358 genfile --file directory/b
26359 genfile --file directory/a/b
26360
26361 echo Second backup
26362 tar --create --file=archive.2 --listed-incremental=db.2 directory
26363
26364 # Delete a
26365 rm -r directory
26366
26367 echo Restore archive.1
26368 tar -xf archive.1 --listed-incremental=/dev/null --warning=no-timestamp
26369 echo Restore archive.2
26370 tar -xf archive.2 --listed-incremental=/dev/null --warning=no-timestamp
26371 find directory | sort
26372 ) ) >"$at_stdout" 2>"$at_stder1"
26373   at_func_filter_trace $?
26374 else
26375   ( :;
26376 mkdir posix
26377 (cd posix
26378 TEST_TAR_FORMAT=posix
26379 export TEST_TAR_FORMAT
26380 TAR_OPTIONS="-H posix"
26381 export TAR_OPTIONS
26382 rm -rf *
26383
26384
26385 test -z "`sort < /dev/null 2>&1`" || exit 77
26386
26387
26388 install-sh -d directory/b/c >/dev/null && genfile --file directory/b/c/x || exit 77
26389 mkdir directory/a
26390 genfile --file directory/a/a
26391
26392 echo First backup
26393 tar --create --file=archive.1 --listed-incremental=db.1 directory
26394
26395 sleep 2
26396
26397 # Remove directory b and create a file with this name.
26398 # Previous versions were not able to restore over this file.
26399 rm -r directory/b
26400 genfile --file directory/b
26401 genfile --file directory/a/b
26402
26403 echo Second backup
26404 tar --create --file=archive.2 --listed-incremental=db.2 directory
26405
26406 # Delete a
26407 rm -r directory
26408
26409 echo Restore archive.1
26410 tar -xf archive.1 --listed-incremental=/dev/null --warning=no-timestamp
26411 echo Restore archive.2
26412 tar -xf archive.2 --listed-incremental=/dev/null --warning=no-timestamp
26413 find directory | sort
26414 ) ) >"$at_stdout" 2>"$at_stderr"
26415 fi
26416 at_status=$?
26417 at_failed=false
26418 at_func_diff_devnull "$at_stderr" || at_failed=:
26419 echo >>"$at_stdout"; $as_echo "First backup
26420 Second backup
26421 Restore archive.1
26422 Restore archive.2
26423 directory
26424 directory/a
26425 directory/a/a
26426 directory/a/b
26427 directory/b
26428 " | \
26429   $at_diff - "$at_stdout" || at_failed=:
26430 at_func_check_status 0 $at_status "$at_srcdir/chtype.at:30"
26431
26432 $at_failed && at_func_log_failure
26433 $at_traceon; }
26434
26435
26436
26437
26438   $at_traceoff
26439   $at_times_p && times >"$at_times_file"
26440 ) 5>&1 2>&1 | eval $at_tee_pipe
26441 at_status=`cat "$at_status_file"`
26442 #AT_STOP_69
26443 #AT_START_70
26444 # 70. ignfail.at:23: ignfail
26445 at_setup_line='ignfail.at:23'
26446 at_desc="ignfail"
26447 $at_quiet $as_echo_n " 70: $at_desc                                        "
26448 at_xfail=no
26449       test -f $XFAILFILE && at_xfail=yes
26450 echo "#                             -*- compilation -*-" >> "$at_group_log"
26451 (
26452   $as_echo "70. ignfail.at:23: testing ..."
26453   $at_traceon
26454
26455
26456
26457
26458
26459   { $at_traceoff
26460 $as_echo "$at_srcdir/ignfail.at:26:
26461 mkdir v7
26462 (cd v7
26463 TEST_TAR_FORMAT=v7
26464 export TEST_TAR_FORMAT
26465 TAR_OPTIONS=\"-H v7\"
26466 export TAR_OPTIONS
26467 rm -rf *
26468
26469 # The test is meaningless for super-user.
26470
26471 echo "test" > $$
26472 chmod 0 $$
26473 cat $$ > /dev/null 2>&1
26474 result=$?
26475 rm -f $$
26476 test $result -eq 0 && exit 77
26477
26478
26479 touch file
26480 mkdir directory
26481 touch directory/file
26482
26483 echo 1>&2 -----
26484 chmod 000 file
26485 tar cf archive file
26486 status=\$?
26487 chmod 600 file
26488 test \$status = 2 || exit 1
26489
26490 echo 1>&2 -----
26491 chmod 000 file
26492 tar cf archive --ignore-failed-read file || exit 1
26493 status=\$?
26494 chmod 600 file
26495 test \$status = 0 || exit 1
26496
26497 echo 1>&2 -----
26498 chmod 000 directory
26499 tar cf archive directory
26500 status=\$?
26501 chmod 700 directory
26502 test \$status = 2 || exit 1
26503
26504 echo 1>&2 -----
26505 chmod 000 directory
26506 tar cf archive --ignore-failed-read directory || exit 1
26507 status=\$?
26508 chmod 700 directory
26509 test \$status = 0
26510 )"
26511 echo ignfail.at:26 >"$at_check_line_file"
26512
26513 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
26514    false; }; then
26515   ( $at_traceon;
26516 mkdir v7
26517 (cd v7
26518 TEST_TAR_FORMAT=v7
26519 export TEST_TAR_FORMAT
26520 TAR_OPTIONS="-H v7"
26521 export TAR_OPTIONS
26522 rm -rf *
26523
26524 # The test is meaningless for super-user.
26525
26526 echo "test" > $$
26527 chmod 0 $$
26528 cat $$ > /dev/null 2>&1
26529 result=$?
26530 rm -f $$
26531 test $result -eq 0 && exit 77
26532
26533
26534 touch file
26535 mkdir directory
26536 touch directory/file
26537
26538 echo 1>&2 -----
26539 chmod 000 file
26540 tar cf archive file
26541 status=$?
26542 chmod 600 file
26543 test $status = 2 || exit 1
26544
26545 echo 1>&2 -----
26546 chmod 000 file
26547 tar cf archive --ignore-failed-read file || exit 1
26548 status=$?
26549 chmod 600 file
26550 test $status = 0 || exit 1
26551
26552 echo 1>&2 -----
26553 chmod 000 directory
26554 tar cf archive directory
26555 status=$?
26556 chmod 700 directory
26557 test $status = 2 || exit 1
26558
26559 echo 1>&2 -----
26560 chmod 000 directory
26561 tar cf archive --ignore-failed-read directory || exit 1
26562 status=$?
26563 chmod 700 directory
26564 test $status = 0
26565 ) ) >"$at_stdout" 2>"$at_stder1"
26566   at_func_filter_trace $?
26567 else
26568   ( :;
26569 mkdir v7
26570 (cd v7
26571 TEST_TAR_FORMAT=v7
26572 export TEST_TAR_FORMAT
26573 TAR_OPTIONS="-H v7"
26574 export TAR_OPTIONS
26575 rm -rf *
26576
26577 # The test is meaningless for super-user.
26578
26579 echo "test" > $$
26580 chmod 0 $$
26581 cat $$ > /dev/null 2>&1
26582 result=$?
26583 rm -f $$
26584 test $result -eq 0 && exit 77
26585
26586
26587 touch file
26588 mkdir directory
26589 touch directory/file
26590
26591 echo 1>&2 -----
26592 chmod 000 file
26593 tar cf archive file
26594 status=$?
26595 chmod 600 file
26596 test $status = 2 || exit 1
26597
26598 echo 1>&2 -----
26599 chmod 000 file
26600 tar cf archive --ignore-failed-read file || exit 1
26601 status=$?
26602 chmod 600 file
26603 test $status = 0 || exit 1
26604
26605 echo 1>&2 -----
26606 chmod 000 directory
26607 tar cf archive directory
26608 status=$?
26609 chmod 700 directory
26610 test $status = 2 || exit 1
26611
26612 echo 1>&2 -----
26613 chmod 000 directory
26614 tar cf archive --ignore-failed-read directory || exit 1
26615 status=$?
26616 chmod 700 directory
26617 test $status = 0
26618 ) ) >"$at_stdout" 2>"$at_stderr"
26619 fi
26620 at_status=$?
26621 at_failed=false
26622 echo >>"$at_stderr"; $as_echo "-----
26623 tar: file: Cannot open: Permission denied
26624 tar: Exiting with failure status due to previous errors
26625 -----
26626 tar: file: Warning: Cannot open: Permission denied
26627 -----
26628 tar: directory: Cannot open: Permission denied
26629 tar: Exiting with failure status due to previous errors
26630 -----
26631 tar: directory: Warning: Cannot open: Permission denied
26632 " | \
26633   $at_diff - "$at_stderr" || at_failed=:
26634 at_func_diff_devnull "$at_stdout" || at_failed=:
26635 at_func_check_status 0 $at_status "$at_srcdir/ignfail.at:26"
26636
26637 $at_failed && at_func_log_failure
26638 $at_traceon; }
26639
26640               { $at_traceoff
26641 $as_echo "$at_srcdir/ignfail.at:26:
26642 mkdir oldgnu
26643 (cd oldgnu
26644 TEST_TAR_FORMAT=oldgnu
26645 export TEST_TAR_FORMAT
26646 TAR_OPTIONS=\"-H oldgnu\"
26647 export TAR_OPTIONS
26648 rm -rf *
26649
26650 # The test is meaningless for super-user.
26651
26652 echo "test" > $$
26653 chmod 0 $$
26654 cat $$ > /dev/null 2>&1
26655 result=$?
26656 rm -f $$
26657 test $result -eq 0 && exit 77
26658
26659
26660 touch file
26661 mkdir directory
26662 touch directory/file
26663
26664 echo 1>&2 -----
26665 chmod 000 file
26666 tar cf archive file
26667 status=\$?
26668 chmod 600 file
26669 test \$status = 2 || exit 1
26670
26671 echo 1>&2 -----
26672 chmod 000 file
26673 tar cf archive --ignore-failed-read file || exit 1
26674 status=\$?
26675 chmod 600 file
26676 test \$status = 0 || exit 1
26677
26678 echo 1>&2 -----
26679 chmod 000 directory
26680 tar cf archive directory
26681 status=\$?
26682 chmod 700 directory
26683 test \$status = 2 || exit 1
26684
26685 echo 1>&2 -----
26686 chmod 000 directory
26687 tar cf archive --ignore-failed-read directory || exit 1
26688 status=\$?
26689 chmod 700 directory
26690 test \$status = 0
26691 )"
26692 echo ignfail.at:26 >"$at_check_line_file"
26693
26694 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
26695    false; }; then
26696   ( $at_traceon;
26697 mkdir oldgnu
26698 (cd oldgnu
26699 TEST_TAR_FORMAT=oldgnu
26700 export TEST_TAR_FORMAT
26701 TAR_OPTIONS="-H oldgnu"
26702 export TAR_OPTIONS
26703 rm -rf *
26704
26705 # The test is meaningless for super-user.
26706
26707 echo "test" > $$
26708 chmod 0 $$
26709 cat $$ > /dev/null 2>&1
26710 result=$?
26711 rm -f $$
26712 test $result -eq 0 && exit 77
26713
26714
26715 touch file
26716 mkdir directory
26717 touch directory/file
26718
26719 echo 1>&2 -----
26720 chmod 000 file
26721 tar cf archive file
26722 status=$?
26723 chmod 600 file
26724 test $status = 2 || exit 1
26725
26726 echo 1>&2 -----
26727 chmod 000 file
26728 tar cf archive --ignore-failed-read file || exit 1
26729 status=$?
26730 chmod 600 file
26731 test $status = 0 || exit 1
26732
26733 echo 1>&2 -----
26734 chmod 000 directory
26735 tar cf archive directory
26736 status=$?
26737 chmod 700 directory
26738 test $status = 2 || exit 1
26739
26740 echo 1>&2 -----
26741 chmod 000 directory
26742 tar cf archive --ignore-failed-read directory || exit 1
26743 status=$?
26744 chmod 700 directory
26745 test $status = 0
26746 ) ) >"$at_stdout" 2>"$at_stder1"
26747   at_func_filter_trace $?
26748 else
26749   ( :;
26750 mkdir oldgnu
26751 (cd oldgnu
26752 TEST_TAR_FORMAT=oldgnu
26753 export TEST_TAR_FORMAT
26754 TAR_OPTIONS="-H oldgnu"
26755 export TAR_OPTIONS
26756 rm -rf *
26757
26758 # The test is meaningless for super-user.
26759
26760 echo "test" > $$
26761 chmod 0 $$
26762 cat $$ > /dev/null 2>&1
26763 result=$?
26764 rm -f $$
26765 test $result -eq 0 && exit 77
26766
26767
26768 touch file
26769 mkdir directory
26770 touch directory/file
26771
26772 echo 1>&2 -----
26773 chmod 000 file
26774 tar cf archive file
26775 status=$?
26776 chmod 600 file
26777 test $status = 2 || exit 1
26778
26779 echo 1>&2 -----
26780 chmod 000 file
26781 tar cf archive --ignore-failed-read file || exit 1
26782 status=$?
26783 chmod 600 file
26784 test $status = 0 || exit 1
26785
26786 echo 1>&2 -----
26787 chmod 000 directory
26788 tar cf archive directory
26789 status=$?
26790 chmod 700 directory
26791 test $status = 2 || exit 1
26792
26793 echo 1>&2 -----
26794 chmod 000 directory
26795 tar cf archive --ignore-failed-read directory || exit 1
26796 status=$?
26797 chmod 700 directory
26798 test $status = 0
26799 ) ) >"$at_stdout" 2>"$at_stderr"
26800 fi
26801 at_status=$?
26802 at_failed=false
26803 echo >>"$at_stderr"; $as_echo "-----
26804 tar: file: Cannot open: Permission denied
26805 tar: Exiting with failure status due to previous errors
26806 -----
26807 tar: file: Warning: Cannot open: Permission denied
26808 -----
26809 tar: directory: Cannot open: Permission denied
26810 tar: Exiting with failure status due to previous errors
26811 -----
26812 tar: directory: Warning: Cannot open: Permission denied
26813 " | \
26814   $at_diff - "$at_stderr" || at_failed=:
26815 at_func_diff_devnull "$at_stdout" || at_failed=:
26816 at_func_check_status 0 $at_status "$at_srcdir/ignfail.at:26"
26817
26818 $at_failed && at_func_log_failure
26819 $at_traceon; }
26820
26821               { $at_traceoff
26822 $as_echo "$at_srcdir/ignfail.at:26:
26823 mkdir ustar
26824 (cd ustar
26825 TEST_TAR_FORMAT=ustar
26826 export TEST_TAR_FORMAT
26827 TAR_OPTIONS=\"-H ustar\"
26828 export TAR_OPTIONS
26829 rm -rf *
26830
26831 # The test is meaningless for super-user.
26832
26833 echo "test" > $$
26834 chmod 0 $$
26835 cat $$ > /dev/null 2>&1
26836 result=$?
26837 rm -f $$
26838 test $result -eq 0 && exit 77
26839
26840
26841 touch file
26842 mkdir directory
26843 touch directory/file
26844
26845 echo 1>&2 -----
26846 chmod 000 file
26847 tar cf archive file
26848 status=\$?
26849 chmod 600 file
26850 test \$status = 2 || exit 1
26851
26852 echo 1>&2 -----
26853 chmod 000 file
26854 tar cf archive --ignore-failed-read file || exit 1
26855 status=\$?
26856 chmod 600 file
26857 test \$status = 0 || exit 1
26858
26859 echo 1>&2 -----
26860 chmod 000 directory
26861 tar cf archive directory
26862 status=\$?
26863 chmod 700 directory
26864 test \$status = 2 || exit 1
26865
26866 echo 1>&2 -----
26867 chmod 000 directory
26868 tar cf archive --ignore-failed-read directory || exit 1
26869 status=\$?
26870 chmod 700 directory
26871 test \$status = 0
26872 )"
26873 echo ignfail.at:26 >"$at_check_line_file"
26874
26875 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
26876    false; }; then
26877   ( $at_traceon;
26878 mkdir ustar
26879 (cd ustar
26880 TEST_TAR_FORMAT=ustar
26881 export TEST_TAR_FORMAT
26882 TAR_OPTIONS="-H ustar"
26883 export TAR_OPTIONS
26884 rm -rf *
26885
26886 # The test is meaningless for super-user.
26887
26888 echo "test" > $$
26889 chmod 0 $$
26890 cat $$ > /dev/null 2>&1
26891 result=$?
26892 rm -f $$
26893 test $result -eq 0 && exit 77
26894
26895
26896 touch file
26897 mkdir directory
26898 touch directory/file
26899
26900 echo 1>&2 -----
26901 chmod 000 file
26902 tar cf archive file
26903 status=$?
26904 chmod 600 file
26905 test $status = 2 || exit 1
26906
26907 echo 1>&2 -----
26908 chmod 000 file
26909 tar cf archive --ignore-failed-read file || exit 1
26910 status=$?
26911 chmod 600 file
26912 test $status = 0 || exit 1
26913
26914 echo 1>&2 -----
26915 chmod 000 directory
26916 tar cf archive directory
26917 status=$?
26918 chmod 700 directory
26919 test $status = 2 || exit 1
26920
26921 echo 1>&2 -----
26922 chmod 000 directory
26923 tar cf archive --ignore-failed-read directory || exit 1
26924 status=$?
26925 chmod 700 directory
26926 test $status = 0
26927 ) ) >"$at_stdout" 2>"$at_stder1"
26928   at_func_filter_trace $?
26929 else
26930   ( :;
26931 mkdir ustar
26932 (cd ustar
26933 TEST_TAR_FORMAT=ustar
26934 export TEST_TAR_FORMAT
26935 TAR_OPTIONS="-H ustar"
26936 export TAR_OPTIONS
26937 rm -rf *
26938
26939 # The test is meaningless for super-user.
26940
26941 echo "test" > $$
26942 chmod 0 $$
26943 cat $$ > /dev/null 2>&1
26944 result=$?
26945 rm -f $$
26946 test $result -eq 0 && exit 77
26947
26948
26949 touch file
26950 mkdir directory
26951 touch directory/file
26952
26953 echo 1>&2 -----
26954 chmod 000 file
26955 tar cf archive file
26956 status=$?
26957 chmod 600 file
26958 test $status = 2 || exit 1
26959
26960 echo 1>&2 -----
26961 chmod 000 file
26962 tar cf archive --ignore-failed-read file || exit 1
26963 status=$?
26964 chmod 600 file
26965 test $status = 0 || exit 1
26966
26967 echo 1>&2 -----
26968 chmod 000 directory
26969 tar cf archive directory
26970 status=$?
26971 chmod 700 directory
26972 test $status = 2 || exit 1
26973
26974 echo 1>&2 -----
26975 chmod 000 directory
26976 tar cf archive --ignore-failed-read directory || exit 1
26977 status=$?
26978 chmod 700 directory
26979 test $status = 0
26980 ) ) >"$at_stdout" 2>"$at_stderr"
26981 fi
26982 at_status=$?
26983 at_failed=false
26984 echo >>"$at_stderr"; $as_echo "-----
26985 tar: file: Cannot open: Permission denied
26986 tar: Exiting with failure status due to previous errors
26987 -----
26988 tar: file: Warning: Cannot open: Permission denied
26989 -----
26990 tar: directory: Cannot open: Permission denied
26991 tar: Exiting with failure status due to previous errors
26992 -----
26993 tar: directory: Warning: Cannot open: Permission denied
26994 " | \
26995   $at_diff - "$at_stderr" || at_failed=:
26996 at_func_diff_devnull "$at_stdout" || at_failed=:
26997 at_func_check_status 0 $at_status "$at_srcdir/ignfail.at:26"
26998
26999 $at_failed && at_func_log_failure
27000 $at_traceon; }
27001
27002               { $at_traceoff
27003 $as_echo "$at_srcdir/ignfail.at:26:
27004 mkdir posix
27005 (cd posix
27006 TEST_TAR_FORMAT=posix
27007 export TEST_TAR_FORMAT
27008 TAR_OPTIONS=\"-H posix\"
27009 export TAR_OPTIONS
27010 rm -rf *
27011
27012 # The test is meaningless for super-user.
27013
27014 echo "test" > $$
27015 chmod 0 $$
27016 cat $$ > /dev/null 2>&1
27017 result=$?
27018 rm -f $$
27019 test $result -eq 0 && exit 77
27020
27021
27022 touch file
27023 mkdir directory
27024 touch directory/file
27025
27026 echo 1>&2 -----
27027 chmod 000 file
27028 tar cf archive file
27029 status=\$?
27030 chmod 600 file
27031 test \$status = 2 || exit 1
27032
27033 echo 1>&2 -----
27034 chmod 000 file
27035 tar cf archive --ignore-failed-read file || exit 1
27036 status=\$?
27037 chmod 600 file
27038 test \$status = 0 || exit 1
27039
27040 echo 1>&2 -----
27041 chmod 000 directory
27042 tar cf archive directory
27043 status=\$?
27044 chmod 700 directory
27045 test \$status = 2 || exit 1
27046
27047 echo 1>&2 -----
27048 chmod 000 directory
27049 tar cf archive --ignore-failed-read directory || exit 1
27050 status=\$?
27051 chmod 700 directory
27052 test \$status = 0
27053 )"
27054 echo ignfail.at:26 >"$at_check_line_file"
27055
27056 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
27057    false; }; then
27058   ( $at_traceon;
27059 mkdir posix
27060 (cd posix
27061 TEST_TAR_FORMAT=posix
27062 export TEST_TAR_FORMAT
27063 TAR_OPTIONS="-H posix"
27064 export TAR_OPTIONS
27065 rm -rf *
27066
27067 # The test is meaningless for super-user.
27068
27069 echo "test" > $$
27070 chmod 0 $$
27071 cat $$ > /dev/null 2>&1
27072 result=$?
27073 rm -f $$
27074 test $result -eq 0 && exit 77
27075
27076
27077 touch file
27078 mkdir directory
27079 touch directory/file
27080
27081 echo 1>&2 -----
27082 chmod 000 file
27083 tar cf archive file
27084 status=$?
27085 chmod 600 file
27086 test $status = 2 || exit 1
27087
27088 echo 1>&2 -----
27089 chmod 000 file
27090 tar cf archive --ignore-failed-read file || exit 1
27091 status=$?
27092 chmod 600 file
27093 test $status = 0 || exit 1
27094
27095 echo 1>&2 -----
27096 chmod 000 directory
27097 tar cf archive directory
27098 status=$?
27099 chmod 700 directory
27100 test $status = 2 || exit 1
27101
27102 echo 1>&2 -----
27103 chmod 000 directory
27104 tar cf archive --ignore-failed-read directory || exit 1
27105 status=$?
27106 chmod 700 directory
27107 test $status = 0
27108 ) ) >"$at_stdout" 2>"$at_stder1"
27109   at_func_filter_trace $?
27110 else
27111   ( :;
27112 mkdir posix
27113 (cd posix
27114 TEST_TAR_FORMAT=posix
27115 export TEST_TAR_FORMAT
27116 TAR_OPTIONS="-H posix"
27117 export TAR_OPTIONS
27118 rm -rf *
27119
27120 # The test is meaningless for super-user.
27121
27122 echo "test" > $$
27123 chmod 0 $$
27124 cat $$ > /dev/null 2>&1
27125 result=$?
27126 rm -f $$
27127 test $result -eq 0 && exit 77
27128
27129
27130 touch file
27131 mkdir directory
27132 touch directory/file
27133
27134 echo 1>&2 -----
27135 chmod 000 file
27136 tar cf archive file
27137 status=$?
27138 chmod 600 file
27139 test $status = 2 || exit 1
27140
27141 echo 1>&2 -----
27142 chmod 000 file
27143 tar cf archive --ignore-failed-read file || exit 1
27144 status=$?
27145 chmod 600 file
27146 test $status = 0 || exit 1
27147
27148 echo 1>&2 -----
27149 chmod 000 directory
27150 tar cf archive directory
27151 status=$?
27152 chmod 700 directory
27153 test $status = 2 || exit 1
27154
27155 echo 1>&2 -----
27156 chmod 000 directory
27157 tar cf archive --ignore-failed-read directory || exit 1
27158 status=$?
27159 chmod 700 directory
27160 test $status = 0
27161 ) ) >"$at_stdout" 2>"$at_stderr"
27162 fi
27163 at_status=$?
27164 at_failed=false
27165 echo >>"$at_stderr"; $as_echo "-----
27166 tar: file: Cannot open: Permission denied
27167 tar: Exiting with failure status due to previous errors
27168 -----
27169 tar: file: Warning: Cannot open: Permission denied
27170 -----
27171 tar: directory: Cannot open: Permission denied
27172 tar: Exiting with failure status due to previous errors
27173 -----
27174 tar: directory: Warning: Cannot open: Permission denied
27175 " | \
27176   $at_diff - "$at_stderr" || at_failed=:
27177 at_func_diff_devnull "$at_stdout" || at_failed=:
27178 at_func_check_status 0 $at_status "$at_srcdir/ignfail.at:26"
27179
27180 $at_failed && at_func_log_failure
27181 $at_traceon; }
27182
27183               { $at_traceoff
27184 $as_echo "$at_srcdir/ignfail.at:26:
27185 mkdir gnu
27186 (cd gnu
27187 TEST_TAR_FORMAT=gnu
27188 export TEST_TAR_FORMAT
27189 TAR_OPTIONS=\"-H gnu\"
27190 export TAR_OPTIONS
27191 rm -rf *
27192
27193 # The test is meaningless for super-user.
27194
27195 echo "test" > $$
27196 chmod 0 $$
27197 cat $$ > /dev/null 2>&1
27198 result=$?
27199 rm -f $$
27200 test $result -eq 0 && exit 77
27201
27202
27203 touch file
27204 mkdir directory
27205 touch directory/file
27206
27207 echo 1>&2 -----
27208 chmod 000 file
27209 tar cf archive file
27210 status=\$?
27211 chmod 600 file
27212 test \$status = 2 || exit 1
27213
27214 echo 1>&2 -----
27215 chmod 000 file
27216 tar cf archive --ignore-failed-read file || exit 1
27217 status=\$?
27218 chmod 600 file
27219 test \$status = 0 || exit 1
27220
27221 echo 1>&2 -----
27222 chmod 000 directory
27223 tar cf archive directory
27224 status=\$?
27225 chmod 700 directory
27226 test \$status = 2 || exit 1
27227
27228 echo 1>&2 -----
27229 chmod 000 directory
27230 tar cf archive --ignore-failed-read directory || exit 1
27231 status=\$?
27232 chmod 700 directory
27233 test \$status = 0
27234 )"
27235 echo ignfail.at:26 >"$at_check_line_file"
27236
27237 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
27238    false; }; then
27239   ( $at_traceon;
27240 mkdir gnu
27241 (cd gnu
27242 TEST_TAR_FORMAT=gnu
27243 export TEST_TAR_FORMAT
27244 TAR_OPTIONS="-H gnu"
27245 export TAR_OPTIONS
27246 rm -rf *
27247
27248 # The test is meaningless for super-user.
27249
27250 echo "test" > $$
27251 chmod 0 $$
27252 cat $$ > /dev/null 2>&1
27253 result=$?
27254 rm -f $$
27255 test $result -eq 0 && exit 77
27256
27257
27258 touch file
27259 mkdir directory
27260 touch directory/file
27261
27262 echo 1>&2 -----
27263 chmod 000 file
27264 tar cf archive file
27265 status=$?
27266 chmod 600 file
27267 test $status = 2 || exit 1
27268
27269 echo 1>&2 -----
27270 chmod 000 file
27271 tar cf archive --ignore-failed-read file || exit 1
27272 status=$?
27273 chmod 600 file
27274 test $status = 0 || exit 1
27275
27276 echo 1>&2 -----
27277 chmod 000 directory
27278 tar cf archive directory
27279 status=$?
27280 chmod 700 directory
27281 test $status = 2 || exit 1
27282
27283 echo 1>&2 -----
27284 chmod 000 directory
27285 tar cf archive --ignore-failed-read directory || exit 1
27286 status=$?
27287 chmod 700 directory
27288 test $status = 0
27289 ) ) >"$at_stdout" 2>"$at_stder1"
27290   at_func_filter_trace $?
27291 else
27292   ( :;
27293 mkdir gnu
27294 (cd gnu
27295 TEST_TAR_FORMAT=gnu
27296 export TEST_TAR_FORMAT
27297 TAR_OPTIONS="-H gnu"
27298 export TAR_OPTIONS
27299 rm -rf *
27300
27301 # The test is meaningless for super-user.
27302
27303 echo "test" > $$
27304 chmod 0 $$
27305 cat $$ > /dev/null 2>&1
27306 result=$?
27307 rm -f $$
27308 test $result -eq 0 && exit 77
27309
27310
27311 touch file
27312 mkdir directory
27313 touch directory/file
27314
27315 echo 1>&2 -----
27316 chmod 000 file
27317 tar cf archive file
27318 status=$?
27319 chmod 600 file
27320 test $status = 2 || exit 1
27321
27322 echo 1>&2 -----
27323 chmod 000 file
27324 tar cf archive --ignore-failed-read file || exit 1
27325 status=$?
27326 chmod 600 file
27327 test $status = 0 || exit 1
27328
27329 echo 1>&2 -----
27330 chmod 000 directory
27331 tar cf archive directory
27332 status=$?
27333 chmod 700 directory
27334 test $status = 2 || exit 1
27335
27336 echo 1>&2 -----
27337 chmod 000 directory
27338 tar cf archive --ignore-failed-read directory || exit 1
27339 status=$?
27340 chmod 700 directory
27341 test $status = 0
27342 ) ) >"$at_stdout" 2>"$at_stderr"
27343 fi
27344 at_status=$?
27345 at_failed=false
27346 echo >>"$at_stderr"; $as_echo "-----
27347 tar: file: Cannot open: Permission denied
27348 tar: Exiting with failure status due to previous errors
27349 -----
27350 tar: file: Warning: Cannot open: Permission denied
27351 -----
27352 tar: directory: Cannot open: Permission denied
27353 tar: Exiting with failure status due to previous errors
27354 -----
27355 tar: directory: Warning: Cannot open: Permission denied
27356 " | \
27357   $at_diff - "$at_stderr" || at_failed=:
27358 at_func_diff_devnull "$at_stdout" || at_failed=:
27359 at_func_check_status 0 $at_status "$at_srcdir/ignfail.at:26"
27360
27361 $at_failed && at_func_log_failure
27362 $at_traceon; }
27363
27364
27365
27366
27367   $at_traceoff
27368   $at_times_p && times >"$at_times_file"
27369 ) 5>&1 2>&1 | eval $at_tee_pipe
27370 at_status=`cat "$at_status_file"`
27371 #AT_STOP_70
27372 #AT_START_71
27373 # 71. link01.at:33: link count gt 2
27374 at_setup_line='link01.at:33'
27375 at_desc="link count gt 2"
27376 $at_quiet $as_echo_n " 71: $at_desc                                "
27377 at_xfail=no
27378       test -f $XFAILFILE && at_xfail=yes
27379 echo "#                             -*- compilation -*-" >> "$at_group_log"
27380 (
27381   $as_echo "71. link01.at:33: testing ..."
27382   $at_traceon
27383
27384
27385
27386
27387
27388   { $at_traceoff
27389 $as_echo "$at_srcdir/link01.at:36:
27390 mkdir v7
27391 (cd v7
27392 TEST_TAR_FORMAT=v7
27393 export TEST_TAR_FORMAT
27394 TAR_OPTIONS=\"-H v7\"
27395 export TAR_OPTIONS
27396 rm -rf *
27397
27398 mkdir directory
27399 mkdir directory/test1
27400 mkdir directory/test2
27401
27402 echo TEST > directory/test1/test.txt
27403 ln directory/test1/test.txt directory/test2/test.txt || exit 77
27404
27405 tar cf archive directory/test1/test.txt directory/test1/test.txt
27406
27407 rm -r directory
27408 tar xf archive --warning=no-timestamp
27409
27410 ls directory/test1
27411 )"
27412 echo link01.at:36 >"$at_check_line_file"
27413
27414 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
27415    false; }; then
27416   ( $at_traceon;
27417 mkdir v7
27418 (cd v7
27419 TEST_TAR_FORMAT=v7
27420 export TEST_TAR_FORMAT
27421 TAR_OPTIONS="-H v7"
27422 export TAR_OPTIONS
27423 rm -rf *
27424
27425 mkdir directory
27426 mkdir directory/test1
27427 mkdir directory/test2
27428
27429 echo TEST > directory/test1/test.txt
27430 ln directory/test1/test.txt directory/test2/test.txt || exit 77
27431
27432 tar cf archive directory/test1/test.txt directory/test1/test.txt
27433
27434 rm -r directory
27435 tar xf archive --warning=no-timestamp
27436
27437 ls directory/test1
27438 ) ) >"$at_stdout" 2>"$at_stder1"
27439   at_func_filter_trace $?
27440 else
27441   ( :;
27442 mkdir v7
27443 (cd v7
27444 TEST_TAR_FORMAT=v7
27445 export TEST_TAR_FORMAT
27446 TAR_OPTIONS="-H v7"
27447 export TAR_OPTIONS
27448 rm -rf *
27449
27450 mkdir directory
27451 mkdir directory/test1
27452 mkdir directory/test2
27453
27454 echo TEST > directory/test1/test.txt
27455 ln directory/test1/test.txt directory/test2/test.txt || exit 77
27456
27457 tar cf archive directory/test1/test.txt directory/test1/test.txt
27458
27459 rm -r directory
27460 tar xf archive --warning=no-timestamp
27461
27462 ls directory/test1
27463 ) ) >"$at_stdout" 2>"$at_stderr"
27464 fi
27465 at_status=$?
27466 at_failed=false
27467 at_func_diff_devnull "$at_stderr" || at_failed=:
27468 echo >>"$at_stdout"; $as_echo "test.txt
27469 " | \
27470   $at_diff - "$at_stdout" || at_failed=:
27471 at_func_check_status 0 $at_status "$at_srcdir/link01.at:36"
27472
27473 $at_failed && at_func_log_failure
27474 $at_traceon; }
27475
27476               { $at_traceoff
27477 $as_echo "$at_srcdir/link01.at:36:
27478 mkdir oldgnu
27479 (cd oldgnu
27480 TEST_TAR_FORMAT=oldgnu
27481 export TEST_TAR_FORMAT
27482 TAR_OPTIONS=\"-H oldgnu\"
27483 export TAR_OPTIONS
27484 rm -rf *
27485
27486 mkdir directory
27487 mkdir directory/test1
27488 mkdir directory/test2
27489
27490 echo TEST > directory/test1/test.txt
27491 ln directory/test1/test.txt directory/test2/test.txt || exit 77
27492
27493 tar cf archive directory/test1/test.txt directory/test1/test.txt
27494
27495 rm -r directory
27496 tar xf archive --warning=no-timestamp
27497
27498 ls directory/test1
27499 )"
27500 echo link01.at:36 >"$at_check_line_file"
27501
27502 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
27503    false; }; then
27504   ( $at_traceon;
27505 mkdir oldgnu
27506 (cd oldgnu
27507 TEST_TAR_FORMAT=oldgnu
27508 export TEST_TAR_FORMAT
27509 TAR_OPTIONS="-H oldgnu"
27510 export TAR_OPTIONS
27511 rm -rf *
27512
27513 mkdir directory
27514 mkdir directory/test1
27515 mkdir directory/test2
27516
27517 echo TEST > directory/test1/test.txt
27518 ln directory/test1/test.txt directory/test2/test.txt || exit 77
27519
27520 tar cf archive directory/test1/test.txt directory/test1/test.txt
27521
27522 rm -r directory
27523 tar xf archive --warning=no-timestamp
27524
27525 ls directory/test1
27526 ) ) >"$at_stdout" 2>"$at_stder1"
27527   at_func_filter_trace $?
27528 else
27529   ( :;
27530 mkdir oldgnu
27531 (cd oldgnu
27532 TEST_TAR_FORMAT=oldgnu
27533 export TEST_TAR_FORMAT
27534 TAR_OPTIONS="-H oldgnu"
27535 export TAR_OPTIONS
27536 rm -rf *
27537
27538 mkdir directory
27539 mkdir directory/test1
27540 mkdir directory/test2
27541
27542 echo TEST > directory/test1/test.txt
27543 ln directory/test1/test.txt directory/test2/test.txt || exit 77
27544
27545 tar cf archive directory/test1/test.txt directory/test1/test.txt
27546
27547 rm -r directory
27548 tar xf archive --warning=no-timestamp
27549
27550 ls directory/test1
27551 ) ) >"$at_stdout" 2>"$at_stderr"
27552 fi
27553 at_status=$?
27554 at_failed=false
27555 at_func_diff_devnull "$at_stderr" || at_failed=:
27556 echo >>"$at_stdout"; $as_echo "test.txt
27557 " | \
27558   $at_diff - "$at_stdout" || at_failed=:
27559 at_func_check_status 0 $at_status "$at_srcdir/link01.at:36"
27560
27561 $at_failed && at_func_log_failure
27562 $at_traceon; }
27563
27564               { $at_traceoff
27565 $as_echo "$at_srcdir/link01.at:36:
27566 mkdir ustar
27567 (cd ustar
27568 TEST_TAR_FORMAT=ustar
27569 export TEST_TAR_FORMAT
27570 TAR_OPTIONS=\"-H ustar\"
27571 export TAR_OPTIONS
27572 rm -rf *
27573
27574 mkdir directory
27575 mkdir directory/test1
27576 mkdir directory/test2
27577
27578 echo TEST > directory/test1/test.txt
27579 ln directory/test1/test.txt directory/test2/test.txt || exit 77
27580
27581 tar cf archive directory/test1/test.txt directory/test1/test.txt
27582
27583 rm -r directory
27584 tar xf archive --warning=no-timestamp
27585
27586 ls directory/test1
27587 )"
27588 echo link01.at:36 >"$at_check_line_file"
27589
27590 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
27591    false; }; then
27592   ( $at_traceon;
27593 mkdir ustar
27594 (cd ustar
27595 TEST_TAR_FORMAT=ustar
27596 export TEST_TAR_FORMAT
27597 TAR_OPTIONS="-H ustar"
27598 export TAR_OPTIONS
27599 rm -rf *
27600
27601 mkdir directory
27602 mkdir directory/test1
27603 mkdir directory/test2
27604
27605 echo TEST > directory/test1/test.txt
27606 ln directory/test1/test.txt directory/test2/test.txt || exit 77
27607
27608 tar cf archive directory/test1/test.txt directory/test1/test.txt
27609
27610 rm -r directory
27611 tar xf archive --warning=no-timestamp
27612
27613 ls directory/test1
27614 ) ) >"$at_stdout" 2>"$at_stder1"
27615   at_func_filter_trace $?
27616 else
27617   ( :;
27618 mkdir ustar
27619 (cd ustar
27620 TEST_TAR_FORMAT=ustar
27621 export TEST_TAR_FORMAT
27622 TAR_OPTIONS="-H ustar"
27623 export TAR_OPTIONS
27624 rm -rf *
27625
27626 mkdir directory
27627 mkdir directory/test1
27628 mkdir directory/test2
27629
27630 echo TEST > directory/test1/test.txt
27631 ln directory/test1/test.txt directory/test2/test.txt || exit 77
27632
27633 tar cf archive directory/test1/test.txt directory/test1/test.txt
27634
27635 rm -r directory
27636 tar xf archive --warning=no-timestamp
27637
27638 ls directory/test1
27639 ) ) >"$at_stdout" 2>"$at_stderr"
27640 fi
27641 at_status=$?
27642 at_failed=false
27643 at_func_diff_devnull "$at_stderr" || at_failed=:
27644 echo >>"$at_stdout"; $as_echo "test.txt
27645 " | \
27646   $at_diff - "$at_stdout" || at_failed=:
27647 at_func_check_status 0 $at_status "$at_srcdir/link01.at:36"
27648
27649 $at_failed && at_func_log_failure
27650 $at_traceon; }
27651
27652               { $at_traceoff
27653 $as_echo "$at_srcdir/link01.at:36:
27654 mkdir posix
27655 (cd posix
27656 TEST_TAR_FORMAT=posix
27657 export TEST_TAR_FORMAT
27658 TAR_OPTIONS=\"-H posix\"
27659 export TAR_OPTIONS
27660 rm -rf *
27661
27662 mkdir directory
27663 mkdir directory/test1
27664 mkdir directory/test2
27665
27666 echo TEST > directory/test1/test.txt
27667 ln directory/test1/test.txt directory/test2/test.txt || exit 77
27668
27669 tar cf archive directory/test1/test.txt directory/test1/test.txt
27670
27671 rm -r directory
27672 tar xf archive --warning=no-timestamp
27673
27674 ls directory/test1
27675 )"
27676 echo link01.at:36 >"$at_check_line_file"
27677
27678 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
27679    false; }; then
27680   ( $at_traceon;
27681 mkdir posix
27682 (cd posix
27683 TEST_TAR_FORMAT=posix
27684 export TEST_TAR_FORMAT
27685 TAR_OPTIONS="-H posix"
27686 export TAR_OPTIONS
27687 rm -rf *
27688
27689 mkdir directory
27690 mkdir directory/test1
27691 mkdir directory/test2
27692
27693 echo TEST > directory/test1/test.txt
27694 ln directory/test1/test.txt directory/test2/test.txt || exit 77
27695
27696 tar cf archive directory/test1/test.txt directory/test1/test.txt
27697
27698 rm -r directory
27699 tar xf archive --warning=no-timestamp
27700
27701 ls directory/test1
27702 ) ) >"$at_stdout" 2>"$at_stder1"
27703   at_func_filter_trace $?
27704 else
27705   ( :;
27706 mkdir posix
27707 (cd posix
27708 TEST_TAR_FORMAT=posix
27709 export TEST_TAR_FORMAT
27710 TAR_OPTIONS="-H posix"
27711 export TAR_OPTIONS
27712 rm -rf *
27713
27714 mkdir directory
27715 mkdir directory/test1
27716 mkdir directory/test2
27717
27718 echo TEST > directory/test1/test.txt
27719 ln directory/test1/test.txt directory/test2/test.txt || exit 77
27720
27721 tar cf archive directory/test1/test.txt directory/test1/test.txt
27722
27723 rm -r directory
27724 tar xf archive --warning=no-timestamp
27725
27726 ls directory/test1
27727 ) ) >"$at_stdout" 2>"$at_stderr"
27728 fi
27729 at_status=$?
27730 at_failed=false
27731 at_func_diff_devnull "$at_stderr" || at_failed=:
27732 echo >>"$at_stdout"; $as_echo "test.txt
27733 " | \
27734   $at_diff - "$at_stdout" || at_failed=:
27735 at_func_check_status 0 $at_status "$at_srcdir/link01.at:36"
27736
27737 $at_failed && at_func_log_failure
27738 $at_traceon; }
27739
27740               { $at_traceoff
27741 $as_echo "$at_srcdir/link01.at:36:
27742 mkdir gnu
27743 (cd gnu
27744 TEST_TAR_FORMAT=gnu
27745 export TEST_TAR_FORMAT
27746 TAR_OPTIONS=\"-H gnu\"
27747 export TAR_OPTIONS
27748 rm -rf *
27749
27750 mkdir directory
27751 mkdir directory/test1
27752 mkdir directory/test2
27753
27754 echo TEST > directory/test1/test.txt
27755 ln directory/test1/test.txt directory/test2/test.txt || exit 77
27756
27757 tar cf archive directory/test1/test.txt directory/test1/test.txt
27758
27759 rm -r directory
27760 tar xf archive --warning=no-timestamp
27761
27762 ls directory/test1
27763 )"
27764 echo link01.at:36 >"$at_check_line_file"
27765
27766 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
27767    false; }; then
27768   ( $at_traceon;
27769 mkdir gnu
27770 (cd gnu
27771 TEST_TAR_FORMAT=gnu
27772 export TEST_TAR_FORMAT
27773 TAR_OPTIONS="-H gnu"
27774 export TAR_OPTIONS
27775 rm -rf *
27776
27777 mkdir directory
27778 mkdir directory/test1
27779 mkdir directory/test2
27780
27781 echo TEST > directory/test1/test.txt
27782 ln directory/test1/test.txt directory/test2/test.txt || exit 77
27783
27784 tar cf archive directory/test1/test.txt directory/test1/test.txt
27785
27786 rm -r directory
27787 tar xf archive --warning=no-timestamp
27788
27789 ls directory/test1
27790 ) ) >"$at_stdout" 2>"$at_stder1"
27791   at_func_filter_trace $?
27792 else
27793   ( :;
27794 mkdir gnu
27795 (cd gnu
27796 TEST_TAR_FORMAT=gnu
27797 export TEST_TAR_FORMAT
27798 TAR_OPTIONS="-H gnu"
27799 export TAR_OPTIONS
27800 rm -rf *
27801
27802 mkdir directory
27803 mkdir directory/test1
27804 mkdir directory/test2
27805
27806 echo TEST > directory/test1/test.txt
27807 ln directory/test1/test.txt directory/test2/test.txt || exit 77
27808
27809 tar cf archive directory/test1/test.txt directory/test1/test.txt
27810
27811 rm -r directory
27812 tar xf archive --warning=no-timestamp
27813
27814 ls directory/test1
27815 ) ) >"$at_stdout" 2>"$at_stderr"
27816 fi
27817 at_status=$?
27818 at_failed=false
27819 at_func_diff_devnull "$at_stderr" || at_failed=:
27820 echo >>"$at_stdout"; $as_echo "test.txt
27821 " | \
27822   $at_diff - "$at_stdout" || at_failed=:
27823 at_func_check_status 0 $at_status "$at_srcdir/link01.at:36"
27824
27825 $at_failed && at_func_log_failure
27826 $at_traceon; }
27827
27828
27829
27830
27831   $at_traceoff
27832   $at_times_p && times >"$at_times_file"
27833 ) 5>&1 2>&1 | eval $at_tee_pipe
27834 at_status=`cat "$at_status_file"`
27835 #AT_STOP_71
27836 #AT_START_72
27837 # 72. link02.at:32: preserve hard links with --remove-files
27838 at_setup_line='link02.at:32'
27839 at_desc="preserve hard links with --remove-files"
27840 $at_quiet $as_echo_n " 72: $at_desc        "
27841 at_xfail=no
27842       test -f $XFAILFILE && at_xfail=yes
27843 echo "#                             -*- compilation -*-" >> "$at_group_log"
27844 (
27845   $as_echo "72. link02.at:32: testing ..."
27846   $at_traceon
27847
27848
27849
27850
27851
27852   { $at_traceoff
27853 $as_echo "$at_srcdir/link02.at:35:
27854 mkdir v7
27855 (cd v7
27856 TEST_TAR_FORMAT=v7
27857 export TEST_TAR_FORMAT
27858 TAR_OPTIONS=\"-H v7\"
27859 export TAR_OPTIONS
27860 rm -rf *
27861
27862 genfile -l 64 -f file1
27863 ln file1 file2
27864 ln file2 file3
27865 ln file3 file4
27866 tar -c -f archive --remove-files file1 file2 file3 file4
27867 tar tfv archive | sed -n 's/.*file[2-4] link to //p'
27868 )"
27869 echo link02.at:35 >"$at_check_line_file"
27870
27871 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
27872    false; }; then
27873   ( $at_traceon;
27874 mkdir v7
27875 (cd v7
27876 TEST_TAR_FORMAT=v7
27877 export TEST_TAR_FORMAT
27878 TAR_OPTIONS="-H v7"
27879 export TAR_OPTIONS
27880 rm -rf *
27881
27882 genfile -l 64 -f file1
27883 ln file1 file2
27884 ln file2 file3
27885 ln file3 file4
27886 tar -c -f archive --remove-files file1 file2 file3 file4
27887 tar tfv archive | sed -n 's/.*file[2-4] link to //p'
27888 ) ) >"$at_stdout" 2>"$at_stder1"
27889   at_func_filter_trace $?
27890 else
27891   ( :;
27892 mkdir v7
27893 (cd v7
27894 TEST_TAR_FORMAT=v7
27895 export TEST_TAR_FORMAT
27896 TAR_OPTIONS="-H v7"
27897 export TAR_OPTIONS
27898 rm -rf *
27899
27900 genfile -l 64 -f file1
27901 ln file1 file2
27902 ln file2 file3
27903 ln file3 file4
27904 tar -c -f archive --remove-files file1 file2 file3 file4
27905 tar tfv archive | sed -n 's/.*file[2-4] link to //p'
27906 ) ) >"$at_stdout" 2>"$at_stderr"
27907 fi
27908 at_status=$?
27909 at_failed=false
27910 at_func_diff_devnull "$at_stderr" || at_failed=:
27911 echo >>"$at_stdout"; $as_echo "file1
27912 file1
27913 file1
27914 " | \
27915   $at_diff - "$at_stdout" || at_failed=:
27916 at_func_check_status 0 $at_status "$at_srcdir/link02.at:35"
27917
27918 $at_failed && at_func_log_failure
27919 $at_traceon; }
27920
27921               { $at_traceoff
27922 $as_echo "$at_srcdir/link02.at:35:
27923 mkdir oldgnu
27924 (cd oldgnu
27925 TEST_TAR_FORMAT=oldgnu
27926 export TEST_TAR_FORMAT
27927 TAR_OPTIONS=\"-H oldgnu\"
27928 export TAR_OPTIONS
27929 rm -rf *
27930
27931 genfile -l 64 -f file1
27932 ln file1 file2
27933 ln file2 file3
27934 ln file3 file4
27935 tar -c -f archive --remove-files file1 file2 file3 file4
27936 tar tfv archive | sed -n 's/.*file[2-4] link to //p'
27937 )"
27938 echo link02.at:35 >"$at_check_line_file"
27939
27940 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
27941    false; }; then
27942   ( $at_traceon;
27943 mkdir oldgnu
27944 (cd oldgnu
27945 TEST_TAR_FORMAT=oldgnu
27946 export TEST_TAR_FORMAT
27947 TAR_OPTIONS="-H oldgnu"
27948 export TAR_OPTIONS
27949 rm -rf *
27950
27951 genfile -l 64 -f file1
27952 ln file1 file2
27953 ln file2 file3
27954 ln file3 file4
27955 tar -c -f archive --remove-files file1 file2 file3 file4
27956 tar tfv archive | sed -n 's/.*file[2-4] link to //p'
27957 ) ) >"$at_stdout" 2>"$at_stder1"
27958   at_func_filter_trace $?
27959 else
27960   ( :;
27961 mkdir oldgnu
27962 (cd oldgnu
27963 TEST_TAR_FORMAT=oldgnu
27964 export TEST_TAR_FORMAT
27965 TAR_OPTIONS="-H oldgnu"
27966 export TAR_OPTIONS
27967 rm -rf *
27968
27969 genfile -l 64 -f file1
27970 ln file1 file2
27971 ln file2 file3
27972 ln file3 file4
27973 tar -c -f archive --remove-files file1 file2 file3 file4
27974 tar tfv archive | sed -n 's/.*file[2-4] link to //p'
27975 ) ) >"$at_stdout" 2>"$at_stderr"
27976 fi
27977 at_status=$?
27978 at_failed=false
27979 at_func_diff_devnull "$at_stderr" || at_failed=:
27980 echo >>"$at_stdout"; $as_echo "file1
27981 file1
27982 file1
27983 " | \
27984   $at_diff - "$at_stdout" || at_failed=:
27985 at_func_check_status 0 $at_status "$at_srcdir/link02.at:35"
27986
27987 $at_failed && at_func_log_failure
27988 $at_traceon; }
27989
27990               { $at_traceoff
27991 $as_echo "$at_srcdir/link02.at:35:
27992 mkdir ustar
27993 (cd ustar
27994 TEST_TAR_FORMAT=ustar
27995 export TEST_TAR_FORMAT
27996 TAR_OPTIONS=\"-H ustar\"
27997 export TAR_OPTIONS
27998 rm -rf *
27999
28000 genfile -l 64 -f file1
28001 ln file1 file2
28002 ln file2 file3
28003 ln file3 file4
28004 tar -c -f archive --remove-files file1 file2 file3 file4
28005 tar tfv archive | sed -n 's/.*file[2-4] link to //p'
28006 )"
28007 echo link02.at:35 >"$at_check_line_file"
28008
28009 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
28010    false; }; then
28011   ( $at_traceon;
28012 mkdir ustar
28013 (cd ustar
28014 TEST_TAR_FORMAT=ustar
28015 export TEST_TAR_FORMAT
28016 TAR_OPTIONS="-H ustar"
28017 export TAR_OPTIONS
28018 rm -rf *
28019
28020 genfile -l 64 -f file1
28021 ln file1 file2
28022 ln file2 file3
28023 ln file3 file4
28024 tar -c -f archive --remove-files file1 file2 file3 file4
28025 tar tfv archive | sed -n 's/.*file[2-4] link to //p'
28026 ) ) >"$at_stdout" 2>"$at_stder1"
28027   at_func_filter_trace $?
28028 else
28029   ( :;
28030 mkdir ustar
28031 (cd ustar
28032 TEST_TAR_FORMAT=ustar
28033 export TEST_TAR_FORMAT
28034 TAR_OPTIONS="-H ustar"
28035 export TAR_OPTIONS
28036 rm -rf *
28037
28038 genfile -l 64 -f file1
28039 ln file1 file2
28040 ln file2 file3
28041 ln file3 file4
28042 tar -c -f archive --remove-files file1 file2 file3 file4
28043 tar tfv archive | sed -n 's/.*file[2-4] link to //p'
28044 ) ) >"$at_stdout" 2>"$at_stderr"
28045 fi
28046 at_status=$?
28047 at_failed=false
28048 at_func_diff_devnull "$at_stderr" || at_failed=:
28049 echo >>"$at_stdout"; $as_echo "file1
28050 file1
28051 file1
28052 " | \
28053   $at_diff - "$at_stdout" || at_failed=:
28054 at_func_check_status 0 $at_status "$at_srcdir/link02.at:35"
28055
28056 $at_failed && at_func_log_failure
28057 $at_traceon; }
28058
28059               { $at_traceoff
28060 $as_echo "$at_srcdir/link02.at:35:
28061 mkdir posix
28062 (cd posix
28063 TEST_TAR_FORMAT=posix
28064 export TEST_TAR_FORMAT
28065 TAR_OPTIONS=\"-H posix\"
28066 export TAR_OPTIONS
28067 rm -rf *
28068
28069 genfile -l 64 -f file1
28070 ln file1 file2
28071 ln file2 file3
28072 ln file3 file4
28073 tar -c -f archive --remove-files file1 file2 file3 file4
28074 tar tfv archive | sed -n 's/.*file[2-4] link to //p'
28075 )"
28076 echo link02.at:35 >"$at_check_line_file"
28077
28078 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
28079    false; }; then
28080   ( $at_traceon;
28081 mkdir posix
28082 (cd posix
28083 TEST_TAR_FORMAT=posix
28084 export TEST_TAR_FORMAT
28085 TAR_OPTIONS="-H posix"
28086 export TAR_OPTIONS
28087 rm -rf *
28088
28089 genfile -l 64 -f file1
28090 ln file1 file2
28091 ln file2 file3
28092 ln file3 file4
28093 tar -c -f archive --remove-files file1 file2 file3 file4
28094 tar tfv archive | sed -n 's/.*file[2-4] link to //p'
28095 ) ) >"$at_stdout" 2>"$at_stder1"
28096   at_func_filter_trace $?
28097 else
28098   ( :;
28099 mkdir posix
28100 (cd posix
28101 TEST_TAR_FORMAT=posix
28102 export TEST_TAR_FORMAT
28103 TAR_OPTIONS="-H posix"
28104 export TAR_OPTIONS
28105 rm -rf *
28106
28107 genfile -l 64 -f file1
28108 ln file1 file2
28109 ln file2 file3
28110 ln file3 file4
28111 tar -c -f archive --remove-files file1 file2 file3 file4
28112 tar tfv archive | sed -n 's/.*file[2-4] link to //p'
28113 ) ) >"$at_stdout" 2>"$at_stderr"
28114 fi
28115 at_status=$?
28116 at_failed=false
28117 at_func_diff_devnull "$at_stderr" || at_failed=:
28118 echo >>"$at_stdout"; $as_echo "file1
28119 file1
28120 file1
28121 " | \
28122   $at_diff - "$at_stdout" || at_failed=:
28123 at_func_check_status 0 $at_status "$at_srcdir/link02.at:35"
28124
28125 $at_failed && at_func_log_failure
28126 $at_traceon; }
28127
28128               { $at_traceoff
28129 $as_echo "$at_srcdir/link02.at:35:
28130 mkdir gnu
28131 (cd gnu
28132 TEST_TAR_FORMAT=gnu
28133 export TEST_TAR_FORMAT
28134 TAR_OPTIONS=\"-H gnu\"
28135 export TAR_OPTIONS
28136 rm -rf *
28137
28138 genfile -l 64 -f file1
28139 ln file1 file2
28140 ln file2 file3
28141 ln file3 file4
28142 tar -c -f archive --remove-files file1 file2 file3 file4
28143 tar tfv archive | sed -n 's/.*file[2-4] link to //p'
28144 )"
28145 echo link02.at:35 >"$at_check_line_file"
28146
28147 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
28148    false; }; then
28149   ( $at_traceon;
28150 mkdir gnu
28151 (cd gnu
28152 TEST_TAR_FORMAT=gnu
28153 export TEST_TAR_FORMAT
28154 TAR_OPTIONS="-H gnu"
28155 export TAR_OPTIONS
28156 rm -rf *
28157
28158 genfile -l 64 -f file1
28159 ln file1 file2
28160 ln file2 file3
28161 ln file3 file4
28162 tar -c -f archive --remove-files file1 file2 file3 file4
28163 tar tfv archive | sed -n 's/.*file[2-4] link to //p'
28164 ) ) >"$at_stdout" 2>"$at_stder1"
28165   at_func_filter_trace $?
28166 else
28167   ( :;
28168 mkdir gnu
28169 (cd gnu
28170 TEST_TAR_FORMAT=gnu
28171 export TEST_TAR_FORMAT
28172 TAR_OPTIONS="-H gnu"
28173 export TAR_OPTIONS
28174 rm -rf *
28175
28176 genfile -l 64 -f file1
28177 ln file1 file2
28178 ln file2 file3
28179 ln file3 file4
28180 tar -c -f archive --remove-files file1 file2 file3 file4
28181 tar tfv archive | sed -n 's/.*file[2-4] link to //p'
28182 ) ) >"$at_stdout" 2>"$at_stderr"
28183 fi
28184 at_status=$?
28185 at_failed=false
28186 at_func_diff_devnull "$at_stderr" || at_failed=:
28187 echo >>"$at_stdout"; $as_echo "file1
28188 file1
28189 file1
28190 " | \
28191   $at_diff - "$at_stdout" || at_failed=:
28192 at_func_check_status 0 $at_status "$at_srcdir/link02.at:35"
28193
28194 $at_failed && at_func_log_failure
28195 $at_traceon; }
28196
28197
28198
28199
28200   $at_traceoff
28201   $at_times_p && times >"$at_times_file"
28202 ) 5>&1 2>&1 | eval $at_tee_pipe
28203 at_status=`cat "$at_status_file"`
28204 #AT_STOP_72
28205 #AT_START_73
28206 # 73. link03.at:24: working -l with --remove-files
28207 at_setup_line='link03.at:24'
28208 at_desc="working -l with --remove-files"
28209 $at_quiet $as_echo_n " 73: $at_desc                 "
28210 at_xfail=no
28211       test -f $XFAILFILE && at_xfail=yes
28212 echo "#                             -*- compilation -*-" >> "$at_group_log"
28213 (
28214   $as_echo "73. link03.at:24: testing ..."
28215   $at_traceon
28216
28217
28218
28219
28220
28221
28222
28223   { $at_traceoff
28224 $as_echo "$at_srcdir/link03.at:34:
28225 mkdir v7
28226 (cd v7
28227 TEST_TAR_FORMAT=v7
28228 export TEST_TAR_FORMAT
28229 TAR_OPTIONS=\"-H v7\"
28230 export TAR_OPTIONS
28231 rm -rf *
28232
28233
28234 genfile -l 64 -f file1
28235 ln file1 file2
28236 ln file2 file3
28237 ln file3 file4
28238
28239 echo archive.1
28240 tar -c -f archive.1 -l --remove-files file1 file2 file3 file4
28241
28242 genfile -l 64 -f file1
28243 ln file1 file2
28244 ln file2 file3
28245 ln file3 file4
28246
28247 echo archive.2
28248 tar -c -f archive.2 -l --remove-files file1 file2 file3
28249 echo testing archive.2
28250 tar tfv archive.2 | sed -n 's/.*file[2-3] link to //p'
28251 )"
28252 echo link03.at:34 >"$at_check_line_file"
28253
28254 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
28255    false; }; then
28256   ( $at_traceon;
28257 mkdir v7
28258 (cd v7
28259 TEST_TAR_FORMAT=v7
28260 export TEST_TAR_FORMAT
28261 TAR_OPTIONS="-H v7"
28262 export TAR_OPTIONS
28263 rm -rf *
28264
28265
28266 genfile -l 64 -f file1
28267 ln file1 file2
28268 ln file2 file3
28269 ln file3 file4
28270
28271 echo archive.1
28272 tar -c -f archive.1 -l --remove-files file1 file2 file3 file4
28273
28274 genfile -l 64 -f file1
28275 ln file1 file2
28276 ln file2 file3
28277 ln file3 file4
28278
28279 echo archive.2
28280 tar -c -f archive.2 -l --remove-files file1 file2 file3
28281 echo testing archive.2
28282 tar tfv archive.2 | sed -n 's/.*file[2-3] link to //p'
28283 ) ) >"$at_stdout" 2>"$at_stder1"
28284   at_func_filter_trace $?
28285 else
28286   ( :;
28287 mkdir v7
28288 (cd v7
28289 TEST_TAR_FORMAT=v7
28290 export TEST_TAR_FORMAT
28291 TAR_OPTIONS="-H v7"
28292 export TAR_OPTIONS
28293 rm -rf *
28294
28295
28296 genfile -l 64 -f file1
28297 ln file1 file2
28298 ln file2 file3
28299 ln file3 file4
28300
28301 echo archive.1
28302 tar -c -f archive.1 -l --remove-files file1 file2 file3 file4
28303
28304 genfile -l 64 -f file1
28305 ln file1 file2
28306 ln file2 file3
28307 ln file3 file4
28308
28309 echo archive.2
28310 tar -c -f archive.2 -l --remove-files file1 file2 file3
28311 echo testing archive.2
28312 tar tfv archive.2 | sed -n 's/.*file[2-3] link to //p'
28313 ) ) >"$at_stdout" 2>"$at_stderr"
28314 fi
28315 at_status=$?
28316 at_failed=false
28317 echo >>"$at_stderr"; $as_echo "tar: Missing links to \`file1'.
28318 " | \
28319   $at_diff - "$at_stderr" || at_failed=:
28320 echo >>"$at_stdout"; $as_echo "archive.1
28321 archive.2
28322 testing archive.2
28323 file1
28324 file1
28325 " | \
28326   $at_diff - "$at_stdout" || at_failed=:
28327 at_func_check_status 0 $at_status "$at_srcdir/link03.at:34"
28328
28329 $at_failed && at_func_log_failure
28330 $at_traceon; }
28331
28332               { $at_traceoff
28333 $as_echo "$at_srcdir/link03.at:34:
28334 mkdir oldgnu
28335 (cd oldgnu
28336 TEST_TAR_FORMAT=oldgnu
28337 export TEST_TAR_FORMAT
28338 TAR_OPTIONS=\"-H oldgnu\"
28339 export TAR_OPTIONS
28340 rm -rf *
28341
28342
28343 genfile -l 64 -f file1
28344 ln file1 file2
28345 ln file2 file3
28346 ln file3 file4
28347
28348 echo archive.1
28349 tar -c -f archive.1 -l --remove-files file1 file2 file3 file4
28350
28351 genfile -l 64 -f file1
28352 ln file1 file2
28353 ln file2 file3
28354 ln file3 file4
28355
28356 echo archive.2
28357 tar -c -f archive.2 -l --remove-files file1 file2 file3
28358 echo testing archive.2
28359 tar tfv archive.2 | sed -n 's/.*file[2-3] link to //p'
28360 )"
28361 echo link03.at:34 >"$at_check_line_file"
28362
28363 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
28364    false; }; then
28365   ( $at_traceon;
28366 mkdir oldgnu
28367 (cd oldgnu
28368 TEST_TAR_FORMAT=oldgnu
28369 export TEST_TAR_FORMAT
28370 TAR_OPTIONS="-H oldgnu"
28371 export TAR_OPTIONS
28372 rm -rf *
28373
28374
28375 genfile -l 64 -f file1
28376 ln file1 file2
28377 ln file2 file3
28378 ln file3 file4
28379
28380 echo archive.1
28381 tar -c -f archive.1 -l --remove-files file1 file2 file3 file4
28382
28383 genfile -l 64 -f file1
28384 ln file1 file2
28385 ln file2 file3
28386 ln file3 file4
28387
28388 echo archive.2
28389 tar -c -f archive.2 -l --remove-files file1 file2 file3
28390 echo testing archive.2
28391 tar tfv archive.2 | sed -n 's/.*file[2-3] link to //p'
28392 ) ) >"$at_stdout" 2>"$at_stder1"
28393   at_func_filter_trace $?
28394 else
28395   ( :;
28396 mkdir oldgnu
28397 (cd oldgnu
28398 TEST_TAR_FORMAT=oldgnu
28399 export TEST_TAR_FORMAT
28400 TAR_OPTIONS="-H oldgnu"
28401 export TAR_OPTIONS
28402 rm -rf *
28403
28404
28405 genfile -l 64 -f file1
28406 ln file1 file2
28407 ln file2 file3
28408 ln file3 file4
28409
28410 echo archive.1
28411 tar -c -f archive.1 -l --remove-files file1 file2 file3 file4
28412
28413 genfile -l 64 -f file1
28414 ln file1 file2
28415 ln file2 file3
28416 ln file3 file4
28417
28418 echo archive.2
28419 tar -c -f archive.2 -l --remove-files file1 file2 file3
28420 echo testing archive.2
28421 tar tfv archive.2 | sed -n 's/.*file[2-3] link to //p'
28422 ) ) >"$at_stdout" 2>"$at_stderr"
28423 fi
28424 at_status=$?
28425 at_failed=false
28426 echo >>"$at_stderr"; $as_echo "tar: Missing links to \`file1'.
28427 " | \
28428   $at_diff - "$at_stderr" || at_failed=:
28429 echo >>"$at_stdout"; $as_echo "archive.1
28430 archive.2
28431 testing archive.2
28432 file1
28433 file1
28434 " | \
28435   $at_diff - "$at_stdout" || at_failed=:
28436 at_func_check_status 0 $at_status "$at_srcdir/link03.at:34"
28437
28438 $at_failed && at_func_log_failure
28439 $at_traceon; }
28440
28441               { $at_traceoff
28442 $as_echo "$at_srcdir/link03.at:34:
28443 mkdir ustar
28444 (cd ustar
28445 TEST_TAR_FORMAT=ustar
28446 export TEST_TAR_FORMAT
28447 TAR_OPTIONS=\"-H ustar\"
28448 export TAR_OPTIONS
28449 rm -rf *
28450
28451
28452 genfile -l 64 -f file1
28453 ln file1 file2
28454 ln file2 file3
28455 ln file3 file4
28456
28457 echo archive.1
28458 tar -c -f archive.1 -l --remove-files file1 file2 file3 file4
28459
28460 genfile -l 64 -f file1
28461 ln file1 file2
28462 ln file2 file3
28463 ln file3 file4
28464
28465 echo archive.2
28466 tar -c -f archive.2 -l --remove-files file1 file2 file3
28467 echo testing archive.2
28468 tar tfv archive.2 | sed -n 's/.*file[2-3] link to //p'
28469 )"
28470 echo link03.at:34 >"$at_check_line_file"
28471
28472 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
28473    false; }; then
28474   ( $at_traceon;
28475 mkdir ustar
28476 (cd ustar
28477 TEST_TAR_FORMAT=ustar
28478 export TEST_TAR_FORMAT
28479 TAR_OPTIONS="-H ustar"
28480 export TAR_OPTIONS
28481 rm -rf *
28482
28483
28484 genfile -l 64 -f file1
28485 ln file1 file2
28486 ln file2 file3
28487 ln file3 file4
28488
28489 echo archive.1
28490 tar -c -f archive.1 -l --remove-files file1 file2 file3 file4
28491
28492 genfile -l 64 -f file1
28493 ln file1 file2
28494 ln file2 file3
28495 ln file3 file4
28496
28497 echo archive.2
28498 tar -c -f archive.2 -l --remove-files file1 file2 file3
28499 echo testing archive.2
28500 tar tfv archive.2 | sed -n 's/.*file[2-3] link to //p'
28501 ) ) >"$at_stdout" 2>"$at_stder1"
28502   at_func_filter_trace $?
28503 else
28504   ( :;
28505 mkdir ustar
28506 (cd ustar
28507 TEST_TAR_FORMAT=ustar
28508 export TEST_TAR_FORMAT
28509 TAR_OPTIONS="-H ustar"
28510 export TAR_OPTIONS
28511 rm -rf *
28512
28513
28514 genfile -l 64 -f file1
28515 ln file1 file2
28516 ln file2 file3
28517 ln file3 file4
28518
28519 echo archive.1
28520 tar -c -f archive.1 -l --remove-files file1 file2 file3 file4
28521
28522 genfile -l 64 -f file1
28523 ln file1 file2
28524 ln file2 file3
28525 ln file3 file4
28526
28527 echo archive.2
28528 tar -c -f archive.2 -l --remove-files file1 file2 file3
28529 echo testing archive.2
28530 tar tfv archive.2 | sed -n 's/.*file[2-3] link to //p'
28531 ) ) >"$at_stdout" 2>"$at_stderr"
28532 fi
28533 at_status=$?
28534 at_failed=false
28535 echo >>"$at_stderr"; $as_echo "tar: Missing links to \`file1'.
28536 " | \
28537   $at_diff - "$at_stderr" || at_failed=:
28538 echo >>"$at_stdout"; $as_echo "archive.1
28539 archive.2
28540 testing archive.2
28541 file1
28542 file1
28543 " | \
28544   $at_diff - "$at_stdout" || at_failed=:
28545 at_func_check_status 0 $at_status "$at_srcdir/link03.at:34"
28546
28547 $at_failed && at_func_log_failure
28548 $at_traceon; }
28549
28550               { $at_traceoff
28551 $as_echo "$at_srcdir/link03.at:34:
28552 mkdir posix
28553 (cd posix
28554 TEST_TAR_FORMAT=posix
28555 export TEST_TAR_FORMAT
28556 TAR_OPTIONS=\"-H posix\"
28557 export TAR_OPTIONS
28558 rm -rf *
28559
28560
28561 genfile -l 64 -f file1
28562 ln file1 file2
28563 ln file2 file3
28564 ln file3 file4
28565
28566 echo archive.1
28567 tar -c -f archive.1 -l --remove-files file1 file2 file3 file4
28568
28569 genfile -l 64 -f file1
28570 ln file1 file2
28571 ln file2 file3
28572 ln file3 file4
28573
28574 echo archive.2
28575 tar -c -f archive.2 -l --remove-files file1 file2 file3
28576 echo testing archive.2
28577 tar tfv archive.2 | sed -n 's/.*file[2-3] link to //p'
28578 )"
28579 echo link03.at:34 >"$at_check_line_file"
28580
28581 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
28582    false; }; then
28583   ( $at_traceon;
28584 mkdir posix
28585 (cd posix
28586 TEST_TAR_FORMAT=posix
28587 export TEST_TAR_FORMAT
28588 TAR_OPTIONS="-H posix"
28589 export TAR_OPTIONS
28590 rm -rf *
28591
28592
28593 genfile -l 64 -f file1
28594 ln file1 file2
28595 ln file2 file3
28596 ln file3 file4
28597
28598 echo archive.1
28599 tar -c -f archive.1 -l --remove-files file1 file2 file3 file4
28600
28601 genfile -l 64 -f file1
28602 ln file1 file2
28603 ln file2 file3
28604 ln file3 file4
28605
28606 echo archive.2
28607 tar -c -f archive.2 -l --remove-files file1 file2 file3
28608 echo testing archive.2
28609 tar tfv archive.2 | sed -n 's/.*file[2-3] link to //p'
28610 ) ) >"$at_stdout" 2>"$at_stder1"
28611   at_func_filter_trace $?
28612 else
28613   ( :;
28614 mkdir posix
28615 (cd posix
28616 TEST_TAR_FORMAT=posix
28617 export TEST_TAR_FORMAT
28618 TAR_OPTIONS="-H posix"
28619 export TAR_OPTIONS
28620 rm -rf *
28621
28622
28623 genfile -l 64 -f file1
28624 ln file1 file2
28625 ln file2 file3
28626 ln file3 file4
28627
28628 echo archive.1
28629 tar -c -f archive.1 -l --remove-files file1 file2 file3 file4
28630
28631 genfile -l 64 -f file1
28632 ln file1 file2
28633 ln file2 file3
28634 ln file3 file4
28635
28636 echo archive.2
28637 tar -c -f archive.2 -l --remove-files file1 file2 file3
28638 echo testing archive.2
28639 tar tfv archive.2 | sed -n 's/.*file[2-3] link to //p'
28640 ) ) >"$at_stdout" 2>"$at_stderr"
28641 fi
28642 at_status=$?
28643 at_failed=false
28644 echo >>"$at_stderr"; $as_echo "tar: Missing links to \`file1'.
28645 " | \
28646   $at_diff - "$at_stderr" || at_failed=:
28647 echo >>"$at_stdout"; $as_echo "archive.1
28648 archive.2
28649 testing archive.2
28650 file1
28651 file1
28652 " | \
28653   $at_diff - "$at_stdout" || at_failed=:
28654 at_func_check_status 0 $at_status "$at_srcdir/link03.at:34"
28655
28656 $at_failed && at_func_log_failure
28657 $at_traceon; }
28658
28659               { $at_traceoff
28660 $as_echo "$at_srcdir/link03.at:34:
28661 mkdir gnu
28662 (cd gnu
28663 TEST_TAR_FORMAT=gnu
28664 export TEST_TAR_FORMAT
28665 TAR_OPTIONS=\"-H gnu\"
28666 export TAR_OPTIONS
28667 rm -rf *
28668
28669
28670 genfile -l 64 -f file1
28671 ln file1 file2
28672 ln file2 file3
28673 ln file3 file4
28674
28675 echo archive.1
28676 tar -c -f archive.1 -l --remove-files file1 file2 file3 file4
28677
28678 genfile -l 64 -f file1
28679 ln file1 file2
28680 ln file2 file3
28681 ln file3 file4
28682
28683 echo archive.2
28684 tar -c -f archive.2 -l --remove-files file1 file2 file3
28685 echo testing archive.2
28686 tar tfv archive.2 | sed -n 's/.*file[2-3] link to //p'
28687 )"
28688 echo link03.at:34 >"$at_check_line_file"
28689
28690 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
28691    false; }; then
28692   ( $at_traceon;
28693 mkdir gnu
28694 (cd gnu
28695 TEST_TAR_FORMAT=gnu
28696 export TEST_TAR_FORMAT
28697 TAR_OPTIONS="-H gnu"
28698 export TAR_OPTIONS
28699 rm -rf *
28700
28701
28702 genfile -l 64 -f file1
28703 ln file1 file2
28704 ln file2 file3
28705 ln file3 file4
28706
28707 echo archive.1
28708 tar -c -f archive.1 -l --remove-files file1 file2 file3 file4
28709
28710 genfile -l 64 -f file1
28711 ln file1 file2
28712 ln file2 file3
28713 ln file3 file4
28714
28715 echo archive.2
28716 tar -c -f archive.2 -l --remove-files file1 file2 file3
28717 echo testing archive.2
28718 tar tfv archive.2 | sed -n 's/.*file[2-3] link to //p'
28719 ) ) >"$at_stdout" 2>"$at_stder1"
28720   at_func_filter_trace $?
28721 else
28722   ( :;
28723 mkdir gnu
28724 (cd gnu
28725 TEST_TAR_FORMAT=gnu
28726 export TEST_TAR_FORMAT
28727 TAR_OPTIONS="-H gnu"
28728 export TAR_OPTIONS
28729 rm -rf *
28730
28731
28732 genfile -l 64 -f file1
28733 ln file1 file2
28734 ln file2 file3
28735 ln file3 file4
28736
28737 echo archive.1
28738 tar -c -f archive.1 -l --remove-files file1 file2 file3 file4
28739
28740 genfile -l 64 -f file1
28741 ln file1 file2
28742 ln file2 file3
28743 ln file3 file4
28744
28745 echo archive.2
28746 tar -c -f archive.2 -l --remove-files file1 file2 file3
28747 echo testing archive.2
28748 tar tfv archive.2 | sed -n 's/.*file[2-3] link to //p'
28749 ) ) >"$at_stdout" 2>"$at_stderr"
28750 fi
28751 at_status=$?
28752 at_failed=false
28753 echo >>"$at_stderr"; $as_echo "tar: Missing links to \`file1'.
28754 " | \
28755   $at_diff - "$at_stderr" || at_failed=:
28756 echo >>"$at_stdout"; $as_echo "archive.1
28757 archive.2
28758 testing archive.2
28759 file1
28760 file1
28761 " | \
28762   $at_diff - "$at_stdout" || at_failed=:
28763 at_func_check_status 0 $at_status "$at_srcdir/link03.at:34"
28764
28765 $at_failed && at_func_log_failure
28766 $at_traceon; }
28767
28768
28769
28770
28771   $at_traceoff
28772   $at_times_p && times >"$at_times_file"
28773 ) 5>&1 2>&1 | eval $at_tee_pipe
28774 at_status=`cat "$at_status_file"`
28775 #AT_STOP_73
28776 #AT_START_74
28777 # 74. link04.at:29: link count is 1 but multiple occurrences
28778 at_setup_line='link04.at:29'
28779 at_desc="link count is 1 but multiple occurrences"
28780 $at_quiet $as_echo_n " 74: $at_desc       "
28781 at_xfail=no
28782       test -f $XFAILFILE && at_xfail=yes
28783 echo "#                             -*- compilation -*-" >> "$at_group_log"
28784 (
28785   $as_echo "74. link04.at:29: testing ..."
28786   $at_traceon
28787
28788
28789
28790
28791
28792   { $at_traceoff
28793 $as_echo "$at_srcdir/link04.at:32:
28794 mkdir v7
28795 (cd v7
28796 TEST_TAR_FORMAT=v7
28797 export TEST_TAR_FORMAT
28798 TAR_OPTIONS=\"-H v7\"
28799 export TAR_OPTIONS
28800 rm -rf *
28801
28802 mkdir dir
28803 echo TEST > dir/file
28804 ln -s file dir/symlink || exit 77
28805
28806 tar cf archive dir dir
28807 tar tvf archive | sed '
28808   s,.*[0-9] dir/,dir/,
28809 ' | sort
28810
28811 echo ==
28812
28813 tar chf archive dir
28814 tar tvf archive | sed '
28815   s,.*[0-9] dir/,dir/,
28816   s,file,FOO,g
28817   s,symlink,FOO,g
28818 ' | sort
28819 )"
28820 echo link04.at:32 >"$at_check_line_file"
28821
28822 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
28823    false; }; then
28824   ( $at_traceon;
28825 mkdir v7
28826 (cd v7
28827 TEST_TAR_FORMAT=v7
28828 export TEST_TAR_FORMAT
28829 TAR_OPTIONS="-H v7"
28830 export TAR_OPTIONS
28831 rm -rf *
28832
28833 mkdir dir
28834 echo TEST > dir/file
28835 ln -s file dir/symlink || exit 77
28836
28837 tar cf archive dir dir
28838 tar tvf archive | sed '
28839   s,.*[0-9] dir/,dir/,
28840 ' | sort
28841
28842 echo ==
28843
28844 tar chf archive dir
28845 tar tvf archive | sed '
28846   s,.*[0-9] dir/,dir/,
28847   s,file,FOO,g
28848   s,symlink,FOO,g
28849 ' | sort
28850 ) ) >"$at_stdout" 2>"$at_stder1"
28851   at_func_filter_trace $?
28852 else
28853   ( :;
28854 mkdir v7
28855 (cd v7
28856 TEST_TAR_FORMAT=v7
28857 export TEST_TAR_FORMAT
28858 TAR_OPTIONS="-H v7"
28859 export TAR_OPTIONS
28860 rm -rf *
28861
28862 mkdir dir
28863 echo TEST > dir/file
28864 ln -s file dir/symlink || exit 77
28865
28866 tar cf archive dir dir
28867 tar tvf archive | sed '
28868   s,.*[0-9] dir/,dir/,
28869 ' | sort
28870
28871 echo ==
28872
28873 tar chf archive dir
28874 tar tvf archive | sed '
28875   s,.*[0-9] dir/,dir/,
28876   s,file,FOO,g
28877   s,symlink,FOO,g
28878 ' | sort
28879 ) ) >"$at_stdout" 2>"$at_stderr"
28880 fi
28881 at_status=$?
28882 at_failed=false
28883 at_func_diff_devnull "$at_stderr" || at_failed=:
28884 echo >>"$at_stdout"; $as_echo "dir/
28885 dir/
28886 dir/file
28887 dir/file link to dir/file
28888 dir/symlink -> file
28889 dir/symlink link to dir/symlink
28890 ==
28891 dir/
28892 dir/FOO
28893 dir/FOO link to dir/FOO
28894 " | \
28895   $at_diff - "$at_stdout" || at_failed=:
28896 at_func_check_status 0 $at_status "$at_srcdir/link04.at:32"
28897
28898 $at_failed && at_func_log_failure
28899 $at_traceon; }
28900
28901               { $at_traceoff
28902 $as_echo "$at_srcdir/link04.at:32:
28903 mkdir oldgnu
28904 (cd oldgnu
28905 TEST_TAR_FORMAT=oldgnu
28906 export TEST_TAR_FORMAT
28907 TAR_OPTIONS=\"-H oldgnu\"
28908 export TAR_OPTIONS
28909 rm -rf *
28910
28911 mkdir dir
28912 echo TEST > dir/file
28913 ln -s file dir/symlink || exit 77
28914
28915 tar cf archive dir dir
28916 tar tvf archive | sed '
28917   s,.*[0-9] dir/,dir/,
28918 ' | sort
28919
28920 echo ==
28921
28922 tar chf archive dir
28923 tar tvf archive | sed '
28924   s,.*[0-9] dir/,dir/,
28925   s,file,FOO,g
28926   s,symlink,FOO,g
28927 ' | sort
28928 )"
28929 echo link04.at:32 >"$at_check_line_file"
28930
28931 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
28932    false; }; then
28933   ( $at_traceon;
28934 mkdir oldgnu
28935 (cd oldgnu
28936 TEST_TAR_FORMAT=oldgnu
28937 export TEST_TAR_FORMAT
28938 TAR_OPTIONS="-H oldgnu"
28939 export TAR_OPTIONS
28940 rm -rf *
28941
28942 mkdir dir
28943 echo TEST > dir/file
28944 ln -s file dir/symlink || exit 77
28945
28946 tar cf archive dir dir
28947 tar tvf archive | sed '
28948   s,.*[0-9] dir/,dir/,
28949 ' | sort
28950
28951 echo ==
28952
28953 tar chf archive dir
28954 tar tvf archive | sed '
28955   s,.*[0-9] dir/,dir/,
28956   s,file,FOO,g
28957   s,symlink,FOO,g
28958 ' | sort
28959 ) ) >"$at_stdout" 2>"$at_stder1"
28960   at_func_filter_trace $?
28961 else
28962   ( :;
28963 mkdir oldgnu
28964 (cd oldgnu
28965 TEST_TAR_FORMAT=oldgnu
28966 export TEST_TAR_FORMAT
28967 TAR_OPTIONS="-H oldgnu"
28968 export TAR_OPTIONS
28969 rm -rf *
28970
28971 mkdir dir
28972 echo TEST > dir/file
28973 ln -s file dir/symlink || exit 77
28974
28975 tar cf archive dir dir
28976 tar tvf archive | sed '
28977   s,.*[0-9] dir/,dir/,
28978 ' | sort
28979
28980 echo ==
28981
28982 tar chf archive dir
28983 tar tvf archive | sed '
28984   s,.*[0-9] dir/,dir/,
28985   s,file,FOO,g
28986   s,symlink,FOO,g
28987 ' | sort
28988 ) ) >"$at_stdout" 2>"$at_stderr"
28989 fi
28990 at_status=$?
28991 at_failed=false
28992 at_func_diff_devnull "$at_stderr" || at_failed=:
28993 echo >>"$at_stdout"; $as_echo "dir/
28994 dir/
28995 dir/file
28996 dir/file link to dir/file
28997 dir/symlink -> file
28998 dir/symlink link to dir/symlink
28999 ==
29000 dir/
29001 dir/FOO
29002 dir/FOO link to dir/FOO
29003 " | \
29004   $at_diff - "$at_stdout" || at_failed=:
29005 at_func_check_status 0 $at_status "$at_srcdir/link04.at:32"
29006
29007 $at_failed && at_func_log_failure
29008 $at_traceon; }
29009
29010               { $at_traceoff
29011 $as_echo "$at_srcdir/link04.at:32:
29012 mkdir ustar
29013 (cd ustar
29014 TEST_TAR_FORMAT=ustar
29015 export TEST_TAR_FORMAT
29016 TAR_OPTIONS=\"-H ustar\"
29017 export TAR_OPTIONS
29018 rm -rf *
29019
29020 mkdir dir
29021 echo TEST > dir/file
29022 ln -s file dir/symlink || exit 77
29023
29024 tar cf archive dir dir
29025 tar tvf archive | sed '
29026   s,.*[0-9] dir/,dir/,
29027 ' | sort
29028
29029 echo ==
29030
29031 tar chf archive dir
29032 tar tvf archive | sed '
29033   s,.*[0-9] dir/,dir/,
29034   s,file,FOO,g
29035   s,symlink,FOO,g
29036 ' | sort
29037 )"
29038 echo link04.at:32 >"$at_check_line_file"
29039
29040 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
29041    false; }; then
29042   ( $at_traceon;
29043 mkdir ustar
29044 (cd ustar
29045 TEST_TAR_FORMAT=ustar
29046 export TEST_TAR_FORMAT
29047 TAR_OPTIONS="-H ustar"
29048 export TAR_OPTIONS
29049 rm -rf *
29050
29051 mkdir dir
29052 echo TEST > dir/file
29053 ln -s file dir/symlink || exit 77
29054
29055 tar cf archive dir dir
29056 tar tvf archive | sed '
29057   s,.*[0-9] dir/,dir/,
29058 ' | sort
29059
29060 echo ==
29061
29062 tar chf archive dir
29063 tar tvf archive | sed '
29064   s,.*[0-9] dir/,dir/,
29065   s,file,FOO,g
29066   s,symlink,FOO,g
29067 ' | sort
29068 ) ) >"$at_stdout" 2>"$at_stder1"
29069   at_func_filter_trace $?
29070 else
29071   ( :;
29072 mkdir ustar
29073 (cd ustar
29074 TEST_TAR_FORMAT=ustar
29075 export TEST_TAR_FORMAT
29076 TAR_OPTIONS="-H ustar"
29077 export TAR_OPTIONS
29078 rm -rf *
29079
29080 mkdir dir
29081 echo TEST > dir/file
29082 ln -s file dir/symlink || exit 77
29083
29084 tar cf archive dir dir
29085 tar tvf archive | sed '
29086   s,.*[0-9] dir/,dir/,
29087 ' | sort
29088
29089 echo ==
29090
29091 tar chf archive dir
29092 tar tvf archive | sed '
29093   s,.*[0-9] dir/,dir/,
29094   s,file,FOO,g
29095   s,symlink,FOO,g
29096 ' | sort
29097 ) ) >"$at_stdout" 2>"$at_stderr"
29098 fi
29099 at_status=$?
29100 at_failed=false
29101 at_func_diff_devnull "$at_stderr" || at_failed=:
29102 echo >>"$at_stdout"; $as_echo "dir/
29103 dir/
29104 dir/file
29105 dir/file link to dir/file
29106 dir/symlink -> file
29107 dir/symlink link to dir/symlink
29108 ==
29109 dir/
29110 dir/FOO
29111 dir/FOO link to dir/FOO
29112 " | \
29113   $at_diff - "$at_stdout" || at_failed=:
29114 at_func_check_status 0 $at_status "$at_srcdir/link04.at:32"
29115
29116 $at_failed && at_func_log_failure
29117 $at_traceon; }
29118
29119               { $at_traceoff
29120 $as_echo "$at_srcdir/link04.at:32:
29121 mkdir posix
29122 (cd posix
29123 TEST_TAR_FORMAT=posix
29124 export TEST_TAR_FORMAT
29125 TAR_OPTIONS=\"-H posix\"
29126 export TAR_OPTIONS
29127 rm -rf *
29128
29129 mkdir dir
29130 echo TEST > dir/file
29131 ln -s file dir/symlink || exit 77
29132
29133 tar cf archive dir dir
29134 tar tvf archive | sed '
29135   s,.*[0-9] dir/,dir/,
29136 ' | sort
29137
29138 echo ==
29139
29140 tar chf archive dir
29141 tar tvf archive | sed '
29142   s,.*[0-9] dir/,dir/,
29143   s,file,FOO,g
29144   s,symlink,FOO,g
29145 ' | sort
29146 )"
29147 echo link04.at:32 >"$at_check_line_file"
29148
29149 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
29150    false; }; then
29151   ( $at_traceon;
29152 mkdir posix
29153 (cd posix
29154 TEST_TAR_FORMAT=posix
29155 export TEST_TAR_FORMAT
29156 TAR_OPTIONS="-H posix"
29157 export TAR_OPTIONS
29158 rm -rf *
29159
29160 mkdir dir
29161 echo TEST > dir/file
29162 ln -s file dir/symlink || exit 77
29163
29164 tar cf archive dir dir
29165 tar tvf archive | sed '
29166   s,.*[0-9] dir/,dir/,
29167 ' | sort
29168
29169 echo ==
29170
29171 tar chf archive dir
29172 tar tvf archive | sed '
29173   s,.*[0-9] dir/,dir/,
29174   s,file,FOO,g
29175   s,symlink,FOO,g
29176 ' | sort
29177 ) ) >"$at_stdout" 2>"$at_stder1"
29178   at_func_filter_trace $?
29179 else
29180   ( :;
29181 mkdir posix
29182 (cd posix
29183 TEST_TAR_FORMAT=posix
29184 export TEST_TAR_FORMAT
29185 TAR_OPTIONS="-H posix"
29186 export TAR_OPTIONS
29187 rm -rf *
29188
29189 mkdir dir
29190 echo TEST > dir/file
29191 ln -s file dir/symlink || exit 77
29192
29193 tar cf archive dir dir
29194 tar tvf archive | sed '
29195   s,.*[0-9] dir/,dir/,
29196 ' | sort
29197
29198 echo ==
29199
29200 tar chf archive dir
29201 tar tvf archive | sed '
29202   s,.*[0-9] dir/,dir/,
29203   s,file,FOO,g
29204   s,symlink,FOO,g
29205 ' | sort
29206 ) ) >"$at_stdout" 2>"$at_stderr"
29207 fi
29208 at_status=$?
29209 at_failed=false
29210 at_func_diff_devnull "$at_stderr" || at_failed=:
29211 echo >>"$at_stdout"; $as_echo "dir/
29212 dir/
29213 dir/file
29214 dir/file link to dir/file
29215 dir/symlink -> file
29216 dir/symlink link to dir/symlink
29217 ==
29218 dir/
29219 dir/FOO
29220 dir/FOO link to dir/FOO
29221 " | \
29222   $at_diff - "$at_stdout" || at_failed=:
29223 at_func_check_status 0 $at_status "$at_srcdir/link04.at:32"
29224
29225 $at_failed && at_func_log_failure
29226 $at_traceon; }
29227
29228               { $at_traceoff
29229 $as_echo "$at_srcdir/link04.at:32:
29230 mkdir gnu
29231 (cd gnu
29232 TEST_TAR_FORMAT=gnu
29233 export TEST_TAR_FORMAT
29234 TAR_OPTIONS=\"-H gnu\"
29235 export TAR_OPTIONS
29236 rm -rf *
29237
29238 mkdir dir
29239 echo TEST > dir/file
29240 ln -s file dir/symlink || exit 77
29241
29242 tar cf archive dir dir
29243 tar tvf archive | sed '
29244   s,.*[0-9] dir/,dir/,
29245 ' | sort
29246
29247 echo ==
29248
29249 tar chf archive dir
29250 tar tvf archive | sed '
29251   s,.*[0-9] dir/,dir/,
29252   s,file,FOO,g
29253   s,symlink,FOO,g
29254 ' | sort
29255 )"
29256 echo link04.at:32 >"$at_check_line_file"
29257
29258 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
29259    false; }; then
29260   ( $at_traceon;
29261 mkdir gnu
29262 (cd gnu
29263 TEST_TAR_FORMAT=gnu
29264 export TEST_TAR_FORMAT
29265 TAR_OPTIONS="-H gnu"
29266 export TAR_OPTIONS
29267 rm -rf *
29268
29269 mkdir dir
29270 echo TEST > dir/file
29271 ln -s file dir/symlink || exit 77
29272
29273 tar cf archive dir dir
29274 tar tvf archive | sed '
29275   s,.*[0-9] dir/,dir/,
29276 ' | sort
29277
29278 echo ==
29279
29280 tar chf archive dir
29281 tar tvf archive | sed '
29282   s,.*[0-9] dir/,dir/,
29283   s,file,FOO,g
29284   s,symlink,FOO,g
29285 ' | sort
29286 ) ) >"$at_stdout" 2>"$at_stder1"
29287   at_func_filter_trace $?
29288 else
29289   ( :;
29290 mkdir gnu
29291 (cd gnu
29292 TEST_TAR_FORMAT=gnu
29293 export TEST_TAR_FORMAT
29294 TAR_OPTIONS="-H gnu"
29295 export TAR_OPTIONS
29296 rm -rf *
29297
29298 mkdir dir
29299 echo TEST > dir/file
29300 ln -s file dir/symlink || exit 77
29301
29302 tar cf archive dir dir
29303 tar tvf archive | sed '
29304   s,.*[0-9] dir/,dir/,
29305 ' | sort
29306
29307 echo ==
29308
29309 tar chf archive dir
29310 tar tvf archive | sed '
29311   s,.*[0-9] dir/,dir/,
29312   s,file,FOO,g
29313   s,symlink,FOO,g
29314 ' | sort
29315 ) ) >"$at_stdout" 2>"$at_stderr"
29316 fi
29317 at_status=$?
29318 at_failed=false
29319 at_func_diff_devnull "$at_stderr" || at_failed=:
29320 echo >>"$at_stdout"; $as_echo "dir/
29321 dir/
29322 dir/file
29323 dir/file link to dir/file
29324 dir/symlink -> file
29325 dir/symlink link to dir/symlink
29326 ==
29327 dir/
29328 dir/FOO
29329 dir/FOO link to dir/FOO
29330 " | \
29331   $at_diff - "$at_stdout" || at_failed=:
29332 at_func_check_status 0 $at_status "$at_srcdir/link04.at:32"
29333
29334 $at_failed && at_func_log_failure
29335 $at_traceon; }
29336
29337
29338
29339
29340   $at_traceoff
29341   $at_times_p && times >"$at_times_file"
29342 ) 5>&1 2>&1 | eval $at_tee_pipe
29343 at_status=`cat "$at_status_file"`
29344 #AT_STOP_74
29345 #AT_START_75
29346 # 75. longv7.at:24: long names in V7 archives
29347 at_setup_line='longv7.at:24'
29348 at_desc="long names in V7 archives"
29349 $at_quiet $as_echo_n " 75: $at_desc                      "
29350 at_xfail=no
29351       test -f $XFAILFILE && at_xfail=yes
29352 echo "#                             -*- compilation -*-" >> "$at_group_log"
29353 (
29354   $as_echo "75. longv7.at:24: testing ..."
29355   $at_traceon
29356
29357
29358
29359
29360
29361
29362
29363
29364   { $at_traceoff
29365 $as_echo "$at_srcdir/longv7.at:30:
29366 mkdir v7
29367 (cd v7
29368 TEST_TAR_FORMAT=v7
29369 export TEST_TAR_FORMAT
29370 TAR_OPTIONS=\"-H v7\"
29371 export TAR_OPTIONS
29372 rm -rf *
29373
29374 mkdir this_is_a_very_long_name_for_a_directory_which_causes_problems
29375 touch this_is_a_very_long_name_for_a_directory_which_causes_problems/this_is_a_very_long_file_name_which_raises_issues.c
29376
29377 tar cf archive this_is_a_very_long_name_for_a_directory_which_causes_problems
29378 echo separator
29379 tar tf archive
29380 )"
29381 echo longv7.at:30 >"$at_check_line_file"
29382
29383 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
29384    false; }; then
29385   ( $at_traceon;
29386 mkdir v7
29387 (cd v7
29388 TEST_TAR_FORMAT=v7
29389 export TEST_TAR_FORMAT
29390 TAR_OPTIONS="-H v7"
29391 export TAR_OPTIONS
29392 rm -rf *
29393
29394 mkdir this_is_a_very_long_name_for_a_directory_which_causes_problems
29395 touch this_is_a_very_long_name_for_a_directory_which_causes_problems/this_is_a_very_long_file_name_which_raises_issues.c
29396
29397 tar cf archive this_is_a_very_long_name_for_a_directory_which_causes_problems
29398 echo separator
29399 tar tf archive
29400 ) ) >"$at_stdout" 2>"$at_stder1"
29401   at_func_filter_trace $?
29402 else
29403   ( :;
29404 mkdir v7
29405 (cd v7
29406 TEST_TAR_FORMAT=v7
29407 export TEST_TAR_FORMAT
29408 TAR_OPTIONS="-H v7"
29409 export TAR_OPTIONS
29410 rm -rf *
29411
29412 mkdir this_is_a_very_long_name_for_a_directory_which_causes_problems
29413 touch this_is_a_very_long_name_for_a_directory_which_causes_problems/this_is_a_very_long_file_name_which_raises_issues.c
29414
29415 tar cf archive this_is_a_very_long_name_for_a_directory_which_causes_problems
29416 echo separator
29417 tar tf archive
29418 ) ) >"$at_stdout" 2>"$at_stderr"
29419 fi
29420 at_status=$?
29421 at_failed=false
29422 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
29423 tar: Exiting with failure status due to previous errors
29424 " | \
29425   $at_diff - "$at_stderr" || at_failed=:
29426 echo >>"$at_stdout"; $as_echo "separator
29427 this_is_a_very_long_name_for_a_directory_which_causes_problems/
29428 " | \
29429   $at_diff - "$at_stdout" || at_failed=:
29430 at_func_check_status 0 $at_status "$at_srcdir/longv7.at:30"
29431
29432 $at_failed && at_func_log_failure
29433 $at_traceon; }
29434
29435
29436
29437
29438   $at_traceoff
29439   $at_times_p && times >"$at_times_file"
29440 ) 5>&1 2>&1 | eval $at_tee_pipe
29441 at_status=`cat "$at_status_file"`
29442 #AT_STOP_75
29443 #AT_START_76
29444 # 76. long01.at:28: long file names divisible by block size
29445 at_setup_line='long01.at:28'
29446 at_desc="long file names divisible by block size"
29447 $at_quiet $as_echo_n " 76: $at_desc        "
29448 at_xfail=no
29449       test -f $XFAILFILE && at_xfail=yes
29450 echo "#                             -*- compilation -*-" >> "$at_group_log"
29451 (
29452   $as_echo "76. long01.at:28: testing ..."
29453   $at_traceon
29454
29455
29456
29457
29458
29459
29460
29461
29462
29463   { $at_traceoff
29464 $as_echo "$at_srcdir/long01.at:36:
29465 mkdir gnu
29466 (cd gnu
29467 TEST_TAR_FORMAT=gnu
29468 export TEST_TAR_FORMAT
29469 TAR_OPTIONS=\"-H gnu\"
29470 export TAR_OPTIONS
29471 rm -rf *
29472
29473
29474 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
29475 echo test > endfile
29476
29477 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
29478 tar tf archive)"
29479 echo long01.at:36 >"$at_check_line_file"
29480
29481 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
29482    false; }; then
29483   ( $at_traceon;
29484 mkdir gnu
29485 (cd gnu
29486 TEST_TAR_FORMAT=gnu
29487 export TEST_TAR_FORMAT
29488 TAR_OPTIONS="-H gnu"
29489 export TAR_OPTIONS
29490 rm -rf *
29491
29492
29493 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
29494 echo test > endfile
29495
29496 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
29497 tar tf archive) ) >"$at_stdout" 2>"$at_stder1"
29498   at_func_filter_trace $?
29499 else
29500   ( :;
29501 mkdir gnu
29502 (cd gnu
29503 TEST_TAR_FORMAT=gnu
29504 export TEST_TAR_FORMAT
29505 TAR_OPTIONS="-H gnu"
29506 export TAR_OPTIONS
29507 rm -rf *
29508
29509
29510 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
29511 echo test > endfile
29512
29513 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
29514 tar tf archive) ) >"$at_stdout" 2>"$at_stderr"
29515 fi
29516 at_status=$?
29517 at_failed=false
29518 at_func_diff_devnull "$at_stderr" || at_failed=:
29519 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
29520 endfile
29521 " | \
29522   $at_diff - "$at_stdout" || at_failed=:
29523 at_func_check_status 0 $at_status "$at_srcdir/long01.at:36"
29524
29525 $at_failed && at_func_log_failure
29526 $at_traceon; }
29527
29528               { $at_traceoff
29529 $as_echo "$at_srcdir/long01.at:36:
29530 mkdir oldgnu
29531 (cd oldgnu
29532 TEST_TAR_FORMAT=oldgnu
29533 export TEST_TAR_FORMAT
29534 TAR_OPTIONS=\"-H oldgnu\"
29535 export TAR_OPTIONS
29536 rm -rf *
29537
29538
29539 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
29540 echo test > endfile
29541
29542 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
29543 tar tf archive)"
29544 echo long01.at:36 >"$at_check_line_file"
29545
29546 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
29547    false; }; then
29548   ( $at_traceon;
29549 mkdir oldgnu
29550 (cd oldgnu
29551 TEST_TAR_FORMAT=oldgnu
29552 export TEST_TAR_FORMAT
29553 TAR_OPTIONS="-H oldgnu"
29554 export TAR_OPTIONS
29555 rm -rf *
29556
29557
29558 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
29559 echo test > endfile
29560
29561 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
29562 tar tf archive) ) >"$at_stdout" 2>"$at_stder1"
29563   at_func_filter_trace $?
29564 else
29565   ( :;
29566 mkdir oldgnu
29567 (cd oldgnu
29568 TEST_TAR_FORMAT=oldgnu
29569 export TEST_TAR_FORMAT
29570 TAR_OPTIONS="-H oldgnu"
29571 export TAR_OPTIONS
29572 rm -rf *
29573
29574
29575 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
29576 echo test > endfile
29577
29578 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
29579 tar tf archive) ) >"$at_stdout" 2>"$at_stderr"
29580 fi
29581 at_status=$?
29582 at_failed=false
29583 at_func_diff_devnull "$at_stderr" || at_failed=:
29584 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
29585 endfile
29586 " | \
29587   $at_diff - "$at_stdout" || at_failed=:
29588 at_func_check_status 0 $at_status "$at_srcdir/long01.at:36"
29589
29590 $at_failed && at_func_log_failure
29591 $at_traceon; }
29592
29593
29594
29595
29596   $at_traceoff
29597   $at_times_p && times >"$at_times_file"
29598 ) 5>&1 2>&1 | eval $at_tee_pipe
29599 at_status=`cat "$at_status_file"`
29600 #AT_STOP_76
29601 #AT_START_77
29602 # 77. lustar01.at:21: ustar: unsplittable file name
29603 at_setup_line='lustar01.at:21'
29604 at_desc="ustar: unsplittable file name"
29605 $at_quiet $as_echo_n " 77: $at_desc                  "
29606 at_xfail=no
29607       test -f $XFAILFILE && at_xfail=yes
29608 echo "#                             -*- compilation -*-" >> "$at_group_log"
29609 (
29610   $as_echo "77. lustar01.at:21: testing ..."
29611   $at_traceon
29612
29613
29614
29615
29616
29617
29618
29619   { $at_traceoff
29620 $as_echo "$at_srcdir/lustar01.at:27:
29621 mkdir ustar
29622 (cd ustar
29623 TEST_TAR_FORMAT=ustar
29624 export TEST_TAR_FORMAT
29625 TAR_OPTIONS=\"-H ustar\"
29626 export TAR_OPTIONS
29627 rm -rf *
29628
29629 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
29630 tar cf archive this_is_a_very_long_name_for_a_file_designed_to_test_generation_of_ustar_archives_by_gnu_tar_semicolon_it_will_not_fit_the_name_field_and_cannot_be_split_between_name_and_prefix
29631 )"
29632 echo lustar01.at:27 >"$at_check_line_file"
29633
29634 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
29635    false; }; then
29636   ( $at_traceon;
29637 mkdir ustar
29638 (cd ustar
29639 TEST_TAR_FORMAT=ustar
29640 export TEST_TAR_FORMAT
29641 TAR_OPTIONS="-H ustar"
29642 export TAR_OPTIONS
29643 rm -rf *
29644
29645 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
29646 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
29647 ) ) >"$at_stdout" 2>"$at_stder1"
29648   at_func_filter_trace $?
29649 else
29650   ( :;
29651 mkdir ustar
29652 (cd ustar
29653 TEST_TAR_FORMAT=ustar
29654 export TEST_TAR_FORMAT
29655 TAR_OPTIONS="-H ustar"
29656 export TAR_OPTIONS
29657 rm -rf *
29658
29659 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
29660 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
29661 ) ) >"$at_stdout" 2>"$at_stderr"
29662 fi
29663 at_status=$?
29664 at_failed=false
29665 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
29666 tar: Exiting with failure status due to previous errors
29667 " | \
29668   $at_diff - "$at_stderr" || at_failed=:
29669 at_func_diff_devnull "$at_stdout" || at_failed=:
29670 at_func_check_status 2 $at_status "$at_srcdir/lustar01.at:27"
29671
29672 $at_failed && at_func_log_failure
29673 $at_traceon; }
29674
29675
29676
29677
29678   $at_traceoff
29679   $at_times_p && times >"$at_times_file"
29680 ) 5>&1 2>&1 | eval $at_tee_pipe
29681 at_status=`cat "$at_status_file"`
29682 #AT_STOP_77
29683 #AT_START_78
29684 # 78. lustar02.at:21: ustar: unsplittable path name
29685 at_setup_line='lustar02.at:21'
29686 at_desc="ustar: unsplittable path name"
29687 $at_quiet $as_echo_n " 78: $at_desc                  "
29688 at_xfail=no
29689       test -f $XFAILFILE && at_xfail=yes
29690 echo "#                             -*- compilation -*-" >> "$at_group_log"
29691 (
29692   $as_echo "78. lustar02.at:21: testing ..."
29693   $at_traceon
29694
29695
29696
29697
29698
29699
29700
29701
29702
29703
29704
29705   { $at_traceoff
29706 $as_echo "$at_srcdir/lustar02.at:32:
29707 mkdir ustar
29708 (cd ustar
29709 TEST_TAR_FORMAT=ustar
29710 export TEST_TAR_FORMAT
29711 TAR_OPTIONS=\"-H ustar\"
29712 export TAR_OPTIONS
29713 rm -rf *
29714
29715
29716 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
29717 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
29718 )"
29719 echo lustar02.at:32 >"$at_check_line_file"
29720
29721 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
29722    false; }; then
29723   ( $at_traceon;
29724 mkdir ustar
29725 (cd ustar
29726 TEST_TAR_FORMAT=ustar
29727 export TEST_TAR_FORMAT
29728 TAR_OPTIONS="-H ustar"
29729 export TAR_OPTIONS
29730 rm -rf *
29731
29732
29733 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
29734 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
29735 ) ) >"$at_stdout" 2>"$at_stder1"
29736   at_func_filter_trace $?
29737 else
29738   ( :;
29739 mkdir ustar
29740 (cd ustar
29741 TEST_TAR_FORMAT=ustar
29742 export TEST_TAR_FORMAT
29743 TAR_OPTIONS="-H ustar"
29744 export TAR_OPTIONS
29745 rm -rf *
29746
29747
29748 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
29749 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
29750 ) ) >"$at_stdout" 2>"$at_stderr"
29751 fi
29752 at_status=$?
29753 at_failed=false
29754 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
29755 tar: Exiting with failure status due to previous errors
29756 " | \
29757   $at_diff - "$at_stderr" || at_failed=:
29758 at_func_diff_devnull "$at_stdout" || at_failed=:
29759 at_func_check_status 2 $at_status "$at_srcdir/lustar02.at:32"
29760
29761 $at_failed && at_func_log_failure
29762 $at_traceon; }
29763
29764
29765
29766
29767   $at_traceoff
29768   $at_times_p && times >"$at_times_file"
29769 ) 5>&1 2>&1 | eval $at_tee_pipe
29770 at_status=`cat "$at_status_file"`
29771 #AT_STOP_78
29772 #AT_START_79
29773 # 79. lustar03.at:21: ustar: splitting long names
29774 at_setup_line='lustar03.at:21'
29775 at_desc="ustar: splitting long names"
29776 $at_quiet $as_echo_n " 79: $at_desc                    "
29777 at_xfail=no
29778       test -f $XFAILFILE && at_xfail=yes
29779 echo "#                             -*- compilation -*-" >> "$at_group_log"
29780 (
29781   $as_echo "79. lustar03.at:21: testing ..."
29782   $at_traceon
29783
29784
29785
29786
29787
29788
29789
29790
29791
29792   { $at_traceoff
29793 $as_echo "$at_srcdir/lustar03.at:29:
29794 mkdir ustar
29795 (cd ustar
29796 TEST_TAR_FORMAT=ustar
29797 export TEST_TAR_FORMAT
29798 TAR_OPTIONS=\"-H ustar\"
29799 export TAR_OPTIONS
29800 rm -rf *
29801
29802
29803 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
29804 echo \"Create archive\"
29805 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
29806 echo \"List archive\"
29807 tar tf archive)"
29808 echo lustar03.at:29 >"$at_check_line_file"
29809
29810 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
29811    false; }; then
29812   ( $at_traceon;
29813 mkdir ustar
29814 (cd ustar
29815 TEST_TAR_FORMAT=ustar
29816 export TEST_TAR_FORMAT
29817 TAR_OPTIONS="-H ustar"
29818 export TAR_OPTIONS
29819 rm -rf *
29820
29821
29822 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
29823 echo "Create archive"
29824 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
29825 echo "List archive"
29826 tar tf archive) ) >"$at_stdout" 2>"$at_stder1"
29827   at_func_filter_trace $?
29828 else
29829   ( :;
29830 mkdir ustar
29831 (cd ustar
29832 TEST_TAR_FORMAT=ustar
29833 export TEST_TAR_FORMAT
29834 TAR_OPTIONS="-H ustar"
29835 export TAR_OPTIONS
29836 rm -rf *
29837
29838
29839 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
29840 echo "Create archive"
29841 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
29842 echo "List archive"
29843 tar tf archive) ) >"$at_stdout" 2>"$at_stderr"
29844 fi
29845 at_status=$?
29846 at_failed=false
29847 at_func_diff_devnull "$at_stderr" || at_failed=:
29848 echo >>"$at_stdout"; $as_echo "Create archive
29849 List archive
29850 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/
29851 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
29852 " | \
29853   $at_diff - "$at_stdout" || at_failed=:
29854 at_func_check_status 0 $at_status "$at_srcdir/lustar03.at:29"
29855
29856 $at_failed && at_func_log_failure
29857 $at_traceon; }
29858
29859
29860
29861
29862   $at_traceoff
29863   $at_times_p && times >"$at_times_file"
29864 ) 5>&1 2>&1 | eval $at_tee_pipe
29865 at_status=`cat "$at_status_file"`
29866 #AT_STOP_79
29867 #AT_START_80
29868 # 80. multiv01.at:23: multivolume dumps from pipes
29869 at_setup_line='multiv01.at:23'
29870 at_desc="multivolume dumps from pipes"
29871 $at_quiet $as_echo_n " 80: $at_desc                   "
29872 at_xfail=no
29873       test -f $XFAILFILE && at_xfail=yes
29874 echo "#                             -*- compilation -*-" >> "$at_group_log"
29875 (
29876   $as_echo "80. multiv01.at:23: testing ..."
29877   $at_traceon
29878
29879
29880
29881 # Fixme: should be configurable
29882 #  TRUSS=truss -o /tmp/tr
29883 #  TRUSS=strace
29884
29885
29886
29887   { $at_traceoff
29888 $as_echo "$at_srcdir/multiv01.at:30:
29889 mkdir gnu
29890 (cd gnu
29891 TEST_TAR_FORMAT=gnu
29892 export TEST_TAR_FORMAT
29893 TAR_OPTIONS=\"-H gnu\"
29894 export TAR_OPTIONS
29895 rm -rf *
29896
29897 exec <&-
29898 genfile --length 7168 --file file1
29899
29900 for block in \" 1\" \" 2\" \" 3\" \" 4\" \" 5\" \" 6\" \" 7\" \" 8\" \\
29901               \" 9\" \"10\" \"11\" \"12\" \"13\" \"14\" \"15\" \"16\" ; do \\
29902   echo \"file2  block \${block} bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla\"
29903   for count in 2 3 4 5 6 7 8 ; do
29904     echo \"bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla\"
29905   done
29906 done >file2
29907
29908 if test \$TEST_TAR_FORMAT = pax; then
29909   TAPE_LENGTH=11
29910 else
29911   TAPE_LENGTH=10
29912 fi
29913
29914 tar -c --multi-volume --tape-length=\$TAPE_LENGTH \\
29915   -f t1-pipe.tar -f t2-pipe.tar ./file1 ./file2 || exit 1
29916
29917 mkdir extract-dir-pipe
29918 dd bs=4096 count=\$TAPE_LENGTH if=t2-pipe.tar 2>/dev/null |
29919 PATH=\$PATH \${TRUSS} tar -f t1-pipe.tar -f - \\
29920       -C extract-dir-pipe -x --multi-volume --warning=no-timestamp \\
29921       --tape-length=\$TAPE_LENGTH --read-full-records || exit 1
29922
29923 cmp file1 extract-dir-pipe/file1
29924 cmp file2 extract-dir-pipe/file2
29925 )"
29926 echo multiv01.at:30 >"$at_check_line_file"
29927
29928 if { echo 'Not enabling shell tracing (command contains a ${...} parameter expansion)'
29929    false; }; then
29930   ( $at_traceon;
29931 mkdir gnu
29932 (cd gnu
29933 TEST_TAR_FORMAT=gnu
29934 export TEST_TAR_FORMAT
29935 TAR_OPTIONS="-H gnu"
29936 export TAR_OPTIONS
29937 rm -rf *
29938
29939 exec <&-
29940 genfile --length 7168 --file file1
29941
29942 for block in " 1" " 2" " 3" " 4" " 5" " 6" " 7" " 8" \
29943               " 9" "10" "11" "12" "13" "14" "15" "16" ; do \
29944   echo "file2  block ${block} bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla"
29945   for count in 2 3 4 5 6 7 8 ; do
29946     echo "bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla"
29947   done
29948 done >file2
29949
29950 if test $TEST_TAR_FORMAT = pax; then
29951   TAPE_LENGTH=11
29952 else
29953   TAPE_LENGTH=10
29954 fi
29955
29956 tar -c --multi-volume --tape-length=$TAPE_LENGTH \
29957   -f t1-pipe.tar -f t2-pipe.tar ./file1 ./file2 || exit 1
29958
29959 mkdir extract-dir-pipe
29960 dd bs=4096 count=$TAPE_LENGTH if=t2-pipe.tar 2>/dev/null |
29961 PATH=$PATH ${TRUSS} tar -f t1-pipe.tar -f - \
29962       -C extract-dir-pipe -x --multi-volume --warning=no-timestamp \
29963       --tape-length=$TAPE_LENGTH --read-full-records || exit 1
29964
29965 cmp file1 extract-dir-pipe/file1
29966 cmp file2 extract-dir-pipe/file2
29967 ) ) >"$at_stdout" 2>"$at_stder1"
29968   at_func_filter_trace $?
29969 else
29970   ( :;
29971 mkdir gnu
29972 (cd gnu
29973 TEST_TAR_FORMAT=gnu
29974 export TEST_TAR_FORMAT
29975 TAR_OPTIONS="-H gnu"
29976 export TAR_OPTIONS
29977 rm -rf *
29978
29979 exec <&-
29980 genfile --length 7168 --file file1
29981
29982 for block in " 1" " 2" " 3" " 4" " 5" " 6" " 7" " 8" \
29983               " 9" "10" "11" "12" "13" "14" "15" "16" ; do \
29984   echo "file2  block ${block} bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla"
29985   for count in 2 3 4 5 6 7 8 ; do
29986     echo "bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla"
29987   done
29988 done >file2
29989
29990 if test $TEST_TAR_FORMAT = pax; then
29991   TAPE_LENGTH=11
29992 else
29993   TAPE_LENGTH=10
29994 fi
29995
29996 tar -c --multi-volume --tape-length=$TAPE_LENGTH \
29997   -f t1-pipe.tar -f t2-pipe.tar ./file1 ./file2 || exit 1
29998
29999 mkdir extract-dir-pipe
30000 dd bs=4096 count=$TAPE_LENGTH if=t2-pipe.tar 2>/dev/null |
30001 PATH=$PATH ${TRUSS} tar -f t1-pipe.tar -f - \
30002       -C extract-dir-pipe -x --multi-volume --warning=no-timestamp \
30003       --tape-length=$TAPE_LENGTH --read-full-records || exit 1
30004
30005 cmp file1 extract-dir-pipe/file1
30006 cmp file2 extract-dir-pipe/file2
30007 ) ) >"$at_stdout" 2>"$at_stderr"
30008 fi
30009 at_status=$?
30010 at_failed=false
30011 at_func_diff_devnull "$at_stderr" || at_failed=:
30012 at_func_diff_devnull "$at_stdout" || at_failed=:
30013 at_func_check_status 0 $at_status "$at_srcdir/multiv01.at:30"
30014
30015 $at_failed && at_func_log_failure
30016 $at_traceon; }
30017
30018               { $at_traceoff
30019 $as_echo "$at_srcdir/multiv01.at:30:
30020 mkdir oldgnu
30021 (cd oldgnu
30022 TEST_TAR_FORMAT=oldgnu
30023 export TEST_TAR_FORMAT
30024 TAR_OPTIONS=\"-H oldgnu\"
30025 export TAR_OPTIONS
30026 rm -rf *
30027
30028 exec <&-
30029 genfile --length 7168 --file file1
30030
30031 for block in \" 1\" \" 2\" \" 3\" \" 4\" \" 5\" \" 6\" \" 7\" \" 8\" \\
30032               \" 9\" \"10\" \"11\" \"12\" \"13\" \"14\" \"15\" \"16\" ; do \\
30033   echo \"file2  block \${block} bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla\"
30034   for count in 2 3 4 5 6 7 8 ; do
30035     echo \"bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla\"
30036   done
30037 done >file2
30038
30039 if test \$TEST_TAR_FORMAT = pax; then
30040   TAPE_LENGTH=11
30041 else
30042   TAPE_LENGTH=10
30043 fi
30044
30045 tar -c --multi-volume --tape-length=\$TAPE_LENGTH \\
30046   -f t1-pipe.tar -f t2-pipe.tar ./file1 ./file2 || exit 1
30047
30048 mkdir extract-dir-pipe
30049 dd bs=4096 count=\$TAPE_LENGTH if=t2-pipe.tar 2>/dev/null |
30050 PATH=\$PATH \${TRUSS} tar -f t1-pipe.tar -f - \\
30051       -C extract-dir-pipe -x --multi-volume --warning=no-timestamp \\
30052       --tape-length=\$TAPE_LENGTH --read-full-records || exit 1
30053
30054 cmp file1 extract-dir-pipe/file1
30055 cmp file2 extract-dir-pipe/file2
30056 )"
30057 echo multiv01.at:30 >"$at_check_line_file"
30058
30059 if { echo 'Not enabling shell tracing (command contains a ${...} parameter expansion)'
30060    false; }; then
30061   ( $at_traceon;
30062 mkdir oldgnu
30063 (cd oldgnu
30064 TEST_TAR_FORMAT=oldgnu
30065 export TEST_TAR_FORMAT
30066 TAR_OPTIONS="-H oldgnu"
30067 export TAR_OPTIONS
30068 rm -rf *
30069
30070 exec <&-
30071 genfile --length 7168 --file file1
30072
30073 for block in " 1" " 2" " 3" " 4" " 5" " 6" " 7" " 8" \
30074               " 9" "10" "11" "12" "13" "14" "15" "16" ; do \
30075   echo "file2  block ${block} bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla"
30076   for count in 2 3 4 5 6 7 8 ; do
30077     echo "bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla"
30078   done
30079 done >file2
30080
30081 if test $TEST_TAR_FORMAT = pax; then
30082   TAPE_LENGTH=11
30083 else
30084   TAPE_LENGTH=10
30085 fi
30086
30087 tar -c --multi-volume --tape-length=$TAPE_LENGTH \
30088   -f t1-pipe.tar -f t2-pipe.tar ./file1 ./file2 || exit 1
30089
30090 mkdir extract-dir-pipe
30091 dd bs=4096 count=$TAPE_LENGTH if=t2-pipe.tar 2>/dev/null |
30092 PATH=$PATH ${TRUSS} tar -f t1-pipe.tar -f - \
30093       -C extract-dir-pipe -x --multi-volume --warning=no-timestamp \
30094       --tape-length=$TAPE_LENGTH --read-full-records || exit 1
30095
30096 cmp file1 extract-dir-pipe/file1
30097 cmp file2 extract-dir-pipe/file2
30098 ) ) >"$at_stdout" 2>"$at_stder1"
30099   at_func_filter_trace $?
30100 else
30101   ( :;
30102 mkdir oldgnu
30103 (cd oldgnu
30104 TEST_TAR_FORMAT=oldgnu
30105 export TEST_TAR_FORMAT
30106 TAR_OPTIONS="-H oldgnu"
30107 export TAR_OPTIONS
30108 rm -rf *
30109
30110 exec <&-
30111 genfile --length 7168 --file file1
30112
30113 for block in " 1" " 2" " 3" " 4" " 5" " 6" " 7" " 8" \
30114               " 9" "10" "11" "12" "13" "14" "15" "16" ; do \
30115   echo "file2  block ${block} bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla"
30116   for count in 2 3 4 5 6 7 8 ; do
30117     echo "bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla"
30118   done
30119 done >file2
30120
30121 if test $TEST_TAR_FORMAT = pax; then
30122   TAPE_LENGTH=11
30123 else
30124   TAPE_LENGTH=10
30125 fi
30126
30127 tar -c --multi-volume --tape-length=$TAPE_LENGTH \
30128   -f t1-pipe.tar -f t2-pipe.tar ./file1 ./file2 || exit 1
30129
30130 mkdir extract-dir-pipe
30131 dd bs=4096 count=$TAPE_LENGTH if=t2-pipe.tar 2>/dev/null |
30132 PATH=$PATH ${TRUSS} tar -f t1-pipe.tar -f - \
30133       -C extract-dir-pipe -x --multi-volume --warning=no-timestamp \
30134       --tape-length=$TAPE_LENGTH --read-full-records || exit 1
30135
30136 cmp file1 extract-dir-pipe/file1
30137 cmp file2 extract-dir-pipe/file2
30138 ) ) >"$at_stdout" 2>"$at_stderr"
30139 fi
30140 at_status=$?
30141 at_failed=false
30142 at_func_diff_devnull "$at_stderr" || at_failed=:
30143 at_func_diff_devnull "$at_stdout" || at_failed=:
30144 at_func_check_status 0 $at_status "$at_srcdir/multiv01.at:30"
30145
30146 $at_failed && at_func_log_failure
30147 $at_traceon; }
30148
30149               { $at_traceoff
30150 $as_echo "$at_srcdir/multiv01.at:30:
30151 mkdir pax
30152 (cd pax
30153 TEST_TAR_FORMAT=pax
30154 export TEST_TAR_FORMAT
30155 TAR_OPTIONS=\"-H pax\"
30156 export TAR_OPTIONS
30157 rm -rf *
30158
30159 exec <&-
30160 genfile --length 7168 --file file1
30161
30162 for block in \" 1\" \" 2\" \" 3\" \" 4\" \" 5\" \" 6\" \" 7\" \" 8\" \\
30163               \" 9\" \"10\" \"11\" \"12\" \"13\" \"14\" \"15\" \"16\" ; do \\
30164   echo \"file2  block \${block} bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla\"
30165   for count in 2 3 4 5 6 7 8 ; do
30166     echo \"bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla\"
30167   done
30168 done >file2
30169
30170 if test \$TEST_TAR_FORMAT = pax; then
30171   TAPE_LENGTH=11
30172 else
30173   TAPE_LENGTH=10
30174 fi
30175
30176 tar -c --multi-volume --tape-length=\$TAPE_LENGTH \\
30177   -f t1-pipe.tar -f t2-pipe.tar ./file1 ./file2 || exit 1
30178
30179 mkdir extract-dir-pipe
30180 dd bs=4096 count=\$TAPE_LENGTH if=t2-pipe.tar 2>/dev/null |
30181 PATH=\$PATH \${TRUSS} tar -f t1-pipe.tar -f - \\
30182       -C extract-dir-pipe -x --multi-volume --warning=no-timestamp \\
30183       --tape-length=\$TAPE_LENGTH --read-full-records || exit 1
30184
30185 cmp file1 extract-dir-pipe/file1
30186 cmp file2 extract-dir-pipe/file2
30187 )"
30188 echo multiv01.at:30 >"$at_check_line_file"
30189
30190 if { echo 'Not enabling shell tracing (command contains a ${...} parameter expansion)'
30191    false; }; then
30192   ( $at_traceon;
30193 mkdir pax
30194 (cd pax
30195 TEST_TAR_FORMAT=pax
30196 export TEST_TAR_FORMAT
30197 TAR_OPTIONS="-H pax"
30198 export TAR_OPTIONS
30199 rm -rf *
30200
30201 exec <&-
30202 genfile --length 7168 --file file1
30203
30204 for block in " 1" " 2" " 3" " 4" " 5" " 6" " 7" " 8" \
30205               " 9" "10" "11" "12" "13" "14" "15" "16" ; do \
30206   echo "file2  block ${block} bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla"
30207   for count in 2 3 4 5 6 7 8 ; do
30208     echo "bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla"
30209   done
30210 done >file2
30211
30212 if test $TEST_TAR_FORMAT = pax; then
30213   TAPE_LENGTH=11
30214 else
30215   TAPE_LENGTH=10
30216 fi
30217
30218 tar -c --multi-volume --tape-length=$TAPE_LENGTH \
30219   -f t1-pipe.tar -f t2-pipe.tar ./file1 ./file2 || exit 1
30220
30221 mkdir extract-dir-pipe
30222 dd bs=4096 count=$TAPE_LENGTH if=t2-pipe.tar 2>/dev/null |
30223 PATH=$PATH ${TRUSS} tar -f t1-pipe.tar -f - \
30224       -C extract-dir-pipe -x --multi-volume --warning=no-timestamp \
30225       --tape-length=$TAPE_LENGTH --read-full-records || exit 1
30226
30227 cmp file1 extract-dir-pipe/file1
30228 cmp file2 extract-dir-pipe/file2
30229 ) ) >"$at_stdout" 2>"$at_stder1"
30230   at_func_filter_trace $?
30231 else
30232   ( :;
30233 mkdir pax
30234 (cd pax
30235 TEST_TAR_FORMAT=pax
30236 export TEST_TAR_FORMAT
30237 TAR_OPTIONS="-H pax"
30238 export TAR_OPTIONS
30239 rm -rf *
30240
30241 exec <&-
30242 genfile --length 7168 --file file1
30243
30244 for block in " 1" " 2" " 3" " 4" " 5" " 6" " 7" " 8" \
30245               " 9" "10" "11" "12" "13" "14" "15" "16" ; do \
30246   echo "file2  block ${block} bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla"
30247   for count in 2 3 4 5 6 7 8 ; do
30248     echo "bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla"
30249   done
30250 done >file2
30251
30252 if test $TEST_TAR_FORMAT = pax; then
30253   TAPE_LENGTH=11
30254 else
30255   TAPE_LENGTH=10
30256 fi
30257
30258 tar -c --multi-volume --tape-length=$TAPE_LENGTH \
30259   -f t1-pipe.tar -f t2-pipe.tar ./file1 ./file2 || exit 1
30260
30261 mkdir extract-dir-pipe
30262 dd bs=4096 count=$TAPE_LENGTH if=t2-pipe.tar 2>/dev/null |
30263 PATH=$PATH ${TRUSS} tar -f t1-pipe.tar -f - \
30264       -C extract-dir-pipe -x --multi-volume --warning=no-timestamp \
30265       --tape-length=$TAPE_LENGTH --read-full-records || exit 1
30266
30267 cmp file1 extract-dir-pipe/file1
30268 cmp file2 extract-dir-pipe/file2
30269 ) ) >"$at_stdout" 2>"$at_stderr"
30270 fi
30271 at_status=$?
30272 at_failed=false
30273 at_func_diff_devnull "$at_stderr" || at_failed=:
30274 at_func_diff_devnull "$at_stdout" || at_failed=:
30275 at_func_check_status 0 $at_status "$at_srcdir/multiv01.at:30"
30276
30277 $at_failed && at_func_log_failure
30278 $at_traceon; }
30279
30280
30281
30282
30283   $at_traceoff
30284   $at_times_p && times >"$at_times_file"
30285 ) 5>&1 2>&1 | eval $at_tee_pipe
30286 at_status=`cat "$at_status_file"`
30287 #AT_STOP_80
30288 #AT_START_81
30289 # 81. multiv02.at:28: skipping a straddling member
30290 at_setup_line='multiv02.at:28'
30291 at_desc="skipping a straddling member"
30292 $at_quiet $as_echo_n " 81: $at_desc                   "
30293 at_xfail=no
30294       test -f $XFAILFILE && at_xfail=yes
30295 echo "#                             -*- compilation -*-" >> "$at_group_log"
30296 (
30297   $as_echo "81. multiv02.at:28: testing ..."
30298   $at_traceon
30299
30300
30301
30302
30303
30304   { $at_traceoff
30305 $as_echo "$at_srcdir/multiv02.at:31:
30306 mkdir gnu
30307 (cd gnu
30308 TEST_TAR_FORMAT=gnu
30309 export TEST_TAR_FORMAT
30310 TAR_OPTIONS=\"-H gnu\"
30311 export TAR_OPTIONS
30312 rm -rf *
30313
30314 genfile --length 10240 --file en
30315 genfile --length 20000 --file to
30316 genfile --length 20000 --file tre
30317 genfile --length 10240 --file fire
30318
30319 exec <&-
30320
30321 tar -c -f A.tar -f B.tar -f C.tar -M -L 30 en to tre fire || exit 1
30322 echo separator
30323 tar -v -x -f A.tar -f B.tar -f C.tar -M en --warning=no-timestamp || exit 1
30324 )"
30325 echo multiv02.at:31 >"$at_check_line_file"
30326
30327 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
30328    false; }; then
30329   ( $at_traceon;
30330 mkdir gnu
30331 (cd gnu
30332 TEST_TAR_FORMAT=gnu
30333 export TEST_TAR_FORMAT
30334 TAR_OPTIONS="-H gnu"
30335 export TAR_OPTIONS
30336 rm -rf *
30337
30338 genfile --length 10240 --file en
30339 genfile --length 20000 --file to
30340 genfile --length 20000 --file tre
30341 genfile --length 10240 --file fire
30342
30343 exec <&-
30344
30345 tar -c -f A.tar -f B.tar -f C.tar -M -L 30 en to tre fire || exit 1
30346 echo separator
30347 tar -v -x -f A.tar -f B.tar -f C.tar -M en --warning=no-timestamp || exit 1
30348 ) ) >"$at_stdout" 2>"$at_stder1"
30349   at_func_filter_trace $?
30350 else
30351   ( :;
30352 mkdir gnu
30353 (cd gnu
30354 TEST_TAR_FORMAT=gnu
30355 export TEST_TAR_FORMAT
30356 TAR_OPTIONS="-H gnu"
30357 export TAR_OPTIONS
30358 rm -rf *
30359
30360 genfile --length 10240 --file en
30361 genfile --length 20000 --file to
30362 genfile --length 20000 --file tre
30363 genfile --length 10240 --file fire
30364
30365 exec <&-
30366
30367 tar -c -f A.tar -f B.tar -f C.tar -M -L 30 en to tre fire || exit 1
30368 echo separator
30369 tar -v -x -f A.tar -f B.tar -f C.tar -M en --warning=no-timestamp || exit 1
30370 ) ) >"$at_stdout" 2>"$at_stderr"
30371 fi
30372 at_status=$?
30373 at_failed=false
30374 at_func_diff_devnull "$at_stderr" || at_failed=:
30375 echo >>"$at_stdout"; $as_echo "separator
30376 en
30377 " | \
30378   $at_diff - "$at_stdout" || at_failed=:
30379 at_func_check_status 0 $at_status "$at_srcdir/multiv02.at:31"
30380
30381 $at_failed && at_func_log_failure
30382 $at_traceon; }
30383
30384               { $at_traceoff
30385 $as_echo "$at_srcdir/multiv02.at:31:
30386 mkdir oldgnu
30387 (cd oldgnu
30388 TEST_TAR_FORMAT=oldgnu
30389 export TEST_TAR_FORMAT
30390 TAR_OPTIONS=\"-H oldgnu\"
30391 export TAR_OPTIONS
30392 rm -rf *
30393
30394 genfile --length 10240 --file en
30395 genfile --length 20000 --file to
30396 genfile --length 20000 --file tre
30397 genfile --length 10240 --file fire
30398
30399 exec <&-
30400
30401 tar -c -f A.tar -f B.tar -f C.tar -M -L 30 en to tre fire || exit 1
30402 echo separator
30403 tar -v -x -f A.tar -f B.tar -f C.tar -M en --warning=no-timestamp || exit 1
30404 )"
30405 echo multiv02.at:31 >"$at_check_line_file"
30406
30407 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
30408    false; }; then
30409   ( $at_traceon;
30410 mkdir oldgnu
30411 (cd oldgnu
30412 TEST_TAR_FORMAT=oldgnu
30413 export TEST_TAR_FORMAT
30414 TAR_OPTIONS="-H oldgnu"
30415 export TAR_OPTIONS
30416 rm -rf *
30417
30418 genfile --length 10240 --file en
30419 genfile --length 20000 --file to
30420 genfile --length 20000 --file tre
30421 genfile --length 10240 --file fire
30422
30423 exec <&-
30424
30425 tar -c -f A.tar -f B.tar -f C.tar -M -L 30 en to tre fire || exit 1
30426 echo separator
30427 tar -v -x -f A.tar -f B.tar -f C.tar -M en --warning=no-timestamp || exit 1
30428 ) ) >"$at_stdout" 2>"$at_stder1"
30429   at_func_filter_trace $?
30430 else
30431   ( :;
30432 mkdir oldgnu
30433 (cd oldgnu
30434 TEST_TAR_FORMAT=oldgnu
30435 export TEST_TAR_FORMAT
30436 TAR_OPTIONS="-H oldgnu"
30437 export TAR_OPTIONS
30438 rm -rf *
30439
30440 genfile --length 10240 --file en
30441 genfile --length 20000 --file to
30442 genfile --length 20000 --file tre
30443 genfile --length 10240 --file fire
30444
30445 exec <&-
30446
30447 tar -c -f A.tar -f B.tar -f C.tar -M -L 30 en to tre fire || exit 1
30448 echo separator
30449 tar -v -x -f A.tar -f B.tar -f C.tar -M en --warning=no-timestamp || exit 1
30450 ) ) >"$at_stdout" 2>"$at_stderr"
30451 fi
30452 at_status=$?
30453 at_failed=false
30454 at_func_diff_devnull "$at_stderr" || at_failed=:
30455 echo >>"$at_stdout"; $as_echo "separator
30456 en
30457 " | \
30458   $at_diff - "$at_stdout" || at_failed=:
30459 at_func_check_status 0 $at_status "$at_srcdir/multiv02.at:31"
30460
30461 $at_failed && at_func_log_failure
30462 $at_traceon; }
30463
30464               { $at_traceoff
30465 $as_echo "$at_srcdir/multiv02.at:31:
30466 mkdir pax
30467 (cd pax
30468 TEST_TAR_FORMAT=pax
30469 export TEST_TAR_FORMAT
30470 TAR_OPTIONS=\"-H pax\"
30471 export TAR_OPTIONS
30472 rm -rf *
30473
30474 genfile --length 10240 --file en
30475 genfile --length 20000 --file to
30476 genfile --length 20000 --file tre
30477 genfile --length 10240 --file fire
30478
30479 exec <&-
30480
30481 tar -c -f A.tar -f B.tar -f C.tar -M -L 30 en to tre fire || exit 1
30482 echo separator
30483 tar -v -x -f A.tar -f B.tar -f C.tar -M en --warning=no-timestamp || exit 1
30484 )"
30485 echo multiv02.at:31 >"$at_check_line_file"
30486
30487 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
30488    false; }; then
30489   ( $at_traceon;
30490 mkdir pax
30491 (cd pax
30492 TEST_TAR_FORMAT=pax
30493 export TEST_TAR_FORMAT
30494 TAR_OPTIONS="-H pax"
30495 export TAR_OPTIONS
30496 rm -rf *
30497
30498 genfile --length 10240 --file en
30499 genfile --length 20000 --file to
30500 genfile --length 20000 --file tre
30501 genfile --length 10240 --file fire
30502
30503 exec <&-
30504
30505 tar -c -f A.tar -f B.tar -f C.tar -M -L 30 en to tre fire || exit 1
30506 echo separator
30507 tar -v -x -f A.tar -f B.tar -f C.tar -M en --warning=no-timestamp || exit 1
30508 ) ) >"$at_stdout" 2>"$at_stder1"
30509   at_func_filter_trace $?
30510 else
30511   ( :;
30512 mkdir pax
30513 (cd pax
30514 TEST_TAR_FORMAT=pax
30515 export TEST_TAR_FORMAT
30516 TAR_OPTIONS="-H pax"
30517 export TAR_OPTIONS
30518 rm -rf *
30519
30520 genfile --length 10240 --file en
30521 genfile --length 20000 --file to
30522 genfile --length 20000 --file tre
30523 genfile --length 10240 --file fire
30524
30525 exec <&-
30526
30527 tar -c -f A.tar -f B.tar -f C.tar -M -L 30 en to tre fire || exit 1
30528 echo separator
30529 tar -v -x -f A.tar -f B.tar -f C.tar -M en --warning=no-timestamp || exit 1
30530 ) ) >"$at_stdout" 2>"$at_stderr"
30531 fi
30532 at_status=$?
30533 at_failed=false
30534 at_func_diff_devnull "$at_stderr" || at_failed=:
30535 echo >>"$at_stdout"; $as_echo "separator
30536 en
30537 " | \
30538   $at_diff - "$at_stdout" || at_failed=:
30539 at_func_check_status 0 $at_status "$at_srcdir/multiv02.at:31"
30540
30541 $at_failed && at_func_log_failure
30542 $at_traceon; }
30543
30544
30545
30546
30547   $at_traceoff
30548   $at_times_p && times >"$at_times_file"
30549 ) 5>&1 2>&1 | eval $at_tee_pipe
30550 at_status=`cat "$at_status_file"`
30551 #AT_STOP_81
30552 #AT_START_82
30553 # 82. multiv03.at:30: MV archive & long filenames
30554 at_setup_line='multiv03.at:30'
30555 at_desc="MV archive & long filenames"
30556 $at_quiet $as_echo_n " 82: $at_desc                    "
30557 at_xfail=no
30558       test -f $XFAILFILE && at_xfail=yes
30559 echo "#                             -*- compilation -*-" >> "$at_group_log"
30560 (
30561   $as_echo "82. multiv03.at:30: testing ..."
30562   $at_traceon
30563
30564
30565
30566
30567
30568   { $at_traceoff
30569 $as_echo "$at_srcdir/multiv03.at:33:
30570 mkdir gnu
30571 (cd gnu
30572 TEST_TAR_FORMAT=gnu
30573 export TEST_TAR_FORMAT
30574 TAR_OPTIONS=\"-H gnu\"
30575 export TAR_OPTIONS
30576 rm -rf *
30577
30578 AFILE=\`awk 'BEGIN { for (i = 0; i < 100; i++) printf \"a\"; exit; }'\`
30579 BFILE=\`awk 'BEGIN { for (i = 0; i < 101; i++) printf \"b\"; exit; }'\`
30580
30581 cat > ../experr <<EOF
30582 tar: \$BFILE: file name too long to be stored in a GNU multivolume header, truncated
30583 tar: \\\`\$BFILE' is possibly continued on this volume: header contains truncated name
30584 EOF
30585
30586 cat > ../expout <<EOF
30587 \$AFILE
30588 separator-1
30589 separator-2
30590 EOF
30591
30592 genfile --length 15360 --file \$AFILE
30593
30594 exec <&-
30595
30596 tar -M -L 10 -c -f arch.1 -f arch.2 \$AFILE || exit 1
30597 tar -tM -f arch.1 -f arch.2 || exit 1
30598
30599 echo separator-1
30600
30601 genfile --length 15360 --file \$BFILE
30602 tar -M -L 10 -c -f arch.1 -f arch.2 \$BFILE || exit 1
30603
30604 echo separator-2
30605 mv \$BFILE bfile
30606 tar -M -x -f arch.1 -f arch.2 --warning=no-timestamp || exit 1
30607 cmp \$BFILE bfile
30608 )"
30609 echo multiv03.at:33 >"$at_check_line_file"
30610
30611 if { echo 'Not enabling shell tracing (command contains a `...` command substitution)'
30612    false; }; then
30613   ( $at_traceon;
30614 mkdir gnu
30615 (cd gnu
30616 TEST_TAR_FORMAT=gnu
30617 export TEST_TAR_FORMAT
30618 TAR_OPTIONS="-H gnu"
30619 export TAR_OPTIONS
30620 rm -rf *
30621
30622 AFILE=`awk 'BEGIN { for (i = 0; i < 100; i++) printf "a"; exit; }'`
30623 BFILE=`awk 'BEGIN { for (i = 0; i < 101; i++) printf "b"; exit; }'`
30624
30625 cat > ../experr <<EOF
30626 tar: $BFILE: file name too long to be stored in a GNU multivolume header, truncated
30627 tar: \`$BFILE' is possibly continued on this volume: header contains truncated name
30628 EOF
30629
30630 cat > ../expout <<EOF
30631 $AFILE
30632 separator-1
30633 separator-2
30634 EOF
30635
30636 genfile --length 15360 --file $AFILE
30637
30638 exec <&-
30639
30640 tar -M -L 10 -c -f arch.1 -f arch.2 $AFILE || exit 1
30641 tar -tM -f arch.1 -f arch.2 || exit 1
30642
30643 echo separator-1
30644
30645 genfile --length 15360 --file $BFILE
30646 tar -M -L 10 -c -f arch.1 -f arch.2 $BFILE || exit 1
30647
30648 echo separator-2
30649 mv $BFILE bfile
30650 tar -M -x -f arch.1 -f arch.2 --warning=no-timestamp || exit 1
30651 cmp $BFILE bfile
30652 ) ) >"$at_stdout" 2>"$at_stder1"
30653   at_func_filter_trace $?
30654 else
30655   ( :;
30656 mkdir gnu
30657 (cd gnu
30658 TEST_TAR_FORMAT=gnu
30659 export TEST_TAR_FORMAT
30660 TAR_OPTIONS="-H gnu"
30661 export TAR_OPTIONS
30662 rm -rf *
30663
30664 AFILE=`awk 'BEGIN { for (i = 0; i < 100; i++) printf "a"; exit; }'`
30665 BFILE=`awk 'BEGIN { for (i = 0; i < 101; i++) printf "b"; exit; }'`
30666
30667 cat > ../experr <<EOF
30668 tar: $BFILE: file name too long to be stored in a GNU multivolume header, truncated
30669 tar: \`$BFILE' is possibly continued on this volume: header contains truncated name
30670 EOF
30671
30672 cat > ../expout <<EOF
30673 $AFILE
30674 separator-1
30675 separator-2
30676 EOF
30677
30678 genfile --length 15360 --file $AFILE
30679
30680 exec <&-
30681
30682 tar -M -L 10 -c -f arch.1 -f arch.2 $AFILE || exit 1
30683 tar -tM -f arch.1 -f arch.2 || exit 1
30684
30685 echo separator-1
30686
30687 genfile --length 15360 --file $BFILE
30688 tar -M -L 10 -c -f arch.1 -f arch.2 $BFILE || exit 1
30689
30690 echo separator-2
30691 mv $BFILE bfile
30692 tar -M -x -f arch.1 -f arch.2 --warning=no-timestamp || exit 1
30693 cmp $BFILE bfile
30694 ) ) >"$at_stdout" 2>"$at_stderr"
30695 fi
30696 at_status=$?
30697 at_failed=false
30698 $at_diff experr "$at_stderr" || at_failed=:
30699 $at_diff expout "$at_stdout" || at_failed=:
30700 at_func_check_status 0 $at_status "$at_srcdir/multiv03.at:33"
30701
30702 $at_failed && at_func_log_failure
30703 $at_traceon; }
30704
30705               { $at_traceoff
30706 $as_echo "$at_srcdir/multiv03.at:33:
30707 mkdir oldgnu
30708 (cd oldgnu
30709 TEST_TAR_FORMAT=oldgnu
30710 export TEST_TAR_FORMAT
30711 TAR_OPTIONS=\"-H oldgnu\"
30712 export TAR_OPTIONS
30713 rm -rf *
30714
30715 AFILE=\`awk 'BEGIN { for (i = 0; i < 100; i++) printf \"a\"; exit; }'\`
30716 BFILE=\`awk 'BEGIN { for (i = 0; i < 101; i++) printf \"b\"; exit; }'\`
30717
30718 cat > ../experr <<EOF
30719 tar: \$BFILE: file name too long to be stored in a GNU multivolume header, truncated
30720 tar: \\\`\$BFILE' is possibly continued on this volume: header contains truncated name
30721 EOF
30722
30723 cat > ../expout <<EOF
30724 \$AFILE
30725 separator-1
30726 separator-2
30727 EOF
30728
30729 genfile --length 15360 --file \$AFILE
30730
30731 exec <&-
30732
30733 tar -M -L 10 -c -f arch.1 -f arch.2 \$AFILE || exit 1
30734 tar -tM -f arch.1 -f arch.2 || exit 1
30735
30736 echo separator-1
30737
30738 genfile --length 15360 --file \$BFILE
30739 tar -M -L 10 -c -f arch.1 -f arch.2 \$BFILE || exit 1
30740
30741 echo separator-2
30742 mv \$BFILE bfile
30743 tar -M -x -f arch.1 -f arch.2 --warning=no-timestamp || exit 1
30744 cmp \$BFILE bfile
30745 )"
30746 echo multiv03.at:33 >"$at_check_line_file"
30747
30748 if { echo 'Not enabling shell tracing (command contains a `...` command substitution)'
30749    false; }; then
30750   ( $at_traceon;
30751 mkdir oldgnu
30752 (cd oldgnu
30753 TEST_TAR_FORMAT=oldgnu
30754 export TEST_TAR_FORMAT
30755 TAR_OPTIONS="-H oldgnu"
30756 export TAR_OPTIONS
30757 rm -rf *
30758
30759 AFILE=`awk 'BEGIN { for (i = 0; i < 100; i++) printf "a"; exit; }'`
30760 BFILE=`awk 'BEGIN { for (i = 0; i < 101; i++) printf "b"; exit; }'`
30761
30762 cat > ../experr <<EOF
30763 tar: $BFILE: file name too long to be stored in a GNU multivolume header, truncated
30764 tar: \`$BFILE' is possibly continued on this volume: header contains truncated name
30765 EOF
30766
30767 cat > ../expout <<EOF
30768 $AFILE
30769 separator-1
30770 separator-2
30771 EOF
30772
30773 genfile --length 15360 --file $AFILE
30774
30775 exec <&-
30776
30777 tar -M -L 10 -c -f arch.1 -f arch.2 $AFILE || exit 1
30778 tar -tM -f arch.1 -f arch.2 || exit 1
30779
30780 echo separator-1
30781
30782 genfile --length 15360 --file $BFILE
30783 tar -M -L 10 -c -f arch.1 -f arch.2 $BFILE || exit 1
30784
30785 echo separator-2
30786 mv $BFILE bfile
30787 tar -M -x -f arch.1 -f arch.2 --warning=no-timestamp || exit 1
30788 cmp $BFILE bfile
30789 ) ) >"$at_stdout" 2>"$at_stder1"
30790   at_func_filter_trace $?
30791 else
30792   ( :;
30793 mkdir oldgnu
30794 (cd oldgnu
30795 TEST_TAR_FORMAT=oldgnu
30796 export TEST_TAR_FORMAT
30797 TAR_OPTIONS="-H oldgnu"
30798 export TAR_OPTIONS
30799 rm -rf *
30800
30801 AFILE=`awk 'BEGIN { for (i = 0; i < 100; i++) printf "a"; exit; }'`
30802 BFILE=`awk 'BEGIN { for (i = 0; i < 101; i++) printf "b"; exit; }'`
30803
30804 cat > ../experr <<EOF
30805 tar: $BFILE: file name too long to be stored in a GNU multivolume header, truncated
30806 tar: \`$BFILE' is possibly continued on this volume: header contains truncated name
30807 EOF
30808
30809 cat > ../expout <<EOF
30810 $AFILE
30811 separator-1
30812 separator-2
30813 EOF
30814
30815 genfile --length 15360 --file $AFILE
30816
30817 exec <&-
30818
30819 tar -M -L 10 -c -f arch.1 -f arch.2 $AFILE || exit 1
30820 tar -tM -f arch.1 -f arch.2 || exit 1
30821
30822 echo separator-1
30823
30824 genfile --length 15360 --file $BFILE
30825 tar -M -L 10 -c -f arch.1 -f arch.2 $BFILE || exit 1
30826
30827 echo separator-2
30828 mv $BFILE bfile
30829 tar -M -x -f arch.1 -f arch.2 --warning=no-timestamp || exit 1
30830 cmp $BFILE bfile
30831 ) ) >"$at_stdout" 2>"$at_stderr"
30832 fi
30833 at_status=$?
30834 at_failed=false
30835 $at_diff experr "$at_stderr" || at_failed=:
30836 $at_diff expout "$at_stdout" || at_failed=:
30837 at_func_check_status 0 $at_status "$at_srcdir/multiv03.at:33"
30838
30839 $at_failed && at_func_log_failure
30840 $at_traceon; }
30841
30842
30843
30844
30845   $at_traceoff
30846   $at_times_p && times >"$at_times_file"
30847 ) 5>&1 2>&1 | eval $at_tee_pipe
30848 at_status=`cat "$at_status_file"`
30849 #AT_STOP_82
30850 #AT_START_83
30851 # 83. multiv04.at:36: split directory members in a MV archive
30852 at_setup_line='multiv04.at:36'
30853 at_desc="split directory members in a MV archive"
30854 $at_quiet $as_echo_n " 83: $at_desc        "
30855 at_xfail=no
30856       test -f $XFAILFILE && at_xfail=yes
30857 echo "#                             -*- compilation -*-" >> "$at_group_log"
30858 (
30859   $as_echo "83. multiv04.at:36: testing ..."
30860   $at_traceon
30861
30862
30863
30864
30865
30866   { $at_traceoff
30867 $as_echo "$at_srcdir/multiv04.at:39:
30868 mkdir gnu
30869 (cd gnu
30870 TEST_TAR_FORMAT=gnu
30871 export TEST_TAR_FORMAT
30872 TAR_OPTIONS=\"-H gnu\"
30873 export TAR_OPTIONS
30874 rm -rf *
30875
30876
30877 mkdir directory
30878 awk 'BEGIN { for (i = 0; i < 1024; i++) printf(\"directory/%014x\\n\", i); }' </dev/null | genfile --files-from -
30879
30880 exec <&-
30881
30882 sleep 2
30883
30884 tar --listed-incremental=list -c -f archive.a directory
30885
30886 sleep 2
30887
30888 tar --listed-incremental=list -c --record-size 1024 -L 16 -f arc.1 -f arc.2 -v directory
30889
30890 echo separator
30891
30892 tar -MRt -f arc.1 -f arc.2)"
30893 echo multiv04.at:39 >"$at_check_line_file"
30894
30895 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
30896    false; }; then
30897   ( $at_traceon;
30898 mkdir gnu
30899 (cd gnu
30900 TEST_TAR_FORMAT=gnu
30901 export TEST_TAR_FORMAT
30902 TAR_OPTIONS="-H gnu"
30903 export TAR_OPTIONS
30904 rm -rf *
30905
30906
30907 mkdir directory
30908 awk 'BEGIN { for (i = 0; i < 1024; i++) printf("directory/%014x\n", i); }' </dev/null | genfile --files-from -
30909
30910 exec <&-
30911
30912 sleep 2
30913
30914 tar --listed-incremental=list -c -f archive.a directory
30915
30916 sleep 2
30917
30918 tar --listed-incremental=list -c --record-size 1024 -L 16 -f arc.1 -f arc.2 -v directory
30919
30920 echo separator
30921
30922 tar -MRt -f arc.1 -f arc.2) ) >"$at_stdout" 2>"$at_stder1"
30923   at_func_filter_trace $?
30924 else
30925   ( :;
30926 mkdir gnu
30927 (cd gnu
30928 TEST_TAR_FORMAT=gnu
30929 export TEST_TAR_FORMAT
30930 TAR_OPTIONS="-H gnu"
30931 export TAR_OPTIONS
30932 rm -rf *
30933
30934
30935 mkdir directory
30936 awk 'BEGIN { for (i = 0; i < 1024; i++) printf("directory/%014x\n", i); }' </dev/null | genfile --files-from -
30937
30938 exec <&-
30939
30940 sleep 2
30941
30942 tar --listed-incremental=list -c -f archive.a directory
30943
30944 sleep 2
30945
30946 tar --listed-incremental=list -c --record-size 1024 -L 16 -f arc.1 -f arc.2 -v directory
30947
30948 echo separator
30949
30950 tar -MRt -f arc.1 -f arc.2) ) >"$at_stdout" 2>"$at_stderr"
30951 fi
30952 at_status=$?
30953 at_failed=false
30954 at_func_diff_devnull "$at_stderr" || at_failed=:
30955 echo >>"$at_stdout"; $as_echo "directory/
30956 separator
30957 block 0: directory/
30958 block 35: ** Block of NULs **
30959 " | \
30960   $at_diff - "$at_stdout" || at_failed=:
30961 at_func_check_status 0 $at_status "$at_srcdir/multiv04.at:39"
30962
30963 $at_failed && at_func_log_failure
30964 $at_traceon; }
30965
30966               { $at_traceoff
30967 $as_echo "$at_srcdir/multiv04.at:39:
30968 mkdir oldgnu
30969 (cd oldgnu
30970 TEST_TAR_FORMAT=oldgnu
30971 export TEST_TAR_FORMAT
30972 TAR_OPTIONS=\"-H oldgnu\"
30973 export TAR_OPTIONS
30974 rm -rf *
30975
30976
30977 mkdir directory
30978 awk 'BEGIN { for (i = 0; i < 1024; i++) printf(\"directory/%014x\\n\", i); }' </dev/null | genfile --files-from -
30979
30980 exec <&-
30981
30982 sleep 2
30983
30984 tar --listed-incremental=list -c -f archive.a directory
30985
30986 sleep 2
30987
30988 tar --listed-incremental=list -c --record-size 1024 -L 16 -f arc.1 -f arc.2 -v directory
30989
30990 echo separator
30991
30992 tar -MRt -f arc.1 -f arc.2)"
30993 echo multiv04.at:39 >"$at_check_line_file"
30994
30995 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
30996    false; }; then
30997   ( $at_traceon;
30998 mkdir oldgnu
30999 (cd oldgnu
31000 TEST_TAR_FORMAT=oldgnu
31001 export TEST_TAR_FORMAT
31002 TAR_OPTIONS="-H oldgnu"
31003 export TAR_OPTIONS
31004 rm -rf *
31005
31006
31007 mkdir directory
31008 awk 'BEGIN { for (i = 0; i < 1024; i++) printf("directory/%014x\n", i); }' </dev/null | genfile --files-from -
31009
31010 exec <&-
31011
31012 sleep 2
31013
31014 tar --listed-incremental=list -c -f archive.a directory
31015
31016 sleep 2
31017
31018 tar --listed-incremental=list -c --record-size 1024 -L 16 -f arc.1 -f arc.2 -v directory
31019
31020 echo separator
31021
31022 tar -MRt -f arc.1 -f arc.2) ) >"$at_stdout" 2>"$at_stder1"
31023   at_func_filter_trace $?
31024 else
31025   ( :;
31026 mkdir oldgnu
31027 (cd oldgnu
31028 TEST_TAR_FORMAT=oldgnu
31029 export TEST_TAR_FORMAT
31030 TAR_OPTIONS="-H oldgnu"
31031 export TAR_OPTIONS
31032 rm -rf *
31033
31034
31035 mkdir directory
31036 awk 'BEGIN { for (i = 0; i < 1024; i++) printf("directory/%014x\n", i); }' </dev/null | genfile --files-from -
31037
31038 exec <&-
31039
31040 sleep 2
31041
31042 tar --listed-incremental=list -c -f archive.a directory
31043
31044 sleep 2
31045
31046 tar --listed-incremental=list -c --record-size 1024 -L 16 -f arc.1 -f arc.2 -v directory
31047
31048 echo separator
31049
31050 tar -MRt -f arc.1 -f arc.2) ) >"$at_stdout" 2>"$at_stderr"
31051 fi
31052 at_status=$?
31053 at_failed=false
31054 at_func_diff_devnull "$at_stderr" || at_failed=:
31055 echo >>"$at_stdout"; $as_echo "directory/
31056 separator
31057 block 0: directory/
31058 block 35: ** Block of NULs **
31059 " | \
31060   $at_diff - "$at_stdout" || at_failed=:
31061 at_func_check_status 0 $at_status "$at_srcdir/multiv04.at:39"
31062
31063 $at_failed && at_func_log_failure
31064 $at_traceon; }
31065
31066
31067
31068
31069   $at_traceoff
31070   $at_times_p && times >"$at_times_file"
31071 ) 5>&1 2>&1 | eval $at_tee_pipe
31072 at_status=`cat "$at_status_file"`
31073 #AT_STOP_83
31074 #AT_START_84
31075 # 84. multiv05.at:26: Restoring after an out of sync volume
31076 at_setup_line='multiv05.at:26'
31077 at_desc="Restoring after an out of sync volume"
31078 $at_quiet $as_echo_n " 84: $at_desc          "
31079 at_xfail=no
31080       test -f $XFAILFILE && at_xfail=yes
31081 echo "#                             -*- compilation -*-" >> "$at_group_log"
31082 (
31083   $as_echo "84. multiv05.at:26: testing ..."
31084   $at_traceon
31085
31086
31087
31088
31089
31090
31091   { $at_traceoff
31092 $as_echo "$at_srcdir/multiv05.at:30:
31093 mkdir gnu
31094 (cd gnu
31095 TEST_TAR_FORMAT=gnu
31096 export TEST_TAR_FORMAT
31097 TAR_OPTIONS=\"-H gnu\"
31098 export TAR_OPTIONS
31099 rm -rf *
31100
31101 exec <&-
31102
31103 genfile --length 250k --file jeden
31104 genfile --length 250k --file dwa
31105 genfile --length 250k --file trzy
31106 genfile --length 250k --file cztery
31107 genfile --length 250k --file piec
31108 genfile --length 250k --file szesc
31109
31110
31111 echo Creating archive
31112 tar -c -M -L 502 -f a.tar -f b.tar -f c.tar jeden dwa trzy cztery piec szesc
31113 echo separator
31114 mkdir bak
31115 mv jeden dwa trzy cztery piec szesc bak
31116 tar -vxM -f a.tar -f c.tar -f b.tar -f c.tar
31117 echo Diffing jeden
31118    cmp bak/jeden jeden || exit 1
31119 echo Diffing dwa
31120    cmp bak/dwa dwa || exit 1
31121 echo Diffing trzy
31122    cmp bak/trzy trzy || exit 1
31123 echo Diffing cztery
31124    cmp bak/cztery cztery || exit 1
31125 echo Diffing piec
31126    cmp bak/piec piec || exit 1
31127 echo Diffing szesc
31128    cmp bak/szesc szesc || exit 1
31129 )"
31130 echo multiv05.at:30 >"$at_check_line_file"
31131
31132 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
31133    false; }; then
31134   ( $at_traceon;
31135 mkdir gnu
31136 (cd gnu
31137 TEST_TAR_FORMAT=gnu
31138 export TEST_TAR_FORMAT
31139 TAR_OPTIONS="-H gnu"
31140 export TAR_OPTIONS
31141 rm -rf *
31142
31143 exec <&-
31144
31145 genfile --length 250k --file jeden
31146 genfile --length 250k --file dwa
31147 genfile --length 250k --file trzy
31148 genfile --length 250k --file cztery
31149 genfile --length 250k --file piec
31150 genfile --length 250k --file szesc
31151
31152
31153 echo Creating archive
31154 tar -c -M -L 502 -f a.tar -f b.tar -f c.tar jeden dwa trzy cztery piec szesc
31155 echo separator
31156 mkdir bak
31157 mv jeden dwa trzy cztery piec szesc bak
31158 tar -vxM -f a.tar -f c.tar -f b.tar -f c.tar
31159 echo Diffing jeden
31160    cmp bak/jeden jeden || exit 1
31161 echo Diffing dwa
31162    cmp bak/dwa dwa || exit 1
31163 echo Diffing trzy
31164    cmp bak/trzy trzy || exit 1
31165 echo Diffing cztery
31166    cmp bak/cztery cztery || exit 1
31167 echo Diffing piec
31168    cmp bak/piec piec || exit 1
31169 echo Diffing szesc
31170    cmp bak/szesc szesc || exit 1
31171 ) ) >"$at_stdout" 2>"$at_stder1"
31172   at_func_filter_trace $?
31173 else
31174   ( :;
31175 mkdir gnu
31176 (cd gnu
31177 TEST_TAR_FORMAT=gnu
31178 export TEST_TAR_FORMAT
31179 TAR_OPTIONS="-H gnu"
31180 export TAR_OPTIONS
31181 rm -rf *
31182
31183 exec <&-
31184
31185 genfile --length 250k --file jeden
31186 genfile --length 250k --file dwa
31187 genfile --length 250k --file trzy
31188 genfile --length 250k --file cztery
31189 genfile --length 250k --file piec
31190 genfile --length 250k --file szesc
31191
31192
31193 echo Creating archive
31194 tar -c -M -L 502 -f a.tar -f b.tar -f c.tar jeden dwa trzy cztery piec szesc
31195 echo separator
31196 mkdir bak
31197 mv jeden dwa trzy cztery piec szesc bak
31198 tar -vxM -f a.tar -f c.tar -f b.tar -f c.tar
31199 echo Diffing jeden
31200    cmp bak/jeden jeden || exit 1
31201 echo Diffing dwa
31202    cmp bak/dwa dwa || exit 1
31203 echo Diffing trzy
31204    cmp bak/trzy trzy || exit 1
31205 echo Diffing cztery
31206    cmp bak/cztery cztery || exit 1
31207 echo Diffing piec
31208    cmp bak/piec piec || exit 1
31209 echo Diffing szesc
31210    cmp bak/szesc szesc || exit 1
31211 ) ) >"$at_stdout" 2>"$at_stderr"
31212 fi
31213 at_status=$?
31214 at_failed=false
31215 echo >>"$at_stderr"; $as_echo "tar: \`trzy' is not continued on this volume
31216 " | \
31217   $at_diff - "$at_stderr" || at_failed=:
31218 echo >>"$at_stdout"; $as_echo "Creating archive
31219 separator
31220 jeden
31221 dwa
31222 trzy
31223 cztery
31224 piec
31225 szesc
31226 Diffing jeden
31227 Diffing dwa
31228 Diffing trzy
31229 Diffing cztery
31230 Diffing piec
31231 Diffing szesc
31232 " | \
31233   $at_diff - "$at_stdout" || at_failed=:
31234 at_func_check_status 0 $at_status "$at_srcdir/multiv05.at:30"
31235
31236 $at_failed && at_func_log_failure
31237 $at_traceon; }
31238
31239
31240
31241
31242   $at_traceoff
31243   $at_times_p && times >"$at_times_file"
31244 ) 5>&1 2>&1 | eval $at_tee_pipe
31245 at_status=`cat "$at_status_file"`
31246 #AT_STOP_84
31247 #AT_START_85
31248 # 85. multiv06.at:27: Multivolumes with L=record_size
31249 at_setup_line='multiv06.at:27'
31250 at_desc="Multivolumes with L=record_size"
31251 $at_quiet $as_echo_n " 85: $at_desc                "
31252 at_xfail=no
31253       test -f $XFAILFILE && at_xfail=yes
31254 echo "#                             -*- compilation -*-" >> "$at_group_log"
31255 (
31256   $as_echo "85. multiv06.at:27: testing ..."
31257   $at_traceon
31258
31259
31260
31261
31262
31263   { $at_traceoff
31264 $as_echo "$at_srcdir/multiv06.at:30:
31265 mkdir gnu
31266 (cd gnu
31267 TEST_TAR_FORMAT=gnu
31268 export TEST_TAR_FORMAT
31269 TAR_OPTIONS=\"-H gnu\"
31270 export TAR_OPTIONS
31271 rm -rf *
31272
31273 exec <&-
31274 decho Creating file
31275 genfile --length 20139 --file file
31276 decho Creating archive
31277 tar -c -M -L10 -b20 -farc.1 -farc.2 -farc.3 file
31278 decho Testing archive
31279 tar -t -M -farc.1 -farc.2 -farc.3)"
31280 echo multiv06.at:30 >"$at_check_line_file"
31281
31282 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
31283    false; }; then
31284   ( $at_traceon;
31285 mkdir gnu
31286 (cd gnu
31287 TEST_TAR_FORMAT=gnu
31288 export TEST_TAR_FORMAT
31289 TAR_OPTIONS="-H gnu"
31290 export TAR_OPTIONS
31291 rm -rf *
31292
31293 exec <&-
31294 decho Creating file
31295 genfile --length 20139 --file file
31296 decho Creating archive
31297 tar -c -M -L10 -b20 -farc.1 -farc.2 -farc.3 file
31298 decho Testing archive
31299 tar -t -M -farc.1 -farc.2 -farc.3) ) >"$at_stdout" 2>"$at_stder1"
31300   at_func_filter_trace $?
31301 else
31302   ( :;
31303 mkdir gnu
31304 (cd gnu
31305 TEST_TAR_FORMAT=gnu
31306 export TEST_TAR_FORMAT
31307 TAR_OPTIONS="-H gnu"
31308 export TAR_OPTIONS
31309 rm -rf *
31310
31311 exec <&-
31312 decho Creating file
31313 genfile --length 20139 --file file
31314 decho Creating archive
31315 tar -c -M -L10 -b20 -farc.1 -farc.2 -farc.3 file
31316 decho Testing archive
31317 tar -t -M -farc.1 -farc.2 -farc.3) ) >"$at_stdout" 2>"$at_stderr"
31318 fi
31319 at_status=$?
31320 at_failed=false
31321 echo >>"$at_stderr"; $as_echo "Creating file
31322 Creating archive
31323 Testing archive
31324 " | \
31325   $at_diff - "$at_stderr" || at_failed=:
31326 echo >>"$at_stdout"; $as_echo "Creating file
31327 Creating archive
31328 Testing archive
31329 file
31330 " | \
31331   $at_diff - "$at_stdout" || at_failed=:
31332 at_func_check_status 0 $at_status "$at_srcdir/multiv06.at:30"
31333
31334 $at_failed && at_func_log_failure
31335 $at_traceon; }
31336
31337               { $at_traceoff
31338 $as_echo "$at_srcdir/multiv06.at:30:
31339 mkdir pax
31340 (cd pax
31341 TEST_TAR_FORMAT=pax
31342 export TEST_TAR_FORMAT
31343 TAR_OPTIONS=\"-H pax\"
31344 export TAR_OPTIONS
31345 rm -rf *
31346
31347 exec <&-
31348 decho Creating file
31349 genfile --length 20139 --file file
31350 decho Creating archive
31351 tar -c -M -L10 -b20 -farc.1 -farc.2 -farc.3 file
31352 decho Testing archive
31353 tar -t -M -farc.1 -farc.2 -farc.3)"
31354 echo multiv06.at:30 >"$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 pax
31360 (cd pax
31361 TEST_TAR_FORMAT=pax
31362 export TEST_TAR_FORMAT
31363 TAR_OPTIONS="-H pax"
31364 export TAR_OPTIONS
31365 rm -rf *
31366
31367 exec <&-
31368 decho Creating file
31369 genfile --length 20139 --file file
31370 decho Creating archive
31371 tar -c -M -L10 -b20 -farc.1 -farc.2 -farc.3 file
31372 decho Testing archive
31373 tar -t -M -farc.1 -farc.2 -farc.3) ) >"$at_stdout" 2>"$at_stder1"
31374   at_func_filter_trace $?
31375 else
31376   ( :;
31377 mkdir pax
31378 (cd pax
31379 TEST_TAR_FORMAT=pax
31380 export TEST_TAR_FORMAT
31381 TAR_OPTIONS="-H pax"
31382 export TAR_OPTIONS
31383 rm -rf *
31384
31385 exec <&-
31386 decho Creating file
31387 genfile --length 20139 --file file
31388 decho Creating archive
31389 tar -c -M -L10 -b20 -farc.1 -farc.2 -farc.3 file
31390 decho Testing archive
31391 tar -t -M -farc.1 -farc.2 -farc.3) ) >"$at_stdout" 2>"$at_stderr"
31392 fi
31393 at_status=$?
31394 at_failed=false
31395 echo >>"$at_stderr"; $as_echo "Creating file
31396 Creating archive
31397 Testing archive
31398 " | \
31399   $at_diff - "$at_stderr" || at_failed=:
31400 echo >>"$at_stdout"; $as_echo "Creating file
31401 Creating archive
31402 Testing archive
31403 file
31404 " | \
31405   $at_diff - "$at_stdout" || at_failed=:
31406 at_func_check_status 0 $at_status "$at_srcdir/multiv06.at:30"
31407
31408 $at_failed && at_func_log_failure
31409 $at_traceon; }
31410
31411
31412
31413
31414   $at_traceoff
31415   $at_times_p && times >"$at_times_file"
31416 ) 5>&1 2>&1 | eval $at_tee_pipe
31417 at_status=`cat "$at_status_file"`
31418 #AT_STOP_85
31419 #AT_START_86
31420 # 86. multiv07.at:26: volumes split at an extended header
31421 at_setup_line='multiv07.at:26'
31422 at_desc="volumes split at an extended header"
31423 $at_quiet $as_echo_n " 86: $at_desc            "
31424 at_xfail=no
31425       test -f \$XFAILFILE && at_xfail=yes
31426       test -f $XFAILFILE && at_xfail=yes
31427       test -f $XFAILFILE && at_xfail=yes
31428 echo "#                             -*- compilation -*-" >> "$at_group_log"
31429 (
31430   $as_echo "86. multiv07.at:26: testing ..."
31431   $at_traceon
31432
31433
31434
31435 { $at_traceoff
31436 $as_echo "$at_srcdir/multiv07.at:29:
31437
31438
31439 test -z "$TEST_DATA_DIR" && exit 77
31440 tarball_prereq xsplit-1.tar 0e008c84c517e48fbf23ca6a7033cde6 $TEST_DATA_DIR $TEST_DATA_URL || exit 77
31441
31442 test -z "$TEST_DATA_DIR" && exit 77
31443 tarball_prereq xsplit-2.tar 03150b9852d285458f43734e9e0b9a45 $TEST_DATA_DIR $TEST_DATA_URL || exit 77
31444
31445 exec <&-
31446
31447 cd \$TEST_DATA_DIR
31448 tar -t -M -fxsplit-1.tar -fxsplit-2.tar
31449 "
31450 echo multiv07.at:29 >"$at_check_line_file"
31451
31452 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
31453    false; }; then
31454   ( $at_traceon;
31455
31456
31457 test -z "$TEST_DATA_DIR" && exit 77
31458 tarball_prereq xsplit-1.tar 0e008c84c517e48fbf23ca6a7033cde6 $TEST_DATA_DIR $TEST_DATA_URL || exit 77
31459
31460 test -z "$TEST_DATA_DIR" && exit 77
31461 tarball_prereq xsplit-2.tar 03150b9852d285458f43734e9e0b9a45 $TEST_DATA_DIR $TEST_DATA_URL || exit 77
31462
31463 exec <&-
31464
31465 cd $TEST_DATA_DIR
31466 tar -t -M -fxsplit-1.tar -fxsplit-2.tar
31467  ) >"$at_stdout" 2>"$at_stder1"
31468   at_func_filter_trace $?
31469 else
31470   ( :;
31471
31472
31473 test -z "$TEST_DATA_DIR" && exit 77
31474 tarball_prereq xsplit-1.tar 0e008c84c517e48fbf23ca6a7033cde6 $TEST_DATA_DIR $TEST_DATA_URL || exit 77
31475
31476 test -z "$TEST_DATA_DIR" && exit 77
31477 tarball_prereq xsplit-2.tar 03150b9852d285458f43734e9e0b9a45 $TEST_DATA_DIR $TEST_DATA_URL || exit 77
31478
31479 exec <&-
31480
31481 cd $TEST_DATA_DIR
31482 tar -t -M -fxsplit-1.tar -fxsplit-2.tar
31483  ) >"$at_stdout" 2>"$at_stderr"
31484 fi
31485 at_status=$?
31486 at_failed=false
31487 at_func_diff_devnull "$at_stderr" || at_failed=:
31488 echo >>"$at_stdout"; $as_echo "Archive volumes split at an extended header Volume 1
31489 foo
31490 bar
31491 " | \
31492   $at_diff - "$at_stdout" || at_failed=:
31493 at_func_check_status 0 $at_status "$at_srcdir/multiv07.at:29"
31494
31495 $at_failed && at_func_log_failure
31496 $at_traceon; }
31497
31498
31499   $at_traceoff
31500   $at_times_p && times >"$at_times_file"
31501 ) 5>&1 2>&1 | eval $at_tee_pipe
31502 at_status=`cat "$at_status_file"`
31503 #AT_STOP_86
31504 #AT_START_87
31505 # 87. multiv08.at:23: multivolume header creation
31506 at_setup_line='multiv08.at:23'
31507 at_desc="multivolume header creation"
31508 $at_quiet $as_echo_n " 87: $at_desc                    "
31509 at_xfail=no
31510       test -f $XFAILFILE && at_xfail=yes
31511 echo "#                             -*- compilation -*-" >> "$at_group_log"
31512 (
31513   $as_echo "87. multiv08.at:23: testing ..."
31514   $at_traceon
31515
31516
31517
31518
31519
31520   { $at_traceoff
31521 $as_echo "$at_srcdir/multiv08.at:26:
31522 mkdir gnu
31523 (cd gnu
31524 TEST_TAR_FORMAT=gnu
31525 export TEST_TAR_FORMAT
31526 TAR_OPTIONS=\"-H gnu\"
31527 export TAR_OPTIONS
31528 rm -rf *
31529
31530 genfile --length 9472 --file a
31531 genfile --length 9984 --file b
31532 decho Creating
31533 tar -c -M -L10 -f A.tar -f B.tar -f C.tar a b
31534 decho Testing
31535 tar -tMR -f A.tar -f B.tar -f C.tar
31536 )"
31537 echo multiv08.at:26 >"$at_check_line_file"
31538
31539 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
31540    false; }; then
31541   ( $at_traceon;
31542 mkdir gnu
31543 (cd gnu
31544 TEST_TAR_FORMAT=gnu
31545 export TEST_TAR_FORMAT
31546 TAR_OPTIONS="-H gnu"
31547 export TAR_OPTIONS
31548 rm -rf *
31549
31550 genfile --length 9472 --file a
31551 genfile --length 9984 --file b
31552 decho Creating
31553 tar -c -M -L10 -f A.tar -f B.tar -f C.tar a b
31554 decho Testing
31555 tar -tMR -f A.tar -f B.tar -f C.tar
31556 ) ) >"$at_stdout" 2>"$at_stder1"
31557   at_func_filter_trace $?
31558 else
31559   ( :;
31560 mkdir gnu
31561 (cd gnu
31562 TEST_TAR_FORMAT=gnu
31563 export TEST_TAR_FORMAT
31564 TAR_OPTIONS="-H gnu"
31565 export TAR_OPTIONS
31566 rm -rf *
31567
31568 genfile --length 9472 --file a
31569 genfile --length 9984 --file b
31570 decho Creating
31571 tar -c -M -L10 -f A.tar -f B.tar -f C.tar a b
31572 decho Testing
31573 tar -tMR -f A.tar -f B.tar -f C.tar
31574 ) ) >"$at_stdout" 2>"$at_stderr"
31575 fi
31576 at_status=$?
31577 at_failed=false
31578 echo >>"$at_stderr"; $as_echo "Creating
31579 Testing
31580 " | \
31581   $at_diff - "$at_stderr" || at_failed=:
31582 echo >>"$at_stdout"; $as_echo "Creating
31583 Testing
31584 block 0: a
31585 block 21: b
31586 block 43: ** Block of NULs **
31587 " | \
31588   $at_diff - "$at_stdout" || at_failed=:
31589 at_func_check_status 0 $at_status "$at_srcdir/multiv08.at:26"
31590
31591 $at_failed && at_func_log_failure
31592 $at_traceon; }
31593
31594
31595
31596
31597   $at_traceoff
31598   $at_times_p && times >"$at_times_file"
31599 ) 5>&1 2>&1 | eval $at_tee_pipe
31600 at_status=`cat "$at_status_file"`
31601 #AT_STOP_87
31602 #AT_START_88
31603 # 88. old.at:23: old archives
31604 at_setup_line='old.at:23'
31605 at_desc="old archives"
31606 $at_quiet $as_echo_n " 88: $at_desc                                   "
31607 at_xfail=no
31608 echo "#                             -*- compilation -*-" >> "$at_group_log"
31609 (
31610   $as_echo "88. old.at:23: testing ..."
31611   $at_traceon
31612
31613
31614
31615 unset TAR_OPTIONS
31616 { $at_traceoff
31617 $as_echo "$at_srcdir/old.at:27:
31618 mkdir directory
31619 tar cfvo archive directory || exit 1
31620 tar tf archive
31621 "
31622 echo old.at:27 >"$at_check_line_file"
31623
31624 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
31625    false; }; then
31626   ( $at_traceon;
31627 mkdir directory
31628 tar cfvo archive directory || exit 1
31629 tar tf archive
31630  ) >"$at_stdout" 2>"$at_stder1"
31631   at_func_filter_trace $?
31632 else
31633   ( :;
31634 mkdir directory
31635 tar cfvo archive directory || exit 1
31636 tar tf archive
31637  ) >"$at_stdout" 2>"$at_stderr"
31638 fi
31639 at_status=$?
31640 at_failed=false
31641 at_func_diff_devnull "$at_stderr" || at_failed=:
31642 echo >>"$at_stdout"; $as_echo "directory/
31643 directory/
31644 " | \
31645   $at_diff - "$at_stdout" || at_failed=:
31646 at_func_check_status 0 $at_status "$at_srcdir/old.at:27"
31647
31648 $at_failed && at_func_log_failure
31649 $at_traceon; }
31650
31651
31652   $at_traceoff
31653   $at_times_p && times >"$at_times_file"
31654 ) 5>&1 2>&1 | eval $at_tee_pipe
31655 at_status=`cat "$at_status_file"`
31656 #AT_STOP_88
31657 #AT_START_89
31658 # 89. recurse.at:21: recurse
31659 at_setup_line='recurse.at:21'
31660 at_desc="recurse"
31661 $at_quiet $as_echo_n " 89: $at_desc                                        "
31662 at_xfail=no
31663       test -f $XFAILFILE && at_xfail=yes
31664 echo "#                             -*- compilation -*-" >> "$at_group_log"
31665 (
31666   $as_echo "89. recurse.at:21: testing ..."
31667   $at_traceon
31668
31669
31670
31671
31672
31673   { $at_traceoff
31674 $as_echo "$at_srcdir/recurse.at:24:
31675 mkdir v7
31676 (cd v7
31677 TEST_TAR_FORMAT=v7
31678 export TEST_TAR_FORMAT
31679 TAR_OPTIONS=\"-H v7\"
31680 export TAR_OPTIONS
31681 rm -rf *
31682
31683 mkdir directory
31684 touch directory/file
31685 tar --create --file archive --no-recursion directory || exit 1
31686 tar tf archive
31687 )"
31688 echo recurse.at:24 >"$at_check_line_file"
31689
31690 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
31691    false; }; then
31692   ( $at_traceon;
31693 mkdir v7
31694 (cd v7
31695 TEST_TAR_FORMAT=v7
31696 export TEST_TAR_FORMAT
31697 TAR_OPTIONS="-H v7"
31698 export TAR_OPTIONS
31699 rm -rf *
31700
31701 mkdir directory
31702 touch directory/file
31703 tar --create --file archive --no-recursion directory || exit 1
31704 tar tf archive
31705 ) ) >"$at_stdout" 2>"$at_stder1"
31706   at_func_filter_trace $?
31707 else
31708   ( :;
31709 mkdir v7
31710 (cd v7
31711 TEST_TAR_FORMAT=v7
31712 export TEST_TAR_FORMAT
31713 TAR_OPTIONS="-H v7"
31714 export TAR_OPTIONS
31715 rm -rf *
31716
31717 mkdir directory
31718 touch directory/file
31719 tar --create --file archive --no-recursion directory || exit 1
31720 tar tf archive
31721 ) ) >"$at_stdout" 2>"$at_stderr"
31722 fi
31723 at_status=$?
31724 at_failed=false
31725 at_func_diff_devnull "$at_stderr" || at_failed=:
31726 echo >>"$at_stdout"; $as_echo "directory/
31727 " | \
31728   $at_diff - "$at_stdout" || at_failed=:
31729 at_func_check_status 0 $at_status "$at_srcdir/recurse.at:24"
31730
31731 $at_failed && at_func_log_failure
31732 $at_traceon; }
31733
31734               { $at_traceoff
31735 $as_echo "$at_srcdir/recurse.at:24:
31736 mkdir oldgnu
31737 (cd oldgnu
31738 TEST_TAR_FORMAT=oldgnu
31739 export TEST_TAR_FORMAT
31740 TAR_OPTIONS=\"-H oldgnu\"
31741 export TAR_OPTIONS
31742 rm -rf *
31743
31744 mkdir directory
31745 touch directory/file
31746 tar --create --file archive --no-recursion directory || exit 1
31747 tar tf archive
31748 )"
31749 echo recurse.at:24 >"$at_check_line_file"
31750
31751 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
31752    false; }; then
31753   ( $at_traceon;
31754 mkdir oldgnu
31755 (cd oldgnu
31756 TEST_TAR_FORMAT=oldgnu
31757 export TEST_TAR_FORMAT
31758 TAR_OPTIONS="-H oldgnu"
31759 export TAR_OPTIONS
31760 rm -rf *
31761
31762 mkdir directory
31763 touch directory/file
31764 tar --create --file archive --no-recursion directory || exit 1
31765 tar tf archive
31766 ) ) >"$at_stdout" 2>"$at_stder1"
31767   at_func_filter_trace $?
31768 else
31769   ( :;
31770 mkdir oldgnu
31771 (cd oldgnu
31772 TEST_TAR_FORMAT=oldgnu
31773 export TEST_TAR_FORMAT
31774 TAR_OPTIONS="-H oldgnu"
31775 export TAR_OPTIONS
31776 rm -rf *
31777
31778 mkdir directory
31779 touch directory/file
31780 tar --create --file archive --no-recursion directory || exit 1
31781 tar tf archive
31782 ) ) >"$at_stdout" 2>"$at_stderr"
31783 fi
31784 at_status=$?
31785 at_failed=false
31786 at_func_diff_devnull "$at_stderr" || at_failed=:
31787 echo >>"$at_stdout"; $as_echo "directory/
31788 " | \
31789   $at_diff - "$at_stdout" || at_failed=:
31790 at_func_check_status 0 $at_status "$at_srcdir/recurse.at:24"
31791
31792 $at_failed && at_func_log_failure
31793 $at_traceon; }
31794
31795               { $at_traceoff
31796 $as_echo "$at_srcdir/recurse.at:24:
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 mkdir directory
31806 touch directory/file
31807 tar --create --file archive --no-recursion directory || exit 1
31808 tar tf archive
31809 )"
31810 echo recurse.at:24 >"$at_check_line_file"
31811
31812 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
31813    false; }; then
31814   ( $at_traceon;
31815 mkdir ustar
31816 (cd ustar
31817 TEST_TAR_FORMAT=ustar
31818 export TEST_TAR_FORMAT
31819 TAR_OPTIONS="-H ustar"
31820 export TAR_OPTIONS
31821 rm -rf *
31822
31823 mkdir directory
31824 touch directory/file
31825 tar --create --file archive --no-recursion directory || exit 1
31826 tar tf archive
31827 ) ) >"$at_stdout" 2>"$at_stder1"
31828   at_func_filter_trace $?
31829 else
31830   ( :;
31831 mkdir ustar
31832 (cd ustar
31833 TEST_TAR_FORMAT=ustar
31834 export TEST_TAR_FORMAT
31835 TAR_OPTIONS="-H ustar"
31836 export TAR_OPTIONS
31837 rm -rf *
31838
31839 mkdir directory
31840 touch directory/file
31841 tar --create --file archive --no-recursion directory || exit 1
31842 tar tf archive
31843 ) ) >"$at_stdout" 2>"$at_stderr"
31844 fi
31845 at_status=$?
31846 at_failed=false
31847 at_func_diff_devnull "$at_stderr" || at_failed=:
31848 echo >>"$at_stdout"; $as_echo "directory/
31849 " | \
31850   $at_diff - "$at_stdout" || at_failed=:
31851 at_func_check_status 0 $at_status "$at_srcdir/recurse.at:24"
31852
31853 $at_failed && at_func_log_failure
31854 $at_traceon; }
31855
31856               { $at_traceoff
31857 $as_echo "$at_srcdir/recurse.at:24:
31858 mkdir posix
31859 (cd posix
31860 TEST_TAR_FORMAT=posix
31861 export TEST_TAR_FORMAT
31862 TAR_OPTIONS=\"-H posix\"
31863 export TAR_OPTIONS
31864 rm -rf *
31865
31866 mkdir directory
31867 touch directory/file
31868 tar --create --file archive --no-recursion directory || exit 1
31869 tar tf archive
31870 )"
31871 echo recurse.at:24 >"$at_check_line_file"
31872
31873 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
31874    false; }; then
31875   ( $at_traceon;
31876 mkdir posix
31877 (cd posix
31878 TEST_TAR_FORMAT=posix
31879 export TEST_TAR_FORMAT
31880 TAR_OPTIONS="-H posix"
31881 export TAR_OPTIONS
31882 rm -rf *
31883
31884 mkdir directory
31885 touch directory/file
31886 tar --create --file archive --no-recursion directory || exit 1
31887 tar tf archive
31888 ) ) >"$at_stdout" 2>"$at_stder1"
31889   at_func_filter_trace $?
31890 else
31891   ( :;
31892 mkdir posix
31893 (cd posix
31894 TEST_TAR_FORMAT=posix
31895 export TEST_TAR_FORMAT
31896 TAR_OPTIONS="-H posix"
31897 export TAR_OPTIONS
31898 rm -rf *
31899
31900 mkdir directory
31901 touch directory/file
31902 tar --create --file archive --no-recursion directory || exit 1
31903 tar tf archive
31904 ) ) >"$at_stdout" 2>"$at_stderr"
31905 fi
31906 at_status=$?
31907 at_failed=false
31908 at_func_diff_devnull "$at_stderr" || at_failed=:
31909 echo >>"$at_stdout"; $as_echo "directory/
31910 " | \
31911   $at_diff - "$at_stdout" || at_failed=:
31912 at_func_check_status 0 $at_status "$at_srcdir/recurse.at:24"
31913
31914 $at_failed && at_func_log_failure
31915 $at_traceon; }
31916
31917               { $at_traceoff
31918 $as_echo "$at_srcdir/recurse.at:24:
31919 mkdir gnu
31920 (cd gnu
31921 TEST_TAR_FORMAT=gnu
31922 export TEST_TAR_FORMAT
31923 TAR_OPTIONS=\"-H gnu\"
31924 export TAR_OPTIONS
31925 rm -rf *
31926
31927 mkdir directory
31928 touch directory/file
31929 tar --create --file archive --no-recursion directory || exit 1
31930 tar tf archive
31931 )"
31932 echo recurse.at:24 >"$at_check_line_file"
31933
31934 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
31935    false; }; then
31936   ( $at_traceon;
31937 mkdir gnu
31938 (cd gnu
31939 TEST_TAR_FORMAT=gnu
31940 export TEST_TAR_FORMAT
31941 TAR_OPTIONS="-H gnu"
31942 export TAR_OPTIONS
31943 rm -rf *
31944
31945 mkdir directory
31946 touch directory/file
31947 tar --create --file archive --no-recursion directory || exit 1
31948 tar tf archive
31949 ) ) >"$at_stdout" 2>"$at_stder1"
31950   at_func_filter_trace $?
31951 else
31952   ( :;
31953 mkdir gnu
31954 (cd gnu
31955 TEST_TAR_FORMAT=gnu
31956 export TEST_TAR_FORMAT
31957 TAR_OPTIONS="-H gnu"
31958 export TAR_OPTIONS
31959 rm -rf *
31960
31961 mkdir directory
31962 touch directory/file
31963 tar --create --file archive --no-recursion directory || exit 1
31964 tar tf archive
31965 ) ) >"$at_stdout" 2>"$at_stderr"
31966 fi
31967 at_status=$?
31968 at_failed=false
31969 at_func_diff_devnull "$at_stderr" || at_failed=:
31970 echo >>"$at_stdout"; $as_echo "directory/
31971 " | \
31972   $at_diff - "$at_stdout" || at_failed=:
31973 at_func_check_status 0 $at_status "$at_srcdir/recurse.at:24"
31974
31975 $at_failed && at_func_log_failure
31976 $at_traceon; }
31977
31978
31979
31980
31981   $at_traceoff
31982   $at_times_p && times >"$at_times_file"
31983 ) 5>&1 2>&1 | eval $at_tee_pipe
31984 at_status=`cat "$at_status_file"`
31985 #AT_STOP_89
31986 #AT_START_90
31987 # 90. same-order01.at:26: working -C with --same-order
31988 at_setup_line='same-order01.at:26'
31989 at_desc="working -C with --same-order"
31990 $at_quiet $as_echo_n " 90: $at_desc                   "
31991 at_xfail=no
31992       test -f $XFAILFILE && at_xfail=yes
31993 echo "#                             -*- compilation -*-" >> "$at_group_log"
31994 (
31995   $as_echo "90. same-order01.at:26: testing ..."
31996   $at_traceon
31997
31998
31999
32000
32001
32002   { $at_traceoff
32003 $as_echo "$at_srcdir/same-order01.at:29:
32004 mkdir v7
32005 (cd v7
32006 TEST_TAR_FORMAT=v7
32007 export TEST_TAR_FORMAT
32008 TAR_OPTIONS=\"-H v7\"
32009 export TAR_OPTIONS
32010 rm -rf *
32011
32012
32013 test -z "`sort < /dev/null 2>&1`" || exit 77
32014
32015
32016 genfile -l 1024 -f file1
32017 genfile -l 1024 -f file2
32018 tar cf archive file1 file2
32019
32020 mkdir directory
32021 tar -xf archive --same-order -C directory --warning=no-timestamp || exit 1
32022
32023 ls directory|sort
32024 )"
32025 echo same-order01.at:29 >"$at_check_line_file"
32026
32027 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
32028    false; }; then
32029   ( $at_traceon;
32030 mkdir v7
32031 (cd v7
32032 TEST_TAR_FORMAT=v7
32033 export TEST_TAR_FORMAT
32034 TAR_OPTIONS="-H v7"
32035 export TAR_OPTIONS
32036 rm -rf *
32037
32038
32039 test -z "`sort < /dev/null 2>&1`" || exit 77
32040
32041
32042 genfile -l 1024 -f file1
32043 genfile -l 1024 -f file2
32044 tar cf archive file1 file2
32045
32046 mkdir directory
32047 tar -xf archive --same-order -C directory --warning=no-timestamp || exit 1
32048
32049 ls directory|sort
32050 ) ) >"$at_stdout" 2>"$at_stder1"
32051   at_func_filter_trace $?
32052 else
32053   ( :;
32054 mkdir v7
32055 (cd v7
32056 TEST_TAR_FORMAT=v7
32057 export TEST_TAR_FORMAT
32058 TAR_OPTIONS="-H v7"
32059 export TAR_OPTIONS
32060 rm -rf *
32061
32062
32063 test -z "`sort < /dev/null 2>&1`" || exit 77
32064
32065
32066 genfile -l 1024 -f file1
32067 genfile -l 1024 -f file2
32068 tar cf archive file1 file2
32069
32070 mkdir directory
32071 tar -xf archive --same-order -C directory --warning=no-timestamp || exit 1
32072
32073 ls directory|sort
32074 ) ) >"$at_stdout" 2>"$at_stderr"
32075 fi
32076 at_status=$?
32077 at_failed=false
32078 at_func_diff_devnull "$at_stderr" || at_failed=:
32079 echo >>"$at_stdout"; $as_echo "file1
32080 file2
32081 " | \
32082   $at_diff - "$at_stdout" || at_failed=:
32083 at_func_check_status 0 $at_status "$at_srcdir/same-order01.at:29"
32084
32085 $at_failed && at_func_log_failure
32086 $at_traceon; }
32087
32088               { $at_traceoff
32089 $as_echo "$at_srcdir/same-order01.at:29:
32090 mkdir oldgnu
32091 (cd oldgnu
32092 TEST_TAR_FORMAT=oldgnu
32093 export TEST_TAR_FORMAT
32094 TAR_OPTIONS=\"-H oldgnu\"
32095 export TAR_OPTIONS
32096 rm -rf *
32097
32098
32099 test -z "`sort < /dev/null 2>&1`" || exit 77
32100
32101
32102 genfile -l 1024 -f file1
32103 genfile -l 1024 -f file2
32104 tar cf archive file1 file2
32105
32106 mkdir directory
32107 tar -xf archive --same-order -C directory --warning=no-timestamp || exit 1
32108
32109 ls directory|sort
32110 )"
32111 echo same-order01.at:29 >"$at_check_line_file"
32112
32113 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
32114    false; }; then
32115   ( $at_traceon;
32116 mkdir oldgnu
32117 (cd oldgnu
32118 TEST_TAR_FORMAT=oldgnu
32119 export TEST_TAR_FORMAT
32120 TAR_OPTIONS="-H oldgnu"
32121 export TAR_OPTIONS
32122 rm -rf *
32123
32124
32125 test -z "`sort < /dev/null 2>&1`" || exit 77
32126
32127
32128 genfile -l 1024 -f file1
32129 genfile -l 1024 -f file2
32130 tar cf archive file1 file2
32131
32132 mkdir directory
32133 tar -xf archive --same-order -C directory --warning=no-timestamp || exit 1
32134
32135 ls directory|sort
32136 ) ) >"$at_stdout" 2>"$at_stder1"
32137   at_func_filter_trace $?
32138 else
32139   ( :;
32140 mkdir oldgnu
32141 (cd oldgnu
32142 TEST_TAR_FORMAT=oldgnu
32143 export TEST_TAR_FORMAT
32144 TAR_OPTIONS="-H oldgnu"
32145 export TAR_OPTIONS
32146 rm -rf *
32147
32148
32149 test -z "`sort < /dev/null 2>&1`" || exit 77
32150
32151
32152 genfile -l 1024 -f file1
32153 genfile -l 1024 -f file2
32154 tar cf archive file1 file2
32155
32156 mkdir directory
32157 tar -xf archive --same-order -C directory --warning=no-timestamp || exit 1
32158
32159 ls directory|sort
32160 ) ) >"$at_stdout" 2>"$at_stderr"
32161 fi
32162 at_status=$?
32163 at_failed=false
32164 at_func_diff_devnull "$at_stderr" || at_failed=:
32165 echo >>"$at_stdout"; $as_echo "file1
32166 file2
32167 " | \
32168   $at_diff - "$at_stdout" || at_failed=:
32169 at_func_check_status 0 $at_status "$at_srcdir/same-order01.at:29"
32170
32171 $at_failed && at_func_log_failure
32172 $at_traceon; }
32173
32174               { $at_traceoff
32175 $as_echo "$at_srcdir/same-order01.at:29:
32176 mkdir ustar
32177 (cd ustar
32178 TEST_TAR_FORMAT=ustar
32179 export TEST_TAR_FORMAT
32180 TAR_OPTIONS=\"-H ustar\"
32181 export TAR_OPTIONS
32182 rm -rf *
32183
32184
32185 test -z "`sort < /dev/null 2>&1`" || exit 77
32186
32187
32188 genfile -l 1024 -f file1
32189 genfile -l 1024 -f file2
32190 tar cf archive file1 file2
32191
32192 mkdir directory
32193 tar -xf archive --same-order -C directory --warning=no-timestamp || exit 1
32194
32195 ls directory|sort
32196 )"
32197 echo same-order01.at:29 >"$at_check_line_file"
32198
32199 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
32200    false; }; then
32201   ( $at_traceon;
32202 mkdir ustar
32203 (cd ustar
32204 TEST_TAR_FORMAT=ustar
32205 export TEST_TAR_FORMAT
32206 TAR_OPTIONS="-H ustar"
32207 export TAR_OPTIONS
32208 rm -rf *
32209
32210
32211 test -z "`sort < /dev/null 2>&1`" || exit 77
32212
32213
32214 genfile -l 1024 -f file1
32215 genfile -l 1024 -f file2
32216 tar cf archive file1 file2
32217
32218 mkdir directory
32219 tar -xf archive --same-order -C directory --warning=no-timestamp || exit 1
32220
32221 ls directory|sort
32222 ) ) >"$at_stdout" 2>"$at_stder1"
32223   at_func_filter_trace $?
32224 else
32225   ( :;
32226 mkdir ustar
32227 (cd ustar
32228 TEST_TAR_FORMAT=ustar
32229 export TEST_TAR_FORMAT
32230 TAR_OPTIONS="-H ustar"
32231 export TAR_OPTIONS
32232 rm -rf *
32233
32234
32235 test -z "`sort < /dev/null 2>&1`" || exit 77
32236
32237
32238 genfile -l 1024 -f file1
32239 genfile -l 1024 -f file2
32240 tar cf archive file1 file2
32241
32242 mkdir directory
32243 tar -xf archive --same-order -C directory --warning=no-timestamp || exit 1
32244
32245 ls directory|sort
32246 ) ) >"$at_stdout" 2>"$at_stderr"
32247 fi
32248 at_status=$?
32249 at_failed=false
32250 at_func_diff_devnull "$at_stderr" || at_failed=:
32251 echo >>"$at_stdout"; $as_echo "file1
32252 file2
32253 " | \
32254   $at_diff - "$at_stdout" || at_failed=:
32255 at_func_check_status 0 $at_status "$at_srcdir/same-order01.at:29"
32256
32257 $at_failed && at_func_log_failure
32258 $at_traceon; }
32259
32260               { $at_traceoff
32261 $as_echo "$at_srcdir/same-order01.at:29:
32262 mkdir posix
32263 (cd posix
32264 TEST_TAR_FORMAT=posix
32265 export TEST_TAR_FORMAT
32266 TAR_OPTIONS=\"-H posix\"
32267 export TAR_OPTIONS
32268 rm -rf *
32269
32270
32271 test -z "`sort < /dev/null 2>&1`" || exit 77
32272
32273
32274 genfile -l 1024 -f file1
32275 genfile -l 1024 -f file2
32276 tar cf archive file1 file2
32277
32278 mkdir directory
32279 tar -xf archive --same-order -C directory --warning=no-timestamp || exit 1
32280
32281 ls directory|sort
32282 )"
32283 echo same-order01.at:29 >"$at_check_line_file"
32284
32285 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
32286    false; }; then
32287   ( $at_traceon;
32288 mkdir posix
32289 (cd posix
32290 TEST_TAR_FORMAT=posix
32291 export TEST_TAR_FORMAT
32292 TAR_OPTIONS="-H posix"
32293 export TAR_OPTIONS
32294 rm -rf *
32295
32296
32297 test -z "`sort < /dev/null 2>&1`" || exit 77
32298
32299
32300 genfile -l 1024 -f file1
32301 genfile -l 1024 -f file2
32302 tar cf archive file1 file2
32303
32304 mkdir directory
32305 tar -xf archive --same-order -C directory --warning=no-timestamp || exit 1
32306
32307 ls directory|sort
32308 ) ) >"$at_stdout" 2>"$at_stder1"
32309   at_func_filter_trace $?
32310 else
32311   ( :;
32312 mkdir posix
32313 (cd posix
32314 TEST_TAR_FORMAT=posix
32315 export TEST_TAR_FORMAT
32316 TAR_OPTIONS="-H posix"
32317 export TAR_OPTIONS
32318 rm -rf *
32319
32320
32321 test -z "`sort < /dev/null 2>&1`" || exit 77
32322
32323
32324 genfile -l 1024 -f file1
32325 genfile -l 1024 -f file2
32326 tar cf archive file1 file2
32327
32328 mkdir directory
32329 tar -xf archive --same-order -C directory --warning=no-timestamp || exit 1
32330
32331 ls directory|sort
32332 ) ) >"$at_stdout" 2>"$at_stderr"
32333 fi
32334 at_status=$?
32335 at_failed=false
32336 at_func_diff_devnull "$at_stderr" || at_failed=:
32337 echo >>"$at_stdout"; $as_echo "file1
32338 file2
32339 " | \
32340   $at_diff - "$at_stdout" || at_failed=:
32341 at_func_check_status 0 $at_status "$at_srcdir/same-order01.at:29"
32342
32343 $at_failed && at_func_log_failure
32344 $at_traceon; }
32345
32346               { $at_traceoff
32347 $as_echo "$at_srcdir/same-order01.at:29:
32348 mkdir gnu
32349 (cd gnu
32350 TEST_TAR_FORMAT=gnu
32351 export TEST_TAR_FORMAT
32352 TAR_OPTIONS=\"-H gnu\"
32353 export TAR_OPTIONS
32354 rm -rf *
32355
32356
32357 test -z "`sort < /dev/null 2>&1`" || exit 77
32358
32359
32360 genfile -l 1024 -f file1
32361 genfile -l 1024 -f file2
32362 tar cf archive file1 file2
32363
32364 mkdir directory
32365 tar -xf archive --same-order -C directory --warning=no-timestamp || exit 1
32366
32367 ls directory|sort
32368 )"
32369 echo same-order01.at:29 >"$at_check_line_file"
32370
32371 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
32372    false; }; then
32373   ( $at_traceon;
32374 mkdir gnu
32375 (cd gnu
32376 TEST_TAR_FORMAT=gnu
32377 export TEST_TAR_FORMAT
32378 TAR_OPTIONS="-H gnu"
32379 export TAR_OPTIONS
32380 rm -rf *
32381
32382
32383 test -z "`sort < /dev/null 2>&1`" || exit 77
32384
32385
32386 genfile -l 1024 -f file1
32387 genfile -l 1024 -f file2
32388 tar cf archive file1 file2
32389
32390 mkdir directory
32391 tar -xf archive --same-order -C directory --warning=no-timestamp || exit 1
32392
32393 ls directory|sort
32394 ) ) >"$at_stdout" 2>"$at_stder1"
32395   at_func_filter_trace $?
32396 else
32397   ( :;
32398 mkdir gnu
32399 (cd gnu
32400 TEST_TAR_FORMAT=gnu
32401 export TEST_TAR_FORMAT
32402 TAR_OPTIONS="-H gnu"
32403 export TAR_OPTIONS
32404 rm -rf *
32405
32406
32407 test -z "`sort < /dev/null 2>&1`" || exit 77
32408
32409
32410 genfile -l 1024 -f file1
32411 genfile -l 1024 -f file2
32412 tar cf archive file1 file2
32413
32414 mkdir directory
32415 tar -xf archive --same-order -C directory --warning=no-timestamp || exit 1
32416
32417 ls directory|sort
32418 ) ) >"$at_stdout" 2>"$at_stderr"
32419 fi
32420 at_status=$?
32421 at_failed=false
32422 at_func_diff_devnull "$at_stderr" || at_failed=:
32423 echo >>"$at_stdout"; $as_echo "file1
32424 file2
32425 " | \
32426   $at_diff - "$at_stdout" || at_failed=:
32427 at_func_check_status 0 $at_status "$at_srcdir/same-order01.at:29"
32428
32429 $at_failed && at_func_log_failure
32430 $at_traceon; }
32431
32432
32433
32434
32435   $at_traceoff
32436   $at_times_p && times >"$at_times_file"
32437 ) 5>&1 2>&1 | eval $at_tee_pipe
32438 at_status=`cat "$at_status_file"`
32439 #AT_STOP_90
32440 #AT_START_91
32441 # 91. same-order02.at:25: multiple -C options
32442 at_setup_line='same-order02.at:25'
32443 at_desc="multiple -C options"
32444 $at_quiet $as_echo_n " 91: $at_desc                            "
32445 at_xfail=no
32446       test -f $XFAILFILE && at_xfail=yes
32447 echo "#                             -*- compilation -*-" >> "$at_group_log"
32448 (
32449   $as_echo "91. same-order02.at:25: testing ..."
32450   $at_traceon
32451
32452
32453
32454
32455
32456   { $at_traceoff
32457 $as_echo "$at_srcdir/same-order02.at:28:
32458 mkdir v7
32459 (cd v7
32460 TEST_TAR_FORMAT=v7
32461 export TEST_TAR_FORMAT
32462 TAR_OPTIONS=\"-H v7\"
32463 export TAR_OPTIONS
32464 rm -rf *
32465
32466 genfile -l 1024 -f file1
32467 genfile -l 1024 -f file2
32468 tar cf archive file1 file2
32469
32470 mkdir en
32471 mkdir to
32472
32473 HERE=\`pwd\`
32474 tar -xf archive --same-order --warning=no-timestamp \\
32475   -C \$HERE/en file1 \\
32476   -C \$HERE/to file2 || exit 1
32477
32478 ls en
32479 echo separator
32480 ls to
32481 )"
32482 echo same-order02.at:28 >"$at_check_line_file"
32483
32484 if { echo 'Not enabling shell tracing (command contains a `...` command substitution)'
32485    false; }; then
32486   ( $at_traceon;
32487 mkdir v7
32488 (cd v7
32489 TEST_TAR_FORMAT=v7
32490 export TEST_TAR_FORMAT
32491 TAR_OPTIONS="-H v7"
32492 export TAR_OPTIONS
32493 rm -rf *
32494
32495 genfile -l 1024 -f file1
32496 genfile -l 1024 -f file2
32497 tar cf archive file1 file2
32498
32499 mkdir en
32500 mkdir to
32501
32502 HERE=`pwd`
32503 tar -xf archive --same-order --warning=no-timestamp \
32504   -C $HERE/en file1 \
32505   -C $HERE/to file2 || exit 1
32506
32507 ls en
32508 echo separator
32509 ls to
32510 ) ) >"$at_stdout" 2>"$at_stder1"
32511   at_func_filter_trace $?
32512 else
32513   ( :;
32514 mkdir v7
32515 (cd v7
32516 TEST_TAR_FORMAT=v7
32517 export TEST_TAR_FORMAT
32518 TAR_OPTIONS="-H v7"
32519 export TAR_OPTIONS
32520 rm -rf *
32521
32522 genfile -l 1024 -f file1
32523 genfile -l 1024 -f file2
32524 tar cf archive file1 file2
32525
32526 mkdir en
32527 mkdir to
32528
32529 HERE=`pwd`
32530 tar -xf archive --same-order --warning=no-timestamp \
32531   -C $HERE/en file1 \
32532   -C $HERE/to file2 || exit 1
32533
32534 ls en
32535 echo separator
32536 ls to
32537 ) ) >"$at_stdout" 2>"$at_stderr"
32538 fi
32539 at_status=$?
32540 at_failed=false
32541 at_func_diff_devnull "$at_stderr" || at_failed=:
32542 echo >>"$at_stdout"; $as_echo "file1
32543 separator
32544 file2
32545 " | \
32546   $at_diff - "$at_stdout" || at_failed=:
32547 at_func_check_status 0 $at_status "$at_srcdir/same-order02.at:28"
32548
32549 $at_failed && at_func_log_failure
32550 $at_traceon; }
32551
32552               { $at_traceoff
32553 $as_echo "$at_srcdir/same-order02.at:28:
32554 mkdir oldgnu
32555 (cd oldgnu
32556 TEST_TAR_FORMAT=oldgnu
32557 export TEST_TAR_FORMAT
32558 TAR_OPTIONS=\"-H oldgnu\"
32559 export TAR_OPTIONS
32560 rm -rf *
32561
32562 genfile -l 1024 -f file1
32563 genfile -l 1024 -f file2
32564 tar cf archive file1 file2
32565
32566 mkdir en
32567 mkdir to
32568
32569 HERE=\`pwd\`
32570 tar -xf archive --same-order --warning=no-timestamp \\
32571   -C \$HERE/en file1 \\
32572   -C \$HERE/to file2 || exit 1
32573
32574 ls en
32575 echo separator
32576 ls to
32577 )"
32578 echo same-order02.at:28 >"$at_check_line_file"
32579
32580 if { echo 'Not enabling shell tracing (command contains a `...` command substitution)'
32581    false; }; then
32582   ( $at_traceon;
32583 mkdir oldgnu
32584 (cd oldgnu
32585 TEST_TAR_FORMAT=oldgnu
32586 export TEST_TAR_FORMAT
32587 TAR_OPTIONS="-H oldgnu"
32588 export TAR_OPTIONS
32589 rm -rf *
32590
32591 genfile -l 1024 -f file1
32592 genfile -l 1024 -f file2
32593 tar cf archive file1 file2
32594
32595 mkdir en
32596 mkdir to
32597
32598 HERE=`pwd`
32599 tar -xf archive --same-order --warning=no-timestamp \
32600   -C $HERE/en file1 \
32601   -C $HERE/to file2 || exit 1
32602
32603 ls en
32604 echo separator
32605 ls to
32606 ) ) >"$at_stdout" 2>"$at_stder1"
32607   at_func_filter_trace $?
32608 else
32609   ( :;
32610 mkdir oldgnu
32611 (cd oldgnu
32612 TEST_TAR_FORMAT=oldgnu
32613 export TEST_TAR_FORMAT
32614 TAR_OPTIONS="-H oldgnu"
32615 export TAR_OPTIONS
32616 rm -rf *
32617
32618 genfile -l 1024 -f file1
32619 genfile -l 1024 -f file2
32620 tar cf archive file1 file2
32621
32622 mkdir en
32623 mkdir to
32624
32625 HERE=`pwd`
32626 tar -xf archive --same-order --warning=no-timestamp \
32627   -C $HERE/en file1 \
32628   -C $HERE/to file2 || exit 1
32629
32630 ls en
32631 echo separator
32632 ls to
32633 ) ) >"$at_stdout" 2>"$at_stderr"
32634 fi
32635 at_status=$?
32636 at_failed=false
32637 at_func_diff_devnull "$at_stderr" || at_failed=:
32638 echo >>"$at_stdout"; $as_echo "file1
32639 separator
32640 file2
32641 " | \
32642   $at_diff - "$at_stdout" || at_failed=:
32643 at_func_check_status 0 $at_status "$at_srcdir/same-order02.at:28"
32644
32645 $at_failed && at_func_log_failure
32646 $at_traceon; }
32647
32648               { $at_traceoff
32649 $as_echo "$at_srcdir/same-order02.at:28:
32650 mkdir ustar
32651 (cd ustar
32652 TEST_TAR_FORMAT=ustar
32653 export TEST_TAR_FORMAT
32654 TAR_OPTIONS=\"-H ustar\"
32655 export TAR_OPTIONS
32656 rm -rf *
32657
32658 genfile -l 1024 -f file1
32659 genfile -l 1024 -f file2
32660 tar cf archive file1 file2
32661
32662 mkdir en
32663 mkdir to
32664
32665 HERE=\`pwd\`
32666 tar -xf archive --same-order --warning=no-timestamp \\
32667   -C \$HERE/en file1 \\
32668   -C \$HERE/to file2 || exit 1
32669
32670 ls en
32671 echo separator
32672 ls to
32673 )"
32674 echo same-order02.at:28 >"$at_check_line_file"
32675
32676 if { echo 'Not enabling shell tracing (command contains a `...` command substitution)'
32677    false; }; then
32678   ( $at_traceon;
32679 mkdir ustar
32680 (cd ustar
32681 TEST_TAR_FORMAT=ustar
32682 export TEST_TAR_FORMAT
32683 TAR_OPTIONS="-H ustar"
32684 export TAR_OPTIONS
32685 rm -rf *
32686
32687 genfile -l 1024 -f file1
32688 genfile -l 1024 -f file2
32689 tar cf archive file1 file2
32690
32691 mkdir en
32692 mkdir to
32693
32694 HERE=`pwd`
32695 tar -xf archive --same-order --warning=no-timestamp \
32696   -C $HERE/en file1 \
32697   -C $HERE/to file2 || exit 1
32698
32699 ls en
32700 echo separator
32701 ls to
32702 ) ) >"$at_stdout" 2>"$at_stder1"
32703   at_func_filter_trace $?
32704 else
32705   ( :;
32706 mkdir ustar
32707 (cd ustar
32708 TEST_TAR_FORMAT=ustar
32709 export TEST_TAR_FORMAT
32710 TAR_OPTIONS="-H ustar"
32711 export TAR_OPTIONS
32712 rm -rf *
32713
32714 genfile -l 1024 -f file1
32715 genfile -l 1024 -f file2
32716 tar cf archive file1 file2
32717
32718 mkdir en
32719 mkdir to
32720
32721 HERE=`pwd`
32722 tar -xf archive --same-order --warning=no-timestamp \
32723   -C $HERE/en file1 \
32724   -C $HERE/to file2 || exit 1
32725
32726 ls en
32727 echo separator
32728 ls to
32729 ) ) >"$at_stdout" 2>"$at_stderr"
32730 fi
32731 at_status=$?
32732 at_failed=false
32733 at_func_diff_devnull "$at_stderr" || at_failed=:
32734 echo >>"$at_stdout"; $as_echo "file1
32735 separator
32736 file2
32737 " | \
32738   $at_diff - "$at_stdout" || at_failed=:
32739 at_func_check_status 0 $at_status "$at_srcdir/same-order02.at:28"
32740
32741 $at_failed && at_func_log_failure
32742 $at_traceon; }
32743
32744               { $at_traceoff
32745 $as_echo "$at_srcdir/same-order02.at:28:
32746 mkdir posix
32747 (cd posix
32748 TEST_TAR_FORMAT=posix
32749 export TEST_TAR_FORMAT
32750 TAR_OPTIONS=\"-H posix\"
32751 export TAR_OPTIONS
32752 rm -rf *
32753
32754 genfile -l 1024 -f file1
32755 genfile -l 1024 -f file2
32756 tar cf archive file1 file2
32757
32758 mkdir en
32759 mkdir to
32760
32761 HERE=\`pwd\`
32762 tar -xf archive --same-order --warning=no-timestamp \\
32763   -C \$HERE/en file1 \\
32764   -C \$HERE/to file2 || exit 1
32765
32766 ls en
32767 echo separator
32768 ls to
32769 )"
32770 echo same-order02.at:28 >"$at_check_line_file"
32771
32772 if { echo 'Not enabling shell tracing (command contains a `...` command substitution)'
32773    false; }; then
32774   ( $at_traceon;
32775 mkdir posix
32776 (cd posix
32777 TEST_TAR_FORMAT=posix
32778 export TEST_TAR_FORMAT
32779 TAR_OPTIONS="-H posix"
32780 export TAR_OPTIONS
32781 rm -rf *
32782
32783 genfile -l 1024 -f file1
32784 genfile -l 1024 -f file2
32785 tar cf archive file1 file2
32786
32787 mkdir en
32788 mkdir to
32789
32790 HERE=`pwd`
32791 tar -xf archive --same-order --warning=no-timestamp \
32792   -C $HERE/en file1 \
32793   -C $HERE/to file2 || exit 1
32794
32795 ls en
32796 echo separator
32797 ls to
32798 ) ) >"$at_stdout" 2>"$at_stder1"
32799   at_func_filter_trace $?
32800 else
32801   ( :;
32802 mkdir posix
32803 (cd posix
32804 TEST_TAR_FORMAT=posix
32805 export TEST_TAR_FORMAT
32806 TAR_OPTIONS="-H posix"
32807 export TAR_OPTIONS
32808 rm -rf *
32809
32810 genfile -l 1024 -f file1
32811 genfile -l 1024 -f file2
32812 tar cf archive file1 file2
32813
32814 mkdir en
32815 mkdir to
32816
32817 HERE=`pwd`
32818 tar -xf archive --same-order --warning=no-timestamp \
32819   -C $HERE/en file1 \
32820   -C $HERE/to file2 || exit 1
32821
32822 ls en
32823 echo separator
32824 ls to
32825 ) ) >"$at_stdout" 2>"$at_stderr"
32826 fi
32827 at_status=$?
32828 at_failed=false
32829 at_func_diff_devnull "$at_stderr" || at_failed=:
32830 echo >>"$at_stdout"; $as_echo "file1
32831 separator
32832 file2
32833 " | \
32834   $at_diff - "$at_stdout" || at_failed=:
32835 at_func_check_status 0 $at_status "$at_srcdir/same-order02.at:28"
32836
32837 $at_failed && at_func_log_failure
32838 $at_traceon; }
32839
32840               { $at_traceoff
32841 $as_echo "$at_srcdir/same-order02.at:28:
32842 mkdir gnu
32843 (cd gnu
32844 TEST_TAR_FORMAT=gnu
32845 export TEST_TAR_FORMAT
32846 TAR_OPTIONS=\"-H gnu\"
32847 export TAR_OPTIONS
32848 rm -rf *
32849
32850 genfile -l 1024 -f file1
32851 genfile -l 1024 -f file2
32852 tar cf archive file1 file2
32853
32854 mkdir en
32855 mkdir to
32856
32857 HERE=\`pwd\`
32858 tar -xf archive --same-order --warning=no-timestamp \\
32859   -C \$HERE/en file1 \\
32860   -C \$HERE/to file2 || exit 1
32861
32862 ls en
32863 echo separator
32864 ls to
32865 )"
32866 echo same-order02.at:28 >"$at_check_line_file"
32867
32868 if { echo 'Not enabling shell tracing (command contains a `...` command substitution)'
32869    false; }; then
32870   ( $at_traceon;
32871 mkdir gnu
32872 (cd gnu
32873 TEST_TAR_FORMAT=gnu
32874 export TEST_TAR_FORMAT
32875 TAR_OPTIONS="-H gnu"
32876 export TAR_OPTIONS
32877 rm -rf *
32878
32879 genfile -l 1024 -f file1
32880 genfile -l 1024 -f file2
32881 tar cf archive file1 file2
32882
32883 mkdir en
32884 mkdir to
32885
32886 HERE=`pwd`
32887 tar -xf archive --same-order --warning=no-timestamp \
32888   -C $HERE/en file1 \
32889   -C $HERE/to file2 || exit 1
32890
32891 ls en
32892 echo separator
32893 ls to
32894 ) ) >"$at_stdout" 2>"$at_stder1"
32895   at_func_filter_trace $?
32896 else
32897   ( :;
32898 mkdir gnu
32899 (cd gnu
32900 TEST_TAR_FORMAT=gnu
32901 export TEST_TAR_FORMAT
32902 TAR_OPTIONS="-H gnu"
32903 export TAR_OPTIONS
32904 rm -rf *
32905
32906 genfile -l 1024 -f file1
32907 genfile -l 1024 -f file2
32908 tar cf archive file1 file2
32909
32910 mkdir en
32911 mkdir to
32912
32913 HERE=`pwd`
32914 tar -xf archive --same-order --warning=no-timestamp \
32915   -C $HERE/en file1 \
32916   -C $HERE/to file2 || exit 1
32917
32918 ls en
32919 echo separator
32920 ls to
32921 ) ) >"$at_stdout" 2>"$at_stderr"
32922 fi
32923 at_status=$?
32924 at_failed=false
32925 at_func_diff_devnull "$at_stderr" || at_failed=:
32926 echo >>"$at_stdout"; $as_echo "file1
32927 separator
32928 file2
32929 " | \
32930   $at_diff - "$at_stdout" || at_failed=:
32931 at_func_check_status 0 $at_status "$at_srcdir/same-order02.at:28"
32932
32933 $at_failed && at_func_log_failure
32934 $at_traceon; }
32935
32936
32937
32938
32939   $at_traceoff
32940   $at_times_p && times >"$at_times_file"
32941 ) 5>&1 2>&1 | eval $at_tee_pipe
32942 at_status=`cat "$at_status_file"`
32943 #AT_STOP_91
32944 #AT_START_92
32945 # 92. shortrec.at:25: short records
32946 at_setup_line='shortrec.at:25'
32947 at_desc="short records"
32948 $at_quiet $as_echo_n " 92: $at_desc                                  "
32949 at_xfail=no
32950       test -f $XFAILFILE && at_xfail=yes
32951 echo "#                             -*- compilation -*-" >> "$at_group_log"
32952 (
32953   $as_echo "92. shortrec.at:25: testing ..."
32954   $at_traceon
32955
32956
32957
32958
32959
32960   { $at_traceoff
32961 $as_echo "$at_srcdir/shortrec.at:28:
32962 mkdir v7
32963 (cd v7
32964 TEST_TAR_FORMAT=v7
32965 export TEST_TAR_FORMAT
32966 TAR_OPTIONS=\"-H v7\"
32967 export TAR_OPTIONS
32968 rm -rf *
32969
32970 mkdir directory
32971 (cd directory && touch a b c d e f g h i j k l m n o p q r)
32972 tar -c -b 1 -f - directory | tar -t -f - > /dev/null
32973 tar -c -b 1 -f archive directory
32974 tar -t -f archive > /dev/null
32975 tar -t -f - < archive > /dev/null
32976
32977 rm -r directory
32978 )"
32979 echo shortrec.at:28 >"$at_check_line_file"
32980
32981 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
32982    false; }; then
32983   ( $at_traceon;
32984 mkdir v7
32985 (cd v7
32986 TEST_TAR_FORMAT=v7
32987 export TEST_TAR_FORMAT
32988 TAR_OPTIONS="-H v7"
32989 export TAR_OPTIONS
32990 rm -rf *
32991
32992 mkdir directory
32993 (cd directory && touch a b c d e f g h i j k l m n o p q r)
32994 tar -c -b 1 -f - directory | tar -t -f - > /dev/null
32995 tar -c -b 1 -f archive directory
32996 tar -t -f archive > /dev/null
32997 tar -t -f - < archive > /dev/null
32998
32999 rm -r directory
33000 ) ) >"$at_stdout" 2>"$at_stder1"
33001   at_func_filter_trace $?
33002 else
33003   ( :;
33004 mkdir v7
33005 (cd v7
33006 TEST_TAR_FORMAT=v7
33007 export TEST_TAR_FORMAT
33008 TAR_OPTIONS="-H v7"
33009 export TAR_OPTIONS
33010 rm -rf *
33011
33012 mkdir directory
33013 (cd directory && touch a b c d e f g h i j k l m n o p q r)
33014 tar -c -b 1 -f - directory | tar -t -f - > /dev/null
33015 tar -c -b 1 -f archive directory
33016 tar -t -f archive > /dev/null
33017 tar -t -f - < archive > /dev/null
33018
33019 rm -r directory
33020 ) ) >"$at_stdout" 2>"$at_stderr"
33021 fi
33022 at_status=$?
33023 at_failed=false
33024 at_func_diff_devnull "$at_stderr" || at_failed=:
33025 at_func_diff_devnull "$at_stdout" || at_failed=:
33026 at_func_check_status 0 $at_status "$at_srcdir/shortrec.at:28"
33027
33028 $at_failed && at_func_log_failure
33029 $at_traceon; }
33030
33031               { $at_traceoff
33032 $as_echo "$at_srcdir/shortrec.at:28:
33033 mkdir oldgnu
33034 (cd oldgnu
33035 TEST_TAR_FORMAT=oldgnu
33036 export TEST_TAR_FORMAT
33037 TAR_OPTIONS=\"-H oldgnu\"
33038 export TAR_OPTIONS
33039 rm -rf *
33040
33041 mkdir directory
33042 (cd directory && touch a b c d e f g h i j k l m n o p q r)
33043 tar -c -b 1 -f - directory | tar -t -f - > /dev/null
33044 tar -c -b 1 -f archive directory
33045 tar -t -f archive > /dev/null
33046 tar -t -f - < archive > /dev/null
33047
33048 rm -r directory
33049 )"
33050 echo shortrec.at:28 >"$at_check_line_file"
33051
33052 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
33053    false; }; then
33054   ( $at_traceon;
33055 mkdir oldgnu
33056 (cd oldgnu
33057 TEST_TAR_FORMAT=oldgnu
33058 export TEST_TAR_FORMAT
33059 TAR_OPTIONS="-H oldgnu"
33060 export TAR_OPTIONS
33061 rm -rf *
33062
33063 mkdir directory
33064 (cd directory && touch a b c d e f g h i j k l m n o p q r)
33065 tar -c -b 1 -f - directory | tar -t -f - > /dev/null
33066 tar -c -b 1 -f archive directory
33067 tar -t -f archive > /dev/null
33068 tar -t -f - < archive > /dev/null
33069
33070 rm -r directory
33071 ) ) >"$at_stdout" 2>"$at_stder1"
33072   at_func_filter_trace $?
33073 else
33074   ( :;
33075 mkdir oldgnu
33076 (cd oldgnu
33077 TEST_TAR_FORMAT=oldgnu
33078 export TEST_TAR_FORMAT
33079 TAR_OPTIONS="-H oldgnu"
33080 export TAR_OPTIONS
33081 rm -rf *
33082
33083 mkdir directory
33084 (cd directory && touch a b c d e f g h i j k l m n o p q r)
33085 tar -c -b 1 -f - directory | tar -t -f - > /dev/null
33086 tar -c -b 1 -f archive directory
33087 tar -t -f archive > /dev/null
33088 tar -t -f - < archive > /dev/null
33089
33090 rm -r directory
33091 ) ) >"$at_stdout" 2>"$at_stderr"
33092 fi
33093 at_status=$?
33094 at_failed=false
33095 at_func_diff_devnull "$at_stderr" || at_failed=:
33096 at_func_diff_devnull "$at_stdout" || at_failed=:
33097 at_func_check_status 0 $at_status "$at_srcdir/shortrec.at:28"
33098
33099 $at_failed && at_func_log_failure
33100 $at_traceon; }
33101
33102               { $at_traceoff
33103 $as_echo "$at_srcdir/shortrec.at:28:
33104 mkdir ustar
33105 (cd ustar
33106 TEST_TAR_FORMAT=ustar
33107 export TEST_TAR_FORMAT
33108 TAR_OPTIONS=\"-H ustar\"
33109 export TAR_OPTIONS
33110 rm -rf *
33111
33112 mkdir directory
33113 (cd directory && touch a b c d e f g h i j k l m n o p q r)
33114 tar -c -b 1 -f - directory | tar -t -f - > /dev/null
33115 tar -c -b 1 -f archive directory
33116 tar -t -f archive > /dev/null
33117 tar -t -f - < archive > /dev/null
33118
33119 rm -r directory
33120 )"
33121 echo shortrec.at:28 >"$at_check_line_file"
33122
33123 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
33124    false; }; then
33125   ( $at_traceon;
33126 mkdir ustar
33127 (cd ustar
33128 TEST_TAR_FORMAT=ustar
33129 export TEST_TAR_FORMAT
33130 TAR_OPTIONS="-H ustar"
33131 export TAR_OPTIONS
33132 rm -rf *
33133
33134 mkdir directory
33135 (cd directory && touch a b c d e f g h i j k l m n o p q r)
33136 tar -c -b 1 -f - directory | tar -t -f - > /dev/null
33137 tar -c -b 1 -f archive directory
33138 tar -t -f archive > /dev/null
33139 tar -t -f - < archive > /dev/null
33140
33141 rm -r directory
33142 ) ) >"$at_stdout" 2>"$at_stder1"
33143   at_func_filter_trace $?
33144 else
33145   ( :;
33146 mkdir ustar
33147 (cd ustar
33148 TEST_TAR_FORMAT=ustar
33149 export TEST_TAR_FORMAT
33150 TAR_OPTIONS="-H ustar"
33151 export TAR_OPTIONS
33152 rm -rf *
33153
33154 mkdir directory
33155 (cd directory && touch a b c d e f g h i j k l m n o p q r)
33156 tar -c -b 1 -f - directory | tar -t -f - > /dev/null
33157 tar -c -b 1 -f archive directory
33158 tar -t -f archive > /dev/null
33159 tar -t -f - < archive > /dev/null
33160
33161 rm -r directory
33162 ) ) >"$at_stdout" 2>"$at_stderr"
33163 fi
33164 at_status=$?
33165 at_failed=false
33166 at_func_diff_devnull "$at_stderr" || at_failed=:
33167 at_func_diff_devnull "$at_stdout" || at_failed=:
33168 at_func_check_status 0 $at_status "$at_srcdir/shortrec.at:28"
33169
33170 $at_failed && at_func_log_failure
33171 $at_traceon; }
33172
33173               { $at_traceoff
33174 $as_echo "$at_srcdir/shortrec.at:28:
33175 mkdir posix
33176 (cd posix
33177 TEST_TAR_FORMAT=posix
33178 export TEST_TAR_FORMAT
33179 TAR_OPTIONS=\"-H posix\"
33180 export TAR_OPTIONS
33181 rm -rf *
33182
33183 mkdir directory
33184 (cd directory && touch a b c d e f g h i j k l m n o p q r)
33185 tar -c -b 1 -f - directory | tar -t -f - > /dev/null
33186 tar -c -b 1 -f archive directory
33187 tar -t -f archive > /dev/null
33188 tar -t -f - < archive > /dev/null
33189
33190 rm -r directory
33191 )"
33192 echo shortrec.at:28 >"$at_check_line_file"
33193
33194 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
33195    false; }; then
33196   ( $at_traceon;
33197 mkdir posix
33198 (cd posix
33199 TEST_TAR_FORMAT=posix
33200 export TEST_TAR_FORMAT
33201 TAR_OPTIONS="-H posix"
33202 export TAR_OPTIONS
33203 rm -rf *
33204
33205 mkdir directory
33206 (cd directory && touch a b c d e f g h i j k l m n o p q r)
33207 tar -c -b 1 -f - directory | tar -t -f - > /dev/null
33208 tar -c -b 1 -f archive directory
33209 tar -t -f archive > /dev/null
33210 tar -t -f - < archive > /dev/null
33211
33212 rm -r directory
33213 ) ) >"$at_stdout" 2>"$at_stder1"
33214   at_func_filter_trace $?
33215 else
33216   ( :;
33217 mkdir posix
33218 (cd posix
33219 TEST_TAR_FORMAT=posix
33220 export TEST_TAR_FORMAT
33221 TAR_OPTIONS="-H posix"
33222 export TAR_OPTIONS
33223 rm -rf *
33224
33225 mkdir directory
33226 (cd directory && touch a b c d e f g h i j k l m n o p q r)
33227 tar -c -b 1 -f - directory | tar -t -f - > /dev/null
33228 tar -c -b 1 -f archive directory
33229 tar -t -f archive > /dev/null
33230 tar -t -f - < archive > /dev/null
33231
33232 rm -r directory
33233 ) ) >"$at_stdout" 2>"$at_stderr"
33234 fi
33235 at_status=$?
33236 at_failed=false
33237 at_func_diff_devnull "$at_stderr" || at_failed=:
33238 at_func_diff_devnull "$at_stdout" || at_failed=:
33239 at_func_check_status 0 $at_status "$at_srcdir/shortrec.at:28"
33240
33241 $at_failed && at_func_log_failure
33242 $at_traceon; }
33243
33244               { $at_traceoff
33245 $as_echo "$at_srcdir/shortrec.at:28:
33246 mkdir gnu
33247 (cd gnu
33248 TEST_TAR_FORMAT=gnu
33249 export TEST_TAR_FORMAT
33250 TAR_OPTIONS=\"-H gnu\"
33251 export TAR_OPTIONS
33252 rm -rf *
33253
33254 mkdir directory
33255 (cd directory && touch a b c d e f g h i j k l m n o p q r)
33256 tar -c -b 1 -f - directory | tar -t -f - > /dev/null
33257 tar -c -b 1 -f archive directory
33258 tar -t -f archive > /dev/null
33259 tar -t -f - < archive > /dev/null
33260
33261 rm -r directory
33262 )"
33263 echo shortrec.at:28 >"$at_check_line_file"
33264
33265 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
33266    false; }; then
33267   ( $at_traceon;
33268 mkdir gnu
33269 (cd gnu
33270 TEST_TAR_FORMAT=gnu
33271 export TEST_TAR_FORMAT
33272 TAR_OPTIONS="-H gnu"
33273 export TAR_OPTIONS
33274 rm -rf *
33275
33276 mkdir directory
33277 (cd directory && touch a b c d e f g h i j k l m n o p q r)
33278 tar -c -b 1 -f - directory | tar -t -f - > /dev/null
33279 tar -c -b 1 -f archive directory
33280 tar -t -f archive > /dev/null
33281 tar -t -f - < archive > /dev/null
33282
33283 rm -r directory
33284 ) ) >"$at_stdout" 2>"$at_stder1"
33285   at_func_filter_trace $?
33286 else
33287   ( :;
33288 mkdir gnu
33289 (cd gnu
33290 TEST_TAR_FORMAT=gnu
33291 export TEST_TAR_FORMAT
33292 TAR_OPTIONS="-H gnu"
33293 export TAR_OPTIONS
33294 rm -rf *
33295
33296 mkdir directory
33297 (cd directory && touch a b c d e f g h i j k l m n o p q r)
33298 tar -c -b 1 -f - directory | tar -t -f - > /dev/null
33299 tar -c -b 1 -f archive directory
33300 tar -t -f archive > /dev/null
33301 tar -t -f - < archive > /dev/null
33302
33303 rm -r directory
33304 ) ) >"$at_stdout" 2>"$at_stderr"
33305 fi
33306 at_status=$?
33307 at_failed=false
33308 at_func_diff_devnull "$at_stderr" || at_failed=:
33309 at_func_diff_devnull "$at_stdout" || at_failed=:
33310 at_func_check_status 0 $at_status "$at_srcdir/shortrec.at:28"
33311
33312 $at_failed && at_func_log_failure
33313 $at_traceon; }
33314
33315
33316
33317
33318   $at_traceoff
33319   $at_times_p && times >"$at_times_file"
33320 ) 5>&1 2>&1 | eval $at_tee_pipe
33321 at_status=`cat "$at_status_file"`
33322 #AT_STOP_92
33323 #AT_START_93
33324 # 93. sparse01.at:21: sparse files
33325 at_setup_line='sparse01.at:21'
33326 at_desc="sparse files"
33327 $at_quiet $as_echo_n " 93: $at_desc                                   "
33328 at_xfail=no
33329       test -f $XFAILFILE && at_xfail=yes
33330 echo "#                             -*- compilation -*-" >> "$at_group_log"
33331 (
33332   $as_echo "93. sparse01.at:21: testing ..."
33333   $at_traceon
33334
33335
33336
33337
33338
33339   { $at_traceoff
33340 $as_echo "$at_srcdir/sparse01.at:24:
33341 mkdir posix
33342 (cd posix
33343 TEST_TAR_FORMAT=posix
33344 export TEST_TAR_FORMAT
33345 TAR_OPTIONS=\"-H posix\"
33346 export TAR_OPTIONS
33347 rm -rf *
33348
33349 genfile --length 1000 -f begin
33350 genfile --length 1000 -f end
33351 genfile --sparse --file sparsefile --block-size 512 0 ABCD 1M EFGH 2000K IJKL || exit 77
33352 tar -c -f archive --sparse begin sparsefile end || exit 1
33353 echo separator
33354
33355 tar tfv archive
33356 echo separator
33357 mkdir directory
33358 tar Cxf directory archive --warning=no-timestamp
33359 genfile --stat=name,size sparsefile
33360 cmp sparsefile directory/sparsefile
33361 )"
33362 echo sparse01.at:24 >"$at_check_line_file"
33363
33364 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
33365    false; }; then
33366   ( $at_traceon;
33367 mkdir posix
33368 (cd posix
33369 TEST_TAR_FORMAT=posix
33370 export TEST_TAR_FORMAT
33371 TAR_OPTIONS="-H posix"
33372 export TAR_OPTIONS
33373 rm -rf *
33374
33375 genfile --length 1000 -f begin
33376 genfile --length 1000 -f end
33377 genfile --sparse --file sparsefile --block-size 512 0 ABCD 1M EFGH 2000K IJKL || exit 77
33378 tar -c -f archive --sparse begin sparsefile end || exit 1
33379 echo separator
33380
33381 tar tfv archive
33382 echo separator
33383 mkdir directory
33384 tar Cxf directory archive --warning=no-timestamp
33385 genfile --stat=name,size sparsefile
33386 cmp sparsefile directory/sparsefile
33387 ) ) >"$at_stdout" 2>"$at_stder1"
33388   at_func_filter_trace $?
33389 else
33390   ( :;
33391 mkdir posix
33392 (cd posix
33393 TEST_TAR_FORMAT=posix
33394 export TEST_TAR_FORMAT
33395 TAR_OPTIONS="-H posix"
33396 export TAR_OPTIONS
33397 rm -rf *
33398
33399 genfile --length 1000 -f begin
33400 genfile --length 1000 -f end
33401 genfile --sparse --file sparsefile --block-size 512 0 ABCD 1M EFGH 2000K IJKL || exit 77
33402 tar -c -f archive --sparse begin sparsefile end || exit 1
33403 echo separator
33404
33405 tar tfv archive
33406 echo separator
33407 mkdir directory
33408 tar Cxf directory archive --warning=no-timestamp
33409 genfile --stat=name,size sparsefile
33410 cmp sparsefile directory/sparsefile
33411 ) ) >"$at_stdout" 2>"$at_stderr"
33412 fi
33413 at_status=$?
33414 at_failed=false
33415 at_func_diff_devnull "$at_stderr" || at_failed=:
33416 echo stdout:; tee stdout <"$at_stdout"
33417 at_func_check_status 0 $at_status "$at_srcdir/sparse01.at:24"
33418
33419 $at_failed && at_func_log_failure
33420 $at_traceon; }
33421
33422               { $at_traceoff
33423 $as_echo "$at_srcdir/sparse01.at:24:
33424 mkdir gnu
33425 (cd gnu
33426 TEST_TAR_FORMAT=gnu
33427 export TEST_TAR_FORMAT
33428 TAR_OPTIONS=\"-H gnu\"
33429 export TAR_OPTIONS
33430 rm -rf *
33431
33432 genfile --length 1000 -f begin
33433 genfile --length 1000 -f end
33434 genfile --sparse --file sparsefile --block-size 512 0 ABCD 1M EFGH 2000K IJKL || exit 77
33435 tar -c -f archive --sparse begin sparsefile end || exit 1
33436 echo separator
33437
33438 tar tfv archive
33439 echo separator
33440 mkdir directory
33441 tar Cxf directory archive --warning=no-timestamp
33442 genfile --stat=name,size sparsefile
33443 cmp sparsefile directory/sparsefile
33444 )"
33445 echo sparse01.at:24 >"$at_check_line_file"
33446
33447 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
33448    false; }; then
33449   ( $at_traceon;
33450 mkdir gnu
33451 (cd gnu
33452 TEST_TAR_FORMAT=gnu
33453 export TEST_TAR_FORMAT
33454 TAR_OPTIONS="-H gnu"
33455 export TAR_OPTIONS
33456 rm -rf *
33457
33458 genfile --length 1000 -f begin
33459 genfile --length 1000 -f end
33460 genfile --sparse --file sparsefile --block-size 512 0 ABCD 1M EFGH 2000K IJKL || exit 77
33461 tar -c -f archive --sparse begin sparsefile end || exit 1
33462 echo separator
33463
33464 tar tfv archive
33465 echo separator
33466 mkdir directory
33467 tar Cxf directory archive --warning=no-timestamp
33468 genfile --stat=name,size sparsefile
33469 cmp sparsefile directory/sparsefile
33470 ) ) >"$at_stdout" 2>"$at_stder1"
33471   at_func_filter_trace $?
33472 else
33473   ( :;
33474 mkdir gnu
33475 (cd gnu
33476 TEST_TAR_FORMAT=gnu
33477 export TEST_TAR_FORMAT
33478 TAR_OPTIONS="-H gnu"
33479 export TAR_OPTIONS
33480 rm -rf *
33481
33482 genfile --length 1000 -f begin
33483 genfile --length 1000 -f end
33484 genfile --sparse --file sparsefile --block-size 512 0 ABCD 1M EFGH 2000K IJKL || exit 77
33485 tar -c -f archive --sparse begin sparsefile end || exit 1
33486 echo separator
33487
33488 tar tfv archive
33489 echo separator
33490 mkdir directory
33491 tar Cxf directory archive --warning=no-timestamp
33492 genfile --stat=name,size sparsefile
33493 cmp sparsefile directory/sparsefile
33494 ) ) >"$at_stdout" 2>"$at_stderr"
33495 fi
33496 at_status=$?
33497 at_failed=false
33498 at_func_diff_devnull "$at_stderr" || at_failed=:
33499 echo stdout:; tee stdout <"$at_stdout"
33500 at_func_check_status 0 $at_status "$at_srcdir/sparse01.at:24"
33501
33502 $at_failed && at_func_log_failure
33503 $at_traceon; }
33504
33505               { $at_traceoff
33506 $as_echo "$at_srcdir/sparse01.at:24:
33507 mkdir oldgnu
33508 (cd oldgnu
33509 TEST_TAR_FORMAT=oldgnu
33510 export TEST_TAR_FORMAT
33511 TAR_OPTIONS=\"-H oldgnu\"
33512 export TAR_OPTIONS
33513 rm -rf *
33514
33515 genfile --length 1000 -f begin
33516 genfile --length 1000 -f end
33517 genfile --sparse --file sparsefile --block-size 512 0 ABCD 1M EFGH 2000K IJKL || exit 77
33518 tar -c -f archive --sparse begin sparsefile end || exit 1
33519 echo separator
33520
33521 tar tfv archive
33522 echo separator
33523 mkdir directory
33524 tar Cxf directory archive --warning=no-timestamp
33525 genfile --stat=name,size sparsefile
33526 cmp sparsefile directory/sparsefile
33527 )"
33528 echo sparse01.at:24 >"$at_check_line_file"
33529
33530 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
33531    false; }; then
33532   ( $at_traceon;
33533 mkdir oldgnu
33534 (cd oldgnu
33535 TEST_TAR_FORMAT=oldgnu
33536 export TEST_TAR_FORMAT
33537 TAR_OPTIONS="-H oldgnu"
33538 export TAR_OPTIONS
33539 rm -rf *
33540
33541 genfile --length 1000 -f begin
33542 genfile --length 1000 -f end
33543 genfile --sparse --file sparsefile --block-size 512 0 ABCD 1M EFGH 2000K IJKL || exit 77
33544 tar -c -f archive --sparse begin sparsefile end || exit 1
33545 echo separator
33546
33547 tar tfv archive
33548 echo separator
33549 mkdir directory
33550 tar Cxf directory archive --warning=no-timestamp
33551 genfile --stat=name,size sparsefile
33552 cmp sparsefile directory/sparsefile
33553 ) ) >"$at_stdout" 2>"$at_stder1"
33554   at_func_filter_trace $?
33555 else
33556   ( :;
33557 mkdir oldgnu
33558 (cd oldgnu
33559 TEST_TAR_FORMAT=oldgnu
33560 export TEST_TAR_FORMAT
33561 TAR_OPTIONS="-H oldgnu"
33562 export TAR_OPTIONS
33563 rm -rf *
33564
33565 genfile --length 1000 -f begin
33566 genfile --length 1000 -f end
33567 genfile --sparse --file sparsefile --block-size 512 0 ABCD 1M EFGH 2000K IJKL || exit 77
33568 tar -c -f archive --sparse begin sparsefile end || exit 1
33569 echo separator
33570
33571 tar tfv archive
33572 echo separator
33573 mkdir directory
33574 tar Cxf directory archive --warning=no-timestamp
33575 genfile --stat=name,size sparsefile
33576 cmp sparsefile directory/sparsefile
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 stdout:; tee stdout <"$at_stdout"
33583 at_func_check_status 0 $at_status "$at_srcdir/sparse01.at:24"
33584
33585 $at_failed && at_func_log_failure
33586 $at_traceon; }
33587
33588
33589
33590
33591
33592 cat >stdout.re <<'_ATEOF'
33593 separator
33594 -rw-r--r-- ^ ^ *  *1000 0-90-90-90-9-0-90-9-0-90-9 0-90-9:0-90-9 begin
33595 -rw-r--r-- ^ ^ *  *10344448 0-90-90-90-9-0-90-9-0-90-9 0-90-9:0-90-9 sparsefile
33596 -rw-r--r-- ^ ^ *  *1000 0-90-90-90-9-0-90-9-0-90-9 0-90-9:0-90-9 end
33597 separator
33598 sparsefile 10344448
33599 _ATEOF
33600
33601 awk '{print NR " " $0}' stdout > $$.1
33602 awk '{print NR " " $0}' stdout.re | join - $$.1 |
33603 while read NUM RE LINE
33604 do
33605   echo "$LINE" | grep -- "$RE" >/dev/null || exit 1
33606 done
33607
33608
33609   $at_traceoff
33610   $at_times_p && times >"$at_times_file"
33611 ) 5>&1 2>&1 | eval $at_tee_pipe
33612 at_status=`cat "$at_status_file"`
33613 #AT_STOP_93
33614 #AT_START_94
33615 # 94. sparse02.at:21: extracting sparse file over a pipe
33616 at_setup_line='sparse02.at:21'
33617 at_desc="extracting sparse file over a pipe"
33618 $at_quiet $as_echo_n " 94: $at_desc             "
33619 at_xfail=no
33620       test -f $XFAILFILE && at_xfail=yes
33621 echo "#                             -*- compilation -*-" >> "$at_group_log"
33622 (
33623   $as_echo "94. sparse02.at:21: testing ..."
33624   $at_traceon
33625
33626
33627
33628 # Tar 1.14 - 1.15.1 was unable to extract sparse files to a pipe.
33629 # References: <16896.21739.460782.124775@jik.kamens.brookline.ma.us>
33630 # http://lists.gnu.org/archive/html/bug-tar/2005-02/msg00003.html
33631
33632
33633
33634   { $at_traceoff
33635 $as_echo "$at_srcdir/sparse02.at:28:
33636 mkdir posix
33637 (cd posix
33638 TEST_TAR_FORMAT=posix
33639 export TEST_TAR_FORMAT
33640 TAR_OPTIONS=\"-H posix\"
33641 export TAR_OPTIONS
33642 rm -rf *
33643
33644 genfile --sparse --file sparsefile --block-size 512 0 ABCD 1M EFGH 2000K IJKL || exit 77
33645 tar -c -f archive --sparse sparsefile || exit 1
33646 echo separator
33647
33648 tar xfO archive | cat - > sparsecopy || exit 1
33649 cmp sparsefile sparsecopy
33650 )"
33651 echo sparse02.at:28 >"$at_check_line_file"
33652
33653 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
33654    false; }; then
33655   ( $at_traceon;
33656 mkdir posix
33657 (cd posix
33658 TEST_TAR_FORMAT=posix
33659 export TEST_TAR_FORMAT
33660 TAR_OPTIONS="-H posix"
33661 export TAR_OPTIONS
33662 rm -rf *
33663
33664 genfile --sparse --file sparsefile --block-size 512 0 ABCD 1M EFGH 2000K IJKL || exit 77
33665 tar -c -f archive --sparse sparsefile || exit 1
33666 echo separator
33667
33668 tar xfO archive | cat - > sparsecopy || exit 1
33669 cmp sparsefile sparsecopy
33670 ) ) >"$at_stdout" 2>"$at_stder1"
33671   at_func_filter_trace $?
33672 else
33673   ( :;
33674 mkdir posix
33675 (cd posix
33676 TEST_TAR_FORMAT=posix
33677 export TEST_TAR_FORMAT
33678 TAR_OPTIONS="-H posix"
33679 export TAR_OPTIONS
33680 rm -rf *
33681
33682 genfile --sparse --file sparsefile --block-size 512 0 ABCD 1M EFGH 2000K IJKL || exit 77
33683 tar -c -f archive --sparse sparsefile || exit 1
33684 echo separator
33685
33686 tar xfO archive | cat - > sparsecopy || exit 1
33687 cmp sparsefile sparsecopy
33688 ) ) >"$at_stdout" 2>"$at_stderr"
33689 fi
33690 at_status=$?
33691 at_failed=false
33692 at_func_diff_devnull "$at_stderr" || at_failed=:
33693 echo >>"$at_stdout"; $as_echo "separator
33694 " | \
33695   $at_diff - "$at_stdout" || at_failed=:
33696 at_func_check_status 0 $at_status "$at_srcdir/sparse02.at:28"
33697
33698 $at_failed && at_func_log_failure
33699 $at_traceon; }
33700
33701               { $at_traceoff
33702 $as_echo "$at_srcdir/sparse02.at:28:
33703 mkdir gnu
33704 (cd gnu
33705 TEST_TAR_FORMAT=gnu
33706 export TEST_TAR_FORMAT
33707 TAR_OPTIONS=\"-H gnu\"
33708 export TAR_OPTIONS
33709 rm -rf *
33710
33711 genfile --sparse --file sparsefile --block-size 512 0 ABCD 1M EFGH 2000K IJKL || exit 77
33712 tar -c -f archive --sparse sparsefile || exit 1
33713 echo separator
33714
33715 tar xfO archive | cat - > sparsecopy || exit 1
33716 cmp sparsefile sparsecopy
33717 )"
33718 echo sparse02.at:28 >"$at_check_line_file"
33719
33720 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
33721    false; }; then
33722   ( $at_traceon;
33723 mkdir gnu
33724 (cd gnu
33725 TEST_TAR_FORMAT=gnu
33726 export TEST_TAR_FORMAT
33727 TAR_OPTIONS="-H gnu"
33728 export TAR_OPTIONS
33729 rm -rf *
33730
33731 genfile --sparse --file sparsefile --block-size 512 0 ABCD 1M EFGH 2000K IJKL || exit 77
33732 tar -c -f archive --sparse sparsefile || exit 1
33733 echo separator
33734
33735 tar xfO archive | cat - > sparsecopy || exit 1
33736 cmp sparsefile sparsecopy
33737 ) ) >"$at_stdout" 2>"$at_stder1"
33738   at_func_filter_trace $?
33739 else
33740   ( :;
33741 mkdir gnu
33742 (cd gnu
33743 TEST_TAR_FORMAT=gnu
33744 export TEST_TAR_FORMAT
33745 TAR_OPTIONS="-H gnu"
33746 export TAR_OPTIONS
33747 rm -rf *
33748
33749 genfile --sparse --file sparsefile --block-size 512 0 ABCD 1M EFGH 2000K IJKL || exit 77
33750 tar -c -f archive --sparse sparsefile || exit 1
33751 echo separator
33752
33753 tar xfO archive | cat - > sparsecopy || exit 1
33754 cmp sparsefile sparsecopy
33755 ) ) >"$at_stdout" 2>"$at_stderr"
33756 fi
33757 at_status=$?
33758 at_failed=false
33759 at_func_diff_devnull "$at_stderr" || at_failed=:
33760 echo >>"$at_stdout"; $as_echo "separator
33761 " | \
33762   $at_diff - "$at_stdout" || at_failed=:
33763 at_func_check_status 0 $at_status "$at_srcdir/sparse02.at:28"
33764
33765 $at_failed && at_func_log_failure
33766 $at_traceon; }
33767
33768               { $at_traceoff
33769 $as_echo "$at_srcdir/sparse02.at:28:
33770 mkdir oldgnu
33771 (cd oldgnu
33772 TEST_TAR_FORMAT=oldgnu
33773 export TEST_TAR_FORMAT
33774 TAR_OPTIONS=\"-H oldgnu\"
33775 export TAR_OPTIONS
33776 rm -rf *
33777
33778 genfile --sparse --file sparsefile --block-size 512 0 ABCD 1M EFGH 2000K IJKL || exit 77
33779 tar -c -f archive --sparse sparsefile || exit 1
33780 echo separator
33781
33782 tar xfO archive | cat - > sparsecopy || exit 1
33783 cmp sparsefile sparsecopy
33784 )"
33785 echo sparse02.at:28 >"$at_check_line_file"
33786
33787 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
33788    false; }; then
33789   ( $at_traceon;
33790 mkdir oldgnu
33791 (cd oldgnu
33792 TEST_TAR_FORMAT=oldgnu
33793 export TEST_TAR_FORMAT
33794 TAR_OPTIONS="-H oldgnu"
33795 export TAR_OPTIONS
33796 rm -rf *
33797
33798 genfile --sparse --file sparsefile --block-size 512 0 ABCD 1M EFGH 2000K IJKL || exit 77
33799 tar -c -f archive --sparse sparsefile || exit 1
33800 echo separator
33801
33802 tar xfO archive | cat - > sparsecopy || exit 1
33803 cmp sparsefile sparsecopy
33804 ) ) >"$at_stdout" 2>"$at_stder1"
33805   at_func_filter_trace $?
33806 else
33807   ( :;
33808 mkdir oldgnu
33809 (cd oldgnu
33810 TEST_TAR_FORMAT=oldgnu
33811 export TEST_TAR_FORMAT
33812 TAR_OPTIONS="-H oldgnu"
33813 export TAR_OPTIONS
33814 rm -rf *
33815
33816 genfile --sparse --file sparsefile --block-size 512 0 ABCD 1M EFGH 2000K IJKL || exit 77
33817 tar -c -f archive --sparse sparsefile || exit 1
33818 echo separator
33819
33820 tar xfO archive | cat - > sparsecopy || exit 1
33821 cmp sparsefile sparsecopy
33822 ) ) >"$at_stdout" 2>"$at_stderr"
33823 fi
33824 at_status=$?
33825 at_failed=false
33826 at_func_diff_devnull "$at_stderr" || at_failed=:
33827 echo >>"$at_stdout"; $as_echo "separator
33828 " | \
33829   $at_diff - "$at_stdout" || at_failed=:
33830 at_func_check_status 0 $at_status "$at_srcdir/sparse02.at:28"
33831
33832 $at_failed && at_func_log_failure
33833 $at_traceon; }
33834
33835
33836
33837
33838   $at_traceoff
33839   $at_times_p && times >"$at_times_file"
33840 ) 5>&1 2>&1 | eval $at_tee_pipe
33841 at_status=`cat "$at_status_file"`
33842 #AT_STOP_94
33843 #AT_START_95
33844 # 95. sparse03.at:21: storing sparse files > 8G
33845 at_setup_line='sparse03.at:21'
33846 at_desc="storing sparse files > 8G"
33847 $at_quiet $as_echo_n " 95: $at_desc                      "
33848 at_xfail=no
33849       test -f $XFAILFILE && at_xfail=yes
33850 echo "#                             -*- compilation -*-" >> "$at_group_log"
33851 (
33852   $as_echo "95. sparse03.at:21: testing ..."
33853   $at_traceon
33854
33855
33856
33857 # Tar 1.15.1 incorrectly computed sparse member size if the extended
33858 # PAX header contained size keyword.
33859 # References: <87vf46nb36.fsf@penguin.cs.ucla.edu>
33860 # http://lists.gnu.org/archive/html/bug-tar/2005-06/msg00040.html
33861
33862
33863
33864   { $at_traceoff
33865 $as_echo "$at_srcdir/sparse03.at:29:
33866 mkdir posix
33867 (cd posix
33868 TEST_TAR_FORMAT=posix
33869 export TEST_TAR_FORMAT
33870 TAR_OPTIONS=\"-H posix\"
33871 export TAR_OPTIONS
33872 rm -rf *
33873
33874 genfile --length 1000 --file begin
33875 genfile --length 1000 --file end
33876 genfile --sparse --file sparsefile --block-size 512 8G A || exit 77
33877 tar -c -f archive --sparse begin sparsefile end || exit 1
33878 echo separator
33879
33880 tar tfv archive
33881 echo separator
33882 mkdir directory
33883 tar Cxf directory archive
33884 genfile --stat=name,size sparsefile
33885 cmp sparsefile directory/sparsefile
33886 )"
33887 echo sparse03.at:29 >"$at_check_line_file"
33888
33889 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
33890    false; }; then
33891   ( $at_traceon;
33892 mkdir posix
33893 (cd posix
33894 TEST_TAR_FORMAT=posix
33895 export TEST_TAR_FORMAT
33896 TAR_OPTIONS="-H posix"
33897 export TAR_OPTIONS
33898 rm -rf *
33899
33900 genfile --length 1000 --file begin
33901 genfile --length 1000 --file end
33902 genfile --sparse --file sparsefile --block-size 512 8G A || exit 77
33903 tar -c -f archive --sparse begin sparsefile end || exit 1
33904 echo separator
33905
33906 tar tfv archive
33907 echo separator
33908 mkdir directory
33909 tar Cxf directory archive
33910 genfile --stat=name,size sparsefile
33911 cmp sparsefile directory/sparsefile
33912 ) ) >"$at_stdout" 2>"$at_stder1"
33913   at_func_filter_trace $?
33914 else
33915   ( :;
33916 mkdir posix
33917 (cd posix
33918 TEST_TAR_FORMAT=posix
33919 export TEST_TAR_FORMAT
33920 TAR_OPTIONS="-H posix"
33921 export TAR_OPTIONS
33922 rm -rf *
33923
33924 genfile --length 1000 --file begin
33925 genfile --length 1000 --file end
33926 genfile --sparse --file sparsefile --block-size 512 8G A || exit 77
33927 tar -c -f archive --sparse begin sparsefile end || exit 1
33928 echo separator
33929
33930 tar tfv archive
33931 echo separator
33932 mkdir directory
33933 tar Cxf directory archive
33934 genfile --stat=name,size sparsefile
33935 cmp sparsefile directory/sparsefile
33936 ) ) >"$at_stdout" 2>"$at_stderr"
33937 fi
33938 at_status=$?
33939 at_failed=false
33940 at_func_diff_devnull "$at_stderr" || at_failed=:
33941 echo stdout:; tee stdout <"$at_stdout"
33942 at_func_check_status 0 $at_status "$at_srcdir/sparse03.at:29"
33943
33944 $at_failed && at_func_log_failure
33945 $at_traceon; }
33946
33947
33948
33949
33950
33951 cat >stdout.re <<'_ATEOF'
33952 separator
33953 -rw-r--r-- ^ ^ *  *1000 0-90-90-90-9-0-90-9-0-90-9 0-90-9:0-90-9 begin
33954 -rw-r--r-- ^ ^ *  *8589935104 0-90-90-90-9-0-90-9-0-90-9 0-90-9:0-90-9 sparsefile
33955 -rw-r--r-- ^ ^ *  *1000 0-90-90-90-9-0-90-9-0-90-9 0-90-9:0-90-9 end
33956 separator
33957 sparsefile 8589935104
33958 _ATEOF
33959
33960 awk '{print NR " " $0}' stdout > $$.1
33961 awk '{print NR " " $0}' stdout.re | join - $$.1 |
33962 while read NUM RE LINE
33963 do
33964   echo "$LINE" | grep -- "$RE" >/dev/null || exit 1
33965 done
33966
33967
33968   $at_traceoff
33969   $at_times_p && times >"$at_times_file"
33970 ) 5>&1 2>&1 | eval $at_tee_pipe
33971 at_status=`cat "$at_status_file"`
33972 #AT_STOP_95
33973 #AT_START_96
33974 # 96. sparse04.at:21: storing long sparse file names
33975 at_setup_line='sparse04.at:21'
33976 at_desc="storing long sparse file names"
33977 $at_quiet $as_echo_n " 96: $at_desc                 "
33978 at_xfail=no
33979       test -f $XFAILFILE && at_xfail=yes
33980 echo "#                             -*- compilation -*-" >> "$at_group_log"
33981 (
33982   $as_echo "96. sparse04.at:21: testing ..."
33983   $at_traceon
33984
33985
33986
33987 # Description: Tar versions from 1.15.92 to 1.25 would incorrectly
33988 # store sparse file names longer than 100 characters in pax mode.
33989 # Namely, the `path' keyword of the produced PAX header would contain the
33990 # crafted name of the header itself, instead of that of the file.
33991 # Reported by: Kamil Dudka <kdudka@redhat.com>
33992 # References: <201011250026.44908.kdudka@redhat.com>,
33993 #             http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00099.html
33994
33995
33996
33997
33998
33999   { $at_traceoff
34000 $as_echo "$at_srcdir/sparse04.at:35:
34001 mkdir pax
34002 (cd pax
34003 TEST_TAR_FORMAT=pax
34004 export TEST_TAR_FORMAT
34005 TAR_OPTIONS=\"-H pax\"
34006 export TAR_OPTIONS
34007 rm -rf *
34008
34009 genfile --sparse --file 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960 --block-size 512 8M A || exit 77
34010 tar -c --sparse --posix 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960 | tar t
34011 )"
34012 echo sparse04.at:35 >"$at_check_line_file"
34013
34014 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
34015    false; }; then
34016   ( $at_traceon;
34017 mkdir pax
34018 (cd pax
34019 TEST_TAR_FORMAT=pax
34020 export TEST_TAR_FORMAT
34021 TAR_OPTIONS="-H pax"
34022 export TAR_OPTIONS
34023 rm -rf *
34024
34025 genfile --sparse --file 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960 --block-size 512 8M A || exit 77
34026 tar -c --sparse --posix 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960 | tar t
34027 ) ) >"$at_stdout" 2>"$at_stder1"
34028   at_func_filter_trace $?
34029 else
34030   ( :;
34031 mkdir pax
34032 (cd pax
34033 TEST_TAR_FORMAT=pax
34034 export TEST_TAR_FORMAT
34035 TAR_OPTIONS="-H pax"
34036 export TAR_OPTIONS
34037 rm -rf *
34038
34039 genfile --sparse --file 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960 --block-size 512 8M A || exit 77
34040 tar -c --sparse --posix 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960 | tar t
34041 ) ) >"$at_stdout" 2>"$at_stderr"
34042 fi
34043 at_status=$?
34044 at_failed=false
34045 at_func_diff_devnull "$at_stderr" || at_failed=:
34046 echo >>"$at_stdout"; $as_echo "123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
34047 " | \
34048   $at_diff - "$at_stdout" || at_failed=:
34049 at_func_check_status 0 $at_status "$at_srcdir/sparse04.at:35"
34050
34051 $at_failed && at_func_log_failure
34052 $at_traceon; }
34053
34054
34055
34056
34057   $at_traceoff
34058   $at_times_p && times >"$at_times_file"
34059 ) 5>&1 2>&1 | eval $at_tee_pipe
34060 at_status=`cat "$at_status_file"`
34061 #AT_STOP_96
34062 #AT_START_97
34063 # 97. sparsemv.at:21: sparse files in MV archives
34064 at_setup_line='sparsemv.at:21'
34065 at_desc="sparse files in MV archives"
34066 $at_quiet $as_echo_n " 97: $at_desc                    "
34067 at_xfail=no
34068       test -f $XFAILFILE && at_xfail=yes
34069 echo "#                             -*- compilation -*-" >> "$at_group_log"
34070 (
34071   $as_echo "97. sparsemv.at:21: testing ..."
34072   $at_traceon
34073
34074
34075
34076 # Check if sparse files are correctly split between GNU multi-volume
34077 # archives.
34078 # There are two cases: the file can be split within an empty (null) block,
34079 # or within a data block. Since null blocks are not archived, the first
34080 # case means the file is split between two consecutive data blocks.
34081 #
34082
34083
34084
34085   { $at_traceoff
34086 $as_echo "$at_srcdir/sparsemv.at:31:
34087 mkdir gnu
34088 (cd gnu
34089 TEST_TAR_FORMAT=gnu
34090 export TEST_TAR_FORMAT
34091 TAR_OPTIONS=\"-H gnu\"
34092 export TAR_OPTIONS
34093 rm -rf *
34094
34095 exec <&-
34096 genfile --sparse --file sparsefile 0 ABCDEFGHIJK 1M ABCDEFGHI || exit 77
34097 echo \"Pass 1: Split between data blocks\"
34098 echo \"Create archive\"
34099 tar --sparse -c --record-size=512 -M -L6 -f arc.1 -f arc.2 sparsefile || exit 1
34100 echo \"Test archive\"
34101 tar --record-size=512 -t -M -f arc.1 -f arc.2
34102 echo \"Compare archive\"
34103 tar --record-size=512 -d -M -f arc.1 -f arc.2
34104
34105 echo \"Pass 2: Split within a data block\"
34106 genfile --sparse --file sparsefile 0 ABCDEFGHIJ 1M ABCDEFGHI || exit 77
34107 echo \"Create archive\"
34108 tar --sparse -c --record-size=512 -M -L6 -f arc.1 -f arc.2 sparsefile || exit 1
34109 echo \"Test archive\"
34110 tar --record-size=512 -t -M -f arc.1 -f arc.2
34111 echo \"Compare archive\"
34112 tar --record-size=512 -d -M -f arc.1 -f arc.2
34113 )"
34114 echo sparsemv.at:31 >"$at_check_line_file"
34115
34116 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
34117    false; }; then
34118   ( $at_traceon;
34119 mkdir gnu
34120 (cd gnu
34121 TEST_TAR_FORMAT=gnu
34122 export TEST_TAR_FORMAT
34123 TAR_OPTIONS="-H gnu"
34124 export TAR_OPTIONS
34125 rm -rf *
34126
34127 exec <&-
34128 genfile --sparse --file sparsefile 0 ABCDEFGHIJK 1M ABCDEFGHI || exit 77
34129 echo "Pass 1: Split between data blocks"
34130 echo "Create archive"
34131 tar --sparse -c --record-size=512 -M -L6 -f arc.1 -f arc.2 sparsefile || exit 1
34132 echo "Test archive"
34133 tar --record-size=512 -t -M -f arc.1 -f arc.2
34134 echo "Compare archive"
34135 tar --record-size=512 -d -M -f arc.1 -f arc.2
34136
34137 echo "Pass 2: Split within a data block"
34138 genfile --sparse --file sparsefile 0 ABCDEFGHIJ 1M ABCDEFGHI || exit 77
34139 echo "Create archive"
34140 tar --sparse -c --record-size=512 -M -L6 -f arc.1 -f arc.2 sparsefile || exit 1
34141 echo "Test archive"
34142 tar --record-size=512 -t -M -f arc.1 -f arc.2
34143 echo "Compare archive"
34144 tar --record-size=512 -d -M -f arc.1 -f arc.2
34145 ) ) >"$at_stdout" 2>"$at_stder1"
34146   at_func_filter_trace $?
34147 else
34148   ( :;
34149 mkdir gnu
34150 (cd gnu
34151 TEST_TAR_FORMAT=gnu
34152 export TEST_TAR_FORMAT
34153 TAR_OPTIONS="-H gnu"
34154 export TAR_OPTIONS
34155 rm -rf *
34156
34157 exec <&-
34158 genfile --sparse --file sparsefile 0 ABCDEFGHIJK 1M ABCDEFGHI || exit 77
34159 echo "Pass 1: Split between data blocks"
34160 echo "Create archive"
34161 tar --sparse -c --record-size=512 -M -L6 -f arc.1 -f arc.2 sparsefile || exit 1
34162 echo "Test archive"
34163 tar --record-size=512 -t -M -f arc.1 -f arc.2
34164 echo "Compare archive"
34165 tar --record-size=512 -d -M -f arc.1 -f arc.2
34166
34167 echo "Pass 2: Split within a data block"
34168 genfile --sparse --file sparsefile 0 ABCDEFGHIJ 1M ABCDEFGHI || exit 77
34169 echo "Create archive"
34170 tar --sparse -c --record-size=512 -M -L6 -f arc.1 -f arc.2 sparsefile || exit 1
34171 echo "Test archive"
34172 tar --record-size=512 -t -M -f arc.1 -f arc.2
34173 echo "Compare archive"
34174 tar --record-size=512 -d -M -f arc.1 -f arc.2
34175 ) ) >"$at_stdout" 2>"$at_stderr"
34176 fi
34177 at_status=$?
34178 at_failed=false
34179 at_func_diff_devnull "$at_stderr" || at_failed=:
34180 echo >>"$at_stdout"; $as_echo "Pass 1: Split between data blocks
34181 Create archive
34182 Test archive
34183 sparsefile
34184 Compare archive
34185 Pass 2: Split within a data block
34186 Create archive
34187 Test archive
34188 sparsefile
34189 Compare archive
34190 " | \
34191   $at_diff - "$at_stdout" || at_failed=:
34192 at_func_check_status 0 $at_status "$at_srcdir/sparsemv.at:31"
34193
34194 $at_failed && at_func_log_failure
34195 $at_traceon; }
34196
34197               { $at_traceoff
34198 $as_echo "$at_srcdir/sparsemv.at:31:
34199 mkdir oldgnu
34200 (cd oldgnu
34201 TEST_TAR_FORMAT=oldgnu
34202 export TEST_TAR_FORMAT
34203 TAR_OPTIONS=\"-H oldgnu\"
34204 export TAR_OPTIONS
34205 rm -rf *
34206
34207 exec <&-
34208 genfile --sparse --file sparsefile 0 ABCDEFGHIJK 1M ABCDEFGHI || exit 77
34209 echo \"Pass 1: Split between data blocks\"
34210 echo \"Create archive\"
34211 tar --sparse -c --record-size=512 -M -L6 -f arc.1 -f arc.2 sparsefile || exit 1
34212 echo \"Test archive\"
34213 tar --record-size=512 -t -M -f arc.1 -f arc.2
34214 echo \"Compare archive\"
34215 tar --record-size=512 -d -M -f arc.1 -f arc.2
34216
34217 echo \"Pass 2: Split within a data block\"
34218 genfile --sparse --file sparsefile 0 ABCDEFGHIJ 1M ABCDEFGHI || exit 77
34219 echo \"Create archive\"
34220 tar --sparse -c --record-size=512 -M -L6 -f arc.1 -f arc.2 sparsefile || exit 1
34221 echo \"Test archive\"
34222 tar --record-size=512 -t -M -f arc.1 -f arc.2
34223 echo \"Compare archive\"
34224 tar --record-size=512 -d -M -f arc.1 -f arc.2
34225 )"
34226 echo sparsemv.at:31 >"$at_check_line_file"
34227
34228 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
34229    false; }; then
34230   ( $at_traceon;
34231 mkdir oldgnu
34232 (cd oldgnu
34233 TEST_TAR_FORMAT=oldgnu
34234 export TEST_TAR_FORMAT
34235 TAR_OPTIONS="-H oldgnu"
34236 export TAR_OPTIONS
34237 rm -rf *
34238
34239 exec <&-
34240 genfile --sparse --file sparsefile 0 ABCDEFGHIJK 1M ABCDEFGHI || exit 77
34241 echo "Pass 1: Split between data blocks"
34242 echo "Create archive"
34243 tar --sparse -c --record-size=512 -M -L6 -f arc.1 -f arc.2 sparsefile || exit 1
34244 echo "Test archive"
34245 tar --record-size=512 -t -M -f arc.1 -f arc.2
34246 echo "Compare archive"
34247 tar --record-size=512 -d -M -f arc.1 -f arc.2
34248
34249 echo "Pass 2: Split within a data block"
34250 genfile --sparse --file sparsefile 0 ABCDEFGHIJ 1M ABCDEFGHI || exit 77
34251 echo "Create archive"
34252 tar --sparse -c --record-size=512 -M -L6 -f arc.1 -f arc.2 sparsefile || exit 1
34253 echo "Test archive"
34254 tar --record-size=512 -t -M -f arc.1 -f arc.2
34255 echo "Compare archive"
34256 tar --record-size=512 -d -M -f arc.1 -f arc.2
34257 ) ) >"$at_stdout" 2>"$at_stder1"
34258   at_func_filter_trace $?
34259 else
34260   ( :;
34261 mkdir oldgnu
34262 (cd oldgnu
34263 TEST_TAR_FORMAT=oldgnu
34264 export TEST_TAR_FORMAT
34265 TAR_OPTIONS="-H oldgnu"
34266 export TAR_OPTIONS
34267 rm -rf *
34268
34269 exec <&-
34270 genfile --sparse --file sparsefile 0 ABCDEFGHIJK 1M ABCDEFGHI || exit 77
34271 echo "Pass 1: Split between data blocks"
34272 echo "Create archive"
34273 tar --sparse -c --record-size=512 -M -L6 -f arc.1 -f arc.2 sparsefile || exit 1
34274 echo "Test archive"
34275 tar --record-size=512 -t -M -f arc.1 -f arc.2
34276 echo "Compare archive"
34277 tar --record-size=512 -d -M -f arc.1 -f arc.2
34278
34279 echo "Pass 2: Split within a data block"
34280 genfile --sparse --file sparsefile 0 ABCDEFGHIJ 1M ABCDEFGHI || exit 77
34281 echo "Create archive"
34282 tar --sparse -c --record-size=512 -M -L6 -f arc.1 -f arc.2 sparsefile || exit 1
34283 echo "Test archive"
34284 tar --record-size=512 -t -M -f arc.1 -f arc.2
34285 echo "Compare archive"
34286 tar --record-size=512 -d -M -f arc.1 -f arc.2
34287 ) ) >"$at_stdout" 2>"$at_stderr"
34288 fi
34289 at_status=$?
34290 at_failed=false
34291 at_func_diff_devnull "$at_stderr" || at_failed=:
34292 echo >>"$at_stdout"; $as_echo "Pass 1: Split between data blocks
34293 Create archive
34294 Test archive
34295 sparsefile
34296 Compare archive
34297 Pass 2: Split within a data block
34298 Create archive
34299 Test archive
34300 sparsefile
34301 Compare archive
34302 " | \
34303   $at_diff - "$at_stdout" || at_failed=:
34304 at_func_check_status 0 $at_status "$at_srcdir/sparsemv.at:31"
34305
34306 $at_failed && at_func_log_failure
34307 $at_traceon; }
34308
34309
34310
34311
34312   $at_traceoff
34313   $at_times_p && times >"$at_times_file"
34314 ) 5>&1 2>&1 | eval $at_tee_pipe
34315 at_status=`cat "$at_status_file"`
34316 #AT_STOP_97
34317 #AT_START_98
34318 # 98. spmvp00.at:21: sparse files in PAX MV archives, v.0.0
34319 at_setup_line='spmvp00.at:21'
34320 at_desc="sparse files in PAX MV archives, v.0.0"
34321 $at_quiet $as_echo_n " 98: $at_desc         "
34322 at_xfail=no
34323       test -f $XFAILFILE && at_xfail=yes
34324 echo "#                             -*- compilation -*-" >> "$at_group_log"
34325 (
34326   $as_echo "98. spmvp00.at:21: testing ..."
34327   $at_traceon
34328
34329
34330
34331
34332
34333
34334   { $at_traceoff
34335 $as_echo "$at_srcdir/spmvp00.at:24:
34336 mkdir pax
34337 (cd pax
34338 TEST_TAR_FORMAT=pax
34339 export TEST_TAR_FORMAT
34340 TAR_OPTIONS=\"-H pax\"
34341 export TAR_OPTIONS
34342 rm -rf *
34343
34344 exec <&-
34345 genfile --sparse --file sparsefile 0 ABCDEFGHI 1M ABCDEFGHI || exit 77
34346 echo \"Pass 1: Split between data blocks\"
34347 echo \"Create archive\"
34348 tar --sparse --sparse-version=0.0 -c --record-size=512 -M -L6 -f arc.1 -f arc.2 -f arc.3 sparsefile
34349 echo \"Test archive\"
34350 tar -t -M -f arc.1 -f arc.2 -f arc.3
34351 echo \"Compare archive\"
34352 tar -d -M -f arc.1 -f arc.2 -f arc.3
34353
34354 echo \"Pass 2: Split within a data block\"
34355 genfile --sparse --file sparsefile 0 ABCDEFGH 1M ABCDEFGHI || exit 77
34356 echo \"Create archive\"
34357 tar --sparse --sparse-version=0.0 -c --record-size=512 -M -L6 -f arc.1 -f arc.2 -f arc.3 sparsefile
34358 echo \"Test archive\"
34359 tar -t -M -f arc.1 -f arc.2 -f arc.3
34360 echo \"Compare archive\"
34361 tar -d -M -f arc.1 -f arc.2 -f arc.3
34362 )"
34363 echo spmvp00.at:24 >"$at_check_line_file"
34364
34365 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
34366    false; }; then
34367   ( $at_traceon;
34368 mkdir pax
34369 (cd pax
34370 TEST_TAR_FORMAT=pax
34371 export TEST_TAR_FORMAT
34372 TAR_OPTIONS="-H pax"
34373 export TAR_OPTIONS
34374 rm -rf *
34375
34376 exec <&-
34377 genfile --sparse --file sparsefile 0 ABCDEFGHI 1M ABCDEFGHI || exit 77
34378 echo "Pass 1: Split between data blocks"
34379 echo "Create archive"
34380 tar --sparse --sparse-version=0.0 -c --record-size=512 -M -L6 -f arc.1 -f arc.2 -f arc.3 sparsefile
34381 echo "Test archive"
34382 tar -t -M -f arc.1 -f arc.2 -f arc.3
34383 echo "Compare archive"
34384 tar -d -M -f arc.1 -f arc.2 -f arc.3
34385
34386 echo "Pass 2: Split within a data block"
34387 genfile --sparse --file sparsefile 0 ABCDEFGH 1M ABCDEFGHI || exit 77
34388 echo "Create archive"
34389 tar --sparse --sparse-version=0.0 -c --record-size=512 -M -L6 -f arc.1 -f arc.2 -f arc.3 sparsefile
34390 echo "Test archive"
34391 tar -t -M -f arc.1 -f arc.2 -f arc.3
34392 echo "Compare archive"
34393 tar -d -M -f arc.1 -f arc.2 -f arc.3
34394 ) ) >"$at_stdout" 2>"$at_stder1"
34395   at_func_filter_trace $?
34396 else
34397   ( :;
34398 mkdir pax
34399 (cd pax
34400 TEST_TAR_FORMAT=pax
34401 export TEST_TAR_FORMAT
34402 TAR_OPTIONS="-H pax"
34403 export TAR_OPTIONS
34404 rm -rf *
34405
34406 exec <&-
34407 genfile --sparse --file sparsefile 0 ABCDEFGHI 1M ABCDEFGHI || exit 77
34408 echo "Pass 1: Split between data blocks"
34409 echo "Create archive"
34410 tar --sparse --sparse-version=0.0 -c --record-size=512 -M -L6 -f arc.1 -f arc.2 -f arc.3 sparsefile
34411 echo "Test archive"
34412 tar -t -M -f arc.1 -f arc.2 -f arc.3
34413 echo "Compare archive"
34414 tar -d -M -f arc.1 -f arc.2 -f arc.3
34415
34416 echo "Pass 2: Split within a data block"
34417 genfile --sparse --file sparsefile 0 ABCDEFGH 1M ABCDEFGHI || exit 77
34418 echo "Create archive"
34419 tar --sparse --sparse-version=0.0 -c --record-size=512 -M -L6 -f arc.1 -f arc.2 -f arc.3 sparsefile
34420 echo "Test archive"
34421 tar -t -M -f arc.1 -f arc.2 -f arc.3
34422 echo "Compare archive"
34423 tar -d -M -f arc.1 -f arc.2 -f arc.3
34424 ) ) >"$at_stdout" 2>"$at_stderr"
34425 fi
34426 at_status=$?
34427 at_failed=false
34428 at_func_diff_devnull "$at_stderr" || at_failed=:
34429 echo >>"$at_stdout"; $as_echo "Pass 1: Split between data blocks
34430 Create archive
34431 Test archive
34432 sparsefile
34433 Compare archive
34434 Pass 2: Split within a data block
34435 Create archive
34436 Test archive
34437 sparsefile
34438 Compare archive
34439 " | \
34440   $at_diff - "$at_stdout" || at_failed=:
34441 at_func_check_status 0 $at_status "$at_srcdir/spmvp00.at:24"
34442
34443 $at_failed && at_func_log_failure
34444 $at_traceon; }
34445
34446
34447
34448
34449   $at_traceoff
34450   $at_times_p && times >"$at_times_file"
34451 ) 5>&1 2>&1 | eval $at_tee_pipe
34452 at_status=`cat "$at_status_file"`
34453 #AT_STOP_98
34454 #AT_START_99
34455 # 99. spmvp01.at:21: sparse files in PAX MV archives, v.0.1
34456 at_setup_line='spmvp01.at:21'
34457 at_desc="sparse files in PAX MV archives, v.0.1"
34458 $at_quiet $as_echo_n " 99: $at_desc         "
34459 at_xfail=no
34460       test -f $XFAILFILE && at_xfail=yes
34461 echo "#                             -*- compilation -*-" >> "$at_group_log"
34462 (
34463   $as_echo "99. spmvp01.at:21: testing ..."
34464   $at_traceon
34465
34466
34467
34468
34469
34470
34471   { $at_traceoff
34472 $as_echo "$at_srcdir/spmvp01.at:24:
34473 mkdir pax
34474 (cd pax
34475 TEST_TAR_FORMAT=pax
34476 export TEST_TAR_FORMAT
34477 TAR_OPTIONS=\"-H pax\"
34478 export TAR_OPTIONS
34479 rm -rf *
34480
34481 exec <&-
34482 genfile --sparse --file sparsefile 0 ABCDEFGHIJK 1M ABCDEFGHI || exit 77
34483 echo \"Pass 1: Split between data blocks\"
34484 echo \"Create archive\"
34485 tar --sparse --sparse-version=0.1 -c --record-size=512 -M -L6 -f arc.1 -f arc.2 -f arc.3 sparsefile
34486 echo \"Test archive\"
34487 tar -t -M -f arc.1 -f arc.2 -f arc.3
34488 echo \"Compare archive\"
34489 tar -d -M -f arc.1 -f arc.2 -f arc.3
34490
34491 echo \"Pass 2: Split within a data block\"
34492 genfile --sparse --file sparsefile 0 ABCDEFGHIJ 1M ABCDEFGHI || exit 77
34493 echo \"Create archive\"
34494 tar --sparse --sparse-version=0.1 -c --record-size=512 -M -L6 -f arc.1 -f arc.2 -f arc.3 sparsefile
34495 echo \"Test archive\"
34496 tar -t -M -f arc.1 -f arc.2 -f arc.3
34497 echo \"Compare archive\"
34498 tar -d -M -f arc.1 -f arc.2 -f arc.3
34499 )"
34500 echo spmvp01.at:24 >"$at_check_line_file"
34501
34502 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
34503    false; }; then
34504   ( $at_traceon;
34505 mkdir pax
34506 (cd pax
34507 TEST_TAR_FORMAT=pax
34508 export TEST_TAR_FORMAT
34509 TAR_OPTIONS="-H pax"
34510 export TAR_OPTIONS
34511 rm -rf *
34512
34513 exec <&-
34514 genfile --sparse --file sparsefile 0 ABCDEFGHIJK 1M ABCDEFGHI || exit 77
34515 echo "Pass 1: Split between data blocks"
34516 echo "Create archive"
34517 tar --sparse --sparse-version=0.1 -c --record-size=512 -M -L6 -f arc.1 -f arc.2 -f arc.3 sparsefile
34518 echo "Test archive"
34519 tar -t -M -f arc.1 -f arc.2 -f arc.3
34520 echo "Compare archive"
34521 tar -d -M -f arc.1 -f arc.2 -f arc.3
34522
34523 echo "Pass 2: Split within a data block"
34524 genfile --sparse --file sparsefile 0 ABCDEFGHIJ 1M ABCDEFGHI || exit 77
34525 echo "Create archive"
34526 tar --sparse --sparse-version=0.1 -c --record-size=512 -M -L6 -f arc.1 -f arc.2 -f arc.3 sparsefile
34527 echo "Test archive"
34528 tar -t -M -f arc.1 -f arc.2 -f arc.3
34529 echo "Compare archive"
34530 tar -d -M -f arc.1 -f arc.2 -f arc.3
34531 ) ) >"$at_stdout" 2>"$at_stder1"
34532   at_func_filter_trace $?
34533 else
34534   ( :;
34535 mkdir pax
34536 (cd pax
34537 TEST_TAR_FORMAT=pax
34538 export TEST_TAR_FORMAT
34539 TAR_OPTIONS="-H pax"
34540 export TAR_OPTIONS
34541 rm -rf *
34542
34543 exec <&-
34544 genfile --sparse --file sparsefile 0 ABCDEFGHIJK 1M ABCDEFGHI || exit 77
34545 echo "Pass 1: Split between data blocks"
34546 echo "Create archive"
34547 tar --sparse --sparse-version=0.1 -c --record-size=512 -M -L6 -f arc.1 -f arc.2 -f arc.3 sparsefile
34548 echo "Test archive"
34549 tar -t -M -f arc.1 -f arc.2 -f arc.3
34550 echo "Compare archive"
34551 tar -d -M -f arc.1 -f arc.2 -f arc.3
34552
34553 echo "Pass 2: Split within a data block"
34554 genfile --sparse --file sparsefile 0 ABCDEFGHIJ 1M ABCDEFGHI || exit 77
34555 echo "Create archive"
34556 tar --sparse --sparse-version=0.1 -c --record-size=512 -M -L6 -f arc.1 -f arc.2 -f arc.3 sparsefile
34557 echo "Test archive"
34558 tar -t -M -f arc.1 -f arc.2 -f arc.3
34559 echo "Compare archive"
34560 tar -d -M -f arc.1 -f arc.2 -f arc.3
34561 ) ) >"$at_stdout" 2>"$at_stderr"
34562 fi
34563 at_status=$?
34564 at_failed=false
34565 at_func_diff_devnull "$at_stderr" || at_failed=:
34566 echo >>"$at_stdout"; $as_echo "Pass 1: Split between data blocks
34567 Create archive
34568 Test archive
34569 sparsefile
34570 Compare archive
34571 Pass 2: Split within a data block
34572 Create archive
34573 Test archive
34574 sparsefile
34575 Compare archive
34576 " | \
34577   $at_diff - "$at_stdout" || at_failed=:
34578 at_func_check_status 0 $at_status "$at_srcdir/spmvp01.at:24"
34579
34580 $at_failed && at_func_log_failure
34581 $at_traceon; }
34582
34583
34584
34585
34586   $at_traceoff
34587   $at_times_p && times >"$at_times_file"
34588 ) 5>&1 2>&1 | eval $at_tee_pipe
34589 at_status=`cat "$at_status_file"`
34590 #AT_STOP_99
34591 #AT_START_100
34592 # 100. spmvp10.at:21: sparse files in PAX MV archives, v.1.0
34593 at_setup_line='spmvp10.at:21'
34594 at_desc="sparse files in PAX MV archives, v.1.0"
34595 $at_quiet $as_echo_n "100: $at_desc         "
34596 at_xfail=no
34597       test -f $XFAILFILE && at_xfail=yes
34598 echo "#                             -*- compilation -*-" >> "$at_group_log"
34599 (
34600   $as_echo "100. spmvp10.at:21: testing ..."
34601   $at_traceon
34602
34603
34604
34605
34606
34607
34608   { $at_traceoff
34609 $as_echo "$at_srcdir/spmvp10.at:24:
34610 mkdir pax
34611 (cd pax
34612 TEST_TAR_FORMAT=pax
34613 export TEST_TAR_FORMAT
34614 TAR_OPTIONS=\"-H pax\"
34615 export TAR_OPTIONS
34616 rm -rf *
34617
34618 exec <&-
34619 genfile --sparse --file sparsefile 0 ABCDEFGH 1M ABCDEFGHI || exit 77
34620 echo \"Pass 1: Split between data blocks\"
34621 echo \"Create archive\"
34622 tar --sparse --sparse-version=1.0 -c --record-size=512 -M -L6 -f arc.1 -f arc.2 -f arc.3 sparsefile
34623 echo \"Test archive\"
34624 tar -t -M -f arc.1 -f arc.2 -f arc.3
34625 echo \"Compare archive\"
34626 tar -d -M -f arc.1 -f arc.2 -f arc.3
34627
34628 echo \"Pass 2: Split within a data block\"
34629 genfile --sparse --file sparsefile 0 ABCDEFG 1M ABCDEFGHI || exit 77
34630 echo \"Create archive\"
34631 tar --sparse --sparse-version=1.0 -c --record-size=512 -M -L6 -f arc.1 -f arc.2 -f arc.3 sparsefile
34632 echo \"Test archive\"
34633 tar -t -M -f arc.1 -f arc.2 -f arc.3
34634 echo \"Compare archive\"
34635 tar -d -M -f arc.1 -f arc.2 -f arc.3
34636 )"
34637 echo spmvp10.at:24 >"$at_check_line_file"
34638
34639 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
34640    false; }; then
34641   ( $at_traceon;
34642 mkdir pax
34643 (cd pax
34644 TEST_TAR_FORMAT=pax
34645 export TEST_TAR_FORMAT
34646 TAR_OPTIONS="-H pax"
34647 export TAR_OPTIONS
34648 rm -rf *
34649
34650 exec <&-
34651 genfile --sparse --file sparsefile 0 ABCDEFGH 1M ABCDEFGHI || exit 77
34652 echo "Pass 1: Split between data blocks"
34653 echo "Create archive"
34654 tar --sparse --sparse-version=1.0 -c --record-size=512 -M -L6 -f arc.1 -f arc.2 -f arc.3 sparsefile
34655 echo "Test archive"
34656 tar -t -M -f arc.1 -f arc.2 -f arc.3
34657 echo "Compare archive"
34658 tar -d -M -f arc.1 -f arc.2 -f arc.3
34659
34660 echo "Pass 2: Split within a data block"
34661 genfile --sparse --file sparsefile 0 ABCDEFG 1M ABCDEFGHI || exit 77
34662 echo "Create archive"
34663 tar --sparse --sparse-version=1.0 -c --record-size=512 -M -L6 -f arc.1 -f arc.2 -f arc.3 sparsefile
34664 echo "Test archive"
34665 tar -t -M -f arc.1 -f arc.2 -f arc.3
34666 echo "Compare archive"
34667 tar -d -M -f arc.1 -f arc.2 -f arc.3
34668 ) ) >"$at_stdout" 2>"$at_stder1"
34669   at_func_filter_trace $?
34670 else
34671   ( :;
34672 mkdir pax
34673 (cd pax
34674 TEST_TAR_FORMAT=pax
34675 export TEST_TAR_FORMAT
34676 TAR_OPTIONS="-H pax"
34677 export TAR_OPTIONS
34678 rm -rf *
34679
34680 exec <&-
34681 genfile --sparse --file sparsefile 0 ABCDEFGH 1M ABCDEFGHI || exit 77
34682 echo "Pass 1: Split between data blocks"
34683 echo "Create archive"
34684 tar --sparse --sparse-version=1.0 -c --record-size=512 -M -L6 -f arc.1 -f arc.2 -f arc.3 sparsefile
34685 echo "Test archive"
34686 tar -t -M -f arc.1 -f arc.2 -f arc.3
34687 echo "Compare archive"
34688 tar -d -M -f arc.1 -f arc.2 -f arc.3
34689
34690 echo "Pass 2: Split within a data block"
34691 genfile --sparse --file sparsefile 0 ABCDEFG 1M ABCDEFGHI || exit 77
34692 echo "Create archive"
34693 tar --sparse --sparse-version=1.0 -c --record-size=512 -M -L6 -f arc.1 -f arc.2 -f arc.3 sparsefile
34694 echo "Test archive"
34695 tar -t -M -f arc.1 -f arc.2 -f arc.3
34696 echo "Compare archive"
34697 tar -d -M -f arc.1 -f arc.2 -f arc.3
34698 ) ) >"$at_stdout" 2>"$at_stderr"
34699 fi
34700 at_status=$?
34701 at_failed=false
34702 at_func_diff_devnull "$at_stderr" || at_failed=:
34703 echo >>"$at_stdout"; $as_echo "Pass 1: Split between data blocks
34704 Create archive
34705 Test archive
34706 sparsefile
34707 Compare archive
34708 Pass 2: Split within a data block
34709 Create archive
34710 Test archive
34711 sparsefile
34712 Compare archive
34713 " | \
34714   $at_diff - "$at_stdout" || at_failed=:
34715 at_func_check_status 0 $at_status "$at_srcdir/spmvp10.at:24"
34716
34717 $at_failed && at_func_log_failure
34718 $at_traceon; }
34719
34720
34721
34722
34723   $at_traceoff
34724   $at_times_p && times >"$at_times_file"
34725 ) 5>&1 2>&1 | eval $at_tee_pipe
34726 at_status=`cat "$at_status_file"`
34727 #AT_STOP_100
34728 #AT_START_101
34729 # 101. update.at:28: update unchanged directories
34730 at_setup_line='update.at:28'
34731 at_desc="update unchanged directories"
34732 $at_quiet $as_echo_n "101: $at_desc                   "
34733 at_xfail=no
34734       test -f $XFAILFILE && at_xfail=yes
34735 echo "#                             -*- compilation -*-" >> "$at_group_log"
34736 (
34737   $as_echo "101. update.at:28: testing ..."
34738   $at_traceon
34739
34740
34741
34742
34743
34744   { $at_traceoff
34745 $as_echo "$at_srcdir/update.at:31:
34746 mkdir v7
34747 (cd v7
34748 TEST_TAR_FORMAT=v7
34749 export TEST_TAR_FORMAT
34750 TAR_OPTIONS=\"-H v7\"
34751 export TAR_OPTIONS
34752 rm -rf *
34753
34754
34755 test -z "`sort < /dev/null 2>&1`" || exit 77
34756
34757 mkdir directory
34758 genfile --length 10240 --pattern zeros --file directory/file1
34759 genfile --length 10240 --pattern default --file directory/file2
34760
34761 tar cf archive directory || exit 1
34762 echo separator
34763 tar uf archive directory || exit 1
34764 echo separator
34765 tar tf archive | sort || exit 1
34766 )"
34767 echo update.at:31 >"$at_check_line_file"
34768
34769 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
34770    false; }; then
34771   ( $at_traceon;
34772 mkdir v7
34773 (cd v7
34774 TEST_TAR_FORMAT=v7
34775 export TEST_TAR_FORMAT
34776 TAR_OPTIONS="-H v7"
34777 export TAR_OPTIONS
34778 rm -rf *
34779
34780
34781 test -z "`sort < /dev/null 2>&1`" || exit 77
34782
34783 mkdir directory
34784 genfile --length 10240 --pattern zeros --file directory/file1
34785 genfile --length 10240 --pattern default --file directory/file2
34786
34787 tar cf archive directory || exit 1
34788 echo separator
34789 tar uf archive directory || exit 1
34790 echo separator
34791 tar tf archive | sort || exit 1
34792 ) ) >"$at_stdout" 2>"$at_stder1"
34793   at_func_filter_trace $?
34794 else
34795   ( :;
34796 mkdir v7
34797 (cd v7
34798 TEST_TAR_FORMAT=v7
34799 export TEST_TAR_FORMAT
34800 TAR_OPTIONS="-H v7"
34801 export TAR_OPTIONS
34802 rm -rf *
34803
34804
34805 test -z "`sort < /dev/null 2>&1`" || exit 77
34806
34807 mkdir directory
34808 genfile --length 10240 --pattern zeros --file directory/file1
34809 genfile --length 10240 --pattern default --file directory/file2
34810
34811 tar cf archive directory || exit 1
34812 echo separator
34813 tar uf archive directory || exit 1
34814 echo separator
34815 tar tf archive | sort || exit 1
34816 ) ) >"$at_stdout" 2>"$at_stderr"
34817 fi
34818 at_status=$?
34819 at_failed=false
34820 at_func_diff_devnull "$at_stderr" || at_failed=:
34821 echo >>"$at_stdout"; $as_echo "separator
34822 separator
34823 directory/
34824 directory/file1
34825 directory/file2
34826 " | \
34827   $at_diff - "$at_stdout" || at_failed=:
34828 at_func_check_status 0 $at_status "$at_srcdir/update.at:31"
34829
34830 $at_failed && at_func_log_failure
34831 $at_traceon; }
34832
34833               { $at_traceoff
34834 $as_echo "$at_srcdir/update.at:31:
34835 mkdir oldgnu
34836 (cd oldgnu
34837 TEST_TAR_FORMAT=oldgnu
34838 export TEST_TAR_FORMAT
34839 TAR_OPTIONS=\"-H oldgnu\"
34840 export TAR_OPTIONS
34841 rm -rf *
34842
34843
34844 test -z "`sort < /dev/null 2>&1`" || exit 77
34845
34846 mkdir directory
34847 genfile --length 10240 --pattern zeros --file directory/file1
34848 genfile --length 10240 --pattern default --file directory/file2
34849
34850 tar cf archive directory || exit 1
34851 echo separator
34852 tar uf archive directory || exit 1
34853 echo separator
34854 tar tf archive | sort || exit 1
34855 )"
34856 echo update.at:31 >"$at_check_line_file"
34857
34858 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
34859    false; }; then
34860   ( $at_traceon;
34861 mkdir oldgnu
34862 (cd oldgnu
34863 TEST_TAR_FORMAT=oldgnu
34864 export TEST_TAR_FORMAT
34865 TAR_OPTIONS="-H oldgnu"
34866 export TAR_OPTIONS
34867 rm -rf *
34868
34869
34870 test -z "`sort < /dev/null 2>&1`" || exit 77
34871
34872 mkdir directory
34873 genfile --length 10240 --pattern zeros --file directory/file1
34874 genfile --length 10240 --pattern default --file directory/file2
34875
34876 tar cf archive directory || exit 1
34877 echo separator
34878 tar uf archive directory || exit 1
34879 echo separator
34880 tar tf archive | sort || exit 1
34881 ) ) >"$at_stdout" 2>"$at_stder1"
34882   at_func_filter_trace $?
34883 else
34884   ( :;
34885 mkdir oldgnu
34886 (cd oldgnu
34887 TEST_TAR_FORMAT=oldgnu
34888 export TEST_TAR_FORMAT
34889 TAR_OPTIONS="-H oldgnu"
34890 export TAR_OPTIONS
34891 rm -rf *
34892
34893
34894 test -z "`sort < /dev/null 2>&1`" || exit 77
34895
34896 mkdir directory
34897 genfile --length 10240 --pattern zeros --file directory/file1
34898 genfile --length 10240 --pattern default --file directory/file2
34899
34900 tar cf archive directory || exit 1
34901 echo separator
34902 tar uf archive directory || exit 1
34903 echo separator
34904 tar tf archive | sort || exit 1
34905 ) ) >"$at_stdout" 2>"$at_stderr"
34906 fi
34907 at_status=$?
34908 at_failed=false
34909 at_func_diff_devnull "$at_stderr" || at_failed=:
34910 echo >>"$at_stdout"; $as_echo "separator
34911 separator
34912 directory/
34913 directory/file1
34914 directory/file2
34915 " | \
34916   $at_diff - "$at_stdout" || at_failed=:
34917 at_func_check_status 0 $at_status "$at_srcdir/update.at:31"
34918
34919 $at_failed && at_func_log_failure
34920 $at_traceon; }
34921
34922               { $at_traceoff
34923 $as_echo "$at_srcdir/update.at:31:
34924 mkdir ustar
34925 (cd ustar
34926 TEST_TAR_FORMAT=ustar
34927 export TEST_TAR_FORMAT
34928 TAR_OPTIONS=\"-H ustar\"
34929 export TAR_OPTIONS
34930 rm -rf *
34931
34932
34933 test -z "`sort < /dev/null 2>&1`" || exit 77
34934
34935 mkdir directory
34936 genfile --length 10240 --pattern zeros --file directory/file1
34937 genfile --length 10240 --pattern default --file directory/file2
34938
34939 tar cf archive directory || exit 1
34940 echo separator
34941 tar uf archive directory || exit 1
34942 echo separator
34943 tar tf archive | sort || exit 1
34944 )"
34945 echo update.at:31 >"$at_check_line_file"
34946
34947 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
34948    false; }; then
34949   ( $at_traceon;
34950 mkdir ustar
34951 (cd ustar
34952 TEST_TAR_FORMAT=ustar
34953 export TEST_TAR_FORMAT
34954 TAR_OPTIONS="-H ustar"
34955 export TAR_OPTIONS
34956 rm -rf *
34957
34958
34959 test -z "`sort < /dev/null 2>&1`" || exit 77
34960
34961 mkdir directory
34962 genfile --length 10240 --pattern zeros --file directory/file1
34963 genfile --length 10240 --pattern default --file directory/file2
34964
34965 tar cf archive directory || exit 1
34966 echo separator
34967 tar uf archive directory || exit 1
34968 echo separator
34969 tar tf archive | sort || exit 1
34970 ) ) >"$at_stdout" 2>"$at_stder1"
34971   at_func_filter_trace $?
34972 else
34973   ( :;
34974 mkdir ustar
34975 (cd ustar
34976 TEST_TAR_FORMAT=ustar
34977 export TEST_TAR_FORMAT
34978 TAR_OPTIONS="-H ustar"
34979 export TAR_OPTIONS
34980 rm -rf *
34981
34982
34983 test -z "`sort < /dev/null 2>&1`" || exit 77
34984
34985 mkdir directory
34986 genfile --length 10240 --pattern zeros --file directory/file1
34987 genfile --length 10240 --pattern default --file directory/file2
34988
34989 tar cf archive directory || exit 1
34990 echo separator
34991 tar uf archive directory || exit 1
34992 echo separator
34993 tar tf archive | sort || exit 1
34994 ) ) >"$at_stdout" 2>"$at_stderr"
34995 fi
34996 at_status=$?
34997 at_failed=false
34998 at_func_diff_devnull "$at_stderr" || at_failed=:
34999 echo >>"$at_stdout"; $as_echo "separator
35000 separator
35001 directory/
35002 directory/file1
35003 directory/file2
35004 " | \
35005   $at_diff - "$at_stdout" || at_failed=:
35006 at_func_check_status 0 $at_status "$at_srcdir/update.at:31"
35007
35008 $at_failed && at_func_log_failure
35009 $at_traceon; }
35010
35011               { $at_traceoff
35012 $as_echo "$at_srcdir/update.at:31:
35013 mkdir posix
35014 (cd posix
35015 TEST_TAR_FORMAT=posix
35016 export TEST_TAR_FORMAT
35017 TAR_OPTIONS=\"-H posix\"
35018 export TAR_OPTIONS
35019 rm -rf *
35020
35021
35022 test -z "`sort < /dev/null 2>&1`" || exit 77
35023
35024 mkdir directory
35025 genfile --length 10240 --pattern zeros --file directory/file1
35026 genfile --length 10240 --pattern default --file directory/file2
35027
35028 tar cf archive directory || exit 1
35029 echo separator
35030 tar uf archive directory || exit 1
35031 echo separator
35032 tar tf archive | sort || exit 1
35033 )"
35034 echo update.at:31 >"$at_check_line_file"
35035
35036 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
35037    false; }; then
35038   ( $at_traceon;
35039 mkdir posix
35040 (cd posix
35041 TEST_TAR_FORMAT=posix
35042 export TEST_TAR_FORMAT
35043 TAR_OPTIONS="-H posix"
35044 export TAR_OPTIONS
35045 rm -rf *
35046
35047
35048 test -z "`sort < /dev/null 2>&1`" || exit 77
35049
35050 mkdir directory
35051 genfile --length 10240 --pattern zeros --file directory/file1
35052 genfile --length 10240 --pattern default --file directory/file2
35053
35054 tar cf archive directory || exit 1
35055 echo separator
35056 tar uf archive directory || exit 1
35057 echo separator
35058 tar tf archive | sort || exit 1
35059 ) ) >"$at_stdout" 2>"$at_stder1"
35060   at_func_filter_trace $?
35061 else
35062   ( :;
35063 mkdir posix
35064 (cd posix
35065 TEST_TAR_FORMAT=posix
35066 export TEST_TAR_FORMAT
35067 TAR_OPTIONS="-H posix"
35068 export TAR_OPTIONS
35069 rm -rf *
35070
35071
35072 test -z "`sort < /dev/null 2>&1`" || exit 77
35073
35074 mkdir directory
35075 genfile --length 10240 --pattern zeros --file directory/file1
35076 genfile --length 10240 --pattern default --file directory/file2
35077
35078 tar cf archive directory || exit 1
35079 echo separator
35080 tar uf archive directory || exit 1
35081 echo separator
35082 tar tf archive | sort || exit 1
35083 ) ) >"$at_stdout" 2>"$at_stderr"
35084 fi
35085 at_status=$?
35086 at_failed=false
35087 at_func_diff_devnull "$at_stderr" || at_failed=:
35088 echo >>"$at_stdout"; $as_echo "separator
35089 separator
35090 directory/
35091 directory/file1
35092 directory/file2
35093 " | \
35094   $at_diff - "$at_stdout" || at_failed=:
35095 at_func_check_status 0 $at_status "$at_srcdir/update.at:31"
35096
35097 $at_failed && at_func_log_failure
35098 $at_traceon; }
35099
35100               { $at_traceoff
35101 $as_echo "$at_srcdir/update.at:31:
35102 mkdir gnu
35103 (cd gnu
35104 TEST_TAR_FORMAT=gnu
35105 export TEST_TAR_FORMAT
35106 TAR_OPTIONS=\"-H gnu\"
35107 export TAR_OPTIONS
35108 rm -rf *
35109
35110
35111 test -z "`sort < /dev/null 2>&1`" || exit 77
35112
35113 mkdir directory
35114 genfile --length 10240 --pattern zeros --file directory/file1
35115 genfile --length 10240 --pattern default --file directory/file2
35116
35117 tar cf archive directory || exit 1
35118 echo separator
35119 tar uf archive directory || exit 1
35120 echo separator
35121 tar tf archive | sort || exit 1
35122 )"
35123 echo update.at:31 >"$at_check_line_file"
35124
35125 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
35126    false; }; then
35127   ( $at_traceon;
35128 mkdir gnu
35129 (cd gnu
35130 TEST_TAR_FORMAT=gnu
35131 export TEST_TAR_FORMAT
35132 TAR_OPTIONS="-H gnu"
35133 export TAR_OPTIONS
35134 rm -rf *
35135
35136
35137 test -z "`sort < /dev/null 2>&1`" || exit 77
35138
35139 mkdir directory
35140 genfile --length 10240 --pattern zeros --file directory/file1
35141 genfile --length 10240 --pattern default --file directory/file2
35142
35143 tar cf archive directory || exit 1
35144 echo separator
35145 tar uf archive directory || exit 1
35146 echo separator
35147 tar tf archive | sort || exit 1
35148 ) ) >"$at_stdout" 2>"$at_stder1"
35149   at_func_filter_trace $?
35150 else
35151   ( :;
35152 mkdir gnu
35153 (cd gnu
35154 TEST_TAR_FORMAT=gnu
35155 export TEST_TAR_FORMAT
35156 TAR_OPTIONS="-H gnu"
35157 export TAR_OPTIONS
35158 rm -rf *
35159
35160
35161 test -z "`sort < /dev/null 2>&1`" || exit 77
35162
35163 mkdir directory
35164 genfile --length 10240 --pattern zeros --file directory/file1
35165 genfile --length 10240 --pattern default --file directory/file2
35166
35167 tar cf archive directory || exit 1
35168 echo separator
35169 tar uf archive directory || exit 1
35170 echo separator
35171 tar tf archive | sort || exit 1
35172 ) ) >"$at_stdout" 2>"$at_stderr"
35173 fi
35174 at_status=$?
35175 at_failed=false
35176 at_func_diff_devnull "$at_stderr" || at_failed=:
35177 echo >>"$at_stdout"; $as_echo "separator
35178 separator
35179 directory/
35180 directory/file1
35181 directory/file2
35182 " | \
35183   $at_diff - "$at_stdout" || at_failed=:
35184 at_func_check_status 0 $at_status "$at_srcdir/update.at:31"
35185
35186 $at_failed && at_func_log_failure
35187 $at_traceon; }
35188
35189
35190
35191
35192   $at_traceoff
35193   $at_times_p && times >"$at_times_file"
35194 ) 5>&1 2>&1 | eval $at_tee_pipe
35195 at_status=`cat "$at_status_file"`
35196 #AT_STOP_101
35197 #AT_START_102
35198 # 102. update01.at:29: update directories
35199 at_setup_line='update01.at:29'
35200 at_desc="update directories"
35201 $at_quiet $as_echo_n "102: $at_desc                             "
35202 at_xfail=no
35203       test -f $XFAILFILE && at_xfail=yes
35204 echo "#                             -*- compilation -*-" >> "$at_group_log"
35205 (
35206   $as_echo "102. update01.at:29: testing ..."
35207   $at_traceon
35208
35209
35210
35211
35212
35213   { $at_traceoff
35214 $as_echo "$at_srcdir/update01.at:32:
35215 mkdir v7
35216 (cd v7
35217 TEST_TAR_FORMAT=v7
35218 export TEST_TAR_FORMAT
35219 TAR_OPTIONS=\"-H v7\"
35220 export TAR_OPTIONS
35221 rm -rf *
35222
35223
35224 test -z "`sort < /dev/null 2>&1`" || exit 77
35225
35226 mkdir a
35227 genfile --file a/b
35228
35229 tar cf arc a
35230
35231 echo \"separator\"
35232
35233 sleep 2
35234 genfile --file a/c
35235
35236 tar ufv arc a
35237 echo \"separator\"
35238 tar tf arc | sort || exit 1
35239 )"
35240 echo update01.at:32 >"$at_check_line_file"
35241
35242 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
35243    false; }; then
35244   ( $at_traceon;
35245 mkdir v7
35246 (cd v7
35247 TEST_TAR_FORMAT=v7
35248 export TEST_TAR_FORMAT
35249 TAR_OPTIONS="-H v7"
35250 export TAR_OPTIONS
35251 rm -rf *
35252
35253
35254 test -z "`sort < /dev/null 2>&1`" || exit 77
35255
35256 mkdir a
35257 genfile --file a/b
35258
35259 tar cf arc a
35260
35261 echo "separator"
35262
35263 sleep 2
35264 genfile --file a/c
35265
35266 tar ufv arc a
35267 echo "separator"
35268 tar tf arc | sort || exit 1
35269 ) ) >"$at_stdout" 2>"$at_stder1"
35270   at_func_filter_trace $?
35271 else
35272   ( :;
35273 mkdir v7
35274 (cd v7
35275 TEST_TAR_FORMAT=v7
35276 export TEST_TAR_FORMAT
35277 TAR_OPTIONS="-H v7"
35278 export TAR_OPTIONS
35279 rm -rf *
35280
35281
35282 test -z "`sort < /dev/null 2>&1`" || exit 77
35283
35284 mkdir a
35285 genfile --file a/b
35286
35287 tar cf arc a
35288
35289 echo "separator"
35290
35291 sleep 2
35292 genfile --file a/c
35293
35294 tar ufv arc a
35295 echo "separator"
35296 tar tf arc | sort || exit 1
35297 ) ) >"$at_stdout" 2>"$at_stderr"
35298 fi
35299 at_status=$?
35300 at_failed=false
35301 at_func_diff_devnull "$at_stderr" || at_failed=:
35302 echo >>"$at_stdout"; $as_echo "separator
35303 a/c
35304 separator
35305 a/
35306 a/b
35307 a/c
35308 " | \
35309   $at_diff - "$at_stdout" || at_failed=:
35310 at_func_check_status 0 $at_status "$at_srcdir/update01.at:32"
35311
35312 $at_failed && at_func_log_failure
35313 $at_traceon; }
35314
35315               { $at_traceoff
35316 $as_echo "$at_srcdir/update01.at:32:
35317 mkdir oldgnu
35318 (cd oldgnu
35319 TEST_TAR_FORMAT=oldgnu
35320 export TEST_TAR_FORMAT
35321 TAR_OPTIONS=\"-H oldgnu\"
35322 export TAR_OPTIONS
35323 rm -rf *
35324
35325
35326 test -z "`sort < /dev/null 2>&1`" || exit 77
35327
35328 mkdir a
35329 genfile --file a/b
35330
35331 tar cf arc a
35332
35333 echo \"separator\"
35334
35335 sleep 2
35336 genfile --file a/c
35337
35338 tar ufv arc a
35339 echo \"separator\"
35340 tar tf arc | sort || exit 1
35341 )"
35342 echo update01.at:32 >"$at_check_line_file"
35343
35344 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
35345    false; }; then
35346   ( $at_traceon;
35347 mkdir oldgnu
35348 (cd oldgnu
35349 TEST_TAR_FORMAT=oldgnu
35350 export TEST_TAR_FORMAT
35351 TAR_OPTIONS="-H oldgnu"
35352 export TAR_OPTIONS
35353 rm -rf *
35354
35355
35356 test -z "`sort < /dev/null 2>&1`" || exit 77
35357
35358 mkdir a
35359 genfile --file a/b
35360
35361 tar cf arc a
35362
35363 echo "separator"
35364
35365 sleep 2
35366 genfile --file a/c
35367
35368 tar ufv arc a
35369 echo "separator"
35370 tar tf arc | sort || exit 1
35371 ) ) >"$at_stdout" 2>"$at_stder1"
35372   at_func_filter_trace $?
35373 else
35374   ( :;
35375 mkdir oldgnu
35376 (cd oldgnu
35377 TEST_TAR_FORMAT=oldgnu
35378 export TEST_TAR_FORMAT
35379 TAR_OPTIONS="-H oldgnu"
35380 export TAR_OPTIONS
35381 rm -rf *
35382
35383
35384 test -z "`sort < /dev/null 2>&1`" || exit 77
35385
35386 mkdir a
35387 genfile --file a/b
35388
35389 tar cf arc a
35390
35391 echo "separator"
35392
35393 sleep 2
35394 genfile --file a/c
35395
35396 tar ufv arc a
35397 echo "separator"
35398 tar tf arc | sort || exit 1
35399 ) ) >"$at_stdout" 2>"$at_stderr"
35400 fi
35401 at_status=$?
35402 at_failed=false
35403 at_func_diff_devnull "$at_stderr" || at_failed=:
35404 echo >>"$at_stdout"; $as_echo "separator
35405 a/c
35406 separator
35407 a/
35408 a/b
35409 a/c
35410 " | \
35411   $at_diff - "$at_stdout" || at_failed=:
35412 at_func_check_status 0 $at_status "$at_srcdir/update01.at:32"
35413
35414 $at_failed && at_func_log_failure
35415 $at_traceon; }
35416
35417               { $at_traceoff
35418 $as_echo "$at_srcdir/update01.at:32:
35419 mkdir ustar
35420 (cd ustar
35421 TEST_TAR_FORMAT=ustar
35422 export TEST_TAR_FORMAT
35423 TAR_OPTIONS=\"-H ustar\"
35424 export TAR_OPTIONS
35425 rm -rf *
35426
35427
35428 test -z "`sort < /dev/null 2>&1`" || exit 77
35429
35430 mkdir a
35431 genfile --file a/b
35432
35433 tar cf arc a
35434
35435 echo \"separator\"
35436
35437 sleep 2
35438 genfile --file a/c
35439
35440 tar ufv arc a
35441 echo \"separator\"
35442 tar tf arc | sort || exit 1
35443 )"
35444 echo update01.at:32 >"$at_check_line_file"
35445
35446 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
35447    false; }; then
35448   ( $at_traceon;
35449 mkdir ustar
35450 (cd ustar
35451 TEST_TAR_FORMAT=ustar
35452 export TEST_TAR_FORMAT
35453 TAR_OPTIONS="-H ustar"
35454 export TAR_OPTIONS
35455 rm -rf *
35456
35457
35458 test -z "`sort < /dev/null 2>&1`" || exit 77
35459
35460 mkdir a
35461 genfile --file a/b
35462
35463 tar cf arc a
35464
35465 echo "separator"
35466
35467 sleep 2
35468 genfile --file a/c
35469
35470 tar ufv arc a
35471 echo "separator"
35472 tar tf arc | sort || exit 1
35473 ) ) >"$at_stdout" 2>"$at_stder1"
35474   at_func_filter_trace $?
35475 else
35476   ( :;
35477 mkdir ustar
35478 (cd ustar
35479 TEST_TAR_FORMAT=ustar
35480 export TEST_TAR_FORMAT
35481 TAR_OPTIONS="-H ustar"
35482 export TAR_OPTIONS
35483 rm -rf *
35484
35485
35486 test -z "`sort < /dev/null 2>&1`" || exit 77
35487
35488 mkdir a
35489 genfile --file a/b
35490
35491 tar cf arc a
35492
35493 echo "separator"
35494
35495 sleep 2
35496 genfile --file a/c
35497
35498 tar ufv arc a
35499 echo "separator"
35500 tar tf arc | sort || exit 1
35501 ) ) >"$at_stdout" 2>"$at_stderr"
35502 fi
35503 at_status=$?
35504 at_failed=false
35505 at_func_diff_devnull "$at_stderr" || at_failed=:
35506 echo >>"$at_stdout"; $as_echo "separator
35507 a/c
35508 separator
35509 a/
35510 a/b
35511 a/c
35512 " | \
35513   $at_diff - "$at_stdout" || at_failed=:
35514 at_func_check_status 0 $at_status "$at_srcdir/update01.at:32"
35515
35516 $at_failed && at_func_log_failure
35517 $at_traceon; }
35518
35519               { $at_traceoff
35520 $as_echo "$at_srcdir/update01.at:32:
35521 mkdir posix
35522 (cd posix
35523 TEST_TAR_FORMAT=posix
35524 export TEST_TAR_FORMAT
35525 TAR_OPTIONS=\"-H posix\"
35526 export TAR_OPTIONS
35527 rm -rf *
35528
35529
35530 test -z "`sort < /dev/null 2>&1`" || exit 77
35531
35532 mkdir a
35533 genfile --file a/b
35534
35535 tar cf arc a
35536
35537 echo \"separator\"
35538
35539 sleep 2
35540 genfile --file a/c
35541
35542 tar ufv arc a
35543 echo \"separator\"
35544 tar tf arc | sort || exit 1
35545 )"
35546 echo update01.at:32 >"$at_check_line_file"
35547
35548 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
35549    false; }; then
35550   ( $at_traceon;
35551 mkdir posix
35552 (cd posix
35553 TEST_TAR_FORMAT=posix
35554 export TEST_TAR_FORMAT
35555 TAR_OPTIONS="-H posix"
35556 export TAR_OPTIONS
35557 rm -rf *
35558
35559
35560 test -z "`sort < /dev/null 2>&1`" || exit 77
35561
35562 mkdir a
35563 genfile --file a/b
35564
35565 tar cf arc a
35566
35567 echo "separator"
35568
35569 sleep 2
35570 genfile --file a/c
35571
35572 tar ufv arc a
35573 echo "separator"
35574 tar tf arc | sort || exit 1
35575 ) ) >"$at_stdout" 2>"$at_stder1"
35576   at_func_filter_trace $?
35577 else
35578   ( :;
35579 mkdir posix
35580 (cd posix
35581 TEST_TAR_FORMAT=posix
35582 export TEST_TAR_FORMAT
35583 TAR_OPTIONS="-H posix"
35584 export TAR_OPTIONS
35585 rm -rf *
35586
35587
35588 test -z "`sort < /dev/null 2>&1`" || exit 77
35589
35590 mkdir a
35591 genfile --file a/b
35592
35593 tar cf arc a
35594
35595 echo "separator"
35596
35597 sleep 2
35598 genfile --file a/c
35599
35600 tar ufv arc a
35601 echo "separator"
35602 tar tf arc | sort || exit 1
35603 ) ) >"$at_stdout" 2>"$at_stderr"
35604 fi
35605 at_status=$?
35606 at_failed=false
35607 at_func_diff_devnull "$at_stderr" || at_failed=:
35608 echo >>"$at_stdout"; $as_echo "separator
35609 a/c
35610 separator
35611 a/
35612 a/b
35613 a/c
35614 " | \
35615   $at_diff - "$at_stdout" || at_failed=:
35616 at_func_check_status 0 $at_status "$at_srcdir/update01.at:32"
35617
35618 $at_failed && at_func_log_failure
35619 $at_traceon; }
35620
35621               { $at_traceoff
35622 $as_echo "$at_srcdir/update01.at:32:
35623 mkdir gnu
35624 (cd gnu
35625 TEST_TAR_FORMAT=gnu
35626 export TEST_TAR_FORMAT
35627 TAR_OPTIONS=\"-H gnu\"
35628 export TAR_OPTIONS
35629 rm -rf *
35630
35631
35632 test -z "`sort < /dev/null 2>&1`" || exit 77
35633
35634 mkdir a
35635 genfile --file a/b
35636
35637 tar cf arc a
35638
35639 echo \"separator\"
35640
35641 sleep 2
35642 genfile --file a/c
35643
35644 tar ufv arc a
35645 echo \"separator\"
35646 tar tf arc | sort || exit 1
35647 )"
35648 echo update01.at:32 >"$at_check_line_file"
35649
35650 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
35651    false; }; then
35652   ( $at_traceon;
35653 mkdir gnu
35654 (cd gnu
35655 TEST_TAR_FORMAT=gnu
35656 export TEST_TAR_FORMAT
35657 TAR_OPTIONS="-H gnu"
35658 export TAR_OPTIONS
35659 rm -rf *
35660
35661
35662 test -z "`sort < /dev/null 2>&1`" || exit 77
35663
35664 mkdir a
35665 genfile --file a/b
35666
35667 tar cf arc a
35668
35669 echo "separator"
35670
35671 sleep 2
35672 genfile --file a/c
35673
35674 tar ufv arc a
35675 echo "separator"
35676 tar tf arc | sort || exit 1
35677 ) ) >"$at_stdout" 2>"$at_stder1"
35678   at_func_filter_trace $?
35679 else
35680   ( :;
35681 mkdir gnu
35682 (cd gnu
35683 TEST_TAR_FORMAT=gnu
35684 export TEST_TAR_FORMAT
35685 TAR_OPTIONS="-H gnu"
35686 export TAR_OPTIONS
35687 rm -rf *
35688
35689
35690 test -z "`sort < /dev/null 2>&1`" || exit 77
35691
35692 mkdir a
35693 genfile --file a/b
35694
35695 tar cf arc a
35696
35697 echo "separator"
35698
35699 sleep 2
35700 genfile --file a/c
35701
35702 tar ufv arc a
35703 echo "separator"
35704 tar tf arc | sort || exit 1
35705 ) ) >"$at_stdout" 2>"$at_stderr"
35706 fi
35707 at_status=$?
35708 at_failed=false
35709 at_func_diff_devnull "$at_stderr" || at_failed=:
35710 echo >>"$at_stdout"; $as_echo "separator
35711 a/c
35712 separator
35713 a/
35714 a/b
35715 a/c
35716 " | \
35717   $at_diff - "$at_stdout" || at_failed=:
35718 at_func_check_status 0 $at_status "$at_srcdir/update01.at:32"
35719
35720 $at_failed && at_func_log_failure
35721 $at_traceon; }
35722
35723
35724
35725
35726   $at_traceoff
35727   $at_times_p && times >"$at_times_file"
35728 ) 5>&1 2>&1 | eval $at_tee_pipe
35729 at_status=`cat "$at_status_file"`
35730 #AT_STOP_102
35731 #AT_START_103
35732 # 103. update02.at:26: update changed files
35733 at_setup_line='update02.at:26'
35734 at_desc="update changed files"
35735 $at_quiet $as_echo_n "103: $at_desc                           "
35736 at_xfail=no
35737       test -f $XFAILFILE && at_xfail=yes
35738 echo "#                             -*- compilation -*-" >> "$at_group_log"
35739 (
35740   $as_echo "103. update02.at:26: testing ..."
35741   $at_traceon
35742
35743
35744
35745
35746
35747   { $at_traceoff
35748 $as_echo "$at_srcdir/update02.at:29:
35749 mkdir v7
35750 (cd v7
35751 TEST_TAR_FORMAT=v7
35752 export TEST_TAR_FORMAT
35753 TAR_OPTIONS=\"-H v7\"
35754 export TAR_OPTIONS
35755 rm -rf *
35756
35757
35758 test -z "`sort < /dev/null 2>&1`" || exit 77
35759
35760 mkdir a
35761 genfile --file a/b
35762
35763 tar cf arc a
35764
35765 echo \"separator\"
35766
35767 sleep 2
35768 touch a/b
35769
35770 tar ufv arc a
35771 echo \"separator\"
35772 tar tf arc | sort || exit 1
35773 )"
35774 echo update02.at:29 >"$at_check_line_file"
35775
35776 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
35777    false; }; then
35778   ( $at_traceon;
35779 mkdir v7
35780 (cd v7
35781 TEST_TAR_FORMAT=v7
35782 export TEST_TAR_FORMAT
35783 TAR_OPTIONS="-H v7"
35784 export TAR_OPTIONS
35785 rm -rf *
35786
35787
35788 test -z "`sort < /dev/null 2>&1`" || exit 77
35789
35790 mkdir a
35791 genfile --file a/b
35792
35793 tar cf arc a
35794
35795 echo "separator"
35796
35797 sleep 2
35798 touch a/b
35799
35800 tar ufv arc a
35801 echo "separator"
35802 tar tf arc | sort || exit 1
35803 ) ) >"$at_stdout" 2>"$at_stder1"
35804   at_func_filter_trace $?
35805 else
35806   ( :;
35807 mkdir v7
35808 (cd v7
35809 TEST_TAR_FORMAT=v7
35810 export TEST_TAR_FORMAT
35811 TAR_OPTIONS="-H v7"
35812 export TAR_OPTIONS
35813 rm -rf *
35814
35815
35816 test -z "`sort < /dev/null 2>&1`" || exit 77
35817
35818 mkdir a
35819 genfile --file a/b
35820
35821 tar cf arc a
35822
35823 echo "separator"
35824
35825 sleep 2
35826 touch a/b
35827
35828 tar ufv arc a
35829 echo "separator"
35830 tar tf arc | sort || exit 1
35831 ) ) >"$at_stdout" 2>"$at_stderr"
35832 fi
35833 at_status=$?
35834 at_failed=false
35835 at_func_diff_devnull "$at_stderr" || at_failed=:
35836 echo >>"$at_stdout"; $as_echo "separator
35837 a/b
35838 separator
35839 a/
35840 a/b
35841 a/b
35842 " | \
35843   $at_diff - "$at_stdout" || at_failed=:
35844 at_func_check_status 0 $at_status "$at_srcdir/update02.at:29"
35845
35846 $at_failed && at_func_log_failure
35847 $at_traceon; }
35848
35849               { $at_traceoff
35850 $as_echo "$at_srcdir/update02.at:29:
35851 mkdir oldgnu
35852 (cd oldgnu
35853 TEST_TAR_FORMAT=oldgnu
35854 export TEST_TAR_FORMAT
35855 TAR_OPTIONS=\"-H oldgnu\"
35856 export TAR_OPTIONS
35857 rm -rf *
35858
35859
35860 test -z "`sort < /dev/null 2>&1`" || exit 77
35861
35862 mkdir a
35863 genfile --file a/b
35864
35865 tar cf arc a
35866
35867 echo \"separator\"
35868
35869 sleep 2
35870 touch a/b
35871
35872 tar ufv arc a
35873 echo \"separator\"
35874 tar tf arc | sort || exit 1
35875 )"
35876 echo update02.at:29 >"$at_check_line_file"
35877
35878 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
35879    false; }; then
35880   ( $at_traceon;
35881 mkdir oldgnu
35882 (cd oldgnu
35883 TEST_TAR_FORMAT=oldgnu
35884 export TEST_TAR_FORMAT
35885 TAR_OPTIONS="-H oldgnu"
35886 export TAR_OPTIONS
35887 rm -rf *
35888
35889
35890 test -z "`sort < /dev/null 2>&1`" || exit 77
35891
35892 mkdir a
35893 genfile --file a/b
35894
35895 tar cf arc a
35896
35897 echo "separator"
35898
35899 sleep 2
35900 touch a/b
35901
35902 tar ufv arc a
35903 echo "separator"
35904 tar tf arc | sort || exit 1
35905 ) ) >"$at_stdout" 2>"$at_stder1"
35906   at_func_filter_trace $?
35907 else
35908   ( :;
35909 mkdir oldgnu
35910 (cd oldgnu
35911 TEST_TAR_FORMAT=oldgnu
35912 export TEST_TAR_FORMAT
35913 TAR_OPTIONS="-H oldgnu"
35914 export TAR_OPTIONS
35915 rm -rf *
35916
35917
35918 test -z "`sort < /dev/null 2>&1`" || exit 77
35919
35920 mkdir a
35921 genfile --file a/b
35922
35923 tar cf arc a
35924
35925 echo "separator"
35926
35927 sleep 2
35928 touch a/b
35929
35930 tar ufv arc a
35931 echo "separator"
35932 tar tf arc | sort || exit 1
35933 ) ) >"$at_stdout" 2>"$at_stderr"
35934 fi
35935 at_status=$?
35936 at_failed=false
35937 at_func_diff_devnull "$at_stderr" || at_failed=:
35938 echo >>"$at_stdout"; $as_echo "separator
35939 a/b
35940 separator
35941 a/
35942 a/b
35943 a/b
35944 " | \
35945   $at_diff - "$at_stdout" || at_failed=:
35946 at_func_check_status 0 $at_status "$at_srcdir/update02.at:29"
35947
35948 $at_failed && at_func_log_failure
35949 $at_traceon; }
35950
35951               { $at_traceoff
35952 $as_echo "$at_srcdir/update02.at:29:
35953 mkdir ustar
35954 (cd ustar
35955 TEST_TAR_FORMAT=ustar
35956 export TEST_TAR_FORMAT
35957 TAR_OPTIONS=\"-H ustar\"
35958 export TAR_OPTIONS
35959 rm -rf *
35960
35961
35962 test -z "`sort < /dev/null 2>&1`" || exit 77
35963
35964 mkdir a
35965 genfile --file a/b
35966
35967 tar cf arc a
35968
35969 echo \"separator\"
35970
35971 sleep 2
35972 touch a/b
35973
35974 tar ufv arc a
35975 echo \"separator\"
35976 tar tf arc | sort || exit 1
35977 )"
35978 echo update02.at:29 >"$at_check_line_file"
35979
35980 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
35981    false; }; then
35982   ( $at_traceon;
35983 mkdir ustar
35984 (cd ustar
35985 TEST_TAR_FORMAT=ustar
35986 export TEST_TAR_FORMAT
35987 TAR_OPTIONS="-H ustar"
35988 export TAR_OPTIONS
35989 rm -rf *
35990
35991
35992 test -z "`sort < /dev/null 2>&1`" || exit 77
35993
35994 mkdir a
35995 genfile --file a/b
35996
35997 tar cf arc a
35998
35999 echo "separator"
36000
36001 sleep 2
36002 touch a/b
36003
36004 tar ufv arc a
36005 echo "separator"
36006 tar tf arc | sort || exit 1
36007 ) ) >"$at_stdout" 2>"$at_stder1"
36008   at_func_filter_trace $?
36009 else
36010   ( :;
36011 mkdir ustar
36012 (cd ustar
36013 TEST_TAR_FORMAT=ustar
36014 export TEST_TAR_FORMAT
36015 TAR_OPTIONS="-H ustar"
36016 export TAR_OPTIONS
36017 rm -rf *
36018
36019
36020 test -z "`sort < /dev/null 2>&1`" || exit 77
36021
36022 mkdir a
36023 genfile --file a/b
36024
36025 tar cf arc a
36026
36027 echo "separator"
36028
36029 sleep 2
36030 touch a/b
36031
36032 tar ufv arc a
36033 echo "separator"
36034 tar tf arc | sort || exit 1
36035 ) ) >"$at_stdout" 2>"$at_stderr"
36036 fi
36037 at_status=$?
36038 at_failed=false
36039 at_func_diff_devnull "$at_stderr" || at_failed=:
36040 echo >>"$at_stdout"; $as_echo "separator
36041 a/b
36042 separator
36043 a/
36044 a/b
36045 a/b
36046 " | \
36047   $at_diff - "$at_stdout" || at_failed=:
36048 at_func_check_status 0 $at_status "$at_srcdir/update02.at:29"
36049
36050 $at_failed && at_func_log_failure
36051 $at_traceon; }
36052
36053               { $at_traceoff
36054 $as_echo "$at_srcdir/update02.at:29:
36055 mkdir posix
36056 (cd posix
36057 TEST_TAR_FORMAT=posix
36058 export TEST_TAR_FORMAT
36059 TAR_OPTIONS=\"-H posix\"
36060 export TAR_OPTIONS
36061 rm -rf *
36062
36063
36064 test -z "`sort < /dev/null 2>&1`" || exit 77
36065
36066 mkdir a
36067 genfile --file a/b
36068
36069 tar cf arc a
36070
36071 echo \"separator\"
36072
36073 sleep 2
36074 touch a/b
36075
36076 tar ufv arc a
36077 echo \"separator\"
36078 tar tf arc | sort || exit 1
36079 )"
36080 echo update02.at:29 >"$at_check_line_file"
36081
36082 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
36083    false; }; then
36084   ( $at_traceon;
36085 mkdir posix
36086 (cd posix
36087 TEST_TAR_FORMAT=posix
36088 export TEST_TAR_FORMAT
36089 TAR_OPTIONS="-H posix"
36090 export TAR_OPTIONS
36091 rm -rf *
36092
36093
36094 test -z "`sort < /dev/null 2>&1`" || exit 77
36095
36096 mkdir a
36097 genfile --file a/b
36098
36099 tar cf arc a
36100
36101 echo "separator"
36102
36103 sleep 2
36104 touch a/b
36105
36106 tar ufv arc a
36107 echo "separator"
36108 tar tf arc | sort || exit 1
36109 ) ) >"$at_stdout" 2>"$at_stder1"
36110   at_func_filter_trace $?
36111 else
36112   ( :;
36113 mkdir posix
36114 (cd posix
36115 TEST_TAR_FORMAT=posix
36116 export TEST_TAR_FORMAT
36117 TAR_OPTIONS="-H posix"
36118 export TAR_OPTIONS
36119 rm -rf *
36120
36121
36122 test -z "`sort < /dev/null 2>&1`" || exit 77
36123
36124 mkdir a
36125 genfile --file a/b
36126
36127 tar cf arc a
36128
36129 echo "separator"
36130
36131 sleep 2
36132 touch a/b
36133
36134 tar ufv arc a
36135 echo "separator"
36136 tar tf arc | sort || exit 1
36137 ) ) >"$at_stdout" 2>"$at_stderr"
36138 fi
36139 at_status=$?
36140 at_failed=false
36141 at_func_diff_devnull "$at_stderr" || at_failed=:
36142 echo >>"$at_stdout"; $as_echo "separator
36143 a/b
36144 separator
36145 a/
36146 a/b
36147 a/b
36148 " | \
36149   $at_diff - "$at_stdout" || at_failed=:
36150 at_func_check_status 0 $at_status "$at_srcdir/update02.at:29"
36151
36152 $at_failed && at_func_log_failure
36153 $at_traceon; }
36154
36155               { $at_traceoff
36156 $as_echo "$at_srcdir/update02.at:29:
36157 mkdir gnu
36158 (cd gnu
36159 TEST_TAR_FORMAT=gnu
36160 export TEST_TAR_FORMAT
36161 TAR_OPTIONS=\"-H gnu\"
36162 export TAR_OPTIONS
36163 rm -rf *
36164
36165
36166 test -z "`sort < /dev/null 2>&1`" || exit 77
36167
36168 mkdir a
36169 genfile --file a/b
36170
36171 tar cf arc a
36172
36173 echo \"separator\"
36174
36175 sleep 2
36176 touch a/b
36177
36178 tar ufv arc a
36179 echo \"separator\"
36180 tar tf arc | sort || exit 1
36181 )"
36182 echo update02.at:29 >"$at_check_line_file"
36183
36184 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
36185    false; }; then
36186   ( $at_traceon;
36187 mkdir gnu
36188 (cd gnu
36189 TEST_TAR_FORMAT=gnu
36190 export TEST_TAR_FORMAT
36191 TAR_OPTIONS="-H gnu"
36192 export TAR_OPTIONS
36193 rm -rf *
36194
36195
36196 test -z "`sort < /dev/null 2>&1`" || exit 77
36197
36198 mkdir a
36199 genfile --file a/b
36200
36201 tar cf arc a
36202
36203 echo "separator"
36204
36205 sleep 2
36206 touch a/b
36207
36208 tar ufv arc a
36209 echo "separator"
36210 tar tf arc | sort || exit 1
36211 ) ) >"$at_stdout" 2>"$at_stder1"
36212   at_func_filter_trace $?
36213 else
36214   ( :;
36215 mkdir gnu
36216 (cd gnu
36217 TEST_TAR_FORMAT=gnu
36218 export TEST_TAR_FORMAT
36219 TAR_OPTIONS="-H gnu"
36220 export TAR_OPTIONS
36221 rm -rf *
36222
36223
36224 test -z "`sort < /dev/null 2>&1`" || exit 77
36225
36226 mkdir a
36227 genfile --file a/b
36228
36229 tar cf arc a
36230
36231 echo "separator"
36232
36233 sleep 2
36234 touch a/b
36235
36236 tar ufv arc a
36237 echo "separator"
36238 tar tf arc | sort || exit 1
36239 ) ) >"$at_stdout" 2>"$at_stderr"
36240 fi
36241 at_status=$?
36242 at_failed=false
36243 at_func_diff_devnull "$at_stderr" || at_failed=:
36244 echo >>"$at_stdout"; $as_echo "separator
36245 a/b
36246 separator
36247 a/
36248 a/b
36249 a/b
36250 " | \
36251   $at_diff - "$at_stdout" || at_failed=:
36252 at_func_check_status 0 $at_status "$at_srcdir/update02.at:29"
36253
36254 $at_failed && at_func_log_failure
36255 $at_traceon; }
36256
36257
36258
36259
36260   $at_traceoff
36261   $at_times_p && times >"$at_times_file"
36262 ) 5>&1 2>&1 | eval $at_tee_pipe
36263 at_status=`cat "$at_status_file"`
36264 #AT_STOP_103
36265 #AT_START_104
36266 # 104. verify.at:25: verify
36267 at_setup_line='verify.at:25'
36268 at_desc="verify"
36269 $at_quiet $as_echo_n "104: $at_desc                                         "
36270 at_xfail=no
36271       test -f $XFAILFILE && at_xfail=yes
36272 echo "#                             -*- compilation -*-" >> "$at_group_log"
36273 (
36274   $as_echo "104. verify.at:25: testing ..."
36275   $at_traceon
36276
36277
36278
36279
36280
36281   { $at_traceoff
36282 $as_echo "$at_srcdir/verify.at:28:
36283 mkdir v7
36284 (cd v7
36285 TEST_TAR_FORMAT=v7
36286 export TEST_TAR_FORMAT
36287 TAR_OPTIONS=\"-H v7\"
36288 export TAR_OPTIONS
36289 rm -rf *
36290
36291 touch foo
36292 tar -cvf archive.tar --verify foo
36293 )"
36294 echo verify.at:28 >"$at_check_line_file"
36295
36296 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
36297    false; }; then
36298   ( $at_traceon;
36299 mkdir v7
36300 (cd v7
36301 TEST_TAR_FORMAT=v7
36302 export TEST_TAR_FORMAT
36303 TAR_OPTIONS="-H v7"
36304 export TAR_OPTIONS
36305 rm -rf *
36306
36307 touch foo
36308 tar -cvf archive.tar --verify foo
36309 ) ) >"$at_stdout" 2>"$at_stder1"
36310   at_func_filter_trace $?
36311 else
36312   ( :;
36313 mkdir v7
36314 (cd v7
36315 TEST_TAR_FORMAT=v7
36316 export TEST_TAR_FORMAT
36317 TAR_OPTIONS="-H v7"
36318 export TAR_OPTIONS
36319 rm -rf *
36320
36321 touch foo
36322 tar -cvf archive.tar --verify foo
36323 ) ) >"$at_stdout" 2>"$at_stderr"
36324 fi
36325 at_status=$?
36326 at_failed=false
36327 at_func_diff_devnull "$at_stderr" || at_failed=:
36328 echo >>"$at_stdout"; $as_echo "foo
36329 Verify foo
36330 " | \
36331   $at_diff - "$at_stdout" || at_failed=:
36332 at_func_check_status 0 $at_status "$at_srcdir/verify.at:28"
36333
36334 $at_failed && at_func_log_failure
36335 $at_traceon; }
36336
36337               { $at_traceoff
36338 $as_echo "$at_srcdir/verify.at:28:
36339 mkdir oldgnu
36340 (cd oldgnu
36341 TEST_TAR_FORMAT=oldgnu
36342 export TEST_TAR_FORMAT
36343 TAR_OPTIONS=\"-H oldgnu\"
36344 export TAR_OPTIONS
36345 rm -rf *
36346
36347 touch foo
36348 tar -cvf archive.tar --verify foo
36349 )"
36350 echo verify.at:28 >"$at_check_line_file"
36351
36352 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
36353    false; }; then
36354   ( $at_traceon;
36355 mkdir oldgnu
36356 (cd oldgnu
36357 TEST_TAR_FORMAT=oldgnu
36358 export TEST_TAR_FORMAT
36359 TAR_OPTIONS="-H oldgnu"
36360 export TAR_OPTIONS
36361 rm -rf *
36362
36363 touch foo
36364 tar -cvf archive.tar --verify foo
36365 ) ) >"$at_stdout" 2>"$at_stder1"
36366   at_func_filter_trace $?
36367 else
36368   ( :;
36369 mkdir oldgnu
36370 (cd oldgnu
36371 TEST_TAR_FORMAT=oldgnu
36372 export TEST_TAR_FORMAT
36373 TAR_OPTIONS="-H oldgnu"
36374 export TAR_OPTIONS
36375 rm -rf *
36376
36377 touch foo
36378 tar -cvf archive.tar --verify foo
36379 ) ) >"$at_stdout" 2>"$at_stderr"
36380 fi
36381 at_status=$?
36382 at_failed=false
36383 at_func_diff_devnull "$at_stderr" || at_failed=:
36384 echo >>"$at_stdout"; $as_echo "foo
36385 Verify foo
36386 " | \
36387   $at_diff - "$at_stdout" || at_failed=:
36388 at_func_check_status 0 $at_status "$at_srcdir/verify.at:28"
36389
36390 $at_failed && at_func_log_failure
36391 $at_traceon; }
36392
36393               { $at_traceoff
36394 $as_echo "$at_srcdir/verify.at:28:
36395 mkdir ustar
36396 (cd ustar
36397 TEST_TAR_FORMAT=ustar
36398 export TEST_TAR_FORMAT
36399 TAR_OPTIONS=\"-H ustar\"
36400 export TAR_OPTIONS
36401 rm -rf *
36402
36403 touch foo
36404 tar -cvf archive.tar --verify foo
36405 )"
36406 echo verify.at:28 >"$at_check_line_file"
36407
36408 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
36409    false; }; then
36410   ( $at_traceon;
36411 mkdir ustar
36412 (cd ustar
36413 TEST_TAR_FORMAT=ustar
36414 export TEST_TAR_FORMAT
36415 TAR_OPTIONS="-H ustar"
36416 export TAR_OPTIONS
36417 rm -rf *
36418
36419 touch foo
36420 tar -cvf archive.tar --verify foo
36421 ) ) >"$at_stdout" 2>"$at_stder1"
36422   at_func_filter_trace $?
36423 else
36424   ( :;
36425 mkdir ustar
36426 (cd ustar
36427 TEST_TAR_FORMAT=ustar
36428 export TEST_TAR_FORMAT
36429 TAR_OPTIONS="-H ustar"
36430 export TAR_OPTIONS
36431 rm -rf *
36432
36433 touch foo
36434 tar -cvf archive.tar --verify foo
36435 ) ) >"$at_stdout" 2>"$at_stderr"
36436 fi
36437 at_status=$?
36438 at_failed=false
36439 at_func_diff_devnull "$at_stderr" || at_failed=:
36440 echo >>"$at_stdout"; $as_echo "foo
36441 Verify foo
36442 " | \
36443   $at_diff - "$at_stdout" || at_failed=:
36444 at_func_check_status 0 $at_status "$at_srcdir/verify.at:28"
36445
36446 $at_failed && at_func_log_failure
36447 $at_traceon; }
36448
36449               { $at_traceoff
36450 $as_echo "$at_srcdir/verify.at:28:
36451 mkdir posix
36452 (cd posix
36453 TEST_TAR_FORMAT=posix
36454 export TEST_TAR_FORMAT
36455 TAR_OPTIONS=\"-H posix\"
36456 export TAR_OPTIONS
36457 rm -rf *
36458
36459 touch foo
36460 tar -cvf archive.tar --verify foo
36461 )"
36462 echo verify.at:28 >"$at_check_line_file"
36463
36464 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
36465    false; }; then
36466   ( $at_traceon;
36467 mkdir posix
36468 (cd posix
36469 TEST_TAR_FORMAT=posix
36470 export TEST_TAR_FORMAT
36471 TAR_OPTIONS="-H posix"
36472 export TAR_OPTIONS
36473 rm -rf *
36474
36475 touch foo
36476 tar -cvf archive.tar --verify foo
36477 ) ) >"$at_stdout" 2>"$at_stder1"
36478   at_func_filter_trace $?
36479 else
36480   ( :;
36481 mkdir posix
36482 (cd posix
36483 TEST_TAR_FORMAT=posix
36484 export TEST_TAR_FORMAT
36485 TAR_OPTIONS="-H posix"
36486 export TAR_OPTIONS
36487 rm -rf *
36488
36489 touch foo
36490 tar -cvf archive.tar --verify foo
36491 ) ) >"$at_stdout" 2>"$at_stderr"
36492 fi
36493 at_status=$?
36494 at_failed=false
36495 at_func_diff_devnull "$at_stderr" || at_failed=:
36496 echo >>"$at_stdout"; $as_echo "foo
36497 Verify foo
36498 " | \
36499   $at_diff - "$at_stdout" || at_failed=:
36500 at_func_check_status 0 $at_status "$at_srcdir/verify.at:28"
36501
36502 $at_failed && at_func_log_failure
36503 $at_traceon; }
36504
36505               { $at_traceoff
36506 $as_echo "$at_srcdir/verify.at:28:
36507 mkdir gnu
36508 (cd gnu
36509 TEST_TAR_FORMAT=gnu
36510 export TEST_TAR_FORMAT
36511 TAR_OPTIONS=\"-H gnu\"
36512 export TAR_OPTIONS
36513 rm -rf *
36514
36515 touch foo
36516 tar -cvf archive.tar --verify foo
36517 )"
36518 echo verify.at:28 >"$at_check_line_file"
36519
36520 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
36521    false; }; then
36522   ( $at_traceon;
36523 mkdir gnu
36524 (cd gnu
36525 TEST_TAR_FORMAT=gnu
36526 export TEST_TAR_FORMAT
36527 TAR_OPTIONS="-H gnu"
36528 export TAR_OPTIONS
36529 rm -rf *
36530
36531 touch foo
36532 tar -cvf archive.tar --verify foo
36533 ) ) >"$at_stdout" 2>"$at_stder1"
36534   at_func_filter_trace $?
36535 else
36536   ( :;
36537 mkdir gnu
36538 (cd gnu
36539 TEST_TAR_FORMAT=gnu
36540 export TEST_TAR_FORMAT
36541 TAR_OPTIONS="-H gnu"
36542 export TAR_OPTIONS
36543 rm -rf *
36544
36545 touch foo
36546 tar -cvf archive.tar --verify foo
36547 ) ) >"$at_stdout" 2>"$at_stderr"
36548 fi
36549 at_status=$?
36550 at_failed=false
36551 at_func_diff_devnull "$at_stderr" || at_failed=:
36552 echo >>"$at_stdout"; $as_echo "foo
36553 Verify foo
36554 " | \
36555   $at_diff - "$at_stdout" || at_failed=:
36556 at_func_check_status 0 $at_status "$at_srcdir/verify.at:28"
36557
36558 $at_failed && at_func_log_failure
36559 $at_traceon; }
36560
36561
36562
36563
36564   $at_traceoff
36565   $at_times_p && times >"$at_times_file"
36566 ) 5>&1 2>&1 | eval $at_tee_pipe
36567 at_status=`cat "$at_status_file"`
36568 #AT_STOP_104
36569 #AT_START_105
36570 # 105. volume.at:23: volume
36571 at_setup_line='volume.at:23'
36572 at_desc="volume"
36573 $at_quiet $as_echo_n "105: $at_desc                                         "
36574 at_xfail=no
36575       test -f $XFAILFILE && at_xfail=yes
36576 echo "#                             -*- compilation -*-" >> "$at_group_log"
36577 (
36578   $as_echo "105. volume.at:23: testing ..."
36579   $at_traceon
36580
36581
36582
36583
36584
36585   { $at_traceoff
36586 $as_echo "$at_srcdir/volume.at:26:
36587 mkdir gnu
36588 (cd gnu
36589 TEST_TAR_FORMAT=gnu
36590 export TEST_TAR_FORMAT
36591 TAR_OPTIONS=\"-H gnu\"
36592 export TAR_OPTIONS
36593 rm -rf *
36594
36595 tar -cf archive -V label -T /dev/null || exit 1
36596
36597 tar xfV archive label || exit 1
36598 tar xfV archive 'la?el' || exit 1
36599 tar xfV archive 'l*l' || exit 1
36600
36601 echo 1>&2 -----
36602 tar xfV archive lab
36603 test \$? = 2 || exit 1
36604 echo 1>&2 -----
36605 tar xfV archive bel
36606 test \$? = 2 || exit 1
36607 echo 1>&2 -----
36608 tar xfV archive babel
36609 test \$? = 2
36610 )"
36611 echo volume.at:26 >"$at_check_line_file"
36612
36613 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
36614    false; }; then
36615   ( $at_traceon;
36616 mkdir gnu
36617 (cd gnu
36618 TEST_TAR_FORMAT=gnu
36619 export TEST_TAR_FORMAT
36620 TAR_OPTIONS="-H gnu"
36621 export TAR_OPTIONS
36622 rm -rf *
36623
36624 tar -cf archive -V label -T /dev/null || exit 1
36625
36626 tar xfV archive label || exit 1
36627 tar xfV archive 'la?el' || exit 1
36628 tar xfV archive 'l*l' || exit 1
36629
36630 echo 1>&2 -----
36631 tar xfV archive lab
36632 test $? = 2 || exit 1
36633 echo 1>&2 -----
36634 tar xfV archive bel
36635 test $? = 2 || exit 1
36636 echo 1>&2 -----
36637 tar xfV archive babel
36638 test $? = 2
36639 ) ) >"$at_stdout" 2>"$at_stder1"
36640   at_func_filter_trace $?
36641 else
36642   ( :;
36643 mkdir gnu
36644 (cd gnu
36645 TEST_TAR_FORMAT=gnu
36646 export TEST_TAR_FORMAT
36647 TAR_OPTIONS="-H gnu"
36648 export TAR_OPTIONS
36649 rm -rf *
36650
36651 tar -cf archive -V label -T /dev/null || exit 1
36652
36653 tar xfV archive label || exit 1
36654 tar xfV archive 'la?el' || exit 1
36655 tar xfV archive 'l*l' || exit 1
36656
36657 echo 1>&2 -----
36658 tar xfV archive lab
36659 test $? = 2 || exit 1
36660 echo 1>&2 -----
36661 tar xfV archive bel
36662 test $? = 2 || exit 1
36663 echo 1>&2 -----
36664 tar xfV archive babel
36665 test $? = 2
36666 ) ) >"$at_stdout" 2>"$at_stderr"
36667 fi
36668 at_status=$?
36669 at_failed=false
36670 echo >>"$at_stderr"; $as_echo "-----
36671 tar: Volume \`label' does not match \`lab'
36672 tar: Error is not recoverable: exiting now
36673 -----
36674 tar: Volume \`label' does not match \`bel'
36675 tar: Error is not recoverable: exiting now
36676 -----
36677 tar: Volume \`label' does not match \`babel'
36678 tar: Error is not recoverable: exiting now
36679 " | \
36680   $at_diff - "$at_stderr" || at_failed=:
36681 at_func_diff_devnull "$at_stdout" || at_failed=:
36682 at_func_check_status 0 $at_status "$at_srcdir/volume.at:26"
36683
36684 $at_failed && at_func_log_failure
36685 $at_traceon; }
36686
36687               { $at_traceoff
36688 $as_echo "$at_srcdir/volume.at:26:
36689 mkdir oldgnu
36690 (cd oldgnu
36691 TEST_TAR_FORMAT=oldgnu
36692 export TEST_TAR_FORMAT
36693 TAR_OPTIONS=\"-H oldgnu\"
36694 export TAR_OPTIONS
36695 rm -rf *
36696
36697 tar -cf archive -V label -T /dev/null || exit 1
36698
36699 tar xfV archive label || exit 1
36700 tar xfV archive 'la?el' || exit 1
36701 tar xfV archive 'l*l' || exit 1
36702
36703 echo 1>&2 -----
36704 tar xfV archive lab
36705 test \$? = 2 || exit 1
36706 echo 1>&2 -----
36707 tar xfV archive bel
36708 test \$? = 2 || exit 1
36709 echo 1>&2 -----
36710 tar xfV archive babel
36711 test \$? = 2
36712 )"
36713 echo volume.at:26 >"$at_check_line_file"
36714
36715 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
36716    false; }; then
36717   ( $at_traceon;
36718 mkdir oldgnu
36719 (cd oldgnu
36720 TEST_TAR_FORMAT=oldgnu
36721 export TEST_TAR_FORMAT
36722 TAR_OPTIONS="-H oldgnu"
36723 export TAR_OPTIONS
36724 rm -rf *
36725
36726 tar -cf archive -V label -T /dev/null || exit 1
36727
36728 tar xfV archive label || exit 1
36729 tar xfV archive 'la?el' || exit 1
36730 tar xfV archive 'l*l' || exit 1
36731
36732 echo 1>&2 -----
36733 tar xfV archive lab
36734 test $? = 2 || exit 1
36735 echo 1>&2 -----
36736 tar xfV archive bel
36737 test $? = 2 || exit 1
36738 echo 1>&2 -----
36739 tar xfV archive babel
36740 test $? = 2
36741 ) ) >"$at_stdout" 2>"$at_stder1"
36742   at_func_filter_trace $?
36743 else
36744   ( :;
36745 mkdir oldgnu
36746 (cd oldgnu
36747 TEST_TAR_FORMAT=oldgnu
36748 export TEST_TAR_FORMAT
36749 TAR_OPTIONS="-H oldgnu"
36750 export TAR_OPTIONS
36751 rm -rf *
36752
36753 tar -cf archive -V label -T /dev/null || exit 1
36754
36755 tar xfV archive label || exit 1
36756 tar xfV archive 'la?el' || exit 1
36757 tar xfV archive 'l*l' || exit 1
36758
36759 echo 1>&2 -----
36760 tar xfV archive lab
36761 test $? = 2 || exit 1
36762 echo 1>&2 -----
36763 tar xfV archive bel
36764 test $? = 2 || exit 1
36765 echo 1>&2 -----
36766 tar xfV archive babel
36767 test $? = 2
36768 ) ) >"$at_stdout" 2>"$at_stderr"
36769 fi
36770 at_status=$?
36771 at_failed=false
36772 echo >>"$at_stderr"; $as_echo "-----
36773 tar: Volume \`label' does not match \`lab'
36774 tar: Error is not recoverable: exiting now
36775 -----
36776 tar: Volume \`label' does not match \`bel'
36777 tar: Error is not recoverable: exiting now
36778 -----
36779 tar: Volume \`label' does not match \`babel'
36780 tar: Error is not recoverable: exiting now
36781 " | \
36782   $at_diff - "$at_stderr" || at_failed=:
36783 at_func_diff_devnull "$at_stdout" || at_failed=:
36784 at_func_check_status 0 $at_status "$at_srcdir/volume.at:26"
36785
36786 $at_failed && at_func_log_failure
36787 $at_traceon; }
36788
36789
36790
36791
36792   $at_traceoff
36793   $at_times_p && times >"$at_times_file"
36794 ) 5>&1 2>&1 | eval $at_tee_pipe
36795 at_status=`cat "$at_status_file"`
36796 #AT_STOP_105
36797 #AT_START_106
36798 # 106. volsize.at:29: volume header size
36799 at_setup_line='volsize.at:29'
36800 at_desc="volume header size"
36801 $at_quiet $as_echo_n "106: $at_desc                             "
36802 at_xfail=no
36803       test -f $XFAILFILE && at_xfail=yes
36804 echo "#                             -*- compilation -*-" >> "$at_group_log"
36805 (
36806   $as_echo "106. volsize.at:29: testing ..."
36807   $at_traceon
36808
36809
36810
36811
36812
36813   { $at_traceoff
36814 $as_echo "$at_srcdir/volsize.at:32:
36815 mkdir v7
36816 (cd v7
36817 TEST_TAR_FORMAT=v7
36818 export TEST_TAR_FORMAT
36819 TAR_OPTIONS=\"-H v7\"
36820 export TAR_OPTIONS
36821 rm -rf *
36822
36823
36824 test -z "`sort < /dev/null 2>&1`" || exit 77
36825
36826
36827 test -z "$TEST_DATA_DIR" && exit 77
36828 tarball_prereq abc.tar 540f196ceddcad9e7bd2f2d7533d0474 $TEST_DATA_DIR $TEST_DATA_URL || exit 77
36829
36830 echo Short Listing
36831 tar tf \$TEST_DATA_DIR/abc.tar
36832 echo Verbose Listing
36833 tar --utc -tvf \$TEST_DATA_DIR/abc.tar
36834 echo Extracted directory
36835 tar xf \$TEST_DATA_DIR/abc.tar
36836 find abc|sort
36837 )"
36838 echo volsize.at:32 >"$at_check_line_file"
36839
36840 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
36841    false; }; then
36842   ( $at_traceon;
36843 mkdir v7
36844 (cd v7
36845 TEST_TAR_FORMAT=v7
36846 export TEST_TAR_FORMAT
36847 TAR_OPTIONS="-H v7"
36848 export TAR_OPTIONS
36849 rm -rf *
36850
36851
36852 test -z "`sort < /dev/null 2>&1`" || exit 77
36853
36854
36855 test -z "$TEST_DATA_DIR" && exit 77
36856 tarball_prereq abc.tar 540f196ceddcad9e7bd2f2d7533d0474 $TEST_DATA_DIR $TEST_DATA_URL || exit 77
36857
36858 echo Short Listing
36859 tar tf $TEST_DATA_DIR/abc.tar
36860 echo Verbose Listing
36861 tar --utc -tvf $TEST_DATA_DIR/abc.tar
36862 echo Extracted directory
36863 tar xf $TEST_DATA_DIR/abc.tar
36864 find abc|sort
36865 ) ) >"$at_stdout" 2>"$at_stder1"
36866   at_func_filter_trace $?
36867 else
36868   ( :;
36869 mkdir v7
36870 (cd v7
36871 TEST_TAR_FORMAT=v7
36872 export TEST_TAR_FORMAT
36873 TAR_OPTIONS="-H v7"
36874 export TAR_OPTIONS
36875 rm -rf *
36876
36877
36878 test -z "`sort < /dev/null 2>&1`" || exit 77
36879
36880
36881 test -z "$TEST_DATA_DIR" && exit 77
36882 tarball_prereq abc.tar 540f196ceddcad9e7bd2f2d7533d0474 $TEST_DATA_DIR $TEST_DATA_URL || exit 77
36883
36884 echo Short Listing
36885 tar tf $TEST_DATA_DIR/abc.tar
36886 echo Verbose Listing
36887 tar --utc -tvf $TEST_DATA_DIR/abc.tar
36888 echo Extracted directory
36889 tar xf $TEST_DATA_DIR/abc.tar
36890 find abc|sort
36891 ) ) >"$at_stdout" 2>"$at_stderr"
36892 fi
36893 at_status=$?
36894 at_failed=false
36895 at_func_diff_devnull "$at_stderr" || at_failed=:
36896 echo >>"$at_stdout"; $as_echo "Short Listing
36897 abc/not-a-file.gif
36898 abc/CCC
36899 Verbose Listing
36900 V--------- 0/0            1536 2006-05-08 22:07 abc/not-a-file.gif--Volume Header--
36901 -rw-r--r-- tom/users         0 2006-04-22 19:52 abc/CCC
36902 Extracted directory
36903 abc
36904 abc/CCC
36905 " | \
36906   $at_diff - "$at_stdout" || at_failed=:
36907 at_func_check_status 0 $at_status "$at_srcdir/volsize.at:32"
36908
36909 $at_failed && at_func_log_failure
36910 $at_traceon; }
36911
36912               { $at_traceoff
36913 $as_echo "$at_srcdir/volsize.at:32:
36914 mkdir oldgnu
36915 (cd oldgnu
36916 TEST_TAR_FORMAT=oldgnu
36917 export TEST_TAR_FORMAT
36918 TAR_OPTIONS=\"-H oldgnu\"
36919 export TAR_OPTIONS
36920 rm -rf *
36921
36922
36923 test -z "`sort < /dev/null 2>&1`" || exit 77
36924
36925
36926 test -z "$TEST_DATA_DIR" && exit 77
36927 tarball_prereq abc.tar 540f196ceddcad9e7bd2f2d7533d0474 $TEST_DATA_DIR $TEST_DATA_URL || exit 77
36928
36929 echo Short Listing
36930 tar tf \$TEST_DATA_DIR/abc.tar
36931 echo Verbose Listing
36932 tar --utc -tvf \$TEST_DATA_DIR/abc.tar
36933 echo Extracted directory
36934 tar xf \$TEST_DATA_DIR/abc.tar
36935 find abc|sort
36936 )"
36937 echo volsize.at:32 >"$at_check_line_file"
36938
36939 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
36940    false; }; then
36941   ( $at_traceon;
36942 mkdir oldgnu
36943 (cd oldgnu
36944 TEST_TAR_FORMAT=oldgnu
36945 export TEST_TAR_FORMAT
36946 TAR_OPTIONS="-H oldgnu"
36947 export TAR_OPTIONS
36948 rm -rf *
36949
36950
36951 test -z "`sort < /dev/null 2>&1`" || exit 77
36952
36953
36954 test -z "$TEST_DATA_DIR" && exit 77
36955 tarball_prereq abc.tar 540f196ceddcad9e7bd2f2d7533d0474 $TEST_DATA_DIR $TEST_DATA_URL || exit 77
36956
36957 echo Short Listing
36958 tar tf $TEST_DATA_DIR/abc.tar
36959 echo Verbose Listing
36960 tar --utc -tvf $TEST_DATA_DIR/abc.tar
36961 echo Extracted directory
36962 tar xf $TEST_DATA_DIR/abc.tar
36963 find abc|sort
36964 ) ) >"$at_stdout" 2>"$at_stder1"
36965   at_func_filter_trace $?
36966 else
36967   ( :;
36968 mkdir oldgnu
36969 (cd oldgnu
36970 TEST_TAR_FORMAT=oldgnu
36971 export TEST_TAR_FORMAT
36972 TAR_OPTIONS="-H oldgnu"
36973 export TAR_OPTIONS
36974 rm -rf *
36975
36976
36977 test -z "`sort < /dev/null 2>&1`" || exit 77
36978
36979
36980 test -z "$TEST_DATA_DIR" && exit 77
36981 tarball_prereq abc.tar 540f196ceddcad9e7bd2f2d7533d0474 $TEST_DATA_DIR $TEST_DATA_URL || exit 77
36982
36983 echo Short Listing
36984 tar tf $TEST_DATA_DIR/abc.tar
36985 echo Verbose Listing
36986 tar --utc -tvf $TEST_DATA_DIR/abc.tar
36987 echo Extracted directory
36988 tar xf $TEST_DATA_DIR/abc.tar
36989 find abc|sort
36990 ) ) >"$at_stdout" 2>"$at_stderr"
36991 fi
36992 at_status=$?
36993 at_failed=false
36994 at_func_diff_devnull "$at_stderr" || at_failed=:
36995 echo >>"$at_stdout"; $as_echo "Short Listing
36996 abc/not-a-file.gif
36997 abc/CCC
36998 Verbose Listing
36999 V--------- 0/0            1536 2006-05-08 22:07 abc/not-a-file.gif--Volume Header--
37000 -rw-r--r-- tom/users         0 2006-04-22 19:52 abc/CCC
37001 Extracted directory
37002 abc
37003 abc/CCC
37004 " | \
37005   $at_diff - "$at_stdout" || at_failed=:
37006 at_func_check_status 0 $at_status "$at_srcdir/volsize.at:32"
37007
37008 $at_failed && at_func_log_failure
37009 $at_traceon; }
37010
37011               { $at_traceoff
37012 $as_echo "$at_srcdir/volsize.at:32:
37013 mkdir ustar
37014 (cd ustar
37015 TEST_TAR_FORMAT=ustar
37016 export TEST_TAR_FORMAT
37017 TAR_OPTIONS=\"-H ustar\"
37018 export TAR_OPTIONS
37019 rm -rf *
37020
37021
37022 test -z "`sort < /dev/null 2>&1`" || exit 77
37023
37024
37025 test -z "$TEST_DATA_DIR" && exit 77
37026 tarball_prereq abc.tar 540f196ceddcad9e7bd2f2d7533d0474 $TEST_DATA_DIR $TEST_DATA_URL || exit 77
37027
37028 echo Short Listing
37029 tar tf \$TEST_DATA_DIR/abc.tar
37030 echo Verbose Listing
37031 tar --utc -tvf \$TEST_DATA_DIR/abc.tar
37032 echo Extracted directory
37033 tar xf \$TEST_DATA_DIR/abc.tar
37034 find abc|sort
37035 )"
37036 echo volsize.at:32 >"$at_check_line_file"
37037
37038 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
37039    false; }; then
37040   ( $at_traceon;
37041 mkdir ustar
37042 (cd ustar
37043 TEST_TAR_FORMAT=ustar
37044 export TEST_TAR_FORMAT
37045 TAR_OPTIONS="-H ustar"
37046 export TAR_OPTIONS
37047 rm -rf *
37048
37049
37050 test -z "`sort < /dev/null 2>&1`" || exit 77
37051
37052
37053 test -z "$TEST_DATA_DIR" && exit 77
37054 tarball_prereq abc.tar 540f196ceddcad9e7bd2f2d7533d0474 $TEST_DATA_DIR $TEST_DATA_URL || exit 77
37055
37056 echo Short Listing
37057 tar tf $TEST_DATA_DIR/abc.tar
37058 echo Verbose Listing
37059 tar --utc -tvf $TEST_DATA_DIR/abc.tar
37060 echo Extracted directory
37061 tar xf $TEST_DATA_DIR/abc.tar
37062 find abc|sort
37063 ) ) >"$at_stdout" 2>"$at_stder1"
37064   at_func_filter_trace $?
37065 else
37066   ( :;
37067 mkdir ustar
37068 (cd ustar
37069 TEST_TAR_FORMAT=ustar
37070 export TEST_TAR_FORMAT
37071 TAR_OPTIONS="-H ustar"
37072 export TAR_OPTIONS
37073 rm -rf *
37074
37075
37076 test -z "`sort < /dev/null 2>&1`" || exit 77
37077
37078
37079 test -z "$TEST_DATA_DIR" && exit 77
37080 tarball_prereq abc.tar 540f196ceddcad9e7bd2f2d7533d0474 $TEST_DATA_DIR $TEST_DATA_URL || exit 77
37081
37082 echo Short Listing
37083 tar tf $TEST_DATA_DIR/abc.tar
37084 echo Verbose Listing
37085 tar --utc -tvf $TEST_DATA_DIR/abc.tar
37086 echo Extracted directory
37087 tar xf $TEST_DATA_DIR/abc.tar
37088 find abc|sort
37089 ) ) >"$at_stdout" 2>"$at_stderr"
37090 fi
37091 at_status=$?
37092 at_failed=false
37093 at_func_diff_devnull "$at_stderr" || at_failed=:
37094 echo >>"$at_stdout"; $as_echo "Short Listing
37095 abc/not-a-file.gif
37096 abc/CCC
37097 Verbose Listing
37098 V--------- 0/0            1536 2006-05-08 22:07 abc/not-a-file.gif--Volume Header--
37099 -rw-r--r-- tom/users         0 2006-04-22 19:52 abc/CCC
37100 Extracted directory
37101 abc
37102 abc/CCC
37103 " | \
37104   $at_diff - "$at_stdout" || at_failed=:
37105 at_func_check_status 0 $at_status "$at_srcdir/volsize.at:32"
37106
37107 $at_failed && at_func_log_failure
37108 $at_traceon; }
37109
37110               { $at_traceoff
37111 $as_echo "$at_srcdir/volsize.at:32:
37112 mkdir posix
37113 (cd posix
37114 TEST_TAR_FORMAT=posix
37115 export TEST_TAR_FORMAT
37116 TAR_OPTIONS=\"-H posix\"
37117 export TAR_OPTIONS
37118 rm -rf *
37119
37120
37121 test -z "`sort < /dev/null 2>&1`" || exit 77
37122
37123
37124 test -z "$TEST_DATA_DIR" && exit 77
37125 tarball_prereq abc.tar 540f196ceddcad9e7bd2f2d7533d0474 $TEST_DATA_DIR $TEST_DATA_URL || exit 77
37126
37127 echo Short Listing
37128 tar tf \$TEST_DATA_DIR/abc.tar
37129 echo Verbose Listing
37130 tar --utc -tvf \$TEST_DATA_DIR/abc.tar
37131 echo Extracted directory
37132 tar xf \$TEST_DATA_DIR/abc.tar
37133 find abc|sort
37134 )"
37135 echo volsize.at:32 >"$at_check_line_file"
37136
37137 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
37138    false; }; then
37139   ( $at_traceon;
37140 mkdir posix
37141 (cd posix
37142 TEST_TAR_FORMAT=posix
37143 export TEST_TAR_FORMAT
37144 TAR_OPTIONS="-H posix"
37145 export TAR_OPTIONS
37146 rm -rf *
37147
37148
37149 test -z "`sort < /dev/null 2>&1`" || exit 77
37150
37151
37152 test -z "$TEST_DATA_DIR" && exit 77
37153 tarball_prereq abc.tar 540f196ceddcad9e7bd2f2d7533d0474 $TEST_DATA_DIR $TEST_DATA_URL || exit 77
37154
37155 echo Short Listing
37156 tar tf $TEST_DATA_DIR/abc.tar
37157 echo Verbose Listing
37158 tar --utc -tvf $TEST_DATA_DIR/abc.tar
37159 echo Extracted directory
37160 tar xf $TEST_DATA_DIR/abc.tar
37161 find abc|sort
37162 ) ) >"$at_stdout" 2>"$at_stder1"
37163   at_func_filter_trace $?
37164 else
37165   ( :;
37166 mkdir posix
37167 (cd posix
37168 TEST_TAR_FORMAT=posix
37169 export TEST_TAR_FORMAT
37170 TAR_OPTIONS="-H posix"
37171 export TAR_OPTIONS
37172 rm -rf *
37173
37174
37175 test -z "`sort < /dev/null 2>&1`" || exit 77
37176
37177
37178 test -z "$TEST_DATA_DIR" && exit 77
37179 tarball_prereq abc.tar 540f196ceddcad9e7bd2f2d7533d0474 $TEST_DATA_DIR $TEST_DATA_URL || exit 77
37180
37181 echo Short Listing
37182 tar tf $TEST_DATA_DIR/abc.tar
37183 echo Verbose Listing
37184 tar --utc -tvf $TEST_DATA_DIR/abc.tar
37185 echo Extracted directory
37186 tar xf $TEST_DATA_DIR/abc.tar
37187 find abc|sort
37188 ) ) >"$at_stdout" 2>"$at_stderr"
37189 fi
37190 at_status=$?
37191 at_failed=false
37192 at_func_diff_devnull "$at_stderr" || at_failed=:
37193 echo >>"$at_stdout"; $as_echo "Short Listing
37194 abc/not-a-file.gif
37195 abc/CCC
37196 Verbose Listing
37197 V--------- 0/0            1536 2006-05-08 22:07 abc/not-a-file.gif--Volume Header--
37198 -rw-r--r-- tom/users         0 2006-04-22 19:52 abc/CCC
37199 Extracted directory
37200 abc
37201 abc/CCC
37202 " | \
37203   $at_diff - "$at_stdout" || at_failed=:
37204 at_func_check_status 0 $at_status "$at_srcdir/volsize.at:32"
37205
37206 $at_failed && at_func_log_failure
37207 $at_traceon; }
37208
37209               { $at_traceoff
37210 $as_echo "$at_srcdir/volsize.at:32:
37211 mkdir gnu
37212 (cd gnu
37213 TEST_TAR_FORMAT=gnu
37214 export TEST_TAR_FORMAT
37215 TAR_OPTIONS=\"-H gnu\"
37216 export TAR_OPTIONS
37217 rm -rf *
37218
37219
37220 test -z "`sort < /dev/null 2>&1`" || exit 77
37221
37222
37223 test -z "$TEST_DATA_DIR" && exit 77
37224 tarball_prereq abc.tar 540f196ceddcad9e7bd2f2d7533d0474 $TEST_DATA_DIR $TEST_DATA_URL || exit 77
37225
37226 echo Short Listing
37227 tar tf \$TEST_DATA_DIR/abc.tar
37228 echo Verbose Listing
37229 tar --utc -tvf \$TEST_DATA_DIR/abc.tar
37230 echo Extracted directory
37231 tar xf \$TEST_DATA_DIR/abc.tar
37232 find abc|sort
37233 )"
37234 echo volsize.at:32 >"$at_check_line_file"
37235
37236 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
37237    false; }; then
37238   ( $at_traceon;
37239 mkdir gnu
37240 (cd gnu
37241 TEST_TAR_FORMAT=gnu
37242 export TEST_TAR_FORMAT
37243 TAR_OPTIONS="-H gnu"
37244 export TAR_OPTIONS
37245 rm -rf *
37246
37247
37248 test -z "`sort < /dev/null 2>&1`" || exit 77
37249
37250
37251 test -z "$TEST_DATA_DIR" && exit 77
37252 tarball_prereq abc.tar 540f196ceddcad9e7bd2f2d7533d0474 $TEST_DATA_DIR $TEST_DATA_URL || exit 77
37253
37254 echo Short Listing
37255 tar tf $TEST_DATA_DIR/abc.tar
37256 echo Verbose Listing
37257 tar --utc -tvf $TEST_DATA_DIR/abc.tar
37258 echo Extracted directory
37259 tar xf $TEST_DATA_DIR/abc.tar
37260 find abc|sort
37261 ) ) >"$at_stdout" 2>"$at_stder1"
37262   at_func_filter_trace $?
37263 else
37264   ( :;
37265 mkdir gnu
37266 (cd gnu
37267 TEST_TAR_FORMAT=gnu
37268 export TEST_TAR_FORMAT
37269 TAR_OPTIONS="-H gnu"
37270 export TAR_OPTIONS
37271 rm -rf *
37272
37273
37274 test -z "`sort < /dev/null 2>&1`" || exit 77
37275
37276
37277 test -z "$TEST_DATA_DIR" && exit 77
37278 tarball_prereq abc.tar 540f196ceddcad9e7bd2f2d7533d0474 $TEST_DATA_DIR $TEST_DATA_URL || exit 77
37279
37280 echo Short Listing
37281 tar tf $TEST_DATA_DIR/abc.tar
37282 echo Verbose Listing
37283 tar --utc -tvf $TEST_DATA_DIR/abc.tar
37284 echo Extracted directory
37285 tar xf $TEST_DATA_DIR/abc.tar
37286 find abc|sort
37287 ) ) >"$at_stdout" 2>"$at_stderr"
37288 fi
37289 at_status=$?
37290 at_failed=false
37291 at_func_diff_devnull "$at_stderr" || at_failed=:
37292 echo >>"$at_stdout"; $as_echo "Short Listing
37293 abc/not-a-file.gif
37294 abc/CCC
37295 Verbose Listing
37296 V--------- 0/0            1536 2006-05-08 22:07 abc/not-a-file.gif--Volume Header--
37297 -rw-r--r-- tom/users         0 2006-04-22 19:52 abc/CCC
37298 Extracted directory
37299 abc
37300 abc/CCC
37301 " | \
37302   $at_diff - "$at_stdout" || at_failed=:
37303 at_func_check_status 0 $at_status "$at_srcdir/volsize.at:32"
37304
37305 $at_failed && at_func_log_failure
37306 $at_traceon; }
37307
37308
37309
37310
37311   $at_traceoff
37312   $at_times_p && times >"$at_times_file"
37313 ) 5>&1 2>&1 | eval $at_tee_pipe
37314 at_status=`cat "$at_status_file"`
37315 #AT_STOP_106
37316 #AT_START_107
37317 # 107. comprec.at:21: compressed format recognition
37318 at_setup_line='comprec.at:21'
37319 at_desc="compressed format recognition"
37320 $at_quiet $as_echo_n "107: $at_desc                  "
37321 at_xfail=no
37322       test -f $XFAILFILE && at_xfail=yes
37323 echo "#                             -*- compilation -*-" >> "$at_group_log"
37324 (
37325   $as_echo "107. comprec.at:21: testing ..."
37326   $at_traceon
37327
37328
37329
37330
37331
37332
37333   { $at_traceoff
37334 $as_echo "$at_srcdir/comprec.at:25:
37335 mkdir v7
37336 (cd v7
37337 TEST_TAR_FORMAT=v7
37338 export TEST_TAR_FORMAT
37339 TAR_OPTIONS=\"-H v7\"
37340 export TAR_OPTIONS
37341 rm -rf *
37342
37343
37344 cat /dev/null | gzip - > /dev/null 2>&1 || exit 77
37345
37346 genfile --length 10240 --file file1
37347 echo \"separator\"
37348 tar cfz archive file1
37349 echo \"separator\"
37350 mv file1 orig
37351 tar xfv archive --warning=no-timestamp
37352 cmp orig file1
37353 )"
37354 echo comprec.at:25 >"$at_check_line_file"
37355
37356 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
37357    false; }; then
37358   ( $at_traceon;
37359 mkdir v7
37360 (cd v7
37361 TEST_TAR_FORMAT=v7
37362 export TEST_TAR_FORMAT
37363 TAR_OPTIONS="-H v7"
37364 export TAR_OPTIONS
37365 rm -rf *
37366
37367
37368 cat /dev/null | gzip - > /dev/null 2>&1 || exit 77
37369
37370 genfile --length 10240 --file file1
37371 echo "separator"
37372 tar cfz archive file1
37373 echo "separator"
37374 mv file1 orig
37375 tar xfv archive --warning=no-timestamp
37376 cmp orig file1
37377 ) ) >"$at_stdout" 2>"$at_stder1"
37378   at_func_filter_trace $?
37379 else
37380   ( :;
37381 mkdir v7
37382 (cd v7
37383 TEST_TAR_FORMAT=v7
37384 export TEST_TAR_FORMAT
37385 TAR_OPTIONS="-H v7"
37386 export TAR_OPTIONS
37387 rm -rf *
37388
37389
37390 cat /dev/null | gzip - > /dev/null 2>&1 || exit 77
37391
37392 genfile --length 10240 --file file1
37393 echo "separator"
37394 tar cfz archive file1
37395 echo "separator"
37396 mv file1 orig
37397 tar xfv archive --warning=no-timestamp
37398 cmp orig file1
37399 ) ) >"$at_stdout" 2>"$at_stderr"
37400 fi
37401 at_status=$?
37402 at_failed=false
37403 at_func_diff_devnull "$at_stderr" || at_failed=:
37404 echo >>"$at_stdout"; $as_echo "separator
37405 separator
37406 file1
37407 " | \
37408   $at_diff - "$at_stdout" || at_failed=:
37409 at_func_check_status 0 $at_status "$at_srcdir/comprec.at:25"
37410
37411 $at_failed && at_func_log_failure
37412 $at_traceon; }
37413
37414               { $at_traceoff
37415 $as_echo "$at_srcdir/comprec.at:25:
37416 mkdir oldgnu
37417 (cd oldgnu
37418 TEST_TAR_FORMAT=oldgnu
37419 export TEST_TAR_FORMAT
37420 TAR_OPTIONS=\"-H oldgnu\"
37421 export TAR_OPTIONS
37422 rm -rf *
37423
37424
37425 cat /dev/null | gzip - > /dev/null 2>&1 || exit 77
37426
37427 genfile --length 10240 --file file1
37428 echo \"separator\"
37429 tar cfz archive file1
37430 echo \"separator\"
37431 mv file1 orig
37432 tar xfv archive --warning=no-timestamp
37433 cmp orig file1
37434 )"
37435 echo comprec.at:25 >"$at_check_line_file"
37436
37437 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
37438    false; }; then
37439   ( $at_traceon;
37440 mkdir oldgnu
37441 (cd oldgnu
37442 TEST_TAR_FORMAT=oldgnu
37443 export TEST_TAR_FORMAT
37444 TAR_OPTIONS="-H oldgnu"
37445 export TAR_OPTIONS
37446 rm -rf *
37447
37448
37449 cat /dev/null | gzip - > /dev/null 2>&1 || exit 77
37450
37451 genfile --length 10240 --file file1
37452 echo "separator"
37453 tar cfz archive file1
37454 echo "separator"
37455 mv file1 orig
37456 tar xfv archive --warning=no-timestamp
37457 cmp orig file1
37458 ) ) >"$at_stdout" 2>"$at_stder1"
37459   at_func_filter_trace $?
37460 else
37461   ( :;
37462 mkdir oldgnu
37463 (cd oldgnu
37464 TEST_TAR_FORMAT=oldgnu
37465 export TEST_TAR_FORMAT
37466 TAR_OPTIONS="-H oldgnu"
37467 export TAR_OPTIONS
37468 rm -rf *
37469
37470
37471 cat /dev/null | gzip - > /dev/null 2>&1 || exit 77
37472
37473 genfile --length 10240 --file file1
37474 echo "separator"
37475 tar cfz archive file1
37476 echo "separator"
37477 mv file1 orig
37478 tar xfv archive --warning=no-timestamp
37479 cmp orig file1
37480 ) ) >"$at_stdout" 2>"$at_stderr"
37481 fi
37482 at_status=$?
37483 at_failed=false
37484 at_func_diff_devnull "$at_stderr" || at_failed=:
37485 echo >>"$at_stdout"; $as_echo "separator
37486 separator
37487 file1
37488 " | \
37489   $at_diff - "$at_stdout" || at_failed=:
37490 at_func_check_status 0 $at_status "$at_srcdir/comprec.at:25"
37491
37492 $at_failed && at_func_log_failure
37493 $at_traceon; }
37494
37495               { $at_traceoff
37496 $as_echo "$at_srcdir/comprec.at:25:
37497 mkdir ustar
37498 (cd ustar
37499 TEST_TAR_FORMAT=ustar
37500 export TEST_TAR_FORMAT
37501 TAR_OPTIONS=\"-H ustar\"
37502 export TAR_OPTIONS
37503 rm -rf *
37504
37505
37506 cat /dev/null | gzip - > /dev/null 2>&1 || exit 77
37507
37508 genfile --length 10240 --file file1
37509 echo \"separator\"
37510 tar cfz archive file1
37511 echo \"separator\"
37512 mv file1 orig
37513 tar xfv archive --warning=no-timestamp
37514 cmp orig file1
37515 )"
37516 echo comprec.at:25 >"$at_check_line_file"
37517
37518 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
37519    false; }; then
37520   ( $at_traceon;
37521 mkdir ustar
37522 (cd ustar
37523 TEST_TAR_FORMAT=ustar
37524 export TEST_TAR_FORMAT
37525 TAR_OPTIONS="-H ustar"
37526 export TAR_OPTIONS
37527 rm -rf *
37528
37529
37530 cat /dev/null | gzip - > /dev/null 2>&1 || exit 77
37531
37532 genfile --length 10240 --file file1
37533 echo "separator"
37534 tar cfz archive file1
37535 echo "separator"
37536 mv file1 orig
37537 tar xfv archive --warning=no-timestamp
37538 cmp orig file1
37539 ) ) >"$at_stdout" 2>"$at_stder1"
37540   at_func_filter_trace $?
37541 else
37542   ( :;
37543 mkdir ustar
37544 (cd ustar
37545 TEST_TAR_FORMAT=ustar
37546 export TEST_TAR_FORMAT
37547 TAR_OPTIONS="-H ustar"
37548 export TAR_OPTIONS
37549 rm -rf *
37550
37551
37552 cat /dev/null | gzip - > /dev/null 2>&1 || exit 77
37553
37554 genfile --length 10240 --file file1
37555 echo "separator"
37556 tar cfz archive file1
37557 echo "separator"
37558 mv file1 orig
37559 tar xfv archive --warning=no-timestamp
37560 cmp orig file1
37561 ) ) >"$at_stdout" 2>"$at_stderr"
37562 fi
37563 at_status=$?
37564 at_failed=false
37565 at_func_diff_devnull "$at_stderr" || at_failed=:
37566 echo >>"$at_stdout"; $as_echo "separator
37567 separator
37568 file1
37569 " | \
37570   $at_diff - "$at_stdout" || at_failed=:
37571 at_func_check_status 0 $at_status "$at_srcdir/comprec.at:25"
37572
37573 $at_failed && at_func_log_failure
37574 $at_traceon; }
37575
37576               { $at_traceoff
37577 $as_echo "$at_srcdir/comprec.at:25:
37578 mkdir posix
37579 (cd posix
37580 TEST_TAR_FORMAT=posix
37581 export TEST_TAR_FORMAT
37582 TAR_OPTIONS=\"-H posix\"
37583 export TAR_OPTIONS
37584 rm -rf *
37585
37586
37587 cat /dev/null | gzip - > /dev/null 2>&1 || exit 77
37588
37589 genfile --length 10240 --file file1
37590 echo \"separator\"
37591 tar cfz archive file1
37592 echo \"separator\"
37593 mv file1 orig
37594 tar xfv archive --warning=no-timestamp
37595 cmp orig file1
37596 )"
37597 echo comprec.at:25 >"$at_check_line_file"
37598
37599 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
37600    false; }; then
37601   ( $at_traceon;
37602 mkdir posix
37603 (cd posix
37604 TEST_TAR_FORMAT=posix
37605 export TEST_TAR_FORMAT
37606 TAR_OPTIONS="-H posix"
37607 export TAR_OPTIONS
37608 rm -rf *
37609
37610
37611 cat /dev/null | gzip - > /dev/null 2>&1 || exit 77
37612
37613 genfile --length 10240 --file file1
37614 echo "separator"
37615 tar cfz archive file1
37616 echo "separator"
37617 mv file1 orig
37618 tar xfv archive --warning=no-timestamp
37619 cmp orig file1
37620 ) ) >"$at_stdout" 2>"$at_stder1"
37621   at_func_filter_trace $?
37622 else
37623   ( :;
37624 mkdir posix
37625 (cd posix
37626 TEST_TAR_FORMAT=posix
37627 export TEST_TAR_FORMAT
37628 TAR_OPTIONS="-H posix"
37629 export TAR_OPTIONS
37630 rm -rf *
37631
37632
37633 cat /dev/null | gzip - > /dev/null 2>&1 || exit 77
37634
37635 genfile --length 10240 --file file1
37636 echo "separator"
37637 tar cfz archive file1
37638 echo "separator"
37639 mv file1 orig
37640 tar xfv archive --warning=no-timestamp
37641 cmp orig file1
37642 ) ) >"$at_stdout" 2>"$at_stderr"
37643 fi
37644 at_status=$?
37645 at_failed=false
37646 at_func_diff_devnull "$at_stderr" || at_failed=:
37647 echo >>"$at_stdout"; $as_echo "separator
37648 separator
37649 file1
37650 " | \
37651   $at_diff - "$at_stdout" || at_failed=:
37652 at_func_check_status 0 $at_status "$at_srcdir/comprec.at:25"
37653
37654 $at_failed && at_func_log_failure
37655 $at_traceon; }
37656
37657               { $at_traceoff
37658 $as_echo "$at_srcdir/comprec.at:25:
37659 mkdir gnu
37660 (cd gnu
37661 TEST_TAR_FORMAT=gnu
37662 export TEST_TAR_FORMAT
37663 TAR_OPTIONS=\"-H gnu\"
37664 export TAR_OPTIONS
37665 rm -rf *
37666
37667
37668 cat /dev/null | gzip - > /dev/null 2>&1 || exit 77
37669
37670 genfile --length 10240 --file file1
37671 echo \"separator\"
37672 tar cfz archive file1
37673 echo \"separator\"
37674 mv file1 orig
37675 tar xfv archive --warning=no-timestamp
37676 cmp orig file1
37677 )"
37678 echo comprec.at:25 >"$at_check_line_file"
37679
37680 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
37681    false; }; then
37682   ( $at_traceon;
37683 mkdir gnu
37684 (cd gnu
37685 TEST_TAR_FORMAT=gnu
37686 export TEST_TAR_FORMAT
37687 TAR_OPTIONS="-H gnu"
37688 export TAR_OPTIONS
37689 rm -rf *
37690
37691
37692 cat /dev/null | gzip - > /dev/null 2>&1 || exit 77
37693
37694 genfile --length 10240 --file file1
37695 echo "separator"
37696 tar cfz archive file1
37697 echo "separator"
37698 mv file1 orig
37699 tar xfv archive --warning=no-timestamp
37700 cmp orig file1
37701 ) ) >"$at_stdout" 2>"$at_stder1"
37702   at_func_filter_trace $?
37703 else
37704   ( :;
37705 mkdir gnu
37706 (cd gnu
37707 TEST_TAR_FORMAT=gnu
37708 export TEST_TAR_FORMAT
37709 TAR_OPTIONS="-H gnu"
37710 export TAR_OPTIONS
37711 rm -rf *
37712
37713
37714 cat /dev/null | gzip - > /dev/null 2>&1 || exit 77
37715
37716 genfile --length 10240 --file file1
37717 echo "separator"
37718 tar cfz archive file1
37719 echo "separator"
37720 mv file1 orig
37721 tar xfv archive --warning=no-timestamp
37722 cmp orig file1
37723 ) ) >"$at_stdout" 2>"$at_stderr"
37724 fi
37725 at_status=$?
37726 at_failed=false
37727 at_func_diff_devnull "$at_stderr" || at_failed=:
37728 echo >>"$at_stdout"; $as_echo "separator
37729 separator
37730 file1
37731 " | \
37732   $at_diff - "$at_stdout" || at_failed=:
37733 at_func_check_status 0 $at_status "$at_srcdir/comprec.at:25"
37734
37735 $at_failed && at_func_log_failure
37736 $at_traceon; }
37737
37738
37739
37740
37741   $at_traceoff
37742   $at_times_p && times >"$at_times_file"
37743 ) 5>&1 2>&1 | eval $at_tee_pipe
37744 at_status=`cat "$at_status_file"`
37745 #AT_STOP_107
37746 #AT_START_108
37747 # 108. shortfile.at:26: short input files
37748 at_setup_line='shortfile.at:26'
37749 at_desc="short input files"
37750 $at_quiet $as_echo_n "108: $at_desc                              "
37751 at_xfail=no
37752       test -f $XFAILFILE && at_xfail=yes
37753 echo "#                             -*- compilation -*-" >> "$at_group_log"
37754 (
37755   $as_echo "108. shortfile.at:26: testing ..."
37756   $at_traceon
37757
37758
37759
37760
37761
37762   { $at_traceoff
37763 $as_echo "$at_srcdir/shortfile.at:29:
37764 mkdir gnu
37765 (cd gnu
37766 TEST_TAR_FORMAT=gnu
37767 export TEST_TAR_FORMAT
37768 TAR_OPTIONS=\"-H gnu\"
37769 export TAR_OPTIONS
37770 rm -rf *
37771
37772 genfile --length 511 --file foo || exit 5
37773 tar tf foo
37774 )"
37775 echo shortfile.at:29 >"$at_check_line_file"
37776
37777 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
37778    false; }; then
37779   ( $at_traceon;
37780 mkdir gnu
37781 (cd gnu
37782 TEST_TAR_FORMAT=gnu
37783 export TEST_TAR_FORMAT
37784 TAR_OPTIONS="-H gnu"
37785 export TAR_OPTIONS
37786 rm -rf *
37787
37788 genfile --length 511 --file foo || exit 5
37789 tar tf foo
37790 ) ) >"$at_stdout" 2>"$at_stder1"
37791   at_func_filter_trace $?
37792 else
37793   ( :;
37794 mkdir gnu
37795 (cd gnu
37796 TEST_TAR_FORMAT=gnu
37797 export TEST_TAR_FORMAT
37798 TAR_OPTIONS="-H gnu"
37799 export TAR_OPTIONS
37800 rm -rf *
37801
37802 genfile --length 511 --file foo || exit 5
37803 tar tf foo
37804 ) ) >"$at_stdout" 2>"$at_stderr"
37805 fi
37806 at_status=$?
37807 at_failed=false
37808 echo >>"$at_stderr"; $as_echo "tar: This does not look like a tar archive
37809 tar: Exiting with failure status due to previous errors
37810 " | \
37811   $at_diff - "$at_stderr" || at_failed=:
37812 at_func_diff_devnull "$at_stdout" || at_failed=:
37813 at_func_check_status 2 $at_status "$at_srcdir/shortfile.at:29"
37814
37815 $at_failed && at_func_log_failure
37816 $at_traceon; }
37817
37818
37819
37820
37821   $at_traceoff
37822   $at_times_p && times >"$at_times_file"
37823 ) 5>&1 2>&1 | eval $at_tee_pipe
37824 at_status=`cat "$at_status_file"`
37825 #AT_STOP_108
37826 #AT_START_109
37827 # 109. shortupd.at:29: updating short archives
37828 at_setup_line='shortupd.at:29'
37829 at_desc="updating short archives"
37830 $at_quiet $as_echo_n "109: $at_desc                        "
37831 at_xfail=no
37832       test -f $XFAILFILE && at_xfail=yes
37833 echo "#                             -*- compilation -*-" >> "$at_group_log"
37834 (
37835   $as_echo "109. shortupd.at:29: testing ..."
37836   $at_traceon
37837
37838
37839
37840
37841
37842   { $at_traceoff
37843 $as_echo "$at_srcdir/shortupd.at:32:
37844 mkdir v7
37845 (cd v7
37846 TEST_TAR_FORMAT=v7
37847 export TEST_TAR_FORMAT
37848 TAR_OPTIONS=\"-H v7\"
37849 export TAR_OPTIONS
37850 rm -rf *
37851
37852 touch foo
37853 tar uf archive foo
37854 )"
37855 echo shortupd.at:32 >"$at_check_line_file"
37856
37857 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
37858    false; }; then
37859   ( $at_traceon;
37860 mkdir v7
37861 (cd v7
37862 TEST_TAR_FORMAT=v7
37863 export TEST_TAR_FORMAT
37864 TAR_OPTIONS="-H v7"
37865 export TAR_OPTIONS
37866 rm -rf *
37867
37868 touch foo
37869 tar uf archive foo
37870 ) ) >"$at_stdout" 2>"$at_stder1"
37871   at_func_filter_trace $?
37872 else
37873   ( :;
37874 mkdir v7
37875 (cd v7
37876 TEST_TAR_FORMAT=v7
37877 export TEST_TAR_FORMAT
37878 TAR_OPTIONS="-H v7"
37879 export TAR_OPTIONS
37880 rm -rf *
37881
37882 touch foo
37883 tar uf archive foo
37884 ) ) >"$at_stdout" 2>"$at_stderr"
37885 fi
37886 at_status=$?
37887 at_failed=false
37888 at_func_diff_devnull "$at_stderr" || at_failed=:
37889 at_func_diff_devnull "$at_stdout" || at_failed=:
37890 at_func_check_status 0 $at_status "$at_srcdir/shortupd.at:32"
37891
37892 $at_failed && at_func_log_failure
37893 $at_traceon; }
37894
37895               { $at_traceoff
37896 $as_echo "$at_srcdir/shortupd.at:32:
37897 mkdir oldgnu
37898 (cd oldgnu
37899 TEST_TAR_FORMAT=oldgnu
37900 export TEST_TAR_FORMAT
37901 TAR_OPTIONS=\"-H oldgnu\"
37902 export TAR_OPTIONS
37903 rm -rf *
37904
37905 touch foo
37906 tar uf archive foo
37907 )"
37908 echo shortupd.at:32 >"$at_check_line_file"
37909
37910 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
37911    false; }; then
37912   ( $at_traceon;
37913 mkdir oldgnu
37914 (cd oldgnu
37915 TEST_TAR_FORMAT=oldgnu
37916 export TEST_TAR_FORMAT
37917 TAR_OPTIONS="-H oldgnu"
37918 export TAR_OPTIONS
37919 rm -rf *
37920
37921 touch foo
37922 tar uf archive foo
37923 ) ) >"$at_stdout" 2>"$at_stder1"
37924   at_func_filter_trace $?
37925 else
37926   ( :;
37927 mkdir oldgnu
37928 (cd oldgnu
37929 TEST_TAR_FORMAT=oldgnu
37930 export TEST_TAR_FORMAT
37931 TAR_OPTIONS="-H oldgnu"
37932 export TAR_OPTIONS
37933 rm -rf *
37934
37935 touch foo
37936 tar uf archive foo
37937 ) ) >"$at_stdout" 2>"$at_stderr"
37938 fi
37939 at_status=$?
37940 at_failed=false
37941 at_func_diff_devnull "$at_stderr" || at_failed=:
37942 at_func_diff_devnull "$at_stdout" || at_failed=:
37943 at_func_check_status 0 $at_status "$at_srcdir/shortupd.at:32"
37944
37945 $at_failed && at_func_log_failure
37946 $at_traceon; }
37947
37948               { $at_traceoff
37949 $as_echo "$at_srcdir/shortupd.at:32:
37950 mkdir ustar
37951 (cd ustar
37952 TEST_TAR_FORMAT=ustar
37953 export TEST_TAR_FORMAT
37954 TAR_OPTIONS=\"-H ustar\"
37955 export TAR_OPTIONS
37956 rm -rf *
37957
37958 touch foo
37959 tar uf archive foo
37960 )"
37961 echo shortupd.at:32 >"$at_check_line_file"
37962
37963 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
37964    false; }; then
37965   ( $at_traceon;
37966 mkdir ustar
37967 (cd ustar
37968 TEST_TAR_FORMAT=ustar
37969 export TEST_TAR_FORMAT
37970 TAR_OPTIONS="-H ustar"
37971 export TAR_OPTIONS
37972 rm -rf *
37973
37974 touch foo
37975 tar uf archive foo
37976 ) ) >"$at_stdout" 2>"$at_stder1"
37977   at_func_filter_trace $?
37978 else
37979   ( :;
37980 mkdir ustar
37981 (cd ustar
37982 TEST_TAR_FORMAT=ustar
37983 export TEST_TAR_FORMAT
37984 TAR_OPTIONS="-H ustar"
37985 export TAR_OPTIONS
37986 rm -rf *
37987
37988 touch foo
37989 tar uf archive foo
37990 ) ) >"$at_stdout" 2>"$at_stderr"
37991 fi
37992 at_status=$?
37993 at_failed=false
37994 at_func_diff_devnull "$at_stderr" || at_failed=:
37995 at_func_diff_devnull "$at_stdout" || at_failed=:
37996 at_func_check_status 0 $at_status "$at_srcdir/shortupd.at:32"
37997
37998 $at_failed && at_func_log_failure
37999 $at_traceon; }
38000
38001               { $at_traceoff
38002 $as_echo "$at_srcdir/shortupd.at:32:
38003 mkdir posix
38004 (cd posix
38005 TEST_TAR_FORMAT=posix
38006 export TEST_TAR_FORMAT
38007 TAR_OPTIONS=\"-H posix\"
38008 export TAR_OPTIONS
38009 rm -rf *
38010
38011 touch foo
38012 tar uf archive foo
38013 )"
38014 echo shortupd.at:32 >"$at_check_line_file"
38015
38016 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
38017    false; }; then
38018   ( $at_traceon;
38019 mkdir posix
38020 (cd posix
38021 TEST_TAR_FORMAT=posix
38022 export TEST_TAR_FORMAT
38023 TAR_OPTIONS="-H posix"
38024 export TAR_OPTIONS
38025 rm -rf *
38026
38027 touch foo
38028 tar uf archive foo
38029 ) ) >"$at_stdout" 2>"$at_stder1"
38030   at_func_filter_trace $?
38031 else
38032   ( :;
38033 mkdir posix
38034 (cd posix
38035 TEST_TAR_FORMAT=posix
38036 export TEST_TAR_FORMAT
38037 TAR_OPTIONS="-H posix"
38038 export TAR_OPTIONS
38039 rm -rf *
38040
38041 touch foo
38042 tar uf archive foo
38043 ) ) >"$at_stdout" 2>"$at_stderr"
38044 fi
38045 at_status=$?
38046 at_failed=false
38047 at_func_diff_devnull "$at_stderr" || at_failed=:
38048 at_func_diff_devnull "$at_stdout" || at_failed=:
38049 at_func_check_status 0 $at_status "$at_srcdir/shortupd.at:32"
38050
38051 $at_failed && at_func_log_failure
38052 $at_traceon; }
38053
38054               { $at_traceoff
38055 $as_echo "$at_srcdir/shortupd.at:32:
38056 mkdir gnu
38057 (cd gnu
38058 TEST_TAR_FORMAT=gnu
38059 export TEST_TAR_FORMAT
38060 TAR_OPTIONS=\"-H gnu\"
38061 export TAR_OPTIONS
38062 rm -rf *
38063
38064 touch foo
38065 tar uf archive foo
38066 )"
38067 echo shortupd.at:32 >"$at_check_line_file"
38068
38069 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
38070    false; }; then
38071   ( $at_traceon;
38072 mkdir gnu
38073 (cd gnu
38074 TEST_TAR_FORMAT=gnu
38075 export TEST_TAR_FORMAT
38076 TAR_OPTIONS="-H gnu"
38077 export TAR_OPTIONS
38078 rm -rf *
38079
38080 touch foo
38081 tar uf archive foo
38082 ) ) >"$at_stdout" 2>"$at_stder1"
38083   at_func_filter_trace $?
38084 else
38085   ( :;
38086 mkdir gnu
38087 (cd gnu
38088 TEST_TAR_FORMAT=gnu
38089 export TEST_TAR_FORMAT
38090 TAR_OPTIONS="-H gnu"
38091 export TAR_OPTIONS
38092 rm -rf *
38093
38094 touch foo
38095 tar uf archive foo
38096 ) ) >"$at_stdout" 2>"$at_stderr"
38097 fi
38098 at_status=$?
38099 at_failed=false
38100 at_func_diff_devnull "$at_stderr" || at_failed=:
38101 at_func_diff_devnull "$at_stdout" || at_failed=:
38102 at_func_check_status 0 $at_status "$at_srcdir/shortupd.at:32"
38103
38104 $at_failed && at_func_log_failure
38105 $at_traceon; }
38106
38107
38108
38109
38110   $at_traceoff
38111   $at_times_p && times >"$at_times_file"
38112 ) 5>&1 2>&1 | eval $at_tee_pipe
38113 at_status=`cat "$at_status_file"`
38114 #AT_STOP_109
38115 #AT_START_110
38116 # 110. truncate.at:29: truncate
38117 at_setup_line='truncate.at:29'
38118 at_desc="truncate"
38119 $at_quiet $as_echo_n "110: $at_desc                                       "
38120 at_xfail=no
38121       test -f $XFAILFILE && at_xfail=yes
38122 echo "#                             -*- compilation -*-" >> "$at_group_log"
38123 (
38124   $as_echo "110. truncate.at:29: testing ..."
38125   $at_traceon
38126
38127
38128
38129
38130
38131   { $at_traceoff
38132 $as_echo "$at_srcdir/truncate.at:32:
38133 mkdir v7
38134 (cd v7
38135 TEST_TAR_FORMAT=v7
38136 export TEST_TAR_FORMAT
38137 TAR_OPTIONS=\"-H v7\"
38138 export TAR_OPTIONS
38139 rm -rf *
38140
38141 genfile --file foo --length 200k
38142 genfile --file baz
38143 genfile --run --checkpoint 10 --length 195k --truncate foo -- tar --checkpoint --checkpoint-action=echo --checkpoint-action=sleep=1 -vcf bar foo baz
38144 echo Exit status: \$?
38145 echo separator
38146 genfile --file foo --seek 195k --length 5k --pattern=zeros
38147 tar dvf bar)"
38148 echo truncate.at:32 >"$at_check_line_file"
38149
38150 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
38151    false; }; then
38152   ( $at_traceon;
38153 mkdir v7
38154 (cd v7
38155 TEST_TAR_FORMAT=v7
38156 export TEST_TAR_FORMAT
38157 TAR_OPTIONS="-H v7"
38158 export TAR_OPTIONS
38159 rm -rf *
38160
38161 genfile --file foo --length 200k
38162 genfile --file baz
38163 genfile --run --checkpoint 10 --length 195k --truncate foo -- tar --checkpoint --checkpoint-action=echo --checkpoint-action=sleep=1 -vcf bar foo baz
38164 echo Exit status: $?
38165 echo separator
38166 genfile --file foo --seek 195k --length 5k --pattern=zeros
38167 tar dvf bar) ) >"$at_stdout" 2>"$at_stder1"
38168   at_func_filter_trace $?
38169 else
38170   ( :;
38171 mkdir v7
38172 (cd v7
38173 TEST_TAR_FORMAT=v7
38174 export TEST_TAR_FORMAT
38175 TAR_OPTIONS="-H v7"
38176 export TAR_OPTIONS
38177 rm -rf *
38178
38179 genfile --file foo --length 200k
38180 genfile --file baz
38181 genfile --run --checkpoint 10 --length 195k --truncate foo -- tar --checkpoint --checkpoint-action=echo --checkpoint-action=sleep=1 -vcf bar foo baz
38182 echo Exit status: $?
38183 echo separator
38184 genfile --file foo --seek 195k --length 5k --pattern=zeros
38185 tar dvf bar) ) >"$at_stdout" 2>"$at_stderr"
38186 fi
38187 at_status=$?
38188 at_failed=false
38189 echo >>"$at_stderr"; $as_echo "tar: foo: File shrank by 5120 bytes; padding with zeros
38190 " | \
38191   $at_diff - "$at_stderr" || at_failed=:
38192 echo >>"$at_stdout"; $as_echo "foo
38193 baz
38194 Exit status: 1
38195 separator
38196 foo
38197 foo: Mod time differs
38198 baz
38199 " | \
38200   $at_diff - "$at_stdout" || at_failed=:
38201 at_func_check_status 1 $at_status "$at_srcdir/truncate.at:32"
38202
38203 $at_failed && at_func_log_failure
38204 $at_traceon; }
38205
38206               { $at_traceoff
38207 $as_echo "$at_srcdir/truncate.at:32:
38208 mkdir oldgnu
38209 (cd oldgnu
38210 TEST_TAR_FORMAT=oldgnu
38211 export TEST_TAR_FORMAT
38212 TAR_OPTIONS=\"-H oldgnu\"
38213 export TAR_OPTIONS
38214 rm -rf *
38215
38216 genfile --file foo --length 200k
38217 genfile --file baz
38218 genfile --run --checkpoint 10 --length 195k --truncate foo -- tar --checkpoint --checkpoint-action=echo --checkpoint-action=sleep=1 -vcf bar foo baz
38219 echo Exit status: \$?
38220 echo separator
38221 genfile --file foo --seek 195k --length 5k --pattern=zeros
38222 tar dvf bar)"
38223 echo truncate.at:32 >"$at_check_line_file"
38224
38225 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
38226    false; }; then
38227   ( $at_traceon;
38228 mkdir oldgnu
38229 (cd oldgnu
38230 TEST_TAR_FORMAT=oldgnu
38231 export TEST_TAR_FORMAT
38232 TAR_OPTIONS="-H oldgnu"
38233 export TAR_OPTIONS
38234 rm -rf *
38235
38236 genfile --file foo --length 200k
38237 genfile --file baz
38238 genfile --run --checkpoint 10 --length 195k --truncate foo -- tar --checkpoint --checkpoint-action=echo --checkpoint-action=sleep=1 -vcf bar foo baz
38239 echo Exit status: $?
38240 echo separator
38241 genfile --file foo --seek 195k --length 5k --pattern=zeros
38242 tar dvf bar) ) >"$at_stdout" 2>"$at_stder1"
38243   at_func_filter_trace $?
38244 else
38245   ( :;
38246 mkdir oldgnu
38247 (cd oldgnu
38248 TEST_TAR_FORMAT=oldgnu
38249 export TEST_TAR_FORMAT
38250 TAR_OPTIONS="-H oldgnu"
38251 export TAR_OPTIONS
38252 rm -rf *
38253
38254 genfile --file foo --length 200k
38255 genfile --file baz
38256 genfile --run --checkpoint 10 --length 195k --truncate foo -- tar --checkpoint --checkpoint-action=echo --checkpoint-action=sleep=1 -vcf bar foo baz
38257 echo Exit status: $?
38258 echo separator
38259 genfile --file foo --seek 195k --length 5k --pattern=zeros
38260 tar dvf bar) ) >"$at_stdout" 2>"$at_stderr"
38261 fi
38262 at_status=$?
38263 at_failed=false
38264 echo >>"$at_stderr"; $as_echo "tar: foo: File shrank by 5120 bytes; padding with zeros
38265 " | \
38266   $at_diff - "$at_stderr" || at_failed=:
38267 echo >>"$at_stdout"; $as_echo "foo
38268 baz
38269 Exit status: 1
38270 separator
38271 foo
38272 foo: Mod time differs
38273 baz
38274 " | \
38275   $at_diff - "$at_stdout" || at_failed=:
38276 at_func_check_status 1 $at_status "$at_srcdir/truncate.at:32"
38277
38278 $at_failed && at_func_log_failure
38279 $at_traceon; }
38280
38281               { $at_traceoff
38282 $as_echo "$at_srcdir/truncate.at:32:
38283 mkdir ustar
38284 (cd ustar
38285 TEST_TAR_FORMAT=ustar
38286 export TEST_TAR_FORMAT
38287 TAR_OPTIONS=\"-H ustar\"
38288 export TAR_OPTIONS
38289 rm -rf *
38290
38291 genfile --file foo --length 200k
38292 genfile --file baz
38293 genfile --run --checkpoint 10 --length 195k --truncate foo -- tar --checkpoint --checkpoint-action=echo --checkpoint-action=sleep=1 -vcf bar foo baz
38294 echo Exit status: \$?
38295 echo separator
38296 genfile --file foo --seek 195k --length 5k --pattern=zeros
38297 tar dvf bar)"
38298 echo truncate.at:32 >"$at_check_line_file"
38299
38300 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
38301    false; }; then
38302   ( $at_traceon;
38303 mkdir ustar
38304 (cd ustar
38305 TEST_TAR_FORMAT=ustar
38306 export TEST_TAR_FORMAT
38307 TAR_OPTIONS="-H ustar"
38308 export TAR_OPTIONS
38309 rm -rf *
38310
38311 genfile --file foo --length 200k
38312 genfile --file baz
38313 genfile --run --checkpoint 10 --length 195k --truncate foo -- tar --checkpoint --checkpoint-action=echo --checkpoint-action=sleep=1 -vcf bar foo baz
38314 echo Exit status: $?
38315 echo separator
38316 genfile --file foo --seek 195k --length 5k --pattern=zeros
38317 tar dvf bar) ) >"$at_stdout" 2>"$at_stder1"
38318   at_func_filter_trace $?
38319 else
38320   ( :;
38321 mkdir ustar
38322 (cd ustar
38323 TEST_TAR_FORMAT=ustar
38324 export TEST_TAR_FORMAT
38325 TAR_OPTIONS="-H ustar"
38326 export TAR_OPTIONS
38327 rm -rf *
38328
38329 genfile --file foo --length 200k
38330 genfile --file baz
38331 genfile --run --checkpoint 10 --length 195k --truncate foo -- tar --checkpoint --checkpoint-action=echo --checkpoint-action=sleep=1 -vcf bar foo baz
38332 echo Exit status: $?
38333 echo separator
38334 genfile --file foo --seek 195k --length 5k --pattern=zeros
38335 tar dvf bar) ) >"$at_stdout" 2>"$at_stderr"
38336 fi
38337 at_status=$?
38338 at_failed=false
38339 echo >>"$at_stderr"; $as_echo "tar: foo: File shrank by 5120 bytes; padding with zeros
38340 " | \
38341   $at_diff - "$at_stderr" || at_failed=:
38342 echo >>"$at_stdout"; $as_echo "foo
38343 baz
38344 Exit status: 1
38345 separator
38346 foo
38347 foo: Mod time differs
38348 baz
38349 " | \
38350   $at_diff - "$at_stdout" || at_failed=:
38351 at_func_check_status 1 $at_status "$at_srcdir/truncate.at:32"
38352
38353 $at_failed && at_func_log_failure
38354 $at_traceon; }
38355
38356               { $at_traceoff
38357 $as_echo "$at_srcdir/truncate.at:32:
38358 mkdir posix
38359 (cd posix
38360 TEST_TAR_FORMAT=posix
38361 export TEST_TAR_FORMAT
38362 TAR_OPTIONS=\"-H posix\"
38363 export TAR_OPTIONS
38364 rm -rf *
38365
38366 genfile --file foo --length 200k
38367 genfile --file baz
38368 genfile --run --checkpoint 10 --length 195k --truncate foo -- tar --checkpoint --checkpoint-action=echo --checkpoint-action=sleep=1 -vcf bar foo baz
38369 echo Exit status: \$?
38370 echo separator
38371 genfile --file foo --seek 195k --length 5k --pattern=zeros
38372 tar dvf bar)"
38373 echo truncate.at:32 >"$at_check_line_file"
38374
38375 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
38376    false; }; then
38377   ( $at_traceon;
38378 mkdir posix
38379 (cd posix
38380 TEST_TAR_FORMAT=posix
38381 export TEST_TAR_FORMAT
38382 TAR_OPTIONS="-H posix"
38383 export TAR_OPTIONS
38384 rm -rf *
38385
38386 genfile --file foo --length 200k
38387 genfile --file baz
38388 genfile --run --checkpoint 10 --length 195k --truncate foo -- tar --checkpoint --checkpoint-action=echo --checkpoint-action=sleep=1 -vcf bar foo baz
38389 echo Exit status: $?
38390 echo separator
38391 genfile --file foo --seek 195k --length 5k --pattern=zeros
38392 tar dvf bar) ) >"$at_stdout" 2>"$at_stder1"
38393   at_func_filter_trace $?
38394 else
38395   ( :;
38396 mkdir posix
38397 (cd posix
38398 TEST_TAR_FORMAT=posix
38399 export TEST_TAR_FORMAT
38400 TAR_OPTIONS="-H posix"
38401 export TAR_OPTIONS
38402 rm -rf *
38403
38404 genfile --file foo --length 200k
38405 genfile --file baz
38406 genfile --run --checkpoint 10 --length 195k --truncate foo -- tar --checkpoint --checkpoint-action=echo --checkpoint-action=sleep=1 -vcf bar foo baz
38407 echo Exit status: $?
38408 echo separator
38409 genfile --file foo --seek 195k --length 5k --pattern=zeros
38410 tar dvf bar) ) >"$at_stdout" 2>"$at_stderr"
38411 fi
38412 at_status=$?
38413 at_failed=false
38414 echo >>"$at_stderr"; $as_echo "tar: foo: File shrank by 5120 bytes; padding with zeros
38415 " | \
38416   $at_diff - "$at_stderr" || at_failed=:
38417 echo >>"$at_stdout"; $as_echo "foo
38418 baz
38419 Exit status: 1
38420 separator
38421 foo
38422 foo: Mod time differs
38423 baz
38424 " | \
38425   $at_diff - "$at_stdout" || at_failed=:
38426 at_func_check_status 1 $at_status "$at_srcdir/truncate.at:32"
38427
38428 $at_failed && at_func_log_failure
38429 $at_traceon; }
38430
38431               { $at_traceoff
38432 $as_echo "$at_srcdir/truncate.at:32:
38433 mkdir gnu
38434 (cd gnu
38435 TEST_TAR_FORMAT=gnu
38436 export TEST_TAR_FORMAT
38437 TAR_OPTIONS=\"-H gnu\"
38438 export TAR_OPTIONS
38439 rm -rf *
38440
38441 genfile --file foo --length 200k
38442 genfile --file baz
38443 genfile --run --checkpoint 10 --length 195k --truncate foo -- tar --checkpoint --checkpoint-action=echo --checkpoint-action=sleep=1 -vcf bar foo baz
38444 echo Exit status: \$?
38445 echo separator
38446 genfile --file foo --seek 195k --length 5k --pattern=zeros
38447 tar dvf bar)"
38448 echo truncate.at:32 >"$at_check_line_file"
38449
38450 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
38451    false; }; then
38452   ( $at_traceon;
38453 mkdir gnu
38454 (cd gnu
38455 TEST_TAR_FORMAT=gnu
38456 export TEST_TAR_FORMAT
38457 TAR_OPTIONS="-H gnu"
38458 export TAR_OPTIONS
38459 rm -rf *
38460
38461 genfile --file foo --length 200k
38462 genfile --file baz
38463 genfile --run --checkpoint 10 --length 195k --truncate foo -- tar --checkpoint --checkpoint-action=echo --checkpoint-action=sleep=1 -vcf bar foo baz
38464 echo Exit status: $?
38465 echo separator
38466 genfile --file foo --seek 195k --length 5k --pattern=zeros
38467 tar dvf bar) ) >"$at_stdout" 2>"$at_stder1"
38468   at_func_filter_trace $?
38469 else
38470   ( :;
38471 mkdir gnu
38472 (cd gnu
38473 TEST_TAR_FORMAT=gnu
38474 export TEST_TAR_FORMAT
38475 TAR_OPTIONS="-H gnu"
38476 export TAR_OPTIONS
38477 rm -rf *
38478
38479 genfile --file foo --length 200k
38480 genfile --file baz
38481 genfile --run --checkpoint 10 --length 195k --truncate foo -- tar --checkpoint --checkpoint-action=echo --checkpoint-action=sleep=1 -vcf bar foo baz
38482 echo Exit status: $?
38483 echo separator
38484 genfile --file foo --seek 195k --length 5k --pattern=zeros
38485 tar dvf bar) ) >"$at_stdout" 2>"$at_stderr"
38486 fi
38487 at_status=$?
38488 at_failed=false
38489 echo >>"$at_stderr"; $as_echo "tar: foo: File shrank by 5120 bytes; padding with zeros
38490 " | \
38491   $at_diff - "$at_stderr" || at_failed=:
38492 echo >>"$at_stdout"; $as_echo "foo
38493 baz
38494 Exit status: 1
38495 separator
38496 foo
38497 foo: Mod time differs
38498 baz
38499 " | \
38500   $at_diff - "$at_stdout" || at_failed=:
38501 at_func_check_status 1 $at_status "$at_srcdir/truncate.at:32"
38502
38503 $at_failed && at_func_log_failure
38504 $at_traceon; }
38505
38506
38507
38508
38509   $at_traceoff
38510   $at_times_p && times >"$at_times_file"
38511 ) 5>&1 2>&1 | eval $at_tee_pipe
38512 at_status=`cat "$at_status_file"`
38513 #AT_STOP_110
38514 #AT_START_111
38515 # 111. grow.at:24: grow
38516 at_setup_line='grow.at:24'
38517 at_desc="grow"
38518 $at_quiet $as_echo_n "111: $at_desc                                           "
38519 at_xfail=no
38520       test -f $XFAILFILE && at_xfail=yes
38521 echo "#                             -*- compilation -*-" >> "$at_group_log"
38522 (
38523   $as_echo "111. grow.at:24: testing ..."
38524   $at_traceon
38525
38526
38527
38528
38529
38530   { $at_traceoff
38531 $as_echo "$at_srcdir/grow.at:27:
38532 mkdir v7
38533 (cd v7
38534 TEST_TAR_FORMAT=v7
38535 export TEST_TAR_FORMAT
38536 TAR_OPTIONS=\"-H v7\"
38537 export TAR_OPTIONS
38538 rm -rf *
38539
38540 genfile --file foo --length 50000k
38541 genfile --file baz
38542 genfile --run --checkpoint 10 --length 1024 --append foo -- tar --checkpoint -vcf bar foo baz
38543 )"
38544 echo grow.at:27 >"$at_check_line_file"
38545
38546 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
38547    false; }; then
38548   ( $at_traceon;
38549 mkdir v7
38550 (cd v7
38551 TEST_TAR_FORMAT=v7
38552 export TEST_TAR_FORMAT
38553 TAR_OPTIONS="-H v7"
38554 export TAR_OPTIONS
38555 rm -rf *
38556
38557 genfile --file foo --length 50000k
38558 genfile --file baz
38559 genfile --run --checkpoint 10 --length 1024 --append foo -- tar --checkpoint -vcf bar foo baz
38560 ) ) >"$at_stdout" 2>"$at_stder1"
38561   at_func_filter_trace $?
38562 else
38563   ( :;
38564 mkdir v7
38565 (cd v7
38566 TEST_TAR_FORMAT=v7
38567 export TEST_TAR_FORMAT
38568 TAR_OPTIONS="-H v7"
38569 export TAR_OPTIONS
38570 rm -rf *
38571
38572 genfile --file foo --length 50000k
38573 genfile --file baz
38574 genfile --run --checkpoint 10 --length 1024 --append foo -- tar --checkpoint -vcf bar foo baz
38575 ) ) >"$at_stdout" 2>"$at_stderr"
38576 fi
38577 at_status=$?
38578 at_failed=false
38579 echo >>"$at_stderr"; $as_echo "tar: foo: file changed as we read it
38580 " | \
38581   $at_diff - "$at_stderr" || at_failed=:
38582 echo >>"$at_stdout"; $as_echo "foo
38583 baz
38584 " | \
38585   $at_diff - "$at_stdout" || at_failed=:
38586 at_func_check_status 1 $at_status "$at_srcdir/grow.at:27"
38587
38588 $at_failed && at_func_log_failure
38589 $at_traceon; }
38590
38591               { $at_traceoff
38592 $as_echo "$at_srcdir/grow.at:27:
38593 mkdir oldgnu
38594 (cd oldgnu
38595 TEST_TAR_FORMAT=oldgnu
38596 export TEST_TAR_FORMAT
38597 TAR_OPTIONS=\"-H oldgnu\"
38598 export TAR_OPTIONS
38599 rm -rf *
38600
38601 genfile --file foo --length 50000k
38602 genfile --file baz
38603 genfile --run --checkpoint 10 --length 1024 --append foo -- tar --checkpoint -vcf bar foo baz
38604 )"
38605 echo grow.at:27 >"$at_check_line_file"
38606
38607 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
38608    false; }; then
38609   ( $at_traceon;
38610 mkdir oldgnu
38611 (cd oldgnu
38612 TEST_TAR_FORMAT=oldgnu
38613 export TEST_TAR_FORMAT
38614 TAR_OPTIONS="-H oldgnu"
38615 export TAR_OPTIONS
38616 rm -rf *
38617
38618 genfile --file foo --length 50000k
38619 genfile --file baz
38620 genfile --run --checkpoint 10 --length 1024 --append foo -- tar --checkpoint -vcf bar foo baz
38621 ) ) >"$at_stdout" 2>"$at_stder1"
38622   at_func_filter_trace $?
38623 else
38624   ( :;
38625 mkdir oldgnu
38626 (cd oldgnu
38627 TEST_TAR_FORMAT=oldgnu
38628 export TEST_TAR_FORMAT
38629 TAR_OPTIONS="-H oldgnu"
38630 export TAR_OPTIONS
38631 rm -rf *
38632
38633 genfile --file foo --length 50000k
38634 genfile --file baz
38635 genfile --run --checkpoint 10 --length 1024 --append foo -- tar --checkpoint -vcf bar foo baz
38636 ) ) >"$at_stdout" 2>"$at_stderr"
38637 fi
38638 at_status=$?
38639 at_failed=false
38640 echo >>"$at_stderr"; $as_echo "tar: foo: file changed as we read it
38641 " | \
38642   $at_diff - "$at_stderr" || at_failed=:
38643 echo >>"$at_stdout"; $as_echo "foo
38644 baz
38645 " | \
38646   $at_diff - "$at_stdout" || at_failed=:
38647 at_func_check_status 1 $at_status "$at_srcdir/grow.at:27"
38648
38649 $at_failed && at_func_log_failure
38650 $at_traceon; }
38651
38652               { $at_traceoff
38653 $as_echo "$at_srcdir/grow.at:27:
38654 mkdir ustar
38655 (cd ustar
38656 TEST_TAR_FORMAT=ustar
38657 export TEST_TAR_FORMAT
38658 TAR_OPTIONS=\"-H ustar\"
38659 export TAR_OPTIONS
38660 rm -rf *
38661
38662 genfile --file foo --length 50000k
38663 genfile --file baz
38664 genfile --run --checkpoint 10 --length 1024 --append foo -- tar --checkpoint -vcf bar foo baz
38665 )"
38666 echo grow.at:27 >"$at_check_line_file"
38667
38668 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
38669    false; }; then
38670   ( $at_traceon;
38671 mkdir ustar
38672 (cd ustar
38673 TEST_TAR_FORMAT=ustar
38674 export TEST_TAR_FORMAT
38675 TAR_OPTIONS="-H ustar"
38676 export TAR_OPTIONS
38677 rm -rf *
38678
38679 genfile --file foo --length 50000k
38680 genfile --file baz
38681 genfile --run --checkpoint 10 --length 1024 --append foo -- tar --checkpoint -vcf bar foo baz
38682 ) ) >"$at_stdout" 2>"$at_stder1"
38683   at_func_filter_trace $?
38684 else
38685   ( :;
38686 mkdir ustar
38687 (cd ustar
38688 TEST_TAR_FORMAT=ustar
38689 export TEST_TAR_FORMAT
38690 TAR_OPTIONS="-H ustar"
38691 export TAR_OPTIONS
38692 rm -rf *
38693
38694 genfile --file foo --length 50000k
38695 genfile --file baz
38696 genfile --run --checkpoint 10 --length 1024 --append foo -- tar --checkpoint -vcf bar foo baz
38697 ) ) >"$at_stdout" 2>"$at_stderr"
38698 fi
38699 at_status=$?
38700 at_failed=false
38701 echo >>"$at_stderr"; $as_echo "tar: foo: file changed as we read it
38702 " | \
38703   $at_diff - "$at_stderr" || at_failed=:
38704 echo >>"$at_stdout"; $as_echo "foo
38705 baz
38706 " | \
38707   $at_diff - "$at_stdout" || at_failed=:
38708 at_func_check_status 1 $at_status "$at_srcdir/grow.at:27"
38709
38710 $at_failed && at_func_log_failure
38711 $at_traceon; }
38712
38713               { $at_traceoff
38714 $as_echo "$at_srcdir/grow.at:27:
38715 mkdir posix
38716 (cd posix
38717 TEST_TAR_FORMAT=posix
38718 export TEST_TAR_FORMAT
38719 TAR_OPTIONS=\"-H posix\"
38720 export TAR_OPTIONS
38721 rm -rf *
38722
38723 genfile --file foo --length 50000k
38724 genfile --file baz
38725 genfile --run --checkpoint 10 --length 1024 --append foo -- tar --checkpoint -vcf bar foo baz
38726 )"
38727 echo grow.at:27 >"$at_check_line_file"
38728
38729 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
38730    false; }; then
38731   ( $at_traceon;
38732 mkdir posix
38733 (cd posix
38734 TEST_TAR_FORMAT=posix
38735 export TEST_TAR_FORMAT
38736 TAR_OPTIONS="-H posix"
38737 export TAR_OPTIONS
38738 rm -rf *
38739
38740 genfile --file foo --length 50000k
38741 genfile --file baz
38742 genfile --run --checkpoint 10 --length 1024 --append foo -- tar --checkpoint -vcf bar foo baz
38743 ) ) >"$at_stdout" 2>"$at_stder1"
38744   at_func_filter_trace $?
38745 else
38746   ( :;
38747 mkdir posix
38748 (cd posix
38749 TEST_TAR_FORMAT=posix
38750 export TEST_TAR_FORMAT
38751 TAR_OPTIONS="-H posix"
38752 export TAR_OPTIONS
38753 rm -rf *
38754
38755 genfile --file foo --length 50000k
38756 genfile --file baz
38757 genfile --run --checkpoint 10 --length 1024 --append foo -- tar --checkpoint -vcf bar foo baz
38758 ) ) >"$at_stdout" 2>"$at_stderr"
38759 fi
38760 at_status=$?
38761 at_failed=false
38762 echo >>"$at_stderr"; $as_echo "tar: foo: file changed as we read it
38763 " | \
38764   $at_diff - "$at_stderr" || at_failed=:
38765 echo >>"$at_stdout"; $as_echo "foo
38766 baz
38767 " | \
38768   $at_diff - "$at_stdout" || at_failed=:
38769 at_func_check_status 1 $at_status "$at_srcdir/grow.at:27"
38770
38771 $at_failed && at_func_log_failure
38772 $at_traceon; }
38773
38774               { $at_traceoff
38775 $as_echo "$at_srcdir/grow.at:27:
38776 mkdir gnu
38777 (cd gnu
38778 TEST_TAR_FORMAT=gnu
38779 export TEST_TAR_FORMAT
38780 TAR_OPTIONS=\"-H gnu\"
38781 export TAR_OPTIONS
38782 rm -rf *
38783
38784 genfile --file foo --length 50000k
38785 genfile --file baz
38786 genfile --run --checkpoint 10 --length 1024 --append foo -- tar --checkpoint -vcf bar foo baz
38787 )"
38788 echo grow.at:27 >"$at_check_line_file"
38789
38790 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
38791    false; }; then
38792   ( $at_traceon;
38793 mkdir gnu
38794 (cd gnu
38795 TEST_TAR_FORMAT=gnu
38796 export TEST_TAR_FORMAT
38797 TAR_OPTIONS="-H gnu"
38798 export TAR_OPTIONS
38799 rm -rf *
38800
38801 genfile --file foo --length 50000k
38802 genfile --file baz
38803 genfile --run --checkpoint 10 --length 1024 --append foo -- tar --checkpoint -vcf bar foo baz
38804 ) ) >"$at_stdout" 2>"$at_stder1"
38805   at_func_filter_trace $?
38806 else
38807   ( :;
38808 mkdir gnu
38809 (cd gnu
38810 TEST_TAR_FORMAT=gnu
38811 export TEST_TAR_FORMAT
38812 TAR_OPTIONS="-H gnu"
38813 export TAR_OPTIONS
38814 rm -rf *
38815
38816 genfile --file foo --length 50000k
38817 genfile --file baz
38818 genfile --run --checkpoint 10 --length 1024 --append foo -- tar --checkpoint -vcf bar foo baz
38819 ) ) >"$at_stdout" 2>"$at_stderr"
38820 fi
38821 at_status=$?
38822 at_failed=false
38823 echo >>"$at_stderr"; $as_echo "tar: foo: file changed as we read it
38824 " | \
38825   $at_diff - "$at_stderr" || at_failed=:
38826 echo >>"$at_stdout"; $as_echo "foo
38827 baz
38828 " | \
38829   $at_diff - "$at_stdout" || at_failed=:
38830 at_func_check_status 1 $at_status "$at_srcdir/grow.at:27"
38831
38832 $at_failed && at_func_log_failure
38833 $at_traceon; }
38834
38835
38836
38837
38838   $at_traceoff
38839   $at_times_p && times >"$at_times_file"
38840 ) 5>&1 2>&1 | eval $at_tee_pipe
38841 at_status=`cat "$at_status_file"`
38842 #AT_STOP_111
38843 #AT_START_112
38844 # 112. remfiles01.at:28: remove-files with compression
38845 at_setup_line='remfiles01.at:28'
38846 at_desc="remove-files with compression"
38847 $at_quiet $as_echo_n "112: $at_desc                  "
38848 at_xfail=no
38849 echo "#                             -*- compilation -*-" >> "$at_group_log"
38850 (
38851   $as_echo "112. remfiles01.at:28: testing ..."
38852   $at_traceon
38853
38854
38855
38856 unset TAR_OPTIONS
38857 { $at_traceoff
38858 $as_echo "$at_srcdir/remfiles01.at:32:
38859
38860 echo "test" > $$
38861 chmod 0 $$
38862 cat $$ > /dev/null 2>&1
38863 result=$?
38864 rm -f $$
38865 test $result -eq 0 && exit 77
38866
38867
38868 cat /dev/null | gzip - > /dev/null 2>&1 || exit 77
38869
38870
38871 case `(cat "$at_myself" 2>&3 | :) 3>&1 >/dev/null` in #(
38872 ?*) exit 77;;
38873 esac
38874
38875
38876 test -z "`sort < /dev/null 2>&1`" || exit 77
38877
38878
38879 mkdir dir
38880 cd dir
38881 genfile --file a --length 0
38882 chmod 0 a
38883 genfile --file b
38884 mkdir c
38885
38886 # Depending on when the SIGPIPE gets delivered, the invocation below
38887 # may finish with either
38888 #  tar: a: Cannot write: Broken pipe
38889 # or
38890 #  tar: Child returned status 2
38891
38892 # Discard diagnostics that some shells generate about broken pipes,
38893 # and discard all of tar's diagnostics except for the ones saying \"(child)\".
38894 # Gzip's exit code is propagated to the shell.  Usually it is 141.
38895 # Convert all non-zero exits to 2 to make it predictable.
38896 (tar -c -f a -z --remove-files b c 2>err || (exit 2) ) 2>/dev/null
38897 EC=\$?
38898 sed -n '/(child)/p' err >&2
38899 rm err
38900 find . | sort
38901 exit \$EC
38902 "
38903 echo remfiles01.at:32 >"$at_check_line_file"
38904
38905 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
38906    false; }; then
38907   ( $at_traceon;
38908
38909 echo "test" > $$
38910 chmod 0 $$
38911 cat $$ > /dev/null 2>&1
38912 result=$?
38913 rm -f $$
38914 test $result -eq 0 && exit 77
38915
38916
38917 cat /dev/null | gzip - > /dev/null 2>&1 || exit 77
38918
38919
38920 case `(cat "$at_myself" 2>&3 | :) 3>&1 >/dev/null` in #(
38921 ?*) exit 77;;
38922 esac
38923
38924
38925 test -z "`sort < /dev/null 2>&1`" || exit 77
38926
38927
38928 mkdir dir
38929 cd dir
38930 genfile --file a --length 0
38931 chmod 0 a
38932 genfile --file b
38933 mkdir c
38934
38935 # Depending on when the SIGPIPE gets delivered, the invocation below
38936 # may finish with either
38937 #  tar: a: Cannot write: Broken pipe
38938 # or
38939 #  tar: Child returned status 2
38940
38941 # Discard diagnostics that some shells generate about broken pipes,
38942 # and discard all of tar's diagnostics except for the ones saying "(child)".
38943 # Gzip's exit code is propagated to the shell.  Usually it is 141.
38944 # Convert all non-zero exits to 2 to make it predictable.
38945 (tar -c -f a -z --remove-files b c 2>err || (exit 2) ) 2>/dev/null
38946 EC=$?
38947 sed -n '/(child)/p' err >&2
38948 rm err
38949 find . | sort
38950 exit $EC
38951  ) >"$at_stdout" 2>"$at_stder1"
38952   at_func_filter_trace $?
38953 else
38954   ( :;
38955
38956 echo "test" > $$
38957 chmod 0 $$
38958 cat $$ > /dev/null 2>&1
38959 result=$?
38960 rm -f $$
38961 test $result -eq 0 && exit 77
38962
38963
38964 cat /dev/null | gzip - > /dev/null 2>&1 || exit 77
38965
38966
38967 case `(cat "$at_myself" 2>&3 | :) 3>&1 >/dev/null` in #(
38968 ?*) exit 77;;
38969 esac
38970
38971
38972 test -z "`sort < /dev/null 2>&1`" || exit 77
38973
38974
38975 mkdir dir
38976 cd dir
38977 genfile --file a --length 0
38978 chmod 0 a
38979 genfile --file b
38980 mkdir c
38981
38982 # Depending on when the SIGPIPE gets delivered, the invocation below
38983 # may finish with either
38984 #  tar: a: Cannot write: Broken pipe
38985 # or
38986 #  tar: Child returned status 2
38987
38988 # Discard diagnostics that some shells generate about broken pipes,
38989 # and discard all of tar's diagnostics except for the ones saying "(child)".
38990 # Gzip's exit code is propagated to the shell.  Usually it is 141.
38991 # Convert all non-zero exits to 2 to make it predictable.
38992 (tar -c -f a -z --remove-files b c 2>err || (exit 2) ) 2>/dev/null
38993 EC=$?
38994 sed -n '/(child)/p' err >&2
38995 rm err
38996 find . | sort
38997 exit $EC
38998  ) >"$at_stdout" 2>"$at_stderr"
38999 fi
39000 at_status=$?
39001 at_failed=false
39002 echo >>"$at_stderr"; $as_echo "tar (child): a: Cannot open: Permission denied
39003 tar (child): Error is not recoverable: exiting now
39004 " | \
39005   $at_diff - "$at_stderr" || at_failed=:
39006 echo >>"$at_stdout"; $as_echo ".
39007 ./a
39008 ./b
39009 ./c
39010 " | \
39011   $at_diff - "$at_stdout" || at_failed=:
39012 at_func_check_status 2 $at_status "$at_srcdir/remfiles01.at:32"
39013
39014 $at_failed && at_func_log_failure
39015 $at_traceon; }
39016
39017
39018   $at_traceoff
39019   $at_times_p && times >"$at_times_file"
39020 ) 5>&1 2>&1 | eval $at_tee_pipe
39021 at_status=`cat "$at_status_file"`
39022 #AT_STOP_112
39023 #AT_START_113
39024 # 113. remfiles02.at:28: remove-files with compression: grand-child
39025 at_setup_line='remfiles02.at:28'
39026 at_desc="remove-files with compression: grand-child"
39027 $at_quiet $as_echo_n "113: $at_desc     "
39028 at_xfail=no
39029 echo "#                             -*- compilation -*-" >> "$at_group_log"
39030 (
39031   $as_echo "113. remfiles02.at:28: testing ..."
39032   $at_traceon
39033
39034
39035
39036 unset TAR_OPTIONS
39037 { $at_traceoff
39038 $as_echo "$at_srcdir/remfiles02.at:32:
39039
39040 cat /dev/null | gzip - > /dev/null 2>&1 || exit 77
39041
39042
39043 test -z "`sort < /dev/null 2>&1`" || exit 77
39044
39045
39046 mkdir dir
39047 cd dir
39048 mkdir a
39049 genfile --file b
39050 mkdir c
39051
39052 tar -c -f a -z --remove-files b c 2>err
39053 EC=\$?
39054 sed -n '/(child)/p' err >&2
39055 rm err
39056 find . | sort
39057 exit \$EC
39058 "
39059 echo remfiles02.at:32 >"$at_check_line_file"
39060
39061 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
39062    false; }; then
39063   ( $at_traceon;
39064
39065 cat /dev/null | gzip - > /dev/null 2>&1 || exit 77
39066
39067
39068 test -z "`sort < /dev/null 2>&1`" || exit 77
39069
39070
39071 mkdir dir
39072 cd dir
39073 mkdir a
39074 genfile --file b
39075 mkdir c
39076
39077 tar -c -f a -z --remove-files b c 2>err
39078 EC=$?
39079 sed -n '/(child)/p' err >&2
39080 rm err
39081 find . | sort
39082 exit $EC
39083  ) >"$at_stdout" 2>"$at_stder1"
39084   at_func_filter_trace $?
39085 else
39086   ( :;
39087
39088 cat /dev/null | gzip - > /dev/null 2>&1 || exit 77
39089
39090
39091 test -z "`sort < /dev/null 2>&1`" || exit 77
39092
39093
39094 mkdir dir
39095 cd dir
39096 mkdir a
39097 genfile --file b
39098 mkdir c
39099
39100 tar -c -f a -z --remove-files b c 2>err
39101 EC=$?
39102 sed -n '/(child)/p' err >&2
39103 rm err
39104 find . | sort
39105 exit $EC
39106  ) >"$at_stdout" 2>"$at_stderr"
39107 fi
39108 at_status=$?
39109 at_failed=false
39110 echo >>"$at_stderr"; $as_echo "tar (child): a: Cannot open: Is a directory
39111 tar (child): Error is not recoverable: exiting now
39112 " | \
39113   $at_diff - "$at_stderr" || at_failed=:
39114 echo >>"$at_stdout"; $as_echo ".
39115 ./a
39116 ./b
39117 ./c
39118 " | \
39119   $at_diff - "$at_stdout" || at_failed=:
39120 at_func_check_status 2 $at_status "$at_srcdir/remfiles02.at:32"
39121
39122 $at_failed && at_func_log_failure
39123 $at_traceon; }
39124
39125
39126   $at_traceoff
39127   $at_times_p && times >"$at_times_file"
39128 ) 5>&1 2>&1 | eval $at_tee_pipe
39129 at_status=`cat "$at_status_file"`
39130 #AT_STOP_113
39131 #AT_START_114
39132 # 114. remfiles03.at:28: remove-files with symbolic links
39133 at_setup_line='remfiles03.at:28'
39134 at_desc="remove-files with symbolic links"
39135 $at_quiet $as_echo_n "114: $at_desc               "
39136 at_xfail=no
39137 echo "#                             -*- compilation -*-" >> "$at_group_log"
39138 (
39139   $as_echo "114. remfiles03.at:28: testing ..."
39140   $at_traceon
39141
39142
39143
39144 { $at_traceoff
39145 $as_echo "$at_srcdir/remfiles03.at:31:
39146 mkdir a
39147 mkdir a/b
39148 ln -s b a/c || exit 77
39149 tar --remove-files -cf a.tar a
39150 genfile --stat a
39151 "
39152 echo remfiles03.at:31 >"$at_check_line_file"
39153
39154 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
39155    false; }; then
39156   ( $at_traceon;
39157 mkdir a
39158 mkdir a/b
39159 ln -s b a/c || exit 77
39160 tar --remove-files -cf a.tar a
39161 genfile --stat a
39162  ) >"$at_stdout" 2>"$at_stder1"
39163   at_func_filter_trace $?
39164 else
39165   ( :;
39166 mkdir a
39167 mkdir a/b
39168 ln -s b a/c || exit 77
39169 tar --remove-files -cf a.tar a
39170 genfile --stat a
39171  ) >"$at_stdout" 2>"$at_stderr"
39172 fi
39173 at_status=$?
39174 at_failed=false
39175 echo >>"$at_stderr"; $as_echo "genfile: stat(a) failed: No such file or directory
39176 " | \
39177   $at_diff - "$at_stderr" || at_failed=:
39178 at_func_diff_devnull "$at_stdout" || at_failed=:
39179 at_func_check_status 0 $at_status "$at_srcdir/remfiles03.at:31"
39180
39181 $at_failed && at_func_log_failure
39182 $at_traceon; }
39183
39184
39185   $at_traceoff
39186   $at_times_p && times >"$at_times_file"
39187 ) 5>&1 2>&1 | eval $at_tee_pipe
39188 at_status=`cat "$at_status_file"`
39189 #AT_STOP_114
39190 #AT_START_115
39191 # 115. sigpipe.at:19: sigpipe handling
39192 at_setup_line='sigpipe.at:19'
39193 at_desc="sigpipe handling"
39194 $at_quiet $as_echo_n "115: $at_desc                               "
39195 at_xfail=no
39196 echo "#                             -*- compilation -*-" >> "$at_group_log"
39197 (
39198   $as_echo "115. sigpipe.at:19: testing ..."
39199   $at_traceon
39200
39201
39202
39203 # Description: Tar 1.23 ignored sigpipe which lead to spurious "write
39204 # error" diagnostics when piping output to another programs.
39205 # Reported-by: "Dmitry V. Levin" <ldv@altlinux.org>
39206 # References: http://lists.gnu.org/archive/html/bug-tar/2010-03/msg00039.html
39207 #             <20100319184141.GC30047@wo.int.altlinux.org>
39208
39209 { $at_traceoff
39210 $as_echo "$at_srcdir/sigpipe.at:28:
39211
39212 case `(cat "$at_myself" 2>&3 | :) 3>&1 >/dev/null` in #(
39213 ?*) exit 77;;
39214 esac
39215
39216
39217 genfile --length 2048 --file first
39218 genfile --length 2048 --file second
39219 genfile --length 2049 --file third
39220
39221 tar cf archive first second third
39222
39223 # Discard diagnostics that some shells generate about broken pipes.
39224 (tar tf archive 2>&3 | :) 3>&2 2>/dev/null
39225 "
39226 echo sigpipe.at:28 >"$at_check_line_file"
39227
39228 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
39229    false; }; then
39230   ( $at_traceon;
39231
39232 case `(cat "$at_myself" 2>&3 | :) 3>&1 >/dev/null` in #(
39233 ?*) exit 77;;
39234 esac
39235
39236
39237 genfile --length 2048 --file first
39238 genfile --length 2048 --file second
39239 genfile --length 2049 --file third
39240
39241 tar cf archive first second third
39242
39243 # Discard diagnostics that some shells generate about broken pipes.
39244 (tar tf archive 2>&3 | :) 3>&2 2>/dev/null
39245  ) >"$at_stdout" 2>"$at_stder1"
39246   at_func_filter_trace $?
39247 else
39248   ( :;
39249
39250 case `(cat "$at_myself" 2>&3 | :) 3>&1 >/dev/null` in #(
39251 ?*) exit 77;;
39252 esac
39253
39254
39255 genfile --length 2048 --file first
39256 genfile --length 2048 --file second
39257 genfile --length 2049 --file third
39258
39259 tar cf archive first second third
39260
39261 # Discard diagnostics that some shells generate about broken pipes.
39262 (tar tf archive 2>&3 | :) 3>&2 2>/dev/null
39263  ) >"$at_stdout" 2>"$at_stderr"
39264 fi
39265 at_status=$?
39266 at_failed=false
39267 at_func_diff_devnull "$at_stderr" || at_failed=:
39268 at_func_diff_devnull "$at_stdout" || at_failed=:
39269 at_func_check_status 0 $at_status "$at_srcdir/sigpipe.at:28"
39270
39271 $at_failed && at_func_log_failure
39272 $at_traceon; }
39273
39274
39275   $at_traceoff
39276   $at_times_p && times >"$at_times_file"
39277 ) 5>&1 2>&1 | eval $at_tee_pipe
39278 at_status=`cat "$at_status_file"`
39279 #AT_STOP_115
39280 #AT_START_116
39281 # 116. gtarfail.at:21: gtarfail
39282 at_setup_line='gtarfail.at:21'
39283 at_desc="gtarfail"
39284 $at_quiet $as_echo_n "116: $at_desc                                       "
39285 at_xfail=no
39286 echo "#                             -*- compilation -*-" >> "$at_group_log"
39287 (
39288   $as_echo "116. gtarfail.at:21: testing ..."
39289   $at_traceon
39290
39291
39292
39293 unset TAR_OPTIONS
39294
39295 { $at_traceoff
39296 $as_echo "$at_srcdir/gtarfail.at:26:
39297
39298 test -z "$STAR_TESTSCRIPTS" && exit 77
39299 tarball_prereq gtarfail.tar bf7612e401aaa679edbb07ae1183811b $STAR_TESTSCRIPTS $STAR_DATA_URL || exit 77
39300
39301
39302 tar --utc -tvf \$STAR_TESTSCRIPTS/gtarfail.tar
39303 "
39304 echo gtarfail.at:26 >"$at_check_line_file"
39305
39306 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
39307    false; }; then
39308   ( $at_traceon;
39309
39310 test -z "$STAR_TESTSCRIPTS" && exit 77
39311 tarball_prereq gtarfail.tar bf7612e401aaa679edbb07ae1183811b $STAR_TESTSCRIPTS $STAR_DATA_URL || exit 77
39312
39313
39314 tar --utc -tvf $STAR_TESTSCRIPTS/gtarfail.tar
39315  ) >"$at_stdout" 2>"$at_stder1"
39316   at_func_filter_trace $?
39317 else
39318   ( :;
39319
39320 test -z "$STAR_TESTSCRIPTS" && exit 77
39321 tarball_prereq gtarfail.tar bf7612e401aaa679edbb07ae1183811b $STAR_TESTSCRIPTS $STAR_DATA_URL || exit 77
39322
39323
39324 tar --utc -tvf $STAR_TESTSCRIPTS/gtarfail.tar
39325  ) >"$at_stdout" 2>"$at_stderr"
39326 fi
39327 at_status=$?
39328 at_failed=false
39329 at_func_diff_devnull "$at_stderr" || at_failed=:
39330 echo >>"$at_stdout"; $as_echo "-rw-r--r-- jes/glone       518 2001-05-25 14:41 vedpowered.gif
39331 -rw-r--r-- jes/glone      6825 1997-04-29 00:19 cd.gif
39332 -rw-r--r-- jes/glone     33354 1999-06-22 12:17 DSCN0049c.JPG
39333 -rw-r--r-- jes/glone     86159 2001-06-05 18:16 Window1.jpg
39334 -rw-r--r-- jes/glone      1310 2001-05-25 13:05 vipower.gif
39335 -rw-rw-rw- jes/glone    148753 1998-09-15 13:08 billyboy.jpg
39336 " | \
39337   $at_diff - "$at_stdout" || at_failed=:
39338 at_func_check_status 0 $at_status "$at_srcdir/gtarfail.at:26"
39339
39340 $at_failed && at_func_log_failure
39341 $at_traceon; }
39342
39343
39344   $at_traceoff
39345   $at_times_p && times >"$at_times_file"
39346 ) 5>&1 2>&1 | eval $at_tee_pipe
39347 at_status=`cat "$at_status_file"`
39348 #AT_STOP_116
39349 #AT_START_117
39350 # 117. gtarfail2.at:21: gtarfail2
39351 at_setup_line='gtarfail2.at:21'
39352 at_desc="gtarfail2"
39353 $at_quiet $as_echo_n "117: $at_desc                                      "
39354 at_xfail=no
39355 echo "#                             -*- compilation -*-" >> "$at_group_log"
39356 (
39357   $as_echo "117. gtarfail2.at:21: testing ..."
39358   $at_traceon
39359
39360
39361
39362 unset TAR_OPTIONS
39363
39364 { $at_traceoff
39365 $as_echo "$at_srcdir/gtarfail2.at:26:
39366
39367 test -z "$STAR_TESTSCRIPTS" && exit 77
39368 tarball_prereq gtarfail2.tar 6b607d1faec14b82f69525d9c5b66e53 $STAR_TESTSCRIPTS $STAR_DATA_URL || exit 77
39369
39370 tar --utc -tvf \$STAR_TESTSCRIPTS/gtarfail2.tar
39371 "
39372 echo gtarfail2.at:26 >"$at_check_line_file"
39373
39374 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
39375    false; }; then
39376   ( $at_traceon;
39377
39378 test -z "$STAR_TESTSCRIPTS" && exit 77
39379 tarball_prereq gtarfail2.tar 6b607d1faec14b82f69525d9c5b66e53 $STAR_TESTSCRIPTS $STAR_DATA_URL || exit 77
39380
39381 tar --utc -tvf $STAR_TESTSCRIPTS/gtarfail2.tar
39382  ) >"$at_stdout" 2>"$at_stder1"
39383   at_func_filter_trace $?
39384 else
39385   ( :;
39386
39387 test -z "$STAR_TESTSCRIPTS" && exit 77
39388 tarball_prereq gtarfail2.tar 6b607d1faec14b82f69525d9c5b66e53 $STAR_TESTSCRIPTS $STAR_DATA_URL || exit 77
39389
39390 tar --utc -tvf $STAR_TESTSCRIPTS/gtarfail2.tar
39391  ) >"$at_stdout" 2>"$at_stderr"
39392 fi
39393 at_status=$?
39394 at_failed=false
39395 at_func_diff_devnull "$at_stderr" || at_failed=:
39396 echo >>"$at_stdout"; $as_echo "-rwxr-xr-x jes/glone       214 2001-09-21 14:08 .clean
39397 lrwxrwxrwx jes/cats          0 1998-05-07 12:39 RULES -> makefiles/RULES
39398 drwxr-sr-x jes/glone         0 2001-12-10 00:00 build/
39399 -rw-r--r-- jes/glone    312019 2001-12-10 00:00 build/smake-1.2.tar.gz
39400 drwxr-sr-x jes/glone         0 2001-11-09 18:20 build/psmake/
39401 -rwxr-xr-x jes/glone       259 2000-01-09 16:36 build/psmake/MAKE
39402 -rwxr-xr-x jes/glone      4820 2001-02-25 22:45 build/psmake/MAKE.sh
39403 -rw-r--r-- jes/glone       647 2001-02-25 23:50 build/psmake/Makefile
39404 lrwxrwxrwx jes/glone         0 2001-08-29 10:53 build/psmake/archconf.c -> ../archconf.c
39405 lrwxrwxrwx jes/glone         0 2001-08-29 10:54 build/psmake/astoi.c -> ../../lib/astoi.c
39406 " | \
39407   $at_diff - "$at_stdout" || at_failed=:
39408 at_func_check_status 0 $at_status "$at_srcdir/gtarfail2.at:26"
39409
39410 $at_failed && at_func_log_failure
39411 $at_traceon; }
39412
39413
39414   $at_traceoff
39415   $at_times_p && times >"$at_times_file"
39416 ) 5>&1 2>&1 | eval $at_tee_pipe
39417 at_status=`cat "$at_status_file"`
39418 #AT_STOP_117
39419 #AT_START_118
39420 # 118. multi-fail.at:21: multi-fail
39421 at_setup_line='multi-fail.at:21'
39422 at_desc="multi-fail"
39423 $at_quiet $as_echo_n "118: $at_desc                                     "
39424 at_xfail=no
39425 echo "#                             -*- compilation -*-" >> "$at_group_log"
39426 (
39427   $as_echo "118. multi-fail.at:21: testing ..."
39428   $at_traceon
39429
39430
39431
39432 unset TAR_OPTIONS
39433
39434 { $at_traceoff
39435 $as_echo "$at_srcdir/multi-fail.at:26:
39436
39437 test -z "$STAR_TESTSCRIPTS" && exit 77
39438 tarball_prereq gnu-multi-fail-volume1.gtar 7c28663dd98b0bd91ceb4be7af55254e $STAR_TESTSCRIPTS $STAR_DATA_URL || exit 77
39439
39440
39441 test -z "$STAR_TESTSCRIPTS" && exit 77
39442 tarball_prereq gnu-multi-fail-volume2.gtar b5d41c4c3ec440687d4a44957b5079a8 $STAR_TESTSCRIPTS $STAR_DATA_URL || exit 77
39443
39444
39445 tar --utc -tvM -f \$STAR_TESTSCRIPTS/gnu-multi-fail-volume1.gtar \\
39446                -f \$STAR_TESTSCRIPTS/gnu-multi-fail-volume2.gtar <&-
39447 "
39448 echo multi-fail.at:26 >"$at_check_line_file"
39449
39450 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
39451    false; }; then
39452   ( $at_traceon;
39453
39454 test -z "$STAR_TESTSCRIPTS" && exit 77
39455 tarball_prereq gnu-multi-fail-volume1.gtar 7c28663dd98b0bd91ceb4be7af55254e $STAR_TESTSCRIPTS $STAR_DATA_URL || exit 77
39456
39457
39458 test -z "$STAR_TESTSCRIPTS" && exit 77
39459 tarball_prereq gnu-multi-fail-volume2.gtar b5d41c4c3ec440687d4a44957b5079a8 $STAR_TESTSCRIPTS $STAR_DATA_URL || exit 77
39460
39461
39462 tar --utc -tvM -f $STAR_TESTSCRIPTS/gnu-multi-fail-volume1.gtar \
39463                -f $STAR_TESTSCRIPTS/gnu-multi-fail-volume2.gtar <&-
39464  ) >"$at_stdout" 2>"$at_stder1"
39465   at_func_filter_trace $?
39466 else
39467   ( :;
39468
39469 test -z "$STAR_TESTSCRIPTS" && exit 77
39470 tarball_prereq gnu-multi-fail-volume1.gtar 7c28663dd98b0bd91ceb4be7af55254e $STAR_TESTSCRIPTS $STAR_DATA_URL || exit 77
39471
39472
39473 test -z "$STAR_TESTSCRIPTS" && exit 77
39474 tarball_prereq gnu-multi-fail-volume2.gtar b5d41c4c3ec440687d4a44957b5079a8 $STAR_TESTSCRIPTS $STAR_DATA_URL || exit 77
39475
39476
39477 tar --utc -tvM -f $STAR_TESTSCRIPTS/gnu-multi-fail-volume1.gtar \
39478                -f $STAR_TESTSCRIPTS/gnu-multi-fail-volume2.gtar <&-
39479  ) >"$at_stdout" 2>"$at_stderr"
39480 fi
39481 at_status=$?
39482 at_failed=false
39483 at_func_diff_devnull "$at_stderr" || at_failed=:
39484 echo >>"$at_stdout"; $as_echo "drwxrwsr-x joerg/bs          0 2003-10-11 14:32 OBJ/i386-sunos5-gcc/
39485 -rw-r--r-- joerg/bs          1 2003-10-11 14:32 OBJ/i386-sunos5-gcc/Dnull
39486 -rw-r--r-- joerg/bs       1743 2003-10-10 18:06 OBJ/i386-sunos5-gcc/star.d
39487 -rw-r--r-- joerg/bs       1460 2003-10-11 11:53 OBJ/i386-sunos5-gcc/header.d
39488 -rw-r--r-- joerg/bs       1540 2003-10-10 18:06 OBJ/i386-sunos5-gcc/cpiohdr.d
39489 -rw-r--r-- joerg/bs       2245 2003-10-10 18:06 OBJ/i386-sunos5-gcc/xheader.d
39490 -rw-r--r-- joerg/bs       1254 2003-10-10 18:06 OBJ/i386-sunos5-gcc/xattr.d
39491 -rw-r--r-- joerg/bs       1330 2003-10-10 18:06 OBJ/i386-sunos5-gcc/list.d
39492 -rw-r--r-- joerg/bs       1745 2003-10-10 18:06 OBJ/i386-sunos5-gcc/extract.d
39493 -rw-r--r-- joerg/bs       1518 2003-10-10 18:06 OBJ/i386-sunos5-gcc/create.d
39494 -rw-r--r-- joerg/bs       1235 2003-10-10 18:06 OBJ/i386-sunos5-gcc/append.d
39495 -rw-r--r-- joerg/bs       1368 2003-10-10 18:06 OBJ/i386-sunos5-gcc/diff.d
39496 -rw-r--r-- joerg/bs       1423 2003-10-10 18:06 OBJ/i386-sunos5-gcc/remove.d
39497 -rw-r--r-- joerg/bs       1493 2003-10-10 18:07 OBJ/i386-sunos5-gcc/star_unix.d
39498 -rw-r--r-- joerg/bs       1572 2003-10-10 18:07 OBJ/i386-sunos5-gcc/acl_unix.d
39499 -rw-r--r-- joerg/bs       1453 2003-10-10 18:07 OBJ/i386-sunos5-gcc/fflags.d
39500 -rw-r--r-- joerg/bs       2257 2003-10-11 14:32 OBJ/i386-sunos5-gcc/buffer.d
39501 -rw-r--r-- joerg/bs        969 2003-10-07 17:53 OBJ/i386-sunos5-gcc/dirtime.d
39502 -rw-r--r-- joerg/bs       1308 2003-10-10 18:07 OBJ/i386-sunos5-gcc/lhash.d
39503 -rw-r--r-- joerg/bs       1287 2003-10-10 18:07 OBJ/i386-sunos5-gcc/hole.d
39504 -rw-r--r-- joerg/bs       1105 2003-10-10 18:07 OBJ/i386-sunos5-gcc/longnames.d
39505 -rw-r--r-- joerg/bs       1230 2003-10-10 18:07 OBJ/i386-sunos5-gcc/names.d
39506 -rw-r--r-- joerg/bs       1091 2003-10-10 18:07 OBJ/i386-sunos5-gcc/movearch.d
39507 -rw-r--r-- joerg/bs        961 2003-10-07 17:53 OBJ/i386-sunos5-gcc/table.d
39508 -rw-r--r-- joerg/bs       1113 2003-10-10 18:07 OBJ/i386-sunos5-gcc/props.d
39509 -rw-r--r-- joerg/bs       2146 2003-10-10 18:07 OBJ/i386-sunos5-gcc/fetchdir.d
39510 -rw-r--r-- joerg/bs       1093 2003-10-10 18:07 OBJ/i386-sunos5-gcc/unicode.d
39511 -rw-r--r-- joerg/bs       1211 2003-10-10 18:07 OBJ/i386-sunos5-gcc/subst.d
39512 -rw-r--r-- joerg/bs       2076 2003-10-11 11:53 OBJ/i386-sunos5-gcc/volhdr.d
39513 -rw-r--r-- joerg/bs       1480 2003-10-10 18:07 OBJ/i386-sunos5-gcc/chdir.d
39514 -rw-r--r-- joerg/bs      42460 2003-10-10 18:07 OBJ/i386-sunos5-gcc/star.o
39515 -rw-r--r-- joerg/bs      22564 2003-10-11 11:53 OBJ/i386-sunos5-gcc/header.o
39516 -rw-r--r-- joerg/bs       7880 2003-10-10 18:07 OBJ/i386-sunos5-gcc/cpiohdr.o
39517 -rw-r--r-- joerg/bs      14624 2003-10-10 18:07 OBJ/i386-sunos5-gcc/xheader.o
39518 -rw-r--r-- joerg/bs        924 2003-10-10 18:07 OBJ/i386-sunos5-gcc/xattr.o
39519 -rw-r--r-- joerg/bs       6120 2003-10-10 18:07 OBJ/i386-sunos5-gcc/list.o
39520 -rw-r--r-- joerg/bs      12764 2003-10-10 18:07 OBJ/i386-sunos5-gcc/extract.o
39521 -rw-r--r-- joerg/bs      14668 2003-10-10 18:07 OBJ/i386-sunos5-gcc/create.o
39522 -rw-r--r-- joerg/bs       2576 2003-10-10 18:07 OBJ/i386-sunos5-gcc/append.o
39523 -rw-r--r-- joerg/bs       7636 2003-10-10 18:07 OBJ/i386-sunos5-gcc/diff.o
39524 -rw-r--r-- joerg/bs       3072 2003-10-10 18:07 OBJ/i386-sunos5-gcc/remove.o
39525 -rw-r--r-- joerg/bs       5612 2003-10-10 18:07 OBJ/i386-sunos5-gcc/star_unix.o
39526 -rw-r--r-- joerg/bs       6220 2003-10-10 18:07 OBJ/i386-sunos5-gcc/acl_unix.o
39527 -rw-r--r-- joerg/bs       1092 2003-10-10 18:07 OBJ/i386-sunos5-gcc/fflags.o
39528 -rw-r--r-- joerg/bs      20996 2003-10-11 14:32 OBJ/i386-sunos5-gcc/buffer.o
39529 -rw-r--r-- joerg/bs       2060 2003-10-07 17:53 OBJ/i386-sunos5-gcc/dirtime.o
39530 -rw-r--r-- joerg/bs       1664 2003-10-10 18:07 OBJ/i386-sunos5-gcc/lhash.o
39531 -rw-r--r-- joerg/bs      10564 2003-10-10 18:07 OBJ/i386-sunos5-gcc/hole.o
39532 -rw-r--r-- joerg/bs       3864 2003-10-10 18:07 OBJ/i386-sunos5-gcc/longnames.o
39533 -rw-r--r-- joerg/bs       2576 2003-10-10 18:07 OBJ/i386-sunos5-gcc/names.o
39534 -rw-r--r-- joerg/bs        952 2003-10-10 18:07 OBJ/i386-sunos5-gcc/movearch.o
39535 -rw-r--r-- joerg/bs       2756 2003-10-07 17:53 OBJ/i386-sunos5-gcc/table.o
39536 " | \
39537   $at_diff - "$at_stdout" || at_failed=:
39538 at_func_check_status 0 $at_status "$at_srcdir/multi-fail.at:26"
39539
39540 $at_failed && at_func_log_failure
39541 $at_traceon; }
39542
39543
39544   $at_traceoff
39545   $at_times_p && times >"$at_times_file"
39546 ) 5>&1 2>&1 | eval $at_tee_pipe
39547 at_status=`cat "$at_status_file"`
39548 #AT_STOP_118
39549 #AT_START_119
39550 # 119. ustar-big-2g.at:21: ustar-big-2g
39551 at_setup_line='ustar-big-2g.at:21'
39552 at_desc="ustar-big-2g"
39553 $at_quiet $as_echo_n "119: $at_desc                                   "
39554 at_xfail=no
39555 echo "#                             -*- compilation -*-" >> "$at_group_log"
39556 (
39557   $as_echo "119. ustar-big-2g.at:21: testing ..."
39558   $at_traceon
39559
39560
39561
39562 unset TAR_OPTIONS
39563
39564 { $at_traceoff
39565 $as_echo "$at_srcdir/ustar-big-2g.at:26:
39566
39567 cat /dev/null | bzip2 - > /dev/null 2>&1 || exit 77
39568
39569
39570 test -z "$STAR_TESTSCRIPTS" && exit 77
39571 tarball_prereq ustar-big-2g.tar.bz2 b63979733629c8fcdf40b60065422767 $STAR_TESTSCRIPTS $STAR_DATA_URL || exit 77
39572
39573
39574 tar --utc -tvjf \$STAR_TESTSCRIPTS/ustar-big-2g.tar.bz2
39575 "
39576 echo ustar-big-2g.at:26 >"$at_check_line_file"
39577
39578 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
39579    false; }; then
39580   ( $at_traceon;
39581
39582 cat /dev/null | bzip2 - > /dev/null 2>&1 || exit 77
39583
39584
39585 test -z "$STAR_TESTSCRIPTS" && exit 77
39586 tarball_prereq ustar-big-2g.tar.bz2 b63979733629c8fcdf40b60065422767 $STAR_TESTSCRIPTS $STAR_DATA_URL || exit 77
39587
39588
39589 tar --utc -tvjf $STAR_TESTSCRIPTS/ustar-big-2g.tar.bz2
39590  ) >"$at_stdout" 2>"$at_stder1"
39591   at_func_filter_trace $?
39592 else
39593   ( :;
39594
39595 cat /dev/null | bzip2 - > /dev/null 2>&1 || exit 77
39596
39597
39598 test -z "$STAR_TESTSCRIPTS" && exit 77
39599 tarball_prereq ustar-big-2g.tar.bz2 b63979733629c8fcdf40b60065422767 $STAR_TESTSCRIPTS $STAR_DATA_URL || exit 77
39600
39601
39602 tar --utc -tvjf $STAR_TESTSCRIPTS/ustar-big-2g.tar.bz2
39603  ) >"$at_stdout" 2>"$at_stderr"
39604 fi
39605 at_status=$?
39606 at_failed=false
39607 echo stderr:; tee stderr <"$at_stderr"
39608 echo >>"$at_stdout"; $as_echo "-rw------- jes/glone 2147483647 2002-06-15 14:53 big
39609 -rw-r--r-- jes/glone          0 2002-06-15 14:53 file
39610 " | \
39611   $at_diff - "$at_stdout" || at_failed=:
39612 at_func_check_status 0 $at_status "$at_srcdir/ustar-big-2g.at:26"
39613
39614 $at_failed && at_func_log_failure
39615 $at_traceon; }
39616
39617
39618
39619 cat >stderr.re <<'_ATEOF'
39620 tar: Record size = .*
39621 _ATEOF
39622
39623 awk '{print NR " " $0}' stderr > $$.1
39624 awk '{print NR " " $0}' stderr.re | join - $$.1 |
39625 while read NUM RE LINE
39626 do
39627   echo "$LINE" | grep -- "$RE" >/dev/null || exit 1
39628 done
39629
39630
39631   $at_traceoff
39632   $at_times_p && times >"$at_times_file"
39633 ) 5>&1 2>&1 | eval $at_tee_pipe
39634 at_status=`cat "$at_status_file"`
39635 #AT_STOP_119
39636 #AT_START_120
39637 # 120. ustar-big-8g.at:21: ustar-big-8g
39638 at_setup_line='ustar-big-8g.at:21'
39639 at_desc="ustar-big-8g"
39640 $at_quiet $as_echo_n "120: $at_desc                                   "
39641 at_xfail=no
39642 echo "#                             -*- compilation -*-" >> "$at_group_log"
39643 (
39644   $as_echo "120. ustar-big-8g.at:21: testing ..."
39645   $at_traceon
39646
39647
39648
39649 unset TAR_OPTIONS
39650
39651 { $at_traceoff
39652 $as_echo "$at_srcdir/ustar-big-8g.at:26:
39653
39654 cat /dev/null | bzip2 - > /dev/null 2>&1 || exit 77
39655
39656
39657 test -z "$STAR_TESTSCRIPTS" && exit 77
39658 tarball_prereq ustar-big-8g.tar.bz2 60ff503fa4b8288bef7ada89e9c91b0f $STAR_TESTSCRIPTS $STAR_DATA_URL || exit 77
39659
39660
39661 tar --utc -tvjf \$STAR_TESTSCRIPTS/ustar-big-8g.tar.bz2
39662 "
39663 echo ustar-big-8g.at:26 >"$at_check_line_file"
39664
39665 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
39666    false; }; then
39667   ( $at_traceon;
39668
39669 cat /dev/null | bzip2 - > /dev/null 2>&1 || exit 77
39670
39671
39672 test -z "$STAR_TESTSCRIPTS" && exit 77
39673 tarball_prereq ustar-big-8g.tar.bz2 60ff503fa4b8288bef7ada89e9c91b0f $STAR_TESTSCRIPTS $STAR_DATA_URL || exit 77
39674
39675
39676 tar --utc -tvjf $STAR_TESTSCRIPTS/ustar-big-8g.tar.bz2
39677  ) >"$at_stdout" 2>"$at_stder1"
39678   at_func_filter_trace $?
39679 else
39680   ( :;
39681
39682 cat /dev/null | bzip2 - > /dev/null 2>&1 || exit 77
39683
39684
39685 test -z "$STAR_TESTSCRIPTS" && exit 77
39686 tarball_prereq ustar-big-8g.tar.bz2 60ff503fa4b8288bef7ada89e9c91b0f $STAR_TESTSCRIPTS $STAR_DATA_URL || exit 77
39687
39688
39689 tar --utc -tvjf $STAR_TESTSCRIPTS/ustar-big-8g.tar.bz2
39690  ) >"$at_stdout" 2>"$at_stderr"
39691 fi
39692 at_status=$?
39693 at_failed=false
39694 echo stderr:; tee stderr <"$at_stderr"
39695 echo >>"$at_stdout"; $as_echo "-rw------- jes/glone 8589934591 2002-06-15 15:08 8gb-1
39696 -rw-r--r-- jes/glone          0 2002-06-15 14:53 file
39697 " | \
39698   $at_diff - "$at_stdout" || at_failed=:
39699 at_func_check_status 0 $at_status "$at_srcdir/ustar-big-8g.at:26"
39700
39701 $at_failed && at_func_log_failure
39702 $at_traceon; }
39703
39704
39705
39706 cat >stderr.re <<'_ATEOF'
39707 tar: Record size = .*
39708 _ATEOF
39709
39710 awk '{print NR " " $0}' stderr > $$.1
39711 awk '{print NR " " $0}' stderr.re | join - $$.1 |
39712 while read NUM RE LINE
39713 do
39714   echo "$LINE" | grep -- "$RE" >/dev/null || exit 1
39715 done
39716
39717
39718   $at_traceoff
39719   $at_times_p && times >"$at_times_file"
39720 ) 5>&1 2>&1 | eval $at_tee_pipe
39721 at_status=`cat "$at_status_file"`
39722 #AT_STOP_120
39723 #AT_START_121
39724 # 121. pax-big-10g.at:21: pax-big-10g
39725 at_setup_line='pax-big-10g.at:21'
39726 at_desc="pax-big-10g"
39727 $at_quiet $as_echo_n "121: $at_desc                                    "
39728 at_xfail=no
39729 echo "#                             -*- compilation -*-" >> "$at_group_log"
39730 (
39731   $as_echo "121. pax-big-10g.at:21: testing ..."
39732   $at_traceon
39733
39734
39735
39736 unset TAR_OPTIONS
39737
39738 { $at_traceoff
39739 $as_echo "$at_srcdir/pax-big-10g.at:26:
39740
39741 cat /dev/null | bzip2 - > /dev/null 2>&1 || exit 77
39742
39743
39744 test -z "$STAR_TESTSCRIPTS" && exit 77
39745 tarball_prereq pax-big-10g.tar.bz2 ca15c23acc8d8bb1f27e60113a5f8bff $STAR_TESTSCRIPTS $STAR_DATA_URL || exit 77
39746
39747
39748 tar --utc -tvjf \$STAR_TESTSCRIPTS/pax-big-10g.tar.bz2
39749 "
39750 echo pax-big-10g.at:26 >"$at_check_line_file"
39751
39752 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
39753    false; }; then
39754   ( $at_traceon;
39755
39756 cat /dev/null | bzip2 - > /dev/null 2>&1 || exit 77
39757
39758
39759 test -z "$STAR_TESTSCRIPTS" && exit 77
39760 tarball_prereq pax-big-10g.tar.bz2 ca15c23acc8d8bb1f27e60113a5f8bff $STAR_TESTSCRIPTS $STAR_DATA_URL || exit 77
39761
39762
39763 tar --utc -tvjf $STAR_TESTSCRIPTS/pax-big-10g.tar.bz2
39764  ) >"$at_stdout" 2>"$at_stder1"
39765   at_func_filter_trace $?
39766 else
39767   ( :;
39768
39769 cat /dev/null | bzip2 - > /dev/null 2>&1 || exit 77
39770
39771
39772 test -z "$STAR_TESTSCRIPTS" && exit 77
39773 tarball_prereq pax-big-10g.tar.bz2 ca15c23acc8d8bb1f27e60113a5f8bff $STAR_TESTSCRIPTS $STAR_DATA_URL || exit 77
39774
39775
39776 tar --utc -tvjf $STAR_TESTSCRIPTS/pax-big-10g.tar.bz2
39777  ) >"$at_stdout" 2>"$at_stderr"
39778 fi
39779 at_status=$?
39780 at_failed=false
39781 echo stderr:; tee stderr <"$at_stderr"
39782 echo >>"$at_stdout"; $as_echo "-rw------- jes/glone 10737418240 2002-06-15 21:18 10g
39783 -rw-r--r-- jes/glone           0 2002-06-15 14:53 file
39784 " | \
39785   $at_diff - "$at_stdout" || at_failed=:
39786 at_func_check_status 0 $at_status "$at_srcdir/pax-big-10g.at:26"
39787
39788 $at_failed && at_func_log_failure
39789 $at_traceon; }
39790
39791
39792
39793 cat >stderr.re <<'_ATEOF'
39794 tar: Record size = .*
39795 _ATEOF
39796
39797 awk '{print NR " " $0}' stderr > $$.1
39798 awk '{print NR " " $0}' stderr.re | join - $$.1 |
39799 while read NUM RE LINE
39800 do
39801   echo "$LINE" | grep -- "$RE" >/dev/null || exit 1
39802 done
39803
39804
39805   $at_traceoff
39806   $at_times_p && times >"$at_times_file"
39807 ) 5>&1 2>&1 | eval $at_tee_pipe
39808 at_status=`cat "$at_status_file"`
39809 #AT_STOP_121