d6c964784082e69073e78feb3b2f1ed6836d8a0c
[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'
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;incr03.at:28;renamed files in incrementals;incremental incr03 rename;
687 58;incr04.at:29;proper icontents initialization;incremental incr04 icontents;
688 59;incr05.at:19;incremental dumps with -C;incremental incr05;
689 60;incr06.at:19;incremental dumps of nested directories;incremental incr06;
690 61;filerem01.at:34;file removed as we read it (ca. 22 seconds);create incremental filechange filerem filerem01;
691 62;filerem02.at:24;toplevel file removed (ca. 24 seconds);create incremental filechange filerem filerem02;
692 63;rename01.at:24;renamed dirs in incrementals;incremental rename rename01;
693 64;rename02.at:24;move between hierarchies;incremental rename rename02;
694 65;rename03.at:23;cyclic renames;incremental rename rename03 cyclic-rename;
695 66;rename04.at:27;renamed directory containing subdirectories;incremental rename04 rename;
696 67;rename05.at:24;renamed subdirectories;incremental rename05 rename;
697 68;chtype.at:27;changed file types in incrementals;incremental chtype;
698 69;ignfail.at:23;ignfail;ignfail;
699 70;link01.at:33;link count gt 2;hardlinks link01;
700 71;link02.at:32;preserve hard links with --remove-files;hardlinks link02;
701 72;link03.at:24;working -l with --remove-files;hardlinks link03;
702 73;link04.at:29;link count is 1 but multiple occurrences;hardlinks link04;
703 74;longv7.at:24;long names in V7 archives;longname longv7;
704 75;long01.at:28;long file names divisible by block size;longname long512;
705 76;lustar01.at:21;ustar: unsplittable file name;longname ustar lustar01;
706 77;lustar02.at:21;ustar: unsplittable path name;longname ustar lustar02;
707 78;lustar03.at:21;ustar: splitting long names;longname ustar lustar03;
708 79;multiv01.at:23;multivolume dumps from pipes;multivolume multiv multiv01;
709 80;multiv02.at:28;skipping a straddling member;multivolume multiv multiv02;
710 81;multiv03.at:30;MV archive & long filenames;multivolume multiv multiv03;
711 82;multiv04.at:36;split directory members in a MV archive;multivolume multiv incremental multiv04;
712 83;multiv05.at:26;Restoring after an out of sync volume;multivolume multiv multiv05 sync;
713 84;multiv06.at:27;Multivolumes with L=record_size;multivolume multiv multiv06;
714 85;multiv07.at:26;volumes split at an extended header;multivolume multiv multiv07 xsplit;
715 86;multiv08.at:23;multivolume header creation;multivolume multiv multiv08;
716 87;old.at:23;old archives;old;
717 88;recurse.at:21;recurse;recurse;
718 89;same-order01.at:26;working -C with --same-order;same-order same-order01;
719 90;same-order02.at:25;multiple -C options;same-order same-order02;
720 91;shortrec.at:25;short records;shortrec;
721 92;sparse01.at:21;sparse files;sparse sparse01;
722 93;sparse02.at:21;extracting sparse file over a pipe;sparse sparse02;
723 94;sparse03.at:21;storing sparse files > 8G;sparse sparse03;
724 95;sparsemv.at:21;sparse files in MV archives;sparse multiv sparsemv;
725 96;spmvp00.at:21;sparse files in PAX MV archives, v.0.0;sparse multivolume multiv sparsemvp sparsemvp00;
726 97;spmvp01.at:21;sparse files in PAX MV archives, v.0.1;sparse multiv sparsemvp sparsemvp01;
727 98;spmvp10.at:21;sparse files in PAX MV archives, v.1.0;sparse multivolume multiv sparsemvp sparsemvp10;
728 99;update.at:28;update unchanged directories;update update00;
729 100;update01.at:29;update directories;update update01;
730 101;update02.at:26;update changed files;update update02;
731 102;volume.at:23;volume;volume volcheck;
732 103;volsize.at:29;volume header size;volume volsize;
733 104;comprec.at:21;compressed format recognition;comprec;
734 105;shortfile.at:26;short input files;shortfile shortfile0;
735 106;shortupd.at:29;updating short archives;shortfile shortfile1 shortupd;
736 107;truncate.at:29;truncate;truncate filechange;
737 108;grow.at:24;grow;grow filechange;
738 109;remfiles01.at:28;remove-files with compression;create remove-files remfiles01 gzip;
739 110;remfiles02.at:28;remove-files with compression: grand-child;create remove-files remfiles02 gzip;
740 111;remfiles03.at:28;remove-files with symbolic links;create remove-files remfiles03;
741 112;sigpipe.at:19;sigpipe handling;sigpipe;
742 113;gtarfail.at:21;gtarfail;star gtarfail;
743 114;gtarfail2.at:21;gtarfail2;star gtarfail2;
744 115;multi-fail.at:21;multi-fail;star multivolume multiv multi-fail;
745 116;ustar-big-2g.at:21;ustar-big-2g;star ustar-big-2g;
746 117;ustar-big-8g.at:21;ustar-big-8g;star ustar-big-8g;
747 118;pax-big-10g.at:21;pax-big-10g;star pax-big-10g;
748 "
749
750 # at_func_validate_ranges [NAME...]
751 # ---------------------------------
752 # Validate and normalize the test group number contained in each
753 # variable NAME.  Leading zeroes are treated as decimal.
754 at_func_validate_ranges ()
755 {
756   for at_grp
757   do
758     eval at_value=\$$at_grp
759     if test $at_value -lt 1 || test $at_value -gt 118; then
760       $as_echo "invalid test group: $at_value" >&2
761       exit 1
762     fi
763     case $at_value in
764       0*) # We want to treat leading 0 as decimal, like expr and test, but
765           # at_func_arith treats it as octal if it uses $(( )).
766           # With XSI shells, ${at_value#${at_value%%[1-9]*}} avoids the
767           # expr fork, but it is not worth the effort to determine if the
768           # shell supports XSI when the user can just avoid leading 0.
769           eval $at_grp='`expr $at_value + 0`' ;;
770     esac
771   done
772 }
773
774 at_prev=
775 for at_option
776 do
777   # If the previous option needs an argument, assign it.
778   if test -n "$at_prev"; then
779     at_option=$at_prev=$at_option
780     at_prev=
781   fi
782
783   case $at_option in
784   *=*) at_optarg=`expr "x$at_option" : 'x[^=]*=\(.*\)'` ;;
785   *)   at_optarg= ;;
786   esac
787
788   # Accept the important Cygnus configure options, so we can diagnose typos.
789
790   case $at_option in
791     --help | -h )
792         at_help_p=:
793         ;;
794
795     --list | -l )
796         at_list_p=:
797         ;;
798
799     --version | -V )
800         at_version_p=:
801         ;;
802
803     --clean | -c )
804         at_clean=:
805         ;;
806
807     --debug | -d )
808         at_debug_p=:
809         ;;
810
811     --errexit | -e )
812         at_debug_p=:
813         at_errexit_p=:
814         ;;
815
816     --verbose | -v )
817         at_verbose=; at_quiet=:
818         ;;
819
820     --trace | -x )
821         at_traceon='set -x'; at_traceoff='set +x'
822         ;;
823
824     [0-9] | [0-9][0-9] | [0-9][0-9][0-9] | [0-9][0-9][0-9][0-9])
825         at_func_validate_ranges at_option
826         at_groups="$at_groups$at_option "
827         ;;
828
829     # Ranges
830     [0-9]- | [0-9][0-9]- | [0-9][0-9][0-9]- | [0-9][0-9][0-9][0-9]-)
831         at_range_start=`echo $at_option |tr -d X-`
832         at_func_validate_ranges at_range_start
833         at_range=`$as_echo " $at_groups_all " | \
834           sed -e 's/^.* \('$at_range_start' \)/\1/'`
835         at_groups="$at_groups$at_range "
836         ;;
837
838     -[0-9] | -[0-9][0-9] | -[0-9][0-9][0-9] | -[0-9][0-9][0-9][0-9])
839         at_range_end=`echo $at_option |tr -d X-`
840         at_func_validate_ranges at_range_end
841         at_range=`$as_echo " $at_groups_all " | \
842           sed -e 's/\( '$at_range_end'\) .*$/\1/'`
843         at_groups="$at_groups$at_range "
844         ;;
845
846     [0-9]-[0-9] | [0-9]-[0-9][0-9] | [0-9]-[0-9][0-9][0-9] | \
847     [0-9]-[0-9][0-9][0-9][0-9] | [0-9][0-9]-[0-9][0-9] | \
848     [0-9][0-9]-[0-9][0-9][0-9] | [0-9][0-9]-[0-9][0-9][0-9][0-9] | \
849     [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] | \
851     [0-9][0-9][0-9][0-9]-[0-9][0-9][0-9][0-9] )
852         at_range_start=`expr $at_option : '\(.*\)-'`
853         at_range_end=`expr $at_option : '.*-\(.*\)'`
854         if test $at_range_start -gt $at_range_end; then
855           at_tmp=$at_range_end
856           at_range_end=$at_range_start
857           at_range_start=$at_tmp
858         fi
859         at_func_validate_ranges at_range_start at_range_end
860         at_range=`$as_echo " $at_groups_all " | \
861           sed -e 's/^.*\( '$at_range_start' \)/\1/' \
862               -e 's/\( '$at_range_end'\) .*$/\1/'`
863         at_groups="$at_groups$at_range "
864         ;;
865
866     # Directory selection.
867     --directory | -C )
868         at_prev=--directory
869         ;;
870     --directory=* )
871         at_change_dir=:
872         at_dir=$at_optarg
873         ;;
874
875     # Keywords.
876     --keywords | -k )
877         at_prev=--keywords
878         ;;
879     --keywords=* )
880         at_groups_selected=$at_help_all
881         at_save_IFS=$IFS
882         IFS=,
883         set X $at_optarg
884         shift
885         IFS=$at_save_IFS
886         for at_keyword
887         do
888           at_invert=
889           case $at_keyword in
890           '!'*)
891             at_invert="-v"
892             at_keyword=`expr "X$at_keyword" : 'X!\(.*\)'`
893             ;;
894           esac
895           # It is on purpose that we match the test group titles too.
896           at_groups_selected=`$as_echo "$at_groups_selected" |
897               grep -i $at_invert "^[1-9][^;]*;.*[; ]$at_keyword[ ;]"`
898         done
899         # Smash the newlines.
900         at_groups_selected=`$as_echo "$at_groups_selected" | sed 's/;.*//' |
901           tr "$as_nl" ' '
902         `
903         at_groups="$at_groups$at_groups_selected "
904         ;;
905
906     *=*)
907         at_envvar=`expr "x$at_option" : 'x\([^=]*\)='`
908         # Reject names that are not valid shell variable names.
909         case $at_envvar in
910           '' | [0-9]* | *[!_$as_cr_alnum]* )
911             { { $as_echo "$as_me:$LINENO: error: invalid variable name: $at_envvar" >&5
912 $as_echo "$as_me: error: invalid variable name: $at_envvar" >&2;}
913    { (exit 1); exit 1; }; } ;;
914         esac
915         at_value=`$as_echo "$at_optarg" | sed "s/'/'\\\\\\\\''/g"`
916         # Export now, but save eval for later and for debug scripts.
917         export $at_envvar
918         at_debug_args="$at_debug_args $at_envvar='$at_value'"
919         ;;
920
921      *) $as_echo "$as_me: invalid option: $at_option" >&2
922         $as_echo "Try \`$0 --help' for more information." >&2
923         exit 1
924         ;;
925   esac
926 done
927
928 # Verify our last option didn't require an argument
929 if test -n "$at_prev"; then
930   { { $as_echo "$as_me:$LINENO: error: \`$at_prev' requires an argument." >&5
931 $as_echo "$as_me: error: \`$at_prev' requires an argument." >&2;}
932    { (exit 1); exit 1; }; }
933 fi
934
935
936 # Selected test groups.
937 if test -z "$at_groups"; then
938   at_groups=$at_groups_all
939 else
940   # Sort the tests, removing duplicates.
941   at_groups=`$as_echo "$at_groups" | tr ' ' "$as_nl" | sort -nu`
942 fi
943
944 # Help message.
945 if $at_help_p; then
946   cat <<_ATEOF || at_write_fail=1
947 Usage: $0 [OPTION]... [VARIABLE=VALUE]... [TESTS]
948
949 Run all the tests, or the selected TESTS, given by numeric ranges, and
950 save a detailed log file.  Upon failure, create debugging scripts.
951
952 You should not change environment variables unless explicitly passed
953 as command line arguments.  Set \`AUTOTEST_PATH' to select the executables
954 to exercise.  Each relative directory is expanded as build and source
955 directories relatively to the top level of this distribution.  E.g.,
956
957   $ $0 AUTOTEST_PATH=bin
958
959 possibly amounts into
960
961   PATH=/tmp/foo-1.0/bin:/src/foo-1.0/bin:\$PATH
962 _ATEOF
963 cat <<_ATEOF || at_write_fail=1
964
965 Operation modes:
966   -h, --help     print the help message, then exit
967   -V, --version  print version number, then exit
968   -c, --clean    remove all the files this test suite might create and exit
969   -l, --list     describes all the tests, or the selected TESTS
970 _ATEOF
971 cat <<_ATEOF || at_write_fail=1
972
973 Execution tuning:
974   -C, --directory=DIR
975                  change to directory DIR before starting
976   -k, --keywords=KEYWORDS
977                  select the tests matching all the comma-separated KEYWORDS
978                  multiple \`-k' accumulate; prefixed \`!' negates a KEYWORD
979   -e, --errexit  abort as soon as a test fails; implies --debug
980   -v, --verbose  force more detailed output
981                  default for debugging scripts
982   -d, --debug    inhibit clean up and top-level logging
983                  default for debugging scripts
984   -x, --trace    enable tests shell tracing
985 _ATEOF
986 cat <<_ATEOF || at_write_fail=1
987
988 Report bugs to <bug-tar@gnu.org>.
989 _ATEOF
990   exit $at_write_fail
991 fi
992
993 # List of tests.
994 if $at_list_p; then
995   cat <<_ATEOF || at_write_fail=1
996 GNU tar 1.25 test suite test groups:
997
998  NUM: FILE-NAME:LINE     TEST-GROUP-NAME
999       KEYWORDS
1000
1001 _ATEOF
1002   # Passing at_groups is tricky.  We cannot use it to form a literal string
1003   # or regexp because of the limitation of AIX awk.  And Solaris' awk
1004   # doesn't grok more than 99 fields in a record, so we have to use `split'.
1005   # at_groups needs to be space-separated for this script to work.
1006   case $at_groups in
1007     *"$as_nl"* )
1008       at_groups=`$as_echo "$at_groups" | tr "$as_nl" ' '` ;;
1009   esac
1010   $as_echo "$at_groups$as_nl$at_help_all" |
1011     awk 'BEGIN { FS = ";" }
1012          NR == 1 {
1013            for (n = split($ 0, a, " "); n; n--) selected[a[n]] = 1
1014            next
1015          }
1016          {
1017            if (selected[$ 1]) {
1018              printf " %3d: %-18s %s\n", $ 1, $ 2, $ 3
1019              if ($ 4) printf "      %s\n", $ 4
1020            }
1021          }' || at_write_fail=1
1022   exit $at_write_fail
1023 fi
1024 if $at_version_p; then
1025   $as_echo "$as_me (GNU tar 1.25)" &&
1026   cat <<\_ACEOF || at_write_fail=1
1027
1028 Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
1029 Free Software Foundation, Inc.
1030 This test suite is free software; the Free Software Foundation gives
1031 unlimited permission to copy, distribute and modify it.
1032 _ACEOF
1033   exit $at_write_fail
1034 fi
1035
1036 # Should we print banners?  at_groups is space-separated for entire test,
1037 # newline-separated if only a subset of the testsuite is run.
1038 case $at_groups in
1039   *' '*' '* | *"$as_nl"*"$as_nl"* )
1040       at_print_banners=: ;;
1041   * ) at_print_banners=false ;;
1042 esac
1043 # Text for banner N, set to empty once printed.
1044
1045 # Take any -C into account.
1046 if $at_change_dir ; then
1047   if test x- = "x$at_dir" ; then
1048     at_dir=./-
1049   fi
1050   test x != "x$at_dir" && cd "$at_dir" \
1051     || { { $as_echo "$as_me:$LINENO: error: unable to change directory" >&5
1052 $as_echo "$as_me: error: unable to change directory" >&2;}
1053    { (exit 1); exit 1; }; }
1054   at_dir=`pwd`
1055 fi
1056
1057 # Load the config files for any default variable assignments.
1058 for at_file in atconfig atlocal
1059 do
1060   test -r $at_file || continue
1061   . ./$at_file || { { $as_echo "$as_me:$LINENO: error: invalid content: $at_file" >&5
1062 $as_echo "$as_me: error: invalid content: $at_file" >&2;}
1063    { (exit 1); exit 1; }; }
1064 done
1065
1066 # Autoconf <=2.59b set at_top_builddir instead of at_top_build_prefix:
1067 : ${at_top_build_prefix=$at_top_builddir}
1068
1069 # Perform any assignments requested during argument parsing.
1070 eval "$at_debug_args"
1071
1072 # atconfig delivers names relative to the directory the test suite is
1073 # in, but the groups themselves are run in testsuite-dir/group-dir.
1074 if test -n "$at_top_srcdir"; then
1075   builddir=../..
1076   for at_dir_var in srcdir top_srcdir top_build_prefix
1077   do
1078     at_val=`eval 'as_val=${'at_$at_dir_var'}
1079                  $as_echo "$as_val"'`
1080     case $at_val in
1081       [\\/$]* | ?:[\\/]* ) at_prefix= ;;
1082       *) at_prefix=../../ ;;
1083     esac
1084     eval "$at_dir_var=\$at_prefix\$at_val"
1085   done
1086 fi
1087
1088 ## ------------------- ##
1089 ## Directory structure ##
1090 ## ------------------- ##
1091
1092 # This is the set of directories and files used by this script
1093 # (non-literals are capitalized):
1094 #
1095 # TESTSUITE         - the testsuite
1096 # TESTSUITE.log     - summarizes the complete testsuite run
1097 # TESTSUITE.dir/    - created during a run, remains after -d or failed test
1098 # + at-groups/      - during a run: status of all groups in run
1099 # | + NNN/          - during a run: meta-data about test group NNN
1100 # | | + check-line  - location (source file and line) of current AT_CHECK
1101 # | | + status      - exit status of current AT_CHECK
1102 # | | + stdout      - stdout of current AT_CHECK
1103 # | | + stder1      - stderr, including trace
1104 # | | + stderr      - stderr, with trace filtered out
1105 # | | + test-source - portion of testsuite that defines group
1106 # | | + times       - timestamps for computing duration
1107 # | | + pass        - created if group passed
1108 # | | + xpass       - created if group xpassed
1109 # | | + fail        - created if group failed
1110 # | | + xfail       - created if group xfailed
1111 # | | + skip        - created if group skipped
1112 # + at-stop         - during a run: end the run if this file exists
1113 # + at-source-lines - during a run: cache of TESTSUITE line numbers for extraction
1114 # + 0..NNN/         - created for each group NNN, remains after -d or failed test
1115 # | + TESTSUITE.log - summarizes the group results
1116 # | + ...           - files created during the group
1117
1118 # The directory the whole suite works in.
1119 # Should be absolute to let the user `cd' at will.
1120 at_suite_dir=$at_dir/$as_me.dir
1121 # The file containing the suite.
1122 at_suite_log=$at_dir/$as_me.log
1123 # The directory containing helper files per test group.
1124 at_helper_dir=$at_suite_dir/at-groups
1125 # Stop file: if it exists, do not start new jobs.
1126 at_stop_file=$at_suite_dir/at-stop
1127
1128 if $at_clean; then
1129   test -d "$at_suite_dir" &&
1130     find "$at_suite_dir" -type d ! -perm -700 -exec chmod u+rwx \{\} \;
1131   rm -f -r "$at_suite_dir" "$at_suite_log"
1132   exit $?
1133 fi
1134
1135 # Don't take risks: use only absolute directories in PATH.
1136 #
1137 # For stand-alone test suites (ie. atconfig was not found),
1138 # AUTOTEST_PATH is relative to `.'.
1139 #
1140 # For embedded test suites, AUTOTEST_PATH is relative to the top level
1141 # of the package.  Then expand it into build/src parts, since users
1142 # may create executables in both places.
1143 AUTOTEST_PATH=`$as_echo "$AUTOTEST_PATH" | sed "s|:|$PATH_SEPARATOR|g"`
1144 at_path=
1145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1146 for as_dir in $AUTOTEST_PATH $PATH
1147 do
1148   IFS=$as_save_IFS
1149   test -z "$as_dir" && as_dir=.
1150   test -n "$at_path" && at_path=$at_path$PATH_SEPARATOR
1151 case $as_dir in
1152   [\\/]* | ?:[\\/]* )
1153     at_path=$at_path$as_dir
1154     ;;
1155   * )
1156     if test -z "$at_top_build_prefix"; then
1157       # Stand-alone test suite.
1158       at_path=$at_path$as_dir
1159     else
1160       # Embedded test suite.
1161       at_path=$at_path$at_top_build_prefix$as_dir$PATH_SEPARATOR
1162       at_path=$at_path$at_top_srcdir/$as_dir
1163     fi
1164     ;;
1165 esac
1166 done
1167 IFS=$as_save_IFS
1168
1169
1170 # Now build and simplify PATH.
1171 #
1172 # There might be directories that don't exist, but don't redirect
1173 # builtins' (eg., cd) stderr directly: Ultrix's sh hates that.
1174 at_new_path=
1175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1176 for as_dir in $at_path
1177 do
1178   IFS=$as_save_IFS
1179   test -z "$as_dir" && as_dir=.
1180   test -d "$as_dir" || continue
1181 case $as_dir in
1182   [\\/]* | ?:[\\/]* ) ;;
1183   * ) as_dir=`(cd "$as_dir" && pwd) 2>/dev/null` ;;
1184 esac
1185 case $PATH_SEPARATOR$at_new_path$PATH_SEPARATOR in
1186   *$PATH_SEPARATOR$as_dir$PATH_SEPARATOR*) ;;
1187   $PATH_SEPARATOR$PATH_SEPARATOR) at_new_path=$as_dir ;;
1188   *) at_new_path=$at_new_path$PATH_SEPARATOR$as_dir ;;
1189 esac
1190 done
1191 IFS=$as_save_IFS
1192
1193 PATH=$at_new_path
1194 export PATH
1195
1196 # Setting up the FDs.
1197 # 5 is the log file.  Not to be overwritten if `-d'.
1198 if $at_debug_p; then
1199   at_suite_log=/dev/null
1200 else
1201   : >"$at_suite_log"
1202 fi
1203 exec 5>>"$at_suite_log"
1204
1205 # Banners and logs.
1206 cat <<\_ASBOX
1207 ## ------------------------ ##
1208 ## GNU tar 1.25 test suite. ##
1209 ## ------------------------ ##
1210 _ASBOX
1211 {
1212   cat <<\_ASBOX
1213 ## ------------------------ ##
1214 ## GNU tar 1.25 test suite. ##
1215 ## ------------------------ ##
1216 _ASBOX
1217   echo
1218
1219   $as_echo "$as_me: command line was:"
1220   $as_echo "  \$ $0 $at_cli_args"
1221   echo
1222
1223   # Try to find a few ChangeLogs in case it might help determining the
1224   # exact version.  Use the relative dir: if the top dir is a symlink,
1225   # find will not follow it (and options to follow the links are not
1226   # portable), which would result in no output here.  Prune directories
1227   # matching the package tarname, since they tend to be leftovers from
1228   # `make dist' or `make distcheck' and contain redundant or stale logs.
1229   if test -n "$at_top_srcdir"; then
1230     cat <<\_ASBOX
1231 ## ----------- ##
1232 ## ChangeLogs. ##
1233 ## ----------- ##
1234 _ASBOX
1235     echo
1236     for at_file in `find "$at_top_srcdir" -name "tar-*" -prune -o -name ChangeLog -print`
1237     do
1238       $as_echo "$as_me: $at_file:"
1239       sed 's/^/| /;10q' $at_file
1240       echo
1241     done
1242
1243   fi
1244
1245   {
1246 cat <<_ASUNAME
1247 ## --------- ##
1248 ## Platform. ##
1249 ## --------- ##
1250
1251 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1252 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1253 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1254 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1255 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1256
1257 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1258 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1259
1260 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1261 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1262 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1263 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1264 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1265 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1266 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1267
1268 _ASUNAME
1269
1270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1271 for as_dir in $PATH
1272 do
1273   IFS=$as_save_IFS
1274   test -z "$as_dir" && as_dir=.
1275   $as_echo "PATH: $as_dir"
1276 done
1277 IFS=$as_save_IFS
1278
1279 }
1280   echo
1281
1282   # Contents of the config files.
1283   for at_file in atconfig atlocal
1284   do
1285     test -r $at_file || continue
1286     $as_echo "$as_me: $at_file:"
1287     sed 's/^/| /' $at_file
1288     echo
1289   done
1290 } >&5
1291
1292
1293 ## --------------- ##
1294 ## Shell functions ##
1295 ## --------------- ##
1296
1297 # at_func_banner NUMBER
1298 # ---------------------
1299 # Output banner NUMBER, provided the testsuite is running multiple groups
1300 # and this particular banner has not yet been printed.
1301 at_func_banner ()
1302 {
1303   $at_print_banners || return 0
1304   eval at_banner_text=\$at_banner_text_$1
1305   test "x$at_banner_text" = x && return 0
1306   eval at_banner_text_$1=
1307   $as_echo "$as_nl$at_banner_text$as_nl"
1308 } # at_func_banner
1309
1310 # at_func_check_newline COMMAND
1311 # -----------------------------
1312 # Test if COMMAND includes a newline and, if so, print a message and return
1313 # exit code 1
1314 at_func_check_newline ()
1315 {
1316   case "$1" in
1317  *'
1318 '*) echo 'Not enabling shell tracing (command contains an embedded newline)'
1319     return 1 ;;
1320  *) return 0 ;;
1321   esac
1322 }
1323
1324 # at_func_filter_trace EXIT-CODE
1325 # ------------------------------
1326 # Split the contents of file "$at_stder1" into the "set -x" trace (on stderr)
1327 # and the other lines (on file "$at_stderr").  Return the exit code EXIT-CODE.
1328 at_func_filter_trace ()
1329 {
1330   grep '^ *+' "$at_stder1" >&2
1331   grep -v '^ *+' "$at_stder1" >"$at_stderr"
1332   return $1
1333 }
1334
1335 # at_func_log_failure FILE-LIST
1336 # -----------------------------
1337 # Copy the files in the list on stdout with a "> " prefix, and exit the shell
1338 # with a failure exit code.
1339 at_func_log_failure ()
1340 {
1341   for file
1342     do $as_echo "$file:"; sed 's/^/> /' "$file"; done
1343   echo 1 > "$at_status_file"
1344   exit 1
1345 }
1346
1347 # at_func_check_skip EXIT-CODE
1348 # ----------------------------
1349 # Check whether EXIT-CODE is the special exit code 77, and if so exit the shell
1350 # with that same exit code.
1351 at_func_check_skip ()
1352 {
1353   case $1 in
1354     77) echo 77 > "$at_status_file"; exit 77;;
1355   esac
1356 }
1357
1358 # at_func_check_status EXPECTED EXIT-CODE LINE
1359 # --------------------------------------------
1360 # Check whether EXIT-CODE is the expected exit code, and if so do nothing.
1361 # Otherwise, if it is 77 exit the shell with that same exit code; if it is
1362 # anything else print an error message and fail the test.
1363 at_func_check_status ()
1364 {
1365   case $2 in
1366     $1 ) ;;
1367     77) echo 77 > "$at_status_file"; exit 77;;
1368     *) $as_echo "$3: exit code was $2, expected $1"
1369       at_failed=:;;
1370   esac
1371 }
1372
1373 # at_func_diff_devnull FILE
1374 # -------------------------
1375 # Emit a diff between /dev/null and FILE.  Uses "test -s" to avoid useless
1376 # diff invocations.
1377 at_func_diff_devnull ()
1378 {
1379   test -s "$1" || return 0
1380   $at_diff "$at_devnull" "$1"
1381 }
1382
1383 # at_func_test NUMBER
1384 # -------------------
1385 # Parse out test NUMBER from the tail of this file.
1386 at_func_test ()
1387 {
1388   eval at_sed=\$at_sed$1
1389   sed "$at_sed" "$at_myself" > "$at_test_source"
1390 }
1391
1392 # at_func_create_debugging_script
1393 # -------------------------------
1394 # Create the debugging script $at_group_dir/run which will reproduce the
1395 # current test group.
1396 at_func_create_debugging_script ()
1397 {
1398   {
1399     echo "#! /bin/sh" &&
1400     echo 'test "${ZSH_VERSION+set}" = set && alias -g '\''${1+"$@"}'\''='\''"$@"'\''' &&
1401     $as_echo "cd '$at_dir'" &&
1402     $as_echo "exec \${CONFIG_SHELL-$SHELL} \"$at_myself\" -v -d $at_debug_args $at_group \${1+\"\$@\"}" &&
1403     echo 'exit 1'
1404   } >"$at_group_dir/run" &&
1405   chmod +x "$at_group_dir/run"
1406 }
1407
1408 # at_func_arith
1409 # -------------
1410 # Arithmetic evaluation, avoids expr if the shell is sane.  The
1411 # interpretation of leading zeroes is unspecified.
1412 #
1413 # subshell and eval are needed to keep Solaris sh from bailing out:
1414 if ( eval 'test $(( 1 + 1 )) = 2' ) 2>/dev/null; then
1415   # With "$@", bash does not split positional parameters:
1416   eval 'at_func_arith ()
1417   {
1418     at_func_arith_result=$(( $* ))
1419   }'
1420 else
1421   at_func_arith ()
1422   {
1423     at_func_arith_result=`expr "$@"`
1424   }
1425 fi
1426
1427 ## ---------------------- ##
1428 ## End of shell functions ##
1429 ## ---------------------- ##
1430 {
1431   cat <<\_ASBOX
1432 ## ---------------- ##
1433 ## Tested programs. ##
1434 ## ---------------- ##
1435 _ASBOX
1436   echo
1437 } >&5
1438
1439 # Report what programs are being tested.
1440 for at_program in : $at_tested
1441 do
1442   test "$at_program" = : && continue
1443   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1444 for as_dir in $PATH
1445 do
1446   IFS=$as_save_IFS
1447   test -z "$as_dir" && as_dir=.
1448   test -f "$as_dir/$at_program" && break
1449 done
1450 IFS=$as_save_IFS
1451
1452   if test -f "$as_dir/$at_program"; then
1453     {
1454       $as_echo "$at_srcdir/testsuite.at:104: $as_dir/$at_program --version"
1455       "$as_dir/$at_program" --version </dev/null
1456       echo
1457     } >&5 2>&1
1458   else
1459     { { $as_echo "$as_me:$LINENO: error: cannot find $at_program" >&5
1460 $as_echo "$as_me: error: cannot find $at_program" >&2;}
1461    { (exit 1); exit 1; }; }
1462   fi
1463 done
1464
1465 {
1466   cat <<\_ASBOX
1467 ## ------------------ ##
1468 ## Running the tests. ##
1469 ## ------------------ ##
1470 _ASBOX
1471 } >&5
1472
1473 at_start_date=`date`
1474 at_start_time=`date +%s 2>/dev/null`
1475 $as_echo "$as_me: starting at: $at_start_date" >&5
1476
1477 # Create the master directory if it doesn't already exist.
1478 test -d "$at_suite_dir" ||
1479   mkdir "$at_suite_dir" ||
1480   { { $as_echo "$as_me:$LINENO: error: cannot create '$at_suite_dir'" >&5
1481 $as_echo "$as_me: error: cannot create '$at_suite_dir'" >&2;}
1482    { (exit 1); exit 1; }; }
1483
1484 # Can we diff with `/dev/null'?  DU 5.0 refuses.
1485 if diff /dev/null /dev/null >/dev/null 2>&1; then
1486   at_devnull=/dev/null
1487 else
1488   at_devnull=$at_suite_dir/devnull
1489   >"$at_devnull"
1490 fi
1491
1492 # Use `diff -u' when possible.
1493 if at_diff=`diff -u "$at_devnull" "$at_devnull" 2>&1` && test -z "$at_diff"
1494 then
1495   at_diff='diff -u'
1496 else
1497   at_diff=diff
1498 fi
1499
1500 # Get the last needed group.
1501 for at_group in : $at_groups; do :; done
1502
1503 # Extract the start and end lines of each test group at the tail
1504 # of this file
1505 awk '
1506 BEGIN { FS="\a" }
1507 /^#AT_START_/ {
1508   start = NR
1509 }
1510 /^#AT_STOP_/ {
1511   test = substr ($ 0, 10)
1512   print "at_sed" test "=\"1," start "d;" (NR-1) "q\""
1513   if (test == "'"$at_group"'") exit
1514 }' "$at_myself" > "$at_suite_dir/at-source-lines" &&
1515 . "$at_suite_dir/at-source-lines" ||
1516   { { $as_echo "$as_me:$LINENO: error: cannot create test line number cache" >&5
1517 $as_echo "$as_me: error: cannot create test line number cache" >&2;}
1518    { (exit 1); exit 1; }; }
1519 rm -f "$at_suite_dir/at-source-lines"
1520
1521 # Set up helper dirs.
1522 rm -rf "$at_helper_dir" &&
1523 mkdir "$at_helper_dir" &&
1524 cd "$at_helper_dir" &&
1525 { test -z "$at_groups" || mkdir $at_groups; } ||
1526 { { $as_echo "$as_me:$LINENO: error: testsuite directory setup failed" >&5
1527 $as_echo "$as_me: error: testsuite directory setup failed" >&2;}
1528    { (exit 1); exit 1; }; }
1529
1530 # Functions for running a test group.  We leave the actual
1531 # test group execution outside of a shell function in order
1532 # to avoid hitting zsh 4.x exit status bugs.
1533
1534 # at_func_group_prepare
1535 # ---------------------
1536 # Prepare running a test group
1537 at_func_group_prepare ()
1538 {
1539   # The directory for additional per-group helper files.
1540   at_job_dir=$at_helper_dir/$at_group
1541   # The file containing the location of the last AT_CHECK.
1542   at_check_line_file=$at_job_dir/check-line
1543   # The file containing the exit status of the last command.
1544   at_status_file=$at_job_dir/status
1545   # The files containing the output of the tested commands.
1546   at_stdout=$at_job_dir/stdout
1547   at_stder1=$at_job_dir/stder1
1548   at_stderr=$at_job_dir/stderr
1549   # The file containing the code for a test group.
1550   at_test_source=$at_job_dir/test-source
1551   # The file containing dates.
1552   at_times_file=$at_job_dir/times
1553
1554   # Be sure to come back to the top test directory.
1555   cd "$at_suite_dir"
1556
1557   # Clearly separate the test groups when verbose.
1558   $at_first || $at_verbose echo
1559
1560   at_group_normalized=$at_group
1561
1562   eval 'while :; do
1563     case $at_group_normalized in #(
1564     '"$at_format"'*) break;;
1565     esac
1566     at_group_normalized=0$at_group_normalized
1567   done'
1568
1569
1570   # Create a fresh directory for the next test group, and enter.
1571   at_group_dir=$at_suite_dir/$at_group_normalized
1572   at_group_log=$at_group_dir/$as_me.log
1573   if test -d "$at_group_dir"; then
1574     find "$at_group_dir" -type d ! -perm -700 -exec chmod u+rwx \{\} \;
1575     rm -fr "$at_group_dir" ||
1576     { $as_echo "$as_me:$LINENO: WARNING: test directory for $at_group_normalized could not be cleaned." >&5
1577 $as_echo "$as_me: WARNING: test directory for $at_group_normalized could not be cleaned." >&2;}
1578   fi
1579   # Be tolerant if the above `rm' was not able to remove the directory.
1580   { as_dir="$at_group_dir"
1581   case $as_dir in #(
1582   -*) as_dir=./$as_dir;;
1583   esac
1584   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
1585     as_dirs=
1586     while :; do
1587       case $as_dir in #(
1588       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
1589       *) as_qdir=$as_dir;;
1590       esac
1591       as_dirs="'$as_qdir' $as_dirs"
1592       as_dir=`$as_dirname -- "$as_dir" ||
1593 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1594          X"$as_dir" : 'X\(//\)[^/]' \| \
1595          X"$as_dir" : 'X\(//\)$' \| \
1596          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
1597 $as_echo X"$as_dir" |
1598     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1599             s//\1/
1600             q
1601           }
1602           /^X\(\/\/\)[^/].*/{
1603             s//\1/
1604             q
1605           }
1606           /^X\(\/\/\)$/{
1607             s//\1/
1608             q
1609           }
1610           /^X\(\/\).*/{
1611             s//\1/
1612             q
1613           }
1614           s/.*/./; q'`
1615       test -d "$as_dir" && break
1616     done
1617     test -z "$as_dirs" || eval "mkdir $as_dirs"
1618   } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
1619 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
1620    { (exit 1); exit 1; }; }; }
1621
1622   echo 0 > "$at_status_file"
1623
1624   # In verbose mode, append to the log file *and* show on
1625   # the standard output; in quiet mode only write to the log.
1626   if test -z "$at_verbose"; then
1627     at_tee_pipe='tee -a "$at_group_log"'
1628   else
1629     at_tee_pipe='cat >> "$at_group_log"'
1630   fi
1631 }
1632
1633 # at_func_group_postprocess
1634 # -------------------------
1635 at_func_group_postprocess ()
1636 {
1637   # Be sure to come back to the suite directory, in particular
1638   # since below we might `rm' the group directory we are in currently.
1639   cd "$at_suite_dir"
1640
1641   if test ! -f "$at_check_line_file"; then
1642     sed "s/^ */$as_me: WARNING: /" <<_ATEOF
1643       A failure happened in a test group before any test could be
1644       run. This means that test suite is improperly designed.  Please
1645       report this failure to <bug-tar@gnu.org>.
1646 _ATEOF
1647     $as_echo "$at_setup_line" >"$at_check_line_file"
1648   fi
1649   $at_verbose $as_echo_n "$at_group. $at_setup_line: "
1650   $as_echo_n "$at_group. $at_setup_line: " >> "$at_group_log"
1651   case $at_xfail:$at_status in
1652     yes:0)
1653         at_msg="UNEXPECTED PASS"
1654         at_res=xpass
1655         at_errexit=$at_errexit_p
1656         ;;
1657     no:0)
1658         at_msg="ok"
1659         at_res=pass
1660         at_errexit=false
1661         ;;
1662     *:77)
1663         at_msg='skipped ('`cat "$at_check_line_file"`')'
1664         at_res=skip
1665         at_errexit=false
1666         ;;
1667     yes:*)
1668         at_msg='expected failure ('`cat "$at_check_line_file"`')'
1669         at_res=xfail
1670         at_errexit=false
1671         ;;
1672     no:*)
1673         at_msg='FAILED ('`cat "$at_check_line_file"`')'
1674         at_res=fail
1675         at_errexit=$at_errexit_p
1676         ;;
1677   esac
1678   echo "$at_res" > "$at_job_dir/$at_res"
1679   # Make sure there is a separator even with long titles.
1680   $as_echo " $at_msg"
1681   at_log_msg="$at_group. $at_desc ($at_setup_line): $at_msg"
1682   case $at_status in
1683     0|77)
1684       # $at_times_file is only available if the group succeeded.
1685       # We're not including the group log, so the success message
1686       # is written in the global log separately.  But we also
1687       # write to the group log in case they're using -d.
1688       if test -f "$at_times_file"; then
1689         at_log_msg="$at_log_msg     ("`sed 1d "$at_times_file"`')'
1690         rm -f "$at_times_file"
1691       fi
1692       $as_echo "$at_log_msg" >> "$at_group_log"
1693       $as_echo "$at_log_msg" >&5
1694
1695       # Cleanup the group directory, unless the user wants the files.
1696       if $at_debug_p; then
1697         at_func_create_debugging_script
1698       else
1699         if test -d "$at_group_dir"; then
1700           find "$at_group_dir" -type d ! -perm -700 -exec chmod u+rwx \{\} \;
1701           rm -fr "$at_group_dir"
1702         fi
1703         rm -f "$at_test_source"
1704       fi
1705       ;;
1706     *)
1707       # Upon failure, include the log into the testsuite's global
1708       # log.  The failure message is written in the group log.  It
1709       # is later included in the global log.
1710       $as_echo "$at_log_msg" >> "$at_group_log"
1711
1712       # Upon failure, keep the group directory for autopsy, and create
1713       # the debugging script.  With -e, do not start any further tests.
1714       at_func_create_debugging_script
1715       if $at_errexit; then
1716         echo stop > "$at_stop_file"
1717       fi
1718       ;;
1719   esac
1720 }
1721
1722
1723 ## ------------ ##
1724 ## Driver loop. ##
1725 ## ------------ ##
1726
1727 rm -f "$at_stop_file"
1728 at_first=:
1729
1730 for at_group in $at_groups; do
1731   at_func_group_prepare
1732   if cd "$at_group_dir" &&
1733      at_func_test $at_group &&
1734      . "$at_test_source"; then :; else
1735     { $as_echo "$as_me:$LINENO: WARNING: unable to parse test group: $at_group" >&5
1736 $as_echo "$as_me: WARNING: unable to parse test group: $at_group" >&2;}
1737     at_failed=:
1738   fi
1739   at_func_group_postprocess
1740   test -f "$at_stop_file" && break
1741   at_first=false
1742 done
1743
1744 # Wrap up the test suite with summary statistics.
1745 cd "$at_helper_dir"
1746
1747 # Use ?..???? when the list must remain sorted, the faster * otherwise.
1748 at_pass_list=`for f in */pass; do echo $f; done | sed '/\*/d; s,/pass,,'`
1749 at_skip_list=`for f in */skip; do echo $f; done | sed '/\*/d; s,/skip,,'`
1750 at_xfail_list=`for f in */xfail; do echo $f; done | sed '/\*/d; s,/xfail,,'`
1751 at_xpass_list=`for f in ?/xpass ??/xpass ???/xpass ????/xpass; do
1752                  echo $f; done | sed '/?/d; s,/xpass,,'`
1753 at_fail_list=`for f in ?/fail ??/fail ???/fail ????/fail; do
1754                 echo $f; done | sed '/?/d; s,/fail,,'`
1755
1756 set X $at_pass_list $at_xpass_list $at_xfail_list $at_fail_list $at_skip_list
1757 shift; at_group_count=$#
1758 set X $at_xpass_list; shift; at_xpass_count=$#; at_xpass_list=$*
1759 set X $at_xfail_list; shift; at_xfail_count=$#
1760 set X $at_fail_list; shift; at_fail_count=$#; at_fail_list=$*
1761 set X $at_skip_list; shift; at_skip_count=$#
1762
1763 at_func_arith $at_group_count - $at_skip_count
1764 at_run_count=$at_func_arith_result
1765 at_func_arith $at_xpass_count + $at_fail_count
1766 at_unexpected_count=$at_func_arith_result
1767 at_func_arith $at_xfail_count + $at_fail_count
1768 at_total_fail_count=$at_func_arith_result
1769
1770 # Back to the top directory.
1771 cd "$at_dir"
1772 rm -rf "$at_helper_dir"
1773
1774 # Compute the duration of the suite.
1775 at_stop_date=`date`
1776 at_stop_time=`date +%s 2>/dev/null`
1777 $as_echo "$as_me: ending at: $at_stop_date" >&5
1778 case $at_start_time,$at_stop_time in
1779   [0-9]*,[0-9]*)
1780     at_func_arith $at_stop_time - $at_start_time
1781     at_duration_s=$at_func_arith_result
1782     at_func_arith $at_duration_s / 60
1783     at_duration_m=$at_func_arith_result
1784     at_func_arith $at_duration_m / 60
1785     at_duration_h=$at_func_arith_result
1786     at_func_arith $at_duration_s % 60
1787     at_duration_s=$at_func_arith_result
1788     at_func_arith $at_duration_m % 60
1789     at_duration_m=$at_func_arith_result
1790     at_duration="${at_duration_h}h ${at_duration_m}m ${at_duration_s}s"
1791     $as_echo "$as_me: test suite duration: $at_duration" >&5
1792     ;;
1793 esac
1794
1795 echo
1796 cat <<\_ASBOX
1797 ## ------------- ##
1798 ## Test results. ##
1799 ## ------------- ##
1800 _ASBOX
1801 echo
1802 {
1803   echo
1804   cat <<\_ASBOX
1805 ## ------------- ##
1806 ## Test results. ##
1807 ## ------------- ##
1808 _ASBOX
1809   echo
1810 } >&5
1811
1812 if test $at_run_count = 1; then
1813   at_result="1 test"
1814   at_were=was
1815 else
1816   at_result="$at_run_count tests"
1817   at_were=were
1818 fi
1819 if $at_errexit_p && test $at_unexpected_count != 0; then
1820   if test $at_xpass_count = 1; then
1821     at_result="$at_result $at_were run, one passed"
1822   else
1823     at_result="$at_result $at_were run, one failed"
1824   fi
1825   at_result="$at_result unexpectedly and inhibited subsequent tests."
1826 else
1827   # Don't you just love exponential explosion of the number of cases?
1828   case $at_xpass_count:$at_fail_count:$at_xfail_count in
1829     # So far, so good.
1830     0:0:0) at_result="$at_result $at_were successful." ;;
1831     0:0:*) at_result="$at_result behaved as expected." ;;
1832
1833     # Some unexpected failures
1834     0:*:0) at_result="$at_result $at_were run,
1835 $at_fail_count failed unexpectedly." ;;
1836
1837     # Some failures, both expected and unexpected
1838     0:*:1) at_result="$at_result $at_were run,
1839 $at_total_fail_count failed ($at_xfail_count expected failure)." ;;
1840     0:*:*) at_result="$at_result $at_were run,
1841 $at_total_fail_count failed ($at_xfail_count expected failures)." ;;
1842
1843     # No unexpected failures, but some xpasses
1844     *:0:*) at_result="$at_result $at_were run,
1845 $at_xpass_count passed unexpectedly." ;;
1846
1847     # No expected failures, but failures and xpasses
1848     *:1:0) at_result="$at_result $at_were run,
1849 $at_unexpected_count did not behave as expected ($at_fail_count unexpected failure)." ;;
1850     *:*:0) at_result="$at_result $at_were run,
1851 $at_unexpected_count did not behave as expected ($at_fail_count unexpected failures)." ;;
1852
1853     # All of them.
1854     *:*:1) at_result="$at_result $at_were run,
1855 $at_xpass_count passed unexpectedly,
1856 $at_total_fail_count failed ($at_xfail_count expected failure)." ;;
1857     *:*:*) at_result="$at_result $at_were run,
1858 $at_xpass_count passed unexpectedly,
1859 $at_total_fail_count failed ($at_xfail_count expected failures)." ;;
1860   esac
1861
1862   if test $at_skip_count = 0 && test $at_run_count -gt 1; then
1863     at_result="All $at_result"
1864   fi
1865 fi
1866
1867 # Now put skips in the mix.
1868 case $at_skip_count in
1869   0) ;;
1870   1) at_result="$at_result
1871 1 test was skipped." ;;
1872   *) at_result="$at_result
1873 $at_skip_count tests were skipped." ;;
1874 esac
1875
1876 if test $at_unexpected_count = 0; then
1877   echo "$at_result"
1878   echo "$at_result" >&5
1879 else
1880   echo "ERROR: $at_result" >&2
1881   echo "ERROR: $at_result" >&5
1882   {
1883     echo
1884     cat <<\_ASBOX
1885 ## ------------------------ ##
1886 ## Summary of the failures. ##
1887 ## ------------------------ ##
1888 _ASBOX
1889
1890     # Summary of failed and skipped tests.
1891     if test $at_fail_count != 0; then
1892       echo "Failed tests:"
1893       $SHELL "$at_myself" $at_fail_list --list
1894       echo
1895     fi
1896     if test $at_skip_count != 0; then
1897       echo "Skipped tests:"
1898       $SHELL "$at_myself" $at_skip_list --list
1899       echo
1900     fi
1901     if test $at_xpass_count != 0; then
1902       echo "Unexpected passes:"
1903       $SHELL "$at_myself" $at_xpass_list --list
1904       echo
1905     fi
1906     if test $at_fail_count != 0; then
1907       cat <<\_ASBOX
1908 ## ---------------------- ##
1909 ## Detailed failed tests. ##
1910 ## ---------------------- ##
1911 _ASBOX
1912       echo
1913       for at_group in $at_fail_list
1914       do
1915         at_group_normalized=$at_group
1916
1917   eval 'while :; do
1918     case $at_group_normalized in #(
1919     '"$at_format"'*) break;;
1920     esac
1921     at_group_normalized=0$at_group_normalized
1922   done'
1923
1924         cat "$at_suite_dir/$at_group_normalized/$as_me.log"
1925         echo
1926       done
1927       echo
1928     fi
1929     if test -n "$at_top_srcdir"; then
1930       sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
1931 ## ${at_top_build_prefix}config.log ##
1932 _ASBOX
1933       sed 's/^/| /' ${at_top_build_prefix}config.log
1934       echo
1935     fi
1936   } >&5
1937
1938   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
1939 ## $as_me.log was created. ##
1940 _ASBOX
1941
1942   echo
1943   $as_echo "Please send \`${at_testdir+${at_testdir}/}$as_me.log' and all information you think might help:
1944
1945    To: <bug-tar@gnu.org>
1946    Subject: [GNU tar 1.25] $as_me: $at_fail_list${at_fail_list:+ failed${at_xpass_list:+, }}$at_xpass_list${at_xpass_list:+ passed unexpectedly}
1947 "
1948   if test $at_debug_p = false; then
1949     echo
1950     echo 'You may investigate any problem if you feel able to do so, in which'
1951     echo 'case the test suite provides a good starting point.  Its output may'
1952     $as_echo "be found below \`${at_testdir+${at_testdir}/}$as_me.dir'."
1953     echo
1954   fi
1955     exit 1
1956 fi
1957
1958 exit 0
1959
1960 ## ------------- ##
1961 ## Actual tests. ##
1962 ## ------------- ##
1963 #AT_START_1
1964 # 1. version.at:19: tar version
1965 at_setup_line='version.at:19'
1966 at_desc="tar version"
1967 $at_quiet $as_echo_n "  1: $at_desc                                    "
1968 at_xfail=no
1969 echo "#                             -*- compilation -*-" >> "$at_group_log"
1970 (
1971   $as_echo "1. version.at:19: testing ..."
1972   $at_traceon
1973
1974
1975 { $at_traceoff
1976 $as_echo "$at_srcdir/version.at:21: tar --version | sed 1q"
1977 echo version.at:21 >"$at_check_line_file"
1978
1979 if test -n "$at_traceon"; then
1980   ( $at_traceon; tar --version | sed 1q ) >"$at_stdout" 2>"$at_stder1"
1981   at_func_filter_trace $?
1982 else
1983   ( :; tar --version | sed 1q ) >"$at_stdout" 2>"$at_stderr"
1984 fi
1985 at_status=$?
1986 at_failed=false
1987 at_func_diff_devnull "$at_stderr" || at_failed=:
1988 echo >>"$at_stdout"; $as_echo "tar (GNU tar) 1.25
1989 " | \
1990   $at_diff - "$at_stdout" || at_failed=:
1991 at_func_check_status 0 $at_status "$at_srcdir/version.at:21"
1992 if $at_failed; then
1993   cat >$XFAILFILE <<'_EOT'
1994
1995 ==============================================================
1996 WARNING: Not using the proper version, *all* checks dubious...
1997 ==============================================================
1998 _EOT
1999
2000 else
2001   rm -f $XFAILFILE
2002 fi
2003
2004 $at_failed && at_func_log_failure
2005 $at_traceon; }
2006
2007
2008   $at_traceoff
2009   $at_times_p && times >"$at_times_file"
2010 ) 5>&1 2>&1 | eval $at_tee_pipe
2011 at_status=`cat "$at_status_file"`
2012 #AT_STOP_1
2013 #AT_START_2
2014 # 2. pipe.at:30: decompressing from stdin
2015 at_setup_line='pipe.at:30'
2016 at_desc="decompressing from stdin"
2017 $at_quiet $as_echo_n "  2: $at_desc                       "
2018 at_xfail=no
2019       test -f $XFAILFILE && at_xfail=yes
2020 echo "#                             -*- compilation -*-" >> "$at_group_log"
2021 (
2022   $as_echo "2. pipe.at:30: testing ..."
2023   $at_traceon
2024
2025
2026
2027
2028
2029
2030   { $at_traceoff
2031 $as_echo "$at_srcdir/pipe.at:34:
2032 mkdir v7
2033 (cd v7
2034 TEST_TAR_FORMAT=v7
2035 export TEST_TAR_FORMAT
2036 TAR_OPTIONS=\"-H v7\"
2037 export TAR_OPTIONS
2038 rm -rf *
2039
2040
2041 test -z "`sort < /dev/null 2>&1`" || exit 77
2042
2043
2044 mkdir directory
2045 genfile --length 10240 --pattern zeros --file directory/file1
2046 genfile --length 13 --file directory/file2
2047 tar cf archive directory
2048 mv directory orig
2049 cat archive | tar xfv - --warning=no-timestamp | sort
2050 echo \"separator\"
2051 cmp orig/file1 directory/file1
2052 echo \"separator\"
2053 cmp orig/file2 directory/file2)"
2054 echo pipe.at:34 >"$at_check_line_file"
2055
2056 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
2057    false; }; then
2058   ( $at_traceon;
2059 mkdir v7
2060 (cd v7
2061 TEST_TAR_FORMAT=v7
2062 export TEST_TAR_FORMAT
2063 TAR_OPTIONS="-H v7"
2064 export TAR_OPTIONS
2065 rm -rf *
2066
2067
2068 test -z "`sort < /dev/null 2>&1`" || exit 77
2069
2070
2071 mkdir directory
2072 genfile --length 10240 --pattern zeros --file directory/file1
2073 genfile --length 13 --file directory/file2
2074 tar cf archive directory
2075 mv directory orig
2076 cat archive | tar xfv - --warning=no-timestamp | sort
2077 echo "separator"
2078 cmp orig/file1 directory/file1
2079 echo "separator"
2080 cmp orig/file2 directory/file2) ) >"$at_stdout" 2>"$at_stder1"
2081   at_func_filter_trace $?
2082 else
2083   ( :;
2084 mkdir v7
2085 (cd v7
2086 TEST_TAR_FORMAT=v7
2087 export TEST_TAR_FORMAT
2088 TAR_OPTIONS="-H v7"
2089 export TAR_OPTIONS
2090 rm -rf *
2091
2092
2093 test -z "`sort < /dev/null 2>&1`" || exit 77
2094
2095
2096 mkdir directory
2097 genfile --length 10240 --pattern zeros --file directory/file1
2098 genfile --length 13 --file directory/file2
2099 tar cf archive directory
2100 mv directory orig
2101 cat archive | tar xfv - --warning=no-timestamp | sort
2102 echo "separator"
2103 cmp orig/file1 directory/file1
2104 echo "separator"
2105 cmp orig/file2 directory/file2) ) >"$at_stdout" 2>"$at_stderr"
2106 fi
2107 at_status=$?
2108 at_failed=false
2109 at_func_diff_devnull "$at_stderr" || at_failed=:
2110 echo >>"$at_stdout"; $as_echo "directory/
2111 directory/file1
2112 directory/file2
2113 separator
2114 separator
2115 " | \
2116   $at_diff - "$at_stdout" || at_failed=:
2117 at_func_check_status 0 $at_status "$at_srcdir/pipe.at:34"
2118
2119 $at_failed && at_func_log_failure
2120 $at_traceon; }
2121
2122               { $at_traceoff
2123 $as_echo "$at_srcdir/pipe.at:34:
2124 mkdir oldgnu
2125 (cd oldgnu
2126 TEST_TAR_FORMAT=oldgnu
2127 export TEST_TAR_FORMAT
2128 TAR_OPTIONS=\"-H oldgnu\"
2129 export TAR_OPTIONS
2130 rm -rf *
2131
2132
2133 test -z "`sort < /dev/null 2>&1`" || exit 77
2134
2135
2136 mkdir directory
2137 genfile --length 10240 --pattern zeros --file directory/file1
2138 genfile --length 13 --file directory/file2
2139 tar cf archive directory
2140 mv directory orig
2141 cat archive | tar xfv - --warning=no-timestamp | sort
2142 echo \"separator\"
2143 cmp orig/file1 directory/file1
2144 echo \"separator\"
2145 cmp orig/file2 directory/file2)"
2146 echo pipe.at:34 >"$at_check_line_file"
2147
2148 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
2149    false; }; then
2150   ( $at_traceon;
2151 mkdir oldgnu
2152 (cd oldgnu
2153 TEST_TAR_FORMAT=oldgnu
2154 export TEST_TAR_FORMAT
2155 TAR_OPTIONS="-H oldgnu"
2156 export TAR_OPTIONS
2157 rm -rf *
2158
2159
2160 test -z "`sort < /dev/null 2>&1`" || exit 77
2161
2162
2163 mkdir directory
2164 genfile --length 10240 --pattern zeros --file directory/file1
2165 genfile --length 13 --file directory/file2
2166 tar cf archive directory
2167 mv directory orig
2168 cat archive | tar xfv - --warning=no-timestamp | sort
2169 echo "separator"
2170 cmp orig/file1 directory/file1
2171 echo "separator"
2172 cmp orig/file2 directory/file2) ) >"$at_stdout" 2>"$at_stder1"
2173   at_func_filter_trace $?
2174 else
2175   ( :;
2176 mkdir oldgnu
2177 (cd oldgnu
2178 TEST_TAR_FORMAT=oldgnu
2179 export TEST_TAR_FORMAT
2180 TAR_OPTIONS="-H oldgnu"
2181 export TAR_OPTIONS
2182 rm -rf *
2183
2184
2185 test -z "`sort < /dev/null 2>&1`" || exit 77
2186
2187
2188 mkdir directory
2189 genfile --length 10240 --pattern zeros --file directory/file1
2190 genfile --length 13 --file directory/file2
2191 tar cf archive directory
2192 mv directory orig
2193 cat archive | tar xfv - --warning=no-timestamp | sort
2194 echo "separator"
2195 cmp orig/file1 directory/file1
2196 echo "separator"
2197 cmp orig/file2 directory/file2) ) >"$at_stdout" 2>"$at_stderr"
2198 fi
2199 at_status=$?
2200 at_failed=false
2201 at_func_diff_devnull "$at_stderr" || at_failed=:
2202 echo >>"$at_stdout"; $as_echo "directory/
2203 directory/file1
2204 directory/file2
2205 separator
2206 separator
2207 " | \
2208   $at_diff - "$at_stdout" || at_failed=:
2209 at_func_check_status 0 $at_status "$at_srcdir/pipe.at:34"
2210
2211 $at_failed && at_func_log_failure
2212 $at_traceon; }
2213
2214               { $at_traceoff
2215 $as_echo "$at_srcdir/pipe.at:34:
2216 mkdir ustar
2217 (cd ustar
2218 TEST_TAR_FORMAT=ustar
2219 export TEST_TAR_FORMAT
2220 TAR_OPTIONS=\"-H ustar\"
2221 export TAR_OPTIONS
2222 rm -rf *
2223
2224
2225 test -z "`sort < /dev/null 2>&1`" || exit 77
2226
2227
2228 mkdir directory
2229 genfile --length 10240 --pattern zeros --file directory/file1
2230 genfile --length 13 --file directory/file2
2231 tar cf archive directory
2232 mv directory orig
2233 cat archive | tar xfv - --warning=no-timestamp | sort
2234 echo \"separator\"
2235 cmp orig/file1 directory/file1
2236 echo \"separator\"
2237 cmp orig/file2 directory/file2)"
2238 echo pipe.at:34 >"$at_check_line_file"
2239
2240 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
2241    false; }; then
2242   ( $at_traceon;
2243 mkdir ustar
2244 (cd ustar
2245 TEST_TAR_FORMAT=ustar
2246 export TEST_TAR_FORMAT
2247 TAR_OPTIONS="-H ustar"
2248 export TAR_OPTIONS
2249 rm -rf *
2250
2251
2252 test -z "`sort < /dev/null 2>&1`" || exit 77
2253
2254
2255 mkdir directory
2256 genfile --length 10240 --pattern zeros --file directory/file1
2257 genfile --length 13 --file directory/file2
2258 tar cf archive directory
2259 mv directory orig
2260 cat archive | tar xfv - --warning=no-timestamp | sort
2261 echo "separator"
2262 cmp orig/file1 directory/file1
2263 echo "separator"
2264 cmp orig/file2 directory/file2) ) >"$at_stdout" 2>"$at_stder1"
2265   at_func_filter_trace $?
2266 else
2267   ( :;
2268 mkdir ustar
2269 (cd ustar
2270 TEST_TAR_FORMAT=ustar
2271 export TEST_TAR_FORMAT
2272 TAR_OPTIONS="-H ustar"
2273 export TAR_OPTIONS
2274 rm -rf *
2275
2276
2277 test -z "`sort < /dev/null 2>&1`" || exit 77
2278
2279
2280 mkdir directory
2281 genfile --length 10240 --pattern zeros --file directory/file1
2282 genfile --length 13 --file directory/file2
2283 tar cf archive directory
2284 mv directory orig
2285 cat archive | tar xfv - --warning=no-timestamp | sort
2286 echo "separator"
2287 cmp orig/file1 directory/file1
2288 echo "separator"
2289 cmp orig/file2 directory/file2) ) >"$at_stdout" 2>"$at_stderr"
2290 fi
2291 at_status=$?
2292 at_failed=false
2293 at_func_diff_devnull "$at_stderr" || at_failed=:
2294 echo >>"$at_stdout"; $as_echo "directory/
2295 directory/file1
2296 directory/file2
2297 separator
2298 separator
2299 " | \
2300   $at_diff - "$at_stdout" || at_failed=:
2301 at_func_check_status 0 $at_status "$at_srcdir/pipe.at:34"
2302
2303 $at_failed && at_func_log_failure
2304 $at_traceon; }
2305
2306               { $at_traceoff
2307 $as_echo "$at_srcdir/pipe.at:34:
2308 mkdir posix
2309 (cd posix
2310 TEST_TAR_FORMAT=posix
2311 export TEST_TAR_FORMAT
2312 TAR_OPTIONS=\"-H posix\"
2313 export TAR_OPTIONS
2314 rm -rf *
2315
2316
2317 test -z "`sort < /dev/null 2>&1`" || exit 77
2318
2319
2320 mkdir directory
2321 genfile --length 10240 --pattern zeros --file directory/file1
2322 genfile --length 13 --file directory/file2
2323 tar cf archive directory
2324 mv directory orig
2325 cat archive | tar xfv - --warning=no-timestamp | sort
2326 echo \"separator\"
2327 cmp orig/file1 directory/file1
2328 echo \"separator\"
2329 cmp orig/file2 directory/file2)"
2330 echo pipe.at:34 >"$at_check_line_file"
2331
2332 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
2333    false; }; then
2334   ( $at_traceon;
2335 mkdir posix
2336 (cd posix
2337 TEST_TAR_FORMAT=posix
2338 export TEST_TAR_FORMAT
2339 TAR_OPTIONS="-H posix"
2340 export TAR_OPTIONS
2341 rm -rf *
2342
2343
2344 test -z "`sort < /dev/null 2>&1`" || exit 77
2345
2346
2347 mkdir directory
2348 genfile --length 10240 --pattern zeros --file directory/file1
2349 genfile --length 13 --file directory/file2
2350 tar cf archive directory
2351 mv directory orig
2352 cat archive | tar xfv - --warning=no-timestamp | sort
2353 echo "separator"
2354 cmp orig/file1 directory/file1
2355 echo "separator"
2356 cmp orig/file2 directory/file2) ) >"$at_stdout" 2>"$at_stder1"
2357   at_func_filter_trace $?
2358 else
2359   ( :;
2360 mkdir posix
2361 (cd posix
2362 TEST_TAR_FORMAT=posix
2363 export TEST_TAR_FORMAT
2364 TAR_OPTIONS="-H posix"
2365 export TAR_OPTIONS
2366 rm -rf *
2367
2368
2369 test -z "`sort < /dev/null 2>&1`" || exit 77
2370
2371
2372 mkdir directory
2373 genfile --length 10240 --pattern zeros --file directory/file1
2374 genfile --length 13 --file directory/file2
2375 tar cf archive directory
2376 mv directory orig
2377 cat archive | tar xfv - --warning=no-timestamp | sort
2378 echo "separator"
2379 cmp orig/file1 directory/file1
2380 echo "separator"
2381 cmp orig/file2 directory/file2) ) >"$at_stdout" 2>"$at_stderr"
2382 fi
2383 at_status=$?
2384 at_failed=false
2385 at_func_diff_devnull "$at_stderr" || at_failed=:
2386 echo >>"$at_stdout"; $as_echo "directory/
2387 directory/file1
2388 directory/file2
2389 separator
2390 separator
2391 " | \
2392   $at_diff - "$at_stdout" || at_failed=:
2393 at_func_check_status 0 $at_status "$at_srcdir/pipe.at:34"
2394
2395 $at_failed && at_func_log_failure
2396 $at_traceon; }
2397
2398               { $at_traceoff
2399 $as_echo "$at_srcdir/pipe.at:34:
2400 mkdir gnu
2401 (cd gnu
2402 TEST_TAR_FORMAT=gnu
2403 export TEST_TAR_FORMAT
2404 TAR_OPTIONS=\"-H gnu\"
2405 export TAR_OPTIONS
2406 rm -rf *
2407
2408
2409 test -z "`sort < /dev/null 2>&1`" || exit 77
2410
2411
2412 mkdir directory
2413 genfile --length 10240 --pattern zeros --file directory/file1
2414 genfile --length 13 --file directory/file2
2415 tar cf archive directory
2416 mv directory orig
2417 cat archive | tar xfv - --warning=no-timestamp | sort
2418 echo \"separator\"
2419 cmp orig/file1 directory/file1
2420 echo \"separator\"
2421 cmp orig/file2 directory/file2)"
2422 echo pipe.at:34 >"$at_check_line_file"
2423
2424 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
2425    false; }; then
2426   ( $at_traceon;
2427 mkdir gnu
2428 (cd gnu
2429 TEST_TAR_FORMAT=gnu
2430 export TEST_TAR_FORMAT
2431 TAR_OPTIONS="-H gnu"
2432 export TAR_OPTIONS
2433 rm -rf *
2434
2435
2436 test -z "`sort < /dev/null 2>&1`" || exit 77
2437
2438
2439 mkdir directory
2440 genfile --length 10240 --pattern zeros --file directory/file1
2441 genfile --length 13 --file directory/file2
2442 tar cf archive directory
2443 mv directory orig
2444 cat archive | tar xfv - --warning=no-timestamp | sort
2445 echo "separator"
2446 cmp orig/file1 directory/file1
2447 echo "separator"
2448 cmp orig/file2 directory/file2) ) >"$at_stdout" 2>"$at_stder1"
2449   at_func_filter_trace $?
2450 else
2451   ( :;
2452 mkdir gnu
2453 (cd gnu
2454 TEST_TAR_FORMAT=gnu
2455 export TEST_TAR_FORMAT
2456 TAR_OPTIONS="-H gnu"
2457 export TAR_OPTIONS
2458 rm -rf *
2459
2460
2461 test -z "`sort < /dev/null 2>&1`" || exit 77
2462
2463
2464 mkdir directory
2465 genfile --length 10240 --pattern zeros --file directory/file1
2466 genfile --length 13 --file directory/file2
2467 tar cf archive directory
2468 mv directory orig
2469 cat archive | tar xfv - --warning=no-timestamp | sort
2470 echo "separator"
2471 cmp orig/file1 directory/file1
2472 echo "separator"
2473 cmp orig/file2 directory/file2) ) >"$at_stdout" 2>"$at_stderr"
2474 fi
2475 at_status=$?
2476 at_failed=false
2477 at_func_diff_devnull "$at_stderr" || at_failed=:
2478 echo >>"$at_stdout"; $as_echo "directory/
2479 directory/file1
2480 directory/file2
2481 separator
2482 separator
2483 " | \
2484   $at_diff - "$at_stdout" || at_failed=:
2485 at_func_check_status 0 $at_status "$at_srcdir/pipe.at:34"
2486
2487 $at_failed && at_func_log_failure
2488 $at_traceon; }
2489
2490
2491
2492
2493   $at_traceoff
2494   $at_times_p && times >"$at_times_file"
2495 ) 5>&1 2>&1 | eval $at_tee_pipe
2496 at_status=`cat "$at_status_file"`
2497 #AT_STOP_2
2498 #AT_START_3
2499 # 3. options.at:24: mixing options
2500 at_setup_line='options.at:24'
2501 at_desc="mixing options"
2502 $at_quiet $as_echo_n "  3: $at_desc                                 "
2503 at_xfail=no
2504 echo "#                             -*- compilation -*-" >> "$at_group_log"
2505 (
2506   $as_echo "3. options.at:24: testing ..."
2507   $at_traceon
2508
2509
2510
2511 { $at_traceoff
2512 $as_echo "$at_srcdir/options.at:27:
2513 echo > file1
2514 TAR_OPTIONS=--numeric-owner tar chof archive file1
2515 tar tf archive
2516 "
2517 echo options.at:27 >"$at_check_line_file"
2518
2519 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
2520    false; }; then
2521   ( $at_traceon;
2522 echo > file1
2523 TAR_OPTIONS=--numeric-owner tar chof archive file1
2524 tar tf archive
2525  ) >"$at_stdout" 2>"$at_stder1"
2526   at_func_filter_trace $?
2527 else
2528   ( :;
2529 echo > file1
2530 TAR_OPTIONS=--numeric-owner tar chof archive file1
2531 tar tf archive
2532  ) >"$at_stdout" 2>"$at_stderr"
2533 fi
2534 at_status=$?
2535 at_failed=false
2536 at_func_diff_devnull "$at_stderr" || at_failed=:
2537 echo >>"$at_stdout"; $as_echo "file1
2538 " | \
2539   $at_diff - "$at_stdout" || at_failed=:
2540 at_func_check_status 0 $at_status "$at_srcdir/options.at:27"
2541
2542 $at_failed && at_func_log_failure
2543 $at_traceon; }
2544
2545
2546   $at_traceoff
2547   $at_times_p && times >"$at_times_file"
2548 ) 5>&1 2>&1 | eval $at_tee_pipe
2549 at_status=`cat "$at_status_file"`
2550 #AT_STOP_3
2551 #AT_START_4
2552 # 4. options02.at:26: interspersed options
2553 at_setup_line='options02.at:26'
2554 at_desc="interspersed options"
2555 $at_quiet $as_echo_n "  4: $at_desc                           "
2556 at_xfail=no
2557 echo "#                             -*- compilation -*-" >> "$at_group_log"
2558 (
2559   $as_echo "4. options02.at:26: testing ..."
2560   $at_traceon
2561
2562
2563
2564 { $at_traceoff
2565 $as_echo "$at_srcdir/options02.at:29:
2566 echo > file1
2567 tar c file1 -f archive
2568 tar tf archive
2569 "
2570 echo options02.at:29 >"$at_check_line_file"
2571
2572 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
2573    false; }; then
2574   ( $at_traceon;
2575 echo > file1
2576 tar c file1 -f archive
2577 tar tf archive
2578  ) >"$at_stdout" 2>"$at_stder1"
2579   at_func_filter_trace $?
2580 else
2581   ( :;
2582 echo > file1
2583 tar c file1 -f archive
2584 tar tf archive
2585  ) >"$at_stdout" 2>"$at_stderr"
2586 fi
2587 at_status=$?
2588 at_failed=false
2589 at_func_diff_devnull "$at_stderr" || at_failed=:
2590 echo >>"$at_stdout"; $as_echo "file1
2591 " | \
2592   $at_diff - "$at_stdout" || at_failed=:
2593 at_func_check_status 0 $at_status "$at_srcdir/options02.at:29"
2594
2595 $at_failed && at_func_log_failure
2596 $at_traceon; }
2597
2598
2599   $at_traceoff
2600   $at_times_p && times >"$at_times_file"
2601 ) 5>&1 2>&1 | eval $at_tee_pipe
2602 at_status=`cat "$at_status_file"`
2603 #AT_STOP_4
2604 #AT_START_5
2605 # 5. T-empty.at:26: files-from: empty entries
2606 at_setup_line='T-empty.at:26'
2607 at_desc="files-from: empty entries"
2608 $at_quiet $as_echo_n "  5: $at_desc                      "
2609 at_xfail=no
2610       test -f $XFAILFILE && at_xfail=yes
2611 echo "#                             -*- compilation -*-" >> "$at_group_log"
2612 (
2613   $as_echo "5. T-empty.at:26: testing ..."
2614   $at_traceon
2615
2616
2617
2618 cat >file-list <<'_ATEOF'
2619 jeden
2620 dwa
2621
2622 trzy
2623 _ATEOF
2624
2625
2626
2627
2628   { $at_traceoff
2629 $as_echo "$at_srcdir/T-empty.at:36:
2630 mkdir ustar
2631 (cd ustar
2632 TEST_TAR_FORMAT=ustar
2633 export TEST_TAR_FORMAT
2634 TAR_OPTIONS=\"-H ustar\"
2635 export TAR_OPTIONS
2636 rm -rf *
2637
2638
2639 test -z "`sort < /dev/null 2>&1`" || exit 77
2640
2641
2642 genfile --file jeden
2643 genfile --file dwa
2644 genfile --file trzy
2645
2646 tar cfvT archive ../file-list | sort
2647 )"
2648 echo T-empty.at:36 >"$at_check_line_file"
2649
2650 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
2651    false; }; then
2652   ( $at_traceon;
2653 mkdir ustar
2654 (cd ustar
2655 TEST_TAR_FORMAT=ustar
2656 export TEST_TAR_FORMAT
2657 TAR_OPTIONS="-H ustar"
2658 export TAR_OPTIONS
2659 rm -rf *
2660
2661
2662 test -z "`sort < /dev/null 2>&1`" || exit 77
2663
2664
2665 genfile --file jeden
2666 genfile --file dwa
2667 genfile --file trzy
2668
2669 tar cfvT archive ../file-list | sort
2670 ) ) >"$at_stdout" 2>"$at_stder1"
2671   at_func_filter_trace $?
2672 else
2673   ( :;
2674 mkdir ustar
2675 (cd ustar
2676 TEST_TAR_FORMAT=ustar
2677 export TEST_TAR_FORMAT
2678 TAR_OPTIONS="-H ustar"
2679 export TAR_OPTIONS
2680 rm -rf *
2681
2682
2683 test -z "`sort < /dev/null 2>&1`" || exit 77
2684
2685
2686 genfile --file jeden
2687 genfile --file dwa
2688 genfile --file trzy
2689
2690 tar cfvT archive ../file-list | sort
2691 ) ) >"$at_stdout" 2>"$at_stderr"
2692 fi
2693 at_status=$?
2694 at_failed=false
2695 at_func_diff_devnull "$at_stderr" || at_failed=:
2696 echo >>"$at_stdout"; $as_echo "dwa
2697 jeden
2698 trzy
2699 " | \
2700   $at_diff - "$at_stdout" || at_failed=:
2701 at_func_check_status 0 $at_status "$at_srcdir/T-empty.at:36"
2702
2703 $at_failed && at_func_log_failure
2704 $at_traceon; }
2705
2706
2707  # Testing one format is enough
2708
2709   $at_traceoff
2710   $at_times_p && times >"$at_times_file"
2711 ) 5>&1 2>&1 | eval $at_tee_pipe
2712 at_status=`cat "$at_status_file"`
2713 #AT_STOP_5
2714 #AT_START_6
2715 # 6. T-null.at:21: files-from: 0-separated file without -0
2716 at_setup_line='T-null.at:21'
2717 at_desc="files-from: 0-separated file without -0"
2718 $at_quiet $as_echo_n "  6: $at_desc        "
2719 at_xfail=no
2720       test -f $XFAILFILE && at_xfail=yes
2721 echo "#                             -*- compilation -*-" >> "$at_group_log"
2722 (
2723   $as_echo "6. T-null.at:21: testing ..."
2724   $at_traceon
2725
2726
2727
2728 cat >expout <<'_ATEOF'
2729 jeden\ndwa
2730 trzy
2731 _ATEOF
2732
2733
2734
2735
2736   { $at_traceoff
2737 $as_echo "$at_srcdir/T-null.at:28:
2738 mkdir ustar
2739 (cd ustar
2740 TEST_TAR_FORMAT=ustar
2741 export TEST_TAR_FORMAT
2742 TAR_OPTIONS=\"-H ustar\"
2743 export TAR_OPTIONS
2744 rm -rf *
2745
2746
2747 test -z "`sort < /dev/null 2>&1`" || exit 77
2748
2749
2750 echo dwa > temp
2751 echo trzy >> temp
2752 cat temp | tr '\\n' '\\0' > temp1
2753 echo jeden > file-list
2754 cat temp1 >> file-list
2755
2756 genfile -f \"jeden
2757 dwa\" || exit 77
2758 genfile -f trzy
2759
2760 tar cfTv archive file-list | sort
2761 )"
2762 echo T-null.at:28 >"$at_check_line_file"
2763
2764 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
2765    false; }; then
2766   ( $at_traceon;
2767 mkdir ustar
2768 (cd ustar
2769 TEST_TAR_FORMAT=ustar
2770 export TEST_TAR_FORMAT
2771 TAR_OPTIONS="-H ustar"
2772 export TAR_OPTIONS
2773 rm -rf *
2774
2775
2776 test -z "`sort < /dev/null 2>&1`" || exit 77
2777
2778
2779 echo dwa > temp
2780 echo trzy >> temp
2781 cat temp | tr '\n' '\0' > temp1
2782 echo jeden > file-list
2783 cat temp1 >> file-list
2784
2785 genfile -f "jeden
2786 dwa" || exit 77
2787 genfile -f trzy
2788
2789 tar cfTv archive file-list | sort
2790 ) ) >"$at_stdout" 2>"$at_stder1"
2791   at_func_filter_trace $?
2792 else
2793   ( :;
2794 mkdir ustar
2795 (cd ustar
2796 TEST_TAR_FORMAT=ustar
2797 export TEST_TAR_FORMAT
2798 TAR_OPTIONS="-H ustar"
2799 export TAR_OPTIONS
2800 rm -rf *
2801
2802
2803 test -z "`sort < /dev/null 2>&1`" || exit 77
2804
2805
2806 echo dwa > temp
2807 echo trzy >> temp
2808 cat temp | tr '\n' '\0' > temp1
2809 echo jeden > file-list
2810 cat temp1 >> file-list
2811
2812 genfile -f "jeden
2813 dwa" || exit 77
2814 genfile -f trzy
2815
2816 tar cfTv archive file-list | sort
2817 ) ) >"$at_stdout" 2>"$at_stderr"
2818 fi
2819 at_status=$?
2820 at_failed=false
2821 echo >>"$at_stderr"; $as_echo "tar: file-list: file name read contains nul character
2822 " | \
2823   $at_diff - "$at_stderr" || at_failed=:
2824 $at_diff expout "$at_stdout" || at_failed=:
2825 at_func_check_status 0 $at_status "$at_srcdir/T-null.at:28"
2826
2827 $at_failed && at_func_log_failure
2828 $at_traceon; }
2829
2830
2831  # Testing one format is enough
2832
2833   $at_traceoff
2834   $at_times_p && times >"$at_times_file"
2835 ) 5>&1 2>&1 | eval $at_tee_pipe
2836 at_status=`cat "$at_status_file"`
2837 #AT_STOP_6
2838 #AT_START_7
2839 # 7. indexfile.at:26: tar --index-file=FILE --file=-
2840 at_setup_line='indexfile.at:26'
2841 at_desc="tar --index-file=FILE --file=-"
2842 $at_quiet $as_echo_n "  7: $at_desc                 "
2843 at_xfail=no
2844       test -f $XFAILFILE && at_xfail=yes
2845 echo "#                             -*- compilation -*-" >> "$at_group_log"
2846 (
2847   $as_echo "7. indexfile.at:26: testing ..."
2848   $at_traceon
2849
2850
2851
2852
2853
2854   { $at_traceoff
2855 $as_echo "$at_srcdir/indexfile.at:29:
2856 mkdir v7
2857 (cd v7
2858 TEST_TAR_FORMAT=v7
2859 export TEST_TAR_FORMAT
2860 TAR_OPTIONS=\"-H v7\"
2861 export TAR_OPTIONS
2862 rm -rf *
2863
2864
2865 mkdir directory
2866 genfile --file=directory/a --length=1035
2867
2868 echo \"Creating the archive\"
2869 tar -c -v -f - --index-file=idx directory > archive
2870
2871 echo \"Testing the archive\"
2872 tar -tf archive
2873 )"
2874 echo indexfile.at:29 >"$at_check_line_file"
2875
2876 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
2877    false; }; then
2878   ( $at_traceon;
2879 mkdir v7
2880 (cd v7
2881 TEST_TAR_FORMAT=v7
2882 export TEST_TAR_FORMAT
2883 TAR_OPTIONS="-H v7"
2884 export TAR_OPTIONS
2885 rm -rf *
2886
2887
2888 mkdir directory
2889 genfile --file=directory/a --length=1035
2890
2891 echo "Creating the archive"
2892 tar -c -v -f - --index-file=idx directory > archive
2893
2894 echo "Testing the archive"
2895 tar -tf archive
2896 ) ) >"$at_stdout" 2>"$at_stder1"
2897   at_func_filter_trace $?
2898 else
2899   ( :;
2900 mkdir v7
2901 (cd v7
2902 TEST_TAR_FORMAT=v7
2903 export TEST_TAR_FORMAT
2904 TAR_OPTIONS="-H v7"
2905 export TAR_OPTIONS
2906 rm -rf *
2907
2908
2909 mkdir directory
2910 genfile --file=directory/a --length=1035
2911
2912 echo "Creating the archive"
2913 tar -c -v -f - --index-file=idx directory > archive
2914
2915 echo "Testing the archive"
2916 tar -tf archive
2917 ) ) >"$at_stdout" 2>"$at_stderr"
2918 fi
2919 at_status=$?
2920 at_failed=false
2921 at_func_diff_devnull "$at_stderr" || at_failed=:
2922 echo >>"$at_stdout"; $as_echo "Creating the archive
2923 Testing the archive
2924 directory/
2925 directory/a
2926 " | \
2927   $at_diff - "$at_stdout" || at_failed=:
2928 at_func_check_status 0 $at_status "$at_srcdir/indexfile.at:29"
2929
2930 $at_failed && at_func_log_failure
2931 $at_traceon; }
2932
2933               { $at_traceoff
2934 $as_echo "$at_srcdir/indexfile.at:29:
2935 mkdir oldgnu
2936 (cd oldgnu
2937 TEST_TAR_FORMAT=oldgnu
2938 export TEST_TAR_FORMAT
2939 TAR_OPTIONS=\"-H oldgnu\"
2940 export TAR_OPTIONS
2941 rm -rf *
2942
2943
2944 mkdir directory
2945 genfile --file=directory/a --length=1035
2946
2947 echo \"Creating the archive\"
2948 tar -c -v -f - --index-file=idx directory > archive
2949
2950 echo \"Testing the archive\"
2951 tar -tf archive
2952 )"
2953 echo indexfile.at:29 >"$at_check_line_file"
2954
2955 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
2956    false; }; then
2957   ( $at_traceon;
2958 mkdir oldgnu
2959 (cd oldgnu
2960 TEST_TAR_FORMAT=oldgnu
2961 export TEST_TAR_FORMAT
2962 TAR_OPTIONS="-H oldgnu"
2963 export TAR_OPTIONS
2964 rm -rf *
2965
2966
2967 mkdir directory
2968 genfile --file=directory/a --length=1035
2969
2970 echo "Creating the archive"
2971 tar -c -v -f - --index-file=idx directory > archive
2972
2973 echo "Testing the archive"
2974 tar -tf archive
2975 ) ) >"$at_stdout" 2>"$at_stder1"
2976   at_func_filter_trace $?
2977 else
2978   ( :;
2979 mkdir oldgnu
2980 (cd oldgnu
2981 TEST_TAR_FORMAT=oldgnu
2982 export TEST_TAR_FORMAT
2983 TAR_OPTIONS="-H oldgnu"
2984 export TAR_OPTIONS
2985 rm -rf *
2986
2987
2988 mkdir directory
2989 genfile --file=directory/a --length=1035
2990
2991 echo "Creating the archive"
2992 tar -c -v -f - --index-file=idx directory > archive
2993
2994 echo "Testing the archive"
2995 tar -tf archive
2996 ) ) >"$at_stdout" 2>"$at_stderr"
2997 fi
2998 at_status=$?
2999 at_failed=false
3000 at_func_diff_devnull "$at_stderr" || at_failed=:
3001 echo >>"$at_stdout"; $as_echo "Creating the archive
3002 Testing the archive
3003 directory/
3004 directory/a
3005 " | \
3006   $at_diff - "$at_stdout" || at_failed=:
3007 at_func_check_status 0 $at_status "$at_srcdir/indexfile.at:29"
3008
3009 $at_failed && at_func_log_failure
3010 $at_traceon; }
3011
3012               { $at_traceoff
3013 $as_echo "$at_srcdir/indexfile.at:29:
3014 mkdir ustar
3015 (cd ustar
3016 TEST_TAR_FORMAT=ustar
3017 export TEST_TAR_FORMAT
3018 TAR_OPTIONS=\"-H ustar\"
3019 export TAR_OPTIONS
3020 rm -rf *
3021
3022
3023 mkdir directory
3024 genfile --file=directory/a --length=1035
3025
3026 echo \"Creating the archive\"
3027 tar -c -v -f - --index-file=idx directory > archive
3028
3029 echo \"Testing the archive\"
3030 tar -tf archive
3031 )"
3032 echo indexfile.at:29 >"$at_check_line_file"
3033
3034 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
3035    false; }; then
3036   ( $at_traceon;
3037 mkdir ustar
3038 (cd ustar
3039 TEST_TAR_FORMAT=ustar
3040 export TEST_TAR_FORMAT
3041 TAR_OPTIONS="-H ustar"
3042 export TAR_OPTIONS
3043 rm -rf *
3044
3045
3046 mkdir directory
3047 genfile --file=directory/a --length=1035
3048
3049 echo "Creating the archive"
3050 tar -c -v -f - --index-file=idx directory > archive
3051
3052 echo "Testing the archive"
3053 tar -tf archive
3054 ) ) >"$at_stdout" 2>"$at_stder1"
3055   at_func_filter_trace $?
3056 else
3057   ( :;
3058 mkdir ustar
3059 (cd ustar
3060 TEST_TAR_FORMAT=ustar
3061 export TEST_TAR_FORMAT
3062 TAR_OPTIONS="-H ustar"
3063 export TAR_OPTIONS
3064 rm -rf *
3065
3066
3067 mkdir directory
3068 genfile --file=directory/a --length=1035
3069
3070 echo "Creating the archive"
3071 tar -c -v -f - --index-file=idx directory > archive
3072
3073 echo "Testing the archive"
3074 tar -tf archive
3075 ) ) >"$at_stdout" 2>"$at_stderr"
3076 fi
3077 at_status=$?
3078 at_failed=false
3079 at_func_diff_devnull "$at_stderr" || at_failed=:
3080 echo >>"$at_stdout"; $as_echo "Creating the archive
3081 Testing the archive
3082 directory/
3083 directory/a
3084 " | \
3085   $at_diff - "$at_stdout" || at_failed=:
3086 at_func_check_status 0 $at_status "$at_srcdir/indexfile.at:29"
3087
3088 $at_failed && at_func_log_failure
3089 $at_traceon; }
3090
3091               { $at_traceoff
3092 $as_echo "$at_srcdir/indexfile.at:29:
3093 mkdir posix
3094 (cd posix
3095 TEST_TAR_FORMAT=posix
3096 export TEST_TAR_FORMAT
3097 TAR_OPTIONS=\"-H posix\"
3098 export TAR_OPTIONS
3099 rm -rf *
3100
3101
3102 mkdir directory
3103 genfile --file=directory/a --length=1035
3104
3105 echo \"Creating the archive\"
3106 tar -c -v -f - --index-file=idx directory > archive
3107
3108 echo \"Testing the archive\"
3109 tar -tf archive
3110 )"
3111 echo indexfile.at:29 >"$at_check_line_file"
3112
3113 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
3114    false; }; then
3115   ( $at_traceon;
3116 mkdir posix
3117 (cd posix
3118 TEST_TAR_FORMAT=posix
3119 export TEST_TAR_FORMAT
3120 TAR_OPTIONS="-H posix"
3121 export TAR_OPTIONS
3122 rm -rf *
3123
3124
3125 mkdir directory
3126 genfile --file=directory/a --length=1035
3127
3128 echo "Creating the archive"
3129 tar -c -v -f - --index-file=idx directory > archive
3130
3131 echo "Testing the archive"
3132 tar -tf archive
3133 ) ) >"$at_stdout" 2>"$at_stder1"
3134   at_func_filter_trace $?
3135 else
3136   ( :;
3137 mkdir posix
3138 (cd posix
3139 TEST_TAR_FORMAT=posix
3140 export TEST_TAR_FORMAT
3141 TAR_OPTIONS="-H posix"
3142 export TAR_OPTIONS
3143 rm -rf *
3144
3145
3146 mkdir directory
3147 genfile --file=directory/a --length=1035
3148
3149 echo "Creating the archive"
3150 tar -c -v -f - --index-file=idx directory > archive
3151
3152 echo "Testing the archive"
3153 tar -tf archive
3154 ) ) >"$at_stdout" 2>"$at_stderr"
3155 fi
3156 at_status=$?
3157 at_failed=false
3158 at_func_diff_devnull "$at_stderr" || at_failed=:
3159 echo >>"$at_stdout"; $as_echo "Creating the archive
3160 Testing the archive
3161 directory/
3162 directory/a
3163 " | \
3164   $at_diff - "$at_stdout" || at_failed=:
3165 at_func_check_status 0 $at_status "$at_srcdir/indexfile.at:29"
3166
3167 $at_failed && at_func_log_failure
3168 $at_traceon; }
3169
3170               { $at_traceoff
3171 $as_echo "$at_srcdir/indexfile.at:29:
3172 mkdir gnu
3173 (cd gnu
3174 TEST_TAR_FORMAT=gnu
3175 export TEST_TAR_FORMAT
3176 TAR_OPTIONS=\"-H gnu\"
3177 export TAR_OPTIONS
3178 rm -rf *
3179
3180
3181 mkdir directory
3182 genfile --file=directory/a --length=1035
3183
3184 echo \"Creating the archive\"
3185 tar -c -v -f - --index-file=idx directory > archive
3186
3187 echo \"Testing the archive\"
3188 tar -tf archive
3189 )"
3190 echo indexfile.at:29 >"$at_check_line_file"
3191
3192 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
3193    false; }; then
3194   ( $at_traceon;
3195 mkdir gnu
3196 (cd gnu
3197 TEST_TAR_FORMAT=gnu
3198 export TEST_TAR_FORMAT
3199 TAR_OPTIONS="-H gnu"
3200 export TAR_OPTIONS
3201 rm -rf *
3202
3203
3204 mkdir directory
3205 genfile --file=directory/a --length=1035
3206
3207 echo "Creating the archive"
3208 tar -c -v -f - --index-file=idx directory > archive
3209
3210 echo "Testing the archive"
3211 tar -tf archive
3212 ) ) >"$at_stdout" 2>"$at_stder1"
3213   at_func_filter_trace $?
3214 else
3215   ( :;
3216 mkdir gnu
3217 (cd gnu
3218 TEST_TAR_FORMAT=gnu
3219 export TEST_TAR_FORMAT
3220 TAR_OPTIONS="-H gnu"
3221 export TAR_OPTIONS
3222 rm -rf *
3223
3224
3225 mkdir directory
3226 genfile --file=directory/a --length=1035
3227
3228 echo "Creating the archive"
3229 tar -c -v -f - --index-file=idx directory > archive
3230
3231 echo "Testing the archive"
3232 tar -tf archive
3233 ) ) >"$at_stdout" 2>"$at_stderr"
3234 fi
3235 at_status=$?
3236 at_failed=false
3237 at_func_diff_devnull "$at_stderr" || at_failed=:
3238 echo >>"$at_stdout"; $as_echo "Creating the archive
3239 Testing the archive
3240 directory/
3241 directory/a
3242 " | \
3243   $at_diff - "$at_stdout" || at_failed=:
3244 at_func_check_status 0 $at_status "$at_srcdir/indexfile.at:29"
3245
3246 $at_failed && at_func_log_failure
3247 $at_traceon; }
3248
3249
3250
3251
3252   $at_traceoff
3253   $at_times_p && times >"$at_times_file"
3254 ) 5>&1 2>&1 | eval $at_tee_pipe
3255 at_status=`cat "$at_status_file"`
3256 #AT_STOP_7
3257 #AT_START_8
3258 # 8. verbose.at:26: tar cvf -
3259 at_setup_line='verbose.at:26'
3260 at_desc="tar cvf -"
3261 $at_quiet $as_echo_n "  8: $at_desc                                      "
3262 at_xfail=no
3263       test -f $XFAILFILE && at_xfail=yes
3264 echo "#                             -*- compilation -*-" >> "$at_group_log"
3265 (
3266   $as_echo "8. verbose.at:26: testing ..."
3267   $at_traceon
3268
3269
3270
3271
3272
3273   { $at_traceoff
3274 $as_echo "$at_srcdir/verbose.at:29:
3275 mkdir v7
3276 (cd v7
3277 TEST_TAR_FORMAT=v7
3278 export TEST_TAR_FORMAT
3279 TAR_OPTIONS=\"-H v7\"
3280 export TAR_OPTIONS
3281 rm -rf *
3282
3283 genfile --file file --length 10240
3284 echo Creating the archive
3285 tar cvf - file > archive
3286 echo Testing the archive
3287 tar tf archive
3288 )"
3289 echo verbose.at:29 >"$at_check_line_file"
3290
3291 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
3292    false; }; then
3293   ( $at_traceon;
3294 mkdir v7
3295 (cd v7
3296 TEST_TAR_FORMAT=v7
3297 export TEST_TAR_FORMAT
3298 TAR_OPTIONS="-H v7"
3299 export TAR_OPTIONS
3300 rm -rf *
3301
3302 genfile --file file --length 10240
3303 echo Creating the archive
3304 tar cvf - file > archive
3305 echo Testing the archive
3306 tar tf archive
3307 ) ) >"$at_stdout" 2>"$at_stder1"
3308   at_func_filter_trace $?
3309 else
3310   ( :;
3311 mkdir v7
3312 (cd v7
3313 TEST_TAR_FORMAT=v7
3314 export TEST_TAR_FORMAT
3315 TAR_OPTIONS="-H v7"
3316 export TAR_OPTIONS
3317 rm -rf *
3318
3319 genfile --file file --length 10240
3320 echo Creating the archive
3321 tar cvf - file > archive
3322 echo Testing the archive
3323 tar tf archive
3324 ) ) >"$at_stdout" 2>"$at_stderr"
3325 fi
3326 at_status=$?
3327 at_failed=false
3328 echo >>"$at_stderr"; $as_echo "file
3329 " | \
3330   $at_diff - "$at_stderr" || at_failed=:
3331 echo >>"$at_stdout"; $as_echo "Creating the archive
3332 Testing the archive
3333 file
3334 " | \
3335   $at_diff - "$at_stdout" || at_failed=:
3336 at_func_check_status 0 $at_status "$at_srcdir/verbose.at:29"
3337
3338 $at_failed && at_func_log_failure
3339 $at_traceon; }
3340
3341               { $at_traceoff
3342 $as_echo "$at_srcdir/verbose.at:29:
3343 mkdir oldgnu
3344 (cd oldgnu
3345 TEST_TAR_FORMAT=oldgnu
3346 export TEST_TAR_FORMAT
3347 TAR_OPTIONS=\"-H oldgnu\"
3348 export TAR_OPTIONS
3349 rm -rf *
3350
3351 genfile --file file --length 10240
3352 echo Creating the archive
3353 tar cvf - file > archive
3354 echo Testing the archive
3355 tar tf archive
3356 )"
3357 echo verbose.at:29 >"$at_check_line_file"
3358
3359 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
3360    false; }; then
3361   ( $at_traceon;
3362 mkdir oldgnu
3363 (cd oldgnu
3364 TEST_TAR_FORMAT=oldgnu
3365 export TEST_TAR_FORMAT
3366 TAR_OPTIONS="-H oldgnu"
3367 export TAR_OPTIONS
3368 rm -rf *
3369
3370 genfile --file file --length 10240
3371 echo Creating the archive
3372 tar cvf - file > archive
3373 echo Testing the archive
3374 tar tf archive
3375 ) ) >"$at_stdout" 2>"$at_stder1"
3376   at_func_filter_trace $?
3377 else
3378   ( :;
3379 mkdir oldgnu
3380 (cd oldgnu
3381 TEST_TAR_FORMAT=oldgnu
3382 export TEST_TAR_FORMAT
3383 TAR_OPTIONS="-H oldgnu"
3384 export TAR_OPTIONS
3385 rm -rf *
3386
3387 genfile --file file --length 10240
3388 echo Creating the archive
3389 tar cvf - file > archive
3390 echo Testing the archive
3391 tar tf archive
3392 ) ) >"$at_stdout" 2>"$at_stderr"
3393 fi
3394 at_status=$?
3395 at_failed=false
3396 echo >>"$at_stderr"; $as_echo "file
3397 " | \
3398   $at_diff - "$at_stderr" || at_failed=:
3399 echo >>"$at_stdout"; $as_echo "Creating the archive
3400 Testing the archive
3401 file
3402 " | \
3403   $at_diff - "$at_stdout" || at_failed=:
3404 at_func_check_status 0 $at_status "$at_srcdir/verbose.at:29"
3405
3406 $at_failed && at_func_log_failure
3407 $at_traceon; }
3408
3409               { $at_traceoff
3410 $as_echo "$at_srcdir/verbose.at:29:
3411 mkdir ustar
3412 (cd ustar
3413 TEST_TAR_FORMAT=ustar
3414 export TEST_TAR_FORMAT
3415 TAR_OPTIONS=\"-H ustar\"
3416 export TAR_OPTIONS
3417 rm -rf *
3418
3419 genfile --file file --length 10240
3420 echo Creating the archive
3421 tar cvf - file > archive
3422 echo Testing the archive
3423 tar tf archive
3424 )"
3425 echo verbose.at:29 >"$at_check_line_file"
3426
3427 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
3428    false; }; then
3429   ( $at_traceon;
3430 mkdir ustar
3431 (cd ustar
3432 TEST_TAR_FORMAT=ustar
3433 export TEST_TAR_FORMAT
3434 TAR_OPTIONS="-H ustar"
3435 export TAR_OPTIONS
3436 rm -rf *
3437
3438 genfile --file file --length 10240
3439 echo Creating the archive
3440 tar cvf - file > archive
3441 echo Testing the archive
3442 tar tf archive
3443 ) ) >"$at_stdout" 2>"$at_stder1"
3444   at_func_filter_trace $?
3445 else
3446   ( :;
3447 mkdir ustar
3448 (cd ustar
3449 TEST_TAR_FORMAT=ustar
3450 export TEST_TAR_FORMAT
3451 TAR_OPTIONS="-H ustar"
3452 export TAR_OPTIONS
3453 rm -rf *
3454
3455 genfile --file file --length 10240
3456 echo Creating the archive
3457 tar cvf - file > archive
3458 echo Testing the archive
3459 tar tf archive
3460 ) ) >"$at_stdout" 2>"$at_stderr"
3461 fi
3462 at_status=$?
3463 at_failed=false
3464 echo >>"$at_stderr"; $as_echo "file
3465 " | \
3466   $at_diff - "$at_stderr" || at_failed=:
3467 echo >>"$at_stdout"; $as_echo "Creating the archive
3468 Testing the archive
3469 file
3470 " | \
3471   $at_diff - "$at_stdout" || at_failed=:
3472 at_func_check_status 0 $at_status "$at_srcdir/verbose.at:29"
3473
3474 $at_failed && at_func_log_failure
3475 $at_traceon; }
3476
3477               { $at_traceoff
3478 $as_echo "$at_srcdir/verbose.at:29:
3479 mkdir posix
3480 (cd posix
3481 TEST_TAR_FORMAT=posix
3482 export TEST_TAR_FORMAT
3483 TAR_OPTIONS=\"-H posix\"
3484 export TAR_OPTIONS
3485 rm -rf *
3486
3487 genfile --file file --length 10240
3488 echo Creating the archive
3489 tar cvf - file > archive
3490 echo Testing the archive
3491 tar tf archive
3492 )"
3493 echo verbose.at:29 >"$at_check_line_file"
3494
3495 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
3496    false; }; then
3497   ( $at_traceon;
3498 mkdir posix
3499 (cd posix
3500 TEST_TAR_FORMAT=posix
3501 export TEST_TAR_FORMAT
3502 TAR_OPTIONS="-H posix"
3503 export TAR_OPTIONS
3504 rm -rf *
3505
3506 genfile --file file --length 10240
3507 echo Creating the archive
3508 tar cvf - file > archive
3509 echo Testing the archive
3510 tar tf archive
3511 ) ) >"$at_stdout" 2>"$at_stder1"
3512   at_func_filter_trace $?
3513 else
3514   ( :;
3515 mkdir posix
3516 (cd posix
3517 TEST_TAR_FORMAT=posix
3518 export TEST_TAR_FORMAT
3519 TAR_OPTIONS="-H posix"
3520 export TAR_OPTIONS
3521 rm -rf *
3522
3523 genfile --file file --length 10240
3524 echo Creating the archive
3525 tar cvf - file > archive
3526 echo Testing the archive
3527 tar tf archive
3528 ) ) >"$at_stdout" 2>"$at_stderr"
3529 fi
3530 at_status=$?
3531 at_failed=false
3532 echo >>"$at_stderr"; $as_echo "file
3533 " | \
3534   $at_diff - "$at_stderr" || at_failed=:
3535 echo >>"$at_stdout"; $as_echo "Creating the archive
3536 Testing the archive
3537 file
3538 " | \
3539   $at_diff - "$at_stdout" || at_failed=:
3540 at_func_check_status 0 $at_status "$at_srcdir/verbose.at:29"
3541
3542 $at_failed && at_func_log_failure
3543 $at_traceon; }
3544
3545               { $at_traceoff
3546 $as_echo "$at_srcdir/verbose.at:29:
3547 mkdir gnu
3548 (cd gnu
3549 TEST_TAR_FORMAT=gnu
3550 export TEST_TAR_FORMAT
3551 TAR_OPTIONS=\"-H gnu\"
3552 export TAR_OPTIONS
3553 rm -rf *
3554
3555 genfile --file file --length 10240
3556 echo Creating the archive
3557 tar cvf - file > archive
3558 echo Testing the archive
3559 tar tf archive
3560 )"
3561 echo verbose.at:29 >"$at_check_line_file"
3562
3563 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
3564    false; }; then
3565   ( $at_traceon;
3566 mkdir gnu
3567 (cd gnu
3568 TEST_TAR_FORMAT=gnu
3569 export TEST_TAR_FORMAT
3570 TAR_OPTIONS="-H gnu"
3571 export TAR_OPTIONS
3572 rm -rf *
3573
3574 genfile --file file --length 10240
3575 echo Creating the archive
3576 tar cvf - file > archive
3577 echo Testing the archive
3578 tar tf archive
3579 ) ) >"$at_stdout" 2>"$at_stder1"
3580   at_func_filter_trace $?
3581 else
3582   ( :;
3583 mkdir gnu
3584 (cd gnu
3585 TEST_TAR_FORMAT=gnu
3586 export TEST_TAR_FORMAT
3587 TAR_OPTIONS="-H gnu"
3588 export TAR_OPTIONS
3589 rm -rf *
3590
3591 genfile --file file --length 10240
3592 echo Creating the archive
3593 tar cvf - file > archive
3594 echo Testing the archive
3595 tar tf archive
3596 ) ) >"$at_stdout" 2>"$at_stderr"
3597 fi
3598 at_status=$?
3599 at_failed=false
3600 echo >>"$at_stderr"; $as_echo "file
3601 " | \
3602   $at_diff - "$at_stderr" || at_failed=:
3603 echo >>"$at_stdout"; $as_echo "Creating the archive
3604 Testing the archive
3605 file
3606 " | \
3607   $at_diff - "$at_stdout" || at_failed=:
3608 at_func_check_status 0 $at_status "$at_srcdir/verbose.at:29"
3609
3610 $at_failed && at_func_log_failure
3611 $at_traceon; }
3612
3613
3614
3615
3616   $at_traceoff
3617   $at_times_p && times >"$at_times_file"
3618 ) 5>&1 2>&1 | eval $at_tee_pipe
3619 at_status=`cat "$at_status_file"`
3620 #AT_STOP_8
3621 #AT_START_9
3622 # 9. append.at:21: append
3623 at_setup_line='append.at:21'
3624 at_desc="append"
3625 $at_quiet $as_echo_n "  9: $at_desc                                         "
3626 at_xfail=no
3627       test -f $XFAILFILE && at_xfail=yes
3628 echo "#                             -*- compilation -*-" >> "$at_group_log"
3629 (
3630   $as_echo "9. append.at:21: testing ..."
3631   $at_traceon
3632
3633
3634
3635
3636
3637   { $at_traceoff
3638 $as_echo "$at_srcdir/append.at:24:
3639 mkdir v7
3640 (cd v7
3641 TEST_TAR_FORMAT=v7
3642 export TEST_TAR_FORMAT
3643 TAR_OPTIONS=\"-H v7\"
3644 export TAR_OPTIONS
3645 rm -rf *
3646 touch file1
3647           touch file2
3648           tar cf archive file1
3649           tar rf archive file2
3650           tar tf archive)"
3651 echo append.at:24 >"$at_check_line_file"
3652
3653 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
3654    false; }; then
3655   ( $at_traceon;
3656 mkdir v7
3657 (cd v7
3658 TEST_TAR_FORMAT=v7
3659 export TEST_TAR_FORMAT
3660 TAR_OPTIONS="-H v7"
3661 export TAR_OPTIONS
3662 rm -rf *
3663 touch file1
3664           touch file2
3665           tar cf archive file1
3666           tar rf archive file2
3667           tar tf archive) ) >"$at_stdout" 2>"$at_stder1"
3668   at_func_filter_trace $?
3669 else
3670   ( :;
3671 mkdir v7
3672 (cd v7
3673 TEST_TAR_FORMAT=v7
3674 export TEST_TAR_FORMAT
3675 TAR_OPTIONS="-H v7"
3676 export TAR_OPTIONS
3677 rm -rf *
3678 touch file1
3679           touch file2
3680           tar cf archive file1
3681           tar rf archive file2
3682           tar tf archive) ) >"$at_stdout" 2>"$at_stderr"
3683 fi
3684 at_status=$?
3685 at_failed=false
3686 at_func_diff_devnull "$at_stderr" || at_failed=:
3687 echo >>"$at_stdout"; $as_echo "file1
3688 file2
3689 " | \
3690   $at_diff - "$at_stdout" || at_failed=:
3691 at_func_check_status 0 $at_status "$at_srcdir/append.at:24"
3692
3693 $at_failed && at_func_log_failure
3694 $at_traceon; }
3695
3696               { $at_traceoff
3697 $as_echo "$at_srcdir/append.at:24:
3698 mkdir oldgnu
3699 (cd oldgnu
3700 TEST_TAR_FORMAT=oldgnu
3701 export TEST_TAR_FORMAT
3702 TAR_OPTIONS=\"-H oldgnu\"
3703 export TAR_OPTIONS
3704 rm -rf *
3705 touch file1
3706           touch file2
3707           tar cf archive file1
3708           tar rf archive file2
3709           tar tf archive)"
3710 echo append.at:24 >"$at_check_line_file"
3711
3712 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
3713    false; }; then
3714   ( $at_traceon;
3715 mkdir oldgnu
3716 (cd oldgnu
3717 TEST_TAR_FORMAT=oldgnu
3718 export TEST_TAR_FORMAT
3719 TAR_OPTIONS="-H oldgnu"
3720 export TAR_OPTIONS
3721 rm -rf *
3722 touch file1
3723           touch file2
3724           tar cf archive file1
3725           tar rf archive file2
3726           tar tf archive) ) >"$at_stdout" 2>"$at_stder1"
3727   at_func_filter_trace $?
3728 else
3729   ( :;
3730 mkdir oldgnu
3731 (cd oldgnu
3732 TEST_TAR_FORMAT=oldgnu
3733 export TEST_TAR_FORMAT
3734 TAR_OPTIONS="-H oldgnu"
3735 export TAR_OPTIONS
3736 rm -rf *
3737 touch file1
3738           touch file2
3739           tar cf archive file1
3740           tar rf archive file2
3741           tar tf archive) ) >"$at_stdout" 2>"$at_stderr"
3742 fi
3743 at_status=$?
3744 at_failed=false
3745 at_func_diff_devnull "$at_stderr" || at_failed=:
3746 echo >>"$at_stdout"; $as_echo "file1
3747 file2
3748 " | \
3749   $at_diff - "$at_stdout" || at_failed=:
3750 at_func_check_status 0 $at_status "$at_srcdir/append.at:24"
3751
3752 $at_failed && at_func_log_failure
3753 $at_traceon; }
3754
3755               { $at_traceoff
3756 $as_echo "$at_srcdir/append.at:24:
3757 mkdir ustar
3758 (cd ustar
3759 TEST_TAR_FORMAT=ustar
3760 export TEST_TAR_FORMAT
3761 TAR_OPTIONS=\"-H ustar\"
3762 export TAR_OPTIONS
3763 rm -rf *
3764 touch file1
3765           touch file2
3766           tar cf archive file1
3767           tar rf archive file2
3768           tar tf archive)"
3769 echo append.at:24 >"$at_check_line_file"
3770
3771 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
3772    false; }; then
3773   ( $at_traceon;
3774 mkdir ustar
3775 (cd ustar
3776 TEST_TAR_FORMAT=ustar
3777 export TEST_TAR_FORMAT
3778 TAR_OPTIONS="-H ustar"
3779 export TAR_OPTIONS
3780 rm -rf *
3781 touch file1
3782           touch file2
3783           tar cf archive file1
3784           tar rf archive file2
3785           tar tf archive) ) >"$at_stdout" 2>"$at_stder1"
3786   at_func_filter_trace $?
3787 else
3788   ( :;
3789 mkdir ustar
3790 (cd ustar
3791 TEST_TAR_FORMAT=ustar
3792 export TEST_TAR_FORMAT
3793 TAR_OPTIONS="-H ustar"
3794 export TAR_OPTIONS
3795 rm -rf *
3796 touch file1
3797           touch file2
3798           tar cf archive file1
3799           tar rf archive file2
3800           tar tf archive) ) >"$at_stdout" 2>"$at_stderr"
3801 fi
3802 at_status=$?
3803 at_failed=false
3804 at_func_diff_devnull "$at_stderr" || at_failed=:
3805 echo >>"$at_stdout"; $as_echo "file1
3806 file2
3807 " | \
3808   $at_diff - "$at_stdout" || at_failed=:
3809 at_func_check_status 0 $at_status "$at_srcdir/append.at:24"
3810
3811 $at_failed && at_func_log_failure
3812 $at_traceon; }
3813
3814               { $at_traceoff
3815 $as_echo "$at_srcdir/append.at:24:
3816 mkdir posix
3817 (cd posix
3818 TEST_TAR_FORMAT=posix
3819 export TEST_TAR_FORMAT
3820 TAR_OPTIONS=\"-H posix\"
3821 export TAR_OPTIONS
3822 rm -rf *
3823 touch file1
3824           touch file2
3825           tar cf archive file1
3826           tar rf archive file2
3827           tar tf archive)"
3828 echo append.at:24 >"$at_check_line_file"
3829
3830 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
3831    false; }; then
3832   ( $at_traceon;
3833 mkdir posix
3834 (cd posix
3835 TEST_TAR_FORMAT=posix
3836 export TEST_TAR_FORMAT
3837 TAR_OPTIONS="-H posix"
3838 export TAR_OPTIONS
3839 rm -rf *
3840 touch file1
3841           touch file2
3842           tar cf archive file1
3843           tar rf archive file2
3844           tar tf archive) ) >"$at_stdout" 2>"$at_stder1"
3845   at_func_filter_trace $?
3846 else
3847   ( :;
3848 mkdir posix
3849 (cd posix
3850 TEST_TAR_FORMAT=posix
3851 export TEST_TAR_FORMAT
3852 TAR_OPTIONS="-H posix"
3853 export TAR_OPTIONS
3854 rm -rf *
3855 touch file1
3856           touch file2
3857           tar cf archive file1
3858           tar rf archive file2
3859           tar tf archive) ) >"$at_stdout" 2>"$at_stderr"
3860 fi
3861 at_status=$?
3862 at_failed=false
3863 at_func_diff_devnull "$at_stderr" || at_failed=:
3864 echo >>"$at_stdout"; $as_echo "file1
3865 file2
3866 " | \
3867   $at_diff - "$at_stdout" || at_failed=:
3868 at_func_check_status 0 $at_status "$at_srcdir/append.at:24"
3869
3870 $at_failed && at_func_log_failure
3871 $at_traceon; }
3872
3873               { $at_traceoff
3874 $as_echo "$at_srcdir/append.at:24:
3875 mkdir gnu
3876 (cd gnu
3877 TEST_TAR_FORMAT=gnu
3878 export TEST_TAR_FORMAT
3879 TAR_OPTIONS=\"-H gnu\"
3880 export TAR_OPTIONS
3881 rm -rf *
3882 touch file1
3883           touch file2
3884           tar cf archive file1
3885           tar rf archive file2
3886           tar tf archive)"
3887 echo append.at:24 >"$at_check_line_file"
3888
3889 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
3890    false; }; then
3891   ( $at_traceon;
3892 mkdir gnu
3893 (cd gnu
3894 TEST_TAR_FORMAT=gnu
3895 export TEST_TAR_FORMAT
3896 TAR_OPTIONS="-H gnu"
3897 export TAR_OPTIONS
3898 rm -rf *
3899 touch file1
3900           touch file2
3901           tar cf archive file1
3902           tar rf archive file2
3903           tar tf archive) ) >"$at_stdout" 2>"$at_stder1"
3904   at_func_filter_trace $?
3905 else
3906   ( :;
3907 mkdir gnu
3908 (cd gnu
3909 TEST_TAR_FORMAT=gnu
3910 export TEST_TAR_FORMAT
3911 TAR_OPTIONS="-H gnu"
3912 export TAR_OPTIONS
3913 rm -rf *
3914 touch file1
3915           touch file2
3916           tar cf archive file1
3917           tar rf archive file2
3918           tar tf archive) ) >"$at_stdout" 2>"$at_stderr"
3919 fi
3920 at_status=$?
3921 at_failed=false
3922 at_func_diff_devnull "$at_stderr" || at_failed=:
3923 echo >>"$at_stdout"; $as_echo "file1
3924 file2
3925 " | \
3926   $at_diff - "$at_stdout" || at_failed=:
3927 at_func_check_status 0 $at_status "$at_srcdir/append.at:24"
3928
3929 $at_failed && at_func_log_failure
3930 $at_traceon; }
3931
3932
3933
3934
3935   $at_traceoff
3936   $at_times_p && times >"$at_times_file"
3937 ) 5>&1 2>&1 | eval $at_tee_pipe
3938 at_status=`cat "$at_status_file"`
3939 #AT_STOP_9
3940 #AT_START_10
3941 # 10. append01.at:29: appending files with long names
3942 at_setup_line='append01.at:29'
3943 at_desc="appending files with long names"
3944 $at_quiet $as_echo_n " 10: $at_desc                "
3945 at_xfail=no
3946       test -f $XFAILFILE && at_xfail=yes
3947 echo "#                             -*- compilation -*-" >> "$at_group_log"
3948 (
3949   $as_echo "10. append01.at:29: testing ..."
3950   $at_traceon
3951
3952
3953
3954
3955
3956
3957
3958   { $at_traceoff
3959 $as_echo "$at_srcdir/append01.at:34:
3960 mkdir oldgnu
3961 (cd oldgnu
3962 TEST_TAR_FORMAT=oldgnu
3963 export TEST_TAR_FORMAT
3964 TAR_OPTIONS=\"-H oldgnu\"
3965 export TAR_OPTIONS
3966 rm -rf *
3967
3968 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
3969 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
3970 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
3971 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
3972 tar tf archive
3973 )"
3974 echo append01.at:34 >"$at_check_line_file"
3975
3976 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
3977    false; }; then
3978   ( $at_traceon;
3979 mkdir oldgnu
3980 (cd oldgnu
3981 TEST_TAR_FORMAT=oldgnu
3982 export TEST_TAR_FORMAT
3983 TAR_OPTIONS="-H oldgnu"
3984 export TAR_OPTIONS
3985 rm -rf *
3986
3987 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
3988 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
3989 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
3990 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
3991 tar tf archive
3992 ) ) >"$at_stdout" 2>"$at_stder1"
3993   at_func_filter_trace $?
3994 else
3995   ( :;
3996 mkdir oldgnu
3997 (cd oldgnu
3998 TEST_TAR_FORMAT=oldgnu
3999 export TEST_TAR_FORMAT
4000 TAR_OPTIONS="-H oldgnu"
4001 export TAR_OPTIONS
4002 rm -rf *
4003
4004 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
4005 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
4006 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
4007 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
4008 tar tf archive
4009 ) ) >"$at_stdout" 2>"$at_stderr"
4010 fi
4011 at_status=$?
4012 at_failed=false
4013 at_func_diff_devnull "$at_stderr" || at_failed=:
4014 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
4015 This_is_a_very_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
4016 " | \
4017   $at_diff - "$at_stdout" || at_failed=:
4018 at_func_check_status 0 $at_status "$at_srcdir/append01.at:34"
4019
4020 $at_failed && at_func_log_failure
4021 $at_traceon; }
4022
4023               { $at_traceoff
4024 $as_echo "$at_srcdir/append01.at:34:
4025 mkdir ustar
4026 (cd ustar
4027 TEST_TAR_FORMAT=ustar
4028 export TEST_TAR_FORMAT
4029 TAR_OPTIONS=\"-H ustar\"
4030 export TAR_OPTIONS
4031 rm -rf *
4032
4033 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
4034 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
4035 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
4036 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
4037 tar tf archive
4038 )"
4039 echo append01.at:34 >"$at_check_line_file"
4040
4041 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
4042    false; }; then
4043   ( $at_traceon;
4044 mkdir ustar
4045 (cd ustar
4046 TEST_TAR_FORMAT=ustar
4047 export TEST_TAR_FORMAT
4048 TAR_OPTIONS="-H ustar"
4049 export TAR_OPTIONS
4050 rm -rf *
4051
4052 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
4053 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
4054 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
4055 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
4056 tar tf archive
4057 ) ) >"$at_stdout" 2>"$at_stder1"
4058   at_func_filter_trace $?
4059 else
4060   ( :;
4061 mkdir ustar
4062 (cd ustar
4063 TEST_TAR_FORMAT=ustar
4064 export TEST_TAR_FORMAT
4065 TAR_OPTIONS="-H ustar"
4066 export TAR_OPTIONS
4067 rm -rf *
4068
4069 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
4070 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
4071 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
4072 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
4073 tar tf archive
4074 ) ) >"$at_stdout" 2>"$at_stderr"
4075 fi
4076 at_status=$?
4077 at_failed=false
4078 at_func_diff_devnull "$at_stderr" || at_failed=:
4079 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
4080 This_is_a_very_long_file_name_prefix_that_is_designed_to_cause_problems_with_appending_long_file_names_that_run_into_a_limit_of_the_ustar_tarX/file2
4081 " | \
4082   $at_diff - "$at_stdout" || at_failed=:
4083 at_func_check_status 0 $at_status "$at_srcdir/append01.at:34"
4084
4085 $at_failed && at_func_log_failure
4086 $at_traceon; }
4087
4088               { $at_traceoff
4089 $as_echo "$at_srcdir/append01.at:34:
4090 mkdir posix
4091 (cd posix
4092 TEST_TAR_FORMAT=posix
4093 export TEST_TAR_FORMAT
4094 TAR_OPTIONS=\"-H posix\"
4095 export TAR_OPTIONS
4096 rm -rf *
4097
4098 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
4099 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
4100 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
4101 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
4102 tar tf archive
4103 )"
4104 echo append01.at:34 >"$at_check_line_file"
4105
4106 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
4107    false; }; then
4108   ( $at_traceon;
4109 mkdir posix
4110 (cd posix
4111 TEST_TAR_FORMAT=posix
4112 export TEST_TAR_FORMAT
4113 TAR_OPTIONS="-H posix"
4114 export TAR_OPTIONS
4115 rm -rf *
4116
4117 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
4118 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
4119 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
4120 tar rf archive This_is_a_very_long_file_name_prefix_that_is_designed_to_cause_problems_with_appending_long_file_names_that_run_into_a_limit_of_the_ustar_tarX/file2
4121 tar tf archive
4122 ) ) >"$at_stdout" 2>"$at_stder1"
4123   at_func_filter_trace $?
4124 else
4125   ( :;
4126 mkdir posix
4127 (cd posix
4128 TEST_TAR_FORMAT=posix
4129 export TEST_TAR_FORMAT
4130 TAR_OPTIONS="-H posix"
4131 export TAR_OPTIONS
4132 rm -rf *
4133
4134 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
4135 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
4136 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
4137 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
4138 tar tf archive
4139 ) ) >"$at_stdout" 2>"$at_stderr"
4140 fi
4141 at_status=$?
4142 at_failed=false
4143 at_func_diff_devnull "$at_stderr" || at_failed=:
4144 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
4145 This_is_a_very_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
4146 " | \
4147   $at_diff - "$at_stdout" || at_failed=:
4148 at_func_check_status 0 $at_status "$at_srcdir/append01.at:34"
4149
4150 $at_failed && at_func_log_failure
4151 $at_traceon; }
4152
4153               { $at_traceoff
4154 $as_echo "$at_srcdir/append01.at:34:
4155 mkdir gnu
4156 (cd gnu
4157 TEST_TAR_FORMAT=gnu
4158 export TEST_TAR_FORMAT
4159 TAR_OPTIONS=\"-H gnu\"
4160 export TAR_OPTIONS
4161 rm -rf *
4162
4163 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
4164 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
4165 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
4166 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
4167 tar tf archive
4168 )"
4169 echo append01.at:34 >"$at_check_line_file"
4170
4171 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
4172    false; }; then
4173   ( $at_traceon;
4174 mkdir gnu
4175 (cd gnu
4176 TEST_TAR_FORMAT=gnu
4177 export TEST_TAR_FORMAT
4178 TAR_OPTIONS="-H gnu"
4179 export TAR_OPTIONS
4180 rm -rf *
4181
4182 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
4183 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
4184 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
4185 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
4186 tar tf archive
4187 ) ) >"$at_stdout" 2>"$at_stder1"
4188   at_func_filter_trace $?
4189 else
4190   ( :;
4191 mkdir gnu
4192 (cd gnu
4193 TEST_TAR_FORMAT=gnu
4194 export TEST_TAR_FORMAT
4195 TAR_OPTIONS="-H gnu"
4196 export TAR_OPTIONS
4197 rm -rf *
4198
4199 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
4200 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
4201 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
4202 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
4203 tar tf archive
4204 ) ) >"$at_stdout" 2>"$at_stderr"
4205 fi
4206 at_status=$?
4207 at_failed=false
4208 at_func_diff_devnull "$at_stderr" || at_failed=:
4209 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
4210 This_is_a_very_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
4211 " | \
4212   $at_diff - "$at_stdout" || at_failed=:
4213 at_func_check_status 0 $at_status "$at_srcdir/append01.at:34"
4214
4215 $at_failed && at_func_log_failure
4216 $at_traceon; }
4217
4218
4219
4220
4221   $at_traceoff
4222   $at_times_p && times >"$at_times_file"
4223 ) 5>&1 2>&1 | eval $at_tee_pipe
4224 at_status=`cat "$at_status_file"`
4225 #AT_STOP_10
4226 #AT_START_11
4227 # 11. append02.at:54: append vs. create
4228 at_setup_line='append02.at:54'
4229 at_desc="append vs. create"
4230 $at_quiet $as_echo_n " 11: $at_desc                              "
4231 at_xfail=no
4232       test -f $XFAILFILE && at_xfail=yes
4233 echo "#                             -*- compilation -*-" >> "$at_group_log"
4234 (
4235   $as_echo "11. append02.at:54: testing ..."
4236   $at_traceon
4237
4238
4239
4240
4241
4242   { $at_traceoff
4243 $as_echo "$at_srcdir/append02.at:57:
4244 mkdir v7
4245 (cd v7
4246 TEST_TAR_FORMAT=v7
4247 export TEST_TAR_FORMAT
4248 TAR_OPTIONS=\"-H v7\"
4249 export TAR_OPTIONS
4250 rm -rf *
4251
4252 genfile --file file1
4253 genfile --file file2
4254
4255 # Make sure file timestamps in the archive will not differ
4256 MTIME=\"--mtime=@0\"
4257
4258 # For PAX archives, we need to make sure extended header names are
4259 # reproducible and that their contents won't change with time
4260 if test \$TEST_TAR_FORMAT = posix; then
4261   TAR_OPTIONS=\"\$TAR_OPTIONS --pax-option=exthdr.name=%d/PaxHeaders/%f,delete=mtime,delete=atime,delete=ctime\"
4262 fi
4263
4264 echo Creating archive.1
4265 tar \$MTIME -cf archive.1 file1 file2
4266
4267 echo Creating archive.2
4268 tar \$MTIME -cf archive.2 -T /dev/null
4269 tar \$MTIME -rf archive.2 file1
4270 tar \$MTIME -rf archive.2 file2
4271
4272 echo Comparing archives
4273 cmp archive.1 archive.2
4274 )"
4275 echo append02.at:57 >"$at_check_line_file"
4276
4277 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
4278    false; }; then
4279   ( $at_traceon;
4280 mkdir v7
4281 (cd v7
4282 TEST_TAR_FORMAT=v7
4283 export TEST_TAR_FORMAT
4284 TAR_OPTIONS="-H v7"
4285 export TAR_OPTIONS
4286 rm -rf *
4287
4288 genfile --file file1
4289 genfile --file file2
4290
4291 # Make sure file timestamps in the archive will not differ
4292 MTIME="--mtime=@0"
4293
4294 # For PAX archives, we need to make sure extended header names are
4295 # reproducible and that their contents won't change with time
4296 if test $TEST_TAR_FORMAT = posix; then
4297   TAR_OPTIONS="$TAR_OPTIONS --pax-option=exthdr.name=%d/PaxHeaders/%f,delete=mtime,delete=atime,delete=ctime"
4298 fi
4299
4300 echo Creating archive.1
4301 tar $MTIME -cf archive.1 file1 file2
4302
4303 echo Creating archive.2
4304 tar $MTIME -cf archive.2 -T /dev/null
4305 tar $MTIME -rf archive.2 file1
4306 tar $MTIME -rf archive.2 file2
4307
4308 echo Comparing archives
4309 cmp archive.1 archive.2
4310 ) ) >"$at_stdout" 2>"$at_stder1"
4311   at_func_filter_trace $?
4312 else
4313   ( :;
4314 mkdir v7
4315 (cd v7
4316 TEST_TAR_FORMAT=v7
4317 export TEST_TAR_FORMAT
4318 TAR_OPTIONS="-H v7"
4319 export TAR_OPTIONS
4320 rm -rf *
4321
4322 genfile --file file1
4323 genfile --file file2
4324
4325 # Make sure file timestamps in the archive will not differ
4326 MTIME="--mtime=@0"
4327
4328 # For PAX archives, we need to make sure extended header names are
4329 # reproducible and that their contents won't change with time
4330 if test $TEST_TAR_FORMAT = posix; then
4331   TAR_OPTIONS="$TAR_OPTIONS --pax-option=exthdr.name=%d/PaxHeaders/%f,delete=mtime,delete=atime,delete=ctime"
4332 fi
4333
4334 echo Creating archive.1
4335 tar $MTIME -cf archive.1 file1 file2
4336
4337 echo Creating archive.2
4338 tar $MTIME -cf archive.2 -T /dev/null
4339 tar $MTIME -rf archive.2 file1
4340 tar $MTIME -rf archive.2 file2
4341
4342 echo Comparing archives
4343 cmp archive.1 archive.2
4344 ) ) >"$at_stdout" 2>"$at_stderr"
4345 fi
4346 at_status=$?
4347 at_failed=false
4348 at_func_diff_devnull "$at_stderr" || at_failed=:
4349 echo >>"$at_stdout"; $as_echo "Creating archive.1
4350 Creating archive.2
4351 Comparing archives
4352 " | \
4353   $at_diff - "$at_stdout" || at_failed=:
4354 at_func_check_status 0 $at_status "$at_srcdir/append02.at:57"
4355
4356 $at_failed && at_func_log_failure
4357 $at_traceon; }
4358
4359               { $at_traceoff
4360 $as_echo "$at_srcdir/append02.at:57:
4361 mkdir oldgnu
4362 (cd oldgnu
4363 TEST_TAR_FORMAT=oldgnu
4364 export TEST_TAR_FORMAT
4365 TAR_OPTIONS=\"-H oldgnu\"
4366 export TAR_OPTIONS
4367 rm -rf *
4368
4369 genfile --file file1
4370 genfile --file file2
4371
4372 # Make sure file timestamps in the archive will not differ
4373 MTIME=\"--mtime=@0\"
4374
4375 # For PAX archives, we need to make sure extended header names are
4376 # reproducible and that their contents won't change with time
4377 if test \$TEST_TAR_FORMAT = posix; then
4378   TAR_OPTIONS=\"\$TAR_OPTIONS --pax-option=exthdr.name=%d/PaxHeaders/%f,delete=mtime,delete=atime,delete=ctime\"
4379 fi
4380
4381 echo Creating archive.1
4382 tar \$MTIME -cf archive.1 file1 file2
4383
4384 echo Creating archive.2
4385 tar \$MTIME -cf archive.2 -T /dev/null
4386 tar \$MTIME -rf archive.2 file1
4387 tar \$MTIME -rf archive.2 file2
4388
4389 echo Comparing archives
4390 cmp archive.1 archive.2
4391 )"
4392 echo append02.at:57 >"$at_check_line_file"
4393
4394 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
4395    false; }; then
4396   ( $at_traceon;
4397 mkdir oldgnu
4398 (cd oldgnu
4399 TEST_TAR_FORMAT=oldgnu
4400 export TEST_TAR_FORMAT
4401 TAR_OPTIONS="-H oldgnu"
4402 export TAR_OPTIONS
4403 rm -rf *
4404
4405 genfile --file file1
4406 genfile --file file2
4407
4408 # Make sure file timestamps in the archive will not differ
4409 MTIME="--mtime=@0"
4410
4411 # For PAX archives, we need to make sure extended header names are
4412 # reproducible and that their contents won't change with time
4413 if test $TEST_TAR_FORMAT = posix; then
4414   TAR_OPTIONS="$TAR_OPTIONS --pax-option=exthdr.name=%d/PaxHeaders/%f,delete=mtime,delete=atime,delete=ctime"
4415 fi
4416
4417 echo Creating archive.1
4418 tar $MTIME -cf archive.1 file1 file2
4419
4420 echo Creating archive.2
4421 tar $MTIME -cf archive.2 -T /dev/null
4422 tar $MTIME -rf archive.2 file1
4423 tar $MTIME -rf archive.2 file2
4424
4425 echo Comparing archives
4426 cmp archive.1 archive.2
4427 ) ) >"$at_stdout" 2>"$at_stder1"
4428   at_func_filter_trace $?
4429 else
4430   ( :;
4431 mkdir oldgnu
4432 (cd oldgnu
4433 TEST_TAR_FORMAT=oldgnu
4434 export TEST_TAR_FORMAT
4435 TAR_OPTIONS="-H oldgnu"
4436 export TAR_OPTIONS
4437 rm -rf *
4438
4439 genfile --file file1
4440 genfile --file file2
4441
4442 # Make sure file timestamps in the archive will not differ
4443 MTIME="--mtime=@0"
4444
4445 # For PAX archives, we need to make sure extended header names are
4446 # reproducible and that their contents won't change with time
4447 if test $TEST_TAR_FORMAT = posix; then
4448   TAR_OPTIONS="$TAR_OPTIONS --pax-option=exthdr.name=%d/PaxHeaders/%f,delete=mtime,delete=atime,delete=ctime"
4449 fi
4450
4451 echo Creating archive.1
4452 tar $MTIME -cf archive.1 file1 file2
4453
4454 echo Creating archive.2
4455 tar $MTIME -cf archive.2 -T /dev/null
4456 tar $MTIME -rf archive.2 file1
4457 tar $MTIME -rf archive.2 file2
4458
4459 echo Comparing archives
4460 cmp archive.1 archive.2
4461 ) ) >"$at_stdout" 2>"$at_stderr"
4462 fi
4463 at_status=$?
4464 at_failed=false
4465 at_func_diff_devnull "$at_stderr" || at_failed=:
4466 echo >>"$at_stdout"; $as_echo "Creating archive.1
4467 Creating archive.2
4468 Comparing archives
4469 " | \
4470   $at_diff - "$at_stdout" || at_failed=:
4471 at_func_check_status 0 $at_status "$at_srcdir/append02.at:57"
4472
4473 $at_failed && at_func_log_failure
4474 $at_traceon; }
4475
4476               { $at_traceoff
4477 $as_echo "$at_srcdir/append02.at:57:
4478 mkdir ustar
4479 (cd ustar
4480 TEST_TAR_FORMAT=ustar
4481 export TEST_TAR_FORMAT
4482 TAR_OPTIONS=\"-H ustar\"
4483 export TAR_OPTIONS
4484 rm -rf *
4485
4486 genfile --file file1
4487 genfile --file file2
4488
4489 # Make sure file timestamps in the archive will not differ
4490 MTIME=\"--mtime=@0\"
4491
4492 # For PAX archives, we need to make sure extended header names are
4493 # reproducible and that their contents won't change with time
4494 if test \$TEST_TAR_FORMAT = posix; then
4495   TAR_OPTIONS=\"\$TAR_OPTIONS --pax-option=exthdr.name=%d/PaxHeaders/%f,delete=mtime,delete=atime,delete=ctime\"
4496 fi
4497
4498 echo Creating archive.1
4499 tar \$MTIME -cf archive.1 file1 file2
4500
4501 echo Creating archive.2
4502 tar \$MTIME -cf archive.2 -T /dev/null
4503 tar \$MTIME -rf archive.2 file1
4504 tar \$MTIME -rf archive.2 file2
4505
4506 echo Comparing archives
4507 cmp archive.1 archive.2
4508 )"
4509 echo append02.at:57 >"$at_check_line_file"
4510
4511 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
4512    false; }; then
4513   ( $at_traceon;
4514 mkdir ustar
4515 (cd ustar
4516 TEST_TAR_FORMAT=ustar
4517 export TEST_TAR_FORMAT
4518 TAR_OPTIONS="-H ustar"
4519 export TAR_OPTIONS
4520 rm -rf *
4521
4522 genfile --file file1
4523 genfile --file file2
4524
4525 # Make sure file timestamps in the archive will not differ
4526 MTIME="--mtime=@0"
4527
4528 # For PAX archives, we need to make sure extended header names are
4529 # reproducible and that their contents won't change with time
4530 if test $TEST_TAR_FORMAT = posix; then
4531   TAR_OPTIONS="$TAR_OPTIONS --pax-option=exthdr.name=%d/PaxHeaders/%f,delete=mtime,delete=atime,delete=ctime"
4532 fi
4533
4534 echo Creating archive.1
4535 tar $MTIME -cf archive.1 file1 file2
4536
4537 echo Creating archive.2
4538 tar $MTIME -cf archive.2 -T /dev/null
4539 tar $MTIME -rf archive.2 file1
4540 tar $MTIME -rf archive.2 file2
4541
4542 echo Comparing archives
4543 cmp archive.1 archive.2
4544 ) ) >"$at_stdout" 2>"$at_stder1"
4545   at_func_filter_trace $?
4546 else
4547   ( :;
4548 mkdir ustar
4549 (cd ustar
4550 TEST_TAR_FORMAT=ustar
4551 export TEST_TAR_FORMAT
4552 TAR_OPTIONS="-H ustar"
4553 export TAR_OPTIONS
4554 rm -rf *
4555
4556 genfile --file file1
4557 genfile --file file2
4558
4559 # Make sure file timestamps in the archive will not differ
4560 MTIME="--mtime=@0"
4561
4562 # For PAX archives, we need to make sure extended header names are
4563 # reproducible and that their contents won't change with time
4564 if test $TEST_TAR_FORMAT = posix; then
4565   TAR_OPTIONS="$TAR_OPTIONS --pax-option=exthdr.name=%d/PaxHeaders/%f,delete=mtime,delete=atime,delete=ctime"
4566 fi
4567
4568 echo Creating archive.1
4569 tar $MTIME -cf archive.1 file1 file2
4570
4571 echo Creating archive.2
4572 tar $MTIME -cf archive.2 -T /dev/null
4573 tar $MTIME -rf archive.2 file1
4574 tar $MTIME -rf archive.2 file2
4575
4576 echo Comparing archives
4577 cmp archive.1 archive.2
4578 ) ) >"$at_stdout" 2>"$at_stderr"
4579 fi
4580 at_status=$?
4581 at_failed=false
4582 at_func_diff_devnull "$at_stderr" || at_failed=:
4583 echo >>"$at_stdout"; $as_echo "Creating archive.1
4584 Creating archive.2
4585 Comparing archives
4586 " | \
4587   $at_diff - "$at_stdout" || at_failed=:
4588 at_func_check_status 0 $at_status "$at_srcdir/append02.at:57"
4589
4590 $at_failed && at_func_log_failure
4591 $at_traceon; }
4592
4593               { $at_traceoff
4594 $as_echo "$at_srcdir/append02.at:57:
4595 mkdir posix
4596 (cd posix
4597 TEST_TAR_FORMAT=posix
4598 export TEST_TAR_FORMAT
4599 TAR_OPTIONS=\"-H posix\"
4600 export TAR_OPTIONS
4601 rm -rf *
4602
4603 genfile --file file1
4604 genfile --file file2
4605
4606 # Make sure file timestamps in the archive will not differ
4607 MTIME=\"--mtime=@0\"
4608
4609 # For PAX archives, we need to make sure extended header names are
4610 # reproducible and that their contents won't change with time
4611 if test \$TEST_TAR_FORMAT = posix; then
4612   TAR_OPTIONS=\"\$TAR_OPTIONS --pax-option=exthdr.name=%d/PaxHeaders/%f,delete=mtime,delete=atime,delete=ctime\"
4613 fi
4614
4615 echo Creating archive.1
4616 tar \$MTIME -cf archive.1 file1 file2
4617
4618 echo Creating archive.2
4619 tar \$MTIME -cf archive.2 -T /dev/null
4620 tar \$MTIME -rf archive.2 file1
4621 tar \$MTIME -rf archive.2 file2
4622
4623 echo Comparing archives
4624 cmp archive.1 archive.2
4625 )"
4626 echo append02.at:57 >"$at_check_line_file"
4627
4628 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
4629    false; }; then
4630   ( $at_traceon;
4631 mkdir posix
4632 (cd posix
4633 TEST_TAR_FORMAT=posix
4634 export TEST_TAR_FORMAT
4635 TAR_OPTIONS="-H posix"
4636 export TAR_OPTIONS
4637 rm -rf *
4638
4639 genfile --file file1
4640 genfile --file file2
4641
4642 # Make sure file timestamps in the archive will not differ
4643 MTIME="--mtime=@0"
4644
4645 # For PAX archives, we need to make sure extended header names are
4646 # reproducible and that their contents won't change with time
4647 if test $TEST_TAR_FORMAT = posix; then
4648   TAR_OPTIONS="$TAR_OPTIONS --pax-option=exthdr.name=%d/PaxHeaders/%f,delete=mtime,delete=atime,delete=ctime"
4649 fi
4650
4651 echo Creating archive.1
4652 tar $MTIME -cf archive.1 file1 file2
4653
4654 echo Creating archive.2
4655 tar $MTIME -cf archive.2 -T /dev/null
4656 tar $MTIME -rf archive.2 file1
4657 tar $MTIME -rf archive.2 file2
4658
4659 echo Comparing archives
4660 cmp archive.1 archive.2
4661 ) ) >"$at_stdout" 2>"$at_stder1"
4662   at_func_filter_trace $?
4663 else
4664   ( :;
4665 mkdir posix
4666 (cd posix
4667 TEST_TAR_FORMAT=posix
4668 export TEST_TAR_FORMAT
4669 TAR_OPTIONS="-H posix"
4670 export TAR_OPTIONS
4671 rm -rf *
4672
4673 genfile --file file1
4674 genfile --file file2
4675
4676 # Make sure file timestamps in the archive will not differ
4677 MTIME="--mtime=@0"
4678
4679 # For PAX archives, we need to make sure extended header names are
4680 # reproducible and that their contents won't change with time
4681 if test $TEST_TAR_FORMAT = posix; then
4682   TAR_OPTIONS="$TAR_OPTIONS --pax-option=exthdr.name=%d/PaxHeaders/%f,delete=mtime,delete=atime,delete=ctime"
4683 fi
4684
4685 echo Creating archive.1
4686 tar $MTIME -cf archive.1 file1 file2
4687
4688 echo Creating archive.2
4689 tar $MTIME -cf archive.2 -T /dev/null
4690 tar $MTIME -rf archive.2 file1
4691 tar $MTIME -rf archive.2 file2
4692
4693 echo Comparing archives
4694 cmp archive.1 archive.2
4695 ) ) >"$at_stdout" 2>"$at_stderr"
4696 fi
4697 at_status=$?
4698 at_failed=false
4699 at_func_diff_devnull "$at_stderr" || at_failed=:
4700 echo >>"$at_stdout"; $as_echo "Creating archive.1
4701 Creating archive.2
4702 Comparing archives
4703 " | \
4704   $at_diff - "$at_stdout" || at_failed=:
4705 at_func_check_status 0 $at_status "$at_srcdir/append02.at:57"
4706
4707 $at_failed && at_func_log_failure
4708 $at_traceon; }
4709
4710               { $at_traceoff
4711 $as_echo "$at_srcdir/append02.at:57:
4712 mkdir gnu
4713 (cd gnu
4714 TEST_TAR_FORMAT=gnu
4715 export TEST_TAR_FORMAT
4716 TAR_OPTIONS=\"-H gnu\"
4717 export TAR_OPTIONS
4718 rm -rf *
4719
4720 genfile --file file1
4721 genfile --file file2
4722
4723 # Make sure file timestamps in the archive will not differ
4724 MTIME=\"--mtime=@0\"
4725
4726 # For PAX archives, we need to make sure extended header names are
4727 # reproducible and that their contents won't change with time
4728 if test \$TEST_TAR_FORMAT = posix; then
4729   TAR_OPTIONS=\"\$TAR_OPTIONS --pax-option=exthdr.name=%d/PaxHeaders/%f,delete=mtime,delete=atime,delete=ctime\"
4730 fi
4731
4732 echo Creating archive.1
4733 tar \$MTIME -cf archive.1 file1 file2
4734
4735 echo Creating archive.2
4736 tar \$MTIME -cf archive.2 -T /dev/null
4737 tar \$MTIME -rf archive.2 file1
4738 tar \$MTIME -rf archive.2 file2
4739
4740 echo Comparing archives
4741 cmp archive.1 archive.2
4742 )"
4743 echo append02.at:57 >"$at_check_line_file"
4744
4745 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
4746    false; }; then
4747   ( $at_traceon;
4748 mkdir gnu
4749 (cd gnu
4750 TEST_TAR_FORMAT=gnu
4751 export TEST_TAR_FORMAT
4752 TAR_OPTIONS="-H gnu"
4753 export TAR_OPTIONS
4754 rm -rf *
4755
4756 genfile --file file1
4757 genfile --file file2
4758
4759 # Make sure file timestamps in the archive will not differ
4760 MTIME="--mtime=@0"
4761
4762 # For PAX archives, we need to make sure extended header names are
4763 # reproducible and that their contents won't change with time
4764 if test $TEST_TAR_FORMAT = posix; then
4765   TAR_OPTIONS="$TAR_OPTIONS --pax-option=exthdr.name=%d/PaxHeaders/%f,delete=mtime,delete=atime,delete=ctime"
4766 fi
4767
4768 echo Creating archive.1
4769 tar $MTIME -cf archive.1 file1 file2
4770
4771 echo Creating archive.2
4772 tar $MTIME -cf archive.2 -T /dev/null
4773 tar $MTIME -rf archive.2 file1
4774 tar $MTIME -rf archive.2 file2
4775
4776 echo Comparing archives
4777 cmp archive.1 archive.2
4778 ) ) >"$at_stdout" 2>"$at_stder1"
4779   at_func_filter_trace $?
4780 else
4781   ( :;
4782 mkdir gnu
4783 (cd gnu
4784 TEST_TAR_FORMAT=gnu
4785 export TEST_TAR_FORMAT
4786 TAR_OPTIONS="-H gnu"
4787 export TAR_OPTIONS
4788 rm -rf *
4789
4790 genfile --file file1
4791 genfile --file file2
4792
4793 # Make sure file timestamps in the archive will not differ
4794 MTIME="--mtime=@0"
4795
4796 # For PAX archives, we need to make sure extended header names are
4797 # reproducible and that their contents won't change with time
4798 if test $TEST_TAR_FORMAT = posix; then
4799   TAR_OPTIONS="$TAR_OPTIONS --pax-option=exthdr.name=%d/PaxHeaders/%f,delete=mtime,delete=atime,delete=ctime"
4800 fi
4801
4802 echo Creating archive.1
4803 tar $MTIME -cf archive.1 file1 file2
4804
4805 echo Creating archive.2
4806 tar $MTIME -cf archive.2 -T /dev/null
4807 tar $MTIME -rf archive.2 file1
4808 tar $MTIME -rf archive.2 file2
4809
4810 echo Comparing archives
4811 cmp archive.1 archive.2
4812 ) ) >"$at_stdout" 2>"$at_stderr"
4813 fi
4814 at_status=$?
4815 at_failed=false
4816 at_func_diff_devnull "$at_stderr" || at_failed=:
4817 echo >>"$at_stdout"; $as_echo "Creating archive.1
4818 Creating archive.2
4819 Comparing archives
4820 " | \
4821   $at_diff - "$at_stdout" || at_failed=:
4822 at_func_check_status 0 $at_status "$at_srcdir/append02.at:57"
4823
4824 $at_failed && at_func_log_failure
4825 $at_traceon; }
4826
4827
4828
4829
4830   $at_traceoff
4831   $at_times_p && times >"$at_times_file"
4832 ) 5>&1 2>&1 | eval $at_tee_pipe
4833 at_status=`cat "$at_status_file"`
4834 #AT_STOP_11
4835 #AT_START_12
4836 # 12. append03.at:19: append with name transformation
4837 at_setup_line='append03.at:19'
4838 at_desc="append with name transformation"
4839 $at_quiet $as_echo_n " 12: $at_desc                "
4840 at_xfail=no
4841       test -f $XFAILFILE && at_xfail=yes
4842 echo "#                             -*- compilation -*-" >> "$at_group_log"
4843 (
4844   $as_echo "12. append03.at:19: testing ..."
4845   $at_traceon
4846
4847
4848
4849 # Description: Make sure filenames are transformed during append.
4850
4851
4852
4853   { $at_traceoff
4854 $as_echo "$at_srcdir/append03.at:24:
4855 mkdir v7
4856 (cd v7
4857 TEST_TAR_FORMAT=v7
4858 export TEST_TAR_FORMAT
4859 TAR_OPTIONS=\"-H v7\"
4860 export TAR_OPTIONS
4861 rm -rf *
4862
4863 genfile --file file.1
4864 genfile --file file.2
4865
4866 tar -c -f archive --transform 's/file/plik/' file.*
4867 echo Appending
4868 tar -r -f archive --transform 's/file/plik/' -v --show-transformed-names file.1
4869 echo Testing
4870 tar tf archive
4871 )"
4872 echo append03.at:24 >"$at_check_line_file"
4873
4874 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
4875    false; }; then
4876   ( $at_traceon;
4877 mkdir v7
4878 (cd v7
4879 TEST_TAR_FORMAT=v7
4880 export TEST_TAR_FORMAT
4881 TAR_OPTIONS="-H v7"
4882 export TAR_OPTIONS
4883 rm -rf *
4884
4885 genfile --file file.1
4886 genfile --file file.2
4887
4888 tar -c -f archive --transform 's/file/plik/' file.*
4889 echo Appending
4890 tar -r -f archive --transform 's/file/plik/' -v --show-transformed-names file.1
4891 echo Testing
4892 tar tf archive
4893 ) ) >"$at_stdout" 2>"$at_stder1"
4894   at_func_filter_trace $?
4895 else
4896   ( :;
4897 mkdir v7
4898 (cd v7
4899 TEST_TAR_FORMAT=v7
4900 export TEST_TAR_FORMAT
4901 TAR_OPTIONS="-H v7"
4902 export TAR_OPTIONS
4903 rm -rf *
4904
4905 genfile --file file.1
4906 genfile --file file.2
4907
4908 tar -c -f archive --transform 's/file/plik/' file.*
4909 echo Appending
4910 tar -r -f archive --transform 's/file/plik/' -v --show-transformed-names file.1
4911 echo Testing
4912 tar tf archive
4913 ) ) >"$at_stdout" 2>"$at_stderr"
4914 fi
4915 at_status=$?
4916 at_failed=false
4917 at_func_diff_devnull "$at_stderr" || at_failed=:
4918 echo >>"$at_stdout"; $as_echo "Appending
4919 plik.1
4920 Testing
4921 plik.1
4922 plik.2
4923 plik.1
4924 " | \
4925   $at_diff - "$at_stdout" || at_failed=:
4926 at_func_check_status 0 $at_status "$at_srcdir/append03.at:24"
4927
4928 $at_failed && at_func_log_failure
4929 $at_traceon; }
4930
4931               { $at_traceoff
4932 $as_echo "$at_srcdir/append03.at:24:
4933 mkdir oldgnu
4934 (cd oldgnu
4935 TEST_TAR_FORMAT=oldgnu
4936 export TEST_TAR_FORMAT
4937 TAR_OPTIONS=\"-H oldgnu\"
4938 export TAR_OPTIONS
4939 rm -rf *
4940
4941 genfile --file file.1
4942 genfile --file file.2
4943
4944 tar -c -f archive --transform 's/file/plik/' file.*
4945 echo Appending
4946 tar -r -f archive --transform 's/file/plik/' -v --show-transformed-names file.1
4947 echo Testing
4948 tar tf archive
4949 )"
4950 echo append03.at:24 >"$at_check_line_file"
4951
4952 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
4953    false; }; then
4954   ( $at_traceon;
4955 mkdir oldgnu
4956 (cd oldgnu
4957 TEST_TAR_FORMAT=oldgnu
4958 export TEST_TAR_FORMAT
4959 TAR_OPTIONS="-H oldgnu"
4960 export TAR_OPTIONS
4961 rm -rf *
4962
4963 genfile --file file.1
4964 genfile --file file.2
4965
4966 tar -c -f archive --transform 's/file/plik/' file.*
4967 echo Appending
4968 tar -r -f archive --transform 's/file/plik/' -v --show-transformed-names file.1
4969 echo Testing
4970 tar tf archive
4971 ) ) >"$at_stdout" 2>"$at_stder1"
4972   at_func_filter_trace $?
4973 else
4974   ( :;
4975 mkdir oldgnu
4976 (cd oldgnu
4977 TEST_TAR_FORMAT=oldgnu
4978 export TEST_TAR_FORMAT
4979 TAR_OPTIONS="-H oldgnu"
4980 export TAR_OPTIONS
4981 rm -rf *
4982
4983 genfile --file file.1
4984 genfile --file file.2
4985
4986 tar -c -f archive --transform 's/file/plik/' file.*
4987 echo Appending
4988 tar -r -f archive --transform 's/file/plik/' -v --show-transformed-names file.1
4989 echo Testing
4990 tar tf archive
4991 ) ) >"$at_stdout" 2>"$at_stderr"
4992 fi
4993 at_status=$?
4994 at_failed=false
4995 at_func_diff_devnull "$at_stderr" || at_failed=:
4996 echo >>"$at_stdout"; $as_echo "Appending
4997 plik.1
4998 Testing
4999 plik.1
5000 plik.2
5001 plik.1
5002 " | \
5003   $at_diff - "$at_stdout" || at_failed=:
5004 at_func_check_status 0 $at_status "$at_srcdir/append03.at:24"
5005
5006 $at_failed && at_func_log_failure
5007 $at_traceon; }
5008
5009               { $at_traceoff
5010 $as_echo "$at_srcdir/append03.at:24:
5011 mkdir ustar
5012 (cd ustar
5013 TEST_TAR_FORMAT=ustar
5014 export TEST_TAR_FORMAT
5015 TAR_OPTIONS=\"-H ustar\"
5016 export TAR_OPTIONS
5017 rm -rf *
5018
5019 genfile --file file.1
5020 genfile --file file.2
5021
5022 tar -c -f archive --transform 's/file/plik/' file.*
5023 echo Appending
5024 tar -r -f archive --transform 's/file/plik/' -v --show-transformed-names file.1
5025 echo Testing
5026 tar tf archive
5027 )"
5028 echo append03.at:24 >"$at_check_line_file"
5029
5030 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
5031    false; }; then
5032   ( $at_traceon;
5033 mkdir ustar
5034 (cd ustar
5035 TEST_TAR_FORMAT=ustar
5036 export TEST_TAR_FORMAT
5037 TAR_OPTIONS="-H ustar"
5038 export TAR_OPTIONS
5039 rm -rf *
5040
5041 genfile --file file.1
5042 genfile --file file.2
5043
5044 tar -c -f archive --transform 's/file/plik/' file.*
5045 echo Appending
5046 tar -r -f archive --transform 's/file/plik/' -v --show-transformed-names file.1
5047 echo Testing
5048 tar tf archive
5049 ) ) >"$at_stdout" 2>"$at_stder1"
5050   at_func_filter_trace $?
5051 else
5052   ( :;
5053 mkdir ustar
5054 (cd ustar
5055 TEST_TAR_FORMAT=ustar
5056 export TEST_TAR_FORMAT
5057 TAR_OPTIONS="-H ustar"
5058 export TAR_OPTIONS
5059 rm -rf *
5060
5061 genfile --file file.1
5062 genfile --file file.2
5063
5064 tar -c -f archive --transform 's/file/plik/' file.*
5065 echo Appending
5066 tar -r -f archive --transform 's/file/plik/' -v --show-transformed-names file.1
5067 echo Testing
5068 tar tf archive
5069 ) ) >"$at_stdout" 2>"$at_stderr"
5070 fi
5071 at_status=$?
5072 at_failed=false
5073 at_func_diff_devnull "$at_stderr" || at_failed=:
5074 echo >>"$at_stdout"; $as_echo "Appending
5075 plik.1
5076 Testing
5077 plik.1
5078 plik.2
5079 plik.1
5080 " | \
5081   $at_diff - "$at_stdout" || at_failed=:
5082 at_func_check_status 0 $at_status "$at_srcdir/append03.at:24"
5083
5084 $at_failed && at_func_log_failure
5085 $at_traceon; }
5086
5087               { $at_traceoff
5088 $as_echo "$at_srcdir/append03.at:24:
5089 mkdir posix
5090 (cd posix
5091 TEST_TAR_FORMAT=posix
5092 export TEST_TAR_FORMAT
5093 TAR_OPTIONS=\"-H posix\"
5094 export TAR_OPTIONS
5095 rm -rf *
5096
5097 genfile --file file.1
5098 genfile --file file.2
5099
5100 tar -c -f archive --transform 's/file/plik/' file.*
5101 echo Appending
5102 tar -r -f archive --transform 's/file/plik/' -v --show-transformed-names file.1
5103 echo Testing
5104 tar tf archive
5105 )"
5106 echo append03.at:24 >"$at_check_line_file"
5107
5108 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
5109    false; }; then
5110   ( $at_traceon;
5111 mkdir posix
5112 (cd posix
5113 TEST_TAR_FORMAT=posix
5114 export TEST_TAR_FORMAT
5115 TAR_OPTIONS="-H posix"
5116 export TAR_OPTIONS
5117 rm -rf *
5118
5119 genfile --file file.1
5120 genfile --file file.2
5121
5122 tar -c -f archive --transform 's/file/plik/' file.*
5123 echo Appending
5124 tar -r -f archive --transform 's/file/plik/' -v --show-transformed-names file.1
5125 echo Testing
5126 tar tf archive
5127 ) ) >"$at_stdout" 2>"$at_stder1"
5128   at_func_filter_trace $?
5129 else
5130   ( :;
5131 mkdir posix
5132 (cd posix
5133 TEST_TAR_FORMAT=posix
5134 export TEST_TAR_FORMAT
5135 TAR_OPTIONS="-H posix"
5136 export TAR_OPTIONS
5137 rm -rf *
5138
5139 genfile --file file.1
5140 genfile --file file.2
5141
5142 tar -c -f archive --transform 's/file/plik/' file.*
5143 echo Appending
5144 tar -r -f archive --transform 's/file/plik/' -v --show-transformed-names file.1
5145 echo Testing
5146 tar tf archive
5147 ) ) >"$at_stdout" 2>"$at_stderr"
5148 fi
5149 at_status=$?
5150 at_failed=false
5151 at_func_diff_devnull "$at_stderr" || at_failed=:
5152 echo >>"$at_stdout"; $as_echo "Appending
5153 plik.1
5154 Testing
5155 plik.1
5156 plik.2
5157 plik.1
5158 " | \
5159   $at_diff - "$at_stdout" || at_failed=:
5160 at_func_check_status 0 $at_status "$at_srcdir/append03.at:24"
5161
5162 $at_failed && at_func_log_failure
5163 $at_traceon; }
5164
5165               { $at_traceoff
5166 $as_echo "$at_srcdir/append03.at:24:
5167 mkdir gnu
5168 (cd gnu
5169 TEST_TAR_FORMAT=gnu
5170 export TEST_TAR_FORMAT
5171 TAR_OPTIONS=\"-H gnu\"
5172 export TAR_OPTIONS
5173 rm -rf *
5174
5175 genfile --file file.1
5176 genfile --file file.2
5177
5178 tar -c -f archive --transform 's/file/plik/' file.*
5179 echo Appending
5180 tar -r -f archive --transform 's/file/plik/' -v --show-transformed-names file.1
5181 echo Testing
5182 tar tf archive
5183 )"
5184 echo append03.at:24 >"$at_check_line_file"
5185
5186 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
5187    false; }; then
5188   ( $at_traceon;
5189 mkdir gnu
5190 (cd gnu
5191 TEST_TAR_FORMAT=gnu
5192 export TEST_TAR_FORMAT
5193 TAR_OPTIONS="-H gnu"
5194 export TAR_OPTIONS
5195 rm -rf *
5196
5197 genfile --file file.1
5198 genfile --file file.2
5199
5200 tar -c -f archive --transform 's/file/plik/' file.*
5201 echo Appending
5202 tar -r -f archive --transform 's/file/plik/' -v --show-transformed-names file.1
5203 echo Testing
5204 tar tf archive
5205 ) ) >"$at_stdout" 2>"$at_stder1"
5206   at_func_filter_trace $?
5207 else
5208   ( :;
5209 mkdir gnu
5210 (cd gnu
5211 TEST_TAR_FORMAT=gnu
5212 export TEST_TAR_FORMAT
5213 TAR_OPTIONS="-H gnu"
5214 export TAR_OPTIONS
5215 rm -rf *
5216
5217 genfile --file file.1
5218 genfile --file file.2
5219
5220 tar -c -f archive --transform 's/file/plik/' file.*
5221 echo Appending
5222 tar -r -f archive --transform 's/file/plik/' -v --show-transformed-names file.1
5223 echo Testing
5224 tar tf archive
5225 ) ) >"$at_stdout" 2>"$at_stderr"
5226 fi
5227 at_status=$?
5228 at_failed=false
5229 at_func_diff_devnull "$at_stderr" || at_failed=:
5230 echo >>"$at_stdout"; $as_echo "Appending
5231 plik.1
5232 Testing
5233 plik.1
5234 plik.2
5235 plik.1
5236 " | \
5237   $at_diff - "$at_stdout" || at_failed=:
5238 at_func_check_status 0 $at_status "$at_srcdir/append03.at:24"
5239
5240 $at_failed && at_func_log_failure
5241 $at_traceon; }
5242
5243
5244
5245
5246   $at_traceoff
5247   $at_times_p && times >"$at_times_file"
5248 ) 5>&1 2>&1 | eval $at_tee_pipe
5249 at_status=`cat "$at_status_file"`
5250 #AT_STOP_12
5251 #AT_START_13
5252 # 13. xform-h.at:30: transforming hard links on create
5253 at_setup_line='xform-h.at:30'
5254 at_desc="transforming hard links on create"
5255 $at_quiet $as_echo_n " 13: $at_desc              "
5256 at_xfail=no
5257       test -f $XFAILFILE && at_xfail=yes
5258 echo "#                             -*- compilation -*-" >> "$at_group_log"
5259 (
5260   $as_echo "13. xform-h.at:30: testing ..."
5261   $at_traceon
5262
5263
5264
5265
5266
5267
5268
5269   { $at_traceoff
5270 $as_echo "$at_srcdir/xform-h.at:39:
5271 mkdir v7
5272 (cd v7
5273 TEST_TAR_FORMAT=v7
5274 export TEST_TAR_FORMAT
5275 TAR_OPTIONS=\"-H v7\"
5276 export TAR_OPTIONS
5277 rm -rf *
5278
5279 mkdir basedir
5280 echo \"hello\" > basedir/test
5281 ln basedir/test basedir/test_link
5282
5283
5284 echo "Default transform scope"
5285 tar cf archive --transform="s,^basedir/,," basedir/test basedir/test_link
5286 tar tvf archive | sed -n 's/.*test_link link to //p'
5287
5288
5289 echo "Transforming hard links"
5290 tar cf archive --transform="s,^basedir/,,h" basedir/test basedir/test_link
5291 tar tvf archive | sed -n 's/.*test_link link to //p'
5292
5293
5294 echo "Not transforming hard links"
5295 tar cf archive --transform="s,^basedir/,,H" basedir/test basedir/test_link
5296 tar tvf archive | sed -n 's/.*test_link link to //p'
5297
5298 )"
5299 echo xform-h.at:39 >"$at_check_line_file"
5300
5301 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
5302    false; }; then
5303   ( $at_traceon;
5304 mkdir v7
5305 (cd v7
5306 TEST_TAR_FORMAT=v7
5307 export TEST_TAR_FORMAT
5308 TAR_OPTIONS="-H v7"
5309 export TAR_OPTIONS
5310 rm -rf *
5311
5312 mkdir basedir
5313 echo "hello" > basedir/test
5314 ln basedir/test basedir/test_link
5315
5316
5317 echo "Default transform scope"
5318 tar cf archive --transform="s,^basedir/,," basedir/test basedir/test_link
5319 tar tvf archive | sed -n 's/.*test_link link to //p'
5320
5321
5322 echo "Transforming hard links"
5323 tar cf archive --transform="s,^basedir/,,h" basedir/test basedir/test_link
5324 tar tvf archive | sed -n 's/.*test_link link to //p'
5325
5326
5327 echo "Not transforming hard links"
5328 tar cf archive --transform="s,^basedir/,,H" basedir/test basedir/test_link
5329 tar tvf archive | sed -n 's/.*test_link link to //p'
5330
5331 ) ) >"$at_stdout" 2>"$at_stder1"
5332   at_func_filter_trace $?
5333 else
5334   ( :;
5335 mkdir v7
5336 (cd v7
5337 TEST_TAR_FORMAT=v7
5338 export TEST_TAR_FORMAT
5339 TAR_OPTIONS="-H v7"
5340 export TAR_OPTIONS
5341 rm -rf *
5342
5343 mkdir basedir
5344 echo "hello" > basedir/test
5345 ln basedir/test basedir/test_link
5346
5347
5348 echo "Default transform scope"
5349 tar cf archive --transform="s,^basedir/,," basedir/test basedir/test_link
5350 tar tvf archive | sed -n 's/.*test_link link to //p'
5351
5352
5353 echo "Transforming hard links"
5354 tar cf archive --transform="s,^basedir/,,h" basedir/test basedir/test_link
5355 tar tvf archive | sed -n 's/.*test_link link to //p'
5356
5357
5358 echo "Not transforming hard links"
5359 tar cf archive --transform="s,^basedir/,,H" basedir/test basedir/test_link
5360 tar tvf archive | sed -n 's/.*test_link link to //p'
5361
5362 ) ) >"$at_stdout" 2>"$at_stderr"
5363 fi
5364 at_status=$?
5365 at_failed=false
5366 at_func_diff_devnull "$at_stderr" || at_failed=:
5367 echo >>"$at_stdout"; $as_echo "Default transform scope
5368 test
5369 Transforming hard links
5370 test
5371 Not transforming hard links
5372 basedir/test
5373 " | \
5374   $at_diff - "$at_stdout" || at_failed=:
5375 at_func_check_status 0 $at_status "$at_srcdir/xform-h.at:39"
5376
5377 $at_failed && at_func_log_failure
5378 $at_traceon; }
5379
5380               { $at_traceoff
5381 $as_echo "$at_srcdir/xform-h.at:39:
5382 mkdir oldgnu
5383 (cd oldgnu
5384 TEST_TAR_FORMAT=oldgnu
5385 export TEST_TAR_FORMAT
5386 TAR_OPTIONS=\"-H oldgnu\"
5387 export TAR_OPTIONS
5388 rm -rf *
5389
5390 mkdir basedir
5391 echo \"hello\" > basedir/test
5392 ln basedir/test basedir/test_link
5393
5394
5395 echo "Default transform scope"
5396 tar cf archive --transform="s,^basedir/,," basedir/test basedir/test_link
5397 tar tvf archive | sed -n 's/.*test_link link to //p'
5398
5399
5400 echo "Transforming hard links"
5401 tar cf archive --transform="s,^basedir/,,h" basedir/test basedir/test_link
5402 tar tvf archive | sed -n 's/.*test_link link to //p'
5403
5404
5405 echo "Not transforming hard links"
5406 tar cf archive --transform="s,^basedir/,,H" basedir/test basedir/test_link
5407 tar tvf archive | sed -n 's/.*test_link link to //p'
5408
5409 )"
5410 echo xform-h.at:39 >"$at_check_line_file"
5411
5412 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
5413    false; }; then
5414   ( $at_traceon;
5415 mkdir oldgnu
5416 (cd oldgnu
5417 TEST_TAR_FORMAT=oldgnu
5418 export TEST_TAR_FORMAT
5419 TAR_OPTIONS="-H oldgnu"
5420 export TAR_OPTIONS
5421 rm -rf *
5422
5423 mkdir basedir
5424 echo "hello" > basedir/test
5425 ln basedir/test basedir/test_link
5426
5427
5428 echo "Default transform scope"
5429 tar cf archive --transform="s,^basedir/,," basedir/test basedir/test_link
5430 tar tvf archive | sed -n 's/.*test_link link to //p'
5431
5432
5433 echo "Transforming hard links"
5434 tar cf archive --transform="s,^basedir/,,h" basedir/test basedir/test_link
5435 tar tvf archive | sed -n 's/.*test_link link to //p'
5436
5437
5438 echo "Not transforming hard links"
5439 tar cf archive --transform="s,^basedir/,,H" basedir/test basedir/test_link
5440 tar tvf archive | sed -n 's/.*test_link link to //p'
5441
5442 ) ) >"$at_stdout" 2>"$at_stder1"
5443   at_func_filter_trace $?
5444 else
5445   ( :;
5446 mkdir oldgnu
5447 (cd oldgnu
5448 TEST_TAR_FORMAT=oldgnu
5449 export TEST_TAR_FORMAT
5450 TAR_OPTIONS="-H oldgnu"
5451 export TAR_OPTIONS
5452 rm -rf *
5453
5454 mkdir basedir
5455 echo "hello" > basedir/test
5456 ln basedir/test basedir/test_link
5457
5458
5459 echo "Default transform scope"
5460 tar cf archive --transform="s,^basedir/,," basedir/test basedir/test_link
5461 tar tvf archive | sed -n 's/.*test_link link to //p'
5462
5463
5464 echo "Transforming hard links"
5465 tar cf archive --transform="s,^basedir/,,h" basedir/test basedir/test_link
5466 tar tvf archive | sed -n 's/.*test_link link to //p'
5467
5468
5469 echo "Not transforming hard links"
5470 tar cf archive --transform="s,^basedir/,,H" basedir/test basedir/test_link
5471 tar tvf archive | sed -n 's/.*test_link link to //p'
5472
5473 ) ) >"$at_stdout" 2>"$at_stderr"
5474 fi
5475 at_status=$?
5476 at_failed=false
5477 at_func_diff_devnull "$at_stderr" || at_failed=:
5478 echo >>"$at_stdout"; $as_echo "Default transform scope
5479 test
5480 Transforming hard links
5481 test
5482 Not transforming hard links
5483 basedir/test
5484 " | \
5485   $at_diff - "$at_stdout" || at_failed=:
5486 at_func_check_status 0 $at_status "$at_srcdir/xform-h.at:39"
5487
5488 $at_failed && at_func_log_failure
5489 $at_traceon; }
5490
5491               { $at_traceoff
5492 $as_echo "$at_srcdir/xform-h.at:39:
5493 mkdir ustar
5494 (cd ustar
5495 TEST_TAR_FORMAT=ustar
5496 export TEST_TAR_FORMAT
5497 TAR_OPTIONS=\"-H ustar\"
5498 export TAR_OPTIONS
5499 rm -rf *
5500
5501 mkdir basedir
5502 echo \"hello\" > basedir/test
5503 ln basedir/test basedir/test_link
5504
5505
5506 echo "Default transform scope"
5507 tar cf archive --transform="s,^basedir/,," basedir/test basedir/test_link
5508 tar tvf archive | sed -n 's/.*test_link link to //p'
5509
5510
5511 echo "Transforming hard links"
5512 tar cf archive --transform="s,^basedir/,,h" basedir/test basedir/test_link
5513 tar tvf archive | sed -n 's/.*test_link link to //p'
5514
5515
5516 echo "Not transforming hard links"
5517 tar cf archive --transform="s,^basedir/,,H" basedir/test basedir/test_link
5518 tar tvf archive | sed -n 's/.*test_link link to //p'
5519
5520 )"
5521 echo xform-h.at:39 >"$at_check_line_file"
5522
5523 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
5524    false; }; then
5525   ( $at_traceon;
5526 mkdir ustar
5527 (cd ustar
5528 TEST_TAR_FORMAT=ustar
5529 export TEST_TAR_FORMAT
5530 TAR_OPTIONS="-H ustar"
5531 export TAR_OPTIONS
5532 rm -rf *
5533
5534 mkdir basedir
5535 echo "hello" > basedir/test
5536 ln basedir/test basedir/test_link
5537
5538
5539 echo "Default transform scope"
5540 tar cf archive --transform="s,^basedir/,," basedir/test basedir/test_link
5541 tar tvf archive | sed -n 's/.*test_link link to //p'
5542
5543
5544 echo "Transforming hard links"
5545 tar cf archive --transform="s,^basedir/,,h" basedir/test basedir/test_link
5546 tar tvf archive | sed -n 's/.*test_link link to //p'
5547
5548
5549 echo "Not transforming hard links"
5550 tar cf archive --transform="s,^basedir/,,H" basedir/test basedir/test_link
5551 tar tvf archive | sed -n 's/.*test_link link to //p'
5552
5553 ) ) >"$at_stdout" 2>"$at_stder1"
5554   at_func_filter_trace $?
5555 else
5556   ( :;
5557 mkdir ustar
5558 (cd ustar
5559 TEST_TAR_FORMAT=ustar
5560 export TEST_TAR_FORMAT
5561 TAR_OPTIONS="-H ustar"
5562 export TAR_OPTIONS
5563 rm -rf *
5564
5565 mkdir basedir
5566 echo "hello" > basedir/test
5567 ln basedir/test basedir/test_link
5568
5569
5570 echo "Default transform scope"
5571 tar cf archive --transform="s,^basedir/,," basedir/test basedir/test_link
5572 tar tvf archive | sed -n 's/.*test_link link to //p'
5573
5574
5575 echo "Transforming hard links"
5576 tar cf archive --transform="s,^basedir/,,h" basedir/test basedir/test_link
5577 tar tvf archive | sed -n 's/.*test_link link to //p'
5578
5579
5580 echo "Not transforming hard links"
5581 tar cf archive --transform="s,^basedir/,,H" basedir/test basedir/test_link
5582 tar tvf archive | sed -n 's/.*test_link link to //p'
5583
5584 ) ) >"$at_stdout" 2>"$at_stderr"
5585 fi
5586 at_status=$?
5587 at_failed=false
5588 at_func_diff_devnull "$at_stderr" || at_failed=:
5589 echo >>"$at_stdout"; $as_echo "Default transform scope
5590 test
5591 Transforming hard links
5592 test
5593 Not transforming hard links
5594 basedir/test
5595 " | \
5596   $at_diff - "$at_stdout" || at_failed=:
5597 at_func_check_status 0 $at_status "$at_srcdir/xform-h.at:39"
5598
5599 $at_failed && at_func_log_failure
5600 $at_traceon; }
5601
5602               { $at_traceoff
5603 $as_echo "$at_srcdir/xform-h.at:39:
5604 mkdir posix
5605 (cd posix
5606 TEST_TAR_FORMAT=posix
5607 export TEST_TAR_FORMAT
5608 TAR_OPTIONS=\"-H posix\"
5609 export TAR_OPTIONS
5610 rm -rf *
5611
5612 mkdir basedir
5613 echo \"hello\" > basedir/test
5614 ln basedir/test basedir/test_link
5615
5616
5617 echo "Default transform scope"
5618 tar cf archive --transform="s,^basedir/,," basedir/test basedir/test_link
5619 tar tvf archive | sed -n 's/.*test_link link to //p'
5620
5621
5622 echo "Transforming hard links"
5623 tar cf archive --transform="s,^basedir/,,h" basedir/test basedir/test_link
5624 tar tvf archive | sed -n 's/.*test_link link to //p'
5625
5626
5627 echo "Not transforming hard links"
5628 tar cf archive --transform="s,^basedir/,,H" basedir/test basedir/test_link
5629 tar tvf archive | sed -n 's/.*test_link link to //p'
5630
5631 )"
5632 echo xform-h.at:39 >"$at_check_line_file"
5633
5634 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
5635    false; }; then
5636   ( $at_traceon;
5637 mkdir posix
5638 (cd posix
5639 TEST_TAR_FORMAT=posix
5640 export TEST_TAR_FORMAT
5641 TAR_OPTIONS="-H posix"
5642 export TAR_OPTIONS
5643 rm -rf *
5644
5645 mkdir basedir
5646 echo "hello" > basedir/test
5647 ln basedir/test basedir/test_link
5648
5649
5650 echo "Default transform scope"
5651 tar cf archive --transform="s,^basedir/,," basedir/test basedir/test_link
5652 tar tvf archive | sed -n 's/.*test_link link to //p'
5653
5654
5655 echo "Transforming hard links"
5656 tar cf archive --transform="s,^basedir/,,h" basedir/test basedir/test_link
5657 tar tvf archive | sed -n 's/.*test_link link to //p'
5658
5659
5660 echo "Not transforming hard links"
5661 tar cf archive --transform="s,^basedir/,,H" basedir/test basedir/test_link
5662 tar tvf archive | sed -n 's/.*test_link link to //p'
5663
5664 ) ) >"$at_stdout" 2>"$at_stder1"
5665   at_func_filter_trace $?
5666 else
5667   ( :;
5668 mkdir posix
5669 (cd posix
5670 TEST_TAR_FORMAT=posix
5671 export TEST_TAR_FORMAT
5672 TAR_OPTIONS="-H posix"
5673 export TAR_OPTIONS
5674 rm -rf *
5675
5676 mkdir basedir
5677 echo "hello" > basedir/test
5678 ln basedir/test basedir/test_link
5679
5680
5681 echo "Default transform scope"
5682 tar cf archive --transform="s,^basedir/,," basedir/test basedir/test_link
5683 tar tvf archive | sed -n 's/.*test_link link to //p'
5684
5685
5686 echo "Transforming hard links"
5687 tar cf archive --transform="s,^basedir/,,h" basedir/test basedir/test_link
5688 tar tvf archive | sed -n 's/.*test_link link to //p'
5689
5690
5691 echo "Not transforming hard links"
5692 tar cf archive --transform="s,^basedir/,,H" basedir/test basedir/test_link
5693 tar tvf archive | sed -n 's/.*test_link link to //p'
5694
5695 ) ) >"$at_stdout" 2>"$at_stderr"
5696 fi
5697 at_status=$?
5698 at_failed=false
5699 at_func_diff_devnull "$at_stderr" || at_failed=:
5700 echo >>"$at_stdout"; $as_echo "Default transform scope
5701 test
5702 Transforming hard links
5703 test
5704 Not transforming hard links
5705 basedir/test
5706 " | \
5707   $at_diff - "$at_stdout" || at_failed=:
5708 at_func_check_status 0 $at_status "$at_srcdir/xform-h.at:39"
5709
5710 $at_failed && at_func_log_failure
5711 $at_traceon; }
5712
5713               { $at_traceoff
5714 $as_echo "$at_srcdir/xform-h.at:39:
5715 mkdir gnu
5716 (cd gnu
5717 TEST_TAR_FORMAT=gnu
5718 export TEST_TAR_FORMAT
5719 TAR_OPTIONS=\"-H gnu\"
5720 export TAR_OPTIONS
5721 rm -rf *
5722
5723 mkdir basedir
5724 echo \"hello\" > basedir/test
5725 ln basedir/test basedir/test_link
5726
5727
5728 echo "Default transform scope"
5729 tar cf archive --transform="s,^basedir/,," basedir/test basedir/test_link
5730 tar tvf archive | sed -n 's/.*test_link link to //p'
5731
5732
5733 echo "Transforming hard links"
5734 tar cf archive --transform="s,^basedir/,,h" basedir/test basedir/test_link
5735 tar tvf archive | sed -n 's/.*test_link link to //p'
5736
5737
5738 echo "Not transforming hard links"
5739 tar cf archive --transform="s,^basedir/,,H" basedir/test basedir/test_link
5740 tar tvf archive | sed -n 's/.*test_link link to //p'
5741
5742 )"
5743 echo xform-h.at:39 >"$at_check_line_file"
5744
5745 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
5746    false; }; then
5747   ( $at_traceon;
5748 mkdir gnu
5749 (cd gnu
5750 TEST_TAR_FORMAT=gnu
5751 export TEST_TAR_FORMAT
5752 TAR_OPTIONS="-H gnu"
5753 export TAR_OPTIONS
5754 rm -rf *
5755
5756 mkdir basedir
5757 echo "hello" > basedir/test
5758 ln basedir/test basedir/test_link
5759
5760
5761 echo "Default transform scope"
5762 tar cf archive --transform="s,^basedir/,," basedir/test basedir/test_link
5763 tar tvf archive | sed -n 's/.*test_link link to //p'
5764
5765
5766 echo "Transforming hard links"
5767 tar cf archive --transform="s,^basedir/,,h" basedir/test basedir/test_link
5768 tar tvf archive | sed -n 's/.*test_link link to //p'
5769
5770
5771 echo "Not transforming hard links"
5772 tar cf archive --transform="s,^basedir/,,H" basedir/test basedir/test_link
5773 tar tvf archive | sed -n 's/.*test_link link to //p'
5774
5775 ) ) >"$at_stdout" 2>"$at_stder1"
5776   at_func_filter_trace $?
5777 else
5778   ( :;
5779 mkdir gnu
5780 (cd gnu
5781 TEST_TAR_FORMAT=gnu
5782 export TEST_TAR_FORMAT
5783 TAR_OPTIONS="-H gnu"
5784 export TAR_OPTIONS
5785 rm -rf *
5786
5787 mkdir basedir
5788 echo "hello" > basedir/test
5789 ln basedir/test basedir/test_link
5790
5791
5792 echo "Default transform scope"
5793 tar cf archive --transform="s,^basedir/,," basedir/test basedir/test_link
5794 tar tvf archive | sed -n 's/.*test_link link to //p'
5795
5796
5797 echo "Transforming hard links"
5798 tar cf archive --transform="s,^basedir/,,h" basedir/test basedir/test_link
5799 tar tvf archive | sed -n 's/.*test_link link to //p'
5800
5801
5802 echo "Not transforming hard links"
5803 tar cf archive --transform="s,^basedir/,,H" basedir/test basedir/test_link
5804 tar tvf archive | sed -n 's/.*test_link link to //p'
5805
5806 ) ) >"$at_stdout" 2>"$at_stderr"
5807 fi
5808 at_status=$?
5809 at_failed=false
5810 at_func_diff_devnull "$at_stderr" || at_failed=:
5811 echo >>"$at_stdout"; $as_echo "Default transform scope
5812 test
5813 Transforming hard links
5814 test
5815 Not transforming hard links
5816 basedir/test
5817 " | \
5818   $at_diff - "$at_stdout" || at_failed=:
5819 at_func_check_status 0 $at_status "$at_srcdir/xform-h.at:39"
5820
5821 $at_failed && at_func_log_failure
5822 $at_traceon; }
5823
5824
5825
5826
5827
5828
5829   $at_traceoff
5830   $at_times_p && times >"$at_times_file"
5831 ) 5>&1 2>&1 | eval $at_tee_pipe
5832 at_status=`cat "$at_status_file"`
5833 #AT_STOP_13
5834 #AT_START_14
5835 # 14. xform01.at:26: transformations and GNU volume labels
5836 at_setup_line='xform01.at:26'
5837 at_desc="transformations and GNU volume labels"
5838 $at_quiet $as_echo_n " 14: $at_desc          "
5839 at_xfail=no
5840       test -f $XFAILFILE && at_xfail=yes
5841 echo "#                             -*- compilation -*-" >> "$at_group_log"
5842 (
5843   $as_echo "14. xform01.at:26: testing ..."
5844   $at_traceon
5845
5846
5847
5848
5849
5850   { $at_traceoff
5851 $as_echo "$at_srcdir/xform01.at:29:
5852 mkdir gnu
5853 (cd gnu
5854 TEST_TAR_FORMAT=gnu
5855 export TEST_TAR_FORMAT
5856 TAR_OPTIONS=\"-H gnu\"
5857 export TAR_OPTIONS
5858 rm -rf *
5859
5860 genfile --file file
5861 tar -cf archive.tar -V /label/ file
5862 tar tf archive.tar
5863 )"
5864 echo xform01.at:29 >"$at_check_line_file"
5865
5866 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
5867    false; }; then
5868   ( $at_traceon;
5869 mkdir gnu
5870 (cd gnu
5871 TEST_TAR_FORMAT=gnu
5872 export TEST_TAR_FORMAT
5873 TAR_OPTIONS="-H gnu"
5874 export TAR_OPTIONS
5875 rm -rf *
5876
5877 genfile --file file
5878 tar -cf archive.tar -V /label/ file
5879 tar tf archive.tar
5880 ) ) >"$at_stdout" 2>"$at_stder1"
5881   at_func_filter_trace $?
5882 else
5883   ( :;
5884 mkdir gnu
5885 (cd gnu
5886 TEST_TAR_FORMAT=gnu
5887 export TEST_TAR_FORMAT
5888 TAR_OPTIONS="-H gnu"
5889 export TAR_OPTIONS
5890 rm -rf *
5891
5892 genfile --file file
5893 tar -cf archive.tar -V /label/ file
5894 tar tf archive.tar
5895 ) ) >"$at_stdout" 2>"$at_stderr"
5896 fi
5897 at_status=$?
5898 at_failed=false
5899 at_func_diff_devnull "$at_stderr" || at_failed=:
5900 echo >>"$at_stdout"; $as_echo "/label/
5901 file
5902 " | \
5903   $at_diff - "$at_stdout" || at_failed=:
5904 at_func_check_status 0 $at_status "$at_srcdir/xform01.at:29"
5905
5906 $at_failed && at_func_log_failure
5907 $at_traceon; }
5908
5909
5910
5911
5912   $at_traceoff
5913   $at_times_p && times >"$at_times_file"
5914 ) 5>&1 2>&1 | eval $at_tee_pipe
5915 at_status=`cat "$at_status_file"`
5916 #AT_STOP_14
5917 #AT_START_15
5918 # 15. exclude.at:23: exclude
5919 at_setup_line='exclude.at:23'
5920 at_desc="exclude"
5921 $at_quiet $as_echo_n " 15: $at_desc                                        "
5922 at_xfail=no
5923       test -f $XFAILFILE && at_xfail=yes
5924 echo "#                             -*- compilation -*-" >> "$at_group_log"
5925 (
5926   $as_echo "15. exclude.at:23: testing ..."
5927   $at_traceon
5928
5929
5930
5931
5932
5933   { $at_traceoff
5934 $as_echo "$at_srcdir/exclude.at:26:
5935 mkdir ustar
5936 (cd ustar
5937 TEST_TAR_FORMAT=ustar
5938 export TEST_TAR_FORMAT
5939 TAR_OPTIONS=\"-H ustar\"
5940 export TAR_OPTIONS
5941 rm -rf *
5942
5943
5944 test -z "`sort < /dev/null 2>&1`" || exit 77
5945
5946
5947 mkdir dir
5948 echo blues > dir/blues
5949 echo jazz > dir/jazz
5950 mkdir dir/folk
5951 echo tagfile > dir/folk/tagfile
5952 echo sanjuan > dir/folk/sanjuan
5953 mkdir dir/rock
5954 echo \"Signature: 8a477f597d28d172789f06886806bc55\" > dir/rock/CACHEDIR.TAG
5955 echo \"test\" > dir/rock/file
5956
5957 for option in exclude-caches exclude-caches-under exclude-caches-all
5958 do
5959   echo OPTION \$option
5960   tar -cf archive.tar --\$option -v dir 2>err | sort
5961   cat err
5962   echo ARCHIVE
5963   tar tf archive.tar | sort
5964 done
5965
5966 for option in exclude-tag exclude-tag-under exclude-tag-all
5967 do
5968   echo OPTION \$option
5969   tar -cf archive.tar --\${option}=tagfile -v dir 2>err | sort
5970   cat err
5971   echo ARCHIVE
5972   tar tf archive.tar | sort
5973 done
5974 )"
5975 echo exclude.at:26 >"$at_check_line_file"
5976
5977 if { echo 'Not enabling shell tracing (command contains a ${...} parameter expansion)'
5978    false; }; then
5979   ( $at_traceon;
5980 mkdir ustar
5981 (cd ustar
5982 TEST_TAR_FORMAT=ustar
5983 export TEST_TAR_FORMAT
5984 TAR_OPTIONS="-H ustar"
5985 export TAR_OPTIONS
5986 rm -rf *
5987
5988
5989 test -z "`sort < /dev/null 2>&1`" || exit 77
5990
5991
5992 mkdir dir
5993 echo blues > dir/blues
5994 echo jazz > dir/jazz
5995 mkdir dir/folk
5996 echo tagfile > dir/folk/tagfile
5997 echo sanjuan > dir/folk/sanjuan
5998 mkdir dir/rock
5999 echo "Signature: 8a477f597d28d172789f06886806bc55" > dir/rock/CACHEDIR.TAG
6000 echo "test" > dir/rock/file
6001
6002 for option in exclude-caches exclude-caches-under exclude-caches-all
6003 do
6004   echo OPTION $option
6005   tar -cf archive.tar --$option -v dir 2>err | sort
6006   cat err
6007   echo ARCHIVE
6008   tar tf archive.tar | sort
6009 done
6010
6011 for option in exclude-tag exclude-tag-under exclude-tag-all
6012 do
6013   echo OPTION $option
6014   tar -cf archive.tar --${option}=tagfile -v dir 2>err | sort
6015   cat err
6016   echo ARCHIVE
6017   tar tf archive.tar | sort
6018 done
6019 ) ) >"$at_stdout" 2>"$at_stder1"
6020   at_func_filter_trace $?
6021 else
6022   ( :;
6023 mkdir ustar
6024 (cd ustar
6025 TEST_TAR_FORMAT=ustar
6026 export TEST_TAR_FORMAT
6027 TAR_OPTIONS="-H ustar"
6028 export TAR_OPTIONS
6029 rm -rf *
6030
6031
6032 test -z "`sort < /dev/null 2>&1`" || exit 77
6033
6034
6035 mkdir dir
6036 echo blues > dir/blues
6037 echo jazz > dir/jazz
6038 mkdir dir/folk
6039 echo tagfile > dir/folk/tagfile
6040 echo sanjuan > dir/folk/sanjuan
6041 mkdir dir/rock
6042 echo "Signature: 8a477f597d28d172789f06886806bc55" > dir/rock/CACHEDIR.TAG
6043 echo "test" > dir/rock/file
6044
6045 for option in exclude-caches exclude-caches-under exclude-caches-all
6046 do
6047   echo OPTION $option
6048   tar -cf archive.tar --$option -v dir 2>err | sort
6049   cat err
6050   echo ARCHIVE
6051   tar tf archive.tar | sort
6052 done
6053
6054 for option in exclude-tag exclude-tag-under exclude-tag-all
6055 do
6056   echo OPTION $option
6057   tar -cf archive.tar --${option}=tagfile -v dir 2>err | sort
6058   cat err
6059   echo ARCHIVE
6060   tar tf archive.tar | sort
6061 done
6062 ) ) >"$at_stdout" 2>"$at_stderr"
6063 fi
6064 at_status=$?
6065 at_failed=false
6066 at_func_diff_devnull "$at_stderr" || at_failed=:
6067 echo >>"$at_stdout"; $as_echo "OPTION exclude-caches
6068 dir/
6069 dir/blues
6070 dir/folk/
6071 dir/folk/sanjuan
6072 dir/folk/tagfile
6073 dir/jazz
6074 dir/rock/
6075 dir/rock/CACHEDIR.TAG
6076 tar: dir/rock/: contains a cache directory tag CACHEDIR.TAG; contents not dumped
6077 ARCHIVE
6078 dir/
6079 dir/blues
6080 dir/folk/
6081 dir/folk/sanjuan
6082 dir/folk/tagfile
6083 dir/jazz
6084 dir/rock/
6085 dir/rock/CACHEDIR.TAG
6086 OPTION exclude-caches-under
6087 dir/
6088 dir/blues
6089 dir/folk/
6090 dir/folk/sanjuan
6091 dir/folk/tagfile
6092 dir/jazz
6093 dir/rock/
6094 tar: dir/rock/: contains a cache directory tag CACHEDIR.TAG; contents not dumped
6095 ARCHIVE
6096 dir/
6097 dir/blues
6098 dir/folk/
6099 dir/folk/sanjuan
6100 dir/folk/tagfile
6101 dir/jazz
6102 dir/rock/
6103 OPTION exclude-caches-all
6104 dir/
6105 dir/blues
6106 dir/folk/
6107 dir/folk/sanjuan
6108 dir/folk/tagfile
6109 dir/jazz
6110 tar: dir/rock/: contains a cache directory tag CACHEDIR.TAG; directory not dumped
6111 ARCHIVE
6112 dir/
6113 dir/blues
6114 dir/folk/
6115 dir/folk/sanjuan
6116 dir/folk/tagfile
6117 dir/jazz
6118 OPTION exclude-tag
6119 dir/
6120 dir/blues
6121 dir/folk/
6122 dir/folk/tagfile
6123 dir/jazz
6124 dir/rock/
6125 dir/rock/CACHEDIR.TAG
6126 dir/rock/file
6127 tar: dir/folk/: contains a cache directory tag tagfile; contents not dumped
6128 ARCHIVE
6129 dir/
6130 dir/blues
6131 dir/folk/
6132 dir/folk/tagfile
6133 dir/jazz
6134 dir/rock/
6135 dir/rock/CACHEDIR.TAG
6136 dir/rock/file
6137 OPTION exclude-tag-under
6138 dir/
6139 dir/blues
6140 dir/folk/
6141 dir/jazz
6142 dir/rock/
6143 dir/rock/CACHEDIR.TAG
6144 dir/rock/file
6145 tar: dir/folk/: contains a cache directory tag tagfile; contents not dumped
6146 ARCHIVE
6147 dir/
6148 dir/blues
6149 dir/folk/
6150 dir/jazz
6151 dir/rock/
6152 dir/rock/CACHEDIR.TAG
6153 dir/rock/file
6154 OPTION exclude-tag-all
6155 dir/
6156 dir/blues
6157 dir/jazz
6158 dir/rock/
6159 dir/rock/CACHEDIR.TAG
6160 dir/rock/file
6161 tar: dir/folk/: contains a cache directory tag tagfile; directory not dumped
6162 ARCHIVE
6163 dir/
6164 dir/blues
6165 dir/jazz
6166 dir/rock/
6167 dir/rock/CACHEDIR.TAG
6168 dir/rock/file
6169 " | \
6170   $at_diff - "$at_stdout" || at_failed=:
6171 at_func_check_status 0 $at_status "$at_srcdir/exclude.at:26"
6172
6173 $at_failed && at_func_log_failure
6174 $at_traceon; }
6175
6176
6177
6178
6179   $at_traceoff
6180   $at_times_p && times >"$at_times_file"
6181 ) 5>&1 2>&1 | eval $at_tee_pipe
6182 at_status=`cat "$at_status_file"`
6183 #AT_STOP_15
6184 #AT_START_16
6185 # 16. exclude01.at:17: exclude wildcards
6186 at_setup_line='exclude01.at:17'
6187 at_desc="exclude wildcards"
6188 $at_quiet $as_echo_n " 16: $at_desc                              "
6189 at_xfail=no
6190       test -f $XFAILFILE && at_xfail=yes
6191 echo "#                             -*- compilation -*-" >> "$at_group_log"
6192 (
6193   $as_echo "16. exclude01.at:17: testing ..."
6194   $at_traceon
6195
6196
6197
6198
6199
6200   { $at_traceoff
6201 $as_echo "$at_srcdir/exclude01.at:20:
6202 mkdir v7
6203 (cd v7
6204 TEST_TAR_FORMAT=v7
6205 export TEST_TAR_FORMAT
6206 TAR_OPTIONS=\"-H v7\"
6207 export TAR_OPTIONS
6208 rm -rf *
6209
6210
6211 test -z "`sort < /dev/null 2>&1`" || exit 77
6212
6213
6214 rm -rf testdir
6215 mkdir -p testdir/dir1 testdir/dir2 testdir/dir3
6216 touch testdir/dir1/file1
6217 touch testdir/dir1/\\*
6218 touch testdir/dir2/file2
6219 touch testdir/dir2/\\*
6220 touch testdir/dir3/file3
6221 touch testdir/dir3/\\*
6222
6223 tar cf archive --exclude=testdir/dir1/\\* \\
6224                --no-wildcards \\
6225                --exclude=testdir/dir2/\\* \\
6226                --wildcards \\
6227                --exclude=testdir/dir3/\\* \\
6228                testdir
6229 tar tf archive | sort
6230
6231 echo \"NEXT\"
6232 tar cf archive testdir
6233 tar t \"testdir/dir1/*\" -f archive | sort
6234
6235 echo \"NEXT\"
6236 tar cf archive testdir/dir1
6237 tar t --no-wildcards \"testdir/dir1/*\" -f archive | sort
6238
6239 echo \"NEXT\"
6240 tar cf archive testdir
6241 tar t --wildcards \"testdir/dir1/*\" -f archive | sort
6242
6243 rm -rf testdir
6244 )"
6245 echo exclude01.at:20 >"$at_check_line_file"
6246
6247 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
6248    false; }; then
6249   ( $at_traceon;
6250 mkdir v7
6251 (cd v7
6252 TEST_TAR_FORMAT=v7
6253 export TEST_TAR_FORMAT
6254 TAR_OPTIONS="-H v7"
6255 export TAR_OPTIONS
6256 rm -rf *
6257
6258
6259 test -z "`sort < /dev/null 2>&1`" || exit 77
6260
6261
6262 rm -rf testdir
6263 mkdir -p testdir/dir1 testdir/dir2 testdir/dir3
6264 touch testdir/dir1/file1
6265 touch testdir/dir1/\*
6266 touch testdir/dir2/file2
6267 touch testdir/dir2/\*
6268 touch testdir/dir3/file3
6269 touch testdir/dir3/\*
6270
6271 tar cf archive --exclude=testdir/dir1/\* \
6272                --no-wildcards \
6273                --exclude=testdir/dir2/\* \
6274                --wildcards \
6275                --exclude=testdir/dir3/\* \
6276                testdir
6277 tar tf archive | sort
6278
6279 echo "NEXT"
6280 tar cf archive testdir
6281 tar t "testdir/dir1/*" -f archive | sort
6282
6283 echo "NEXT"
6284 tar cf archive testdir/dir1
6285 tar t --no-wildcards "testdir/dir1/*" -f archive | sort
6286
6287 echo "NEXT"
6288 tar cf archive testdir
6289 tar t --wildcards "testdir/dir1/*" -f archive | sort
6290
6291 rm -rf testdir
6292 ) ) >"$at_stdout" 2>"$at_stder1"
6293   at_func_filter_trace $?
6294 else
6295   ( :;
6296 mkdir v7
6297 (cd v7
6298 TEST_TAR_FORMAT=v7
6299 export TEST_TAR_FORMAT
6300 TAR_OPTIONS="-H v7"
6301 export TAR_OPTIONS
6302 rm -rf *
6303
6304
6305 test -z "`sort < /dev/null 2>&1`" || exit 77
6306
6307
6308 rm -rf testdir
6309 mkdir -p testdir/dir1 testdir/dir2 testdir/dir3
6310 touch testdir/dir1/file1
6311 touch testdir/dir1/\*
6312 touch testdir/dir2/file2
6313 touch testdir/dir2/\*
6314 touch testdir/dir3/file3
6315 touch testdir/dir3/\*
6316
6317 tar cf archive --exclude=testdir/dir1/\* \
6318                --no-wildcards \
6319                --exclude=testdir/dir2/\* \
6320                --wildcards \
6321                --exclude=testdir/dir3/\* \
6322                testdir
6323 tar tf archive | sort
6324
6325 echo "NEXT"
6326 tar cf archive testdir
6327 tar t "testdir/dir1/*" -f archive | sort
6328
6329 echo "NEXT"
6330 tar cf archive testdir/dir1
6331 tar t --no-wildcards "testdir/dir1/*" -f archive | sort
6332
6333 echo "NEXT"
6334 tar cf archive testdir
6335 tar t --wildcards "testdir/dir1/*" -f archive | sort
6336
6337 rm -rf testdir
6338 ) ) >"$at_stdout" 2>"$at_stderr"
6339 fi
6340 at_status=$?
6341 at_failed=false
6342 at_func_diff_devnull "$at_stderr" || at_failed=:
6343 echo >>"$at_stdout"; $as_echo "testdir/
6344 testdir/dir1/
6345 testdir/dir2/
6346 testdir/dir2/file2
6347 testdir/dir3/
6348 NEXT
6349 testdir/dir1/*
6350 NEXT
6351 testdir/dir1/*
6352 NEXT
6353 testdir/dir1/*
6354 testdir/dir1/file1
6355 " | \
6356   $at_diff - "$at_stdout" || at_failed=:
6357 at_func_check_status 0 $at_status "$at_srcdir/exclude01.at:20"
6358
6359 $at_failed && at_func_log_failure
6360 $at_traceon; }
6361
6362               { $at_traceoff
6363 $as_echo "$at_srcdir/exclude01.at:20:
6364 mkdir oldgnu
6365 (cd oldgnu
6366 TEST_TAR_FORMAT=oldgnu
6367 export TEST_TAR_FORMAT
6368 TAR_OPTIONS=\"-H oldgnu\"
6369 export TAR_OPTIONS
6370 rm -rf *
6371
6372
6373 test -z "`sort < /dev/null 2>&1`" || exit 77
6374
6375
6376 rm -rf testdir
6377 mkdir -p testdir/dir1 testdir/dir2 testdir/dir3
6378 touch testdir/dir1/file1
6379 touch testdir/dir1/\\*
6380 touch testdir/dir2/file2
6381 touch testdir/dir2/\\*
6382 touch testdir/dir3/file3
6383 touch testdir/dir3/\\*
6384
6385 tar cf archive --exclude=testdir/dir1/\\* \\
6386                --no-wildcards \\
6387                --exclude=testdir/dir2/\\* \\
6388                --wildcards \\
6389                --exclude=testdir/dir3/\\* \\
6390                testdir
6391 tar tf archive | sort
6392
6393 echo \"NEXT\"
6394 tar cf archive testdir
6395 tar t \"testdir/dir1/*\" -f archive | sort
6396
6397 echo \"NEXT\"
6398 tar cf archive testdir/dir1
6399 tar t --no-wildcards \"testdir/dir1/*\" -f archive | sort
6400
6401 echo \"NEXT\"
6402 tar cf archive testdir
6403 tar t --wildcards \"testdir/dir1/*\" -f archive | sort
6404
6405 rm -rf testdir
6406 )"
6407 echo exclude01.at:20 >"$at_check_line_file"
6408
6409 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
6410    false; }; then
6411   ( $at_traceon;
6412 mkdir oldgnu
6413 (cd oldgnu
6414 TEST_TAR_FORMAT=oldgnu
6415 export TEST_TAR_FORMAT
6416 TAR_OPTIONS="-H oldgnu"
6417 export TAR_OPTIONS
6418 rm -rf *
6419
6420
6421 test -z "`sort < /dev/null 2>&1`" || exit 77
6422
6423
6424 rm -rf testdir
6425 mkdir -p testdir/dir1 testdir/dir2 testdir/dir3
6426 touch testdir/dir1/file1
6427 touch testdir/dir1/\*
6428 touch testdir/dir2/file2
6429 touch testdir/dir2/\*
6430 touch testdir/dir3/file3
6431 touch testdir/dir3/\*
6432
6433 tar cf archive --exclude=testdir/dir1/\* \
6434                --no-wildcards \
6435                --exclude=testdir/dir2/\* \
6436                --wildcards \
6437                --exclude=testdir/dir3/\* \
6438                testdir
6439 tar tf archive | sort
6440
6441 echo "NEXT"
6442 tar cf archive testdir
6443 tar t "testdir/dir1/*" -f archive | sort
6444
6445 echo "NEXT"
6446 tar cf archive testdir/dir1
6447 tar t --no-wildcards "testdir/dir1/*" -f archive | sort
6448
6449 echo "NEXT"
6450 tar cf archive testdir
6451 tar t --wildcards "testdir/dir1/*" -f archive | sort
6452
6453 rm -rf testdir
6454 ) ) >"$at_stdout" 2>"$at_stder1"
6455   at_func_filter_trace $?
6456 else
6457   ( :;
6458 mkdir oldgnu
6459 (cd oldgnu
6460 TEST_TAR_FORMAT=oldgnu
6461 export TEST_TAR_FORMAT
6462 TAR_OPTIONS="-H oldgnu"
6463 export TAR_OPTIONS
6464 rm -rf *
6465
6466
6467 test -z "`sort < /dev/null 2>&1`" || exit 77
6468
6469
6470 rm -rf testdir
6471 mkdir -p testdir/dir1 testdir/dir2 testdir/dir3
6472 touch testdir/dir1/file1
6473 touch testdir/dir1/\*
6474 touch testdir/dir2/file2
6475 touch testdir/dir2/\*
6476 touch testdir/dir3/file3
6477 touch testdir/dir3/\*
6478
6479 tar cf archive --exclude=testdir/dir1/\* \
6480                --no-wildcards \
6481                --exclude=testdir/dir2/\* \
6482                --wildcards \
6483                --exclude=testdir/dir3/\* \
6484                testdir
6485 tar tf archive | sort
6486
6487 echo "NEXT"
6488 tar cf archive testdir
6489 tar t "testdir/dir1/*" -f archive | sort
6490
6491 echo "NEXT"
6492 tar cf archive testdir/dir1
6493 tar t --no-wildcards "testdir/dir1/*" -f archive | sort
6494
6495 echo "NEXT"
6496 tar cf archive testdir
6497 tar t --wildcards "testdir/dir1/*" -f archive | sort
6498
6499 rm -rf testdir
6500 ) ) >"$at_stdout" 2>"$at_stderr"
6501 fi
6502 at_status=$?
6503 at_failed=false
6504 at_func_diff_devnull "$at_stderr" || at_failed=:
6505 echo >>"$at_stdout"; $as_echo "testdir/
6506 testdir/dir1/
6507 testdir/dir2/
6508 testdir/dir2/file2
6509 testdir/dir3/
6510 NEXT
6511 testdir/dir1/*
6512 NEXT
6513 testdir/dir1/*
6514 NEXT
6515 testdir/dir1/*
6516 testdir/dir1/file1
6517 " | \
6518   $at_diff - "$at_stdout" || at_failed=:
6519 at_func_check_status 0 $at_status "$at_srcdir/exclude01.at:20"
6520
6521 $at_failed && at_func_log_failure
6522 $at_traceon; }
6523
6524               { $at_traceoff
6525 $as_echo "$at_srcdir/exclude01.at:20:
6526 mkdir ustar
6527 (cd ustar
6528 TEST_TAR_FORMAT=ustar
6529 export TEST_TAR_FORMAT
6530 TAR_OPTIONS=\"-H ustar\"
6531 export TAR_OPTIONS
6532 rm -rf *
6533
6534
6535 test -z "`sort < /dev/null 2>&1`" || exit 77
6536
6537
6538 rm -rf testdir
6539 mkdir -p testdir/dir1 testdir/dir2 testdir/dir3
6540 touch testdir/dir1/file1
6541 touch testdir/dir1/\\*
6542 touch testdir/dir2/file2
6543 touch testdir/dir2/\\*
6544 touch testdir/dir3/file3
6545 touch testdir/dir3/\\*
6546
6547 tar cf archive --exclude=testdir/dir1/\\* \\
6548                --no-wildcards \\
6549                --exclude=testdir/dir2/\\* \\
6550                --wildcards \\
6551                --exclude=testdir/dir3/\\* \\
6552                testdir
6553 tar tf archive | sort
6554
6555 echo \"NEXT\"
6556 tar cf archive testdir
6557 tar t \"testdir/dir1/*\" -f archive | sort
6558
6559 echo \"NEXT\"
6560 tar cf archive testdir/dir1
6561 tar t --no-wildcards \"testdir/dir1/*\" -f archive | sort
6562
6563 echo \"NEXT\"
6564 tar cf archive testdir
6565 tar t --wildcards \"testdir/dir1/*\" -f archive | sort
6566
6567 rm -rf testdir
6568 )"
6569 echo exclude01.at:20 >"$at_check_line_file"
6570
6571 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
6572    false; }; then
6573   ( $at_traceon;
6574 mkdir ustar
6575 (cd ustar
6576 TEST_TAR_FORMAT=ustar
6577 export TEST_TAR_FORMAT
6578 TAR_OPTIONS="-H ustar"
6579 export TAR_OPTIONS
6580 rm -rf *
6581
6582
6583 test -z "`sort < /dev/null 2>&1`" || exit 77
6584
6585
6586 rm -rf testdir
6587 mkdir -p testdir/dir1 testdir/dir2 testdir/dir3
6588 touch testdir/dir1/file1
6589 touch testdir/dir1/\*
6590 touch testdir/dir2/file2
6591 touch testdir/dir2/\*
6592 touch testdir/dir3/file3
6593 touch testdir/dir3/\*
6594
6595 tar cf archive --exclude=testdir/dir1/\* \
6596                --no-wildcards \
6597                --exclude=testdir/dir2/\* \
6598                --wildcards \
6599                --exclude=testdir/dir3/\* \
6600                testdir
6601 tar tf archive | sort
6602
6603 echo "NEXT"
6604 tar cf archive testdir
6605 tar t "testdir/dir1/*" -f archive | sort
6606
6607 echo "NEXT"
6608 tar cf archive testdir/dir1
6609 tar t --no-wildcards "testdir/dir1/*" -f archive | sort
6610
6611 echo "NEXT"
6612 tar cf archive testdir
6613 tar t --wildcards "testdir/dir1/*" -f archive | sort
6614
6615 rm -rf testdir
6616 ) ) >"$at_stdout" 2>"$at_stder1"
6617   at_func_filter_trace $?
6618 else
6619   ( :;
6620 mkdir ustar
6621 (cd ustar
6622 TEST_TAR_FORMAT=ustar
6623 export TEST_TAR_FORMAT
6624 TAR_OPTIONS="-H ustar"
6625 export TAR_OPTIONS
6626 rm -rf *
6627
6628
6629 test -z "`sort < /dev/null 2>&1`" || exit 77
6630
6631
6632 rm -rf testdir
6633 mkdir -p testdir/dir1 testdir/dir2 testdir/dir3
6634 touch testdir/dir1/file1
6635 touch testdir/dir1/\*
6636 touch testdir/dir2/file2
6637 touch testdir/dir2/\*
6638 touch testdir/dir3/file3
6639 touch testdir/dir3/\*
6640
6641 tar cf archive --exclude=testdir/dir1/\* \
6642                --no-wildcards \
6643                --exclude=testdir/dir2/\* \
6644                --wildcards \
6645                --exclude=testdir/dir3/\* \
6646                testdir
6647 tar tf archive | sort
6648
6649 echo "NEXT"
6650 tar cf archive testdir
6651 tar t "testdir/dir1/*" -f archive | sort
6652
6653 echo "NEXT"
6654 tar cf archive testdir/dir1
6655 tar t --no-wildcards "testdir/dir1/*" -f archive | sort
6656
6657 echo "NEXT"
6658 tar cf archive testdir
6659 tar t --wildcards "testdir/dir1/*" -f archive | sort
6660
6661 rm -rf testdir
6662 ) ) >"$at_stdout" 2>"$at_stderr"
6663 fi
6664 at_status=$?
6665 at_failed=false
6666 at_func_diff_devnull "$at_stderr" || at_failed=:
6667 echo >>"$at_stdout"; $as_echo "testdir/
6668 testdir/dir1/
6669 testdir/dir2/
6670 testdir/dir2/file2
6671 testdir/dir3/
6672 NEXT
6673 testdir/dir1/*
6674 NEXT
6675 testdir/dir1/*
6676 NEXT
6677 testdir/dir1/*
6678 testdir/dir1/file1
6679 " | \
6680   $at_diff - "$at_stdout" || at_failed=:
6681 at_func_check_status 0 $at_status "$at_srcdir/exclude01.at:20"
6682
6683 $at_failed && at_func_log_failure
6684 $at_traceon; }
6685
6686               { $at_traceoff
6687 $as_echo "$at_srcdir/exclude01.at:20:
6688 mkdir posix
6689 (cd posix
6690 TEST_TAR_FORMAT=posix
6691 export TEST_TAR_FORMAT
6692 TAR_OPTIONS=\"-H posix\"
6693 export TAR_OPTIONS
6694 rm -rf *
6695
6696
6697 test -z "`sort < /dev/null 2>&1`" || exit 77
6698
6699
6700 rm -rf testdir
6701 mkdir -p testdir/dir1 testdir/dir2 testdir/dir3
6702 touch testdir/dir1/file1
6703 touch testdir/dir1/\\*
6704 touch testdir/dir2/file2
6705 touch testdir/dir2/\\*
6706 touch testdir/dir3/file3
6707 touch testdir/dir3/\\*
6708
6709 tar cf archive --exclude=testdir/dir1/\\* \\
6710                --no-wildcards \\
6711                --exclude=testdir/dir2/\\* \\
6712                --wildcards \\
6713                --exclude=testdir/dir3/\\* \\
6714                testdir
6715 tar tf archive | sort
6716
6717 echo \"NEXT\"
6718 tar cf archive testdir
6719 tar t \"testdir/dir1/*\" -f archive | sort
6720
6721 echo \"NEXT\"
6722 tar cf archive testdir/dir1
6723 tar t --no-wildcards \"testdir/dir1/*\" -f archive | sort
6724
6725 echo \"NEXT\"
6726 tar cf archive testdir
6727 tar t --wildcards \"testdir/dir1/*\" -f archive | sort
6728
6729 rm -rf testdir
6730 )"
6731 echo exclude01.at:20 >"$at_check_line_file"
6732
6733 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
6734    false; }; then
6735   ( $at_traceon;
6736 mkdir posix
6737 (cd posix
6738 TEST_TAR_FORMAT=posix
6739 export TEST_TAR_FORMAT
6740 TAR_OPTIONS="-H posix"
6741 export TAR_OPTIONS
6742 rm -rf *
6743
6744
6745 test -z "`sort < /dev/null 2>&1`" || exit 77
6746
6747
6748 rm -rf testdir
6749 mkdir -p testdir/dir1 testdir/dir2 testdir/dir3
6750 touch testdir/dir1/file1
6751 touch testdir/dir1/\*
6752 touch testdir/dir2/file2
6753 touch testdir/dir2/\*
6754 touch testdir/dir3/file3
6755 touch testdir/dir3/\*
6756
6757 tar cf archive --exclude=testdir/dir1/\* \
6758                --no-wildcards \
6759                --exclude=testdir/dir2/\* \
6760                --wildcards \
6761                --exclude=testdir/dir3/\* \
6762                testdir
6763 tar tf archive | sort
6764
6765 echo "NEXT"
6766 tar cf archive testdir
6767 tar t "testdir/dir1/*" -f archive | sort
6768
6769 echo "NEXT"
6770 tar cf archive testdir/dir1
6771 tar t --no-wildcards "testdir/dir1/*" -f archive | sort
6772
6773 echo "NEXT"
6774 tar cf archive testdir
6775 tar t --wildcards "testdir/dir1/*" -f archive | sort
6776
6777 rm -rf testdir
6778 ) ) >"$at_stdout" 2>"$at_stder1"
6779   at_func_filter_trace $?
6780 else
6781   ( :;
6782 mkdir posix
6783 (cd posix
6784 TEST_TAR_FORMAT=posix
6785 export TEST_TAR_FORMAT
6786 TAR_OPTIONS="-H posix"
6787 export TAR_OPTIONS
6788 rm -rf *
6789
6790
6791 test -z "`sort < /dev/null 2>&1`" || exit 77
6792
6793
6794 rm -rf testdir
6795 mkdir -p testdir/dir1 testdir/dir2 testdir/dir3
6796 touch testdir/dir1/file1
6797 touch testdir/dir1/\*
6798 touch testdir/dir2/file2
6799 touch testdir/dir2/\*
6800 touch testdir/dir3/file3
6801 touch testdir/dir3/\*
6802
6803 tar cf archive --exclude=testdir/dir1/\* \
6804                --no-wildcards \
6805                --exclude=testdir/dir2/\* \
6806                --wildcards \
6807                --exclude=testdir/dir3/\* \
6808                testdir
6809 tar tf archive | sort
6810
6811 echo "NEXT"
6812 tar cf archive testdir
6813 tar t "testdir/dir1/*" -f archive | sort
6814
6815 echo "NEXT"
6816 tar cf archive testdir/dir1
6817 tar t --no-wildcards "testdir/dir1/*" -f archive | sort
6818
6819 echo "NEXT"
6820 tar cf archive testdir
6821 tar t --wildcards "testdir/dir1/*" -f archive | sort
6822
6823 rm -rf testdir
6824 ) ) >"$at_stdout" 2>"$at_stderr"
6825 fi
6826 at_status=$?
6827 at_failed=false
6828 at_func_diff_devnull "$at_stderr" || at_failed=:
6829 echo >>"$at_stdout"; $as_echo "testdir/
6830 testdir/dir1/
6831 testdir/dir2/
6832 testdir/dir2/file2
6833 testdir/dir3/
6834 NEXT
6835 testdir/dir1/*
6836 NEXT
6837 testdir/dir1/*
6838 NEXT
6839 testdir/dir1/*
6840 testdir/dir1/file1
6841 " | \
6842   $at_diff - "$at_stdout" || at_failed=:
6843 at_func_check_status 0 $at_status "$at_srcdir/exclude01.at:20"
6844
6845 $at_failed && at_func_log_failure
6846 $at_traceon; }
6847
6848               { $at_traceoff
6849 $as_echo "$at_srcdir/exclude01.at:20:
6850 mkdir gnu
6851 (cd gnu
6852 TEST_TAR_FORMAT=gnu
6853 export TEST_TAR_FORMAT
6854 TAR_OPTIONS=\"-H gnu\"
6855 export TAR_OPTIONS
6856 rm -rf *
6857
6858
6859 test -z "`sort < /dev/null 2>&1`" || exit 77
6860
6861
6862 rm -rf testdir
6863 mkdir -p testdir/dir1 testdir/dir2 testdir/dir3
6864 touch testdir/dir1/file1
6865 touch testdir/dir1/\\*
6866 touch testdir/dir2/file2
6867 touch testdir/dir2/\\*
6868 touch testdir/dir3/file3
6869 touch testdir/dir3/\\*
6870
6871 tar cf archive --exclude=testdir/dir1/\\* \\
6872                --no-wildcards \\
6873                --exclude=testdir/dir2/\\* \\
6874                --wildcards \\
6875                --exclude=testdir/dir3/\\* \\
6876                testdir
6877 tar tf archive | sort
6878
6879 echo \"NEXT\"
6880 tar cf archive testdir
6881 tar t \"testdir/dir1/*\" -f archive | sort
6882
6883 echo \"NEXT\"
6884 tar cf archive testdir/dir1
6885 tar t --no-wildcards \"testdir/dir1/*\" -f archive | sort
6886
6887 echo \"NEXT\"
6888 tar cf archive testdir
6889 tar t --wildcards \"testdir/dir1/*\" -f archive | sort
6890
6891 rm -rf testdir
6892 )"
6893 echo exclude01.at:20 >"$at_check_line_file"
6894
6895 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
6896    false; }; then
6897   ( $at_traceon;
6898 mkdir gnu
6899 (cd gnu
6900 TEST_TAR_FORMAT=gnu
6901 export TEST_TAR_FORMAT
6902 TAR_OPTIONS="-H gnu"
6903 export TAR_OPTIONS
6904 rm -rf *
6905
6906
6907 test -z "`sort < /dev/null 2>&1`" || exit 77
6908
6909
6910 rm -rf testdir
6911 mkdir -p testdir/dir1 testdir/dir2 testdir/dir3
6912 touch testdir/dir1/file1
6913 touch testdir/dir1/\*
6914 touch testdir/dir2/file2
6915 touch testdir/dir2/\*
6916 touch testdir/dir3/file3
6917 touch testdir/dir3/\*
6918
6919 tar cf archive --exclude=testdir/dir1/\* \
6920                --no-wildcards \
6921                --exclude=testdir/dir2/\* \
6922                --wildcards \
6923                --exclude=testdir/dir3/\* \
6924                testdir
6925 tar tf archive | sort
6926
6927 echo "NEXT"
6928 tar cf archive testdir
6929 tar t "testdir/dir1/*" -f archive | sort
6930
6931 echo "NEXT"
6932 tar cf archive testdir/dir1
6933 tar t --no-wildcards "testdir/dir1/*" -f archive | sort
6934
6935 echo "NEXT"
6936 tar cf archive testdir
6937 tar t --wildcards "testdir/dir1/*" -f archive | sort
6938
6939 rm -rf testdir
6940 ) ) >"$at_stdout" 2>"$at_stder1"
6941   at_func_filter_trace $?
6942 else
6943   ( :;
6944 mkdir gnu
6945 (cd gnu
6946 TEST_TAR_FORMAT=gnu
6947 export TEST_TAR_FORMAT
6948 TAR_OPTIONS="-H gnu"
6949 export TAR_OPTIONS
6950 rm -rf *
6951
6952
6953 test -z "`sort < /dev/null 2>&1`" || exit 77
6954
6955
6956 rm -rf testdir
6957 mkdir -p testdir/dir1 testdir/dir2 testdir/dir3
6958 touch testdir/dir1/file1
6959 touch testdir/dir1/\*
6960 touch testdir/dir2/file2
6961 touch testdir/dir2/\*
6962 touch testdir/dir3/file3
6963 touch testdir/dir3/\*
6964
6965 tar cf archive --exclude=testdir/dir1/\* \
6966                --no-wildcards \
6967                --exclude=testdir/dir2/\* \
6968                --wildcards \
6969                --exclude=testdir/dir3/\* \
6970                testdir
6971 tar tf archive | sort
6972
6973 echo "NEXT"
6974 tar cf archive testdir
6975 tar t "testdir/dir1/*" -f archive | sort
6976
6977 echo "NEXT"
6978 tar cf archive testdir/dir1
6979 tar t --no-wildcards "testdir/dir1/*" -f archive | sort
6980
6981 echo "NEXT"
6982 tar cf archive testdir
6983 tar t --wildcards "testdir/dir1/*" -f archive | sort
6984
6985 rm -rf testdir
6986 ) ) >"$at_stdout" 2>"$at_stderr"
6987 fi
6988 at_status=$?
6989 at_failed=false
6990 at_func_diff_devnull "$at_stderr" || at_failed=:
6991 echo >>"$at_stdout"; $as_echo "testdir/
6992 testdir/dir1/
6993 testdir/dir2/
6994 testdir/dir2/file2
6995 testdir/dir3/
6996 NEXT
6997 testdir/dir1/*
6998 NEXT
6999 testdir/dir1/*
7000 NEXT
7001 testdir/dir1/*
7002 testdir/dir1/file1
7003 " | \
7004   $at_diff - "$at_stdout" || at_failed=:
7005 at_func_check_status 0 $at_status "$at_srcdir/exclude01.at:20"
7006
7007 $at_failed && at_func_log_failure
7008 $at_traceon; }
7009
7010
7011
7012
7013   $at_traceoff
7014   $at_times_p && times >"$at_times_file"
7015 ) 5>&1 2>&1 | eval $at_tee_pipe
7016 at_status=`cat "$at_status_file"`
7017 #AT_STOP_16
7018 #AT_START_17
7019 # 17. exclude02.at:17: exclude: anchoring
7020 at_setup_line='exclude02.at:17'
7021 at_desc="exclude: anchoring"
7022 $at_quiet $as_echo_n " 17: $at_desc                             "
7023 at_xfail=no
7024       test -f $XFAILFILE && at_xfail=yes
7025 echo "#                             -*- compilation -*-" >> "$at_group_log"
7026 (
7027   $as_echo "17. exclude02.at:17: testing ..."
7028   $at_traceon
7029
7030
7031
7032
7033
7034   { $at_traceoff
7035 $as_echo "$at_srcdir/exclude02.at:20:
7036 mkdir v7
7037 (cd v7
7038 TEST_TAR_FORMAT=v7
7039 export TEST_TAR_FORMAT
7040 TAR_OPTIONS=\"-H v7\"
7041 export TAR_OPTIONS
7042 rm -rf *
7043
7044
7045 test -z "`sort < /dev/null 2>&1`" || exit 77
7046
7047
7048 rm -rf testdir
7049 mkdir -p testdir
7050 touch file1.txt
7051 touch testdir/file1.txt
7052 touch testdir/file2
7053
7054 tar cf archive --exclude=\"file1.txt\" \\
7055                testdir
7056 tar tf archive | sort
7057
7058 echo \"SUB 1\"
7059 tar cf archive --no-anchored \\
7060                --exclude=\"file1.txt\" \\
7061                testdir
7062 tar tf archive | sort
7063
7064 echo \"SUB 2\"
7065 tar cf archive --anchored \\
7066                --exclude=\"file1.txt\" \\
7067                testdir
7068 tar tf archive | sort
7069
7070 echo \"SUB 3\"
7071 tar cf archive testdir file1.txt
7072 tar t \"file1.txt\" -f archive | sort
7073
7074 echo \"SUB 4\"
7075 tar t --no-anchored \"file1.txt\" -f archive | sort
7076
7077 echo \"SUB 5\"
7078 tar t --anchored \"file1.txt\" -f archive | sort
7079
7080 rm -rf testdir file1.txt
7081
7082 )"
7083 echo exclude02.at:20 >"$at_check_line_file"
7084
7085 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
7086    false; }; then
7087   ( $at_traceon;
7088 mkdir v7
7089 (cd v7
7090 TEST_TAR_FORMAT=v7
7091 export TEST_TAR_FORMAT
7092 TAR_OPTIONS="-H v7"
7093 export TAR_OPTIONS
7094 rm -rf *
7095
7096
7097 test -z "`sort < /dev/null 2>&1`" || exit 77
7098
7099
7100 rm -rf testdir
7101 mkdir -p testdir
7102 touch file1.txt
7103 touch testdir/file1.txt
7104 touch testdir/file2
7105
7106 tar cf archive --exclude="file1.txt" \
7107                testdir
7108 tar tf archive | sort
7109
7110 echo "SUB 1"
7111 tar cf archive --no-anchored \
7112                --exclude="file1.txt" \
7113                testdir
7114 tar tf archive | sort
7115
7116 echo "SUB 2"
7117 tar cf archive --anchored \
7118                --exclude="file1.txt" \
7119                testdir
7120 tar tf archive | sort
7121
7122 echo "SUB 3"
7123 tar cf archive testdir file1.txt
7124 tar t "file1.txt" -f archive | sort
7125
7126 echo "SUB 4"
7127 tar t --no-anchored "file1.txt" -f archive | sort
7128
7129 echo "SUB 5"
7130 tar t --anchored "file1.txt" -f archive | sort
7131
7132 rm -rf testdir file1.txt
7133
7134 ) ) >"$at_stdout" 2>"$at_stder1"
7135   at_func_filter_trace $?
7136 else
7137   ( :;
7138 mkdir v7
7139 (cd v7
7140 TEST_TAR_FORMAT=v7
7141 export TEST_TAR_FORMAT
7142 TAR_OPTIONS="-H v7"
7143 export TAR_OPTIONS
7144 rm -rf *
7145
7146
7147 test -z "`sort < /dev/null 2>&1`" || exit 77
7148
7149
7150 rm -rf testdir
7151 mkdir -p testdir
7152 touch file1.txt
7153 touch testdir/file1.txt
7154 touch testdir/file2
7155
7156 tar cf archive --exclude="file1.txt" \
7157                testdir
7158 tar tf archive | sort
7159
7160 echo "SUB 1"
7161 tar cf archive --no-anchored \
7162                --exclude="file1.txt" \
7163                testdir
7164 tar tf archive | sort
7165
7166 echo "SUB 2"
7167 tar cf archive --anchored \
7168                --exclude="file1.txt" \
7169                testdir
7170 tar tf archive | sort
7171
7172 echo "SUB 3"
7173 tar cf archive testdir file1.txt
7174 tar t "file1.txt" -f archive | sort
7175
7176 echo "SUB 4"
7177 tar t --no-anchored "file1.txt" -f archive | sort
7178
7179 echo "SUB 5"
7180 tar t --anchored "file1.txt" -f archive | sort
7181
7182 rm -rf testdir file1.txt
7183
7184 ) ) >"$at_stdout" 2>"$at_stderr"
7185 fi
7186 at_status=$?
7187 at_failed=false
7188 at_func_diff_devnull "$at_stderr" || at_failed=:
7189 echo >>"$at_stdout"; $as_echo "testdir/
7190 testdir/file2
7191 SUB 1
7192 testdir/
7193 testdir/file2
7194 SUB 2
7195 testdir/
7196 testdir/file1.txt
7197 testdir/file2
7198 SUB 3
7199 file1.txt
7200 SUB 4
7201 file1.txt
7202 testdir/file1.txt
7203 SUB 5
7204 file1.txt
7205 " | \
7206   $at_diff - "$at_stdout" || at_failed=:
7207 at_func_check_status 0 $at_status "$at_srcdir/exclude02.at:20"
7208
7209 $at_failed && at_func_log_failure
7210 $at_traceon; }
7211
7212               { $at_traceoff
7213 $as_echo "$at_srcdir/exclude02.at:20:
7214 mkdir oldgnu
7215 (cd oldgnu
7216 TEST_TAR_FORMAT=oldgnu
7217 export TEST_TAR_FORMAT
7218 TAR_OPTIONS=\"-H oldgnu\"
7219 export TAR_OPTIONS
7220 rm -rf *
7221
7222
7223 test -z "`sort < /dev/null 2>&1`" || exit 77
7224
7225
7226 rm -rf testdir
7227 mkdir -p testdir
7228 touch file1.txt
7229 touch testdir/file1.txt
7230 touch testdir/file2
7231
7232 tar cf archive --exclude=\"file1.txt\" \\
7233                testdir
7234 tar tf archive | sort
7235
7236 echo \"SUB 1\"
7237 tar cf archive --no-anchored \\
7238                --exclude=\"file1.txt\" \\
7239                testdir
7240 tar tf archive | sort
7241
7242 echo \"SUB 2\"
7243 tar cf archive --anchored \\
7244                --exclude=\"file1.txt\" \\
7245                testdir
7246 tar tf archive | sort
7247
7248 echo \"SUB 3\"
7249 tar cf archive testdir file1.txt
7250 tar t \"file1.txt\" -f archive | sort
7251
7252 echo \"SUB 4\"
7253 tar t --no-anchored \"file1.txt\" -f archive | sort
7254
7255 echo \"SUB 5\"
7256 tar t --anchored \"file1.txt\" -f archive | sort
7257
7258 rm -rf testdir file1.txt
7259
7260 )"
7261 echo exclude02.at:20 >"$at_check_line_file"
7262
7263 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
7264    false; }; then
7265   ( $at_traceon;
7266 mkdir oldgnu
7267 (cd oldgnu
7268 TEST_TAR_FORMAT=oldgnu
7269 export TEST_TAR_FORMAT
7270 TAR_OPTIONS="-H oldgnu"
7271 export TAR_OPTIONS
7272 rm -rf *
7273
7274
7275 test -z "`sort < /dev/null 2>&1`" || exit 77
7276
7277
7278 rm -rf testdir
7279 mkdir -p testdir
7280 touch file1.txt
7281 touch testdir/file1.txt
7282 touch testdir/file2
7283
7284 tar cf archive --exclude="file1.txt" \
7285                testdir
7286 tar tf archive | sort
7287
7288 echo "SUB 1"
7289 tar cf archive --no-anchored \
7290                --exclude="file1.txt" \
7291                testdir
7292 tar tf archive | sort
7293
7294 echo "SUB 2"
7295 tar cf archive --anchored \
7296                --exclude="file1.txt" \
7297                testdir
7298 tar tf archive | sort
7299
7300 echo "SUB 3"
7301 tar cf archive testdir file1.txt
7302 tar t "file1.txt" -f archive | sort
7303
7304 echo "SUB 4"
7305 tar t --no-anchored "file1.txt" -f archive | sort
7306
7307 echo "SUB 5"
7308 tar t --anchored "file1.txt" -f archive | sort
7309
7310 rm -rf testdir file1.txt
7311
7312 ) ) >"$at_stdout" 2>"$at_stder1"
7313   at_func_filter_trace $?
7314 else
7315   ( :;
7316 mkdir oldgnu
7317 (cd oldgnu
7318 TEST_TAR_FORMAT=oldgnu
7319 export TEST_TAR_FORMAT
7320 TAR_OPTIONS="-H oldgnu"
7321 export TAR_OPTIONS
7322 rm -rf *
7323
7324
7325 test -z "`sort < /dev/null 2>&1`" || exit 77
7326
7327
7328 rm -rf testdir
7329 mkdir -p testdir
7330 touch file1.txt
7331 touch testdir/file1.txt
7332 touch testdir/file2
7333
7334 tar cf archive --exclude="file1.txt" \
7335                testdir
7336 tar tf archive | sort
7337
7338 echo "SUB 1"
7339 tar cf archive --no-anchored \
7340                --exclude="file1.txt" \
7341                testdir
7342 tar tf archive | sort
7343
7344 echo "SUB 2"
7345 tar cf archive --anchored \
7346                --exclude="file1.txt" \
7347                testdir
7348 tar tf archive | sort
7349
7350 echo "SUB 3"
7351 tar cf archive testdir file1.txt
7352 tar t "file1.txt" -f archive | sort
7353
7354 echo "SUB 4"
7355 tar t --no-anchored "file1.txt" -f archive | sort
7356
7357 echo "SUB 5"
7358 tar t --anchored "file1.txt" -f archive | sort
7359
7360 rm -rf testdir file1.txt
7361
7362 ) ) >"$at_stdout" 2>"$at_stderr"
7363 fi
7364 at_status=$?
7365 at_failed=false
7366 at_func_diff_devnull "$at_stderr" || at_failed=:
7367 echo >>"$at_stdout"; $as_echo "testdir/
7368 testdir/file2
7369 SUB 1
7370 testdir/
7371 testdir/file2
7372 SUB 2
7373 testdir/
7374 testdir/file1.txt
7375 testdir/file2
7376 SUB 3
7377 file1.txt
7378 SUB 4
7379 file1.txt
7380 testdir/file1.txt
7381 SUB 5
7382 file1.txt
7383 " | \
7384   $at_diff - "$at_stdout" || at_failed=:
7385 at_func_check_status 0 $at_status "$at_srcdir/exclude02.at:20"
7386
7387 $at_failed && at_func_log_failure
7388 $at_traceon; }
7389
7390               { $at_traceoff
7391 $as_echo "$at_srcdir/exclude02.at:20:
7392 mkdir ustar
7393 (cd ustar
7394 TEST_TAR_FORMAT=ustar
7395 export TEST_TAR_FORMAT
7396 TAR_OPTIONS=\"-H ustar\"
7397 export TAR_OPTIONS
7398 rm -rf *
7399
7400
7401 test -z "`sort < /dev/null 2>&1`" || exit 77
7402
7403
7404 rm -rf testdir
7405 mkdir -p testdir
7406 touch file1.txt
7407 touch testdir/file1.txt
7408 touch testdir/file2
7409
7410 tar cf archive --exclude=\"file1.txt\" \\
7411                testdir
7412 tar tf archive | sort
7413
7414 echo \"SUB 1\"
7415 tar cf archive --no-anchored \\
7416                --exclude=\"file1.txt\" \\
7417                testdir
7418 tar tf archive | sort
7419
7420 echo \"SUB 2\"
7421 tar cf archive --anchored \\
7422                --exclude=\"file1.txt\" \\
7423                testdir
7424 tar tf archive | sort
7425
7426 echo \"SUB 3\"
7427 tar cf archive testdir file1.txt
7428 tar t \"file1.txt\" -f archive | sort
7429
7430 echo \"SUB 4\"
7431 tar t --no-anchored \"file1.txt\" -f archive | sort
7432
7433 echo \"SUB 5\"
7434 tar t --anchored \"file1.txt\" -f archive | sort
7435
7436 rm -rf testdir file1.txt
7437
7438 )"
7439 echo exclude02.at:20 >"$at_check_line_file"
7440
7441 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
7442    false; }; then
7443   ( $at_traceon;
7444 mkdir ustar
7445 (cd ustar
7446 TEST_TAR_FORMAT=ustar
7447 export TEST_TAR_FORMAT
7448 TAR_OPTIONS="-H ustar"
7449 export TAR_OPTIONS
7450 rm -rf *
7451
7452
7453 test -z "`sort < /dev/null 2>&1`" || exit 77
7454
7455
7456 rm -rf testdir
7457 mkdir -p testdir
7458 touch file1.txt
7459 touch testdir/file1.txt
7460 touch testdir/file2
7461
7462 tar cf archive --exclude="file1.txt" \
7463                testdir
7464 tar tf archive | sort
7465
7466 echo "SUB 1"
7467 tar cf archive --no-anchored \
7468                --exclude="file1.txt" \
7469                testdir
7470 tar tf archive | sort
7471
7472 echo "SUB 2"
7473 tar cf archive --anchored \
7474                --exclude="file1.txt" \
7475                testdir
7476 tar tf archive | sort
7477
7478 echo "SUB 3"
7479 tar cf archive testdir file1.txt
7480 tar t "file1.txt" -f archive | sort
7481
7482 echo "SUB 4"
7483 tar t --no-anchored "file1.txt" -f archive | sort
7484
7485 echo "SUB 5"
7486 tar t --anchored "file1.txt" -f archive | sort
7487
7488 rm -rf testdir file1.txt
7489
7490 ) ) >"$at_stdout" 2>"$at_stder1"
7491   at_func_filter_trace $?
7492 else
7493   ( :;
7494 mkdir ustar
7495 (cd ustar
7496 TEST_TAR_FORMAT=ustar
7497 export TEST_TAR_FORMAT
7498 TAR_OPTIONS="-H ustar"
7499 export TAR_OPTIONS
7500 rm -rf *
7501
7502
7503 test -z "`sort < /dev/null 2>&1`" || exit 77
7504
7505
7506 rm -rf testdir
7507 mkdir -p testdir
7508 touch file1.txt
7509 touch testdir/file1.txt
7510 touch testdir/file2
7511
7512 tar cf archive --exclude="file1.txt" \
7513                testdir
7514 tar tf archive | sort
7515
7516 echo "SUB 1"
7517 tar cf archive --no-anchored \
7518                --exclude="file1.txt" \
7519                testdir
7520 tar tf archive | sort
7521
7522 echo "SUB 2"
7523 tar cf archive --anchored \
7524                --exclude="file1.txt" \
7525                testdir
7526 tar tf archive | sort
7527
7528 echo "SUB 3"
7529 tar cf archive testdir file1.txt
7530 tar t "file1.txt" -f archive | sort
7531
7532 echo "SUB 4"
7533 tar t --no-anchored "file1.txt" -f archive | sort
7534
7535 echo "SUB 5"
7536 tar t --anchored "file1.txt" -f archive | sort
7537
7538 rm -rf testdir file1.txt
7539
7540 ) ) >"$at_stdout" 2>"$at_stderr"
7541 fi
7542 at_status=$?
7543 at_failed=false
7544 at_func_diff_devnull "$at_stderr" || at_failed=:
7545 echo >>"$at_stdout"; $as_echo "testdir/
7546 testdir/file2
7547 SUB 1
7548 testdir/
7549 testdir/file2
7550 SUB 2
7551 testdir/
7552 testdir/file1.txt
7553 testdir/file2
7554 SUB 3
7555 file1.txt
7556 SUB 4
7557 file1.txt
7558 testdir/file1.txt
7559 SUB 5
7560 file1.txt
7561 " | \
7562   $at_diff - "$at_stdout" || at_failed=:
7563 at_func_check_status 0 $at_status "$at_srcdir/exclude02.at:20"
7564
7565 $at_failed && at_func_log_failure
7566 $at_traceon; }
7567
7568               { $at_traceoff
7569 $as_echo "$at_srcdir/exclude02.at:20:
7570 mkdir posix
7571 (cd posix
7572 TEST_TAR_FORMAT=posix
7573 export TEST_TAR_FORMAT
7574 TAR_OPTIONS=\"-H posix\"
7575 export TAR_OPTIONS
7576 rm -rf *
7577
7578
7579 test -z "`sort < /dev/null 2>&1`" || exit 77
7580
7581
7582 rm -rf testdir
7583 mkdir -p testdir
7584 touch file1.txt
7585 touch testdir/file1.txt
7586 touch testdir/file2
7587
7588 tar cf archive --exclude=\"file1.txt\" \\
7589                testdir
7590 tar tf archive | sort
7591
7592 echo \"SUB 1\"
7593 tar cf archive --no-anchored \\
7594                --exclude=\"file1.txt\" \\
7595                testdir
7596 tar tf archive | sort
7597
7598 echo \"SUB 2\"
7599 tar cf archive --anchored \\
7600                --exclude=\"file1.txt\" \\
7601                testdir
7602 tar tf archive | sort
7603
7604 echo \"SUB 3\"
7605 tar cf archive testdir file1.txt
7606 tar t \"file1.txt\" -f archive | sort
7607
7608 echo \"SUB 4\"
7609 tar t --no-anchored \"file1.txt\" -f archive | sort
7610
7611 echo \"SUB 5\"
7612 tar t --anchored \"file1.txt\" -f archive | sort
7613
7614 rm -rf testdir file1.txt
7615
7616 )"
7617 echo exclude02.at:20 >"$at_check_line_file"
7618
7619 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
7620    false; }; then
7621   ( $at_traceon;
7622 mkdir posix
7623 (cd posix
7624 TEST_TAR_FORMAT=posix
7625 export TEST_TAR_FORMAT
7626 TAR_OPTIONS="-H posix"
7627 export TAR_OPTIONS
7628 rm -rf *
7629
7630
7631 test -z "`sort < /dev/null 2>&1`" || exit 77
7632
7633
7634 rm -rf testdir
7635 mkdir -p testdir
7636 touch file1.txt
7637 touch testdir/file1.txt
7638 touch testdir/file2
7639
7640 tar cf archive --exclude="file1.txt" \
7641                testdir
7642 tar tf archive | sort
7643
7644 echo "SUB 1"
7645 tar cf archive --no-anchored \
7646                --exclude="file1.txt" \
7647                testdir
7648 tar tf archive | sort
7649
7650 echo "SUB 2"
7651 tar cf archive --anchored \
7652                --exclude="file1.txt" \
7653                testdir
7654 tar tf archive | sort
7655
7656 echo "SUB 3"
7657 tar cf archive testdir file1.txt
7658 tar t "file1.txt" -f archive | sort
7659
7660 echo "SUB 4"
7661 tar t --no-anchored "file1.txt" -f archive | sort
7662
7663 echo "SUB 5"
7664 tar t --anchored "file1.txt" -f archive | sort
7665
7666 rm -rf testdir file1.txt
7667
7668 ) ) >"$at_stdout" 2>"$at_stder1"
7669   at_func_filter_trace $?
7670 else
7671   ( :;
7672 mkdir posix
7673 (cd posix
7674 TEST_TAR_FORMAT=posix
7675 export TEST_TAR_FORMAT
7676 TAR_OPTIONS="-H posix"
7677 export TAR_OPTIONS
7678 rm -rf *
7679
7680
7681 test -z "`sort < /dev/null 2>&1`" || exit 77
7682
7683
7684 rm -rf testdir
7685 mkdir -p testdir
7686 touch file1.txt
7687 touch testdir/file1.txt
7688 touch testdir/file2
7689
7690 tar cf archive --exclude="file1.txt" \
7691                testdir
7692 tar tf archive | sort
7693
7694 echo "SUB 1"
7695 tar cf archive --no-anchored \
7696                --exclude="file1.txt" \
7697                testdir
7698 tar tf archive | sort
7699
7700 echo "SUB 2"
7701 tar cf archive --anchored \
7702                --exclude="file1.txt" \
7703                testdir
7704 tar tf archive | sort
7705
7706 echo "SUB 3"
7707 tar cf archive testdir file1.txt
7708 tar t "file1.txt" -f archive | sort
7709
7710 echo "SUB 4"
7711 tar t --no-anchored "file1.txt" -f archive | sort
7712
7713 echo "SUB 5"
7714 tar t --anchored "file1.txt" -f archive | sort
7715
7716 rm -rf testdir file1.txt
7717
7718 ) ) >"$at_stdout" 2>"$at_stderr"
7719 fi
7720 at_status=$?
7721 at_failed=false
7722 at_func_diff_devnull "$at_stderr" || at_failed=:
7723 echo >>"$at_stdout"; $as_echo "testdir/
7724 testdir/file2
7725 SUB 1
7726 testdir/
7727 testdir/file2
7728 SUB 2
7729 testdir/
7730 testdir/file1.txt
7731 testdir/file2
7732 SUB 3
7733 file1.txt
7734 SUB 4
7735 file1.txt
7736 testdir/file1.txt
7737 SUB 5
7738 file1.txt
7739 " | \
7740   $at_diff - "$at_stdout" || at_failed=:
7741 at_func_check_status 0 $at_status "$at_srcdir/exclude02.at:20"
7742
7743 $at_failed && at_func_log_failure
7744 $at_traceon; }
7745
7746               { $at_traceoff
7747 $as_echo "$at_srcdir/exclude02.at:20:
7748 mkdir gnu
7749 (cd gnu
7750 TEST_TAR_FORMAT=gnu
7751 export TEST_TAR_FORMAT
7752 TAR_OPTIONS=\"-H gnu\"
7753 export TAR_OPTIONS
7754 rm -rf *
7755
7756
7757 test -z "`sort < /dev/null 2>&1`" || exit 77
7758
7759
7760 rm -rf testdir
7761 mkdir -p testdir
7762 touch file1.txt
7763 touch testdir/file1.txt
7764 touch testdir/file2
7765
7766 tar cf archive --exclude=\"file1.txt\" \\
7767                testdir
7768 tar tf archive | sort
7769
7770 echo \"SUB 1\"
7771 tar cf archive --no-anchored \\
7772                --exclude=\"file1.txt\" \\
7773                testdir
7774 tar tf archive | sort
7775
7776 echo \"SUB 2\"
7777 tar cf archive --anchored \\
7778                --exclude=\"file1.txt\" \\
7779                testdir
7780 tar tf archive | sort
7781
7782 echo \"SUB 3\"
7783 tar cf archive testdir file1.txt
7784 tar t \"file1.txt\" -f archive | sort
7785
7786 echo \"SUB 4\"
7787 tar t --no-anchored \"file1.txt\" -f archive | sort
7788
7789 echo \"SUB 5\"
7790 tar t --anchored \"file1.txt\" -f archive | sort
7791
7792 rm -rf testdir file1.txt
7793
7794 )"
7795 echo exclude02.at:20 >"$at_check_line_file"
7796
7797 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
7798    false; }; then
7799   ( $at_traceon;
7800 mkdir gnu
7801 (cd gnu
7802 TEST_TAR_FORMAT=gnu
7803 export TEST_TAR_FORMAT
7804 TAR_OPTIONS="-H gnu"
7805 export TAR_OPTIONS
7806 rm -rf *
7807
7808
7809 test -z "`sort < /dev/null 2>&1`" || exit 77
7810
7811
7812 rm -rf testdir
7813 mkdir -p testdir
7814 touch file1.txt
7815 touch testdir/file1.txt
7816 touch testdir/file2
7817
7818 tar cf archive --exclude="file1.txt" \
7819                testdir
7820 tar tf archive | sort
7821
7822 echo "SUB 1"
7823 tar cf archive --no-anchored \
7824                --exclude="file1.txt" \
7825                testdir
7826 tar tf archive | sort
7827
7828 echo "SUB 2"
7829 tar cf archive --anchored \
7830                --exclude="file1.txt" \
7831                testdir
7832 tar tf archive | sort
7833
7834 echo "SUB 3"
7835 tar cf archive testdir file1.txt
7836 tar t "file1.txt" -f archive | sort
7837
7838 echo "SUB 4"
7839 tar t --no-anchored "file1.txt" -f archive | sort
7840
7841 echo "SUB 5"
7842 tar t --anchored "file1.txt" -f archive | sort
7843
7844 rm -rf testdir file1.txt
7845
7846 ) ) >"$at_stdout" 2>"$at_stder1"
7847   at_func_filter_trace $?
7848 else
7849   ( :;
7850 mkdir gnu
7851 (cd gnu
7852 TEST_TAR_FORMAT=gnu
7853 export TEST_TAR_FORMAT
7854 TAR_OPTIONS="-H gnu"
7855 export TAR_OPTIONS
7856 rm -rf *
7857
7858
7859 test -z "`sort < /dev/null 2>&1`" || exit 77
7860
7861
7862 rm -rf testdir
7863 mkdir -p testdir
7864 touch file1.txt
7865 touch testdir/file1.txt
7866 touch testdir/file2
7867
7868 tar cf archive --exclude="file1.txt" \
7869                testdir
7870 tar tf archive | sort
7871
7872 echo "SUB 1"
7873 tar cf archive --no-anchored \
7874                --exclude="file1.txt" \
7875                testdir
7876 tar tf archive | sort
7877
7878 echo "SUB 2"
7879 tar cf archive --anchored \
7880                --exclude="file1.txt" \
7881                testdir
7882 tar tf archive | sort
7883
7884 echo "SUB 3"
7885 tar cf archive testdir file1.txt
7886 tar t "file1.txt" -f archive | sort
7887
7888 echo "SUB 4"
7889 tar t --no-anchored "file1.txt" -f archive | sort
7890
7891 echo "SUB 5"
7892 tar t --anchored "file1.txt" -f archive | sort
7893
7894 rm -rf testdir file1.txt
7895
7896 ) ) >"$at_stdout" 2>"$at_stderr"
7897 fi
7898 at_status=$?
7899 at_failed=false
7900 at_func_diff_devnull "$at_stderr" || at_failed=:
7901 echo >>"$at_stdout"; $as_echo "testdir/
7902 testdir/file2
7903 SUB 1
7904 testdir/
7905 testdir/file2
7906 SUB 2
7907 testdir/
7908 testdir/file1.txt
7909 testdir/file2
7910 SUB 3
7911 file1.txt
7912 SUB 4
7913 file1.txt
7914 testdir/file1.txt
7915 SUB 5
7916 file1.txt
7917 " | \
7918   $at_diff - "$at_stdout" || at_failed=:
7919 at_func_check_status 0 $at_status "$at_srcdir/exclude02.at:20"
7920
7921 $at_failed && at_func_log_failure
7922 $at_traceon; }
7923
7924
7925
7926
7927   $at_traceoff
7928   $at_times_p && times >"$at_times_file"
7929 ) 5>&1 2>&1 | eval $at_tee_pipe
7930 at_status=`cat "$at_status_file"`
7931 #AT_STOP_17
7932 #AT_START_18
7933 # 18. exclude03.at:17: exclude: wildcards match slash
7934 at_setup_line='exclude03.at:17'
7935 at_desc="exclude: wildcards match slash"
7936 $at_quiet $as_echo_n " 18: $at_desc                 "
7937 at_xfail=no
7938       test -f $XFAILFILE && at_xfail=yes
7939 echo "#                             -*- compilation -*-" >> "$at_group_log"
7940 (
7941   $as_echo "18. exclude03.at:17: testing ..."
7942   $at_traceon
7943
7944
7945
7946
7947
7948   { $at_traceoff
7949 $as_echo "$at_srcdir/exclude03.at:20:
7950 mkdir v7
7951 (cd v7
7952 TEST_TAR_FORMAT=v7
7953 export TEST_TAR_FORMAT
7954 TAR_OPTIONS=\"-H v7\"
7955 export TAR_OPTIONS
7956 rm -rf *
7957
7958
7959 test -z "`sort < /dev/null 2>&1`" || exit 77
7960
7961
7962 rm -rf testdir
7963 mkdir -p testdir/dir1 testdir/dir2 testdir/dir3
7964 touch testdir/\\*f\\*1
7965 touch testdir/dir1/file1
7966 touch testdir/dir1/\\*
7967 touch testdir/dir2/file2
7968 touch testdir/dir2/\\*
7969 touch testdir/dir3/file3
7970 touch testdir/dir3/\\*
7971
7972 tar cf archive --exclude='testdir*f*1' \\
7973                --no-wildcards-match-slash \\
7974                --exclude='testdir*f*2' \\
7975                --wildcards-match-slash \\
7976                --exclude='testdir*f*3' \\
7977                testdir
7978 tar tf archive | sort
7979
7980 echo \"NEXT\"
7981 tar cf archive testdir
7982 tar t --wildcards 'testdir/*f*1' -f archive | sort
7983
7984 echo \"NEXT\"
7985 tar t --wildcards --no-wildcards-match-slash 'testdir/*f*1' -f archive | sort
7986
7987 echo \"NEXT\"
7988 tar t --wildcards --wildcards-match-slash 'testdir/*f*1' -f archive | sort
7989
7990 rm -rf testdir
7991
7992 )"
7993 echo exclude03.at:20 >"$at_check_line_file"
7994
7995 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
7996    false; }; then
7997   ( $at_traceon;
7998 mkdir v7
7999 (cd v7
8000 TEST_TAR_FORMAT=v7
8001 export TEST_TAR_FORMAT
8002 TAR_OPTIONS="-H v7"
8003 export TAR_OPTIONS
8004 rm -rf *
8005
8006
8007 test -z "`sort < /dev/null 2>&1`" || exit 77
8008
8009
8010 rm -rf testdir
8011 mkdir -p testdir/dir1 testdir/dir2 testdir/dir3
8012 touch testdir/\*f\*1
8013 touch testdir/dir1/file1
8014 touch testdir/dir1/\*
8015 touch testdir/dir2/file2
8016 touch testdir/dir2/\*
8017 touch testdir/dir3/file3
8018 touch testdir/dir3/\*
8019
8020 tar cf archive --exclude='testdir*f*1' \
8021                --no-wildcards-match-slash \
8022                --exclude='testdir*f*2' \
8023                --wildcards-match-slash \
8024                --exclude='testdir*f*3' \
8025                testdir
8026 tar tf archive | sort
8027
8028 echo "NEXT"
8029 tar cf archive testdir
8030 tar t --wildcards 'testdir/*f*1' -f archive | sort
8031
8032 echo "NEXT"
8033 tar t --wildcards --no-wildcards-match-slash 'testdir/*f*1' -f archive | sort
8034
8035 echo "NEXT"
8036 tar t --wildcards --wildcards-match-slash 'testdir/*f*1' -f archive | sort
8037
8038 rm -rf testdir
8039
8040 ) ) >"$at_stdout" 2>"$at_stder1"
8041   at_func_filter_trace $?
8042 else
8043   ( :;
8044 mkdir v7
8045 (cd v7
8046 TEST_TAR_FORMAT=v7
8047 export TEST_TAR_FORMAT
8048 TAR_OPTIONS="-H v7"
8049 export TAR_OPTIONS
8050 rm -rf *
8051
8052
8053 test -z "`sort < /dev/null 2>&1`" || exit 77
8054
8055
8056 rm -rf testdir
8057 mkdir -p testdir/dir1 testdir/dir2 testdir/dir3
8058 touch testdir/\*f\*1
8059 touch testdir/dir1/file1
8060 touch testdir/dir1/\*
8061 touch testdir/dir2/file2
8062 touch testdir/dir2/\*
8063 touch testdir/dir3/file3
8064 touch testdir/dir3/\*
8065
8066 tar cf archive --exclude='testdir*f*1' \
8067                --no-wildcards-match-slash \
8068                --exclude='testdir*f*2' \
8069                --wildcards-match-slash \
8070                --exclude='testdir*f*3' \
8071                testdir
8072 tar tf archive | sort
8073
8074 echo "NEXT"
8075 tar cf archive testdir
8076 tar t --wildcards 'testdir/*f*1' -f archive | sort
8077
8078 echo "NEXT"
8079 tar t --wildcards --no-wildcards-match-slash 'testdir/*f*1' -f archive | sort
8080
8081 echo "NEXT"
8082 tar t --wildcards --wildcards-match-slash 'testdir/*f*1' -f archive | sort
8083
8084 rm -rf testdir
8085
8086 ) ) >"$at_stdout" 2>"$at_stderr"
8087 fi
8088 at_status=$?
8089 at_failed=false
8090 at_func_diff_devnull "$at_stderr" || at_failed=:
8091 echo >>"$at_stdout"; $as_echo "testdir/
8092 testdir/dir1/
8093 testdir/dir1/*
8094 testdir/dir2/
8095 testdir/dir2/*
8096 testdir/dir2/file2
8097 testdir/dir3/
8098 testdir/dir3/*
8099 NEXT
8100 testdir/*f*1
8101 testdir/dir1/file1
8102 NEXT
8103 testdir/*f*1
8104 NEXT
8105 testdir/*f*1
8106 testdir/dir1/file1
8107 " | \
8108   $at_diff - "$at_stdout" || at_failed=:
8109 at_func_check_status 0 $at_status "$at_srcdir/exclude03.at:20"
8110
8111 $at_failed && at_func_log_failure
8112 $at_traceon; }
8113
8114               { $at_traceoff
8115 $as_echo "$at_srcdir/exclude03.at:20:
8116 mkdir oldgnu
8117 (cd oldgnu
8118 TEST_TAR_FORMAT=oldgnu
8119 export TEST_TAR_FORMAT
8120 TAR_OPTIONS=\"-H oldgnu\"
8121 export TAR_OPTIONS
8122 rm -rf *
8123
8124
8125 test -z "`sort < /dev/null 2>&1`" || exit 77
8126
8127
8128 rm -rf testdir
8129 mkdir -p testdir/dir1 testdir/dir2 testdir/dir3
8130 touch testdir/\\*f\\*1
8131 touch testdir/dir1/file1
8132 touch testdir/dir1/\\*
8133 touch testdir/dir2/file2
8134 touch testdir/dir2/\\*
8135 touch testdir/dir3/file3
8136 touch testdir/dir3/\\*
8137
8138 tar cf archive --exclude='testdir*f*1' \\
8139                --no-wildcards-match-slash \\
8140                --exclude='testdir*f*2' \\
8141                --wildcards-match-slash \\
8142                --exclude='testdir*f*3' \\
8143                testdir
8144 tar tf archive | sort
8145
8146 echo \"NEXT\"
8147 tar cf archive testdir
8148 tar t --wildcards 'testdir/*f*1' -f archive | sort
8149
8150 echo \"NEXT\"
8151 tar t --wildcards --no-wildcards-match-slash 'testdir/*f*1' -f archive | sort
8152
8153 echo \"NEXT\"
8154 tar t --wildcards --wildcards-match-slash 'testdir/*f*1' -f archive | sort
8155
8156 rm -rf testdir
8157
8158 )"
8159 echo exclude03.at:20 >"$at_check_line_file"
8160
8161 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
8162    false; }; then
8163   ( $at_traceon;
8164 mkdir oldgnu
8165 (cd oldgnu
8166 TEST_TAR_FORMAT=oldgnu
8167 export TEST_TAR_FORMAT
8168 TAR_OPTIONS="-H oldgnu"
8169 export TAR_OPTIONS
8170 rm -rf *
8171
8172
8173 test -z "`sort < /dev/null 2>&1`" || exit 77
8174
8175
8176 rm -rf testdir
8177 mkdir -p testdir/dir1 testdir/dir2 testdir/dir3
8178 touch testdir/\*f\*1
8179 touch testdir/dir1/file1
8180 touch testdir/dir1/\*
8181 touch testdir/dir2/file2
8182 touch testdir/dir2/\*
8183 touch testdir/dir3/file3
8184 touch testdir/dir3/\*
8185
8186 tar cf archive --exclude='testdir*f*1' \
8187                --no-wildcards-match-slash \
8188                --exclude='testdir*f*2' \
8189                --wildcards-match-slash \
8190                --exclude='testdir*f*3' \
8191                testdir
8192 tar tf archive | sort
8193
8194 echo "NEXT"
8195 tar cf archive testdir
8196 tar t --wildcards 'testdir/*f*1' -f archive | sort
8197
8198 echo "NEXT"
8199 tar t --wildcards --no-wildcards-match-slash 'testdir/*f*1' -f archive | sort
8200
8201 echo "NEXT"
8202 tar t --wildcards --wildcards-match-slash 'testdir/*f*1' -f archive | sort
8203
8204 rm -rf testdir
8205
8206 ) ) >"$at_stdout" 2>"$at_stder1"
8207   at_func_filter_trace $?
8208 else
8209   ( :;
8210 mkdir oldgnu
8211 (cd oldgnu
8212 TEST_TAR_FORMAT=oldgnu
8213 export TEST_TAR_FORMAT
8214 TAR_OPTIONS="-H oldgnu"
8215 export TAR_OPTIONS
8216 rm -rf *
8217
8218
8219 test -z "`sort < /dev/null 2>&1`" || exit 77
8220
8221
8222 rm -rf testdir
8223 mkdir -p testdir/dir1 testdir/dir2 testdir/dir3
8224 touch testdir/\*f\*1
8225 touch testdir/dir1/file1
8226 touch testdir/dir1/\*
8227 touch testdir/dir2/file2
8228 touch testdir/dir2/\*
8229 touch testdir/dir3/file3
8230 touch testdir/dir3/\*
8231
8232 tar cf archive --exclude='testdir*f*1' \
8233                --no-wildcards-match-slash \
8234                --exclude='testdir*f*2' \
8235                --wildcards-match-slash \
8236                --exclude='testdir*f*3' \
8237                testdir
8238 tar tf archive | sort
8239
8240 echo "NEXT"
8241 tar cf archive testdir
8242 tar t --wildcards 'testdir/*f*1' -f archive | sort
8243
8244 echo "NEXT"
8245 tar t --wildcards --no-wildcards-match-slash 'testdir/*f*1' -f archive | sort
8246
8247 echo "NEXT"
8248 tar t --wildcards --wildcards-match-slash 'testdir/*f*1' -f archive | sort
8249
8250 rm -rf testdir
8251
8252 ) ) >"$at_stdout" 2>"$at_stderr"
8253 fi
8254 at_status=$?
8255 at_failed=false
8256 at_func_diff_devnull "$at_stderr" || at_failed=:
8257 echo >>"$at_stdout"; $as_echo "testdir/
8258 testdir/dir1/
8259 testdir/dir1/*
8260 testdir/dir2/
8261 testdir/dir2/*
8262 testdir/dir2/file2
8263 testdir/dir3/
8264 testdir/dir3/*
8265 NEXT
8266 testdir/*f*1
8267 testdir/dir1/file1
8268 NEXT
8269 testdir/*f*1
8270 NEXT
8271 testdir/*f*1
8272 testdir/dir1/file1
8273 " | \
8274   $at_diff - "$at_stdout" || at_failed=:
8275 at_func_check_status 0 $at_status "$at_srcdir/exclude03.at:20"
8276
8277 $at_failed && at_func_log_failure
8278 $at_traceon; }
8279
8280               { $at_traceoff
8281 $as_echo "$at_srcdir/exclude03.at:20:
8282 mkdir ustar
8283 (cd ustar
8284 TEST_TAR_FORMAT=ustar
8285 export TEST_TAR_FORMAT
8286 TAR_OPTIONS=\"-H ustar\"
8287 export TAR_OPTIONS
8288 rm -rf *
8289
8290
8291 test -z "`sort < /dev/null 2>&1`" || exit 77
8292
8293
8294 rm -rf testdir
8295 mkdir -p testdir/dir1 testdir/dir2 testdir/dir3
8296 touch testdir/\\*f\\*1
8297 touch testdir/dir1/file1
8298 touch testdir/dir1/\\*
8299 touch testdir/dir2/file2
8300 touch testdir/dir2/\\*
8301 touch testdir/dir3/file3
8302 touch testdir/dir3/\\*
8303
8304 tar cf archive --exclude='testdir*f*1' \\
8305                --no-wildcards-match-slash \\
8306                --exclude='testdir*f*2' \\
8307                --wildcards-match-slash \\
8308                --exclude='testdir*f*3' \\
8309                testdir
8310 tar tf archive | sort
8311
8312 echo \"NEXT\"
8313 tar cf archive testdir
8314 tar t --wildcards 'testdir/*f*1' -f archive | sort
8315
8316 echo \"NEXT\"
8317 tar t --wildcards --no-wildcards-match-slash 'testdir/*f*1' -f archive | sort
8318
8319 echo \"NEXT\"
8320 tar t --wildcards --wildcards-match-slash 'testdir/*f*1' -f archive | sort
8321
8322 rm -rf testdir
8323
8324 )"
8325 echo exclude03.at:20 >"$at_check_line_file"
8326
8327 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
8328    false; }; then
8329   ( $at_traceon;
8330 mkdir ustar
8331 (cd ustar
8332 TEST_TAR_FORMAT=ustar
8333 export TEST_TAR_FORMAT
8334 TAR_OPTIONS="-H ustar"
8335 export TAR_OPTIONS
8336 rm -rf *
8337
8338
8339 test -z "`sort < /dev/null 2>&1`" || exit 77
8340
8341
8342 rm -rf testdir
8343 mkdir -p testdir/dir1 testdir/dir2 testdir/dir3
8344 touch testdir/\*f\*1
8345 touch testdir/dir1/file1
8346 touch testdir/dir1/\*
8347 touch testdir/dir2/file2
8348 touch testdir/dir2/\*
8349 touch testdir/dir3/file3
8350 touch testdir/dir3/\*
8351
8352 tar cf archive --exclude='testdir*f*1' \
8353                --no-wildcards-match-slash \
8354                --exclude='testdir*f*2' \
8355                --wildcards-match-slash \
8356                --exclude='testdir*f*3' \
8357                testdir
8358 tar tf archive | sort
8359
8360 echo "NEXT"
8361 tar cf archive testdir
8362 tar t --wildcards 'testdir/*f*1' -f archive | sort
8363
8364 echo "NEXT"
8365 tar t --wildcards --no-wildcards-match-slash 'testdir/*f*1' -f archive | sort
8366
8367 echo "NEXT"
8368 tar t --wildcards --wildcards-match-slash 'testdir/*f*1' -f archive | sort
8369
8370 rm -rf testdir
8371
8372 ) ) >"$at_stdout" 2>"$at_stder1"
8373   at_func_filter_trace $?
8374 else
8375   ( :;
8376 mkdir ustar
8377 (cd ustar
8378 TEST_TAR_FORMAT=ustar
8379 export TEST_TAR_FORMAT
8380 TAR_OPTIONS="-H ustar"
8381 export TAR_OPTIONS
8382 rm -rf *
8383
8384
8385 test -z "`sort < /dev/null 2>&1`" || exit 77
8386
8387
8388 rm -rf testdir
8389 mkdir -p testdir/dir1 testdir/dir2 testdir/dir3
8390 touch testdir/\*f\*1
8391 touch testdir/dir1/file1
8392 touch testdir/dir1/\*
8393 touch testdir/dir2/file2
8394 touch testdir/dir2/\*
8395 touch testdir/dir3/file3
8396 touch testdir/dir3/\*
8397
8398 tar cf archive --exclude='testdir*f*1' \
8399                --no-wildcards-match-slash \
8400                --exclude='testdir*f*2' \
8401                --wildcards-match-slash \
8402                --exclude='testdir*f*3' \
8403                testdir
8404 tar tf archive | sort
8405
8406 echo "NEXT"
8407 tar cf archive testdir
8408 tar t --wildcards 'testdir/*f*1' -f archive | sort
8409
8410 echo "NEXT"
8411 tar t --wildcards --no-wildcards-match-slash 'testdir/*f*1' -f archive | sort
8412
8413 echo "NEXT"
8414 tar t --wildcards --wildcards-match-slash 'testdir/*f*1' -f archive | sort
8415
8416 rm -rf testdir
8417
8418 ) ) >"$at_stdout" 2>"$at_stderr"
8419 fi
8420 at_status=$?
8421 at_failed=false
8422 at_func_diff_devnull "$at_stderr" || at_failed=:
8423 echo >>"$at_stdout"; $as_echo "testdir/
8424 testdir/dir1/
8425 testdir/dir1/*
8426 testdir/dir2/
8427 testdir/dir2/*
8428 testdir/dir2/file2
8429 testdir/dir3/
8430 testdir/dir3/*
8431 NEXT
8432 testdir/*f*1
8433 testdir/dir1/file1
8434 NEXT
8435 testdir/*f*1
8436 NEXT
8437 testdir/*f*1
8438 testdir/dir1/file1
8439 " | \
8440   $at_diff - "$at_stdout" || at_failed=:
8441 at_func_check_status 0 $at_status "$at_srcdir/exclude03.at:20"
8442
8443 $at_failed && at_func_log_failure
8444 $at_traceon; }
8445
8446               { $at_traceoff
8447 $as_echo "$at_srcdir/exclude03.at:20:
8448 mkdir posix
8449 (cd posix
8450 TEST_TAR_FORMAT=posix
8451 export TEST_TAR_FORMAT
8452 TAR_OPTIONS=\"-H posix\"
8453 export TAR_OPTIONS
8454 rm -rf *
8455
8456
8457 test -z "`sort < /dev/null 2>&1`" || exit 77
8458
8459
8460 rm -rf testdir
8461 mkdir -p testdir/dir1 testdir/dir2 testdir/dir3
8462 touch testdir/\\*f\\*1
8463 touch testdir/dir1/file1
8464 touch testdir/dir1/\\*
8465 touch testdir/dir2/file2
8466 touch testdir/dir2/\\*
8467 touch testdir/dir3/file3
8468 touch testdir/dir3/\\*
8469
8470 tar cf archive --exclude='testdir*f*1' \\
8471                --no-wildcards-match-slash \\
8472                --exclude='testdir*f*2' \\
8473                --wildcards-match-slash \\
8474                --exclude='testdir*f*3' \\
8475                testdir
8476 tar tf archive | sort
8477
8478 echo \"NEXT\"
8479 tar cf archive testdir
8480 tar t --wildcards 'testdir/*f*1' -f archive | sort
8481
8482 echo \"NEXT\"
8483 tar t --wildcards --no-wildcards-match-slash 'testdir/*f*1' -f archive | sort
8484
8485 echo \"NEXT\"
8486 tar t --wildcards --wildcards-match-slash 'testdir/*f*1' -f archive | sort
8487
8488 rm -rf testdir
8489
8490 )"
8491 echo exclude03.at:20 >"$at_check_line_file"
8492
8493 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
8494    false; }; then
8495   ( $at_traceon;
8496 mkdir posix
8497 (cd posix
8498 TEST_TAR_FORMAT=posix
8499 export TEST_TAR_FORMAT
8500 TAR_OPTIONS="-H posix"
8501 export TAR_OPTIONS
8502 rm -rf *
8503
8504
8505 test -z "`sort < /dev/null 2>&1`" || exit 77
8506
8507
8508 rm -rf testdir
8509 mkdir -p testdir/dir1 testdir/dir2 testdir/dir3
8510 touch testdir/\*f\*1
8511 touch testdir/dir1/file1
8512 touch testdir/dir1/\*
8513 touch testdir/dir2/file2
8514 touch testdir/dir2/\*
8515 touch testdir/dir3/file3
8516 touch testdir/dir3/\*
8517
8518 tar cf archive --exclude='testdir*f*1' \
8519                --no-wildcards-match-slash \
8520                --exclude='testdir*f*2' \
8521                --wildcards-match-slash \
8522                --exclude='testdir*f*3' \
8523                testdir
8524 tar tf archive | sort
8525
8526 echo "NEXT"
8527 tar cf archive testdir
8528 tar t --wildcards 'testdir/*f*1' -f archive | sort
8529
8530 echo "NEXT"
8531 tar t --wildcards --no-wildcards-match-slash 'testdir/*f*1' -f archive | sort
8532
8533 echo "NEXT"
8534 tar t --wildcards --wildcards-match-slash 'testdir/*f*1' -f archive | sort
8535
8536 rm -rf testdir
8537
8538 ) ) >"$at_stdout" 2>"$at_stder1"
8539   at_func_filter_trace $?
8540 else
8541   ( :;
8542 mkdir posix
8543 (cd posix
8544 TEST_TAR_FORMAT=posix
8545 export TEST_TAR_FORMAT
8546 TAR_OPTIONS="-H posix"
8547 export TAR_OPTIONS
8548 rm -rf *
8549
8550
8551 test -z "`sort < /dev/null 2>&1`" || exit 77
8552
8553
8554 rm -rf testdir
8555 mkdir -p testdir/dir1 testdir/dir2 testdir/dir3
8556 touch testdir/\*f\*1
8557 touch testdir/dir1/file1
8558 touch testdir/dir1/\*
8559 touch testdir/dir2/file2
8560 touch testdir/dir2/\*
8561 touch testdir/dir3/file3
8562 touch testdir/dir3/\*
8563
8564 tar cf archive --exclude='testdir*f*1' \
8565                --no-wildcards-match-slash \
8566                --exclude='testdir*f*2' \
8567                --wildcards-match-slash \
8568                --exclude='testdir*f*3' \
8569                testdir
8570 tar tf archive | sort
8571
8572 echo "NEXT"
8573 tar cf archive testdir
8574 tar t --wildcards 'testdir/*f*1' -f archive | sort
8575
8576 echo "NEXT"
8577 tar t --wildcards --no-wildcards-match-slash 'testdir/*f*1' -f archive | sort
8578
8579 echo "NEXT"
8580 tar t --wildcards --wildcards-match-slash 'testdir/*f*1' -f archive | sort
8581
8582 rm -rf testdir
8583
8584 ) ) >"$at_stdout" 2>"$at_stderr"
8585 fi
8586 at_status=$?
8587 at_failed=false
8588 at_func_diff_devnull "$at_stderr" || at_failed=:
8589 echo >>"$at_stdout"; $as_echo "testdir/
8590 testdir/dir1/
8591 testdir/dir1/*
8592 testdir/dir2/
8593 testdir/dir2/*
8594 testdir/dir2/file2
8595 testdir/dir3/
8596 testdir/dir3/*
8597 NEXT
8598 testdir/*f*1
8599 testdir/dir1/file1
8600 NEXT
8601 testdir/*f*1
8602 NEXT
8603 testdir/*f*1
8604 testdir/dir1/file1
8605 " | \
8606   $at_diff - "$at_stdout" || at_failed=:
8607 at_func_check_status 0 $at_status "$at_srcdir/exclude03.at:20"
8608
8609 $at_failed && at_func_log_failure
8610 $at_traceon; }
8611
8612               { $at_traceoff
8613 $as_echo "$at_srcdir/exclude03.at:20:
8614 mkdir gnu
8615 (cd gnu
8616 TEST_TAR_FORMAT=gnu
8617 export TEST_TAR_FORMAT
8618 TAR_OPTIONS=\"-H gnu\"
8619 export TAR_OPTIONS
8620 rm -rf *
8621
8622
8623 test -z "`sort < /dev/null 2>&1`" || exit 77
8624
8625
8626 rm -rf testdir
8627 mkdir -p testdir/dir1 testdir/dir2 testdir/dir3
8628 touch testdir/\\*f\\*1
8629 touch testdir/dir1/file1
8630 touch testdir/dir1/\\*
8631 touch testdir/dir2/file2
8632 touch testdir/dir2/\\*
8633 touch testdir/dir3/file3
8634 touch testdir/dir3/\\*
8635
8636 tar cf archive --exclude='testdir*f*1' \\
8637                --no-wildcards-match-slash \\
8638                --exclude='testdir*f*2' \\
8639                --wildcards-match-slash \\
8640                --exclude='testdir*f*3' \\
8641                testdir
8642 tar tf archive | sort
8643
8644 echo \"NEXT\"
8645 tar cf archive testdir
8646 tar t --wildcards 'testdir/*f*1' -f archive | sort
8647
8648 echo \"NEXT\"
8649 tar t --wildcards --no-wildcards-match-slash 'testdir/*f*1' -f archive | sort
8650
8651 echo \"NEXT\"
8652 tar t --wildcards --wildcards-match-slash 'testdir/*f*1' -f archive | sort
8653
8654 rm -rf testdir
8655
8656 )"
8657 echo exclude03.at:20 >"$at_check_line_file"
8658
8659 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
8660    false; }; then
8661   ( $at_traceon;
8662 mkdir gnu
8663 (cd gnu
8664 TEST_TAR_FORMAT=gnu
8665 export TEST_TAR_FORMAT
8666 TAR_OPTIONS="-H gnu"
8667 export TAR_OPTIONS
8668 rm -rf *
8669
8670
8671 test -z "`sort < /dev/null 2>&1`" || exit 77
8672
8673
8674 rm -rf testdir
8675 mkdir -p testdir/dir1 testdir/dir2 testdir/dir3
8676 touch testdir/\*f\*1
8677 touch testdir/dir1/file1
8678 touch testdir/dir1/\*
8679 touch testdir/dir2/file2
8680 touch testdir/dir2/\*
8681 touch testdir/dir3/file3
8682 touch testdir/dir3/\*
8683
8684 tar cf archive --exclude='testdir*f*1' \
8685                --no-wildcards-match-slash \
8686                --exclude='testdir*f*2' \
8687                --wildcards-match-slash \
8688                --exclude='testdir*f*3' \
8689                testdir
8690 tar tf archive | sort
8691
8692 echo "NEXT"
8693 tar cf archive testdir
8694 tar t --wildcards 'testdir/*f*1' -f archive | sort
8695
8696 echo "NEXT"
8697 tar t --wildcards --no-wildcards-match-slash 'testdir/*f*1' -f archive | sort
8698
8699 echo "NEXT"
8700 tar t --wildcards --wildcards-match-slash 'testdir/*f*1' -f archive | sort
8701
8702 rm -rf testdir
8703
8704 ) ) >"$at_stdout" 2>"$at_stder1"
8705   at_func_filter_trace $?
8706 else
8707   ( :;
8708 mkdir gnu
8709 (cd gnu
8710 TEST_TAR_FORMAT=gnu
8711 export TEST_TAR_FORMAT
8712 TAR_OPTIONS="-H gnu"
8713 export TAR_OPTIONS
8714 rm -rf *
8715
8716
8717 test -z "`sort < /dev/null 2>&1`" || exit 77
8718
8719
8720 rm -rf testdir
8721 mkdir -p testdir/dir1 testdir/dir2 testdir/dir3
8722 touch testdir/\*f\*1
8723 touch testdir/dir1/file1
8724 touch testdir/dir1/\*
8725 touch testdir/dir2/file2
8726 touch testdir/dir2/\*
8727 touch testdir/dir3/file3
8728 touch testdir/dir3/\*
8729
8730 tar cf archive --exclude='testdir*f*1' \
8731                --no-wildcards-match-slash \
8732                --exclude='testdir*f*2' \
8733                --wildcards-match-slash \
8734                --exclude='testdir*f*3' \
8735                testdir
8736 tar tf archive | sort
8737
8738 echo "NEXT"
8739 tar cf archive testdir
8740 tar t --wildcards 'testdir/*f*1' -f archive | sort
8741
8742 echo "NEXT"
8743 tar t --wildcards --no-wildcards-match-slash 'testdir/*f*1' -f archive | sort
8744
8745 echo "NEXT"
8746 tar t --wildcards --wildcards-match-slash 'testdir/*f*1' -f archive | sort
8747
8748 rm -rf testdir
8749
8750 ) ) >"$at_stdout" 2>"$at_stderr"
8751 fi
8752 at_status=$?
8753 at_failed=false
8754 at_func_diff_devnull "$at_stderr" || at_failed=:
8755 echo >>"$at_stdout"; $as_echo "testdir/
8756 testdir/dir1/
8757 testdir/dir1/*
8758 testdir/dir2/
8759 testdir/dir2/*
8760 testdir/dir2/file2
8761 testdir/dir3/
8762 testdir/dir3/*
8763 NEXT
8764 testdir/*f*1
8765 testdir/dir1/file1
8766 NEXT
8767 testdir/*f*1
8768 NEXT
8769 testdir/*f*1
8770 testdir/dir1/file1
8771 " | \
8772   $at_diff - "$at_stdout" || at_failed=:
8773 at_func_check_status 0 $at_status "$at_srcdir/exclude03.at:20"
8774
8775 $at_failed && at_func_log_failure
8776 $at_traceon; }
8777
8778
8779
8780
8781   $at_traceoff
8782   $at_times_p && times >"$at_times_file"
8783 ) 5>&1 2>&1 | eval $at_tee_pipe
8784 at_status=`cat "$at_status_file"`
8785 #AT_STOP_18
8786 #AT_START_19
8787 # 19. exclude04.at:17: exclude: case insensitive
8788 at_setup_line='exclude04.at:17'
8789 at_desc="exclude: case insensitive"
8790 $at_quiet $as_echo_n " 19: $at_desc                      "
8791 at_xfail=no
8792       test -f $XFAILFILE && at_xfail=yes
8793 echo "#                             -*- compilation -*-" >> "$at_group_log"
8794 (
8795   $as_echo "19. exclude04.at:17: testing ..."
8796   $at_traceon
8797
8798
8799
8800
8801
8802   { $at_traceoff
8803 $as_echo "$at_srcdir/exclude04.at:20:
8804 mkdir v7
8805 (cd v7
8806 TEST_TAR_FORMAT=v7
8807 export TEST_TAR_FORMAT
8808 TAR_OPTIONS=\"-H v7\"
8809 export TAR_OPTIONS
8810 rm -rf *
8811
8812
8813 test -z "`sort < /dev/null 2>&1`" || exit 77
8814
8815
8816 rm -rf testdir
8817 mkdir -p testdir/dir
8818 touch testdir/file1
8819 touch testdir/file2
8820 touch testdir/file3
8821 touch testdir/file4
8822 touch testdir/dir/File1
8823 touch testdir/dir/File2
8824 touch testdir/dir/File3
8825 touch testdir/dir/File4
8826
8827 tar cf archive --exclude=FILE2 \\
8828                --exclude=file1 \\
8829                --ignore-case \\
8830                --exclude=file3 \\
8831                --no-ignore-case \\
8832                --exclude=FILE2 \\
8833                --exclude=file4 \\
8834                testdir
8835 tar tf archive | sort
8836
8837 echo \"SUB 1\"
8838 tar cf archive testdir
8839 tar t --wildcards --wildcards-match-slash '*File2' -f archive | sort
8840
8841 echo \"SUB 2\"
8842 tar t --wildcards --wildcards-match-slash --ignore-case '*File2' -f archive | sort
8843
8844 echo \"SUB 3\"
8845 tar t --wildcards --wildcards-match-slash --no-ignore-case '*File2' -f archive | sort
8846
8847 rm -rf testdir
8848
8849 )"
8850 echo exclude04.at:20 >"$at_check_line_file"
8851
8852 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
8853    false; }; then
8854   ( $at_traceon;
8855 mkdir v7
8856 (cd v7
8857 TEST_TAR_FORMAT=v7
8858 export TEST_TAR_FORMAT
8859 TAR_OPTIONS="-H v7"
8860 export TAR_OPTIONS
8861 rm -rf *
8862
8863
8864 test -z "`sort < /dev/null 2>&1`" || exit 77
8865
8866
8867 rm -rf testdir
8868 mkdir -p testdir/dir
8869 touch testdir/file1
8870 touch testdir/file2
8871 touch testdir/file3
8872 touch testdir/file4
8873 touch testdir/dir/File1
8874 touch testdir/dir/File2
8875 touch testdir/dir/File3
8876 touch testdir/dir/File4
8877
8878 tar cf archive --exclude=FILE2 \
8879                --exclude=file1 \
8880                --ignore-case \
8881                --exclude=file3 \
8882                --no-ignore-case \
8883                --exclude=FILE2 \
8884                --exclude=file4 \
8885                testdir
8886 tar tf archive | sort
8887
8888 echo "SUB 1"
8889 tar cf archive testdir
8890 tar t --wildcards --wildcards-match-slash '*File2' -f archive | sort
8891
8892 echo "SUB 2"
8893 tar t --wildcards --wildcards-match-slash --ignore-case '*File2' -f archive | sort
8894
8895 echo "SUB 3"
8896 tar t --wildcards --wildcards-match-slash --no-ignore-case '*File2' -f archive | sort
8897
8898 rm -rf testdir
8899
8900 ) ) >"$at_stdout" 2>"$at_stder1"
8901   at_func_filter_trace $?
8902 else
8903   ( :;
8904 mkdir v7
8905 (cd v7
8906 TEST_TAR_FORMAT=v7
8907 export TEST_TAR_FORMAT
8908 TAR_OPTIONS="-H v7"
8909 export TAR_OPTIONS
8910 rm -rf *
8911
8912
8913 test -z "`sort < /dev/null 2>&1`" || exit 77
8914
8915
8916 rm -rf testdir
8917 mkdir -p testdir/dir
8918 touch testdir/file1
8919 touch testdir/file2
8920 touch testdir/file3
8921 touch testdir/file4
8922 touch testdir/dir/File1
8923 touch testdir/dir/File2
8924 touch testdir/dir/File3
8925 touch testdir/dir/File4
8926
8927 tar cf archive --exclude=FILE2 \
8928                --exclude=file1 \
8929                --ignore-case \
8930                --exclude=file3 \
8931                --no-ignore-case \
8932                --exclude=FILE2 \
8933                --exclude=file4 \
8934                testdir
8935 tar tf archive | sort
8936
8937 echo "SUB 1"
8938 tar cf archive testdir
8939 tar t --wildcards --wildcards-match-slash '*File2' -f archive | sort
8940
8941 echo "SUB 2"
8942 tar t --wildcards --wildcards-match-slash --ignore-case '*File2' -f archive | sort
8943
8944 echo "SUB 3"
8945 tar t --wildcards --wildcards-match-slash --no-ignore-case '*File2' -f archive | sort
8946
8947 rm -rf testdir
8948
8949 ) ) >"$at_stdout" 2>"$at_stderr"
8950 fi
8951 at_status=$?
8952 at_failed=false
8953 at_func_diff_devnull "$at_stderr" || at_failed=:
8954 echo >>"$at_stdout"; $as_echo "testdir/
8955 testdir/dir/
8956 testdir/dir/File1
8957 testdir/dir/File2
8958 testdir/dir/File4
8959 testdir/file2
8960 SUB 1
8961 testdir/dir/File2
8962 SUB 2
8963 testdir/dir/File2
8964 testdir/file2
8965 SUB 3
8966 testdir/dir/File2
8967 " | \
8968   $at_diff - "$at_stdout" || at_failed=:
8969 at_func_check_status 0 $at_status "$at_srcdir/exclude04.at:20"
8970
8971 $at_failed && at_func_log_failure
8972 $at_traceon; }
8973
8974               { $at_traceoff
8975 $as_echo "$at_srcdir/exclude04.at:20:
8976 mkdir oldgnu
8977 (cd oldgnu
8978 TEST_TAR_FORMAT=oldgnu
8979 export TEST_TAR_FORMAT
8980 TAR_OPTIONS=\"-H oldgnu\"
8981 export TAR_OPTIONS
8982 rm -rf *
8983
8984
8985 test -z "`sort < /dev/null 2>&1`" || exit 77
8986
8987
8988 rm -rf testdir
8989 mkdir -p testdir/dir
8990 touch testdir/file1
8991 touch testdir/file2
8992 touch testdir/file3
8993 touch testdir/file4
8994 touch testdir/dir/File1
8995 touch testdir/dir/File2
8996 touch testdir/dir/File3
8997 touch testdir/dir/File4
8998
8999 tar cf archive --exclude=FILE2 \\
9000                --exclude=file1 \\
9001                --ignore-case \\
9002                --exclude=file3 \\
9003                --no-ignore-case \\
9004                --exclude=FILE2 \\
9005                --exclude=file4 \\
9006                testdir
9007 tar tf archive | sort
9008
9009 echo \"SUB 1\"
9010 tar cf archive testdir
9011 tar t --wildcards --wildcards-match-slash '*File2' -f archive | sort
9012
9013 echo \"SUB 2\"
9014 tar t --wildcards --wildcards-match-slash --ignore-case '*File2' -f archive | sort
9015
9016 echo \"SUB 3\"
9017 tar t --wildcards --wildcards-match-slash --no-ignore-case '*File2' -f archive | sort
9018
9019 rm -rf testdir
9020
9021 )"
9022 echo exclude04.at:20 >"$at_check_line_file"
9023
9024 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
9025    false; }; then
9026   ( $at_traceon;
9027 mkdir oldgnu
9028 (cd oldgnu
9029 TEST_TAR_FORMAT=oldgnu
9030 export TEST_TAR_FORMAT
9031 TAR_OPTIONS="-H oldgnu"
9032 export TAR_OPTIONS
9033 rm -rf *
9034
9035
9036 test -z "`sort < /dev/null 2>&1`" || exit 77
9037
9038
9039 rm -rf testdir
9040 mkdir -p testdir/dir
9041 touch testdir/file1
9042 touch testdir/file2
9043 touch testdir/file3
9044 touch testdir/file4
9045 touch testdir/dir/File1
9046 touch testdir/dir/File2
9047 touch testdir/dir/File3
9048 touch testdir/dir/File4
9049
9050 tar cf archive --exclude=FILE2 \
9051                --exclude=file1 \
9052                --ignore-case \
9053                --exclude=file3 \
9054                --no-ignore-case \
9055                --exclude=FILE2 \
9056                --exclude=file4 \
9057                testdir
9058 tar tf archive | sort
9059
9060 echo "SUB 1"
9061 tar cf archive testdir
9062 tar t --wildcards --wildcards-match-slash '*File2' -f archive | sort
9063
9064 echo "SUB 2"
9065 tar t --wildcards --wildcards-match-slash --ignore-case '*File2' -f archive | sort
9066
9067 echo "SUB 3"
9068 tar t --wildcards --wildcards-match-slash --no-ignore-case '*File2' -f archive | sort
9069
9070 rm -rf testdir
9071
9072 ) ) >"$at_stdout" 2>"$at_stder1"
9073   at_func_filter_trace $?
9074 else
9075   ( :;
9076 mkdir oldgnu
9077 (cd oldgnu
9078 TEST_TAR_FORMAT=oldgnu
9079 export TEST_TAR_FORMAT
9080 TAR_OPTIONS="-H oldgnu"
9081 export TAR_OPTIONS
9082 rm -rf *
9083
9084
9085 test -z "`sort < /dev/null 2>&1`" || exit 77
9086
9087
9088 rm -rf testdir
9089 mkdir -p testdir/dir
9090 touch testdir/file1
9091 touch testdir/file2
9092 touch testdir/file3
9093 touch testdir/file4
9094 touch testdir/dir/File1
9095 touch testdir/dir/File2
9096 touch testdir/dir/File3
9097 touch testdir/dir/File4
9098
9099 tar cf archive --exclude=FILE2 \
9100                --exclude=file1 \
9101                --ignore-case \
9102                --exclude=file3 \
9103                --no-ignore-case \
9104                --exclude=FILE2 \
9105                --exclude=file4 \
9106                testdir
9107 tar tf archive | sort
9108
9109 echo "SUB 1"
9110 tar cf archive testdir
9111 tar t --wildcards --wildcards-match-slash '*File2' -f archive | sort
9112
9113 echo "SUB 2"
9114 tar t --wildcards --wildcards-match-slash --ignore-case '*File2' -f archive | sort
9115
9116 echo "SUB 3"
9117 tar t --wildcards --wildcards-match-slash --no-ignore-case '*File2' -f archive | sort
9118
9119 rm -rf testdir
9120
9121 ) ) >"$at_stdout" 2>"$at_stderr"
9122 fi
9123 at_status=$?
9124 at_failed=false
9125 at_func_diff_devnull "$at_stderr" || at_failed=:
9126 echo >>"$at_stdout"; $as_echo "testdir/
9127 testdir/dir/
9128 testdir/dir/File1
9129 testdir/dir/File2
9130 testdir/dir/File4
9131 testdir/file2
9132 SUB 1
9133 testdir/dir/File2
9134 SUB 2
9135 testdir/dir/File2
9136 testdir/file2
9137 SUB 3
9138 testdir/dir/File2
9139 " | \
9140   $at_diff - "$at_stdout" || at_failed=:
9141 at_func_check_status 0 $at_status "$at_srcdir/exclude04.at:20"
9142
9143 $at_failed && at_func_log_failure
9144 $at_traceon; }
9145
9146               { $at_traceoff
9147 $as_echo "$at_srcdir/exclude04.at:20:
9148 mkdir ustar
9149 (cd ustar
9150 TEST_TAR_FORMAT=ustar
9151 export TEST_TAR_FORMAT
9152 TAR_OPTIONS=\"-H ustar\"
9153 export TAR_OPTIONS
9154 rm -rf *
9155
9156
9157 test -z "`sort < /dev/null 2>&1`" || exit 77
9158
9159
9160 rm -rf testdir
9161 mkdir -p testdir/dir
9162 touch testdir/file1
9163 touch testdir/file2
9164 touch testdir/file3
9165 touch testdir/file4
9166 touch testdir/dir/File1
9167 touch testdir/dir/File2
9168 touch testdir/dir/File3
9169 touch testdir/dir/File4
9170
9171 tar cf archive --exclude=FILE2 \\
9172                --exclude=file1 \\
9173                --ignore-case \\
9174                --exclude=file3 \\
9175                --no-ignore-case \\
9176                --exclude=FILE2 \\
9177                --exclude=file4 \\
9178                testdir
9179 tar tf archive | sort
9180
9181 echo \"SUB 1\"
9182 tar cf archive testdir
9183 tar t --wildcards --wildcards-match-slash '*File2' -f archive | sort
9184
9185 echo \"SUB 2\"
9186 tar t --wildcards --wildcards-match-slash --ignore-case '*File2' -f archive | sort
9187
9188 echo \"SUB 3\"
9189 tar t --wildcards --wildcards-match-slash --no-ignore-case '*File2' -f archive | sort
9190
9191 rm -rf testdir
9192
9193 )"
9194 echo exclude04.at:20 >"$at_check_line_file"
9195
9196 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
9197    false; }; then
9198   ( $at_traceon;
9199 mkdir ustar
9200 (cd ustar
9201 TEST_TAR_FORMAT=ustar
9202 export TEST_TAR_FORMAT
9203 TAR_OPTIONS="-H ustar"
9204 export TAR_OPTIONS
9205 rm -rf *
9206
9207
9208 test -z "`sort < /dev/null 2>&1`" || exit 77
9209
9210
9211 rm -rf testdir
9212 mkdir -p testdir/dir
9213 touch testdir/file1
9214 touch testdir/file2
9215 touch testdir/file3
9216 touch testdir/file4
9217 touch testdir/dir/File1
9218 touch testdir/dir/File2
9219 touch testdir/dir/File3
9220 touch testdir/dir/File4
9221
9222 tar cf archive --exclude=FILE2 \
9223                --exclude=file1 \
9224                --ignore-case \
9225                --exclude=file3 \
9226                --no-ignore-case \
9227                --exclude=FILE2 \
9228                --exclude=file4 \
9229                testdir
9230 tar tf archive | sort
9231
9232 echo "SUB 1"
9233 tar cf archive testdir
9234 tar t --wildcards --wildcards-match-slash '*File2' -f archive | sort
9235
9236 echo "SUB 2"
9237 tar t --wildcards --wildcards-match-slash --ignore-case '*File2' -f archive | sort
9238
9239 echo "SUB 3"
9240 tar t --wildcards --wildcards-match-slash --no-ignore-case '*File2' -f archive | sort
9241
9242 rm -rf testdir
9243
9244 ) ) >"$at_stdout" 2>"$at_stder1"
9245   at_func_filter_trace $?
9246 else
9247   ( :;
9248 mkdir ustar
9249 (cd ustar
9250 TEST_TAR_FORMAT=ustar
9251 export TEST_TAR_FORMAT
9252 TAR_OPTIONS="-H ustar"
9253 export TAR_OPTIONS
9254 rm -rf *
9255
9256
9257 test -z "`sort < /dev/null 2>&1`" || exit 77
9258
9259
9260 rm -rf testdir
9261 mkdir -p testdir/dir
9262 touch testdir/file1
9263 touch testdir/file2
9264 touch testdir/file3
9265 touch testdir/file4
9266 touch testdir/dir/File1
9267 touch testdir/dir/File2
9268 touch testdir/dir/File3
9269 touch testdir/dir/File4
9270
9271 tar cf archive --exclude=FILE2 \
9272                --exclude=file1 \
9273                --ignore-case \
9274                --exclude=file3 \
9275                --no-ignore-case \
9276                --exclude=FILE2 \
9277                --exclude=file4 \
9278                testdir
9279 tar tf archive | sort
9280
9281 echo "SUB 1"
9282 tar cf archive testdir
9283 tar t --wildcards --wildcards-match-slash '*File2' -f archive | sort
9284
9285 echo "SUB 2"
9286 tar t --wildcards --wildcards-match-slash --ignore-case '*File2' -f archive | sort
9287
9288 echo "SUB 3"
9289 tar t --wildcards --wildcards-match-slash --no-ignore-case '*File2' -f archive | sort
9290
9291 rm -rf testdir
9292
9293 ) ) >"$at_stdout" 2>"$at_stderr"
9294 fi
9295 at_status=$?
9296 at_failed=false
9297 at_func_diff_devnull "$at_stderr" || at_failed=:
9298 echo >>"$at_stdout"; $as_echo "testdir/
9299 testdir/dir/
9300 testdir/dir/File1
9301 testdir/dir/File2
9302 testdir/dir/File4
9303 testdir/file2
9304 SUB 1
9305 testdir/dir/File2
9306 SUB 2
9307 testdir/dir/File2
9308 testdir/file2
9309 SUB 3
9310 testdir/dir/File2
9311 " | \
9312   $at_diff - "$at_stdout" || at_failed=:
9313 at_func_check_status 0 $at_status "$at_srcdir/exclude04.at:20"
9314
9315 $at_failed && at_func_log_failure
9316 $at_traceon; }
9317
9318               { $at_traceoff
9319 $as_echo "$at_srcdir/exclude04.at:20:
9320 mkdir posix
9321 (cd posix
9322 TEST_TAR_FORMAT=posix
9323 export TEST_TAR_FORMAT
9324 TAR_OPTIONS=\"-H posix\"
9325 export TAR_OPTIONS
9326 rm -rf *
9327
9328
9329 test -z "`sort < /dev/null 2>&1`" || exit 77
9330
9331
9332 rm -rf testdir
9333 mkdir -p testdir/dir
9334 touch testdir/file1
9335 touch testdir/file2
9336 touch testdir/file3
9337 touch testdir/file4
9338 touch testdir/dir/File1
9339 touch testdir/dir/File2
9340 touch testdir/dir/File3
9341 touch testdir/dir/File4
9342
9343 tar cf archive --exclude=FILE2 \\
9344                --exclude=file1 \\
9345                --ignore-case \\
9346                --exclude=file3 \\
9347                --no-ignore-case \\
9348                --exclude=FILE2 \\
9349                --exclude=file4 \\
9350                testdir
9351 tar tf archive | sort
9352
9353 echo \"SUB 1\"
9354 tar cf archive testdir
9355 tar t --wildcards --wildcards-match-slash '*File2' -f archive | sort
9356
9357 echo \"SUB 2\"
9358 tar t --wildcards --wildcards-match-slash --ignore-case '*File2' -f archive | sort
9359
9360 echo \"SUB 3\"
9361 tar t --wildcards --wildcards-match-slash --no-ignore-case '*File2' -f archive | sort
9362
9363 rm -rf testdir
9364
9365 )"
9366 echo exclude04.at:20 >"$at_check_line_file"
9367
9368 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
9369    false; }; then
9370   ( $at_traceon;
9371 mkdir posix
9372 (cd posix
9373 TEST_TAR_FORMAT=posix
9374 export TEST_TAR_FORMAT
9375 TAR_OPTIONS="-H posix"
9376 export TAR_OPTIONS
9377 rm -rf *
9378
9379
9380 test -z "`sort < /dev/null 2>&1`" || exit 77
9381
9382
9383 rm -rf testdir
9384 mkdir -p testdir/dir
9385 touch testdir/file1
9386 touch testdir/file2
9387 touch testdir/file3
9388 touch testdir/file4
9389 touch testdir/dir/File1
9390 touch testdir/dir/File2
9391 touch testdir/dir/File3
9392 touch testdir/dir/File4
9393
9394 tar cf archive --exclude=FILE2 \
9395                --exclude=file1 \
9396                --ignore-case \
9397                --exclude=file3 \
9398                --no-ignore-case \
9399                --exclude=FILE2 \
9400                --exclude=file4 \
9401                testdir
9402 tar tf archive | sort
9403
9404 echo "SUB 1"
9405 tar cf archive testdir
9406 tar t --wildcards --wildcards-match-slash '*File2' -f archive | sort
9407
9408 echo "SUB 2"
9409 tar t --wildcards --wildcards-match-slash --ignore-case '*File2' -f archive | sort
9410
9411 echo "SUB 3"
9412 tar t --wildcards --wildcards-match-slash --no-ignore-case '*File2' -f archive | sort
9413
9414 rm -rf testdir
9415
9416 ) ) >"$at_stdout" 2>"$at_stder1"
9417   at_func_filter_trace $?
9418 else
9419   ( :;
9420 mkdir posix
9421 (cd posix
9422 TEST_TAR_FORMAT=posix
9423 export TEST_TAR_FORMAT
9424 TAR_OPTIONS="-H posix"
9425 export TAR_OPTIONS
9426 rm -rf *
9427
9428
9429 test -z "`sort < /dev/null 2>&1`" || exit 77
9430
9431
9432 rm -rf testdir
9433 mkdir -p testdir/dir
9434 touch testdir/file1
9435 touch testdir/file2
9436 touch testdir/file3
9437 touch testdir/file4
9438 touch testdir/dir/File1
9439 touch testdir/dir/File2
9440 touch testdir/dir/File3
9441 touch testdir/dir/File4
9442
9443 tar cf archive --exclude=FILE2 \
9444                --exclude=file1 \
9445                --ignore-case \
9446                --exclude=file3 \
9447                --no-ignore-case \
9448                --exclude=FILE2 \
9449                --exclude=file4 \
9450                testdir
9451 tar tf archive | sort
9452
9453 echo "SUB 1"
9454 tar cf archive testdir
9455 tar t --wildcards --wildcards-match-slash '*File2' -f archive | sort
9456
9457 echo "SUB 2"
9458 tar t --wildcards --wildcards-match-slash --ignore-case '*File2' -f archive | sort
9459
9460 echo "SUB 3"
9461 tar t --wildcards --wildcards-match-slash --no-ignore-case '*File2' -f archive | sort
9462
9463 rm -rf testdir
9464
9465 ) ) >"$at_stdout" 2>"$at_stderr"
9466 fi
9467 at_status=$?
9468 at_failed=false
9469 at_func_diff_devnull "$at_stderr" || at_failed=:
9470 echo >>"$at_stdout"; $as_echo "testdir/
9471 testdir/dir/
9472 testdir/dir/File1
9473 testdir/dir/File2
9474 testdir/dir/File4
9475 testdir/file2
9476 SUB 1
9477 testdir/dir/File2
9478 SUB 2
9479 testdir/dir/File2
9480 testdir/file2
9481 SUB 3
9482 testdir/dir/File2
9483 " | \
9484   $at_diff - "$at_stdout" || at_failed=:
9485 at_func_check_status 0 $at_status "$at_srcdir/exclude04.at:20"
9486
9487 $at_failed && at_func_log_failure
9488 $at_traceon; }
9489
9490               { $at_traceoff
9491 $as_echo "$at_srcdir/exclude04.at:20:
9492 mkdir gnu
9493 (cd gnu
9494 TEST_TAR_FORMAT=gnu
9495 export TEST_TAR_FORMAT
9496 TAR_OPTIONS=\"-H gnu\"
9497 export TAR_OPTIONS
9498 rm -rf *
9499
9500
9501 test -z "`sort < /dev/null 2>&1`" || exit 77
9502
9503
9504 rm -rf testdir
9505 mkdir -p testdir/dir
9506 touch testdir/file1
9507 touch testdir/file2
9508 touch testdir/file3
9509 touch testdir/file4
9510 touch testdir/dir/File1
9511 touch testdir/dir/File2
9512 touch testdir/dir/File3
9513 touch testdir/dir/File4
9514
9515 tar cf archive --exclude=FILE2 \\
9516                --exclude=file1 \\
9517                --ignore-case \\
9518                --exclude=file3 \\
9519                --no-ignore-case \\
9520                --exclude=FILE2 \\
9521                --exclude=file4 \\
9522                testdir
9523 tar tf archive | sort
9524
9525 echo \"SUB 1\"
9526 tar cf archive testdir
9527 tar t --wildcards --wildcards-match-slash '*File2' -f archive | sort
9528
9529 echo \"SUB 2\"
9530 tar t --wildcards --wildcards-match-slash --ignore-case '*File2' -f archive | sort
9531
9532 echo \"SUB 3\"
9533 tar t --wildcards --wildcards-match-slash --no-ignore-case '*File2' -f archive | sort
9534
9535 rm -rf testdir
9536
9537 )"
9538 echo exclude04.at:20 >"$at_check_line_file"
9539
9540 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
9541    false; }; then
9542   ( $at_traceon;
9543 mkdir gnu
9544 (cd gnu
9545 TEST_TAR_FORMAT=gnu
9546 export TEST_TAR_FORMAT
9547 TAR_OPTIONS="-H gnu"
9548 export TAR_OPTIONS
9549 rm -rf *
9550
9551
9552 test -z "`sort < /dev/null 2>&1`" || exit 77
9553
9554
9555 rm -rf testdir
9556 mkdir -p testdir/dir
9557 touch testdir/file1
9558 touch testdir/file2
9559 touch testdir/file3
9560 touch testdir/file4
9561 touch testdir/dir/File1
9562 touch testdir/dir/File2
9563 touch testdir/dir/File3
9564 touch testdir/dir/File4
9565
9566 tar cf archive --exclude=FILE2 \
9567                --exclude=file1 \
9568                --ignore-case \
9569                --exclude=file3 \
9570                --no-ignore-case \
9571                --exclude=FILE2 \
9572                --exclude=file4 \
9573                testdir
9574 tar tf archive | sort
9575
9576 echo "SUB 1"
9577 tar cf archive testdir
9578 tar t --wildcards --wildcards-match-slash '*File2' -f archive | sort
9579
9580 echo "SUB 2"
9581 tar t --wildcards --wildcards-match-slash --ignore-case '*File2' -f archive | sort
9582
9583 echo "SUB 3"
9584 tar t --wildcards --wildcards-match-slash --no-ignore-case '*File2' -f archive | sort
9585
9586 rm -rf testdir
9587
9588 ) ) >"$at_stdout" 2>"$at_stder1"
9589   at_func_filter_trace $?
9590 else
9591   ( :;
9592 mkdir gnu
9593 (cd gnu
9594 TEST_TAR_FORMAT=gnu
9595 export TEST_TAR_FORMAT
9596 TAR_OPTIONS="-H gnu"
9597 export TAR_OPTIONS
9598 rm -rf *
9599
9600
9601 test -z "`sort < /dev/null 2>&1`" || exit 77
9602
9603
9604 rm -rf testdir
9605 mkdir -p testdir/dir
9606 touch testdir/file1
9607 touch testdir/file2
9608 touch testdir/file3
9609 touch testdir/file4
9610 touch testdir/dir/File1
9611 touch testdir/dir/File2
9612 touch testdir/dir/File3
9613 touch testdir/dir/File4
9614
9615 tar cf archive --exclude=FILE2 \
9616                --exclude=file1 \
9617                --ignore-case \
9618                --exclude=file3 \
9619                --no-ignore-case \
9620                --exclude=FILE2 \
9621                --exclude=file4 \
9622                testdir
9623 tar tf archive | sort
9624
9625 echo "SUB 1"
9626 tar cf archive testdir
9627 tar t --wildcards --wildcards-match-slash '*File2' -f archive | sort
9628
9629 echo "SUB 2"
9630 tar t --wildcards --wildcards-match-slash --ignore-case '*File2' -f archive | sort
9631
9632 echo "SUB 3"
9633 tar t --wildcards --wildcards-match-slash --no-ignore-case '*File2' -f archive | sort
9634
9635 rm -rf testdir
9636
9637 ) ) >"$at_stdout" 2>"$at_stderr"
9638 fi
9639 at_status=$?
9640 at_failed=false
9641 at_func_diff_devnull "$at_stderr" || at_failed=:
9642 echo >>"$at_stdout"; $as_echo "testdir/
9643 testdir/dir/
9644 testdir/dir/File1
9645 testdir/dir/File2
9646 testdir/dir/File4
9647 testdir/file2
9648 SUB 1
9649 testdir/dir/File2
9650 SUB 2
9651 testdir/dir/File2
9652 testdir/file2
9653 SUB 3
9654 testdir/dir/File2
9655 " | \
9656   $at_diff - "$at_stdout" || at_failed=:
9657 at_func_check_status 0 $at_status "$at_srcdir/exclude04.at:20"
9658
9659 $at_failed && at_func_log_failure
9660 $at_traceon; }
9661
9662
9663
9664
9665   $at_traceoff
9666   $at_times_p && times >"$at_times_file"
9667 ) 5>&1 2>&1 | eval $at_tee_pipe
9668 at_status=`cat "$at_status_file"`
9669 #AT_STOP_19
9670 #AT_START_20
9671 # 20. exclude05.at:19: exclude: lots of excludes
9672 at_setup_line='exclude05.at:19'
9673 at_desc="exclude: lots of excludes"
9674 $at_quiet $as_echo_n " 20: $at_desc                      "
9675 at_xfail=no
9676       test -f $XFAILFILE && at_xfail=yes
9677 echo "#                             -*- compilation -*-" >> "$at_group_log"
9678 (
9679   $as_echo "20. exclude05.at:19: testing ..."
9680   $at_traceon
9681
9682
9683
9684
9685
9686   { $at_traceoff
9687 $as_echo "$at_srcdir/exclude05.at:22:
9688 mkdir v7
9689 (cd v7
9690 TEST_TAR_FORMAT=v7
9691 export TEST_TAR_FORMAT
9692 TAR_OPTIONS=\"-H v7\"
9693 export TAR_OPTIONS
9694 rm -rf *
9695
9696
9697 test -z "`sort < /dev/null 2>&1`" || exit 77
9698
9699
9700 rm -rf testdir exclfile
9701 mkdir -p testdir
9702 awk 'BEGIN {for (i=9; i < 100; ++i ) { print \"testdir/file\" i; }}' < /dev/null | \\
9703  while read name
9704  do
9705    genfile --file \$name
9706  done
9707
9708 awk 'BEGIN {for (i=1000000; i >= 12; --i ) { print \"testdir/file\" i }}' < /dev/null > exclfile
9709
9710 tar cf archive --anchored --exclude-from=exclfile \\
9711                testdir
9712 tar tf archive | sort
9713
9714 echo \"NEXT\"
9715 tar cf archive --exclude-from=exclfile \\
9716                testdir
9717 tar tf archive | sort
9718
9719 rm -rf testdir exclfile
9720
9721 )"
9722 echo exclude05.at:22 >"$at_check_line_file"
9723
9724 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
9725    false; }; then
9726   ( $at_traceon;
9727 mkdir v7
9728 (cd v7
9729 TEST_TAR_FORMAT=v7
9730 export TEST_TAR_FORMAT
9731 TAR_OPTIONS="-H v7"
9732 export TAR_OPTIONS
9733 rm -rf *
9734
9735
9736 test -z "`sort < /dev/null 2>&1`" || exit 77
9737
9738
9739 rm -rf testdir exclfile
9740 mkdir -p testdir
9741 awk 'BEGIN {for (i=9; i < 100; ++i ) { print "testdir/file" i; }}' < /dev/null | \
9742  while read name
9743  do
9744    genfile --file $name
9745  done
9746
9747 awk 'BEGIN {for (i=1000000; i >= 12; --i ) { print "testdir/file" i }}' < /dev/null > exclfile
9748
9749 tar cf archive --anchored --exclude-from=exclfile \
9750                testdir
9751 tar tf archive | sort
9752
9753 echo "NEXT"
9754 tar cf archive --exclude-from=exclfile \
9755                testdir
9756 tar tf archive | sort
9757
9758 rm -rf testdir exclfile
9759
9760 ) ) >"$at_stdout" 2>"$at_stder1"
9761   at_func_filter_trace $?
9762 else
9763   ( :;
9764 mkdir v7
9765 (cd v7
9766 TEST_TAR_FORMAT=v7
9767 export TEST_TAR_FORMAT
9768 TAR_OPTIONS="-H v7"
9769 export TAR_OPTIONS
9770 rm -rf *
9771
9772
9773 test -z "`sort < /dev/null 2>&1`" || exit 77
9774
9775
9776 rm -rf testdir exclfile
9777 mkdir -p testdir
9778 awk 'BEGIN {for (i=9; i < 100; ++i ) { print "testdir/file" i; }}' < /dev/null | \
9779  while read name
9780  do
9781    genfile --file $name
9782  done
9783
9784 awk 'BEGIN {for (i=1000000; i >= 12; --i ) { print "testdir/file" i }}' < /dev/null > exclfile
9785
9786 tar cf archive --anchored --exclude-from=exclfile \
9787                testdir
9788 tar tf archive | sort
9789
9790 echo "NEXT"
9791 tar cf archive --exclude-from=exclfile \
9792                testdir
9793 tar tf archive | sort
9794
9795 rm -rf testdir exclfile
9796
9797 ) ) >"$at_stdout" 2>"$at_stderr"
9798 fi
9799 at_status=$?
9800 at_failed=false
9801 at_func_diff_devnull "$at_stderr" || at_failed=:
9802 echo >>"$at_stdout"; $as_echo "testdir/
9803 testdir/file10
9804 testdir/file11
9805 testdir/file9
9806 NEXT
9807 testdir/
9808 testdir/file10
9809 testdir/file11
9810 testdir/file9
9811 " | \
9812   $at_diff - "$at_stdout" || at_failed=:
9813 at_func_check_status 0 $at_status "$at_srcdir/exclude05.at:22"
9814
9815 $at_failed && at_func_log_failure
9816 $at_traceon; }
9817
9818               { $at_traceoff
9819 $as_echo "$at_srcdir/exclude05.at:22:
9820 mkdir oldgnu
9821 (cd oldgnu
9822 TEST_TAR_FORMAT=oldgnu
9823 export TEST_TAR_FORMAT
9824 TAR_OPTIONS=\"-H oldgnu\"
9825 export TAR_OPTIONS
9826 rm -rf *
9827
9828
9829 test -z "`sort < /dev/null 2>&1`" || exit 77
9830
9831
9832 rm -rf testdir exclfile
9833 mkdir -p testdir
9834 awk 'BEGIN {for (i=9; i < 100; ++i ) { print \"testdir/file\" i; }}' < /dev/null | \\
9835  while read name
9836  do
9837    genfile --file \$name
9838  done
9839
9840 awk 'BEGIN {for (i=1000000; i >= 12; --i ) { print \"testdir/file\" i }}' < /dev/null > exclfile
9841
9842 tar cf archive --anchored --exclude-from=exclfile \\
9843                testdir
9844 tar tf archive | sort
9845
9846 echo \"NEXT\"
9847 tar cf archive --exclude-from=exclfile \\
9848                testdir
9849 tar tf archive | sort
9850
9851 rm -rf testdir exclfile
9852
9853 )"
9854 echo exclude05.at:22 >"$at_check_line_file"
9855
9856 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
9857    false; }; then
9858   ( $at_traceon;
9859 mkdir oldgnu
9860 (cd oldgnu
9861 TEST_TAR_FORMAT=oldgnu
9862 export TEST_TAR_FORMAT
9863 TAR_OPTIONS="-H oldgnu"
9864 export TAR_OPTIONS
9865 rm -rf *
9866
9867
9868 test -z "`sort < /dev/null 2>&1`" || exit 77
9869
9870
9871 rm -rf testdir exclfile
9872 mkdir -p testdir
9873 awk 'BEGIN {for (i=9; i < 100; ++i ) { print "testdir/file" i; }}' < /dev/null | \
9874  while read name
9875  do
9876    genfile --file $name
9877  done
9878
9879 awk 'BEGIN {for (i=1000000; i >= 12; --i ) { print "testdir/file" i }}' < /dev/null > exclfile
9880
9881 tar cf archive --anchored --exclude-from=exclfile \
9882                testdir
9883 tar tf archive | sort
9884
9885 echo "NEXT"
9886 tar cf archive --exclude-from=exclfile \
9887                testdir
9888 tar tf archive | sort
9889
9890 rm -rf testdir exclfile
9891
9892 ) ) >"$at_stdout" 2>"$at_stder1"
9893   at_func_filter_trace $?
9894 else
9895   ( :;
9896 mkdir oldgnu
9897 (cd oldgnu
9898 TEST_TAR_FORMAT=oldgnu
9899 export TEST_TAR_FORMAT
9900 TAR_OPTIONS="-H oldgnu"
9901 export TAR_OPTIONS
9902 rm -rf *
9903
9904
9905 test -z "`sort < /dev/null 2>&1`" || exit 77
9906
9907
9908 rm -rf testdir exclfile
9909 mkdir -p testdir
9910 awk 'BEGIN {for (i=9; i < 100; ++i ) { print "testdir/file" i; }}' < /dev/null | \
9911  while read name
9912  do
9913    genfile --file $name
9914  done
9915
9916 awk 'BEGIN {for (i=1000000; i >= 12; --i ) { print "testdir/file" i }}' < /dev/null > exclfile
9917
9918 tar cf archive --anchored --exclude-from=exclfile \
9919                testdir
9920 tar tf archive | sort
9921
9922 echo "NEXT"
9923 tar cf archive --exclude-from=exclfile \
9924                testdir
9925 tar tf archive | sort
9926
9927 rm -rf testdir exclfile
9928
9929 ) ) >"$at_stdout" 2>"$at_stderr"
9930 fi
9931 at_status=$?
9932 at_failed=false
9933 at_func_diff_devnull "$at_stderr" || at_failed=:
9934 echo >>"$at_stdout"; $as_echo "testdir/
9935 testdir/file10
9936 testdir/file11
9937 testdir/file9
9938 NEXT
9939 testdir/
9940 testdir/file10
9941 testdir/file11
9942 testdir/file9
9943 " | \
9944   $at_diff - "$at_stdout" || at_failed=:
9945 at_func_check_status 0 $at_status "$at_srcdir/exclude05.at:22"
9946
9947 $at_failed && at_func_log_failure
9948 $at_traceon; }
9949
9950               { $at_traceoff
9951 $as_echo "$at_srcdir/exclude05.at:22:
9952 mkdir ustar
9953 (cd ustar
9954 TEST_TAR_FORMAT=ustar
9955 export TEST_TAR_FORMAT
9956 TAR_OPTIONS=\"-H ustar\"
9957 export TAR_OPTIONS
9958 rm -rf *
9959
9960
9961 test -z "`sort < /dev/null 2>&1`" || exit 77
9962
9963
9964 rm -rf testdir exclfile
9965 mkdir -p testdir
9966 awk 'BEGIN {for (i=9; i < 100; ++i ) { print \"testdir/file\" i; }}' < /dev/null | \\
9967  while read name
9968  do
9969    genfile --file \$name
9970  done
9971
9972 awk 'BEGIN {for (i=1000000; i >= 12; --i ) { print \"testdir/file\" i }}' < /dev/null > exclfile
9973
9974 tar cf archive --anchored --exclude-from=exclfile \\
9975                testdir
9976 tar tf archive | sort
9977
9978 echo \"NEXT\"
9979 tar cf archive --exclude-from=exclfile \\
9980                testdir
9981 tar tf archive | sort
9982
9983 rm -rf testdir exclfile
9984
9985 )"
9986 echo exclude05.at:22 >"$at_check_line_file"
9987
9988 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
9989    false; }; then
9990   ( $at_traceon;
9991 mkdir ustar
9992 (cd ustar
9993 TEST_TAR_FORMAT=ustar
9994 export TEST_TAR_FORMAT
9995 TAR_OPTIONS="-H ustar"
9996 export TAR_OPTIONS
9997 rm -rf *
9998
9999
10000 test -z "`sort < /dev/null 2>&1`" || exit 77
10001
10002
10003 rm -rf testdir exclfile
10004 mkdir -p testdir
10005 awk 'BEGIN {for (i=9; i < 100; ++i ) { print "testdir/file" i; }}' < /dev/null | \
10006  while read name
10007  do
10008    genfile --file $name
10009  done
10010
10011 awk 'BEGIN {for (i=1000000; i >= 12; --i ) { print "testdir/file" i }}' < /dev/null > exclfile
10012
10013 tar cf archive --anchored --exclude-from=exclfile \
10014                testdir
10015 tar tf archive | sort
10016
10017 echo "NEXT"
10018 tar cf archive --exclude-from=exclfile \
10019                testdir
10020 tar tf archive | sort
10021
10022 rm -rf testdir exclfile
10023
10024 ) ) >"$at_stdout" 2>"$at_stder1"
10025   at_func_filter_trace $?
10026 else
10027   ( :;
10028 mkdir ustar
10029 (cd ustar
10030 TEST_TAR_FORMAT=ustar
10031 export TEST_TAR_FORMAT
10032 TAR_OPTIONS="-H ustar"
10033 export TAR_OPTIONS
10034 rm -rf *
10035
10036
10037 test -z "`sort < /dev/null 2>&1`" || exit 77
10038
10039
10040 rm -rf testdir exclfile
10041 mkdir -p testdir
10042 awk 'BEGIN {for (i=9; i < 100; ++i ) { print "testdir/file" i; }}' < /dev/null | \
10043  while read name
10044  do
10045    genfile --file $name
10046  done
10047
10048 awk 'BEGIN {for (i=1000000; i >= 12; --i ) { print "testdir/file" i }}' < /dev/null > exclfile
10049
10050 tar cf archive --anchored --exclude-from=exclfile \
10051                testdir
10052 tar tf archive | sort
10053
10054 echo "NEXT"
10055 tar cf archive --exclude-from=exclfile \
10056                testdir
10057 tar tf archive | sort
10058
10059 rm -rf testdir exclfile
10060
10061 ) ) >"$at_stdout" 2>"$at_stderr"
10062 fi
10063 at_status=$?
10064 at_failed=false
10065 at_func_diff_devnull "$at_stderr" || at_failed=:
10066 echo >>"$at_stdout"; $as_echo "testdir/
10067 testdir/file10
10068 testdir/file11
10069 testdir/file9
10070 NEXT
10071 testdir/
10072 testdir/file10
10073 testdir/file11
10074 testdir/file9
10075 " | \
10076   $at_diff - "$at_stdout" || at_failed=:
10077 at_func_check_status 0 $at_status "$at_srcdir/exclude05.at:22"
10078
10079 $at_failed && at_func_log_failure
10080 $at_traceon; }
10081
10082               { $at_traceoff
10083 $as_echo "$at_srcdir/exclude05.at:22:
10084 mkdir posix
10085 (cd posix
10086 TEST_TAR_FORMAT=posix
10087 export TEST_TAR_FORMAT
10088 TAR_OPTIONS=\"-H posix\"
10089 export TAR_OPTIONS
10090 rm -rf *
10091
10092
10093 test -z "`sort < /dev/null 2>&1`" || exit 77
10094
10095
10096 rm -rf testdir exclfile
10097 mkdir -p testdir
10098 awk 'BEGIN {for (i=9; i < 100; ++i ) { print \"testdir/file\" i; }}' < /dev/null | \\
10099  while read name
10100  do
10101    genfile --file \$name
10102  done
10103
10104 awk 'BEGIN {for (i=1000000; i >= 12; --i ) { print \"testdir/file\" i }}' < /dev/null > exclfile
10105
10106 tar cf archive --anchored --exclude-from=exclfile \\
10107                testdir
10108 tar tf archive | sort
10109
10110 echo \"NEXT\"
10111 tar cf archive --exclude-from=exclfile \\
10112                testdir
10113 tar tf archive | sort
10114
10115 rm -rf testdir exclfile
10116
10117 )"
10118 echo exclude05.at:22 >"$at_check_line_file"
10119
10120 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
10121    false; }; then
10122   ( $at_traceon;
10123 mkdir posix
10124 (cd posix
10125 TEST_TAR_FORMAT=posix
10126 export TEST_TAR_FORMAT
10127 TAR_OPTIONS="-H posix"
10128 export TAR_OPTIONS
10129 rm -rf *
10130
10131
10132 test -z "`sort < /dev/null 2>&1`" || exit 77
10133
10134
10135 rm -rf testdir exclfile
10136 mkdir -p testdir
10137 awk 'BEGIN {for (i=9; i < 100; ++i ) { print "testdir/file" i; }}' < /dev/null | \
10138  while read name
10139  do
10140    genfile --file $name
10141  done
10142
10143 awk 'BEGIN {for (i=1000000; i >= 12; --i ) { print "testdir/file" i }}' < /dev/null > exclfile
10144
10145 tar cf archive --anchored --exclude-from=exclfile \
10146                testdir
10147 tar tf archive | sort
10148
10149 echo "NEXT"
10150 tar cf archive --exclude-from=exclfile \
10151                testdir
10152 tar tf archive | sort
10153
10154 rm -rf testdir exclfile
10155
10156 ) ) >"$at_stdout" 2>"$at_stder1"
10157   at_func_filter_trace $?
10158 else
10159   ( :;
10160 mkdir posix
10161 (cd posix
10162 TEST_TAR_FORMAT=posix
10163 export TEST_TAR_FORMAT
10164 TAR_OPTIONS="-H posix"
10165 export TAR_OPTIONS
10166 rm -rf *
10167
10168
10169 test -z "`sort < /dev/null 2>&1`" || exit 77
10170
10171
10172 rm -rf testdir exclfile
10173 mkdir -p testdir
10174 awk 'BEGIN {for (i=9; i < 100; ++i ) { print "testdir/file" i; }}' < /dev/null | \
10175  while read name
10176  do
10177    genfile --file $name
10178  done
10179
10180 awk 'BEGIN {for (i=1000000; i >= 12; --i ) { print "testdir/file" i }}' < /dev/null > exclfile
10181
10182 tar cf archive --anchored --exclude-from=exclfile \
10183                testdir
10184 tar tf archive | sort
10185
10186 echo "NEXT"
10187 tar cf archive --exclude-from=exclfile \
10188                testdir
10189 tar tf archive | sort
10190
10191 rm -rf testdir exclfile
10192
10193 ) ) >"$at_stdout" 2>"$at_stderr"
10194 fi
10195 at_status=$?
10196 at_failed=false
10197 at_func_diff_devnull "$at_stderr" || at_failed=:
10198 echo >>"$at_stdout"; $as_echo "testdir/
10199 testdir/file10
10200 testdir/file11
10201 testdir/file9
10202 NEXT
10203 testdir/
10204 testdir/file10
10205 testdir/file11
10206 testdir/file9
10207 " | \
10208   $at_diff - "$at_stdout" || at_failed=:
10209 at_func_check_status 0 $at_status "$at_srcdir/exclude05.at:22"
10210
10211 $at_failed && at_func_log_failure
10212 $at_traceon; }
10213
10214               { $at_traceoff
10215 $as_echo "$at_srcdir/exclude05.at:22:
10216 mkdir gnu
10217 (cd gnu
10218 TEST_TAR_FORMAT=gnu
10219 export TEST_TAR_FORMAT
10220 TAR_OPTIONS=\"-H gnu\"
10221 export TAR_OPTIONS
10222 rm -rf *
10223
10224
10225 test -z "`sort < /dev/null 2>&1`" || exit 77
10226
10227
10228 rm -rf testdir exclfile
10229 mkdir -p testdir
10230 awk 'BEGIN {for (i=9; i < 100; ++i ) { print \"testdir/file\" i; }}' < /dev/null | \\
10231  while read name
10232  do
10233    genfile --file \$name
10234  done
10235
10236 awk 'BEGIN {for (i=1000000; i >= 12; --i ) { print \"testdir/file\" i }}' < /dev/null > exclfile
10237
10238 tar cf archive --anchored --exclude-from=exclfile \\
10239                testdir
10240 tar tf archive | sort
10241
10242 echo \"NEXT\"
10243 tar cf archive --exclude-from=exclfile \\
10244                testdir
10245 tar tf archive | sort
10246
10247 rm -rf testdir exclfile
10248
10249 )"
10250 echo exclude05.at:22 >"$at_check_line_file"
10251
10252 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
10253    false; }; then
10254   ( $at_traceon;
10255 mkdir gnu
10256 (cd gnu
10257 TEST_TAR_FORMAT=gnu
10258 export TEST_TAR_FORMAT
10259 TAR_OPTIONS="-H gnu"
10260 export TAR_OPTIONS
10261 rm -rf *
10262
10263
10264 test -z "`sort < /dev/null 2>&1`" || exit 77
10265
10266
10267 rm -rf testdir exclfile
10268 mkdir -p testdir
10269 awk 'BEGIN {for (i=9; i < 100; ++i ) { print "testdir/file" i; }}' < /dev/null | \
10270  while read name
10271  do
10272    genfile --file $name
10273  done
10274
10275 awk 'BEGIN {for (i=1000000; i >= 12; --i ) { print "testdir/file" i }}' < /dev/null > exclfile
10276
10277 tar cf archive --anchored --exclude-from=exclfile \
10278                testdir
10279 tar tf archive | sort
10280
10281 echo "NEXT"
10282 tar cf archive --exclude-from=exclfile \
10283                testdir
10284 tar tf archive | sort
10285
10286 rm -rf testdir exclfile
10287
10288 ) ) >"$at_stdout" 2>"$at_stder1"
10289   at_func_filter_trace $?
10290 else
10291   ( :;
10292 mkdir gnu
10293 (cd gnu
10294 TEST_TAR_FORMAT=gnu
10295 export TEST_TAR_FORMAT
10296 TAR_OPTIONS="-H gnu"
10297 export TAR_OPTIONS
10298 rm -rf *
10299
10300
10301 test -z "`sort < /dev/null 2>&1`" || exit 77
10302
10303
10304 rm -rf testdir exclfile
10305 mkdir -p testdir
10306 awk 'BEGIN {for (i=9; i < 100; ++i ) { print "testdir/file" i; }}' < /dev/null | \
10307  while read name
10308  do
10309    genfile --file $name
10310  done
10311
10312 awk 'BEGIN {for (i=1000000; i >= 12; --i ) { print "testdir/file" i }}' < /dev/null > exclfile
10313
10314 tar cf archive --anchored --exclude-from=exclfile \
10315                testdir
10316 tar tf archive | sort
10317
10318 echo "NEXT"
10319 tar cf archive --exclude-from=exclfile \
10320                testdir
10321 tar tf archive | sort
10322
10323 rm -rf testdir exclfile
10324
10325 ) ) >"$at_stdout" 2>"$at_stderr"
10326 fi
10327 at_status=$?
10328 at_failed=false
10329 at_func_diff_devnull "$at_stderr" || at_failed=:
10330 echo >>"$at_stdout"; $as_echo "testdir/
10331 testdir/file10
10332 testdir/file11
10333 testdir/file9
10334 NEXT
10335 testdir/
10336 testdir/file10
10337 testdir/file11
10338 testdir/file9
10339 " | \
10340   $at_diff - "$at_stdout" || at_failed=:
10341 at_func_check_status 0 $at_status "$at_srcdir/exclude05.at:22"
10342
10343 $at_failed && at_func_log_failure
10344 $at_traceon; }
10345
10346
10347
10348
10349   $at_traceoff
10350   $at_times_p && times >"$at_times_file"
10351 ) 5>&1 2>&1 | eval $at_tee_pipe
10352 at_status=`cat "$at_status_file"`
10353 #AT_STOP_20
10354 #AT_START_21
10355 # 21. exclude06.at:24: exclude: long files in pax archives
10356 at_setup_line='exclude06.at:24'
10357 at_desc="exclude: long files in pax archives"
10358 $at_quiet $as_echo_n " 21: $at_desc            "
10359 at_xfail=no
10360       test -f $XFAILFILE && at_xfail=yes
10361 echo "#                             -*- compilation -*-" >> "$at_group_log"
10362 (
10363   $as_echo "21. exclude06.at:24: testing ..."
10364   $at_traceon
10365
10366
10367
10368
10369
10370
10371
10372   { $at_traceoff
10373 $as_echo "$at_srcdir/exclude06.at:29:
10374 mkdir pax
10375 (cd pax
10376 TEST_TAR_FORMAT=pax
10377 export TEST_TAR_FORMAT
10378 TAR_OPTIONS=\"-H pax\"
10379 export TAR_OPTIONS
10380 rm -rf *
10381
10382
10383 install-sh -d one/two/three/four/five/six/seven/eight/nine/ten/eleven/twelve/thirteen/fourteen/fifteen/sixteen/seventeen >/dev/null  || exit 77
10384 genfile --length 20 -f one/two/three/four/five/six/seven/eight/nine/ten/eleven/twelve/thirteen/fourteen/fifteen/sixteen/seventeen/1.txt
10385 genfile --length 20 -f one/two/three/four/five/six/seven/eight/nine/ten/eleven/twelve/thirteen/fourteen/fifteen/sixteen/seventeen/1.c
10386
10387 tar cf archive.tar one/two/three/four/five/six/seven/eight/nine/ten/eleven/twelve/thirteen/fourteen/fifteen/sixteen/seventeen
10388 mkdir out
10389 tar -C out -xf archive.tar --exclude='*.txt' --warning=no-timestamp
10390 find out -type f
10391 )"
10392 echo exclude06.at:29 >"$at_check_line_file"
10393
10394 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
10395    false; }; then
10396   ( $at_traceon;
10397 mkdir pax
10398 (cd pax
10399 TEST_TAR_FORMAT=pax
10400 export TEST_TAR_FORMAT
10401 TAR_OPTIONS="-H pax"
10402 export TAR_OPTIONS
10403 rm -rf *
10404
10405
10406 install-sh -d one/two/three/four/five/six/seven/eight/nine/ten/eleven/twelve/thirteen/fourteen/fifteen/sixteen/seventeen >/dev/null  || exit 77
10407 genfile --length 20 -f one/two/three/four/five/six/seven/eight/nine/ten/eleven/twelve/thirteen/fourteen/fifteen/sixteen/seventeen/1.txt
10408 genfile --length 20 -f one/two/three/four/five/six/seven/eight/nine/ten/eleven/twelve/thirteen/fourteen/fifteen/sixteen/seventeen/1.c
10409
10410 tar cf archive.tar one/two/three/four/five/six/seven/eight/nine/ten/eleven/twelve/thirteen/fourteen/fifteen/sixteen/seventeen
10411 mkdir out
10412 tar -C out -xf archive.tar --exclude='*.txt' --warning=no-timestamp
10413 find out -type f
10414 ) ) >"$at_stdout" 2>"$at_stder1"
10415   at_func_filter_trace $?
10416 else
10417   ( :;
10418 mkdir pax
10419 (cd pax
10420 TEST_TAR_FORMAT=pax
10421 export TEST_TAR_FORMAT
10422 TAR_OPTIONS="-H pax"
10423 export TAR_OPTIONS
10424 rm -rf *
10425
10426
10427 install-sh -d one/two/three/four/five/six/seven/eight/nine/ten/eleven/twelve/thirteen/fourteen/fifteen/sixteen/seventeen >/dev/null  || exit 77
10428 genfile --length 20 -f one/two/three/four/five/six/seven/eight/nine/ten/eleven/twelve/thirteen/fourteen/fifteen/sixteen/seventeen/1.txt
10429 genfile --length 20 -f one/two/three/four/five/six/seven/eight/nine/ten/eleven/twelve/thirteen/fourteen/fifteen/sixteen/seventeen/1.c
10430
10431 tar cf archive.tar one/two/three/four/five/six/seven/eight/nine/ten/eleven/twelve/thirteen/fourteen/fifteen/sixteen/seventeen
10432 mkdir out
10433 tar -C out -xf archive.tar --exclude='*.txt' --warning=no-timestamp
10434 find out -type f
10435 ) ) >"$at_stdout" 2>"$at_stderr"
10436 fi
10437 at_status=$?
10438 at_failed=false
10439 at_func_diff_devnull "$at_stderr" || at_failed=:
10440 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
10441 " | \
10442   $at_diff - "$at_stdout" || at_failed=:
10443 at_func_check_status 0 $at_status "$at_srcdir/exclude06.at:29"
10444
10445 $at_failed && at_func_log_failure
10446 $at_traceon; }
10447
10448
10449
10450
10451   $at_traceoff
10452   $at_times_p && times >"$at_times_file"
10453 ) 5>&1 2>&1 | eval $at_tee_pipe
10454 at_status=`cat "$at_status_file"`
10455 #AT_STOP_21
10456 #AT_START_22
10457 # 22. delete01.at:23: deleting a member after a big one
10458 at_setup_line='delete01.at:23'
10459 at_desc="deleting a member after a big one"
10460 $at_quiet $as_echo_n " 22: $at_desc              "
10461 at_xfail=no
10462       test -f $XFAILFILE && at_xfail=yes
10463 echo "#                             -*- compilation -*-" >> "$at_group_log"
10464 (
10465   $as_echo "22. delete01.at:23: testing ..."
10466   $at_traceon
10467
10468
10469
10470
10471
10472   { $at_traceoff
10473 $as_echo "$at_srcdir/delete01.at:26:
10474 mkdir v7
10475 (cd v7
10476 TEST_TAR_FORMAT=v7
10477 export TEST_TAR_FORMAT
10478 TAR_OPTIONS=\"-H v7\"
10479 export TAR_OPTIONS
10480 rm -rf *
10481
10482 genfile -l 50000 --file file1
10483 genfile -l 1024 --file file2
10484 tar cf archive file1 file2
10485 tar f archive --delete file2
10486 tar tf archive)"
10487 echo delete01.at:26 >"$at_check_line_file"
10488
10489 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
10490    false; }; then
10491   ( $at_traceon;
10492 mkdir v7
10493 (cd v7
10494 TEST_TAR_FORMAT=v7
10495 export TEST_TAR_FORMAT
10496 TAR_OPTIONS="-H v7"
10497 export TAR_OPTIONS
10498 rm -rf *
10499
10500 genfile -l 50000 --file file1
10501 genfile -l 1024 --file file2
10502 tar cf archive file1 file2
10503 tar f archive --delete file2
10504 tar tf archive) ) >"$at_stdout" 2>"$at_stder1"
10505   at_func_filter_trace $?
10506 else
10507   ( :;
10508 mkdir v7
10509 (cd v7
10510 TEST_TAR_FORMAT=v7
10511 export TEST_TAR_FORMAT
10512 TAR_OPTIONS="-H v7"
10513 export TAR_OPTIONS
10514 rm -rf *
10515
10516 genfile -l 50000 --file file1
10517 genfile -l 1024 --file file2
10518 tar cf archive file1 file2
10519 tar f archive --delete file2
10520 tar tf archive) ) >"$at_stdout" 2>"$at_stderr"
10521 fi
10522 at_status=$?
10523 at_failed=false
10524 at_func_diff_devnull "$at_stderr" || at_failed=:
10525 echo >>"$at_stdout"; $as_echo "file1
10526 " | \
10527   $at_diff - "$at_stdout" || at_failed=:
10528 at_func_check_status 0 $at_status "$at_srcdir/delete01.at:26"
10529
10530 $at_failed && at_func_log_failure
10531 $at_traceon; }
10532
10533               { $at_traceoff
10534 $as_echo "$at_srcdir/delete01.at:26:
10535 mkdir oldgnu
10536 (cd oldgnu
10537 TEST_TAR_FORMAT=oldgnu
10538 export TEST_TAR_FORMAT
10539 TAR_OPTIONS=\"-H oldgnu\"
10540 export TAR_OPTIONS
10541 rm -rf *
10542
10543 genfile -l 50000 --file file1
10544 genfile -l 1024 --file file2
10545 tar cf archive file1 file2
10546 tar f archive --delete file2
10547 tar tf archive)"
10548 echo delete01.at:26 >"$at_check_line_file"
10549
10550 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
10551    false; }; then
10552   ( $at_traceon;
10553 mkdir oldgnu
10554 (cd oldgnu
10555 TEST_TAR_FORMAT=oldgnu
10556 export TEST_TAR_FORMAT
10557 TAR_OPTIONS="-H oldgnu"
10558 export TAR_OPTIONS
10559 rm -rf *
10560
10561 genfile -l 50000 --file file1
10562 genfile -l 1024 --file file2
10563 tar cf archive file1 file2
10564 tar f archive --delete file2
10565 tar tf archive) ) >"$at_stdout" 2>"$at_stder1"
10566   at_func_filter_trace $?
10567 else
10568   ( :;
10569 mkdir oldgnu
10570 (cd oldgnu
10571 TEST_TAR_FORMAT=oldgnu
10572 export TEST_TAR_FORMAT
10573 TAR_OPTIONS="-H oldgnu"
10574 export TAR_OPTIONS
10575 rm -rf *
10576
10577 genfile -l 50000 --file file1
10578 genfile -l 1024 --file file2
10579 tar cf archive file1 file2
10580 tar f archive --delete file2
10581 tar tf archive) ) >"$at_stdout" 2>"$at_stderr"
10582 fi
10583 at_status=$?
10584 at_failed=false
10585 at_func_diff_devnull "$at_stderr" || at_failed=:
10586 echo >>"$at_stdout"; $as_echo "file1
10587 " | \
10588   $at_diff - "$at_stdout" || at_failed=:
10589 at_func_check_status 0 $at_status "$at_srcdir/delete01.at:26"
10590
10591 $at_failed && at_func_log_failure
10592 $at_traceon; }
10593
10594               { $at_traceoff
10595 $as_echo "$at_srcdir/delete01.at:26:
10596 mkdir ustar
10597 (cd ustar
10598 TEST_TAR_FORMAT=ustar
10599 export TEST_TAR_FORMAT
10600 TAR_OPTIONS=\"-H ustar\"
10601 export TAR_OPTIONS
10602 rm -rf *
10603
10604 genfile -l 50000 --file file1
10605 genfile -l 1024 --file file2
10606 tar cf archive file1 file2
10607 tar f archive --delete file2
10608 tar tf archive)"
10609 echo delete01.at:26 >"$at_check_line_file"
10610
10611 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
10612    false; }; then
10613   ( $at_traceon;
10614 mkdir ustar
10615 (cd ustar
10616 TEST_TAR_FORMAT=ustar
10617 export TEST_TAR_FORMAT
10618 TAR_OPTIONS="-H ustar"
10619 export TAR_OPTIONS
10620 rm -rf *
10621
10622 genfile -l 50000 --file file1
10623 genfile -l 1024 --file file2
10624 tar cf archive file1 file2
10625 tar f archive --delete file2
10626 tar tf archive) ) >"$at_stdout" 2>"$at_stder1"
10627   at_func_filter_trace $?
10628 else
10629   ( :;
10630 mkdir ustar
10631 (cd ustar
10632 TEST_TAR_FORMAT=ustar
10633 export TEST_TAR_FORMAT
10634 TAR_OPTIONS="-H ustar"
10635 export TAR_OPTIONS
10636 rm -rf *
10637
10638 genfile -l 50000 --file file1
10639 genfile -l 1024 --file file2
10640 tar cf archive file1 file2
10641 tar f archive --delete file2
10642 tar tf archive) ) >"$at_stdout" 2>"$at_stderr"
10643 fi
10644 at_status=$?
10645 at_failed=false
10646 at_func_diff_devnull "$at_stderr" || at_failed=:
10647 echo >>"$at_stdout"; $as_echo "file1
10648 " | \
10649   $at_diff - "$at_stdout" || at_failed=:
10650 at_func_check_status 0 $at_status "$at_srcdir/delete01.at:26"
10651
10652 $at_failed && at_func_log_failure
10653 $at_traceon; }
10654
10655               { $at_traceoff
10656 $as_echo "$at_srcdir/delete01.at:26:
10657 mkdir posix
10658 (cd posix
10659 TEST_TAR_FORMAT=posix
10660 export TEST_TAR_FORMAT
10661 TAR_OPTIONS=\"-H posix\"
10662 export TAR_OPTIONS
10663 rm -rf *
10664
10665 genfile -l 50000 --file file1
10666 genfile -l 1024 --file file2
10667 tar cf archive file1 file2
10668 tar f archive --delete file2
10669 tar tf archive)"
10670 echo delete01.at:26 >"$at_check_line_file"
10671
10672 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
10673    false; }; then
10674   ( $at_traceon;
10675 mkdir posix
10676 (cd posix
10677 TEST_TAR_FORMAT=posix
10678 export TEST_TAR_FORMAT
10679 TAR_OPTIONS="-H posix"
10680 export TAR_OPTIONS
10681 rm -rf *
10682
10683 genfile -l 50000 --file file1
10684 genfile -l 1024 --file file2
10685 tar cf archive file1 file2
10686 tar f archive --delete file2
10687 tar tf archive) ) >"$at_stdout" 2>"$at_stder1"
10688   at_func_filter_trace $?
10689 else
10690   ( :;
10691 mkdir posix
10692 (cd posix
10693 TEST_TAR_FORMAT=posix
10694 export TEST_TAR_FORMAT
10695 TAR_OPTIONS="-H posix"
10696 export TAR_OPTIONS
10697 rm -rf *
10698
10699 genfile -l 50000 --file file1
10700 genfile -l 1024 --file file2
10701 tar cf archive file1 file2
10702 tar f archive --delete file2
10703 tar tf archive) ) >"$at_stdout" 2>"$at_stderr"
10704 fi
10705 at_status=$?
10706 at_failed=false
10707 at_func_diff_devnull "$at_stderr" || at_failed=:
10708 echo >>"$at_stdout"; $as_echo "file1
10709 " | \
10710   $at_diff - "$at_stdout" || at_failed=:
10711 at_func_check_status 0 $at_status "$at_srcdir/delete01.at:26"
10712
10713 $at_failed && at_func_log_failure
10714 $at_traceon; }
10715
10716               { $at_traceoff
10717 $as_echo "$at_srcdir/delete01.at:26:
10718 mkdir gnu
10719 (cd gnu
10720 TEST_TAR_FORMAT=gnu
10721 export TEST_TAR_FORMAT
10722 TAR_OPTIONS=\"-H gnu\"
10723 export TAR_OPTIONS
10724 rm -rf *
10725
10726 genfile -l 50000 --file file1
10727 genfile -l 1024 --file file2
10728 tar cf archive file1 file2
10729 tar f archive --delete file2
10730 tar tf archive)"
10731 echo delete01.at:26 >"$at_check_line_file"
10732
10733 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
10734    false; }; then
10735   ( $at_traceon;
10736 mkdir gnu
10737 (cd gnu
10738 TEST_TAR_FORMAT=gnu
10739 export TEST_TAR_FORMAT
10740 TAR_OPTIONS="-H gnu"
10741 export TAR_OPTIONS
10742 rm -rf *
10743
10744 genfile -l 50000 --file file1
10745 genfile -l 1024 --file file2
10746 tar cf archive file1 file2
10747 tar f archive --delete file2
10748 tar tf archive) ) >"$at_stdout" 2>"$at_stder1"
10749   at_func_filter_trace $?
10750 else
10751   ( :;
10752 mkdir gnu
10753 (cd gnu
10754 TEST_TAR_FORMAT=gnu
10755 export TEST_TAR_FORMAT
10756 TAR_OPTIONS="-H gnu"
10757 export TAR_OPTIONS
10758 rm -rf *
10759
10760 genfile -l 50000 --file file1
10761 genfile -l 1024 --file file2
10762 tar cf archive file1 file2
10763 tar f archive --delete file2
10764 tar tf archive) ) >"$at_stdout" 2>"$at_stderr"
10765 fi
10766 at_status=$?
10767 at_failed=false
10768 at_func_diff_devnull "$at_stderr" || at_failed=:
10769 echo >>"$at_stdout"; $as_echo "file1
10770 " | \
10771   $at_diff - "$at_stdout" || at_failed=:
10772 at_func_check_status 0 $at_status "$at_srcdir/delete01.at:26"
10773
10774 $at_failed && at_func_log_failure
10775 $at_traceon; }
10776
10777
10778
10779
10780   $at_traceoff
10781   $at_times_p && times >"$at_times_file"
10782 ) 5>&1 2>&1 | eval $at_tee_pipe
10783 at_status=`cat "$at_status_file"`
10784 #AT_STOP_22
10785 #AT_START_23
10786 # 23. delete02.at:23: deleting a member from stdin archive
10787 at_setup_line='delete02.at:23'
10788 at_desc="deleting a member from stdin archive"
10789 $at_quiet $as_echo_n " 23: $at_desc           "
10790 at_xfail=no
10791       test -f $XFAILFILE && at_xfail=yes
10792 echo "#                             -*- compilation -*-" >> "$at_group_log"
10793 (
10794   $as_echo "23. delete02.at:23: testing ..."
10795   $at_traceon
10796
10797
10798
10799
10800
10801   { $at_traceoff
10802 $as_echo "$at_srcdir/delete02.at:26:
10803 mkdir v7
10804 (cd v7
10805 TEST_TAR_FORMAT=v7
10806 export TEST_TAR_FORMAT
10807 TAR_OPTIONS=\"-H v7\"
10808 export TAR_OPTIONS
10809 rm -rf *
10810
10811 genfile -l 3073 -p zeros --file 1
10812 cp 1 2
10813 cp 2 3
10814 tar cf archive 1 2 3
10815 tar tf archive
10816 cat archive | tar f - --delete 2 > archive2
10817 echo separator
10818 tar tf archive2)"
10819 echo delete02.at:26 >"$at_check_line_file"
10820
10821 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
10822    false; }; then
10823   ( $at_traceon;
10824 mkdir v7
10825 (cd v7
10826 TEST_TAR_FORMAT=v7
10827 export TEST_TAR_FORMAT
10828 TAR_OPTIONS="-H v7"
10829 export TAR_OPTIONS
10830 rm -rf *
10831
10832 genfile -l 3073 -p zeros --file 1
10833 cp 1 2
10834 cp 2 3
10835 tar cf archive 1 2 3
10836 tar tf archive
10837 cat archive | tar f - --delete 2 > archive2
10838 echo separator
10839 tar tf archive2) ) >"$at_stdout" 2>"$at_stder1"
10840   at_func_filter_trace $?
10841 else
10842   ( :;
10843 mkdir v7
10844 (cd v7
10845 TEST_TAR_FORMAT=v7
10846 export TEST_TAR_FORMAT
10847 TAR_OPTIONS="-H v7"
10848 export TAR_OPTIONS
10849 rm -rf *
10850
10851 genfile -l 3073 -p zeros --file 1
10852 cp 1 2
10853 cp 2 3
10854 tar cf archive 1 2 3
10855 tar tf archive
10856 cat archive | tar f - --delete 2 > archive2
10857 echo separator
10858 tar tf archive2) ) >"$at_stdout" 2>"$at_stderr"
10859 fi
10860 at_status=$?
10861 at_failed=false
10862 at_func_diff_devnull "$at_stderr" || at_failed=:
10863 echo >>"$at_stdout"; $as_echo "1
10864 2
10865 3
10866 separator
10867 1
10868 3
10869 " | \
10870   $at_diff - "$at_stdout" || at_failed=:
10871 at_func_check_status 0 $at_status "$at_srcdir/delete02.at:26"
10872
10873 $at_failed && at_func_log_failure
10874 $at_traceon; }
10875
10876               { $at_traceoff
10877 $as_echo "$at_srcdir/delete02.at:26:
10878 mkdir oldgnu
10879 (cd oldgnu
10880 TEST_TAR_FORMAT=oldgnu
10881 export TEST_TAR_FORMAT
10882 TAR_OPTIONS=\"-H oldgnu\"
10883 export TAR_OPTIONS
10884 rm -rf *
10885
10886 genfile -l 3073 -p zeros --file 1
10887 cp 1 2
10888 cp 2 3
10889 tar cf archive 1 2 3
10890 tar tf archive
10891 cat archive | tar f - --delete 2 > archive2
10892 echo separator
10893 tar tf archive2)"
10894 echo delete02.at:26 >"$at_check_line_file"
10895
10896 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
10897    false; }; then
10898   ( $at_traceon;
10899 mkdir oldgnu
10900 (cd oldgnu
10901 TEST_TAR_FORMAT=oldgnu
10902 export TEST_TAR_FORMAT
10903 TAR_OPTIONS="-H oldgnu"
10904 export TAR_OPTIONS
10905 rm -rf *
10906
10907 genfile -l 3073 -p zeros --file 1
10908 cp 1 2
10909 cp 2 3
10910 tar cf archive 1 2 3
10911 tar tf archive
10912 cat archive | tar f - --delete 2 > archive2
10913 echo separator
10914 tar tf archive2) ) >"$at_stdout" 2>"$at_stder1"
10915   at_func_filter_trace $?
10916 else
10917   ( :;
10918 mkdir oldgnu
10919 (cd oldgnu
10920 TEST_TAR_FORMAT=oldgnu
10921 export TEST_TAR_FORMAT
10922 TAR_OPTIONS="-H oldgnu"
10923 export TAR_OPTIONS
10924 rm -rf *
10925
10926 genfile -l 3073 -p zeros --file 1
10927 cp 1 2
10928 cp 2 3
10929 tar cf archive 1 2 3
10930 tar tf archive
10931 cat archive | tar f - --delete 2 > archive2
10932 echo separator
10933 tar tf archive2) ) >"$at_stdout" 2>"$at_stderr"
10934 fi
10935 at_status=$?
10936 at_failed=false
10937 at_func_diff_devnull "$at_stderr" || at_failed=:
10938 echo >>"$at_stdout"; $as_echo "1
10939 2
10940 3
10941 separator
10942 1
10943 3
10944 " | \
10945   $at_diff - "$at_stdout" || at_failed=:
10946 at_func_check_status 0 $at_status "$at_srcdir/delete02.at:26"
10947
10948 $at_failed && at_func_log_failure
10949 $at_traceon; }
10950
10951               { $at_traceoff
10952 $as_echo "$at_srcdir/delete02.at:26:
10953 mkdir ustar
10954 (cd ustar
10955 TEST_TAR_FORMAT=ustar
10956 export TEST_TAR_FORMAT
10957 TAR_OPTIONS=\"-H ustar\"
10958 export TAR_OPTIONS
10959 rm -rf *
10960
10961 genfile -l 3073 -p zeros --file 1
10962 cp 1 2
10963 cp 2 3
10964 tar cf archive 1 2 3
10965 tar tf archive
10966 cat archive | tar f - --delete 2 > archive2
10967 echo separator
10968 tar tf archive2)"
10969 echo delete02.at:26 >"$at_check_line_file"
10970
10971 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
10972    false; }; then
10973   ( $at_traceon;
10974 mkdir ustar
10975 (cd ustar
10976 TEST_TAR_FORMAT=ustar
10977 export TEST_TAR_FORMAT
10978 TAR_OPTIONS="-H ustar"
10979 export TAR_OPTIONS
10980 rm -rf *
10981
10982 genfile -l 3073 -p zeros --file 1
10983 cp 1 2
10984 cp 2 3
10985 tar cf archive 1 2 3
10986 tar tf archive
10987 cat archive | tar f - --delete 2 > archive2
10988 echo separator
10989 tar tf archive2) ) >"$at_stdout" 2>"$at_stder1"
10990   at_func_filter_trace $?
10991 else
10992   ( :;
10993 mkdir ustar
10994 (cd ustar
10995 TEST_TAR_FORMAT=ustar
10996 export TEST_TAR_FORMAT
10997 TAR_OPTIONS="-H ustar"
10998 export TAR_OPTIONS
10999 rm -rf *
11000
11001 genfile -l 3073 -p zeros --file 1
11002 cp 1 2
11003 cp 2 3
11004 tar cf archive 1 2 3
11005 tar tf archive
11006 cat archive | tar f - --delete 2 > archive2
11007 echo separator
11008 tar tf archive2) ) >"$at_stdout" 2>"$at_stderr"
11009 fi
11010 at_status=$?
11011 at_failed=false
11012 at_func_diff_devnull "$at_stderr" || at_failed=:
11013 echo >>"$at_stdout"; $as_echo "1
11014 2
11015 3
11016 separator
11017 1
11018 3
11019 " | \
11020   $at_diff - "$at_stdout" || at_failed=:
11021 at_func_check_status 0 $at_status "$at_srcdir/delete02.at:26"
11022
11023 $at_failed && at_func_log_failure
11024 $at_traceon; }
11025
11026               { $at_traceoff
11027 $as_echo "$at_srcdir/delete02.at:26:
11028 mkdir posix
11029 (cd posix
11030 TEST_TAR_FORMAT=posix
11031 export TEST_TAR_FORMAT
11032 TAR_OPTIONS=\"-H posix\"
11033 export TAR_OPTIONS
11034 rm -rf *
11035
11036 genfile -l 3073 -p zeros --file 1
11037 cp 1 2
11038 cp 2 3
11039 tar cf archive 1 2 3
11040 tar tf archive
11041 cat archive | tar f - --delete 2 > archive2
11042 echo separator
11043 tar tf archive2)"
11044 echo delete02.at:26 >"$at_check_line_file"
11045
11046 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
11047    false; }; then
11048   ( $at_traceon;
11049 mkdir posix
11050 (cd posix
11051 TEST_TAR_FORMAT=posix
11052 export TEST_TAR_FORMAT
11053 TAR_OPTIONS="-H posix"
11054 export TAR_OPTIONS
11055 rm -rf *
11056
11057 genfile -l 3073 -p zeros --file 1
11058 cp 1 2
11059 cp 2 3
11060 tar cf archive 1 2 3
11061 tar tf archive
11062 cat archive | tar f - --delete 2 > archive2
11063 echo separator
11064 tar tf archive2) ) >"$at_stdout" 2>"$at_stder1"
11065   at_func_filter_trace $?
11066 else
11067   ( :;
11068 mkdir posix
11069 (cd posix
11070 TEST_TAR_FORMAT=posix
11071 export TEST_TAR_FORMAT
11072 TAR_OPTIONS="-H posix"
11073 export TAR_OPTIONS
11074 rm -rf *
11075
11076 genfile -l 3073 -p zeros --file 1
11077 cp 1 2
11078 cp 2 3
11079 tar cf archive 1 2 3
11080 tar tf archive
11081 cat archive | tar f - --delete 2 > archive2
11082 echo separator
11083 tar tf archive2) ) >"$at_stdout" 2>"$at_stderr"
11084 fi
11085 at_status=$?
11086 at_failed=false
11087 at_func_diff_devnull "$at_stderr" || at_failed=:
11088 echo >>"$at_stdout"; $as_echo "1
11089 2
11090 3
11091 separator
11092 1
11093 3
11094 " | \
11095   $at_diff - "$at_stdout" || at_failed=:
11096 at_func_check_status 0 $at_status "$at_srcdir/delete02.at:26"
11097
11098 $at_failed && at_func_log_failure
11099 $at_traceon; }
11100
11101               { $at_traceoff
11102 $as_echo "$at_srcdir/delete02.at:26:
11103 mkdir gnu
11104 (cd gnu
11105 TEST_TAR_FORMAT=gnu
11106 export TEST_TAR_FORMAT
11107 TAR_OPTIONS=\"-H gnu\"
11108 export TAR_OPTIONS
11109 rm -rf *
11110
11111 genfile -l 3073 -p zeros --file 1
11112 cp 1 2
11113 cp 2 3
11114 tar cf archive 1 2 3
11115 tar tf archive
11116 cat archive | tar f - --delete 2 > archive2
11117 echo separator
11118 tar tf archive2)"
11119 echo delete02.at:26 >"$at_check_line_file"
11120
11121 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
11122    false; }; then
11123   ( $at_traceon;
11124 mkdir gnu
11125 (cd gnu
11126 TEST_TAR_FORMAT=gnu
11127 export TEST_TAR_FORMAT
11128 TAR_OPTIONS="-H gnu"
11129 export TAR_OPTIONS
11130 rm -rf *
11131
11132 genfile -l 3073 -p zeros --file 1
11133 cp 1 2
11134 cp 2 3
11135 tar cf archive 1 2 3
11136 tar tf archive
11137 cat archive | tar f - --delete 2 > archive2
11138 echo separator
11139 tar tf archive2) ) >"$at_stdout" 2>"$at_stder1"
11140   at_func_filter_trace $?
11141 else
11142   ( :;
11143 mkdir gnu
11144 (cd gnu
11145 TEST_TAR_FORMAT=gnu
11146 export TEST_TAR_FORMAT
11147 TAR_OPTIONS="-H gnu"
11148 export TAR_OPTIONS
11149 rm -rf *
11150
11151 genfile -l 3073 -p zeros --file 1
11152 cp 1 2
11153 cp 2 3
11154 tar cf archive 1 2 3
11155 tar tf archive
11156 cat archive | tar f - --delete 2 > archive2
11157 echo separator
11158 tar tf archive2) ) >"$at_stdout" 2>"$at_stderr"
11159 fi
11160 at_status=$?
11161 at_failed=false
11162 at_func_diff_devnull "$at_stderr" || at_failed=:
11163 echo >>"$at_stdout"; $as_echo "1
11164 2
11165 3
11166 separator
11167 1
11168 3
11169 " | \
11170   $at_diff - "$at_stdout" || at_failed=:
11171 at_func_check_status 0 $at_status "$at_srcdir/delete02.at:26"
11172
11173 $at_failed && at_func_log_failure
11174 $at_traceon; }
11175
11176
11177
11178
11179   $at_traceoff
11180   $at_times_p && times >"$at_times_file"
11181 ) 5>&1 2>&1 | eval $at_tee_pipe
11182 at_status=`cat "$at_status_file"`
11183 #AT_STOP_23
11184 #AT_START_24
11185 # 24. delete03.at:21: deleting members with long names
11186 at_setup_line='delete03.at:21'
11187 at_desc="deleting members with long names"
11188 $at_quiet $as_echo_n " 24: $at_desc               "
11189 at_xfail=no
11190       test -f $XFAILFILE && at_xfail=yes
11191 echo "#                             -*- compilation -*-" >> "$at_group_log"
11192 (
11193   $as_echo "24. delete03.at:21: testing ..."
11194   $at_traceon
11195
11196
11197
11198
11199
11200
11201
11202   { $at_traceoff
11203 $as_echo "$at_srcdir/delete03.at:26:
11204 mkdir gnu
11205 (cd gnu
11206 TEST_TAR_FORMAT=gnu
11207 export TEST_TAR_FORMAT
11208 TAR_OPTIONS=\"-H gnu\"
11209 export TAR_OPTIONS
11210 rm -rf *
11211
11212
11213 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
11214 rm -f \$prefix*
11215 for i in 1 2 3 4 5 6 7 8 9
11216 do touch \$prefix\$i
11217 done
11218 tar -cf archive ./\$prefix* &&
11219  tar --delete -f archive ./\${prefix}5 &&
11220  tar -tf archive
11221 )"
11222 echo delete03.at:26 >"$at_check_line_file"
11223
11224 if { echo 'Not enabling shell tracing (command contains a ${...} parameter expansion)'
11225    false; }; then
11226   ( $at_traceon;
11227 mkdir gnu
11228 (cd gnu
11229 TEST_TAR_FORMAT=gnu
11230 export TEST_TAR_FORMAT
11231 TAR_OPTIONS="-H gnu"
11232 export TAR_OPTIONS
11233 rm -rf *
11234
11235
11236 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
11237 rm -f $prefix*
11238 for i in 1 2 3 4 5 6 7 8 9
11239 do touch $prefix$i
11240 done
11241 tar -cf archive ./$prefix* &&
11242  tar --delete -f archive ./${prefix}5 &&
11243  tar -tf archive
11244 ) ) >"$at_stdout" 2>"$at_stder1"
11245   at_func_filter_trace $?
11246 else
11247   ( :;
11248 mkdir gnu
11249 (cd gnu
11250 TEST_TAR_FORMAT=gnu
11251 export TEST_TAR_FORMAT
11252 TAR_OPTIONS="-H gnu"
11253 export TAR_OPTIONS
11254 rm -rf *
11255
11256
11257 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
11258 rm -f $prefix*
11259 for i in 1 2 3 4 5 6 7 8 9
11260 do touch $prefix$i
11261 done
11262 tar -cf archive ./$prefix* &&
11263  tar --delete -f archive ./${prefix}5 &&
11264  tar -tf archive
11265 ) ) >"$at_stdout" 2>"$at_stderr"
11266 fi
11267 at_status=$?
11268 at_failed=false
11269 at_func_diff_devnull "$at_stderr" || at_failed=:
11270 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
11271 ./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
11272 ./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
11273 ./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
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_formatXX6
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_formatXX7
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_formatXX8
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_formatXX9
11278 " | \
11279   $at_diff - "$at_stdout" || at_failed=:
11280 at_func_check_status 0 $at_status "$at_srcdir/delete03.at:26"
11281
11282 $at_failed && at_func_log_failure
11283 $at_traceon; }
11284
11285               { $at_traceoff
11286 $as_echo "$at_srcdir/delete03.at:26:
11287 mkdir oldgnu
11288 (cd oldgnu
11289 TEST_TAR_FORMAT=oldgnu
11290 export TEST_TAR_FORMAT
11291 TAR_OPTIONS=\"-H oldgnu\"
11292 export TAR_OPTIONS
11293 rm -rf *
11294
11295
11296 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
11297 rm -f \$prefix*
11298 for i in 1 2 3 4 5 6 7 8 9
11299 do touch \$prefix\$i
11300 done
11301 tar -cf archive ./\$prefix* &&
11302  tar --delete -f archive ./\${prefix}5 &&
11303  tar -tf archive
11304 )"
11305 echo delete03.at:26 >"$at_check_line_file"
11306
11307 if { echo 'Not enabling shell tracing (command contains a ${...} parameter expansion)'
11308    false; }; then
11309   ( $at_traceon;
11310 mkdir oldgnu
11311 (cd oldgnu
11312 TEST_TAR_FORMAT=oldgnu
11313 export TEST_TAR_FORMAT
11314 TAR_OPTIONS="-H oldgnu"
11315 export TAR_OPTIONS
11316 rm -rf *
11317
11318
11319 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
11320 rm -f $prefix*
11321 for i in 1 2 3 4 5 6 7 8 9
11322 do touch $prefix$i
11323 done
11324 tar -cf archive ./$prefix* &&
11325  tar --delete -f archive ./${prefix}5 &&
11326  tar -tf archive
11327 ) ) >"$at_stdout" 2>"$at_stder1"
11328   at_func_filter_trace $?
11329 else
11330   ( :;
11331 mkdir oldgnu
11332 (cd oldgnu
11333 TEST_TAR_FORMAT=oldgnu
11334 export TEST_TAR_FORMAT
11335 TAR_OPTIONS="-H oldgnu"
11336 export TAR_OPTIONS
11337 rm -rf *
11338
11339
11340 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
11341 rm -f $prefix*
11342 for i in 1 2 3 4 5 6 7 8 9
11343 do touch $prefix$i
11344 done
11345 tar -cf archive ./$prefix* &&
11346  tar --delete -f archive ./${prefix}5 &&
11347  tar -tf archive
11348 ) ) >"$at_stdout" 2>"$at_stderr"
11349 fi
11350 at_status=$?
11351 at_failed=false
11352 at_func_diff_devnull "$at_stderr" || at_failed=:
11353 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
11354 ./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
11355 ./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
11356 ./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
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_formatXX6
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_formatXX7
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_formatXX8
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_formatXX9
11361 " | \
11362   $at_diff - "$at_stdout" || at_failed=:
11363 at_func_check_status 0 $at_status "$at_srcdir/delete03.at:26"
11364
11365 $at_failed && at_func_log_failure
11366 $at_traceon; }
11367
11368               { $at_traceoff
11369 $as_echo "$at_srcdir/delete03.at:26:
11370 mkdir posix
11371 (cd posix
11372 TEST_TAR_FORMAT=posix
11373 export TEST_TAR_FORMAT
11374 TAR_OPTIONS=\"-H posix\"
11375 export TAR_OPTIONS
11376 rm -rf *
11377
11378
11379 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
11380 rm -f \$prefix*
11381 for i in 1 2 3 4 5 6 7 8 9
11382 do touch \$prefix\$i
11383 done
11384 tar -cf archive ./\$prefix* &&
11385  tar --delete -f archive ./\${prefix}5 &&
11386  tar -tf archive
11387 )"
11388 echo delete03.at:26 >"$at_check_line_file"
11389
11390 if { echo 'Not enabling shell tracing (command contains a ${...} parameter expansion)'
11391    false; }; then
11392   ( $at_traceon;
11393 mkdir posix
11394 (cd posix
11395 TEST_TAR_FORMAT=posix
11396 export TEST_TAR_FORMAT
11397 TAR_OPTIONS="-H posix"
11398 export TAR_OPTIONS
11399 rm -rf *
11400
11401
11402 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
11403 rm -f $prefix*
11404 for i in 1 2 3 4 5 6 7 8 9
11405 do touch $prefix$i
11406 done
11407 tar -cf archive ./$prefix* &&
11408  tar --delete -f archive ./${prefix}5 &&
11409  tar -tf archive
11410 ) ) >"$at_stdout" 2>"$at_stder1"
11411   at_func_filter_trace $?
11412 else
11413   ( :;
11414 mkdir posix
11415 (cd posix
11416 TEST_TAR_FORMAT=posix
11417 export TEST_TAR_FORMAT
11418 TAR_OPTIONS="-H posix"
11419 export TAR_OPTIONS
11420 rm -rf *
11421
11422
11423 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
11424 rm -f $prefix*
11425 for i in 1 2 3 4 5 6 7 8 9
11426 do touch $prefix$i
11427 done
11428 tar -cf archive ./$prefix* &&
11429  tar --delete -f archive ./${prefix}5 &&
11430  tar -tf archive
11431 ) ) >"$at_stdout" 2>"$at_stderr"
11432 fi
11433 at_status=$?
11434 at_failed=false
11435 at_func_diff_devnull "$at_stderr" || at_failed=:
11436 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
11437 ./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
11438 ./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
11439 ./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
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_formatXX6
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_formatXX7
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_formatXX8
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_formatXX9
11444 " | \
11445   $at_diff - "$at_stdout" || at_failed=:
11446 at_func_check_status 0 $at_status "$at_srcdir/delete03.at:26"
11447
11448 $at_failed && at_func_log_failure
11449 $at_traceon; }
11450
11451
11452
11453
11454   $at_traceoff
11455   $at_times_p && times >"$at_times_file"
11456 ) 5>&1 2>&1 | eval $at_tee_pipe
11457 at_status=`cat "$at_status_file"`
11458 #AT_STOP_24
11459 #AT_START_25
11460 # 25. delete04.at:23: deleting a large last member
11461 at_setup_line='delete04.at:23'
11462 at_desc="deleting a large last member"
11463 $at_quiet $as_echo_n " 25: $at_desc                   "
11464 at_xfail=no
11465       test -f $XFAILFILE && at_xfail=yes
11466 echo "#                             -*- compilation -*-" >> "$at_group_log"
11467 (
11468   $as_echo "25. delete04.at:23: testing ..."
11469   $at_traceon
11470
11471
11472
11473
11474
11475   { $at_traceoff
11476 $as_echo "$at_srcdir/delete04.at:26:
11477 mkdir v7
11478 (cd v7
11479 TEST_TAR_FORMAT=v7
11480 export TEST_TAR_FORMAT
11481 TAR_OPTIONS=\"-H v7\"
11482 export TAR_OPTIONS
11483 rm -rf *
11484
11485 genfile -l      3 -f file1
11486 genfile -l      5 -f file2
11487 genfile -l      3 -f file3
11488 genfile -l      6 -f file4
11489 genfile -l     24 -f file5
11490 genfile -l     13 -f file6
11491 genfile -l   1385 -f file7
11492 genfile -l     30 -f file8
11493 genfile -l     10 -f file9
11494 genfile -l 256000 -f file10
11495 tar cf archive file1 file2 file3 file4 file5 file6 file7 file8 file9 file10
11496 tar f archive --delete file10
11497 tar tf archive
11498 )"
11499 echo delete04.at:26 >"$at_check_line_file"
11500
11501 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
11502    false; }; then
11503   ( $at_traceon;
11504 mkdir v7
11505 (cd v7
11506 TEST_TAR_FORMAT=v7
11507 export TEST_TAR_FORMAT
11508 TAR_OPTIONS="-H v7"
11509 export TAR_OPTIONS
11510 rm -rf *
11511
11512 genfile -l      3 -f file1
11513 genfile -l      5 -f file2
11514 genfile -l      3 -f file3
11515 genfile -l      6 -f file4
11516 genfile -l     24 -f file5
11517 genfile -l     13 -f file6
11518 genfile -l   1385 -f file7
11519 genfile -l     30 -f file8
11520 genfile -l     10 -f file9
11521 genfile -l 256000 -f file10
11522 tar cf archive file1 file2 file3 file4 file5 file6 file7 file8 file9 file10
11523 tar f archive --delete file10
11524 tar tf archive
11525 ) ) >"$at_stdout" 2>"$at_stder1"
11526   at_func_filter_trace $?
11527 else
11528   ( :;
11529 mkdir v7
11530 (cd v7
11531 TEST_TAR_FORMAT=v7
11532 export TEST_TAR_FORMAT
11533 TAR_OPTIONS="-H v7"
11534 export TAR_OPTIONS
11535 rm -rf *
11536
11537 genfile -l      3 -f file1
11538 genfile -l      5 -f file2
11539 genfile -l      3 -f file3
11540 genfile -l      6 -f file4
11541 genfile -l     24 -f file5
11542 genfile -l     13 -f file6
11543 genfile -l   1385 -f file7
11544 genfile -l     30 -f file8
11545 genfile -l     10 -f file9
11546 genfile -l 256000 -f file10
11547 tar cf archive file1 file2 file3 file4 file5 file6 file7 file8 file9 file10
11548 tar f archive --delete file10
11549 tar tf archive
11550 ) ) >"$at_stdout" 2>"$at_stderr"
11551 fi
11552 at_status=$?
11553 at_failed=false
11554 at_func_diff_devnull "$at_stderr" || at_failed=:
11555 echo >>"$at_stdout"; $as_echo "file1
11556 file2
11557 file3
11558 file4
11559 file5
11560 file6
11561 file7
11562 file8
11563 file9
11564 " | \
11565   $at_diff - "$at_stdout" || at_failed=:
11566 at_func_check_status 0 $at_status "$at_srcdir/delete04.at:26"
11567
11568 $at_failed && at_func_log_failure
11569 $at_traceon; }
11570
11571               { $at_traceoff
11572 $as_echo "$at_srcdir/delete04.at:26:
11573 mkdir oldgnu
11574 (cd oldgnu
11575 TEST_TAR_FORMAT=oldgnu
11576 export TEST_TAR_FORMAT
11577 TAR_OPTIONS=\"-H oldgnu\"
11578 export TAR_OPTIONS
11579 rm -rf *
11580
11581 genfile -l      3 -f file1
11582 genfile -l      5 -f file2
11583 genfile -l      3 -f file3
11584 genfile -l      6 -f file4
11585 genfile -l     24 -f file5
11586 genfile -l     13 -f file6
11587 genfile -l   1385 -f file7
11588 genfile -l     30 -f file8
11589 genfile -l     10 -f file9
11590 genfile -l 256000 -f file10
11591 tar cf archive file1 file2 file3 file4 file5 file6 file7 file8 file9 file10
11592 tar f archive --delete file10
11593 tar tf archive
11594 )"
11595 echo delete04.at:26 >"$at_check_line_file"
11596
11597 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
11598    false; }; then
11599   ( $at_traceon;
11600 mkdir oldgnu
11601 (cd oldgnu
11602 TEST_TAR_FORMAT=oldgnu
11603 export TEST_TAR_FORMAT
11604 TAR_OPTIONS="-H oldgnu"
11605 export TAR_OPTIONS
11606 rm -rf *
11607
11608 genfile -l      3 -f file1
11609 genfile -l      5 -f file2
11610 genfile -l      3 -f file3
11611 genfile -l      6 -f file4
11612 genfile -l     24 -f file5
11613 genfile -l     13 -f file6
11614 genfile -l   1385 -f file7
11615 genfile -l     30 -f file8
11616 genfile -l     10 -f file9
11617 genfile -l 256000 -f file10
11618 tar cf archive file1 file2 file3 file4 file5 file6 file7 file8 file9 file10
11619 tar f archive --delete file10
11620 tar tf archive
11621 ) ) >"$at_stdout" 2>"$at_stder1"
11622   at_func_filter_trace $?
11623 else
11624   ( :;
11625 mkdir oldgnu
11626 (cd oldgnu
11627 TEST_TAR_FORMAT=oldgnu
11628 export TEST_TAR_FORMAT
11629 TAR_OPTIONS="-H oldgnu"
11630 export TAR_OPTIONS
11631 rm -rf *
11632
11633 genfile -l      3 -f file1
11634 genfile -l      5 -f file2
11635 genfile -l      3 -f file3
11636 genfile -l      6 -f file4
11637 genfile -l     24 -f file5
11638 genfile -l     13 -f file6
11639 genfile -l   1385 -f file7
11640 genfile -l     30 -f file8
11641 genfile -l     10 -f file9
11642 genfile -l 256000 -f file10
11643 tar cf archive file1 file2 file3 file4 file5 file6 file7 file8 file9 file10
11644 tar f archive --delete file10
11645 tar tf archive
11646 ) ) >"$at_stdout" 2>"$at_stderr"
11647 fi
11648 at_status=$?
11649 at_failed=false
11650 at_func_diff_devnull "$at_stderr" || at_failed=:
11651 echo >>"$at_stdout"; $as_echo "file1
11652 file2
11653 file3
11654 file4
11655 file5
11656 file6
11657 file7
11658 file8
11659 file9
11660 " | \
11661   $at_diff - "$at_stdout" || at_failed=:
11662 at_func_check_status 0 $at_status "$at_srcdir/delete04.at:26"
11663
11664 $at_failed && at_func_log_failure
11665 $at_traceon; }
11666
11667               { $at_traceoff
11668 $as_echo "$at_srcdir/delete04.at:26:
11669 mkdir ustar
11670 (cd ustar
11671 TEST_TAR_FORMAT=ustar
11672 export TEST_TAR_FORMAT
11673 TAR_OPTIONS=\"-H ustar\"
11674 export TAR_OPTIONS
11675 rm -rf *
11676
11677 genfile -l      3 -f file1
11678 genfile -l      5 -f file2
11679 genfile -l      3 -f file3
11680 genfile -l      6 -f file4
11681 genfile -l     24 -f file5
11682 genfile -l     13 -f file6
11683 genfile -l   1385 -f file7
11684 genfile -l     30 -f file8
11685 genfile -l     10 -f file9
11686 genfile -l 256000 -f file10
11687 tar cf archive file1 file2 file3 file4 file5 file6 file7 file8 file9 file10
11688 tar f archive --delete file10
11689 tar tf archive
11690 )"
11691 echo delete04.at:26 >"$at_check_line_file"
11692
11693 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
11694    false; }; then
11695   ( $at_traceon;
11696 mkdir ustar
11697 (cd ustar
11698 TEST_TAR_FORMAT=ustar
11699 export TEST_TAR_FORMAT
11700 TAR_OPTIONS="-H ustar"
11701 export TAR_OPTIONS
11702 rm -rf *
11703
11704 genfile -l      3 -f file1
11705 genfile -l      5 -f file2
11706 genfile -l      3 -f file3
11707 genfile -l      6 -f file4
11708 genfile -l     24 -f file5
11709 genfile -l     13 -f file6
11710 genfile -l   1385 -f file7
11711 genfile -l     30 -f file8
11712 genfile -l     10 -f file9
11713 genfile -l 256000 -f file10
11714 tar cf archive file1 file2 file3 file4 file5 file6 file7 file8 file9 file10
11715 tar f archive --delete file10
11716 tar tf archive
11717 ) ) >"$at_stdout" 2>"$at_stder1"
11718   at_func_filter_trace $?
11719 else
11720   ( :;
11721 mkdir ustar
11722 (cd ustar
11723 TEST_TAR_FORMAT=ustar
11724 export TEST_TAR_FORMAT
11725 TAR_OPTIONS="-H ustar"
11726 export TAR_OPTIONS
11727 rm -rf *
11728
11729 genfile -l      3 -f file1
11730 genfile -l      5 -f file2
11731 genfile -l      3 -f file3
11732 genfile -l      6 -f file4
11733 genfile -l     24 -f file5
11734 genfile -l     13 -f file6
11735 genfile -l   1385 -f file7
11736 genfile -l     30 -f file8
11737 genfile -l     10 -f file9
11738 genfile -l 256000 -f file10
11739 tar cf archive file1 file2 file3 file4 file5 file6 file7 file8 file9 file10
11740 tar f archive --delete file10
11741 tar tf archive
11742 ) ) >"$at_stdout" 2>"$at_stderr"
11743 fi
11744 at_status=$?
11745 at_failed=false
11746 at_func_diff_devnull "$at_stderr" || at_failed=:
11747 echo >>"$at_stdout"; $as_echo "file1
11748 file2
11749 file3
11750 file4
11751 file5
11752 file6
11753 file7
11754 file8
11755 file9
11756 " | \
11757   $at_diff - "$at_stdout" || at_failed=:
11758 at_func_check_status 0 $at_status "$at_srcdir/delete04.at:26"
11759
11760 $at_failed && at_func_log_failure
11761 $at_traceon; }
11762
11763               { $at_traceoff
11764 $as_echo "$at_srcdir/delete04.at:26:
11765 mkdir posix
11766 (cd posix
11767 TEST_TAR_FORMAT=posix
11768 export TEST_TAR_FORMAT
11769 TAR_OPTIONS=\"-H posix\"
11770 export TAR_OPTIONS
11771 rm -rf *
11772
11773 genfile -l      3 -f file1
11774 genfile -l      5 -f file2
11775 genfile -l      3 -f file3
11776 genfile -l      6 -f file4
11777 genfile -l     24 -f file5
11778 genfile -l     13 -f file6
11779 genfile -l   1385 -f file7
11780 genfile -l     30 -f file8
11781 genfile -l     10 -f file9
11782 genfile -l 256000 -f file10
11783 tar cf archive file1 file2 file3 file4 file5 file6 file7 file8 file9 file10
11784 tar f archive --delete file10
11785 tar tf archive
11786 )"
11787 echo delete04.at:26 >"$at_check_line_file"
11788
11789 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
11790    false; }; then
11791   ( $at_traceon;
11792 mkdir posix
11793 (cd posix
11794 TEST_TAR_FORMAT=posix
11795 export TEST_TAR_FORMAT
11796 TAR_OPTIONS="-H posix"
11797 export TAR_OPTIONS
11798 rm -rf *
11799
11800 genfile -l      3 -f file1
11801 genfile -l      5 -f file2
11802 genfile -l      3 -f file3
11803 genfile -l      6 -f file4
11804 genfile -l     24 -f file5
11805 genfile -l     13 -f file6
11806 genfile -l   1385 -f file7
11807 genfile -l     30 -f file8
11808 genfile -l     10 -f file9
11809 genfile -l 256000 -f file10
11810 tar cf archive file1 file2 file3 file4 file5 file6 file7 file8 file9 file10
11811 tar f archive --delete file10
11812 tar tf archive
11813 ) ) >"$at_stdout" 2>"$at_stder1"
11814   at_func_filter_trace $?
11815 else
11816   ( :;
11817 mkdir posix
11818 (cd posix
11819 TEST_TAR_FORMAT=posix
11820 export TEST_TAR_FORMAT
11821 TAR_OPTIONS="-H posix"
11822 export TAR_OPTIONS
11823 rm -rf *
11824
11825 genfile -l      3 -f file1
11826 genfile -l      5 -f file2
11827 genfile -l      3 -f file3
11828 genfile -l      6 -f file4
11829 genfile -l     24 -f file5
11830 genfile -l     13 -f file6
11831 genfile -l   1385 -f file7
11832 genfile -l     30 -f file8
11833 genfile -l     10 -f file9
11834 genfile -l 256000 -f file10
11835 tar cf archive file1 file2 file3 file4 file5 file6 file7 file8 file9 file10
11836 tar f archive --delete file10
11837 tar tf archive
11838 ) ) >"$at_stdout" 2>"$at_stderr"
11839 fi
11840 at_status=$?
11841 at_failed=false
11842 at_func_diff_devnull "$at_stderr" || at_failed=:
11843 echo >>"$at_stdout"; $as_echo "file1
11844 file2
11845 file3
11846 file4
11847 file5
11848 file6
11849 file7
11850 file8
11851 file9
11852 " | \
11853   $at_diff - "$at_stdout" || at_failed=:
11854 at_func_check_status 0 $at_status "$at_srcdir/delete04.at:26"
11855
11856 $at_failed && at_func_log_failure
11857 $at_traceon; }
11858
11859               { $at_traceoff
11860 $as_echo "$at_srcdir/delete04.at:26:
11861 mkdir gnu
11862 (cd gnu
11863 TEST_TAR_FORMAT=gnu
11864 export TEST_TAR_FORMAT
11865 TAR_OPTIONS=\"-H gnu\"
11866 export TAR_OPTIONS
11867 rm -rf *
11868
11869 genfile -l      3 -f file1
11870 genfile -l      5 -f file2
11871 genfile -l      3 -f file3
11872 genfile -l      6 -f file4
11873 genfile -l     24 -f file5
11874 genfile -l     13 -f file6
11875 genfile -l   1385 -f file7
11876 genfile -l     30 -f file8
11877 genfile -l     10 -f file9
11878 genfile -l 256000 -f file10
11879 tar cf archive file1 file2 file3 file4 file5 file6 file7 file8 file9 file10
11880 tar f archive --delete file10
11881 tar tf archive
11882 )"
11883 echo delete04.at:26 >"$at_check_line_file"
11884
11885 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
11886    false; }; then
11887   ( $at_traceon;
11888 mkdir gnu
11889 (cd gnu
11890 TEST_TAR_FORMAT=gnu
11891 export TEST_TAR_FORMAT
11892 TAR_OPTIONS="-H gnu"
11893 export TAR_OPTIONS
11894 rm -rf *
11895
11896 genfile -l      3 -f file1
11897 genfile -l      5 -f file2
11898 genfile -l      3 -f file3
11899 genfile -l      6 -f file4
11900 genfile -l     24 -f file5
11901 genfile -l     13 -f file6
11902 genfile -l   1385 -f file7
11903 genfile -l     30 -f file8
11904 genfile -l     10 -f file9
11905 genfile -l 256000 -f file10
11906 tar cf archive file1 file2 file3 file4 file5 file6 file7 file8 file9 file10
11907 tar f archive --delete file10
11908 tar tf archive
11909 ) ) >"$at_stdout" 2>"$at_stder1"
11910   at_func_filter_trace $?
11911 else
11912   ( :;
11913 mkdir gnu
11914 (cd gnu
11915 TEST_TAR_FORMAT=gnu
11916 export TEST_TAR_FORMAT
11917 TAR_OPTIONS="-H gnu"
11918 export TAR_OPTIONS
11919 rm -rf *
11920
11921 genfile -l      3 -f file1
11922 genfile -l      5 -f file2
11923 genfile -l      3 -f file3
11924 genfile -l      6 -f file4
11925 genfile -l     24 -f file5
11926 genfile -l     13 -f file6
11927 genfile -l   1385 -f file7
11928 genfile -l     30 -f file8
11929 genfile -l     10 -f file9
11930 genfile -l 256000 -f file10
11931 tar cf archive file1 file2 file3 file4 file5 file6 file7 file8 file9 file10
11932 tar f archive --delete file10
11933 tar tf archive
11934 ) ) >"$at_stdout" 2>"$at_stderr"
11935 fi
11936 at_status=$?
11937 at_failed=false
11938 at_func_diff_devnull "$at_stderr" || at_failed=:
11939 echo >>"$at_stdout"; $as_echo "file1
11940 file2
11941 file3
11942 file4
11943 file5
11944 file6
11945 file7
11946 file8
11947 file9
11948 " | \
11949   $at_diff - "$at_stdout" || at_failed=:
11950 at_func_check_status 0 $at_status "$at_srcdir/delete04.at:26"
11951
11952 $at_failed && at_func_log_failure
11953 $at_traceon; }
11954
11955
11956
11957
11958   $at_traceoff
11959   $at_times_p && times >"$at_times_file"
11960 ) 5>&1 2>&1 | eval $at_tee_pipe
11961 at_status=`cat "$at_status_file"`
11962 #AT_STOP_25
11963 #AT_START_26
11964 # 26. delete05.at:27: deleting non-existing member
11965 at_setup_line='delete05.at:27'
11966 at_desc="deleting non-existing member"
11967 $at_quiet $as_echo_n " 26: $at_desc                   "
11968 at_xfail=no
11969       test -f $XFAILFILE && at_xfail=yes
11970 echo "#                             -*- compilation -*-" >> "$at_group_log"
11971 (
11972   $as_echo "26. delete05.at:27: testing ..."
11973   $at_traceon
11974
11975
11976
11977
11978
11979   { $at_traceoff
11980 $as_echo "$at_srcdir/delete05.at:30:
11981 mkdir v7
11982 (cd v7
11983 TEST_TAR_FORMAT=v7
11984 export TEST_TAR_FORMAT
11985 TAR_OPTIONS=\"-H v7\"
11986 export TAR_OPTIONS
11987 rm -rf *
11988
11989 genfile -l 1024 -f en
11990 genfile -l 1024 -f to
11991
11992 tar cf archive en to
11993 # Make sure we don't use bogus blocking factor.
11994 # GNU tar up to and including 1.14.91 produced an empty archive this way:
11995 tar --file archive --blocking-factor=20 --delete tre
11996 tar tf archive
11997 )"
11998 echo delete05.at:30 >"$at_check_line_file"
11999
12000 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
12001    false; }; then
12002   ( $at_traceon;
12003 mkdir v7
12004 (cd v7
12005 TEST_TAR_FORMAT=v7
12006 export TEST_TAR_FORMAT
12007 TAR_OPTIONS="-H v7"
12008 export TAR_OPTIONS
12009 rm -rf *
12010
12011 genfile -l 1024 -f en
12012 genfile -l 1024 -f to
12013
12014 tar cf archive en to
12015 # Make sure we don't use bogus blocking factor.
12016 # GNU tar up to and including 1.14.91 produced an empty archive this way:
12017 tar --file archive --blocking-factor=20 --delete tre
12018 tar tf archive
12019 ) ) >"$at_stdout" 2>"$at_stder1"
12020   at_func_filter_trace $?
12021 else
12022   ( :;
12023 mkdir v7
12024 (cd v7
12025 TEST_TAR_FORMAT=v7
12026 export TEST_TAR_FORMAT
12027 TAR_OPTIONS="-H v7"
12028 export TAR_OPTIONS
12029 rm -rf *
12030
12031 genfile -l 1024 -f en
12032 genfile -l 1024 -f to
12033
12034 tar cf archive en to
12035 # Make sure we don't use bogus blocking factor.
12036 # GNU tar up to and including 1.14.91 produced an empty archive this way:
12037 tar --file archive --blocking-factor=20 --delete tre
12038 tar tf archive
12039 ) ) >"$at_stdout" 2>"$at_stderr"
12040 fi
12041 at_status=$?
12042 at_failed=false
12043 echo >>"$at_stderr"; $as_echo "tar: tre: Not found in archive
12044 tar: Exiting with failure status due to previous errors
12045 " | \
12046   $at_diff - "$at_stderr" || at_failed=:
12047 echo >>"$at_stdout"; $as_echo "en
12048 to
12049 " | \
12050   $at_diff - "$at_stdout" || at_failed=:
12051 at_func_check_status 0 $at_status "$at_srcdir/delete05.at:30"
12052
12053 $at_failed && at_func_log_failure
12054 $at_traceon; }
12055
12056               { $at_traceoff
12057 $as_echo "$at_srcdir/delete05.at:30:
12058 mkdir oldgnu
12059 (cd oldgnu
12060 TEST_TAR_FORMAT=oldgnu
12061 export TEST_TAR_FORMAT
12062 TAR_OPTIONS=\"-H oldgnu\"
12063 export TAR_OPTIONS
12064 rm -rf *
12065
12066 genfile -l 1024 -f en
12067 genfile -l 1024 -f to
12068
12069 tar cf archive en to
12070 # Make sure we don't use bogus blocking factor.
12071 # GNU tar up to and including 1.14.91 produced an empty archive this way:
12072 tar --file archive --blocking-factor=20 --delete tre
12073 tar tf archive
12074 )"
12075 echo delete05.at:30 >"$at_check_line_file"
12076
12077 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
12078    false; }; then
12079   ( $at_traceon;
12080 mkdir oldgnu
12081 (cd oldgnu
12082 TEST_TAR_FORMAT=oldgnu
12083 export TEST_TAR_FORMAT
12084 TAR_OPTIONS="-H oldgnu"
12085 export TAR_OPTIONS
12086 rm -rf *
12087
12088 genfile -l 1024 -f en
12089 genfile -l 1024 -f to
12090
12091 tar cf archive en to
12092 # Make sure we don't use bogus blocking factor.
12093 # GNU tar up to and including 1.14.91 produced an empty archive this way:
12094 tar --file archive --blocking-factor=20 --delete tre
12095 tar tf archive
12096 ) ) >"$at_stdout" 2>"$at_stder1"
12097   at_func_filter_trace $?
12098 else
12099   ( :;
12100 mkdir oldgnu
12101 (cd oldgnu
12102 TEST_TAR_FORMAT=oldgnu
12103 export TEST_TAR_FORMAT
12104 TAR_OPTIONS="-H oldgnu"
12105 export TAR_OPTIONS
12106 rm -rf *
12107
12108 genfile -l 1024 -f en
12109 genfile -l 1024 -f to
12110
12111 tar cf archive en to
12112 # Make sure we don't use bogus blocking factor.
12113 # GNU tar up to and including 1.14.91 produced an empty archive this way:
12114 tar --file archive --blocking-factor=20 --delete tre
12115 tar tf archive
12116 ) ) >"$at_stdout" 2>"$at_stderr"
12117 fi
12118 at_status=$?
12119 at_failed=false
12120 echo >>"$at_stderr"; $as_echo "tar: tre: Not found in archive
12121 tar: Exiting with failure status due to previous errors
12122 " | \
12123   $at_diff - "$at_stderr" || at_failed=:
12124 echo >>"$at_stdout"; $as_echo "en
12125 to
12126 " | \
12127   $at_diff - "$at_stdout" || at_failed=:
12128 at_func_check_status 0 $at_status "$at_srcdir/delete05.at:30"
12129
12130 $at_failed && at_func_log_failure
12131 $at_traceon; }
12132
12133               { $at_traceoff
12134 $as_echo "$at_srcdir/delete05.at:30:
12135 mkdir ustar
12136 (cd ustar
12137 TEST_TAR_FORMAT=ustar
12138 export TEST_TAR_FORMAT
12139 TAR_OPTIONS=\"-H ustar\"
12140 export TAR_OPTIONS
12141 rm -rf *
12142
12143 genfile -l 1024 -f en
12144 genfile -l 1024 -f to
12145
12146 tar cf archive en to
12147 # Make sure we don't use bogus blocking factor.
12148 # GNU tar up to and including 1.14.91 produced an empty archive this way:
12149 tar --file archive --blocking-factor=20 --delete tre
12150 tar tf archive
12151 )"
12152 echo delete05.at:30 >"$at_check_line_file"
12153
12154 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
12155    false; }; then
12156   ( $at_traceon;
12157 mkdir ustar
12158 (cd ustar
12159 TEST_TAR_FORMAT=ustar
12160 export TEST_TAR_FORMAT
12161 TAR_OPTIONS="-H ustar"
12162 export TAR_OPTIONS
12163 rm -rf *
12164
12165 genfile -l 1024 -f en
12166 genfile -l 1024 -f to
12167
12168 tar cf archive en to
12169 # Make sure we don't use bogus blocking factor.
12170 # GNU tar up to and including 1.14.91 produced an empty archive this way:
12171 tar --file archive --blocking-factor=20 --delete tre
12172 tar tf archive
12173 ) ) >"$at_stdout" 2>"$at_stder1"
12174   at_func_filter_trace $?
12175 else
12176   ( :;
12177 mkdir ustar
12178 (cd ustar
12179 TEST_TAR_FORMAT=ustar
12180 export TEST_TAR_FORMAT
12181 TAR_OPTIONS="-H ustar"
12182 export TAR_OPTIONS
12183 rm -rf *
12184
12185 genfile -l 1024 -f en
12186 genfile -l 1024 -f to
12187
12188 tar cf archive en to
12189 # Make sure we don't use bogus blocking factor.
12190 # GNU tar up to and including 1.14.91 produced an empty archive this way:
12191 tar --file archive --blocking-factor=20 --delete tre
12192 tar tf archive
12193 ) ) >"$at_stdout" 2>"$at_stderr"
12194 fi
12195 at_status=$?
12196 at_failed=false
12197 echo >>"$at_stderr"; $as_echo "tar: tre: Not found in archive
12198 tar: Exiting with failure status due to previous errors
12199 " | \
12200   $at_diff - "$at_stderr" || at_failed=:
12201 echo >>"$at_stdout"; $as_echo "en
12202 to
12203 " | \
12204   $at_diff - "$at_stdout" || at_failed=:
12205 at_func_check_status 0 $at_status "$at_srcdir/delete05.at:30"
12206
12207 $at_failed && at_func_log_failure
12208 $at_traceon; }
12209
12210               { $at_traceoff
12211 $as_echo "$at_srcdir/delete05.at:30:
12212 mkdir posix
12213 (cd posix
12214 TEST_TAR_FORMAT=posix
12215 export TEST_TAR_FORMAT
12216 TAR_OPTIONS=\"-H posix\"
12217 export TAR_OPTIONS
12218 rm -rf *
12219
12220 genfile -l 1024 -f en
12221 genfile -l 1024 -f to
12222
12223 tar cf archive en to
12224 # Make sure we don't use bogus blocking factor.
12225 # GNU tar up to and including 1.14.91 produced an empty archive this way:
12226 tar --file archive --blocking-factor=20 --delete tre
12227 tar tf archive
12228 )"
12229 echo delete05.at:30 >"$at_check_line_file"
12230
12231 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
12232    false; }; then
12233   ( $at_traceon;
12234 mkdir posix
12235 (cd posix
12236 TEST_TAR_FORMAT=posix
12237 export TEST_TAR_FORMAT
12238 TAR_OPTIONS="-H posix"
12239 export TAR_OPTIONS
12240 rm -rf *
12241
12242 genfile -l 1024 -f en
12243 genfile -l 1024 -f to
12244
12245 tar cf archive en to
12246 # Make sure we don't use bogus blocking factor.
12247 # GNU tar up to and including 1.14.91 produced an empty archive this way:
12248 tar --file archive --blocking-factor=20 --delete tre
12249 tar tf archive
12250 ) ) >"$at_stdout" 2>"$at_stder1"
12251   at_func_filter_trace $?
12252 else
12253   ( :;
12254 mkdir posix
12255 (cd posix
12256 TEST_TAR_FORMAT=posix
12257 export TEST_TAR_FORMAT
12258 TAR_OPTIONS="-H posix"
12259 export TAR_OPTIONS
12260 rm -rf *
12261
12262 genfile -l 1024 -f en
12263 genfile -l 1024 -f to
12264
12265 tar cf archive en to
12266 # Make sure we don't use bogus blocking factor.
12267 # GNU tar up to and including 1.14.91 produced an empty archive this way:
12268 tar --file archive --blocking-factor=20 --delete tre
12269 tar tf archive
12270 ) ) >"$at_stdout" 2>"$at_stderr"
12271 fi
12272 at_status=$?
12273 at_failed=false
12274 echo >>"$at_stderr"; $as_echo "tar: tre: Not found in archive
12275 tar: Exiting with failure status due to previous errors
12276 " | \
12277   $at_diff - "$at_stderr" || at_failed=:
12278 echo >>"$at_stdout"; $as_echo "en
12279 to
12280 " | \
12281   $at_diff - "$at_stdout" || at_failed=:
12282 at_func_check_status 0 $at_status "$at_srcdir/delete05.at:30"
12283
12284 $at_failed && at_func_log_failure
12285 $at_traceon; }
12286
12287               { $at_traceoff
12288 $as_echo "$at_srcdir/delete05.at:30:
12289 mkdir gnu
12290 (cd gnu
12291 TEST_TAR_FORMAT=gnu
12292 export TEST_TAR_FORMAT
12293 TAR_OPTIONS=\"-H gnu\"
12294 export TAR_OPTIONS
12295 rm -rf *
12296
12297 genfile -l 1024 -f en
12298 genfile -l 1024 -f to
12299
12300 tar cf archive en to
12301 # Make sure we don't use bogus blocking factor.
12302 # GNU tar up to and including 1.14.91 produced an empty archive this way:
12303 tar --file archive --blocking-factor=20 --delete tre
12304 tar tf archive
12305 )"
12306 echo delete05.at:30 >"$at_check_line_file"
12307
12308 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
12309    false; }; then
12310   ( $at_traceon;
12311 mkdir gnu
12312 (cd gnu
12313 TEST_TAR_FORMAT=gnu
12314 export TEST_TAR_FORMAT
12315 TAR_OPTIONS="-H gnu"
12316 export TAR_OPTIONS
12317 rm -rf *
12318
12319 genfile -l 1024 -f en
12320 genfile -l 1024 -f to
12321
12322 tar cf archive en to
12323 # Make sure we don't use bogus blocking factor.
12324 # GNU tar up to and including 1.14.91 produced an empty archive this way:
12325 tar --file archive --blocking-factor=20 --delete tre
12326 tar tf archive
12327 ) ) >"$at_stdout" 2>"$at_stder1"
12328   at_func_filter_trace $?
12329 else
12330   ( :;
12331 mkdir gnu
12332 (cd gnu
12333 TEST_TAR_FORMAT=gnu
12334 export TEST_TAR_FORMAT
12335 TAR_OPTIONS="-H gnu"
12336 export TAR_OPTIONS
12337 rm -rf *
12338
12339 genfile -l 1024 -f en
12340 genfile -l 1024 -f to
12341
12342 tar cf archive en to
12343 # Make sure we don't use bogus blocking factor.
12344 # GNU tar up to and including 1.14.91 produced an empty archive this way:
12345 tar --file archive --blocking-factor=20 --delete tre
12346 tar tf archive
12347 ) ) >"$at_stdout" 2>"$at_stderr"
12348 fi
12349 at_status=$?
12350 at_failed=false
12351 echo >>"$at_stderr"; $as_echo "tar: tre: Not found in archive
12352 tar: Exiting with failure status due to previous errors
12353 " | \
12354   $at_diff - "$at_stderr" || at_failed=:
12355 echo >>"$at_stdout"; $as_echo "en
12356 to
12357 " | \
12358   $at_diff - "$at_stdout" || at_failed=:
12359 at_func_check_status 0 $at_status "$at_srcdir/delete05.at:30"
12360
12361 $at_failed && at_func_log_failure
12362 $at_traceon; }
12363
12364
12365
12366
12367   $at_traceoff
12368   $at_times_p && times >"$at_times_file"
12369 ) 5>&1 2>&1 | eval $at_tee_pipe
12370 at_status=`cat "$at_status_file"`
12371 #AT_STOP_26
12372 #AT_START_27
12373 # 27. extrac01.at:23: extract over an existing directory
12374 at_setup_line='extrac01.at:23'
12375 at_desc="extract over an existing directory"
12376 $at_quiet $as_echo_n " 27: $at_desc             "
12377 at_xfail=no
12378       test -f $XFAILFILE && at_xfail=yes
12379 echo "#                             -*- compilation -*-" >> "$at_group_log"
12380 (
12381   $as_echo "27. extrac01.at:23: testing ..."
12382   $at_traceon
12383
12384
12385
12386
12387
12388   { $at_traceoff
12389 $as_echo "$at_srcdir/extrac01.at:26:
12390 mkdir v7
12391 (cd v7
12392 TEST_TAR_FORMAT=v7
12393 export TEST_TAR_FORMAT
12394 TAR_OPTIONS=\"-H v7\"
12395 export TAR_OPTIONS
12396 rm -rf *
12397
12398 mkdir directory
12399 touch directory/file
12400 tar cf archive directory || exit 1
12401 tar xf archive --warning=no-timestamp || exit 1
12402 )"
12403 echo extrac01.at:26 >"$at_check_line_file"
12404
12405 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
12406    false; }; then
12407   ( $at_traceon;
12408 mkdir v7
12409 (cd v7
12410 TEST_TAR_FORMAT=v7
12411 export TEST_TAR_FORMAT
12412 TAR_OPTIONS="-H v7"
12413 export TAR_OPTIONS
12414 rm -rf *
12415
12416 mkdir directory
12417 touch directory/file
12418 tar cf archive directory || exit 1
12419 tar xf archive --warning=no-timestamp || exit 1
12420 ) ) >"$at_stdout" 2>"$at_stder1"
12421   at_func_filter_trace $?
12422 else
12423   ( :;
12424 mkdir v7
12425 (cd v7
12426 TEST_TAR_FORMAT=v7
12427 export TEST_TAR_FORMAT
12428 TAR_OPTIONS="-H v7"
12429 export TAR_OPTIONS
12430 rm -rf *
12431
12432 mkdir directory
12433 touch directory/file
12434 tar cf archive directory || exit 1
12435 tar xf archive --warning=no-timestamp || exit 1
12436 ) ) >"$at_stdout" 2>"$at_stderr"
12437 fi
12438 at_status=$?
12439 at_failed=false
12440 at_func_diff_devnull "$at_stderr" || at_failed=:
12441 at_func_diff_devnull "$at_stdout" || at_failed=:
12442 at_func_check_status 0 $at_status "$at_srcdir/extrac01.at:26"
12443
12444 $at_failed && at_func_log_failure
12445 $at_traceon; }
12446
12447               { $at_traceoff
12448 $as_echo "$at_srcdir/extrac01.at:26:
12449 mkdir oldgnu
12450 (cd oldgnu
12451 TEST_TAR_FORMAT=oldgnu
12452 export TEST_TAR_FORMAT
12453 TAR_OPTIONS=\"-H oldgnu\"
12454 export TAR_OPTIONS
12455 rm -rf *
12456
12457 mkdir directory
12458 touch directory/file
12459 tar cf archive directory || exit 1
12460 tar xf archive --warning=no-timestamp || exit 1
12461 )"
12462 echo extrac01.at:26 >"$at_check_line_file"
12463
12464 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
12465    false; }; then
12466   ( $at_traceon;
12467 mkdir oldgnu
12468 (cd oldgnu
12469 TEST_TAR_FORMAT=oldgnu
12470 export TEST_TAR_FORMAT
12471 TAR_OPTIONS="-H oldgnu"
12472 export TAR_OPTIONS
12473 rm -rf *
12474
12475 mkdir directory
12476 touch directory/file
12477 tar cf archive directory || exit 1
12478 tar xf archive --warning=no-timestamp || exit 1
12479 ) ) >"$at_stdout" 2>"$at_stder1"
12480   at_func_filter_trace $?
12481 else
12482   ( :;
12483 mkdir oldgnu
12484 (cd oldgnu
12485 TEST_TAR_FORMAT=oldgnu
12486 export TEST_TAR_FORMAT
12487 TAR_OPTIONS="-H oldgnu"
12488 export TAR_OPTIONS
12489 rm -rf *
12490
12491 mkdir directory
12492 touch directory/file
12493 tar cf archive directory || exit 1
12494 tar xf archive --warning=no-timestamp || exit 1
12495 ) ) >"$at_stdout" 2>"$at_stderr"
12496 fi
12497 at_status=$?
12498 at_failed=false
12499 at_func_diff_devnull "$at_stderr" || at_failed=:
12500 at_func_diff_devnull "$at_stdout" || at_failed=:
12501 at_func_check_status 0 $at_status "$at_srcdir/extrac01.at:26"
12502
12503 $at_failed && at_func_log_failure
12504 $at_traceon; }
12505
12506               { $at_traceoff
12507 $as_echo "$at_srcdir/extrac01.at:26:
12508 mkdir ustar
12509 (cd ustar
12510 TEST_TAR_FORMAT=ustar
12511 export TEST_TAR_FORMAT
12512 TAR_OPTIONS=\"-H ustar\"
12513 export TAR_OPTIONS
12514 rm -rf *
12515
12516 mkdir directory
12517 touch directory/file
12518 tar cf archive directory || exit 1
12519 tar xf archive --warning=no-timestamp || exit 1
12520 )"
12521 echo extrac01.at:26 >"$at_check_line_file"
12522
12523 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
12524    false; }; then
12525   ( $at_traceon;
12526 mkdir ustar
12527 (cd ustar
12528 TEST_TAR_FORMAT=ustar
12529 export TEST_TAR_FORMAT
12530 TAR_OPTIONS="-H ustar"
12531 export TAR_OPTIONS
12532 rm -rf *
12533
12534 mkdir directory
12535 touch directory/file
12536 tar cf archive directory || exit 1
12537 tar xf archive --warning=no-timestamp || exit 1
12538 ) ) >"$at_stdout" 2>"$at_stder1"
12539   at_func_filter_trace $?
12540 else
12541   ( :;
12542 mkdir ustar
12543 (cd ustar
12544 TEST_TAR_FORMAT=ustar
12545 export TEST_TAR_FORMAT
12546 TAR_OPTIONS="-H ustar"
12547 export TAR_OPTIONS
12548 rm -rf *
12549
12550 mkdir directory
12551 touch directory/file
12552 tar cf archive directory || exit 1
12553 tar xf archive --warning=no-timestamp || exit 1
12554 ) ) >"$at_stdout" 2>"$at_stderr"
12555 fi
12556 at_status=$?
12557 at_failed=false
12558 at_func_diff_devnull "$at_stderr" || at_failed=:
12559 at_func_diff_devnull "$at_stdout" || at_failed=:
12560 at_func_check_status 0 $at_status "$at_srcdir/extrac01.at:26"
12561
12562 $at_failed && at_func_log_failure
12563 $at_traceon; }
12564
12565               { $at_traceoff
12566 $as_echo "$at_srcdir/extrac01.at:26:
12567 mkdir posix
12568 (cd posix
12569 TEST_TAR_FORMAT=posix
12570 export TEST_TAR_FORMAT
12571 TAR_OPTIONS=\"-H posix\"
12572 export TAR_OPTIONS
12573 rm -rf *
12574
12575 mkdir directory
12576 touch directory/file
12577 tar cf archive directory || exit 1
12578 tar xf archive --warning=no-timestamp || exit 1
12579 )"
12580 echo extrac01.at:26 >"$at_check_line_file"
12581
12582 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
12583    false; }; then
12584   ( $at_traceon;
12585 mkdir posix
12586 (cd posix
12587 TEST_TAR_FORMAT=posix
12588 export TEST_TAR_FORMAT
12589 TAR_OPTIONS="-H posix"
12590 export TAR_OPTIONS
12591 rm -rf *
12592
12593 mkdir directory
12594 touch directory/file
12595 tar cf archive directory || exit 1
12596 tar xf archive --warning=no-timestamp || exit 1
12597 ) ) >"$at_stdout" 2>"$at_stder1"
12598   at_func_filter_trace $?
12599 else
12600   ( :;
12601 mkdir posix
12602 (cd posix
12603 TEST_TAR_FORMAT=posix
12604 export TEST_TAR_FORMAT
12605 TAR_OPTIONS="-H posix"
12606 export TAR_OPTIONS
12607 rm -rf *
12608
12609 mkdir directory
12610 touch directory/file
12611 tar cf archive directory || exit 1
12612 tar xf archive --warning=no-timestamp || exit 1
12613 ) ) >"$at_stdout" 2>"$at_stderr"
12614 fi
12615 at_status=$?
12616 at_failed=false
12617 at_func_diff_devnull "$at_stderr" || at_failed=:
12618 at_func_diff_devnull "$at_stdout" || at_failed=:
12619 at_func_check_status 0 $at_status "$at_srcdir/extrac01.at:26"
12620
12621 $at_failed && at_func_log_failure
12622 $at_traceon; }
12623
12624               { $at_traceoff
12625 $as_echo "$at_srcdir/extrac01.at:26:
12626 mkdir gnu
12627 (cd gnu
12628 TEST_TAR_FORMAT=gnu
12629 export TEST_TAR_FORMAT
12630 TAR_OPTIONS=\"-H gnu\"
12631 export TAR_OPTIONS
12632 rm -rf *
12633
12634 mkdir directory
12635 touch directory/file
12636 tar cf archive directory || exit 1
12637 tar xf archive --warning=no-timestamp || exit 1
12638 )"
12639 echo extrac01.at:26 >"$at_check_line_file"
12640
12641 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
12642    false; }; then
12643   ( $at_traceon;
12644 mkdir gnu
12645 (cd gnu
12646 TEST_TAR_FORMAT=gnu
12647 export TEST_TAR_FORMAT
12648 TAR_OPTIONS="-H gnu"
12649 export TAR_OPTIONS
12650 rm -rf *
12651
12652 mkdir directory
12653 touch directory/file
12654 tar cf archive directory || exit 1
12655 tar xf archive --warning=no-timestamp || exit 1
12656 ) ) >"$at_stdout" 2>"$at_stder1"
12657   at_func_filter_trace $?
12658 else
12659   ( :;
12660 mkdir gnu
12661 (cd gnu
12662 TEST_TAR_FORMAT=gnu
12663 export TEST_TAR_FORMAT
12664 TAR_OPTIONS="-H gnu"
12665 export TAR_OPTIONS
12666 rm -rf *
12667
12668 mkdir directory
12669 touch directory/file
12670 tar cf archive directory || exit 1
12671 tar xf archive --warning=no-timestamp || exit 1
12672 ) ) >"$at_stdout" 2>"$at_stderr"
12673 fi
12674 at_status=$?
12675 at_failed=false
12676 at_func_diff_devnull "$at_stderr" || at_failed=:
12677 at_func_diff_devnull "$at_stdout" || at_failed=:
12678 at_func_check_status 0 $at_status "$at_srcdir/extrac01.at:26"
12679
12680 $at_failed && at_func_log_failure
12681 $at_traceon; }
12682
12683
12684
12685
12686   $at_traceoff
12687   $at_times_p && times >"$at_times_file"
12688 ) 5>&1 2>&1 | eval $at_tee_pipe
12689 at_status=`cat "$at_status_file"`
12690 #AT_STOP_27
12691 #AT_START_28
12692 # 28. extrac02.at:23: extracting symlinks over an existing file
12693 at_setup_line='extrac02.at:23'
12694 at_desc="extracting symlinks over an existing file"
12695 $at_quiet $as_echo_n " 28: $at_desc      "
12696 at_xfail=no
12697       test -f $XFAILFILE && at_xfail=yes
12698 echo "#                             -*- compilation -*-" >> "$at_group_log"
12699 (
12700   $as_echo "28. extrac02.at:23: testing ..."
12701   $at_traceon
12702
12703
12704
12705 # FIXME: Skip if symlinks are not supported on the system
12706
12707
12708
12709   { $at_traceoff
12710 $as_echo "$at_srcdir/extrac02.at:28:
12711 mkdir v7
12712 (cd v7
12713 TEST_TAR_FORMAT=v7
12714 export TEST_TAR_FORMAT
12715 TAR_OPTIONS=\"-H v7\"
12716 export TAR_OPTIONS
12717 rm -rf *
12718
12719 touch file
12720 ln -s file link 2> /dev/null || ln file link
12721 tar cf archive link
12722 rm link
12723 touch link
12724 tar xf archive
12725 )"
12726 echo extrac02.at:28 >"$at_check_line_file"
12727
12728 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
12729    false; }; then
12730   ( $at_traceon;
12731 mkdir v7
12732 (cd v7
12733 TEST_TAR_FORMAT=v7
12734 export TEST_TAR_FORMAT
12735 TAR_OPTIONS="-H v7"
12736 export TAR_OPTIONS
12737 rm -rf *
12738
12739 touch file
12740 ln -s file link 2> /dev/null || ln file link
12741 tar cf archive link
12742 rm link
12743 touch link
12744 tar xf archive
12745 ) ) >"$at_stdout" 2>"$at_stder1"
12746   at_func_filter_trace $?
12747 else
12748   ( :;
12749 mkdir v7
12750 (cd v7
12751 TEST_TAR_FORMAT=v7
12752 export TEST_TAR_FORMAT
12753 TAR_OPTIONS="-H v7"
12754 export TAR_OPTIONS
12755 rm -rf *
12756
12757 touch file
12758 ln -s file link 2> /dev/null || ln file link
12759 tar cf archive link
12760 rm link
12761 touch link
12762 tar xf archive
12763 ) ) >"$at_stdout" 2>"$at_stderr"
12764 fi
12765 at_status=$?
12766 at_failed=false
12767 at_func_diff_devnull "$at_stderr" || at_failed=:
12768 at_func_diff_devnull "$at_stdout" || at_failed=:
12769 at_func_check_status 0 $at_status "$at_srcdir/extrac02.at:28"
12770
12771 $at_failed && at_func_log_failure
12772 $at_traceon; }
12773
12774               { $at_traceoff
12775 $as_echo "$at_srcdir/extrac02.at:28:
12776 mkdir oldgnu
12777 (cd oldgnu
12778 TEST_TAR_FORMAT=oldgnu
12779 export TEST_TAR_FORMAT
12780 TAR_OPTIONS=\"-H oldgnu\"
12781 export TAR_OPTIONS
12782 rm -rf *
12783
12784 touch file
12785 ln -s file link 2> /dev/null || ln file link
12786 tar cf archive link
12787 rm link
12788 touch link
12789 tar xf archive
12790 )"
12791 echo extrac02.at:28 >"$at_check_line_file"
12792
12793 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
12794    false; }; then
12795   ( $at_traceon;
12796 mkdir oldgnu
12797 (cd oldgnu
12798 TEST_TAR_FORMAT=oldgnu
12799 export TEST_TAR_FORMAT
12800 TAR_OPTIONS="-H oldgnu"
12801 export TAR_OPTIONS
12802 rm -rf *
12803
12804 touch file
12805 ln -s file link 2> /dev/null || ln file link
12806 tar cf archive link
12807 rm link
12808 touch link
12809 tar xf archive
12810 ) ) >"$at_stdout" 2>"$at_stder1"
12811   at_func_filter_trace $?
12812 else
12813   ( :;
12814 mkdir oldgnu
12815 (cd oldgnu
12816 TEST_TAR_FORMAT=oldgnu
12817 export TEST_TAR_FORMAT
12818 TAR_OPTIONS="-H oldgnu"
12819 export TAR_OPTIONS
12820 rm -rf *
12821
12822 touch file
12823 ln -s file link 2> /dev/null || ln file link
12824 tar cf archive link
12825 rm link
12826 touch link
12827 tar xf archive
12828 ) ) >"$at_stdout" 2>"$at_stderr"
12829 fi
12830 at_status=$?
12831 at_failed=false
12832 at_func_diff_devnull "$at_stderr" || at_failed=:
12833 at_func_diff_devnull "$at_stdout" || at_failed=:
12834 at_func_check_status 0 $at_status "$at_srcdir/extrac02.at:28"
12835
12836 $at_failed && at_func_log_failure
12837 $at_traceon; }
12838
12839               { $at_traceoff
12840 $as_echo "$at_srcdir/extrac02.at:28:
12841 mkdir ustar
12842 (cd ustar
12843 TEST_TAR_FORMAT=ustar
12844 export TEST_TAR_FORMAT
12845 TAR_OPTIONS=\"-H ustar\"
12846 export TAR_OPTIONS
12847 rm -rf *
12848
12849 touch file
12850 ln -s file link 2> /dev/null || ln file link
12851 tar cf archive link
12852 rm link
12853 touch link
12854 tar xf archive
12855 )"
12856 echo extrac02.at:28 >"$at_check_line_file"
12857
12858 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
12859    false; }; then
12860   ( $at_traceon;
12861 mkdir ustar
12862 (cd ustar
12863 TEST_TAR_FORMAT=ustar
12864 export TEST_TAR_FORMAT
12865 TAR_OPTIONS="-H ustar"
12866 export TAR_OPTIONS
12867 rm -rf *
12868
12869 touch file
12870 ln -s file link 2> /dev/null || ln file link
12871 tar cf archive link
12872 rm link
12873 touch link
12874 tar xf archive
12875 ) ) >"$at_stdout" 2>"$at_stder1"
12876   at_func_filter_trace $?
12877 else
12878   ( :;
12879 mkdir ustar
12880 (cd ustar
12881 TEST_TAR_FORMAT=ustar
12882 export TEST_TAR_FORMAT
12883 TAR_OPTIONS="-H ustar"
12884 export TAR_OPTIONS
12885 rm -rf *
12886
12887 touch file
12888 ln -s file link 2> /dev/null || ln file link
12889 tar cf archive link
12890 rm link
12891 touch link
12892 tar xf archive
12893 ) ) >"$at_stdout" 2>"$at_stderr"
12894 fi
12895 at_status=$?
12896 at_failed=false
12897 at_func_diff_devnull "$at_stderr" || at_failed=:
12898 at_func_diff_devnull "$at_stdout" || at_failed=:
12899 at_func_check_status 0 $at_status "$at_srcdir/extrac02.at:28"
12900
12901 $at_failed && at_func_log_failure
12902 $at_traceon; }
12903
12904               { $at_traceoff
12905 $as_echo "$at_srcdir/extrac02.at:28:
12906 mkdir posix
12907 (cd posix
12908 TEST_TAR_FORMAT=posix
12909 export TEST_TAR_FORMAT
12910 TAR_OPTIONS=\"-H posix\"
12911 export TAR_OPTIONS
12912 rm -rf *
12913
12914 touch file
12915 ln -s file link 2> /dev/null || ln file link
12916 tar cf archive link
12917 rm link
12918 touch link
12919 tar xf archive
12920 )"
12921 echo extrac02.at:28 >"$at_check_line_file"
12922
12923 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
12924    false; }; then
12925   ( $at_traceon;
12926 mkdir posix
12927 (cd posix
12928 TEST_TAR_FORMAT=posix
12929 export TEST_TAR_FORMAT
12930 TAR_OPTIONS="-H posix"
12931 export TAR_OPTIONS
12932 rm -rf *
12933
12934 touch file
12935 ln -s file link 2> /dev/null || ln file link
12936 tar cf archive link
12937 rm link
12938 touch link
12939 tar xf archive
12940 ) ) >"$at_stdout" 2>"$at_stder1"
12941   at_func_filter_trace $?
12942 else
12943   ( :;
12944 mkdir posix
12945 (cd posix
12946 TEST_TAR_FORMAT=posix
12947 export TEST_TAR_FORMAT
12948 TAR_OPTIONS="-H posix"
12949 export TAR_OPTIONS
12950 rm -rf *
12951
12952 touch file
12953 ln -s file link 2> /dev/null || ln file link
12954 tar cf archive link
12955 rm link
12956 touch link
12957 tar xf archive
12958 ) ) >"$at_stdout" 2>"$at_stderr"
12959 fi
12960 at_status=$?
12961 at_failed=false
12962 at_func_diff_devnull "$at_stderr" || at_failed=:
12963 at_func_diff_devnull "$at_stdout" || at_failed=:
12964 at_func_check_status 0 $at_status "$at_srcdir/extrac02.at:28"
12965
12966 $at_failed && at_func_log_failure
12967 $at_traceon; }
12968
12969               { $at_traceoff
12970 $as_echo "$at_srcdir/extrac02.at:28:
12971 mkdir gnu
12972 (cd gnu
12973 TEST_TAR_FORMAT=gnu
12974 export TEST_TAR_FORMAT
12975 TAR_OPTIONS=\"-H gnu\"
12976 export TAR_OPTIONS
12977 rm -rf *
12978
12979 touch file
12980 ln -s file link 2> /dev/null || ln file link
12981 tar cf archive link
12982 rm link
12983 touch link
12984 tar xf archive
12985 )"
12986 echo extrac02.at:28 >"$at_check_line_file"
12987
12988 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
12989    false; }; then
12990   ( $at_traceon;
12991 mkdir gnu
12992 (cd gnu
12993 TEST_TAR_FORMAT=gnu
12994 export TEST_TAR_FORMAT
12995 TAR_OPTIONS="-H gnu"
12996 export TAR_OPTIONS
12997 rm -rf *
12998
12999 touch file
13000 ln -s file link 2> /dev/null || ln file link
13001 tar cf archive link
13002 rm link
13003 touch link
13004 tar xf archive
13005 ) ) >"$at_stdout" 2>"$at_stder1"
13006   at_func_filter_trace $?
13007 else
13008   ( :;
13009 mkdir gnu
13010 (cd gnu
13011 TEST_TAR_FORMAT=gnu
13012 export TEST_TAR_FORMAT
13013 TAR_OPTIONS="-H gnu"
13014 export TAR_OPTIONS
13015 rm -rf *
13016
13017 touch file
13018 ln -s file link 2> /dev/null || ln file link
13019 tar cf archive link
13020 rm link
13021 touch link
13022 tar xf archive
13023 ) ) >"$at_stdout" 2>"$at_stderr"
13024 fi
13025 at_status=$?
13026 at_failed=false
13027 at_func_diff_devnull "$at_stderr" || at_failed=:
13028 at_func_diff_devnull "$at_stdout" || at_failed=:
13029 at_func_check_status 0 $at_status "$at_srcdir/extrac02.at:28"
13030
13031 $at_failed && at_func_log_failure
13032 $at_traceon; }
13033
13034
13035
13036
13037   $at_traceoff
13038   $at_times_p && times >"$at_times_file"
13039 ) 5>&1 2>&1 | eval $at_tee_pipe
13040 at_status=`cat "$at_status_file"`
13041 #AT_STOP_28
13042 #AT_START_29
13043 # 29. extrac03.at:23: extraction loops
13044 at_setup_line='extrac03.at:23'
13045 at_desc="extraction loops"
13046 $at_quiet $as_echo_n " 29: $at_desc                               "
13047 at_xfail=no
13048       test -f $XFAILFILE && at_xfail=yes
13049 echo "#                             -*- compilation -*-" >> "$at_group_log"
13050 (
13051   $as_echo "29. extrac03.at:23: testing ..."
13052   $at_traceon
13053
13054
13055
13056
13057
13058   { $at_traceoff
13059 $as_echo "$at_srcdir/extrac03.at:26:
13060 mkdir v7
13061 (cd v7
13062 TEST_TAR_FORMAT=v7
13063 export TEST_TAR_FORMAT
13064 TAR_OPTIONS=\"-H v7\"
13065 export TAR_OPTIONS
13066 rm -rf *
13067
13068 mkdir directory
13069 tar -cPvf archive directory/../directory
13070 echo separator
13071 tar -xPvf archive --warning=no-timestamp)"
13072 echo extrac03.at:26 >"$at_check_line_file"
13073
13074 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
13075    false; }; then
13076   ( $at_traceon;
13077 mkdir v7
13078 (cd v7
13079 TEST_TAR_FORMAT=v7
13080 export TEST_TAR_FORMAT
13081 TAR_OPTIONS="-H v7"
13082 export TAR_OPTIONS
13083 rm -rf *
13084
13085 mkdir directory
13086 tar -cPvf archive directory/../directory
13087 echo separator
13088 tar -xPvf archive --warning=no-timestamp) ) >"$at_stdout" 2>"$at_stder1"
13089   at_func_filter_trace $?
13090 else
13091   ( :;
13092 mkdir v7
13093 (cd v7
13094 TEST_TAR_FORMAT=v7
13095 export TEST_TAR_FORMAT
13096 TAR_OPTIONS="-H v7"
13097 export TAR_OPTIONS
13098 rm -rf *
13099
13100 mkdir directory
13101 tar -cPvf archive directory/../directory
13102 echo separator
13103 tar -xPvf archive --warning=no-timestamp) ) >"$at_stdout" 2>"$at_stderr"
13104 fi
13105 at_status=$?
13106 at_failed=false
13107 at_func_diff_devnull "$at_stderr" || at_failed=:
13108 echo >>"$at_stdout"; $as_echo "directory/../directory/
13109 separator
13110 directory/../directory/
13111 " | \
13112   $at_diff - "$at_stdout" || at_failed=:
13113 at_func_check_status 0 $at_status "$at_srcdir/extrac03.at:26"
13114
13115 $at_failed && at_func_log_failure
13116 $at_traceon; }
13117
13118               { $at_traceoff
13119 $as_echo "$at_srcdir/extrac03.at:26:
13120 mkdir oldgnu
13121 (cd oldgnu
13122 TEST_TAR_FORMAT=oldgnu
13123 export TEST_TAR_FORMAT
13124 TAR_OPTIONS=\"-H oldgnu\"
13125 export TAR_OPTIONS
13126 rm -rf *
13127
13128 mkdir directory
13129 tar -cPvf archive directory/../directory
13130 echo separator
13131 tar -xPvf archive --warning=no-timestamp)"
13132 echo extrac03.at:26 >"$at_check_line_file"
13133
13134 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
13135    false; }; then
13136   ( $at_traceon;
13137 mkdir oldgnu
13138 (cd oldgnu
13139 TEST_TAR_FORMAT=oldgnu
13140 export TEST_TAR_FORMAT
13141 TAR_OPTIONS="-H oldgnu"
13142 export TAR_OPTIONS
13143 rm -rf *
13144
13145 mkdir directory
13146 tar -cPvf archive directory/../directory
13147 echo separator
13148 tar -xPvf archive --warning=no-timestamp) ) >"$at_stdout" 2>"$at_stder1"
13149   at_func_filter_trace $?
13150 else
13151   ( :;
13152 mkdir oldgnu
13153 (cd oldgnu
13154 TEST_TAR_FORMAT=oldgnu
13155 export TEST_TAR_FORMAT
13156 TAR_OPTIONS="-H oldgnu"
13157 export TAR_OPTIONS
13158 rm -rf *
13159
13160 mkdir directory
13161 tar -cPvf archive directory/../directory
13162 echo separator
13163 tar -xPvf archive --warning=no-timestamp) ) >"$at_stdout" 2>"$at_stderr"
13164 fi
13165 at_status=$?
13166 at_failed=false
13167 at_func_diff_devnull "$at_stderr" || at_failed=:
13168 echo >>"$at_stdout"; $as_echo "directory/../directory/
13169 separator
13170 directory/../directory/
13171 " | \
13172   $at_diff - "$at_stdout" || at_failed=:
13173 at_func_check_status 0 $at_status "$at_srcdir/extrac03.at:26"
13174
13175 $at_failed && at_func_log_failure
13176 $at_traceon; }
13177
13178               { $at_traceoff
13179 $as_echo "$at_srcdir/extrac03.at:26:
13180 mkdir ustar
13181 (cd ustar
13182 TEST_TAR_FORMAT=ustar
13183 export TEST_TAR_FORMAT
13184 TAR_OPTIONS=\"-H ustar\"
13185 export TAR_OPTIONS
13186 rm -rf *
13187
13188 mkdir directory
13189 tar -cPvf archive directory/../directory
13190 echo separator
13191 tar -xPvf archive --warning=no-timestamp)"
13192 echo extrac03.at:26 >"$at_check_line_file"
13193
13194 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
13195    false; }; then
13196   ( $at_traceon;
13197 mkdir ustar
13198 (cd ustar
13199 TEST_TAR_FORMAT=ustar
13200 export TEST_TAR_FORMAT
13201 TAR_OPTIONS="-H ustar"
13202 export TAR_OPTIONS
13203 rm -rf *
13204
13205 mkdir directory
13206 tar -cPvf archive directory/../directory
13207 echo separator
13208 tar -xPvf archive --warning=no-timestamp) ) >"$at_stdout" 2>"$at_stder1"
13209   at_func_filter_trace $?
13210 else
13211   ( :;
13212 mkdir ustar
13213 (cd ustar
13214 TEST_TAR_FORMAT=ustar
13215 export TEST_TAR_FORMAT
13216 TAR_OPTIONS="-H ustar"
13217 export TAR_OPTIONS
13218 rm -rf *
13219
13220 mkdir directory
13221 tar -cPvf archive directory/../directory
13222 echo separator
13223 tar -xPvf archive --warning=no-timestamp) ) >"$at_stdout" 2>"$at_stderr"
13224 fi
13225 at_status=$?
13226 at_failed=false
13227 at_func_diff_devnull "$at_stderr" || at_failed=:
13228 echo >>"$at_stdout"; $as_echo "directory/../directory/
13229 separator
13230 directory/../directory/
13231 " | \
13232   $at_diff - "$at_stdout" || at_failed=:
13233 at_func_check_status 0 $at_status "$at_srcdir/extrac03.at:26"
13234
13235 $at_failed && at_func_log_failure
13236 $at_traceon; }
13237
13238               { $at_traceoff
13239 $as_echo "$at_srcdir/extrac03.at:26:
13240 mkdir posix
13241 (cd posix
13242 TEST_TAR_FORMAT=posix
13243 export TEST_TAR_FORMAT
13244 TAR_OPTIONS=\"-H posix\"
13245 export TAR_OPTIONS
13246 rm -rf *
13247
13248 mkdir directory
13249 tar -cPvf archive directory/../directory
13250 echo separator
13251 tar -xPvf archive --warning=no-timestamp)"
13252 echo extrac03.at:26 >"$at_check_line_file"
13253
13254 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
13255    false; }; then
13256   ( $at_traceon;
13257 mkdir posix
13258 (cd posix
13259 TEST_TAR_FORMAT=posix
13260 export TEST_TAR_FORMAT
13261 TAR_OPTIONS="-H posix"
13262 export TAR_OPTIONS
13263 rm -rf *
13264
13265 mkdir directory
13266 tar -cPvf archive directory/../directory
13267 echo separator
13268 tar -xPvf archive --warning=no-timestamp) ) >"$at_stdout" 2>"$at_stder1"
13269   at_func_filter_trace $?
13270 else
13271   ( :;
13272 mkdir posix
13273 (cd posix
13274 TEST_TAR_FORMAT=posix
13275 export TEST_TAR_FORMAT
13276 TAR_OPTIONS="-H posix"
13277 export TAR_OPTIONS
13278 rm -rf *
13279
13280 mkdir directory
13281 tar -cPvf archive directory/../directory
13282 echo separator
13283 tar -xPvf archive --warning=no-timestamp) ) >"$at_stdout" 2>"$at_stderr"
13284 fi
13285 at_status=$?
13286 at_failed=false
13287 at_func_diff_devnull "$at_stderr" || at_failed=:
13288 echo >>"$at_stdout"; $as_echo "directory/../directory/
13289 separator
13290 directory/../directory/
13291 " | \
13292   $at_diff - "$at_stdout" || at_failed=:
13293 at_func_check_status 0 $at_status "$at_srcdir/extrac03.at:26"
13294
13295 $at_failed && at_func_log_failure
13296 $at_traceon; }
13297
13298               { $at_traceoff
13299 $as_echo "$at_srcdir/extrac03.at:26:
13300 mkdir gnu
13301 (cd gnu
13302 TEST_TAR_FORMAT=gnu
13303 export TEST_TAR_FORMAT
13304 TAR_OPTIONS=\"-H gnu\"
13305 export TAR_OPTIONS
13306 rm -rf *
13307
13308 mkdir directory
13309 tar -cPvf archive directory/../directory
13310 echo separator
13311 tar -xPvf archive --warning=no-timestamp)"
13312 echo extrac03.at:26 >"$at_check_line_file"
13313
13314 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
13315    false; }; then
13316   ( $at_traceon;
13317 mkdir gnu
13318 (cd gnu
13319 TEST_TAR_FORMAT=gnu
13320 export TEST_TAR_FORMAT
13321 TAR_OPTIONS="-H gnu"
13322 export TAR_OPTIONS
13323 rm -rf *
13324
13325 mkdir directory
13326 tar -cPvf archive directory/../directory
13327 echo separator
13328 tar -xPvf archive --warning=no-timestamp) ) >"$at_stdout" 2>"$at_stder1"
13329   at_func_filter_trace $?
13330 else
13331   ( :;
13332 mkdir gnu
13333 (cd gnu
13334 TEST_TAR_FORMAT=gnu
13335 export TEST_TAR_FORMAT
13336 TAR_OPTIONS="-H gnu"
13337 export TAR_OPTIONS
13338 rm -rf *
13339
13340 mkdir directory
13341 tar -cPvf archive directory/../directory
13342 echo separator
13343 tar -xPvf archive --warning=no-timestamp) ) >"$at_stdout" 2>"$at_stderr"
13344 fi
13345 at_status=$?
13346 at_failed=false
13347 at_func_diff_devnull "$at_stderr" || at_failed=:
13348 echo >>"$at_stdout"; $as_echo "directory/../directory/
13349 separator
13350 directory/../directory/
13351 " | \
13352   $at_diff - "$at_stdout" || at_failed=:
13353 at_func_check_status 0 $at_status "$at_srcdir/extrac03.at:26"
13354
13355 $at_failed && at_func_log_failure
13356 $at_traceon; }
13357
13358
13359
13360
13361   $at_traceoff
13362   $at_times_p && times >"$at_times_file"
13363 ) 5>&1 2>&1 | eval $at_tee_pipe
13364 at_status=`cat "$at_status_file"`
13365 #AT_STOP_29
13366 #AT_START_30
13367 # 30. extrac04.at:23: extract + fnmatch
13368 at_setup_line='extrac04.at:23'
13369 at_desc="extract + fnmatch"
13370 $at_quiet $as_echo_n " 30: $at_desc                              "
13371 at_xfail=no
13372       test -f $XFAILFILE && at_xfail=yes
13373 echo "#                             -*- compilation -*-" >> "$at_group_log"
13374 (
13375   $as_echo "30. extrac04.at:23: testing ..."
13376   $at_traceon
13377
13378
13379
13380
13381
13382   { $at_traceoff
13383 $as_echo "$at_srcdir/extrac04.at:26:
13384 mkdir v7
13385 (cd v7
13386 TEST_TAR_FORMAT=v7
13387 export TEST_TAR_FORMAT
13388 TAR_OPTIONS=\"-H v7\"
13389 export TAR_OPTIONS
13390 rm -rf *
13391
13392
13393 test -z "`sort < /dev/null 2>&1`" || exit 77
13394
13395 touch file1
13396 mkdir directory
13397 mkdir directory/subdirectory
13398 touch directory/file1
13399 touch directory/file2
13400 touch directory/subdirectory/file1
13401 touch directory/subdirectory/file2
13402 tar -cf archive ./file1 directory
13403 tar -tf archive \\
13404   --exclude='./*1' \\
13405   --exclude='d*/*1' \\
13406   --exclude='d*/s*/*2' | sort
13407 )"
13408 echo extrac04.at:26 >"$at_check_line_file"
13409
13410 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
13411    false; }; then
13412   ( $at_traceon;
13413 mkdir v7
13414 (cd v7
13415 TEST_TAR_FORMAT=v7
13416 export TEST_TAR_FORMAT
13417 TAR_OPTIONS="-H v7"
13418 export TAR_OPTIONS
13419 rm -rf *
13420
13421
13422 test -z "`sort < /dev/null 2>&1`" || exit 77
13423
13424 touch file1
13425 mkdir directory
13426 mkdir directory/subdirectory
13427 touch directory/file1
13428 touch directory/file2
13429 touch directory/subdirectory/file1
13430 touch directory/subdirectory/file2
13431 tar -cf archive ./file1 directory
13432 tar -tf archive \
13433   --exclude='./*1' \
13434   --exclude='d*/*1' \
13435   --exclude='d*/s*/*2' | sort
13436 ) ) >"$at_stdout" 2>"$at_stder1"
13437   at_func_filter_trace $?
13438 else
13439   ( :;
13440 mkdir v7
13441 (cd v7
13442 TEST_TAR_FORMAT=v7
13443 export TEST_TAR_FORMAT
13444 TAR_OPTIONS="-H v7"
13445 export TAR_OPTIONS
13446 rm -rf *
13447
13448
13449 test -z "`sort < /dev/null 2>&1`" || exit 77
13450
13451 touch file1
13452 mkdir directory
13453 mkdir directory/subdirectory
13454 touch directory/file1
13455 touch directory/file2
13456 touch directory/subdirectory/file1
13457 touch directory/subdirectory/file2
13458 tar -cf archive ./file1 directory
13459 tar -tf archive \
13460   --exclude='./*1' \
13461   --exclude='d*/*1' \
13462   --exclude='d*/s*/*2' | sort
13463 ) ) >"$at_stdout" 2>"$at_stderr"
13464 fi
13465 at_status=$?
13466 at_failed=false
13467 at_func_diff_devnull "$at_stderr" || at_failed=:
13468 echo >>"$at_stdout"; $as_echo "directory/
13469 directory/file2
13470 directory/subdirectory/
13471 " | \
13472   $at_diff - "$at_stdout" || at_failed=:
13473 at_func_check_status 0 $at_status "$at_srcdir/extrac04.at:26"
13474
13475 $at_failed && at_func_log_failure
13476 $at_traceon; }
13477
13478               { $at_traceoff
13479 $as_echo "$at_srcdir/extrac04.at:26:
13480 mkdir oldgnu
13481 (cd oldgnu
13482 TEST_TAR_FORMAT=oldgnu
13483 export TEST_TAR_FORMAT
13484 TAR_OPTIONS=\"-H oldgnu\"
13485 export TAR_OPTIONS
13486 rm -rf *
13487
13488
13489 test -z "`sort < /dev/null 2>&1`" || exit 77
13490
13491 touch file1
13492 mkdir directory
13493 mkdir directory/subdirectory
13494 touch directory/file1
13495 touch directory/file2
13496 touch directory/subdirectory/file1
13497 touch directory/subdirectory/file2
13498 tar -cf archive ./file1 directory
13499 tar -tf archive \\
13500   --exclude='./*1' \\
13501   --exclude='d*/*1' \\
13502   --exclude='d*/s*/*2' | sort
13503 )"
13504 echo extrac04.at:26 >"$at_check_line_file"
13505
13506 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
13507    false; }; then
13508   ( $at_traceon;
13509 mkdir oldgnu
13510 (cd oldgnu
13511 TEST_TAR_FORMAT=oldgnu
13512 export TEST_TAR_FORMAT
13513 TAR_OPTIONS="-H oldgnu"
13514 export TAR_OPTIONS
13515 rm -rf *
13516
13517
13518 test -z "`sort < /dev/null 2>&1`" || exit 77
13519
13520 touch file1
13521 mkdir directory
13522 mkdir directory/subdirectory
13523 touch directory/file1
13524 touch directory/file2
13525 touch directory/subdirectory/file1
13526 touch directory/subdirectory/file2
13527 tar -cf archive ./file1 directory
13528 tar -tf archive \
13529   --exclude='./*1' \
13530   --exclude='d*/*1' \
13531   --exclude='d*/s*/*2' | sort
13532 ) ) >"$at_stdout" 2>"$at_stder1"
13533   at_func_filter_trace $?
13534 else
13535   ( :;
13536 mkdir oldgnu
13537 (cd oldgnu
13538 TEST_TAR_FORMAT=oldgnu
13539 export TEST_TAR_FORMAT
13540 TAR_OPTIONS="-H oldgnu"
13541 export TAR_OPTIONS
13542 rm -rf *
13543
13544
13545 test -z "`sort < /dev/null 2>&1`" || exit 77
13546
13547 touch file1
13548 mkdir directory
13549 mkdir directory/subdirectory
13550 touch directory/file1
13551 touch directory/file2
13552 touch directory/subdirectory/file1
13553 touch directory/subdirectory/file2
13554 tar -cf archive ./file1 directory
13555 tar -tf archive \
13556   --exclude='./*1' \
13557   --exclude='d*/*1' \
13558   --exclude='d*/s*/*2' | sort
13559 ) ) >"$at_stdout" 2>"$at_stderr"
13560 fi
13561 at_status=$?
13562 at_failed=false
13563 at_func_diff_devnull "$at_stderr" || at_failed=:
13564 echo >>"$at_stdout"; $as_echo "directory/
13565 directory/file2
13566 directory/subdirectory/
13567 " | \
13568   $at_diff - "$at_stdout" || at_failed=:
13569 at_func_check_status 0 $at_status "$at_srcdir/extrac04.at:26"
13570
13571 $at_failed && at_func_log_failure
13572 $at_traceon; }
13573
13574               { $at_traceoff
13575 $as_echo "$at_srcdir/extrac04.at:26:
13576 mkdir ustar
13577 (cd ustar
13578 TEST_TAR_FORMAT=ustar
13579 export TEST_TAR_FORMAT
13580 TAR_OPTIONS=\"-H ustar\"
13581 export TAR_OPTIONS
13582 rm -rf *
13583
13584
13585 test -z "`sort < /dev/null 2>&1`" || exit 77
13586
13587 touch file1
13588 mkdir directory
13589 mkdir directory/subdirectory
13590 touch directory/file1
13591 touch directory/file2
13592 touch directory/subdirectory/file1
13593 touch directory/subdirectory/file2
13594 tar -cf archive ./file1 directory
13595 tar -tf archive \\
13596   --exclude='./*1' \\
13597   --exclude='d*/*1' \\
13598   --exclude='d*/s*/*2' | sort
13599 )"
13600 echo extrac04.at:26 >"$at_check_line_file"
13601
13602 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
13603    false; }; then
13604   ( $at_traceon;
13605 mkdir ustar
13606 (cd ustar
13607 TEST_TAR_FORMAT=ustar
13608 export TEST_TAR_FORMAT
13609 TAR_OPTIONS="-H ustar"
13610 export TAR_OPTIONS
13611 rm -rf *
13612
13613
13614 test -z "`sort < /dev/null 2>&1`" || exit 77
13615
13616 touch file1
13617 mkdir directory
13618 mkdir directory/subdirectory
13619 touch directory/file1
13620 touch directory/file2
13621 touch directory/subdirectory/file1
13622 touch directory/subdirectory/file2
13623 tar -cf archive ./file1 directory
13624 tar -tf archive \
13625   --exclude='./*1' \
13626   --exclude='d*/*1' \
13627   --exclude='d*/s*/*2' | sort
13628 ) ) >"$at_stdout" 2>"$at_stder1"
13629   at_func_filter_trace $?
13630 else
13631   ( :;
13632 mkdir ustar
13633 (cd ustar
13634 TEST_TAR_FORMAT=ustar
13635 export TEST_TAR_FORMAT
13636 TAR_OPTIONS="-H ustar"
13637 export TAR_OPTIONS
13638 rm -rf *
13639
13640
13641 test -z "`sort < /dev/null 2>&1`" || exit 77
13642
13643 touch file1
13644 mkdir directory
13645 mkdir directory/subdirectory
13646 touch directory/file1
13647 touch directory/file2
13648 touch directory/subdirectory/file1
13649 touch directory/subdirectory/file2
13650 tar -cf archive ./file1 directory
13651 tar -tf archive \
13652   --exclude='./*1' \
13653   --exclude='d*/*1' \
13654   --exclude='d*/s*/*2' | sort
13655 ) ) >"$at_stdout" 2>"$at_stderr"
13656 fi
13657 at_status=$?
13658 at_failed=false
13659 at_func_diff_devnull "$at_stderr" || at_failed=:
13660 echo >>"$at_stdout"; $as_echo "directory/
13661 directory/file2
13662 directory/subdirectory/
13663 " | \
13664   $at_diff - "$at_stdout" || at_failed=:
13665 at_func_check_status 0 $at_status "$at_srcdir/extrac04.at:26"
13666
13667 $at_failed && at_func_log_failure
13668 $at_traceon; }
13669
13670               { $at_traceoff
13671 $as_echo "$at_srcdir/extrac04.at:26:
13672 mkdir posix
13673 (cd posix
13674 TEST_TAR_FORMAT=posix
13675 export TEST_TAR_FORMAT
13676 TAR_OPTIONS=\"-H posix\"
13677 export TAR_OPTIONS
13678 rm -rf *
13679
13680
13681 test -z "`sort < /dev/null 2>&1`" || exit 77
13682
13683 touch file1
13684 mkdir directory
13685 mkdir directory/subdirectory
13686 touch directory/file1
13687 touch directory/file2
13688 touch directory/subdirectory/file1
13689 touch directory/subdirectory/file2
13690 tar -cf archive ./file1 directory
13691 tar -tf archive \\
13692   --exclude='./*1' \\
13693   --exclude='d*/*1' \\
13694   --exclude='d*/s*/*2' | sort
13695 )"
13696 echo extrac04.at:26 >"$at_check_line_file"
13697
13698 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
13699    false; }; then
13700   ( $at_traceon;
13701 mkdir posix
13702 (cd posix
13703 TEST_TAR_FORMAT=posix
13704 export TEST_TAR_FORMAT
13705 TAR_OPTIONS="-H posix"
13706 export TAR_OPTIONS
13707 rm -rf *
13708
13709
13710 test -z "`sort < /dev/null 2>&1`" || exit 77
13711
13712 touch file1
13713 mkdir directory
13714 mkdir directory/subdirectory
13715 touch directory/file1
13716 touch directory/file2
13717 touch directory/subdirectory/file1
13718 touch directory/subdirectory/file2
13719 tar -cf archive ./file1 directory
13720 tar -tf archive \
13721   --exclude='./*1' \
13722   --exclude='d*/*1' \
13723   --exclude='d*/s*/*2' | sort
13724 ) ) >"$at_stdout" 2>"$at_stder1"
13725   at_func_filter_trace $?
13726 else
13727   ( :;
13728 mkdir posix
13729 (cd posix
13730 TEST_TAR_FORMAT=posix
13731 export TEST_TAR_FORMAT
13732 TAR_OPTIONS="-H posix"
13733 export TAR_OPTIONS
13734 rm -rf *
13735
13736
13737 test -z "`sort < /dev/null 2>&1`" || exit 77
13738
13739 touch file1
13740 mkdir directory
13741 mkdir directory/subdirectory
13742 touch directory/file1
13743 touch directory/file2
13744 touch directory/subdirectory/file1
13745 touch directory/subdirectory/file2
13746 tar -cf archive ./file1 directory
13747 tar -tf archive \
13748   --exclude='./*1' \
13749   --exclude='d*/*1' \
13750   --exclude='d*/s*/*2' | sort
13751 ) ) >"$at_stdout" 2>"$at_stderr"
13752 fi
13753 at_status=$?
13754 at_failed=false
13755 at_func_diff_devnull "$at_stderr" || at_failed=:
13756 echo >>"$at_stdout"; $as_echo "directory/
13757 directory/file2
13758 directory/subdirectory/
13759 " | \
13760   $at_diff - "$at_stdout" || at_failed=:
13761 at_func_check_status 0 $at_status "$at_srcdir/extrac04.at:26"
13762
13763 $at_failed && at_func_log_failure
13764 $at_traceon; }
13765
13766               { $at_traceoff
13767 $as_echo "$at_srcdir/extrac04.at:26:
13768 mkdir gnu
13769 (cd gnu
13770 TEST_TAR_FORMAT=gnu
13771 export TEST_TAR_FORMAT
13772 TAR_OPTIONS=\"-H gnu\"
13773 export TAR_OPTIONS
13774 rm -rf *
13775
13776
13777 test -z "`sort < /dev/null 2>&1`" || exit 77
13778
13779 touch file1
13780 mkdir directory
13781 mkdir directory/subdirectory
13782 touch directory/file1
13783 touch directory/file2
13784 touch directory/subdirectory/file1
13785 touch directory/subdirectory/file2
13786 tar -cf archive ./file1 directory
13787 tar -tf archive \\
13788   --exclude='./*1' \\
13789   --exclude='d*/*1' \\
13790   --exclude='d*/s*/*2' | sort
13791 )"
13792 echo extrac04.at:26 >"$at_check_line_file"
13793
13794 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
13795    false; }; then
13796   ( $at_traceon;
13797 mkdir gnu
13798 (cd gnu
13799 TEST_TAR_FORMAT=gnu
13800 export TEST_TAR_FORMAT
13801 TAR_OPTIONS="-H gnu"
13802 export TAR_OPTIONS
13803 rm -rf *
13804
13805
13806 test -z "`sort < /dev/null 2>&1`" || exit 77
13807
13808 touch file1
13809 mkdir directory
13810 mkdir directory/subdirectory
13811 touch directory/file1
13812 touch directory/file2
13813 touch directory/subdirectory/file1
13814 touch directory/subdirectory/file2
13815 tar -cf archive ./file1 directory
13816 tar -tf archive \
13817   --exclude='./*1' \
13818   --exclude='d*/*1' \
13819   --exclude='d*/s*/*2' | sort
13820 ) ) >"$at_stdout" 2>"$at_stder1"
13821   at_func_filter_trace $?
13822 else
13823   ( :;
13824 mkdir gnu
13825 (cd gnu
13826 TEST_TAR_FORMAT=gnu
13827 export TEST_TAR_FORMAT
13828 TAR_OPTIONS="-H gnu"
13829 export TAR_OPTIONS
13830 rm -rf *
13831
13832
13833 test -z "`sort < /dev/null 2>&1`" || exit 77
13834
13835 touch file1
13836 mkdir directory
13837 mkdir directory/subdirectory
13838 touch directory/file1
13839 touch directory/file2
13840 touch directory/subdirectory/file1
13841 touch directory/subdirectory/file2
13842 tar -cf archive ./file1 directory
13843 tar -tf archive \
13844   --exclude='./*1' \
13845   --exclude='d*/*1' \
13846   --exclude='d*/s*/*2' | sort
13847 ) ) >"$at_stdout" 2>"$at_stderr"
13848 fi
13849 at_status=$?
13850 at_failed=false
13851 at_func_diff_devnull "$at_stderr" || at_failed=:
13852 echo >>"$at_stdout"; $as_echo "directory/
13853 directory/file2
13854 directory/subdirectory/
13855 " | \
13856   $at_diff - "$at_stdout" || at_failed=:
13857 at_func_check_status 0 $at_status "$at_srcdir/extrac04.at:26"
13858
13859 $at_failed && at_func_log_failure
13860 $at_traceon; }
13861
13862
13863
13864
13865   $at_traceoff
13866   $at_times_p && times >"$at_times_file"
13867 ) 5>&1 2>&1 | eval $at_tee_pipe
13868 at_status=`cat "$at_status_file"`
13869 #AT_STOP_30
13870 #AT_START_31
13871 # 31. extrac05.at:30: extracting selected members from pax
13872 at_setup_line='extrac05.at:30'
13873 at_desc="extracting selected members from pax"
13874 $at_quiet $as_echo_n " 31: $at_desc           "
13875 at_xfail=no
13876       test -f $XFAILFILE && at_xfail=yes
13877 echo "#                             -*- compilation -*-" >> "$at_group_log"
13878 (
13879   $as_echo "31. extrac05.at:30: testing ..."
13880   $at_traceon
13881
13882
13883
13884 cat >list <<'_ATEOF'
13885 jeden
13886 cztery
13887 _ATEOF
13888
13889
13890
13891
13892   { $at_traceoff
13893 $as_echo "$at_srcdir/extrac05.at:38:
13894 mkdir posix
13895 (cd posix
13896 TEST_TAR_FORMAT=posix
13897 export TEST_TAR_FORMAT
13898 TAR_OPTIONS=\"-H posix\"
13899 export TAR_OPTIONS
13900 rm -rf *
13901
13902 genfile --sparse --file sparsefile 0 ABCD 1M EFGH 2000K IJKL || exit 77
13903 genfile --length 118 --file jeden
13904 genfile --length 223 --file dwa
13905 genfile --length 517 --file trzy
13906 genfile --length 110 --file cztery
13907
13908 tar cf archive jeden dwa trzy cztery || exit 1
13909
13910 mkdir dir
13911 cd dir
13912
13913 tar xvfT ../archive ../../list --warning=no-timestamp || exit 1
13914
13915 cd ..
13916 )"
13917 echo extrac05.at:38 >"$at_check_line_file"
13918
13919 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
13920    false; }; then
13921   ( $at_traceon;
13922 mkdir posix
13923 (cd posix
13924 TEST_TAR_FORMAT=posix
13925 export TEST_TAR_FORMAT
13926 TAR_OPTIONS="-H posix"
13927 export TAR_OPTIONS
13928 rm -rf *
13929
13930 genfile --sparse --file sparsefile 0 ABCD 1M EFGH 2000K IJKL || exit 77
13931 genfile --length 118 --file jeden
13932 genfile --length 223 --file dwa
13933 genfile --length 517 --file trzy
13934 genfile --length 110 --file cztery
13935
13936 tar cf archive jeden dwa trzy cztery || exit 1
13937
13938 mkdir dir
13939 cd dir
13940
13941 tar xvfT ../archive ../../list --warning=no-timestamp || exit 1
13942
13943 cd ..
13944 ) ) >"$at_stdout" 2>"$at_stder1"
13945   at_func_filter_trace $?
13946 else
13947   ( :;
13948 mkdir posix
13949 (cd posix
13950 TEST_TAR_FORMAT=posix
13951 export TEST_TAR_FORMAT
13952 TAR_OPTIONS="-H posix"
13953 export TAR_OPTIONS
13954 rm -rf *
13955
13956 genfile --sparse --file sparsefile 0 ABCD 1M EFGH 2000K IJKL || exit 77
13957 genfile --length 118 --file jeden
13958 genfile --length 223 --file dwa
13959 genfile --length 517 --file trzy
13960 genfile --length 110 --file cztery
13961
13962 tar cf archive jeden dwa trzy cztery || exit 1
13963
13964 mkdir dir
13965 cd dir
13966
13967 tar xvfT ../archive ../../list --warning=no-timestamp || exit 1
13968
13969 cd ..
13970 ) ) >"$at_stdout" 2>"$at_stderr"
13971 fi
13972 at_status=$?
13973 at_failed=false
13974 at_func_diff_devnull "$at_stderr" || at_failed=:
13975 echo >>"$at_stdout"; $as_echo "jeden
13976 cztery
13977 " | \
13978   $at_diff - "$at_stdout" || at_failed=:
13979 at_func_check_status 0 $at_status "$at_srcdir/extrac05.at:38"
13980
13981 $at_failed && at_func_log_failure
13982 $at_traceon; }
13983
13984
13985
13986
13987   $at_traceoff
13988   $at_times_p && times >"$at_times_file"
13989 ) 5>&1 2>&1 | eval $at_tee_pipe
13990 at_status=`cat "$at_status_file"`
13991 #AT_STOP_31
13992 #AT_START_32
13993 # 32. extrac06.at:33: mode of extracted directories
13994 at_setup_line='extrac06.at:33'
13995 at_desc="mode of extracted directories"
13996 $at_quiet $as_echo_n " 32: $at_desc                  "
13997 at_xfail=no
13998       test -f $XFAILFILE && at_xfail=yes
13999 echo "#                             -*- compilation -*-" >> "$at_group_log"
14000 (
14001   $as_echo "32. extrac06.at:33: testing ..."
14002   $at_traceon
14003
14004
14005
14006
14007
14008   { $at_traceoff
14009 $as_echo "$at_srcdir/extrac06.at:36:
14010 mkdir v7
14011 (cd v7
14012 TEST_TAR_FORMAT=v7
14013 export TEST_TAR_FORMAT
14014 TAR_OPTIONS=\"-H v7\"
14015 export TAR_OPTIONS
14016 rm -rf *
14017
14018
14019 # Force umask
14020 umask 022
14021
14022 # Make sure user's umask is honored, even if we are superuser
14023 TAR_OPTIONS=\"\$TAR_OPTIONS --no-same-permissions\"
14024
14025 # Create a directory
14026 mkdir directory
14027 chmod 777 directory
14028 genfile --stat=mode:777 directory
14029
14030 # Archive it
14031 tar cf arc directory
14032
14033 # Change its permissions ...
14034 chmod 755 directory
14035 genfile --stat=mode:777 directory
14036
14037 # ... and attempt to restore it twice
14038 tar xf arc directory --warning=no-timestamp
14039 genfile --stat=mode:777 directory
14040
14041 tar xf arc directory --warning=no-timestamp
14042 genfile --stat=mode:777 directory
14043
14044 # After both restores, the directory mode should be 755
14045 )"
14046 echo extrac06.at:36 >"$at_check_line_file"
14047
14048 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
14049    false; }; then
14050   ( $at_traceon;
14051 mkdir v7
14052 (cd v7
14053 TEST_TAR_FORMAT=v7
14054 export TEST_TAR_FORMAT
14055 TAR_OPTIONS="-H v7"
14056 export TAR_OPTIONS
14057 rm -rf *
14058
14059
14060 # Force umask
14061 umask 022
14062
14063 # Make sure user's umask is honored, even if we are superuser
14064 TAR_OPTIONS="$TAR_OPTIONS --no-same-permissions"
14065
14066 # Create a directory
14067 mkdir directory
14068 chmod 777 directory
14069 genfile --stat=mode:777 directory
14070
14071 # Archive it
14072 tar cf arc directory
14073
14074 # Change its permissions ...
14075 chmod 755 directory
14076 genfile --stat=mode:777 directory
14077
14078 # ... and attempt to restore it twice
14079 tar xf arc directory --warning=no-timestamp
14080 genfile --stat=mode:777 directory
14081
14082 tar xf arc directory --warning=no-timestamp
14083 genfile --stat=mode:777 directory
14084
14085 # After both restores, the directory mode should be 755
14086 ) ) >"$at_stdout" 2>"$at_stder1"
14087   at_func_filter_trace $?
14088 else
14089   ( :;
14090 mkdir v7
14091 (cd v7
14092 TEST_TAR_FORMAT=v7
14093 export TEST_TAR_FORMAT
14094 TAR_OPTIONS="-H v7"
14095 export TAR_OPTIONS
14096 rm -rf *
14097
14098
14099 # Force umask
14100 umask 022
14101
14102 # Make sure user's umask is honored, even if we are superuser
14103 TAR_OPTIONS="$TAR_OPTIONS --no-same-permissions"
14104
14105 # Create a directory
14106 mkdir directory
14107 chmod 777 directory
14108 genfile --stat=mode:777 directory
14109
14110 # Archive it
14111 tar cf arc directory
14112
14113 # Change its permissions ...
14114 chmod 755 directory
14115 genfile --stat=mode:777 directory
14116
14117 # ... and attempt to restore it twice
14118 tar xf arc directory --warning=no-timestamp
14119 genfile --stat=mode:777 directory
14120
14121 tar xf arc directory --warning=no-timestamp
14122 genfile --stat=mode:777 directory
14123
14124 # After both restores, the directory mode should be 755
14125 ) ) >"$at_stdout" 2>"$at_stderr"
14126 fi
14127 at_status=$?
14128 at_failed=false
14129 at_func_diff_devnull "$at_stderr" || at_failed=:
14130 echo >>"$at_stdout"; $as_echo "777
14131 755
14132 755
14133 755
14134 " | \
14135   $at_diff - "$at_stdout" || at_failed=:
14136 at_func_check_status 0 $at_status "$at_srcdir/extrac06.at:36"
14137
14138 $at_failed && at_func_log_failure
14139 $at_traceon; }
14140
14141               { $at_traceoff
14142 $as_echo "$at_srcdir/extrac06.at:36:
14143 mkdir oldgnu
14144 (cd oldgnu
14145 TEST_TAR_FORMAT=oldgnu
14146 export TEST_TAR_FORMAT
14147 TAR_OPTIONS=\"-H oldgnu\"
14148 export TAR_OPTIONS
14149 rm -rf *
14150
14151
14152 # Force umask
14153 umask 022
14154
14155 # Make sure user's umask is honored, even if we are superuser
14156 TAR_OPTIONS=\"\$TAR_OPTIONS --no-same-permissions\"
14157
14158 # Create a directory
14159 mkdir directory
14160 chmod 777 directory
14161 genfile --stat=mode:777 directory
14162
14163 # Archive it
14164 tar cf arc directory
14165
14166 # Change its permissions ...
14167 chmod 755 directory
14168 genfile --stat=mode:777 directory
14169
14170 # ... and attempt to restore it twice
14171 tar xf arc directory --warning=no-timestamp
14172 genfile --stat=mode:777 directory
14173
14174 tar xf arc directory --warning=no-timestamp
14175 genfile --stat=mode:777 directory
14176
14177 # After both restores, the directory mode should be 755
14178 )"
14179 echo extrac06.at:36 >"$at_check_line_file"
14180
14181 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
14182    false; }; then
14183   ( $at_traceon;
14184 mkdir oldgnu
14185 (cd oldgnu
14186 TEST_TAR_FORMAT=oldgnu
14187 export TEST_TAR_FORMAT
14188 TAR_OPTIONS="-H oldgnu"
14189 export TAR_OPTIONS
14190 rm -rf *
14191
14192
14193 # Force umask
14194 umask 022
14195
14196 # Make sure user's umask is honored, even if we are superuser
14197 TAR_OPTIONS="$TAR_OPTIONS --no-same-permissions"
14198
14199 # Create a directory
14200 mkdir directory
14201 chmod 777 directory
14202 genfile --stat=mode:777 directory
14203
14204 # Archive it
14205 tar cf arc directory
14206
14207 # Change its permissions ...
14208 chmod 755 directory
14209 genfile --stat=mode:777 directory
14210
14211 # ... and attempt to restore it twice
14212 tar xf arc directory --warning=no-timestamp
14213 genfile --stat=mode:777 directory
14214
14215 tar xf arc directory --warning=no-timestamp
14216 genfile --stat=mode:777 directory
14217
14218 # After both restores, the directory mode should be 755
14219 ) ) >"$at_stdout" 2>"$at_stder1"
14220   at_func_filter_trace $?
14221 else
14222   ( :;
14223 mkdir oldgnu
14224 (cd oldgnu
14225 TEST_TAR_FORMAT=oldgnu
14226 export TEST_TAR_FORMAT
14227 TAR_OPTIONS="-H oldgnu"
14228 export TAR_OPTIONS
14229 rm -rf *
14230
14231
14232 # Force umask
14233 umask 022
14234
14235 # Make sure user's umask is honored, even if we are superuser
14236 TAR_OPTIONS="$TAR_OPTIONS --no-same-permissions"
14237
14238 # Create a directory
14239 mkdir directory
14240 chmod 777 directory
14241 genfile --stat=mode:777 directory
14242
14243 # Archive it
14244 tar cf arc directory
14245
14246 # Change its permissions ...
14247 chmod 755 directory
14248 genfile --stat=mode:777 directory
14249
14250 # ... and attempt to restore it twice
14251 tar xf arc directory --warning=no-timestamp
14252 genfile --stat=mode:777 directory
14253
14254 tar xf arc directory --warning=no-timestamp
14255 genfile --stat=mode:777 directory
14256
14257 # After both restores, the directory mode should be 755
14258 ) ) >"$at_stdout" 2>"$at_stderr"
14259 fi
14260 at_status=$?
14261 at_failed=false
14262 at_func_diff_devnull "$at_stderr" || at_failed=:
14263 echo >>"$at_stdout"; $as_echo "777
14264 755
14265 755
14266 755
14267 " | \
14268   $at_diff - "$at_stdout" || at_failed=:
14269 at_func_check_status 0 $at_status "$at_srcdir/extrac06.at:36"
14270
14271 $at_failed && at_func_log_failure
14272 $at_traceon; }
14273
14274               { $at_traceoff
14275 $as_echo "$at_srcdir/extrac06.at:36:
14276 mkdir ustar
14277 (cd ustar
14278 TEST_TAR_FORMAT=ustar
14279 export TEST_TAR_FORMAT
14280 TAR_OPTIONS=\"-H ustar\"
14281 export TAR_OPTIONS
14282 rm -rf *
14283
14284
14285 # Force umask
14286 umask 022
14287
14288 # Make sure user's umask is honored, even if we are superuser
14289 TAR_OPTIONS=\"\$TAR_OPTIONS --no-same-permissions\"
14290
14291 # Create a directory
14292 mkdir directory
14293 chmod 777 directory
14294 genfile --stat=mode:777 directory
14295
14296 # Archive it
14297 tar cf arc directory
14298
14299 # Change its permissions ...
14300 chmod 755 directory
14301 genfile --stat=mode:777 directory
14302
14303 # ... and attempt to restore it twice
14304 tar xf arc directory --warning=no-timestamp
14305 genfile --stat=mode:777 directory
14306
14307 tar xf arc directory --warning=no-timestamp
14308 genfile --stat=mode:777 directory
14309
14310 # After both restores, the directory mode should be 755
14311 )"
14312 echo extrac06.at:36 >"$at_check_line_file"
14313
14314 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
14315    false; }; then
14316   ( $at_traceon;
14317 mkdir ustar
14318 (cd ustar
14319 TEST_TAR_FORMAT=ustar
14320 export TEST_TAR_FORMAT
14321 TAR_OPTIONS="-H ustar"
14322 export TAR_OPTIONS
14323 rm -rf *
14324
14325
14326 # Force umask
14327 umask 022
14328
14329 # Make sure user's umask is honored, even if we are superuser
14330 TAR_OPTIONS="$TAR_OPTIONS --no-same-permissions"
14331
14332 # Create a directory
14333 mkdir directory
14334 chmod 777 directory
14335 genfile --stat=mode:777 directory
14336
14337 # Archive it
14338 tar cf arc directory
14339
14340 # Change its permissions ...
14341 chmod 755 directory
14342 genfile --stat=mode:777 directory
14343
14344 # ... and attempt to restore it twice
14345 tar xf arc directory --warning=no-timestamp
14346 genfile --stat=mode:777 directory
14347
14348 tar xf arc directory --warning=no-timestamp
14349 genfile --stat=mode:777 directory
14350
14351 # After both restores, the directory mode should be 755
14352 ) ) >"$at_stdout" 2>"$at_stder1"
14353   at_func_filter_trace $?
14354 else
14355   ( :;
14356 mkdir ustar
14357 (cd ustar
14358 TEST_TAR_FORMAT=ustar
14359 export TEST_TAR_FORMAT
14360 TAR_OPTIONS="-H ustar"
14361 export TAR_OPTIONS
14362 rm -rf *
14363
14364
14365 # Force umask
14366 umask 022
14367
14368 # Make sure user's umask is honored, even if we are superuser
14369 TAR_OPTIONS="$TAR_OPTIONS --no-same-permissions"
14370
14371 # Create a directory
14372 mkdir directory
14373 chmod 777 directory
14374 genfile --stat=mode:777 directory
14375
14376 # Archive it
14377 tar cf arc directory
14378
14379 # Change its permissions ...
14380 chmod 755 directory
14381 genfile --stat=mode:777 directory
14382
14383 # ... and attempt to restore it twice
14384 tar xf arc directory --warning=no-timestamp
14385 genfile --stat=mode:777 directory
14386
14387 tar xf arc directory --warning=no-timestamp
14388 genfile --stat=mode:777 directory
14389
14390 # After both restores, the directory mode should be 755
14391 ) ) >"$at_stdout" 2>"$at_stderr"
14392 fi
14393 at_status=$?
14394 at_failed=false
14395 at_func_diff_devnull "$at_stderr" || at_failed=:
14396 echo >>"$at_stdout"; $as_echo "777
14397 755
14398 755
14399 755
14400 " | \
14401   $at_diff - "$at_stdout" || at_failed=:
14402 at_func_check_status 0 $at_status "$at_srcdir/extrac06.at:36"
14403
14404 $at_failed && at_func_log_failure
14405 $at_traceon; }
14406
14407               { $at_traceoff
14408 $as_echo "$at_srcdir/extrac06.at:36:
14409 mkdir posix
14410 (cd posix
14411 TEST_TAR_FORMAT=posix
14412 export TEST_TAR_FORMAT
14413 TAR_OPTIONS=\"-H posix\"
14414 export TAR_OPTIONS
14415 rm -rf *
14416
14417
14418 # Force umask
14419 umask 022
14420
14421 # Make sure user's umask is honored, even if we are superuser
14422 TAR_OPTIONS=\"\$TAR_OPTIONS --no-same-permissions\"
14423
14424 # Create a directory
14425 mkdir directory
14426 chmod 777 directory
14427 genfile --stat=mode:777 directory
14428
14429 # Archive it
14430 tar cf arc directory
14431
14432 # Change its permissions ...
14433 chmod 755 directory
14434 genfile --stat=mode:777 directory
14435
14436 # ... and attempt to restore it twice
14437 tar xf arc directory --warning=no-timestamp
14438 genfile --stat=mode:777 directory
14439
14440 tar xf arc directory --warning=no-timestamp
14441 genfile --stat=mode:777 directory
14442
14443 # After both restores, the directory mode should be 755
14444 )"
14445 echo extrac06.at:36 >"$at_check_line_file"
14446
14447 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
14448    false; }; then
14449   ( $at_traceon;
14450 mkdir posix
14451 (cd posix
14452 TEST_TAR_FORMAT=posix
14453 export TEST_TAR_FORMAT
14454 TAR_OPTIONS="-H posix"
14455 export TAR_OPTIONS
14456 rm -rf *
14457
14458
14459 # Force umask
14460 umask 022
14461
14462 # Make sure user's umask is honored, even if we are superuser
14463 TAR_OPTIONS="$TAR_OPTIONS --no-same-permissions"
14464
14465 # Create a directory
14466 mkdir directory
14467 chmod 777 directory
14468 genfile --stat=mode:777 directory
14469
14470 # Archive it
14471 tar cf arc directory
14472
14473 # Change its permissions ...
14474 chmod 755 directory
14475 genfile --stat=mode:777 directory
14476
14477 # ... and attempt to restore it twice
14478 tar xf arc directory --warning=no-timestamp
14479 genfile --stat=mode:777 directory
14480
14481 tar xf arc directory --warning=no-timestamp
14482 genfile --stat=mode:777 directory
14483
14484 # After both restores, the directory mode should be 755
14485 ) ) >"$at_stdout" 2>"$at_stder1"
14486   at_func_filter_trace $?
14487 else
14488   ( :;
14489 mkdir posix
14490 (cd posix
14491 TEST_TAR_FORMAT=posix
14492 export TEST_TAR_FORMAT
14493 TAR_OPTIONS="-H posix"
14494 export TAR_OPTIONS
14495 rm -rf *
14496
14497
14498 # Force umask
14499 umask 022
14500
14501 # Make sure user's umask is honored, even if we are superuser
14502 TAR_OPTIONS="$TAR_OPTIONS --no-same-permissions"
14503
14504 # Create a directory
14505 mkdir directory
14506 chmod 777 directory
14507 genfile --stat=mode:777 directory
14508
14509 # Archive it
14510 tar cf arc directory
14511
14512 # Change its permissions ...
14513 chmod 755 directory
14514 genfile --stat=mode:777 directory
14515
14516 # ... and attempt to restore it twice
14517 tar xf arc directory --warning=no-timestamp
14518 genfile --stat=mode:777 directory
14519
14520 tar xf arc directory --warning=no-timestamp
14521 genfile --stat=mode:777 directory
14522
14523 # After both restores, the directory mode should be 755
14524 ) ) >"$at_stdout" 2>"$at_stderr"
14525 fi
14526 at_status=$?
14527 at_failed=false
14528 at_func_diff_devnull "$at_stderr" || at_failed=:
14529 echo >>"$at_stdout"; $as_echo "777
14530 755
14531 755
14532 755
14533 " | \
14534   $at_diff - "$at_stdout" || at_failed=:
14535 at_func_check_status 0 $at_status "$at_srcdir/extrac06.at:36"
14536
14537 $at_failed && at_func_log_failure
14538 $at_traceon; }
14539
14540               { $at_traceoff
14541 $as_echo "$at_srcdir/extrac06.at:36:
14542 mkdir gnu
14543 (cd gnu
14544 TEST_TAR_FORMAT=gnu
14545 export TEST_TAR_FORMAT
14546 TAR_OPTIONS=\"-H gnu\"
14547 export TAR_OPTIONS
14548 rm -rf *
14549
14550
14551 # Force umask
14552 umask 022
14553
14554 # Make sure user's umask is honored, even if we are superuser
14555 TAR_OPTIONS=\"\$TAR_OPTIONS --no-same-permissions\"
14556
14557 # Create a directory
14558 mkdir directory
14559 chmod 777 directory
14560 genfile --stat=mode:777 directory
14561
14562 # Archive it
14563 tar cf arc directory
14564
14565 # Change its permissions ...
14566 chmod 755 directory
14567 genfile --stat=mode:777 directory
14568
14569 # ... and attempt to restore it twice
14570 tar xf arc directory --warning=no-timestamp
14571 genfile --stat=mode:777 directory
14572
14573 tar xf arc directory --warning=no-timestamp
14574 genfile --stat=mode:777 directory
14575
14576 # After both restores, the directory mode should be 755
14577 )"
14578 echo extrac06.at:36 >"$at_check_line_file"
14579
14580 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
14581    false; }; then
14582   ( $at_traceon;
14583 mkdir gnu
14584 (cd gnu
14585 TEST_TAR_FORMAT=gnu
14586 export TEST_TAR_FORMAT
14587 TAR_OPTIONS="-H gnu"
14588 export TAR_OPTIONS
14589 rm -rf *
14590
14591
14592 # Force umask
14593 umask 022
14594
14595 # Make sure user's umask is honored, even if we are superuser
14596 TAR_OPTIONS="$TAR_OPTIONS --no-same-permissions"
14597
14598 # Create a directory
14599 mkdir directory
14600 chmod 777 directory
14601 genfile --stat=mode:777 directory
14602
14603 # Archive it
14604 tar cf arc directory
14605
14606 # Change its permissions ...
14607 chmod 755 directory
14608 genfile --stat=mode:777 directory
14609
14610 # ... and attempt to restore it twice
14611 tar xf arc directory --warning=no-timestamp
14612 genfile --stat=mode:777 directory
14613
14614 tar xf arc directory --warning=no-timestamp
14615 genfile --stat=mode:777 directory
14616
14617 # After both restores, the directory mode should be 755
14618 ) ) >"$at_stdout" 2>"$at_stder1"
14619   at_func_filter_trace $?
14620 else
14621   ( :;
14622 mkdir gnu
14623 (cd gnu
14624 TEST_TAR_FORMAT=gnu
14625 export TEST_TAR_FORMAT
14626 TAR_OPTIONS="-H gnu"
14627 export TAR_OPTIONS
14628 rm -rf *
14629
14630
14631 # Force umask
14632 umask 022
14633
14634 # Make sure user's umask is honored, even if we are superuser
14635 TAR_OPTIONS="$TAR_OPTIONS --no-same-permissions"
14636
14637 # Create a directory
14638 mkdir directory
14639 chmod 777 directory
14640 genfile --stat=mode:777 directory
14641
14642 # Archive it
14643 tar cf arc directory
14644
14645 # Change its permissions ...
14646 chmod 755 directory
14647 genfile --stat=mode:777 directory
14648
14649 # ... and attempt to restore it twice
14650 tar xf arc directory --warning=no-timestamp
14651 genfile --stat=mode:777 directory
14652
14653 tar xf arc directory --warning=no-timestamp
14654 genfile --stat=mode:777 directory
14655
14656 # After both restores, the directory mode should be 755
14657 ) ) >"$at_stdout" 2>"$at_stderr"
14658 fi
14659 at_status=$?
14660 at_failed=false
14661 at_func_diff_devnull "$at_stderr" || at_failed=:
14662 echo >>"$at_stdout"; $as_echo "777
14663 755
14664 755
14665 755
14666 " | \
14667   $at_diff - "$at_stdout" || at_failed=:
14668 at_func_check_status 0 $at_status "$at_srcdir/extrac06.at:36"
14669
14670 $at_failed && at_func_log_failure
14671 $at_traceon; }
14672
14673
14674
14675
14676   $at_traceoff
14677   $at_times_p && times >"$at_times_file"
14678 ) 5>&1 2>&1 | eval $at_tee_pipe
14679 at_status=`cat "$at_status_file"`
14680 #AT_STOP_32
14681 #AT_START_33
14682 # 33. extrac07.at:27: extracting symlinks to a read-only dir
14683 at_setup_line='extrac07.at:27'
14684 at_desc="extracting symlinks to a read-only dir"
14685 $at_quiet $as_echo_n " 33: $at_desc         "
14686 at_xfail=no
14687       test -f $XFAILFILE && at_xfail=yes
14688 echo "#                             -*- compilation -*-" >> "$at_group_log"
14689 (
14690   $as_echo "33. extrac07.at:27: testing ..."
14691   $at_traceon
14692
14693
14694
14695
14696
14697   { $at_traceoff
14698 $as_echo "$at_srcdir/extrac07.at:30:
14699 mkdir ustar
14700 (cd ustar
14701 TEST_TAR_FORMAT=ustar
14702 export TEST_TAR_FORMAT
14703 TAR_OPTIONS=\"-H ustar\"
14704 export TAR_OPTIONS
14705 rm -rf *
14706
14707
14708 echo "test" > $$
14709 chmod 0 $$
14710 cat $$ > /dev/null 2>&1
14711 result=$?
14712 rm -f $$
14713 test $result -eq 0 && exit 77
14714
14715
14716 echo Prepare the directory
14717 mkdir dir
14718 genfile -f foo
14719 cd dir
14720 ln -s ../foo .
14721 cd ..
14722 chmod a-w dir
14723
14724 echo Create the archive
14725 tar cf archive dir || exit 1
14726
14727 chmod +w dir
14728
14729 echo Extract
14730 mkdir out
14731 tar -C out -xvf archive
14732 )"
14733 echo extrac07.at:30 >"$at_check_line_file"
14734
14735 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
14736    false; }; then
14737   ( $at_traceon;
14738 mkdir ustar
14739 (cd ustar
14740 TEST_TAR_FORMAT=ustar
14741 export TEST_TAR_FORMAT
14742 TAR_OPTIONS="-H ustar"
14743 export TAR_OPTIONS
14744 rm -rf *
14745
14746
14747 echo "test" > $$
14748 chmod 0 $$
14749 cat $$ > /dev/null 2>&1
14750 result=$?
14751 rm -f $$
14752 test $result -eq 0 && exit 77
14753
14754
14755 echo Prepare the directory
14756 mkdir dir
14757 genfile -f foo
14758 cd dir
14759 ln -s ../foo .
14760 cd ..
14761 chmod a-w dir
14762
14763 echo Create the archive
14764 tar cf archive dir || exit 1
14765
14766 chmod +w dir
14767
14768 echo Extract
14769 mkdir out
14770 tar -C out -xvf archive
14771 ) ) >"$at_stdout" 2>"$at_stder1"
14772   at_func_filter_trace $?
14773 else
14774   ( :;
14775 mkdir ustar
14776 (cd ustar
14777 TEST_TAR_FORMAT=ustar
14778 export TEST_TAR_FORMAT
14779 TAR_OPTIONS="-H ustar"
14780 export TAR_OPTIONS
14781 rm -rf *
14782
14783
14784 echo "test" > $$
14785 chmod 0 $$
14786 cat $$ > /dev/null 2>&1
14787 result=$?
14788 rm -f $$
14789 test $result -eq 0 && exit 77
14790
14791
14792 echo Prepare the directory
14793 mkdir dir
14794 genfile -f foo
14795 cd dir
14796 ln -s ../foo .
14797 cd ..
14798 chmod a-w dir
14799
14800 echo Create the archive
14801 tar cf archive dir || exit 1
14802
14803 chmod +w dir
14804
14805 echo Extract
14806 mkdir out
14807 tar -C out -xvf archive
14808 ) ) >"$at_stdout" 2>"$at_stderr"
14809 fi
14810 at_status=$?
14811 at_failed=false
14812 at_func_diff_devnull "$at_stderr" || at_failed=:
14813 echo >>"$at_stdout"; $as_echo "Prepare the directory
14814 Create the archive
14815 Extract
14816 dir/
14817 dir/foo
14818 " | \
14819   $at_diff - "$at_stdout" || at_failed=:
14820 at_func_check_status 0 $at_status "$at_srcdir/extrac07.at:30"
14821
14822 $at_failed && at_func_log_failure
14823 $at_traceon; }
14824
14825
14826  # Testing one format is enough
14827
14828   $at_traceoff
14829   $at_times_p && times >"$at_times_file"
14830 ) 5>&1 2>&1 | eval $at_tee_pipe
14831 at_status=`cat "$at_status_file"`
14832 #AT_STOP_33
14833 #AT_START_34
14834 # 34. extrac08.at:33: restoring mode on existing directory
14835 at_setup_line='extrac08.at:33'
14836 at_desc="restoring mode on existing directory"
14837 $at_quiet $as_echo_n " 34: $at_desc           "
14838 at_xfail=no
14839       test -f $XFAILFILE && at_xfail=yes
14840 echo "#                             -*- compilation -*-" >> "$at_group_log"
14841 (
14842   $as_echo "34. extrac08.at:33: testing ..."
14843   $at_traceon
14844
14845
14846
14847
14848
14849   { $at_traceoff
14850 $as_echo "$at_srcdir/extrac08.at:36:
14851 mkdir v7
14852 (cd v7
14853 TEST_TAR_FORMAT=v7
14854 export TEST_TAR_FORMAT
14855 TAR_OPTIONS=\"-H v7\"
14856 export TAR_OPTIONS
14857 rm -rf *
14858
14859 umask 000
14860 mkdir dir
14861 chmod 755 dir
14862 echo bla > dir/file
14863 tar cf test.tar dir
14864 chmod 700 dir
14865 tar xfv test.tar --warning=no-timestamp
14866 genfile --stat=mode.777 dir
14867 )"
14868 echo extrac08.at:36 >"$at_check_line_file"
14869
14870 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
14871    false; }; then
14872   ( $at_traceon;
14873 mkdir v7
14874 (cd v7
14875 TEST_TAR_FORMAT=v7
14876 export TEST_TAR_FORMAT
14877 TAR_OPTIONS="-H v7"
14878 export TAR_OPTIONS
14879 rm -rf *
14880
14881 umask 000
14882 mkdir dir
14883 chmod 755 dir
14884 echo bla > dir/file
14885 tar cf test.tar dir
14886 chmod 700 dir
14887 tar xfv test.tar --warning=no-timestamp
14888 genfile --stat=mode.777 dir
14889 ) ) >"$at_stdout" 2>"$at_stder1"
14890   at_func_filter_trace $?
14891 else
14892   ( :;
14893 mkdir v7
14894 (cd v7
14895 TEST_TAR_FORMAT=v7
14896 export TEST_TAR_FORMAT
14897 TAR_OPTIONS="-H v7"
14898 export TAR_OPTIONS
14899 rm -rf *
14900
14901 umask 000
14902 mkdir dir
14903 chmod 755 dir
14904 echo bla > dir/file
14905 tar cf test.tar dir
14906 chmod 700 dir
14907 tar xfv test.tar --warning=no-timestamp
14908 genfile --stat=mode.777 dir
14909 ) ) >"$at_stdout" 2>"$at_stderr"
14910 fi
14911 at_status=$?
14912 at_failed=false
14913 at_func_diff_devnull "$at_stderr" || at_failed=:
14914 echo >>"$at_stdout"; $as_echo "dir/
14915 dir/file
14916 755
14917 " | \
14918   $at_diff - "$at_stdout" || at_failed=:
14919 at_func_check_status 0 $at_status "$at_srcdir/extrac08.at:36"
14920
14921 $at_failed && at_func_log_failure
14922 $at_traceon; }
14923
14924               { $at_traceoff
14925 $as_echo "$at_srcdir/extrac08.at:36:
14926 mkdir oldgnu
14927 (cd oldgnu
14928 TEST_TAR_FORMAT=oldgnu
14929 export TEST_TAR_FORMAT
14930 TAR_OPTIONS=\"-H oldgnu\"
14931 export TAR_OPTIONS
14932 rm -rf *
14933
14934 umask 000
14935 mkdir dir
14936 chmod 755 dir
14937 echo bla > dir/file
14938 tar cf test.tar dir
14939 chmod 700 dir
14940 tar xfv test.tar --warning=no-timestamp
14941 genfile --stat=mode.777 dir
14942 )"
14943 echo extrac08.at:36 >"$at_check_line_file"
14944
14945 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
14946    false; }; then
14947   ( $at_traceon;
14948 mkdir oldgnu
14949 (cd oldgnu
14950 TEST_TAR_FORMAT=oldgnu
14951 export TEST_TAR_FORMAT
14952 TAR_OPTIONS="-H oldgnu"
14953 export TAR_OPTIONS
14954 rm -rf *
14955
14956 umask 000
14957 mkdir dir
14958 chmod 755 dir
14959 echo bla > dir/file
14960 tar cf test.tar dir
14961 chmod 700 dir
14962 tar xfv test.tar --warning=no-timestamp
14963 genfile --stat=mode.777 dir
14964 ) ) >"$at_stdout" 2>"$at_stder1"
14965   at_func_filter_trace $?
14966 else
14967   ( :;
14968 mkdir oldgnu
14969 (cd oldgnu
14970 TEST_TAR_FORMAT=oldgnu
14971 export TEST_TAR_FORMAT
14972 TAR_OPTIONS="-H oldgnu"
14973 export TAR_OPTIONS
14974 rm -rf *
14975
14976 umask 000
14977 mkdir dir
14978 chmod 755 dir
14979 echo bla > dir/file
14980 tar cf test.tar dir
14981 chmod 700 dir
14982 tar xfv test.tar --warning=no-timestamp
14983 genfile --stat=mode.777 dir
14984 ) ) >"$at_stdout" 2>"$at_stderr"
14985 fi
14986 at_status=$?
14987 at_failed=false
14988 at_func_diff_devnull "$at_stderr" || at_failed=:
14989 echo >>"$at_stdout"; $as_echo "dir/
14990 dir/file
14991 755
14992 " | \
14993   $at_diff - "$at_stdout" || at_failed=:
14994 at_func_check_status 0 $at_status "$at_srcdir/extrac08.at:36"
14995
14996 $at_failed && at_func_log_failure
14997 $at_traceon; }
14998
14999               { $at_traceoff
15000 $as_echo "$at_srcdir/extrac08.at:36:
15001 mkdir ustar
15002 (cd ustar
15003 TEST_TAR_FORMAT=ustar
15004 export TEST_TAR_FORMAT
15005 TAR_OPTIONS=\"-H ustar\"
15006 export TAR_OPTIONS
15007 rm -rf *
15008
15009 umask 000
15010 mkdir dir
15011 chmod 755 dir
15012 echo bla > dir/file
15013 tar cf test.tar dir
15014 chmod 700 dir
15015 tar xfv test.tar --warning=no-timestamp
15016 genfile --stat=mode.777 dir
15017 )"
15018 echo extrac08.at:36 >"$at_check_line_file"
15019
15020 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
15021    false; }; then
15022   ( $at_traceon;
15023 mkdir ustar
15024 (cd ustar
15025 TEST_TAR_FORMAT=ustar
15026 export TEST_TAR_FORMAT
15027 TAR_OPTIONS="-H ustar"
15028 export TAR_OPTIONS
15029 rm -rf *
15030
15031 umask 000
15032 mkdir dir
15033 chmod 755 dir
15034 echo bla > dir/file
15035 tar cf test.tar dir
15036 chmod 700 dir
15037 tar xfv test.tar --warning=no-timestamp
15038 genfile --stat=mode.777 dir
15039 ) ) >"$at_stdout" 2>"$at_stder1"
15040   at_func_filter_trace $?
15041 else
15042   ( :;
15043 mkdir ustar
15044 (cd ustar
15045 TEST_TAR_FORMAT=ustar
15046 export TEST_TAR_FORMAT
15047 TAR_OPTIONS="-H ustar"
15048 export TAR_OPTIONS
15049 rm -rf *
15050
15051 umask 000
15052 mkdir dir
15053 chmod 755 dir
15054 echo bla > dir/file
15055 tar cf test.tar dir
15056 chmod 700 dir
15057 tar xfv test.tar --warning=no-timestamp
15058 genfile --stat=mode.777 dir
15059 ) ) >"$at_stdout" 2>"$at_stderr"
15060 fi
15061 at_status=$?
15062 at_failed=false
15063 at_func_diff_devnull "$at_stderr" || at_failed=:
15064 echo >>"$at_stdout"; $as_echo "dir/
15065 dir/file
15066 755
15067 " | \
15068   $at_diff - "$at_stdout" || at_failed=:
15069 at_func_check_status 0 $at_status "$at_srcdir/extrac08.at:36"
15070
15071 $at_failed && at_func_log_failure
15072 $at_traceon; }
15073
15074               { $at_traceoff
15075 $as_echo "$at_srcdir/extrac08.at:36:
15076 mkdir posix
15077 (cd posix
15078 TEST_TAR_FORMAT=posix
15079 export TEST_TAR_FORMAT
15080 TAR_OPTIONS=\"-H posix\"
15081 export TAR_OPTIONS
15082 rm -rf *
15083
15084 umask 000
15085 mkdir dir
15086 chmod 755 dir
15087 echo bla > dir/file
15088 tar cf test.tar dir
15089 chmod 700 dir
15090 tar xfv test.tar --warning=no-timestamp
15091 genfile --stat=mode.777 dir
15092 )"
15093 echo extrac08.at:36 >"$at_check_line_file"
15094
15095 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
15096    false; }; then
15097   ( $at_traceon;
15098 mkdir posix
15099 (cd posix
15100 TEST_TAR_FORMAT=posix
15101 export TEST_TAR_FORMAT
15102 TAR_OPTIONS="-H posix"
15103 export TAR_OPTIONS
15104 rm -rf *
15105
15106 umask 000
15107 mkdir dir
15108 chmod 755 dir
15109 echo bla > dir/file
15110 tar cf test.tar dir
15111 chmod 700 dir
15112 tar xfv test.tar --warning=no-timestamp
15113 genfile --stat=mode.777 dir
15114 ) ) >"$at_stdout" 2>"$at_stder1"
15115   at_func_filter_trace $?
15116 else
15117   ( :;
15118 mkdir posix
15119 (cd posix
15120 TEST_TAR_FORMAT=posix
15121 export TEST_TAR_FORMAT
15122 TAR_OPTIONS="-H posix"
15123 export TAR_OPTIONS
15124 rm -rf *
15125
15126 umask 000
15127 mkdir dir
15128 chmod 755 dir
15129 echo bla > dir/file
15130 tar cf test.tar dir
15131 chmod 700 dir
15132 tar xfv test.tar --warning=no-timestamp
15133 genfile --stat=mode.777 dir
15134 ) ) >"$at_stdout" 2>"$at_stderr"
15135 fi
15136 at_status=$?
15137 at_failed=false
15138 at_func_diff_devnull "$at_stderr" || at_failed=:
15139 echo >>"$at_stdout"; $as_echo "dir/
15140 dir/file
15141 755
15142 " | \
15143   $at_diff - "$at_stdout" || at_failed=:
15144 at_func_check_status 0 $at_status "$at_srcdir/extrac08.at:36"
15145
15146 $at_failed && at_func_log_failure
15147 $at_traceon; }
15148
15149               { $at_traceoff
15150 $as_echo "$at_srcdir/extrac08.at:36:
15151 mkdir gnu
15152 (cd gnu
15153 TEST_TAR_FORMAT=gnu
15154 export TEST_TAR_FORMAT
15155 TAR_OPTIONS=\"-H gnu\"
15156 export TAR_OPTIONS
15157 rm -rf *
15158
15159 umask 000
15160 mkdir dir
15161 chmod 755 dir
15162 echo bla > dir/file
15163 tar cf test.tar dir
15164 chmod 700 dir
15165 tar xfv test.tar --warning=no-timestamp
15166 genfile --stat=mode.777 dir
15167 )"
15168 echo extrac08.at:36 >"$at_check_line_file"
15169
15170 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
15171    false; }; then
15172   ( $at_traceon;
15173 mkdir gnu
15174 (cd gnu
15175 TEST_TAR_FORMAT=gnu
15176 export TEST_TAR_FORMAT
15177 TAR_OPTIONS="-H gnu"
15178 export TAR_OPTIONS
15179 rm -rf *
15180
15181 umask 000
15182 mkdir dir
15183 chmod 755 dir
15184 echo bla > dir/file
15185 tar cf test.tar dir
15186 chmod 700 dir
15187 tar xfv test.tar --warning=no-timestamp
15188 genfile --stat=mode.777 dir
15189 ) ) >"$at_stdout" 2>"$at_stder1"
15190   at_func_filter_trace $?
15191 else
15192   ( :;
15193 mkdir gnu
15194 (cd gnu
15195 TEST_TAR_FORMAT=gnu
15196 export TEST_TAR_FORMAT
15197 TAR_OPTIONS="-H gnu"
15198 export TAR_OPTIONS
15199 rm -rf *
15200
15201 umask 000
15202 mkdir dir
15203 chmod 755 dir
15204 echo bla > dir/file
15205 tar cf test.tar dir
15206 chmod 700 dir
15207 tar xfv test.tar --warning=no-timestamp
15208 genfile --stat=mode.777 dir
15209 ) ) >"$at_stdout" 2>"$at_stderr"
15210 fi
15211 at_status=$?
15212 at_failed=false
15213 at_func_diff_devnull "$at_stderr" || at_failed=:
15214 echo >>"$at_stdout"; $as_echo "dir/
15215 dir/file
15216 755
15217 " | \
15218   $at_diff - "$at_stdout" || at_failed=:
15219 at_func_check_status 0 $at_status "$at_srcdir/extrac08.at:36"
15220
15221 $at_failed && at_func_log_failure
15222 $at_traceon; }
15223
15224
15225
15226
15227   $at_traceoff
15228   $at_times_p && times >"$at_times_file"
15229 ) 5>&1 2>&1 | eval $at_tee_pipe
15230 at_status=`cat "$at_status_file"`
15231 #AT_STOP_34
15232 #AT_START_35
15233 # 35. extrac09.at:22: no need to save dir with unreadable . and ..
15234 at_setup_line='extrac09.at:22'
15235 at_desc="no need to save dir with unreadable . and .."
15236 $at_quiet $as_echo_n " 35: $at_desc   "
15237 at_xfail=no
15238       test -f $XFAILFILE && at_xfail=yes
15239 echo "#                             -*- compilation -*-" >> "$at_group_log"
15240 (
15241   $as_echo "35. extrac09.at:22: testing ..."
15242   $at_traceon
15243
15244
15245
15246
15247
15248   { $at_traceoff
15249 $as_echo "$at_srcdir/extrac09.at:25:
15250 mkdir gnu
15251 (cd gnu
15252 TEST_TAR_FORMAT=gnu
15253 export TEST_TAR_FORMAT
15254 TAR_OPTIONS=\"-H gnu\"
15255 export TAR_OPTIONS
15256 rm -rf *
15257
15258
15259 echo "test" > $$
15260 chmod 0 $$
15261 cat $$ > /dev/null 2>&1
15262 result=$?
15263 rm -f $$
15264 test $result -eq 0 && exit 77
15265
15266
15267 mkdir dir
15268 mkdir dir/sub
15269 mkdir dir/sub/extract
15270 genfile --file dir/sub/f
15271 cd dir/sub
15272
15273 tar -cf archive.tar f
15274
15275 chmod a-r . ..
15276 tar -xvf archive.tar -C extract f
15277 status=\$?
15278 chmod a+r . ..
15279 cmp f extract/f || status=\$?
15280 exit \$status
15281 )"
15282 echo extrac09.at:25 >"$at_check_line_file"
15283
15284 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
15285    false; }; then
15286   ( $at_traceon;
15287 mkdir gnu
15288 (cd gnu
15289 TEST_TAR_FORMAT=gnu
15290 export TEST_TAR_FORMAT
15291 TAR_OPTIONS="-H gnu"
15292 export TAR_OPTIONS
15293 rm -rf *
15294
15295
15296 echo "test" > $$
15297 chmod 0 $$
15298 cat $$ > /dev/null 2>&1
15299 result=$?
15300 rm -f $$
15301 test $result -eq 0 && exit 77
15302
15303
15304 mkdir dir
15305 mkdir dir/sub
15306 mkdir dir/sub/extract
15307 genfile --file dir/sub/f
15308 cd dir/sub
15309
15310 tar -cf archive.tar f
15311
15312 chmod a-r . ..
15313 tar -xvf archive.tar -C extract f
15314 status=$?
15315 chmod a+r . ..
15316 cmp f extract/f || status=$?
15317 exit $status
15318 ) ) >"$at_stdout" 2>"$at_stder1"
15319   at_func_filter_trace $?
15320 else
15321   ( :;
15322 mkdir gnu
15323 (cd gnu
15324 TEST_TAR_FORMAT=gnu
15325 export TEST_TAR_FORMAT
15326 TAR_OPTIONS="-H gnu"
15327 export TAR_OPTIONS
15328 rm -rf *
15329
15330
15331 echo "test" > $$
15332 chmod 0 $$
15333 cat $$ > /dev/null 2>&1
15334 result=$?
15335 rm -f $$
15336 test $result -eq 0 && exit 77
15337
15338
15339 mkdir dir
15340 mkdir dir/sub
15341 mkdir dir/sub/extract
15342 genfile --file dir/sub/f
15343 cd dir/sub
15344
15345 tar -cf archive.tar f
15346
15347 chmod a-r . ..
15348 tar -xvf archive.tar -C extract f
15349 status=$?
15350 chmod a+r . ..
15351 cmp f extract/f || status=$?
15352 exit $status
15353 ) ) >"$at_stdout" 2>"$at_stderr"
15354 fi
15355 at_status=$?
15356 at_failed=false
15357 at_func_diff_devnull "$at_stderr" || at_failed=:
15358 echo >>"$at_stdout"; $as_echo "f
15359 " | \
15360   $at_diff - "$at_stdout" || at_failed=:
15361 at_func_check_status 0 $at_status "$at_srcdir/extrac09.at:25"
15362
15363 $at_failed && at_func_log_failure
15364 $at_traceon; }
15365
15366
15367
15368
15369   $at_traceoff
15370   $at_times_p && times >"$at_times_file"
15371 ) 5>&1 2>&1 | eval $at_tee_pipe
15372 at_status=`cat "$at_status_file"`
15373 #AT_STOP_35
15374 #AT_START_36
15375 # 36. extrac10.at:27: -C and delayed setting of metadata
15376 at_setup_line='extrac10.at:27'
15377 at_desc="-C and delayed setting of metadata"
15378 $at_quiet $as_echo_n " 36: $at_desc             "
15379 at_xfail=no
15380       test -f $XFAILFILE && at_xfail=yes
15381 echo "#                             -*- compilation -*-" >> "$at_group_log"
15382 (
15383   $as_echo "36. extrac10.at:27: testing ..."
15384   $at_traceon
15385
15386
15387
15388
15389
15390   { $at_traceoff
15391 $as_echo "$at_srcdir/extrac10.at:30:
15392 mkdir gnu
15393 (cd gnu
15394 TEST_TAR_FORMAT=gnu
15395 export TEST_TAR_FORMAT
15396 TAR_OPTIONS=\"-H gnu\"
15397 export TAR_OPTIONS
15398 rm -rf *
15399
15400 mkdir d x x/y
15401 echo foo >d/d1
15402 echo bar >e
15403
15404 tar -cf archive.tar d e &&
15405 tar -xf archive.tar -C x d -C y e &&
15406 diff -r d x/d &&
15407 diff e x/y/e
15408 )"
15409 echo extrac10.at:30 >"$at_check_line_file"
15410
15411 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
15412    false; }; then
15413   ( $at_traceon;
15414 mkdir gnu
15415 (cd gnu
15416 TEST_TAR_FORMAT=gnu
15417 export TEST_TAR_FORMAT
15418 TAR_OPTIONS="-H gnu"
15419 export TAR_OPTIONS
15420 rm -rf *
15421
15422 mkdir d x x/y
15423 echo foo >d/d1
15424 echo bar >e
15425
15426 tar -cf archive.tar d e &&
15427 tar -xf archive.tar -C x d -C y e &&
15428 diff -r d x/d &&
15429 diff e x/y/e
15430 ) ) >"$at_stdout" 2>"$at_stder1"
15431   at_func_filter_trace $?
15432 else
15433   ( :;
15434 mkdir gnu
15435 (cd gnu
15436 TEST_TAR_FORMAT=gnu
15437 export TEST_TAR_FORMAT
15438 TAR_OPTIONS="-H gnu"
15439 export TAR_OPTIONS
15440 rm -rf *
15441
15442 mkdir d x x/y
15443 echo foo >d/d1
15444 echo bar >e
15445
15446 tar -cf archive.tar d e &&
15447 tar -xf archive.tar -C x d -C y e &&
15448 diff -r d x/d &&
15449 diff e x/y/e
15450 ) ) >"$at_stdout" 2>"$at_stderr"
15451 fi
15452 at_status=$?
15453 at_failed=false
15454 at_func_diff_devnull "$at_stderr" || at_failed=:
15455 at_func_diff_devnull "$at_stdout" || at_failed=:
15456 at_func_check_status 0 $at_status "$at_srcdir/extrac10.at:30"
15457
15458 $at_failed && at_func_log_failure
15459 $at_traceon; }
15460
15461
15462
15463
15464   $at_traceoff
15465   $at_times_p && times >"$at_times_file"
15466 ) 5>&1 2>&1 | eval $at_tee_pipe
15467 at_status=`cat "$at_status_file"`
15468 #AT_STOP_36
15469 #AT_START_37
15470 # 37. extrac11.at:23: scarce file descriptors
15471 at_setup_line='extrac11.at:23'
15472 at_desc="scarce file descriptors"
15473 $at_quiet $as_echo_n " 37: $at_desc                        "
15474 at_xfail=no
15475       test -f $XFAILFILE && at_xfail=yes
15476 echo "#                             -*- compilation -*-" >> "$at_group_log"
15477 (
15478   $as_echo "37. extrac11.at:23: testing ..."
15479   $at_traceon
15480
15481
15482
15483
15484
15485   { $at_traceoff
15486 $as_echo "$at_srcdir/extrac11.at:26:
15487 mkdir gnu
15488 (cd gnu
15489 TEST_TAR_FORMAT=gnu
15490 export TEST_TAR_FORMAT
15491 TAR_OPTIONS=\"-H gnu\"
15492 export TAR_OPTIONS
15493 rm -rf *
15494
15495 exec </dev/null
15496 dirs='a
15497       a/b
15498       a/b/c
15499       a/b/c/d
15500       a/b/c/d/e
15501       a/b/c/d/e/f
15502       a/b/c/d/e/f/g
15503       a/b/c/d/e/f/g/h
15504       a/b/c/d/e/f/g/h/i
15505       a/b/c/d/e/f/g/h/i/j
15506       a/b/c/d/e/f/g/h/i/j/k
15507 '
15508 files=
15509 mkdir \$dirs dest1 dest2 dest3 || exit
15510 for dir in \$dirs; do
15511   for file in X Y Z; do
15512     echo \$file >\$dir/\$file || exit
15513     files=\"\$files \$file\"
15514   done
15515 done
15516
15517 # Check that \"ulimit\" itself works.  Close file descriptors before
15518 # invoking ulimit, to work around a bug (or a \"feature\") in some shells,
15519 # where they squirrel away dups of file descriptors into FD 10 and up
15520 # before closing the originals.
15521 ( (exec 3<&- 4<&- 5<&- 6<&- 7<&- 8<&- 9<&- &&
15522    ulimit -n 100 &&
15523    tar -cf archive1.tar a &&
15524    tar -xf archive1.tar -C dest1 a
15525   ) &&
15526   diff -r a dest1/a
15527 ) >/dev/null 2>&1 ||
15528    exit 77
15529
15530 # Another test that \"ulimit\" itself works:
15531 # tar should fail when completely starved of file descriptors.
15532 ( (exec 3<&- 4<&- 5<&- 6<&- 7<&- 8<&- 9<&- &&
15533    ulimit -n 4 &&
15534    tar -cf archive2.tar a &&
15535    tar -xf archive2.tar -C dest2 a
15536   ) &&
15537   diff -r a dest2/a
15538 ) >/dev/null 2>&1 &&
15539    exit 77
15540
15541 # Tar should work when there are few, but enough, file descriptors.
15542 ( (exec 3<&- 4<&- 5<&- 6<&- 7<&- 8<&- 9<&- &&
15543    ulimit -n 10 &&
15544    tar -cf archive3.tar a &&
15545    tar -xf archive3.tar -C dest3 a
15546   ) &&
15547   diff -r a dest3/a >/dev/null 2>&1
15548 ) || { diff -r a dest3/a; exit 1; }
15549 )"
15550 echo extrac11.at:26 >"$at_check_line_file"
15551
15552 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
15553    false; }; then
15554   ( $at_traceon;
15555 mkdir gnu
15556 (cd gnu
15557 TEST_TAR_FORMAT=gnu
15558 export TEST_TAR_FORMAT
15559 TAR_OPTIONS="-H gnu"
15560 export TAR_OPTIONS
15561 rm -rf *
15562
15563 exec </dev/null
15564 dirs='a
15565       a/b
15566       a/b/c
15567       a/b/c/d
15568       a/b/c/d/e
15569       a/b/c/d/e/f
15570       a/b/c/d/e/f/g
15571       a/b/c/d/e/f/g/h
15572       a/b/c/d/e/f/g/h/i
15573       a/b/c/d/e/f/g/h/i/j
15574       a/b/c/d/e/f/g/h/i/j/k
15575 '
15576 files=
15577 mkdir $dirs dest1 dest2 dest3 || exit
15578 for dir in $dirs; do
15579   for file in X Y Z; do
15580     echo $file >$dir/$file || exit
15581     files="$files $file"
15582   done
15583 done
15584
15585 # Check that "ulimit" itself works.  Close file descriptors before
15586 # invoking ulimit, to work around a bug (or a "feature") in some shells,
15587 # where they squirrel away dups of file descriptors into FD 10 and up
15588 # before closing the originals.
15589 ( (exec 3<&- 4<&- 5<&- 6<&- 7<&- 8<&- 9<&- &&
15590    ulimit -n 100 &&
15591    tar -cf archive1.tar a &&
15592    tar -xf archive1.tar -C dest1 a
15593   ) &&
15594   diff -r a dest1/a
15595 ) >/dev/null 2>&1 ||
15596    exit 77
15597
15598 # Another test that "ulimit" itself works:
15599 # tar should fail when completely starved of file descriptors.
15600 ( (exec 3<&- 4<&- 5<&- 6<&- 7<&- 8<&- 9<&- &&
15601    ulimit -n 4 &&
15602    tar -cf archive2.tar a &&
15603    tar -xf archive2.tar -C dest2 a
15604   ) &&
15605   diff -r a dest2/a
15606 ) >/dev/null 2>&1 &&
15607    exit 77
15608
15609 # Tar should work when there are few, but enough, file descriptors.
15610 ( (exec 3<&- 4<&- 5<&- 6<&- 7<&- 8<&- 9<&- &&
15611    ulimit -n 10 &&
15612    tar -cf archive3.tar a &&
15613    tar -xf archive3.tar -C dest3 a
15614   ) &&
15615   diff -r a dest3/a >/dev/null 2>&1
15616 ) || { diff -r a dest3/a; exit 1; }
15617 ) ) >"$at_stdout" 2>"$at_stder1"
15618   at_func_filter_trace $?
15619 else
15620   ( :;
15621 mkdir gnu
15622 (cd gnu
15623 TEST_TAR_FORMAT=gnu
15624 export TEST_TAR_FORMAT
15625 TAR_OPTIONS="-H gnu"
15626 export TAR_OPTIONS
15627 rm -rf *
15628
15629 exec </dev/null
15630 dirs='a
15631       a/b
15632       a/b/c
15633       a/b/c/d
15634       a/b/c/d/e
15635       a/b/c/d/e/f
15636       a/b/c/d/e/f/g
15637       a/b/c/d/e/f/g/h
15638       a/b/c/d/e/f/g/h/i
15639       a/b/c/d/e/f/g/h/i/j
15640       a/b/c/d/e/f/g/h/i/j/k
15641 '
15642 files=
15643 mkdir $dirs dest1 dest2 dest3 || exit
15644 for dir in $dirs; do
15645   for file in X Y Z; do
15646     echo $file >$dir/$file || exit
15647     files="$files $file"
15648   done
15649 done
15650
15651 # Check that "ulimit" itself works.  Close file descriptors before
15652 # invoking ulimit, to work around a bug (or a "feature") in some shells,
15653 # where they squirrel away dups of file descriptors into FD 10 and up
15654 # before closing the originals.
15655 ( (exec 3<&- 4<&- 5<&- 6<&- 7<&- 8<&- 9<&- &&
15656    ulimit -n 100 &&
15657    tar -cf archive1.tar a &&
15658    tar -xf archive1.tar -C dest1 a
15659   ) &&
15660   diff -r a dest1/a
15661 ) >/dev/null 2>&1 ||
15662    exit 77
15663
15664 # Another test that "ulimit" itself works:
15665 # tar should fail when completely starved of file descriptors.
15666 ( (exec 3<&- 4<&- 5<&- 6<&- 7<&- 8<&- 9<&- &&
15667    ulimit -n 4 &&
15668    tar -cf archive2.tar a &&
15669    tar -xf archive2.tar -C dest2 a
15670   ) &&
15671   diff -r a dest2/a
15672 ) >/dev/null 2>&1 &&
15673    exit 77
15674
15675 # Tar should work when there are few, but enough, file descriptors.
15676 ( (exec 3<&- 4<&- 5<&- 6<&- 7<&- 8<&- 9<&- &&
15677    ulimit -n 10 &&
15678    tar -cf archive3.tar a &&
15679    tar -xf archive3.tar -C dest3 a
15680   ) &&
15681   diff -r a dest3/a >/dev/null 2>&1
15682 ) || { diff -r a dest3/a; exit 1; }
15683 ) ) >"$at_stdout" 2>"$at_stderr"
15684 fi
15685 at_status=$?
15686 at_failed=false
15687 at_func_diff_devnull "$at_stderr" || at_failed=:
15688 at_func_diff_devnull "$at_stdout" || at_failed=:
15689 at_func_check_status 0 $at_status "$at_srcdir/extrac11.at:26"
15690
15691 $at_failed && at_func_log_failure
15692 $at_traceon; }
15693
15694
15695
15696
15697   $at_traceoff
15698   $at_times_p && times >"$at_times_file"
15699 ) 5>&1 2>&1 | eval $at_tee_pipe
15700 at_status=`cat "$at_status_file"`
15701 #AT_STOP_37
15702 #AT_START_38
15703 # 38. extrac12.at:23: extract dot permissions
15704 at_setup_line='extrac12.at:23'
15705 at_desc="extract dot permissions"
15706 $at_quiet $as_echo_n " 38: $at_desc                        "
15707 at_xfail=no
15708       test -f $XFAILFILE && at_xfail=yes
15709 echo "#                             -*- compilation -*-" >> "$at_group_log"
15710 (
15711   $as_echo "38. extrac12.at:23: testing ..."
15712   $at_traceon
15713
15714
15715
15716
15717
15718   { $at_traceoff
15719 $as_echo "$at_srcdir/extrac12.at:26:
15720 mkdir gnu
15721 (cd gnu
15722 TEST_TAR_FORMAT=gnu
15723 export TEST_TAR_FORMAT
15724 TAR_OPTIONS=\"-H gnu\"
15725 export TAR_OPTIONS
15726 rm -rf *
15727
15728 mkdir src dst
15729 echo file1 >src/file1
15730 echo file2 >src/file2
15731 chmod a-w src
15732
15733 tar --no-recursion -cf archive.tar -C src . ./file1 file2 &&
15734 tar -xf archive.tar -C dst &&
15735 cmp src/file1 dst/file1 &&
15736 cmp src/file2 dst/file2
15737 )"
15738 echo extrac12.at:26 >"$at_check_line_file"
15739
15740 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
15741    false; }; then
15742   ( $at_traceon;
15743 mkdir gnu
15744 (cd gnu
15745 TEST_TAR_FORMAT=gnu
15746 export TEST_TAR_FORMAT
15747 TAR_OPTIONS="-H gnu"
15748 export TAR_OPTIONS
15749 rm -rf *
15750
15751 mkdir src dst
15752 echo file1 >src/file1
15753 echo file2 >src/file2
15754 chmod a-w src
15755
15756 tar --no-recursion -cf archive.tar -C src . ./file1 file2 &&
15757 tar -xf archive.tar -C dst &&
15758 cmp src/file1 dst/file1 &&
15759 cmp src/file2 dst/file2
15760 ) ) >"$at_stdout" 2>"$at_stder1"
15761   at_func_filter_trace $?
15762 else
15763   ( :;
15764 mkdir gnu
15765 (cd gnu
15766 TEST_TAR_FORMAT=gnu
15767 export TEST_TAR_FORMAT
15768 TAR_OPTIONS="-H gnu"
15769 export TAR_OPTIONS
15770 rm -rf *
15771
15772 mkdir src dst
15773 echo file1 >src/file1
15774 echo file2 >src/file2
15775 chmod a-w src
15776
15777 tar --no-recursion -cf archive.tar -C src . ./file1 file2 &&
15778 tar -xf archive.tar -C dst &&
15779 cmp src/file1 dst/file1 &&
15780 cmp src/file2 dst/file2
15781 ) ) >"$at_stdout" 2>"$at_stderr"
15782 fi
15783 at_status=$?
15784 at_failed=false
15785 at_func_diff_devnull "$at_stderr" || at_failed=:
15786 at_func_diff_devnull "$at_stdout" || at_failed=:
15787 at_func_check_status 0 $at_status "$at_srcdir/extrac12.at:26"
15788
15789 $at_failed && at_func_log_failure
15790 $at_traceon; }
15791
15792
15793
15794
15795   $at_traceoff
15796   $at_times_p && times >"$at_times_file"
15797 ) 5>&1 2>&1 | eval $at_tee_pipe
15798 at_status=`cat "$at_status_file"`
15799 #AT_STOP_38
15800 #AT_START_39
15801 # 39. extrac13.at:24: extract over symlinks
15802 at_setup_line='extrac13.at:24'
15803 at_desc="extract over symlinks"
15804 $at_quiet $as_echo_n " 39: $at_desc                          "
15805 at_xfail=no
15806       test -f $XFAILFILE && at_xfail=yes
15807 echo "#                             -*- compilation -*-" >> "$at_group_log"
15808 (
15809   $as_echo "39. extrac13.at:24: testing ..."
15810   $at_traceon
15811
15812
15813
15814
15815
15816   { $at_traceoff
15817 $as_echo "$at_srcdir/extrac13.at:27:
15818 mkdir gnu
15819 (cd gnu
15820 TEST_TAR_FORMAT=gnu
15821 export TEST_TAR_FORMAT
15822 TAR_OPTIONS=\"-H gnu\"
15823 export TAR_OPTIONS
15824 rm -rf *
15825
15826 mkdir src dst1 dst2 dst3
15827 echo file1 >src/file1
15828 ln -s target1 dst1/file1
15829 echo target1 >dst1/target1
15830 echo target1 >target1
15831
15832 tar -cf archive.tar -C src . &&
15833 tar -xf archive.tar -C dst1 --warning=no-timestamp &&
15834 diff src/file1 dst1/file1 &&
15835 diff target1 dst1/target1
15836
15837 ln -s target1 dst2/file1
15838 echo target1 >dst2/target1
15839 tar --overwrite -xf archive.tar -C dst2 --warning=no-timestamp &&
15840 diff src/file1 dst2/file1 &&
15841 diff target1 dst2/target1
15842
15843 ln -s target1 dst3/file1
15844 echo target1 >dst3/target1
15845 tar --overwrite -xhf archive.tar -C dst3 --warning=no-timestamp &&
15846 diff src/file1 dst3/file1 &&
15847 diff src/file1 dst3/target1
15848 )"
15849 echo extrac13.at:27 >"$at_check_line_file"
15850
15851 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
15852    false; }; then
15853   ( $at_traceon;
15854 mkdir gnu
15855 (cd gnu
15856 TEST_TAR_FORMAT=gnu
15857 export TEST_TAR_FORMAT
15858 TAR_OPTIONS="-H gnu"
15859 export TAR_OPTIONS
15860 rm -rf *
15861
15862 mkdir src dst1 dst2 dst3
15863 echo file1 >src/file1
15864 ln -s target1 dst1/file1
15865 echo target1 >dst1/target1
15866 echo target1 >target1
15867
15868 tar -cf archive.tar -C src . &&
15869 tar -xf archive.tar -C dst1 --warning=no-timestamp &&
15870 diff src/file1 dst1/file1 &&
15871 diff target1 dst1/target1
15872
15873 ln -s target1 dst2/file1
15874 echo target1 >dst2/target1
15875 tar --overwrite -xf archive.tar -C dst2 --warning=no-timestamp &&
15876 diff src/file1 dst2/file1 &&
15877 diff target1 dst2/target1
15878
15879 ln -s target1 dst3/file1
15880 echo target1 >dst3/target1
15881 tar --overwrite -xhf archive.tar -C dst3 --warning=no-timestamp &&
15882 diff src/file1 dst3/file1 &&
15883 diff src/file1 dst3/target1
15884 ) ) >"$at_stdout" 2>"$at_stder1"
15885   at_func_filter_trace $?
15886 else
15887   ( :;
15888 mkdir gnu
15889 (cd gnu
15890 TEST_TAR_FORMAT=gnu
15891 export TEST_TAR_FORMAT
15892 TAR_OPTIONS="-H gnu"
15893 export TAR_OPTIONS
15894 rm -rf *
15895
15896 mkdir src dst1 dst2 dst3
15897 echo file1 >src/file1
15898 ln -s target1 dst1/file1
15899 echo target1 >dst1/target1
15900 echo target1 >target1
15901
15902 tar -cf archive.tar -C src . &&
15903 tar -xf archive.tar -C dst1 --warning=no-timestamp &&
15904 diff src/file1 dst1/file1 &&
15905 diff target1 dst1/target1
15906
15907 ln -s target1 dst2/file1
15908 echo target1 >dst2/target1
15909 tar --overwrite -xf archive.tar -C dst2 --warning=no-timestamp &&
15910 diff src/file1 dst2/file1 &&
15911 diff target1 dst2/target1
15912
15913 ln -s target1 dst3/file1
15914 echo target1 >dst3/target1
15915 tar --overwrite -xhf archive.tar -C dst3 --warning=no-timestamp &&
15916 diff src/file1 dst3/file1 &&
15917 diff src/file1 dst3/target1
15918 ) ) >"$at_stdout" 2>"$at_stderr"
15919 fi
15920 at_status=$?
15921 at_failed=false
15922 at_func_diff_devnull "$at_stderr" || at_failed=:
15923 at_func_diff_devnull "$at_stdout" || at_failed=:
15924 at_func_check_status 0 $at_status "$at_srcdir/extrac13.at:27"
15925
15926 $at_failed && at_func_log_failure
15927 $at_traceon; }
15928
15929
15930
15931
15932   $at_traceoff
15933   $at_times_p && times >"$at_times_file"
15934 ) 5>&1 2>&1 | eval $at_tee_pipe
15935 at_status=`cat "$at_status_file"`
15936 #AT_STOP_39
15937 #AT_START_40
15938 # 40. extrac14.at:23: extract -C symlink
15939 at_setup_line='extrac14.at:23'
15940 at_desc="extract -C symlink"
15941 $at_quiet $as_echo_n " 40: $at_desc                             "
15942 at_xfail=no
15943       test -f $XFAILFILE && at_xfail=yes
15944 echo "#                             -*- compilation -*-" >> "$at_group_log"
15945 (
15946   $as_echo "40. extrac14.at:23: testing ..."
15947   $at_traceon
15948
15949
15950
15951
15952
15953   { $at_traceoff
15954 $as_echo "$at_srcdir/extrac14.at:26:
15955 mkdir gnu
15956 (cd gnu
15957 TEST_TAR_FORMAT=gnu
15958 export TEST_TAR_FORMAT
15959 TAR_OPTIONS=\"-H gnu\"
15960 export TAR_OPTIONS
15961 rm -rf *
15962
15963 mkdir dest
15964 ln -s dest symlink
15965 echo foo >foo
15966 tar -cf archive.tar foo &&
15967 tar -xf archive.tar -C symlink --warning=no-timestamp &&
15968 cmp foo dest/foo
15969 )"
15970 echo extrac14.at:26 >"$at_check_line_file"
15971
15972 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
15973    false; }; then
15974   ( $at_traceon;
15975 mkdir gnu
15976 (cd gnu
15977 TEST_TAR_FORMAT=gnu
15978 export TEST_TAR_FORMAT
15979 TAR_OPTIONS="-H gnu"
15980 export TAR_OPTIONS
15981 rm -rf *
15982
15983 mkdir dest
15984 ln -s dest symlink
15985 echo foo >foo
15986 tar -cf archive.tar foo &&
15987 tar -xf archive.tar -C symlink --warning=no-timestamp &&
15988 cmp foo dest/foo
15989 ) ) >"$at_stdout" 2>"$at_stder1"
15990   at_func_filter_trace $?
15991 else
15992   ( :;
15993 mkdir gnu
15994 (cd gnu
15995 TEST_TAR_FORMAT=gnu
15996 export TEST_TAR_FORMAT
15997 TAR_OPTIONS="-H gnu"
15998 export TAR_OPTIONS
15999 rm -rf *
16000
16001 mkdir dest
16002 ln -s dest symlink
16003 echo foo >foo
16004 tar -cf archive.tar foo &&
16005 tar -xf archive.tar -C symlink --warning=no-timestamp &&
16006 cmp foo dest/foo
16007 ) ) >"$at_stdout" 2>"$at_stderr"
16008 fi
16009 at_status=$?
16010 at_failed=false
16011 at_func_diff_devnull "$at_stderr" || at_failed=:
16012 at_func_diff_devnull "$at_stdout" || at_failed=:
16013 at_func_check_status 0 $at_status "$at_srcdir/extrac14.at:26"
16014
16015 $at_failed && at_func_log_failure
16016 $at_traceon; }
16017
16018
16019
16020
16021   $at_traceoff
16022   $at_times_p && times >"$at_times_file"
16023 ) 5>&1 2>&1 | eval $at_tee_pipe
16024 at_status=`cat "$at_status_file"`
16025 #AT_STOP_40
16026 #AT_START_41
16027 # 41. extrac15.at:23: extract parent mkdir failure
16028 at_setup_line='extrac15.at:23'
16029 at_desc="extract parent mkdir failure"
16030 $at_quiet $as_echo_n " 41: $at_desc                   "
16031 at_xfail=no
16032       test -f $XFAILFILE && at_xfail=yes
16033 echo "#                             -*- compilation -*-" >> "$at_group_log"
16034 (
16035   $as_echo "41. extrac15.at:23: testing ..."
16036   $at_traceon
16037
16038
16039
16040
16041
16042   { $at_traceoff
16043 $as_echo "$at_srcdir/extrac15.at:26:
16044 mkdir gnu
16045 (cd gnu
16046 TEST_TAR_FORMAT=gnu
16047 export TEST_TAR_FORMAT
16048 TAR_OPTIONS=\"-H gnu\"
16049 export TAR_OPTIONS
16050 rm -rf *
16051
16052
16053 echo "test" > $$
16054 chmod 0 $$
16055 cat $$ > /dev/null 2>&1
16056 result=$?
16057 rm -f $$
16058 test $result -eq 0 && exit 77
16059
16060
16061 mkdir src src/a src/a/b dest dest/a
16062 touch src/a/b/c
16063 chmod a-w dest/a
16064
16065 tar -cf archive.tar -C src a/b/c &&
16066 if tar -xf archive.tar -C dest a/b/c
16067 then (exit 1)
16068 else (exit 0)
16069 fi
16070 )"
16071 echo extrac15.at:26 >"$at_check_line_file"
16072
16073 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
16074    false; }; then
16075   ( $at_traceon;
16076 mkdir gnu
16077 (cd gnu
16078 TEST_TAR_FORMAT=gnu
16079 export TEST_TAR_FORMAT
16080 TAR_OPTIONS="-H gnu"
16081 export TAR_OPTIONS
16082 rm -rf *
16083
16084
16085 echo "test" > $$
16086 chmod 0 $$
16087 cat $$ > /dev/null 2>&1
16088 result=$?
16089 rm -f $$
16090 test $result -eq 0 && exit 77
16091
16092
16093 mkdir src src/a src/a/b dest dest/a
16094 touch src/a/b/c
16095 chmod a-w dest/a
16096
16097 tar -cf archive.tar -C src a/b/c &&
16098 if tar -xf archive.tar -C dest a/b/c
16099 then (exit 1)
16100 else (exit 0)
16101 fi
16102 ) ) >"$at_stdout" 2>"$at_stder1"
16103   at_func_filter_trace $?
16104 else
16105   ( :;
16106 mkdir gnu
16107 (cd gnu
16108 TEST_TAR_FORMAT=gnu
16109 export TEST_TAR_FORMAT
16110 TAR_OPTIONS="-H gnu"
16111 export TAR_OPTIONS
16112 rm -rf *
16113
16114
16115 echo "test" > $$
16116 chmod 0 $$
16117 cat $$ > /dev/null 2>&1
16118 result=$?
16119 rm -f $$
16120 test $result -eq 0 && exit 77
16121
16122
16123 mkdir src src/a src/a/b dest dest/a
16124 touch src/a/b/c
16125 chmod a-w dest/a
16126
16127 tar -cf archive.tar -C src a/b/c &&
16128 if tar -xf archive.tar -C dest a/b/c
16129 then (exit 1)
16130 else (exit 0)
16131 fi
16132 ) ) >"$at_stdout" 2>"$at_stderr"
16133 fi
16134 at_status=$?
16135 at_failed=false
16136 echo >>"$at_stderr"; $as_echo "tar: a/b: Cannot mkdir: Permission denied
16137 tar: a/b/c: Cannot open: No such file or directory
16138 tar: Exiting with failure status due to previous errors
16139 " | \
16140   $at_diff - "$at_stderr" || at_failed=:
16141 at_func_diff_devnull "$at_stdout" || at_failed=:
16142 at_func_check_status 0 $at_status "$at_srcdir/extrac15.at:26"
16143
16144 $at_failed && at_func_log_failure
16145 $at_traceon; }
16146
16147
16148
16149
16150   $at_traceoff
16151   $at_times_p && times >"$at_times_file"
16152 ) 5>&1 2>&1 | eval $at_tee_pipe
16153 at_status=`cat "$at_status_file"`
16154 #AT_STOP_41
16155 #AT_START_42
16156 # 42. extrac16.at:24: extract empty directory with -C
16157 at_setup_line='extrac16.at:24'
16158 at_desc="extract empty directory with -C"
16159 $at_quiet $as_echo_n " 42: $at_desc                "
16160 at_xfail=no
16161       test -f $XFAILFILE && at_xfail=yes
16162 echo "#                             -*- compilation -*-" >> "$at_group_log"
16163 (
16164   $as_echo "42. extrac16.at:24: testing ..."
16165   $at_traceon
16166
16167
16168
16169
16170
16171   { $at_traceoff
16172 $as_echo "$at_srcdir/extrac16.at:27:
16173 mkdir gnu
16174 (cd gnu
16175 TEST_TAR_FORMAT=gnu
16176 export TEST_TAR_FORMAT
16177 TAR_OPTIONS=\"-H gnu\"
16178 export TAR_OPTIONS
16179 rm -rf *
16180
16181 mkdir src src/a src/a/b dest
16182 touch src/a/c
16183
16184 tar -cf archive.tar -C src a &&
16185 tar -xf archive.tar -C dest
16186 )"
16187 echo extrac16.at:27 >"$at_check_line_file"
16188
16189 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
16190    false; }; then
16191   ( $at_traceon;
16192 mkdir gnu
16193 (cd gnu
16194 TEST_TAR_FORMAT=gnu
16195 export TEST_TAR_FORMAT
16196 TAR_OPTIONS="-H gnu"
16197 export TAR_OPTIONS
16198 rm -rf *
16199
16200 mkdir src src/a src/a/b dest
16201 touch src/a/c
16202
16203 tar -cf archive.tar -C src a &&
16204 tar -xf archive.tar -C dest
16205 ) ) >"$at_stdout" 2>"$at_stder1"
16206   at_func_filter_trace $?
16207 else
16208   ( :;
16209 mkdir gnu
16210 (cd gnu
16211 TEST_TAR_FORMAT=gnu
16212 export TEST_TAR_FORMAT
16213 TAR_OPTIONS="-H gnu"
16214 export TAR_OPTIONS
16215 rm -rf *
16216
16217 mkdir src src/a src/a/b dest
16218 touch src/a/c
16219
16220 tar -cf archive.tar -C src a &&
16221 tar -xf archive.tar -C dest
16222 ) ) >"$at_stdout" 2>"$at_stderr"
16223 fi
16224 at_status=$?
16225 at_failed=false
16226 at_func_diff_devnull "$at_stderr" || at_failed=:
16227 at_func_diff_devnull "$at_stdout" || at_failed=:
16228 at_func_check_status 0 $at_status "$at_srcdir/extrac16.at:27"
16229
16230 $at_failed && at_func_log_failure
16231 $at_traceon; }
16232
16233
16234
16235
16236   $at_traceoff
16237   $at_times_p && times >"$at_times_file"
16238 ) 5>&1 2>&1 | eval $at_tee_pipe
16239 at_status=`cat "$at_status_file"`
16240 #AT_STOP_42
16241 #AT_START_43
16242 # 43. extrac17.at:19: name matching/transformation ordering
16243 at_setup_line='extrac17.at:19'
16244 at_desc="name matching/transformation ordering"
16245 $at_quiet $as_echo_n " 43: $at_desc          "
16246 at_xfail=no
16247       test -f $XFAILFILE && at_xfail=yes
16248 echo "#                             -*- compilation -*-" >> "$at_group_log"
16249 (
16250   $as_echo "43. extrac17.at:19: testing ..."
16251   $at_traceon
16252
16253
16254
16255 # Description: Tar 1.24 changed the ordering of name matching and
16256 # name transformation so that the former saw already transformed
16257 # file names (see commit 9c194c99 and exclude06.at).  This reverted
16258 # ordering made it impossible to match file names in certain cases.
16259 # In particular, the testcase below would not extract anything.
16260 #
16261 # Reported-by: "Gabor Z. Papp" <gzp@papp.hu>
16262 # References: <x6r5fd9jye@gzp>, <20101026175126.29028@Pirx.gnu.org.ua>
16263 #             http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00047.html
16264
16265
16266
16267   { $at_traceoff
16268 $as_echo "$at_srcdir/extrac17.at:32:
16269 mkdir v7
16270 (cd v7
16271 TEST_TAR_FORMAT=v7
16272 export TEST_TAR_FORMAT
16273 TAR_OPTIONS=\"-H v7\"
16274 export TAR_OPTIONS
16275 rm -rf *
16276
16277 mkdir dir dir/subdir1 dir/subdir2 out
16278 genfile --file dir/subdir1/file1
16279 genfile --file dir/subdir2/file2
16280
16281 tar cf dir.tar dir
16282
16283 tar -x -v -f dir.tar -C out --strip-components=2 --warning=no-timestamp \\
16284   dir/subdir1/
16285 )"
16286 echo extrac17.at:32 >"$at_check_line_file"
16287
16288 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
16289    false; }; then
16290   ( $at_traceon;
16291 mkdir v7
16292 (cd v7
16293 TEST_TAR_FORMAT=v7
16294 export TEST_TAR_FORMAT
16295 TAR_OPTIONS="-H v7"
16296 export TAR_OPTIONS
16297 rm -rf *
16298
16299 mkdir dir dir/subdir1 dir/subdir2 out
16300 genfile --file dir/subdir1/file1
16301 genfile --file dir/subdir2/file2
16302
16303 tar cf dir.tar dir
16304
16305 tar -x -v -f dir.tar -C out --strip-components=2 --warning=no-timestamp \
16306   dir/subdir1/
16307 ) ) >"$at_stdout" 2>"$at_stder1"
16308   at_func_filter_trace $?
16309 else
16310   ( :;
16311 mkdir v7
16312 (cd v7
16313 TEST_TAR_FORMAT=v7
16314 export TEST_TAR_FORMAT
16315 TAR_OPTIONS="-H v7"
16316 export TAR_OPTIONS
16317 rm -rf *
16318
16319 mkdir dir dir/subdir1 dir/subdir2 out
16320 genfile --file dir/subdir1/file1
16321 genfile --file dir/subdir2/file2
16322
16323 tar cf dir.tar dir
16324
16325 tar -x -v -f dir.tar -C out --strip-components=2 --warning=no-timestamp \
16326   dir/subdir1/
16327 ) ) >"$at_stdout" 2>"$at_stderr"
16328 fi
16329 at_status=$?
16330 at_failed=false
16331 at_func_diff_devnull "$at_stderr" || at_failed=:
16332 echo >>"$at_stdout"; $as_echo "dir/subdir1/file1
16333 " | \
16334   $at_diff - "$at_stdout" || at_failed=:
16335 at_func_check_status 0 $at_status "$at_srcdir/extrac17.at:32"
16336
16337 $at_failed && at_func_log_failure
16338 $at_traceon; }
16339
16340               { $at_traceoff
16341 $as_echo "$at_srcdir/extrac17.at:32:
16342 mkdir oldgnu
16343 (cd oldgnu
16344 TEST_TAR_FORMAT=oldgnu
16345 export TEST_TAR_FORMAT
16346 TAR_OPTIONS=\"-H oldgnu\"
16347 export TAR_OPTIONS
16348 rm -rf *
16349
16350 mkdir dir dir/subdir1 dir/subdir2 out
16351 genfile --file dir/subdir1/file1
16352 genfile --file dir/subdir2/file2
16353
16354 tar cf dir.tar dir
16355
16356 tar -x -v -f dir.tar -C out --strip-components=2 --warning=no-timestamp \\
16357   dir/subdir1/
16358 )"
16359 echo extrac17.at:32 >"$at_check_line_file"
16360
16361 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
16362    false; }; then
16363   ( $at_traceon;
16364 mkdir oldgnu
16365 (cd oldgnu
16366 TEST_TAR_FORMAT=oldgnu
16367 export TEST_TAR_FORMAT
16368 TAR_OPTIONS="-H oldgnu"
16369 export TAR_OPTIONS
16370 rm -rf *
16371
16372 mkdir dir dir/subdir1 dir/subdir2 out
16373 genfile --file dir/subdir1/file1
16374 genfile --file dir/subdir2/file2
16375
16376 tar cf dir.tar dir
16377
16378 tar -x -v -f dir.tar -C out --strip-components=2 --warning=no-timestamp \
16379   dir/subdir1/
16380 ) ) >"$at_stdout" 2>"$at_stder1"
16381   at_func_filter_trace $?
16382 else
16383   ( :;
16384 mkdir oldgnu
16385 (cd oldgnu
16386 TEST_TAR_FORMAT=oldgnu
16387 export TEST_TAR_FORMAT
16388 TAR_OPTIONS="-H oldgnu"
16389 export TAR_OPTIONS
16390 rm -rf *
16391
16392 mkdir dir dir/subdir1 dir/subdir2 out
16393 genfile --file dir/subdir1/file1
16394 genfile --file dir/subdir2/file2
16395
16396 tar cf dir.tar dir
16397
16398 tar -x -v -f dir.tar -C out --strip-components=2 --warning=no-timestamp \
16399   dir/subdir1/
16400 ) ) >"$at_stdout" 2>"$at_stderr"
16401 fi
16402 at_status=$?
16403 at_failed=false
16404 at_func_diff_devnull "$at_stderr" || at_failed=:
16405 echo >>"$at_stdout"; $as_echo "dir/subdir1/file1
16406 " | \
16407   $at_diff - "$at_stdout" || at_failed=:
16408 at_func_check_status 0 $at_status "$at_srcdir/extrac17.at:32"
16409
16410 $at_failed && at_func_log_failure
16411 $at_traceon; }
16412
16413               { $at_traceoff
16414 $as_echo "$at_srcdir/extrac17.at:32:
16415 mkdir ustar
16416 (cd ustar
16417 TEST_TAR_FORMAT=ustar
16418 export TEST_TAR_FORMAT
16419 TAR_OPTIONS=\"-H ustar\"
16420 export TAR_OPTIONS
16421 rm -rf *
16422
16423 mkdir dir dir/subdir1 dir/subdir2 out
16424 genfile --file dir/subdir1/file1
16425 genfile --file dir/subdir2/file2
16426
16427 tar cf dir.tar dir
16428
16429 tar -x -v -f dir.tar -C out --strip-components=2 --warning=no-timestamp \\
16430   dir/subdir1/
16431 )"
16432 echo extrac17.at:32 >"$at_check_line_file"
16433
16434 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
16435    false; }; then
16436   ( $at_traceon;
16437 mkdir ustar
16438 (cd ustar
16439 TEST_TAR_FORMAT=ustar
16440 export TEST_TAR_FORMAT
16441 TAR_OPTIONS="-H ustar"
16442 export TAR_OPTIONS
16443 rm -rf *
16444
16445 mkdir dir dir/subdir1 dir/subdir2 out
16446 genfile --file dir/subdir1/file1
16447 genfile --file dir/subdir2/file2
16448
16449 tar cf dir.tar dir
16450
16451 tar -x -v -f dir.tar -C out --strip-components=2 --warning=no-timestamp \
16452   dir/subdir1/
16453 ) ) >"$at_stdout" 2>"$at_stder1"
16454   at_func_filter_trace $?
16455 else
16456   ( :;
16457 mkdir ustar
16458 (cd ustar
16459 TEST_TAR_FORMAT=ustar
16460 export TEST_TAR_FORMAT
16461 TAR_OPTIONS="-H ustar"
16462 export TAR_OPTIONS
16463 rm -rf *
16464
16465 mkdir dir dir/subdir1 dir/subdir2 out
16466 genfile --file dir/subdir1/file1
16467 genfile --file dir/subdir2/file2
16468
16469 tar cf dir.tar dir
16470
16471 tar -x -v -f dir.tar -C out --strip-components=2 --warning=no-timestamp \
16472   dir/subdir1/
16473 ) ) >"$at_stdout" 2>"$at_stderr"
16474 fi
16475 at_status=$?
16476 at_failed=false
16477 at_func_diff_devnull "$at_stderr" || at_failed=:
16478 echo >>"$at_stdout"; $as_echo "dir/subdir1/file1
16479 " | \
16480   $at_diff - "$at_stdout" || at_failed=:
16481 at_func_check_status 0 $at_status "$at_srcdir/extrac17.at:32"
16482
16483 $at_failed && at_func_log_failure
16484 $at_traceon; }
16485
16486               { $at_traceoff
16487 $as_echo "$at_srcdir/extrac17.at:32:
16488 mkdir posix
16489 (cd posix
16490 TEST_TAR_FORMAT=posix
16491 export TEST_TAR_FORMAT
16492 TAR_OPTIONS=\"-H posix\"
16493 export TAR_OPTIONS
16494 rm -rf *
16495
16496 mkdir dir dir/subdir1 dir/subdir2 out
16497 genfile --file dir/subdir1/file1
16498 genfile --file dir/subdir2/file2
16499
16500 tar cf dir.tar dir
16501
16502 tar -x -v -f dir.tar -C out --strip-components=2 --warning=no-timestamp \\
16503   dir/subdir1/
16504 )"
16505 echo extrac17.at:32 >"$at_check_line_file"
16506
16507 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
16508    false; }; then
16509   ( $at_traceon;
16510 mkdir posix
16511 (cd posix
16512 TEST_TAR_FORMAT=posix
16513 export TEST_TAR_FORMAT
16514 TAR_OPTIONS="-H posix"
16515 export TAR_OPTIONS
16516 rm -rf *
16517
16518 mkdir dir dir/subdir1 dir/subdir2 out
16519 genfile --file dir/subdir1/file1
16520 genfile --file dir/subdir2/file2
16521
16522 tar cf dir.tar dir
16523
16524 tar -x -v -f dir.tar -C out --strip-components=2 --warning=no-timestamp \
16525   dir/subdir1/
16526 ) ) >"$at_stdout" 2>"$at_stder1"
16527   at_func_filter_trace $?
16528 else
16529   ( :;
16530 mkdir posix
16531 (cd posix
16532 TEST_TAR_FORMAT=posix
16533 export TEST_TAR_FORMAT
16534 TAR_OPTIONS="-H posix"
16535 export TAR_OPTIONS
16536 rm -rf *
16537
16538 mkdir dir dir/subdir1 dir/subdir2 out
16539 genfile --file dir/subdir1/file1
16540 genfile --file dir/subdir2/file2
16541
16542 tar cf dir.tar dir
16543
16544 tar -x -v -f dir.tar -C out --strip-components=2 --warning=no-timestamp \
16545   dir/subdir1/
16546 ) ) >"$at_stdout" 2>"$at_stderr"
16547 fi
16548 at_status=$?
16549 at_failed=false
16550 at_func_diff_devnull "$at_stderr" || at_failed=:
16551 echo >>"$at_stdout"; $as_echo "dir/subdir1/file1
16552 " | \
16553   $at_diff - "$at_stdout" || at_failed=:
16554 at_func_check_status 0 $at_status "$at_srcdir/extrac17.at:32"
16555
16556 $at_failed && at_func_log_failure
16557 $at_traceon; }
16558
16559               { $at_traceoff
16560 $as_echo "$at_srcdir/extrac17.at:32:
16561 mkdir gnu
16562 (cd gnu
16563 TEST_TAR_FORMAT=gnu
16564 export TEST_TAR_FORMAT
16565 TAR_OPTIONS=\"-H gnu\"
16566 export TAR_OPTIONS
16567 rm -rf *
16568
16569 mkdir dir dir/subdir1 dir/subdir2 out
16570 genfile --file dir/subdir1/file1
16571 genfile --file dir/subdir2/file2
16572
16573 tar cf dir.tar dir
16574
16575 tar -x -v -f dir.tar -C out --strip-components=2 --warning=no-timestamp \\
16576   dir/subdir1/
16577 )"
16578 echo extrac17.at:32 >"$at_check_line_file"
16579
16580 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
16581    false; }; then
16582   ( $at_traceon;
16583 mkdir gnu
16584 (cd gnu
16585 TEST_TAR_FORMAT=gnu
16586 export TEST_TAR_FORMAT
16587 TAR_OPTIONS="-H gnu"
16588 export TAR_OPTIONS
16589 rm -rf *
16590
16591 mkdir dir dir/subdir1 dir/subdir2 out
16592 genfile --file dir/subdir1/file1
16593 genfile --file dir/subdir2/file2
16594
16595 tar cf dir.tar dir
16596
16597 tar -x -v -f dir.tar -C out --strip-components=2 --warning=no-timestamp \
16598   dir/subdir1/
16599 ) ) >"$at_stdout" 2>"$at_stder1"
16600   at_func_filter_trace $?
16601 else
16602   ( :;
16603 mkdir gnu
16604 (cd gnu
16605 TEST_TAR_FORMAT=gnu
16606 export TEST_TAR_FORMAT
16607 TAR_OPTIONS="-H gnu"
16608 export TAR_OPTIONS
16609 rm -rf *
16610
16611 mkdir dir dir/subdir1 dir/subdir2 out
16612 genfile --file dir/subdir1/file1
16613 genfile --file dir/subdir2/file2
16614
16615 tar cf dir.tar dir
16616
16617 tar -x -v -f dir.tar -C out --strip-components=2 --warning=no-timestamp \
16618   dir/subdir1/
16619 ) ) >"$at_stdout" 2>"$at_stderr"
16620 fi
16621 at_status=$?
16622 at_failed=false
16623 at_func_diff_devnull "$at_stderr" || at_failed=:
16624 echo >>"$at_stdout"; $as_echo "dir/subdir1/file1
16625 " | \
16626   $at_diff - "$at_stdout" || at_failed=:
16627 at_func_check_status 0 $at_status "$at_srcdir/extrac17.at:32"
16628
16629 $at_failed && at_func_log_failure
16630 $at_traceon; }
16631
16632
16633
16634
16635   $at_traceoff
16636   $at_times_p && times >"$at_times_file"
16637 ) 5>&1 2>&1 | eval $at_tee_pipe
16638 at_status=`cat "$at_status_file"`
16639 #AT_STOP_43
16640 #AT_START_44
16641 # 44. label01.at:19: single-volume label
16642 at_setup_line='label01.at:19'
16643 at_desc="single-volume label"
16644 $at_quiet $as_echo_n " 44: $at_desc                            "
16645 at_xfail=no
16646       test -f $XFAILFILE && at_xfail=yes
16647 echo "#                             -*- compilation -*-" >> "$at_group_log"
16648 (
16649   $as_echo "44. label01.at:19: testing ..."
16650   $at_traceon
16651
16652
16653
16654
16655
16656   { $at_traceoff
16657 $as_echo "$at_srcdir/label01.at:22:
16658 mkdir gnu
16659 (cd gnu
16660 TEST_TAR_FORMAT=gnu
16661 export TEST_TAR_FORMAT
16662 TAR_OPTIONS=\"-H gnu\"
16663 export TAR_OPTIONS
16664 rm -rf *
16665
16666 genfile --file foo
16667 genfile --file bar
16668 tar -cf archive --label=Test foo bar
16669 tar tf archive
16670 )"
16671 echo label01.at:22 >"$at_check_line_file"
16672
16673 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
16674    false; }; then
16675   ( $at_traceon;
16676 mkdir gnu
16677 (cd gnu
16678 TEST_TAR_FORMAT=gnu
16679 export TEST_TAR_FORMAT
16680 TAR_OPTIONS="-H gnu"
16681 export TAR_OPTIONS
16682 rm -rf *
16683
16684 genfile --file foo
16685 genfile --file bar
16686 tar -cf archive --label=Test foo bar
16687 tar tf archive
16688 ) ) >"$at_stdout" 2>"$at_stder1"
16689   at_func_filter_trace $?
16690 else
16691   ( :;
16692 mkdir gnu
16693 (cd gnu
16694 TEST_TAR_FORMAT=gnu
16695 export TEST_TAR_FORMAT
16696 TAR_OPTIONS="-H gnu"
16697 export TAR_OPTIONS
16698 rm -rf *
16699
16700 genfile --file foo
16701 genfile --file bar
16702 tar -cf archive --label=Test foo bar
16703 tar tf archive
16704 ) ) >"$at_stdout" 2>"$at_stderr"
16705 fi
16706 at_status=$?
16707 at_failed=false
16708 at_func_diff_devnull "$at_stderr" || at_failed=:
16709 echo >>"$at_stdout"; $as_echo "Test
16710 foo
16711 bar
16712 " | \
16713   $at_diff - "$at_stdout" || at_failed=:
16714 at_func_check_status 0 $at_status "$at_srcdir/label01.at:22"
16715
16716 $at_failed && at_func_log_failure
16717 $at_traceon; }
16718
16719               { $at_traceoff
16720 $as_echo "$at_srcdir/label01.at:22:
16721 mkdir oldgnu
16722 (cd oldgnu
16723 TEST_TAR_FORMAT=oldgnu
16724 export TEST_TAR_FORMAT
16725 TAR_OPTIONS=\"-H oldgnu\"
16726 export TAR_OPTIONS
16727 rm -rf *
16728
16729 genfile --file foo
16730 genfile --file bar
16731 tar -cf archive --label=Test foo bar
16732 tar tf archive
16733 )"
16734 echo label01.at:22 >"$at_check_line_file"
16735
16736 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
16737    false; }; then
16738   ( $at_traceon;
16739 mkdir oldgnu
16740 (cd oldgnu
16741 TEST_TAR_FORMAT=oldgnu
16742 export TEST_TAR_FORMAT
16743 TAR_OPTIONS="-H oldgnu"
16744 export TAR_OPTIONS
16745 rm -rf *
16746
16747 genfile --file foo
16748 genfile --file bar
16749 tar -cf archive --label=Test foo bar
16750 tar tf archive
16751 ) ) >"$at_stdout" 2>"$at_stder1"
16752   at_func_filter_trace $?
16753 else
16754   ( :;
16755 mkdir oldgnu
16756 (cd oldgnu
16757 TEST_TAR_FORMAT=oldgnu
16758 export TEST_TAR_FORMAT
16759 TAR_OPTIONS="-H oldgnu"
16760 export TAR_OPTIONS
16761 rm -rf *
16762
16763 genfile --file foo
16764 genfile --file bar
16765 tar -cf archive --label=Test foo bar
16766 tar tf archive
16767 ) ) >"$at_stdout" 2>"$at_stderr"
16768 fi
16769 at_status=$?
16770 at_failed=false
16771 at_func_diff_devnull "$at_stderr" || at_failed=:
16772 echo >>"$at_stdout"; $as_echo "Test
16773 foo
16774 bar
16775 " | \
16776   $at_diff - "$at_stdout" || at_failed=:
16777 at_func_check_status 0 $at_status "$at_srcdir/label01.at:22"
16778
16779 $at_failed && at_func_log_failure
16780 $at_traceon; }
16781
16782               { $at_traceoff
16783 $as_echo "$at_srcdir/label01.at:22:
16784 mkdir posix
16785 (cd posix
16786 TEST_TAR_FORMAT=posix
16787 export TEST_TAR_FORMAT
16788 TAR_OPTIONS=\"-H posix\"
16789 export TAR_OPTIONS
16790 rm -rf *
16791
16792 genfile --file foo
16793 genfile --file bar
16794 tar -cf archive --label=Test foo bar
16795 tar tf archive
16796 )"
16797 echo label01.at:22 >"$at_check_line_file"
16798
16799 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
16800    false; }; then
16801   ( $at_traceon;
16802 mkdir posix
16803 (cd posix
16804 TEST_TAR_FORMAT=posix
16805 export TEST_TAR_FORMAT
16806 TAR_OPTIONS="-H posix"
16807 export TAR_OPTIONS
16808 rm -rf *
16809
16810 genfile --file foo
16811 genfile --file bar
16812 tar -cf archive --label=Test foo bar
16813 tar tf archive
16814 ) ) >"$at_stdout" 2>"$at_stder1"
16815   at_func_filter_trace $?
16816 else
16817   ( :;
16818 mkdir posix
16819 (cd posix
16820 TEST_TAR_FORMAT=posix
16821 export TEST_TAR_FORMAT
16822 TAR_OPTIONS="-H posix"
16823 export TAR_OPTIONS
16824 rm -rf *
16825
16826 genfile --file foo
16827 genfile --file bar
16828 tar -cf archive --label=Test foo bar
16829 tar tf archive
16830 ) ) >"$at_stdout" 2>"$at_stderr"
16831 fi
16832 at_status=$?
16833 at_failed=false
16834 at_func_diff_devnull "$at_stderr" || at_failed=:
16835 echo >>"$at_stdout"; $as_echo "Test
16836 foo
16837 bar
16838 " | \
16839   $at_diff - "$at_stdout" || at_failed=:
16840 at_func_check_status 0 $at_status "$at_srcdir/label01.at:22"
16841
16842 $at_failed && at_func_log_failure
16843 $at_traceon; }
16844
16845
16846
16847
16848   $at_traceoff
16849   $at_times_p && times >"$at_times_file"
16850 ) 5>&1 2>&1 | eval $at_tee_pipe
16851 at_status=`cat "$at_status_file"`
16852 #AT_STOP_44
16853 #AT_START_45
16854 # 45. label02.at:19: multi-volume label
16855 at_setup_line='label02.at:19'
16856 at_desc="multi-volume label"
16857 $at_quiet $as_echo_n " 45: $at_desc                             "
16858 at_xfail=no
16859       test -f $XFAILFILE && at_xfail=yes
16860 echo "#                             -*- compilation -*-" >> "$at_group_log"
16861 (
16862   $as_echo "45. label02.at:19: testing ..."
16863   $at_traceon
16864
16865
16866
16867
16868
16869   { $at_traceoff
16870 $as_echo "$at_srcdir/label02.at:22:
16871 mkdir gnu
16872 (cd gnu
16873 TEST_TAR_FORMAT=gnu
16874 export TEST_TAR_FORMAT
16875 TAR_OPTIONS=\"-H gnu\"
16876 export TAR_OPTIONS
16877 rm -rf *
16878
16879 exec <&-
16880 genfile --length 0 --file foo
16881 genfile --length 12288 --file bar
16882 genfile --length 12288 --file baz
16883 tar --label=Test -cM -L10 -f 1.tar -f 2.tar -f 3.tar -f 4.tar foo bar baz
16884 tar -Mt -f 1.tar -f 2.tar -f 3.tar -f 4.tar
16885 )"
16886 echo label02.at:22 >"$at_check_line_file"
16887
16888 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
16889    false; }; then
16890   ( $at_traceon;
16891 mkdir gnu
16892 (cd gnu
16893 TEST_TAR_FORMAT=gnu
16894 export TEST_TAR_FORMAT
16895 TAR_OPTIONS="-H gnu"
16896 export TAR_OPTIONS
16897 rm -rf *
16898
16899 exec <&-
16900 genfile --length 0 --file foo
16901 genfile --length 12288 --file bar
16902 genfile --length 12288 --file baz
16903 tar --label=Test -cM -L10 -f 1.tar -f 2.tar -f 3.tar -f 4.tar foo bar baz
16904 tar -Mt -f 1.tar -f 2.tar -f 3.tar -f 4.tar
16905 ) ) >"$at_stdout" 2>"$at_stder1"
16906   at_func_filter_trace $?
16907 else
16908   ( :;
16909 mkdir gnu
16910 (cd gnu
16911 TEST_TAR_FORMAT=gnu
16912 export TEST_TAR_FORMAT
16913 TAR_OPTIONS="-H gnu"
16914 export TAR_OPTIONS
16915 rm -rf *
16916
16917 exec <&-
16918 genfile --length 0 --file foo
16919 genfile --length 12288 --file bar
16920 genfile --length 12288 --file baz
16921 tar --label=Test -cM -L10 -f 1.tar -f 2.tar -f 3.tar -f 4.tar foo bar baz
16922 tar -Mt -f 1.tar -f 2.tar -f 3.tar -f 4.tar
16923 ) ) >"$at_stdout" 2>"$at_stderr"
16924 fi
16925 at_status=$?
16926 at_failed=false
16927 at_func_diff_devnull "$at_stderr" || at_failed=:
16928 echo >>"$at_stdout"; $as_echo "Test Volume 1
16929 foo
16930 bar
16931 baz
16932 " | \
16933   $at_diff - "$at_stdout" || at_failed=:
16934 at_func_check_status 0 $at_status "$at_srcdir/label02.at:22"
16935
16936 $at_failed && at_func_log_failure
16937 $at_traceon; }
16938
16939               { $at_traceoff
16940 $as_echo "$at_srcdir/label02.at:22:
16941 mkdir oldgnu
16942 (cd oldgnu
16943 TEST_TAR_FORMAT=oldgnu
16944 export TEST_TAR_FORMAT
16945 TAR_OPTIONS=\"-H oldgnu\"
16946 export TAR_OPTIONS
16947 rm -rf *
16948
16949 exec <&-
16950 genfile --length 0 --file foo
16951 genfile --length 12288 --file bar
16952 genfile --length 12288 --file baz
16953 tar --label=Test -cM -L10 -f 1.tar -f 2.tar -f 3.tar -f 4.tar foo bar baz
16954 tar -Mt -f 1.tar -f 2.tar -f 3.tar -f 4.tar
16955 )"
16956 echo label02.at:22 >"$at_check_line_file"
16957
16958 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
16959    false; }; then
16960   ( $at_traceon;
16961 mkdir oldgnu
16962 (cd oldgnu
16963 TEST_TAR_FORMAT=oldgnu
16964 export TEST_TAR_FORMAT
16965 TAR_OPTIONS="-H oldgnu"
16966 export TAR_OPTIONS
16967 rm -rf *
16968
16969 exec <&-
16970 genfile --length 0 --file foo
16971 genfile --length 12288 --file bar
16972 genfile --length 12288 --file baz
16973 tar --label=Test -cM -L10 -f 1.tar -f 2.tar -f 3.tar -f 4.tar foo bar baz
16974 tar -Mt -f 1.tar -f 2.tar -f 3.tar -f 4.tar
16975 ) ) >"$at_stdout" 2>"$at_stder1"
16976   at_func_filter_trace $?
16977 else
16978   ( :;
16979 mkdir oldgnu
16980 (cd oldgnu
16981 TEST_TAR_FORMAT=oldgnu
16982 export TEST_TAR_FORMAT
16983 TAR_OPTIONS="-H oldgnu"
16984 export TAR_OPTIONS
16985 rm -rf *
16986
16987 exec <&-
16988 genfile --length 0 --file foo
16989 genfile --length 12288 --file bar
16990 genfile --length 12288 --file baz
16991 tar --label=Test -cM -L10 -f 1.tar -f 2.tar -f 3.tar -f 4.tar foo bar baz
16992 tar -Mt -f 1.tar -f 2.tar -f 3.tar -f 4.tar
16993 ) ) >"$at_stdout" 2>"$at_stderr"
16994 fi
16995 at_status=$?
16996 at_failed=false
16997 at_func_diff_devnull "$at_stderr" || at_failed=:
16998 echo >>"$at_stdout"; $as_echo "Test Volume 1
16999 foo
17000 bar
17001 baz
17002 " | \
17003   $at_diff - "$at_stdout" || at_failed=:
17004 at_func_check_status 0 $at_status "$at_srcdir/label02.at:22"
17005
17006 $at_failed && at_func_log_failure
17007 $at_traceon; }
17008
17009               { $at_traceoff
17010 $as_echo "$at_srcdir/label02.at:22:
17011 mkdir posix
17012 (cd posix
17013 TEST_TAR_FORMAT=posix
17014 export TEST_TAR_FORMAT
17015 TAR_OPTIONS=\"-H posix\"
17016 export TAR_OPTIONS
17017 rm -rf *
17018
17019 exec <&-
17020 genfile --length 0 --file foo
17021 genfile --length 12288 --file bar
17022 genfile --length 12288 --file baz
17023 tar --label=Test -cM -L10 -f 1.tar -f 2.tar -f 3.tar -f 4.tar foo bar baz
17024 tar -Mt -f 1.tar -f 2.tar -f 3.tar -f 4.tar
17025 )"
17026 echo label02.at:22 >"$at_check_line_file"
17027
17028 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
17029    false; }; then
17030   ( $at_traceon;
17031 mkdir posix
17032 (cd posix
17033 TEST_TAR_FORMAT=posix
17034 export TEST_TAR_FORMAT
17035 TAR_OPTIONS="-H posix"
17036 export TAR_OPTIONS
17037 rm -rf *
17038
17039 exec <&-
17040 genfile --length 0 --file foo
17041 genfile --length 12288 --file bar
17042 genfile --length 12288 --file baz
17043 tar --label=Test -cM -L10 -f 1.tar -f 2.tar -f 3.tar -f 4.tar foo bar baz
17044 tar -Mt -f 1.tar -f 2.tar -f 3.tar -f 4.tar
17045 ) ) >"$at_stdout" 2>"$at_stder1"
17046   at_func_filter_trace $?
17047 else
17048   ( :;
17049 mkdir posix
17050 (cd posix
17051 TEST_TAR_FORMAT=posix
17052 export TEST_TAR_FORMAT
17053 TAR_OPTIONS="-H posix"
17054 export TAR_OPTIONS
17055 rm -rf *
17056
17057 exec <&-
17058 genfile --length 0 --file foo
17059 genfile --length 12288 --file bar
17060 genfile --length 12288 --file baz
17061 tar --label=Test -cM -L10 -f 1.tar -f 2.tar -f 3.tar -f 4.tar foo bar baz
17062 tar -Mt -f 1.tar -f 2.tar -f 3.tar -f 4.tar
17063 ) ) >"$at_stdout" 2>"$at_stderr"
17064 fi
17065 at_status=$?
17066 at_failed=false
17067 at_func_diff_devnull "$at_stderr" || at_failed=:
17068 echo >>"$at_stdout"; $as_echo "Test Volume 1
17069 foo
17070 bar
17071 baz
17072 " | \
17073   $at_diff - "$at_stdout" || at_failed=:
17074 at_func_check_status 0 $at_status "$at_srcdir/label02.at:22"
17075
17076 $at_failed && at_func_log_failure
17077 $at_traceon; }
17078
17079
17080
17081
17082   $at_traceoff
17083   $at_times_p && times >"$at_times_file"
17084 ) 5>&1 2>&1 | eval $at_tee_pipe
17085 at_status=`cat "$at_status_file"`
17086 #AT_STOP_45
17087 #AT_START_46
17088 # 46. label03.at:25: test-label option
17089 at_setup_line='label03.at:25'
17090 at_desc="test-label option"
17091 $at_quiet $as_echo_n " 46: $at_desc                              "
17092 at_xfail=no
17093       test -f $XFAILFILE && at_xfail=yes
17094 echo "#                             -*- compilation -*-" >> "$at_group_log"
17095 (
17096   $as_echo "46. label03.at:25: testing ..."
17097   $at_traceon
17098
17099
17100
17101
17102
17103   { $at_traceoff
17104 $as_echo "$at_srcdir/label03.at:28:
17105 mkdir gnu
17106 (cd gnu
17107 TEST_TAR_FORMAT=gnu
17108 export TEST_TAR_FORMAT
17109 TAR_OPTIONS=\"-H gnu\"
17110 export TAR_OPTIONS
17111 rm -rf *
17112
17113 exec <&-
17114 genfile --file file
17115 tar -c --label='iamalabel' --file iamanarchive file
17116 tar -c --file unlabeled.tar file
17117 decho \"# Display label\"
17118 tar --test-label --file=iamanarchive; echo \$?
17119 decho \"# Display label: unlabeled\"
17120 tar --test-label --file=unlabeled.tar; echo \$?
17121 decho \"# Test label: success\"
17122 tar --test-label --file=iamanarchive 'iamalabel'; echo \$?
17123 decho \"# Test label: failure\"
17124 tar --test-label --file=iamanarchive 'amalabel'; echo \$?
17125 decho \"# Test label: unlabeled\"
17126 tar --test-label --file=unlabeled.tar 'amalabel'; echo \$?
17127 decho \"# Test label, verbose: success\"
17128 tar --test-label --verbose --file=iamanarchive 'iamalabel'; echo \$?
17129 decho \"# Test label, verbose: failure\"
17130 tar --test-label --verbose --file=iamanarchive 'amalabel'; echo \$?
17131 decho \"# Test label: multiple arguments\"
17132 tar --test-label --file=iamanarchive a iamalabel b; echo \$?
17133 decho \"# Test label: wildcards\"
17134 tar --test-label --file=iamanarchive --wildcards '*label'; echo \$?
17135 )"
17136 echo label03.at:28 >"$at_check_line_file"
17137
17138 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
17139    false; }; then
17140   ( $at_traceon;
17141 mkdir gnu
17142 (cd gnu
17143 TEST_TAR_FORMAT=gnu
17144 export TEST_TAR_FORMAT
17145 TAR_OPTIONS="-H gnu"
17146 export TAR_OPTIONS
17147 rm -rf *
17148
17149 exec <&-
17150 genfile --file file
17151 tar -c --label='iamalabel' --file iamanarchive file
17152 tar -c --file unlabeled.tar file
17153 decho "# Display label"
17154 tar --test-label --file=iamanarchive; echo $?
17155 decho "# Display label: unlabeled"
17156 tar --test-label --file=unlabeled.tar; echo $?
17157 decho "# Test label: success"
17158 tar --test-label --file=iamanarchive 'iamalabel'; echo $?
17159 decho "# Test label: failure"
17160 tar --test-label --file=iamanarchive 'amalabel'; echo $?
17161 decho "# Test label: unlabeled"
17162 tar --test-label --file=unlabeled.tar 'amalabel'; echo $?
17163 decho "# Test label, verbose: success"
17164 tar --test-label --verbose --file=iamanarchive 'iamalabel'; echo $?
17165 decho "# Test label, verbose: failure"
17166 tar --test-label --verbose --file=iamanarchive 'amalabel'; echo $?
17167 decho "# Test label: multiple arguments"
17168 tar --test-label --file=iamanarchive a iamalabel b; echo $?
17169 decho "# Test label: wildcards"
17170 tar --test-label --file=iamanarchive --wildcards '*label'; echo $?
17171 ) ) >"$at_stdout" 2>"$at_stder1"
17172   at_func_filter_trace $?
17173 else
17174   ( :;
17175 mkdir gnu
17176 (cd gnu
17177 TEST_TAR_FORMAT=gnu
17178 export TEST_TAR_FORMAT
17179 TAR_OPTIONS="-H gnu"
17180 export TAR_OPTIONS
17181 rm -rf *
17182
17183 exec <&-
17184 genfile --file file
17185 tar -c --label='iamalabel' --file iamanarchive file
17186 tar -c --file unlabeled.tar file
17187 decho "# Display label"
17188 tar --test-label --file=iamanarchive; echo $?
17189 decho "# Display label: unlabeled"
17190 tar --test-label --file=unlabeled.tar; echo $?
17191 decho "# Test label: success"
17192 tar --test-label --file=iamanarchive 'iamalabel'; echo $?
17193 decho "# Test label: failure"
17194 tar --test-label --file=iamanarchive 'amalabel'; echo $?
17195 decho "# Test label: unlabeled"
17196 tar --test-label --file=unlabeled.tar 'amalabel'; echo $?
17197 decho "# Test label, verbose: success"
17198 tar --test-label --verbose --file=iamanarchive 'iamalabel'; echo $?
17199 decho "# Test label, verbose: failure"
17200 tar --test-label --verbose --file=iamanarchive 'amalabel'; echo $?
17201 decho "# Test label: multiple arguments"
17202 tar --test-label --file=iamanarchive a iamalabel b; echo $?
17203 decho "# Test label: wildcards"
17204 tar --test-label --file=iamanarchive --wildcards '*label'; echo $?
17205 ) ) >"$at_stdout" 2>"$at_stderr"
17206 fi
17207 at_status=$?
17208 at_failed=false
17209 echo >>"$at_stderr"; $as_echo "# Display label
17210 # Display label: unlabeled
17211 # Test label: success
17212 # Test label: failure
17213 # Test label: unlabeled
17214 # Test label, verbose: success
17215 # Test label, verbose: failure
17216 tar: Archive label mismatch
17217 # Test label: multiple arguments
17218 # Test label: wildcards
17219 " | \
17220   $at_diff - "$at_stderr" || at_failed=:
17221 echo >>"$at_stdout"; $as_echo "# Display label
17222 iamalabel
17223 0
17224 # Display label: unlabeled
17225 0
17226 # Test label: success
17227 0
17228 # Test label: failure
17229 1
17230 # Test label: unlabeled
17231 1
17232 # Test label, verbose: success
17233 iamalabel
17234 0
17235 # Test label, verbose: failure
17236 iamalabel
17237 1
17238 # Test label: multiple arguments
17239 0
17240 # Test label: wildcards
17241 0
17242 " | \
17243   $at_diff - "$at_stdout" || at_failed=:
17244 at_func_check_status 0 $at_status "$at_srcdir/label03.at:28"
17245
17246 $at_failed && at_func_log_failure
17247 $at_traceon; }
17248
17249               { $at_traceoff
17250 $as_echo "$at_srcdir/label03.at:28:
17251 mkdir oldgnu
17252 (cd oldgnu
17253 TEST_TAR_FORMAT=oldgnu
17254 export TEST_TAR_FORMAT
17255 TAR_OPTIONS=\"-H oldgnu\"
17256 export TAR_OPTIONS
17257 rm -rf *
17258
17259 exec <&-
17260 genfile --file file
17261 tar -c --label='iamalabel' --file iamanarchive file
17262 tar -c --file unlabeled.tar file
17263 decho \"# Display label\"
17264 tar --test-label --file=iamanarchive; echo \$?
17265 decho \"# Display label: unlabeled\"
17266 tar --test-label --file=unlabeled.tar; echo \$?
17267 decho \"# Test label: success\"
17268 tar --test-label --file=iamanarchive 'iamalabel'; echo \$?
17269 decho \"# Test label: failure\"
17270 tar --test-label --file=iamanarchive 'amalabel'; echo \$?
17271 decho \"# Test label: unlabeled\"
17272 tar --test-label --file=unlabeled.tar 'amalabel'; echo \$?
17273 decho \"# Test label, verbose: success\"
17274 tar --test-label --verbose --file=iamanarchive 'iamalabel'; echo \$?
17275 decho \"# Test label, verbose: failure\"
17276 tar --test-label --verbose --file=iamanarchive 'amalabel'; echo \$?
17277 decho \"# Test label: multiple arguments\"
17278 tar --test-label --file=iamanarchive a iamalabel b; echo \$?
17279 decho \"# Test label: wildcards\"
17280 tar --test-label --file=iamanarchive --wildcards '*label'; echo \$?
17281 )"
17282 echo label03.at:28 >"$at_check_line_file"
17283
17284 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
17285    false; }; then
17286   ( $at_traceon;
17287 mkdir oldgnu
17288 (cd oldgnu
17289 TEST_TAR_FORMAT=oldgnu
17290 export TEST_TAR_FORMAT
17291 TAR_OPTIONS="-H oldgnu"
17292 export TAR_OPTIONS
17293 rm -rf *
17294
17295 exec <&-
17296 genfile --file file
17297 tar -c --label='iamalabel' --file iamanarchive file
17298 tar -c --file unlabeled.tar file
17299 decho "# Display label"
17300 tar --test-label --file=iamanarchive; echo $?
17301 decho "# Display label: unlabeled"
17302 tar --test-label --file=unlabeled.tar; echo $?
17303 decho "# Test label: success"
17304 tar --test-label --file=iamanarchive 'iamalabel'; echo $?
17305 decho "# Test label: failure"
17306 tar --test-label --file=iamanarchive 'amalabel'; echo $?
17307 decho "# Test label: unlabeled"
17308 tar --test-label --file=unlabeled.tar 'amalabel'; echo $?
17309 decho "# Test label, verbose: success"
17310 tar --test-label --verbose --file=iamanarchive 'iamalabel'; echo $?
17311 decho "# Test label, verbose: failure"
17312 tar --test-label --verbose --file=iamanarchive 'amalabel'; echo $?
17313 decho "# Test label: multiple arguments"
17314 tar --test-label --file=iamanarchive a iamalabel b; echo $?
17315 decho "# Test label: wildcards"
17316 tar --test-label --file=iamanarchive --wildcards '*label'; echo $?
17317 ) ) >"$at_stdout" 2>"$at_stder1"
17318   at_func_filter_trace $?
17319 else
17320   ( :;
17321 mkdir oldgnu
17322 (cd oldgnu
17323 TEST_TAR_FORMAT=oldgnu
17324 export TEST_TAR_FORMAT
17325 TAR_OPTIONS="-H oldgnu"
17326 export TAR_OPTIONS
17327 rm -rf *
17328
17329 exec <&-
17330 genfile --file file
17331 tar -c --label='iamalabel' --file iamanarchive file
17332 tar -c --file unlabeled.tar file
17333 decho "# Display label"
17334 tar --test-label --file=iamanarchive; echo $?
17335 decho "# Display label: unlabeled"
17336 tar --test-label --file=unlabeled.tar; echo $?
17337 decho "# Test label: success"
17338 tar --test-label --file=iamanarchive 'iamalabel'; echo $?
17339 decho "# Test label: failure"
17340 tar --test-label --file=iamanarchive 'amalabel'; echo $?
17341 decho "# Test label: unlabeled"
17342 tar --test-label --file=unlabeled.tar 'amalabel'; echo $?
17343 decho "# Test label, verbose: success"
17344 tar --test-label --verbose --file=iamanarchive 'iamalabel'; echo $?
17345 decho "# Test label, verbose: failure"
17346 tar --test-label --verbose --file=iamanarchive 'amalabel'; echo $?
17347 decho "# Test label: multiple arguments"
17348 tar --test-label --file=iamanarchive a iamalabel b; echo $?
17349 decho "# Test label: wildcards"
17350 tar --test-label --file=iamanarchive --wildcards '*label'; echo $?
17351 ) ) >"$at_stdout" 2>"$at_stderr"
17352 fi
17353 at_status=$?
17354 at_failed=false
17355 echo >>"$at_stderr"; $as_echo "# Display label
17356 # Display label: unlabeled
17357 # Test label: success
17358 # Test label: failure
17359 # Test label: unlabeled
17360 # Test label, verbose: success
17361 # Test label, verbose: failure
17362 tar: Archive label mismatch
17363 # Test label: multiple arguments
17364 # Test label: wildcards
17365 " | \
17366   $at_diff - "$at_stderr" || at_failed=:
17367 echo >>"$at_stdout"; $as_echo "# Display label
17368 iamalabel
17369 0
17370 # Display label: unlabeled
17371 0
17372 # Test label: success
17373 0
17374 # Test label: failure
17375 1
17376 # Test label: unlabeled
17377 1
17378 # Test label, verbose: success
17379 iamalabel
17380 0
17381 # Test label, verbose: failure
17382 iamalabel
17383 1
17384 # Test label: multiple arguments
17385 0
17386 # Test label: wildcards
17387 0
17388 " | \
17389   $at_diff - "$at_stdout" || at_failed=:
17390 at_func_check_status 0 $at_status "$at_srcdir/label03.at:28"
17391
17392 $at_failed && at_func_log_failure
17393 $at_traceon; }
17394
17395               { $at_traceoff
17396 $as_echo "$at_srcdir/label03.at:28:
17397 mkdir posix
17398 (cd posix
17399 TEST_TAR_FORMAT=posix
17400 export TEST_TAR_FORMAT
17401 TAR_OPTIONS=\"-H posix\"
17402 export TAR_OPTIONS
17403 rm -rf *
17404
17405 exec <&-
17406 genfile --file file
17407 tar -c --label='iamalabel' --file iamanarchive file
17408 tar -c --file unlabeled.tar file
17409 decho \"# Display label\"
17410 tar --test-label --file=iamanarchive; echo \$?
17411 decho \"# Display label: unlabeled\"
17412 tar --test-label --file=unlabeled.tar; echo \$?
17413 decho \"# Test label: success\"
17414 tar --test-label --file=iamanarchive 'iamalabel'; echo \$?
17415 decho \"# Test label: failure\"
17416 tar --test-label --file=iamanarchive 'amalabel'; echo \$?
17417 decho \"# Test label: unlabeled\"
17418 tar --test-label --file=unlabeled.tar 'amalabel'; echo \$?
17419 decho \"# Test label, verbose: success\"
17420 tar --test-label --verbose --file=iamanarchive 'iamalabel'; echo \$?
17421 decho \"# Test label, verbose: failure\"
17422 tar --test-label --verbose --file=iamanarchive 'amalabel'; echo \$?
17423 decho \"# Test label: multiple arguments\"
17424 tar --test-label --file=iamanarchive a iamalabel b; echo \$?
17425 decho \"# Test label: wildcards\"
17426 tar --test-label --file=iamanarchive --wildcards '*label'; echo \$?
17427 )"
17428 echo label03.at:28 >"$at_check_line_file"
17429
17430 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
17431    false; }; then
17432   ( $at_traceon;
17433 mkdir posix
17434 (cd posix
17435 TEST_TAR_FORMAT=posix
17436 export TEST_TAR_FORMAT
17437 TAR_OPTIONS="-H posix"
17438 export TAR_OPTIONS
17439 rm -rf *
17440
17441 exec <&-
17442 genfile --file file
17443 tar -c --label='iamalabel' --file iamanarchive file
17444 tar -c --file unlabeled.tar file
17445 decho "# Display label"
17446 tar --test-label --file=iamanarchive; echo $?
17447 decho "# Display label: unlabeled"
17448 tar --test-label --file=unlabeled.tar; echo $?
17449 decho "# Test label: success"
17450 tar --test-label --file=iamanarchive 'iamalabel'; echo $?
17451 decho "# Test label: failure"
17452 tar --test-label --file=iamanarchive 'amalabel'; echo $?
17453 decho "# Test label: unlabeled"
17454 tar --test-label --file=unlabeled.tar 'amalabel'; echo $?
17455 decho "# Test label, verbose: success"
17456 tar --test-label --verbose --file=iamanarchive 'iamalabel'; echo $?
17457 decho "# Test label, verbose: failure"
17458 tar --test-label --verbose --file=iamanarchive 'amalabel'; echo $?
17459 decho "# Test label: multiple arguments"
17460 tar --test-label --file=iamanarchive a iamalabel b; echo $?
17461 decho "# Test label: wildcards"
17462 tar --test-label --file=iamanarchive --wildcards '*label'; echo $?
17463 ) ) >"$at_stdout" 2>"$at_stder1"
17464   at_func_filter_trace $?
17465 else
17466   ( :;
17467 mkdir posix
17468 (cd posix
17469 TEST_TAR_FORMAT=posix
17470 export TEST_TAR_FORMAT
17471 TAR_OPTIONS="-H posix"
17472 export TAR_OPTIONS
17473 rm -rf *
17474
17475 exec <&-
17476 genfile --file file
17477 tar -c --label='iamalabel' --file iamanarchive file
17478 tar -c --file unlabeled.tar file
17479 decho "# Display label"
17480 tar --test-label --file=iamanarchive; echo $?
17481 decho "# Display label: unlabeled"
17482 tar --test-label --file=unlabeled.tar; echo $?
17483 decho "# Test label: success"
17484 tar --test-label --file=iamanarchive 'iamalabel'; echo $?
17485 decho "# Test label: failure"
17486 tar --test-label --file=iamanarchive 'amalabel'; echo $?
17487 decho "# Test label: unlabeled"
17488 tar --test-label --file=unlabeled.tar 'amalabel'; echo $?
17489 decho "# Test label, verbose: success"
17490 tar --test-label --verbose --file=iamanarchive 'iamalabel'; echo $?
17491 decho "# Test label, verbose: failure"
17492 tar --test-label --verbose --file=iamanarchive 'amalabel'; echo $?
17493 decho "# Test label: multiple arguments"
17494 tar --test-label --file=iamanarchive a iamalabel b; echo $?
17495 decho "# Test label: wildcards"
17496 tar --test-label --file=iamanarchive --wildcards '*label'; echo $?
17497 ) ) >"$at_stdout" 2>"$at_stderr"
17498 fi
17499 at_status=$?
17500 at_failed=false
17501 echo >>"$at_stderr"; $as_echo "# Display label
17502 # Display label: unlabeled
17503 # Test label: success
17504 # Test label: failure
17505 # Test label: unlabeled
17506 # Test label, verbose: success
17507 # Test label, verbose: failure
17508 tar: Archive label mismatch
17509 # Test label: multiple arguments
17510 # Test label: wildcards
17511 " | \
17512   $at_diff - "$at_stderr" || at_failed=:
17513 echo >>"$at_stdout"; $as_echo "# Display label
17514 iamalabel
17515 0
17516 # Display label: unlabeled
17517 0
17518 # Test label: success
17519 0
17520 # Test label: failure
17521 1
17522 # Test label: unlabeled
17523 1
17524 # Test label, verbose: success
17525 iamalabel
17526 0
17527 # Test label, verbose: failure
17528 iamalabel
17529 1
17530 # Test label: multiple arguments
17531 0
17532 # Test label: wildcards
17533 0
17534 " | \
17535   $at_diff - "$at_stdout" || at_failed=:
17536 at_func_check_status 0 $at_status "$at_srcdir/label03.at:28"
17537
17538 $at_failed && at_func_log_failure
17539 $at_traceon; }
17540
17541
17542
17543
17544   $at_traceoff
17545   $at_times_p && times >"$at_times_file"
17546 ) 5>&1 2>&1 | eval $at_tee_pipe
17547 at_status=`cat "$at_status_file"`
17548 #AT_STOP_46
17549 #AT_START_47
17550 # 47. label04.at:25: label with non-create option
17551 at_setup_line='label04.at:25'
17552 at_desc="label with non-create option"
17553 $at_quiet $as_echo_n " 47: $at_desc                   "
17554 at_xfail=no
17555       test -f $XFAILFILE && at_xfail=yes
17556 echo "#                             -*- compilation -*-" >> "$at_group_log"
17557 (
17558   $as_echo "47. label04.at:25: testing ..."
17559   $at_traceon
17560
17561
17562
17563
17564
17565   { $at_traceoff
17566 $as_echo "$at_srcdir/label04.at:28:
17567 mkdir gnu
17568 (cd gnu
17569 TEST_TAR_FORMAT=gnu
17570 export TEST_TAR_FORMAT
17571 TAR_OPTIONS=\"-H gnu\"
17572 export TAR_OPTIONS
17573 rm -rf *
17574
17575 exec <&-
17576 genfile --file file
17577 decho \"# Create volume\"
17578 tar -c -f archive --label='New volume' file
17579 decho \"# Update: wrong label\"
17580 tar -rf archive --label='My volume' file; echo \$?
17581 decho \"# Update: right label\"
17582 tar -rf archive --label='New volume' file
17583 )"
17584 echo label04.at:28 >"$at_check_line_file"
17585
17586 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
17587    false; }; then
17588   ( $at_traceon;
17589 mkdir gnu
17590 (cd gnu
17591 TEST_TAR_FORMAT=gnu
17592 export TEST_TAR_FORMAT
17593 TAR_OPTIONS="-H gnu"
17594 export TAR_OPTIONS
17595 rm -rf *
17596
17597 exec <&-
17598 genfile --file file
17599 decho "# Create volume"
17600 tar -c -f archive --label='New volume' file
17601 decho "# Update: wrong label"
17602 tar -rf archive --label='My volume' file; echo $?
17603 decho "# Update: right label"
17604 tar -rf archive --label='New volume' file
17605 ) ) >"$at_stdout" 2>"$at_stder1"
17606   at_func_filter_trace $?
17607 else
17608   ( :;
17609 mkdir gnu
17610 (cd gnu
17611 TEST_TAR_FORMAT=gnu
17612 export TEST_TAR_FORMAT
17613 TAR_OPTIONS="-H gnu"
17614 export TAR_OPTIONS
17615 rm -rf *
17616
17617 exec <&-
17618 genfile --file file
17619 decho "# Create volume"
17620 tar -c -f archive --label='New volume' file
17621 decho "# Update: wrong label"
17622 tar -rf archive --label='My volume' file; echo $?
17623 decho "# Update: right label"
17624 tar -rf archive --label='New volume' file
17625 ) ) >"$at_stdout" 2>"$at_stderr"
17626 fi
17627 at_status=$?
17628 at_failed=false
17629 echo >>"$at_stderr"; $as_echo "# Create volume
17630 # Update: wrong label
17631 tar: Volume \`New volume' does not match \`My volume'
17632 tar: Error is not recoverable: exiting now
17633 # Update: right label
17634 " | \
17635   $at_diff - "$at_stderr" || at_failed=:
17636 echo >>"$at_stdout"; $as_echo "# Create volume
17637 # Update: wrong label
17638 2
17639 # Update: right label
17640 " | \
17641   $at_diff - "$at_stdout" || at_failed=:
17642 at_func_check_status 0 $at_status "$at_srcdir/label04.at:28"
17643
17644 $at_failed && at_func_log_failure
17645 $at_traceon; }
17646
17647               { $at_traceoff
17648 $as_echo "$at_srcdir/label04.at:28:
17649 mkdir oldgnu
17650 (cd oldgnu
17651 TEST_TAR_FORMAT=oldgnu
17652 export TEST_TAR_FORMAT
17653 TAR_OPTIONS=\"-H oldgnu\"
17654 export TAR_OPTIONS
17655 rm -rf *
17656
17657 exec <&-
17658 genfile --file file
17659 decho \"# Create volume\"
17660 tar -c -f archive --label='New volume' file
17661 decho \"# Update: wrong label\"
17662 tar -rf archive --label='My volume' file; echo \$?
17663 decho \"# Update: right label\"
17664 tar -rf archive --label='New volume' file
17665 )"
17666 echo label04.at:28 >"$at_check_line_file"
17667
17668 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
17669    false; }; then
17670   ( $at_traceon;
17671 mkdir oldgnu
17672 (cd oldgnu
17673 TEST_TAR_FORMAT=oldgnu
17674 export TEST_TAR_FORMAT
17675 TAR_OPTIONS="-H oldgnu"
17676 export TAR_OPTIONS
17677 rm -rf *
17678
17679 exec <&-
17680 genfile --file file
17681 decho "# Create volume"
17682 tar -c -f archive --label='New volume' file
17683 decho "# Update: wrong label"
17684 tar -rf archive --label='My volume' file; echo $?
17685 decho "# Update: right label"
17686 tar -rf archive --label='New volume' file
17687 ) ) >"$at_stdout" 2>"$at_stder1"
17688   at_func_filter_trace $?
17689 else
17690   ( :;
17691 mkdir oldgnu
17692 (cd oldgnu
17693 TEST_TAR_FORMAT=oldgnu
17694 export TEST_TAR_FORMAT
17695 TAR_OPTIONS="-H oldgnu"
17696 export TAR_OPTIONS
17697 rm -rf *
17698
17699 exec <&-
17700 genfile --file file
17701 decho "# Create volume"
17702 tar -c -f archive --label='New volume' file
17703 decho "# Update: wrong label"
17704 tar -rf archive --label='My volume' file; echo $?
17705 decho "# Update: right label"
17706 tar -rf archive --label='New volume' file
17707 ) ) >"$at_stdout" 2>"$at_stderr"
17708 fi
17709 at_status=$?
17710 at_failed=false
17711 echo >>"$at_stderr"; $as_echo "# Create volume
17712 # Update: wrong label
17713 tar: Volume \`New volume' does not match \`My volume'
17714 tar: Error is not recoverable: exiting now
17715 # Update: right label
17716 " | \
17717   $at_diff - "$at_stderr" || at_failed=:
17718 echo >>"$at_stdout"; $as_echo "# Create volume
17719 # Update: wrong label
17720 2
17721 # Update: right label
17722 " | \
17723   $at_diff - "$at_stdout" || at_failed=:
17724 at_func_check_status 0 $at_status "$at_srcdir/label04.at:28"
17725
17726 $at_failed && at_func_log_failure
17727 $at_traceon; }
17728
17729               { $at_traceoff
17730 $as_echo "$at_srcdir/label04.at:28:
17731 mkdir posix
17732 (cd posix
17733 TEST_TAR_FORMAT=posix
17734 export TEST_TAR_FORMAT
17735 TAR_OPTIONS=\"-H posix\"
17736 export TAR_OPTIONS
17737 rm -rf *
17738
17739 exec <&-
17740 genfile --file file
17741 decho \"# Create volume\"
17742 tar -c -f archive --label='New volume' file
17743 decho \"# Update: wrong label\"
17744 tar -rf archive --label='My volume' file; echo \$?
17745 decho \"# Update: right label\"
17746 tar -rf archive --label='New volume' file
17747 )"
17748 echo label04.at:28 >"$at_check_line_file"
17749
17750 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
17751    false; }; then
17752   ( $at_traceon;
17753 mkdir posix
17754 (cd posix
17755 TEST_TAR_FORMAT=posix
17756 export TEST_TAR_FORMAT
17757 TAR_OPTIONS="-H posix"
17758 export TAR_OPTIONS
17759 rm -rf *
17760
17761 exec <&-
17762 genfile --file file
17763 decho "# Create volume"
17764 tar -c -f archive --label='New volume' file
17765 decho "# Update: wrong label"
17766 tar -rf archive --label='My volume' file; echo $?
17767 decho "# Update: right label"
17768 tar -rf archive --label='New volume' file
17769 ) ) >"$at_stdout" 2>"$at_stder1"
17770   at_func_filter_trace $?
17771 else
17772   ( :;
17773 mkdir posix
17774 (cd posix
17775 TEST_TAR_FORMAT=posix
17776 export TEST_TAR_FORMAT
17777 TAR_OPTIONS="-H posix"
17778 export TAR_OPTIONS
17779 rm -rf *
17780
17781 exec <&-
17782 genfile --file file
17783 decho "# Create volume"
17784 tar -c -f archive --label='New volume' file
17785 decho "# Update: wrong label"
17786 tar -rf archive --label='My volume' file; echo $?
17787 decho "# Update: right label"
17788 tar -rf archive --label='New volume' file
17789 ) ) >"$at_stdout" 2>"$at_stderr"
17790 fi
17791 at_status=$?
17792 at_failed=false
17793 echo >>"$at_stderr"; $as_echo "# Create volume
17794 # Update: wrong label
17795 tar: Volume \`New volume' does not match \`My volume'
17796 tar: Error is not recoverable: exiting now
17797 # Update: right label
17798 " | \
17799   $at_diff - "$at_stderr" || at_failed=:
17800 echo >>"$at_stdout"; $as_echo "# Create volume
17801 # Update: wrong label
17802 2
17803 # Update: right label
17804 " | \
17805   $at_diff - "$at_stdout" || at_failed=:
17806 at_func_check_status 0 $at_status "$at_srcdir/label04.at:28"
17807
17808 $at_failed && at_func_log_failure
17809 $at_traceon; }
17810
17811
17812
17813
17814   $at_traceoff
17815   $at_times_p && times >"$at_times_file"
17816 ) 5>&1 2>&1 | eval $at_tee_pipe
17817 at_status=`cat "$at_status_file"`
17818 #AT_STOP_47
17819 #AT_START_48
17820 # 48. label05.at:22: label with non-create option
17821 at_setup_line='label05.at:22'
17822 at_desc="label with non-create option"
17823 $at_quiet $as_echo_n " 48: $at_desc                   "
17824 at_xfail=no
17825       test -f $XFAILFILE && at_xfail=yes
17826 echo "#                             -*- compilation -*-" >> "$at_group_log"
17827 (
17828   $as_echo "48. label05.at:22: testing ..."
17829   $at_traceon
17830
17831
17832
17833
17834
17835   { $at_traceoff
17836 $as_echo "$at_srcdir/label05.at:25:
17837 mkdir gnu
17838 (cd gnu
17839 TEST_TAR_FORMAT=gnu
17840 export TEST_TAR_FORMAT
17841 TAR_OPTIONS=\"-H gnu\"
17842 export TAR_OPTIONS
17843 rm -rf *
17844
17845 exec <&-
17846 genfile --file file
17847 decho \"# Create volume\"
17848 tar -c -f archive file
17849 decho \"# Update: wrong label\"
17850 tar -rf archive --label='My volume' file; echo \$?
17851 decho \"# Update: right label\"
17852 tar -rf archive file
17853 )"
17854 echo label05.at:25 >"$at_check_line_file"
17855
17856 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
17857    false; }; then
17858   ( $at_traceon;
17859 mkdir gnu
17860 (cd gnu
17861 TEST_TAR_FORMAT=gnu
17862 export TEST_TAR_FORMAT
17863 TAR_OPTIONS="-H gnu"
17864 export TAR_OPTIONS
17865 rm -rf *
17866
17867 exec <&-
17868 genfile --file file
17869 decho "# Create volume"
17870 tar -c -f archive file
17871 decho "# Update: wrong label"
17872 tar -rf archive --label='My volume' file; echo $?
17873 decho "# Update: right label"
17874 tar -rf archive file
17875 ) ) >"$at_stdout" 2>"$at_stder1"
17876   at_func_filter_trace $?
17877 else
17878   ( :;
17879 mkdir gnu
17880 (cd gnu
17881 TEST_TAR_FORMAT=gnu
17882 export TEST_TAR_FORMAT
17883 TAR_OPTIONS="-H gnu"
17884 export TAR_OPTIONS
17885 rm -rf *
17886
17887 exec <&-
17888 genfile --file file
17889 decho "# Create volume"
17890 tar -c -f archive file
17891 decho "# Update: wrong label"
17892 tar -rf archive --label='My volume' file; echo $?
17893 decho "# Update: right label"
17894 tar -rf archive file
17895 ) ) >"$at_stdout" 2>"$at_stderr"
17896 fi
17897 at_status=$?
17898 at_failed=false
17899 echo >>"$at_stderr"; $as_echo "# Create volume
17900 # Update: wrong label
17901 tar: Archive not labeled to match \`My volume'
17902 tar: Error is not recoverable: exiting now
17903 # Update: right label
17904 " | \
17905   $at_diff - "$at_stderr" || at_failed=:
17906 echo >>"$at_stdout"; $as_echo "# Create volume
17907 # Update: wrong label
17908 2
17909 # Update: right label
17910 " | \
17911   $at_diff - "$at_stdout" || at_failed=:
17912 at_func_check_status 0 $at_status "$at_srcdir/label05.at:25"
17913
17914 $at_failed && at_func_log_failure
17915 $at_traceon; }
17916
17917               { $at_traceoff
17918 $as_echo "$at_srcdir/label05.at:25:
17919 mkdir oldgnu
17920 (cd oldgnu
17921 TEST_TAR_FORMAT=oldgnu
17922 export TEST_TAR_FORMAT
17923 TAR_OPTIONS=\"-H oldgnu\"
17924 export TAR_OPTIONS
17925 rm -rf *
17926
17927 exec <&-
17928 genfile --file file
17929 decho \"# Create volume\"
17930 tar -c -f archive file
17931 decho \"# Update: wrong label\"
17932 tar -rf archive --label='My volume' file; echo \$?
17933 decho \"# Update: right label\"
17934 tar -rf archive file
17935 )"
17936 echo label05.at:25 >"$at_check_line_file"
17937
17938 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
17939    false; }; then
17940   ( $at_traceon;
17941 mkdir oldgnu
17942 (cd oldgnu
17943 TEST_TAR_FORMAT=oldgnu
17944 export TEST_TAR_FORMAT
17945 TAR_OPTIONS="-H oldgnu"
17946 export TAR_OPTIONS
17947 rm -rf *
17948
17949 exec <&-
17950 genfile --file file
17951 decho "# Create volume"
17952 tar -c -f archive file
17953 decho "# Update: wrong label"
17954 tar -rf archive --label='My volume' file; echo $?
17955 decho "# Update: right label"
17956 tar -rf archive file
17957 ) ) >"$at_stdout" 2>"$at_stder1"
17958   at_func_filter_trace $?
17959 else
17960   ( :;
17961 mkdir oldgnu
17962 (cd oldgnu
17963 TEST_TAR_FORMAT=oldgnu
17964 export TEST_TAR_FORMAT
17965 TAR_OPTIONS="-H oldgnu"
17966 export TAR_OPTIONS
17967 rm -rf *
17968
17969 exec <&-
17970 genfile --file file
17971 decho "# Create volume"
17972 tar -c -f archive file
17973 decho "# Update: wrong label"
17974 tar -rf archive --label='My volume' file; echo $?
17975 decho "# Update: right label"
17976 tar -rf archive file
17977 ) ) >"$at_stdout" 2>"$at_stderr"
17978 fi
17979 at_status=$?
17980 at_failed=false
17981 echo >>"$at_stderr"; $as_echo "# Create volume
17982 # Update: wrong label
17983 tar: Archive not labeled to match \`My volume'
17984 tar: Error is not recoverable: exiting now
17985 # Update: right label
17986 " | \
17987   $at_diff - "$at_stderr" || at_failed=:
17988 echo >>"$at_stdout"; $as_echo "# Create volume
17989 # Update: wrong label
17990 2
17991 # Update: right label
17992 " | \
17993   $at_diff - "$at_stdout" || at_failed=:
17994 at_func_check_status 0 $at_status "$at_srcdir/label05.at:25"
17995
17996 $at_failed && at_func_log_failure
17997 $at_traceon; }
17998
17999               { $at_traceoff
18000 $as_echo "$at_srcdir/label05.at:25:
18001 mkdir posix
18002 (cd posix
18003 TEST_TAR_FORMAT=posix
18004 export TEST_TAR_FORMAT
18005 TAR_OPTIONS=\"-H posix\"
18006 export TAR_OPTIONS
18007 rm -rf *
18008
18009 exec <&-
18010 genfile --file file
18011 decho \"# Create volume\"
18012 tar -c -f archive file
18013 decho \"# Update: wrong label\"
18014 tar -rf archive --label='My volume' file; echo \$?
18015 decho \"# Update: right label\"
18016 tar -rf archive file
18017 )"
18018 echo label05.at:25 >"$at_check_line_file"
18019
18020 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
18021    false; }; then
18022   ( $at_traceon;
18023 mkdir posix
18024 (cd posix
18025 TEST_TAR_FORMAT=posix
18026 export TEST_TAR_FORMAT
18027 TAR_OPTIONS="-H posix"
18028 export TAR_OPTIONS
18029 rm -rf *
18030
18031 exec <&-
18032 genfile --file file
18033 decho "# Create volume"
18034 tar -c -f archive file
18035 decho "# Update: wrong label"
18036 tar -rf archive --label='My volume' file; echo $?
18037 decho "# Update: right label"
18038 tar -rf archive file
18039 ) ) >"$at_stdout" 2>"$at_stder1"
18040   at_func_filter_trace $?
18041 else
18042   ( :;
18043 mkdir posix
18044 (cd posix
18045 TEST_TAR_FORMAT=posix
18046 export TEST_TAR_FORMAT
18047 TAR_OPTIONS="-H posix"
18048 export TAR_OPTIONS
18049 rm -rf *
18050
18051 exec <&-
18052 genfile --file file
18053 decho "# Create volume"
18054 tar -c -f archive file
18055 decho "# Update: wrong label"
18056 tar -rf archive --label='My volume' file; echo $?
18057 decho "# Update: right label"
18058 tar -rf archive file
18059 ) ) >"$at_stdout" 2>"$at_stderr"
18060 fi
18061 at_status=$?
18062 at_failed=false
18063 echo >>"$at_stderr"; $as_echo "# Create volume
18064 # Update: wrong label
18065 tar: Archive not labeled to match \`My volume'
18066 tar: Error is not recoverable: exiting now
18067 # Update: right label
18068 " | \
18069   $at_diff - "$at_stderr" || at_failed=:
18070 echo >>"$at_stdout"; $as_echo "# Create volume
18071 # Update: wrong label
18072 2
18073 # Update: right label
18074 " | \
18075   $at_diff - "$at_stdout" || at_failed=:
18076 at_func_check_status 0 $at_status "$at_srcdir/label05.at:25"
18077
18078 $at_failed && at_func_log_failure
18079 $at_traceon; }
18080
18081
18082
18083
18084   $at_traceoff
18085   $at_times_p && times >"$at_times_file"
18086 ) 5>&1 2>&1 | eval $at_tee_pipe
18087 at_status=`cat "$at_status_file"`
18088 #AT_STOP_48
18089 #AT_START_49
18090 # 49. backup01.at:33: extracting existing dir with --backup
18091 at_setup_line='backup01.at:33'
18092 at_desc="extracting existing dir with --backup"
18093 $at_quiet $as_echo_n " 49: $at_desc          "
18094 at_xfail=no
18095       test -f $XFAILFILE && at_xfail=yes
18096 echo "#                             -*- compilation -*-" >> "$at_group_log"
18097 (
18098   $as_echo "49. backup01.at:33: testing ..."
18099   $at_traceon
18100
18101
18102
18103
18104
18105   { $at_traceoff
18106 $as_echo "$at_srcdir/backup01.at:36:
18107 mkdir v7
18108 (cd v7
18109 TEST_TAR_FORMAT=v7
18110 export TEST_TAR_FORMAT
18111 TAR_OPTIONS=\"-H v7\"
18112 export TAR_OPTIONS
18113 rm -rf *
18114
18115 mkdir dir1 dir2
18116 echo bla > dir1/file1
18117 tar cf test.tar dir1 dir2
18118 tar xfv test.tar --backup --warning=no-timestamp
18119 )"
18120 echo backup01.at:36 >"$at_check_line_file"
18121
18122 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
18123    false; }; then
18124   ( $at_traceon;
18125 mkdir v7
18126 (cd v7
18127 TEST_TAR_FORMAT=v7
18128 export TEST_TAR_FORMAT
18129 TAR_OPTIONS="-H v7"
18130 export TAR_OPTIONS
18131 rm -rf *
18132
18133 mkdir dir1 dir2
18134 echo bla > dir1/file1
18135 tar cf test.tar dir1 dir2
18136 tar xfv test.tar --backup --warning=no-timestamp
18137 ) ) >"$at_stdout" 2>"$at_stder1"
18138   at_func_filter_trace $?
18139 else
18140   ( :;
18141 mkdir v7
18142 (cd v7
18143 TEST_TAR_FORMAT=v7
18144 export TEST_TAR_FORMAT
18145 TAR_OPTIONS="-H v7"
18146 export TAR_OPTIONS
18147 rm -rf *
18148
18149 mkdir dir1 dir2
18150 echo bla > dir1/file1
18151 tar cf test.tar dir1 dir2
18152 tar xfv test.tar --backup --warning=no-timestamp
18153 ) ) >"$at_stdout" 2>"$at_stderr"
18154 fi
18155 at_status=$?
18156 at_failed=false
18157 at_func_diff_devnull "$at_stderr" || at_failed=:
18158 echo >>"$at_stdout"; $as_echo "dir1/
18159 dir1/file1
18160 Renaming \`dir1/file1' to \`dir1/file1~'
18161 dir2/
18162 " | \
18163   $at_diff - "$at_stdout" || at_failed=:
18164 at_func_check_status 0 $at_status "$at_srcdir/backup01.at:36"
18165
18166 $at_failed && at_func_log_failure
18167 $at_traceon; }
18168
18169               { $at_traceoff
18170 $as_echo "$at_srcdir/backup01.at:36:
18171 mkdir oldgnu
18172 (cd oldgnu
18173 TEST_TAR_FORMAT=oldgnu
18174 export TEST_TAR_FORMAT
18175 TAR_OPTIONS=\"-H oldgnu\"
18176 export TAR_OPTIONS
18177 rm -rf *
18178
18179 mkdir dir1 dir2
18180 echo bla > dir1/file1
18181 tar cf test.tar dir1 dir2
18182 tar xfv test.tar --backup --warning=no-timestamp
18183 )"
18184 echo backup01.at:36 >"$at_check_line_file"
18185
18186 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
18187    false; }; then
18188   ( $at_traceon;
18189 mkdir oldgnu
18190 (cd oldgnu
18191 TEST_TAR_FORMAT=oldgnu
18192 export TEST_TAR_FORMAT
18193 TAR_OPTIONS="-H oldgnu"
18194 export TAR_OPTIONS
18195 rm -rf *
18196
18197 mkdir dir1 dir2
18198 echo bla > dir1/file1
18199 tar cf test.tar dir1 dir2
18200 tar xfv test.tar --backup --warning=no-timestamp
18201 ) ) >"$at_stdout" 2>"$at_stder1"
18202   at_func_filter_trace $?
18203 else
18204   ( :;
18205 mkdir oldgnu
18206 (cd oldgnu
18207 TEST_TAR_FORMAT=oldgnu
18208 export TEST_TAR_FORMAT
18209 TAR_OPTIONS="-H oldgnu"
18210 export TAR_OPTIONS
18211 rm -rf *
18212
18213 mkdir dir1 dir2
18214 echo bla > dir1/file1
18215 tar cf test.tar dir1 dir2
18216 tar xfv test.tar --backup --warning=no-timestamp
18217 ) ) >"$at_stdout" 2>"$at_stderr"
18218 fi
18219 at_status=$?
18220 at_failed=false
18221 at_func_diff_devnull "$at_stderr" || at_failed=:
18222 echo >>"$at_stdout"; $as_echo "dir1/
18223 dir1/file1
18224 Renaming \`dir1/file1' to \`dir1/file1~'
18225 dir2/
18226 " | \
18227   $at_diff - "$at_stdout" || at_failed=:
18228 at_func_check_status 0 $at_status "$at_srcdir/backup01.at:36"
18229
18230 $at_failed && at_func_log_failure
18231 $at_traceon; }
18232
18233               { $at_traceoff
18234 $as_echo "$at_srcdir/backup01.at:36:
18235 mkdir ustar
18236 (cd ustar
18237 TEST_TAR_FORMAT=ustar
18238 export TEST_TAR_FORMAT
18239 TAR_OPTIONS=\"-H ustar\"
18240 export TAR_OPTIONS
18241 rm -rf *
18242
18243 mkdir dir1 dir2
18244 echo bla > dir1/file1
18245 tar cf test.tar dir1 dir2
18246 tar xfv test.tar --backup --warning=no-timestamp
18247 )"
18248 echo backup01.at:36 >"$at_check_line_file"
18249
18250 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
18251    false; }; then
18252   ( $at_traceon;
18253 mkdir ustar
18254 (cd ustar
18255 TEST_TAR_FORMAT=ustar
18256 export TEST_TAR_FORMAT
18257 TAR_OPTIONS="-H ustar"
18258 export TAR_OPTIONS
18259 rm -rf *
18260
18261 mkdir dir1 dir2
18262 echo bla > dir1/file1
18263 tar cf test.tar dir1 dir2
18264 tar xfv test.tar --backup --warning=no-timestamp
18265 ) ) >"$at_stdout" 2>"$at_stder1"
18266   at_func_filter_trace $?
18267 else
18268   ( :;
18269 mkdir ustar
18270 (cd ustar
18271 TEST_TAR_FORMAT=ustar
18272 export TEST_TAR_FORMAT
18273 TAR_OPTIONS="-H ustar"
18274 export TAR_OPTIONS
18275 rm -rf *
18276
18277 mkdir dir1 dir2
18278 echo bla > dir1/file1
18279 tar cf test.tar dir1 dir2
18280 tar xfv test.tar --backup --warning=no-timestamp
18281 ) ) >"$at_stdout" 2>"$at_stderr"
18282 fi
18283 at_status=$?
18284 at_failed=false
18285 at_func_diff_devnull "$at_stderr" || at_failed=:
18286 echo >>"$at_stdout"; $as_echo "dir1/
18287 dir1/file1
18288 Renaming \`dir1/file1' to \`dir1/file1~'
18289 dir2/
18290 " | \
18291   $at_diff - "$at_stdout" || at_failed=:
18292 at_func_check_status 0 $at_status "$at_srcdir/backup01.at:36"
18293
18294 $at_failed && at_func_log_failure
18295 $at_traceon; }
18296
18297               { $at_traceoff
18298 $as_echo "$at_srcdir/backup01.at:36:
18299 mkdir posix
18300 (cd posix
18301 TEST_TAR_FORMAT=posix
18302 export TEST_TAR_FORMAT
18303 TAR_OPTIONS=\"-H posix\"
18304 export TAR_OPTIONS
18305 rm -rf *
18306
18307 mkdir dir1 dir2
18308 echo bla > dir1/file1
18309 tar cf test.tar dir1 dir2
18310 tar xfv test.tar --backup --warning=no-timestamp
18311 )"
18312 echo backup01.at:36 >"$at_check_line_file"
18313
18314 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
18315    false; }; then
18316   ( $at_traceon;
18317 mkdir posix
18318 (cd posix
18319 TEST_TAR_FORMAT=posix
18320 export TEST_TAR_FORMAT
18321 TAR_OPTIONS="-H posix"
18322 export TAR_OPTIONS
18323 rm -rf *
18324
18325 mkdir dir1 dir2
18326 echo bla > dir1/file1
18327 tar cf test.tar dir1 dir2
18328 tar xfv test.tar --backup --warning=no-timestamp
18329 ) ) >"$at_stdout" 2>"$at_stder1"
18330   at_func_filter_trace $?
18331 else
18332   ( :;
18333 mkdir posix
18334 (cd posix
18335 TEST_TAR_FORMAT=posix
18336 export TEST_TAR_FORMAT
18337 TAR_OPTIONS="-H posix"
18338 export TAR_OPTIONS
18339 rm -rf *
18340
18341 mkdir dir1 dir2
18342 echo bla > dir1/file1
18343 tar cf test.tar dir1 dir2
18344 tar xfv test.tar --backup --warning=no-timestamp
18345 ) ) >"$at_stdout" 2>"$at_stderr"
18346 fi
18347 at_status=$?
18348 at_failed=false
18349 at_func_diff_devnull "$at_stderr" || at_failed=:
18350 echo >>"$at_stdout"; $as_echo "dir1/
18351 dir1/file1
18352 Renaming \`dir1/file1' to \`dir1/file1~'
18353 dir2/
18354 " | \
18355   $at_diff - "$at_stdout" || at_failed=:
18356 at_func_check_status 0 $at_status "$at_srcdir/backup01.at:36"
18357
18358 $at_failed && at_func_log_failure
18359 $at_traceon; }
18360
18361               { $at_traceoff
18362 $as_echo "$at_srcdir/backup01.at:36:
18363 mkdir gnu
18364 (cd gnu
18365 TEST_TAR_FORMAT=gnu
18366 export TEST_TAR_FORMAT
18367 TAR_OPTIONS=\"-H gnu\"
18368 export TAR_OPTIONS
18369 rm -rf *
18370
18371 mkdir dir1 dir2
18372 echo bla > dir1/file1
18373 tar cf test.tar dir1 dir2
18374 tar xfv test.tar --backup --warning=no-timestamp
18375 )"
18376 echo backup01.at:36 >"$at_check_line_file"
18377
18378 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
18379    false; }; then
18380   ( $at_traceon;
18381 mkdir gnu
18382 (cd gnu
18383 TEST_TAR_FORMAT=gnu
18384 export TEST_TAR_FORMAT
18385 TAR_OPTIONS="-H gnu"
18386 export TAR_OPTIONS
18387 rm -rf *
18388
18389 mkdir dir1 dir2
18390 echo bla > dir1/file1
18391 tar cf test.tar dir1 dir2
18392 tar xfv test.tar --backup --warning=no-timestamp
18393 ) ) >"$at_stdout" 2>"$at_stder1"
18394   at_func_filter_trace $?
18395 else
18396   ( :;
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 mkdir dir1 dir2
18406 echo bla > dir1/file1
18407 tar cf test.tar dir1 dir2
18408 tar xfv test.tar --backup --warning=no-timestamp
18409 ) ) >"$at_stdout" 2>"$at_stderr"
18410 fi
18411 at_status=$?
18412 at_failed=false
18413 at_func_diff_devnull "$at_stderr" || at_failed=:
18414 echo >>"$at_stdout"; $as_echo "dir1/
18415 dir1/file1
18416 Renaming \`dir1/file1' to \`dir1/file1~'
18417 dir2/
18418 " | \
18419   $at_diff - "$at_stdout" || at_failed=:
18420 at_func_check_status 0 $at_status "$at_srcdir/backup01.at:36"
18421
18422 $at_failed && at_func_log_failure
18423 $at_traceon; }
18424
18425
18426
18427
18428   $at_traceoff
18429   $at_times_p && times >"$at_times_file"
18430 ) 5>&1 2>&1 | eval $at_tee_pipe
18431 at_status=`cat "$at_status_file"`
18432 #AT_STOP_49
18433 #AT_START_50
18434 # 50. gzip.at:23: gzip
18435 at_setup_line='gzip.at:23'
18436 at_desc="gzip"
18437 $at_quiet $as_echo_n " 50: $at_desc                                           "
18438 at_xfail=no
18439 echo "#                             -*- compilation -*-" >> "$at_group_log"
18440 (
18441   $as_echo "50. gzip.at:23: testing ..."
18442   $at_traceon
18443
18444
18445
18446 unset TAR_OPTIONS
18447
18448 { $at_traceoff
18449 $as_echo "$at_srcdir/gzip.at:28:
18450
18451 cat /dev/null | gzip - > /dev/null 2>&1 || exit 77
18452
18453 tar xfvz /dev/null 2>err
18454 RC=\$?
18455 sed -n '/^tar:/p' err >&2
18456 exit \$RC
18457 "
18458 echo gzip.at:28 >"$at_check_line_file"
18459
18460 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
18461    false; }; then
18462   ( $at_traceon;
18463
18464 cat /dev/null | gzip - > /dev/null 2>&1 || exit 77
18465
18466 tar xfvz /dev/null 2>err
18467 RC=$?
18468 sed -n '/^tar:/p' err >&2
18469 exit $RC
18470  ) >"$at_stdout" 2>"$at_stder1"
18471   at_func_filter_trace $?
18472 else
18473   ( :;
18474
18475 cat /dev/null | gzip - > /dev/null 2>&1 || exit 77
18476
18477 tar xfvz /dev/null 2>err
18478 RC=$?
18479 sed -n '/^tar:/p' err >&2
18480 exit $RC
18481  ) >"$at_stdout" 2>"$at_stderr"
18482 fi
18483 at_status=$?
18484 at_failed=false
18485 echo >>"$at_stderr"; $as_echo "tar: Child returned status 1
18486 tar: Error is not recoverable: exiting now
18487 " | \
18488   $at_diff - "$at_stderr" || at_failed=:
18489 at_func_diff_devnull "$at_stdout" || at_failed=:
18490 at_func_check_status 2 $at_status "$at_srcdir/gzip.at:28"
18491
18492 $at_failed && at_func_log_failure
18493 $at_traceon; }
18494
18495
18496   $at_traceoff
18497   $at_times_p && times >"$at_times_file"
18498 ) 5>&1 2>&1 | eval $at_tee_pipe
18499 at_status=`cat "$at_status_file"`
18500 #AT_STOP_50
18501 #AT_START_51
18502 # 51. incremental.at:23: incremental
18503 at_setup_line='incremental.at:23'
18504 at_desc="incremental"
18505 $at_quiet $as_echo_n " 51: $at_desc                                    "
18506 at_xfail=no
18507       test -f $XFAILFILE && at_xfail=yes
18508 echo "#                             -*- compilation -*-" >> "$at_group_log"
18509 (
18510   $as_echo "51. incremental.at:23: testing ..."
18511   $at_traceon
18512
18513
18514
18515
18516
18517   { $at_traceoff
18518 $as_echo "$at_srcdir/incremental.at:26:
18519 mkdir gnu
18520 (cd gnu
18521 TEST_TAR_FORMAT=gnu
18522 export TEST_TAR_FORMAT
18523 TAR_OPTIONS=\"-H gnu\"
18524 export TAR_OPTIONS
18525 rm -rf *
18526
18527 mkdir structure
18528 echo x >structure/file
18529
18530 # On Nextstep (and perhaps other 4.3BSD systems),
18531 # a newly created file's ctime isn't updated
18532 # until the next sync or stat operation on the file.
18533 ls -l structure/file >/dev/null
18534
18535 # If the time of an initial backup and the creation time of a file contained
18536 # in that backup are the same, the file will be backed up again when an
18537 # incremental backup is done, because the incremental backup backs up
18538 # files created \`on or after' the initial backup time.  Without the sleep
18539 # command, behaviour of tar becomes variable, depending whether the system
18540 # clock ticked over to the next second between creating the file and
18541 # backing it up.
18542 sleep 1
18543
18544 tar cf archive --listed=list structure
18545 tar cfv archive --listed=list structure
18546 echo separator
18547 # ReiserFS often offsets the timestamps of newly created files
18548 # 1 second to the past.  Try to compensate for it, until a better
18549 # solution is found.
18550 sleep 2
18551 echo y >structure/file
18552 tar cfv archive --listed=list structure
18553 )"
18554 echo incremental.at:26 >"$at_check_line_file"
18555
18556 if { echo 'Not enabling shell tracing (command contains a `...` command substitution)'
18557    false; }; then
18558   ( $at_traceon;
18559 mkdir gnu
18560 (cd gnu
18561 TEST_TAR_FORMAT=gnu
18562 export TEST_TAR_FORMAT
18563 TAR_OPTIONS="-H gnu"
18564 export TAR_OPTIONS
18565 rm -rf *
18566
18567 mkdir structure
18568 echo x >structure/file
18569
18570 # On Nextstep (and perhaps other 4.3BSD systems),
18571 # a newly created file's ctime isn't updated
18572 # until the next sync or stat operation on the file.
18573 ls -l structure/file >/dev/null
18574
18575 # If the time of an initial backup and the creation time of a file contained
18576 # in that backup are the same, the file will be backed up again when an
18577 # incremental backup is done, because the incremental backup backs up
18578 # files created `on or after' the initial backup time.  Without the sleep
18579 # command, behaviour of tar becomes variable, depending whether the system
18580 # clock ticked over to the next second between creating the file and
18581 # backing it up.
18582 sleep 1
18583
18584 tar cf archive --listed=list structure
18585 tar cfv archive --listed=list structure
18586 echo separator
18587 # ReiserFS often offsets the timestamps of newly created files
18588 # 1 second to the past.  Try to compensate for it, until a better
18589 # solution is found.
18590 sleep 2
18591 echo y >structure/file
18592 tar cfv archive --listed=list structure
18593 ) ) >"$at_stdout" 2>"$at_stder1"
18594   at_func_filter_trace $?
18595 else
18596   ( :;
18597 mkdir gnu
18598 (cd gnu
18599 TEST_TAR_FORMAT=gnu
18600 export TEST_TAR_FORMAT
18601 TAR_OPTIONS="-H gnu"
18602 export TAR_OPTIONS
18603 rm -rf *
18604
18605 mkdir structure
18606 echo x >structure/file
18607
18608 # On Nextstep (and perhaps other 4.3BSD systems),
18609 # a newly created file's ctime isn't updated
18610 # until the next sync or stat operation on the file.
18611 ls -l structure/file >/dev/null
18612
18613 # If the time of an initial backup and the creation time of a file contained
18614 # in that backup are the same, the file will be backed up again when an
18615 # incremental backup is done, because the incremental backup backs up
18616 # files created `on or after' the initial backup time.  Without the sleep
18617 # command, behaviour of tar becomes variable, depending whether the system
18618 # clock ticked over to the next second between creating the file and
18619 # backing it up.
18620 sleep 1
18621
18622 tar cf archive --listed=list structure
18623 tar cfv archive --listed=list structure
18624 echo separator
18625 # ReiserFS often offsets the timestamps of newly created files
18626 # 1 second to the past.  Try to compensate for it, until a better
18627 # solution is found.
18628 sleep 2
18629 echo y >structure/file
18630 tar cfv archive --listed=list structure
18631 ) ) >"$at_stdout" 2>"$at_stderr"
18632 fi
18633 at_status=$?
18634 at_failed=false
18635 at_func_diff_devnull "$at_stderr" || at_failed=:
18636 echo >>"$at_stdout"; $as_echo "structure/
18637 separator
18638 structure/
18639 structure/file
18640 " | \
18641   $at_diff - "$at_stdout" || at_failed=:
18642 at_func_check_status 0 $at_status "$at_srcdir/incremental.at:26"
18643
18644 $at_failed && at_func_log_failure
18645 $at_traceon; }
18646
18647               { $at_traceoff
18648 $as_echo "$at_srcdir/incremental.at:26:
18649 mkdir oldgnu
18650 (cd oldgnu
18651 TEST_TAR_FORMAT=oldgnu
18652 export TEST_TAR_FORMAT
18653 TAR_OPTIONS=\"-H oldgnu\"
18654 export TAR_OPTIONS
18655 rm -rf *
18656
18657 mkdir structure
18658 echo x >structure/file
18659
18660 # On Nextstep (and perhaps other 4.3BSD systems),
18661 # a newly created file's ctime isn't updated
18662 # until the next sync or stat operation on the file.
18663 ls -l structure/file >/dev/null
18664
18665 # If the time of an initial backup and the creation time of a file contained
18666 # in that backup are the same, the file will be backed up again when an
18667 # incremental backup is done, because the incremental backup backs up
18668 # files created \`on or after' the initial backup time.  Without the sleep
18669 # command, behaviour of tar becomes variable, depending whether the system
18670 # clock ticked over to the next second between creating the file and
18671 # backing it up.
18672 sleep 1
18673
18674 tar cf archive --listed=list structure
18675 tar cfv archive --listed=list structure
18676 echo separator
18677 # ReiserFS often offsets the timestamps of newly created files
18678 # 1 second to the past.  Try to compensate for it, until a better
18679 # solution is found.
18680 sleep 2
18681 echo y >structure/file
18682 tar cfv archive --listed=list structure
18683 )"
18684 echo incremental.at:26 >"$at_check_line_file"
18685
18686 if { echo 'Not enabling shell tracing (command contains a `...` command substitution)'
18687    false; }; then
18688   ( $at_traceon;
18689 mkdir oldgnu
18690 (cd oldgnu
18691 TEST_TAR_FORMAT=oldgnu
18692 export TEST_TAR_FORMAT
18693 TAR_OPTIONS="-H oldgnu"
18694 export TAR_OPTIONS
18695 rm -rf *
18696
18697 mkdir structure
18698 echo x >structure/file
18699
18700 # On Nextstep (and perhaps other 4.3BSD systems),
18701 # a newly created file's ctime isn't updated
18702 # until the next sync or stat operation on the file.
18703 ls -l structure/file >/dev/null
18704
18705 # If the time of an initial backup and the creation time of a file contained
18706 # in that backup are the same, the file will be backed up again when an
18707 # incremental backup is done, because the incremental backup backs up
18708 # files created `on or after' the initial backup time.  Without the sleep
18709 # command, behaviour of tar becomes variable, depending whether the system
18710 # clock ticked over to the next second between creating the file and
18711 # backing it up.
18712 sleep 1
18713
18714 tar cf archive --listed=list structure
18715 tar cfv archive --listed=list structure
18716 echo separator
18717 # ReiserFS often offsets the timestamps of newly created files
18718 # 1 second to the past.  Try to compensate for it, until a better
18719 # solution is found.
18720 sleep 2
18721 echo y >structure/file
18722 tar cfv archive --listed=list structure
18723 ) ) >"$at_stdout" 2>"$at_stder1"
18724   at_func_filter_trace $?
18725 else
18726   ( :;
18727 mkdir oldgnu
18728 (cd oldgnu
18729 TEST_TAR_FORMAT=oldgnu
18730 export TEST_TAR_FORMAT
18731 TAR_OPTIONS="-H oldgnu"
18732 export TAR_OPTIONS
18733 rm -rf *
18734
18735 mkdir structure
18736 echo x >structure/file
18737
18738 # On Nextstep (and perhaps other 4.3BSD systems),
18739 # a newly created file's ctime isn't updated
18740 # until the next sync or stat operation on the file.
18741 ls -l structure/file >/dev/null
18742
18743 # If the time of an initial backup and the creation time of a file contained
18744 # in that backup are the same, the file will be backed up again when an
18745 # incremental backup is done, because the incremental backup backs up
18746 # files created `on or after' the initial backup time.  Without the sleep
18747 # command, behaviour of tar becomes variable, depending whether the system
18748 # clock ticked over to the next second between creating the file and
18749 # backing it up.
18750 sleep 1
18751
18752 tar cf archive --listed=list structure
18753 tar cfv archive --listed=list structure
18754 echo separator
18755 # ReiserFS often offsets the timestamps of newly created files
18756 # 1 second to the past.  Try to compensate for it, until a better
18757 # solution is found.
18758 sleep 2
18759 echo y >structure/file
18760 tar cfv archive --listed=list structure
18761 ) ) >"$at_stdout" 2>"$at_stderr"
18762 fi
18763 at_status=$?
18764 at_failed=false
18765 at_func_diff_devnull "$at_stderr" || at_failed=:
18766 echo >>"$at_stdout"; $as_echo "structure/
18767 separator
18768 structure/
18769 structure/file
18770 " | \
18771   $at_diff - "$at_stdout" || at_failed=:
18772 at_func_check_status 0 $at_status "$at_srcdir/incremental.at:26"
18773
18774 $at_failed && at_func_log_failure
18775 $at_traceon; }
18776
18777               { $at_traceoff
18778 $as_echo "$at_srcdir/incremental.at:26:
18779 mkdir posix
18780 (cd posix
18781 TEST_TAR_FORMAT=posix
18782 export TEST_TAR_FORMAT
18783 TAR_OPTIONS=\"-H posix\"
18784 export TAR_OPTIONS
18785 rm -rf *
18786
18787 mkdir structure
18788 echo x >structure/file
18789
18790 # On Nextstep (and perhaps other 4.3BSD systems),
18791 # a newly created file's ctime isn't updated
18792 # until the next sync or stat operation on the file.
18793 ls -l structure/file >/dev/null
18794
18795 # If the time of an initial backup and the creation time of a file contained
18796 # in that backup are the same, the file will be backed up again when an
18797 # incremental backup is done, because the incremental backup backs up
18798 # files created \`on or after' the initial backup time.  Without the sleep
18799 # command, behaviour of tar becomes variable, depending whether the system
18800 # clock ticked over to the next second between creating the file and
18801 # backing it up.
18802 sleep 1
18803
18804 tar cf archive --listed=list structure
18805 tar cfv archive --listed=list structure
18806 echo separator
18807 # ReiserFS often offsets the timestamps of newly created files
18808 # 1 second to the past.  Try to compensate for it, until a better
18809 # solution is found.
18810 sleep 2
18811 echo y >structure/file
18812 tar cfv archive --listed=list structure
18813 )"
18814 echo incremental.at:26 >"$at_check_line_file"
18815
18816 if { echo 'Not enabling shell tracing (command contains a `...` command substitution)'
18817    false; }; then
18818   ( $at_traceon;
18819 mkdir posix
18820 (cd posix
18821 TEST_TAR_FORMAT=posix
18822 export TEST_TAR_FORMAT
18823 TAR_OPTIONS="-H posix"
18824 export TAR_OPTIONS
18825 rm -rf *
18826
18827 mkdir structure
18828 echo x >structure/file
18829
18830 # On Nextstep (and perhaps other 4.3BSD systems),
18831 # a newly created file's ctime isn't updated
18832 # until the next sync or stat operation on the file.
18833 ls -l structure/file >/dev/null
18834
18835 # If the time of an initial backup and the creation time of a file contained
18836 # in that backup are the same, the file will be backed up again when an
18837 # incremental backup is done, because the incremental backup backs up
18838 # files created `on or after' the initial backup time.  Without the sleep
18839 # command, behaviour of tar becomes variable, depending whether the system
18840 # clock ticked over to the next second between creating the file and
18841 # backing it up.
18842 sleep 1
18843
18844 tar cf archive --listed=list structure
18845 tar cfv archive --listed=list structure
18846 echo separator
18847 # ReiserFS often offsets the timestamps of newly created files
18848 # 1 second to the past.  Try to compensate for it, until a better
18849 # solution is found.
18850 sleep 2
18851 echo y >structure/file
18852 tar cfv archive --listed=list structure
18853 ) ) >"$at_stdout" 2>"$at_stder1"
18854   at_func_filter_trace $?
18855 else
18856   ( :;
18857 mkdir posix
18858 (cd posix
18859 TEST_TAR_FORMAT=posix
18860 export TEST_TAR_FORMAT
18861 TAR_OPTIONS="-H posix"
18862 export TAR_OPTIONS
18863 rm -rf *
18864
18865 mkdir structure
18866 echo x >structure/file
18867
18868 # On Nextstep (and perhaps other 4.3BSD systems),
18869 # a newly created file's ctime isn't updated
18870 # until the next sync or stat operation on the file.
18871 ls -l structure/file >/dev/null
18872
18873 # If the time of an initial backup and the creation time of a file contained
18874 # in that backup are the same, the file will be backed up again when an
18875 # incremental backup is done, because the incremental backup backs up
18876 # files created `on or after' the initial backup time.  Without the sleep
18877 # command, behaviour of tar becomes variable, depending whether the system
18878 # clock ticked over to the next second between creating the file and
18879 # backing it up.
18880 sleep 1
18881
18882 tar cf archive --listed=list structure
18883 tar cfv archive --listed=list structure
18884 echo separator
18885 # ReiserFS often offsets the timestamps of newly created files
18886 # 1 second to the past.  Try to compensate for it, until a better
18887 # solution is found.
18888 sleep 2
18889 echo y >structure/file
18890 tar cfv archive --listed=list structure
18891 ) ) >"$at_stdout" 2>"$at_stderr"
18892 fi
18893 at_status=$?
18894 at_failed=false
18895 at_func_diff_devnull "$at_stderr" || at_failed=:
18896 echo >>"$at_stdout"; $as_echo "structure/
18897 separator
18898 structure/
18899 structure/file
18900 " | \
18901   $at_diff - "$at_stdout" || at_failed=:
18902 at_func_check_status 0 $at_status "$at_srcdir/incremental.at:26"
18903
18904 $at_failed && at_func_log_failure
18905 $at_traceon; }
18906
18907
18908
18909
18910   $at_traceoff
18911   $at_times_p && times >"$at_times_file"
18912 ) 5>&1 2>&1 | eval $at_tee_pipe
18913 at_status=`cat "$at_status_file"`
18914 #AT_STOP_51
18915 #AT_START_52
18916 # 52. incr01.at:27: restore broken symlinks from incremental
18917 at_setup_line='incr01.at:27'
18918 at_desc="restore broken symlinks from incremental"
18919 $at_quiet $as_echo_n " 52: $at_desc       "
18920 at_xfail=no
18921       test -f $XFAILFILE && at_xfail=yes
18922 echo "#                             -*- compilation -*-" >> "$at_group_log"
18923 (
18924   $as_echo "52. incr01.at:27: testing ..."
18925   $at_traceon
18926
18927
18928
18929
18930
18931   { $at_traceoff
18932 $as_echo "$at_srcdir/incr01.at:30:
18933 mkdir gnu
18934 (cd gnu
18935 TEST_TAR_FORMAT=gnu
18936 export TEST_TAR_FORMAT
18937 TAR_OPTIONS=\"-H gnu\"
18938 export TAR_OPTIONS
18939 rm -rf *
18940
18941 mkdir directory
18942 \$as_ln_s foo directory/bar
18943
18944 tar -cf archive.0 -g db directory
18945 rm directory/bar
18946 tar -cf archive.1 -g db directory
18947
18948 mv directory orig
18949
18950 tar xvfg archive.0 /dev/null --warning=no-timestamp
18951 echo separator
18952 tar xvfg archive.1 /dev/null --warning=no-timestamp
18953 )"
18954 echo incr01.at:30 >"$at_check_line_file"
18955
18956 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
18957    false; }; then
18958   ( $at_traceon;
18959 mkdir gnu
18960 (cd gnu
18961 TEST_TAR_FORMAT=gnu
18962 export TEST_TAR_FORMAT
18963 TAR_OPTIONS="-H gnu"
18964 export TAR_OPTIONS
18965 rm -rf *
18966
18967 mkdir directory
18968 $as_ln_s foo directory/bar
18969
18970 tar -cf archive.0 -g db directory
18971 rm directory/bar
18972 tar -cf archive.1 -g db directory
18973
18974 mv directory orig
18975
18976 tar xvfg archive.0 /dev/null --warning=no-timestamp
18977 echo separator
18978 tar xvfg archive.1 /dev/null --warning=no-timestamp
18979 ) ) >"$at_stdout" 2>"$at_stder1"
18980   at_func_filter_trace $?
18981 else
18982   ( :;
18983 mkdir gnu
18984 (cd gnu
18985 TEST_TAR_FORMAT=gnu
18986 export TEST_TAR_FORMAT
18987 TAR_OPTIONS="-H gnu"
18988 export TAR_OPTIONS
18989 rm -rf *
18990
18991 mkdir directory
18992 $as_ln_s foo directory/bar
18993
18994 tar -cf archive.0 -g db directory
18995 rm directory/bar
18996 tar -cf archive.1 -g db directory
18997
18998 mv directory orig
18999
19000 tar xvfg archive.0 /dev/null --warning=no-timestamp
19001 echo separator
19002 tar xvfg archive.1 /dev/null --warning=no-timestamp
19003 ) ) >"$at_stdout" 2>"$at_stderr"
19004 fi
19005 at_status=$?
19006 at_failed=false
19007 at_func_diff_devnull "$at_stderr" || at_failed=:
19008 echo >>"$at_stdout"; $as_echo "directory/
19009 directory/bar
19010 separator
19011 directory/
19012 tar: Deleting \`directory/bar'
19013 " | \
19014   $at_diff - "$at_stdout" || at_failed=:
19015 at_func_check_status 0 $at_status "$at_srcdir/incr01.at:30"
19016
19017 $at_failed && at_func_log_failure
19018 $at_traceon; }
19019
19020               { $at_traceoff
19021 $as_echo "$at_srcdir/incr01.at:30:
19022 mkdir oldgnu
19023 (cd oldgnu
19024 TEST_TAR_FORMAT=oldgnu
19025 export TEST_TAR_FORMAT
19026 TAR_OPTIONS=\"-H oldgnu\"
19027 export TAR_OPTIONS
19028 rm -rf *
19029
19030 mkdir directory
19031 \$as_ln_s foo directory/bar
19032
19033 tar -cf archive.0 -g db directory
19034 rm directory/bar
19035 tar -cf archive.1 -g db directory
19036
19037 mv directory orig
19038
19039 tar xvfg archive.0 /dev/null --warning=no-timestamp
19040 echo separator
19041 tar xvfg archive.1 /dev/null --warning=no-timestamp
19042 )"
19043 echo incr01.at:30 >"$at_check_line_file"
19044
19045 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
19046    false; }; then
19047   ( $at_traceon;
19048 mkdir oldgnu
19049 (cd oldgnu
19050 TEST_TAR_FORMAT=oldgnu
19051 export TEST_TAR_FORMAT
19052 TAR_OPTIONS="-H oldgnu"
19053 export TAR_OPTIONS
19054 rm -rf *
19055
19056 mkdir directory
19057 $as_ln_s foo directory/bar
19058
19059 tar -cf archive.0 -g db directory
19060 rm directory/bar
19061 tar -cf archive.1 -g db directory
19062
19063 mv directory orig
19064
19065 tar xvfg archive.0 /dev/null --warning=no-timestamp
19066 echo separator
19067 tar xvfg archive.1 /dev/null --warning=no-timestamp
19068 ) ) >"$at_stdout" 2>"$at_stder1"
19069   at_func_filter_trace $?
19070 else
19071   ( :;
19072 mkdir oldgnu
19073 (cd oldgnu
19074 TEST_TAR_FORMAT=oldgnu
19075 export TEST_TAR_FORMAT
19076 TAR_OPTIONS="-H oldgnu"
19077 export TAR_OPTIONS
19078 rm -rf *
19079
19080 mkdir directory
19081 $as_ln_s foo directory/bar
19082
19083 tar -cf archive.0 -g db directory
19084 rm directory/bar
19085 tar -cf archive.1 -g db directory
19086
19087 mv directory orig
19088
19089 tar xvfg archive.0 /dev/null --warning=no-timestamp
19090 echo separator
19091 tar xvfg archive.1 /dev/null --warning=no-timestamp
19092 ) ) >"$at_stdout" 2>"$at_stderr"
19093 fi
19094 at_status=$?
19095 at_failed=false
19096 at_func_diff_devnull "$at_stderr" || at_failed=:
19097 echo >>"$at_stdout"; $as_echo "directory/
19098 directory/bar
19099 separator
19100 directory/
19101 tar: Deleting \`directory/bar'
19102 " | \
19103   $at_diff - "$at_stdout" || at_failed=:
19104 at_func_check_status 0 $at_status "$at_srcdir/incr01.at:30"
19105
19106 $at_failed && at_func_log_failure
19107 $at_traceon; }
19108
19109               { $at_traceoff
19110 $as_echo "$at_srcdir/incr01.at:30:
19111 mkdir posix
19112 (cd posix
19113 TEST_TAR_FORMAT=posix
19114 export TEST_TAR_FORMAT
19115 TAR_OPTIONS=\"-H posix\"
19116 export TAR_OPTIONS
19117 rm -rf *
19118
19119 mkdir directory
19120 \$as_ln_s foo directory/bar
19121
19122 tar -cf archive.0 -g db directory
19123 rm directory/bar
19124 tar -cf archive.1 -g db directory
19125
19126 mv directory orig
19127
19128 tar xvfg archive.0 /dev/null --warning=no-timestamp
19129 echo separator
19130 tar xvfg archive.1 /dev/null --warning=no-timestamp
19131 )"
19132 echo incr01.at:30 >"$at_check_line_file"
19133
19134 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
19135    false; }; then
19136   ( $at_traceon;
19137 mkdir posix
19138 (cd posix
19139 TEST_TAR_FORMAT=posix
19140 export TEST_TAR_FORMAT
19141 TAR_OPTIONS="-H posix"
19142 export TAR_OPTIONS
19143 rm -rf *
19144
19145 mkdir directory
19146 $as_ln_s foo directory/bar
19147
19148 tar -cf archive.0 -g db directory
19149 rm directory/bar
19150 tar -cf archive.1 -g db directory
19151
19152 mv directory orig
19153
19154 tar xvfg archive.0 /dev/null --warning=no-timestamp
19155 echo separator
19156 tar xvfg archive.1 /dev/null --warning=no-timestamp
19157 ) ) >"$at_stdout" 2>"$at_stder1"
19158   at_func_filter_trace $?
19159 else
19160   ( :;
19161 mkdir posix
19162 (cd posix
19163 TEST_TAR_FORMAT=posix
19164 export TEST_TAR_FORMAT
19165 TAR_OPTIONS="-H posix"
19166 export TAR_OPTIONS
19167 rm -rf *
19168
19169 mkdir directory
19170 $as_ln_s foo directory/bar
19171
19172 tar -cf archive.0 -g db directory
19173 rm directory/bar
19174 tar -cf archive.1 -g db directory
19175
19176 mv directory orig
19177
19178 tar xvfg archive.0 /dev/null --warning=no-timestamp
19179 echo separator
19180 tar xvfg archive.1 /dev/null --warning=no-timestamp
19181 ) ) >"$at_stdout" 2>"$at_stderr"
19182 fi
19183 at_status=$?
19184 at_failed=false
19185 at_func_diff_devnull "$at_stderr" || at_failed=:
19186 echo >>"$at_stdout"; $as_echo "directory/
19187 directory/bar
19188 separator
19189 directory/
19190 tar: Deleting \`directory/bar'
19191 " | \
19192   $at_diff - "$at_stdout" || at_failed=:
19193 at_func_check_status 0 $at_status "$at_srcdir/incr01.at:30"
19194
19195 $at_failed && at_func_log_failure
19196 $at_traceon; }
19197
19198
19199
19200
19201   $at_traceoff
19202   $at_times_p && times >"$at_times_file"
19203 ) 5>&1 2>&1 | eval $at_tee_pipe
19204 at_status=`cat "$at_status_file"`
19205 #AT_STOP_52
19206 #AT_START_53
19207 # 53. incr02.at:32: restoring timestamps from incremental
19208 at_setup_line='incr02.at:32'
19209 at_desc="restoring timestamps from incremental"
19210 $at_quiet $as_echo_n " 53: $at_desc          "
19211 at_xfail=no
19212       test -f $XFAILFILE && at_xfail=yes
19213 echo "#                             -*- compilation -*-" >> "$at_group_log"
19214 (
19215   $as_echo "53. incr02.at:32: testing ..."
19216   $at_traceon
19217
19218
19219
19220
19221
19222   { $at_traceoff
19223 $as_echo "$at_srcdir/incr02.at:35:
19224 mkdir gnu
19225 (cd gnu
19226 TEST_TAR_FORMAT=gnu
19227 export TEST_TAR_FORMAT
19228 TAR_OPTIONS=\"-H gnu\"
19229 export TAR_OPTIONS
19230 rm -rf *
19231
19232 # Create directory structure
19233 mkdir dir
19234 mkdir dir/subdir1
19235 mkdir dir/subdir2
19236 genfile --length 10 --file dir/subdir1/file
19237
19238 # Save mtime for later comparison
19239 genfile --stat=mtime dir/subdir1 > ts
19240
19241 # Create an archive. Using incremental mode makes sure the
19242 # archive will have a directory-first member ordering,
19243 # i.e.:
19244 # dir/
19245 # dir/subdir1/
19246 # dir/subdir2/
19247 # dir/subdir1/foofile
19248 #
19249 # When restoring from this directory structure, \`dir/subdir2/' used to
19250 # trigger apply_nonancestor_delayed_set_stat() which restored stats for
19251 # \`subdir1' prior to restoring \`dir/subdir1/foofile'. Then, restoring the
19252 # latter clobbered the directory timestamp.
19253
19254 tar -cf archive -g db dir
19255
19256 # Move away the directory
19257 mv dir orig
19258
19259 # Wait enough time for timestamps to differ in case of failure.
19260 sleep 5
19261
19262 # Restore the directory
19263 tar -xf archive dir
19264
19265 # Check the timestamp
19266 genfile --stat=mtime dir/subdir1 | diff ts -
19267 )"
19268 echo incr02.at:35 >"$at_check_line_file"
19269
19270 if { echo 'Not enabling shell tracing (command contains a `...` command substitution)'
19271    false; }; then
19272   ( $at_traceon;
19273 mkdir gnu
19274 (cd gnu
19275 TEST_TAR_FORMAT=gnu
19276 export TEST_TAR_FORMAT
19277 TAR_OPTIONS="-H gnu"
19278 export TAR_OPTIONS
19279 rm -rf *
19280
19281 # Create directory structure
19282 mkdir dir
19283 mkdir dir/subdir1
19284 mkdir dir/subdir2
19285 genfile --length 10 --file dir/subdir1/file
19286
19287 # Save mtime for later comparison
19288 genfile --stat=mtime dir/subdir1 > ts
19289
19290 # Create an archive. Using incremental mode makes sure the
19291 # archive will have a directory-first member ordering,
19292 # i.e.:
19293 # dir/
19294 # dir/subdir1/
19295 # dir/subdir2/
19296 # dir/subdir1/foofile
19297 #
19298 # When restoring from this directory structure, `dir/subdir2/' used to
19299 # trigger apply_nonancestor_delayed_set_stat() which restored stats for
19300 # `subdir1' prior to restoring `dir/subdir1/foofile'. Then, restoring the
19301 # latter clobbered the directory timestamp.
19302
19303 tar -cf archive -g db dir
19304
19305 # Move away the directory
19306 mv dir orig
19307
19308 # Wait enough time for timestamps to differ in case of failure.
19309 sleep 5
19310
19311 # Restore the directory
19312 tar -xf archive dir
19313
19314 # Check the timestamp
19315 genfile --stat=mtime dir/subdir1 | diff ts -
19316 ) ) >"$at_stdout" 2>"$at_stder1"
19317   at_func_filter_trace $?
19318 else
19319   ( :;
19320 mkdir gnu
19321 (cd gnu
19322 TEST_TAR_FORMAT=gnu
19323 export TEST_TAR_FORMAT
19324 TAR_OPTIONS="-H gnu"
19325 export TAR_OPTIONS
19326 rm -rf *
19327
19328 # Create directory structure
19329 mkdir dir
19330 mkdir dir/subdir1
19331 mkdir dir/subdir2
19332 genfile --length 10 --file dir/subdir1/file
19333
19334 # Save mtime for later comparison
19335 genfile --stat=mtime dir/subdir1 > ts
19336
19337 # Create an archive. Using incremental mode makes sure the
19338 # archive will have a directory-first member ordering,
19339 # i.e.:
19340 # dir/
19341 # dir/subdir1/
19342 # dir/subdir2/
19343 # dir/subdir1/foofile
19344 #
19345 # When restoring from this directory structure, `dir/subdir2/' used to
19346 # trigger apply_nonancestor_delayed_set_stat() which restored stats for
19347 # `subdir1' prior to restoring `dir/subdir1/foofile'. Then, restoring the
19348 # latter clobbered the directory timestamp.
19349
19350 tar -cf archive -g db dir
19351
19352 # Move away the directory
19353 mv dir orig
19354
19355 # Wait enough time for timestamps to differ in case of failure.
19356 sleep 5
19357
19358 # Restore the directory
19359 tar -xf archive dir
19360
19361 # Check the timestamp
19362 genfile --stat=mtime dir/subdir1 | diff ts -
19363 ) ) >"$at_stdout" 2>"$at_stderr"
19364 fi
19365 at_status=$?
19366 at_failed=false
19367 at_func_diff_devnull "$at_stderr" || at_failed=:
19368 at_func_diff_devnull "$at_stdout" || at_failed=:
19369 at_func_check_status 0 $at_status "$at_srcdir/incr02.at:35"
19370
19371 $at_failed && at_func_log_failure
19372 $at_traceon; }
19373
19374               { $at_traceoff
19375 $as_echo "$at_srcdir/incr02.at:35:
19376 mkdir oldgnu
19377 (cd oldgnu
19378 TEST_TAR_FORMAT=oldgnu
19379 export TEST_TAR_FORMAT
19380 TAR_OPTIONS=\"-H oldgnu\"
19381 export TAR_OPTIONS
19382 rm -rf *
19383
19384 # Create directory structure
19385 mkdir dir
19386 mkdir dir/subdir1
19387 mkdir dir/subdir2
19388 genfile --length 10 --file dir/subdir1/file
19389
19390 # Save mtime for later comparison
19391 genfile --stat=mtime dir/subdir1 > ts
19392
19393 # Create an archive. Using incremental mode makes sure the
19394 # archive will have a directory-first member ordering,
19395 # i.e.:
19396 # dir/
19397 # dir/subdir1/
19398 # dir/subdir2/
19399 # dir/subdir1/foofile
19400 #
19401 # When restoring from this directory structure, \`dir/subdir2/' used to
19402 # trigger apply_nonancestor_delayed_set_stat() which restored stats for
19403 # \`subdir1' prior to restoring \`dir/subdir1/foofile'. Then, restoring the
19404 # latter clobbered the directory timestamp.
19405
19406 tar -cf archive -g db dir
19407
19408 # Move away the directory
19409 mv dir orig
19410
19411 # Wait enough time for timestamps to differ in case of failure.
19412 sleep 5
19413
19414 # Restore the directory
19415 tar -xf archive dir
19416
19417 # Check the timestamp
19418 genfile --stat=mtime dir/subdir1 | diff ts -
19419 )"
19420 echo incr02.at:35 >"$at_check_line_file"
19421
19422 if { echo 'Not enabling shell tracing (command contains a `...` command substitution)'
19423    false; }; then
19424   ( $at_traceon;
19425 mkdir oldgnu
19426 (cd oldgnu
19427 TEST_TAR_FORMAT=oldgnu
19428 export TEST_TAR_FORMAT
19429 TAR_OPTIONS="-H oldgnu"
19430 export TAR_OPTIONS
19431 rm -rf *
19432
19433 # Create directory structure
19434 mkdir dir
19435 mkdir dir/subdir1
19436 mkdir dir/subdir2
19437 genfile --length 10 --file dir/subdir1/file
19438
19439 # Save mtime for later comparison
19440 genfile --stat=mtime dir/subdir1 > ts
19441
19442 # Create an archive. Using incremental mode makes sure the
19443 # archive will have a directory-first member ordering,
19444 # i.e.:
19445 # dir/
19446 # dir/subdir1/
19447 # dir/subdir2/
19448 # dir/subdir1/foofile
19449 #
19450 # When restoring from this directory structure, `dir/subdir2/' used to
19451 # trigger apply_nonancestor_delayed_set_stat() which restored stats for
19452 # `subdir1' prior to restoring `dir/subdir1/foofile'. Then, restoring the
19453 # latter clobbered the directory timestamp.
19454
19455 tar -cf archive -g db dir
19456
19457 # Move away the directory
19458 mv dir orig
19459
19460 # Wait enough time for timestamps to differ in case of failure.
19461 sleep 5
19462
19463 # Restore the directory
19464 tar -xf archive dir
19465
19466 # Check the timestamp
19467 genfile --stat=mtime dir/subdir1 | diff ts -
19468 ) ) >"$at_stdout" 2>"$at_stder1"
19469   at_func_filter_trace $?
19470 else
19471   ( :;
19472 mkdir oldgnu
19473 (cd oldgnu
19474 TEST_TAR_FORMAT=oldgnu
19475 export TEST_TAR_FORMAT
19476 TAR_OPTIONS="-H oldgnu"
19477 export TAR_OPTIONS
19478 rm -rf *
19479
19480 # Create directory structure
19481 mkdir dir
19482 mkdir dir/subdir1
19483 mkdir dir/subdir2
19484 genfile --length 10 --file dir/subdir1/file
19485
19486 # Save mtime for later comparison
19487 genfile --stat=mtime dir/subdir1 > ts
19488
19489 # Create an archive. Using incremental mode makes sure the
19490 # archive will have a directory-first member ordering,
19491 # i.e.:
19492 # dir/
19493 # dir/subdir1/
19494 # dir/subdir2/
19495 # dir/subdir1/foofile
19496 #
19497 # When restoring from this directory structure, `dir/subdir2/' used to
19498 # trigger apply_nonancestor_delayed_set_stat() which restored stats for
19499 # `subdir1' prior to restoring `dir/subdir1/foofile'. Then, restoring the
19500 # latter clobbered the directory timestamp.
19501
19502 tar -cf archive -g db dir
19503
19504 # Move away the directory
19505 mv dir orig
19506
19507 # Wait enough time for timestamps to differ in case of failure.
19508 sleep 5
19509
19510 # Restore the directory
19511 tar -xf archive dir
19512
19513 # Check the timestamp
19514 genfile --stat=mtime dir/subdir1 | diff ts -
19515 ) ) >"$at_stdout" 2>"$at_stderr"
19516 fi
19517 at_status=$?
19518 at_failed=false
19519 at_func_diff_devnull "$at_stderr" || at_failed=:
19520 at_func_diff_devnull "$at_stdout" || at_failed=:
19521 at_func_check_status 0 $at_status "$at_srcdir/incr02.at:35"
19522
19523 $at_failed && at_func_log_failure
19524 $at_traceon; }
19525
19526               { $at_traceoff
19527 $as_echo "$at_srcdir/incr02.at:35:
19528 mkdir posix
19529 (cd posix
19530 TEST_TAR_FORMAT=posix
19531 export TEST_TAR_FORMAT
19532 TAR_OPTIONS=\"-H posix\"
19533 export TAR_OPTIONS
19534 rm -rf *
19535
19536 # Create directory structure
19537 mkdir dir
19538 mkdir dir/subdir1
19539 mkdir dir/subdir2
19540 genfile --length 10 --file dir/subdir1/file
19541
19542 # Save mtime for later comparison
19543 genfile --stat=mtime dir/subdir1 > ts
19544
19545 # Create an archive. Using incremental mode makes sure the
19546 # archive will have a directory-first member ordering,
19547 # i.e.:
19548 # dir/
19549 # dir/subdir1/
19550 # dir/subdir2/
19551 # dir/subdir1/foofile
19552 #
19553 # When restoring from this directory structure, \`dir/subdir2/' used to
19554 # trigger apply_nonancestor_delayed_set_stat() which restored stats for
19555 # \`subdir1' prior to restoring \`dir/subdir1/foofile'. Then, restoring the
19556 # latter clobbered the directory timestamp.
19557
19558 tar -cf archive -g db dir
19559
19560 # Move away the directory
19561 mv dir orig
19562
19563 # Wait enough time for timestamps to differ in case of failure.
19564 sleep 5
19565
19566 # Restore the directory
19567 tar -xf archive dir
19568
19569 # Check the timestamp
19570 genfile --stat=mtime dir/subdir1 | diff ts -
19571 )"
19572 echo incr02.at:35 >"$at_check_line_file"
19573
19574 if { echo 'Not enabling shell tracing (command contains a `...` command substitution)'
19575    false; }; then
19576   ( $at_traceon;
19577 mkdir posix
19578 (cd posix
19579 TEST_TAR_FORMAT=posix
19580 export TEST_TAR_FORMAT
19581 TAR_OPTIONS="-H posix"
19582 export TAR_OPTIONS
19583 rm -rf *
19584
19585 # Create directory structure
19586 mkdir dir
19587 mkdir dir/subdir1
19588 mkdir dir/subdir2
19589 genfile --length 10 --file dir/subdir1/file
19590
19591 # Save mtime for later comparison
19592 genfile --stat=mtime dir/subdir1 > ts
19593
19594 # Create an archive. Using incremental mode makes sure the
19595 # archive will have a directory-first member ordering,
19596 # i.e.:
19597 # dir/
19598 # dir/subdir1/
19599 # dir/subdir2/
19600 # dir/subdir1/foofile
19601 #
19602 # When restoring from this directory structure, `dir/subdir2/' used to
19603 # trigger apply_nonancestor_delayed_set_stat() which restored stats for
19604 # `subdir1' prior to restoring `dir/subdir1/foofile'. Then, restoring the
19605 # latter clobbered the directory timestamp.
19606
19607 tar -cf archive -g db dir
19608
19609 # Move away the directory
19610 mv dir orig
19611
19612 # Wait enough time for timestamps to differ in case of failure.
19613 sleep 5
19614
19615 # Restore the directory
19616 tar -xf archive dir
19617
19618 # Check the timestamp
19619 genfile --stat=mtime dir/subdir1 | diff ts -
19620 ) ) >"$at_stdout" 2>"$at_stder1"
19621   at_func_filter_trace $?
19622 else
19623   ( :;
19624 mkdir posix
19625 (cd posix
19626 TEST_TAR_FORMAT=posix
19627 export TEST_TAR_FORMAT
19628 TAR_OPTIONS="-H posix"
19629 export TAR_OPTIONS
19630 rm -rf *
19631
19632 # Create directory structure
19633 mkdir dir
19634 mkdir dir/subdir1
19635 mkdir dir/subdir2
19636 genfile --length 10 --file dir/subdir1/file
19637
19638 # Save mtime for later comparison
19639 genfile --stat=mtime dir/subdir1 > ts
19640
19641 # Create an archive. Using incremental mode makes sure the
19642 # archive will have a directory-first member ordering,
19643 # i.e.:
19644 # dir/
19645 # dir/subdir1/
19646 # dir/subdir2/
19647 # dir/subdir1/foofile
19648 #
19649 # When restoring from this directory structure, `dir/subdir2/' used to
19650 # trigger apply_nonancestor_delayed_set_stat() which restored stats for
19651 # `subdir1' prior to restoring `dir/subdir1/foofile'. Then, restoring the
19652 # latter clobbered the directory timestamp.
19653
19654 tar -cf archive -g db dir
19655
19656 # Move away the directory
19657 mv dir orig
19658
19659 # Wait enough time for timestamps to differ in case of failure.
19660 sleep 5
19661
19662 # Restore the directory
19663 tar -xf archive dir
19664
19665 # Check the timestamp
19666 genfile --stat=mtime dir/subdir1 | diff ts -
19667 ) ) >"$at_stdout" 2>"$at_stderr"
19668 fi
19669 at_status=$?
19670 at_failed=false
19671 at_func_diff_devnull "$at_stderr" || at_failed=:
19672 at_func_diff_devnull "$at_stdout" || at_failed=:
19673 at_func_check_status 0 $at_status "$at_srcdir/incr02.at:35"
19674
19675 $at_failed && at_func_log_failure
19676 $at_traceon; }
19677
19678
19679
19680
19681   $at_traceoff
19682   $at_times_p && times >"$at_times_file"
19683 ) 5>&1 2>&1 | eval $at_tee_pipe
19684 at_status=`cat "$at_status_file"`
19685 #AT_STOP_53
19686 #AT_START_54
19687 # 54. listed01.at:26: --listed for individual files
19688 at_setup_line='listed01.at:26'
19689 at_desc="--listed for individual files"
19690 $at_quiet $as_echo_n " 54: $at_desc                  "
19691 at_xfail=no
19692       test -f $XFAILFILE && at_xfail=yes
19693 echo "#                             -*- compilation -*-" >> "$at_group_log"
19694 (
19695   $as_echo "54. listed01.at:26: testing ..."
19696   $at_traceon
19697
19698
19699
19700
19701
19702   { $at_traceoff
19703 $as_echo "$at_srcdir/listed01.at:29:
19704 mkdir gnu
19705 (cd gnu
19706 TEST_TAR_FORMAT=gnu
19707 export TEST_TAR_FORMAT
19708 TAR_OPTIONS=\"-H gnu\"
19709 export TAR_OPTIONS
19710 rm -rf *
19711
19712 mkdir directory
19713 genfile --length 10240 --pattern zeros --file directory/file1
19714 # Let the things settle
19715 sleep 1
19716
19717 tar --create \\
19718     --file=archive.1 \\
19719     --listed-incremental=listing \\
19720     directory/file*
19721
19722 tar tf archive.1 || exit 1
19723
19724 sleep 2
19725
19726 genfile --length 10240 --pattern zeros --file directory/file2
19727
19728 echo \"separator\"
19729 cp listing listing.old
19730 tar --create \\
19731     --file=archive.2 \\
19732     --listed-incremental=listing \\
19733     directory/file* || exit 1
19734
19735 tar tf archive.2 || exit 1
19736 )"
19737 echo listed01.at:29 >"$at_check_line_file"
19738
19739 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
19740    false; }; then
19741   ( $at_traceon;
19742 mkdir gnu
19743 (cd gnu
19744 TEST_TAR_FORMAT=gnu
19745 export TEST_TAR_FORMAT
19746 TAR_OPTIONS="-H gnu"
19747 export TAR_OPTIONS
19748 rm -rf *
19749
19750 mkdir directory
19751 genfile --length 10240 --pattern zeros --file directory/file1
19752 # Let the things settle
19753 sleep 1
19754
19755 tar --create \
19756     --file=archive.1 \
19757     --listed-incremental=listing \
19758     directory/file*
19759
19760 tar tf archive.1 || exit 1
19761
19762 sleep 2
19763
19764 genfile --length 10240 --pattern zeros --file directory/file2
19765
19766 echo "separator"
19767 cp listing listing.old
19768 tar --create \
19769     --file=archive.2 \
19770     --listed-incremental=listing \
19771     directory/file* || exit 1
19772
19773 tar tf archive.2 || exit 1
19774 ) ) >"$at_stdout" 2>"$at_stder1"
19775   at_func_filter_trace $?
19776 else
19777   ( :;
19778 mkdir gnu
19779 (cd gnu
19780 TEST_TAR_FORMAT=gnu
19781 export TEST_TAR_FORMAT
19782 TAR_OPTIONS="-H gnu"
19783 export TAR_OPTIONS
19784 rm -rf *
19785
19786 mkdir directory
19787 genfile --length 10240 --pattern zeros --file directory/file1
19788 # Let the things settle
19789 sleep 1
19790
19791 tar --create \
19792     --file=archive.1 \
19793     --listed-incremental=listing \
19794     directory/file*
19795
19796 tar tf archive.1 || exit 1
19797
19798 sleep 2
19799
19800 genfile --length 10240 --pattern zeros --file directory/file2
19801
19802 echo "separator"
19803 cp listing listing.old
19804 tar --create \
19805     --file=archive.2 \
19806     --listed-incremental=listing \
19807     directory/file* || exit 1
19808
19809 tar tf archive.2 || exit 1
19810 ) ) >"$at_stdout" 2>"$at_stderr"
19811 fi
19812 at_status=$?
19813 at_failed=false
19814 at_func_diff_devnull "$at_stderr" || at_failed=:
19815 echo >>"$at_stdout"; $as_echo "directory/file1
19816 separator
19817 directory/file2
19818 " | \
19819   $at_diff - "$at_stdout" || at_failed=:
19820 at_func_check_status 0 $at_status "$at_srcdir/listed01.at:29"
19821
19822 $at_failed && at_func_log_failure
19823 $at_traceon; }
19824
19825               { $at_traceoff
19826 $as_echo "$at_srcdir/listed01.at:29:
19827 mkdir oldgnu
19828 (cd oldgnu
19829 TEST_TAR_FORMAT=oldgnu
19830 export TEST_TAR_FORMAT
19831 TAR_OPTIONS=\"-H oldgnu\"
19832 export TAR_OPTIONS
19833 rm -rf *
19834
19835 mkdir directory
19836 genfile --length 10240 --pattern zeros --file directory/file1
19837 # Let the things settle
19838 sleep 1
19839
19840 tar --create \\
19841     --file=archive.1 \\
19842     --listed-incremental=listing \\
19843     directory/file*
19844
19845 tar tf archive.1 || exit 1
19846
19847 sleep 2
19848
19849 genfile --length 10240 --pattern zeros --file directory/file2
19850
19851 echo \"separator\"
19852 cp listing listing.old
19853 tar --create \\
19854     --file=archive.2 \\
19855     --listed-incremental=listing \\
19856     directory/file* || exit 1
19857
19858 tar tf archive.2 || exit 1
19859 )"
19860 echo listed01.at:29 >"$at_check_line_file"
19861
19862 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
19863    false; }; then
19864   ( $at_traceon;
19865 mkdir oldgnu
19866 (cd oldgnu
19867 TEST_TAR_FORMAT=oldgnu
19868 export TEST_TAR_FORMAT
19869 TAR_OPTIONS="-H oldgnu"
19870 export TAR_OPTIONS
19871 rm -rf *
19872
19873 mkdir directory
19874 genfile --length 10240 --pattern zeros --file directory/file1
19875 # Let the things settle
19876 sleep 1
19877
19878 tar --create \
19879     --file=archive.1 \
19880     --listed-incremental=listing \
19881     directory/file*
19882
19883 tar tf archive.1 || exit 1
19884
19885 sleep 2
19886
19887 genfile --length 10240 --pattern zeros --file directory/file2
19888
19889 echo "separator"
19890 cp listing listing.old
19891 tar --create \
19892     --file=archive.2 \
19893     --listed-incremental=listing \
19894     directory/file* || exit 1
19895
19896 tar tf archive.2 || exit 1
19897 ) ) >"$at_stdout" 2>"$at_stder1"
19898   at_func_filter_trace $?
19899 else
19900   ( :;
19901 mkdir oldgnu
19902 (cd oldgnu
19903 TEST_TAR_FORMAT=oldgnu
19904 export TEST_TAR_FORMAT
19905 TAR_OPTIONS="-H oldgnu"
19906 export TAR_OPTIONS
19907 rm -rf *
19908
19909 mkdir directory
19910 genfile --length 10240 --pattern zeros --file directory/file1
19911 # Let the things settle
19912 sleep 1
19913
19914 tar --create \
19915     --file=archive.1 \
19916     --listed-incremental=listing \
19917     directory/file*
19918
19919 tar tf archive.1 || exit 1
19920
19921 sleep 2
19922
19923 genfile --length 10240 --pattern zeros --file directory/file2
19924
19925 echo "separator"
19926 cp listing listing.old
19927 tar --create \
19928     --file=archive.2 \
19929     --listed-incremental=listing \
19930     directory/file* || exit 1
19931
19932 tar tf archive.2 || exit 1
19933 ) ) >"$at_stdout" 2>"$at_stderr"
19934 fi
19935 at_status=$?
19936 at_failed=false
19937 at_func_diff_devnull "$at_stderr" || at_failed=:
19938 echo >>"$at_stdout"; $as_echo "directory/file1
19939 separator
19940 directory/file2
19941 " | \
19942   $at_diff - "$at_stdout" || at_failed=:
19943 at_func_check_status 0 $at_status "$at_srcdir/listed01.at:29"
19944
19945 $at_failed && at_func_log_failure
19946 $at_traceon; }
19947
19948
19949
19950
19951   $at_traceoff
19952   $at_times_p && times >"$at_times_file"
19953 ) 5>&1 2>&1 | eval $at_tee_pipe
19954 at_status=`cat "$at_status_file"`
19955 #AT_STOP_54
19956 #AT_START_55
19957 # 55. listed02.at:28: working --listed
19958 at_setup_line='listed02.at:28'
19959 at_desc="working --listed"
19960 $at_quiet $as_echo_n " 55: $at_desc                               "
19961 at_xfail=no
19962       test -f $XFAILFILE && at_xfail=yes
19963 echo "#                             -*- compilation -*-" >> "$at_group_log"
19964 (
19965   $as_echo "55. listed02.at:28: testing ..."
19966   $at_traceon
19967
19968
19969
19970
19971
19972   { $at_traceoff
19973 $as_echo "$at_srcdir/listed02.at:31:
19974 mkdir gnu
19975 (cd gnu
19976 TEST_TAR_FORMAT=gnu
19977 export TEST_TAR_FORMAT
19978 TAR_OPTIONS=\"-H gnu\"
19979 export TAR_OPTIONS
19980 rm -rf *
19981
19982
19983 test -z "`sort < /dev/null 2>&1`" || exit 77
19984
19985 echo Create directories
19986
19987 mkdir tart
19988 sleep 1
19989 mkdir tart/c0
19990 sleep 1
19991 mkdir tart/c1
19992 sleep 1
19993
19994 for file in tart/a1 tart/b1 tart/c0/cq1 tart/c0/cq2 tart/c1/ca1 tart/c1/ca2
19995 do
19996   echo File \$file > \$file
19997   sleep 1
19998 done
19999
20000 sleep 1
20001 echo Creating main archive
20002 echo >&2 \"Creating main archive\"
20003 tar -c -v --listed-incremental=tart.incr1 -f archive.1 tart 2> err || exit 1
20004
20005 # The above prints two lines to stderr announcing the new directories c0 and c1.
20006 # Ensure that they appear in this script's stderr in sorted order.
20007 sort err 1>&2; rm -f err
20008
20009 sleep 1
20010 echo Modifying filesystem
20011 rm tart/a1
20012
20013 mv tart/b1 tart/b2
20014 mv tart/c1 tart/c2
20015 touch tart/c2/ca3
20016
20017 echo Directory contents
20018 find tart -print | sort 2>/dev/null
20019
20020 sleep 1
20021 echo Creating incremental archive
20022 echo >&2 \"Creating incremental archive\"
20023 cp -p tart.incr1 tart.incr2
20024 tar -c -v --listed-incremental=tart.incr2 -f archive.2 tart || exit 1
20025
20026 sleep 1
20027
20028 rm -rf tart/*
20029 echo Extracting main archive
20030 echo >&2 \"Extracting main archive\"
20031 tar -x -v --listed-incremental=tart.incr1 -f archive.1 || exit 1
20032 echo Extracting incremental archive
20033 # This command should produce three messages about deletion
20034 # of the existing files, that may appear in any order. Piping
20035 # to sort makes sure we don't depend on any particular ordering.
20036 tar -x -v --listed-incremental=tart.incr2 -f archive.2 | sort 2>/dev/null
20037
20038 echo Final files:
20039 find tart -print | sort 2>/dev/null
20040 )"
20041 echo listed02.at:31 >"$at_check_line_file"
20042
20043 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
20044    false; }; then
20045   ( $at_traceon;
20046 mkdir gnu
20047 (cd gnu
20048 TEST_TAR_FORMAT=gnu
20049 export TEST_TAR_FORMAT
20050 TAR_OPTIONS="-H gnu"
20051 export TAR_OPTIONS
20052 rm -rf *
20053
20054
20055 test -z "`sort < /dev/null 2>&1`" || exit 77
20056
20057 echo Create directories
20058
20059 mkdir tart
20060 sleep 1
20061 mkdir tart/c0
20062 sleep 1
20063 mkdir tart/c1
20064 sleep 1
20065
20066 for file in tart/a1 tart/b1 tart/c0/cq1 tart/c0/cq2 tart/c1/ca1 tart/c1/ca2
20067 do
20068   echo File $file > $file
20069   sleep 1
20070 done
20071
20072 sleep 1
20073 echo Creating main archive
20074 echo >&2 "Creating main archive"
20075 tar -c -v --listed-incremental=tart.incr1 -f archive.1 tart 2> err || exit 1
20076
20077 # The above prints two lines to stderr announcing the new directories c0 and c1.
20078 # Ensure that they appear in this script's stderr in sorted order.
20079 sort err 1>&2; rm -f err
20080
20081 sleep 1
20082 echo Modifying filesystem
20083 rm tart/a1
20084
20085 mv tart/b1 tart/b2
20086 mv tart/c1 tart/c2
20087 touch tart/c2/ca3
20088
20089 echo Directory contents
20090 find tart -print | sort 2>/dev/null
20091
20092 sleep 1
20093 echo Creating incremental archive
20094 echo >&2 "Creating incremental archive"
20095 cp -p tart.incr1 tart.incr2
20096 tar -c -v --listed-incremental=tart.incr2 -f archive.2 tart || exit 1
20097
20098 sleep 1
20099
20100 rm -rf tart/*
20101 echo Extracting main archive
20102 echo >&2 "Extracting main archive"
20103 tar -x -v --listed-incremental=tart.incr1 -f archive.1 || exit 1
20104 echo Extracting incremental archive
20105 # This command should produce three messages about deletion
20106 # of the existing files, that may appear in any order. Piping
20107 # to sort makes sure we don't depend on any particular ordering.
20108 tar -x -v --listed-incremental=tart.incr2 -f archive.2 | sort 2>/dev/null
20109
20110 echo Final files:
20111 find tart -print | sort 2>/dev/null
20112 ) ) >"$at_stdout" 2>"$at_stder1"
20113   at_func_filter_trace $?
20114 else
20115   ( :;
20116 mkdir gnu
20117 (cd gnu
20118 TEST_TAR_FORMAT=gnu
20119 export TEST_TAR_FORMAT
20120 TAR_OPTIONS="-H gnu"
20121 export TAR_OPTIONS
20122 rm -rf *
20123
20124
20125 test -z "`sort < /dev/null 2>&1`" || exit 77
20126
20127 echo Create directories
20128
20129 mkdir tart
20130 sleep 1
20131 mkdir tart/c0
20132 sleep 1
20133 mkdir tart/c1
20134 sleep 1
20135
20136 for file in tart/a1 tart/b1 tart/c0/cq1 tart/c0/cq2 tart/c1/ca1 tart/c1/ca2
20137 do
20138   echo File $file > $file
20139   sleep 1
20140 done
20141
20142 sleep 1
20143 echo Creating main archive
20144 echo >&2 "Creating main archive"
20145 tar -c -v --listed-incremental=tart.incr1 -f archive.1 tart 2> err || exit 1
20146
20147 # The above prints two lines to stderr announcing the new directories c0 and c1.
20148 # Ensure that they appear in this script's stderr in sorted order.
20149 sort err 1>&2; rm -f err
20150
20151 sleep 1
20152 echo Modifying filesystem
20153 rm tart/a1
20154
20155 mv tart/b1 tart/b2
20156 mv tart/c1 tart/c2
20157 touch tart/c2/ca3
20158
20159 echo Directory contents
20160 find tart -print | sort 2>/dev/null
20161
20162 sleep 1
20163 echo Creating incremental archive
20164 echo >&2 "Creating incremental archive"
20165 cp -p tart.incr1 tart.incr2
20166 tar -c -v --listed-incremental=tart.incr2 -f archive.2 tart || exit 1
20167
20168 sleep 1
20169
20170 rm -rf tart/*
20171 echo Extracting main archive
20172 echo >&2 "Extracting main archive"
20173 tar -x -v --listed-incremental=tart.incr1 -f archive.1 || exit 1
20174 echo Extracting incremental archive
20175 # This command should produce three messages about deletion
20176 # of the existing files, that may appear in any order. Piping
20177 # to sort makes sure we don't depend on any particular ordering.
20178 tar -x -v --listed-incremental=tart.incr2 -f archive.2 | sort 2>/dev/null
20179
20180 echo Final files:
20181 find tart -print | sort 2>/dev/null
20182 ) ) >"$at_stdout" 2>"$at_stderr"
20183 fi
20184 at_status=$?
20185 at_failed=false
20186 echo >>"$at_stderr"; $as_echo "Creating main archive
20187 tar: tart/c0: Directory is new
20188 tar: tart/c1: Directory is new
20189 tar: tart: Directory is new
20190 Creating incremental archive
20191 tar: tart/c2: Directory has been renamed from \`tart/c1'
20192 Extracting main archive
20193 " | \
20194   $at_diff - "$at_stderr" || at_failed=:
20195 echo >>"$at_stdout"; $as_echo "Create directories
20196 Creating main archive
20197 tart/
20198 tart/c0/
20199 tart/c1/
20200 tart/a1
20201 tart/b1
20202 tart/c0/cq1
20203 tart/c0/cq2
20204 tart/c1/ca1
20205 tart/c1/ca2
20206 Modifying filesystem
20207 Directory contents
20208 tart
20209 tart/b2
20210 tart/c0
20211 tart/c0/cq1
20212 tart/c0/cq2
20213 tart/c2
20214 tart/c2/ca1
20215 tart/c2/ca2
20216 tart/c2/ca3
20217 Creating incremental archive
20218 tart/
20219 tart/c0/
20220 tart/c2/
20221 tart/b2
20222 tart/c2/ca3
20223 Extracting main archive
20224 tart/
20225 tart/c0/
20226 tart/c1/
20227 tart/a1
20228 tart/b1
20229 tart/c0/cq1
20230 tart/c0/cq2
20231 tart/c1/ca1
20232 tart/c1/ca2
20233 Extracting incremental archive
20234 tar: Deleting \`tart/a1'
20235 tar: Deleting \`tart/b1'
20236 tart/
20237 tart/b2
20238 tart/c0/
20239 tart/c2/
20240 tart/c2/ca3
20241 Final files:
20242 tart
20243 tart/b2
20244 tart/c0
20245 tart/c0/cq1
20246 tart/c0/cq2
20247 tart/c2
20248 tart/c2/ca1
20249 tart/c2/ca2
20250 tart/c2/ca3
20251 " | \
20252   $at_diff - "$at_stdout" || at_failed=:
20253 at_func_check_status 0 $at_status "$at_srcdir/listed02.at:31"
20254
20255 $at_failed && at_func_log_failure
20256 $at_traceon; }
20257
20258               { $at_traceoff
20259 $as_echo "$at_srcdir/listed02.at:31:
20260 mkdir oldgnu
20261 (cd oldgnu
20262 TEST_TAR_FORMAT=oldgnu
20263 export TEST_TAR_FORMAT
20264 TAR_OPTIONS=\"-H oldgnu\"
20265 export TAR_OPTIONS
20266 rm -rf *
20267
20268
20269 test -z "`sort < /dev/null 2>&1`" || exit 77
20270
20271 echo Create directories
20272
20273 mkdir tart
20274 sleep 1
20275 mkdir tart/c0
20276 sleep 1
20277 mkdir tart/c1
20278 sleep 1
20279
20280 for file in tart/a1 tart/b1 tart/c0/cq1 tart/c0/cq2 tart/c1/ca1 tart/c1/ca2
20281 do
20282   echo File \$file > \$file
20283   sleep 1
20284 done
20285
20286 sleep 1
20287 echo Creating main archive
20288 echo >&2 \"Creating main archive\"
20289 tar -c -v --listed-incremental=tart.incr1 -f archive.1 tart 2> err || exit 1
20290
20291 # The above prints two lines to stderr announcing the new directories c0 and c1.
20292 # Ensure that they appear in this script's stderr in sorted order.
20293 sort err 1>&2; rm -f err
20294
20295 sleep 1
20296 echo Modifying filesystem
20297 rm tart/a1
20298
20299 mv tart/b1 tart/b2
20300 mv tart/c1 tart/c2
20301 touch tart/c2/ca3
20302
20303 echo Directory contents
20304 find tart -print | sort 2>/dev/null
20305
20306 sleep 1
20307 echo Creating incremental archive
20308 echo >&2 \"Creating incremental archive\"
20309 cp -p tart.incr1 tart.incr2
20310 tar -c -v --listed-incremental=tart.incr2 -f archive.2 tart || exit 1
20311
20312 sleep 1
20313
20314 rm -rf tart/*
20315 echo Extracting main archive
20316 echo >&2 \"Extracting main archive\"
20317 tar -x -v --listed-incremental=tart.incr1 -f archive.1 || exit 1
20318 echo Extracting incremental archive
20319 # This command should produce three messages about deletion
20320 # of the existing files, that may appear in any order. Piping
20321 # to sort makes sure we don't depend on any particular ordering.
20322 tar -x -v --listed-incremental=tart.incr2 -f archive.2 | sort 2>/dev/null
20323
20324 echo Final files:
20325 find tart -print | sort 2>/dev/null
20326 )"
20327 echo listed02.at:31 >"$at_check_line_file"
20328
20329 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
20330    false; }; then
20331   ( $at_traceon;
20332 mkdir oldgnu
20333 (cd oldgnu
20334 TEST_TAR_FORMAT=oldgnu
20335 export TEST_TAR_FORMAT
20336 TAR_OPTIONS="-H oldgnu"
20337 export TAR_OPTIONS
20338 rm -rf *
20339
20340
20341 test -z "`sort < /dev/null 2>&1`" || exit 77
20342
20343 echo Create directories
20344
20345 mkdir tart
20346 sleep 1
20347 mkdir tart/c0
20348 sleep 1
20349 mkdir tart/c1
20350 sleep 1
20351
20352 for file in tart/a1 tart/b1 tart/c0/cq1 tart/c0/cq2 tart/c1/ca1 tart/c1/ca2
20353 do
20354   echo File $file > $file
20355   sleep 1
20356 done
20357
20358 sleep 1
20359 echo Creating main archive
20360 echo >&2 "Creating main archive"
20361 tar -c -v --listed-incremental=tart.incr1 -f archive.1 tart 2> err || exit 1
20362
20363 # The above prints two lines to stderr announcing the new directories c0 and c1.
20364 # Ensure that they appear in this script's stderr in sorted order.
20365 sort err 1>&2; rm -f err
20366
20367 sleep 1
20368 echo Modifying filesystem
20369 rm tart/a1
20370
20371 mv tart/b1 tart/b2
20372 mv tart/c1 tart/c2
20373 touch tart/c2/ca3
20374
20375 echo Directory contents
20376 find tart -print | sort 2>/dev/null
20377
20378 sleep 1
20379 echo Creating incremental archive
20380 echo >&2 "Creating incremental archive"
20381 cp -p tart.incr1 tart.incr2
20382 tar -c -v --listed-incremental=tart.incr2 -f archive.2 tart || exit 1
20383
20384 sleep 1
20385
20386 rm -rf tart/*
20387 echo Extracting main archive
20388 echo >&2 "Extracting main archive"
20389 tar -x -v --listed-incremental=tart.incr1 -f archive.1 || exit 1
20390 echo Extracting incremental archive
20391 # This command should produce three messages about deletion
20392 # of the existing files, that may appear in any order. Piping
20393 # to sort makes sure we don't depend on any particular ordering.
20394 tar -x -v --listed-incremental=tart.incr2 -f archive.2 | sort 2>/dev/null
20395
20396 echo Final files:
20397 find tart -print | sort 2>/dev/null
20398 ) ) >"$at_stdout" 2>"$at_stder1"
20399   at_func_filter_trace $?
20400 else
20401   ( :;
20402 mkdir oldgnu
20403 (cd oldgnu
20404 TEST_TAR_FORMAT=oldgnu
20405 export TEST_TAR_FORMAT
20406 TAR_OPTIONS="-H oldgnu"
20407 export TAR_OPTIONS
20408 rm -rf *
20409
20410
20411 test -z "`sort < /dev/null 2>&1`" || exit 77
20412
20413 echo Create directories
20414
20415 mkdir tart
20416 sleep 1
20417 mkdir tart/c0
20418 sleep 1
20419 mkdir tart/c1
20420 sleep 1
20421
20422 for file in tart/a1 tart/b1 tart/c0/cq1 tart/c0/cq2 tart/c1/ca1 tart/c1/ca2
20423 do
20424   echo File $file > $file
20425   sleep 1
20426 done
20427
20428 sleep 1
20429 echo Creating main archive
20430 echo >&2 "Creating main archive"
20431 tar -c -v --listed-incremental=tart.incr1 -f archive.1 tart 2> err || exit 1
20432
20433 # The above prints two lines to stderr announcing the new directories c0 and c1.
20434 # Ensure that they appear in this script's stderr in sorted order.
20435 sort err 1>&2; rm -f err
20436
20437 sleep 1
20438 echo Modifying filesystem
20439 rm tart/a1
20440
20441 mv tart/b1 tart/b2
20442 mv tart/c1 tart/c2
20443 touch tart/c2/ca3
20444
20445 echo Directory contents
20446 find tart -print | sort 2>/dev/null
20447
20448 sleep 1
20449 echo Creating incremental archive
20450 echo >&2 "Creating incremental archive"
20451 cp -p tart.incr1 tart.incr2
20452 tar -c -v --listed-incremental=tart.incr2 -f archive.2 tart || exit 1
20453
20454 sleep 1
20455
20456 rm -rf tart/*
20457 echo Extracting main archive
20458 echo >&2 "Extracting main archive"
20459 tar -x -v --listed-incremental=tart.incr1 -f archive.1 || exit 1
20460 echo Extracting incremental archive
20461 # This command should produce three messages about deletion
20462 # of the existing files, that may appear in any order. Piping
20463 # to sort makes sure we don't depend on any particular ordering.
20464 tar -x -v --listed-incremental=tart.incr2 -f archive.2 | sort 2>/dev/null
20465
20466 echo Final files:
20467 find tart -print | sort 2>/dev/null
20468 ) ) >"$at_stdout" 2>"$at_stderr"
20469 fi
20470 at_status=$?
20471 at_failed=false
20472 echo >>"$at_stderr"; $as_echo "Creating main archive
20473 tar: tart/c0: Directory is new
20474 tar: tart/c1: Directory is new
20475 tar: tart: Directory is new
20476 Creating incremental archive
20477 tar: tart/c2: Directory has been renamed from \`tart/c1'
20478 Extracting main archive
20479 " | \
20480   $at_diff - "$at_stderr" || at_failed=:
20481 echo >>"$at_stdout"; $as_echo "Create directories
20482 Creating main archive
20483 tart/
20484 tart/c0/
20485 tart/c1/
20486 tart/a1
20487 tart/b1
20488 tart/c0/cq1
20489 tart/c0/cq2
20490 tart/c1/ca1
20491 tart/c1/ca2
20492 Modifying filesystem
20493 Directory contents
20494 tart
20495 tart/b2
20496 tart/c0
20497 tart/c0/cq1
20498 tart/c0/cq2
20499 tart/c2
20500 tart/c2/ca1
20501 tart/c2/ca2
20502 tart/c2/ca3
20503 Creating incremental archive
20504 tart/
20505 tart/c0/
20506 tart/c2/
20507 tart/b2
20508 tart/c2/ca3
20509 Extracting main archive
20510 tart/
20511 tart/c0/
20512 tart/c1/
20513 tart/a1
20514 tart/b1
20515 tart/c0/cq1
20516 tart/c0/cq2
20517 tart/c1/ca1
20518 tart/c1/ca2
20519 Extracting incremental archive
20520 tar: Deleting \`tart/a1'
20521 tar: Deleting \`tart/b1'
20522 tart/
20523 tart/b2
20524 tart/c0/
20525 tart/c2/
20526 tart/c2/ca3
20527 Final files:
20528 tart
20529 tart/b2
20530 tart/c0
20531 tart/c0/cq1
20532 tart/c0/cq2
20533 tart/c2
20534 tart/c2/ca1
20535 tart/c2/ca2
20536 tart/c2/ca3
20537 " | \
20538   $at_diff - "$at_stdout" || at_failed=:
20539 at_func_check_status 0 $at_status "$at_srcdir/listed02.at:31"
20540
20541 $at_failed && at_func_log_failure
20542 $at_traceon; }
20543
20544
20545
20546
20547   $at_traceoff
20548   $at_times_p && times >"$at_times_file"
20549 ) 5>&1 2>&1 | eval $at_tee_pipe
20550 at_status=`cat "$at_status_file"`
20551 #AT_STOP_55
20552 #AT_START_56
20553 # 56. listed03.at:22: incremental dump when the parent directory is unreadable
20554 at_setup_line='listed03.at:22'
20555 at_desc="incremental dump when the parent directory is unreadable"
20556 $at_quiet $as_echo_n " 56: $at_desc"
20557 at_xfail=no
20558       test -f $XFAILFILE && at_xfail=yes
20559 echo "#                             -*- compilation -*-" >> "$at_group_log"
20560 (
20561   $as_echo "56. listed03.at:22: testing ..."
20562   $at_traceon
20563
20564
20565
20566
20567
20568   { $at_traceoff
20569 $as_echo "$at_srcdir/listed03.at:25:
20570 mkdir gnu
20571 (cd gnu
20572 TEST_TAR_FORMAT=gnu
20573 export TEST_TAR_FORMAT
20574 TAR_OPTIONS=\"-H gnu\"
20575 export TAR_OPTIONS
20576 rm -rf *
20577
20578
20579 echo "test" > $$
20580 chmod 0 $$
20581 cat $$ > /dev/null 2>&1
20582 result=$?
20583 rm -f $$
20584 test $result -eq 0 && exit 77
20585
20586
20587 mkdir dir
20588 mkdir dir/sub
20589 mkdir dir/sub/a
20590 genfile --file dir/sub/a/file
20591 cd dir/sub
20592
20593 chmod a-r ..
20594 tar -c -f archive.tar --listed-incremental=db.1 -v a
20595 status=\$?
20596 chmod a+r ..
20597 exit \$status
20598 )"
20599 echo listed03.at:25 >"$at_check_line_file"
20600
20601 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
20602    false; }; then
20603   ( $at_traceon;
20604 mkdir gnu
20605 (cd gnu
20606 TEST_TAR_FORMAT=gnu
20607 export TEST_TAR_FORMAT
20608 TAR_OPTIONS="-H gnu"
20609 export TAR_OPTIONS
20610 rm -rf *
20611
20612
20613 echo "test" > $$
20614 chmod 0 $$
20615 cat $$ > /dev/null 2>&1
20616 result=$?
20617 rm -f $$
20618 test $result -eq 0 && exit 77
20619
20620
20621 mkdir dir
20622 mkdir dir/sub
20623 mkdir dir/sub/a
20624 genfile --file dir/sub/a/file
20625 cd dir/sub
20626
20627 chmod a-r ..
20628 tar -c -f archive.tar --listed-incremental=db.1 -v a
20629 status=$?
20630 chmod a+r ..
20631 exit $status
20632 ) ) >"$at_stdout" 2>"$at_stder1"
20633   at_func_filter_trace $?
20634 else
20635   ( :;
20636 mkdir gnu
20637 (cd gnu
20638 TEST_TAR_FORMAT=gnu
20639 export TEST_TAR_FORMAT
20640 TAR_OPTIONS="-H gnu"
20641 export TAR_OPTIONS
20642 rm -rf *
20643
20644
20645 echo "test" > $$
20646 chmod 0 $$
20647 cat $$ > /dev/null 2>&1
20648 result=$?
20649 rm -f $$
20650 test $result -eq 0 && exit 77
20651
20652
20653 mkdir dir
20654 mkdir dir/sub
20655 mkdir dir/sub/a
20656 genfile --file dir/sub/a/file
20657 cd dir/sub
20658
20659 chmod a-r ..
20660 tar -c -f archive.tar --listed-incremental=db.1 -v a
20661 status=$?
20662 chmod a+r ..
20663 exit $status
20664 ) ) >"$at_stdout" 2>"$at_stderr"
20665 fi
20666 at_status=$?
20667 at_failed=false
20668 echo >>"$at_stderr"; $as_echo "tar: a: Directory is new
20669 " | \
20670   $at_diff - "$at_stderr" || at_failed=:
20671 echo >>"$at_stdout"; $as_echo "a/
20672 a/file
20673 " | \
20674   $at_diff - "$at_stdout" || at_failed=:
20675 at_func_check_status 0 $at_status "$at_srcdir/listed03.at:25"
20676
20677 $at_failed && at_func_log_failure
20678 $at_traceon; }
20679
20680
20681
20682
20683   $at_traceoff
20684   $at_times_p && times >"$at_times_file"
20685 ) 5>&1 2>&1 | eval $at_tee_pipe
20686 at_status=`cat "$at_status_file"`
20687 #AT_STOP_56
20688 #AT_START_57
20689 # 57. incr03.at:28: renamed files in incrementals
20690 at_setup_line='incr03.at:28'
20691 at_desc="renamed files in incrementals"
20692 $at_quiet $as_echo_n " 57: $at_desc                  "
20693 at_xfail=no
20694       test -f $XFAILFILE && at_xfail=yes
20695 echo "#                             -*- compilation -*-" >> "$at_group_log"
20696 (
20697   $as_echo "57. incr03.at:28: testing ..."
20698   $at_traceon
20699
20700
20701
20702
20703
20704   { $at_traceoff
20705 $as_echo "$at_srcdir/incr03.at:31:
20706 mkdir gnu
20707 (cd gnu
20708 TEST_TAR_FORMAT=gnu
20709 export TEST_TAR_FORMAT
20710 TAR_OPTIONS=\"-H gnu\"
20711 export TAR_OPTIONS
20712 rm -rf *
20713
20714
20715 test -z "`sort < /dev/null 2>&1`" || exit 77
20716
20717 mkdir directory
20718 genfile --file=directory/x
20719 genfile --file=directory/y
20720
20721 sleep 1
20722
20723 tar -cf archive.1 -g db directory
20724
20725 mv directory/x directory/z
20726 cp db db.old
20727 tar -cf archive.2 -g db directory
20728
20729 mv directory orig
20730
20731 echo Listing of archive.1
20732 tar -tf archive.1 | sort
20733 echo Listing of archive.2
20734 tar -tf archive.2 | sort
20735
20736 echo Directory after first restore
20737 tar -xf archive.1 -g db --warning=no-timestamp
20738 find directory | sort
20739
20740 echo Directory after second restore
20741 tar -xf archive.2 -g db --warning=no-timestamp
20742 find directory | sort
20743 )"
20744 echo incr03.at:31 >"$at_check_line_file"
20745
20746 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
20747    false; }; then
20748   ( $at_traceon;
20749 mkdir gnu
20750 (cd gnu
20751 TEST_TAR_FORMAT=gnu
20752 export TEST_TAR_FORMAT
20753 TAR_OPTIONS="-H gnu"
20754 export TAR_OPTIONS
20755 rm -rf *
20756
20757
20758 test -z "`sort < /dev/null 2>&1`" || exit 77
20759
20760 mkdir directory
20761 genfile --file=directory/x
20762 genfile --file=directory/y
20763
20764 sleep 1
20765
20766 tar -cf archive.1 -g db directory
20767
20768 mv directory/x directory/z
20769 cp db db.old
20770 tar -cf archive.2 -g db directory
20771
20772 mv directory orig
20773
20774 echo Listing of archive.1
20775 tar -tf archive.1 | sort
20776 echo Listing of archive.2
20777 tar -tf archive.2 | sort
20778
20779 echo Directory after first restore
20780 tar -xf archive.1 -g db --warning=no-timestamp
20781 find directory | sort
20782
20783 echo Directory after second restore
20784 tar -xf archive.2 -g db --warning=no-timestamp
20785 find directory | sort
20786 ) ) >"$at_stdout" 2>"$at_stder1"
20787   at_func_filter_trace $?
20788 else
20789   ( :;
20790 mkdir gnu
20791 (cd gnu
20792 TEST_TAR_FORMAT=gnu
20793 export TEST_TAR_FORMAT
20794 TAR_OPTIONS="-H gnu"
20795 export TAR_OPTIONS
20796 rm -rf *
20797
20798
20799 test -z "`sort < /dev/null 2>&1`" || exit 77
20800
20801 mkdir directory
20802 genfile --file=directory/x
20803 genfile --file=directory/y
20804
20805 sleep 1
20806
20807 tar -cf archive.1 -g db directory
20808
20809 mv directory/x directory/z
20810 cp db db.old
20811 tar -cf archive.2 -g db directory
20812
20813 mv directory orig
20814
20815 echo Listing of archive.1
20816 tar -tf archive.1 | sort
20817 echo Listing of archive.2
20818 tar -tf archive.2 | sort
20819
20820 echo Directory after first restore
20821 tar -xf archive.1 -g db --warning=no-timestamp
20822 find directory | sort
20823
20824 echo Directory after second restore
20825 tar -xf archive.2 -g db --warning=no-timestamp
20826 find directory | sort
20827 ) ) >"$at_stdout" 2>"$at_stderr"
20828 fi
20829 at_status=$?
20830 at_failed=false
20831 at_func_diff_devnull "$at_stderr" || at_failed=:
20832 echo >>"$at_stdout"; $as_echo "Listing of archive.1
20833 directory/
20834 directory/x
20835 directory/y
20836 Listing of archive.2
20837 directory/
20838 directory/z
20839 Directory after first restore
20840 directory
20841 directory/x
20842 directory/y
20843 Directory after second restore
20844 directory
20845 directory/y
20846 directory/z
20847 " | \
20848   $at_diff - "$at_stdout" || at_failed=:
20849 at_func_check_status 0 $at_status "$at_srcdir/incr03.at:31"
20850
20851 $at_failed && at_func_log_failure
20852 $at_traceon; }
20853
20854               { $at_traceoff
20855 $as_echo "$at_srcdir/incr03.at:31:
20856 mkdir oldgnu
20857 (cd oldgnu
20858 TEST_TAR_FORMAT=oldgnu
20859 export TEST_TAR_FORMAT
20860 TAR_OPTIONS=\"-H oldgnu\"
20861 export TAR_OPTIONS
20862 rm -rf *
20863
20864
20865 test -z "`sort < /dev/null 2>&1`" || exit 77
20866
20867 mkdir directory
20868 genfile --file=directory/x
20869 genfile --file=directory/y
20870
20871 sleep 1
20872
20873 tar -cf archive.1 -g db directory
20874
20875 mv directory/x directory/z
20876 cp db db.old
20877 tar -cf archive.2 -g db directory
20878
20879 mv directory orig
20880
20881 echo Listing of archive.1
20882 tar -tf archive.1 | sort
20883 echo Listing of archive.2
20884 tar -tf archive.2 | sort
20885
20886 echo Directory after first restore
20887 tar -xf archive.1 -g db --warning=no-timestamp
20888 find directory | sort
20889
20890 echo Directory after second restore
20891 tar -xf archive.2 -g db --warning=no-timestamp
20892 find directory | sort
20893 )"
20894 echo incr03.at:31 >"$at_check_line_file"
20895
20896 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
20897    false; }; then
20898   ( $at_traceon;
20899 mkdir oldgnu
20900 (cd oldgnu
20901 TEST_TAR_FORMAT=oldgnu
20902 export TEST_TAR_FORMAT
20903 TAR_OPTIONS="-H oldgnu"
20904 export TAR_OPTIONS
20905 rm -rf *
20906
20907
20908 test -z "`sort < /dev/null 2>&1`" || exit 77
20909
20910 mkdir directory
20911 genfile --file=directory/x
20912 genfile --file=directory/y
20913
20914 sleep 1
20915
20916 tar -cf archive.1 -g db directory
20917
20918 mv directory/x directory/z
20919 cp db db.old
20920 tar -cf archive.2 -g db directory
20921
20922 mv directory orig
20923
20924 echo Listing of archive.1
20925 tar -tf archive.1 | sort
20926 echo Listing of archive.2
20927 tar -tf archive.2 | sort
20928
20929 echo Directory after first restore
20930 tar -xf archive.1 -g db --warning=no-timestamp
20931 find directory | sort
20932
20933 echo Directory after second restore
20934 tar -xf archive.2 -g db --warning=no-timestamp
20935 find directory | sort
20936 ) ) >"$at_stdout" 2>"$at_stder1"
20937   at_func_filter_trace $?
20938 else
20939   ( :;
20940 mkdir oldgnu
20941 (cd oldgnu
20942 TEST_TAR_FORMAT=oldgnu
20943 export TEST_TAR_FORMAT
20944 TAR_OPTIONS="-H oldgnu"
20945 export TAR_OPTIONS
20946 rm -rf *
20947
20948
20949 test -z "`sort < /dev/null 2>&1`" || exit 77
20950
20951 mkdir directory
20952 genfile --file=directory/x
20953 genfile --file=directory/y
20954
20955 sleep 1
20956
20957 tar -cf archive.1 -g db directory
20958
20959 mv directory/x directory/z
20960 cp db db.old
20961 tar -cf archive.2 -g db directory
20962
20963 mv directory orig
20964
20965 echo Listing of archive.1
20966 tar -tf archive.1 | sort
20967 echo Listing of archive.2
20968 tar -tf archive.2 | sort
20969
20970 echo Directory after first restore
20971 tar -xf archive.1 -g db --warning=no-timestamp
20972 find directory | sort
20973
20974 echo Directory after second restore
20975 tar -xf archive.2 -g db --warning=no-timestamp
20976 find directory | sort
20977 ) ) >"$at_stdout" 2>"$at_stderr"
20978 fi
20979 at_status=$?
20980 at_failed=false
20981 at_func_diff_devnull "$at_stderr" || at_failed=:
20982 echo >>"$at_stdout"; $as_echo "Listing of archive.1
20983 directory/
20984 directory/x
20985 directory/y
20986 Listing of archive.2
20987 directory/
20988 directory/z
20989 Directory after first restore
20990 directory
20991 directory/x
20992 directory/y
20993 Directory after second restore
20994 directory
20995 directory/y
20996 directory/z
20997 " | \
20998   $at_diff - "$at_stdout" || at_failed=:
20999 at_func_check_status 0 $at_status "$at_srcdir/incr03.at:31"
21000
21001 $at_failed && at_func_log_failure
21002 $at_traceon; }
21003
21004               { $at_traceoff
21005 $as_echo "$at_srcdir/incr03.at:31:
21006 mkdir posix
21007 (cd posix
21008 TEST_TAR_FORMAT=posix
21009 export TEST_TAR_FORMAT
21010 TAR_OPTIONS=\"-H posix\"
21011 export TAR_OPTIONS
21012 rm -rf *
21013
21014
21015 test -z "`sort < /dev/null 2>&1`" || exit 77
21016
21017 mkdir directory
21018 genfile --file=directory/x
21019 genfile --file=directory/y
21020
21021 sleep 1
21022
21023 tar -cf archive.1 -g db directory
21024
21025 mv directory/x directory/z
21026 cp db db.old
21027 tar -cf archive.2 -g db directory
21028
21029 mv directory orig
21030
21031 echo Listing of archive.1
21032 tar -tf archive.1 | sort
21033 echo Listing of archive.2
21034 tar -tf archive.2 | sort
21035
21036 echo Directory after first restore
21037 tar -xf archive.1 -g db --warning=no-timestamp
21038 find directory | sort
21039
21040 echo Directory after second restore
21041 tar -xf archive.2 -g db --warning=no-timestamp
21042 find directory | sort
21043 )"
21044 echo incr03.at:31 >"$at_check_line_file"
21045
21046 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
21047    false; }; then
21048   ( $at_traceon;
21049 mkdir posix
21050 (cd posix
21051 TEST_TAR_FORMAT=posix
21052 export TEST_TAR_FORMAT
21053 TAR_OPTIONS="-H posix"
21054 export TAR_OPTIONS
21055 rm -rf *
21056
21057
21058 test -z "`sort < /dev/null 2>&1`" || exit 77
21059
21060 mkdir directory
21061 genfile --file=directory/x
21062 genfile --file=directory/y
21063
21064 sleep 1
21065
21066 tar -cf archive.1 -g db directory
21067
21068 mv directory/x directory/z
21069 cp db db.old
21070 tar -cf archive.2 -g db directory
21071
21072 mv directory orig
21073
21074 echo Listing of archive.1
21075 tar -tf archive.1 | sort
21076 echo Listing of archive.2
21077 tar -tf archive.2 | sort
21078
21079 echo Directory after first restore
21080 tar -xf archive.1 -g db --warning=no-timestamp
21081 find directory | sort
21082
21083 echo Directory after second restore
21084 tar -xf archive.2 -g db --warning=no-timestamp
21085 find directory | sort
21086 ) ) >"$at_stdout" 2>"$at_stder1"
21087   at_func_filter_trace $?
21088 else
21089   ( :;
21090 mkdir posix
21091 (cd posix
21092 TEST_TAR_FORMAT=posix
21093 export TEST_TAR_FORMAT
21094 TAR_OPTIONS="-H posix"
21095 export TAR_OPTIONS
21096 rm -rf *
21097
21098
21099 test -z "`sort < /dev/null 2>&1`" || exit 77
21100
21101 mkdir directory
21102 genfile --file=directory/x
21103 genfile --file=directory/y
21104
21105 sleep 1
21106
21107 tar -cf archive.1 -g db directory
21108
21109 mv directory/x directory/z
21110 cp db db.old
21111 tar -cf archive.2 -g db directory
21112
21113 mv directory orig
21114
21115 echo Listing of archive.1
21116 tar -tf archive.1 | sort
21117 echo Listing of archive.2
21118 tar -tf archive.2 | sort
21119
21120 echo Directory after first restore
21121 tar -xf archive.1 -g db --warning=no-timestamp
21122 find directory | sort
21123
21124 echo Directory after second restore
21125 tar -xf archive.2 -g db --warning=no-timestamp
21126 find directory | sort
21127 ) ) >"$at_stdout" 2>"$at_stderr"
21128 fi
21129 at_status=$?
21130 at_failed=false
21131 at_func_diff_devnull "$at_stderr" || at_failed=:
21132 echo >>"$at_stdout"; $as_echo "Listing of archive.1
21133 directory/
21134 directory/x
21135 directory/y
21136 Listing of archive.2
21137 directory/
21138 directory/z
21139 Directory after first restore
21140 directory
21141 directory/x
21142 directory/y
21143 Directory after second restore
21144 directory
21145 directory/y
21146 directory/z
21147 " | \
21148   $at_diff - "$at_stdout" || at_failed=:
21149 at_func_check_status 0 $at_status "$at_srcdir/incr03.at:31"
21150
21151 $at_failed && at_func_log_failure
21152 $at_traceon; }
21153
21154
21155
21156
21157   $at_traceoff
21158   $at_times_p && times >"$at_times_file"
21159 ) 5>&1 2>&1 | eval $at_tee_pipe
21160 at_status=`cat "$at_status_file"`
21161 #AT_STOP_57
21162 #AT_START_58
21163 # 58. incr04.at:29: proper icontents initialization
21164 at_setup_line='incr04.at:29'
21165 at_desc="proper icontents initialization"
21166 $at_quiet $as_echo_n " 58: $at_desc                "
21167 at_xfail=no
21168       test -f $XFAILFILE && at_xfail=yes
21169 echo "#                             -*- compilation -*-" >> "$at_group_log"
21170 (
21171   $as_echo "58. incr04.at:29: testing ..."
21172   $at_traceon
21173
21174
21175
21176
21177
21178
21179
21180   { $at_traceoff
21181 $as_echo "$at_srcdir/incr04.at:34:
21182 mkdir gnu
21183 (cd gnu
21184 TEST_TAR_FORMAT=gnu
21185 export TEST_TAR_FORMAT
21186 TAR_OPTIONS=\"-H gnu\"
21187 export TAR_OPTIONS
21188 rm -rf *
21189
21190
21191 install-sh -d a/b >/dev/null  || exit 77
21192 awk 'BEGIN {
21193   for (i=1;i<=142;i++)
21194     printf(\"a/b/one_31_chars_long_file_name_%03d\\n\", i);
21195   }' < /dev/null | genfile --files-from -
21196
21197 sleep 1
21198
21199 echo \"Initial dump\"
21200 tar cvf a0.tar -g a.sna a
21201 mv a/b a/c
21202 echo \"Incremental dump\"
21203 tar cvf a1.tar -g a.sna a
21204 )"
21205 echo incr04.at:34 >"$at_check_line_file"
21206
21207 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
21208    false; }; then
21209   ( $at_traceon;
21210 mkdir gnu
21211 (cd gnu
21212 TEST_TAR_FORMAT=gnu
21213 export TEST_TAR_FORMAT
21214 TAR_OPTIONS="-H gnu"
21215 export TAR_OPTIONS
21216 rm -rf *
21217
21218
21219 install-sh -d a/b >/dev/null  || exit 77
21220 awk 'BEGIN {
21221   for (i=1;i<=142;i++)
21222     printf("a/b/one_31_chars_long_file_name_%03d\n", i);
21223   }' < /dev/null | genfile --files-from -
21224
21225 sleep 1
21226
21227 echo "Initial dump"
21228 tar cvf a0.tar -g a.sna a
21229 mv a/b a/c
21230 echo "Incremental dump"
21231 tar cvf a1.tar -g a.sna a
21232 ) ) >"$at_stdout" 2>"$at_stder1"
21233   at_func_filter_trace $?
21234 else
21235   ( :;
21236 mkdir gnu
21237 (cd gnu
21238 TEST_TAR_FORMAT=gnu
21239 export TEST_TAR_FORMAT
21240 TAR_OPTIONS="-H gnu"
21241 export TAR_OPTIONS
21242 rm -rf *
21243
21244
21245 install-sh -d a/b >/dev/null  || exit 77
21246 awk 'BEGIN {
21247   for (i=1;i<=142;i++)
21248     printf("a/b/one_31_chars_long_file_name_%03d\n", i);
21249   }' < /dev/null | genfile --files-from -
21250
21251 sleep 1
21252
21253 echo "Initial dump"
21254 tar cvf a0.tar -g a.sna a
21255 mv a/b a/c
21256 echo "Incremental dump"
21257 tar cvf a1.tar -g a.sna a
21258 ) ) >"$at_stdout" 2>"$at_stderr"
21259 fi
21260 at_status=$?
21261 at_failed=false
21262 echo >>"$at_stderr"; $as_echo "tar: a: Directory is new
21263 tar: a/b: Directory is new
21264 tar: a/c: Directory has been renamed from \`a/b'
21265 " | \
21266   $at_diff - "$at_stderr" || at_failed=:
21267 echo >>"$at_stdout"; $as_echo "Initial dump
21268 a/
21269 a/b/
21270 a/b/one_31_chars_long_file_name_001
21271 a/b/one_31_chars_long_file_name_002
21272 a/b/one_31_chars_long_file_name_003
21273 a/b/one_31_chars_long_file_name_004
21274 a/b/one_31_chars_long_file_name_005
21275 a/b/one_31_chars_long_file_name_006
21276 a/b/one_31_chars_long_file_name_007
21277 a/b/one_31_chars_long_file_name_008
21278 a/b/one_31_chars_long_file_name_009
21279 a/b/one_31_chars_long_file_name_010
21280 a/b/one_31_chars_long_file_name_011
21281 a/b/one_31_chars_long_file_name_012
21282 a/b/one_31_chars_long_file_name_013
21283 a/b/one_31_chars_long_file_name_014
21284 a/b/one_31_chars_long_file_name_015
21285 a/b/one_31_chars_long_file_name_016
21286 a/b/one_31_chars_long_file_name_017
21287 a/b/one_31_chars_long_file_name_018
21288 a/b/one_31_chars_long_file_name_019
21289 a/b/one_31_chars_long_file_name_020
21290 a/b/one_31_chars_long_file_name_021
21291 a/b/one_31_chars_long_file_name_022
21292 a/b/one_31_chars_long_file_name_023
21293 a/b/one_31_chars_long_file_name_024
21294 a/b/one_31_chars_long_file_name_025
21295 a/b/one_31_chars_long_file_name_026
21296 a/b/one_31_chars_long_file_name_027
21297 a/b/one_31_chars_long_file_name_028
21298 a/b/one_31_chars_long_file_name_029
21299 a/b/one_31_chars_long_file_name_030
21300 a/b/one_31_chars_long_file_name_031
21301 a/b/one_31_chars_long_file_name_032
21302 a/b/one_31_chars_long_file_name_033
21303 a/b/one_31_chars_long_file_name_034
21304 a/b/one_31_chars_long_file_name_035
21305 a/b/one_31_chars_long_file_name_036
21306 a/b/one_31_chars_long_file_name_037
21307 a/b/one_31_chars_long_file_name_038
21308 a/b/one_31_chars_long_file_name_039
21309 a/b/one_31_chars_long_file_name_040
21310 a/b/one_31_chars_long_file_name_041
21311 a/b/one_31_chars_long_file_name_042
21312 a/b/one_31_chars_long_file_name_043
21313 a/b/one_31_chars_long_file_name_044
21314 a/b/one_31_chars_long_file_name_045
21315 a/b/one_31_chars_long_file_name_046
21316 a/b/one_31_chars_long_file_name_047
21317 a/b/one_31_chars_long_file_name_048
21318 a/b/one_31_chars_long_file_name_049
21319 a/b/one_31_chars_long_file_name_050
21320 a/b/one_31_chars_long_file_name_051
21321 a/b/one_31_chars_long_file_name_052
21322 a/b/one_31_chars_long_file_name_053
21323 a/b/one_31_chars_long_file_name_054
21324 a/b/one_31_chars_long_file_name_055
21325 a/b/one_31_chars_long_file_name_056
21326 a/b/one_31_chars_long_file_name_057
21327 a/b/one_31_chars_long_file_name_058
21328 a/b/one_31_chars_long_file_name_059
21329 a/b/one_31_chars_long_file_name_060
21330 a/b/one_31_chars_long_file_name_061
21331 a/b/one_31_chars_long_file_name_062
21332 a/b/one_31_chars_long_file_name_063
21333 a/b/one_31_chars_long_file_name_064
21334 a/b/one_31_chars_long_file_name_065
21335 a/b/one_31_chars_long_file_name_066
21336 a/b/one_31_chars_long_file_name_067
21337 a/b/one_31_chars_long_file_name_068
21338 a/b/one_31_chars_long_file_name_069
21339 a/b/one_31_chars_long_file_name_070
21340 a/b/one_31_chars_long_file_name_071
21341 a/b/one_31_chars_long_file_name_072
21342 a/b/one_31_chars_long_file_name_073
21343 a/b/one_31_chars_long_file_name_074
21344 a/b/one_31_chars_long_file_name_075
21345 a/b/one_31_chars_long_file_name_076
21346 a/b/one_31_chars_long_file_name_077
21347 a/b/one_31_chars_long_file_name_078
21348 a/b/one_31_chars_long_file_name_079
21349 a/b/one_31_chars_long_file_name_080
21350 a/b/one_31_chars_long_file_name_081
21351 a/b/one_31_chars_long_file_name_082
21352 a/b/one_31_chars_long_file_name_083
21353 a/b/one_31_chars_long_file_name_084
21354 a/b/one_31_chars_long_file_name_085
21355 a/b/one_31_chars_long_file_name_086
21356 a/b/one_31_chars_long_file_name_087
21357 a/b/one_31_chars_long_file_name_088
21358 a/b/one_31_chars_long_file_name_089
21359 a/b/one_31_chars_long_file_name_090
21360 a/b/one_31_chars_long_file_name_091
21361 a/b/one_31_chars_long_file_name_092
21362 a/b/one_31_chars_long_file_name_093
21363 a/b/one_31_chars_long_file_name_094
21364 a/b/one_31_chars_long_file_name_095
21365 a/b/one_31_chars_long_file_name_096
21366 a/b/one_31_chars_long_file_name_097
21367 a/b/one_31_chars_long_file_name_098
21368 a/b/one_31_chars_long_file_name_099
21369 a/b/one_31_chars_long_file_name_100
21370 a/b/one_31_chars_long_file_name_101
21371 a/b/one_31_chars_long_file_name_102
21372 a/b/one_31_chars_long_file_name_103
21373 a/b/one_31_chars_long_file_name_104
21374 a/b/one_31_chars_long_file_name_105
21375 a/b/one_31_chars_long_file_name_106
21376 a/b/one_31_chars_long_file_name_107
21377 a/b/one_31_chars_long_file_name_108
21378 a/b/one_31_chars_long_file_name_109
21379 a/b/one_31_chars_long_file_name_110
21380 a/b/one_31_chars_long_file_name_111
21381 a/b/one_31_chars_long_file_name_112
21382 a/b/one_31_chars_long_file_name_113
21383 a/b/one_31_chars_long_file_name_114
21384 a/b/one_31_chars_long_file_name_115
21385 a/b/one_31_chars_long_file_name_116
21386 a/b/one_31_chars_long_file_name_117
21387 a/b/one_31_chars_long_file_name_118
21388 a/b/one_31_chars_long_file_name_119
21389 a/b/one_31_chars_long_file_name_120
21390 a/b/one_31_chars_long_file_name_121
21391 a/b/one_31_chars_long_file_name_122
21392 a/b/one_31_chars_long_file_name_123
21393 a/b/one_31_chars_long_file_name_124
21394 a/b/one_31_chars_long_file_name_125
21395 a/b/one_31_chars_long_file_name_126
21396 a/b/one_31_chars_long_file_name_127
21397 a/b/one_31_chars_long_file_name_128
21398 a/b/one_31_chars_long_file_name_129
21399 a/b/one_31_chars_long_file_name_130
21400 a/b/one_31_chars_long_file_name_131
21401 a/b/one_31_chars_long_file_name_132
21402 a/b/one_31_chars_long_file_name_133
21403 a/b/one_31_chars_long_file_name_134
21404 a/b/one_31_chars_long_file_name_135
21405 a/b/one_31_chars_long_file_name_136
21406 a/b/one_31_chars_long_file_name_137
21407 a/b/one_31_chars_long_file_name_138
21408 a/b/one_31_chars_long_file_name_139
21409 a/b/one_31_chars_long_file_name_140
21410 a/b/one_31_chars_long_file_name_141
21411 a/b/one_31_chars_long_file_name_142
21412 Incremental dump
21413 a/
21414 a/c/
21415 " | \
21416   $at_diff - "$at_stdout" || at_failed=:
21417 at_func_check_status 0 $at_status "$at_srcdir/incr04.at:34"
21418
21419 $at_failed && at_func_log_failure
21420 $at_traceon; }
21421
21422               { $at_traceoff
21423 $as_echo "$at_srcdir/incr04.at:34:
21424 mkdir oldgnu
21425 (cd oldgnu
21426 TEST_TAR_FORMAT=oldgnu
21427 export TEST_TAR_FORMAT
21428 TAR_OPTIONS=\"-H oldgnu\"
21429 export TAR_OPTIONS
21430 rm -rf *
21431
21432
21433 install-sh -d a/b >/dev/null  || exit 77
21434 awk 'BEGIN {
21435   for (i=1;i<=142;i++)
21436     printf(\"a/b/one_31_chars_long_file_name_%03d\\n\", i);
21437   }' < /dev/null | genfile --files-from -
21438
21439 sleep 1
21440
21441 echo \"Initial dump\"
21442 tar cvf a0.tar -g a.sna a
21443 mv a/b a/c
21444 echo \"Incremental dump\"
21445 tar cvf a1.tar -g a.sna a
21446 )"
21447 echo incr04.at:34 >"$at_check_line_file"
21448
21449 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
21450    false; }; then
21451   ( $at_traceon;
21452 mkdir oldgnu
21453 (cd oldgnu
21454 TEST_TAR_FORMAT=oldgnu
21455 export TEST_TAR_FORMAT
21456 TAR_OPTIONS="-H oldgnu"
21457 export TAR_OPTIONS
21458 rm -rf *
21459
21460
21461 install-sh -d a/b >/dev/null  || exit 77
21462 awk 'BEGIN {
21463   for (i=1;i<=142;i++)
21464     printf("a/b/one_31_chars_long_file_name_%03d\n", i);
21465   }' < /dev/null | genfile --files-from -
21466
21467 sleep 1
21468
21469 echo "Initial dump"
21470 tar cvf a0.tar -g a.sna a
21471 mv a/b a/c
21472 echo "Incremental dump"
21473 tar cvf a1.tar -g a.sna a
21474 ) ) >"$at_stdout" 2>"$at_stder1"
21475   at_func_filter_trace $?
21476 else
21477   ( :;
21478 mkdir oldgnu
21479 (cd oldgnu
21480 TEST_TAR_FORMAT=oldgnu
21481 export TEST_TAR_FORMAT
21482 TAR_OPTIONS="-H oldgnu"
21483 export TAR_OPTIONS
21484 rm -rf *
21485
21486
21487 install-sh -d a/b >/dev/null  || exit 77
21488 awk 'BEGIN {
21489   for (i=1;i<=142;i++)
21490     printf("a/b/one_31_chars_long_file_name_%03d\n", i);
21491   }' < /dev/null | genfile --files-from -
21492
21493 sleep 1
21494
21495 echo "Initial dump"
21496 tar cvf a0.tar -g a.sna a
21497 mv a/b a/c
21498 echo "Incremental dump"
21499 tar cvf a1.tar -g a.sna a
21500 ) ) >"$at_stdout" 2>"$at_stderr"
21501 fi
21502 at_status=$?
21503 at_failed=false
21504 echo >>"$at_stderr"; $as_echo "tar: a: Directory is new
21505 tar: a/b: Directory is new
21506 tar: a/c: Directory has been renamed from \`a/b'
21507 " | \
21508   $at_diff - "$at_stderr" || at_failed=:
21509 echo >>"$at_stdout"; $as_echo "Initial dump
21510 a/
21511 a/b/
21512 a/b/one_31_chars_long_file_name_001
21513 a/b/one_31_chars_long_file_name_002
21514 a/b/one_31_chars_long_file_name_003
21515 a/b/one_31_chars_long_file_name_004
21516 a/b/one_31_chars_long_file_name_005
21517 a/b/one_31_chars_long_file_name_006
21518 a/b/one_31_chars_long_file_name_007
21519 a/b/one_31_chars_long_file_name_008
21520 a/b/one_31_chars_long_file_name_009
21521 a/b/one_31_chars_long_file_name_010
21522 a/b/one_31_chars_long_file_name_011
21523 a/b/one_31_chars_long_file_name_012
21524 a/b/one_31_chars_long_file_name_013
21525 a/b/one_31_chars_long_file_name_014
21526 a/b/one_31_chars_long_file_name_015
21527 a/b/one_31_chars_long_file_name_016
21528 a/b/one_31_chars_long_file_name_017
21529 a/b/one_31_chars_long_file_name_018
21530 a/b/one_31_chars_long_file_name_019
21531 a/b/one_31_chars_long_file_name_020
21532 a/b/one_31_chars_long_file_name_021
21533 a/b/one_31_chars_long_file_name_022
21534 a/b/one_31_chars_long_file_name_023
21535 a/b/one_31_chars_long_file_name_024
21536 a/b/one_31_chars_long_file_name_025
21537 a/b/one_31_chars_long_file_name_026
21538 a/b/one_31_chars_long_file_name_027
21539 a/b/one_31_chars_long_file_name_028
21540 a/b/one_31_chars_long_file_name_029
21541 a/b/one_31_chars_long_file_name_030
21542 a/b/one_31_chars_long_file_name_031
21543 a/b/one_31_chars_long_file_name_032
21544 a/b/one_31_chars_long_file_name_033
21545 a/b/one_31_chars_long_file_name_034
21546 a/b/one_31_chars_long_file_name_035
21547 a/b/one_31_chars_long_file_name_036
21548 a/b/one_31_chars_long_file_name_037
21549 a/b/one_31_chars_long_file_name_038
21550 a/b/one_31_chars_long_file_name_039
21551 a/b/one_31_chars_long_file_name_040
21552 a/b/one_31_chars_long_file_name_041
21553 a/b/one_31_chars_long_file_name_042
21554 a/b/one_31_chars_long_file_name_043
21555 a/b/one_31_chars_long_file_name_044
21556 a/b/one_31_chars_long_file_name_045
21557 a/b/one_31_chars_long_file_name_046
21558 a/b/one_31_chars_long_file_name_047
21559 a/b/one_31_chars_long_file_name_048
21560 a/b/one_31_chars_long_file_name_049
21561 a/b/one_31_chars_long_file_name_050
21562 a/b/one_31_chars_long_file_name_051
21563 a/b/one_31_chars_long_file_name_052
21564 a/b/one_31_chars_long_file_name_053
21565 a/b/one_31_chars_long_file_name_054
21566 a/b/one_31_chars_long_file_name_055
21567 a/b/one_31_chars_long_file_name_056
21568 a/b/one_31_chars_long_file_name_057
21569 a/b/one_31_chars_long_file_name_058
21570 a/b/one_31_chars_long_file_name_059
21571 a/b/one_31_chars_long_file_name_060
21572 a/b/one_31_chars_long_file_name_061
21573 a/b/one_31_chars_long_file_name_062
21574 a/b/one_31_chars_long_file_name_063
21575 a/b/one_31_chars_long_file_name_064
21576 a/b/one_31_chars_long_file_name_065
21577 a/b/one_31_chars_long_file_name_066
21578 a/b/one_31_chars_long_file_name_067
21579 a/b/one_31_chars_long_file_name_068
21580 a/b/one_31_chars_long_file_name_069
21581 a/b/one_31_chars_long_file_name_070
21582 a/b/one_31_chars_long_file_name_071
21583 a/b/one_31_chars_long_file_name_072
21584 a/b/one_31_chars_long_file_name_073
21585 a/b/one_31_chars_long_file_name_074
21586 a/b/one_31_chars_long_file_name_075
21587 a/b/one_31_chars_long_file_name_076
21588 a/b/one_31_chars_long_file_name_077
21589 a/b/one_31_chars_long_file_name_078
21590 a/b/one_31_chars_long_file_name_079
21591 a/b/one_31_chars_long_file_name_080
21592 a/b/one_31_chars_long_file_name_081
21593 a/b/one_31_chars_long_file_name_082
21594 a/b/one_31_chars_long_file_name_083
21595 a/b/one_31_chars_long_file_name_084
21596 a/b/one_31_chars_long_file_name_085
21597 a/b/one_31_chars_long_file_name_086
21598 a/b/one_31_chars_long_file_name_087
21599 a/b/one_31_chars_long_file_name_088
21600 a/b/one_31_chars_long_file_name_089
21601 a/b/one_31_chars_long_file_name_090
21602 a/b/one_31_chars_long_file_name_091
21603 a/b/one_31_chars_long_file_name_092
21604 a/b/one_31_chars_long_file_name_093
21605 a/b/one_31_chars_long_file_name_094
21606 a/b/one_31_chars_long_file_name_095
21607 a/b/one_31_chars_long_file_name_096
21608 a/b/one_31_chars_long_file_name_097
21609 a/b/one_31_chars_long_file_name_098
21610 a/b/one_31_chars_long_file_name_099
21611 a/b/one_31_chars_long_file_name_100
21612 a/b/one_31_chars_long_file_name_101
21613 a/b/one_31_chars_long_file_name_102
21614 a/b/one_31_chars_long_file_name_103
21615 a/b/one_31_chars_long_file_name_104
21616 a/b/one_31_chars_long_file_name_105
21617 a/b/one_31_chars_long_file_name_106
21618 a/b/one_31_chars_long_file_name_107
21619 a/b/one_31_chars_long_file_name_108
21620 a/b/one_31_chars_long_file_name_109
21621 a/b/one_31_chars_long_file_name_110
21622 a/b/one_31_chars_long_file_name_111
21623 a/b/one_31_chars_long_file_name_112
21624 a/b/one_31_chars_long_file_name_113
21625 a/b/one_31_chars_long_file_name_114
21626 a/b/one_31_chars_long_file_name_115
21627 a/b/one_31_chars_long_file_name_116
21628 a/b/one_31_chars_long_file_name_117
21629 a/b/one_31_chars_long_file_name_118
21630 a/b/one_31_chars_long_file_name_119
21631 a/b/one_31_chars_long_file_name_120
21632 a/b/one_31_chars_long_file_name_121
21633 a/b/one_31_chars_long_file_name_122
21634 a/b/one_31_chars_long_file_name_123
21635 a/b/one_31_chars_long_file_name_124
21636 a/b/one_31_chars_long_file_name_125
21637 a/b/one_31_chars_long_file_name_126
21638 a/b/one_31_chars_long_file_name_127
21639 a/b/one_31_chars_long_file_name_128
21640 a/b/one_31_chars_long_file_name_129
21641 a/b/one_31_chars_long_file_name_130
21642 a/b/one_31_chars_long_file_name_131
21643 a/b/one_31_chars_long_file_name_132
21644 a/b/one_31_chars_long_file_name_133
21645 a/b/one_31_chars_long_file_name_134
21646 a/b/one_31_chars_long_file_name_135
21647 a/b/one_31_chars_long_file_name_136
21648 a/b/one_31_chars_long_file_name_137
21649 a/b/one_31_chars_long_file_name_138
21650 a/b/one_31_chars_long_file_name_139
21651 a/b/one_31_chars_long_file_name_140
21652 a/b/one_31_chars_long_file_name_141
21653 a/b/one_31_chars_long_file_name_142
21654 Incremental dump
21655 a/
21656 a/c/
21657 " | \
21658   $at_diff - "$at_stdout" || at_failed=:
21659 at_func_check_status 0 $at_status "$at_srcdir/incr04.at:34"
21660
21661 $at_failed && at_func_log_failure
21662 $at_traceon; }
21663
21664               { $at_traceoff
21665 $as_echo "$at_srcdir/incr04.at:34:
21666 mkdir posix
21667 (cd posix
21668 TEST_TAR_FORMAT=posix
21669 export TEST_TAR_FORMAT
21670 TAR_OPTIONS=\"-H posix\"
21671 export TAR_OPTIONS
21672 rm -rf *
21673
21674
21675 install-sh -d a/b >/dev/null  || exit 77
21676 awk 'BEGIN {
21677   for (i=1;i<=142;i++)
21678     printf(\"a/b/one_31_chars_long_file_name_%03d\\n\", i);
21679   }' < /dev/null | genfile --files-from -
21680
21681 sleep 1
21682
21683 echo \"Initial dump\"
21684 tar cvf a0.tar -g a.sna a
21685 mv a/b a/c
21686 echo \"Incremental dump\"
21687 tar cvf a1.tar -g a.sna a
21688 )"
21689 echo incr04.at:34 >"$at_check_line_file"
21690
21691 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
21692    false; }; then
21693   ( $at_traceon;
21694 mkdir posix
21695 (cd posix
21696 TEST_TAR_FORMAT=posix
21697 export TEST_TAR_FORMAT
21698 TAR_OPTIONS="-H posix"
21699 export TAR_OPTIONS
21700 rm -rf *
21701
21702
21703 install-sh -d a/b >/dev/null  || exit 77
21704 awk 'BEGIN {
21705   for (i=1;i<=142;i++)
21706     printf("a/b/one_31_chars_long_file_name_%03d\n", i);
21707   }' < /dev/null | genfile --files-from -
21708
21709 sleep 1
21710
21711 echo "Initial dump"
21712 tar cvf a0.tar -g a.sna a
21713 mv a/b a/c
21714 echo "Incremental dump"
21715 tar cvf a1.tar -g a.sna a
21716 ) ) >"$at_stdout" 2>"$at_stder1"
21717   at_func_filter_trace $?
21718 else
21719   ( :;
21720 mkdir posix
21721 (cd posix
21722 TEST_TAR_FORMAT=posix
21723 export TEST_TAR_FORMAT
21724 TAR_OPTIONS="-H posix"
21725 export TAR_OPTIONS
21726 rm -rf *
21727
21728
21729 install-sh -d a/b >/dev/null  || exit 77
21730 awk 'BEGIN {
21731   for (i=1;i<=142;i++)
21732     printf("a/b/one_31_chars_long_file_name_%03d\n", i);
21733   }' < /dev/null | genfile --files-from -
21734
21735 sleep 1
21736
21737 echo "Initial dump"
21738 tar cvf a0.tar -g a.sna a
21739 mv a/b a/c
21740 echo "Incremental dump"
21741 tar cvf a1.tar -g a.sna a
21742 ) ) >"$at_stdout" 2>"$at_stderr"
21743 fi
21744 at_status=$?
21745 at_failed=false
21746 echo >>"$at_stderr"; $as_echo "tar: a: Directory is new
21747 tar: a/b: Directory is new
21748 tar: a/c: Directory has been renamed from \`a/b'
21749 " | \
21750   $at_diff - "$at_stderr" || at_failed=:
21751 echo >>"$at_stdout"; $as_echo "Initial dump
21752 a/
21753 a/b/
21754 a/b/one_31_chars_long_file_name_001
21755 a/b/one_31_chars_long_file_name_002
21756 a/b/one_31_chars_long_file_name_003
21757 a/b/one_31_chars_long_file_name_004
21758 a/b/one_31_chars_long_file_name_005
21759 a/b/one_31_chars_long_file_name_006
21760 a/b/one_31_chars_long_file_name_007
21761 a/b/one_31_chars_long_file_name_008
21762 a/b/one_31_chars_long_file_name_009
21763 a/b/one_31_chars_long_file_name_010
21764 a/b/one_31_chars_long_file_name_011
21765 a/b/one_31_chars_long_file_name_012
21766 a/b/one_31_chars_long_file_name_013
21767 a/b/one_31_chars_long_file_name_014
21768 a/b/one_31_chars_long_file_name_015
21769 a/b/one_31_chars_long_file_name_016
21770 a/b/one_31_chars_long_file_name_017
21771 a/b/one_31_chars_long_file_name_018
21772 a/b/one_31_chars_long_file_name_019
21773 a/b/one_31_chars_long_file_name_020
21774 a/b/one_31_chars_long_file_name_021
21775 a/b/one_31_chars_long_file_name_022
21776 a/b/one_31_chars_long_file_name_023
21777 a/b/one_31_chars_long_file_name_024
21778 a/b/one_31_chars_long_file_name_025
21779 a/b/one_31_chars_long_file_name_026
21780 a/b/one_31_chars_long_file_name_027
21781 a/b/one_31_chars_long_file_name_028
21782 a/b/one_31_chars_long_file_name_029
21783 a/b/one_31_chars_long_file_name_030
21784 a/b/one_31_chars_long_file_name_031
21785 a/b/one_31_chars_long_file_name_032
21786 a/b/one_31_chars_long_file_name_033
21787 a/b/one_31_chars_long_file_name_034
21788 a/b/one_31_chars_long_file_name_035
21789 a/b/one_31_chars_long_file_name_036
21790 a/b/one_31_chars_long_file_name_037
21791 a/b/one_31_chars_long_file_name_038
21792 a/b/one_31_chars_long_file_name_039
21793 a/b/one_31_chars_long_file_name_040
21794 a/b/one_31_chars_long_file_name_041
21795 a/b/one_31_chars_long_file_name_042
21796 a/b/one_31_chars_long_file_name_043
21797 a/b/one_31_chars_long_file_name_044
21798 a/b/one_31_chars_long_file_name_045
21799 a/b/one_31_chars_long_file_name_046
21800 a/b/one_31_chars_long_file_name_047
21801 a/b/one_31_chars_long_file_name_048
21802 a/b/one_31_chars_long_file_name_049
21803 a/b/one_31_chars_long_file_name_050
21804 a/b/one_31_chars_long_file_name_051
21805 a/b/one_31_chars_long_file_name_052
21806 a/b/one_31_chars_long_file_name_053
21807 a/b/one_31_chars_long_file_name_054
21808 a/b/one_31_chars_long_file_name_055
21809 a/b/one_31_chars_long_file_name_056
21810 a/b/one_31_chars_long_file_name_057
21811 a/b/one_31_chars_long_file_name_058
21812 a/b/one_31_chars_long_file_name_059
21813 a/b/one_31_chars_long_file_name_060
21814 a/b/one_31_chars_long_file_name_061
21815 a/b/one_31_chars_long_file_name_062
21816 a/b/one_31_chars_long_file_name_063
21817 a/b/one_31_chars_long_file_name_064
21818 a/b/one_31_chars_long_file_name_065
21819 a/b/one_31_chars_long_file_name_066
21820 a/b/one_31_chars_long_file_name_067
21821 a/b/one_31_chars_long_file_name_068
21822 a/b/one_31_chars_long_file_name_069
21823 a/b/one_31_chars_long_file_name_070
21824 a/b/one_31_chars_long_file_name_071
21825 a/b/one_31_chars_long_file_name_072
21826 a/b/one_31_chars_long_file_name_073
21827 a/b/one_31_chars_long_file_name_074
21828 a/b/one_31_chars_long_file_name_075
21829 a/b/one_31_chars_long_file_name_076
21830 a/b/one_31_chars_long_file_name_077
21831 a/b/one_31_chars_long_file_name_078
21832 a/b/one_31_chars_long_file_name_079
21833 a/b/one_31_chars_long_file_name_080
21834 a/b/one_31_chars_long_file_name_081
21835 a/b/one_31_chars_long_file_name_082
21836 a/b/one_31_chars_long_file_name_083
21837 a/b/one_31_chars_long_file_name_084
21838 a/b/one_31_chars_long_file_name_085
21839 a/b/one_31_chars_long_file_name_086
21840 a/b/one_31_chars_long_file_name_087
21841 a/b/one_31_chars_long_file_name_088
21842 a/b/one_31_chars_long_file_name_089
21843 a/b/one_31_chars_long_file_name_090
21844 a/b/one_31_chars_long_file_name_091
21845 a/b/one_31_chars_long_file_name_092
21846 a/b/one_31_chars_long_file_name_093
21847 a/b/one_31_chars_long_file_name_094
21848 a/b/one_31_chars_long_file_name_095
21849 a/b/one_31_chars_long_file_name_096
21850 a/b/one_31_chars_long_file_name_097
21851 a/b/one_31_chars_long_file_name_098
21852 a/b/one_31_chars_long_file_name_099
21853 a/b/one_31_chars_long_file_name_100
21854 a/b/one_31_chars_long_file_name_101
21855 a/b/one_31_chars_long_file_name_102
21856 a/b/one_31_chars_long_file_name_103
21857 a/b/one_31_chars_long_file_name_104
21858 a/b/one_31_chars_long_file_name_105
21859 a/b/one_31_chars_long_file_name_106
21860 a/b/one_31_chars_long_file_name_107
21861 a/b/one_31_chars_long_file_name_108
21862 a/b/one_31_chars_long_file_name_109
21863 a/b/one_31_chars_long_file_name_110
21864 a/b/one_31_chars_long_file_name_111
21865 a/b/one_31_chars_long_file_name_112
21866 a/b/one_31_chars_long_file_name_113
21867 a/b/one_31_chars_long_file_name_114
21868 a/b/one_31_chars_long_file_name_115
21869 a/b/one_31_chars_long_file_name_116
21870 a/b/one_31_chars_long_file_name_117
21871 a/b/one_31_chars_long_file_name_118
21872 a/b/one_31_chars_long_file_name_119
21873 a/b/one_31_chars_long_file_name_120
21874 a/b/one_31_chars_long_file_name_121
21875 a/b/one_31_chars_long_file_name_122
21876 a/b/one_31_chars_long_file_name_123
21877 a/b/one_31_chars_long_file_name_124
21878 a/b/one_31_chars_long_file_name_125
21879 a/b/one_31_chars_long_file_name_126
21880 a/b/one_31_chars_long_file_name_127
21881 a/b/one_31_chars_long_file_name_128
21882 a/b/one_31_chars_long_file_name_129
21883 a/b/one_31_chars_long_file_name_130
21884 a/b/one_31_chars_long_file_name_131
21885 a/b/one_31_chars_long_file_name_132
21886 a/b/one_31_chars_long_file_name_133
21887 a/b/one_31_chars_long_file_name_134
21888 a/b/one_31_chars_long_file_name_135
21889 a/b/one_31_chars_long_file_name_136
21890 a/b/one_31_chars_long_file_name_137
21891 a/b/one_31_chars_long_file_name_138
21892 a/b/one_31_chars_long_file_name_139
21893 a/b/one_31_chars_long_file_name_140
21894 a/b/one_31_chars_long_file_name_141
21895 a/b/one_31_chars_long_file_name_142
21896 Incremental dump
21897 a/
21898 a/c/
21899 " | \
21900   $at_diff - "$at_stdout" || at_failed=:
21901 at_func_check_status 0 $at_status "$at_srcdir/incr04.at:34"
21902
21903 $at_failed && at_func_log_failure
21904 $at_traceon; }
21905
21906
21907
21908
21909   $at_traceoff
21910   $at_times_p && times >"$at_times_file"
21911 ) 5>&1 2>&1 | eval $at_tee_pipe
21912 at_status=`cat "$at_status_file"`
21913 #AT_STOP_58
21914 #AT_START_59
21915 # 59. incr05.at:19: incremental dumps with -C
21916 at_setup_line='incr05.at:19'
21917 at_desc="incremental dumps with -C"
21918 $at_quiet $as_echo_n " 59: $at_desc                      "
21919 at_xfail=no
21920       test -f $XFAILFILE && at_xfail=yes
21921 echo "#                             -*- compilation -*-" >> "$at_group_log"
21922 (
21923   $as_echo "59. incr05.at:19: testing ..."
21924   $at_traceon
21925
21926
21927
21928
21929
21930   { $at_traceoff
21931 $as_echo "$at_srcdir/incr05.at:22:
21932 mkdir gnu
21933 (cd gnu
21934 TEST_TAR_FORMAT=gnu
21935 export TEST_TAR_FORMAT
21936 TAR_OPTIONS=\"-H gnu\"
21937 export TAR_OPTIONS
21938 rm -rf *
21939
21940 mkdir dir
21941 mkdir dir/sub
21942 genfile --file dir/file1
21943 genfile --file dir/sub/file2
21944
21945 echo Level 0
21946 tar -c -f archive.tar -g db -C dir -v --warning=no-new-dir .
21947
21948 genfile --file dir/file3
21949 echo Level 1
21950 tar -c -f archive.tar -g db -C dir -v --warning=no-new-dir .
21951 )"
21952 echo incr05.at:22 >"$at_check_line_file"
21953
21954 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
21955    false; }; then
21956   ( $at_traceon;
21957 mkdir gnu
21958 (cd gnu
21959 TEST_TAR_FORMAT=gnu
21960 export TEST_TAR_FORMAT
21961 TAR_OPTIONS="-H gnu"
21962 export TAR_OPTIONS
21963 rm -rf *
21964
21965 mkdir dir
21966 mkdir dir/sub
21967 genfile --file dir/file1
21968 genfile --file dir/sub/file2
21969
21970 echo Level 0
21971 tar -c -f archive.tar -g db -C dir -v --warning=no-new-dir .
21972
21973 genfile --file dir/file3
21974 echo Level 1
21975 tar -c -f archive.tar -g db -C dir -v --warning=no-new-dir .
21976 ) ) >"$at_stdout" 2>"$at_stder1"
21977   at_func_filter_trace $?
21978 else
21979   ( :;
21980 mkdir gnu
21981 (cd gnu
21982 TEST_TAR_FORMAT=gnu
21983 export TEST_TAR_FORMAT
21984 TAR_OPTIONS="-H gnu"
21985 export TAR_OPTIONS
21986 rm -rf *
21987
21988 mkdir dir
21989 mkdir dir/sub
21990 genfile --file dir/file1
21991 genfile --file dir/sub/file2
21992
21993 echo Level 0
21994 tar -c -f archive.tar -g db -C dir -v --warning=no-new-dir .
21995
21996 genfile --file dir/file3
21997 echo Level 1
21998 tar -c -f archive.tar -g db -C dir -v --warning=no-new-dir .
21999 ) ) >"$at_stdout" 2>"$at_stderr"
22000 fi
22001 at_status=$?
22002 at_failed=false
22003 at_func_diff_devnull "$at_stderr" || at_failed=:
22004 echo >>"$at_stdout"; $as_echo "Level 0
22005 ./
22006 ./sub/
22007 ./file1
22008 ./sub/file2
22009 Level 1
22010 ./
22011 ./sub/
22012 ./file3
22013 " | \
22014   $at_diff - "$at_stdout" || at_failed=:
22015 at_func_check_status 0 $at_status "$at_srcdir/incr05.at:22"
22016
22017 $at_failed && at_func_log_failure
22018 $at_traceon; }
22019
22020               { $at_traceoff
22021 $as_echo "$at_srcdir/incr05.at:22:
22022 mkdir oldgnu
22023 (cd oldgnu
22024 TEST_TAR_FORMAT=oldgnu
22025 export TEST_TAR_FORMAT
22026 TAR_OPTIONS=\"-H oldgnu\"
22027 export TAR_OPTIONS
22028 rm -rf *
22029
22030 mkdir dir
22031 mkdir dir/sub
22032 genfile --file dir/file1
22033 genfile --file dir/sub/file2
22034
22035 echo Level 0
22036 tar -c -f archive.tar -g db -C dir -v --warning=no-new-dir .
22037
22038 genfile --file dir/file3
22039 echo Level 1
22040 tar -c -f archive.tar -g db -C dir -v --warning=no-new-dir .
22041 )"
22042 echo incr05.at:22 >"$at_check_line_file"
22043
22044 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
22045    false; }; then
22046   ( $at_traceon;
22047 mkdir oldgnu
22048 (cd oldgnu
22049 TEST_TAR_FORMAT=oldgnu
22050 export TEST_TAR_FORMAT
22051 TAR_OPTIONS="-H oldgnu"
22052 export TAR_OPTIONS
22053 rm -rf *
22054
22055 mkdir dir
22056 mkdir dir/sub
22057 genfile --file dir/file1
22058 genfile --file dir/sub/file2
22059
22060 echo Level 0
22061 tar -c -f archive.tar -g db -C dir -v --warning=no-new-dir .
22062
22063 genfile --file dir/file3
22064 echo Level 1
22065 tar -c -f archive.tar -g db -C dir -v --warning=no-new-dir .
22066 ) ) >"$at_stdout" 2>"$at_stder1"
22067   at_func_filter_trace $?
22068 else
22069   ( :;
22070 mkdir oldgnu
22071 (cd oldgnu
22072 TEST_TAR_FORMAT=oldgnu
22073 export TEST_TAR_FORMAT
22074 TAR_OPTIONS="-H oldgnu"
22075 export TAR_OPTIONS
22076 rm -rf *
22077
22078 mkdir dir
22079 mkdir dir/sub
22080 genfile --file dir/file1
22081 genfile --file dir/sub/file2
22082
22083 echo Level 0
22084 tar -c -f archive.tar -g db -C dir -v --warning=no-new-dir .
22085
22086 genfile --file dir/file3
22087 echo Level 1
22088 tar -c -f archive.tar -g db -C dir -v --warning=no-new-dir .
22089 ) ) >"$at_stdout" 2>"$at_stderr"
22090 fi
22091 at_status=$?
22092 at_failed=false
22093 at_func_diff_devnull "$at_stderr" || at_failed=:
22094 echo >>"$at_stdout"; $as_echo "Level 0
22095 ./
22096 ./sub/
22097 ./file1
22098 ./sub/file2
22099 Level 1
22100 ./
22101 ./sub/
22102 ./file3
22103 " | \
22104   $at_diff - "$at_stdout" || at_failed=:
22105 at_func_check_status 0 $at_status "$at_srcdir/incr05.at:22"
22106
22107 $at_failed && at_func_log_failure
22108 $at_traceon; }
22109
22110               { $at_traceoff
22111 $as_echo "$at_srcdir/incr05.at:22:
22112 mkdir posix
22113 (cd posix
22114 TEST_TAR_FORMAT=posix
22115 export TEST_TAR_FORMAT
22116 TAR_OPTIONS=\"-H posix\"
22117 export TAR_OPTIONS
22118 rm -rf *
22119
22120 mkdir dir
22121 mkdir dir/sub
22122 genfile --file dir/file1
22123 genfile --file dir/sub/file2
22124
22125 echo Level 0
22126 tar -c -f archive.tar -g db -C dir -v --warning=no-new-dir .
22127
22128 genfile --file dir/file3
22129 echo Level 1
22130 tar -c -f archive.tar -g db -C dir -v --warning=no-new-dir .
22131 )"
22132 echo incr05.at:22 >"$at_check_line_file"
22133
22134 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
22135    false; }; then
22136   ( $at_traceon;
22137 mkdir posix
22138 (cd posix
22139 TEST_TAR_FORMAT=posix
22140 export TEST_TAR_FORMAT
22141 TAR_OPTIONS="-H posix"
22142 export TAR_OPTIONS
22143 rm -rf *
22144
22145 mkdir dir
22146 mkdir dir/sub
22147 genfile --file dir/file1
22148 genfile --file dir/sub/file2
22149
22150 echo Level 0
22151 tar -c -f archive.tar -g db -C dir -v --warning=no-new-dir .
22152
22153 genfile --file dir/file3
22154 echo Level 1
22155 tar -c -f archive.tar -g db -C dir -v --warning=no-new-dir .
22156 ) ) >"$at_stdout" 2>"$at_stder1"
22157   at_func_filter_trace $?
22158 else
22159   ( :;
22160 mkdir posix
22161 (cd posix
22162 TEST_TAR_FORMAT=posix
22163 export TEST_TAR_FORMAT
22164 TAR_OPTIONS="-H posix"
22165 export TAR_OPTIONS
22166 rm -rf *
22167
22168 mkdir dir
22169 mkdir dir/sub
22170 genfile --file dir/file1
22171 genfile --file dir/sub/file2
22172
22173 echo Level 0
22174 tar -c -f archive.tar -g db -C dir -v --warning=no-new-dir .
22175
22176 genfile --file dir/file3
22177 echo Level 1
22178 tar -c -f archive.tar -g db -C dir -v --warning=no-new-dir .
22179 ) ) >"$at_stdout" 2>"$at_stderr"
22180 fi
22181 at_status=$?
22182 at_failed=false
22183 at_func_diff_devnull "$at_stderr" || at_failed=:
22184 echo >>"$at_stdout"; $as_echo "Level 0
22185 ./
22186 ./sub/
22187 ./file1
22188 ./sub/file2
22189 Level 1
22190 ./
22191 ./sub/
22192 ./file3
22193 " | \
22194   $at_diff - "$at_stdout" || at_failed=:
22195 at_func_check_status 0 $at_status "$at_srcdir/incr05.at:22"
22196
22197 $at_failed && at_func_log_failure
22198 $at_traceon; }
22199
22200
22201
22202
22203   $at_traceoff
22204   $at_times_p && times >"$at_times_file"
22205 ) 5>&1 2>&1 | eval $at_tee_pipe
22206 at_status=`cat "$at_status_file"`
22207 #AT_STOP_59
22208 #AT_START_60
22209 # 60. incr06.at:19: incremental dumps of nested directories
22210 at_setup_line='incr06.at:19'
22211 at_desc="incremental dumps of nested directories"
22212 $at_quiet $as_echo_n " 60: $at_desc        "
22213 at_xfail=no
22214       test -f $XFAILFILE && at_xfail=yes
22215 echo "#                             -*- compilation -*-" >> "$at_group_log"
22216 (
22217   $as_echo "60. incr06.at:19: testing ..."
22218   $at_traceon
22219
22220
22221
22222
22223
22224   { $at_traceoff
22225 $as_echo "$at_srcdir/incr06.at:22:
22226 mkdir gnu
22227 (cd gnu
22228 TEST_TAR_FORMAT=gnu
22229 export TEST_TAR_FORMAT
22230 TAR_OPTIONS=\"-H gnu\"
22231 export TAR_OPTIONS
22232 rm -rf *
22233
22234 mkdir dir
22235 mkdir dir/sub
22236 mkdir dir/sub/a
22237 mkdir dir/sub/b
22238 genfile --file dir/file1
22239 genfile --file dir/sub/file2
22240 genfile --file dir/sub/a/file3
22241
22242 echo Level 0 . sub
22243 tar -c -f archive-0.1.tar -g db.1 -C dir -v --warning=no-new-dir . sub
22244 echo Level 0 sub .
22245 tar -c -f archive-0.2.tar -g db.2 -C dir -v --warning=no-new-dir sub .
22246
22247 mkdir dir/c
22248 genfile --file dir/sub/b/file4
22249
22250 echo Level 1 . sub
22251 tar -c -f archive-1.1.tar -g db.1 -C dir -v --warning=no-new-dir . sub
22252 echo Level 1 sub .
22253 tar -c -f archive-1.2.tar -g db.2 -C dir -v --warning=no-new-dir sub .
22254 )"
22255 echo incr06.at:22 >"$at_check_line_file"
22256
22257 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
22258    false; }; then
22259   ( $at_traceon;
22260 mkdir gnu
22261 (cd gnu
22262 TEST_TAR_FORMAT=gnu
22263 export TEST_TAR_FORMAT
22264 TAR_OPTIONS="-H gnu"
22265 export TAR_OPTIONS
22266 rm -rf *
22267
22268 mkdir dir
22269 mkdir dir/sub
22270 mkdir dir/sub/a
22271 mkdir dir/sub/b
22272 genfile --file dir/file1
22273 genfile --file dir/sub/file2
22274 genfile --file dir/sub/a/file3
22275
22276 echo Level 0 . sub
22277 tar -c -f archive-0.1.tar -g db.1 -C dir -v --warning=no-new-dir . sub
22278 echo Level 0 sub .
22279 tar -c -f archive-0.2.tar -g db.2 -C dir -v --warning=no-new-dir sub .
22280
22281 mkdir dir/c
22282 genfile --file dir/sub/b/file4
22283
22284 echo Level 1 . sub
22285 tar -c -f archive-1.1.tar -g db.1 -C dir -v --warning=no-new-dir . sub
22286 echo Level 1 sub .
22287 tar -c -f archive-1.2.tar -g db.2 -C dir -v --warning=no-new-dir sub .
22288 ) ) >"$at_stdout" 2>"$at_stder1"
22289   at_func_filter_trace $?
22290 else
22291   ( :;
22292 mkdir gnu
22293 (cd gnu
22294 TEST_TAR_FORMAT=gnu
22295 export TEST_TAR_FORMAT
22296 TAR_OPTIONS="-H gnu"
22297 export TAR_OPTIONS
22298 rm -rf *
22299
22300 mkdir dir
22301 mkdir dir/sub
22302 mkdir dir/sub/a
22303 mkdir dir/sub/b
22304 genfile --file dir/file1
22305 genfile --file dir/sub/file2
22306 genfile --file dir/sub/a/file3
22307
22308 echo Level 0 . sub
22309 tar -c -f archive-0.1.tar -g db.1 -C dir -v --warning=no-new-dir . sub
22310 echo Level 0 sub .
22311 tar -c -f archive-0.2.tar -g db.2 -C dir -v --warning=no-new-dir sub .
22312
22313 mkdir dir/c
22314 genfile --file dir/sub/b/file4
22315
22316 echo Level 1 . sub
22317 tar -c -f archive-1.1.tar -g db.1 -C dir -v --warning=no-new-dir . sub
22318 echo Level 1 sub .
22319 tar -c -f archive-1.2.tar -g db.2 -C dir -v --warning=no-new-dir sub .
22320 ) ) >"$at_stdout" 2>"$at_stderr"
22321 fi
22322 at_status=$?
22323 at_failed=false
22324 at_func_diff_devnull "$at_stderr" || at_failed=:
22325 echo >>"$at_stdout"; $as_echo "Level 0 . sub
22326 ./
22327 sub/
22328 sub/a/
22329 sub/b/
22330 ./file1
22331 sub/file2
22332 sub/a/file3
22333 Level 0 sub .
22334 ./
22335 sub/
22336 sub/a/
22337 sub/b/
22338 ./file1
22339 sub/file2
22340 sub/a/file3
22341 Level 1 . sub
22342 ./
22343 ./c/
22344 sub/
22345 sub/a/
22346 sub/b/
22347 sub/b/file4
22348 Level 1 sub .
22349 ./
22350 ./c/
22351 sub/
22352 sub/a/
22353 sub/b/
22354 sub/b/file4
22355 " | \
22356   $at_diff - "$at_stdout" || at_failed=:
22357 at_func_check_status 0 $at_status "$at_srcdir/incr06.at:22"
22358
22359 $at_failed && at_func_log_failure
22360 $at_traceon; }
22361
22362               { $at_traceoff
22363 $as_echo "$at_srcdir/incr06.at:22:
22364 mkdir oldgnu
22365 (cd oldgnu
22366 TEST_TAR_FORMAT=oldgnu
22367 export TEST_TAR_FORMAT
22368 TAR_OPTIONS=\"-H oldgnu\"
22369 export TAR_OPTIONS
22370 rm -rf *
22371
22372 mkdir dir
22373 mkdir dir/sub
22374 mkdir dir/sub/a
22375 mkdir dir/sub/b
22376 genfile --file dir/file1
22377 genfile --file dir/sub/file2
22378 genfile --file dir/sub/a/file3
22379
22380 echo Level 0 . sub
22381 tar -c -f archive-0.1.tar -g db.1 -C dir -v --warning=no-new-dir . sub
22382 echo Level 0 sub .
22383 tar -c -f archive-0.2.tar -g db.2 -C dir -v --warning=no-new-dir sub .
22384
22385 mkdir dir/c
22386 genfile --file dir/sub/b/file4
22387
22388 echo Level 1 . sub
22389 tar -c -f archive-1.1.tar -g db.1 -C dir -v --warning=no-new-dir . sub
22390 echo Level 1 sub .
22391 tar -c -f archive-1.2.tar -g db.2 -C dir -v --warning=no-new-dir sub .
22392 )"
22393 echo incr06.at:22 >"$at_check_line_file"
22394
22395 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
22396    false; }; then
22397   ( $at_traceon;
22398 mkdir oldgnu
22399 (cd oldgnu
22400 TEST_TAR_FORMAT=oldgnu
22401 export TEST_TAR_FORMAT
22402 TAR_OPTIONS="-H oldgnu"
22403 export TAR_OPTIONS
22404 rm -rf *
22405
22406 mkdir dir
22407 mkdir dir/sub
22408 mkdir dir/sub/a
22409 mkdir dir/sub/b
22410 genfile --file dir/file1
22411 genfile --file dir/sub/file2
22412 genfile --file dir/sub/a/file3
22413
22414 echo Level 0 . sub
22415 tar -c -f archive-0.1.tar -g db.1 -C dir -v --warning=no-new-dir . sub
22416 echo Level 0 sub .
22417 tar -c -f archive-0.2.tar -g db.2 -C dir -v --warning=no-new-dir sub .
22418
22419 mkdir dir/c
22420 genfile --file dir/sub/b/file4
22421
22422 echo Level 1 . sub
22423 tar -c -f archive-1.1.tar -g db.1 -C dir -v --warning=no-new-dir . sub
22424 echo Level 1 sub .
22425 tar -c -f archive-1.2.tar -g db.2 -C dir -v --warning=no-new-dir sub .
22426 ) ) >"$at_stdout" 2>"$at_stder1"
22427   at_func_filter_trace $?
22428 else
22429   ( :;
22430 mkdir oldgnu
22431 (cd oldgnu
22432 TEST_TAR_FORMAT=oldgnu
22433 export TEST_TAR_FORMAT
22434 TAR_OPTIONS="-H oldgnu"
22435 export TAR_OPTIONS
22436 rm -rf *
22437
22438 mkdir dir
22439 mkdir dir/sub
22440 mkdir dir/sub/a
22441 mkdir dir/sub/b
22442 genfile --file dir/file1
22443 genfile --file dir/sub/file2
22444 genfile --file dir/sub/a/file3
22445
22446 echo Level 0 . sub
22447 tar -c -f archive-0.1.tar -g db.1 -C dir -v --warning=no-new-dir . sub
22448 echo Level 0 sub .
22449 tar -c -f archive-0.2.tar -g db.2 -C dir -v --warning=no-new-dir sub .
22450
22451 mkdir dir/c
22452 genfile --file dir/sub/b/file4
22453
22454 echo Level 1 . sub
22455 tar -c -f archive-1.1.tar -g db.1 -C dir -v --warning=no-new-dir . sub
22456 echo Level 1 sub .
22457 tar -c -f archive-1.2.tar -g db.2 -C dir -v --warning=no-new-dir sub .
22458 ) ) >"$at_stdout" 2>"$at_stderr"
22459 fi
22460 at_status=$?
22461 at_failed=false
22462 at_func_diff_devnull "$at_stderr" || at_failed=:
22463 echo >>"$at_stdout"; $as_echo "Level 0 . sub
22464 ./
22465 sub/
22466 sub/a/
22467 sub/b/
22468 ./file1
22469 sub/file2
22470 sub/a/file3
22471 Level 0 sub .
22472 ./
22473 sub/
22474 sub/a/
22475 sub/b/
22476 ./file1
22477 sub/file2
22478 sub/a/file3
22479 Level 1 . sub
22480 ./
22481 ./c/
22482 sub/
22483 sub/a/
22484 sub/b/
22485 sub/b/file4
22486 Level 1 sub .
22487 ./
22488 ./c/
22489 sub/
22490 sub/a/
22491 sub/b/
22492 sub/b/file4
22493 " | \
22494   $at_diff - "$at_stdout" || at_failed=:
22495 at_func_check_status 0 $at_status "$at_srcdir/incr06.at:22"
22496
22497 $at_failed && at_func_log_failure
22498 $at_traceon; }
22499
22500               { $at_traceoff
22501 $as_echo "$at_srcdir/incr06.at:22:
22502 mkdir posix
22503 (cd posix
22504 TEST_TAR_FORMAT=posix
22505 export TEST_TAR_FORMAT
22506 TAR_OPTIONS=\"-H posix\"
22507 export TAR_OPTIONS
22508 rm -rf *
22509
22510 mkdir dir
22511 mkdir dir/sub
22512 mkdir dir/sub/a
22513 mkdir dir/sub/b
22514 genfile --file dir/file1
22515 genfile --file dir/sub/file2
22516 genfile --file dir/sub/a/file3
22517
22518 echo Level 0 . sub
22519 tar -c -f archive-0.1.tar -g db.1 -C dir -v --warning=no-new-dir . sub
22520 echo Level 0 sub .
22521 tar -c -f archive-0.2.tar -g db.2 -C dir -v --warning=no-new-dir sub .
22522
22523 mkdir dir/c
22524 genfile --file dir/sub/b/file4
22525
22526 echo Level 1 . sub
22527 tar -c -f archive-1.1.tar -g db.1 -C dir -v --warning=no-new-dir . sub
22528 echo Level 1 sub .
22529 tar -c -f archive-1.2.tar -g db.2 -C dir -v --warning=no-new-dir sub .
22530 )"
22531 echo incr06.at:22 >"$at_check_line_file"
22532
22533 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
22534    false; }; then
22535   ( $at_traceon;
22536 mkdir posix
22537 (cd posix
22538 TEST_TAR_FORMAT=posix
22539 export TEST_TAR_FORMAT
22540 TAR_OPTIONS="-H posix"
22541 export TAR_OPTIONS
22542 rm -rf *
22543
22544 mkdir dir
22545 mkdir dir/sub
22546 mkdir dir/sub/a
22547 mkdir dir/sub/b
22548 genfile --file dir/file1
22549 genfile --file dir/sub/file2
22550 genfile --file dir/sub/a/file3
22551
22552 echo Level 0 . sub
22553 tar -c -f archive-0.1.tar -g db.1 -C dir -v --warning=no-new-dir . sub
22554 echo Level 0 sub .
22555 tar -c -f archive-0.2.tar -g db.2 -C dir -v --warning=no-new-dir sub .
22556
22557 mkdir dir/c
22558 genfile --file dir/sub/b/file4
22559
22560 echo Level 1 . sub
22561 tar -c -f archive-1.1.tar -g db.1 -C dir -v --warning=no-new-dir . sub
22562 echo Level 1 sub .
22563 tar -c -f archive-1.2.tar -g db.2 -C dir -v --warning=no-new-dir sub .
22564 ) ) >"$at_stdout" 2>"$at_stder1"
22565   at_func_filter_trace $?
22566 else
22567   ( :;
22568 mkdir posix
22569 (cd posix
22570 TEST_TAR_FORMAT=posix
22571 export TEST_TAR_FORMAT
22572 TAR_OPTIONS="-H posix"
22573 export TAR_OPTIONS
22574 rm -rf *
22575
22576 mkdir dir
22577 mkdir dir/sub
22578 mkdir dir/sub/a
22579 mkdir dir/sub/b
22580 genfile --file dir/file1
22581 genfile --file dir/sub/file2
22582 genfile --file dir/sub/a/file3
22583
22584 echo Level 0 . sub
22585 tar -c -f archive-0.1.tar -g db.1 -C dir -v --warning=no-new-dir . sub
22586 echo Level 0 sub .
22587 tar -c -f archive-0.2.tar -g db.2 -C dir -v --warning=no-new-dir sub .
22588
22589 mkdir dir/c
22590 genfile --file dir/sub/b/file4
22591
22592 echo Level 1 . sub
22593 tar -c -f archive-1.1.tar -g db.1 -C dir -v --warning=no-new-dir . sub
22594 echo Level 1 sub .
22595 tar -c -f archive-1.2.tar -g db.2 -C dir -v --warning=no-new-dir sub .
22596 ) ) >"$at_stdout" 2>"$at_stderr"
22597 fi
22598 at_status=$?
22599 at_failed=false
22600 at_func_diff_devnull "$at_stderr" || at_failed=:
22601 echo >>"$at_stdout"; $as_echo "Level 0 . sub
22602 ./
22603 sub/
22604 sub/a/
22605 sub/b/
22606 ./file1
22607 sub/file2
22608 sub/a/file3
22609 Level 0 sub .
22610 ./
22611 sub/
22612 sub/a/
22613 sub/b/
22614 ./file1
22615 sub/file2
22616 sub/a/file3
22617 Level 1 . sub
22618 ./
22619 ./c/
22620 sub/
22621 sub/a/
22622 sub/b/
22623 sub/b/file4
22624 Level 1 sub .
22625 ./
22626 ./c/
22627 sub/
22628 sub/a/
22629 sub/b/
22630 sub/b/file4
22631 " | \
22632   $at_diff - "$at_stdout" || at_failed=:
22633 at_func_check_status 0 $at_status "$at_srcdir/incr06.at:22"
22634
22635 $at_failed && at_func_log_failure
22636 $at_traceon; }
22637
22638
22639
22640
22641   $at_traceoff
22642   $at_times_p && times >"$at_times_file"
22643 ) 5>&1 2>&1 | eval $at_tee_pipe
22644 at_status=`cat "$at_status_file"`
22645 #AT_STOP_60
22646 #AT_START_61
22647 # 61. filerem01.at:34: file removed as we read it (ca. 22 seconds)
22648 at_setup_line='filerem01.at:34'
22649 at_desc="file removed as we read it (ca. 22 seconds)"
22650 $at_quiet $as_echo_n " 61: $at_desc    "
22651 at_xfail=no
22652       test -f $XFAILFILE && at_xfail=yes
22653 echo "#                             -*- compilation -*-" >> "$at_group_log"
22654 (
22655   $as_echo "61. filerem01.at:34: testing ..."
22656   $at_traceon
22657
22658
22659
22660
22661
22662   { $at_traceoff
22663 $as_echo "$at_srcdir/filerem01.at:37:
22664 mkdir gnu
22665 (cd gnu
22666 TEST_TAR_FORMAT=gnu
22667 export TEST_TAR_FORMAT
22668 TAR_OPTIONS=\"-H gnu\"
22669 export TAR_OPTIONS
22670 rm -rf *
22671
22672 mkdir dir
22673 mkdir dir/sub
22674 genfile --file dir/file1
22675 genfile --file dir/sub/file2
22676
22677 genfile --run --checkpoint=3 --unlink dir/file1 -- \\
22678        tar --blocking-factor=1 --checkpoint=1 --checkpoint-action='sleep=1' \\
22679        --checkpoint-action='echo' -c -f archive.tar \\
22680        --listed-incremental db -v dir >/dev/null
22681 )"
22682 echo filerem01.at:37 >"$at_check_line_file"
22683
22684 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
22685    false; }; then
22686   ( $at_traceon;
22687 mkdir gnu
22688 (cd gnu
22689 TEST_TAR_FORMAT=gnu
22690 export TEST_TAR_FORMAT
22691 TAR_OPTIONS="-H gnu"
22692 export TAR_OPTIONS
22693 rm -rf *
22694
22695 mkdir dir
22696 mkdir dir/sub
22697 genfile --file dir/file1
22698 genfile --file dir/sub/file2
22699
22700 genfile --run --checkpoint=3 --unlink dir/file1 -- \
22701        tar --blocking-factor=1 --checkpoint=1 --checkpoint-action='sleep=1' \
22702        --checkpoint-action='echo' -c -f archive.tar \
22703        --listed-incremental db -v dir >/dev/null
22704 ) ) >"$at_stdout" 2>"$at_stder1"
22705   at_func_filter_trace $?
22706 else
22707   ( :;
22708 mkdir gnu
22709 (cd gnu
22710 TEST_TAR_FORMAT=gnu
22711 export TEST_TAR_FORMAT
22712 TAR_OPTIONS="-H gnu"
22713 export TAR_OPTIONS
22714 rm -rf *
22715
22716 mkdir dir
22717 mkdir dir/sub
22718 genfile --file dir/file1
22719 genfile --file dir/sub/file2
22720
22721 genfile --run --checkpoint=3 --unlink dir/file1 -- \
22722        tar --blocking-factor=1 --checkpoint=1 --checkpoint-action='sleep=1' \
22723        --checkpoint-action='echo' -c -f archive.tar \
22724        --listed-incremental db -v dir >/dev/null
22725 ) ) >"$at_stdout" 2>"$at_stderr"
22726 fi
22727 at_status=$?
22728 at_failed=false
22729 echo >>"$at_stderr"; $as_echo "tar: dir: Directory is new
22730 tar: dir/sub: Directory is new
22731 tar: dir/file1: File removed before we read it
22732 " | \
22733   $at_diff - "$at_stderr" || at_failed=:
22734 echo stdout:; cat "$at_stdout"
22735 at_func_check_status 1 $at_status "$at_srcdir/filerem01.at:37"
22736
22737 $at_failed && at_func_log_failure
22738 $at_traceon; }
22739
22740               { $at_traceoff
22741 $as_echo "$at_srcdir/filerem01.at:37:
22742 mkdir posix
22743 (cd posix
22744 TEST_TAR_FORMAT=posix
22745 export TEST_TAR_FORMAT
22746 TAR_OPTIONS=\"-H posix\"
22747 export TAR_OPTIONS
22748 rm -rf *
22749
22750 mkdir dir
22751 mkdir dir/sub
22752 genfile --file dir/file1
22753 genfile --file dir/sub/file2
22754
22755 genfile --run --checkpoint=3 --unlink dir/file1 -- \\
22756        tar --blocking-factor=1 --checkpoint=1 --checkpoint-action='sleep=1' \\
22757        --checkpoint-action='echo' -c -f archive.tar \\
22758        --listed-incremental db -v dir >/dev/null
22759 )"
22760 echo filerem01.at:37 >"$at_check_line_file"
22761
22762 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
22763    false; }; then
22764   ( $at_traceon;
22765 mkdir posix
22766 (cd posix
22767 TEST_TAR_FORMAT=posix
22768 export TEST_TAR_FORMAT
22769 TAR_OPTIONS="-H posix"
22770 export TAR_OPTIONS
22771 rm -rf *
22772
22773 mkdir dir
22774 mkdir dir/sub
22775 genfile --file dir/file1
22776 genfile --file dir/sub/file2
22777
22778 genfile --run --checkpoint=3 --unlink dir/file1 -- \
22779        tar --blocking-factor=1 --checkpoint=1 --checkpoint-action='sleep=1' \
22780        --checkpoint-action='echo' -c -f archive.tar \
22781        --listed-incremental db -v dir >/dev/null
22782 ) ) >"$at_stdout" 2>"$at_stder1"
22783   at_func_filter_trace $?
22784 else
22785   ( :;
22786 mkdir posix
22787 (cd posix
22788 TEST_TAR_FORMAT=posix
22789 export TEST_TAR_FORMAT
22790 TAR_OPTIONS="-H posix"
22791 export TAR_OPTIONS
22792 rm -rf *
22793
22794 mkdir dir
22795 mkdir dir/sub
22796 genfile --file dir/file1
22797 genfile --file dir/sub/file2
22798
22799 genfile --run --checkpoint=3 --unlink dir/file1 -- \
22800        tar --blocking-factor=1 --checkpoint=1 --checkpoint-action='sleep=1' \
22801        --checkpoint-action='echo' -c -f archive.tar \
22802        --listed-incremental db -v dir >/dev/null
22803 ) ) >"$at_stdout" 2>"$at_stderr"
22804 fi
22805 at_status=$?
22806 at_failed=false
22807 echo >>"$at_stderr"; $as_echo "tar: dir: Directory is new
22808 tar: dir/sub: Directory is new
22809 tar: dir/file1: File removed before we read it
22810 " | \
22811   $at_diff - "$at_stderr" || at_failed=:
22812 echo stdout:; cat "$at_stdout"
22813 at_func_check_status 1 $at_status "$at_srcdir/filerem01.at:37"
22814
22815 $at_failed && at_func_log_failure
22816 $at_traceon; }
22817
22818
22819
22820
22821 # Timing information:
22822 #
22823 # For -Hgnu the above command line takes about 8 seconds to execute and
22824 # produces:
22825 #
22826 # tar: dir: Directory is new
22827 # tar: dir/sub: Directory is new
22828 # dir/
22829 # tar: Write checkpoint 1
22830 # tar: Write checkpoint 2
22831 # dir/sub/
22832 # tar: Write checkpoint 3
22833 # tar: Write checkpoint 4
22834 # dir/file1
22835 # tar: Write checkpoint 5
22836 # dir/sub/file2
22837 # tar: Write checkpoint 6
22838 # tar: Write checkpoint 7
22839 # tar: Write checkpoint 8
22840 #
22841 # For -Hposix the above command line takes about 14 seconds to execute and
22842 # produces:
22843 #
22844 # ./tar: dir: Directory is new
22845 # ./tar: dir/sub: Directory is new
22846 # dir/
22847 # ./tar: Write checkpoint 1
22848 # ./tar: Write checkpoint 2
22849 # ./tar: Write checkpoint 3
22850 # dir/sub/
22851 # ./tar: Write checkpoint 4
22852 # ./tar: Write checkpoint 5
22853 # ./tar: Write checkpoint 6
22854 # dir/file1
22855 # ./tar: Write checkpoint 7
22856 # ./tar: Write checkpoint 8
22857 # ./tar: Write checkpoint 9
22858 # dir/sub/file2
22859 # ./tar: Write checkpoint 10
22860 # ./tar: Write checkpoint 11
22861 # ./tar: Write checkpoint 12
22862 # ./tar: Write checkpoint 13
22863 # ./tar: Write checkpoint 14
22864
22865
22866   $at_traceoff
22867   $at_times_p && times >"$at_times_file"
22868 ) 5>&1 2>&1 | eval $at_tee_pipe
22869 at_status=`cat "$at_status_file"`
22870 #AT_STOP_61
22871 #AT_START_62
22872 # 62. filerem02.at:24: toplevel file removed (ca. 24 seconds)
22873 at_setup_line='filerem02.at:24'
22874 at_desc="toplevel file removed (ca. 24 seconds)"
22875 $at_quiet $as_echo_n " 62: $at_desc         "
22876 at_xfail=no
22877       test -f $XFAILFILE && at_xfail=yes
22878 echo "#                             -*- compilation -*-" >> "$at_group_log"
22879 (
22880   $as_echo "62. filerem02.at:24: testing ..."
22881   $at_traceon
22882
22883
22884
22885
22886
22887   { $at_traceoff
22888 $as_echo "$at_srcdir/filerem02.at:27:
22889 mkdir gnu
22890 (cd gnu
22891 TEST_TAR_FORMAT=gnu
22892 export TEST_TAR_FORMAT
22893 TAR_OPTIONS=\"-H gnu\"
22894 export TAR_OPTIONS
22895 rm -rf *
22896
22897 mkdir dir
22898 mkdir dir/sub
22899 genfile --file dir/file1
22900 genfile --file dir/sub/file2
22901 mkdir dir2
22902 genfile --file dir2/file1
22903
22904 genfile --run --checkpoint=3 --exec 'rm -rf dir2' -- \\
22905        tar --blocking-factor=1 --checkpoint=1 --checkpoint-action='sleep=1' \\
22906        --checkpoint-action='echo' -c -f archive.tar \\
22907        --listed-incremental db -v --warning=no-new-dir dir dir2 >/dev/null
22908 )"
22909 echo filerem02.at:27 >"$at_check_line_file"
22910
22911 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
22912    false; }; then
22913   ( $at_traceon;
22914 mkdir gnu
22915 (cd gnu
22916 TEST_TAR_FORMAT=gnu
22917 export TEST_TAR_FORMAT
22918 TAR_OPTIONS="-H gnu"
22919 export TAR_OPTIONS
22920 rm -rf *
22921
22922 mkdir dir
22923 mkdir dir/sub
22924 genfile --file dir/file1
22925 genfile --file dir/sub/file2
22926 mkdir dir2
22927 genfile --file dir2/file1
22928
22929 genfile --run --checkpoint=3 --exec 'rm -rf dir2' -- \
22930        tar --blocking-factor=1 --checkpoint=1 --checkpoint-action='sleep=1' \
22931        --checkpoint-action='echo' -c -f archive.tar \
22932        --listed-incremental db -v --warning=no-new-dir dir dir2 >/dev/null
22933 ) ) >"$at_stdout" 2>"$at_stder1"
22934   at_func_filter_trace $?
22935 else
22936   ( :;
22937 mkdir gnu
22938 (cd gnu
22939 TEST_TAR_FORMAT=gnu
22940 export TEST_TAR_FORMAT
22941 TAR_OPTIONS="-H gnu"
22942 export TAR_OPTIONS
22943 rm -rf *
22944
22945 mkdir dir
22946 mkdir dir/sub
22947 genfile --file dir/file1
22948 genfile --file dir/sub/file2
22949 mkdir dir2
22950 genfile --file dir2/file1
22951
22952 genfile --run --checkpoint=3 --exec 'rm -rf dir2' -- \
22953        tar --blocking-factor=1 --checkpoint=1 --checkpoint-action='sleep=1' \
22954        --checkpoint-action='echo' -c -f archive.tar \
22955        --listed-incremental db -v --warning=no-new-dir dir dir2 >/dev/null
22956 ) ) >"$at_stdout" 2>"$at_stderr"
22957 fi
22958 at_status=$?
22959 at_failed=false
22960 echo stderr:; cat "$at_stderr"
22961 echo stdout:; cat "$at_stdout"
22962 at_func_check_status 2 $at_status "$at_srcdir/filerem02.at:27"
22963
22964 $at_failed && at_func_log_failure
22965 $at_traceon; }
22966
22967               { $at_traceoff
22968 $as_echo "$at_srcdir/filerem02.at:27:
22969 mkdir posix
22970 (cd posix
22971 TEST_TAR_FORMAT=posix
22972 export TEST_TAR_FORMAT
22973 TAR_OPTIONS=\"-H posix\"
22974 export TAR_OPTIONS
22975 rm -rf *
22976
22977 mkdir dir
22978 mkdir dir/sub
22979 genfile --file dir/file1
22980 genfile --file dir/sub/file2
22981 mkdir dir2
22982 genfile --file dir2/file1
22983
22984 genfile --run --checkpoint=3 --exec 'rm -rf dir2' -- \\
22985        tar --blocking-factor=1 --checkpoint=1 --checkpoint-action='sleep=1' \\
22986        --checkpoint-action='echo' -c -f archive.tar \\
22987        --listed-incremental db -v --warning=no-new-dir dir dir2 >/dev/null
22988 )"
22989 echo filerem02.at:27 >"$at_check_line_file"
22990
22991 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
22992    false; }; then
22993   ( $at_traceon;
22994 mkdir posix
22995 (cd posix
22996 TEST_TAR_FORMAT=posix
22997 export TEST_TAR_FORMAT
22998 TAR_OPTIONS="-H posix"
22999 export TAR_OPTIONS
23000 rm -rf *
23001
23002 mkdir dir
23003 mkdir dir/sub
23004 genfile --file dir/file1
23005 genfile --file dir/sub/file2
23006 mkdir dir2
23007 genfile --file dir2/file1
23008
23009 genfile --run --checkpoint=3 --exec 'rm -rf dir2' -- \
23010        tar --blocking-factor=1 --checkpoint=1 --checkpoint-action='sleep=1' \
23011        --checkpoint-action='echo' -c -f archive.tar \
23012        --listed-incremental db -v --warning=no-new-dir dir dir2 >/dev/null
23013 ) ) >"$at_stdout" 2>"$at_stder1"
23014   at_func_filter_trace $?
23015 else
23016   ( :;
23017 mkdir posix
23018 (cd posix
23019 TEST_TAR_FORMAT=posix
23020 export TEST_TAR_FORMAT
23021 TAR_OPTIONS="-H posix"
23022 export TAR_OPTIONS
23023 rm -rf *
23024
23025 mkdir dir
23026 mkdir dir/sub
23027 genfile --file dir/file1
23028 genfile --file dir/sub/file2
23029 mkdir dir2
23030 genfile --file dir2/file1
23031
23032 genfile --run --checkpoint=3 --exec 'rm -rf dir2' -- \
23033        tar --blocking-factor=1 --checkpoint=1 --checkpoint-action='sleep=1' \
23034        --checkpoint-action='echo' -c -f archive.tar \
23035        --listed-incremental db -v --warning=no-new-dir dir dir2 >/dev/null
23036 ) ) >"$at_stdout" 2>"$at_stderr"
23037 fi
23038 at_status=$?
23039 at_failed=false
23040 echo stderr:; cat "$at_stderr"
23041 echo stdout:; cat "$at_stdout"
23042 at_func_check_status 2 $at_status "$at_srcdir/filerem02.at:27"
23043
23044 $at_failed && at_func_log_failure
23045 $at_traceon; }
23046
23047
23048
23049
23050 # Ignore stdout and stderr because their contents depend on
23051 # the file system implementation.
23052
23053 # Timing information: see filerem01.at
23054
23055   $at_traceoff
23056   $at_times_p && times >"$at_times_file"
23057 ) 5>&1 2>&1 | eval $at_tee_pipe
23058 at_status=`cat "$at_status_file"`
23059 #AT_STOP_62
23060 #AT_START_63
23061 # 63. rename01.at:24: renamed dirs in incrementals
23062 at_setup_line='rename01.at:24'
23063 at_desc="renamed dirs in incrementals"
23064 $at_quiet $as_echo_n " 63: $at_desc                   "
23065 at_xfail=no
23066       test -f $XFAILFILE && at_xfail=yes
23067 echo "#                             -*- compilation -*-" >> "$at_group_log"
23068 (
23069   $as_echo "63. rename01.at:24: testing ..."
23070   $at_traceon
23071
23072
23073
23074
23075
23076   { $at_traceoff
23077 $as_echo "$at_srcdir/rename01.at:27:
23078 mkdir gnu
23079 (cd gnu
23080 TEST_TAR_FORMAT=gnu
23081 export TEST_TAR_FORMAT
23082 TAR_OPTIONS=\"-H gnu\"
23083 export TAR_OPTIONS
23084 rm -rf *
23085
23086
23087 test -z "`sort < /dev/null 2>&1`" || exit 77
23088
23089
23090 mkdir foo
23091 genfile --file foo/file1
23092 genfile --file foo/file2
23093 mkdir foo/bar
23094 genfile --file foo/bar/file
23095
23096 echo \"Creating base archive\"
23097 tar -g incr -cf arch.1 -v foo
23098
23099 mv foo/bar foo/baz
23100
23101 echo \"Creating incremental archive\"
23102 tar -g incr -cf arch.2 -v foo
23103
23104 mv foo old
23105
23106 tar xfg arch.1 /dev/null
23107
23108 echo \"Begin directory listing 1\"
23109 find foo | sort
23110 echo \"End directory listing 1\"
23111
23112 tar xfg arch.2 /dev/null
23113 echo Begin directory listing 2
23114 find foo | sort
23115 echo End directory listing 2
23116 )"
23117 echo rename01.at:27 >"$at_check_line_file"
23118
23119 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
23120    false; }; then
23121   ( $at_traceon;
23122 mkdir gnu
23123 (cd gnu
23124 TEST_TAR_FORMAT=gnu
23125 export TEST_TAR_FORMAT
23126 TAR_OPTIONS="-H gnu"
23127 export TAR_OPTIONS
23128 rm -rf *
23129
23130
23131 test -z "`sort < /dev/null 2>&1`" || exit 77
23132
23133
23134 mkdir foo
23135 genfile --file foo/file1
23136 genfile --file foo/file2
23137 mkdir foo/bar
23138 genfile --file foo/bar/file
23139
23140 echo "Creating base archive"
23141 tar -g incr -cf arch.1 -v foo
23142
23143 mv foo/bar foo/baz
23144
23145 echo "Creating incremental archive"
23146 tar -g incr -cf arch.2 -v foo
23147
23148 mv foo old
23149
23150 tar xfg arch.1 /dev/null
23151
23152 echo "Begin directory listing 1"
23153 find foo | sort
23154 echo "End directory listing 1"
23155
23156 tar xfg arch.2 /dev/null
23157 echo Begin directory listing 2
23158 find foo | sort
23159 echo End directory listing 2
23160 ) ) >"$at_stdout" 2>"$at_stder1"
23161   at_func_filter_trace $?
23162 else
23163   ( :;
23164 mkdir gnu
23165 (cd gnu
23166 TEST_TAR_FORMAT=gnu
23167 export TEST_TAR_FORMAT
23168 TAR_OPTIONS="-H gnu"
23169 export TAR_OPTIONS
23170 rm -rf *
23171
23172
23173 test -z "`sort < /dev/null 2>&1`" || exit 77
23174
23175
23176 mkdir foo
23177 genfile --file foo/file1
23178 genfile --file foo/file2
23179 mkdir foo/bar
23180 genfile --file foo/bar/file
23181
23182 echo "Creating base archive"
23183 tar -g incr -cf arch.1 -v foo
23184
23185 mv foo/bar foo/baz
23186
23187 echo "Creating incremental archive"
23188 tar -g incr -cf arch.2 -v foo
23189
23190 mv foo old
23191
23192 tar xfg arch.1 /dev/null
23193
23194 echo "Begin directory listing 1"
23195 find foo | sort
23196 echo "End directory listing 1"
23197
23198 tar xfg arch.2 /dev/null
23199 echo Begin directory listing 2
23200 find foo | sort
23201 echo End directory listing 2
23202 ) ) >"$at_stdout" 2>"$at_stderr"
23203 fi
23204 at_status=$?
23205 at_failed=false
23206 echo >>"$at_stderr"; $as_echo "tar: foo: Directory is new
23207 tar: foo/bar: Directory is new
23208 tar: foo/baz: Directory has been renamed from \`foo/bar'
23209 " | \
23210   $at_diff - "$at_stderr" || at_failed=:
23211 echo >>"$at_stdout"; $as_echo "Creating base archive
23212 foo/
23213 foo/bar/
23214 foo/file1
23215 foo/file2
23216 foo/bar/file
23217 Creating incremental archive
23218 foo/
23219 foo/baz/
23220 Begin directory listing 1
23221 foo
23222 foo/bar
23223 foo/bar/file
23224 foo/file1
23225 foo/file2
23226 End directory listing 1
23227 Begin directory listing 2
23228 foo
23229 foo/baz
23230 foo/baz/file
23231 foo/file1
23232 foo/file2
23233 End directory listing 2
23234 " | \
23235   $at_diff - "$at_stdout" || at_failed=:
23236 at_func_check_status 0 $at_status "$at_srcdir/rename01.at:27"
23237
23238 $at_failed && at_func_log_failure
23239 $at_traceon; }
23240
23241               { $at_traceoff
23242 $as_echo "$at_srcdir/rename01.at:27:
23243 mkdir oldgnu
23244 (cd oldgnu
23245 TEST_TAR_FORMAT=oldgnu
23246 export TEST_TAR_FORMAT
23247 TAR_OPTIONS=\"-H oldgnu\"
23248 export TAR_OPTIONS
23249 rm -rf *
23250
23251
23252 test -z "`sort < /dev/null 2>&1`" || exit 77
23253
23254
23255 mkdir foo
23256 genfile --file foo/file1
23257 genfile --file foo/file2
23258 mkdir foo/bar
23259 genfile --file foo/bar/file
23260
23261 echo \"Creating base archive\"
23262 tar -g incr -cf arch.1 -v foo
23263
23264 mv foo/bar foo/baz
23265
23266 echo \"Creating incremental archive\"
23267 tar -g incr -cf arch.2 -v foo
23268
23269 mv foo old
23270
23271 tar xfg arch.1 /dev/null
23272
23273 echo \"Begin directory listing 1\"
23274 find foo | sort
23275 echo \"End directory listing 1\"
23276
23277 tar xfg arch.2 /dev/null
23278 echo Begin directory listing 2
23279 find foo | sort
23280 echo End directory listing 2
23281 )"
23282 echo rename01.at:27 >"$at_check_line_file"
23283
23284 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
23285    false; }; then
23286   ( $at_traceon;
23287 mkdir oldgnu
23288 (cd oldgnu
23289 TEST_TAR_FORMAT=oldgnu
23290 export TEST_TAR_FORMAT
23291 TAR_OPTIONS="-H oldgnu"
23292 export TAR_OPTIONS
23293 rm -rf *
23294
23295
23296 test -z "`sort < /dev/null 2>&1`" || exit 77
23297
23298
23299 mkdir foo
23300 genfile --file foo/file1
23301 genfile --file foo/file2
23302 mkdir foo/bar
23303 genfile --file foo/bar/file
23304
23305 echo "Creating base archive"
23306 tar -g incr -cf arch.1 -v foo
23307
23308 mv foo/bar foo/baz
23309
23310 echo "Creating incremental archive"
23311 tar -g incr -cf arch.2 -v foo
23312
23313 mv foo old
23314
23315 tar xfg arch.1 /dev/null
23316
23317 echo "Begin directory listing 1"
23318 find foo | sort
23319 echo "End directory listing 1"
23320
23321 tar xfg arch.2 /dev/null
23322 echo Begin directory listing 2
23323 find foo | sort
23324 echo End directory listing 2
23325 ) ) >"$at_stdout" 2>"$at_stder1"
23326   at_func_filter_trace $?
23327 else
23328   ( :;
23329 mkdir oldgnu
23330 (cd oldgnu
23331 TEST_TAR_FORMAT=oldgnu
23332 export TEST_TAR_FORMAT
23333 TAR_OPTIONS="-H oldgnu"
23334 export TAR_OPTIONS
23335 rm -rf *
23336
23337
23338 test -z "`sort < /dev/null 2>&1`" || exit 77
23339
23340
23341 mkdir foo
23342 genfile --file foo/file1
23343 genfile --file foo/file2
23344 mkdir foo/bar
23345 genfile --file foo/bar/file
23346
23347 echo "Creating base archive"
23348 tar -g incr -cf arch.1 -v foo
23349
23350 mv foo/bar foo/baz
23351
23352 echo "Creating incremental archive"
23353 tar -g incr -cf arch.2 -v foo
23354
23355 mv foo old
23356
23357 tar xfg arch.1 /dev/null
23358
23359 echo "Begin directory listing 1"
23360 find foo | sort
23361 echo "End directory listing 1"
23362
23363 tar xfg arch.2 /dev/null
23364 echo Begin directory listing 2
23365 find foo | sort
23366 echo End directory listing 2
23367 ) ) >"$at_stdout" 2>"$at_stderr"
23368 fi
23369 at_status=$?
23370 at_failed=false
23371 echo >>"$at_stderr"; $as_echo "tar: foo: Directory is new
23372 tar: foo/bar: Directory is new
23373 tar: foo/baz: Directory has been renamed from \`foo/bar'
23374 " | \
23375   $at_diff - "$at_stderr" || at_failed=:
23376 echo >>"$at_stdout"; $as_echo "Creating base archive
23377 foo/
23378 foo/bar/
23379 foo/file1
23380 foo/file2
23381 foo/bar/file
23382 Creating incremental archive
23383 foo/
23384 foo/baz/
23385 Begin directory listing 1
23386 foo
23387 foo/bar
23388 foo/bar/file
23389 foo/file1
23390 foo/file2
23391 End directory listing 1
23392 Begin directory listing 2
23393 foo
23394 foo/baz
23395 foo/baz/file
23396 foo/file1
23397 foo/file2
23398 End directory listing 2
23399 " | \
23400   $at_diff - "$at_stdout" || at_failed=:
23401 at_func_check_status 0 $at_status "$at_srcdir/rename01.at:27"
23402
23403 $at_failed && at_func_log_failure
23404 $at_traceon; }
23405
23406               { $at_traceoff
23407 $as_echo "$at_srcdir/rename01.at:27:
23408 mkdir posix
23409 (cd posix
23410 TEST_TAR_FORMAT=posix
23411 export TEST_TAR_FORMAT
23412 TAR_OPTIONS=\"-H posix\"
23413 export TAR_OPTIONS
23414 rm -rf *
23415
23416
23417 test -z "`sort < /dev/null 2>&1`" || exit 77
23418
23419
23420 mkdir foo
23421 genfile --file foo/file1
23422 genfile --file foo/file2
23423 mkdir foo/bar
23424 genfile --file foo/bar/file
23425
23426 echo \"Creating base archive\"
23427 tar -g incr -cf arch.1 -v foo
23428
23429 mv foo/bar foo/baz
23430
23431 echo \"Creating incremental archive\"
23432 tar -g incr -cf arch.2 -v foo
23433
23434 mv foo old
23435
23436 tar xfg arch.1 /dev/null
23437
23438 echo \"Begin directory listing 1\"
23439 find foo | sort
23440 echo \"End directory listing 1\"
23441
23442 tar xfg arch.2 /dev/null
23443 echo Begin directory listing 2
23444 find foo | sort
23445 echo End directory listing 2
23446 )"
23447 echo rename01.at:27 >"$at_check_line_file"
23448
23449 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
23450    false; }; then
23451   ( $at_traceon;
23452 mkdir posix
23453 (cd posix
23454 TEST_TAR_FORMAT=posix
23455 export TEST_TAR_FORMAT
23456 TAR_OPTIONS="-H posix"
23457 export TAR_OPTIONS
23458 rm -rf *
23459
23460
23461 test -z "`sort < /dev/null 2>&1`" || exit 77
23462
23463
23464 mkdir foo
23465 genfile --file foo/file1
23466 genfile --file foo/file2
23467 mkdir foo/bar
23468 genfile --file foo/bar/file
23469
23470 echo "Creating base archive"
23471 tar -g incr -cf arch.1 -v foo
23472
23473 mv foo/bar foo/baz
23474
23475 echo "Creating incremental archive"
23476 tar -g incr -cf arch.2 -v foo
23477
23478 mv foo old
23479
23480 tar xfg arch.1 /dev/null
23481
23482 echo "Begin directory listing 1"
23483 find foo | sort
23484 echo "End directory listing 1"
23485
23486 tar xfg arch.2 /dev/null
23487 echo Begin directory listing 2
23488 find foo | sort
23489 echo End directory listing 2
23490 ) ) >"$at_stdout" 2>"$at_stder1"
23491   at_func_filter_trace $?
23492 else
23493   ( :;
23494 mkdir posix
23495 (cd posix
23496 TEST_TAR_FORMAT=posix
23497 export TEST_TAR_FORMAT
23498 TAR_OPTIONS="-H posix"
23499 export TAR_OPTIONS
23500 rm -rf *
23501
23502
23503 test -z "`sort < /dev/null 2>&1`" || exit 77
23504
23505
23506 mkdir foo
23507 genfile --file foo/file1
23508 genfile --file foo/file2
23509 mkdir foo/bar
23510 genfile --file foo/bar/file
23511
23512 echo "Creating base archive"
23513 tar -g incr -cf arch.1 -v foo
23514
23515 mv foo/bar foo/baz
23516
23517 echo "Creating incremental archive"
23518 tar -g incr -cf arch.2 -v foo
23519
23520 mv foo old
23521
23522 tar xfg arch.1 /dev/null
23523
23524 echo "Begin directory listing 1"
23525 find foo | sort
23526 echo "End directory listing 1"
23527
23528 tar xfg arch.2 /dev/null
23529 echo Begin directory listing 2
23530 find foo | sort
23531 echo End directory listing 2
23532 ) ) >"$at_stdout" 2>"$at_stderr"
23533 fi
23534 at_status=$?
23535 at_failed=false
23536 echo >>"$at_stderr"; $as_echo "tar: foo: Directory is new
23537 tar: foo/bar: Directory is new
23538 tar: foo/baz: Directory has been renamed from \`foo/bar'
23539 " | \
23540   $at_diff - "$at_stderr" || at_failed=:
23541 echo >>"$at_stdout"; $as_echo "Creating base archive
23542 foo/
23543 foo/bar/
23544 foo/file1
23545 foo/file2
23546 foo/bar/file
23547 Creating incremental archive
23548 foo/
23549 foo/baz/
23550 Begin directory listing 1
23551 foo
23552 foo/bar
23553 foo/bar/file
23554 foo/file1
23555 foo/file2
23556 End directory listing 1
23557 Begin directory listing 2
23558 foo
23559 foo/baz
23560 foo/baz/file
23561 foo/file1
23562 foo/file2
23563 End directory listing 2
23564 " | \
23565   $at_diff - "$at_stdout" || at_failed=:
23566 at_func_check_status 0 $at_status "$at_srcdir/rename01.at:27"
23567
23568 $at_failed && at_func_log_failure
23569 $at_traceon; }
23570
23571
23572
23573
23574   $at_traceoff
23575   $at_times_p && times >"$at_times_file"
23576 ) 5>&1 2>&1 | eval $at_tee_pipe
23577 at_status=`cat "$at_status_file"`
23578 #AT_STOP_63
23579 #AT_START_64
23580 # 64. rename02.at:24: move between hierarchies
23581 at_setup_line='rename02.at:24'
23582 at_desc="move between hierarchies"
23583 $at_quiet $as_echo_n " 64: $at_desc                       "
23584 at_xfail=no
23585       test -f $XFAILFILE && at_xfail=yes
23586 echo "#                             -*- compilation -*-" >> "$at_group_log"
23587 (
23588   $as_echo "64. rename02.at:24: testing ..."
23589   $at_traceon
23590
23591
23592
23593
23594
23595   { $at_traceoff
23596 $as_echo "$at_srcdir/rename02.at:27:
23597 mkdir gnu
23598 (cd gnu
23599 TEST_TAR_FORMAT=gnu
23600 export TEST_TAR_FORMAT
23601 TAR_OPTIONS=\"-H gnu\"
23602 export TAR_OPTIONS
23603 rm -rf *
23604
23605
23606 test -z "`sort < /dev/null 2>&1`" || exit 77
23607
23608 mkdir foo
23609 genfile --file foo/file1
23610 genfile --file foo/file2
23611 mkdir foo/bar
23612 genfile --file foo/bar/file.r
23613 mkdir foo/bar/baz
23614 genfile --file foo/bar/baz/file.z
23615
23616 sleep 1
23617
23618 echo \"Creating base archive\"
23619 tar -g incr -cf arch.1 -v foo
23620
23621 mv foo/bar/baz foo
23622
23623 echo \"Creating incremental archive\"
23624 tar -g incr -cf arch.2 -v foo
23625
23626 mv foo old
23627
23628 tar xfg arch.1 /dev/null --warning=no-timestamp 2>tmperr
23629 sort tmperr >&2
23630
23631 echo \"Begin directory listing 1\"
23632 find foo | sort
23633 echo \"End directory listing 1\"
23634
23635 tar xfgv arch.2 /dev/null --warning=no-timestamp
23636 echo Begin directory listing 2
23637 find foo | sort
23638 echo End directory listing 2
23639 )"
23640 echo rename02.at:27 >"$at_check_line_file"
23641
23642 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
23643    false; }; then
23644   ( $at_traceon;
23645 mkdir gnu
23646 (cd gnu
23647 TEST_TAR_FORMAT=gnu
23648 export TEST_TAR_FORMAT
23649 TAR_OPTIONS="-H gnu"
23650 export TAR_OPTIONS
23651 rm -rf *
23652
23653
23654 test -z "`sort < /dev/null 2>&1`" || exit 77
23655
23656 mkdir foo
23657 genfile --file foo/file1
23658 genfile --file foo/file2
23659 mkdir foo/bar
23660 genfile --file foo/bar/file.r
23661 mkdir foo/bar/baz
23662 genfile --file foo/bar/baz/file.z
23663
23664 sleep 1
23665
23666 echo "Creating base archive"
23667 tar -g incr -cf arch.1 -v foo
23668
23669 mv foo/bar/baz foo
23670
23671 echo "Creating incremental archive"
23672 tar -g incr -cf arch.2 -v foo
23673
23674 mv foo old
23675
23676 tar xfg arch.1 /dev/null --warning=no-timestamp 2>tmperr
23677 sort tmperr >&2
23678
23679 echo "Begin directory listing 1"
23680 find foo | sort
23681 echo "End directory listing 1"
23682
23683 tar xfgv arch.2 /dev/null --warning=no-timestamp
23684 echo Begin directory listing 2
23685 find foo | sort
23686 echo End directory listing 2
23687 ) ) >"$at_stdout" 2>"$at_stder1"
23688   at_func_filter_trace $?
23689 else
23690   ( :;
23691 mkdir gnu
23692 (cd gnu
23693 TEST_TAR_FORMAT=gnu
23694 export TEST_TAR_FORMAT
23695 TAR_OPTIONS="-H gnu"
23696 export TAR_OPTIONS
23697 rm -rf *
23698
23699
23700 test -z "`sort < /dev/null 2>&1`" || exit 77
23701
23702 mkdir foo
23703 genfile --file foo/file1
23704 genfile --file foo/file2
23705 mkdir foo/bar
23706 genfile --file foo/bar/file.r
23707 mkdir foo/bar/baz
23708 genfile --file foo/bar/baz/file.z
23709
23710 sleep 1
23711
23712 echo "Creating base archive"
23713 tar -g incr -cf arch.1 -v foo
23714
23715 mv foo/bar/baz foo
23716
23717 echo "Creating incremental archive"
23718 tar -g incr -cf arch.2 -v foo
23719
23720 mv foo old
23721
23722 tar xfg arch.1 /dev/null --warning=no-timestamp 2>tmperr
23723 sort tmperr >&2
23724
23725 echo "Begin directory listing 1"
23726 find foo | sort
23727 echo "End directory listing 1"
23728
23729 tar xfgv arch.2 /dev/null --warning=no-timestamp
23730 echo Begin directory listing 2
23731 find foo | sort
23732 echo End directory listing 2
23733 ) ) >"$at_stdout" 2>"$at_stderr"
23734 fi
23735 at_status=$?
23736 at_failed=false
23737 echo >>"$at_stderr"; $as_echo "tar: foo: Directory is new
23738 tar: foo/bar: Directory is new
23739 tar: foo/bar/baz: Directory is new
23740 tar: foo/baz: Directory has been renamed from \`foo/bar/baz'
23741 " | \
23742   $at_diff - "$at_stderr" || at_failed=:
23743 echo >>"$at_stdout"; $as_echo "Creating base archive
23744 foo/
23745 foo/bar/
23746 foo/bar/baz/
23747 foo/file1
23748 foo/file2
23749 foo/bar/file.r
23750 foo/bar/baz/file.z
23751 Creating incremental archive
23752 foo/
23753 foo/bar/
23754 foo/baz/
23755 Begin directory listing 1
23756 foo
23757 foo/bar
23758 foo/bar/baz
23759 foo/bar/baz/file.z
23760 foo/bar/file.r
23761 foo/file1
23762 foo/file2
23763 End directory listing 1
23764 foo/
23765 foo/bar/
23766 foo/baz/
23767 Begin directory listing 2
23768 foo
23769 foo/bar
23770 foo/bar/file.r
23771 foo/baz
23772 foo/baz/file.z
23773 foo/file1
23774 foo/file2
23775 End directory listing 2
23776 " | \
23777   $at_diff - "$at_stdout" || at_failed=:
23778 at_func_check_status 0 $at_status "$at_srcdir/rename02.at:27"
23779
23780 $at_failed && at_func_log_failure
23781 $at_traceon; }
23782
23783               { $at_traceoff
23784 $as_echo "$at_srcdir/rename02.at:27:
23785 mkdir oldgnu
23786 (cd oldgnu
23787 TEST_TAR_FORMAT=oldgnu
23788 export TEST_TAR_FORMAT
23789 TAR_OPTIONS=\"-H oldgnu\"
23790 export TAR_OPTIONS
23791 rm -rf *
23792
23793
23794 test -z "`sort < /dev/null 2>&1`" || exit 77
23795
23796 mkdir foo
23797 genfile --file foo/file1
23798 genfile --file foo/file2
23799 mkdir foo/bar
23800 genfile --file foo/bar/file.r
23801 mkdir foo/bar/baz
23802 genfile --file foo/bar/baz/file.z
23803
23804 sleep 1
23805
23806 echo \"Creating base archive\"
23807 tar -g incr -cf arch.1 -v foo
23808
23809 mv foo/bar/baz foo
23810
23811 echo \"Creating incremental archive\"
23812 tar -g incr -cf arch.2 -v foo
23813
23814 mv foo old
23815
23816 tar xfg arch.1 /dev/null --warning=no-timestamp 2>tmperr
23817 sort tmperr >&2
23818
23819 echo \"Begin directory listing 1\"
23820 find foo | sort
23821 echo \"End directory listing 1\"
23822
23823 tar xfgv arch.2 /dev/null --warning=no-timestamp
23824 echo Begin directory listing 2
23825 find foo | sort
23826 echo End directory listing 2
23827 )"
23828 echo rename02.at:27 >"$at_check_line_file"
23829
23830 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
23831    false; }; then
23832   ( $at_traceon;
23833 mkdir oldgnu
23834 (cd oldgnu
23835 TEST_TAR_FORMAT=oldgnu
23836 export TEST_TAR_FORMAT
23837 TAR_OPTIONS="-H oldgnu"
23838 export TAR_OPTIONS
23839 rm -rf *
23840
23841
23842 test -z "`sort < /dev/null 2>&1`" || exit 77
23843
23844 mkdir foo
23845 genfile --file foo/file1
23846 genfile --file foo/file2
23847 mkdir foo/bar
23848 genfile --file foo/bar/file.r
23849 mkdir foo/bar/baz
23850 genfile --file foo/bar/baz/file.z
23851
23852 sleep 1
23853
23854 echo "Creating base archive"
23855 tar -g incr -cf arch.1 -v foo
23856
23857 mv foo/bar/baz foo
23858
23859 echo "Creating incremental archive"
23860 tar -g incr -cf arch.2 -v foo
23861
23862 mv foo old
23863
23864 tar xfg arch.1 /dev/null --warning=no-timestamp 2>tmperr
23865 sort tmperr >&2
23866
23867 echo "Begin directory listing 1"
23868 find foo | sort
23869 echo "End directory listing 1"
23870
23871 tar xfgv arch.2 /dev/null --warning=no-timestamp
23872 echo Begin directory listing 2
23873 find foo | sort
23874 echo End directory listing 2
23875 ) ) >"$at_stdout" 2>"$at_stder1"
23876   at_func_filter_trace $?
23877 else
23878   ( :;
23879 mkdir oldgnu
23880 (cd oldgnu
23881 TEST_TAR_FORMAT=oldgnu
23882 export TEST_TAR_FORMAT
23883 TAR_OPTIONS="-H oldgnu"
23884 export TAR_OPTIONS
23885 rm -rf *
23886
23887
23888 test -z "`sort < /dev/null 2>&1`" || exit 77
23889
23890 mkdir foo
23891 genfile --file foo/file1
23892 genfile --file foo/file2
23893 mkdir foo/bar
23894 genfile --file foo/bar/file.r
23895 mkdir foo/bar/baz
23896 genfile --file foo/bar/baz/file.z
23897
23898 sleep 1
23899
23900 echo "Creating base archive"
23901 tar -g incr -cf arch.1 -v foo
23902
23903 mv foo/bar/baz foo
23904
23905 echo "Creating incremental archive"
23906 tar -g incr -cf arch.2 -v foo
23907
23908 mv foo old
23909
23910 tar xfg arch.1 /dev/null --warning=no-timestamp 2>tmperr
23911 sort tmperr >&2
23912
23913 echo "Begin directory listing 1"
23914 find foo | sort
23915 echo "End directory listing 1"
23916
23917 tar xfgv arch.2 /dev/null --warning=no-timestamp
23918 echo Begin directory listing 2
23919 find foo | sort
23920 echo End directory listing 2
23921 ) ) >"$at_stdout" 2>"$at_stderr"
23922 fi
23923 at_status=$?
23924 at_failed=false
23925 echo >>"$at_stderr"; $as_echo "tar: foo: Directory is new
23926 tar: foo/bar: Directory is new
23927 tar: foo/bar/baz: Directory is new
23928 tar: foo/baz: Directory has been renamed from \`foo/bar/baz'
23929 " | \
23930   $at_diff - "$at_stderr" || at_failed=:
23931 echo >>"$at_stdout"; $as_echo "Creating base archive
23932 foo/
23933 foo/bar/
23934 foo/bar/baz/
23935 foo/file1
23936 foo/file2
23937 foo/bar/file.r
23938 foo/bar/baz/file.z
23939 Creating incremental archive
23940 foo/
23941 foo/bar/
23942 foo/baz/
23943 Begin directory listing 1
23944 foo
23945 foo/bar
23946 foo/bar/baz
23947 foo/bar/baz/file.z
23948 foo/bar/file.r
23949 foo/file1
23950 foo/file2
23951 End directory listing 1
23952 foo/
23953 foo/bar/
23954 foo/baz/
23955 Begin directory listing 2
23956 foo
23957 foo/bar
23958 foo/bar/file.r
23959 foo/baz
23960 foo/baz/file.z
23961 foo/file1
23962 foo/file2
23963 End directory listing 2
23964 " | \
23965   $at_diff - "$at_stdout" || at_failed=:
23966 at_func_check_status 0 $at_status "$at_srcdir/rename02.at:27"
23967
23968 $at_failed && at_func_log_failure
23969 $at_traceon; }
23970
23971               { $at_traceoff
23972 $as_echo "$at_srcdir/rename02.at:27:
23973 mkdir posix
23974 (cd posix
23975 TEST_TAR_FORMAT=posix
23976 export TEST_TAR_FORMAT
23977 TAR_OPTIONS=\"-H posix\"
23978 export TAR_OPTIONS
23979 rm -rf *
23980
23981
23982 test -z "`sort < /dev/null 2>&1`" || exit 77
23983
23984 mkdir foo
23985 genfile --file foo/file1
23986 genfile --file foo/file2
23987 mkdir foo/bar
23988 genfile --file foo/bar/file.r
23989 mkdir foo/bar/baz
23990 genfile --file foo/bar/baz/file.z
23991
23992 sleep 1
23993
23994 echo \"Creating base archive\"
23995 tar -g incr -cf arch.1 -v foo
23996
23997 mv foo/bar/baz foo
23998
23999 echo \"Creating incremental archive\"
24000 tar -g incr -cf arch.2 -v foo
24001
24002 mv foo old
24003
24004 tar xfg arch.1 /dev/null --warning=no-timestamp 2>tmperr
24005 sort tmperr >&2
24006
24007 echo \"Begin directory listing 1\"
24008 find foo | sort
24009 echo \"End directory listing 1\"
24010
24011 tar xfgv arch.2 /dev/null --warning=no-timestamp
24012 echo Begin directory listing 2
24013 find foo | sort
24014 echo End directory listing 2
24015 )"
24016 echo rename02.at:27 >"$at_check_line_file"
24017
24018 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
24019    false; }; then
24020   ( $at_traceon;
24021 mkdir posix
24022 (cd posix
24023 TEST_TAR_FORMAT=posix
24024 export TEST_TAR_FORMAT
24025 TAR_OPTIONS="-H posix"
24026 export TAR_OPTIONS
24027 rm -rf *
24028
24029
24030 test -z "`sort < /dev/null 2>&1`" || exit 77
24031
24032 mkdir foo
24033 genfile --file foo/file1
24034 genfile --file foo/file2
24035 mkdir foo/bar
24036 genfile --file foo/bar/file.r
24037 mkdir foo/bar/baz
24038 genfile --file foo/bar/baz/file.z
24039
24040 sleep 1
24041
24042 echo "Creating base archive"
24043 tar -g incr -cf arch.1 -v foo
24044
24045 mv foo/bar/baz foo
24046
24047 echo "Creating incremental archive"
24048 tar -g incr -cf arch.2 -v foo
24049
24050 mv foo old
24051
24052 tar xfg arch.1 /dev/null --warning=no-timestamp 2>tmperr
24053 sort tmperr >&2
24054
24055 echo "Begin directory listing 1"
24056 find foo | sort
24057 echo "End directory listing 1"
24058
24059 tar xfgv arch.2 /dev/null --warning=no-timestamp
24060 echo Begin directory listing 2
24061 find foo | sort
24062 echo End directory listing 2
24063 ) ) >"$at_stdout" 2>"$at_stder1"
24064   at_func_filter_trace $?
24065 else
24066   ( :;
24067 mkdir posix
24068 (cd posix
24069 TEST_TAR_FORMAT=posix
24070 export TEST_TAR_FORMAT
24071 TAR_OPTIONS="-H posix"
24072 export TAR_OPTIONS
24073 rm -rf *
24074
24075
24076 test -z "`sort < /dev/null 2>&1`" || exit 77
24077
24078 mkdir foo
24079 genfile --file foo/file1
24080 genfile --file foo/file2
24081 mkdir foo/bar
24082 genfile --file foo/bar/file.r
24083 mkdir foo/bar/baz
24084 genfile --file foo/bar/baz/file.z
24085
24086 sleep 1
24087
24088 echo "Creating base archive"
24089 tar -g incr -cf arch.1 -v foo
24090
24091 mv foo/bar/baz foo
24092
24093 echo "Creating incremental archive"
24094 tar -g incr -cf arch.2 -v foo
24095
24096 mv foo old
24097
24098 tar xfg arch.1 /dev/null --warning=no-timestamp 2>tmperr
24099 sort tmperr >&2
24100
24101 echo "Begin directory listing 1"
24102 find foo | sort
24103 echo "End directory listing 1"
24104
24105 tar xfgv arch.2 /dev/null --warning=no-timestamp
24106 echo Begin directory listing 2
24107 find foo | sort
24108 echo End directory listing 2
24109 ) ) >"$at_stdout" 2>"$at_stderr"
24110 fi
24111 at_status=$?
24112 at_failed=false
24113 echo >>"$at_stderr"; $as_echo "tar: foo: Directory is new
24114 tar: foo/bar: Directory is new
24115 tar: foo/bar/baz: Directory is new
24116 tar: foo/baz: Directory has been renamed from \`foo/bar/baz'
24117 " | \
24118   $at_diff - "$at_stderr" || at_failed=:
24119 echo >>"$at_stdout"; $as_echo "Creating base archive
24120 foo/
24121 foo/bar/
24122 foo/bar/baz/
24123 foo/file1
24124 foo/file2
24125 foo/bar/file.r
24126 foo/bar/baz/file.z
24127 Creating incremental archive
24128 foo/
24129 foo/bar/
24130 foo/baz/
24131 Begin directory listing 1
24132 foo
24133 foo/bar
24134 foo/bar/baz
24135 foo/bar/baz/file.z
24136 foo/bar/file.r
24137 foo/file1
24138 foo/file2
24139 End directory listing 1
24140 foo/
24141 foo/bar/
24142 foo/baz/
24143 Begin directory listing 2
24144 foo
24145 foo/bar
24146 foo/bar/file.r
24147 foo/baz
24148 foo/baz/file.z
24149 foo/file1
24150 foo/file2
24151 End directory listing 2
24152 " | \
24153   $at_diff - "$at_stdout" || at_failed=:
24154 at_func_check_status 0 $at_status "$at_srcdir/rename02.at:27"
24155
24156 $at_failed && at_func_log_failure
24157 $at_traceon; }
24158
24159
24160
24161
24162   $at_traceoff
24163   $at_times_p && times >"$at_times_file"
24164 ) 5>&1 2>&1 | eval $at_tee_pipe
24165 at_status=`cat "$at_status_file"`
24166 #AT_STOP_64
24167 #AT_START_65
24168 # 65. rename03.at:23: cyclic renames
24169 at_setup_line='rename03.at:23'
24170 at_desc="cyclic renames"
24171 $at_quiet $as_echo_n " 65: $at_desc                                 "
24172 at_xfail=no
24173       test -f $XFAILFILE && at_xfail=yes
24174 echo "#                             -*- compilation -*-" >> "$at_group_log"
24175 (
24176   $as_echo "65. rename03.at:23: testing ..."
24177   $at_traceon
24178
24179
24180
24181
24182
24183   { $at_traceoff
24184 $as_echo "$at_srcdir/rename03.at:26:
24185 mkdir gnu
24186 (cd gnu
24187 TEST_TAR_FORMAT=gnu
24188 export TEST_TAR_FORMAT
24189 TAR_OPTIONS=\"-H gnu\"
24190 export TAR_OPTIONS
24191 rm -rf *
24192
24193
24194 test -z "`sort < /dev/null 2>&1`" || exit 77
24195
24196
24197 mkdir foo
24198 genfile --file foo/file1
24199 genfile --file foo/file2
24200
24201 mkdir foo/a
24202 genfile --file foo/a/filea
24203
24204 mkdir foo/b
24205 genfile --file foo/b/fileb
24206
24207 mkdir foo/c
24208 genfile --file foo/c/filec
24209
24210 sleep 1
24211
24212 echo \"First dump\"
24213 echo \"First dump\">&2
24214 tar -g incr -cf arch.1 -v foo 2>tmperr
24215 sort tmperr >&2
24216
24217 # Shuffle directories:
24218 (cd foo
24219 mv a \$\$
24220 mv c a
24221 mv b c
24222 mv \$\$ b)
24223
24224 echo \"Second dump\"
24225 echo \"Second dump\" >&2
24226 tar -g incr -cf arch.2 -v foo 2>tmperr
24227 sort tmperr >&2
24228
24229 tar xfg arch.1 /dev/null --warning=no-timestamp
24230
24231 echo \"Begin directory listing 1\"
24232 find foo | sort
24233 echo \"End directory listing 1\"
24234
24235 tar xfgv arch.2 /dev/null --warning=no-timestamp
24236 echo Begin directory listing 2
24237 find foo | sort
24238 echo End directory listing 2
24239 )"
24240 echo rename03.at:26 >"$at_check_line_file"
24241
24242 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
24243    false; }; then
24244   ( $at_traceon;
24245 mkdir gnu
24246 (cd gnu
24247 TEST_TAR_FORMAT=gnu
24248 export TEST_TAR_FORMAT
24249 TAR_OPTIONS="-H gnu"
24250 export TAR_OPTIONS
24251 rm -rf *
24252
24253
24254 test -z "`sort < /dev/null 2>&1`" || exit 77
24255
24256
24257 mkdir foo
24258 genfile --file foo/file1
24259 genfile --file foo/file2
24260
24261 mkdir foo/a
24262 genfile --file foo/a/filea
24263
24264 mkdir foo/b
24265 genfile --file foo/b/fileb
24266
24267 mkdir foo/c
24268 genfile --file foo/c/filec
24269
24270 sleep 1
24271
24272 echo "First dump"
24273 echo "First dump">&2
24274 tar -g incr -cf arch.1 -v foo 2>tmperr
24275 sort tmperr >&2
24276
24277 # Shuffle directories:
24278 (cd foo
24279 mv a $$
24280 mv c a
24281 mv b c
24282 mv $$ b)
24283
24284 echo "Second dump"
24285 echo "Second dump" >&2
24286 tar -g incr -cf arch.2 -v foo 2>tmperr
24287 sort tmperr >&2
24288
24289 tar xfg arch.1 /dev/null --warning=no-timestamp
24290
24291 echo "Begin directory listing 1"
24292 find foo | sort
24293 echo "End directory listing 1"
24294
24295 tar xfgv arch.2 /dev/null --warning=no-timestamp
24296 echo Begin directory listing 2
24297 find foo | sort
24298 echo End directory listing 2
24299 ) ) >"$at_stdout" 2>"$at_stder1"
24300   at_func_filter_trace $?
24301 else
24302   ( :;
24303 mkdir gnu
24304 (cd gnu
24305 TEST_TAR_FORMAT=gnu
24306 export TEST_TAR_FORMAT
24307 TAR_OPTIONS="-H gnu"
24308 export TAR_OPTIONS
24309 rm -rf *
24310
24311
24312 test -z "`sort < /dev/null 2>&1`" || exit 77
24313
24314
24315 mkdir foo
24316 genfile --file foo/file1
24317 genfile --file foo/file2
24318
24319 mkdir foo/a
24320 genfile --file foo/a/filea
24321
24322 mkdir foo/b
24323 genfile --file foo/b/fileb
24324
24325 mkdir foo/c
24326 genfile --file foo/c/filec
24327
24328 sleep 1
24329
24330 echo "First dump"
24331 echo "First dump">&2
24332 tar -g incr -cf arch.1 -v foo 2>tmperr
24333 sort tmperr >&2
24334
24335 # Shuffle directories:
24336 (cd foo
24337 mv a $$
24338 mv c a
24339 mv b c
24340 mv $$ b)
24341
24342 echo "Second dump"
24343 echo "Second dump" >&2
24344 tar -g incr -cf arch.2 -v foo 2>tmperr
24345 sort tmperr >&2
24346
24347 tar xfg arch.1 /dev/null --warning=no-timestamp
24348
24349 echo "Begin directory listing 1"
24350 find foo | sort
24351 echo "End directory listing 1"
24352
24353 tar xfgv arch.2 /dev/null --warning=no-timestamp
24354 echo Begin directory listing 2
24355 find foo | sort
24356 echo End directory listing 2
24357 ) ) >"$at_stdout" 2>"$at_stderr"
24358 fi
24359 at_status=$?
24360 at_failed=false
24361 echo >>"$at_stderr"; $as_echo "First dump
24362 tar: foo/a: Directory is new
24363 tar: foo/b: Directory is new
24364 tar: foo/c: Directory is new
24365 tar: foo: Directory is new
24366 Second dump
24367 tar: foo/a: Directory has been renamed from \`foo/c'
24368 tar: foo/b: Directory has been renamed from \`foo/a'
24369 tar: foo/c: Directory has been renamed from \`foo/b'
24370 " | \
24371   $at_diff - "$at_stderr" || at_failed=:
24372 echo >>"$at_stdout"; $as_echo "First dump
24373 foo/
24374 foo/a/
24375 foo/b/
24376 foo/c/
24377 foo/file1
24378 foo/file2
24379 foo/a/filea
24380 foo/b/fileb
24381 foo/c/filec
24382 Second dump
24383 foo/
24384 foo/a/
24385 foo/b/
24386 foo/c/
24387 Begin directory listing 1
24388 foo
24389 foo/a
24390 foo/a/filea
24391 foo/b
24392 foo/b/fileb
24393 foo/c
24394 foo/c/filec
24395 foo/file1
24396 foo/file2
24397 End directory listing 1
24398 foo/
24399 foo/a/
24400 foo/b/
24401 foo/c/
24402 Begin directory listing 2
24403 foo
24404 foo/a
24405 foo/a/filec
24406 foo/b
24407 foo/b/filea
24408 foo/c
24409 foo/c/fileb
24410 foo/file1
24411 foo/file2
24412 End directory listing 2
24413 " | \
24414   $at_diff - "$at_stdout" || at_failed=:
24415 at_func_check_status 0 $at_status "$at_srcdir/rename03.at:26"
24416
24417 $at_failed && at_func_log_failure
24418 $at_traceon; }
24419
24420               { $at_traceoff
24421 $as_echo "$at_srcdir/rename03.at:26:
24422 mkdir oldgnu
24423 (cd oldgnu
24424 TEST_TAR_FORMAT=oldgnu
24425 export TEST_TAR_FORMAT
24426 TAR_OPTIONS=\"-H oldgnu\"
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 )"
24477 echo rename03.at:26 >"$at_check_line_file"
24478
24479 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
24480    false; }; then
24481   ( $at_traceon;
24482 mkdir oldgnu
24483 (cd oldgnu
24484 TEST_TAR_FORMAT=oldgnu
24485 export TEST_TAR_FORMAT
24486 TAR_OPTIONS="-H oldgnu"
24487 export TAR_OPTIONS
24488 rm -rf *
24489
24490
24491 test -z "`sort < /dev/null 2>&1`" || exit 77
24492
24493
24494 mkdir foo
24495 genfile --file foo/file1
24496 genfile --file foo/file2
24497
24498 mkdir foo/a
24499 genfile --file foo/a/filea
24500
24501 mkdir foo/b
24502 genfile --file foo/b/fileb
24503
24504 mkdir foo/c
24505 genfile --file foo/c/filec
24506
24507 sleep 1
24508
24509 echo "First dump"
24510 echo "First dump">&2
24511 tar -g incr -cf arch.1 -v foo 2>tmperr
24512 sort tmperr >&2
24513
24514 # Shuffle directories:
24515 (cd foo
24516 mv a $$
24517 mv c a
24518 mv b c
24519 mv $$ b)
24520
24521 echo "Second dump"
24522 echo "Second dump" >&2
24523 tar -g incr -cf arch.2 -v foo 2>tmperr
24524 sort tmperr >&2
24525
24526 tar xfg arch.1 /dev/null --warning=no-timestamp
24527
24528 echo "Begin directory listing 1"
24529 find foo | sort
24530 echo "End directory listing 1"
24531
24532 tar xfgv arch.2 /dev/null --warning=no-timestamp
24533 echo Begin directory listing 2
24534 find foo | sort
24535 echo End directory listing 2
24536 ) ) >"$at_stdout" 2>"$at_stder1"
24537   at_func_filter_trace $?
24538 else
24539   ( :;
24540 mkdir oldgnu
24541 (cd oldgnu
24542 TEST_TAR_FORMAT=oldgnu
24543 export TEST_TAR_FORMAT
24544 TAR_OPTIONS="-H oldgnu"
24545 export TAR_OPTIONS
24546 rm -rf *
24547
24548
24549 test -z "`sort < /dev/null 2>&1`" || exit 77
24550
24551
24552 mkdir foo
24553 genfile --file foo/file1
24554 genfile --file foo/file2
24555
24556 mkdir foo/a
24557 genfile --file foo/a/filea
24558
24559 mkdir foo/b
24560 genfile --file foo/b/fileb
24561
24562 mkdir foo/c
24563 genfile --file foo/c/filec
24564
24565 sleep 1
24566
24567 echo "First dump"
24568 echo "First dump">&2
24569 tar -g incr -cf arch.1 -v foo 2>tmperr
24570 sort tmperr >&2
24571
24572 # Shuffle directories:
24573 (cd foo
24574 mv a $$
24575 mv c a
24576 mv b c
24577 mv $$ b)
24578
24579 echo "Second dump"
24580 echo "Second dump" >&2
24581 tar -g incr -cf arch.2 -v foo 2>tmperr
24582 sort tmperr >&2
24583
24584 tar xfg arch.1 /dev/null --warning=no-timestamp
24585
24586 echo "Begin directory listing 1"
24587 find foo | sort
24588 echo "End directory listing 1"
24589
24590 tar xfgv arch.2 /dev/null --warning=no-timestamp
24591 echo Begin directory listing 2
24592 find foo | sort
24593 echo End directory listing 2
24594 ) ) >"$at_stdout" 2>"$at_stderr"
24595 fi
24596 at_status=$?
24597 at_failed=false
24598 echo >>"$at_stderr"; $as_echo "First dump
24599 tar: foo/a: Directory is new
24600 tar: foo/b: Directory is new
24601 tar: foo/c: Directory is new
24602 tar: foo: Directory is new
24603 Second dump
24604 tar: foo/a: Directory has been renamed from \`foo/c'
24605 tar: foo/b: Directory has been renamed from \`foo/a'
24606 tar: foo/c: Directory has been renamed from \`foo/b'
24607 " | \
24608   $at_diff - "$at_stderr" || at_failed=:
24609 echo >>"$at_stdout"; $as_echo "First dump
24610 foo/
24611 foo/a/
24612 foo/b/
24613 foo/c/
24614 foo/file1
24615 foo/file2
24616 foo/a/filea
24617 foo/b/fileb
24618 foo/c/filec
24619 Second dump
24620 foo/
24621 foo/a/
24622 foo/b/
24623 foo/c/
24624 Begin directory listing 1
24625 foo
24626 foo/a
24627 foo/a/filea
24628 foo/b
24629 foo/b/fileb
24630 foo/c
24631 foo/c/filec
24632 foo/file1
24633 foo/file2
24634 End directory listing 1
24635 foo/
24636 foo/a/
24637 foo/b/
24638 foo/c/
24639 Begin directory listing 2
24640 foo
24641 foo/a
24642 foo/a/filec
24643 foo/b
24644 foo/b/filea
24645 foo/c
24646 foo/c/fileb
24647 foo/file1
24648 foo/file2
24649 End directory listing 2
24650 " | \
24651   $at_diff - "$at_stdout" || at_failed=:
24652 at_func_check_status 0 $at_status "$at_srcdir/rename03.at:26"
24653
24654 $at_failed && at_func_log_failure
24655 $at_traceon; }
24656
24657               { $at_traceoff
24658 $as_echo "$at_srcdir/rename03.at:26:
24659 mkdir posix
24660 (cd posix
24661 TEST_TAR_FORMAT=posix
24662 export TEST_TAR_FORMAT
24663 TAR_OPTIONS=\"-H posix\"
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 )"
24714 echo rename03.at:26 >"$at_check_line_file"
24715
24716 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
24717    false; }; then
24718   ( $at_traceon;
24719 mkdir posix
24720 (cd posix
24721 TEST_TAR_FORMAT=posix
24722 export TEST_TAR_FORMAT
24723 TAR_OPTIONS="-H posix"
24724 export TAR_OPTIONS
24725 rm -rf *
24726
24727
24728 test -z "`sort < /dev/null 2>&1`" || exit 77
24729
24730
24731 mkdir foo
24732 genfile --file foo/file1
24733 genfile --file foo/file2
24734
24735 mkdir foo/a
24736 genfile --file foo/a/filea
24737
24738 mkdir foo/b
24739 genfile --file foo/b/fileb
24740
24741 mkdir foo/c
24742 genfile --file foo/c/filec
24743
24744 sleep 1
24745
24746 echo "First dump"
24747 echo "First dump">&2
24748 tar -g incr -cf arch.1 -v foo 2>tmperr
24749 sort tmperr >&2
24750
24751 # Shuffle directories:
24752 (cd foo
24753 mv a $$
24754 mv c a
24755 mv b c
24756 mv $$ b)
24757
24758 echo "Second dump"
24759 echo "Second dump" >&2
24760 tar -g incr -cf arch.2 -v foo 2>tmperr
24761 sort tmperr >&2
24762
24763 tar xfg arch.1 /dev/null --warning=no-timestamp
24764
24765 echo "Begin directory listing 1"
24766 find foo | sort
24767 echo "End directory listing 1"
24768
24769 tar xfgv arch.2 /dev/null --warning=no-timestamp
24770 echo Begin directory listing 2
24771 find foo | sort
24772 echo End directory listing 2
24773 ) ) >"$at_stdout" 2>"$at_stder1"
24774   at_func_filter_trace $?
24775 else
24776   ( :;
24777 mkdir posix
24778 (cd posix
24779 TEST_TAR_FORMAT=posix
24780 export TEST_TAR_FORMAT
24781 TAR_OPTIONS="-H posix"
24782 export TAR_OPTIONS
24783 rm -rf *
24784
24785
24786 test -z "`sort < /dev/null 2>&1`" || exit 77
24787
24788
24789 mkdir foo
24790 genfile --file foo/file1
24791 genfile --file foo/file2
24792
24793 mkdir foo/a
24794 genfile --file foo/a/filea
24795
24796 mkdir foo/b
24797 genfile --file foo/b/fileb
24798
24799 mkdir foo/c
24800 genfile --file foo/c/filec
24801
24802 sleep 1
24803
24804 echo "First dump"
24805 echo "First dump">&2
24806 tar -g incr -cf arch.1 -v foo 2>tmperr
24807 sort tmperr >&2
24808
24809 # Shuffle directories:
24810 (cd foo
24811 mv a $$
24812 mv c a
24813 mv b c
24814 mv $$ b)
24815
24816 echo "Second dump"
24817 echo "Second dump" >&2
24818 tar -g incr -cf arch.2 -v foo 2>tmperr
24819 sort tmperr >&2
24820
24821 tar xfg arch.1 /dev/null --warning=no-timestamp
24822
24823 echo "Begin directory listing 1"
24824 find foo | sort
24825 echo "End directory listing 1"
24826
24827 tar xfgv arch.2 /dev/null --warning=no-timestamp
24828 echo Begin directory listing 2
24829 find foo | sort
24830 echo End directory listing 2
24831 ) ) >"$at_stdout" 2>"$at_stderr"
24832 fi
24833 at_status=$?
24834 at_failed=false
24835 echo >>"$at_stderr"; $as_echo "First dump
24836 tar: foo/a: Directory is new
24837 tar: foo/b: Directory is new
24838 tar: foo/c: Directory is new
24839 tar: foo: Directory is new
24840 Second dump
24841 tar: foo/a: Directory has been renamed from \`foo/c'
24842 tar: foo/b: Directory has been renamed from \`foo/a'
24843 tar: foo/c: Directory has been renamed from \`foo/b'
24844 " | \
24845   $at_diff - "$at_stderr" || at_failed=:
24846 echo >>"$at_stdout"; $as_echo "First dump
24847 foo/
24848 foo/a/
24849 foo/b/
24850 foo/c/
24851 foo/file1
24852 foo/file2
24853 foo/a/filea
24854 foo/b/fileb
24855 foo/c/filec
24856 Second dump
24857 foo/
24858 foo/a/
24859 foo/b/
24860 foo/c/
24861 Begin directory listing 1
24862 foo
24863 foo/a
24864 foo/a/filea
24865 foo/b
24866 foo/b/fileb
24867 foo/c
24868 foo/c/filec
24869 foo/file1
24870 foo/file2
24871 End directory listing 1
24872 foo/
24873 foo/a/
24874 foo/b/
24875 foo/c/
24876 Begin directory listing 2
24877 foo
24878 foo/a
24879 foo/a/filec
24880 foo/b
24881 foo/b/filea
24882 foo/c
24883 foo/c/fileb
24884 foo/file1
24885 foo/file2
24886 End directory listing 2
24887 " | \
24888   $at_diff - "$at_stdout" || at_failed=:
24889 at_func_check_status 0 $at_status "$at_srcdir/rename03.at:26"
24890
24891 $at_failed && at_func_log_failure
24892 $at_traceon; }
24893
24894
24895
24896
24897   $at_traceoff
24898   $at_times_p && times >"$at_times_file"
24899 ) 5>&1 2>&1 | eval $at_tee_pipe
24900 at_status=`cat "$at_status_file"`
24901 #AT_STOP_65
24902 #AT_START_66
24903 # 66. rename04.at:27: renamed directory containing subdirectories
24904 at_setup_line='rename04.at:27'
24905 at_desc="renamed directory containing subdirectories"
24906 $at_quiet $as_echo_n " 66: $at_desc    "
24907 at_xfail=no
24908       test -f $XFAILFILE && at_xfail=yes
24909 echo "#                             -*- compilation -*-" >> "$at_group_log"
24910 (
24911   $as_echo "66. rename04.at:27: testing ..."
24912   $at_traceon
24913
24914
24915
24916
24917
24918   { $at_traceoff
24919 $as_echo "$at_srcdir/rename04.at:30:
24920 mkdir gnu
24921 (cd gnu
24922 TEST_TAR_FORMAT=gnu
24923 export TEST_TAR_FORMAT
24924 TAR_OPTIONS=\"-H gnu\"
24925 export TAR_OPTIONS
24926 rm -rf *
24927
24928
24929 test -z "`sort < /dev/null 2>&1`" || exit 77
24930
24931
24932 decho Creating directory structure
24933 mkdir directory
24934 mkdir directory/subdir
24935 genfile --file=directory/file
24936
24937 decho Creating initial archive
24938 tar -cf archive.1 -g db.1 directory
24939
24940 decho Renaming
24941 mv directory dir
24942
24943 decho Creating incremental archive
24944 cp db.1 db.2
24945 tar -cf archive.2 -g db.2 dir
24946
24947 mv dir orig
24948
24949 decho First restore
24950 tar -xf archive.1 -g db.1
24951 find directory | sort
24952
24953 decho Second restore
24954 tar -xf archive.2 -g db.2
24955 find dir | sort
24956 )"
24957 echo rename04.at:30 >"$at_check_line_file"
24958
24959 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
24960    false; }; then
24961   ( $at_traceon;
24962 mkdir gnu
24963 (cd gnu
24964 TEST_TAR_FORMAT=gnu
24965 export TEST_TAR_FORMAT
24966 TAR_OPTIONS="-H gnu"
24967 export TAR_OPTIONS
24968 rm -rf *
24969
24970
24971 test -z "`sort < /dev/null 2>&1`" || exit 77
24972
24973
24974 decho Creating directory structure
24975 mkdir directory
24976 mkdir directory/subdir
24977 genfile --file=directory/file
24978
24979 decho Creating initial archive
24980 tar -cf archive.1 -g db.1 directory
24981
24982 decho Renaming
24983 mv directory dir
24984
24985 decho Creating incremental archive
24986 cp db.1 db.2
24987 tar -cf archive.2 -g db.2 dir
24988
24989 mv dir orig
24990
24991 decho First restore
24992 tar -xf archive.1 -g db.1
24993 find directory | sort
24994
24995 decho Second restore
24996 tar -xf archive.2 -g db.2
24997 find dir | sort
24998 ) ) >"$at_stdout" 2>"$at_stder1"
24999   at_func_filter_trace $?
25000 else
25001   ( :;
25002 mkdir gnu
25003 (cd gnu
25004 TEST_TAR_FORMAT=gnu
25005 export TEST_TAR_FORMAT
25006 TAR_OPTIONS="-H gnu"
25007 export TAR_OPTIONS
25008 rm -rf *
25009
25010
25011 test -z "`sort < /dev/null 2>&1`" || exit 77
25012
25013
25014 decho Creating directory structure
25015 mkdir directory
25016 mkdir directory/subdir
25017 genfile --file=directory/file
25018
25019 decho Creating initial archive
25020 tar -cf archive.1 -g db.1 directory
25021
25022 decho Renaming
25023 mv directory dir
25024
25025 decho Creating incremental archive
25026 cp db.1 db.2
25027 tar -cf archive.2 -g db.2 dir
25028
25029 mv dir orig
25030
25031 decho First restore
25032 tar -xf archive.1 -g db.1
25033 find directory | sort
25034
25035 decho Second restore
25036 tar -xf archive.2 -g db.2
25037 find dir | sort
25038 ) ) >"$at_stdout" 2>"$at_stderr"
25039 fi
25040 at_status=$?
25041 at_failed=false
25042 echo >>"$at_stderr"; $as_echo "Creating directory structure
25043 Creating initial archive
25044 Renaming
25045 Creating incremental archive
25046 First restore
25047 Second restore
25048 " | \
25049   $at_diff - "$at_stderr" || at_failed=:
25050 echo >>"$at_stdout"; $as_echo "Creating directory structure
25051 Creating initial archive
25052 Renaming
25053 Creating incremental archive
25054 First restore
25055 directory
25056 directory/file
25057 directory/subdir
25058 Second restore
25059 dir
25060 dir/subdir
25061 " | \
25062   $at_diff - "$at_stdout" || at_failed=:
25063 at_func_check_status 0 $at_status "$at_srcdir/rename04.at:30"
25064
25065 $at_failed && at_func_log_failure
25066 $at_traceon; }
25067
25068               { $at_traceoff
25069 $as_echo "$at_srcdir/rename04.at:30:
25070 mkdir oldgnu
25071 (cd oldgnu
25072 TEST_TAR_FORMAT=oldgnu
25073 export TEST_TAR_FORMAT
25074 TAR_OPTIONS=\"-H oldgnu\"
25075 export TAR_OPTIONS
25076 rm -rf *
25077
25078
25079 test -z "`sort < /dev/null 2>&1`" || exit 77
25080
25081
25082 decho Creating directory structure
25083 mkdir directory
25084 mkdir directory/subdir
25085 genfile --file=directory/file
25086
25087 decho Creating initial archive
25088 tar -cf archive.1 -g db.1 directory
25089
25090 decho Renaming
25091 mv directory dir
25092
25093 decho Creating incremental archive
25094 cp db.1 db.2
25095 tar -cf archive.2 -g db.2 dir
25096
25097 mv dir orig
25098
25099 decho First restore
25100 tar -xf archive.1 -g db.1
25101 find directory | sort
25102
25103 decho Second restore
25104 tar -xf archive.2 -g db.2
25105 find dir | sort
25106 )"
25107 echo rename04.at:30 >"$at_check_line_file"
25108
25109 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
25110    false; }; then
25111   ( $at_traceon;
25112 mkdir oldgnu
25113 (cd oldgnu
25114 TEST_TAR_FORMAT=oldgnu
25115 export TEST_TAR_FORMAT
25116 TAR_OPTIONS="-H oldgnu"
25117 export TAR_OPTIONS
25118 rm -rf *
25119
25120
25121 test -z "`sort < /dev/null 2>&1`" || exit 77
25122
25123
25124 decho Creating directory structure
25125 mkdir directory
25126 mkdir directory/subdir
25127 genfile --file=directory/file
25128
25129 decho Creating initial archive
25130 tar -cf archive.1 -g db.1 directory
25131
25132 decho Renaming
25133 mv directory dir
25134
25135 decho Creating incremental archive
25136 cp db.1 db.2
25137 tar -cf archive.2 -g db.2 dir
25138
25139 mv dir orig
25140
25141 decho First restore
25142 tar -xf archive.1 -g db.1
25143 find directory | sort
25144
25145 decho Second restore
25146 tar -xf archive.2 -g db.2
25147 find dir | sort
25148 ) ) >"$at_stdout" 2>"$at_stder1"
25149   at_func_filter_trace $?
25150 else
25151   ( :;
25152 mkdir oldgnu
25153 (cd oldgnu
25154 TEST_TAR_FORMAT=oldgnu
25155 export TEST_TAR_FORMAT
25156 TAR_OPTIONS="-H oldgnu"
25157 export TAR_OPTIONS
25158 rm -rf *
25159
25160
25161 test -z "`sort < /dev/null 2>&1`" || exit 77
25162
25163
25164 decho Creating directory structure
25165 mkdir directory
25166 mkdir directory/subdir
25167 genfile --file=directory/file
25168
25169 decho Creating initial archive
25170 tar -cf archive.1 -g db.1 directory
25171
25172 decho Renaming
25173 mv directory dir
25174
25175 decho Creating incremental archive
25176 cp db.1 db.2
25177 tar -cf archive.2 -g db.2 dir
25178
25179 mv dir orig
25180
25181 decho First restore
25182 tar -xf archive.1 -g db.1
25183 find directory | sort
25184
25185 decho Second restore
25186 tar -xf archive.2 -g db.2
25187 find dir | sort
25188 ) ) >"$at_stdout" 2>"$at_stderr"
25189 fi
25190 at_status=$?
25191 at_failed=false
25192 echo >>"$at_stderr"; $as_echo "Creating directory structure
25193 Creating initial archive
25194 Renaming
25195 Creating incremental archive
25196 First restore
25197 Second restore
25198 " | \
25199   $at_diff - "$at_stderr" || at_failed=:
25200 echo >>"$at_stdout"; $as_echo "Creating directory structure
25201 Creating initial archive
25202 Renaming
25203 Creating incremental archive
25204 First restore
25205 directory
25206 directory/file
25207 directory/subdir
25208 Second restore
25209 dir
25210 dir/subdir
25211 " | \
25212   $at_diff - "$at_stdout" || at_failed=:
25213 at_func_check_status 0 $at_status "$at_srcdir/rename04.at:30"
25214
25215 $at_failed && at_func_log_failure
25216 $at_traceon; }
25217
25218               { $at_traceoff
25219 $as_echo "$at_srcdir/rename04.at:30:
25220 mkdir posix
25221 (cd posix
25222 TEST_TAR_FORMAT=posix
25223 export TEST_TAR_FORMAT
25224 TAR_OPTIONS=\"-H posix\"
25225 export TAR_OPTIONS
25226 rm -rf *
25227
25228
25229 test -z "`sort < /dev/null 2>&1`" || exit 77
25230
25231
25232 decho Creating directory structure
25233 mkdir directory
25234 mkdir directory/subdir
25235 genfile --file=directory/file
25236
25237 decho Creating initial archive
25238 tar -cf archive.1 -g db.1 directory
25239
25240 decho Renaming
25241 mv directory dir
25242
25243 decho Creating incremental archive
25244 cp db.1 db.2
25245 tar -cf archive.2 -g db.2 dir
25246
25247 mv dir orig
25248
25249 decho First restore
25250 tar -xf archive.1 -g db.1
25251 find directory | sort
25252
25253 decho Second restore
25254 tar -xf archive.2 -g db.2
25255 find dir | sort
25256 )"
25257 echo rename04.at:30 >"$at_check_line_file"
25258
25259 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
25260    false; }; then
25261   ( $at_traceon;
25262 mkdir posix
25263 (cd posix
25264 TEST_TAR_FORMAT=posix
25265 export TEST_TAR_FORMAT
25266 TAR_OPTIONS="-H posix"
25267 export TAR_OPTIONS
25268 rm -rf *
25269
25270
25271 test -z "`sort < /dev/null 2>&1`" || exit 77
25272
25273
25274 decho Creating directory structure
25275 mkdir directory
25276 mkdir directory/subdir
25277 genfile --file=directory/file
25278
25279 decho Creating initial archive
25280 tar -cf archive.1 -g db.1 directory
25281
25282 decho Renaming
25283 mv directory dir
25284
25285 decho Creating incremental archive
25286 cp db.1 db.2
25287 tar -cf archive.2 -g db.2 dir
25288
25289 mv dir orig
25290
25291 decho First restore
25292 tar -xf archive.1 -g db.1
25293 find directory | sort
25294
25295 decho Second restore
25296 tar -xf archive.2 -g db.2
25297 find dir | sort
25298 ) ) >"$at_stdout" 2>"$at_stder1"
25299   at_func_filter_trace $?
25300 else
25301   ( :;
25302 mkdir posix
25303 (cd posix
25304 TEST_TAR_FORMAT=posix
25305 export TEST_TAR_FORMAT
25306 TAR_OPTIONS="-H posix"
25307 export TAR_OPTIONS
25308 rm -rf *
25309
25310
25311 test -z "`sort < /dev/null 2>&1`" || exit 77
25312
25313
25314 decho Creating directory structure
25315 mkdir directory
25316 mkdir directory/subdir
25317 genfile --file=directory/file
25318
25319 decho Creating initial archive
25320 tar -cf archive.1 -g db.1 directory
25321
25322 decho Renaming
25323 mv directory dir
25324
25325 decho Creating incremental archive
25326 cp db.1 db.2
25327 tar -cf archive.2 -g db.2 dir
25328
25329 mv dir orig
25330
25331 decho First restore
25332 tar -xf archive.1 -g db.1
25333 find directory | sort
25334
25335 decho Second restore
25336 tar -xf archive.2 -g db.2
25337 find dir | sort
25338 ) ) >"$at_stdout" 2>"$at_stderr"
25339 fi
25340 at_status=$?
25341 at_failed=false
25342 echo >>"$at_stderr"; $as_echo "Creating directory structure
25343 Creating initial archive
25344 Renaming
25345 Creating incremental archive
25346 First restore
25347 Second restore
25348 " | \
25349   $at_diff - "$at_stderr" || at_failed=:
25350 echo >>"$at_stdout"; $as_echo "Creating directory structure
25351 Creating initial archive
25352 Renaming
25353 Creating incremental archive
25354 First restore
25355 directory
25356 directory/file
25357 directory/subdir
25358 Second restore
25359 dir
25360 dir/subdir
25361 " | \
25362   $at_diff - "$at_stdout" || at_failed=:
25363 at_func_check_status 0 $at_status "$at_srcdir/rename04.at:30"
25364
25365 $at_failed && at_func_log_failure
25366 $at_traceon; }
25367
25368
25369
25370
25371   $at_traceoff
25372   $at_times_p && times >"$at_times_file"
25373 ) 5>&1 2>&1 | eval $at_tee_pipe
25374 at_status=`cat "$at_status_file"`
25375 #AT_STOP_66
25376 #AT_START_67
25377 # 67. rename05.at:24: renamed subdirectories
25378 at_setup_line='rename05.at:24'
25379 at_desc="renamed subdirectories"
25380 $at_quiet $as_echo_n " 67: $at_desc                         "
25381 at_xfail=no
25382       test -f $XFAILFILE && at_xfail=yes
25383 echo "#                             -*- compilation -*-" >> "$at_group_log"
25384 (
25385   $as_echo "67. rename05.at:24: testing ..."
25386   $at_traceon
25387
25388
25389
25390
25391
25392   { $at_traceoff
25393 $as_echo "$at_srcdir/rename05.at:27:
25394 mkdir gnu
25395 (cd gnu
25396 TEST_TAR_FORMAT=gnu
25397 export TEST_TAR_FORMAT
25398 TAR_OPTIONS=\"-H gnu\"
25399 export TAR_OPTIONS
25400 rm -rf *
25401
25402
25403 test -z "`sort < /dev/null 2>&1`" || exit 77
25404
25405
25406 decho Creating directory structure
25407 mkdir directory
25408 mkdir directory/subdir
25409 genfile --file=directory/file
25410
25411 decho Creating initial archive
25412 tar -cf archive.1 -g db.1 directory
25413
25414 decho Renaming
25415 mv directory/subdir directory/subdir.0
25416 mv directory dir
25417
25418 decho Creating incremental archive
25419 cp db.1 db.2
25420 tar -cf archive.2 -g db.2 dir
25421
25422 mv dir orig
25423
25424 decho First restore
25425 tar -xf archive.1 -g db.1 --warning=no-timestamp
25426 find directory | sort
25427
25428 decho Second restore
25429 tar -xf archive.2 -g db.2 --warning=no-timestamp
25430 find dir | sort
25431 )"
25432 echo rename05.at:27 >"$at_check_line_file"
25433
25434 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
25435    false; }; then
25436   ( $at_traceon;
25437 mkdir gnu
25438 (cd gnu
25439 TEST_TAR_FORMAT=gnu
25440 export TEST_TAR_FORMAT
25441 TAR_OPTIONS="-H gnu"
25442 export TAR_OPTIONS
25443 rm -rf *
25444
25445
25446 test -z "`sort < /dev/null 2>&1`" || exit 77
25447
25448
25449 decho Creating directory structure
25450 mkdir directory
25451 mkdir directory/subdir
25452 genfile --file=directory/file
25453
25454 decho Creating initial archive
25455 tar -cf archive.1 -g db.1 directory
25456
25457 decho Renaming
25458 mv directory/subdir directory/subdir.0
25459 mv directory dir
25460
25461 decho Creating incremental archive
25462 cp db.1 db.2
25463 tar -cf archive.2 -g db.2 dir
25464
25465 mv dir orig
25466
25467 decho First restore
25468 tar -xf archive.1 -g db.1 --warning=no-timestamp
25469 find directory | sort
25470
25471 decho Second restore
25472 tar -xf archive.2 -g db.2 --warning=no-timestamp
25473 find dir | sort
25474 ) ) >"$at_stdout" 2>"$at_stder1"
25475   at_func_filter_trace $?
25476 else
25477   ( :;
25478 mkdir gnu
25479 (cd gnu
25480 TEST_TAR_FORMAT=gnu
25481 export TEST_TAR_FORMAT
25482 TAR_OPTIONS="-H gnu"
25483 export TAR_OPTIONS
25484 rm -rf *
25485
25486
25487 test -z "`sort < /dev/null 2>&1`" || exit 77
25488
25489
25490 decho Creating directory structure
25491 mkdir directory
25492 mkdir directory/subdir
25493 genfile --file=directory/file
25494
25495 decho Creating initial archive
25496 tar -cf archive.1 -g db.1 directory
25497
25498 decho Renaming
25499 mv directory/subdir directory/subdir.0
25500 mv directory dir
25501
25502 decho Creating incremental archive
25503 cp db.1 db.2
25504 tar -cf archive.2 -g db.2 dir
25505
25506 mv dir orig
25507
25508 decho First restore
25509 tar -xf archive.1 -g db.1 --warning=no-timestamp
25510 find directory | sort
25511
25512 decho Second restore
25513 tar -xf archive.2 -g db.2 --warning=no-timestamp
25514 find dir | sort
25515 ) ) >"$at_stdout" 2>"$at_stderr"
25516 fi
25517 at_status=$?
25518 at_failed=false
25519 echo >>"$at_stderr"; $as_echo "Creating directory structure
25520 Creating initial archive
25521 Renaming
25522 Creating incremental archive
25523 First restore
25524 Second restore
25525 " | \
25526   $at_diff - "$at_stderr" || at_failed=:
25527 echo >>"$at_stdout"; $as_echo "Creating directory structure
25528 Creating initial archive
25529 Renaming
25530 Creating incremental archive
25531 First restore
25532 directory
25533 directory/file
25534 directory/subdir
25535 Second restore
25536 dir
25537 dir/subdir.0
25538 " | \
25539   $at_diff - "$at_stdout" || at_failed=:
25540 at_func_check_status 0 $at_status "$at_srcdir/rename05.at:27"
25541
25542 $at_failed && at_func_log_failure
25543 $at_traceon; }
25544
25545               { $at_traceoff
25546 $as_echo "$at_srcdir/rename05.at:27:
25547 mkdir oldgnu
25548 (cd oldgnu
25549 TEST_TAR_FORMAT=oldgnu
25550 export TEST_TAR_FORMAT
25551 TAR_OPTIONS=\"-H oldgnu\"
25552 export TAR_OPTIONS
25553 rm -rf *
25554
25555
25556 test -z "`sort < /dev/null 2>&1`" || exit 77
25557
25558
25559 decho Creating directory structure
25560 mkdir directory
25561 mkdir directory/subdir
25562 genfile --file=directory/file
25563
25564 decho Creating initial archive
25565 tar -cf archive.1 -g db.1 directory
25566
25567 decho Renaming
25568 mv directory/subdir directory/subdir.0
25569 mv directory dir
25570
25571 decho Creating incremental archive
25572 cp db.1 db.2
25573 tar -cf archive.2 -g db.2 dir
25574
25575 mv dir orig
25576
25577 decho First restore
25578 tar -xf archive.1 -g db.1 --warning=no-timestamp
25579 find directory | sort
25580
25581 decho Second restore
25582 tar -xf archive.2 -g db.2 --warning=no-timestamp
25583 find dir | sort
25584 )"
25585 echo rename05.at:27 >"$at_check_line_file"
25586
25587 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
25588    false; }; then
25589   ( $at_traceon;
25590 mkdir oldgnu
25591 (cd oldgnu
25592 TEST_TAR_FORMAT=oldgnu
25593 export TEST_TAR_FORMAT
25594 TAR_OPTIONS="-H oldgnu"
25595 export TAR_OPTIONS
25596 rm -rf *
25597
25598
25599 test -z "`sort < /dev/null 2>&1`" || exit 77
25600
25601
25602 decho Creating directory structure
25603 mkdir directory
25604 mkdir directory/subdir
25605 genfile --file=directory/file
25606
25607 decho Creating initial archive
25608 tar -cf archive.1 -g db.1 directory
25609
25610 decho Renaming
25611 mv directory/subdir directory/subdir.0
25612 mv directory dir
25613
25614 decho Creating incremental archive
25615 cp db.1 db.2
25616 tar -cf archive.2 -g db.2 dir
25617
25618 mv dir orig
25619
25620 decho First restore
25621 tar -xf archive.1 -g db.1 --warning=no-timestamp
25622 find directory | sort
25623
25624 decho Second restore
25625 tar -xf archive.2 -g db.2 --warning=no-timestamp
25626 find dir | sort
25627 ) ) >"$at_stdout" 2>"$at_stder1"
25628   at_func_filter_trace $?
25629 else
25630   ( :;
25631 mkdir oldgnu
25632 (cd oldgnu
25633 TEST_TAR_FORMAT=oldgnu
25634 export TEST_TAR_FORMAT
25635 TAR_OPTIONS="-H oldgnu"
25636 export TAR_OPTIONS
25637 rm -rf *
25638
25639
25640 test -z "`sort < /dev/null 2>&1`" || exit 77
25641
25642
25643 decho Creating directory structure
25644 mkdir directory
25645 mkdir directory/subdir
25646 genfile --file=directory/file
25647
25648 decho Creating initial archive
25649 tar -cf archive.1 -g db.1 directory
25650
25651 decho Renaming
25652 mv directory/subdir directory/subdir.0
25653 mv directory dir
25654
25655 decho Creating incremental archive
25656 cp db.1 db.2
25657 tar -cf archive.2 -g db.2 dir
25658
25659 mv dir orig
25660
25661 decho First restore
25662 tar -xf archive.1 -g db.1 --warning=no-timestamp
25663 find directory | sort
25664
25665 decho Second restore
25666 tar -xf archive.2 -g db.2 --warning=no-timestamp
25667 find dir | sort
25668 ) ) >"$at_stdout" 2>"$at_stderr"
25669 fi
25670 at_status=$?
25671 at_failed=false
25672 echo >>"$at_stderr"; $as_echo "Creating directory structure
25673 Creating initial archive
25674 Renaming
25675 Creating incremental archive
25676 First restore
25677 Second restore
25678 " | \
25679   $at_diff - "$at_stderr" || at_failed=:
25680 echo >>"$at_stdout"; $as_echo "Creating directory structure
25681 Creating initial archive
25682 Renaming
25683 Creating incremental archive
25684 First restore
25685 directory
25686 directory/file
25687 directory/subdir
25688 Second restore
25689 dir
25690 dir/subdir.0
25691 " | \
25692   $at_diff - "$at_stdout" || at_failed=:
25693 at_func_check_status 0 $at_status "$at_srcdir/rename05.at:27"
25694
25695 $at_failed && at_func_log_failure
25696 $at_traceon; }
25697
25698               { $at_traceoff
25699 $as_echo "$at_srcdir/rename05.at:27:
25700 mkdir posix
25701 (cd posix
25702 TEST_TAR_FORMAT=posix
25703 export TEST_TAR_FORMAT
25704 TAR_OPTIONS=\"-H posix\"
25705 export TAR_OPTIONS
25706 rm -rf *
25707
25708
25709 test -z "`sort < /dev/null 2>&1`" || exit 77
25710
25711
25712 decho Creating directory structure
25713 mkdir directory
25714 mkdir directory/subdir
25715 genfile --file=directory/file
25716
25717 decho Creating initial archive
25718 tar -cf archive.1 -g db.1 directory
25719
25720 decho Renaming
25721 mv directory/subdir directory/subdir.0
25722 mv directory dir
25723
25724 decho Creating incremental archive
25725 cp db.1 db.2
25726 tar -cf archive.2 -g db.2 dir
25727
25728 mv dir orig
25729
25730 decho First restore
25731 tar -xf archive.1 -g db.1 --warning=no-timestamp
25732 find directory | sort
25733
25734 decho Second restore
25735 tar -xf archive.2 -g db.2 --warning=no-timestamp
25736 find dir | sort
25737 )"
25738 echo rename05.at:27 >"$at_check_line_file"
25739
25740 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
25741    false; }; then
25742   ( $at_traceon;
25743 mkdir posix
25744 (cd posix
25745 TEST_TAR_FORMAT=posix
25746 export TEST_TAR_FORMAT
25747 TAR_OPTIONS="-H posix"
25748 export TAR_OPTIONS
25749 rm -rf *
25750
25751
25752 test -z "`sort < /dev/null 2>&1`" || exit 77
25753
25754
25755 decho Creating directory structure
25756 mkdir directory
25757 mkdir directory/subdir
25758 genfile --file=directory/file
25759
25760 decho Creating initial archive
25761 tar -cf archive.1 -g db.1 directory
25762
25763 decho Renaming
25764 mv directory/subdir directory/subdir.0
25765 mv directory dir
25766
25767 decho Creating incremental archive
25768 cp db.1 db.2
25769 tar -cf archive.2 -g db.2 dir
25770
25771 mv dir orig
25772
25773 decho First restore
25774 tar -xf archive.1 -g db.1 --warning=no-timestamp
25775 find directory | sort
25776
25777 decho Second restore
25778 tar -xf archive.2 -g db.2 --warning=no-timestamp
25779 find dir | sort
25780 ) ) >"$at_stdout" 2>"$at_stder1"
25781   at_func_filter_trace $?
25782 else
25783   ( :;
25784 mkdir posix
25785 (cd posix
25786 TEST_TAR_FORMAT=posix
25787 export TEST_TAR_FORMAT
25788 TAR_OPTIONS="-H posix"
25789 export TAR_OPTIONS
25790 rm -rf *
25791
25792
25793 test -z "`sort < /dev/null 2>&1`" || exit 77
25794
25795
25796 decho Creating directory structure
25797 mkdir directory
25798 mkdir directory/subdir
25799 genfile --file=directory/file
25800
25801 decho Creating initial archive
25802 tar -cf archive.1 -g db.1 directory
25803
25804 decho Renaming
25805 mv directory/subdir directory/subdir.0
25806 mv directory dir
25807
25808 decho Creating incremental archive
25809 cp db.1 db.2
25810 tar -cf archive.2 -g db.2 dir
25811
25812 mv dir orig
25813
25814 decho First restore
25815 tar -xf archive.1 -g db.1 --warning=no-timestamp
25816 find directory | sort
25817
25818 decho Second restore
25819 tar -xf archive.2 -g db.2 --warning=no-timestamp
25820 find dir | sort
25821 ) ) >"$at_stdout" 2>"$at_stderr"
25822 fi
25823 at_status=$?
25824 at_failed=false
25825 echo >>"$at_stderr"; $as_echo "Creating directory structure
25826 Creating initial archive
25827 Renaming
25828 Creating incremental archive
25829 First restore
25830 Second restore
25831 " | \
25832   $at_diff - "$at_stderr" || at_failed=:
25833 echo >>"$at_stdout"; $as_echo "Creating directory structure
25834 Creating initial archive
25835 Renaming
25836 Creating incremental archive
25837 First restore
25838 directory
25839 directory/file
25840 directory/subdir
25841 Second restore
25842 dir
25843 dir/subdir.0
25844 " | \
25845   $at_diff - "$at_stdout" || at_failed=:
25846 at_func_check_status 0 $at_status "$at_srcdir/rename05.at:27"
25847
25848 $at_failed && at_func_log_failure
25849 $at_traceon; }
25850
25851
25852
25853
25854   $at_traceoff
25855   $at_times_p && times >"$at_times_file"
25856 ) 5>&1 2>&1 | eval $at_tee_pipe
25857 at_status=`cat "$at_status_file"`
25858 #AT_STOP_67
25859 #AT_START_68
25860 # 68. chtype.at:27: changed file types in incrementals
25861 at_setup_line='chtype.at:27'
25862 at_desc="changed file types in incrementals"
25863 $at_quiet $as_echo_n " 68: $at_desc             "
25864 at_xfail=no
25865       test -f $XFAILFILE && at_xfail=yes
25866 echo "#                             -*- compilation -*-" >> "$at_group_log"
25867 (
25868   $as_echo "68. chtype.at:27: testing ..."
25869   $at_traceon
25870
25871
25872
25873
25874
25875   { $at_traceoff
25876 $as_echo "$at_srcdir/chtype.at:30:
25877 mkdir gnu
25878 (cd gnu
25879 TEST_TAR_FORMAT=gnu
25880 export TEST_TAR_FORMAT
25881 TAR_OPTIONS=\"-H gnu\"
25882 export TAR_OPTIONS
25883 rm -rf *
25884
25885
25886 test -z "`sort < /dev/null 2>&1`" || exit 77
25887
25888
25889 install-sh -d directory/b/c >/dev/null && genfile --file directory/b/c/x || exit 77
25890 mkdir directory/a
25891 genfile --file directory/a/a
25892
25893 echo First backup
25894 tar --create --file=archive.1 --listed-incremental=db.1 directory
25895
25896 sleep 2
25897
25898 # Remove directory b and create a file with this name.
25899 # Previous versions were not able to restore over this file.
25900 rm -r directory/b
25901 genfile --file directory/b
25902 genfile --file directory/a/b
25903
25904 echo Second backup
25905 tar --create --file=archive.2 --listed-incremental=db.2 directory
25906
25907 # Delete a
25908 rm -r directory
25909
25910 echo Restore archive.1
25911 tar -xf archive.1 --listed-incremental=/dev/null --warning=no-timestamp
25912 echo Restore archive.2
25913 tar -xf archive.2 --listed-incremental=/dev/null --warning=no-timestamp
25914 find directory | sort
25915 )"
25916 echo chtype.at:30 >"$at_check_line_file"
25917
25918 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
25919    false; }; then
25920   ( $at_traceon;
25921 mkdir gnu
25922 (cd gnu
25923 TEST_TAR_FORMAT=gnu
25924 export TEST_TAR_FORMAT
25925 TAR_OPTIONS="-H gnu"
25926 export TAR_OPTIONS
25927 rm -rf *
25928
25929
25930 test -z "`sort < /dev/null 2>&1`" || exit 77
25931
25932
25933 install-sh -d directory/b/c >/dev/null && genfile --file directory/b/c/x || exit 77
25934 mkdir directory/a
25935 genfile --file directory/a/a
25936
25937 echo First backup
25938 tar --create --file=archive.1 --listed-incremental=db.1 directory
25939
25940 sleep 2
25941
25942 # Remove directory b and create a file with this name.
25943 # Previous versions were not able to restore over this file.
25944 rm -r directory/b
25945 genfile --file directory/b
25946 genfile --file directory/a/b
25947
25948 echo Second backup
25949 tar --create --file=archive.2 --listed-incremental=db.2 directory
25950
25951 # Delete a
25952 rm -r directory
25953
25954 echo Restore archive.1
25955 tar -xf archive.1 --listed-incremental=/dev/null --warning=no-timestamp
25956 echo Restore archive.2
25957 tar -xf archive.2 --listed-incremental=/dev/null --warning=no-timestamp
25958 find directory | sort
25959 ) ) >"$at_stdout" 2>"$at_stder1"
25960   at_func_filter_trace $?
25961 else
25962   ( :;
25963 mkdir gnu
25964 (cd gnu
25965 TEST_TAR_FORMAT=gnu
25966 export TEST_TAR_FORMAT
25967 TAR_OPTIONS="-H gnu"
25968 export TAR_OPTIONS
25969 rm -rf *
25970
25971
25972 test -z "`sort < /dev/null 2>&1`" || exit 77
25973
25974
25975 install-sh -d directory/b/c >/dev/null && genfile --file directory/b/c/x || exit 77
25976 mkdir directory/a
25977 genfile --file directory/a/a
25978
25979 echo First backup
25980 tar --create --file=archive.1 --listed-incremental=db.1 directory
25981
25982 sleep 2
25983
25984 # Remove directory b and create a file with this name.
25985 # Previous versions were not able to restore over this file.
25986 rm -r directory/b
25987 genfile --file directory/b
25988 genfile --file directory/a/b
25989
25990 echo Second backup
25991 tar --create --file=archive.2 --listed-incremental=db.2 directory
25992
25993 # Delete a
25994 rm -r directory
25995
25996 echo Restore archive.1
25997 tar -xf archive.1 --listed-incremental=/dev/null --warning=no-timestamp
25998 echo Restore archive.2
25999 tar -xf archive.2 --listed-incremental=/dev/null --warning=no-timestamp
26000 find directory | sort
26001 ) ) >"$at_stdout" 2>"$at_stderr"
26002 fi
26003 at_status=$?
26004 at_failed=false
26005 at_func_diff_devnull "$at_stderr" || at_failed=:
26006 echo >>"$at_stdout"; $as_echo "First backup
26007 Second backup
26008 Restore archive.1
26009 Restore archive.2
26010 directory
26011 directory/a
26012 directory/a/a
26013 directory/a/b
26014 directory/b
26015 " | \
26016   $at_diff - "$at_stdout" || at_failed=:
26017 at_func_check_status 0 $at_status "$at_srcdir/chtype.at:30"
26018
26019 $at_failed && at_func_log_failure
26020 $at_traceon; }
26021
26022               { $at_traceoff
26023 $as_echo "$at_srcdir/chtype.at:30:
26024 mkdir oldgnu
26025 (cd oldgnu
26026 TEST_TAR_FORMAT=oldgnu
26027 export TEST_TAR_FORMAT
26028 TAR_OPTIONS=\"-H oldgnu\"
26029 export TAR_OPTIONS
26030 rm -rf *
26031
26032
26033 test -z "`sort < /dev/null 2>&1`" || exit 77
26034
26035
26036 install-sh -d directory/b/c >/dev/null && genfile --file directory/b/c/x || exit 77
26037 mkdir directory/a
26038 genfile --file directory/a/a
26039
26040 echo First backup
26041 tar --create --file=archive.1 --listed-incremental=db.1 directory
26042
26043 sleep 2
26044
26045 # Remove directory b and create a file with this name.
26046 # Previous versions were not able to restore over this file.
26047 rm -r directory/b
26048 genfile --file directory/b
26049 genfile --file directory/a/b
26050
26051 echo Second backup
26052 tar --create --file=archive.2 --listed-incremental=db.2 directory
26053
26054 # Delete a
26055 rm -r directory
26056
26057 echo Restore archive.1
26058 tar -xf archive.1 --listed-incremental=/dev/null --warning=no-timestamp
26059 echo Restore archive.2
26060 tar -xf archive.2 --listed-incremental=/dev/null --warning=no-timestamp
26061 find directory | sort
26062 )"
26063 echo chtype.at:30 >"$at_check_line_file"
26064
26065 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
26066    false; }; then
26067   ( $at_traceon;
26068 mkdir oldgnu
26069 (cd oldgnu
26070 TEST_TAR_FORMAT=oldgnu
26071 export TEST_TAR_FORMAT
26072 TAR_OPTIONS="-H oldgnu"
26073 export TAR_OPTIONS
26074 rm -rf *
26075
26076
26077 test -z "`sort < /dev/null 2>&1`" || exit 77
26078
26079
26080 install-sh -d directory/b/c >/dev/null && genfile --file directory/b/c/x || exit 77
26081 mkdir directory/a
26082 genfile --file directory/a/a
26083
26084 echo First backup
26085 tar --create --file=archive.1 --listed-incremental=db.1 directory
26086
26087 sleep 2
26088
26089 # Remove directory b and create a file with this name.
26090 # Previous versions were not able to restore over this file.
26091 rm -r directory/b
26092 genfile --file directory/b
26093 genfile --file directory/a/b
26094
26095 echo Second backup
26096 tar --create --file=archive.2 --listed-incremental=db.2 directory
26097
26098 # Delete a
26099 rm -r directory
26100
26101 echo Restore archive.1
26102 tar -xf archive.1 --listed-incremental=/dev/null --warning=no-timestamp
26103 echo Restore archive.2
26104 tar -xf archive.2 --listed-incremental=/dev/null --warning=no-timestamp
26105 find directory | sort
26106 ) ) >"$at_stdout" 2>"$at_stder1"
26107   at_func_filter_trace $?
26108 else
26109   ( :;
26110 mkdir oldgnu
26111 (cd oldgnu
26112 TEST_TAR_FORMAT=oldgnu
26113 export TEST_TAR_FORMAT
26114 TAR_OPTIONS="-H oldgnu"
26115 export TAR_OPTIONS
26116 rm -rf *
26117
26118
26119 test -z "`sort < /dev/null 2>&1`" || exit 77
26120
26121
26122 install-sh -d directory/b/c >/dev/null && genfile --file directory/b/c/x || exit 77
26123 mkdir directory/a
26124 genfile --file directory/a/a
26125
26126 echo First backup
26127 tar --create --file=archive.1 --listed-incremental=db.1 directory
26128
26129 sleep 2
26130
26131 # Remove directory b and create a file with this name.
26132 # Previous versions were not able to restore over this file.
26133 rm -r directory/b
26134 genfile --file directory/b
26135 genfile --file directory/a/b
26136
26137 echo Second backup
26138 tar --create --file=archive.2 --listed-incremental=db.2 directory
26139
26140 # Delete a
26141 rm -r directory
26142
26143 echo Restore archive.1
26144 tar -xf archive.1 --listed-incremental=/dev/null --warning=no-timestamp
26145 echo Restore archive.2
26146 tar -xf archive.2 --listed-incremental=/dev/null --warning=no-timestamp
26147 find directory | sort
26148 ) ) >"$at_stdout" 2>"$at_stderr"
26149 fi
26150 at_status=$?
26151 at_failed=false
26152 at_func_diff_devnull "$at_stderr" || at_failed=:
26153 echo >>"$at_stdout"; $as_echo "First backup
26154 Second backup
26155 Restore archive.1
26156 Restore archive.2
26157 directory
26158 directory/a
26159 directory/a/a
26160 directory/a/b
26161 directory/b
26162 " | \
26163   $at_diff - "$at_stdout" || at_failed=:
26164 at_func_check_status 0 $at_status "$at_srcdir/chtype.at:30"
26165
26166 $at_failed && at_func_log_failure
26167 $at_traceon; }
26168
26169               { $at_traceoff
26170 $as_echo "$at_srcdir/chtype.at:30:
26171 mkdir posix
26172 (cd posix
26173 TEST_TAR_FORMAT=posix
26174 export TEST_TAR_FORMAT
26175 TAR_OPTIONS=\"-H posix\"
26176 export TAR_OPTIONS
26177 rm -rf *
26178
26179
26180 test -z "`sort < /dev/null 2>&1`" || exit 77
26181
26182
26183 install-sh -d directory/b/c >/dev/null && genfile --file directory/b/c/x || exit 77
26184 mkdir directory/a
26185 genfile --file directory/a/a
26186
26187 echo First backup
26188 tar --create --file=archive.1 --listed-incremental=db.1 directory
26189
26190 sleep 2
26191
26192 # Remove directory b and create a file with this name.
26193 # Previous versions were not able to restore over this file.
26194 rm -r directory/b
26195 genfile --file directory/b
26196 genfile --file directory/a/b
26197
26198 echo Second backup
26199 tar --create --file=archive.2 --listed-incremental=db.2 directory
26200
26201 # Delete a
26202 rm -r directory
26203
26204 echo Restore archive.1
26205 tar -xf archive.1 --listed-incremental=/dev/null --warning=no-timestamp
26206 echo Restore archive.2
26207 tar -xf archive.2 --listed-incremental=/dev/null --warning=no-timestamp
26208 find directory | sort
26209 )"
26210 echo chtype.at:30 >"$at_check_line_file"
26211
26212 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
26213    false; }; then
26214   ( $at_traceon;
26215 mkdir posix
26216 (cd posix
26217 TEST_TAR_FORMAT=posix
26218 export TEST_TAR_FORMAT
26219 TAR_OPTIONS="-H posix"
26220 export TAR_OPTIONS
26221 rm -rf *
26222
26223
26224 test -z "`sort < /dev/null 2>&1`" || exit 77
26225
26226
26227 install-sh -d directory/b/c >/dev/null && genfile --file directory/b/c/x || exit 77
26228 mkdir directory/a
26229 genfile --file directory/a/a
26230
26231 echo First backup
26232 tar --create --file=archive.1 --listed-incremental=db.1 directory
26233
26234 sleep 2
26235
26236 # Remove directory b and create a file with this name.
26237 # Previous versions were not able to restore over this file.
26238 rm -r directory/b
26239 genfile --file directory/b
26240 genfile --file directory/a/b
26241
26242 echo Second backup
26243 tar --create --file=archive.2 --listed-incremental=db.2 directory
26244
26245 # Delete a
26246 rm -r directory
26247
26248 echo Restore archive.1
26249 tar -xf archive.1 --listed-incremental=/dev/null --warning=no-timestamp
26250 echo Restore archive.2
26251 tar -xf archive.2 --listed-incremental=/dev/null --warning=no-timestamp
26252 find directory | sort
26253 ) ) >"$at_stdout" 2>"$at_stder1"
26254   at_func_filter_trace $?
26255 else
26256   ( :;
26257 mkdir posix
26258 (cd posix
26259 TEST_TAR_FORMAT=posix
26260 export TEST_TAR_FORMAT
26261 TAR_OPTIONS="-H posix"
26262 export TAR_OPTIONS
26263 rm -rf *
26264
26265
26266 test -z "`sort < /dev/null 2>&1`" || exit 77
26267
26268
26269 install-sh -d directory/b/c >/dev/null && genfile --file directory/b/c/x || exit 77
26270 mkdir directory/a
26271 genfile --file directory/a/a
26272
26273 echo First backup
26274 tar --create --file=archive.1 --listed-incremental=db.1 directory
26275
26276 sleep 2
26277
26278 # Remove directory b and create a file with this name.
26279 # Previous versions were not able to restore over this file.
26280 rm -r directory/b
26281 genfile --file directory/b
26282 genfile --file directory/a/b
26283
26284 echo Second backup
26285 tar --create --file=archive.2 --listed-incremental=db.2 directory
26286
26287 # Delete a
26288 rm -r directory
26289
26290 echo Restore archive.1
26291 tar -xf archive.1 --listed-incremental=/dev/null --warning=no-timestamp
26292 echo Restore archive.2
26293 tar -xf archive.2 --listed-incremental=/dev/null --warning=no-timestamp
26294 find directory | sort
26295 ) ) >"$at_stdout" 2>"$at_stderr"
26296 fi
26297 at_status=$?
26298 at_failed=false
26299 at_func_diff_devnull "$at_stderr" || at_failed=:
26300 echo >>"$at_stdout"; $as_echo "First backup
26301 Second backup
26302 Restore archive.1
26303 Restore archive.2
26304 directory
26305 directory/a
26306 directory/a/a
26307 directory/a/b
26308 directory/b
26309 " | \
26310   $at_diff - "$at_stdout" || at_failed=:
26311 at_func_check_status 0 $at_status "$at_srcdir/chtype.at:30"
26312
26313 $at_failed && at_func_log_failure
26314 $at_traceon; }
26315
26316
26317
26318
26319   $at_traceoff
26320   $at_times_p && times >"$at_times_file"
26321 ) 5>&1 2>&1 | eval $at_tee_pipe
26322 at_status=`cat "$at_status_file"`
26323 #AT_STOP_68
26324 #AT_START_69
26325 # 69. ignfail.at:23: ignfail
26326 at_setup_line='ignfail.at:23'
26327 at_desc="ignfail"
26328 $at_quiet $as_echo_n " 69: $at_desc                                        "
26329 at_xfail=no
26330       test -f $XFAILFILE && at_xfail=yes
26331 echo "#                             -*- compilation -*-" >> "$at_group_log"
26332 (
26333   $as_echo "69. ignfail.at:23: testing ..."
26334   $at_traceon
26335
26336
26337
26338
26339
26340   { $at_traceoff
26341 $as_echo "$at_srcdir/ignfail.at:26:
26342 mkdir v7
26343 (cd v7
26344 TEST_TAR_FORMAT=v7
26345 export TEST_TAR_FORMAT
26346 TAR_OPTIONS=\"-H v7\"
26347 export TAR_OPTIONS
26348 rm -rf *
26349
26350 # The test is meaningless for super-user.
26351
26352 echo "test" > $$
26353 chmod 0 $$
26354 cat $$ > /dev/null 2>&1
26355 result=$?
26356 rm -f $$
26357 test $result -eq 0 && exit 77
26358
26359
26360 touch file
26361 mkdir directory
26362 touch directory/file
26363
26364 echo 1>&2 -----
26365 chmod 000 file
26366 tar cf archive file
26367 status=\$?
26368 chmod 600 file
26369 test \$status = 2 || exit 1
26370
26371 echo 1>&2 -----
26372 chmod 000 file
26373 tar cf archive --ignore-failed-read file || exit 1
26374 status=\$?
26375 chmod 600 file
26376 test \$status = 0 || exit 1
26377
26378 echo 1>&2 -----
26379 chmod 000 directory
26380 tar cf archive directory
26381 status=\$?
26382 chmod 700 directory
26383 test \$status = 2 || exit 1
26384
26385 echo 1>&2 -----
26386 chmod 000 directory
26387 tar cf archive --ignore-failed-read directory || exit 1
26388 status=\$?
26389 chmod 700 directory
26390 test \$status = 0
26391 )"
26392 echo ignfail.at:26 >"$at_check_line_file"
26393
26394 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
26395    false; }; then
26396   ( $at_traceon;
26397 mkdir v7
26398 (cd v7
26399 TEST_TAR_FORMAT=v7
26400 export TEST_TAR_FORMAT
26401 TAR_OPTIONS="-H v7"
26402 export TAR_OPTIONS
26403 rm -rf *
26404
26405 # The test is meaningless for super-user.
26406
26407 echo "test" > $$
26408 chmod 0 $$
26409 cat $$ > /dev/null 2>&1
26410 result=$?
26411 rm -f $$
26412 test $result -eq 0 && exit 77
26413
26414
26415 touch file
26416 mkdir directory
26417 touch directory/file
26418
26419 echo 1>&2 -----
26420 chmod 000 file
26421 tar cf archive file
26422 status=$?
26423 chmod 600 file
26424 test $status = 2 || exit 1
26425
26426 echo 1>&2 -----
26427 chmod 000 file
26428 tar cf archive --ignore-failed-read file || exit 1
26429 status=$?
26430 chmod 600 file
26431 test $status = 0 || exit 1
26432
26433 echo 1>&2 -----
26434 chmod 000 directory
26435 tar cf archive directory
26436 status=$?
26437 chmod 700 directory
26438 test $status = 2 || exit 1
26439
26440 echo 1>&2 -----
26441 chmod 000 directory
26442 tar cf archive --ignore-failed-read directory || exit 1
26443 status=$?
26444 chmod 700 directory
26445 test $status = 0
26446 ) ) >"$at_stdout" 2>"$at_stder1"
26447   at_func_filter_trace $?
26448 else
26449   ( :;
26450 mkdir v7
26451 (cd v7
26452 TEST_TAR_FORMAT=v7
26453 export TEST_TAR_FORMAT
26454 TAR_OPTIONS="-H v7"
26455 export TAR_OPTIONS
26456 rm -rf *
26457
26458 # The test is meaningless for super-user.
26459
26460 echo "test" > $$
26461 chmod 0 $$
26462 cat $$ > /dev/null 2>&1
26463 result=$?
26464 rm -f $$
26465 test $result -eq 0 && exit 77
26466
26467
26468 touch file
26469 mkdir directory
26470 touch directory/file
26471
26472 echo 1>&2 -----
26473 chmod 000 file
26474 tar cf archive file
26475 status=$?
26476 chmod 600 file
26477 test $status = 2 || exit 1
26478
26479 echo 1>&2 -----
26480 chmod 000 file
26481 tar cf archive --ignore-failed-read file || exit 1
26482 status=$?
26483 chmod 600 file
26484 test $status = 0 || exit 1
26485
26486 echo 1>&2 -----
26487 chmod 000 directory
26488 tar cf archive directory
26489 status=$?
26490 chmod 700 directory
26491 test $status = 2 || exit 1
26492
26493 echo 1>&2 -----
26494 chmod 000 directory
26495 tar cf archive --ignore-failed-read directory || exit 1
26496 status=$?
26497 chmod 700 directory
26498 test $status = 0
26499 ) ) >"$at_stdout" 2>"$at_stderr"
26500 fi
26501 at_status=$?
26502 at_failed=false
26503 echo >>"$at_stderr"; $as_echo "-----
26504 tar: file: Cannot open: Permission denied
26505 tar: Exiting with failure status due to previous errors
26506 -----
26507 tar: file: Warning: Cannot open: Permission denied
26508 -----
26509 tar: directory: Cannot open: Permission denied
26510 tar: Exiting with failure status due to previous errors
26511 -----
26512 tar: directory: Warning: Cannot open: Permission denied
26513 " | \
26514   $at_diff - "$at_stderr" || at_failed=:
26515 at_func_diff_devnull "$at_stdout" || at_failed=:
26516 at_func_check_status 0 $at_status "$at_srcdir/ignfail.at:26"
26517
26518 $at_failed && at_func_log_failure
26519 $at_traceon; }
26520
26521               { $at_traceoff
26522 $as_echo "$at_srcdir/ignfail.at:26:
26523 mkdir oldgnu
26524 (cd oldgnu
26525 TEST_TAR_FORMAT=oldgnu
26526 export TEST_TAR_FORMAT
26527 TAR_OPTIONS=\"-H oldgnu\"
26528 export TAR_OPTIONS
26529 rm -rf *
26530
26531 # The test is meaningless for super-user.
26532
26533 echo "test" > $$
26534 chmod 0 $$
26535 cat $$ > /dev/null 2>&1
26536 result=$?
26537 rm -f $$
26538 test $result -eq 0 && exit 77
26539
26540
26541 touch file
26542 mkdir directory
26543 touch directory/file
26544
26545 echo 1>&2 -----
26546 chmod 000 file
26547 tar cf archive file
26548 status=\$?
26549 chmod 600 file
26550 test \$status = 2 || exit 1
26551
26552 echo 1>&2 -----
26553 chmod 000 file
26554 tar cf archive --ignore-failed-read file || exit 1
26555 status=\$?
26556 chmod 600 file
26557 test \$status = 0 || exit 1
26558
26559 echo 1>&2 -----
26560 chmod 000 directory
26561 tar cf archive directory
26562 status=\$?
26563 chmod 700 directory
26564 test \$status = 2 || exit 1
26565
26566 echo 1>&2 -----
26567 chmod 000 directory
26568 tar cf archive --ignore-failed-read directory || exit 1
26569 status=\$?
26570 chmod 700 directory
26571 test \$status = 0
26572 )"
26573 echo ignfail.at:26 >"$at_check_line_file"
26574
26575 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
26576    false; }; then
26577   ( $at_traceon;
26578 mkdir oldgnu
26579 (cd oldgnu
26580 TEST_TAR_FORMAT=oldgnu
26581 export TEST_TAR_FORMAT
26582 TAR_OPTIONS="-H oldgnu"
26583 export TAR_OPTIONS
26584 rm -rf *
26585
26586 # The test is meaningless for super-user.
26587
26588 echo "test" > $$
26589 chmod 0 $$
26590 cat $$ > /dev/null 2>&1
26591 result=$?
26592 rm -f $$
26593 test $result -eq 0 && exit 77
26594
26595
26596 touch file
26597 mkdir directory
26598 touch directory/file
26599
26600 echo 1>&2 -----
26601 chmod 000 file
26602 tar cf archive file
26603 status=$?
26604 chmod 600 file
26605 test $status = 2 || exit 1
26606
26607 echo 1>&2 -----
26608 chmod 000 file
26609 tar cf archive --ignore-failed-read file || exit 1
26610 status=$?
26611 chmod 600 file
26612 test $status = 0 || exit 1
26613
26614 echo 1>&2 -----
26615 chmod 000 directory
26616 tar cf archive directory
26617 status=$?
26618 chmod 700 directory
26619 test $status = 2 || exit 1
26620
26621 echo 1>&2 -----
26622 chmod 000 directory
26623 tar cf archive --ignore-failed-read directory || exit 1
26624 status=$?
26625 chmod 700 directory
26626 test $status = 0
26627 ) ) >"$at_stdout" 2>"$at_stder1"
26628   at_func_filter_trace $?
26629 else
26630   ( :;
26631 mkdir oldgnu
26632 (cd oldgnu
26633 TEST_TAR_FORMAT=oldgnu
26634 export TEST_TAR_FORMAT
26635 TAR_OPTIONS="-H oldgnu"
26636 export TAR_OPTIONS
26637 rm -rf *
26638
26639 # The test is meaningless for super-user.
26640
26641 echo "test" > $$
26642 chmod 0 $$
26643 cat $$ > /dev/null 2>&1
26644 result=$?
26645 rm -f $$
26646 test $result -eq 0 && exit 77
26647
26648
26649 touch file
26650 mkdir directory
26651 touch directory/file
26652
26653 echo 1>&2 -----
26654 chmod 000 file
26655 tar cf archive file
26656 status=$?
26657 chmod 600 file
26658 test $status = 2 || exit 1
26659
26660 echo 1>&2 -----
26661 chmod 000 file
26662 tar cf archive --ignore-failed-read file || exit 1
26663 status=$?
26664 chmod 600 file
26665 test $status = 0 || exit 1
26666
26667 echo 1>&2 -----
26668 chmod 000 directory
26669 tar cf archive directory
26670 status=$?
26671 chmod 700 directory
26672 test $status = 2 || exit 1
26673
26674 echo 1>&2 -----
26675 chmod 000 directory
26676 tar cf archive --ignore-failed-read directory || exit 1
26677 status=$?
26678 chmod 700 directory
26679 test $status = 0
26680 ) ) >"$at_stdout" 2>"$at_stderr"
26681 fi
26682 at_status=$?
26683 at_failed=false
26684 echo >>"$at_stderr"; $as_echo "-----
26685 tar: file: Cannot open: Permission denied
26686 tar: Exiting with failure status due to previous errors
26687 -----
26688 tar: file: Warning: Cannot open: Permission denied
26689 -----
26690 tar: directory: Cannot open: Permission denied
26691 tar: Exiting with failure status due to previous errors
26692 -----
26693 tar: directory: Warning: Cannot open: Permission denied
26694 " | \
26695   $at_diff - "$at_stderr" || at_failed=:
26696 at_func_diff_devnull "$at_stdout" || at_failed=:
26697 at_func_check_status 0 $at_status "$at_srcdir/ignfail.at:26"
26698
26699 $at_failed && at_func_log_failure
26700 $at_traceon; }
26701
26702               { $at_traceoff
26703 $as_echo "$at_srcdir/ignfail.at:26:
26704 mkdir ustar
26705 (cd ustar
26706 TEST_TAR_FORMAT=ustar
26707 export TEST_TAR_FORMAT
26708 TAR_OPTIONS=\"-H ustar\"
26709 export TAR_OPTIONS
26710 rm -rf *
26711
26712 # The test is meaningless for super-user.
26713
26714 echo "test" > $$
26715 chmod 0 $$
26716 cat $$ > /dev/null 2>&1
26717 result=$?
26718 rm -f $$
26719 test $result -eq 0 && exit 77
26720
26721
26722 touch file
26723 mkdir directory
26724 touch directory/file
26725
26726 echo 1>&2 -----
26727 chmod 000 file
26728 tar cf archive file
26729 status=\$?
26730 chmod 600 file
26731 test \$status = 2 || exit 1
26732
26733 echo 1>&2 -----
26734 chmod 000 file
26735 tar cf archive --ignore-failed-read file || exit 1
26736 status=\$?
26737 chmod 600 file
26738 test \$status = 0 || exit 1
26739
26740 echo 1>&2 -----
26741 chmod 000 directory
26742 tar cf archive directory
26743 status=\$?
26744 chmod 700 directory
26745 test \$status = 2 || exit 1
26746
26747 echo 1>&2 -----
26748 chmod 000 directory
26749 tar cf archive --ignore-failed-read directory || exit 1
26750 status=\$?
26751 chmod 700 directory
26752 test \$status = 0
26753 )"
26754 echo ignfail.at:26 >"$at_check_line_file"
26755
26756 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
26757    false; }; then
26758   ( $at_traceon;
26759 mkdir ustar
26760 (cd ustar
26761 TEST_TAR_FORMAT=ustar
26762 export TEST_TAR_FORMAT
26763 TAR_OPTIONS="-H ustar"
26764 export TAR_OPTIONS
26765 rm -rf *
26766
26767 # The test is meaningless for super-user.
26768
26769 echo "test" > $$
26770 chmod 0 $$
26771 cat $$ > /dev/null 2>&1
26772 result=$?
26773 rm -f $$
26774 test $result -eq 0 && exit 77
26775
26776
26777 touch file
26778 mkdir directory
26779 touch directory/file
26780
26781 echo 1>&2 -----
26782 chmod 000 file
26783 tar cf archive file
26784 status=$?
26785 chmod 600 file
26786 test $status = 2 || exit 1
26787
26788 echo 1>&2 -----
26789 chmod 000 file
26790 tar cf archive --ignore-failed-read file || exit 1
26791 status=$?
26792 chmod 600 file
26793 test $status = 0 || exit 1
26794
26795 echo 1>&2 -----
26796 chmod 000 directory
26797 tar cf archive directory
26798 status=$?
26799 chmod 700 directory
26800 test $status = 2 || exit 1
26801
26802 echo 1>&2 -----
26803 chmod 000 directory
26804 tar cf archive --ignore-failed-read directory || exit 1
26805 status=$?
26806 chmod 700 directory
26807 test $status = 0
26808 ) ) >"$at_stdout" 2>"$at_stder1"
26809   at_func_filter_trace $?
26810 else
26811   ( :;
26812 mkdir ustar
26813 (cd ustar
26814 TEST_TAR_FORMAT=ustar
26815 export TEST_TAR_FORMAT
26816 TAR_OPTIONS="-H ustar"
26817 export TAR_OPTIONS
26818 rm -rf *
26819
26820 # The test is meaningless for super-user.
26821
26822 echo "test" > $$
26823 chmod 0 $$
26824 cat $$ > /dev/null 2>&1
26825 result=$?
26826 rm -f $$
26827 test $result -eq 0 && exit 77
26828
26829
26830 touch file
26831 mkdir directory
26832 touch directory/file
26833
26834 echo 1>&2 -----
26835 chmod 000 file
26836 tar cf archive file
26837 status=$?
26838 chmod 600 file
26839 test $status = 2 || exit 1
26840
26841 echo 1>&2 -----
26842 chmod 000 file
26843 tar cf archive --ignore-failed-read file || exit 1
26844 status=$?
26845 chmod 600 file
26846 test $status = 0 || exit 1
26847
26848 echo 1>&2 -----
26849 chmod 000 directory
26850 tar cf archive directory
26851 status=$?
26852 chmod 700 directory
26853 test $status = 2 || exit 1
26854
26855 echo 1>&2 -----
26856 chmod 000 directory
26857 tar cf archive --ignore-failed-read directory || exit 1
26858 status=$?
26859 chmod 700 directory
26860 test $status = 0
26861 ) ) >"$at_stdout" 2>"$at_stderr"
26862 fi
26863 at_status=$?
26864 at_failed=false
26865 echo >>"$at_stderr"; $as_echo "-----
26866 tar: file: Cannot open: Permission denied
26867 tar: Exiting with failure status due to previous errors
26868 -----
26869 tar: file: Warning: Cannot open: Permission denied
26870 -----
26871 tar: directory: Cannot open: Permission denied
26872 tar: Exiting with failure status due to previous errors
26873 -----
26874 tar: directory: Warning: Cannot open: Permission denied
26875 " | \
26876   $at_diff - "$at_stderr" || at_failed=:
26877 at_func_diff_devnull "$at_stdout" || at_failed=:
26878 at_func_check_status 0 $at_status "$at_srcdir/ignfail.at:26"
26879
26880 $at_failed && at_func_log_failure
26881 $at_traceon; }
26882
26883               { $at_traceoff
26884 $as_echo "$at_srcdir/ignfail.at:26:
26885 mkdir posix
26886 (cd posix
26887 TEST_TAR_FORMAT=posix
26888 export TEST_TAR_FORMAT
26889 TAR_OPTIONS=\"-H posix\"
26890 export TAR_OPTIONS
26891 rm -rf *
26892
26893 # The test is meaningless for super-user.
26894
26895 echo "test" > $$
26896 chmod 0 $$
26897 cat $$ > /dev/null 2>&1
26898 result=$?
26899 rm -f $$
26900 test $result -eq 0 && exit 77
26901
26902
26903 touch file
26904 mkdir directory
26905 touch directory/file
26906
26907 echo 1>&2 -----
26908 chmod 000 file
26909 tar cf archive file
26910 status=\$?
26911 chmod 600 file
26912 test \$status = 2 || exit 1
26913
26914 echo 1>&2 -----
26915 chmod 000 file
26916 tar cf archive --ignore-failed-read file || exit 1
26917 status=\$?
26918 chmod 600 file
26919 test \$status = 0 || exit 1
26920
26921 echo 1>&2 -----
26922 chmod 000 directory
26923 tar cf archive directory
26924 status=\$?
26925 chmod 700 directory
26926 test \$status = 2 || exit 1
26927
26928 echo 1>&2 -----
26929 chmod 000 directory
26930 tar cf archive --ignore-failed-read directory || exit 1
26931 status=\$?
26932 chmod 700 directory
26933 test \$status = 0
26934 )"
26935 echo ignfail.at:26 >"$at_check_line_file"
26936
26937 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
26938    false; }; then
26939   ( $at_traceon;
26940 mkdir posix
26941 (cd posix
26942 TEST_TAR_FORMAT=posix
26943 export TEST_TAR_FORMAT
26944 TAR_OPTIONS="-H posix"
26945 export TAR_OPTIONS
26946 rm -rf *
26947
26948 # The test is meaningless for super-user.
26949
26950 echo "test" > $$
26951 chmod 0 $$
26952 cat $$ > /dev/null 2>&1
26953 result=$?
26954 rm -f $$
26955 test $result -eq 0 && exit 77
26956
26957
26958 touch file
26959 mkdir directory
26960 touch directory/file
26961
26962 echo 1>&2 -----
26963 chmod 000 file
26964 tar cf archive file
26965 status=$?
26966 chmod 600 file
26967 test $status = 2 || exit 1
26968
26969 echo 1>&2 -----
26970 chmod 000 file
26971 tar cf archive --ignore-failed-read file || exit 1
26972 status=$?
26973 chmod 600 file
26974 test $status = 0 || exit 1
26975
26976 echo 1>&2 -----
26977 chmod 000 directory
26978 tar cf archive directory
26979 status=$?
26980 chmod 700 directory
26981 test $status = 2 || exit 1
26982
26983 echo 1>&2 -----
26984 chmod 000 directory
26985 tar cf archive --ignore-failed-read directory || exit 1
26986 status=$?
26987 chmod 700 directory
26988 test $status = 0
26989 ) ) >"$at_stdout" 2>"$at_stder1"
26990   at_func_filter_trace $?
26991 else
26992   ( :;
26993 mkdir posix
26994 (cd posix
26995 TEST_TAR_FORMAT=posix
26996 export TEST_TAR_FORMAT
26997 TAR_OPTIONS="-H posix"
26998 export TAR_OPTIONS
26999 rm -rf *
27000
27001 # The test is meaningless for super-user.
27002
27003 echo "test" > $$
27004 chmod 0 $$
27005 cat $$ > /dev/null 2>&1
27006 result=$?
27007 rm -f $$
27008 test $result -eq 0 && exit 77
27009
27010
27011 touch file
27012 mkdir directory
27013 touch directory/file
27014
27015 echo 1>&2 -----
27016 chmod 000 file
27017 tar cf archive file
27018 status=$?
27019 chmod 600 file
27020 test $status = 2 || exit 1
27021
27022 echo 1>&2 -----
27023 chmod 000 file
27024 tar cf archive --ignore-failed-read file || exit 1
27025 status=$?
27026 chmod 600 file
27027 test $status = 0 || exit 1
27028
27029 echo 1>&2 -----
27030 chmod 000 directory
27031 tar cf archive directory
27032 status=$?
27033 chmod 700 directory
27034 test $status = 2 || exit 1
27035
27036 echo 1>&2 -----
27037 chmod 000 directory
27038 tar cf archive --ignore-failed-read directory || exit 1
27039 status=$?
27040 chmod 700 directory
27041 test $status = 0
27042 ) ) >"$at_stdout" 2>"$at_stderr"
27043 fi
27044 at_status=$?
27045 at_failed=false
27046 echo >>"$at_stderr"; $as_echo "-----
27047 tar: file: Cannot open: Permission denied
27048 tar: Exiting with failure status due to previous errors
27049 -----
27050 tar: file: Warning: Cannot open: Permission denied
27051 -----
27052 tar: directory: Cannot open: Permission denied
27053 tar: Exiting with failure status due to previous errors
27054 -----
27055 tar: directory: Warning: Cannot open: Permission denied
27056 " | \
27057   $at_diff - "$at_stderr" || at_failed=:
27058 at_func_diff_devnull "$at_stdout" || at_failed=:
27059 at_func_check_status 0 $at_status "$at_srcdir/ignfail.at:26"
27060
27061 $at_failed && at_func_log_failure
27062 $at_traceon; }
27063
27064               { $at_traceoff
27065 $as_echo "$at_srcdir/ignfail.at:26:
27066 mkdir gnu
27067 (cd gnu
27068 TEST_TAR_FORMAT=gnu
27069 export TEST_TAR_FORMAT
27070 TAR_OPTIONS=\"-H gnu\"
27071 export TAR_OPTIONS
27072 rm -rf *
27073
27074 # The test is meaningless for super-user.
27075
27076 echo "test" > $$
27077 chmod 0 $$
27078 cat $$ > /dev/null 2>&1
27079 result=$?
27080 rm -f $$
27081 test $result -eq 0 && exit 77
27082
27083
27084 touch file
27085 mkdir directory
27086 touch directory/file
27087
27088 echo 1>&2 -----
27089 chmod 000 file
27090 tar cf archive file
27091 status=\$?
27092 chmod 600 file
27093 test \$status = 2 || exit 1
27094
27095 echo 1>&2 -----
27096 chmod 000 file
27097 tar cf archive --ignore-failed-read file || exit 1
27098 status=\$?
27099 chmod 600 file
27100 test \$status = 0 || exit 1
27101
27102 echo 1>&2 -----
27103 chmod 000 directory
27104 tar cf archive directory
27105 status=\$?
27106 chmod 700 directory
27107 test \$status = 2 || exit 1
27108
27109 echo 1>&2 -----
27110 chmod 000 directory
27111 tar cf archive --ignore-failed-read directory || exit 1
27112 status=\$?
27113 chmod 700 directory
27114 test \$status = 0
27115 )"
27116 echo ignfail.at:26 >"$at_check_line_file"
27117
27118 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
27119    false; }; then
27120   ( $at_traceon;
27121 mkdir gnu
27122 (cd gnu
27123 TEST_TAR_FORMAT=gnu
27124 export TEST_TAR_FORMAT
27125 TAR_OPTIONS="-H gnu"
27126 export TAR_OPTIONS
27127 rm -rf *
27128
27129 # The test is meaningless for super-user.
27130
27131 echo "test" > $$
27132 chmod 0 $$
27133 cat $$ > /dev/null 2>&1
27134 result=$?
27135 rm -f $$
27136 test $result -eq 0 && exit 77
27137
27138
27139 touch file
27140 mkdir directory
27141 touch directory/file
27142
27143 echo 1>&2 -----
27144 chmod 000 file
27145 tar cf archive file
27146 status=$?
27147 chmod 600 file
27148 test $status = 2 || exit 1
27149
27150 echo 1>&2 -----
27151 chmod 000 file
27152 tar cf archive --ignore-failed-read file || exit 1
27153 status=$?
27154 chmod 600 file
27155 test $status = 0 || exit 1
27156
27157 echo 1>&2 -----
27158 chmod 000 directory
27159 tar cf archive directory
27160 status=$?
27161 chmod 700 directory
27162 test $status = 2 || exit 1
27163
27164 echo 1>&2 -----
27165 chmod 000 directory
27166 tar cf archive --ignore-failed-read directory || exit 1
27167 status=$?
27168 chmod 700 directory
27169 test $status = 0
27170 ) ) >"$at_stdout" 2>"$at_stder1"
27171   at_func_filter_trace $?
27172 else
27173   ( :;
27174 mkdir gnu
27175 (cd gnu
27176 TEST_TAR_FORMAT=gnu
27177 export TEST_TAR_FORMAT
27178 TAR_OPTIONS="-H gnu"
27179 export TAR_OPTIONS
27180 rm -rf *
27181
27182 # The test is meaningless for super-user.
27183
27184 echo "test" > $$
27185 chmod 0 $$
27186 cat $$ > /dev/null 2>&1
27187 result=$?
27188 rm -f $$
27189 test $result -eq 0 && exit 77
27190
27191
27192 touch file
27193 mkdir directory
27194 touch directory/file
27195
27196 echo 1>&2 -----
27197 chmod 000 file
27198 tar cf archive file
27199 status=$?
27200 chmod 600 file
27201 test $status = 2 || exit 1
27202
27203 echo 1>&2 -----
27204 chmod 000 file
27205 tar cf archive --ignore-failed-read file || exit 1
27206 status=$?
27207 chmod 600 file
27208 test $status = 0 || exit 1
27209
27210 echo 1>&2 -----
27211 chmod 000 directory
27212 tar cf archive directory
27213 status=$?
27214 chmod 700 directory
27215 test $status = 2 || exit 1
27216
27217 echo 1>&2 -----
27218 chmod 000 directory
27219 tar cf archive --ignore-failed-read directory || exit 1
27220 status=$?
27221 chmod 700 directory
27222 test $status = 0
27223 ) ) >"$at_stdout" 2>"$at_stderr"
27224 fi
27225 at_status=$?
27226 at_failed=false
27227 echo >>"$at_stderr"; $as_echo "-----
27228 tar: file: Cannot open: Permission denied
27229 tar: Exiting with failure status due to previous errors
27230 -----
27231 tar: file: Warning: Cannot open: Permission denied
27232 -----
27233 tar: directory: Cannot open: Permission denied
27234 tar: Exiting with failure status due to previous errors
27235 -----
27236 tar: directory: Warning: Cannot open: Permission denied
27237 " | \
27238   $at_diff - "$at_stderr" || at_failed=:
27239 at_func_diff_devnull "$at_stdout" || at_failed=:
27240 at_func_check_status 0 $at_status "$at_srcdir/ignfail.at:26"
27241
27242 $at_failed && at_func_log_failure
27243 $at_traceon; }
27244
27245
27246
27247
27248   $at_traceoff
27249   $at_times_p && times >"$at_times_file"
27250 ) 5>&1 2>&1 | eval $at_tee_pipe
27251 at_status=`cat "$at_status_file"`
27252 #AT_STOP_69
27253 #AT_START_70
27254 # 70. link01.at:33: link count gt 2
27255 at_setup_line='link01.at:33'
27256 at_desc="link count gt 2"
27257 $at_quiet $as_echo_n " 70: $at_desc                                "
27258 at_xfail=no
27259       test -f $XFAILFILE && at_xfail=yes
27260 echo "#                             -*- compilation -*-" >> "$at_group_log"
27261 (
27262   $as_echo "70. link01.at:33: testing ..."
27263   $at_traceon
27264
27265
27266
27267
27268
27269   { $at_traceoff
27270 $as_echo "$at_srcdir/link01.at:36:
27271 mkdir v7
27272 (cd v7
27273 TEST_TAR_FORMAT=v7
27274 export TEST_TAR_FORMAT
27275 TAR_OPTIONS=\"-H v7\"
27276 export TAR_OPTIONS
27277 rm -rf *
27278
27279 mkdir directory
27280 mkdir directory/test1
27281 mkdir directory/test2
27282
27283 echo TEST > directory/test1/test.txt
27284 ln directory/test1/test.txt directory/test2/test.txt || exit 77
27285
27286 tar cf archive directory/test1/test.txt directory/test1/test.txt
27287
27288 rm -r directory
27289 tar xf archive --warning=no-timestamp
27290
27291 ls directory/test1
27292 )"
27293 echo link01.at:36 >"$at_check_line_file"
27294
27295 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
27296    false; }; then
27297   ( $at_traceon;
27298 mkdir v7
27299 (cd v7
27300 TEST_TAR_FORMAT=v7
27301 export TEST_TAR_FORMAT
27302 TAR_OPTIONS="-H v7"
27303 export TAR_OPTIONS
27304 rm -rf *
27305
27306 mkdir directory
27307 mkdir directory/test1
27308 mkdir directory/test2
27309
27310 echo TEST > directory/test1/test.txt
27311 ln directory/test1/test.txt directory/test2/test.txt || exit 77
27312
27313 tar cf archive directory/test1/test.txt directory/test1/test.txt
27314
27315 rm -r directory
27316 tar xf archive --warning=no-timestamp
27317
27318 ls directory/test1
27319 ) ) >"$at_stdout" 2>"$at_stder1"
27320   at_func_filter_trace $?
27321 else
27322   ( :;
27323 mkdir v7
27324 (cd v7
27325 TEST_TAR_FORMAT=v7
27326 export TEST_TAR_FORMAT
27327 TAR_OPTIONS="-H v7"
27328 export TAR_OPTIONS
27329 rm -rf *
27330
27331 mkdir directory
27332 mkdir directory/test1
27333 mkdir directory/test2
27334
27335 echo TEST > directory/test1/test.txt
27336 ln directory/test1/test.txt directory/test2/test.txt || exit 77
27337
27338 tar cf archive directory/test1/test.txt directory/test1/test.txt
27339
27340 rm -r directory
27341 tar xf archive --warning=no-timestamp
27342
27343 ls directory/test1
27344 ) ) >"$at_stdout" 2>"$at_stderr"
27345 fi
27346 at_status=$?
27347 at_failed=false
27348 at_func_diff_devnull "$at_stderr" || at_failed=:
27349 echo >>"$at_stdout"; $as_echo "test.txt
27350 " | \
27351   $at_diff - "$at_stdout" || at_failed=:
27352 at_func_check_status 0 $at_status "$at_srcdir/link01.at:36"
27353
27354 $at_failed && at_func_log_failure
27355 $at_traceon; }
27356
27357               { $at_traceoff
27358 $as_echo "$at_srcdir/link01.at:36:
27359 mkdir oldgnu
27360 (cd oldgnu
27361 TEST_TAR_FORMAT=oldgnu
27362 export TEST_TAR_FORMAT
27363 TAR_OPTIONS=\"-H oldgnu\"
27364 export TAR_OPTIONS
27365 rm -rf *
27366
27367 mkdir directory
27368 mkdir directory/test1
27369 mkdir directory/test2
27370
27371 echo TEST > directory/test1/test.txt
27372 ln directory/test1/test.txt directory/test2/test.txt || exit 77
27373
27374 tar cf archive directory/test1/test.txt directory/test1/test.txt
27375
27376 rm -r directory
27377 tar xf archive --warning=no-timestamp
27378
27379 ls directory/test1
27380 )"
27381 echo link01.at:36 >"$at_check_line_file"
27382
27383 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
27384    false; }; then
27385   ( $at_traceon;
27386 mkdir oldgnu
27387 (cd oldgnu
27388 TEST_TAR_FORMAT=oldgnu
27389 export TEST_TAR_FORMAT
27390 TAR_OPTIONS="-H oldgnu"
27391 export TAR_OPTIONS
27392 rm -rf *
27393
27394 mkdir directory
27395 mkdir directory/test1
27396 mkdir directory/test2
27397
27398 echo TEST > directory/test1/test.txt
27399 ln directory/test1/test.txt directory/test2/test.txt || exit 77
27400
27401 tar cf archive directory/test1/test.txt directory/test1/test.txt
27402
27403 rm -r directory
27404 tar xf archive --warning=no-timestamp
27405
27406 ls directory/test1
27407 ) ) >"$at_stdout" 2>"$at_stder1"
27408   at_func_filter_trace $?
27409 else
27410   ( :;
27411 mkdir oldgnu
27412 (cd oldgnu
27413 TEST_TAR_FORMAT=oldgnu
27414 export TEST_TAR_FORMAT
27415 TAR_OPTIONS="-H oldgnu"
27416 export TAR_OPTIONS
27417 rm -rf *
27418
27419 mkdir directory
27420 mkdir directory/test1
27421 mkdir directory/test2
27422
27423 echo TEST > directory/test1/test.txt
27424 ln directory/test1/test.txt directory/test2/test.txt || exit 77
27425
27426 tar cf archive directory/test1/test.txt directory/test1/test.txt
27427
27428 rm -r directory
27429 tar xf archive --warning=no-timestamp
27430
27431 ls directory/test1
27432 ) ) >"$at_stdout" 2>"$at_stderr"
27433 fi
27434 at_status=$?
27435 at_failed=false
27436 at_func_diff_devnull "$at_stderr" || at_failed=:
27437 echo >>"$at_stdout"; $as_echo "test.txt
27438 " | \
27439   $at_diff - "$at_stdout" || at_failed=:
27440 at_func_check_status 0 $at_status "$at_srcdir/link01.at:36"
27441
27442 $at_failed && at_func_log_failure
27443 $at_traceon; }
27444
27445               { $at_traceoff
27446 $as_echo "$at_srcdir/link01.at:36:
27447 mkdir ustar
27448 (cd ustar
27449 TEST_TAR_FORMAT=ustar
27450 export TEST_TAR_FORMAT
27451 TAR_OPTIONS=\"-H ustar\"
27452 export TAR_OPTIONS
27453 rm -rf *
27454
27455 mkdir directory
27456 mkdir directory/test1
27457 mkdir directory/test2
27458
27459 echo TEST > directory/test1/test.txt
27460 ln directory/test1/test.txt directory/test2/test.txt || exit 77
27461
27462 tar cf archive directory/test1/test.txt directory/test1/test.txt
27463
27464 rm -r directory
27465 tar xf archive --warning=no-timestamp
27466
27467 ls directory/test1
27468 )"
27469 echo link01.at:36 >"$at_check_line_file"
27470
27471 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
27472    false; }; then
27473   ( $at_traceon;
27474 mkdir ustar
27475 (cd ustar
27476 TEST_TAR_FORMAT=ustar
27477 export TEST_TAR_FORMAT
27478 TAR_OPTIONS="-H ustar"
27479 export TAR_OPTIONS
27480 rm -rf *
27481
27482 mkdir directory
27483 mkdir directory/test1
27484 mkdir directory/test2
27485
27486 echo TEST > directory/test1/test.txt
27487 ln directory/test1/test.txt directory/test2/test.txt || exit 77
27488
27489 tar cf archive directory/test1/test.txt directory/test1/test.txt
27490
27491 rm -r directory
27492 tar xf archive --warning=no-timestamp
27493
27494 ls directory/test1
27495 ) ) >"$at_stdout" 2>"$at_stder1"
27496   at_func_filter_trace $?
27497 else
27498   ( :;
27499 mkdir ustar
27500 (cd ustar
27501 TEST_TAR_FORMAT=ustar
27502 export TEST_TAR_FORMAT
27503 TAR_OPTIONS="-H ustar"
27504 export TAR_OPTIONS
27505 rm -rf *
27506
27507 mkdir directory
27508 mkdir directory/test1
27509 mkdir directory/test2
27510
27511 echo TEST > directory/test1/test.txt
27512 ln directory/test1/test.txt directory/test2/test.txt || exit 77
27513
27514 tar cf archive directory/test1/test.txt directory/test1/test.txt
27515
27516 rm -r directory
27517 tar xf archive --warning=no-timestamp
27518
27519 ls directory/test1
27520 ) ) >"$at_stdout" 2>"$at_stderr"
27521 fi
27522 at_status=$?
27523 at_failed=false
27524 at_func_diff_devnull "$at_stderr" || at_failed=:
27525 echo >>"$at_stdout"; $as_echo "test.txt
27526 " | \
27527   $at_diff - "$at_stdout" || at_failed=:
27528 at_func_check_status 0 $at_status "$at_srcdir/link01.at:36"
27529
27530 $at_failed && at_func_log_failure
27531 $at_traceon; }
27532
27533               { $at_traceoff
27534 $as_echo "$at_srcdir/link01.at:36:
27535 mkdir posix
27536 (cd posix
27537 TEST_TAR_FORMAT=posix
27538 export TEST_TAR_FORMAT
27539 TAR_OPTIONS=\"-H posix\"
27540 export TAR_OPTIONS
27541 rm -rf *
27542
27543 mkdir directory
27544 mkdir directory/test1
27545 mkdir directory/test2
27546
27547 echo TEST > directory/test1/test.txt
27548 ln directory/test1/test.txt directory/test2/test.txt || exit 77
27549
27550 tar cf archive directory/test1/test.txt directory/test1/test.txt
27551
27552 rm -r directory
27553 tar xf archive --warning=no-timestamp
27554
27555 ls directory/test1
27556 )"
27557 echo link01.at:36 >"$at_check_line_file"
27558
27559 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
27560    false; }; then
27561   ( $at_traceon;
27562 mkdir posix
27563 (cd posix
27564 TEST_TAR_FORMAT=posix
27565 export TEST_TAR_FORMAT
27566 TAR_OPTIONS="-H posix"
27567 export TAR_OPTIONS
27568 rm -rf *
27569
27570 mkdir directory
27571 mkdir directory/test1
27572 mkdir directory/test2
27573
27574 echo TEST > directory/test1/test.txt
27575 ln directory/test1/test.txt directory/test2/test.txt || exit 77
27576
27577 tar cf archive directory/test1/test.txt directory/test1/test.txt
27578
27579 rm -r directory
27580 tar xf archive --warning=no-timestamp
27581
27582 ls directory/test1
27583 ) ) >"$at_stdout" 2>"$at_stder1"
27584   at_func_filter_trace $?
27585 else
27586   ( :;
27587 mkdir posix
27588 (cd posix
27589 TEST_TAR_FORMAT=posix
27590 export TEST_TAR_FORMAT
27591 TAR_OPTIONS="-H posix"
27592 export TAR_OPTIONS
27593 rm -rf *
27594
27595 mkdir directory
27596 mkdir directory/test1
27597 mkdir directory/test2
27598
27599 echo TEST > directory/test1/test.txt
27600 ln directory/test1/test.txt directory/test2/test.txt || exit 77
27601
27602 tar cf archive directory/test1/test.txt directory/test1/test.txt
27603
27604 rm -r directory
27605 tar xf archive --warning=no-timestamp
27606
27607 ls directory/test1
27608 ) ) >"$at_stdout" 2>"$at_stderr"
27609 fi
27610 at_status=$?
27611 at_failed=false
27612 at_func_diff_devnull "$at_stderr" || at_failed=:
27613 echo >>"$at_stdout"; $as_echo "test.txt
27614 " | \
27615   $at_diff - "$at_stdout" || at_failed=:
27616 at_func_check_status 0 $at_status "$at_srcdir/link01.at:36"
27617
27618 $at_failed && at_func_log_failure
27619 $at_traceon; }
27620
27621               { $at_traceoff
27622 $as_echo "$at_srcdir/link01.at:36:
27623 mkdir gnu
27624 (cd gnu
27625 TEST_TAR_FORMAT=gnu
27626 export TEST_TAR_FORMAT
27627 TAR_OPTIONS=\"-H gnu\"
27628 export TAR_OPTIONS
27629 rm -rf *
27630
27631 mkdir directory
27632 mkdir directory/test1
27633 mkdir directory/test2
27634
27635 echo TEST > directory/test1/test.txt
27636 ln directory/test1/test.txt directory/test2/test.txt || exit 77
27637
27638 tar cf archive directory/test1/test.txt directory/test1/test.txt
27639
27640 rm -r directory
27641 tar xf archive --warning=no-timestamp
27642
27643 ls directory/test1
27644 )"
27645 echo link01.at:36 >"$at_check_line_file"
27646
27647 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
27648    false; }; then
27649   ( $at_traceon;
27650 mkdir gnu
27651 (cd gnu
27652 TEST_TAR_FORMAT=gnu
27653 export TEST_TAR_FORMAT
27654 TAR_OPTIONS="-H gnu"
27655 export TAR_OPTIONS
27656 rm -rf *
27657
27658 mkdir directory
27659 mkdir directory/test1
27660 mkdir directory/test2
27661
27662 echo TEST > directory/test1/test.txt
27663 ln directory/test1/test.txt directory/test2/test.txt || exit 77
27664
27665 tar cf archive directory/test1/test.txt directory/test1/test.txt
27666
27667 rm -r directory
27668 tar xf archive --warning=no-timestamp
27669
27670 ls directory/test1
27671 ) ) >"$at_stdout" 2>"$at_stder1"
27672   at_func_filter_trace $?
27673 else
27674   ( :;
27675 mkdir gnu
27676 (cd gnu
27677 TEST_TAR_FORMAT=gnu
27678 export TEST_TAR_FORMAT
27679 TAR_OPTIONS="-H gnu"
27680 export TAR_OPTIONS
27681 rm -rf *
27682
27683 mkdir directory
27684 mkdir directory/test1
27685 mkdir directory/test2
27686
27687 echo TEST > directory/test1/test.txt
27688 ln directory/test1/test.txt directory/test2/test.txt || exit 77
27689
27690 tar cf archive directory/test1/test.txt directory/test1/test.txt
27691
27692 rm -r directory
27693 tar xf archive --warning=no-timestamp
27694
27695 ls directory/test1
27696 ) ) >"$at_stdout" 2>"$at_stderr"
27697 fi
27698 at_status=$?
27699 at_failed=false
27700 at_func_diff_devnull "$at_stderr" || at_failed=:
27701 echo >>"$at_stdout"; $as_echo "test.txt
27702 " | \
27703   $at_diff - "$at_stdout" || at_failed=:
27704 at_func_check_status 0 $at_status "$at_srcdir/link01.at:36"
27705
27706 $at_failed && at_func_log_failure
27707 $at_traceon; }
27708
27709
27710
27711
27712   $at_traceoff
27713   $at_times_p && times >"$at_times_file"
27714 ) 5>&1 2>&1 | eval $at_tee_pipe
27715 at_status=`cat "$at_status_file"`
27716 #AT_STOP_70
27717 #AT_START_71
27718 # 71. link02.at:32: preserve hard links with --remove-files
27719 at_setup_line='link02.at:32'
27720 at_desc="preserve hard links with --remove-files"
27721 $at_quiet $as_echo_n " 71: $at_desc        "
27722 at_xfail=no
27723       test -f $XFAILFILE && at_xfail=yes
27724 echo "#                             -*- compilation -*-" >> "$at_group_log"
27725 (
27726   $as_echo "71. link02.at:32: testing ..."
27727   $at_traceon
27728
27729
27730
27731
27732
27733   { $at_traceoff
27734 $as_echo "$at_srcdir/link02.at:35:
27735 mkdir v7
27736 (cd v7
27737 TEST_TAR_FORMAT=v7
27738 export TEST_TAR_FORMAT
27739 TAR_OPTIONS=\"-H v7\"
27740 export TAR_OPTIONS
27741 rm -rf *
27742
27743 genfile -l 64 -f file1
27744 ln file1 file2
27745 ln file2 file3
27746 ln file3 file4
27747 tar -c -f archive --remove-files file1 file2 file3 file4
27748 tar tfv archive | sed -n 's/.*file[2-4] link to //p'
27749 )"
27750 echo link02.at:35 >"$at_check_line_file"
27751
27752 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
27753    false; }; then
27754   ( $at_traceon;
27755 mkdir v7
27756 (cd v7
27757 TEST_TAR_FORMAT=v7
27758 export TEST_TAR_FORMAT
27759 TAR_OPTIONS="-H v7"
27760 export TAR_OPTIONS
27761 rm -rf *
27762
27763 genfile -l 64 -f file1
27764 ln file1 file2
27765 ln file2 file3
27766 ln file3 file4
27767 tar -c -f archive --remove-files file1 file2 file3 file4
27768 tar tfv archive | sed -n 's/.*file[2-4] link to //p'
27769 ) ) >"$at_stdout" 2>"$at_stder1"
27770   at_func_filter_trace $?
27771 else
27772   ( :;
27773 mkdir v7
27774 (cd v7
27775 TEST_TAR_FORMAT=v7
27776 export TEST_TAR_FORMAT
27777 TAR_OPTIONS="-H v7"
27778 export TAR_OPTIONS
27779 rm -rf *
27780
27781 genfile -l 64 -f file1
27782 ln file1 file2
27783 ln file2 file3
27784 ln file3 file4
27785 tar -c -f archive --remove-files file1 file2 file3 file4
27786 tar tfv archive | sed -n 's/.*file[2-4] link to //p'
27787 ) ) >"$at_stdout" 2>"$at_stderr"
27788 fi
27789 at_status=$?
27790 at_failed=false
27791 at_func_diff_devnull "$at_stderr" || at_failed=:
27792 echo >>"$at_stdout"; $as_echo "file1
27793 file1
27794 file1
27795 " | \
27796   $at_diff - "$at_stdout" || at_failed=:
27797 at_func_check_status 0 $at_status "$at_srcdir/link02.at:35"
27798
27799 $at_failed && at_func_log_failure
27800 $at_traceon; }
27801
27802               { $at_traceoff
27803 $as_echo "$at_srcdir/link02.at:35:
27804 mkdir oldgnu
27805 (cd oldgnu
27806 TEST_TAR_FORMAT=oldgnu
27807 export TEST_TAR_FORMAT
27808 TAR_OPTIONS=\"-H oldgnu\"
27809 export TAR_OPTIONS
27810 rm -rf *
27811
27812 genfile -l 64 -f file1
27813 ln file1 file2
27814 ln file2 file3
27815 ln file3 file4
27816 tar -c -f archive --remove-files file1 file2 file3 file4
27817 tar tfv archive | sed -n 's/.*file[2-4] link to //p'
27818 )"
27819 echo link02.at:35 >"$at_check_line_file"
27820
27821 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
27822    false; }; then
27823   ( $at_traceon;
27824 mkdir oldgnu
27825 (cd oldgnu
27826 TEST_TAR_FORMAT=oldgnu
27827 export TEST_TAR_FORMAT
27828 TAR_OPTIONS="-H oldgnu"
27829 export TAR_OPTIONS
27830 rm -rf *
27831
27832 genfile -l 64 -f file1
27833 ln file1 file2
27834 ln file2 file3
27835 ln file3 file4
27836 tar -c -f archive --remove-files file1 file2 file3 file4
27837 tar tfv archive | sed -n 's/.*file[2-4] link to //p'
27838 ) ) >"$at_stdout" 2>"$at_stder1"
27839   at_func_filter_trace $?
27840 else
27841   ( :;
27842 mkdir oldgnu
27843 (cd oldgnu
27844 TEST_TAR_FORMAT=oldgnu
27845 export TEST_TAR_FORMAT
27846 TAR_OPTIONS="-H oldgnu"
27847 export TAR_OPTIONS
27848 rm -rf *
27849
27850 genfile -l 64 -f file1
27851 ln file1 file2
27852 ln file2 file3
27853 ln file3 file4
27854 tar -c -f archive --remove-files file1 file2 file3 file4
27855 tar tfv archive | sed -n 's/.*file[2-4] link to //p'
27856 ) ) >"$at_stdout" 2>"$at_stderr"
27857 fi
27858 at_status=$?
27859 at_failed=false
27860 at_func_diff_devnull "$at_stderr" || at_failed=:
27861 echo >>"$at_stdout"; $as_echo "file1
27862 file1
27863 file1
27864 " | \
27865   $at_diff - "$at_stdout" || at_failed=:
27866 at_func_check_status 0 $at_status "$at_srcdir/link02.at:35"
27867
27868 $at_failed && at_func_log_failure
27869 $at_traceon; }
27870
27871               { $at_traceoff
27872 $as_echo "$at_srcdir/link02.at:35:
27873 mkdir ustar
27874 (cd ustar
27875 TEST_TAR_FORMAT=ustar
27876 export TEST_TAR_FORMAT
27877 TAR_OPTIONS=\"-H ustar\"
27878 export TAR_OPTIONS
27879 rm -rf *
27880
27881 genfile -l 64 -f file1
27882 ln file1 file2
27883 ln file2 file3
27884 ln file3 file4
27885 tar -c -f archive --remove-files file1 file2 file3 file4
27886 tar tfv archive | sed -n 's/.*file[2-4] link to //p'
27887 )"
27888 echo link02.at:35 >"$at_check_line_file"
27889
27890 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
27891    false; }; then
27892   ( $at_traceon;
27893 mkdir ustar
27894 (cd ustar
27895 TEST_TAR_FORMAT=ustar
27896 export TEST_TAR_FORMAT
27897 TAR_OPTIONS="-H ustar"
27898 export TAR_OPTIONS
27899 rm -rf *
27900
27901 genfile -l 64 -f file1
27902 ln file1 file2
27903 ln file2 file3
27904 ln file3 file4
27905 tar -c -f archive --remove-files file1 file2 file3 file4
27906 tar tfv archive | sed -n 's/.*file[2-4] link to //p'
27907 ) ) >"$at_stdout" 2>"$at_stder1"
27908   at_func_filter_trace $?
27909 else
27910   ( :;
27911 mkdir ustar
27912 (cd ustar
27913 TEST_TAR_FORMAT=ustar
27914 export TEST_TAR_FORMAT
27915 TAR_OPTIONS="-H ustar"
27916 export TAR_OPTIONS
27917 rm -rf *
27918
27919 genfile -l 64 -f file1
27920 ln file1 file2
27921 ln file2 file3
27922 ln file3 file4
27923 tar -c -f archive --remove-files file1 file2 file3 file4
27924 tar tfv archive | sed -n 's/.*file[2-4] link to //p'
27925 ) ) >"$at_stdout" 2>"$at_stderr"
27926 fi
27927 at_status=$?
27928 at_failed=false
27929 at_func_diff_devnull "$at_stderr" || at_failed=:
27930 echo >>"$at_stdout"; $as_echo "file1
27931 file1
27932 file1
27933 " | \
27934   $at_diff - "$at_stdout" || at_failed=:
27935 at_func_check_status 0 $at_status "$at_srcdir/link02.at:35"
27936
27937 $at_failed && at_func_log_failure
27938 $at_traceon; }
27939
27940               { $at_traceoff
27941 $as_echo "$at_srcdir/link02.at:35:
27942 mkdir posix
27943 (cd posix
27944 TEST_TAR_FORMAT=posix
27945 export TEST_TAR_FORMAT
27946 TAR_OPTIONS=\"-H posix\"
27947 export TAR_OPTIONS
27948 rm -rf *
27949
27950 genfile -l 64 -f file1
27951 ln file1 file2
27952 ln file2 file3
27953 ln file3 file4
27954 tar -c -f archive --remove-files file1 file2 file3 file4
27955 tar tfv archive | sed -n 's/.*file[2-4] link to //p'
27956 )"
27957 echo link02.at:35 >"$at_check_line_file"
27958
27959 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
27960    false; }; then
27961   ( $at_traceon;
27962 mkdir posix
27963 (cd posix
27964 TEST_TAR_FORMAT=posix
27965 export TEST_TAR_FORMAT
27966 TAR_OPTIONS="-H posix"
27967 export TAR_OPTIONS
27968 rm -rf *
27969
27970 genfile -l 64 -f file1
27971 ln file1 file2
27972 ln file2 file3
27973 ln file3 file4
27974 tar -c -f archive --remove-files file1 file2 file3 file4
27975 tar tfv archive | sed -n 's/.*file[2-4] link to //p'
27976 ) ) >"$at_stdout" 2>"$at_stder1"
27977   at_func_filter_trace $?
27978 else
27979   ( :;
27980 mkdir posix
27981 (cd posix
27982 TEST_TAR_FORMAT=posix
27983 export TEST_TAR_FORMAT
27984 TAR_OPTIONS="-H posix"
27985 export TAR_OPTIONS
27986 rm -rf *
27987
27988 genfile -l 64 -f file1
27989 ln file1 file2
27990 ln file2 file3
27991 ln file3 file4
27992 tar -c -f archive --remove-files file1 file2 file3 file4
27993 tar tfv archive | sed -n 's/.*file[2-4] link to //p'
27994 ) ) >"$at_stdout" 2>"$at_stderr"
27995 fi
27996 at_status=$?
27997 at_failed=false
27998 at_func_diff_devnull "$at_stderr" || at_failed=:
27999 echo >>"$at_stdout"; $as_echo "file1
28000 file1
28001 file1
28002 " | \
28003   $at_diff - "$at_stdout" || at_failed=:
28004 at_func_check_status 0 $at_status "$at_srcdir/link02.at:35"
28005
28006 $at_failed && at_func_log_failure
28007 $at_traceon; }
28008
28009               { $at_traceoff
28010 $as_echo "$at_srcdir/link02.at:35:
28011 mkdir gnu
28012 (cd gnu
28013 TEST_TAR_FORMAT=gnu
28014 export TEST_TAR_FORMAT
28015 TAR_OPTIONS=\"-H gnu\"
28016 export TAR_OPTIONS
28017 rm -rf *
28018
28019 genfile -l 64 -f file1
28020 ln file1 file2
28021 ln file2 file3
28022 ln file3 file4
28023 tar -c -f archive --remove-files file1 file2 file3 file4
28024 tar tfv archive | sed -n 's/.*file[2-4] link to //p'
28025 )"
28026 echo link02.at:35 >"$at_check_line_file"
28027
28028 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
28029    false; }; then
28030   ( $at_traceon;
28031 mkdir gnu
28032 (cd gnu
28033 TEST_TAR_FORMAT=gnu
28034 export TEST_TAR_FORMAT
28035 TAR_OPTIONS="-H gnu"
28036 export TAR_OPTIONS
28037 rm -rf *
28038
28039 genfile -l 64 -f file1
28040 ln file1 file2
28041 ln file2 file3
28042 ln file3 file4
28043 tar -c -f archive --remove-files file1 file2 file3 file4
28044 tar tfv archive | sed -n 's/.*file[2-4] link to //p'
28045 ) ) >"$at_stdout" 2>"$at_stder1"
28046   at_func_filter_trace $?
28047 else
28048   ( :;
28049 mkdir gnu
28050 (cd gnu
28051 TEST_TAR_FORMAT=gnu
28052 export TEST_TAR_FORMAT
28053 TAR_OPTIONS="-H gnu"
28054 export TAR_OPTIONS
28055 rm -rf *
28056
28057 genfile -l 64 -f file1
28058 ln file1 file2
28059 ln file2 file3
28060 ln file3 file4
28061 tar -c -f archive --remove-files file1 file2 file3 file4
28062 tar tfv archive | sed -n 's/.*file[2-4] link to //p'
28063 ) ) >"$at_stdout" 2>"$at_stderr"
28064 fi
28065 at_status=$?
28066 at_failed=false
28067 at_func_diff_devnull "$at_stderr" || at_failed=:
28068 echo >>"$at_stdout"; $as_echo "file1
28069 file1
28070 file1
28071 " | \
28072   $at_diff - "$at_stdout" || at_failed=:
28073 at_func_check_status 0 $at_status "$at_srcdir/link02.at:35"
28074
28075 $at_failed && at_func_log_failure
28076 $at_traceon; }
28077
28078
28079
28080
28081   $at_traceoff
28082   $at_times_p && times >"$at_times_file"
28083 ) 5>&1 2>&1 | eval $at_tee_pipe
28084 at_status=`cat "$at_status_file"`
28085 #AT_STOP_71
28086 #AT_START_72
28087 # 72. link03.at:24: working -l with --remove-files
28088 at_setup_line='link03.at:24'
28089 at_desc="working -l with --remove-files"
28090 $at_quiet $as_echo_n " 72: $at_desc                 "
28091 at_xfail=no
28092       test -f $XFAILFILE && at_xfail=yes
28093 echo "#                             -*- compilation -*-" >> "$at_group_log"
28094 (
28095   $as_echo "72. link03.at:24: testing ..."
28096   $at_traceon
28097
28098
28099
28100
28101
28102
28103
28104   { $at_traceoff
28105 $as_echo "$at_srcdir/link03.at:34:
28106 mkdir v7
28107 (cd v7
28108 TEST_TAR_FORMAT=v7
28109 export TEST_TAR_FORMAT
28110 TAR_OPTIONS=\"-H v7\"
28111 export TAR_OPTIONS
28112 rm -rf *
28113
28114
28115 genfile -l 64 -f file1
28116 ln file1 file2
28117 ln file2 file3
28118 ln file3 file4
28119
28120 echo archive.1
28121 tar -c -f archive.1 -l --remove-files file1 file2 file3 file4
28122
28123 genfile -l 64 -f file1
28124 ln file1 file2
28125 ln file2 file3
28126 ln file3 file4
28127
28128 echo archive.2
28129 tar -c -f archive.2 -l --remove-files file1 file2 file3
28130 echo testing archive.2
28131 tar tfv archive.2 | sed -n 's/.*file[2-3] link to //p'
28132 )"
28133 echo link03.at:34 >"$at_check_line_file"
28134
28135 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
28136    false; }; then
28137   ( $at_traceon;
28138 mkdir v7
28139 (cd v7
28140 TEST_TAR_FORMAT=v7
28141 export TEST_TAR_FORMAT
28142 TAR_OPTIONS="-H v7"
28143 export TAR_OPTIONS
28144 rm -rf *
28145
28146
28147 genfile -l 64 -f file1
28148 ln file1 file2
28149 ln file2 file3
28150 ln file3 file4
28151
28152 echo archive.1
28153 tar -c -f archive.1 -l --remove-files file1 file2 file3 file4
28154
28155 genfile -l 64 -f file1
28156 ln file1 file2
28157 ln file2 file3
28158 ln file3 file4
28159
28160 echo archive.2
28161 tar -c -f archive.2 -l --remove-files file1 file2 file3
28162 echo testing archive.2
28163 tar tfv archive.2 | sed -n 's/.*file[2-3] link to //p'
28164 ) ) >"$at_stdout" 2>"$at_stder1"
28165   at_func_filter_trace $?
28166 else
28167   ( :;
28168 mkdir v7
28169 (cd v7
28170 TEST_TAR_FORMAT=v7
28171 export TEST_TAR_FORMAT
28172 TAR_OPTIONS="-H v7"
28173 export TAR_OPTIONS
28174 rm -rf *
28175
28176
28177 genfile -l 64 -f file1
28178 ln file1 file2
28179 ln file2 file3
28180 ln file3 file4
28181
28182 echo archive.1
28183 tar -c -f archive.1 -l --remove-files file1 file2 file3 file4
28184
28185 genfile -l 64 -f file1
28186 ln file1 file2
28187 ln file2 file3
28188 ln file3 file4
28189
28190 echo archive.2
28191 tar -c -f archive.2 -l --remove-files file1 file2 file3
28192 echo testing archive.2
28193 tar tfv archive.2 | sed -n 's/.*file[2-3] link to //p'
28194 ) ) >"$at_stdout" 2>"$at_stderr"
28195 fi
28196 at_status=$?
28197 at_failed=false
28198 echo >>"$at_stderr"; $as_echo "tar: Missing links to \`file1'.
28199 " | \
28200   $at_diff - "$at_stderr" || at_failed=:
28201 echo >>"$at_stdout"; $as_echo "archive.1
28202 archive.2
28203 testing archive.2
28204 file1
28205 file1
28206 " | \
28207   $at_diff - "$at_stdout" || at_failed=:
28208 at_func_check_status 0 $at_status "$at_srcdir/link03.at:34"
28209
28210 $at_failed && at_func_log_failure
28211 $at_traceon; }
28212
28213               { $at_traceoff
28214 $as_echo "$at_srcdir/link03.at:34:
28215 mkdir oldgnu
28216 (cd oldgnu
28217 TEST_TAR_FORMAT=oldgnu
28218 export TEST_TAR_FORMAT
28219 TAR_OPTIONS=\"-H oldgnu\"
28220 export TAR_OPTIONS
28221 rm -rf *
28222
28223
28224 genfile -l 64 -f file1
28225 ln file1 file2
28226 ln file2 file3
28227 ln file3 file4
28228
28229 echo archive.1
28230 tar -c -f archive.1 -l --remove-files file1 file2 file3 file4
28231
28232 genfile -l 64 -f file1
28233 ln file1 file2
28234 ln file2 file3
28235 ln file3 file4
28236
28237 echo archive.2
28238 tar -c -f archive.2 -l --remove-files file1 file2 file3
28239 echo testing archive.2
28240 tar tfv archive.2 | sed -n 's/.*file[2-3] link to //p'
28241 )"
28242 echo link03.at:34 >"$at_check_line_file"
28243
28244 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
28245    false; }; then
28246   ( $at_traceon;
28247 mkdir oldgnu
28248 (cd oldgnu
28249 TEST_TAR_FORMAT=oldgnu
28250 export TEST_TAR_FORMAT
28251 TAR_OPTIONS="-H oldgnu"
28252 export TAR_OPTIONS
28253 rm -rf *
28254
28255
28256 genfile -l 64 -f file1
28257 ln file1 file2
28258 ln file2 file3
28259 ln file3 file4
28260
28261 echo archive.1
28262 tar -c -f archive.1 -l --remove-files file1 file2 file3 file4
28263
28264 genfile -l 64 -f file1
28265 ln file1 file2
28266 ln file2 file3
28267 ln file3 file4
28268
28269 echo archive.2
28270 tar -c -f archive.2 -l --remove-files file1 file2 file3
28271 echo testing archive.2
28272 tar tfv archive.2 | sed -n 's/.*file[2-3] link to //p'
28273 ) ) >"$at_stdout" 2>"$at_stder1"
28274   at_func_filter_trace $?
28275 else
28276   ( :;
28277 mkdir oldgnu
28278 (cd oldgnu
28279 TEST_TAR_FORMAT=oldgnu
28280 export TEST_TAR_FORMAT
28281 TAR_OPTIONS="-H oldgnu"
28282 export TAR_OPTIONS
28283 rm -rf *
28284
28285
28286 genfile -l 64 -f file1
28287 ln file1 file2
28288 ln file2 file3
28289 ln file3 file4
28290
28291 echo archive.1
28292 tar -c -f archive.1 -l --remove-files file1 file2 file3 file4
28293
28294 genfile -l 64 -f file1
28295 ln file1 file2
28296 ln file2 file3
28297 ln file3 file4
28298
28299 echo archive.2
28300 tar -c -f archive.2 -l --remove-files file1 file2 file3
28301 echo testing archive.2
28302 tar tfv archive.2 | sed -n 's/.*file[2-3] link to //p'
28303 ) ) >"$at_stdout" 2>"$at_stderr"
28304 fi
28305 at_status=$?
28306 at_failed=false
28307 echo >>"$at_stderr"; $as_echo "tar: Missing links to \`file1'.
28308 " | \
28309   $at_diff - "$at_stderr" || at_failed=:
28310 echo >>"$at_stdout"; $as_echo "archive.1
28311 archive.2
28312 testing archive.2
28313 file1
28314 file1
28315 " | \
28316   $at_diff - "$at_stdout" || at_failed=:
28317 at_func_check_status 0 $at_status "$at_srcdir/link03.at:34"
28318
28319 $at_failed && at_func_log_failure
28320 $at_traceon; }
28321
28322               { $at_traceoff
28323 $as_echo "$at_srcdir/link03.at:34:
28324 mkdir ustar
28325 (cd ustar
28326 TEST_TAR_FORMAT=ustar
28327 export TEST_TAR_FORMAT
28328 TAR_OPTIONS=\"-H ustar\"
28329 export TAR_OPTIONS
28330 rm -rf *
28331
28332
28333 genfile -l 64 -f file1
28334 ln file1 file2
28335 ln file2 file3
28336 ln file3 file4
28337
28338 echo archive.1
28339 tar -c -f archive.1 -l --remove-files file1 file2 file3 file4
28340
28341 genfile -l 64 -f file1
28342 ln file1 file2
28343 ln file2 file3
28344 ln file3 file4
28345
28346 echo archive.2
28347 tar -c -f archive.2 -l --remove-files file1 file2 file3
28348 echo testing archive.2
28349 tar tfv archive.2 | sed -n 's/.*file[2-3] link to //p'
28350 )"
28351 echo link03.at:34 >"$at_check_line_file"
28352
28353 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
28354    false; }; then
28355   ( $at_traceon;
28356 mkdir ustar
28357 (cd ustar
28358 TEST_TAR_FORMAT=ustar
28359 export TEST_TAR_FORMAT
28360 TAR_OPTIONS="-H ustar"
28361 export TAR_OPTIONS
28362 rm -rf *
28363
28364
28365 genfile -l 64 -f file1
28366 ln file1 file2
28367 ln file2 file3
28368 ln file3 file4
28369
28370 echo archive.1
28371 tar -c -f archive.1 -l --remove-files file1 file2 file3 file4
28372
28373 genfile -l 64 -f file1
28374 ln file1 file2
28375 ln file2 file3
28376 ln file3 file4
28377
28378 echo archive.2
28379 tar -c -f archive.2 -l --remove-files file1 file2 file3
28380 echo testing archive.2
28381 tar tfv archive.2 | sed -n 's/.*file[2-3] link to //p'
28382 ) ) >"$at_stdout" 2>"$at_stder1"
28383   at_func_filter_trace $?
28384 else
28385   ( :;
28386 mkdir ustar
28387 (cd ustar
28388 TEST_TAR_FORMAT=ustar
28389 export TEST_TAR_FORMAT
28390 TAR_OPTIONS="-H ustar"
28391 export TAR_OPTIONS
28392 rm -rf *
28393
28394
28395 genfile -l 64 -f file1
28396 ln file1 file2
28397 ln file2 file3
28398 ln file3 file4
28399
28400 echo archive.1
28401 tar -c -f archive.1 -l --remove-files file1 file2 file3 file4
28402
28403 genfile -l 64 -f file1
28404 ln file1 file2
28405 ln file2 file3
28406 ln file3 file4
28407
28408 echo archive.2
28409 tar -c -f archive.2 -l --remove-files file1 file2 file3
28410 echo testing archive.2
28411 tar tfv archive.2 | sed -n 's/.*file[2-3] link to //p'
28412 ) ) >"$at_stdout" 2>"$at_stderr"
28413 fi
28414 at_status=$?
28415 at_failed=false
28416 echo >>"$at_stderr"; $as_echo "tar: Missing links to \`file1'.
28417 " | \
28418   $at_diff - "$at_stderr" || at_failed=:
28419 echo >>"$at_stdout"; $as_echo "archive.1
28420 archive.2
28421 testing archive.2
28422 file1
28423 file1
28424 " | \
28425   $at_diff - "$at_stdout" || at_failed=:
28426 at_func_check_status 0 $at_status "$at_srcdir/link03.at:34"
28427
28428 $at_failed && at_func_log_failure
28429 $at_traceon; }
28430
28431               { $at_traceoff
28432 $as_echo "$at_srcdir/link03.at:34:
28433 mkdir posix
28434 (cd posix
28435 TEST_TAR_FORMAT=posix
28436 export TEST_TAR_FORMAT
28437 TAR_OPTIONS=\"-H posix\"
28438 export TAR_OPTIONS
28439 rm -rf *
28440
28441
28442 genfile -l 64 -f file1
28443 ln file1 file2
28444 ln file2 file3
28445 ln file3 file4
28446
28447 echo archive.1
28448 tar -c -f archive.1 -l --remove-files file1 file2 file3 file4
28449
28450 genfile -l 64 -f file1
28451 ln file1 file2
28452 ln file2 file3
28453 ln file3 file4
28454
28455 echo archive.2
28456 tar -c -f archive.2 -l --remove-files file1 file2 file3
28457 echo testing archive.2
28458 tar tfv archive.2 | sed -n 's/.*file[2-3] link to //p'
28459 )"
28460 echo link03.at:34 >"$at_check_line_file"
28461
28462 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
28463    false; }; then
28464   ( $at_traceon;
28465 mkdir posix
28466 (cd posix
28467 TEST_TAR_FORMAT=posix
28468 export TEST_TAR_FORMAT
28469 TAR_OPTIONS="-H posix"
28470 export TAR_OPTIONS
28471 rm -rf *
28472
28473
28474 genfile -l 64 -f file1
28475 ln file1 file2
28476 ln file2 file3
28477 ln file3 file4
28478
28479 echo archive.1
28480 tar -c -f archive.1 -l --remove-files file1 file2 file3 file4
28481
28482 genfile -l 64 -f file1
28483 ln file1 file2
28484 ln file2 file3
28485 ln file3 file4
28486
28487 echo archive.2
28488 tar -c -f archive.2 -l --remove-files file1 file2 file3
28489 echo testing archive.2
28490 tar tfv archive.2 | sed -n 's/.*file[2-3] link to //p'
28491 ) ) >"$at_stdout" 2>"$at_stder1"
28492   at_func_filter_trace $?
28493 else
28494   ( :;
28495 mkdir posix
28496 (cd posix
28497 TEST_TAR_FORMAT=posix
28498 export TEST_TAR_FORMAT
28499 TAR_OPTIONS="-H posix"
28500 export TAR_OPTIONS
28501 rm -rf *
28502
28503
28504 genfile -l 64 -f file1
28505 ln file1 file2
28506 ln file2 file3
28507 ln file3 file4
28508
28509 echo archive.1
28510 tar -c -f archive.1 -l --remove-files file1 file2 file3 file4
28511
28512 genfile -l 64 -f file1
28513 ln file1 file2
28514 ln file2 file3
28515 ln file3 file4
28516
28517 echo archive.2
28518 tar -c -f archive.2 -l --remove-files file1 file2 file3
28519 echo testing archive.2
28520 tar tfv archive.2 | sed -n 's/.*file[2-3] link to //p'
28521 ) ) >"$at_stdout" 2>"$at_stderr"
28522 fi
28523 at_status=$?
28524 at_failed=false
28525 echo >>"$at_stderr"; $as_echo "tar: Missing links to \`file1'.
28526 " | \
28527   $at_diff - "$at_stderr" || at_failed=:
28528 echo >>"$at_stdout"; $as_echo "archive.1
28529 archive.2
28530 testing archive.2
28531 file1
28532 file1
28533 " | \
28534   $at_diff - "$at_stdout" || at_failed=:
28535 at_func_check_status 0 $at_status "$at_srcdir/link03.at:34"
28536
28537 $at_failed && at_func_log_failure
28538 $at_traceon; }
28539
28540               { $at_traceoff
28541 $as_echo "$at_srcdir/link03.at:34:
28542 mkdir gnu
28543 (cd gnu
28544 TEST_TAR_FORMAT=gnu
28545 export TEST_TAR_FORMAT
28546 TAR_OPTIONS=\"-H gnu\"
28547 export TAR_OPTIONS
28548 rm -rf *
28549
28550
28551 genfile -l 64 -f file1
28552 ln file1 file2
28553 ln file2 file3
28554 ln file3 file4
28555
28556 echo archive.1
28557 tar -c -f archive.1 -l --remove-files file1 file2 file3 file4
28558
28559 genfile -l 64 -f file1
28560 ln file1 file2
28561 ln file2 file3
28562 ln file3 file4
28563
28564 echo archive.2
28565 tar -c -f archive.2 -l --remove-files file1 file2 file3
28566 echo testing archive.2
28567 tar tfv archive.2 | sed -n 's/.*file[2-3] link to //p'
28568 )"
28569 echo link03.at:34 >"$at_check_line_file"
28570
28571 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
28572    false; }; then
28573   ( $at_traceon;
28574 mkdir gnu
28575 (cd gnu
28576 TEST_TAR_FORMAT=gnu
28577 export TEST_TAR_FORMAT
28578 TAR_OPTIONS="-H gnu"
28579 export TAR_OPTIONS
28580 rm -rf *
28581
28582
28583 genfile -l 64 -f file1
28584 ln file1 file2
28585 ln file2 file3
28586 ln file3 file4
28587
28588 echo archive.1
28589 tar -c -f archive.1 -l --remove-files file1 file2 file3 file4
28590
28591 genfile -l 64 -f file1
28592 ln file1 file2
28593 ln file2 file3
28594 ln file3 file4
28595
28596 echo archive.2
28597 tar -c -f archive.2 -l --remove-files file1 file2 file3
28598 echo testing archive.2
28599 tar tfv archive.2 | sed -n 's/.*file[2-3] link to //p'
28600 ) ) >"$at_stdout" 2>"$at_stder1"
28601   at_func_filter_trace $?
28602 else
28603   ( :;
28604 mkdir gnu
28605 (cd gnu
28606 TEST_TAR_FORMAT=gnu
28607 export TEST_TAR_FORMAT
28608 TAR_OPTIONS="-H gnu"
28609 export TAR_OPTIONS
28610 rm -rf *
28611
28612
28613 genfile -l 64 -f file1
28614 ln file1 file2
28615 ln file2 file3
28616 ln file3 file4
28617
28618 echo archive.1
28619 tar -c -f archive.1 -l --remove-files file1 file2 file3 file4
28620
28621 genfile -l 64 -f file1
28622 ln file1 file2
28623 ln file2 file3
28624 ln file3 file4
28625
28626 echo archive.2
28627 tar -c -f archive.2 -l --remove-files file1 file2 file3
28628 echo testing archive.2
28629 tar tfv archive.2 | sed -n 's/.*file[2-3] link to //p'
28630 ) ) >"$at_stdout" 2>"$at_stderr"
28631 fi
28632 at_status=$?
28633 at_failed=false
28634 echo >>"$at_stderr"; $as_echo "tar: Missing links to \`file1'.
28635 " | \
28636   $at_diff - "$at_stderr" || at_failed=:
28637 echo >>"$at_stdout"; $as_echo "archive.1
28638 archive.2
28639 testing archive.2
28640 file1
28641 file1
28642 " | \
28643   $at_diff - "$at_stdout" || at_failed=:
28644 at_func_check_status 0 $at_status "$at_srcdir/link03.at:34"
28645
28646 $at_failed && at_func_log_failure
28647 $at_traceon; }
28648
28649
28650
28651
28652   $at_traceoff
28653   $at_times_p && times >"$at_times_file"
28654 ) 5>&1 2>&1 | eval $at_tee_pipe
28655 at_status=`cat "$at_status_file"`
28656 #AT_STOP_72
28657 #AT_START_73
28658 # 73. link04.at:29: link count is 1 but multiple occurrences
28659 at_setup_line='link04.at:29'
28660 at_desc="link count is 1 but multiple occurrences"
28661 $at_quiet $as_echo_n " 73: $at_desc       "
28662 at_xfail=no
28663       test -f $XFAILFILE && at_xfail=yes
28664 echo "#                             -*- compilation -*-" >> "$at_group_log"
28665 (
28666   $as_echo "73. link04.at:29: testing ..."
28667   $at_traceon
28668
28669
28670
28671
28672
28673   { $at_traceoff
28674 $as_echo "$at_srcdir/link04.at:32:
28675 mkdir v7
28676 (cd v7
28677 TEST_TAR_FORMAT=v7
28678 export TEST_TAR_FORMAT
28679 TAR_OPTIONS=\"-H v7\"
28680 export TAR_OPTIONS
28681 rm -rf *
28682
28683 mkdir dir
28684 echo TEST > dir/file
28685 ln -s file dir/symlink || exit 77
28686
28687 tar cf archive dir dir
28688 tar tvf archive | sed '
28689   s,.*[0-9] dir/,dir/,
28690 ' | sort
28691
28692 echo ==
28693
28694 tar chf archive dir
28695 tar tvf archive | sed '
28696   s,.*[0-9] dir/,dir/,
28697   s,file,FOO,g
28698   s,symlink,FOO,g
28699 ' | sort
28700 )"
28701 echo link04.at:32 >"$at_check_line_file"
28702
28703 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
28704    false; }; then
28705   ( $at_traceon;
28706 mkdir v7
28707 (cd v7
28708 TEST_TAR_FORMAT=v7
28709 export TEST_TAR_FORMAT
28710 TAR_OPTIONS="-H v7"
28711 export TAR_OPTIONS
28712 rm -rf *
28713
28714 mkdir dir
28715 echo TEST > dir/file
28716 ln -s file dir/symlink || exit 77
28717
28718 tar cf archive dir dir
28719 tar tvf archive | sed '
28720   s,.*[0-9] dir/,dir/,
28721 ' | sort
28722
28723 echo ==
28724
28725 tar chf archive dir
28726 tar tvf archive | sed '
28727   s,.*[0-9] dir/,dir/,
28728   s,file,FOO,g
28729   s,symlink,FOO,g
28730 ' | sort
28731 ) ) >"$at_stdout" 2>"$at_stder1"
28732   at_func_filter_trace $?
28733 else
28734   ( :;
28735 mkdir v7
28736 (cd v7
28737 TEST_TAR_FORMAT=v7
28738 export TEST_TAR_FORMAT
28739 TAR_OPTIONS="-H v7"
28740 export TAR_OPTIONS
28741 rm -rf *
28742
28743 mkdir dir
28744 echo TEST > dir/file
28745 ln -s file dir/symlink || exit 77
28746
28747 tar cf archive dir dir
28748 tar tvf archive | sed '
28749   s,.*[0-9] dir/,dir/,
28750 ' | sort
28751
28752 echo ==
28753
28754 tar chf archive dir
28755 tar tvf archive | sed '
28756   s,.*[0-9] dir/,dir/,
28757   s,file,FOO,g
28758   s,symlink,FOO,g
28759 ' | sort
28760 ) ) >"$at_stdout" 2>"$at_stderr"
28761 fi
28762 at_status=$?
28763 at_failed=false
28764 at_func_diff_devnull "$at_stderr" || at_failed=:
28765 echo >>"$at_stdout"; $as_echo "dir/
28766 dir/
28767 dir/file
28768 dir/file link to dir/file
28769 dir/symlink -> file
28770 dir/symlink link to dir/symlink
28771 ==
28772 dir/
28773 dir/FOO
28774 dir/FOO link to dir/FOO
28775 " | \
28776   $at_diff - "$at_stdout" || at_failed=:
28777 at_func_check_status 0 $at_status "$at_srcdir/link04.at:32"
28778
28779 $at_failed && at_func_log_failure
28780 $at_traceon; }
28781
28782               { $at_traceoff
28783 $as_echo "$at_srcdir/link04.at:32:
28784 mkdir oldgnu
28785 (cd oldgnu
28786 TEST_TAR_FORMAT=oldgnu
28787 export TEST_TAR_FORMAT
28788 TAR_OPTIONS=\"-H oldgnu\"
28789 export TAR_OPTIONS
28790 rm -rf *
28791
28792 mkdir dir
28793 echo TEST > dir/file
28794 ln -s file dir/symlink || exit 77
28795
28796 tar cf archive dir dir
28797 tar tvf archive | sed '
28798   s,.*[0-9] dir/,dir/,
28799 ' | sort
28800
28801 echo ==
28802
28803 tar chf archive dir
28804 tar tvf archive | sed '
28805   s,.*[0-9] dir/,dir/,
28806   s,file,FOO,g
28807   s,symlink,FOO,g
28808 ' | sort
28809 )"
28810 echo link04.at:32 >"$at_check_line_file"
28811
28812 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
28813    false; }; then
28814   ( $at_traceon;
28815 mkdir oldgnu
28816 (cd oldgnu
28817 TEST_TAR_FORMAT=oldgnu
28818 export TEST_TAR_FORMAT
28819 TAR_OPTIONS="-H oldgnu"
28820 export TAR_OPTIONS
28821 rm -rf *
28822
28823 mkdir dir
28824 echo TEST > dir/file
28825 ln -s file dir/symlink || exit 77
28826
28827 tar cf archive dir dir
28828 tar tvf archive | sed '
28829   s,.*[0-9] dir/,dir/,
28830 ' | sort
28831
28832 echo ==
28833
28834 tar chf archive dir
28835 tar tvf archive | sed '
28836   s,.*[0-9] dir/,dir/,
28837   s,file,FOO,g
28838   s,symlink,FOO,g
28839 ' | sort
28840 ) ) >"$at_stdout" 2>"$at_stder1"
28841   at_func_filter_trace $?
28842 else
28843   ( :;
28844 mkdir oldgnu
28845 (cd oldgnu
28846 TEST_TAR_FORMAT=oldgnu
28847 export TEST_TAR_FORMAT
28848 TAR_OPTIONS="-H oldgnu"
28849 export TAR_OPTIONS
28850 rm -rf *
28851
28852 mkdir dir
28853 echo TEST > dir/file
28854 ln -s file dir/symlink || exit 77
28855
28856 tar cf archive dir dir
28857 tar tvf archive | sed '
28858   s,.*[0-9] dir/,dir/,
28859 ' | sort
28860
28861 echo ==
28862
28863 tar chf archive dir
28864 tar tvf archive | sed '
28865   s,.*[0-9] dir/,dir/,
28866   s,file,FOO,g
28867   s,symlink,FOO,g
28868 ' | sort
28869 ) ) >"$at_stdout" 2>"$at_stderr"
28870 fi
28871 at_status=$?
28872 at_failed=false
28873 at_func_diff_devnull "$at_stderr" || at_failed=:
28874 echo >>"$at_stdout"; $as_echo "dir/
28875 dir/
28876 dir/file
28877 dir/file link to dir/file
28878 dir/symlink -> file
28879 dir/symlink link to dir/symlink
28880 ==
28881 dir/
28882 dir/FOO
28883 dir/FOO link to dir/FOO
28884 " | \
28885   $at_diff - "$at_stdout" || at_failed=:
28886 at_func_check_status 0 $at_status "$at_srcdir/link04.at:32"
28887
28888 $at_failed && at_func_log_failure
28889 $at_traceon; }
28890
28891               { $at_traceoff
28892 $as_echo "$at_srcdir/link04.at:32:
28893 mkdir ustar
28894 (cd ustar
28895 TEST_TAR_FORMAT=ustar
28896 export TEST_TAR_FORMAT
28897 TAR_OPTIONS=\"-H ustar\"
28898 export TAR_OPTIONS
28899 rm -rf *
28900
28901 mkdir dir
28902 echo TEST > dir/file
28903 ln -s file dir/symlink || exit 77
28904
28905 tar cf archive dir dir
28906 tar tvf archive | sed '
28907   s,.*[0-9] dir/,dir/,
28908 ' | sort
28909
28910 echo ==
28911
28912 tar chf archive dir
28913 tar tvf archive | sed '
28914   s,.*[0-9] dir/,dir/,
28915   s,file,FOO,g
28916   s,symlink,FOO,g
28917 ' | sort
28918 )"
28919 echo link04.at:32 >"$at_check_line_file"
28920
28921 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
28922    false; }; then
28923   ( $at_traceon;
28924 mkdir ustar
28925 (cd ustar
28926 TEST_TAR_FORMAT=ustar
28927 export TEST_TAR_FORMAT
28928 TAR_OPTIONS="-H ustar"
28929 export TAR_OPTIONS
28930 rm -rf *
28931
28932 mkdir dir
28933 echo TEST > dir/file
28934 ln -s file dir/symlink || exit 77
28935
28936 tar cf archive dir dir
28937 tar tvf archive | sed '
28938   s,.*[0-9] dir/,dir/,
28939 ' | sort
28940
28941 echo ==
28942
28943 tar chf archive dir
28944 tar tvf archive | sed '
28945   s,.*[0-9] dir/,dir/,
28946   s,file,FOO,g
28947   s,symlink,FOO,g
28948 ' | sort
28949 ) ) >"$at_stdout" 2>"$at_stder1"
28950   at_func_filter_trace $?
28951 else
28952   ( :;
28953 mkdir ustar
28954 (cd ustar
28955 TEST_TAR_FORMAT=ustar
28956 export TEST_TAR_FORMAT
28957 TAR_OPTIONS="-H ustar"
28958 export TAR_OPTIONS
28959 rm -rf *
28960
28961 mkdir dir
28962 echo TEST > dir/file
28963 ln -s file dir/symlink || exit 77
28964
28965 tar cf archive dir dir
28966 tar tvf archive | sed '
28967   s,.*[0-9] dir/,dir/,
28968 ' | sort
28969
28970 echo ==
28971
28972 tar chf archive dir
28973 tar tvf archive | sed '
28974   s,.*[0-9] dir/,dir/,
28975   s,file,FOO,g
28976   s,symlink,FOO,g
28977 ' | sort
28978 ) ) >"$at_stdout" 2>"$at_stderr"
28979 fi
28980 at_status=$?
28981 at_failed=false
28982 at_func_diff_devnull "$at_stderr" || at_failed=:
28983 echo >>"$at_stdout"; $as_echo "dir/
28984 dir/
28985 dir/file
28986 dir/file link to dir/file
28987 dir/symlink -> file
28988 dir/symlink link to dir/symlink
28989 ==
28990 dir/
28991 dir/FOO
28992 dir/FOO link to dir/FOO
28993 " | \
28994   $at_diff - "$at_stdout" || at_failed=:
28995 at_func_check_status 0 $at_status "$at_srcdir/link04.at:32"
28996
28997 $at_failed && at_func_log_failure
28998 $at_traceon; }
28999
29000               { $at_traceoff
29001 $as_echo "$at_srcdir/link04.at:32:
29002 mkdir posix
29003 (cd posix
29004 TEST_TAR_FORMAT=posix
29005 export TEST_TAR_FORMAT
29006 TAR_OPTIONS=\"-H posix\"
29007 export TAR_OPTIONS
29008 rm -rf *
29009
29010 mkdir dir
29011 echo TEST > dir/file
29012 ln -s file dir/symlink || exit 77
29013
29014 tar cf archive dir dir
29015 tar tvf archive | sed '
29016   s,.*[0-9] dir/,dir/,
29017 ' | sort
29018
29019 echo ==
29020
29021 tar chf archive dir
29022 tar tvf archive | sed '
29023   s,.*[0-9] dir/,dir/,
29024   s,file,FOO,g
29025   s,symlink,FOO,g
29026 ' | sort
29027 )"
29028 echo link04.at:32 >"$at_check_line_file"
29029
29030 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
29031    false; }; then
29032   ( $at_traceon;
29033 mkdir posix
29034 (cd posix
29035 TEST_TAR_FORMAT=posix
29036 export TEST_TAR_FORMAT
29037 TAR_OPTIONS="-H posix"
29038 export TAR_OPTIONS
29039 rm -rf *
29040
29041 mkdir dir
29042 echo TEST > dir/file
29043 ln -s file dir/symlink || exit 77
29044
29045 tar cf archive dir dir
29046 tar tvf archive | sed '
29047   s,.*[0-9] dir/,dir/,
29048 ' | sort
29049
29050 echo ==
29051
29052 tar chf archive dir
29053 tar tvf archive | sed '
29054   s,.*[0-9] dir/,dir/,
29055   s,file,FOO,g
29056   s,symlink,FOO,g
29057 ' | sort
29058 ) ) >"$at_stdout" 2>"$at_stder1"
29059   at_func_filter_trace $?
29060 else
29061   ( :;
29062 mkdir posix
29063 (cd posix
29064 TEST_TAR_FORMAT=posix
29065 export TEST_TAR_FORMAT
29066 TAR_OPTIONS="-H posix"
29067 export TAR_OPTIONS
29068 rm -rf *
29069
29070 mkdir dir
29071 echo TEST > dir/file
29072 ln -s file dir/symlink || exit 77
29073
29074 tar cf archive dir dir
29075 tar tvf archive | sed '
29076   s,.*[0-9] dir/,dir/,
29077 ' | sort
29078
29079 echo ==
29080
29081 tar chf archive dir
29082 tar tvf archive | sed '
29083   s,.*[0-9] dir/,dir/,
29084   s,file,FOO,g
29085   s,symlink,FOO,g
29086 ' | sort
29087 ) ) >"$at_stdout" 2>"$at_stderr"
29088 fi
29089 at_status=$?
29090 at_failed=false
29091 at_func_diff_devnull "$at_stderr" || at_failed=:
29092 echo >>"$at_stdout"; $as_echo "dir/
29093 dir/
29094 dir/file
29095 dir/file link to dir/file
29096 dir/symlink -> file
29097 dir/symlink link to dir/symlink
29098 ==
29099 dir/
29100 dir/FOO
29101 dir/FOO link to dir/FOO
29102 " | \
29103   $at_diff - "$at_stdout" || at_failed=:
29104 at_func_check_status 0 $at_status "$at_srcdir/link04.at:32"
29105
29106 $at_failed && at_func_log_failure
29107 $at_traceon; }
29108
29109               { $at_traceoff
29110 $as_echo "$at_srcdir/link04.at:32:
29111 mkdir gnu
29112 (cd gnu
29113 TEST_TAR_FORMAT=gnu
29114 export TEST_TAR_FORMAT
29115 TAR_OPTIONS=\"-H gnu\"
29116 export TAR_OPTIONS
29117 rm -rf *
29118
29119 mkdir dir
29120 echo TEST > dir/file
29121 ln -s file dir/symlink || exit 77
29122
29123 tar cf archive dir dir
29124 tar tvf archive | sed '
29125   s,.*[0-9] dir/,dir/,
29126 ' | sort
29127
29128 echo ==
29129
29130 tar chf archive dir
29131 tar tvf archive | sed '
29132   s,.*[0-9] dir/,dir/,
29133   s,file,FOO,g
29134   s,symlink,FOO,g
29135 ' | sort
29136 )"
29137 echo link04.at:32 >"$at_check_line_file"
29138
29139 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
29140    false; }; then
29141   ( $at_traceon;
29142 mkdir gnu
29143 (cd gnu
29144 TEST_TAR_FORMAT=gnu
29145 export TEST_TAR_FORMAT
29146 TAR_OPTIONS="-H gnu"
29147 export TAR_OPTIONS
29148 rm -rf *
29149
29150 mkdir dir
29151 echo TEST > dir/file
29152 ln -s file dir/symlink || exit 77
29153
29154 tar cf archive dir dir
29155 tar tvf archive | sed '
29156   s,.*[0-9] dir/,dir/,
29157 ' | sort
29158
29159 echo ==
29160
29161 tar chf archive dir
29162 tar tvf archive | sed '
29163   s,.*[0-9] dir/,dir/,
29164   s,file,FOO,g
29165   s,symlink,FOO,g
29166 ' | sort
29167 ) ) >"$at_stdout" 2>"$at_stder1"
29168   at_func_filter_trace $?
29169 else
29170   ( :;
29171 mkdir gnu
29172 (cd gnu
29173 TEST_TAR_FORMAT=gnu
29174 export TEST_TAR_FORMAT
29175 TAR_OPTIONS="-H gnu"
29176 export TAR_OPTIONS
29177 rm -rf *
29178
29179 mkdir dir
29180 echo TEST > dir/file
29181 ln -s file dir/symlink || exit 77
29182
29183 tar cf archive dir dir
29184 tar tvf archive | sed '
29185   s,.*[0-9] dir/,dir/,
29186 ' | sort
29187
29188 echo ==
29189
29190 tar chf archive dir
29191 tar tvf archive | sed '
29192   s,.*[0-9] dir/,dir/,
29193   s,file,FOO,g
29194   s,symlink,FOO,g
29195 ' | sort
29196 ) ) >"$at_stdout" 2>"$at_stderr"
29197 fi
29198 at_status=$?
29199 at_failed=false
29200 at_func_diff_devnull "$at_stderr" || at_failed=:
29201 echo >>"$at_stdout"; $as_echo "dir/
29202 dir/
29203 dir/file
29204 dir/file link to dir/file
29205 dir/symlink -> file
29206 dir/symlink link to dir/symlink
29207 ==
29208 dir/
29209 dir/FOO
29210 dir/FOO link to dir/FOO
29211 " | \
29212   $at_diff - "$at_stdout" || at_failed=:
29213 at_func_check_status 0 $at_status "$at_srcdir/link04.at:32"
29214
29215 $at_failed && at_func_log_failure
29216 $at_traceon; }
29217
29218
29219
29220
29221   $at_traceoff
29222   $at_times_p && times >"$at_times_file"
29223 ) 5>&1 2>&1 | eval $at_tee_pipe
29224 at_status=`cat "$at_status_file"`
29225 #AT_STOP_73
29226 #AT_START_74
29227 # 74. longv7.at:24: long names in V7 archives
29228 at_setup_line='longv7.at:24'
29229 at_desc="long names in V7 archives"
29230 $at_quiet $as_echo_n " 74: $at_desc                      "
29231 at_xfail=no
29232       test -f $XFAILFILE && at_xfail=yes
29233 echo "#                             -*- compilation -*-" >> "$at_group_log"
29234 (
29235   $as_echo "74. longv7.at:24: testing ..."
29236   $at_traceon
29237
29238
29239
29240
29241
29242
29243
29244
29245   { $at_traceoff
29246 $as_echo "$at_srcdir/longv7.at:30:
29247 mkdir v7
29248 (cd v7
29249 TEST_TAR_FORMAT=v7
29250 export TEST_TAR_FORMAT
29251 TAR_OPTIONS=\"-H v7\"
29252 export TAR_OPTIONS
29253 rm -rf *
29254
29255 mkdir this_is_a_very_long_name_for_a_directory_which_causes_problems
29256 touch this_is_a_very_long_name_for_a_directory_which_causes_problems/this_is_a_very_long_file_name_which_raises_issues.c
29257
29258 tar cf archive this_is_a_very_long_name_for_a_directory_which_causes_problems
29259 echo separator
29260 tar tf archive
29261 )"
29262 echo longv7.at:30 >"$at_check_line_file"
29263
29264 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
29265    false; }; then
29266   ( $at_traceon;
29267 mkdir v7
29268 (cd v7
29269 TEST_TAR_FORMAT=v7
29270 export TEST_TAR_FORMAT
29271 TAR_OPTIONS="-H v7"
29272 export TAR_OPTIONS
29273 rm -rf *
29274
29275 mkdir this_is_a_very_long_name_for_a_directory_which_causes_problems
29276 touch this_is_a_very_long_name_for_a_directory_which_causes_problems/this_is_a_very_long_file_name_which_raises_issues.c
29277
29278 tar cf archive this_is_a_very_long_name_for_a_directory_which_causes_problems
29279 echo separator
29280 tar tf archive
29281 ) ) >"$at_stdout" 2>"$at_stder1"
29282   at_func_filter_trace $?
29283 else
29284   ( :;
29285 mkdir v7
29286 (cd v7
29287 TEST_TAR_FORMAT=v7
29288 export TEST_TAR_FORMAT
29289 TAR_OPTIONS="-H v7"
29290 export TAR_OPTIONS
29291 rm -rf *
29292
29293 mkdir this_is_a_very_long_name_for_a_directory_which_causes_problems
29294 touch this_is_a_very_long_name_for_a_directory_which_causes_problems/this_is_a_very_long_file_name_which_raises_issues.c
29295
29296 tar cf archive this_is_a_very_long_name_for_a_directory_which_causes_problems
29297 echo separator
29298 tar tf archive
29299 ) ) >"$at_stdout" 2>"$at_stderr"
29300 fi
29301 at_status=$?
29302 at_failed=false
29303 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
29304 tar: Exiting with failure status due to previous errors
29305 " | \
29306   $at_diff - "$at_stderr" || at_failed=:
29307 echo >>"$at_stdout"; $as_echo "separator
29308 this_is_a_very_long_name_for_a_directory_which_causes_problems/
29309 " | \
29310   $at_diff - "$at_stdout" || at_failed=:
29311 at_func_check_status 0 $at_status "$at_srcdir/longv7.at:30"
29312
29313 $at_failed && at_func_log_failure
29314 $at_traceon; }
29315
29316
29317
29318
29319   $at_traceoff
29320   $at_times_p && times >"$at_times_file"
29321 ) 5>&1 2>&1 | eval $at_tee_pipe
29322 at_status=`cat "$at_status_file"`
29323 #AT_STOP_74
29324 #AT_START_75
29325 # 75. long01.at:28: long file names divisible by block size
29326 at_setup_line='long01.at:28'
29327 at_desc="long file names divisible by block size"
29328 $at_quiet $as_echo_n " 75: $at_desc        "
29329 at_xfail=no
29330       test -f $XFAILFILE && at_xfail=yes
29331 echo "#                             -*- compilation -*-" >> "$at_group_log"
29332 (
29333   $as_echo "75. long01.at:28: testing ..."
29334   $at_traceon
29335
29336
29337
29338
29339
29340
29341
29342
29343
29344   { $at_traceoff
29345 $as_echo "$at_srcdir/long01.at:36:
29346 mkdir gnu
29347 (cd gnu
29348 TEST_TAR_FORMAT=gnu
29349 export TEST_TAR_FORMAT
29350 TAR_OPTIONS=\"-H gnu\"
29351 export TAR_OPTIONS
29352 rm -rf *
29353
29354
29355 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
29356 echo test > endfile
29357
29358 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
29359 tar tf archive)"
29360 echo long01.at:36 >"$at_check_line_file"
29361
29362 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
29363    false; }; then
29364   ( $at_traceon;
29365 mkdir gnu
29366 (cd gnu
29367 TEST_TAR_FORMAT=gnu
29368 export TEST_TAR_FORMAT
29369 TAR_OPTIONS="-H gnu"
29370 export TAR_OPTIONS
29371 rm -rf *
29372
29373
29374 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
29375 echo test > endfile
29376
29377 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
29378 tar tf archive) ) >"$at_stdout" 2>"$at_stder1"
29379   at_func_filter_trace $?
29380 else
29381   ( :;
29382 mkdir gnu
29383 (cd gnu
29384 TEST_TAR_FORMAT=gnu
29385 export TEST_TAR_FORMAT
29386 TAR_OPTIONS="-H gnu"
29387 export TAR_OPTIONS
29388 rm -rf *
29389
29390
29391 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
29392 echo test > endfile
29393
29394 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
29395 tar tf archive) ) >"$at_stdout" 2>"$at_stderr"
29396 fi
29397 at_status=$?
29398 at_failed=false
29399 at_func_diff_devnull "$at_stderr" || at_failed=:
29400 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
29401 endfile
29402 " | \
29403   $at_diff - "$at_stdout" || at_failed=:
29404 at_func_check_status 0 $at_status "$at_srcdir/long01.at:36"
29405
29406 $at_failed && at_func_log_failure
29407 $at_traceon; }
29408
29409               { $at_traceoff
29410 $as_echo "$at_srcdir/long01.at:36:
29411 mkdir oldgnu
29412 (cd oldgnu
29413 TEST_TAR_FORMAT=oldgnu
29414 export TEST_TAR_FORMAT
29415 TAR_OPTIONS=\"-H oldgnu\"
29416 export TAR_OPTIONS
29417 rm -rf *
29418
29419
29420 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
29421 echo test > endfile
29422
29423 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
29424 tar tf archive)"
29425 echo long01.at:36 >"$at_check_line_file"
29426
29427 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
29428    false; }; then
29429   ( $at_traceon;
29430 mkdir oldgnu
29431 (cd oldgnu
29432 TEST_TAR_FORMAT=oldgnu
29433 export TEST_TAR_FORMAT
29434 TAR_OPTIONS="-H oldgnu"
29435 export TAR_OPTIONS
29436 rm -rf *
29437
29438
29439 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
29440 echo test > endfile
29441
29442 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
29443 tar tf archive) ) >"$at_stdout" 2>"$at_stder1"
29444   at_func_filter_trace $?
29445 else
29446   ( :;
29447 mkdir oldgnu
29448 (cd oldgnu
29449 TEST_TAR_FORMAT=oldgnu
29450 export TEST_TAR_FORMAT
29451 TAR_OPTIONS="-H oldgnu"
29452 export TAR_OPTIONS
29453 rm -rf *
29454
29455
29456 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
29457 echo test > endfile
29458
29459 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
29460 tar tf archive) ) >"$at_stdout" 2>"$at_stderr"
29461 fi
29462 at_status=$?
29463 at_failed=false
29464 at_func_diff_devnull "$at_stderr" || at_failed=:
29465 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
29466 endfile
29467 " | \
29468   $at_diff - "$at_stdout" || at_failed=:
29469 at_func_check_status 0 $at_status "$at_srcdir/long01.at:36"
29470
29471 $at_failed && at_func_log_failure
29472 $at_traceon; }
29473
29474
29475
29476
29477   $at_traceoff
29478   $at_times_p && times >"$at_times_file"
29479 ) 5>&1 2>&1 | eval $at_tee_pipe
29480 at_status=`cat "$at_status_file"`
29481 #AT_STOP_75
29482 #AT_START_76
29483 # 76. lustar01.at:21: ustar: unsplittable file name
29484 at_setup_line='lustar01.at:21'
29485 at_desc="ustar: unsplittable file name"
29486 $at_quiet $as_echo_n " 76: $at_desc                  "
29487 at_xfail=no
29488       test -f $XFAILFILE && at_xfail=yes
29489 echo "#                             -*- compilation -*-" >> "$at_group_log"
29490 (
29491   $as_echo "76. lustar01.at:21: testing ..."
29492   $at_traceon
29493
29494
29495
29496
29497
29498
29499
29500   { $at_traceoff
29501 $as_echo "$at_srcdir/lustar01.at:27:
29502 mkdir ustar
29503 (cd ustar
29504 TEST_TAR_FORMAT=ustar
29505 export TEST_TAR_FORMAT
29506 TAR_OPTIONS=\"-H ustar\"
29507 export TAR_OPTIONS
29508 rm -rf *
29509
29510 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
29511 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
29512 )"
29513 echo lustar01.at:27 >"$at_check_line_file"
29514
29515 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
29516    false; }; then
29517   ( $at_traceon;
29518 mkdir ustar
29519 (cd ustar
29520 TEST_TAR_FORMAT=ustar
29521 export TEST_TAR_FORMAT
29522 TAR_OPTIONS="-H ustar"
29523 export TAR_OPTIONS
29524 rm -rf *
29525
29526 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
29527 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
29528 ) ) >"$at_stdout" 2>"$at_stder1"
29529   at_func_filter_trace $?
29530 else
29531   ( :;
29532 mkdir ustar
29533 (cd ustar
29534 TEST_TAR_FORMAT=ustar
29535 export TEST_TAR_FORMAT
29536 TAR_OPTIONS="-H ustar"
29537 export TAR_OPTIONS
29538 rm -rf *
29539
29540 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
29541 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
29542 ) ) >"$at_stdout" 2>"$at_stderr"
29543 fi
29544 at_status=$?
29545 at_failed=false
29546 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
29547 tar: Exiting with failure status due to previous errors
29548 " | \
29549   $at_diff - "$at_stderr" || at_failed=:
29550 at_func_diff_devnull "$at_stdout" || at_failed=:
29551 at_func_check_status 2 $at_status "$at_srcdir/lustar01.at:27"
29552
29553 $at_failed && at_func_log_failure
29554 $at_traceon; }
29555
29556
29557
29558
29559   $at_traceoff
29560   $at_times_p && times >"$at_times_file"
29561 ) 5>&1 2>&1 | eval $at_tee_pipe
29562 at_status=`cat "$at_status_file"`
29563 #AT_STOP_76
29564 #AT_START_77
29565 # 77. lustar02.at:21: ustar: unsplittable path name
29566 at_setup_line='lustar02.at:21'
29567 at_desc="ustar: unsplittable path name"
29568 $at_quiet $as_echo_n " 77: $at_desc                  "
29569 at_xfail=no
29570       test -f $XFAILFILE && at_xfail=yes
29571 echo "#                             -*- compilation -*-" >> "$at_group_log"
29572 (
29573   $as_echo "77. lustar02.at:21: testing ..."
29574   $at_traceon
29575
29576
29577
29578
29579
29580
29581
29582
29583
29584
29585
29586   { $at_traceoff
29587 $as_echo "$at_srcdir/lustar02.at:32:
29588 mkdir ustar
29589 (cd ustar
29590 TEST_TAR_FORMAT=ustar
29591 export TEST_TAR_FORMAT
29592 TAR_OPTIONS=\"-H ustar\"
29593 export TAR_OPTIONS
29594 rm -rf *
29595
29596
29597 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
29598 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
29599 )"
29600 echo lustar02.at:32 >"$at_check_line_file"
29601
29602 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
29603    false; }; then
29604   ( $at_traceon;
29605 mkdir ustar
29606 (cd ustar
29607 TEST_TAR_FORMAT=ustar
29608 export TEST_TAR_FORMAT
29609 TAR_OPTIONS="-H ustar"
29610 export TAR_OPTIONS
29611 rm -rf *
29612
29613
29614 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
29615 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
29616 ) ) >"$at_stdout" 2>"$at_stder1"
29617   at_func_filter_trace $?
29618 else
29619   ( :;
29620 mkdir ustar
29621 (cd ustar
29622 TEST_TAR_FORMAT=ustar
29623 export TEST_TAR_FORMAT
29624 TAR_OPTIONS="-H ustar"
29625 export TAR_OPTIONS
29626 rm -rf *
29627
29628
29629 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
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_be
29631 ) ) >"$at_stdout" 2>"$at_stderr"
29632 fi
29633 at_status=$?
29634 at_failed=false
29635 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
29636 tar: Exiting with failure status due to previous errors
29637 " | \
29638   $at_diff - "$at_stderr" || at_failed=:
29639 at_func_diff_devnull "$at_stdout" || at_failed=:
29640 at_func_check_status 2 $at_status "$at_srcdir/lustar02.at:32"
29641
29642 $at_failed && at_func_log_failure
29643 $at_traceon; }
29644
29645
29646
29647
29648   $at_traceoff
29649   $at_times_p && times >"$at_times_file"
29650 ) 5>&1 2>&1 | eval $at_tee_pipe
29651 at_status=`cat "$at_status_file"`
29652 #AT_STOP_77
29653 #AT_START_78
29654 # 78. lustar03.at:21: ustar: splitting long names
29655 at_setup_line='lustar03.at:21'
29656 at_desc="ustar: splitting long names"
29657 $at_quiet $as_echo_n " 78: $at_desc                    "
29658 at_xfail=no
29659       test -f $XFAILFILE && at_xfail=yes
29660 echo "#                             -*- compilation -*-" >> "$at_group_log"
29661 (
29662   $as_echo "78. lustar03.at:21: testing ..."
29663   $at_traceon
29664
29665
29666
29667
29668
29669
29670
29671
29672
29673   { $at_traceoff
29674 $as_echo "$at_srcdir/lustar03.at:29:
29675 mkdir ustar
29676 (cd ustar
29677 TEST_TAR_FORMAT=ustar
29678 export TEST_TAR_FORMAT
29679 TAR_OPTIONS=\"-H ustar\"
29680 export TAR_OPTIONS
29681 rm -rf *
29682
29683
29684 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
29685 echo \"Create archive\"
29686 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
29687 echo \"List archive\"
29688 tar tf archive)"
29689 echo lustar03.at:29 >"$at_check_line_file"
29690
29691 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
29692    false; }; then
29693   ( $at_traceon;
29694 mkdir ustar
29695 (cd ustar
29696 TEST_TAR_FORMAT=ustar
29697 export TEST_TAR_FORMAT
29698 TAR_OPTIONS="-H ustar"
29699 export TAR_OPTIONS
29700 rm -rf *
29701
29702
29703 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
29704 echo "Create archive"
29705 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
29706 echo "List archive"
29707 tar tf archive) ) >"$at_stdout" 2>"$at_stder1"
29708   at_func_filter_trace $?
29709 else
29710   ( :;
29711 mkdir ustar
29712 (cd ustar
29713 TEST_TAR_FORMAT=ustar
29714 export TEST_TAR_FORMAT
29715 TAR_OPTIONS="-H ustar"
29716 export TAR_OPTIONS
29717 rm -rf *
29718
29719
29720 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
29721 echo "Create archive"
29722 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
29723 echo "List archive"
29724 tar tf archive) ) >"$at_stdout" 2>"$at_stderr"
29725 fi
29726 at_status=$?
29727 at_failed=false
29728 at_func_diff_devnull "$at_stderr" || at_failed=:
29729 echo >>"$at_stdout"; $as_echo "Create archive
29730 List archive
29731 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/
29732 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
29733 " | \
29734   $at_diff - "$at_stdout" || at_failed=:
29735 at_func_check_status 0 $at_status "$at_srcdir/lustar03.at:29"
29736
29737 $at_failed && at_func_log_failure
29738 $at_traceon; }
29739
29740
29741
29742
29743   $at_traceoff
29744   $at_times_p && times >"$at_times_file"
29745 ) 5>&1 2>&1 | eval $at_tee_pipe
29746 at_status=`cat "$at_status_file"`
29747 #AT_STOP_78
29748 #AT_START_79
29749 # 79. multiv01.at:23: multivolume dumps from pipes
29750 at_setup_line='multiv01.at:23'
29751 at_desc="multivolume dumps from pipes"
29752 $at_quiet $as_echo_n " 79: $at_desc                   "
29753 at_xfail=no
29754       test -f $XFAILFILE && at_xfail=yes
29755 echo "#                             -*- compilation -*-" >> "$at_group_log"
29756 (
29757   $as_echo "79. multiv01.at:23: testing ..."
29758   $at_traceon
29759
29760
29761
29762 # Fixme: should be configurable
29763 #  TRUSS=truss -o /tmp/tr
29764 #  TRUSS=strace
29765
29766
29767
29768   { $at_traceoff
29769 $as_echo "$at_srcdir/multiv01.at:30:
29770 mkdir gnu
29771 (cd gnu
29772 TEST_TAR_FORMAT=gnu
29773 export TEST_TAR_FORMAT
29774 TAR_OPTIONS=\"-H gnu\"
29775 export TAR_OPTIONS
29776 rm -rf *
29777
29778 exec <&-
29779 genfile --length 7168 --file file1
29780
29781 for block in \" 1\" \" 2\" \" 3\" \" 4\" \" 5\" \" 6\" \" 7\" \" 8\" \\
29782               \" 9\" \"10\" \"11\" \"12\" \"13\" \"14\" \"15\" \"16\" ; do \\
29783   echo \"file2  block \${block} bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla\"
29784   for count in 2 3 4 5 6 7 8 ; do
29785     echo \"bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla\"
29786   done
29787 done >file2
29788
29789 if test \$TEST_TAR_FORMAT = pax; then
29790   TAPE_LENGTH=11
29791 else
29792   TAPE_LENGTH=10
29793 fi
29794
29795 tar -c --multi-volume --tape-length=\$TAPE_LENGTH \\
29796   -f t1-pipe.tar -f t2-pipe.tar ./file1 ./file2 || exit 1
29797
29798 mkdir extract-dir-pipe
29799 dd bs=4096 count=\$TAPE_LENGTH if=t2-pipe.tar 2>/dev/null |
29800 PATH=\$PATH \${TRUSS} tar -f t1-pipe.tar -f - \\
29801       -C extract-dir-pipe -x --multi-volume --warning=no-timestamp \\
29802       --tape-length=\$TAPE_LENGTH --read-full-records || exit 1
29803
29804 cmp file1 extract-dir-pipe/file1
29805 cmp file2 extract-dir-pipe/file2
29806 )"
29807 echo multiv01.at:30 >"$at_check_line_file"
29808
29809 if { echo 'Not enabling shell tracing (command contains a ${...} parameter expansion)'
29810    false; }; then
29811   ( $at_traceon;
29812 mkdir gnu
29813 (cd gnu
29814 TEST_TAR_FORMAT=gnu
29815 export TEST_TAR_FORMAT
29816 TAR_OPTIONS="-H gnu"
29817 export TAR_OPTIONS
29818 rm -rf *
29819
29820 exec <&-
29821 genfile --length 7168 --file file1
29822
29823 for block in " 1" " 2" " 3" " 4" " 5" " 6" " 7" " 8" \
29824               " 9" "10" "11" "12" "13" "14" "15" "16" ; do \
29825   echo "file2  block ${block} bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla"
29826   for count in 2 3 4 5 6 7 8 ; do
29827     echo "bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla"
29828   done
29829 done >file2
29830
29831 if test $TEST_TAR_FORMAT = pax; then
29832   TAPE_LENGTH=11
29833 else
29834   TAPE_LENGTH=10
29835 fi
29836
29837 tar -c --multi-volume --tape-length=$TAPE_LENGTH \
29838   -f t1-pipe.tar -f t2-pipe.tar ./file1 ./file2 || exit 1
29839
29840 mkdir extract-dir-pipe
29841 dd bs=4096 count=$TAPE_LENGTH if=t2-pipe.tar 2>/dev/null |
29842 PATH=$PATH ${TRUSS} tar -f t1-pipe.tar -f - \
29843       -C extract-dir-pipe -x --multi-volume --warning=no-timestamp \
29844       --tape-length=$TAPE_LENGTH --read-full-records || exit 1
29845
29846 cmp file1 extract-dir-pipe/file1
29847 cmp file2 extract-dir-pipe/file2
29848 ) ) >"$at_stdout" 2>"$at_stder1"
29849   at_func_filter_trace $?
29850 else
29851   ( :;
29852 mkdir gnu
29853 (cd gnu
29854 TEST_TAR_FORMAT=gnu
29855 export TEST_TAR_FORMAT
29856 TAR_OPTIONS="-H gnu"
29857 export TAR_OPTIONS
29858 rm -rf *
29859
29860 exec <&-
29861 genfile --length 7168 --file file1
29862
29863 for block in " 1" " 2" " 3" " 4" " 5" " 6" " 7" " 8" \
29864               " 9" "10" "11" "12" "13" "14" "15" "16" ; do \
29865   echo "file2  block ${block} bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla"
29866   for count in 2 3 4 5 6 7 8 ; do
29867     echo "bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla"
29868   done
29869 done >file2
29870
29871 if test $TEST_TAR_FORMAT = pax; then
29872   TAPE_LENGTH=11
29873 else
29874   TAPE_LENGTH=10
29875 fi
29876
29877 tar -c --multi-volume --tape-length=$TAPE_LENGTH \
29878   -f t1-pipe.tar -f t2-pipe.tar ./file1 ./file2 || exit 1
29879
29880 mkdir extract-dir-pipe
29881 dd bs=4096 count=$TAPE_LENGTH if=t2-pipe.tar 2>/dev/null |
29882 PATH=$PATH ${TRUSS} tar -f t1-pipe.tar -f - \
29883       -C extract-dir-pipe -x --multi-volume --warning=no-timestamp \
29884       --tape-length=$TAPE_LENGTH --read-full-records || exit 1
29885
29886 cmp file1 extract-dir-pipe/file1
29887 cmp file2 extract-dir-pipe/file2
29888 ) ) >"$at_stdout" 2>"$at_stderr"
29889 fi
29890 at_status=$?
29891 at_failed=false
29892 at_func_diff_devnull "$at_stderr" || at_failed=:
29893 at_func_diff_devnull "$at_stdout" || at_failed=:
29894 at_func_check_status 0 $at_status "$at_srcdir/multiv01.at:30"
29895
29896 $at_failed && at_func_log_failure
29897 $at_traceon; }
29898
29899               { $at_traceoff
29900 $as_echo "$at_srcdir/multiv01.at:30:
29901 mkdir oldgnu
29902 (cd oldgnu
29903 TEST_TAR_FORMAT=oldgnu
29904 export TEST_TAR_FORMAT
29905 TAR_OPTIONS=\"-H oldgnu\"
29906 export TAR_OPTIONS
29907 rm -rf *
29908
29909 exec <&-
29910 genfile --length 7168 --file file1
29911
29912 for block in \" 1\" \" 2\" \" 3\" \" 4\" \" 5\" \" 6\" \" 7\" \" 8\" \\
29913               \" 9\" \"10\" \"11\" \"12\" \"13\" \"14\" \"15\" \"16\" ; do \\
29914   echo \"file2  block \${block} bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla\"
29915   for count in 2 3 4 5 6 7 8 ; do
29916     echo \"bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla\"
29917   done
29918 done >file2
29919
29920 if test \$TEST_TAR_FORMAT = pax; then
29921   TAPE_LENGTH=11
29922 else
29923   TAPE_LENGTH=10
29924 fi
29925
29926 tar -c --multi-volume --tape-length=\$TAPE_LENGTH \\
29927   -f t1-pipe.tar -f t2-pipe.tar ./file1 ./file2 || exit 1
29928
29929 mkdir extract-dir-pipe
29930 dd bs=4096 count=\$TAPE_LENGTH if=t2-pipe.tar 2>/dev/null |
29931 PATH=\$PATH \${TRUSS} tar -f t1-pipe.tar -f - \\
29932       -C extract-dir-pipe -x --multi-volume --warning=no-timestamp \\
29933       --tape-length=\$TAPE_LENGTH --read-full-records || exit 1
29934
29935 cmp file1 extract-dir-pipe/file1
29936 cmp file2 extract-dir-pipe/file2
29937 )"
29938 echo multiv01.at:30 >"$at_check_line_file"
29939
29940 if { echo 'Not enabling shell tracing (command contains a ${...} parameter expansion)'
29941    false; }; then
29942   ( $at_traceon;
29943 mkdir oldgnu
29944 (cd oldgnu
29945 TEST_TAR_FORMAT=oldgnu
29946 export TEST_TAR_FORMAT
29947 TAR_OPTIONS="-H oldgnu"
29948 export TAR_OPTIONS
29949 rm -rf *
29950
29951 exec <&-
29952 genfile --length 7168 --file file1
29953
29954 for block in " 1" " 2" " 3" " 4" " 5" " 6" " 7" " 8" \
29955               " 9" "10" "11" "12" "13" "14" "15" "16" ; do \
29956   echo "file2  block ${block} bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla"
29957   for count in 2 3 4 5 6 7 8 ; do
29958     echo "bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla"
29959   done
29960 done >file2
29961
29962 if test $TEST_TAR_FORMAT = pax; then
29963   TAPE_LENGTH=11
29964 else
29965   TAPE_LENGTH=10
29966 fi
29967
29968 tar -c --multi-volume --tape-length=$TAPE_LENGTH \
29969   -f t1-pipe.tar -f t2-pipe.tar ./file1 ./file2 || exit 1
29970
29971 mkdir extract-dir-pipe
29972 dd bs=4096 count=$TAPE_LENGTH if=t2-pipe.tar 2>/dev/null |
29973 PATH=$PATH ${TRUSS} tar -f t1-pipe.tar -f - \
29974       -C extract-dir-pipe -x --multi-volume --warning=no-timestamp \
29975       --tape-length=$TAPE_LENGTH --read-full-records || exit 1
29976
29977 cmp file1 extract-dir-pipe/file1
29978 cmp file2 extract-dir-pipe/file2
29979 ) ) >"$at_stdout" 2>"$at_stder1"
29980   at_func_filter_trace $?
29981 else
29982   ( :;
29983 mkdir oldgnu
29984 (cd oldgnu
29985 TEST_TAR_FORMAT=oldgnu
29986 export TEST_TAR_FORMAT
29987 TAR_OPTIONS="-H oldgnu"
29988 export TAR_OPTIONS
29989 rm -rf *
29990
29991 exec <&-
29992 genfile --length 7168 --file file1
29993
29994 for block in " 1" " 2" " 3" " 4" " 5" " 6" " 7" " 8" \
29995               " 9" "10" "11" "12" "13" "14" "15" "16" ; do \
29996   echo "file2  block ${block} bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla"
29997   for count in 2 3 4 5 6 7 8 ; do
29998     echo "bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla"
29999   done
30000 done >file2
30001
30002 if test $TEST_TAR_FORMAT = pax; then
30003   TAPE_LENGTH=11
30004 else
30005   TAPE_LENGTH=10
30006 fi
30007
30008 tar -c --multi-volume --tape-length=$TAPE_LENGTH \
30009   -f t1-pipe.tar -f t2-pipe.tar ./file1 ./file2 || exit 1
30010
30011 mkdir extract-dir-pipe
30012 dd bs=4096 count=$TAPE_LENGTH if=t2-pipe.tar 2>/dev/null |
30013 PATH=$PATH ${TRUSS} tar -f t1-pipe.tar -f - \
30014       -C extract-dir-pipe -x --multi-volume --warning=no-timestamp \
30015       --tape-length=$TAPE_LENGTH --read-full-records || exit 1
30016
30017 cmp file1 extract-dir-pipe/file1
30018 cmp file2 extract-dir-pipe/file2
30019 ) ) >"$at_stdout" 2>"$at_stderr"
30020 fi
30021 at_status=$?
30022 at_failed=false
30023 at_func_diff_devnull "$at_stderr" || at_failed=:
30024 at_func_diff_devnull "$at_stdout" || at_failed=:
30025 at_func_check_status 0 $at_status "$at_srcdir/multiv01.at:30"
30026
30027 $at_failed && at_func_log_failure
30028 $at_traceon; }
30029
30030               { $at_traceoff
30031 $as_echo "$at_srcdir/multiv01.at:30:
30032 mkdir pax
30033 (cd pax
30034 TEST_TAR_FORMAT=pax
30035 export TEST_TAR_FORMAT
30036 TAR_OPTIONS=\"-H pax\"
30037 export TAR_OPTIONS
30038 rm -rf *
30039
30040 exec <&-
30041 genfile --length 7168 --file file1
30042
30043 for block in \" 1\" \" 2\" \" 3\" \" 4\" \" 5\" \" 6\" \" 7\" \" 8\" \\
30044               \" 9\" \"10\" \"11\" \"12\" \"13\" \"14\" \"15\" \"16\" ; do \\
30045   echo \"file2  block \${block} bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla\"
30046   for count in 2 3 4 5 6 7 8 ; do
30047     echo \"bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla\"
30048   done
30049 done >file2
30050
30051 if test \$TEST_TAR_FORMAT = pax; then
30052   TAPE_LENGTH=11
30053 else
30054   TAPE_LENGTH=10
30055 fi
30056
30057 tar -c --multi-volume --tape-length=\$TAPE_LENGTH \\
30058   -f t1-pipe.tar -f t2-pipe.tar ./file1 ./file2 || exit 1
30059
30060 mkdir extract-dir-pipe
30061 dd bs=4096 count=\$TAPE_LENGTH if=t2-pipe.tar 2>/dev/null |
30062 PATH=\$PATH \${TRUSS} tar -f t1-pipe.tar -f - \\
30063       -C extract-dir-pipe -x --multi-volume --warning=no-timestamp \\
30064       --tape-length=\$TAPE_LENGTH --read-full-records || exit 1
30065
30066 cmp file1 extract-dir-pipe/file1
30067 cmp file2 extract-dir-pipe/file2
30068 )"
30069 echo multiv01.at:30 >"$at_check_line_file"
30070
30071 if { echo 'Not enabling shell tracing (command contains a ${...} parameter expansion)'
30072    false; }; then
30073   ( $at_traceon;
30074 mkdir pax
30075 (cd pax
30076 TEST_TAR_FORMAT=pax
30077 export TEST_TAR_FORMAT
30078 TAR_OPTIONS="-H pax"
30079 export TAR_OPTIONS
30080 rm -rf *
30081
30082 exec <&-
30083 genfile --length 7168 --file file1
30084
30085 for block in " 1" " 2" " 3" " 4" " 5" " 6" " 7" " 8" \
30086               " 9" "10" "11" "12" "13" "14" "15" "16" ; do \
30087   echo "file2  block ${block} bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla"
30088   for count in 2 3 4 5 6 7 8 ; do
30089     echo "bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla"
30090   done
30091 done >file2
30092
30093 if test $TEST_TAR_FORMAT = pax; then
30094   TAPE_LENGTH=11
30095 else
30096   TAPE_LENGTH=10
30097 fi
30098
30099 tar -c --multi-volume --tape-length=$TAPE_LENGTH \
30100   -f t1-pipe.tar -f t2-pipe.tar ./file1 ./file2 || exit 1
30101
30102 mkdir extract-dir-pipe
30103 dd bs=4096 count=$TAPE_LENGTH if=t2-pipe.tar 2>/dev/null |
30104 PATH=$PATH ${TRUSS} tar -f t1-pipe.tar -f - \
30105       -C extract-dir-pipe -x --multi-volume --warning=no-timestamp \
30106       --tape-length=$TAPE_LENGTH --read-full-records || exit 1
30107
30108 cmp file1 extract-dir-pipe/file1
30109 cmp file2 extract-dir-pipe/file2
30110 ) ) >"$at_stdout" 2>"$at_stder1"
30111   at_func_filter_trace $?
30112 else
30113   ( :;
30114 mkdir pax
30115 (cd pax
30116 TEST_TAR_FORMAT=pax
30117 export TEST_TAR_FORMAT
30118 TAR_OPTIONS="-H pax"
30119 export TAR_OPTIONS
30120 rm -rf *
30121
30122 exec <&-
30123 genfile --length 7168 --file file1
30124
30125 for block in " 1" " 2" " 3" " 4" " 5" " 6" " 7" " 8" \
30126               " 9" "10" "11" "12" "13" "14" "15" "16" ; do \
30127   echo "file2  block ${block} bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla"
30128   for count in 2 3 4 5 6 7 8 ; do
30129     echo "bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla"
30130   done
30131 done >file2
30132
30133 if test $TEST_TAR_FORMAT = pax; then
30134   TAPE_LENGTH=11
30135 else
30136   TAPE_LENGTH=10
30137 fi
30138
30139 tar -c --multi-volume --tape-length=$TAPE_LENGTH \
30140   -f t1-pipe.tar -f t2-pipe.tar ./file1 ./file2 || exit 1
30141
30142 mkdir extract-dir-pipe
30143 dd bs=4096 count=$TAPE_LENGTH if=t2-pipe.tar 2>/dev/null |
30144 PATH=$PATH ${TRUSS} tar -f t1-pipe.tar -f - \
30145       -C extract-dir-pipe -x --multi-volume --warning=no-timestamp \
30146       --tape-length=$TAPE_LENGTH --read-full-records || exit 1
30147
30148 cmp file1 extract-dir-pipe/file1
30149 cmp file2 extract-dir-pipe/file2
30150 ) ) >"$at_stdout" 2>"$at_stderr"
30151 fi
30152 at_status=$?
30153 at_failed=false
30154 at_func_diff_devnull "$at_stderr" || at_failed=:
30155 at_func_diff_devnull "$at_stdout" || at_failed=:
30156 at_func_check_status 0 $at_status "$at_srcdir/multiv01.at:30"
30157
30158 $at_failed && at_func_log_failure
30159 $at_traceon; }
30160
30161
30162
30163
30164   $at_traceoff
30165   $at_times_p && times >"$at_times_file"
30166 ) 5>&1 2>&1 | eval $at_tee_pipe
30167 at_status=`cat "$at_status_file"`
30168 #AT_STOP_79
30169 #AT_START_80
30170 # 80. multiv02.at:28: skipping a straddling member
30171 at_setup_line='multiv02.at:28'
30172 at_desc="skipping a straddling member"
30173 $at_quiet $as_echo_n " 80: $at_desc                   "
30174 at_xfail=no
30175       test -f $XFAILFILE && at_xfail=yes
30176 echo "#                             -*- compilation -*-" >> "$at_group_log"
30177 (
30178   $as_echo "80. multiv02.at:28: testing ..."
30179   $at_traceon
30180
30181
30182
30183
30184
30185   { $at_traceoff
30186 $as_echo "$at_srcdir/multiv02.at:31:
30187 mkdir gnu
30188 (cd gnu
30189 TEST_TAR_FORMAT=gnu
30190 export TEST_TAR_FORMAT
30191 TAR_OPTIONS=\"-H gnu\"
30192 export TAR_OPTIONS
30193 rm -rf *
30194
30195 genfile --length 10240 --file en
30196 genfile --length 20000 --file to
30197 genfile --length 20000 --file tre
30198 genfile --length 10240 --file fire
30199
30200 exec <&-
30201
30202 tar -c -f A.tar -f B.tar -f C.tar -M -L 30 en to tre fire || exit 1
30203 echo separator
30204 tar -v -x -f A.tar -f B.tar -f C.tar -M en --warning=no-timestamp || exit 1
30205 )"
30206 echo multiv02.at:31 >"$at_check_line_file"
30207
30208 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
30209    false; }; then
30210   ( $at_traceon;
30211 mkdir gnu
30212 (cd gnu
30213 TEST_TAR_FORMAT=gnu
30214 export TEST_TAR_FORMAT
30215 TAR_OPTIONS="-H gnu"
30216 export TAR_OPTIONS
30217 rm -rf *
30218
30219 genfile --length 10240 --file en
30220 genfile --length 20000 --file to
30221 genfile --length 20000 --file tre
30222 genfile --length 10240 --file fire
30223
30224 exec <&-
30225
30226 tar -c -f A.tar -f B.tar -f C.tar -M -L 30 en to tre fire || exit 1
30227 echo separator
30228 tar -v -x -f A.tar -f B.tar -f C.tar -M en --warning=no-timestamp || exit 1
30229 ) ) >"$at_stdout" 2>"$at_stder1"
30230   at_func_filter_trace $?
30231 else
30232   ( :;
30233 mkdir gnu
30234 (cd gnu
30235 TEST_TAR_FORMAT=gnu
30236 export TEST_TAR_FORMAT
30237 TAR_OPTIONS="-H gnu"
30238 export TAR_OPTIONS
30239 rm -rf *
30240
30241 genfile --length 10240 --file en
30242 genfile --length 20000 --file to
30243 genfile --length 20000 --file tre
30244 genfile --length 10240 --file fire
30245
30246 exec <&-
30247
30248 tar -c -f A.tar -f B.tar -f C.tar -M -L 30 en to tre fire || exit 1
30249 echo separator
30250 tar -v -x -f A.tar -f B.tar -f C.tar -M en --warning=no-timestamp || exit 1
30251 ) ) >"$at_stdout" 2>"$at_stderr"
30252 fi
30253 at_status=$?
30254 at_failed=false
30255 at_func_diff_devnull "$at_stderr" || at_failed=:
30256 echo >>"$at_stdout"; $as_echo "separator
30257 en
30258 " | \
30259   $at_diff - "$at_stdout" || at_failed=:
30260 at_func_check_status 0 $at_status "$at_srcdir/multiv02.at:31"
30261
30262 $at_failed && at_func_log_failure
30263 $at_traceon; }
30264
30265               { $at_traceoff
30266 $as_echo "$at_srcdir/multiv02.at:31:
30267 mkdir oldgnu
30268 (cd oldgnu
30269 TEST_TAR_FORMAT=oldgnu
30270 export TEST_TAR_FORMAT
30271 TAR_OPTIONS=\"-H oldgnu\"
30272 export TAR_OPTIONS
30273 rm -rf *
30274
30275 genfile --length 10240 --file en
30276 genfile --length 20000 --file to
30277 genfile --length 20000 --file tre
30278 genfile --length 10240 --file fire
30279
30280 exec <&-
30281
30282 tar -c -f A.tar -f B.tar -f C.tar -M -L 30 en to tre fire || exit 1
30283 echo separator
30284 tar -v -x -f A.tar -f B.tar -f C.tar -M en --warning=no-timestamp || exit 1
30285 )"
30286 echo multiv02.at:31 >"$at_check_line_file"
30287
30288 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
30289    false; }; then
30290   ( $at_traceon;
30291 mkdir oldgnu
30292 (cd oldgnu
30293 TEST_TAR_FORMAT=oldgnu
30294 export TEST_TAR_FORMAT
30295 TAR_OPTIONS="-H oldgnu"
30296 export TAR_OPTIONS
30297 rm -rf *
30298
30299 genfile --length 10240 --file en
30300 genfile --length 20000 --file to
30301 genfile --length 20000 --file tre
30302 genfile --length 10240 --file fire
30303
30304 exec <&-
30305
30306 tar -c -f A.tar -f B.tar -f C.tar -M -L 30 en to tre fire || exit 1
30307 echo separator
30308 tar -v -x -f A.tar -f B.tar -f C.tar -M en --warning=no-timestamp || exit 1
30309 ) ) >"$at_stdout" 2>"$at_stder1"
30310   at_func_filter_trace $?
30311 else
30312   ( :;
30313 mkdir oldgnu
30314 (cd oldgnu
30315 TEST_TAR_FORMAT=oldgnu
30316 export TEST_TAR_FORMAT
30317 TAR_OPTIONS="-H oldgnu"
30318 export TAR_OPTIONS
30319 rm -rf *
30320
30321 genfile --length 10240 --file en
30322 genfile --length 20000 --file to
30323 genfile --length 20000 --file tre
30324 genfile --length 10240 --file fire
30325
30326 exec <&-
30327
30328 tar -c -f A.tar -f B.tar -f C.tar -M -L 30 en to tre fire || exit 1
30329 echo separator
30330 tar -v -x -f A.tar -f B.tar -f C.tar -M en --warning=no-timestamp || exit 1
30331 ) ) >"$at_stdout" 2>"$at_stderr"
30332 fi
30333 at_status=$?
30334 at_failed=false
30335 at_func_diff_devnull "$at_stderr" || at_failed=:
30336 echo >>"$at_stdout"; $as_echo "separator
30337 en
30338 " | \
30339   $at_diff - "$at_stdout" || at_failed=:
30340 at_func_check_status 0 $at_status "$at_srcdir/multiv02.at:31"
30341
30342 $at_failed && at_func_log_failure
30343 $at_traceon; }
30344
30345               { $at_traceoff
30346 $as_echo "$at_srcdir/multiv02.at:31:
30347 mkdir pax
30348 (cd pax
30349 TEST_TAR_FORMAT=pax
30350 export TEST_TAR_FORMAT
30351 TAR_OPTIONS=\"-H pax\"
30352 export TAR_OPTIONS
30353 rm -rf *
30354
30355 genfile --length 10240 --file en
30356 genfile --length 20000 --file to
30357 genfile --length 20000 --file tre
30358 genfile --length 10240 --file fire
30359
30360 exec <&-
30361
30362 tar -c -f A.tar -f B.tar -f C.tar -M -L 30 en to tre fire || exit 1
30363 echo separator
30364 tar -v -x -f A.tar -f B.tar -f C.tar -M en --warning=no-timestamp || exit 1
30365 )"
30366 echo multiv02.at:31 >"$at_check_line_file"
30367
30368 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
30369    false; }; then
30370   ( $at_traceon;
30371 mkdir pax
30372 (cd pax
30373 TEST_TAR_FORMAT=pax
30374 export TEST_TAR_FORMAT
30375 TAR_OPTIONS="-H pax"
30376 export TAR_OPTIONS
30377 rm -rf *
30378
30379 genfile --length 10240 --file en
30380 genfile --length 20000 --file to
30381 genfile --length 20000 --file tre
30382 genfile --length 10240 --file fire
30383
30384 exec <&-
30385
30386 tar -c -f A.tar -f B.tar -f C.tar -M -L 30 en to tre fire || exit 1
30387 echo separator
30388 tar -v -x -f A.tar -f B.tar -f C.tar -M en --warning=no-timestamp || exit 1
30389 ) ) >"$at_stdout" 2>"$at_stder1"
30390   at_func_filter_trace $?
30391 else
30392   ( :;
30393 mkdir pax
30394 (cd pax
30395 TEST_TAR_FORMAT=pax
30396 export TEST_TAR_FORMAT
30397 TAR_OPTIONS="-H pax"
30398 export TAR_OPTIONS
30399 rm -rf *
30400
30401 genfile --length 10240 --file en
30402 genfile --length 20000 --file to
30403 genfile --length 20000 --file tre
30404 genfile --length 10240 --file fire
30405
30406 exec <&-
30407
30408 tar -c -f A.tar -f B.tar -f C.tar -M -L 30 en to tre fire || exit 1
30409 echo separator
30410 tar -v -x -f A.tar -f B.tar -f C.tar -M en --warning=no-timestamp || exit 1
30411 ) ) >"$at_stdout" 2>"$at_stderr"
30412 fi
30413 at_status=$?
30414 at_failed=false
30415 at_func_diff_devnull "$at_stderr" || at_failed=:
30416 echo >>"$at_stdout"; $as_echo "separator
30417 en
30418 " | \
30419   $at_diff - "$at_stdout" || at_failed=:
30420 at_func_check_status 0 $at_status "$at_srcdir/multiv02.at:31"
30421
30422 $at_failed && at_func_log_failure
30423 $at_traceon; }
30424
30425
30426
30427
30428   $at_traceoff
30429   $at_times_p && times >"$at_times_file"
30430 ) 5>&1 2>&1 | eval $at_tee_pipe
30431 at_status=`cat "$at_status_file"`
30432 #AT_STOP_80
30433 #AT_START_81
30434 # 81. multiv03.at:30: MV archive & long filenames
30435 at_setup_line='multiv03.at:30'
30436 at_desc="MV archive & long filenames"
30437 $at_quiet $as_echo_n " 81: $at_desc                    "
30438 at_xfail=no
30439       test -f $XFAILFILE && at_xfail=yes
30440 echo "#                             -*- compilation -*-" >> "$at_group_log"
30441 (
30442   $as_echo "81. multiv03.at:30: testing ..."
30443   $at_traceon
30444
30445
30446
30447
30448
30449   { $at_traceoff
30450 $as_echo "$at_srcdir/multiv03.at:33:
30451 mkdir gnu
30452 (cd gnu
30453 TEST_TAR_FORMAT=gnu
30454 export TEST_TAR_FORMAT
30455 TAR_OPTIONS=\"-H gnu\"
30456 export TAR_OPTIONS
30457 rm -rf *
30458
30459 AFILE=\`awk 'BEGIN { for (i = 0; i < 100; i++) printf \"a\"; exit; }'\`
30460 BFILE=\`awk 'BEGIN { for (i = 0; i < 101; i++) printf \"b\"; exit; }'\`
30461
30462 cat > ../experr <<EOF
30463 tar: \$BFILE: file name too long to be stored in a GNU multivolume header, truncated
30464 tar: \\\`\$BFILE' is possibly continued on this volume: header contains truncated name
30465 EOF
30466
30467 cat > ../expout <<EOF
30468 \$AFILE
30469 separator-1
30470 separator-2
30471 EOF
30472
30473 genfile --length 15360 --file \$AFILE
30474
30475 exec <&-
30476
30477 tar -M -L 10 -c -f arch.1 -f arch.2 \$AFILE || exit 1
30478 tar -tM -f arch.1 -f arch.2 || exit 1
30479
30480 echo separator-1
30481
30482 genfile --length 15360 --file \$BFILE
30483 tar -M -L 10 -c -f arch.1 -f arch.2 \$BFILE || exit 1
30484
30485 echo separator-2
30486 mv \$BFILE bfile
30487 tar -M -x -f arch.1 -f arch.2 --warning=no-timestamp || exit 1
30488 cmp \$BFILE bfile
30489 )"
30490 echo multiv03.at:33 >"$at_check_line_file"
30491
30492 if { echo 'Not enabling shell tracing (command contains a `...` command substitution)'
30493    false; }; then
30494   ( $at_traceon;
30495 mkdir gnu
30496 (cd gnu
30497 TEST_TAR_FORMAT=gnu
30498 export TEST_TAR_FORMAT
30499 TAR_OPTIONS="-H gnu"
30500 export TAR_OPTIONS
30501 rm -rf *
30502
30503 AFILE=`awk 'BEGIN { for (i = 0; i < 100; i++) printf "a"; exit; }'`
30504 BFILE=`awk 'BEGIN { for (i = 0; i < 101; i++) printf "b"; exit; }'`
30505
30506 cat > ../experr <<EOF
30507 tar: $BFILE: file name too long to be stored in a GNU multivolume header, truncated
30508 tar: \`$BFILE' is possibly continued on this volume: header contains truncated name
30509 EOF
30510
30511 cat > ../expout <<EOF
30512 $AFILE
30513 separator-1
30514 separator-2
30515 EOF
30516
30517 genfile --length 15360 --file $AFILE
30518
30519 exec <&-
30520
30521 tar -M -L 10 -c -f arch.1 -f arch.2 $AFILE || exit 1
30522 tar -tM -f arch.1 -f arch.2 || exit 1
30523
30524 echo separator-1
30525
30526 genfile --length 15360 --file $BFILE
30527 tar -M -L 10 -c -f arch.1 -f arch.2 $BFILE || exit 1
30528
30529 echo separator-2
30530 mv $BFILE bfile
30531 tar -M -x -f arch.1 -f arch.2 --warning=no-timestamp || exit 1
30532 cmp $BFILE bfile
30533 ) ) >"$at_stdout" 2>"$at_stder1"
30534   at_func_filter_trace $?
30535 else
30536   ( :;
30537 mkdir gnu
30538 (cd gnu
30539 TEST_TAR_FORMAT=gnu
30540 export TEST_TAR_FORMAT
30541 TAR_OPTIONS="-H gnu"
30542 export TAR_OPTIONS
30543 rm -rf *
30544
30545 AFILE=`awk 'BEGIN { for (i = 0; i < 100; i++) printf "a"; exit; }'`
30546 BFILE=`awk 'BEGIN { for (i = 0; i < 101; i++) printf "b"; exit; }'`
30547
30548 cat > ../experr <<EOF
30549 tar: $BFILE: file name too long to be stored in a GNU multivolume header, truncated
30550 tar: \`$BFILE' is possibly continued on this volume: header contains truncated name
30551 EOF
30552
30553 cat > ../expout <<EOF
30554 $AFILE
30555 separator-1
30556 separator-2
30557 EOF
30558
30559 genfile --length 15360 --file $AFILE
30560
30561 exec <&-
30562
30563 tar -M -L 10 -c -f arch.1 -f arch.2 $AFILE || exit 1
30564 tar -tM -f arch.1 -f arch.2 || exit 1
30565
30566 echo separator-1
30567
30568 genfile --length 15360 --file $BFILE
30569 tar -M -L 10 -c -f arch.1 -f arch.2 $BFILE || exit 1
30570
30571 echo separator-2
30572 mv $BFILE bfile
30573 tar -M -x -f arch.1 -f arch.2 --warning=no-timestamp || exit 1
30574 cmp $BFILE bfile
30575 ) ) >"$at_stdout" 2>"$at_stderr"
30576 fi
30577 at_status=$?
30578 at_failed=false
30579 $at_diff experr "$at_stderr" || at_failed=:
30580 $at_diff expout "$at_stdout" || at_failed=:
30581 at_func_check_status 0 $at_status "$at_srcdir/multiv03.at:33"
30582
30583 $at_failed && at_func_log_failure
30584 $at_traceon; }
30585
30586               { $at_traceoff
30587 $as_echo "$at_srcdir/multiv03.at:33:
30588 mkdir oldgnu
30589 (cd oldgnu
30590 TEST_TAR_FORMAT=oldgnu
30591 export TEST_TAR_FORMAT
30592 TAR_OPTIONS=\"-H oldgnu\"
30593 export TAR_OPTIONS
30594 rm -rf *
30595
30596 AFILE=\`awk 'BEGIN { for (i = 0; i < 100; i++) printf \"a\"; exit; }'\`
30597 BFILE=\`awk 'BEGIN { for (i = 0; i < 101; i++) printf \"b\"; exit; }'\`
30598
30599 cat > ../experr <<EOF
30600 tar: \$BFILE: file name too long to be stored in a GNU multivolume header, truncated
30601 tar: \\\`\$BFILE' is possibly continued on this volume: header contains truncated name
30602 EOF
30603
30604 cat > ../expout <<EOF
30605 \$AFILE
30606 separator-1
30607 separator-2
30608 EOF
30609
30610 genfile --length 15360 --file \$AFILE
30611
30612 exec <&-
30613
30614 tar -M -L 10 -c -f arch.1 -f arch.2 \$AFILE || exit 1
30615 tar -tM -f arch.1 -f arch.2 || exit 1
30616
30617 echo separator-1
30618
30619 genfile --length 15360 --file \$BFILE
30620 tar -M -L 10 -c -f arch.1 -f arch.2 \$BFILE || exit 1
30621
30622 echo separator-2
30623 mv \$BFILE bfile
30624 tar -M -x -f arch.1 -f arch.2 --warning=no-timestamp || exit 1
30625 cmp \$BFILE bfile
30626 )"
30627 echo multiv03.at:33 >"$at_check_line_file"
30628
30629 if { echo 'Not enabling shell tracing (command contains a `...` command substitution)'
30630    false; }; then
30631   ( $at_traceon;
30632 mkdir oldgnu
30633 (cd oldgnu
30634 TEST_TAR_FORMAT=oldgnu
30635 export TEST_TAR_FORMAT
30636 TAR_OPTIONS="-H oldgnu"
30637 export TAR_OPTIONS
30638 rm -rf *
30639
30640 AFILE=`awk 'BEGIN { for (i = 0; i < 100; i++) printf "a"; exit; }'`
30641 BFILE=`awk 'BEGIN { for (i = 0; i < 101; i++) printf "b"; exit; }'`
30642
30643 cat > ../experr <<EOF
30644 tar: $BFILE: file name too long to be stored in a GNU multivolume header, truncated
30645 tar: \`$BFILE' is possibly continued on this volume: header contains truncated name
30646 EOF
30647
30648 cat > ../expout <<EOF
30649 $AFILE
30650 separator-1
30651 separator-2
30652 EOF
30653
30654 genfile --length 15360 --file $AFILE
30655
30656 exec <&-
30657
30658 tar -M -L 10 -c -f arch.1 -f arch.2 $AFILE || exit 1
30659 tar -tM -f arch.1 -f arch.2 || exit 1
30660
30661 echo separator-1
30662
30663 genfile --length 15360 --file $BFILE
30664 tar -M -L 10 -c -f arch.1 -f arch.2 $BFILE || exit 1
30665
30666 echo separator-2
30667 mv $BFILE bfile
30668 tar -M -x -f arch.1 -f arch.2 --warning=no-timestamp || exit 1
30669 cmp $BFILE bfile
30670 ) ) >"$at_stdout" 2>"$at_stder1"
30671   at_func_filter_trace $?
30672 else
30673   ( :;
30674 mkdir oldgnu
30675 (cd oldgnu
30676 TEST_TAR_FORMAT=oldgnu
30677 export TEST_TAR_FORMAT
30678 TAR_OPTIONS="-H oldgnu"
30679 export TAR_OPTIONS
30680 rm -rf *
30681
30682 AFILE=`awk 'BEGIN { for (i = 0; i < 100; i++) printf "a"; exit; }'`
30683 BFILE=`awk 'BEGIN { for (i = 0; i < 101; i++) printf "b"; exit; }'`
30684
30685 cat > ../experr <<EOF
30686 tar: $BFILE: file name too long to be stored in a GNU multivolume header, truncated
30687 tar: \`$BFILE' is possibly continued on this volume: header contains truncated name
30688 EOF
30689
30690 cat > ../expout <<EOF
30691 $AFILE
30692 separator-1
30693 separator-2
30694 EOF
30695
30696 genfile --length 15360 --file $AFILE
30697
30698 exec <&-
30699
30700 tar -M -L 10 -c -f arch.1 -f arch.2 $AFILE || exit 1
30701 tar -tM -f arch.1 -f arch.2 || exit 1
30702
30703 echo separator-1
30704
30705 genfile --length 15360 --file $BFILE
30706 tar -M -L 10 -c -f arch.1 -f arch.2 $BFILE || exit 1
30707
30708 echo separator-2
30709 mv $BFILE bfile
30710 tar -M -x -f arch.1 -f arch.2 --warning=no-timestamp || exit 1
30711 cmp $BFILE bfile
30712 ) ) >"$at_stdout" 2>"$at_stderr"
30713 fi
30714 at_status=$?
30715 at_failed=false
30716 $at_diff experr "$at_stderr" || at_failed=:
30717 $at_diff expout "$at_stdout" || at_failed=:
30718 at_func_check_status 0 $at_status "$at_srcdir/multiv03.at:33"
30719
30720 $at_failed && at_func_log_failure
30721 $at_traceon; }
30722
30723
30724
30725
30726   $at_traceoff
30727   $at_times_p && times >"$at_times_file"
30728 ) 5>&1 2>&1 | eval $at_tee_pipe
30729 at_status=`cat "$at_status_file"`
30730 #AT_STOP_81
30731 #AT_START_82
30732 # 82. multiv04.at:36: split directory members in a MV archive
30733 at_setup_line='multiv04.at:36'
30734 at_desc="split directory members in a MV archive"
30735 $at_quiet $as_echo_n " 82: $at_desc        "
30736 at_xfail=no
30737       test -f $XFAILFILE && at_xfail=yes
30738 echo "#                             -*- compilation -*-" >> "$at_group_log"
30739 (
30740   $as_echo "82. multiv04.at:36: testing ..."
30741   $at_traceon
30742
30743
30744
30745
30746
30747   { $at_traceoff
30748 $as_echo "$at_srcdir/multiv04.at:39:
30749 mkdir gnu
30750 (cd gnu
30751 TEST_TAR_FORMAT=gnu
30752 export TEST_TAR_FORMAT
30753 TAR_OPTIONS=\"-H gnu\"
30754 export TAR_OPTIONS
30755 rm -rf *
30756
30757
30758 mkdir directory
30759 awk 'BEGIN { for (i = 0; i < 1024; i++) printf(\"directory/%014x\\n\", i); }' </dev/null | genfile --files-from -
30760
30761 exec <&-
30762
30763 sleep 2
30764
30765 tar --listed-incremental=list -c -f archive.a directory
30766
30767 sleep 2
30768
30769 tar --listed-incremental=list -c --record-size 1024 -L 16 -f arc.1 -f arc.2 -v directory
30770
30771 echo separator
30772
30773 tar -MRt -f arc.1 -f arc.2)"
30774 echo multiv04.at:39 >"$at_check_line_file"
30775
30776 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
30777    false; }; then
30778   ( $at_traceon;
30779 mkdir gnu
30780 (cd gnu
30781 TEST_TAR_FORMAT=gnu
30782 export TEST_TAR_FORMAT
30783 TAR_OPTIONS="-H gnu"
30784 export TAR_OPTIONS
30785 rm -rf *
30786
30787
30788 mkdir directory
30789 awk 'BEGIN { for (i = 0; i < 1024; i++) printf("directory/%014x\n", i); }' </dev/null | genfile --files-from -
30790
30791 exec <&-
30792
30793 sleep 2
30794
30795 tar --listed-incremental=list -c -f archive.a directory
30796
30797 sleep 2
30798
30799 tar --listed-incremental=list -c --record-size 1024 -L 16 -f arc.1 -f arc.2 -v directory
30800
30801 echo separator
30802
30803 tar -MRt -f arc.1 -f arc.2) ) >"$at_stdout" 2>"$at_stder1"
30804   at_func_filter_trace $?
30805 else
30806   ( :;
30807 mkdir gnu
30808 (cd gnu
30809 TEST_TAR_FORMAT=gnu
30810 export TEST_TAR_FORMAT
30811 TAR_OPTIONS="-H gnu"
30812 export TAR_OPTIONS
30813 rm -rf *
30814
30815
30816 mkdir directory
30817 awk 'BEGIN { for (i = 0; i < 1024; i++) printf("directory/%014x\n", i); }' </dev/null | genfile --files-from -
30818
30819 exec <&-
30820
30821 sleep 2
30822
30823 tar --listed-incremental=list -c -f archive.a directory
30824
30825 sleep 2
30826
30827 tar --listed-incremental=list -c --record-size 1024 -L 16 -f arc.1 -f arc.2 -v directory
30828
30829 echo separator
30830
30831 tar -MRt -f arc.1 -f arc.2) ) >"$at_stdout" 2>"$at_stderr"
30832 fi
30833 at_status=$?
30834 at_failed=false
30835 at_func_diff_devnull "$at_stderr" || at_failed=:
30836 echo >>"$at_stdout"; $as_echo "directory/
30837 separator
30838 block 0: directory/
30839 block 35: ** Block of NULs **
30840 " | \
30841   $at_diff - "$at_stdout" || at_failed=:
30842 at_func_check_status 0 $at_status "$at_srcdir/multiv04.at:39"
30843
30844 $at_failed && at_func_log_failure
30845 $at_traceon; }
30846
30847               { $at_traceoff
30848 $as_echo "$at_srcdir/multiv04.at:39:
30849 mkdir oldgnu
30850 (cd oldgnu
30851 TEST_TAR_FORMAT=oldgnu
30852 export TEST_TAR_FORMAT
30853 TAR_OPTIONS=\"-H oldgnu\"
30854 export TAR_OPTIONS
30855 rm -rf *
30856
30857
30858 mkdir directory
30859 awk 'BEGIN { for (i = 0; i < 1024; i++) printf(\"directory/%014x\\n\", i); }' </dev/null | genfile --files-from -
30860
30861 exec <&-
30862
30863 sleep 2
30864
30865 tar --listed-incremental=list -c -f archive.a directory
30866
30867 sleep 2
30868
30869 tar --listed-incremental=list -c --record-size 1024 -L 16 -f arc.1 -f arc.2 -v directory
30870
30871 echo separator
30872
30873 tar -MRt -f arc.1 -f arc.2)"
30874 echo multiv04.at:39 >"$at_check_line_file"
30875
30876 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
30877    false; }; then
30878   ( $at_traceon;
30879 mkdir oldgnu
30880 (cd oldgnu
30881 TEST_TAR_FORMAT=oldgnu
30882 export TEST_TAR_FORMAT
30883 TAR_OPTIONS="-H oldgnu"
30884 export TAR_OPTIONS
30885 rm -rf *
30886
30887
30888 mkdir directory
30889 awk 'BEGIN { for (i = 0; i < 1024; i++) printf("directory/%014x\n", i); }' </dev/null | genfile --files-from -
30890
30891 exec <&-
30892
30893 sleep 2
30894
30895 tar --listed-incremental=list -c -f archive.a directory
30896
30897 sleep 2
30898
30899 tar --listed-incremental=list -c --record-size 1024 -L 16 -f arc.1 -f arc.2 -v directory
30900
30901 echo separator
30902
30903 tar -MRt -f arc.1 -f arc.2) ) >"$at_stdout" 2>"$at_stder1"
30904   at_func_filter_trace $?
30905 else
30906   ( :;
30907 mkdir oldgnu
30908 (cd oldgnu
30909 TEST_TAR_FORMAT=oldgnu
30910 export TEST_TAR_FORMAT
30911 TAR_OPTIONS="-H oldgnu"
30912 export TAR_OPTIONS
30913 rm -rf *
30914
30915
30916 mkdir directory
30917 awk 'BEGIN { for (i = 0; i < 1024; i++) printf("directory/%014x\n", i); }' </dev/null | genfile --files-from -
30918
30919 exec <&-
30920
30921 sleep 2
30922
30923 tar --listed-incremental=list -c -f archive.a directory
30924
30925 sleep 2
30926
30927 tar --listed-incremental=list -c --record-size 1024 -L 16 -f arc.1 -f arc.2 -v directory
30928
30929 echo separator
30930
30931 tar -MRt -f arc.1 -f arc.2) ) >"$at_stdout" 2>"$at_stderr"
30932 fi
30933 at_status=$?
30934 at_failed=false
30935 at_func_diff_devnull "$at_stderr" || at_failed=:
30936 echo >>"$at_stdout"; $as_echo "directory/
30937 separator
30938 block 0: directory/
30939 block 35: ** Block of NULs **
30940 " | \
30941   $at_diff - "$at_stdout" || at_failed=:
30942 at_func_check_status 0 $at_status "$at_srcdir/multiv04.at:39"
30943
30944 $at_failed && at_func_log_failure
30945 $at_traceon; }
30946
30947
30948
30949
30950   $at_traceoff
30951   $at_times_p && times >"$at_times_file"
30952 ) 5>&1 2>&1 | eval $at_tee_pipe
30953 at_status=`cat "$at_status_file"`
30954 #AT_STOP_82
30955 #AT_START_83
30956 # 83. multiv05.at:26: Restoring after an out of sync volume
30957 at_setup_line='multiv05.at:26'
30958 at_desc="Restoring after an out of sync volume"
30959 $at_quiet $as_echo_n " 83: $at_desc          "
30960 at_xfail=no
30961       test -f $XFAILFILE && at_xfail=yes
30962 echo "#                             -*- compilation -*-" >> "$at_group_log"
30963 (
30964   $as_echo "83. multiv05.at:26: testing ..."
30965   $at_traceon
30966
30967
30968
30969
30970
30971
30972   { $at_traceoff
30973 $as_echo "$at_srcdir/multiv05.at:30:
30974 mkdir gnu
30975 (cd gnu
30976 TEST_TAR_FORMAT=gnu
30977 export TEST_TAR_FORMAT
30978 TAR_OPTIONS=\"-H gnu\"
30979 export TAR_OPTIONS
30980 rm -rf *
30981
30982 exec <&-
30983
30984 genfile --length 250k --file jeden
30985 genfile --length 250k --file dwa
30986 genfile --length 250k --file trzy
30987 genfile --length 250k --file cztery
30988 genfile --length 250k --file piec
30989 genfile --length 250k --file szesc
30990
30991
30992 echo Creating archive
30993 tar -c -M -L 502 -f a.tar -f b.tar -f c.tar jeden dwa trzy cztery piec szesc
30994 echo separator
30995 mkdir bak
30996 mv jeden dwa trzy cztery piec szesc bak
30997 tar -vxM -f a.tar -f c.tar -f b.tar -f c.tar
30998 echo Diffing jeden
30999    cmp bak/jeden jeden || exit 1
31000 echo Diffing dwa
31001    cmp bak/dwa dwa || exit 1
31002 echo Diffing trzy
31003    cmp bak/trzy trzy || exit 1
31004 echo Diffing cztery
31005    cmp bak/cztery cztery || exit 1
31006 echo Diffing piec
31007    cmp bak/piec piec || exit 1
31008 echo Diffing szesc
31009    cmp bak/szesc szesc || exit 1
31010 )"
31011 echo multiv05.at:30 >"$at_check_line_file"
31012
31013 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
31014    false; }; then
31015   ( $at_traceon;
31016 mkdir gnu
31017 (cd gnu
31018 TEST_TAR_FORMAT=gnu
31019 export TEST_TAR_FORMAT
31020 TAR_OPTIONS="-H gnu"
31021 export TAR_OPTIONS
31022 rm -rf *
31023
31024 exec <&-
31025
31026 genfile --length 250k --file jeden
31027 genfile --length 250k --file dwa
31028 genfile --length 250k --file trzy
31029 genfile --length 250k --file cztery
31030 genfile --length 250k --file piec
31031 genfile --length 250k --file szesc
31032
31033
31034 echo Creating archive
31035 tar -c -M -L 502 -f a.tar -f b.tar -f c.tar jeden dwa trzy cztery piec szesc
31036 echo separator
31037 mkdir bak
31038 mv jeden dwa trzy cztery piec szesc bak
31039 tar -vxM -f a.tar -f c.tar -f b.tar -f c.tar
31040 echo Diffing jeden
31041    cmp bak/jeden jeden || exit 1
31042 echo Diffing dwa
31043    cmp bak/dwa dwa || exit 1
31044 echo Diffing trzy
31045    cmp bak/trzy trzy || exit 1
31046 echo Diffing cztery
31047    cmp bak/cztery cztery || exit 1
31048 echo Diffing piec
31049    cmp bak/piec piec || exit 1
31050 echo Diffing szesc
31051    cmp bak/szesc szesc || exit 1
31052 ) ) >"$at_stdout" 2>"$at_stder1"
31053   at_func_filter_trace $?
31054 else
31055   ( :;
31056 mkdir gnu
31057 (cd gnu
31058 TEST_TAR_FORMAT=gnu
31059 export TEST_TAR_FORMAT
31060 TAR_OPTIONS="-H gnu"
31061 export TAR_OPTIONS
31062 rm -rf *
31063
31064 exec <&-
31065
31066 genfile --length 250k --file jeden
31067 genfile --length 250k --file dwa
31068 genfile --length 250k --file trzy
31069 genfile --length 250k --file cztery
31070 genfile --length 250k --file piec
31071 genfile --length 250k --file szesc
31072
31073
31074 echo Creating archive
31075 tar -c -M -L 502 -f a.tar -f b.tar -f c.tar jeden dwa trzy cztery piec szesc
31076 echo separator
31077 mkdir bak
31078 mv jeden dwa trzy cztery piec szesc bak
31079 tar -vxM -f a.tar -f c.tar -f b.tar -f c.tar
31080 echo Diffing jeden
31081    cmp bak/jeden jeden || exit 1
31082 echo Diffing dwa
31083    cmp bak/dwa dwa || exit 1
31084 echo Diffing trzy
31085    cmp bak/trzy trzy || exit 1
31086 echo Diffing cztery
31087    cmp bak/cztery cztery || exit 1
31088 echo Diffing piec
31089    cmp bak/piec piec || exit 1
31090 echo Diffing szesc
31091    cmp bak/szesc szesc || exit 1
31092 ) ) >"$at_stdout" 2>"$at_stderr"
31093 fi
31094 at_status=$?
31095 at_failed=false
31096 echo >>"$at_stderr"; $as_echo "tar: \`trzy' is not continued on this volume
31097 " | \
31098   $at_diff - "$at_stderr" || at_failed=:
31099 echo >>"$at_stdout"; $as_echo "Creating archive
31100 separator
31101 jeden
31102 dwa
31103 trzy
31104 cztery
31105 piec
31106 szesc
31107 Diffing jeden
31108 Diffing dwa
31109 Diffing trzy
31110 Diffing cztery
31111 Diffing piec
31112 Diffing szesc
31113 " | \
31114   $at_diff - "$at_stdout" || at_failed=:
31115 at_func_check_status 0 $at_status "$at_srcdir/multiv05.at:30"
31116
31117 $at_failed && at_func_log_failure
31118 $at_traceon; }
31119
31120
31121
31122
31123   $at_traceoff
31124   $at_times_p && times >"$at_times_file"
31125 ) 5>&1 2>&1 | eval $at_tee_pipe
31126 at_status=`cat "$at_status_file"`
31127 #AT_STOP_83
31128 #AT_START_84
31129 # 84. multiv06.at:27: Multivolumes with L=record_size
31130 at_setup_line='multiv06.at:27'
31131 at_desc="Multivolumes with L=record_size"
31132 $at_quiet $as_echo_n " 84: $at_desc                "
31133 at_xfail=no
31134       test -f $XFAILFILE && at_xfail=yes
31135 echo "#                             -*- compilation -*-" >> "$at_group_log"
31136 (
31137   $as_echo "84. multiv06.at:27: testing ..."
31138   $at_traceon
31139
31140
31141
31142
31143
31144   { $at_traceoff
31145 $as_echo "$at_srcdir/multiv06.at:30:
31146 mkdir gnu
31147 (cd gnu
31148 TEST_TAR_FORMAT=gnu
31149 export TEST_TAR_FORMAT
31150 TAR_OPTIONS=\"-H gnu\"
31151 export TAR_OPTIONS
31152 rm -rf *
31153
31154 exec <&-
31155 decho Creating file
31156 genfile --length 20139 --file file
31157 decho Creating archive
31158 tar -c -M -L10 -b20 -farc.1 -farc.2 -farc.3 file
31159 decho Testing archive
31160 tar -t -M -farc.1 -farc.2 -farc.3)"
31161 echo multiv06.at:30 >"$at_check_line_file"
31162
31163 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
31164    false; }; then
31165   ( $at_traceon;
31166 mkdir gnu
31167 (cd gnu
31168 TEST_TAR_FORMAT=gnu
31169 export TEST_TAR_FORMAT
31170 TAR_OPTIONS="-H gnu"
31171 export TAR_OPTIONS
31172 rm -rf *
31173
31174 exec <&-
31175 decho Creating file
31176 genfile --length 20139 --file file
31177 decho Creating archive
31178 tar -c -M -L10 -b20 -farc.1 -farc.2 -farc.3 file
31179 decho Testing archive
31180 tar -t -M -farc.1 -farc.2 -farc.3) ) >"$at_stdout" 2>"$at_stder1"
31181   at_func_filter_trace $?
31182 else
31183   ( :;
31184 mkdir gnu
31185 (cd gnu
31186 TEST_TAR_FORMAT=gnu
31187 export TEST_TAR_FORMAT
31188 TAR_OPTIONS="-H gnu"
31189 export TAR_OPTIONS
31190 rm -rf *
31191
31192 exec <&-
31193 decho Creating file
31194 genfile --length 20139 --file file
31195 decho Creating archive
31196 tar -c -M -L10 -b20 -farc.1 -farc.2 -farc.3 file
31197 decho Testing archive
31198 tar -t -M -farc.1 -farc.2 -farc.3) ) >"$at_stdout" 2>"$at_stderr"
31199 fi
31200 at_status=$?
31201 at_failed=false
31202 echo >>"$at_stderr"; $as_echo "Creating file
31203 Creating archive
31204 Testing archive
31205 " | \
31206   $at_diff - "$at_stderr" || at_failed=:
31207 echo >>"$at_stdout"; $as_echo "Creating file
31208 Creating archive
31209 Testing archive
31210 file
31211 " | \
31212   $at_diff - "$at_stdout" || at_failed=:
31213 at_func_check_status 0 $at_status "$at_srcdir/multiv06.at:30"
31214
31215 $at_failed && at_func_log_failure
31216 $at_traceon; }
31217
31218               { $at_traceoff
31219 $as_echo "$at_srcdir/multiv06.at:30:
31220 mkdir pax
31221 (cd pax
31222 TEST_TAR_FORMAT=pax
31223 export TEST_TAR_FORMAT
31224 TAR_OPTIONS=\"-H pax\"
31225 export TAR_OPTIONS
31226 rm -rf *
31227
31228 exec <&-
31229 decho Creating file
31230 genfile --length 20139 --file file
31231 decho Creating archive
31232 tar -c -M -L10 -b20 -farc.1 -farc.2 -farc.3 file
31233 decho Testing archive
31234 tar -t -M -farc.1 -farc.2 -farc.3)"
31235 echo multiv06.at:30 >"$at_check_line_file"
31236
31237 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
31238    false; }; then
31239   ( $at_traceon;
31240 mkdir pax
31241 (cd pax
31242 TEST_TAR_FORMAT=pax
31243 export TEST_TAR_FORMAT
31244 TAR_OPTIONS="-H pax"
31245 export TAR_OPTIONS
31246 rm -rf *
31247
31248 exec <&-
31249 decho Creating file
31250 genfile --length 20139 --file file
31251 decho Creating archive
31252 tar -c -M -L10 -b20 -farc.1 -farc.2 -farc.3 file
31253 decho Testing archive
31254 tar -t -M -farc.1 -farc.2 -farc.3) ) >"$at_stdout" 2>"$at_stder1"
31255   at_func_filter_trace $?
31256 else
31257   ( :;
31258 mkdir pax
31259 (cd pax
31260 TEST_TAR_FORMAT=pax
31261 export TEST_TAR_FORMAT
31262 TAR_OPTIONS="-H pax"
31263 export TAR_OPTIONS
31264 rm -rf *
31265
31266 exec <&-
31267 decho Creating file
31268 genfile --length 20139 --file file
31269 decho Creating archive
31270 tar -c -M -L10 -b20 -farc.1 -farc.2 -farc.3 file
31271 decho Testing archive
31272 tar -t -M -farc.1 -farc.2 -farc.3) ) >"$at_stdout" 2>"$at_stderr"
31273 fi
31274 at_status=$?
31275 at_failed=false
31276 echo >>"$at_stderr"; $as_echo "Creating file
31277 Creating archive
31278 Testing archive
31279 " | \
31280   $at_diff - "$at_stderr" || at_failed=:
31281 echo >>"$at_stdout"; $as_echo "Creating file
31282 Creating archive
31283 Testing archive
31284 file
31285 " | \
31286   $at_diff - "$at_stdout" || at_failed=:
31287 at_func_check_status 0 $at_status "$at_srcdir/multiv06.at:30"
31288
31289 $at_failed && at_func_log_failure
31290 $at_traceon; }
31291
31292
31293
31294
31295   $at_traceoff
31296   $at_times_p && times >"$at_times_file"
31297 ) 5>&1 2>&1 | eval $at_tee_pipe
31298 at_status=`cat "$at_status_file"`
31299 #AT_STOP_84
31300 #AT_START_85
31301 # 85. multiv07.at:26: volumes split at an extended header
31302 at_setup_line='multiv07.at:26'
31303 at_desc="volumes split at an extended header"
31304 $at_quiet $as_echo_n " 85: $at_desc            "
31305 at_xfail=no
31306       test -f \$XFAILFILE && at_xfail=yes
31307       test -f $XFAILFILE && at_xfail=yes
31308       test -f $XFAILFILE && at_xfail=yes
31309 echo "#                             -*- compilation -*-" >> "$at_group_log"
31310 (
31311   $as_echo "85. multiv07.at:26: testing ..."
31312   $at_traceon
31313
31314
31315
31316 { $at_traceoff
31317 $as_echo "$at_srcdir/multiv07.at:29:
31318
31319
31320 test -z "$TEST_DATA_DIR" && exit 77
31321 tarball_prereq xsplit-1.tar 0e008c84c517e48fbf23ca6a7033cde6 $TEST_DATA_DIR $TEST_DATA_URL || exit 77
31322
31323 test -z "$TEST_DATA_DIR" && exit 77
31324 tarball_prereq xsplit-2.tar 03150b9852d285458f43734e9e0b9a45 $TEST_DATA_DIR $TEST_DATA_URL || exit 77
31325
31326 exec <&-
31327
31328 cd \$TEST_DATA_DIR
31329 tar -t -M -fxsplit-1.tar -fxsplit-2.tar
31330 "
31331 echo multiv07.at:29 >"$at_check_line_file"
31332
31333 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
31334    false; }; then
31335   ( $at_traceon;
31336
31337
31338 test -z "$TEST_DATA_DIR" && exit 77
31339 tarball_prereq xsplit-1.tar 0e008c84c517e48fbf23ca6a7033cde6 $TEST_DATA_DIR $TEST_DATA_URL || exit 77
31340
31341 test -z "$TEST_DATA_DIR" && exit 77
31342 tarball_prereq xsplit-2.tar 03150b9852d285458f43734e9e0b9a45 $TEST_DATA_DIR $TEST_DATA_URL || exit 77
31343
31344 exec <&-
31345
31346 cd $TEST_DATA_DIR
31347 tar -t -M -fxsplit-1.tar -fxsplit-2.tar
31348  ) >"$at_stdout" 2>"$at_stder1"
31349   at_func_filter_trace $?
31350 else
31351   ( :;
31352
31353
31354 test -z "$TEST_DATA_DIR" && exit 77
31355 tarball_prereq xsplit-1.tar 0e008c84c517e48fbf23ca6a7033cde6 $TEST_DATA_DIR $TEST_DATA_URL || exit 77
31356
31357 test -z "$TEST_DATA_DIR" && exit 77
31358 tarball_prereq xsplit-2.tar 03150b9852d285458f43734e9e0b9a45 $TEST_DATA_DIR $TEST_DATA_URL || exit 77
31359
31360 exec <&-
31361
31362 cd $TEST_DATA_DIR
31363 tar -t -M -fxsplit-1.tar -fxsplit-2.tar
31364  ) >"$at_stdout" 2>"$at_stderr"
31365 fi
31366 at_status=$?
31367 at_failed=false
31368 at_func_diff_devnull "$at_stderr" || at_failed=:
31369 echo >>"$at_stdout"; $as_echo "Archive volumes split at an extended header Volume 1
31370 foo
31371 bar
31372 " | \
31373   $at_diff - "$at_stdout" || at_failed=:
31374 at_func_check_status 0 $at_status "$at_srcdir/multiv07.at:29"
31375
31376 $at_failed && at_func_log_failure
31377 $at_traceon; }
31378
31379
31380   $at_traceoff
31381   $at_times_p && times >"$at_times_file"
31382 ) 5>&1 2>&1 | eval $at_tee_pipe
31383 at_status=`cat "$at_status_file"`
31384 #AT_STOP_85
31385 #AT_START_86
31386 # 86. multiv08.at:23: multivolume header creation
31387 at_setup_line='multiv08.at:23'
31388 at_desc="multivolume header creation"
31389 $at_quiet $as_echo_n " 86: $at_desc                    "
31390 at_xfail=no
31391       test -f $XFAILFILE && at_xfail=yes
31392 echo "#                             -*- compilation -*-" >> "$at_group_log"
31393 (
31394   $as_echo "86. multiv08.at:23: testing ..."
31395   $at_traceon
31396
31397
31398
31399
31400
31401   { $at_traceoff
31402 $as_echo "$at_srcdir/multiv08.at:26:
31403 mkdir gnu
31404 (cd gnu
31405 TEST_TAR_FORMAT=gnu
31406 export TEST_TAR_FORMAT
31407 TAR_OPTIONS=\"-H gnu\"
31408 export TAR_OPTIONS
31409 rm -rf *
31410
31411 genfile --length 9472 --file a
31412 genfile --length 9984 --file b
31413 decho Creating
31414 tar -c -M -L10 -f A.tar -f B.tar -f C.tar a b
31415 decho Testing
31416 tar -tMR -f A.tar -f B.tar -f C.tar
31417 )"
31418 echo multiv08.at:26 >"$at_check_line_file"
31419
31420 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
31421    false; }; then
31422   ( $at_traceon;
31423 mkdir gnu
31424 (cd gnu
31425 TEST_TAR_FORMAT=gnu
31426 export TEST_TAR_FORMAT
31427 TAR_OPTIONS="-H gnu"
31428 export TAR_OPTIONS
31429 rm -rf *
31430
31431 genfile --length 9472 --file a
31432 genfile --length 9984 --file b
31433 decho Creating
31434 tar -c -M -L10 -f A.tar -f B.tar -f C.tar a b
31435 decho Testing
31436 tar -tMR -f A.tar -f B.tar -f C.tar
31437 ) ) >"$at_stdout" 2>"$at_stder1"
31438   at_func_filter_trace $?
31439 else
31440   ( :;
31441 mkdir gnu
31442 (cd gnu
31443 TEST_TAR_FORMAT=gnu
31444 export TEST_TAR_FORMAT
31445 TAR_OPTIONS="-H gnu"
31446 export TAR_OPTIONS
31447 rm -rf *
31448
31449 genfile --length 9472 --file a
31450 genfile --length 9984 --file b
31451 decho Creating
31452 tar -c -M -L10 -f A.tar -f B.tar -f C.tar a b
31453 decho Testing
31454 tar -tMR -f A.tar -f B.tar -f C.tar
31455 ) ) >"$at_stdout" 2>"$at_stderr"
31456 fi
31457 at_status=$?
31458 at_failed=false
31459 echo >>"$at_stderr"; $as_echo "Creating
31460 Testing
31461 " | \
31462   $at_diff - "$at_stderr" || at_failed=:
31463 echo >>"$at_stdout"; $as_echo "Creating
31464 Testing
31465 block 0: a
31466 block 21: b
31467 block 43: ** Block of NULs **
31468 " | \
31469   $at_diff - "$at_stdout" || at_failed=:
31470 at_func_check_status 0 $at_status "$at_srcdir/multiv08.at:26"
31471
31472 $at_failed && at_func_log_failure
31473 $at_traceon; }
31474
31475
31476
31477
31478   $at_traceoff
31479   $at_times_p && times >"$at_times_file"
31480 ) 5>&1 2>&1 | eval $at_tee_pipe
31481 at_status=`cat "$at_status_file"`
31482 #AT_STOP_86
31483 #AT_START_87
31484 # 87. old.at:23: old archives
31485 at_setup_line='old.at:23'
31486 at_desc="old archives"
31487 $at_quiet $as_echo_n " 87: $at_desc                                   "
31488 at_xfail=no
31489 echo "#                             -*- compilation -*-" >> "$at_group_log"
31490 (
31491   $as_echo "87. old.at:23: testing ..."
31492   $at_traceon
31493
31494
31495
31496 unset TAR_OPTIONS
31497 { $at_traceoff
31498 $as_echo "$at_srcdir/old.at:27:
31499 mkdir directory
31500 tar cfvo archive directory || exit 1
31501 tar tf archive
31502 "
31503 echo old.at:27 >"$at_check_line_file"
31504
31505 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
31506    false; }; then
31507   ( $at_traceon;
31508 mkdir directory
31509 tar cfvo archive directory || exit 1
31510 tar tf archive
31511  ) >"$at_stdout" 2>"$at_stder1"
31512   at_func_filter_trace $?
31513 else
31514   ( :;
31515 mkdir directory
31516 tar cfvo archive directory || exit 1
31517 tar tf archive
31518  ) >"$at_stdout" 2>"$at_stderr"
31519 fi
31520 at_status=$?
31521 at_failed=false
31522 at_func_diff_devnull "$at_stderr" || at_failed=:
31523 echo >>"$at_stdout"; $as_echo "directory/
31524 directory/
31525 " | \
31526   $at_diff - "$at_stdout" || at_failed=:
31527 at_func_check_status 0 $at_status "$at_srcdir/old.at:27"
31528
31529 $at_failed && at_func_log_failure
31530 $at_traceon; }
31531
31532
31533   $at_traceoff
31534   $at_times_p && times >"$at_times_file"
31535 ) 5>&1 2>&1 | eval $at_tee_pipe
31536 at_status=`cat "$at_status_file"`
31537 #AT_STOP_87
31538 #AT_START_88
31539 # 88. recurse.at:21: recurse
31540 at_setup_line='recurse.at:21'
31541 at_desc="recurse"
31542 $at_quiet $as_echo_n " 88: $at_desc                                        "
31543 at_xfail=no
31544       test -f $XFAILFILE && at_xfail=yes
31545 echo "#                             -*- compilation -*-" >> "$at_group_log"
31546 (
31547   $as_echo "88. recurse.at:21: testing ..."
31548   $at_traceon
31549
31550
31551
31552
31553
31554   { $at_traceoff
31555 $as_echo "$at_srcdir/recurse.at:24:
31556 mkdir v7
31557 (cd v7
31558 TEST_TAR_FORMAT=v7
31559 export TEST_TAR_FORMAT
31560 TAR_OPTIONS=\"-H v7\"
31561 export TAR_OPTIONS
31562 rm -rf *
31563
31564 mkdir directory
31565 touch directory/file
31566 tar --create --file archive --no-recursion directory || exit 1
31567 tar tf archive
31568 )"
31569 echo recurse.at:24 >"$at_check_line_file"
31570
31571 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
31572    false; }; then
31573   ( $at_traceon;
31574 mkdir v7
31575 (cd v7
31576 TEST_TAR_FORMAT=v7
31577 export TEST_TAR_FORMAT
31578 TAR_OPTIONS="-H v7"
31579 export TAR_OPTIONS
31580 rm -rf *
31581
31582 mkdir directory
31583 touch directory/file
31584 tar --create --file archive --no-recursion directory || exit 1
31585 tar tf archive
31586 ) ) >"$at_stdout" 2>"$at_stder1"
31587   at_func_filter_trace $?
31588 else
31589   ( :;
31590 mkdir v7
31591 (cd v7
31592 TEST_TAR_FORMAT=v7
31593 export TEST_TAR_FORMAT
31594 TAR_OPTIONS="-H v7"
31595 export TAR_OPTIONS
31596 rm -rf *
31597
31598 mkdir directory
31599 touch directory/file
31600 tar --create --file archive --no-recursion directory || exit 1
31601 tar tf archive
31602 ) ) >"$at_stdout" 2>"$at_stderr"
31603 fi
31604 at_status=$?
31605 at_failed=false
31606 at_func_diff_devnull "$at_stderr" || at_failed=:
31607 echo >>"$at_stdout"; $as_echo "directory/
31608 " | \
31609   $at_diff - "$at_stdout" || at_failed=:
31610 at_func_check_status 0 $at_status "$at_srcdir/recurse.at:24"
31611
31612 $at_failed && at_func_log_failure
31613 $at_traceon; }
31614
31615               { $at_traceoff
31616 $as_echo "$at_srcdir/recurse.at:24:
31617 mkdir oldgnu
31618 (cd oldgnu
31619 TEST_TAR_FORMAT=oldgnu
31620 export TEST_TAR_FORMAT
31621 TAR_OPTIONS=\"-H oldgnu\"
31622 export TAR_OPTIONS
31623 rm -rf *
31624
31625 mkdir directory
31626 touch directory/file
31627 tar --create --file archive --no-recursion directory || exit 1
31628 tar tf archive
31629 )"
31630 echo recurse.at:24 >"$at_check_line_file"
31631
31632 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
31633    false; }; then
31634   ( $at_traceon;
31635 mkdir oldgnu
31636 (cd oldgnu
31637 TEST_TAR_FORMAT=oldgnu
31638 export TEST_TAR_FORMAT
31639 TAR_OPTIONS="-H oldgnu"
31640 export TAR_OPTIONS
31641 rm -rf *
31642
31643 mkdir directory
31644 touch directory/file
31645 tar --create --file archive --no-recursion directory || exit 1
31646 tar tf archive
31647 ) ) >"$at_stdout" 2>"$at_stder1"
31648   at_func_filter_trace $?
31649 else
31650   ( :;
31651 mkdir oldgnu
31652 (cd oldgnu
31653 TEST_TAR_FORMAT=oldgnu
31654 export TEST_TAR_FORMAT
31655 TAR_OPTIONS="-H oldgnu"
31656 export TAR_OPTIONS
31657 rm -rf *
31658
31659 mkdir directory
31660 touch directory/file
31661 tar --create --file archive --no-recursion directory || exit 1
31662 tar tf archive
31663 ) ) >"$at_stdout" 2>"$at_stderr"
31664 fi
31665 at_status=$?
31666 at_failed=false
31667 at_func_diff_devnull "$at_stderr" || at_failed=:
31668 echo >>"$at_stdout"; $as_echo "directory/
31669 " | \
31670   $at_diff - "$at_stdout" || at_failed=:
31671 at_func_check_status 0 $at_status "$at_srcdir/recurse.at:24"
31672
31673 $at_failed && at_func_log_failure
31674 $at_traceon; }
31675
31676               { $at_traceoff
31677 $as_echo "$at_srcdir/recurse.at:24:
31678 mkdir ustar
31679 (cd ustar
31680 TEST_TAR_FORMAT=ustar
31681 export TEST_TAR_FORMAT
31682 TAR_OPTIONS=\"-H ustar\"
31683 export TAR_OPTIONS
31684 rm -rf *
31685
31686 mkdir directory
31687 touch directory/file
31688 tar --create --file archive --no-recursion directory || exit 1
31689 tar tf archive
31690 )"
31691 echo recurse.at:24 >"$at_check_line_file"
31692
31693 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
31694    false; }; then
31695   ( $at_traceon;
31696 mkdir ustar
31697 (cd ustar
31698 TEST_TAR_FORMAT=ustar
31699 export TEST_TAR_FORMAT
31700 TAR_OPTIONS="-H ustar"
31701 export TAR_OPTIONS
31702 rm -rf *
31703
31704 mkdir directory
31705 touch directory/file
31706 tar --create --file archive --no-recursion directory || exit 1
31707 tar tf archive
31708 ) ) >"$at_stdout" 2>"$at_stder1"
31709   at_func_filter_trace $?
31710 else
31711   ( :;
31712 mkdir ustar
31713 (cd ustar
31714 TEST_TAR_FORMAT=ustar
31715 export TEST_TAR_FORMAT
31716 TAR_OPTIONS="-H ustar"
31717 export TAR_OPTIONS
31718 rm -rf *
31719
31720 mkdir directory
31721 touch directory/file
31722 tar --create --file archive --no-recursion directory || exit 1
31723 tar tf archive
31724 ) ) >"$at_stdout" 2>"$at_stderr"
31725 fi
31726 at_status=$?
31727 at_failed=false
31728 at_func_diff_devnull "$at_stderr" || at_failed=:
31729 echo >>"$at_stdout"; $as_echo "directory/
31730 " | \
31731   $at_diff - "$at_stdout" || at_failed=:
31732 at_func_check_status 0 $at_status "$at_srcdir/recurse.at:24"
31733
31734 $at_failed && at_func_log_failure
31735 $at_traceon; }
31736
31737               { $at_traceoff
31738 $as_echo "$at_srcdir/recurse.at:24:
31739 mkdir posix
31740 (cd posix
31741 TEST_TAR_FORMAT=posix
31742 export TEST_TAR_FORMAT
31743 TAR_OPTIONS=\"-H posix\"
31744 export TAR_OPTIONS
31745 rm -rf *
31746
31747 mkdir directory
31748 touch directory/file
31749 tar --create --file archive --no-recursion directory || exit 1
31750 tar tf archive
31751 )"
31752 echo recurse.at:24 >"$at_check_line_file"
31753
31754 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
31755    false; }; then
31756   ( $at_traceon;
31757 mkdir posix
31758 (cd posix
31759 TEST_TAR_FORMAT=posix
31760 export TEST_TAR_FORMAT
31761 TAR_OPTIONS="-H posix"
31762 export TAR_OPTIONS
31763 rm -rf *
31764
31765 mkdir directory
31766 touch directory/file
31767 tar --create --file archive --no-recursion directory || exit 1
31768 tar tf archive
31769 ) ) >"$at_stdout" 2>"$at_stder1"
31770   at_func_filter_trace $?
31771 else
31772   ( :;
31773 mkdir posix
31774 (cd posix
31775 TEST_TAR_FORMAT=posix
31776 export TEST_TAR_FORMAT
31777 TAR_OPTIONS="-H posix"
31778 export TAR_OPTIONS
31779 rm -rf *
31780
31781 mkdir directory
31782 touch directory/file
31783 tar --create --file archive --no-recursion directory || exit 1
31784 tar tf archive
31785 ) ) >"$at_stdout" 2>"$at_stderr"
31786 fi
31787 at_status=$?
31788 at_failed=false
31789 at_func_diff_devnull "$at_stderr" || at_failed=:
31790 echo >>"$at_stdout"; $as_echo "directory/
31791 " | \
31792   $at_diff - "$at_stdout" || at_failed=:
31793 at_func_check_status 0 $at_status "$at_srcdir/recurse.at:24"
31794
31795 $at_failed && at_func_log_failure
31796 $at_traceon; }
31797
31798               { $at_traceoff
31799 $as_echo "$at_srcdir/recurse.at:24:
31800 mkdir gnu
31801 (cd gnu
31802 TEST_TAR_FORMAT=gnu
31803 export TEST_TAR_FORMAT
31804 TAR_OPTIONS=\"-H gnu\"
31805 export TAR_OPTIONS
31806 rm -rf *
31807
31808 mkdir directory
31809 touch directory/file
31810 tar --create --file archive --no-recursion directory || exit 1
31811 tar tf archive
31812 )"
31813 echo recurse.at:24 >"$at_check_line_file"
31814
31815 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
31816    false; }; then
31817   ( $at_traceon;
31818 mkdir gnu
31819 (cd gnu
31820 TEST_TAR_FORMAT=gnu
31821 export TEST_TAR_FORMAT
31822 TAR_OPTIONS="-H gnu"
31823 export TAR_OPTIONS
31824 rm -rf *
31825
31826 mkdir directory
31827 touch directory/file
31828 tar --create --file archive --no-recursion directory || exit 1
31829 tar tf archive
31830 ) ) >"$at_stdout" 2>"$at_stder1"
31831   at_func_filter_trace $?
31832 else
31833   ( :;
31834 mkdir gnu
31835 (cd gnu
31836 TEST_TAR_FORMAT=gnu
31837 export TEST_TAR_FORMAT
31838 TAR_OPTIONS="-H gnu"
31839 export TAR_OPTIONS
31840 rm -rf *
31841
31842 mkdir directory
31843 touch directory/file
31844 tar --create --file archive --no-recursion directory || exit 1
31845 tar tf archive
31846 ) ) >"$at_stdout" 2>"$at_stderr"
31847 fi
31848 at_status=$?
31849 at_failed=false
31850 at_func_diff_devnull "$at_stderr" || at_failed=:
31851 echo >>"$at_stdout"; $as_echo "directory/
31852 " | \
31853   $at_diff - "$at_stdout" || at_failed=:
31854 at_func_check_status 0 $at_status "$at_srcdir/recurse.at:24"
31855
31856 $at_failed && at_func_log_failure
31857 $at_traceon; }
31858
31859
31860
31861
31862   $at_traceoff
31863   $at_times_p && times >"$at_times_file"
31864 ) 5>&1 2>&1 | eval $at_tee_pipe
31865 at_status=`cat "$at_status_file"`
31866 #AT_STOP_88
31867 #AT_START_89
31868 # 89. same-order01.at:26: working -C with --same-order
31869 at_setup_line='same-order01.at:26'
31870 at_desc="working -C with --same-order"
31871 $at_quiet $as_echo_n " 89: $at_desc                   "
31872 at_xfail=no
31873       test -f $XFAILFILE && at_xfail=yes
31874 echo "#                             -*- compilation -*-" >> "$at_group_log"
31875 (
31876   $as_echo "89. same-order01.at:26: testing ..."
31877   $at_traceon
31878
31879
31880
31881
31882
31883   { $at_traceoff
31884 $as_echo "$at_srcdir/same-order01.at:29:
31885 mkdir v7
31886 (cd v7
31887 TEST_TAR_FORMAT=v7
31888 export TEST_TAR_FORMAT
31889 TAR_OPTIONS=\"-H v7\"
31890 export TAR_OPTIONS
31891 rm -rf *
31892
31893
31894 test -z "`sort < /dev/null 2>&1`" || exit 77
31895
31896
31897 genfile -l 1024 -f file1
31898 genfile -l 1024 -f file2
31899 tar cf archive file1 file2
31900
31901 mkdir directory
31902 tar -xf archive --same-order -C directory --warning=no-timestamp || exit 1
31903
31904 ls directory|sort
31905 )"
31906 echo same-order01.at:29 >"$at_check_line_file"
31907
31908 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
31909    false; }; then
31910   ( $at_traceon;
31911 mkdir v7
31912 (cd v7
31913 TEST_TAR_FORMAT=v7
31914 export TEST_TAR_FORMAT
31915 TAR_OPTIONS="-H v7"
31916 export TAR_OPTIONS
31917 rm -rf *
31918
31919
31920 test -z "`sort < /dev/null 2>&1`" || exit 77
31921
31922
31923 genfile -l 1024 -f file1
31924 genfile -l 1024 -f file2
31925 tar cf archive file1 file2
31926
31927 mkdir directory
31928 tar -xf archive --same-order -C directory --warning=no-timestamp || exit 1
31929
31930 ls directory|sort
31931 ) ) >"$at_stdout" 2>"$at_stder1"
31932   at_func_filter_trace $?
31933 else
31934   ( :;
31935 mkdir v7
31936 (cd v7
31937 TEST_TAR_FORMAT=v7
31938 export TEST_TAR_FORMAT
31939 TAR_OPTIONS="-H v7"
31940 export TAR_OPTIONS
31941 rm -rf *
31942
31943
31944 test -z "`sort < /dev/null 2>&1`" || exit 77
31945
31946
31947 genfile -l 1024 -f file1
31948 genfile -l 1024 -f file2
31949 tar cf archive file1 file2
31950
31951 mkdir directory
31952 tar -xf archive --same-order -C directory --warning=no-timestamp || exit 1
31953
31954 ls directory|sort
31955 ) ) >"$at_stdout" 2>"$at_stderr"
31956 fi
31957 at_status=$?
31958 at_failed=false
31959 at_func_diff_devnull "$at_stderr" || at_failed=:
31960 echo >>"$at_stdout"; $as_echo "file1
31961 file2
31962 " | \
31963   $at_diff - "$at_stdout" || at_failed=:
31964 at_func_check_status 0 $at_status "$at_srcdir/same-order01.at:29"
31965
31966 $at_failed && at_func_log_failure
31967 $at_traceon; }
31968
31969               { $at_traceoff
31970 $as_echo "$at_srcdir/same-order01.at:29:
31971 mkdir oldgnu
31972 (cd oldgnu
31973 TEST_TAR_FORMAT=oldgnu
31974 export TEST_TAR_FORMAT
31975 TAR_OPTIONS=\"-H oldgnu\"
31976 export TAR_OPTIONS
31977 rm -rf *
31978
31979
31980 test -z "`sort < /dev/null 2>&1`" || exit 77
31981
31982
31983 genfile -l 1024 -f file1
31984 genfile -l 1024 -f file2
31985 tar cf archive file1 file2
31986
31987 mkdir directory
31988 tar -xf archive --same-order -C directory --warning=no-timestamp || exit 1
31989
31990 ls directory|sort
31991 )"
31992 echo same-order01.at:29 >"$at_check_line_file"
31993
31994 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
31995    false; }; then
31996   ( $at_traceon;
31997 mkdir oldgnu
31998 (cd oldgnu
31999 TEST_TAR_FORMAT=oldgnu
32000 export TEST_TAR_FORMAT
32001 TAR_OPTIONS="-H oldgnu"
32002 export TAR_OPTIONS
32003 rm -rf *
32004
32005
32006 test -z "`sort < /dev/null 2>&1`" || exit 77
32007
32008
32009 genfile -l 1024 -f file1
32010 genfile -l 1024 -f file2
32011 tar cf archive file1 file2
32012
32013 mkdir directory
32014 tar -xf archive --same-order -C directory --warning=no-timestamp || exit 1
32015
32016 ls directory|sort
32017 ) ) >"$at_stdout" 2>"$at_stder1"
32018   at_func_filter_trace $?
32019 else
32020   ( :;
32021 mkdir oldgnu
32022 (cd oldgnu
32023 TEST_TAR_FORMAT=oldgnu
32024 export TEST_TAR_FORMAT
32025 TAR_OPTIONS="-H oldgnu"
32026 export TAR_OPTIONS
32027 rm -rf *
32028
32029
32030 test -z "`sort < /dev/null 2>&1`" || exit 77
32031
32032
32033 genfile -l 1024 -f file1
32034 genfile -l 1024 -f file2
32035 tar cf archive file1 file2
32036
32037 mkdir directory
32038 tar -xf archive --same-order -C directory --warning=no-timestamp || exit 1
32039
32040 ls directory|sort
32041 ) ) >"$at_stdout" 2>"$at_stderr"
32042 fi
32043 at_status=$?
32044 at_failed=false
32045 at_func_diff_devnull "$at_stderr" || at_failed=:
32046 echo >>"$at_stdout"; $as_echo "file1
32047 file2
32048 " | \
32049   $at_diff - "$at_stdout" || at_failed=:
32050 at_func_check_status 0 $at_status "$at_srcdir/same-order01.at:29"
32051
32052 $at_failed && at_func_log_failure
32053 $at_traceon; }
32054
32055               { $at_traceoff
32056 $as_echo "$at_srcdir/same-order01.at:29:
32057 mkdir ustar
32058 (cd ustar
32059 TEST_TAR_FORMAT=ustar
32060 export TEST_TAR_FORMAT
32061 TAR_OPTIONS=\"-H ustar\"
32062 export TAR_OPTIONS
32063 rm -rf *
32064
32065
32066 test -z "`sort < /dev/null 2>&1`" || exit 77
32067
32068
32069 genfile -l 1024 -f file1
32070 genfile -l 1024 -f file2
32071 tar cf archive file1 file2
32072
32073 mkdir directory
32074 tar -xf archive --same-order -C directory --warning=no-timestamp || exit 1
32075
32076 ls directory|sort
32077 )"
32078 echo same-order01.at:29 >"$at_check_line_file"
32079
32080 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
32081    false; }; then
32082   ( $at_traceon;
32083 mkdir ustar
32084 (cd ustar
32085 TEST_TAR_FORMAT=ustar
32086 export TEST_TAR_FORMAT
32087 TAR_OPTIONS="-H ustar"
32088 export TAR_OPTIONS
32089 rm -rf *
32090
32091
32092 test -z "`sort < /dev/null 2>&1`" || exit 77
32093
32094
32095 genfile -l 1024 -f file1
32096 genfile -l 1024 -f file2
32097 tar cf archive file1 file2
32098
32099 mkdir directory
32100 tar -xf archive --same-order -C directory --warning=no-timestamp || exit 1
32101
32102 ls directory|sort
32103 ) ) >"$at_stdout" 2>"$at_stder1"
32104   at_func_filter_trace $?
32105 else
32106   ( :;
32107 mkdir ustar
32108 (cd ustar
32109 TEST_TAR_FORMAT=ustar
32110 export TEST_TAR_FORMAT
32111 TAR_OPTIONS="-H ustar"
32112 export TAR_OPTIONS
32113 rm -rf *
32114
32115
32116 test -z "`sort < /dev/null 2>&1`" || exit 77
32117
32118
32119 genfile -l 1024 -f file1
32120 genfile -l 1024 -f file2
32121 tar cf archive file1 file2
32122
32123 mkdir directory
32124 tar -xf archive --same-order -C directory --warning=no-timestamp || exit 1
32125
32126 ls directory|sort
32127 ) ) >"$at_stdout" 2>"$at_stderr"
32128 fi
32129 at_status=$?
32130 at_failed=false
32131 at_func_diff_devnull "$at_stderr" || at_failed=:
32132 echo >>"$at_stdout"; $as_echo "file1
32133 file2
32134 " | \
32135   $at_diff - "$at_stdout" || at_failed=:
32136 at_func_check_status 0 $at_status "$at_srcdir/same-order01.at:29"
32137
32138 $at_failed && at_func_log_failure
32139 $at_traceon; }
32140
32141               { $at_traceoff
32142 $as_echo "$at_srcdir/same-order01.at:29:
32143 mkdir posix
32144 (cd posix
32145 TEST_TAR_FORMAT=posix
32146 export TEST_TAR_FORMAT
32147 TAR_OPTIONS=\"-H posix\"
32148 export TAR_OPTIONS
32149 rm -rf *
32150
32151
32152 test -z "`sort < /dev/null 2>&1`" || exit 77
32153
32154
32155 genfile -l 1024 -f file1
32156 genfile -l 1024 -f file2
32157 tar cf archive file1 file2
32158
32159 mkdir directory
32160 tar -xf archive --same-order -C directory --warning=no-timestamp || exit 1
32161
32162 ls directory|sort
32163 )"
32164 echo same-order01.at:29 >"$at_check_line_file"
32165
32166 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
32167    false; }; then
32168   ( $at_traceon;
32169 mkdir posix
32170 (cd posix
32171 TEST_TAR_FORMAT=posix
32172 export TEST_TAR_FORMAT
32173 TAR_OPTIONS="-H posix"
32174 export TAR_OPTIONS
32175 rm -rf *
32176
32177
32178 test -z "`sort < /dev/null 2>&1`" || exit 77
32179
32180
32181 genfile -l 1024 -f file1
32182 genfile -l 1024 -f file2
32183 tar cf archive file1 file2
32184
32185 mkdir directory
32186 tar -xf archive --same-order -C directory --warning=no-timestamp || exit 1
32187
32188 ls directory|sort
32189 ) ) >"$at_stdout" 2>"$at_stder1"
32190   at_func_filter_trace $?
32191 else
32192   ( :;
32193 mkdir posix
32194 (cd posix
32195 TEST_TAR_FORMAT=posix
32196 export TEST_TAR_FORMAT
32197 TAR_OPTIONS="-H posix"
32198 export TAR_OPTIONS
32199 rm -rf *
32200
32201
32202 test -z "`sort < /dev/null 2>&1`" || exit 77
32203
32204
32205 genfile -l 1024 -f file1
32206 genfile -l 1024 -f file2
32207 tar cf archive file1 file2
32208
32209 mkdir directory
32210 tar -xf archive --same-order -C directory --warning=no-timestamp || exit 1
32211
32212 ls directory|sort
32213 ) ) >"$at_stdout" 2>"$at_stderr"
32214 fi
32215 at_status=$?
32216 at_failed=false
32217 at_func_diff_devnull "$at_stderr" || at_failed=:
32218 echo >>"$at_stdout"; $as_echo "file1
32219 file2
32220 " | \
32221   $at_diff - "$at_stdout" || at_failed=:
32222 at_func_check_status 0 $at_status "$at_srcdir/same-order01.at:29"
32223
32224 $at_failed && at_func_log_failure
32225 $at_traceon; }
32226
32227               { $at_traceoff
32228 $as_echo "$at_srcdir/same-order01.at:29:
32229 mkdir gnu
32230 (cd gnu
32231 TEST_TAR_FORMAT=gnu
32232 export TEST_TAR_FORMAT
32233 TAR_OPTIONS=\"-H gnu\"
32234 export TAR_OPTIONS
32235 rm -rf *
32236
32237
32238 test -z "`sort < /dev/null 2>&1`" || exit 77
32239
32240
32241 genfile -l 1024 -f file1
32242 genfile -l 1024 -f file2
32243 tar cf archive file1 file2
32244
32245 mkdir directory
32246 tar -xf archive --same-order -C directory --warning=no-timestamp || exit 1
32247
32248 ls directory|sort
32249 )"
32250 echo same-order01.at:29 >"$at_check_line_file"
32251
32252 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
32253    false; }; then
32254   ( $at_traceon;
32255 mkdir gnu
32256 (cd gnu
32257 TEST_TAR_FORMAT=gnu
32258 export TEST_TAR_FORMAT
32259 TAR_OPTIONS="-H gnu"
32260 export TAR_OPTIONS
32261 rm -rf *
32262
32263
32264 test -z "`sort < /dev/null 2>&1`" || exit 77
32265
32266
32267 genfile -l 1024 -f file1
32268 genfile -l 1024 -f file2
32269 tar cf archive file1 file2
32270
32271 mkdir directory
32272 tar -xf archive --same-order -C directory --warning=no-timestamp || exit 1
32273
32274 ls directory|sort
32275 ) ) >"$at_stdout" 2>"$at_stder1"
32276   at_func_filter_trace $?
32277 else
32278   ( :;
32279 mkdir gnu
32280 (cd gnu
32281 TEST_TAR_FORMAT=gnu
32282 export TEST_TAR_FORMAT
32283 TAR_OPTIONS="-H gnu"
32284 export TAR_OPTIONS
32285 rm -rf *
32286
32287
32288 test -z "`sort < /dev/null 2>&1`" || exit 77
32289
32290
32291 genfile -l 1024 -f file1
32292 genfile -l 1024 -f file2
32293 tar cf archive file1 file2
32294
32295 mkdir directory
32296 tar -xf archive --same-order -C directory --warning=no-timestamp || exit 1
32297
32298 ls directory|sort
32299 ) ) >"$at_stdout" 2>"$at_stderr"
32300 fi
32301 at_status=$?
32302 at_failed=false
32303 at_func_diff_devnull "$at_stderr" || at_failed=:
32304 echo >>"$at_stdout"; $as_echo "file1
32305 file2
32306 " | \
32307   $at_diff - "$at_stdout" || at_failed=:
32308 at_func_check_status 0 $at_status "$at_srcdir/same-order01.at:29"
32309
32310 $at_failed && at_func_log_failure
32311 $at_traceon; }
32312
32313
32314
32315
32316   $at_traceoff
32317   $at_times_p && times >"$at_times_file"
32318 ) 5>&1 2>&1 | eval $at_tee_pipe
32319 at_status=`cat "$at_status_file"`
32320 #AT_STOP_89
32321 #AT_START_90
32322 # 90. same-order02.at:25: multiple -C options
32323 at_setup_line='same-order02.at:25'
32324 at_desc="multiple -C options"
32325 $at_quiet $as_echo_n " 90: $at_desc                            "
32326 at_xfail=no
32327       test -f $XFAILFILE && at_xfail=yes
32328 echo "#                             -*- compilation -*-" >> "$at_group_log"
32329 (
32330   $as_echo "90. same-order02.at:25: testing ..."
32331   $at_traceon
32332
32333
32334
32335
32336
32337   { $at_traceoff
32338 $as_echo "$at_srcdir/same-order02.at:28:
32339 mkdir v7
32340 (cd v7
32341 TEST_TAR_FORMAT=v7
32342 export TEST_TAR_FORMAT
32343 TAR_OPTIONS=\"-H v7\"
32344 export TAR_OPTIONS
32345 rm -rf *
32346
32347 genfile -l 1024 -f file1
32348 genfile -l 1024 -f file2
32349 tar cf archive file1 file2
32350
32351 mkdir en
32352 mkdir to
32353
32354 HERE=\`pwd\`
32355 tar -xf archive --same-order --warning=no-timestamp \\
32356   -C \$HERE/en file1 \\
32357   -C \$HERE/to file2 || exit 1
32358
32359 ls en
32360 echo separator
32361 ls to
32362 )"
32363 echo same-order02.at:28 >"$at_check_line_file"
32364
32365 if { echo 'Not enabling shell tracing (command contains a `...` command substitution)'
32366    false; }; then
32367   ( $at_traceon;
32368 mkdir v7
32369 (cd v7
32370 TEST_TAR_FORMAT=v7
32371 export TEST_TAR_FORMAT
32372 TAR_OPTIONS="-H v7"
32373 export TAR_OPTIONS
32374 rm -rf *
32375
32376 genfile -l 1024 -f file1
32377 genfile -l 1024 -f file2
32378 tar cf archive file1 file2
32379
32380 mkdir en
32381 mkdir to
32382
32383 HERE=`pwd`
32384 tar -xf archive --same-order --warning=no-timestamp \
32385   -C $HERE/en file1 \
32386   -C $HERE/to file2 || exit 1
32387
32388 ls en
32389 echo separator
32390 ls to
32391 ) ) >"$at_stdout" 2>"$at_stder1"
32392   at_func_filter_trace $?
32393 else
32394   ( :;
32395 mkdir v7
32396 (cd v7
32397 TEST_TAR_FORMAT=v7
32398 export TEST_TAR_FORMAT
32399 TAR_OPTIONS="-H v7"
32400 export TAR_OPTIONS
32401 rm -rf *
32402
32403 genfile -l 1024 -f file1
32404 genfile -l 1024 -f file2
32405 tar cf archive file1 file2
32406
32407 mkdir en
32408 mkdir to
32409
32410 HERE=`pwd`
32411 tar -xf archive --same-order --warning=no-timestamp \
32412   -C $HERE/en file1 \
32413   -C $HERE/to file2 || exit 1
32414
32415 ls en
32416 echo separator
32417 ls to
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 separator
32425 file2
32426 " | \
32427   $at_diff - "$at_stdout" || at_failed=:
32428 at_func_check_status 0 $at_status "$at_srcdir/same-order02.at:28"
32429
32430 $at_failed && at_func_log_failure
32431 $at_traceon; }
32432
32433               { $at_traceoff
32434 $as_echo "$at_srcdir/same-order02.at:28:
32435 mkdir oldgnu
32436 (cd oldgnu
32437 TEST_TAR_FORMAT=oldgnu
32438 export TEST_TAR_FORMAT
32439 TAR_OPTIONS=\"-H oldgnu\"
32440 export TAR_OPTIONS
32441 rm -rf *
32442
32443 genfile -l 1024 -f file1
32444 genfile -l 1024 -f file2
32445 tar cf archive file1 file2
32446
32447 mkdir en
32448 mkdir to
32449
32450 HERE=\`pwd\`
32451 tar -xf archive --same-order --warning=no-timestamp \\
32452   -C \$HERE/en file1 \\
32453   -C \$HERE/to file2 || exit 1
32454
32455 ls en
32456 echo separator
32457 ls to
32458 )"
32459 echo same-order02.at:28 >"$at_check_line_file"
32460
32461 if { echo 'Not enabling shell tracing (command contains a `...` command substitution)'
32462    false; }; then
32463   ( $at_traceon;
32464 mkdir oldgnu
32465 (cd oldgnu
32466 TEST_TAR_FORMAT=oldgnu
32467 export TEST_TAR_FORMAT
32468 TAR_OPTIONS="-H oldgnu"
32469 export TAR_OPTIONS
32470 rm -rf *
32471
32472 genfile -l 1024 -f file1
32473 genfile -l 1024 -f file2
32474 tar cf archive file1 file2
32475
32476 mkdir en
32477 mkdir to
32478
32479 HERE=`pwd`
32480 tar -xf archive --same-order --warning=no-timestamp \
32481   -C $HERE/en file1 \
32482   -C $HERE/to file2 || exit 1
32483
32484 ls en
32485 echo separator
32486 ls to
32487 ) ) >"$at_stdout" 2>"$at_stder1"
32488   at_func_filter_trace $?
32489 else
32490   ( :;
32491 mkdir oldgnu
32492 (cd oldgnu
32493 TEST_TAR_FORMAT=oldgnu
32494 export TEST_TAR_FORMAT
32495 TAR_OPTIONS="-H oldgnu"
32496 export TAR_OPTIONS
32497 rm -rf *
32498
32499 genfile -l 1024 -f file1
32500 genfile -l 1024 -f file2
32501 tar cf archive file1 file2
32502
32503 mkdir en
32504 mkdir to
32505
32506 HERE=`pwd`
32507 tar -xf archive --same-order --warning=no-timestamp \
32508   -C $HERE/en file1 \
32509   -C $HERE/to file2 || exit 1
32510
32511 ls en
32512 echo separator
32513 ls to
32514 ) ) >"$at_stdout" 2>"$at_stderr"
32515 fi
32516 at_status=$?
32517 at_failed=false
32518 at_func_diff_devnull "$at_stderr" || at_failed=:
32519 echo >>"$at_stdout"; $as_echo "file1
32520 separator
32521 file2
32522 " | \
32523   $at_diff - "$at_stdout" || at_failed=:
32524 at_func_check_status 0 $at_status "$at_srcdir/same-order02.at:28"
32525
32526 $at_failed && at_func_log_failure
32527 $at_traceon; }
32528
32529               { $at_traceoff
32530 $as_echo "$at_srcdir/same-order02.at:28:
32531 mkdir ustar
32532 (cd ustar
32533 TEST_TAR_FORMAT=ustar
32534 export TEST_TAR_FORMAT
32535 TAR_OPTIONS=\"-H ustar\"
32536 export TAR_OPTIONS
32537 rm -rf *
32538
32539 genfile -l 1024 -f file1
32540 genfile -l 1024 -f file2
32541 tar cf archive file1 file2
32542
32543 mkdir en
32544 mkdir to
32545
32546 HERE=\`pwd\`
32547 tar -xf archive --same-order --warning=no-timestamp \\
32548   -C \$HERE/en file1 \\
32549   -C \$HERE/to file2 || exit 1
32550
32551 ls en
32552 echo separator
32553 ls to
32554 )"
32555 echo same-order02.at:28 >"$at_check_line_file"
32556
32557 if { echo 'Not enabling shell tracing (command contains a `...` command substitution)'
32558    false; }; then
32559   ( $at_traceon;
32560 mkdir ustar
32561 (cd ustar
32562 TEST_TAR_FORMAT=ustar
32563 export TEST_TAR_FORMAT
32564 TAR_OPTIONS="-H ustar"
32565 export TAR_OPTIONS
32566 rm -rf *
32567
32568 genfile -l 1024 -f file1
32569 genfile -l 1024 -f file2
32570 tar cf archive file1 file2
32571
32572 mkdir en
32573 mkdir to
32574
32575 HERE=`pwd`
32576 tar -xf archive --same-order --warning=no-timestamp \
32577   -C $HERE/en file1 \
32578   -C $HERE/to file2 || exit 1
32579
32580 ls en
32581 echo separator
32582 ls to
32583 ) ) >"$at_stdout" 2>"$at_stder1"
32584   at_func_filter_trace $?
32585 else
32586   ( :;
32587 mkdir ustar
32588 (cd ustar
32589 TEST_TAR_FORMAT=ustar
32590 export TEST_TAR_FORMAT
32591 TAR_OPTIONS="-H ustar"
32592 export TAR_OPTIONS
32593 rm -rf *
32594
32595 genfile -l 1024 -f file1
32596 genfile -l 1024 -f file2
32597 tar cf archive file1 file2
32598
32599 mkdir en
32600 mkdir to
32601
32602 HERE=`pwd`
32603 tar -xf archive --same-order --warning=no-timestamp \
32604   -C $HERE/en file1 \
32605   -C $HERE/to file2 || exit 1
32606
32607 ls en
32608 echo separator
32609 ls to
32610 ) ) >"$at_stdout" 2>"$at_stderr"
32611 fi
32612 at_status=$?
32613 at_failed=false
32614 at_func_diff_devnull "$at_stderr" || at_failed=:
32615 echo >>"$at_stdout"; $as_echo "file1
32616 separator
32617 file2
32618 " | \
32619   $at_diff - "$at_stdout" || at_failed=:
32620 at_func_check_status 0 $at_status "$at_srcdir/same-order02.at:28"
32621
32622 $at_failed && at_func_log_failure
32623 $at_traceon; }
32624
32625               { $at_traceoff
32626 $as_echo "$at_srcdir/same-order02.at:28:
32627 mkdir posix
32628 (cd posix
32629 TEST_TAR_FORMAT=posix
32630 export TEST_TAR_FORMAT
32631 TAR_OPTIONS=\"-H posix\"
32632 export TAR_OPTIONS
32633 rm -rf *
32634
32635 genfile -l 1024 -f file1
32636 genfile -l 1024 -f file2
32637 tar cf archive file1 file2
32638
32639 mkdir en
32640 mkdir to
32641
32642 HERE=\`pwd\`
32643 tar -xf archive --same-order --warning=no-timestamp \\
32644   -C \$HERE/en file1 \\
32645   -C \$HERE/to file2 || exit 1
32646
32647 ls en
32648 echo separator
32649 ls to
32650 )"
32651 echo same-order02.at:28 >"$at_check_line_file"
32652
32653 if { echo 'Not enabling shell tracing (command contains a `...` command substitution)'
32654    false; }; then
32655   ( $at_traceon;
32656 mkdir posix
32657 (cd posix
32658 TEST_TAR_FORMAT=posix
32659 export TEST_TAR_FORMAT
32660 TAR_OPTIONS="-H posix"
32661 export TAR_OPTIONS
32662 rm -rf *
32663
32664 genfile -l 1024 -f file1
32665 genfile -l 1024 -f file2
32666 tar cf archive file1 file2
32667
32668 mkdir en
32669 mkdir to
32670
32671 HERE=`pwd`
32672 tar -xf archive --same-order --warning=no-timestamp \
32673   -C $HERE/en file1 \
32674   -C $HERE/to file2 || exit 1
32675
32676 ls en
32677 echo separator
32678 ls to
32679 ) ) >"$at_stdout" 2>"$at_stder1"
32680   at_func_filter_trace $?
32681 else
32682   ( :;
32683 mkdir posix
32684 (cd posix
32685 TEST_TAR_FORMAT=posix
32686 export TEST_TAR_FORMAT
32687 TAR_OPTIONS="-H posix"
32688 export TAR_OPTIONS
32689 rm -rf *
32690
32691 genfile -l 1024 -f file1
32692 genfile -l 1024 -f file2
32693 tar cf archive file1 file2
32694
32695 mkdir en
32696 mkdir to
32697
32698 HERE=`pwd`
32699 tar -xf archive --same-order --warning=no-timestamp \
32700   -C $HERE/en file1 \
32701   -C $HERE/to file2 || exit 1
32702
32703 ls en
32704 echo separator
32705 ls to
32706 ) ) >"$at_stdout" 2>"$at_stderr"
32707 fi
32708 at_status=$?
32709 at_failed=false
32710 at_func_diff_devnull "$at_stderr" || at_failed=:
32711 echo >>"$at_stdout"; $as_echo "file1
32712 separator
32713 file2
32714 " | \
32715   $at_diff - "$at_stdout" || at_failed=:
32716 at_func_check_status 0 $at_status "$at_srcdir/same-order02.at:28"
32717
32718 $at_failed && at_func_log_failure
32719 $at_traceon; }
32720
32721               { $at_traceoff
32722 $as_echo "$at_srcdir/same-order02.at:28:
32723 mkdir gnu
32724 (cd gnu
32725 TEST_TAR_FORMAT=gnu
32726 export TEST_TAR_FORMAT
32727 TAR_OPTIONS=\"-H gnu\"
32728 export TAR_OPTIONS
32729 rm -rf *
32730
32731 genfile -l 1024 -f file1
32732 genfile -l 1024 -f file2
32733 tar cf archive file1 file2
32734
32735 mkdir en
32736 mkdir to
32737
32738 HERE=\`pwd\`
32739 tar -xf archive --same-order --warning=no-timestamp \\
32740   -C \$HERE/en file1 \\
32741   -C \$HERE/to file2 || exit 1
32742
32743 ls en
32744 echo separator
32745 ls to
32746 )"
32747 echo same-order02.at:28 >"$at_check_line_file"
32748
32749 if { echo 'Not enabling shell tracing (command contains a `...` command substitution)'
32750    false; }; then
32751   ( $at_traceon;
32752 mkdir gnu
32753 (cd gnu
32754 TEST_TAR_FORMAT=gnu
32755 export TEST_TAR_FORMAT
32756 TAR_OPTIONS="-H gnu"
32757 export TAR_OPTIONS
32758 rm -rf *
32759
32760 genfile -l 1024 -f file1
32761 genfile -l 1024 -f file2
32762 tar cf archive file1 file2
32763
32764 mkdir en
32765 mkdir to
32766
32767 HERE=`pwd`
32768 tar -xf archive --same-order --warning=no-timestamp \
32769   -C $HERE/en file1 \
32770   -C $HERE/to file2 || exit 1
32771
32772 ls en
32773 echo separator
32774 ls to
32775 ) ) >"$at_stdout" 2>"$at_stder1"
32776   at_func_filter_trace $?
32777 else
32778   ( :;
32779 mkdir gnu
32780 (cd gnu
32781 TEST_TAR_FORMAT=gnu
32782 export TEST_TAR_FORMAT
32783 TAR_OPTIONS="-H gnu"
32784 export TAR_OPTIONS
32785 rm -rf *
32786
32787 genfile -l 1024 -f file1
32788 genfile -l 1024 -f file2
32789 tar cf archive file1 file2
32790
32791 mkdir en
32792 mkdir to
32793
32794 HERE=`pwd`
32795 tar -xf archive --same-order --warning=no-timestamp \
32796   -C $HERE/en file1 \
32797   -C $HERE/to file2 || exit 1
32798
32799 ls en
32800 echo separator
32801 ls to
32802 ) ) >"$at_stdout" 2>"$at_stderr"
32803 fi
32804 at_status=$?
32805 at_failed=false
32806 at_func_diff_devnull "$at_stderr" || at_failed=:
32807 echo >>"$at_stdout"; $as_echo "file1
32808 separator
32809 file2
32810 " | \
32811   $at_diff - "$at_stdout" || at_failed=:
32812 at_func_check_status 0 $at_status "$at_srcdir/same-order02.at:28"
32813
32814 $at_failed && at_func_log_failure
32815 $at_traceon; }
32816
32817
32818
32819
32820   $at_traceoff
32821   $at_times_p && times >"$at_times_file"
32822 ) 5>&1 2>&1 | eval $at_tee_pipe
32823 at_status=`cat "$at_status_file"`
32824 #AT_STOP_90
32825 #AT_START_91
32826 # 91. shortrec.at:25: short records
32827 at_setup_line='shortrec.at:25'
32828 at_desc="short records"
32829 $at_quiet $as_echo_n " 91: $at_desc                                  "
32830 at_xfail=no
32831       test -f $XFAILFILE && at_xfail=yes
32832 echo "#                             -*- compilation -*-" >> "$at_group_log"
32833 (
32834   $as_echo "91. shortrec.at:25: testing ..."
32835   $at_traceon
32836
32837
32838
32839
32840
32841   { $at_traceoff
32842 $as_echo "$at_srcdir/shortrec.at:28:
32843 mkdir v7
32844 (cd v7
32845 TEST_TAR_FORMAT=v7
32846 export TEST_TAR_FORMAT
32847 TAR_OPTIONS=\"-H v7\"
32848 export TAR_OPTIONS
32849 rm -rf *
32850
32851 mkdir directory
32852 (cd directory && touch a b c d e f g h i j k l m n o p q r)
32853 tar -c -b 1 -f - directory | tar -t -f - > /dev/null
32854 tar -c -b 1 -f archive directory
32855 tar -t -f archive > /dev/null
32856 tar -t -f - < archive > /dev/null
32857
32858 rm -r directory
32859 )"
32860 echo shortrec.at:28 >"$at_check_line_file"
32861
32862 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
32863    false; }; then
32864   ( $at_traceon;
32865 mkdir v7
32866 (cd v7
32867 TEST_TAR_FORMAT=v7
32868 export TEST_TAR_FORMAT
32869 TAR_OPTIONS="-H v7"
32870 export TAR_OPTIONS
32871 rm -rf *
32872
32873 mkdir directory
32874 (cd directory && touch a b c d e f g h i j k l m n o p q r)
32875 tar -c -b 1 -f - directory | tar -t -f - > /dev/null
32876 tar -c -b 1 -f archive directory
32877 tar -t -f archive > /dev/null
32878 tar -t -f - < archive > /dev/null
32879
32880 rm -r directory
32881 ) ) >"$at_stdout" 2>"$at_stder1"
32882   at_func_filter_trace $?
32883 else
32884   ( :;
32885 mkdir v7
32886 (cd v7
32887 TEST_TAR_FORMAT=v7
32888 export TEST_TAR_FORMAT
32889 TAR_OPTIONS="-H v7"
32890 export TAR_OPTIONS
32891 rm -rf *
32892
32893 mkdir directory
32894 (cd directory && touch a b c d e f g h i j k l m n o p q r)
32895 tar -c -b 1 -f - directory | tar -t -f - > /dev/null
32896 tar -c -b 1 -f archive directory
32897 tar -t -f archive > /dev/null
32898 tar -t -f - < archive > /dev/null
32899
32900 rm -r directory
32901 ) ) >"$at_stdout" 2>"$at_stderr"
32902 fi
32903 at_status=$?
32904 at_failed=false
32905 at_func_diff_devnull "$at_stderr" || at_failed=:
32906 at_func_diff_devnull "$at_stdout" || at_failed=:
32907 at_func_check_status 0 $at_status "$at_srcdir/shortrec.at:28"
32908
32909 $at_failed && at_func_log_failure
32910 $at_traceon; }
32911
32912               { $at_traceoff
32913 $as_echo "$at_srcdir/shortrec.at:28:
32914 mkdir oldgnu
32915 (cd oldgnu
32916 TEST_TAR_FORMAT=oldgnu
32917 export TEST_TAR_FORMAT
32918 TAR_OPTIONS=\"-H oldgnu\"
32919 export TAR_OPTIONS
32920 rm -rf *
32921
32922 mkdir directory
32923 (cd directory && touch a b c d e f g h i j k l m n o p q r)
32924 tar -c -b 1 -f - directory | tar -t -f - > /dev/null
32925 tar -c -b 1 -f archive directory
32926 tar -t -f archive > /dev/null
32927 tar -t -f - < archive > /dev/null
32928
32929 rm -r directory
32930 )"
32931 echo shortrec.at:28 >"$at_check_line_file"
32932
32933 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
32934    false; }; then
32935   ( $at_traceon;
32936 mkdir oldgnu
32937 (cd oldgnu
32938 TEST_TAR_FORMAT=oldgnu
32939 export TEST_TAR_FORMAT
32940 TAR_OPTIONS="-H oldgnu"
32941 export TAR_OPTIONS
32942 rm -rf *
32943
32944 mkdir directory
32945 (cd directory && touch a b c d e f g h i j k l m n o p q r)
32946 tar -c -b 1 -f - directory | tar -t -f - > /dev/null
32947 tar -c -b 1 -f archive directory
32948 tar -t -f archive > /dev/null
32949 tar -t -f - < archive > /dev/null
32950
32951 rm -r directory
32952 ) ) >"$at_stdout" 2>"$at_stder1"
32953   at_func_filter_trace $?
32954 else
32955   ( :;
32956 mkdir oldgnu
32957 (cd oldgnu
32958 TEST_TAR_FORMAT=oldgnu
32959 export TEST_TAR_FORMAT
32960 TAR_OPTIONS="-H oldgnu"
32961 export TAR_OPTIONS
32962 rm -rf *
32963
32964 mkdir directory
32965 (cd directory && touch a b c d e f g h i j k l m n o p q r)
32966 tar -c -b 1 -f - directory | tar -t -f - > /dev/null
32967 tar -c -b 1 -f archive directory
32968 tar -t -f archive > /dev/null
32969 tar -t -f - < archive > /dev/null
32970
32971 rm -r directory
32972 ) ) >"$at_stdout" 2>"$at_stderr"
32973 fi
32974 at_status=$?
32975 at_failed=false
32976 at_func_diff_devnull "$at_stderr" || at_failed=:
32977 at_func_diff_devnull "$at_stdout" || at_failed=:
32978 at_func_check_status 0 $at_status "$at_srcdir/shortrec.at:28"
32979
32980 $at_failed && at_func_log_failure
32981 $at_traceon; }
32982
32983               { $at_traceoff
32984 $as_echo "$at_srcdir/shortrec.at:28:
32985 mkdir ustar
32986 (cd ustar
32987 TEST_TAR_FORMAT=ustar
32988 export TEST_TAR_FORMAT
32989 TAR_OPTIONS=\"-H ustar\"
32990 export TAR_OPTIONS
32991 rm -rf *
32992
32993 mkdir directory
32994 (cd directory && touch a b c d e f g h i j k l m n o p q r)
32995 tar -c -b 1 -f - directory | tar -t -f - > /dev/null
32996 tar -c -b 1 -f archive directory
32997 tar -t -f archive > /dev/null
32998 tar -t -f - < archive > /dev/null
32999
33000 rm -r directory
33001 )"
33002 echo shortrec.at:28 >"$at_check_line_file"
33003
33004 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
33005    false; }; then
33006   ( $at_traceon;
33007 mkdir ustar
33008 (cd ustar
33009 TEST_TAR_FORMAT=ustar
33010 export TEST_TAR_FORMAT
33011 TAR_OPTIONS="-H ustar"
33012 export TAR_OPTIONS
33013 rm -rf *
33014
33015 mkdir directory
33016 (cd directory && touch a b c d e f g h i j k l m n o p q r)
33017 tar -c -b 1 -f - directory | tar -t -f - > /dev/null
33018 tar -c -b 1 -f archive directory
33019 tar -t -f archive > /dev/null
33020 tar -t -f - < archive > /dev/null
33021
33022 rm -r directory
33023 ) ) >"$at_stdout" 2>"$at_stder1"
33024   at_func_filter_trace $?
33025 else
33026   ( :;
33027 mkdir ustar
33028 (cd ustar
33029 TEST_TAR_FORMAT=ustar
33030 export TEST_TAR_FORMAT
33031 TAR_OPTIONS="-H ustar"
33032 export TAR_OPTIONS
33033 rm -rf *
33034
33035 mkdir directory
33036 (cd directory && touch a b c d e f g h i j k l m n o p q r)
33037 tar -c -b 1 -f - directory | tar -t -f - > /dev/null
33038 tar -c -b 1 -f archive directory
33039 tar -t -f archive > /dev/null
33040 tar -t -f - < archive > /dev/null
33041
33042 rm -r directory
33043 ) ) >"$at_stdout" 2>"$at_stderr"
33044 fi
33045 at_status=$?
33046 at_failed=false
33047 at_func_diff_devnull "$at_stderr" || at_failed=:
33048 at_func_diff_devnull "$at_stdout" || at_failed=:
33049 at_func_check_status 0 $at_status "$at_srcdir/shortrec.at:28"
33050
33051 $at_failed && at_func_log_failure
33052 $at_traceon; }
33053
33054               { $at_traceoff
33055 $as_echo "$at_srcdir/shortrec.at:28:
33056 mkdir posix
33057 (cd posix
33058 TEST_TAR_FORMAT=posix
33059 export TEST_TAR_FORMAT
33060 TAR_OPTIONS=\"-H posix\"
33061 export TAR_OPTIONS
33062 rm -rf *
33063
33064 mkdir directory
33065 (cd directory && touch a b c d e f g h i j k l m n o p q r)
33066 tar -c -b 1 -f - directory | tar -t -f - > /dev/null
33067 tar -c -b 1 -f archive directory
33068 tar -t -f archive > /dev/null
33069 tar -t -f - < archive > /dev/null
33070
33071 rm -r directory
33072 )"
33073 echo shortrec.at:28 >"$at_check_line_file"
33074
33075 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
33076    false; }; then
33077   ( $at_traceon;
33078 mkdir posix
33079 (cd posix
33080 TEST_TAR_FORMAT=posix
33081 export TEST_TAR_FORMAT
33082 TAR_OPTIONS="-H posix"
33083 export TAR_OPTIONS
33084 rm -rf *
33085
33086 mkdir directory
33087 (cd directory && touch a b c d e f g h i j k l m n o p q r)
33088 tar -c -b 1 -f - directory | tar -t -f - > /dev/null
33089 tar -c -b 1 -f archive directory
33090 tar -t -f archive > /dev/null
33091 tar -t -f - < archive > /dev/null
33092
33093 rm -r directory
33094 ) ) >"$at_stdout" 2>"$at_stder1"
33095   at_func_filter_trace $?
33096 else
33097   ( :;
33098 mkdir posix
33099 (cd posix
33100 TEST_TAR_FORMAT=posix
33101 export TEST_TAR_FORMAT
33102 TAR_OPTIONS="-H posix"
33103 export TAR_OPTIONS
33104 rm -rf *
33105
33106 mkdir directory
33107 (cd directory && touch a b c d e f g h i j k l m n o p q r)
33108 tar -c -b 1 -f - directory | tar -t -f - > /dev/null
33109 tar -c -b 1 -f archive directory
33110 tar -t -f archive > /dev/null
33111 tar -t -f - < archive > /dev/null
33112
33113 rm -r directory
33114 ) ) >"$at_stdout" 2>"$at_stderr"
33115 fi
33116 at_status=$?
33117 at_failed=false
33118 at_func_diff_devnull "$at_stderr" || at_failed=:
33119 at_func_diff_devnull "$at_stdout" || at_failed=:
33120 at_func_check_status 0 $at_status "$at_srcdir/shortrec.at:28"
33121
33122 $at_failed && at_func_log_failure
33123 $at_traceon; }
33124
33125               { $at_traceoff
33126 $as_echo "$at_srcdir/shortrec.at:28:
33127 mkdir gnu
33128 (cd gnu
33129 TEST_TAR_FORMAT=gnu
33130 export TEST_TAR_FORMAT
33131 TAR_OPTIONS=\"-H gnu\"
33132 export TAR_OPTIONS
33133 rm -rf *
33134
33135 mkdir directory
33136 (cd directory && touch a b c d e f g h i j k l m n o p q r)
33137 tar -c -b 1 -f - directory | tar -t -f - > /dev/null
33138 tar -c -b 1 -f archive directory
33139 tar -t -f archive > /dev/null
33140 tar -t -f - < archive > /dev/null
33141
33142 rm -r directory
33143 )"
33144 echo shortrec.at:28 >"$at_check_line_file"
33145
33146 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
33147    false; }; then
33148   ( $at_traceon;
33149 mkdir gnu
33150 (cd gnu
33151 TEST_TAR_FORMAT=gnu
33152 export TEST_TAR_FORMAT
33153 TAR_OPTIONS="-H gnu"
33154 export TAR_OPTIONS
33155 rm -rf *
33156
33157 mkdir directory
33158 (cd directory && touch a b c d e f g h i j k l m n o p q r)
33159 tar -c -b 1 -f - directory | tar -t -f - > /dev/null
33160 tar -c -b 1 -f archive directory
33161 tar -t -f archive > /dev/null
33162 tar -t -f - < archive > /dev/null
33163
33164 rm -r directory
33165 ) ) >"$at_stdout" 2>"$at_stder1"
33166   at_func_filter_trace $?
33167 else
33168   ( :;
33169 mkdir gnu
33170 (cd gnu
33171 TEST_TAR_FORMAT=gnu
33172 export TEST_TAR_FORMAT
33173 TAR_OPTIONS="-H gnu"
33174 export TAR_OPTIONS
33175 rm -rf *
33176
33177 mkdir directory
33178 (cd directory && touch a b c d e f g h i j k l m n o p q r)
33179 tar -c -b 1 -f - directory | tar -t -f - > /dev/null
33180 tar -c -b 1 -f archive directory
33181 tar -t -f archive > /dev/null
33182 tar -t -f - < archive > /dev/null
33183
33184 rm -r directory
33185 ) ) >"$at_stdout" 2>"$at_stderr"
33186 fi
33187 at_status=$?
33188 at_failed=false
33189 at_func_diff_devnull "$at_stderr" || at_failed=:
33190 at_func_diff_devnull "$at_stdout" || at_failed=:
33191 at_func_check_status 0 $at_status "$at_srcdir/shortrec.at:28"
33192
33193 $at_failed && at_func_log_failure
33194 $at_traceon; }
33195
33196
33197
33198
33199   $at_traceoff
33200   $at_times_p && times >"$at_times_file"
33201 ) 5>&1 2>&1 | eval $at_tee_pipe
33202 at_status=`cat "$at_status_file"`
33203 #AT_STOP_91
33204 #AT_START_92
33205 # 92. sparse01.at:21: sparse files
33206 at_setup_line='sparse01.at:21'
33207 at_desc="sparse files"
33208 $at_quiet $as_echo_n " 92: $at_desc                                   "
33209 at_xfail=no
33210       test -f $XFAILFILE && at_xfail=yes
33211 echo "#                             -*- compilation -*-" >> "$at_group_log"
33212 (
33213   $as_echo "92. sparse01.at:21: testing ..."
33214   $at_traceon
33215
33216
33217
33218
33219
33220   { $at_traceoff
33221 $as_echo "$at_srcdir/sparse01.at:24:
33222 mkdir posix
33223 (cd posix
33224 TEST_TAR_FORMAT=posix
33225 export TEST_TAR_FORMAT
33226 TAR_OPTIONS=\"-H posix\"
33227 export TAR_OPTIONS
33228 rm -rf *
33229
33230 genfile --length 1000 -f begin
33231 genfile --length 1000 -f end
33232 genfile --sparse --file sparsefile --block-size 512 0 ABCD 1M EFGH 2000K IJKL || exit 77
33233 tar -c -f archive --sparse begin sparsefile end || exit 1
33234 echo separator
33235
33236 tar tfv archive
33237 echo separator
33238 mkdir directory
33239 tar Cxf directory archive --warning=no-timestamp
33240 genfile --stat=name,size sparsefile
33241 cmp sparsefile directory/sparsefile
33242 )"
33243 echo sparse01.at:24 >"$at_check_line_file"
33244
33245 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
33246    false; }; then
33247   ( $at_traceon;
33248 mkdir posix
33249 (cd posix
33250 TEST_TAR_FORMAT=posix
33251 export TEST_TAR_FORMAT
33252 TAR_OPTIONS="-H posix"
33253 export TAR_OPTIONS
33254 rm -rf *
33255
33256 genfile --length 1000 -f begin
33257 genfile --length 1000 -f end
33258 genfile --sparse --file sparsefile --block-size 512 0 ABCD 1M EFGH 2000K IJKL || exit 77
33259 tar -c -f archive --sparse begin sparsefile end || exit 1
33260 echo separator
33261
33262 tar tfv archive
33263 echo separator
33264 mkdir directory
33265 tar Cxf directory archive --warning=no-timestamp
33266 genfile --stat=name,size sparsefile
33267 cmp sparsefile directory/sparsefile
33268 ) ) >"$at_stdout" 2>"$at_stder1"
33269   at_func_filter_trace $?
33270 else
33271   ( :;
33272 mkdir posix
33273 (cd posix
33274 TEST_TAR_FORMAT=posix
33275 export TEST_TAR_FORMAT
33276 TAR_OPTIONS="-H posix"
33277 export TAR_OPTIONS
33278 rm -rf *
33279
33280 genfile --length 1000 -f begin
33281 genfile --length 1000 -f end
33282 genfile --sparse --file sparsefile --block-size 512 0 ABCD 1M EFGH 2000K IJKL || exit 77
33283 tar -c -f archive --sparse begin sparsefile end || exit 1
33284 echo separator
33285
33286 tar tfv archive
33287 echo separator
33288 mkdir directory
33289 tar Cxf directory archive --warning=no-timestamp
33290 genfile --stat=name,size sparsefile
33291 cmp sparsefile directory/sparsefile
33292 ) ) >"$at_stdout" 2>"$at_stderr"
33293 fi
33294 at_status=$?
33295 at_failed=false
33296 at_func_diff_devnull "$at_stderr" || at_failed=:
33297 echo stdout:; tee stdout <"$at_stdout"
33298 at_func_check_status 0 $at_status "$at_srcdir/sparse01.at:24"
33299
33300 $at_failed && at_func_log_failure
33301 $at_traceon; }
33302
33303               { $at_traceoff
33304 $as_echo "$at_srcdir/sparse01.at:24:
33305 mkdir gnu
33306 (cd gnu
33307 TEST_TAR_FORMAT=gnu
33308 export TEST_TAR_FORMAT
33309 TAR_OPTIONS=\"-H gnu\"
33310 export TAR_OPTIONS
33311 rm -rf *
33312
33313 genfile --length 1000 -f begin
33314 genfile --length 1000 -f end
33315 genfile --sparse --file sparsefile --block-size 512 0 ABCD 1M EFGH 2000K IJKL || exit 77
33316 tar -c -f archive --sparse begin sparsefile end || exit 1
33317 echo separator
33318
33319 tar tfv archive
33320 echo separator
33321 mkdir directory
33322 tar Cxf directory archive --warning=no-timestamp
33323 genfile --stat=name,size sparsefile
33324 cmp sparsefile directory/sparsefile
33325 )"
33326 echo sparse01.at:24 >"$at_check_line_file"
33327
33328 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
33329    false; }; then
33330   ( $at_traceon;
33331 mkdir gnu
33332 (cd gnu
33333 TEST_TAR_FORMAT=gnu
33334 export TEST_TAR_FORMAT
33335 TAR_OPTIONS="-H gnu"
33336 export TAR_OPTIONS
33337 rm -rf *
33338
33339 genfile --length 1000 -f begin
33340 genfile --length 1000 -f end
33341 genfile --sparse --file sparsefile --block-size 512 0 ABCD 1M EFGH 2000K IJKL || exit 77
33342 tar -c -f archive --sparse begin sparsefile end || exit 1
33343 echo separator
33344
33345 tar tfv archive
33346 echo separator
33347 mkdir directory
33348 tar Cxf directory archive --warning=no-timestamp
33349 genfile --stat=name,size sparsefile
33350 cmp sparsefile directory/sparsefile
33351 ) ) >"$at_stdout" 2>"$at_stder1"
33352   at_func_filter_trace $?
33353 else
33354   ( :;
33355 mkdir gnu
33356 (cd gnu
33357 TEST_TAR_FORMAT=gnu
33358 export TEST_TAR_FORMAT
33359 TAR_OPTIONS="-H gnu"
33360 export TAR_OPTIONS
33361 rm -rf *
33362
33363 genfile --length 1000 -f begin
33364 genfile --length 1000 -f end
33365 genfile --sparse --file sparsefile --block-size 512 0 ABCD 1M EFGH 2000K IJKL || exit 77
33366 tar -c -f archive --sparse begin sparsefile end || exit 1
33367 echo separator
33368
33369 tar tfv archive
33370 echo separator
33371 mkdir directory
33372 tar Cxf directory archive --warning=no-timestamp
33373 genfile --stat=name,size sparsefile
33374 cmp sparsefile directory/sparsefile
33375 ) ) >"$at_stdout" 2>"$at_stderr"
33376 fi
33377 at_status=$?
33378 at_failed=false
33379 at_func_diff_devnull "$at_stderr" || at_failed=:
33380 echo stdout:; tee stdout <"$at_stdout"
33381 at_func_check_status 0 $at_status "$at_srcdir/sparse01.at:24"
33382
33383 $at_failed && at_func_log_failure
33384 $at_traceon; }
33385
33386               { $at_traceoff
33387 $as_echo "$at_srcdir/sparse01.at:24:
33388 mkdir oldgnu
33389 (cd oldgnu
33390 TEST_TAR_FORMAT=oldgnu
33391 export TEST_TAR_FORMAT
33392 TAR_OPTIONS=\"-H oldgnu\"
33393 export TAR_OPTIONS
33394 rm -rf *
33395
33396 genfile --length 1000 -f begin
33397 genfile --length 1000 -f end
33398 genfile --sparse --file sparsefile --block-size 512 0 ABCD 1M EFGH 2000K IJKL || exit 77
33399 tar -c -f archive --sparse begin sparsefile end || exit 1
33400 echo separator
33401
33402 tar tfv archive
33403 echo separator
33404 mkdir directory
33405 tar Cxf directory archive --warning=no-timestamp
33406 genfile --stat=name,size sparsefile
33407 cmp sparsefile directory/sparsefile
33408 )"
33409 echo sparse01.at:24 >"$at_check_line_file"
33410
33411 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
33412    false; }; then
33413   ( $at_traceon;
33414 mkdir oldgnu
33415 (cd oldgnu
33416 TEST_TAR_FORMAT=oldgnu
33417 export TEST_TAR_FORMAT
33418 TAR_OPTIONS="-H oldgnu"
33419 export TAR_OPTIONS
33420 rm -rf *
33421
33422 genfile --length 1000 -f begin
33423 genfile --length 1000 -f end
33424 genfile --sparse --file sparsefile --block-size 512 0 ABCD 1M EFGH 2000K IJKL || exit 77
33425 tar -c -f archive --sparse begin sparsefile end || exit 1
33426 echo separator
33427
33428 tar tfv archive
33429 echo separator
33430 mkdir directory
33431 tar Cxf directory archive --warning=no-timestamp
33432 genfile --stat=name,size sparsefile
33433 cmp sparsefile directory/sparsefile
33434 ) ) >"$at_stdout" 2>"$at_stder1"
33435   at_func_filter_trace $?
33436 else
33437   ( :;
33438 mkdir oldgnu
33439 (cd oldgnu
33440 TEST_TAR_FORMAT=oldgnu
33441 export TEST_TAR_FORMAT
33442 TAR_OPTIONS="-H oldgnu"
33443 export TAR_OPTIONS
33444 rm -rf *
33445
33446 genfile --length 1000 -f begin
33447 genfile --length 1000 -f end
33448 genfile --sparse --file sparsefile --block-size 512 0 ABCD 1M EFGH 2000K IJKL || exit 77
33449 tar -c -f archive --sparse begin sparsefile end || exit 1
33450 echo separator
33451
33452 tar tfv archive
33453 echo separator
33454 mkdir directory
33455 tar Cxf directory archive --warning=no-timestamp
33456 genfile --stat=name,size sparsefile
33457 cmp sparsefile directory/sparsefile
33458 ) ) >"$at_stdout" 2>"$at_stderr"
33459 fi
33460 at_status=$?
33461 at_failed=false
33462 at_func_diff_devnull "$at_stderr" || at_failed=:
33463 echo stdout:; tee stdout <"$at_stdout"
33464 at_func_check_status 0 $at_status "$at_srcdir/sparse01.at:24"
33465
33466 $at_failed && at_func_log_failure
33467 $at_traceon; }
33468
33469
33470
33471
33472
33473 cat >stdout.re <<'_ATEOF'
33474 separator
33475 -rw-r--r-- ^ ^ *  *1000 0-90-90-90-9-0-90-9-0-90-9 0-90-9:0-90-9 begin
33476 -rw-r--r-- ^ ^ *  *10344448 0-90-90-90-9-0-90-9-0-90-9 0-90-9:0-90-9 sparsefile
33477 -rw-r--r-- ^ ^ *  *1000 0-90-90-90-9-0-90-9-0-90-9 0-90-9:0-90-9 end
33478 separator
33479 sparsefile 10344448
33480 _ATEOF
33481
33482 awk '{print NR " " $0}' stdout > $$.1
33483 awk '{print NR " " $0}' stdout.re | join - $$.1 |
33484 while read NUM RE LINE
33485 do
33486   echo "$LINE" | grep -- "$RE" >/dev/null || exit 1
33487 done
33488
33489
33490   $at_traceoff
33491   $at_times_p && times >"$at_times_file"
33492 ) 5>&1 2>&1 | eval $at_tee_pipe
33493 at_status=`cat "$at_status_file"`
33494 #AT_STOP_92
33495 #AT_START_93
33496 # 93. sparse02.at:21: extracting sparse file over a pipe
33497 at_setup_line='sparse02.at:21'
33498 at_desc="extracting sparse file over a pipe"
33499 $at_quiet $as_echo_n " 93: $at_desc             "
33500 at_xfail=no
33501       test -f $XFAILFILE && at_xfail=yes
33502 echo "#                             -*- compilation -*-" >> "$at_group_log"
33503 (
33504   $as_echo "93. sparse02.at:21: testing ..."
33505   $at_traceon
33506
33507
33508
33509 # Tar 1.14 - 1.15.1 was unable to extract sparse files to a pipe.
33510 # References: <16896.21739.460782.124775@jik.kamens.brookline.ma.us>
33511 # http://lists.gnu.org/archive/html/bug-tar/2005-02/msg00003.html
33512
33513
33514
33515   { $at_traceoff
33516 $as_echo "$at_srcdir/sparse02.at:28:
33517 mkdir posix
33518 (cd posix
33519 TEST_TAR_FORMAT=posix
33520 export TEST_TAR_FORMAT
33521 TAR_OPTIONS=\"-H posix\"
33522 export TAR_OPTIONS
33523 rm -rf *
33524
33525 genfile --sparse --file sparsefile --block-size 512 0 ABCD 1M EFGH 2000K IJKL || exit 77
33526 tar -c -f archive --sparse sparsefile || exit 1
33527 echo separator
33528
33529 tar xfO archive | cat - > sparsecopy || exit 1
33530 cmp sparsefile sparsecopy
33531 )"
33532 echo sparse02.at:28 >"$at_check_line_file"
33533
33534 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
33535    false; }; then
33536   ( $at_traceon;
33537 mkdir posix
33538 (cd posix
33539 TEST_TAR_FORMAT=posix
33540 export TEST_TAR_FORMAT
33541 TAR_OPTIONS="-H posix"
33542 export TAR_OPTIONS
33543 rm -rf *
33544
33545 genfile --sparse --file sparsefile --block-size 512 0 ABCD 1M EFGH 2000K IJKL || exit 77
33546 tar -c -f archive --sparse sparsefile || exit 1
33547 echo separator
33548
33549 tar xfO archive | cat - > sparsecopy || exit 1
33550 cmp sparsefile sparsecopy
33551 ) ) >"$at_stdout" 2>"$at_stder1"
33552   at_func_filter_trace $?
33553 else
33554   ( :;
33555 mkdir posix
33556 (cd posix
33557 TEST_TAR_FORMAT=posix
33558 export TEST_TAR_FORMAT
33559 TAR_OPTIONS="-H posix"
33560 export TAR_OPTIONS
33561 rm -rf *
33562
33563 genfile --sparse --file sparsefile --block-size 512 0 ABCD 1M EFGH 2000K IJKL || exit 77
33564 tar -c -f archive --sparse sparsefile || exit 1
33565 echo separator
33566
33567 tar xfO archive | cat - > sparsecopy || exit 1
33568 cmp sparsefile sparsecopy
33569 ) ) >"$at_stdout" 2>"$at_stderr"
33570 fi
33571 at_status=$?
33572 at_failed=false
33573 at_func_diff_devnull "$at_stderr" || at_failed=:
33574 echo >>"$at_stdout"; $as_echo "separator
33575 " | \
33576   $at_diff - "$at_stdout" || at_failed=:
33577 at_func_check_status 0 $at_status "$at_srcdir/sparse02.at:28"
33578
33579 $at_failed && at_func_log_failure
33580 $at_traceon; }
33581
33582               { $at_traceoff
33583 $as_echo "$at_srcdir/sparse02.at:28:
33584 mkdir gnu
33585 (cd gnu
33586 TEST_TAR_FORMAT=gnu
33587 export TEST_TAR_FORMAT
33588 TAR_OPTIONS=\"-H gnu\"
33589 export TAR_OPTIONS
33590 rm -rf *
33591
33592 genfile --sparse --file sparsefile --block-size 512 0 ABCD 1M EFGH 2000K IJKL || exit 77
33593 tar -c -f archive --sparse sparsefile || exit 1
33594 echo separator
33595
33596 tar xfO archive | cat - > sparsecopy || exit 1
33597 cmp sparsefile sparsecopy
33598 )"
33599 echo sparse02.at:28 >"$at_check_line_file"
33600
33601 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
33602    false; }; then
33603   ( $at_traceon;
33604 mkdir gnu
33605 (cd gnu
33606 TEST_TAR_FORMAT=gnu
33607 export TEST_TAR_FORMAT
33608 TAR_OPTIONS="-H gnu"
33609 export TAR_OPTIONS
33610 rm -rf *
33611
33612 genfile --sparse --file sparsefile --block-size 512 0 ABCD 1M EFGH 2000K IJKL || exit 77
33613 tar -c -f archive --sparse sparsefile || exit 1
33614 echo separator
33615
33616 tar xfO archive | cat - > sparsecopy || exit 1
33617 cmp sparsefile sparsecopy
33618 ) ) >"$at_stdout" 2>"$at_stder1"
33619   at_func_filter_trace $?
33620 else
33621   ( :;
33622 mkdir gnu
33623 (cd gnu
33624 TEST_TAR_FORMAT=gnu
33625 export TEST_TAR_FORMAT
33626 TAR_OPTIONS="-H gnu"
33627 export TAR_OPTIONS
33628 rm -rf *
33629
33630 genfile --sparse --file sparsefile --block-size 512 0 ABCD 1M EFGH 2000K IJKL || exit 77
33631 tar -c -f archive --sparse sparsefile || exit 1
33632 echo separator
33633
33634 tar xfO archive | cat - > sparsecopy || exit 1
33635 cmp sparsefile sparsecopy
33636 ) ) >"$at_stdout" 2>"$at_stderr"
33637 fi
33638 at_status=$?
33639 at_failed=false
33640 at_func_diff_devnull "$at_stderr" || at_failed=:
33641 echo >>"$at_stdout"; $as_echo "separator
33642 " | \
33643   $at_diff - "$at_stdout" || at_failed=:
33644 at_func_check_status 0 $at_status "$at_srcdir/sparse02.at:28"
33645
33646 $at_failed && at_func_log_failure
33647 $at_traceon; }
33648
33649               { $at_traceoff
33650 $as_echo "$at_srcdir/sparse02.at:28:
33651 mkdir oldgnu
33652 (cd oldgnu
33653 TEST_TAR_FORMAT=oldgnu
33654 export TEST_TAR_FORMAT
33655 TAR_OPTIONS=\"-H oldgnu\"
33656 export TAR_OPTIONS
33657 rm -rf *
33658
33659 genfile --sparse --file sparsefile --block-size 512 0 ABCD 1M EFGH 2000K IJKL || exit 77
33660 tar -c -f archive --sparse sparsefile || exit 1
33661 echo separator
33662
33663 tar xfO archive | cat - > sparsecopy || exit 1
33664 cmp sparsefile sparsecopy
33665 )"
33666 echo sparse02.at:28 >"$at_check_line_file"
33667
33668 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
33669    false; }; then
33670   ( $at_traceon;
33671 mkdir oldgnu
33672 (cd oldgnu
33673 TEST_TAR_FORMAT=oldgnu
33674 export TEST_TAR_FORMAT
33675 TAR_OPTIONS="-H oldgnu"
33676 export TAR_OPTIONS
33677 rm -rf *
33678
33679 genfile --sparse --file sparsefile --block-size 512 0 ABCD 1M EFGH 2000K IJKL || exit 77
33680 tar -c -f archive --sparse sparsefile || exit 1
33681 echo separator
33682
33683 tar xfO archive | cat - > sparsecopy || exit 1
33684 cmp sparsefile sparsecopy
33685 ) ) >"$at_stdout" 2>"$at_stder1"
33686   at_func_filter_trace $?
33687 else
33688   ( :;
33689 mkdir oldgnu
33690 (cd oldgnu
33691 TEST_TAR_FORMAT=oldgnu
33692 export TEST_TAR_FORMAT
33693 TAR_OPTIONS="-H oldgnu"
33694 export TAR_OPTIONS
33695 rm -rf *
33696
33697 genfile --sparse --file sparsefile --block-size 512 0 ABCD 1M EFGH 2000K IJKL || exit 77
33698 tar -c -f archive --sparse sparsefile || exit 1
33699 echo separator
33700
33701 tar xfO archive | cat - > sparsecopy || exit 1
33702 cmp sparsefile sparsecopy
33703 ) ) >"$at_stdout" 2>"$at_stderr"
33704 fi
33705 at_status=$?
33706 at_failed=false
33707 at_func_diff_devnull "$at_stderr" || at_failed=:
33708 echo >>"$at_stdout"; $as_echo "separator
33709 " | \
33710   $at_diff - "$at_stdout" || at_failed=:
33711 at_func_check_status 0 $at_status "$at_srcdir/sparse02.at:28"
33712
33713 $at_failed && at_func_log_failure
33714 $at_traceon; }
33715
33716
33717
33718
33719   $at_traceoff
33720   $at_times_p && times >"$at_times_file"
33721 ) 5>&1 2>&1 | eval $at_tee_pipe
33722 at_status=`cat "$at_status_file"`
33723 #AT_STOP_93
33724 #AT_START_94
33725 # 94. sparse03.at:21: storing sparse files > 8G
33726 at_setup_line='sparse03.at:21'
33727 at_desc="storing sparse files > 8G"
33728 $at_quiet $as_echo_n " 94: $at_desc                      "
33729 at_xfail=no
33730       test -f $XFAILFILE && at_xfail=yes
33731 echo "#                             -*- compilation -*-" >> "$at_group_log"
33732 (
33733   $as_echo "94. sparse03.at:21: testing ..."
33734   $at_traceon
33735
33736
33737
33738 # Tar 1.15.1 incorrectly computed sparse member size if the extended
33739 # PAX header contained size keyword.
33740 # References: <87vf46nb36.fsf@penguin.cs.ucla.edu>
33741 # http://lists.gnu.org/archive/html/bug-tar/2005-06/msg00040.html
33742
33743
33744
33745   { $at_traceoff
33746 $as_echo "$at_srcdir/sparse03.at:29:
33747 mkdir posix
33748 (cd posix
33749 TEST_TAR_FORMAT=posix
33750 export TEST_TAR_FORMAT
33751 TAR_OPTIONS=\"-H posix\"
33752 export TAR_OPTIONS
33753 rm -rf *
33754
33755 genfile --length 1000 --file begin
33756 genfile --length 1000 --file end
33757 genfile --sparse --file sparsefile --block-size 512 8G A || exit 77
33758 tar -c -f archive --sparse begin sparsefile end || exit 1
33759 echo separator
33760
33761 tar tfv archive
33762 echo separator
33763 mkdir directory
33764 tar Cxf directory archive
33765 genfile --stat=name,size sparsefile
33766 cmp sparsefile directory/sparsefile
33767 )"
33768 echo sparse03.at:29 >"$at_check_line_file"
33769
33770 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
33771    false; }; then
33772   ( $at_traceon;
33773 mkdir posix
33774 (cd posix
33775 TEST_TAR_FORMAT=posix
33776 export TEST_TAR_FORMAT
33777 TAR_OPTIONS="-H posix"
33778 export TAR_OPTIONS
33779 rm -rf *
33780
33781 genfile --length 1000 --file begin
33782 genfile --length 1000 --file end
33783 genfile --sparse --file sparsefile --block-size 512 8G A || exit 77
33784 tar -c -f archive --sparse begin sparsefile end || exit 1
33785 echo separator
33786
33787 tar tfv archive
33788 echo separator
33789 mkdir directory
33790 tar Cxf directory archive
33791 genfile --stat=name,size sparsefile
33792 cmp sparsefile directory/sparsefile
33793 ) ) >"$at_stdout" 2>"$at_stder1"
33794   at_func_filter_trace $?
33795 else
33796   ( :;
33797 mkdir posix
33798 (cd posix
33799 TEST_TAR_FORMAT=posix
33800 export TEST_TAR_FORMAT
33801 TAR_OPTIONS="-H posix"
33802 export TAR_OPTIONS
33803 rm -rf *
33804
33805 genfile --length 1000 --file begin
33806 genfile --length 1000 --file end
33807 genfile --sparse --file sparsefile --block-size 512 8G A || exit 77
33808 tar -c -f archive --sparse begin sparsefile end || exit 1
33809 echo separator
33810
33811 tar tfv archive
33812 echo separator
33813 mkdir directory
33814 tar Cxf directory archive
33815 genfile --stat=name,size sparsefile
33816 cmp sparsefile directory/sparsefile
33817 ) ) >"$at_stdout" 2>"$at_stderr"
33818 fi
33819 at_status=$?
33820 at_failed=false
33821 at_func_diff_devnull "$at_stderr" || at_failed=:
33822 echo stdout:; tee stdout <"$at_stdout"
33823 at_func_check_status 0 $at_status "$at_srcdir/sparse03.at:29"
33824
33825 $at_failed && at_func_log_failure
33826 $at_traceon; }
33827
33828
33829
33830
33831
33832 cat >stdout.re <<'_ATEOF'
33833 separator
33834 -rw-r--r-- ^ ^ *  *1000 0-90-90-90-9-0-90-9-0-90-9 0-90-9:0-90-9 begin
33835 -rw-r--r-- ^ ^ *  *8589935104 0-90-90-90-9-0-90-9-0-90-9 0-90-9:0-90-9 sparsefile
33836 -rw-r--r-- ^ ^ *  *1000 0-90-90-90-9-0-90-9-0-90-9 0-90-9:0-90-9 end
33837 separator
33838 sparsefile 8589935104
33839 _ATEOF
33840
33841 awk '{print NR " " $0}' stdout > $$.1
33842 awk '{print NR " " $0}' stdout.re | join - $$.1 |
33843 while read NUM RE LINE
33844 do
33845   echo "$LINE" | grep -- "$RE" >/dev/null || exit 1
33846 done
33847
33848
33849   $at_traceoff
33850   $at_times_p && times >"$at_times_file"
33851 ) 5>&1 2>&1 | eval $at_tee_pipe
33852 at_status=`cat "$at_status_file"`
33853 #AT_STOP_94
33854 #AT_START_95
33855 # 95. sparsemv.at:21: sparse files in MV archives
33856 at_setup_line='sparsemv.at:21'
33857 at_desc="sparse files in MV archives"
33858 $at_quiet $as_echo_n " 95: $at_desc                    "
33859 at_xfail=no
33860       test -f $XFAILFILE && at_xfail=yes
33861 echo "#                             -*- compilation -*-" >> "$at_group_log"
33862 (
33863   $as_echo "95. sparsemv.at:21: testing ..."
33864   $at_traceon
33865
33866
33867
33868 # Check if sparse files are correctly split between GNU multi-volume
33869 # archives.
33870 # There are two cases: the file can be split within an empty (null) block,
33871 # or within a data block. Since null blocks are not archived, the first
33872 # case means the file is split between two consecutive data blocks.
33873 #
33874
33875
33876
33877   { $at_traceoff
33878 $as_echo "$at_srcdir/sparsemv.at:31:
33879 mkdir gnu
33880 (cd gnu
33881 TEST_TAR_FORMAT=gnu
33882 export TEST_TAR_FORMAT
33883 TAR_OPTIONS=\"-H gnu\"
33884 export TAR_OPTIONS
33885 rm -rf *
33886
33887 exec <&-
33888 genfile --sparse --file sparsefile 0 ABCDEFGHIJK 1M ABCDEFGHI || exit 77
33889 echo \"Pass 1: Split between data blocks\"
33890 echo \"Create archive\"
33891 tar --sparse -c --record-size=512 -M -L6 -f arc.1 -f arc.2 sparsefile || exit 1
33892 echo \"Test archive\"
33893 tar --record-size=512 -t -M -f arc.1 -f arc.2
33894 echo \"Compare archive\"
33895 tar --record-size=512 -d -M -f arc.1 -f arc.2
33896
33897 echo \"Pass 2: Split within a data block\"
33898 genfile --sparse --file sparsefile 0 ABCDEFGHIJ 1M ABCDEFGHI || exit 77
33899 echo \"Create archive\"
33900 tar --sparse -c --record-size=512 -M -L6 -f arc.1 -f arc.2 sparsefile || exit 1
33901 echo \"Test archive\"
33902 tar --record-size=512 -t -M -f arc.1 -f arc.2
33903 echo \"Compare archive\"
33904 tar --record-size=512 -d -M -f arc.1 -f arc.2
33905 )"
33906 echo sparsemv.at:31 >"$at_check_line_file"
33907
33908 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
33909    false; }; then
33910   ( $at_traceon;
33911 mkdir gnu
33912 (cd gnu
33913 TEST_TAR_FORMAT=gnu
33914 export TEST_TAR_FORMAT
33915 TAR_OPTIONS="-H gnu"
33916 export TAR_OPTIONS
33917 rm -rf *
33918
33919 exec <&-
33920 genfile --sparse --file sparsefile 0 ABCDEFGHIJK 1M ABCDEFGHI || exit 77
33921 echo "Pass 1: Split between data blocks"
33922 echo "Create archive"
33923 tar --sparse -c --record-size=512 -M -L6 -f arc.1 -f arc.2 sparsefile || exit 1
33924 echo "Test archive"
33925 tar --record-size=512 -t -M -f arc.1 -f arc.2
33926 echo "Compare archive"
33927 tar --record-size=512 -d -M -f arc.1 -f arc.2
33928
33929 echo "Pass 2: Split within a data block"
33930 genfile --sparse --file sparsefile 0 ABCDEFGHIJ 1M ABCDEFGHI || exit 77
33931 echo "Create archive"
33932 tar --sparse -c --record-size=512 -M -L6 -f arc.1 -f arc.2 sparsefile || exit 1
33933 echo "Test archive"
33934 tar --record-size=512 -t -M -f arc.1 -f arc.2
33935 echo "Compare archive"
33936 tar --record-size=512 -d -M -f arc.1 -f arc.2
33937 ) ) >"$at_stdout" 2>"$at_stder1"
33938   at_func_filter_trace $?
33939 else
33940   ( :;
33941 mkdir gnu
33942 (cd gnu
33943 TEST_TAR_FORMAT=gnu
33944 export TEST_TAR_FORMAT
33945 TAR_OPTIONS="-H gnu"
33946 export TAR_OPTIONS
33947 rm -rf *
33948
33949 exec <&-
33950 genfile --sparse --file sparsefile 0 ABCDEFGHIJK 1M ABCDEFGHI || exit 77
33951 echo "Pass 1: Split between data blocks"
33952 echo "Create archive"
33953 tar --sparse -c --record-size=512 -M -L6 -f arc.1 -f arc.2 sparsefile || exit 1
33954 echo "Test archive"
33955 tar --record-size=512 -t -M -f arc.1 -f arc.2
33956 echo "Compare archive"
33957 tar --record-size=512 -d -M -f arc.1 -f arc.2
33958
33959 echo "Pass 2: Split within a data block"
33960 genfile --sparse --file sparsefile 0 ABCDEFGHIJ 1M ABCDEFGHI || exit 77
33961 echo "Create archive"
33962 tar --sparse -c --record-size=512 -M -L6 -f arc.1 -f arc.2 sparsefile || exit 1
33963 echo "Test archive"
33964 tar --record-size=512 -t -M -f arc.1 -f arc.2
33965 echo "Compare archive"
33966 tar --record-size=512 -d -M -f arc.1 -f arc.2
33967 ) ) >"$at_stdout" 2>"$at_stderr"
33968 fi
33969 at_status=$?
33970 at_failed=false
33971 at_func_diff_devnull "$at_stderr" || at_failed=:
33972 echo >>"$at_stdout"; $as_echo "Pass 1: Split between data blocks
33973 Create archive
33974 Test archive
33975 sparsefile
33976 Compare archive
33977 Pass 2: Split within a data block
33978 Create archive
33979 Test archive
33980 sparsefile
33981 Compare archive
33982 " | \
33983   $at_diff - "$at_stdout" || at_failed=:
33984 at_func_check_status 0 $at_status "$at_srcdir/sparsemv.at:31"
33985
33986 $at_failed && at_func_log_failure
33987 $at_traceon; }
33988
33989               { $at_traceoff
33990 $as_echo "$at_srcdir/sparsemv.at:31:
33991 mkdir oldgnu
33992 (cd oldgnu
33993 TEST_TAR_FORMAT=oldgnu
33994 export TEST_TAR_FORMAT
33995 TAR_OPTIONS=\"-H oldgnu\"
33996 export TAR_OPTIONS
33997 rm -rf *
33998
33999 exec <&-
34000 genfile --sparse --file sparsefile 0 ABCDEFGHIJK 1M ABCDEFGHI || exit 77
34001 echo \"Pass 1: Split between data blocks\"
34002 echo \"Create archive\"
34003 tar --sparse -c --record-size=512 -M -L6 -f arc.1 -f arc.2 sparsefile || exit 1
34004 echo \"Test archive\"
34005 tar --record-size=512 -t -M -f arc.1 -f arc.2
34006 echo \"Compare archive\"
34007 tar --record-size=512 -d -M -f arc.1 -f arc.2
34008
34009 echo \"Pass 2: Split within a data block\"
34010 genfile --sparse --file sparsefile 0 ABCDEFGHIJ 1M ABCDEFGHI || exit 77
34011 echo \"Create archive\"
34012 tar --sparse -c --record-size=512 -M -L6 -f arc.1 -f arc.2 sparsefile || exit 1
34013 echo \"Test archive\"
34014 tar --record-size=512 -t -M -f arc.1 -f arc.2
34015 echo \"Compare archive\"
34016 tar --record-size=512 -d -M -f arc.1 -f arc.2
34017 )"
34018 echo sparsemv.at:31 >"$at_check_line_file"
34019
34020 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
34021    false; }; then
34022   ( $at_traceon;
34023 mkdir oldgnu
34024 (cd oldgnu
34025 TEST_TAR_FORMAT=oldgnu
34026 export TEST_TAR_FORMAT
34027 TAR_OPTIONS="-H oldgnu"
34028 export TAR_OPTIONS
34029 rm -rf *
34030
34031 exec <&-
34032 genfile --sparse --file sparsefile 0 ABCDEFGHIJK 1M ABCDEFGHI || exit 77
34033 echo "Pass 1: Split between data blocks"
34034 echo "Create archive"
34035 tar --sparse -c --record-size=512 -M -L6 -f arc.1 -f arc.2 sparsefile || exit 1
34036 echo "Test archive"
34037 tar --record-size=512 -t -M -f arc.1 -f arc.2
34038 echo "Compare archive"
34039 tar --record-size=512 -d -M -f arc.1 -f arc.2
34040
34041 echo "Pass 2: Split within a data block"
34042 genfile --sparse --file sparsefile 0 ABCDEFGHIJ 1M ABCDEFGHI || exit 77
34043 echo "Create archive"
34044 tar --sparse -c --record-size=512 -M -L6 -f arc.1 -f arc.2 sparsefile || exit 1
34045 echo "Test archive"
34046 tar --record-size=512 -t -M -f arc.1 -f arc.2
34047 echo "Compare archive"
34048 tar --record-size=512 -d -M -f arc.1 -f arc.2
34049 ) ) >"$at_stdout" 2>"$at_stder1"
34050   at_func_filter_trace $?
34051 else
34052   ( :;
34053 mkdir oldgnu
34054 (cd oldgnu
34055 TEST_TAR_FORMAT=oldgnu
34056 export TEST_TAR_FORMAT
34057 TAR_OPTIONS="-H oldgnu"
34058 export TAR_OPTIONS
34059 rm -rf *
34060
34061 exec <&-
34062 genfile --sparse --file sparsefile 0 ABCDEFGHIJK 1M ABCDEFGHI || exit 77
34063 echo "Pass 1: Split between data blocks"
34064 echo "Create archive"
34065 tar --sparse -c --record-size=512 -M -L6 -f arc.1 -f arc.2 sparsefile || exit 1
34066 echo "Test archive"
34067 tar --record-size=512 -t -M -f arc.1 -f arc.2
34068 echo "Compare archive"
34069 tar --record-size=512 -d -M -f arc.1 -f arc.2
34070
34071 echo "Pass 2: Split within a data block"
34072 genfile --sparse --file sparsefile 0 ABCDEFGHIJ 1M ABCDEFGHI || exit 77
34073 echo "Create archive"
34074 tar --sparse -c --record-size=512 -M -L6 -f arc.1 -f arc.2 sparsefile || exit 1
34075 echo "Test archive"
34076 tar --record-size=512 -t -M -f arc.1 -f arc.2
34077 echo "Compare archive"
34078 tar --record-size=512 -d -M -f arc.1 -f arc.2
34079 ) ) >"$at_stdout" 2>"$at_stderr"
34080 fi
34081 at_status=$?
34082 at_failed=false
34083 at_func_diff_devnull "$at_stderr" || at_failed=:
34084 echo >>"$at_stdout"; $as_echo "Pass 1: Split between data blocks
34085 Create archive
34086 Test archive
34087 sparsefile
34088 Compare archive
34089 Pass 2: Split within a data block
34090 Create archive
34091 Test archive
34092 sparsefile
34093 Compare archive
34094 " | \
34095   $at_diff - "$at_stdout" || at_failed=:
34096 at_func_check_status 0 $at_status "$at_srcdir/sparsemv.at:31"
34097
34098 $at_failed && at_func_log_failure
34099 $at_traceon; }
34100
34101
34102
34103
34104   $at_traceoff
34105   $at_times_p && times >"$at_times_file"
34106 ) 5>&1 2>&1 | eval $at_tee_pipe
34107 at_status=`cat "$at_status_file"`
34108 #AT_STOP_95
34109 #AT_START_96
34110 # 96. spmvp00.at:21: sparse files in PAX MV archives, v.0.0
34111 at_setup_line='spmvp00.at:21'
34112 at_desc="sparse files in PAX MV archives, v.0.0"
34113 $at_quiet $as_echo_n " 96: $at_desc         "
34114 at_xfail=no
34115       test -f $XFAILFILE && at_xfail=yes
34116 echo "#                             -*- compilation -*-" >> "$at_group_log"
34117 (
34118   $as_echo "96. spmvp00.at:21: testing ..."
34119   $at_traceon
34120
34121
34122
34123
34124
34125
34126   { $at_traceoff
34127 $as_echo "$at_srcdir/spmvp00.at:24:
34128 mkdir pax
34129 (cd pax
34130 TEST_TAR_FORMAT=pax
34131 export TEST_TAR_FORMAT
34132 TAR_OPTIONS=\"-H pax\"
34133 export TAR_OPTIONS
34134 rm -rf *
34135
34136 exec <&-
34137 genfile --sparse --file sparsefile 0 ABCDEFGHI 1M ABCDEFGHI || exit 77
34138 echo \"Pass 1: Split between data blocks\"
34139 echo \"Create archive\"
34140 tar --sparse --sparse-version=0.0 -c --record-size=512 -M -L6 -f arc.1 -f arc.2 -f arc.3 sparsefile
34141 echo \"Test archive\"
34142 tar -t -M -f arc.1 -f arc.2 -f arc.3
34143 echo \"Compare archive\"
34144 tar -d -M -f arc.1 -f arc.2 -f arc.3
34145
34146 echo \"Pass 2: Split within a data block\"
34147 genfile --sparse --file sparsefile 0 ABCDEFGH 1M ABCDEFGHI || exit 77
34148 echo \"Create archive\"
34149 tar --sparse --sparse-version=0.0 -c --record-size=512 -M -L6 -f arc.1 -f arc.2 -f arc.3 sparsefile
34150 echo \"Test archive\"
34151 tar -t -M -f arc.1 -f arc.2 -f arc.3
34152 echo \"Compare archive\"
34153 tar -d -M -f arc.1 -f arc.2 -f arc.3
34154 )"
34155 echo spmvp00.at:24 >"$at_check_line_file"
34156
34157 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
34158    false; }; then
34159   ( $at_traceon;
34160 mkdir pax
34161 (cd pax
34162 TEST_TAR_FORMAT=pax
34163 export TEST_TAR_FORMAT
34164 TAR_OPTIONS="-H pax"
34165 export TAR_OPTIONS
34166 rm -rf *
34167
34168 exec <&-
34169 genfile --sparse --file sparsefile 0 ABCDEFGHI 1M ABCDEFGHI || exit 77
34170 echo "Pass 1: Split between data blocks"
34171 echo "Create archive"
34172 tar --sparse --sparse-version=0.0 -c --record-size=512 -M -L6 -f arc.1 -f arc.2 -f arc.3 sparsefile
34173 echo "Test archive"
34174 tar -t -M -f arc.1 -f arc.2 -f arc.3
34175 echo "Compare archive"
34176 tar -d -M -f arc.1 -f arc.2 -f arc.3
34177
34178 echo "Pass 2: Split within a data block"
34179 genfile --sparse --file sparsefile 0 ABCDEFGH 1M ABCDEFGHI || exit 77
34180 echo "Create archive"
34181 tar --sparse --sparse-version=0.0 -c --record-size=512 -M -L6 -f arc.1 -f arc.2 -f arc.3 sparsefile
34182 echo "Test archive"
34183 tar -t -M -f arc.1 -f arc.2 -f arc.3
34184 echo "Compare archive"
34185 tar -d -M -f arc.1 -f arc.2 -f arc.3
34186 ) ) >"$at_stdout" 2>"$at_stder1"
34187   at_func_filter_trace $?
34188 else
34189   ( :;
34190 mkdir pax
34191 (cd pax
34192 TEST_TAR_FORMAT=pax
34193 export TEST_TAR_FORMAT
34194 TAR_OPTIONS="-H pax"
34195 export TAR_OPTIONS
34196 rm -rf *
34197
34198 exec <&-
34199 genfile --sparse --file sparsefile 0 ABCDEFGHI 1M ABCDEFGHI || exit 77
34200 echo "Pass 1: Split between data blocks"
34201 echo "Create archive"
34202 tar --sparse --sparse-version=0.0 -c --record-size=512 -M -L6 -f arc.1 -f arc.2 -f arc.3 sparsefile
34203 echo "Test archive"
34204 tar -t -M -f arc.1 -f arc.2 -f arc.3
34205 echo "Compare archive"
34206 tar -d -M -f arc.1 -f arc.2 -f arc.3
34207
34208 echo "Pass 2: Split within a data block"
34209 genfile --sparse --file sparsefile 0 ABCDEFGH 1M ABCDEFGHI || exit 77
34210 echo "Create archive"
34211 tar --sparse --sparse-version=0.0 -c --record-size=512 -M -L6 -f arc.1 -f arc.2 -f arc.3 sparsefile
34212 echo "Test archive"
34213 tar -t -M -f arc.1 -f arc.2 -f arc.3
34214 echo "Compare archive"
34215 tar -d -M -f arc.1 -f arc.2 -f arc.3
34216 ) ) >"$at_stdout" 2>"$at_stderr"
34217 fi
34218 at_status=$?
34219 at_failed=false
34220 at_func_diff_devnull "$at_stderr" || at_failed=:
34221 echo >>"$at_stdout"; $as_echo "Pass 1: Split between data blocks
34222 Create archive
34223 Test archive
34224 sparsefile
34225 Compare archive
34226 Pass 2: Split within a data block
34227 Create archive
34228 Test archive
34229 sparsefile
34230 Compare archive
34231 " | \
34232   $at_diff - "$at_stdout" || at_failed=:
34233 at_func_check_status 0 $at_status "$at_srcdir/spmvp00.at:24"
34234
34235 $at_failed && at_func_log_failure
34236 $at_traceon; }
34237
34238
34239
34240
34241   $at_traceoff
34242   $at_times_p && times >"$at_times_file"
34243 ) 5>&1 2>&1 | eval $at_tee_pipe
34244 at_status=`cat "$at_status_file"`
34245 #AT_STOP_96
34246 #AT_START_97
34247 # 97. spmvp01.at:21: sparse files in PAX MV archives, v.0.1
34248 at_setup_line='spmvp01.at:21'
34249 at_desc="sparse files in PAX MV archives, v.0.1"
34250 $at_quiet $as_echo_n " 97: $at_desc         "
34251 at_xfail=no
34252       test -f $XFAILFILE && at_xfail=yes
34253 echo "#                             -*- compilation -*-" >> "$at_group_log"
34254 (
34255   $as_echo "97. spmvp01.at:21: testing ..."
34256   $at_traceon
34257
34258
34259
34260
34261
34262
34263   { $at_traceoff
34264 $as_echo "$at_srcdir/spmvp01.at:24:
34265 mkdir pax
34266 (cd pax
34267 TEST_TAR_FORMAT=pax
34268 export TEST_TAR_FORMAT
34269 TAR_OPTIONS=\"-H pax\"
34270 export TAR_OPTIONS
34271 rm -rf *
34272
34273 exec <&-
34274 genfile --sparse --file sparsefile 0 ABCDEFGHIJK 1M ABCDEFGHI || exit 77
34275 echo \"Pass 1: Split between data blocks\"
34276 echo \"Create archive\"
34277 tar --sparse --sparse-version=0.1 -c --record-size=512 -M -L6 -f arc.1 -f arc.2 -f arc.3 sparsefile
34278 echo \"Test archive\"
34279 tar -t -M -f arc.1 -f arc.2 -f arc.3
34280 echo \"Compare archive\"
34281 tar -d -M -f arc.1 -f arc.2 -f arc.3
34282
34283 echo \"Pass 2: Split within a data block\"
34284 genfile --sparse --file sparsefile 0 ABCDEFGHIJ 1M ABCDEFGHI || exit 77
34285 echo \"Create archive\"
34286 tar --sparse --sparse-version=0.1 -c --record-size=512 -M -L6 -f arc.1 -f arc.2 -f arc.3 sparsefile
34287 echo \"Test archive\"
34288 tar -t -M -f arc.1 -f arc.2 -f arc.3
34289 echo \"Compare archive\"
34290 tar -d -M -f arc.1 -f arc.2 -f arc.3
34291 )"
34292 echo spmvp01.at:24 >"$at_check_line_file"
34293
34294 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
34295    false; }; then
34296   ( $at_traceon;
34297 mkdir pax
34298 (cd pax
34299 TEST_TAR_FORMAT=pax
34300 export TEST_TAR_FORMAT
34301 TAR_OPTIONS="-H pax"
34302 export TAR_OPTIONS
34303 rm -rf *
34304
34305 exec <&-
34306 genfile --sparse --file sparsefile 0 ABCDEFGHIJK 1M ABCDEFGHI || exit 77
34307 echo "Pass 1: Split between data blocks"
34308 echo "Create archive"
34309 tar --sparse --sparse-version=0.1 -c --record-size=512 -M -L6 -f arc.1 -f arc.2 -f arc.3 sparsefile
34310 echo "Test archive"
34311 tar -t -M -f arc.1 -f arc.2 -f arc.3
34312 echo "Compare archive"
34313 tar -d -M -f arc.1 -f arc.2 -f arc.3
34314
34315 echo "Pass 2: Split within a data block"
34316 genfile --sparse --file sparsefile 0 ABCDEFGHIJ 1M ABCDEFGHI || exit 77
34317 echo "Create archive"
34318 tar --sparse --sparse-version=0.1 -c --record-size=512 -M -L6 -f arc.1 -f arc.2 -f arc.3 sparsefile
34319 echo "Test archive"
34320 tar -t -M -f arc.1 -f arc.2 -f arc.3
34321 echo "Compare archive"
34322 tar -d -M -f arc.1 -f arc.2 -f arc.3
34323 ) ) >"$at_stdout" 2>"$at_stder1"
34324   at_func_filter_trace $?
34325 else
34326   ( :;
34327 mkdir pax
34328 (cd pax
34329 TEST_TAR_FORMAT=pax
34330 export TEST_TAR_FORMAT
34331 TAR_OPTIONS="-H pax"
34332 export TAR_OPTIONS
34333 rm -rf *
34334
34335 exec <&-
34336 genfile --sparse --file sparsefile 0 ABCDEFGHIJK 1M ABCDEFGHI || exit 77
34337 echo "Pass 1: Split between data blocks"
34338 echo "Create archive"
34339 tar --sparse --sparse-version=0.1 -c --record-size=512 -M -L6 -f arc.1 -f arc.2 -f arc.3 sparsefile
34340 echo "Test archive"
34341 tar -t -M -f arc.1 -f arc.2 -f arc.3
34342 echo "Compare archive"
34343 tar -d -M -f arc.1 -f arc.2 -f arc.3
34344
34345 echo "Pass 2: Split within a data block"
34346 genfile --sparse --file sparsefile 0 ABCDEFGHIJ 1M ABCDEFGHI || exit 77
34347 echo "Create archive"
34348 tar --sparse --sparse-version=0.1 -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 ) ) >"$at_stdout" 2>"$at_stderr"
34354 fi
34355 at_status=$?
34356 at_failed=false
34357 at_func_diff_devnull "$at_stderr" || at_failed=:
34358 echo >>"$at_stdout"; $as_echo "Pass 1: Split between data blocks
34359 Create archive
34360 Test archive
34361 sparsefile
34362 Compare archive
34363 Pass 2: Split within a data block
34364 Create archive
34365 Test archive
34366 sparsefile
34367 Compare archive
34368 " | \
34369   $at_diff - "$at_stdout" || at_failed=:
34370 at_func_check_status 0 $at_status "$at_srcdir/spmvp01.at:24"
34371
34372 $at_failed && at_func_log_failure
34373 $at_traceon; }
34374
34375
34376
34377
34378   $at_traceoff
34379   $at_times_p && times >"$at_times_file"
34380 ) 5>&1 2>&1 | eval $at_tee_pipe
34381 at_status=`cat "$at_status_file"`
34382 #AT_STOP_97
34383 #AT_START_98
34384 # 98. spmvp10.at:21: sparse files in PAX MV archives, v.1.0
34385 at_setup_line='spmvp10.at:21'
34386 at_desc="sparse files in PAX MV archives, v.1.0"
34387 $at_quiet $as_echo_n " 98: $at_desc         "
34388 at_xfail=no
34389       test -f $XFAILFILE && at_xfail=yes
34390 echo "#                             -*- compilation -*-" >> "$at_group_log"
34391 (
34392   $as_echo "98. spmvp10.at:21: testing ..."
34393   $at_traceon
34394
34395
34396
34397
34398
34399
34400   { $at_traceoff
34401 $as_echo "$at_srcdir/spmvp10.at:24:
34402 mkdir pax
34403 (cd pax
34404 TEST_TAR_FORMAT=pax
34405 export TEST_TAR_FORMAT
34406 TAR_OPTIONS=\"-H pax\"
34407 export TAR_OPTIONS
34408 rm -rf *
34409
34410 exec <&-
34411 genfile --sparse --file sparsefile 0 ABCDEFGH 1M ABCDEFGHI || exit 77
34412 echo \"Pass 1: Split between data blocks\"
34413 echo \"Create archive\"
34414 tar --sparse --sparse-version=1.0 -c --record-size=512 -M -L6 -f arc.1 -f arc.2 -f arc.3 sparsefile
34415 echo \"Test archive\"
34416 tar -t -M -f arc.1 -f arc.2 -f arc.3
34417 echo \"Compare archive\"
34418 tar -d -M -f arc.1 -f arc.2 -f arc.3
34419
34420 echo \"Pass 2: Split within a data block\"
34421 genfile --sparse --file sparsefile 0 ABCDEFG 1M ABCDEFGHI || exit 77
34422 echo \"Create archive\"
34423 tar --sparse --sparse-version=1.0 -c --record-size=512 -M -L6 -f arc.1 -f arc.2 -f arc.3 sparsefile
34424 echo \"Test archive\"
34425 tar -t -M -f arc.1 -f arc.2 -f arc.3
34426 echo \"Compare archive\"
34427 tar -d -M -f arc.1 -f arc.2 -f arc.3
34428 )"
34429 echo spmvp10.at:24 >"$at_check_line_file"
34430
34431 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
34432    false; }; then
34433   ( $at_traceon;
34434 mkdir pax
34435 (cd pax
34436 TEST_TAR_FORMAT=pax
34437 export TEST_TAR_FORMAT
34438 TAR_OPTIONS="-H pax"
34439 export TAR_OPTIONS
34440 rm -rf *
34441
34442 exec <&-
34443 genfile --sparse --file sparsefile 0 ABCDEFGH 1M ABCDEFGHI || exit 77
34444 echo "Pass 1: Split between data blocks"
34445 echo "Create archive"
34446 tar --sparse --sparse-version=1.0 -c --record-size=512 -M -L6 -f arc.1 -f arc.2 -f arc.3 sparsefile
34447 echo "Test archive"
34448 tar -t -M -f arc.1 -f arc.2 -f arc.3
34449 echo "Compare archive"
34450 tar -d -M -f arc.1 -f arc.2 -f arc.3
34451
34452 echo "Pass 2: Split within a data block"
34453 genfile --sparse --file sparsefile 0 ABCDEFG 1M ABCDEFGHI || exit 77
34454 echo "Create archive"
34455 tar --sparse --sparse-version=1.0 -c --record-size=512 -M -L6 -f arc.1 -f arc.2 -f arc.3 sparsefile
34456 echo "Test archive"
34457 tar -t -M -f arc.1 -f arc.2 -f arc.3
34458 echo "Compare archive"
34459 tar -d -M -f arc.1 -f arc.2 -f arc.3
34460 ) ) >"$at_stdout" 2>"$at_stder1"
34461   at_func_filter_trace $?
34462 else
34463   ( :;
34464 mkdir pax
34465 (cd pax
34466 TEST_TAR_FORMAT=pax
34467 export TEST_TAR_FORMAT
34468 TAR_OPTIONS="-H pax"
34469 export TAR_OPTIONS
34470 rm -rf *
34471
34472 exec <&-
34473 genfile --sparse --file sparsefile 0 ABCDEFGH 1M ABCDEFGHI || exit 77
34474 echo "Pass 1: Split between data blocks"
34475 echo "Create archive"
34476 tar --sparse --sparse-version=1.0 -c --record-size=512 -M -L6 -f arc.1 -f arc.2 -f arc.3 sparsefile
34477 echo "Test archive"
34478 tar -t -M -f arc.1 -f arc.2 -f arc.3
34479 echo "Compare archive"
34480 tar -d -M -f arc.1 -f arc.2 -f arc.3
34481
34482 echo "Pass 2: Split within a data block"
34483 genfile --sparse --file sparsefile 0 ABCDEFG 1M ABCDEFGHI || exit 77
34484 echo "Create archive"
34485 tar --sparse --sparse-version=1.0 -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 ) ) >"$at_stdout" 2>"$at_stderr"
34491 fi
34492 at_status=$?
34493 at_failed=false
34494 at_func_diff_devnull "$at_stderr" || at_failed=:
34495 echo >>"$at_stdout"; $as_echo "Pass 1: Split between data blocks
34496 Create archive
34497 Test archive
34498 sparsefile
34499 Compare archive
34500 Pass 2: Split within a data block
34501 Create archive
34502 Test archive
34503 sparsefile
34504 Compare archive
34505 " | \
34506   $at_diff - "$at_stdout" || at_failed=:
34507 at_func_check_status 0 $at_status "$at_srcdir/spmvp10.at:24"
34508
34509 $at_failed && at_func_log_failure
34510 $at_traceon; }
34511
34512
34513
34514
34515   $at_traceoff
34516   $at_times_p && times >"$at_times_file"
34517 ) 5>&1 2>&1 | eval $at_tee_pipe
34518 at_status=`cat "$at_status_file"`
34519 #AT_STOP_98
34520 #AT_START_99
34521 # 99. update.at:28: update unchanged directories
34522 at_setup_line='update.at:28'
34523 at_desc="update unchanged directories"
34524 $at_quiet $as_echo_n " 99: $at_desc                   "
34525 at_xfail=no
34526       test -f $XFAILFILE && at_xfail=yes
34527 echo "#                             -*- compilation -*-" >> "$at_group_log"
34528 (
34529   $as_echo "99. update.at:28: testing ..."
34530   $at_traceon
34531
34532
34533
34534
34535
34536   { $at_traceoff
34537 $as_echo "$at_srcdir/update.at:31:
34538 mkdir v7
34539 (cd v7
34540 TEST_TAR_FORMAT=v7
34541 export TEST_TAR_FORMAT
34542 TAR_OPTIONS=\"-H v7\"
34543 export TAR_OPTIONS
34544 rm -rf *
34545
34546
34547 test -z "`sort < /dev/null 2>&1`" || exit 77
34548
34549 mkdir directory
34550 genfile --length 10240 --pattern zeros --file directory/file1
34551 genfile --length 10240 --pattern default --file directory/file2
34552
34553 tar cf archive directory || exit 1
34554 echo separator
34555 tar uf archive directory || exit 1
34556 echo separator
34557 tar tf archive | sort || exit 1
34558 )"
34559 echo update.at:31 >"$at_check_line_file"
34560
34561 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
34562    false; }; then
34563   ( $at_traceon;
34564 mkdir v7
34565 (cd v7
34566 TEST_TAR_FORMAT=v7
34567 export TEST_TAR_FORMAT
34568 TAR_OPTIONS="-H v7"
34569 export TAR_OPTIONS
34570 rm -rf *
34571
34572
34573 test -z "`sort < /dev/null 2>&1`" || exit 77
34574
34575 mkdir directory
34576 genfile --length 10240 --pattern zeros --file directory/file1
34577 genfile --length 10240 --pattern default --file directory/file2
34578
34579 tar cf archive directory || exit 1
34580 echo separator
34581 tar uf archive directory || exit 1
34582 echo separator
34583 tar tf archive | sort || exit 1
34584 ) ) >"$at_stdout" 2>"$at_stder1"
34585   at_func_filter_trace $?
34586 else
34587   ( :;
34588 mkdir v7
34589 (cd v7
34590 TEST_TAR_FORMAT=v7
34591 export TEST_TAR_FORMAT
34592 TAR_OPTIONS="-H v7"
34593 export TAR_OPTIONS
34594 rm -rf *
34595
34596
34597 test -z "`sort < /dev/null 2>&1`" || exit 77
34598
34599 mkdir directory
34600 genfile --length 10240 --pattern zeros --file directory/file1
34601 genfile --length 10240 --pattern default --file directory/file2
34602
34603 tar cf archive directory || exit 1
34604 echo separator
34605 tar uf archive directory || exit 1
34606 echo separator
34607 tar tf archive | sort || exit 1
34608 ) ) >"$at_stdout" 2>"$at_stderr"
34609 fi
34610 at_status=$?
34611 at_failed=false
34612 at_func_diff_devnull "$at_stderr" || at_failed=:
34613 echo >>"$at_stdout"; $as_echo "separator
34614 separator
34615 directory/
34616 directory/file1
34617 directory/file2
34618 " | \
34619   $at_diff - "$at_stdout" || at_failed=:
34620 at_func_check_status 0 $at_status "$at_srcdir/update.at:31"
34621
34622 $at_failed && at_func_log_failure
34623 $at_traceon; }
34624
34625               { $at_traceoff
34626 $as_echo "$at_srcdir/update.at:31:
34627 mkdir oldgnu
34628 (cd oldgnu
34629 TEST_TAR_FORMAT=oldgnu
34630 export TEST_TAR_FORMAT
34631 TAR_OPTIONS=\"-H oldgnu\"
34632 export TAR_OPTIONS
34633 rm -rf *
34634
34635
34636 test -z "`sort < /dev/null 2>&1`" || exit 77
34637
34638 mkdir directory
34639 genfile --length 10240 --pattern zeros --file directory/file1
34640 genfile --length 10240 --pattern default --file directory/file2
34641
34642 tar cf archive directory || exit 1
34643 echo separator
34644 tar uf archive directory || exit 1
34645 echo separator
34646 tar tf archive | sort || exit 1
34647 )"
34648 echo update.at:31 >"$at_check_line_file"
34649
34650 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
34651    false; }; then
34652   ( $at_traceon;
34653 mkdir oldgnu
34654 (cd oldgnu
34655 TEST_TAR_FORMAT=oldgnu
34656 export TEST_TAR_FORMAT
34657 TAR_OPTIONS="-H oldgnu"
34658 export TAR_OPTIONS
34659 rm -rf *
34660
34661
34662 test -z "`sort < /dev/null 2>&1`" || exit 77
34663
34664 mkdir directory
34665 genfile --length 10240 --pattern zeros --file directory/file1
34666 genfile --length 10240 --pattern default --file directory/file2
34667
34668 tar cf archive directory || exit 1
34669 echo separator
34670 tar uf archive directory || exit 1
34671 echo separator
34672 tar tf archive | sort || exit 1
34673 ) ) >"$at_stdout" 2>"$at_stder1"
34674   at_func_filter_trace $?
34675 else
34676   ( :;
34677 mkdir oldgnu
34678 (cd oldgnu
34679 TEST_TAR_FORMAT=oldgnu
34680 export TEST_TAR_FORMAT
34681 TAR_OPTIONS="-H oldgnu"
34682 export TAR_OPTIONS
34683 rm -rf *
34684
34685
34686 test -z "`sort < /dev/null 2>&1`" || exit 77
34687
34688 mkdir directory
34689 genfile --length 10240 --pattern zeros --file directory/file1
34690 genfile --length 10240 --pattern default --file directory/file2
34691
34692 tar cf archive directory || exit 1
34693 echo separator
34694 tar uf archive directory || exit 1
34695 echo separator
34696 tar tf archive | sort || exit 1
34697 ) ) >"$at_stdout" 2>"$at_stderr"
34698 fi
34699 at_status=$?
34700 at_failed=false
34701 at_func_diff_devnull "$at_stderr" || at_failed=:
34702 echo >>"$at_stdout"; $as_echo "separator
34703 separator
34704 directory/
34705 directory/file1
34706 directory/file2
34707 " | \
34708   $at_diff - "$at_stdout" || at_failed=:
34709 at_func_check_status 0 $at_status "$at_srcdir/update.at:31"
34710
34711 $at_failed && at_func_log_failure
34712 $at_traceon; }
34713
34714               { $at_traceoff
34715 $as_echo "$at_srcdir/update.at:31:
34716 mkdir ustar
34717 (cd ustar
34718 TEST_TAR_FORMAT=ustar
34719 export TEST_TAR_FORMAT
34720 TAR_OPTIONS=\"-H ustar\"
34721 export TAR_OPTIONS
34722 rm -rf *
34723
34724
34725 test -z "`sort < /dev/null 2>&1`" || exit 77
34726
34727 mkdir directory
34728 genfile --length 10240 --pattern zeros --file directory/file1
34729 genfile --length 10240 --pattern default --file directory/file2
34730
34731 tar cf archive directory || exit 1
34732 echo separator
34733 tar uf archive directory || exit 1
34734 echo separator
34735 tar tf archive | sort || exit 1
34736 )"
34737 echo update.at:31 >"$at_check_line_file"
34738
34739 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
34740    false; }; then
34741   ( $at_traceon;
34742 mkdir ustar
34743 (cd ustar
34744 TEST_TAR_FORMAT=ustar
34745 export TEST_TAR_FORMAT
34746 TAR_OPTIONS="-H ustar"
34747 export TAR_OPTIONS
34748 rm -rf *
34749
34750
34751 test -z "`sort < /dev/null 2>&1`" || exit 77
34752
34753 mkdir directory
34754 genfile --length 10240 --pattern zeros --file directory/file1
34755 genfile --length 10240 --pattern default --file directory/file2
34756
34757 tar cf archive directory || exit 1
34758 echo separator
34759 tar uf archive directory || exit 1
34760 echo separator
34761 tar tf archive | sort || exit 1
34762 ) ) >"$at_stdout" 2>"$at_stder1"
34763   at_func_filter_trace $?
34764 else
34765   ( :;
34766 mkdir ustar
34767 (cd ustar
34768 TEST_TAR_FORMAT=ustar
34769 export TEST_TAR_FORMAT
34770 TAR_OPTIONS="-H ustar"
34771 export TAR_OPTIONS
34772 rm -rf *
34773
34774
34775 test -z "`sort < /dev/null 2>&1`" || exit 77
34776
34777 mkdir directory
34778 genfile --length 10240 --pattern zeros --file directory/file1
34779 genfile --length 10240 --pattern default --file directory/file2
34780
34781 tar cf archive directory || exit 1
34782 echo separator
34783 tar uf archive directory || exit 1
34784 echo separator
34785 tar tf archive | sort || exit 1
34786 ) ) >"$at_stdout" 2>"$at_stderr"
34787 fi
34788 at_status=$?
34789 at_failed=false
34790 at_func_diff_devnull "$at_stderr" || at_failed=:
34791 echo >>"$at_stdout"; $as_echo "separator
34792 separator
34793 directory/
34794 directory/file1
34795 directory/file2
34796 " | \
34797   $at_diff - "$at_stdout" || at_failed=:
34798 at_func_check_status 0 $at_status "$at_srcdir/update.at:31"
34799
34800 $at_failed && at_func_log_failure
34801 $at_traceon; }
34802
34803               { $at_traceoff
34804 $as_echo "$at_srcdir/update.at:31:
34805 mkdir posix
34806 (cd posix
34807 TEST_TAR_FORMAT=posix
34808 export TEST_TAR_FORMAT
34809 TAR_OPTIONS=\"-H posix\"
34810 export TAR_OPTIONS
34811 rm -rf *
34812
34813
34814 test -z "`sort < /dev/null 2>&1`" || exit 77
34815
34816 mkdir directory
34817 genfile --length 10240 --pattern zeros --file directory/file1
34818 genfile --length 10240 --pattern default --file directory/file2
34819
34820 tar cf archive directory || exit 1
34821 echo separator
34822 tar uf archive directory || exit 1
34823 echo separator
34824 tar tf archive | sort || exit 1
34825 )"
34826 echo update.at:31 >"$at_check_line_file"
34827
34828 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
34829    false; }; then
34830   ( $at_traceon;
34831 mkdir posix
34832 (cd posix
34833 TEST_TAR_FORMAT=posix
34834 export TEST_TAR_FORMAT
34835 TAR_OPTIONS="-H posix"
34836 export TAR_OPTIONS
34837 rm -rf *
34838
34839
34840 test -z "`sort < /dev/null 2>&1`" || exit 77
34841
34842 mkdir directory
34843 genfile --length 10240 --pattern zeros --file directory/file1
34844 genfile --length 10240 --pattern default --file directory/file2
34845
34846 tar cf archive directory || exit 1
34847 echo separator
34848 tar uf archive directory || exit 1
34849 echo separator
34850 tar tf archive | sort || exit 1
34851 ) ) >"$at_stdout" 2>"$at_stder1"
34852   at_func_filter_trace $?
34853 else
34854   ( :;
34855 mkdir posix
34856 (cd posix
34857 TEST_TAR_FORMAT=posix
34858 export TEST_TAR_FORMAT
34859 TAR_OPTIONS="-H posix"
34860 export TAR_OPTIONS
34861 rm -rf *
34862
34863
34864 test -z "`sort < /dev/null 2>&1`" || exit 77
34865
34866 mkdir directory
34867 genfile --length 10240 --pattern zeros --file directory/file1
34868 genfile --length 10240 --pattern default --file directory/file2
34869
34870 tar cf archive directory || exit 1
34871 echo separator
34872 tar uf archive directory || exit 1
34873 echo separator
34874 tar tf archive | sort || exit 1
34875 ) ) >"$at_stdout" 2>"$at_stderr"
34876 fi
34877 at_status=$?
34878 at_failed=false
34879 at_func_diff_devnull "$at_stderr" || at_failed=:
34880 echo >>"$at_stdout"; $as_echo "separator
34881 separator
34882 directory/
34883 directory/file1
34884 directory/file2
34885 " | \
34886   $at_diff - "$at_stdout" || at_failed=:
34887 at_func_check_status 0 $at_status "$at_srcdir/update.at:31"
34888
34889 $at_failed && at_func_log_failure
34890 $at_traceon; }
34891
34892               { $at_traceoff
34893 $as_echo "$at_srcdir/update.at:31:
34894 mkdir gnu
34895 (cd gnu
34896 TEST_TAR_FORMAT=gnu
34897 export TEST_TAR_FORMAT
34898 TAR_OPTIONS=\"-H gnu\"
34899 export TAR_OPTIONS
34900 rm -rf *
34901
34902
34903 test -z "`sort < /dev/null 2>&1`" || exit 77
34904
34905 mkdir directory
34906 genfile --length 10240 --pattern zeros --file directory/file1
34907 genfile --length 10240 --pattern default --file directory/file2
34908
34909 tar cf archive directory || exit 1
34910 echo separator
34911 tar uf archive directory || exit 1
34912 echo separator
34913 tar tf archive | sort || exit 1
34914 )"
34915 echo update.at:31 >"$at_check_line_file"
34916
34917 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
34918    false; }; then
34919   ( $at_traceon;
34920 mkdir gnu
34921 (cd gnu
34922 TEST_TAR_FORMAT=gnu
34923 export TEST_TAR_FORMAT
34924 TAR_OPTIONS="-H gnu"
34925 export TAR_OPTIONS
34926 rm -rf *
34927
34928
34929 test -z "`sort < /dev/null 2>&1`" || exit 77
34930
34931 mkdir directory
34932 genfile --length 10240 --pattern zeros --file directory/file1
34933 genfile --length 10240 --pattern default --file directory/file2
34934
34935 tar cf archive directory || exit 1
34936 echo separator
34937 tar uf archive directory || exit 1
34938 echo separator
34939 tar tf archive | sort || exit 1
34940 ) ) >"$at_stdout" 2>"$at_stder1"
34941   at_func_filter_trace $?
34942 else
34943   ( :;
34944 mkdir gnu
34945 (cd gnu
34946 TEST_TAR_FORMAT=gnu
34947 export TEST_TAR_FORMAT
34948 TAR_OPTIONS="-H gnu"
34949 export TAR_OPTIONS
34950 rm -rf *
34951
34952
34953 test -z "`sort < /dev/null 2>&1`" || exit 77
34954
34955 mkdir directory
34956 genfile --length 10240 --pattern zeros --file directory/file1
34957 genfile --length 10240 --pattern default --file directory/file2
34958
34959 tar cf archive directory || exit 1
34960 echo separator
34961 tar uf archive directory || exit 1
34962 echo separator
34963 tar tf archive | sort || exit 1
34964 ) ) >"$at_stdout" 2>"$at_stderr"
34965 fi
34966 at_status=$?
34967 at_failed=false
34968 at_func_diff_devnull "$at_stderr" || at_failed=:
34969 echo >>"$at_stdout"; $as_echo "separator
34970 separator
34971 directory/
34972 directory/file1
34973 directory/file2
34974 " | \
34975   $at_diff - "$at_stdout" || at_failed=:
34976 at_func_check_status 0 $at_status "$at_srcdir/update.at:31"
34977
34978 $at_failed && at_func_log_failure
34979 $at_traceon; }
34980
34981
34982
34983
34984   $at_traceoff
34985   $at_times_p && times >"$at_times_file"
34986 ) 5>&1 2>&1 | eval $at_tee_pipe
34987 at_status=`cat "$at_status_file"`
34988 #AT_STOP_99
34989 #AT_START_100
34990 # 100. update01.at:29: update directories
34991 at_setup_line='update01.at:29'
34992 at_desc="update directories"
34993 $at_quiet $as_echo_n "100: $at_desc                             "
34994 at_xfail=no
34995       test -f $XFAILFILE && at_xfail=yes
34996 echo "#                             -*- compilation -*-" >> "$at_group_log"
34997 (
34998   $as_echo "100. update01.at:29: testing ..."
34999   $at_traceon
35000
35001
35002
35003
35004
35005   { $at_traceoff
35006 $as_echo "$at_srcdir/update01.at:32:
35007 mkdir v7
35008 (cd v7
35009 TEST_TAR_FORMAT=v7
35010 export TEST_TAR_FORMAT
35011 TAR_OPTIONS=\"-H v7\"
35012 export TAR_OPTIONS
35013 rm -rf *
35014
35015
35016 test -z "`sort < /dev/null 2>&1`" || exit 77
35017
35018 mkdir a
35019 genfile --file a/b
35020
35021 tar cf arc a
35022
35023 echo \"separator\"
35024
35025 sleep 2
35026 genfile --file a/c
35027
35028 tar ufv arc a
35029 echo \"separator\"
35030 tar tf arc | sort || exit 1
35031 )"
35032 echo update01.at:32 >"$at_check_line_file"
35033
35034 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
35035    false; }; then
35036   ( $at_traceon;
35037 mkdir v7
35038 (cd v7
35039 TEST_TAR_FORMAT=v7
35040 export TEST_TAR_FORMAT
35041 TAR_OPTIONS="-H v7"
35042 export TAR_OPTIONS
35043 rm -rf *
35044
35045
35046 test -z "`sort < /dev/null 2>&1`" || exit 77
35047
35048 mkdir a
35049 genfile --file a/b
35050
35051 tar cf arc a
35052
35053 echo "separator"
35054
35055 sleep 2
35056 genfile --file a/c
35057
35058 tar ufv arc a
35059 echo "separator"
35060 tar tf arc | sort || exit 1
35061 ) ) >"$at_stdout" 2>"$at_stder1"
35062   at_func_filter_trace $?
35063 else
35064   ( :;
35065 mkdir v7
35066 (cd v7
35067 TEST_TAR_FORMAT=v7
35068 export TEST_TAR_FORMAT
35069 TAR_OPTIONS="-H v7"
35070 export TAR_OPTIONS
35071 rm -rf *
35072
35073
35074 test -z "`sort < /dev/null 2>&1`" || exit 77
35075
35076 mkdir a
35077 genfile --file a/b
35078
35079 tar cf arc a
35080
35081 echo "separator"
35082
35083 sleep 2
35084 genfile --file a/c
35085
35086 tar ufv arc a
35087 echo "separator"
35088 tar tf arc | sort || exit 1
35089 ) ) >"$at_stdout" 2>"$at_stderr"
35090 fi
35091 at_status=$?
35092 at_failed=false
35093 at_func_diff_devnull "$at_stderr" || at_failed=:
35094 echo >>"$at_stdout"; $as_echo "separator
35095 a/c
35096 separator
35097 a/
35098 a/b
35099 a/c
35100 " | \
35101   $at_diff - "$at_stdout" || at_failed=:
35102 at_func_check_status 0 $at_status "$at_srcdir/update01.at:32"
35103
35104 $at_failed && at_func_log_failure
35105 $at_traceon; }
35106
35107               { $at_traceoff
35108 $as_echo "$at_srcdir/update01.at:32:
35109 mkdir oldgnu
35110 (cd oldgnu
35111 TEST_TAR_FORMAT=oldgnu
35112 export TEST_TAR_FORMAT
35113 TAR_OPTIONS=\"-H oldgnu\"
35114 export TAR_OPTIONS
35115 rm -rf *
35116
35117
35118 test -z "`sort < /dev/null 2>&1`" || exit 77
35119
35120 mkdir a
35121 genfile --file a/b
35122
35123 tar cf arc a
35124
35125 echo \"separator\"
35126
35127 sleep 2
35128 genfile --file a/c
35129
35130 tar ufv arc a
35131 echo \"separator\"
35132 tar tf arc | sort || exit 1
35133 )"
35134 echo update01.at:32 >"$at_check_line_file"
35135
35136 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
35137    false; }; then
35138   ( $at_traceon;
35139 mkdir oldgnu
35140 (cd oldgnu
35141 TEST_TAR_FORMAT=oldgnu
35142 export TEST_TAR_FORMAT
35143 TAR_OPTIONS="-H oldgnu"
35144 export TAR_OPTIONS
35145 rm -rf *
35146
35147
35148 test -z "`sort < /dev/null 2>&1`" || exit 77
35149
35150 mkdir a
35151 genfile --file a/b
35152
35153 tar cf arc a
35154
35155 echo "separator"
35156
35157 sleep 2
35158 genfile --file a/c
35159
35160 tar ufv arc a
35161 echo "separator"
35162 tar tf arc | sort || exit 1
35163 ) ) >"$at_stdout" 2>"$at_stder1"
35164   at_func_filter_trace $?
35165 else
35166   ( :;
35167 mkdir oldgnu
35168 (cd oldgnu
35169 TEST_TAR_FORMAT=oldgnu
35170 export TEST_TAR_FORMAT
35171 TAR_OPTIONS="-H oldgnu"
35172 export TAR_OPTIONS
35173 rm -rf *
35174
35175
35176 test -z "`sort < /dev/null 2>&1`" || exit 77
35177
35178 mkdir a
35179 genfile --file a/b
35180
35181 tar cf arc a
35182
35183 echo "separator"
35184
35185 sleep 2
35186 genfile --file a/c
35187
35188 tar ufv arc a
35189 echo "separator"
35190 tar tf arc | sort || exit 1
35191 ) ) >"$at_stdout" 2>"$at_stderr"
35192 fi
35193 at_status=$?
35194 at_failed=false
35195 at_func_diff_devnull "$at_stderr" || at_failed=:
35196 echo >>"$at_stdout"; $as_echo "separator
35197 a/c
35198 separator
35199 a/
35200 a/b
35201 a/c
35202 " | \
35203   $at_diff - "$at_stdout" || at_failed=:
35204 at_func_check_status 0 $at_status "$at_srcdir/update01.at:32"
35205
35206 $at_failed && at_func_log_failure
35207 $at_traceon; }
35208
35209               { $at_traceoff
35210 $as_echo "$at_srcdir/update01.at:32:
35211 mkdir ustar
35212 (cd ustar
35213 TEST_TAR_FORMAT=ustar
35214 export TEST_TAR_FORMAT
35215 TAR_OPTIONS=\"-H ustar\"
35216 export TAR_OPTIONS
35217 rm -rf *
35218
35219
35220 test -z "`sort < /dev/null 2>&1`" || exit 77
35221
35222 mkdir a
35223 genfile --file a/b
35224
35225 tar cf arc a
35226
35227 echo \"separator\"
35228
35229 sleep 2
35230 genfile --file a/c
35231
35232 tar ufv arc a
35233 echo \"separator\"
35234 tar tf arc | sort || exit 1
35235 )"
35236 echo update01.at:32 >"$at_check_line_file"
35237
35238 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
35239    false; }; then
35240   ( $at_traceon;
35241 mkdir ustar
35242 (cd ustar
35243 TEST_TAR_FORMAT=ustar
35244 export TEST_TAR_FORMAT
35245 TAR_OPTIONS="-H ustar"
35246 export TAR_OPTIONS
35247 rm -rf *
35248
35249
35250 test -z "`sort < /dev/null 2>&1`" || exit 77
35251
35252 mkdir a
35253 genfile --file a/b
35254
35255 tar cf arc a
35256
35257 echo "separator"
35258
35259 sleep 2
35260 genfile --file a/c
35261
35262 tar ufv arc a
35263 echo "separator"
35264 tar tf arc | sort || exit 1
35265 ) ) >"$at_stdout" 2>"$at_stder1"
35266   at_func_filter_trace $?
35267 else
35268   ( :;
35269 mkdir ustar
35270 (cd ustar
35271 TEST_TAR_FORMAT=ustar
35272 export TEST_TAR_FORMAT
35273 TAR_OPTIONS="-H ustar"
35274 export TAR_OPTIONS
35275 rm -rf *
35276
35277
35278 test -z "`sort < /dev/null 2>&1`" || exit 77
35279
35280 mkdir a
35281 genfile --file a/b
35282
35283 tar cf arc a
35284
35285 echo "separator"
35286
35287 sleep 2
35288 genfile --file a/c
35289
35290 tar ufv arc a
35291 echo "separator"
35292 tar tf arc | sort || exit 1
35293 ) ) >"$at_stdout" 2>"$at_stderr"
35294 fi
35295 at_status=$?
35296 at_failed=false
35297 at_func_diff_devnull "$at_stderr" || at_failed=:
35298 echo >>"$at_stdout"; $as_echo "separator
35299 a/c
35300 separator
35301 a/
35302 a/b
35303 a/c
35304 " | \
35305   $at_diff - "$at_stdout" || at_failed=:
35306 at_func_check_status 0 $at_status "$at_srcdir/update01.at:32"
35307
35308 $at_failed && at_func_log_failure
35309 $at_traceon; }
35310
35311               { $at_traceoff
35312 $as_echo "$at_srcdir/update01.at:32:
35313 mkdir posix
35314 (cd posix
35315 TEST_TAR_FORMAT=posix
35316 export TEST_TAR_FORMAT
35317 TAR_OPTIONS=\"-H posix\"
35318 export TAR_OPTIONS
35319 rm -rf *
35320
35321
35322 test -z "`sort < /dev/null 2>&1`" || exit 77
35323
35324 mkdir a
35325 genfile --file a/b
35326
35327 tar cf arc a
35328
35329 echo \"separator\"
35330
35331 sleep 2
35332 genfile --file a/c
35333
35334 tar ufv arc a
35335 echo \"separator\"
35336 tar tf arc | sort || exit 1
35337 )"
35338 echo update01.at:32 >"$at_check_line_file"
35339
35340 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
35341    false; }; then
35342   ( $at_traceon;
35343 mkdir posix
35344 (cd posix
35345 TEST_TAR_FORMAT=posix
35346 export TEST_TAR_FORMAT
35347 TAR_OPTIONS="-H posix"
35348 export TAR_OPTIONS
35349 rm -rf *
35350
35351
35352 test -z "`sort < /dev/null 2>&1`" || exit 77
35353
35354 mkdir a
35355 genfile --file a/b
35356
35357 tar cf arc a
35358
35359 echo "separator"
35360
35361 sleep 2
35362 genfile --file a/c
35363
35364 tar ufv arc a
35365 echo "separator"
35366 tar tf arc | sort || exit 1
35367 ) ) >"$at_stdout" 2>"$at_stder1"
35368   at_func_filter_trace $?
35369 else
35370   ( :;
35371 mkdir posix
35372 (cd posix
35373 TEST_TAR_FORMAT=posix
35374 export TEST_TAR_FORMAT
35375 TAR_OPTIONS="-H posix"
35376 export TAR_OPTIONS
35377 rm -rf *
35378
35379
35380 test -z "`sort < /dev/null 2>&1`" || exit 77
35381
35382 mkdir a
35383 genfile --file a/b
35384
35385 tar cf arc a
35386
35387 echo "separator"
35388
35389 sleep 2
35390 genfile --file a/c
35391
35392 tar ufv arc a
35393 echo "separator"
35394 tar tf arc | sort || exit 1
35395 ) ) >"$at_stdout" 2>"$at_stderr"
35396 fi
35397 at_status=$?
35398 at_failed=false
35399 at_func_diff_devnull "$at_stderr" || at_failed=:
35400 echo >>"$at_stdout"; $as_echo "separator
35401 a/c
35402 separator
35403 a/
35404 a/b
35405 a/c
35406 " | \
35407   $at_diff - "$at_stdout" || at_failed=:
35408 at_func_check_status 0 $at_status "$at_srcdir/update01.at:32"
35409
35410 $at_failed && at_func_log_failure
35411 $at_traceon; }
35412
35413               { $at_traceoff
35414 $as_echo "$at_srcdir/update01.at:32:
35415 mkdir gnu
35416 (cd gnu
35417 TEST_TAR_FORMAT=gnu
35418 export TEST_TAR_FORMAT
35419 TAR_OPTIONS=\"-H gnu\"
35420 export TAR_OPTIONS
35421 rm -rf *
35422
35423
35424 test -z "`sort < /dev/null 2>&1`" || exit 77
35425
35426 mkdir a
35427 genfile --file a/b
35428
35429 tar cf arc a
35430
35431 echo \"separator\"
35432
35433 sleep 2
35434 genfile --file a/c
35435
35436 tar ufv arc a
35437 echo \"separator\"
35438 tar tf arc | sort || exit 1
35439 )"
35440 echo update01.at:32 >"$at_check_line_file"
35441
35442 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
35443    false; }; then
35444   ( $at_traceon;
35445 mkdir gnu
35446 (cd gnu
35447 TEST_TAR_FORMAT=gnu
35448 export TEST_TAR_FORMAT
35449 TAR_OPTIONS="-H gnu"
35450 export TAR_OPTIONS
35451 rm -rf *
35452
35453
35454 test -z "`sort < /dev/null 2>&1`" || exit 77
35455
35456 mkdir a
35457 genfile --file a/b
35458
35459 tar cf arc a
35460
35461 echo "separator"
35462
35463 sleep 2
35464 genfile --file a/c
35465
35466 tar ufv arc a
35467 echo "separator"
35468 tar tf arc | sort || exit 1
35469 ) ) >"$at_stdout" 2>"$at_stder1"
35470   at_func_filter_trace $?
35471 else
35472   ( :;
35473 mkdir gnu
35474 (cd gnu
35475 TEST_TAR_FORMAT=gnu
35476 export TEST_TAR_FORMAT
35477 TAR_OPTIONS="-H gnu"
35478 export TAR_OPTIONS
35479 rm -rf *
35480
35481
35482 test -z "`sort < /dev/null 2>&1`" || exit 77
35483
35484 mkdir a
35485 genfile --file a/b
35486
35487 tar cf arc a
35488
35489 echo "separator"
35490
35491 sleep 2
35492 genfile --file a/c
35493
35494 tar ufv arc a
35495 echo "separator"
35496 tar tf arc | sort || exit 1
35497 ) ) >"$at_stdout" 2>"$at_stderr"
35498 fi
35499 at_status=$?
35500 at_failed=false
35501 at_func_diff_devnull "$at_stderr" || at_failed=:
35502 echo >>"$at_stdout"; $as_echo "separator
35503 a/c
35504 separator
35505 a/
35506 a/b
35507 a/c
35508 " | \
35509   $at_diff - "$at_stdout" || at_failed=:
35510 at_func_check_status 0 $at_status "$at_srcdir/update01.at:32"
35511
35512 $at_failed && at_func_log_failure
35513 $at_traceon; }
35514
35515
35516
35517
35518   $at_traceoff
35519   $at_times_p && times >"$at_times_file"
35520 ) 5>&1 2>&1 | eval $at_tee_pipe
35521 at_status=`cat "$at_status_file"`
35522 #AT_STOP_100
35523 #AT_START_101
35524 # 101. update02.at:26: update changed files
35525 at_setup_line='update02.at:26'
35526 at_desc="update changed files"
35527 $at_quiet $as_echo_n "101: $at_desc                           "
35528 at_xfail=no
35529       test -f $XFAILFILE && at_xfail=yes
35530 echo "#                             -*- compilation -*-" >> "$at_group_log"
35531 (
35532   $as_echo "101. update02.at:26: testing ..."
35533   $at_traceon
35534
35535
35536
35537
35538
35539   { $at_traceoff
35540 $as_echo "$at_srcdir/update02.at:29:
35541 mkdir v7
35542 (cd v7
35543 TEST_TAR_FORMAT=v7
35544 export TEST_TAR_FORMAT
35545 TAR_OPTIONS=\"-H v7\"
35546 export TAR_OPTIONS
35547 rm -rf *
35548
35549
35550 test -z "`sort < /dev/null 2>&1`" || exit 77
35551
35552 mkdir a
35553 genfile --file a/b
35554
35555 tar cf arc a
35556
35557 echo \"separator\"
35558
35559 sleep 2
35560 touch a/b
35561
35562 tar ufv arc a
35563 echo \"separator\"
35564 tar tf arc | sort || exit 1
35565 )"
35566 echo update02.at:29 >"$at_check_line_file"
35567
35568 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
35569    false; }; then
35570   ( $at_traceon;
35571 mkdir v7
35572 (cd v7
35573 TEST_TAR_FORMAT=v7
35574 export TEST_TAR_FORMAT
35575 TAR_OPTIONS="-H v7"
35576 export TAR_OPTIONS
35577 rm -rf *
35578
35579
35580 test -z "`sort < /dev/null 2>&1`" || exit 77
35581
35582 mkdir a
35583 genfile --file a/b
35584
35585 tar cf arc a
35586
35587 echo "separator"
35588
35589 sleep 2
35590 touch a/b
35591
35592 tar ufv arc a
35593 echo "separator"
35594 tar tf arc | sort || exit 1
35595 ) ) >"$at_stdout" 2>"$at_stder1"
35596   at_func_filter_trace $?
35597 else
35598   ( :;
35599 mkdir v7
35600 (cd v7
35601 TEST_TAR_FORMAT=v7
35602 export TEST_TAR_FORMAT
35603 TAR_OPTIONS="-H v7"
35604 export TAR_OPTIONS
35605 rm -rf *
35606
35607
35608 test -z "`sort < /dev/null 2>&1`" || exit 77
35609
35610 mkdir a
35611 genfile --file a/b
35612
35613 tar cf arc a
35614
35615 echo "separator"
35616
35617 sleep 2
35618 touch a/b
35619
35620 tar ufv arc a
35621 echo "separator"
35622 tar tf arc | sort || exit 1
35623 ) ) >"$at_stdout" 2>"$at_stderr"
35624 fi
35625 at_status=$?
35626 at_failed=false
35627 at_func_diff_devnull "$at_stderr" || at_failed=:
35628 echo >>"$at_stdout"; $as_echo "separator
35629 a/b
35630 separator
35631 a/
35632 a/b
35633 a/b
35634 " | \
35635   $at_diff - "$at_stdout" || at_failed=:
35636 at_func_check_status 0 $at_status "$at_srcdir/update02.at:29"
35637
35638 $at_failed && at_func_log_failure
35639 $at_traceon; }
35640
35641               { $at_traceoff
35642 $as_echo "$at_srcdir/update02.at:29:
35643 mkdir oldgnu
35644 (cd oldgnu
35645 TEST_TAR_FORMAT=oldgnu
35646 export TEST_TAR_FORMAT
35647 TAR_OPTIONS=\"-H oldgnu\"
35648 export TAR_OPTIONS
35649 rm -rf *
35650
35651
35652 test -z "`sort < /dev/null 2>&1`" || exit 77
35653
35654 mkdir a
35655 genfile --file a/b
35656
35657 tar cf arc a
35658
35659 echo \"separator\"
35660
35661 sleep 2
35662 touch a/b
35663
35664 tar ufv arc a
35665 echo \"separator\"
35666 tar tf arc | sort || exit 1
35667 )"
35668 echo update02.at:29 >"$at_check_line_file"
35669
35670 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
35671    false; }; then
35672   ( $at_traceon;
35673 mkdir oldgnu
35674 (cd oldgnu
35675 TEST_TAR_FORMAT=oldgnu
35676 export TEST_TAR_FORMAT
35677 TAR_OPTIONS="-H oldgnu"
35678 export TAR_OPTIONS
35679 rm -rf *
35680
35681
35682 test -z "`sort < /dev/null 2>&1`" || exit 77
35683
35684 mkdir a
35685 genfile --file a/b
35686
35687 tar cf arc a
35688
35689 echo "separator"
35690
35691 sleep 2
35692 touch a/b
35693
35694 tar ufv arc a
35695 echo "separator"
35696 tar tf arc | sort || exit 1
35697 ) ) >"$at_stdout" 2>"$at_stder1"
35698   at_func_filter_trace $?
35699 else
35700   ( :;
35701 mkdir oldgnu
35702 (cd oldgnu
35703 TEST_TAR_FORMAT=oldgnu
35704 export TEST_TAR_FORMAT
35705 TAR_OPTIONS="-H oldgnu"
35706 export TAR_OPTIONS
35707 rm -rf *
35708
35709
35710 test -z "`sort < /dev/null 2>&1`" || exit 77
35711
35712 mkdir a
35713 genfile --file a/b
35714
35715 tar cf arc a
35716
35717 echo "separator"
35718
35719 sleep 2
35720 touch a/b
35721
35722 tar ufv arc a
35723 echo "separator"
35724 tar tf arc | sort || exit 1
35725 ) ) >"$at_stdout" 2>"$at_stderr"
35726 fi
35727 at_status=$?
35728 at_failed=false
35729 at_func_diff_devnull "$at_stderr" || at_failed=:
35730 echo >>"$at_stdout"; $as_echo "separator
35731 a/b
35732 separator
35733 a/
35734 a/b
35735 a/b
35736 " | \
35737   $at_diff - "$at_stdout" || at_failed=:
35738 at_func_check_status 0 $at_status "$at_srcdir/update02.at:29"
35739
35740 $at_failed && at_func_log_failure
35741 $at_traceon; }
35742
35743               { $at_traceoff
35744 $as_echo "$at_srcdir/update02.at:29:
35745 mkdir ustar
35746 (cd ustar
35747 TEST_TAR_FORMAT=ustar
35748 export TEST_TAR_FORMAT
35749 TAR_OPTIONS=\"-H ustar\"
35750 export TAR_OPTIONS
35751 rm -rf *
35752
35753
35754 test -z "`sort < /dev/null 2>&1`" || exit 77
35755
35756 mkdir a
35757 genfile --file a/b
35758
35759 tar cf arc a
35760
35761 echo \"separator\"
35762
35763 sleep 2
35764 touch a/b
35765
35766 tar ufv arc a
35767 echo \"separator\"
35768 tar tf arc | sort || exit 1
35769 )"
35770 echo update02.at:29 >"$at_check_line_file"
35771
35772 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
35773    false; }; then
35774   ( $at_traceon;
35775 mkdir ustar
35776 (cd ustar
35777 TEST_TAR_FORMAT=ustar
35778 export TEST_TAR_FORMAT
35779 TAR_OPTIONS="-H ustar"
35780 export TAR_OPTIONS
35781 rm -rf *
35782
35783
35784 test -z "`sort < /dev/null 2>&1`" || exit 77
35785
35786 mkdir a
35787 genfile --file a/b
35788
35789 tar cf arc a
35790
35791 echo "separator"
35792
35793 sleep 2
35794 touch a/b
35795
35796 tar ufv arc a
35797 echo "separator"
35798 tar tf arc | sort || exit 1
35799 ) ) >"$at_stdout" 2>"$at_stder1"
35800   at_func_filter_trace $?
35801 else
35802   ( :;
35803 mkdir ustar
35804 (cd ustar
35805 TEST_TAR_FORMAT=ustar
35806 export TEST_TAR_FORMAT
35807 TAR_OPTIONS="-H ustar"
35808 export TAR_OPTIONS
35809 rm -rf *
35810
35811
35812 test -z "`sort < /dev/null 2>&1`" || exit 77
35813
35814 mkdir a
35815 genfile --file a/b
35816
35817 tar cf arc a
35818
35819 echo "separator"
35820
35821 sleep 2
35822 touch a/b
35823
35824 tar ufv arc a
35825 echo "separator"
35826 tar tf arc | sort || exit 1
35827 ) ) >"$at_stdout" 2>"$at_stderr"
35828 fi
35829 at_status=$?
35830 at_failed=false
35831 at_func_diff_devnull "$at_stderr" || at_failed=:
35832 echo >>"$at_stdout"; $as_echo "separator
35833 a/b
35834 separator
35835 a/
35836 a/b
35837 a/b
35838 " | \
35839   $at_diff - "$at_stdout" || at_failed=:
35840 at_func_check_status 0 $at_status "$at_srcdir/update02.at:29"
35841
35842 $at_failed && at_func_log_failure
35843 $at_traceon; }
35844
35845               { $at_traceoff
35846 $as_echo "$at_srcdir/update02.at:29:
35847 mkdir posix
35848 (cd posix
35849 TEST_TAR_FORMAT=posix
35850 export TEST_TAR_FORMAT
35851 TAR_OPTIONS=\"-H posix\"
35852 export TAR_OPTIONS
35853 rm -rf *
35854
35855
35856 test -z "`sort < /dev/null 2>&1`" || exit 77
35857
35858 mkdir a
35859 genfile --file a/b
35860
35861 tar cf arc a
35862
35863 echo \"separator\"
35864
35865 sleep 2
35866 touch a/b
35867
35868 tar ufv arc a
35869 echo \"separator\"
35870 tar tf arc | sort || exit 1
35871 )"
35872 echo update02.at:29 >"$at_check_line_file"
35873
35874 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
35875    false; }; then
35876   ( $at_traceon;
35877 mkdir posix
35878 (cd posix
35879 TEST_TAR_FORMAT=posix
35880 export TEST_TAR_FORMAT
35881 TAR_OPTIONS="-H posix"
35882 export TAR_OPTIONS
35883 rm -rf *
35884
35885
35886 test -z "`sort < /dev/null 2>&1`" || exit 77
35887
35888 mkdir a
35889 genfile --file a/b
35890
35891 tar cf arc a
35892
35893 echo "separator"
35894
35895 sleep 2
35896 touch a/b
35897
35898 tar ufv arc a
35899 echo "separator"
35900 tar tf arc | sort || exit 1
35901 ) ) >"$at_stdout" 2>"$at_stder1"
35902   at_func_filter_trace $?
35903 else
35904   ( :;
35905 mkdir posix
35906 (cd posix
35907 TEST_TAR_FORMAT=posix
35908 export TEST_TAR_FORMAT
35909 TAR_OPTIONS="-H posix"
35910 export TAR_OPTIONS
35911 rm -rf *
35912
35913
35914 test -z "`sort < /dev/null 2>&1`" || exit 77
35915
35916 mkdir a
35917 genfile --file a/b
35918
35919 tar cf arc a
35920
35921 echo "separator"
35922
35923 sleep 2
35924 touch a/b
35925
35926 tar ufv arc a
35927 echo "separator"
35928 tar tf arc | sort || exit 1
35929 ) ) >"$at_stdout" 2>"$at_stderr"
35930 fi
35931 at_status=$?
35932 at_failed=false
35933 at_func_diff_devnull "$at_stderr" || at_failed=:
35934 echo >>"$at_stdout"; $as_echo "separator
35935 a/b
35936 separator
35937 a/
35938 a/b
35939 a/b
35940 " | \
35941   $at_diff - "$at_stdout" || at_failed=:
35942 at_func_check_status 0 $at_status "$at_srcdir/update02.at:29"
35943
35944 $at_failed && at_func_log_failure
35945 $at_traceon; }
35946
35947               { $at_traceoff
35948 $as_echo "$at_srcdir/update02.at:29:
35949 mkdir gnu
35950 (cd gnu
35951 TEST_TAR_FORMAT=gnu
35952 export TEST_TAR_FORMAT
35953 TAR_OPTIONS=\"-H gnu\"
35954 export TAR_OPTIONS
35955 rm -rf *
35956
35957
35958 test -z "`sort < /dev/null 2>&1`" || exit 77
35959
35960 mkdir a
35961 genfile --file a/b
35962
35963 tar cf arc a
35964
35965 echo \"separator\"
35966
35967 sleep 2
35968 touch a/b
35969
35970 tar ufv arc a
35971 echo \"separator\"
35972 tar tf arc | sort || exit 1
35973 )"
35974 echo update02.at:29 >"$at_check_line_file"
35975
35976 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
35977    false; }; then
35978   ( $at_traceon;
35979 mkdir gnu
35980 (cd gnu
35981 TEST_TAR_FORMAT=gnu
35982 export TEST_TAR_FORMAT
35983 TAR_OPTIONS="-H gnu"
35984 export TAR_OPTIONS
35985 rm -rf *
35986
35987
35988 test -z "`sort < /dev/null 2>&1`" || exit 77
35989
35990 mkdir a
35991 genfile --file a/b
35992
35993 tar cf arc a
35994
35995 echo "separator"
35996
35997 sleep 2
35998 touch a/b
35999
36000 tar ufv arc a
36001 echo "separator"
36002 tar tf arc | sort || exit 1
36003 ) ) >"$at_stdout" 2>"$at_stder1"
36004   at_func_filter_trace $?
36005 else
36006   ( :;
36007 mkdir gnu
36008 (cd gnu
36009 TEST_TAR_FORMAT=gnu
36010 export TEST_TAR_FORMAT
36011 TAR_OPTIONS="-H gnu"
36012 export TAR_OPTIONS
36013 rm -rf *
36014
36015
36016 test -z "`sort < /dev/null 2>&1`" || exit 77
36017
36018 mkdir a
36019 genfile --file a/b
36020
36021 tar cf arc a
36022
36023 echo "separator"
36024
36025 sleep 2
36026 touch a/b
36027
36028 tar ufv arc a
36029 echo "separator"
36030 tar tf arc | sort || exit 1
36031 ) ) >"$at_stdout" 2>"$at_stderr"
36032 fi
36033 at_status=$?
36034 at_failed=false
36035 at_func_diff_devnull "$at_stderr" || at_failed=:
36036 echo >>"$at_stdout"; $as_echo "separator
36037 a/b
36038 separator
36039 a/
36040 a/b
36041 a/b
36042 " | \
36043   $at_diff - "$at_stdout" || at_failed=:
36044 at_func_check_status 0 $at_status "$at_srcdir/update02.at:29"
36045
36046 $at_failed && at_func_log_failure
36047 $at_traceon; }
36048
36049
36050
36051
36052   $at_traceoff
36053   $at_times_p && times >"$at_times_file"
36054 ) 5>&1 2>&1 | eval $at_tee_pipe
36055 at_status=`cat "$at_status_file"`
36056 #AT_STOP_101
36057 #AT_START_102
36058 # 102. volume.at:23: volume
36059 at_setup_line='volume.at:23'
36060 at_desc="volume"
36061 $at_quiet $as_echo_n "102: $at_desc                                         "
36062 at_xfail=no
36063       test -f $XFAILFILE && at_xfail=yes
36064 echo "#                             -*- compilation -*-" >> "$at_group_log"
36065 (
36066   $as_echo "102. volume.at:23: testing ..."
36067   $at_traceon
36068
36069
36070
36071
36072
36073   { $at_traceoff
36074 $as_echo "$at_srcdir/volume.at:26:
36075 mkdir gnu
36076 (cd gnu
36077 TEST_TAR_FORMAT=gnu
36078 export TEST_TAR_FORMAT
36079 TAR_OPTIONS=\"-H gnu\"
36080 export TAR_OPTIONS
36081 rm -rf *
36082
36083 tar -cf archive -V label -T /dev/null || exit 1
36084
36085 tar xfV archive label || exit 1
36086 tar xfV archive 'la?el' || exit 1
36087 tar xfV archive 'l*l' || exit 1
36088
36089 echo 1>&2 -----
36090 tar xfV archive lab
36091 test \$? = 2 || exit 1
36092 echo 1>&2 -----
36093 tar xfV archive bel
36094 test \$? = 2 || exit 1
36095 echo 1>&2 -----
36096 tar xfV archive babel
36097 test \$? = 2
36098 )"
36099 echo volume.at:26 >"$at_check_line_file"
36100
36101 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
36102    false; }; then
36103   ( $at_traceon;
36104 mkdir gnu
36105 (cd gnu
36106 TEST_TAR_FORMAT=gnu
36107 export TEST_TAR_FORMAT
36108 TAR_OPTIONS="-H gnu"
36109 export TAR_OPTIONS
36110 rm -rf *
36111
36112 tar -cf archive -V label -T /dev/null || exit 1
36113
36114 tar xfV archive label || exit 1
36115 tar xfV archive 'la?el' || exit 1
36116 tar xfV archive 'l*l' || exit 1
36117
36118 echo 1>&2 -----
36119 tar xfV archive lab
36120 test $? = 2 || exit 1
36121 echo 1>&2 -----
36122 tar xfV archive bel
36123 test $? = 2 || exit 1
36124 echo 1>&2 -----
36125 tar xfV archive babel
36126 test $? = 2
36127 ) ) >"$at_stdout" 2>"$at_stder1"
36128   at_func_filter_trace $?
36129 else
36130   ( :;
36131 mkdir gnu
36132 (cd gnu
36133 TEST_TAR_FORMAT=gnu
36134 export TEST_TAR_FORMAT
36135 TAR_OPTIONS="-H gnu"
36136 export TAR_OPTIONS
36137 rm -rf *
36138
36139 tar -cf archive -V label -T /dev/null || exit 1
36140
36141 tar xfV archive label || exit 1
36142 tar xfV archive 'la?el' || exit 1
36143 tar xfV archive 'l*l' || exit 1
36144
36145 echo 1>&2 -----
36146 tar xfV archive lab
36147 test $? = 2 || exit 1
36148 echo 1>&2 -----
36149 tar xfV archive bel
36150 test $? = 2 || exit 1
36151 echo 1>&2 -----
36152 tar xfV archive babel
36153 test $? = 2
36154 ) ) >"$at_stdout" 2>"$at_stderr"
36155 fi
36156 at_status=$?
36157 at_failed=false
36158 echo >>"$at_stderr"; $as_echo "-----
36159 tar: Volume \`label' does not match \`lab'
36160 tar: Error is not recoverable: exiting now
36161 -----
36162 tar: Volume \`label' does not match \`bel'
36163 tar: Error is not recoverable: exiting now
36164 -----
36165 tar: Volume \`label' does not match \`babel'
36166 tar: Error is not recoverable: exiting now
36167 " | \
36168   $at_diff - "$at_stderr" || at_failed=:
36169 at_func_diff_devnull "$at_stdout" || at_failed=:
36170 at_func_check_status 0 $at_status "$at_srcdir/volume.at:26"
36171
36172 $at_failed && at_func_log_failure
36173 $at_traceon; }
36174
36175               { $at_traceoff
36176 $as_echo "$at_srcdir/volume.at:26:
36177 mkdir oldgnu
36178 (cd oldgnu
36179 TEST_TAR_FORMAT=oldgnu
36180 export TEST_TAR_FORMAT
36181 TAR_OPTIONS=\"-H oldgnu\"
36182 export TAR_OPTIONS
36183 rm -rf *
36184
36185 tar -cf archive -V label -T /dev/null || exit 1
36186
36187 tar xfV archive label || exit 1
36188 tar xfV archive 'la?el' || exit 1
36189 tar xfV archive 'l*l' || exit 1
36190
36191 echo 1>&2 -----
36192 tar xfV archive lab
36193 test \$? = 2 || exit 1
36194 echo 1>&2 -----
36195 tar xfV archive bel
36196 test \$? = 2 || exit 1
36197 echo 1>&2 -----
36198 tar xfV archive babel
36199 test \$? = 2
36200 )"
36201 echo volume.at:26 >"$at_check_line_file"
36202
36203 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
36204    false; }; then
36205   ( $at_traceon;
36206 mkdir oldgnu
36207 (cd oldgnu
36208 TEST_TAR_FORMAT=oldgnu
36209 export TEST_TAR_FORMAT
36210 TAR_OPTIONS="-H oldgnu"
36211 export TAR_OPTIONS
36212 rm -rf *
36213
36214 tar -cf archive -V label -T /dev/null || exit 1
36215
36216 tar xfV archive label || exit 1
36217 tar xfV archive 'la?el' || exit 1
36218 tar xfV archive 'l*l' || exit 1
36219
36220 echo 1>&2 -----
36221 tar xfV archive lab
36222 test $? = 2 || exit 1
36223 echo 1>&2 -----
36224 tar xfV archive bel
36225 test $? = 2 || exit 1
36226 echo 1>&2 -----
36227 tar xfV archive babel
36228 test $? = 2
36229 ) ) >"$at_stdout" 2>"$at_stder1"
36230   at_func_filter_trace $?
36231 else
36232   ( :;
36233 mkdir oldgnu
36234 (cd oldgnu
36235 TEST_TAR_FORMAT=oldgnu
36236 export TEST_TAR_FORMAT
36237 TAR_OPTIONS="-H oldgnu"
36238 export TAR_OPTIONS
36239 rm -rf *
36240
36241 tar -cf archive -V label -T /dev/null || exit 1
36242
36243 tar xfV archive label || exit 1
36244 tar xfV archive 'la?el' || exit 1
36245 tar xfV archive 'l*l' || exit 1
36246
36247 echo 1>&2 -----
36248 tar xfV archive lab
36249 test $? = 2 || exit 1
36250 echo 1>&2 -----
36251 tar xfV archive bel
36252 test $? = 2 || exit 1
36253 echo 1>&2 -----
36254 tar xfV archive babel
36255 test $? = 2
36256 ) ) >"$at_stdout" 2>"$at_stderr"
36257 fi
36258 at_status=$?
36259 at_failed=false
36260 echo >>"$at_stderr"; $as_echo "-----
36261 tar: Volume \`label' does not match \`lab'
36262 tar: Error is not recoverable: exiting now
36263 -----
36264 tar: Volume \`label' does not match \`bel'
36265 tar: Error is not recoverable: exiting now
36266 -----
36267 tar: Volume \`label' does not match \`babel'
36268 tar: Error is not recoverable: exiting now
36269 " | \
36270   $at_diff - "$at_stderr" || at_failed=:
36271 at_func_diff_devnull "$at_stdout" || at_failed=:
36272 at_func_check_status 0 $at_status "$at_srcdir/volume.at:26"
36273
36274 $at_failed && at_func_log_failure
36275 $at_traceon; }
36276
36277
36278
36279
36280   $at_traceoff
36281   $at_times_p && times >"$at_times_file"
36282 ) 5>&1 2>&1 | eval $at_tee_pipe
36283 at_status=`cat "$at_status_file"`
36284 #AT_STOP_102
36285 #AT_START_103
36286 # 103. volsize.at:29: volume header size
36287 at_setup_line='volsize.at:29'
36288 at_desc="volume header size"
36289 $at_quiet $as_echo_n "103: $at_desc                             "
36290 at_xfail=no
36291       test -f $XFAILFILE && at_xfail=yes
36292 echo "#                             -*- compilation -*-" >> "$at_group_log"
36293 (
36294   $as_echo "103. volsize.at:29: testing ..."
36295   $at_traceon
36296
36297
36298
36299
36300
36301   { $at_traceoff
36302 $as_echo "$at_srcdir/volsize.at:32:
36303 mkdir v7
36304 (cd v7
36305 TEST_TAR_FORMAT=v7
36306 export TEST_TAR_FORMAT
36307 TAR_OPTIONS=\"-H v7\"
36308 export TAR_OPTIONS
36309 rm -rf *
36310
36311
36312 test -z "`sort < /dev/null 2>&1`" || exit 77
36313
36314
36315 test -z "$TEST_DATA_DIR" && exit 77
36316 tarball_prereq abc.tar 540f196ceddcad9e7bd2f2d7533d0474 $TEST_DATA_DIR $TEST_DATA_URL || exit 77
36317
36318 echo Short Listing
36319 tar tf \$TEST_DATA_DIR/abc.tar
36320 echo Verbose Listing
36321 tar --utc -tvf \$TEST_DATA_DIR/abc.tar
36322 echo Extracted directory
36323 tar xf \$TEST_DATA_DIR/abc.tar
36324 find abc|sort
36325 )"
36326 echo volsize.at:32 >"$at_check_line_file"
36327
36328 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
36329    false; }; then
36330   ( $at_traceon;
36331 mkdir v7
36332 (cd v7
36333 TEST_TAR_FORMAT=v7
36334 export TEST_TAR_FORMAT
36335 TAR_OPTIONS="-H v7"
36336 export TAR_OPTIONS
36337 rm -rf *
36338
36339
36340 test -z "`sort < /dev/null 2>&1`" || exit 77
36341
36342
36343 test -z "$TEST_DATA_DIR" && exit 77
36344 tarball_prereq abc.tar 540f196ceddcad9e7bd2f2d7533d0474 $TEST_DATA_DIR $TEST_DATA_URL || exit 77
36345
36346 echo Short Listing
36347 tar tf $TEST_DATA_DIR/abc.tar
36348 echo Verbose Listing
36349 tar --utc -tvf $TEST_DATA_DIR/abc.tar
36350 echo Extracted directory
36351 tar xf $TEST_DATA_DIR/abc.tar
36352 find abc|sort
36353 ) ) >"$at_stdout" 2>"$at_stder1"
36354   at_func_filter_trace $?
36355 else
36356   ( :;
36357 mkdir v7
36358 (cd v7
36359 TEST_TAR_FORMAT=v7
36360 export TEST_TAR_FORMAT
36361 TAR_OPTIONS="-H v7"
36362 export TAR_OPTIONS
36363 rm -rf *
36364
36365
36366 test -z "`sort < /dev/null 2>&1`" || exit 77
36367
36368
36369 test -z "$TEST_DATA_DIR" && exit 77
36370 tarball_prereq abc.tar 540f196ceddcad9e7bd2f2d7533d0474 $TEST_DATA_DIR $TEST_DATA_URL || exit 77
36371
36372 echo Short Listing
36373 tar tf $TEST_DATA_DIR/abc.tar
36374 echo Verbose Listing
36375 tar --utc -tvf $TEST_DATA_DIR/abc.tar
36376 echo Extracted directory
36377 tar xf $TEST_DATA_DIR/abc.tar
36378 find abc|sort
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 "Short Listing
36385 abc/not-a-file.gif
36386 abc/CCC
36387 Verbose Listing
36388 V--------- 0/0            1536 2006-05-08 22:07 abc/not-a-file.gif--Volume Header--
36389 -rw-r--r-- tom/users         0 2006-04-22 19:52 abc/CCC
36390 Extracted directory
36391 abc
36392 abc/CCC
36393 " | \
36394   $at_diff - "$at_stdout" || at_failed=:
36395 at_func_check_status 0 $at_status "$at_srcdir/volsize.at:32"
36396
36397 $at_failed && at_func_log_failure
36398 $at_traceon; }
36399
36400               { $at_traceoff
36401 $as_echo "$at_srcdir/volsize.at:32:
36402 mkdir oldgnu
36403 (cd oldgnu
36404 TEST_TAR_FORMAT=oldgnu
36405 export TEST_TAR_FORMAT
36406 TAR_OPTIONS=\"-H oldgnu\"
36407 export TAR_OPTIONS
36408 rm -rf *
36409
36410
36411 test -z "`sort < /dev/null 2>&1`" || exit 77
36412
36413
36414 test -z "$TEST_DATA_DIR" && exit 77
36415 tarball_prereq abc.tar 540f196ceddcad9e7bd2f2d7533d0474 $TEST_DATA_DIR $TEST_DATA_URL || exit 77
36416
36417 echo Short Listing
36418 tar tf \$TEST_DATA_DIR/abc.tar
36419 echo Verbose Listing
36420 tar --utc -tvf \$TEST_DATA_DIR/abc.tar
36421 echo Extracted directory
36422 tar xf \$TEST_DATA_DIR/abc.tar
36423 find abc|sort
36424 )"
36425 echo volsize.at:32 >"$at_check_line_file"
36426
36427 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
36428    false; }; then
36429   ( $at_traceon;
36430 mkdir oldgnu
36431 (cd oldgnu
36432 TEST_TAR_FORMAT=oldgnu
36433 export TEST_TAR_FORMAT
36434 TAR_OPTIONS="-H oldgnu"
36435 export TAR_OPTIONS
36436 rm -rf *
36437
36438
36439 test -z "`sort < /dev/null 2>&1`" || exit 77
36440
36441
36442 test -z "$TEST_DATA_DIR" && exit 77
36443 tarball_prereq abc.tar 540f196ceddcad9e7bd2f2d7533d0474 $TEST_DATA_DIR $TEST_DATA_URL || exit 77
36444
36445 echo Short Listing
36446 tar tf $TEST_DATA_DIR/abc.tar
36447 echo Verbose Listing
36448 tar --utc -tvf $TEST_DATA_DIR/abc.tar
36449 echo Extracted directory
36450 tar xf $TEST_DATA_DIR/abc.tar
36451 find abc|sort
36452 ) ) >"$at_stdout" 2>"$at_stder1"
36453   at_func_filter_trace $?
36454 else
36455   ( :;
36456 mkdir oldgnu
36457 (cd oldgnu
36458 TEST_TAR_FORMAT=oldgnu
36459 export TEST_TAR_FORMAT
36460 TAR_OPTIONS="-H oldgnu"
36461 export TAR_OPTIONS
36462 rm -rf *
36463
36464
36465 test -z "`sort < /dev/null 2>&1`" || exit 77
36466
36467
36468 test -z "$TEST_DATA_DIR" && exit 77
36469 tarball_prereq abc.tar 540f196ceddcad9e7bd2f2d7533d0474 $TEST_DATA_DIR $TEST_DATA_URL || exit 77
36470
36471 echo Short Listing
36472 tar tf $TEST_DATA_DIR/abc.tar
36473 echo Verbose Listing
36474 tar --utc -tvf $TEST_DATA_DIR/abc.tar
36475 echo Extracted directory
36476 tar xf $TEST_DATA_DIR/abc.tar
36477 find abc|sort
36478 ) ) >"$at_stdout" 2>"$at_stderr"
36479 fi
36480 at_status=$?
36481 at_failed=false
36482 at_func_diff_devnull "$at_stderr" || at_failed=:
36483 echo >>"$at_stdout"; $as_echo "Short Listing
36484 abc/not-a-file.gif
36485 abc/CCC
36486 Verbose Listing
36487 V--------- 0/0            1536 2006-05-08 22:07 abc/not-a-file.gif--Volume Header--
36488 -rw-r--r-- tom/users         0 2006-04-22 19:52 abc/CCC
36489 Extracted directory
36490 abc
36491 abc/CCC
36492 " | \
36493   $at_diff - "$at_stdout" || at_failed=:
36494 at_func_check_status 0 $at_status "$at_srcdir/volsize.at:32"
36495
36496 $at_failed && at_func_log_failure
36497 $at_traceon; }
36498
36499               { $at_traceoff
36500 $as_echo "$at_srcdir/volsize.at:32:
36501 mkdir ustar
36502 (cd ustar
36503 TEST_TAR_FORMAT=ustar
36504 export TEST_TAR_FORMAT
36505 TAR_OPTIONS=\"-H ustar\"
36506 export TAR_OPTIONS
36507 rm -rf *
36508
36509
36510 test -z "`sort < /dev/null 2>&1`" || exit 77
36511
36512
36513 test -z "$TEST_DATA_DIR" && exit 77
36514 tarball_prereq abc.tar 540f196ceddcad9e7bd2f2d7533d0474 $TEST_DATA_DIR $TEST_DATA_URL || exit 77
36515
36516 echo Short Listing
36517 tar tf \$TEST_DATA_DIR/abc.tar
36518 echo Verbose Listing
36519 tar --utc -tvf \$TEST_DATA_DIR/abc.tar
36520 echo Extracted directory
36521 tar xf \$TEST_DATA_DIR/abc.tar
36522 find abc|sort
36523 )"
36524 echo volsize.at:32 >"$at_check_line_file"
36525
36526 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
36527    false; }; then
36528   ( $at_traceon;
36529 mkdir ustar
36530 (cd ustar
36531 TEST_TAR_FORMAT=ustar
36532 export TEST_TAR_FORMAT
36533 TAR_OPTIONS="-H ustar"
36534 export TAR_OPTIONS
36535 rm -rf *
36536
36537
36538 test -z "`sort < /dev/null 2>&1`" || exit 77
36539
36540
36541 test -z "$TEST_DATA_DIR" && exit 77
36542 tarball_prereq abc.tar 540f196ceddcad9e7bd2f2d7533d0474 $TEST_DATA_DIR $TEST_DATA_URL || exit 77
36543
36544 echo Short Listing
36545 tar tf $TEST_DATA_DIR/abc.tar
36546 echo Verbose Listing
36547 tar --utc -tvf $TEST_DATA_DIR/abc.tar
36548 echo Extracted directory
36549 tar xf $TEST_DATA_DIR/abc.tar
36550 find abc|sort
36551 ) ) >"$at_stdout" 2>"$at_stder1"
36552   at_func_filter_trace $?
36553 else
36554   ( :;
36555 mkdir ustar
36556 (cd ustar
36557 TEST_TAR_FORMAT=ustar
36558 export TEST_TAR_FORMAT
36559 TAR_OPTIONS="-H ustar"
36560 export TAR_OPTIONS
36561 rm -rf *
36562
36563
36564 test -z "`sort < /dev/null 2>&1`" || exit 77
36565
36566
36567 test -z "$TEST_DATA_DIR" && exit 77
36568 tarball_prereq abc.tar 540f196ceddcad9e7bd2f2d7533d0474 $TEST_DATA_DIR $TEST_DATA_URL || exit 77
36569
36570 echo Short Listing
36571 tar tf $TEST_DATA_DIR/abc.tar
36572 echo Verbose Listing
36573 tar --utc -tvf $TEST_DATA_DIR/abc.tar
36574 echo Extracted directory
36575 tar xf $TEST_DATA_DIR/abc.tar
36576 find abc|sort
36577 ) ) >"$at_stdout" 2>"$at_stderr"
36578 fi
36579 at_status=$?
36580 at_failed=false
36581 at_func_diff_devnull "$at_stderr" || at_failed=:
36582 echo >>"$at_stdout"; $as_echo "Short Listing
36583 abc/not-a-file.gif
36584 abc/CCC
36585 Verbose Listing
36586 V--------- 0/0            1536 2006-05-08 22:07 abc/not-a-file.gif--Volume Header--
36587 -rw-r--r-- tom/users         0 2006-04-22 19:52 abc/CCC
36588 Extracted directory
36589 abc
36590 abc/CCC
36591 " | \
36592   $at_diff - "$at_stdout" || at_failed=:
36593 at_func_check_status 0 $at_status "$at_srcdir/volsize.at:32"
36594
36595 $at_failed && at_func_log_failure
36596 $at_traceon; }
36597
36598               { $at_traceoff
36599 $as_echo "$at_srcdir/volsize.at:32:
36600 mkdir posix
36601 (cd posix
36602 TEST_TAR_FORMAT=posix
36603 export TEST_TAR_FORMAT
36604 TAR_OPTIONS=\"-H posix\"
36605 export TAR_OPTIONS
36606 rm -rf *
36607
36608
36609 test -z "`sort < /dev/null 2>&1`" || exit 77
36610
36611
36612 test -z "$TEST_DATA_DIR" && exit 77
36613 tarball_prereq abc.tar 540f196ceddcad9e7bd2f2d7533d0474 $TEST_DATA_DIR $TEST_DATA_URL || exit 77
36614
36615 echo Short Listing
36616 tar tf \$TEST_DATA_DIR/abc.tar
36617 echo Verbose Listing
36618 tar --utc -tvf \$TEST_DATA_DIR/abc.tar
36619 echo Extracted directory
36620 tar xf \$TEST_DATA_DIR/abc.tar
36621 find abc|sort
36622 )"
36623 echo volsize.at:32 >"$at_check_line_file"
36624
36625 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
36626    false; }; then
36627   ( $at_traceon;
36628 mkdir posix
36629 (cd posix
36630 TEST_TAR_FORMAT=posix
36631 export TEST_TAR_FORMAT
36632 TAR_OPTIONS="-H posix"
36633 export TAR_OPTIONS
36634 rm -rf *
36635
36636
36637 test -z "`sort < /dev/null 2>&1`" || exit 77
36638
36639
36640 test -z "$TEST_DATA_DIR" && exit 77
36641 tarball_prereq abc.tar 540f196ceddcad9e7bd2f2d7533d0474 $TEST_DATA_DIR $TEST_DATA_URL || exit 77
36642
36643 echo Short Listing
36644 tar tf $TEST_DATA_DIR/abc.tar
36645 echo Verbose Listing
36646 tar --utc -tvf $TEST_DATA_DIR/abc.tar
36647 echo Extracted directory
36648 tar xf $TEST_DATA_DIR/abc.tar
36649 find abc|sort
36650 ) ) >"$at_stdout" 2>"$at_stder1"
36651   at_func_filter_trace $?
36652 else
36653   ( :;
36654 mkdir posix
36655 (cd posix
36656 TEST_TAR_FORMAT=posix
36657 export TEST_TAR_FORMAT
36658 TAR_OPTIONS="-H posix"
36659 export TAR_OPTIONS
36660 rm -rf *
36661
36662
36663 test -z "`sort < /dev/null 2>&1`" || exit 77
36664
36665
36666 test -z "$TEST_DATA_DIR" && exit 77
36667 tarball_prereq abc.tar 540f196ceddcad9e7bd2f2d7533d0474 $TEST_DATA_DIR $TEST_DATA_URL || exit 77
36668
36669 echo Short Listing
36670 tar tf $TEST_DATA_DIR/abc.tar
36671 echo Verbose Listing
36672 tar --utc -tvf $TEST_DATA_DIR/abc.tar
36673 echo Extracted directory
36674 tar xf $TEST_DATA_DIR/abc.tar
36675 find abc|sort
36676 ) ) >"$at_stdout" 2>"$at_stderr"
36677 fi
36678 at_status=$?
36679 at_failed=false
36680 at_func_diff_devnull "$at_stderr" || at_failed=:
36681 echo >>"$at_stdout"; $as_echo "Short Listing
36682 abc/not-a-file.gif
36683 abc/CCC
36684 Verbose Listing
36685 V--------- 0/0            1536 2006-05-08 22:07 abc/not-a-file.gif--Volume Header--
36686 -rw-r--r-- tom/users         0 2006-04-22 19:52 abc/CCC
36687 Extracted directory
36688 abc
36689 abc/CCC
36690 " | \
36691   $at_diff - "$at_stdout" || at_failed=:
36692 at_func_check_status 0 $at_status "$at_srcdir/volsize.at:32"
36693
36694 $at_failed && at_func_log_failure
36695 $at_traceon; }
36696
36697               { $at_traceoff
36698 $as_echo "$at_srcdir/volsize.at:32:
36699 mkdir gnu
36700 (cd gnu
36701 TEST_TAR_FORMAT=gnu
36702 export TEST_TAR_FORMAT
36703 TAR_OPTIONS=\"-H gnu\"
36704 export TAR_OPTIONS
36705 rm -rf *
36706
36707
36708 test -z "`sort < /dev/null 2>&1`" || exit 77
36709
36710
36711 test -z "$TEST_DATA_DIR" && exit 77
36712 tarball_prereq abc.tar 540f196ceddcad9e7bd2f2d7533d0474 $TEST_DATA_DIR $TEST_DATA_URL || exit 77
36713
36714 echo Short Listing
36715 tar tf \$TEST_DATA_DIR/abc.tar
36716 echo Verbose Listing
36717 tar --utc -tvf \$TEST_DATA_DIR/abc.tar
36718 echo Extracted directory
36719 tar xf \$TEST_DATA_DIR/abc.tar
36720 find abc|sort
36721 )"
36722 echo volsize.at:32 >"$at_check_line_file"
36723
36724 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
36725    false; }; then
36726   ( $at_traceon;
36727 mkdir gnu
36728 (cd gnu
36729 TEST_TAR_FORMAT=gnu
36730 export TEST_TAR_FORMAT
36731 TAR_OPTIONS="-H gnu"
36732 export TAR_OPTIONS
36733 rm -rf *
36734
36735
36736 test -z "`sort < /dev/null 2>&1`" || exit 77
36737
36738
36739 test -z "$TEST_DATA_DIR" && exit 77
36740 tarball_prereq abc.tar 540f196ceddcad9e7bd2f2d7533d0474 $TEST_DATA_DIR $TEST_DATA_URL || exit 77
36741
36742 echo Short Listing
36743 tar tf $TEST_DATA_DIR/abc.tar
36744 echo Verbose Listing
36745 tar --utc -tvf $TEST_DATA_DIR/abc.tar
36746 echo Extracted directory
36747 tar xf $TEST_DATA_DIR/abc.tar
36748 find abc|sort
36749 ) ) >"$at_stdout" 2>"$at_stder1"
36750   at_func_filter_trace $?
36751 else
36752   ( :;
36753 mkdir gnu
36754 (cd gnu
36755 TEST_TAR_FORMAT=gnu
36756 export TEST_TAR_FORMAT
36757 TAR_OPTIONS="-H gnu"
36758 export TAR_OPTIONS
36759 rm -rf *
36760
36761
36762 test -z "`sort < /dev/null 2>&1`" || exit 77
36763
36764
36765 test -z "$TEST_DATA_DIR" && exit 77
36766 tarball_prereq abc.tar 540f196ceddcad9e7bd2f2d7533d0474 $TEST_DATA_DIR $TEST_DATA_URL || exit 77
36767
36768 echo Short Listing
36769 tar tf $TEST_DATA_DIR/abc.tar
36770 echo Verbose Listing
36771 tar --utc -tvf $TEST_DATA_DIR/abc.tar
36772 echo Extracted directory
36773 tar xf $TEST_DATA_DIR/abc.tar
36774 find abc|sort
36775 ) ) >"$at_stdout" 2>"$at_stderr"
36776 fi
36777 at_status=$?
36778 at_failed=false
36779 at_func_diff_devnull "$at_stderr" || at_failed=:
36780 echo >>"$at_stdout"; $as_echo "Short Listing
36781 abc/not-a-file.gif
36782 abc/CCC
36783 Verbose Listing
36784 V--------- 0/0            1536 2006-05-08 22:07 abc/not-a-file.gif--Volume Header--
36785 -rw-r--r-- tom/users         0 2006-04-22 19:52 abc/CCC
36786 Extracted directory
36787 abc
36788 abc/CCC
36789 " | \
36790   $at_diff - "$at_stdout" || at_failed=:
36791 at_func_check_status 0 $at_status "$at_srcdir/volsize.at:32"
36792
36793 $at_failed && at_func_log_failure
36794 $at_traceon; }
36795
36796
36797
36798
36799   $at_traceoff
36800   $at_times_p && times >"$at_times_file"
36801 ) 5>&1 2>&1 | eval $at_tee_pipe
36802 at_status=`cat "$at_status_file"`
36803 #AT_STOP_103
36804 #AT_START_104
36805 # 104. comprec.at:21: compressed format recognition
36806 at_setup_line='comprec.at:21'
36807 at_desc="compressed format recognition"
36808 $at_quiet $as_echo_n "104: $at_desc                  "
36809 at_xfail=no
36810       test -f $XFAILFILE && at_xfail=yes
36811 echo "#                             -*- compilation -*-" >> "$at_group_log"
36812 (
36813   $as_echo "104. comprec.at:21: testing ..."
36814   $at_traceon
36815
36816
36817
36818
36819
36820
36821   { $at_traceoff
36822 $as_echo "$at_srcdir/comprec.at:25:
36823 mkdir v7
36824 (cd v7
36825 TEST_TAR_FORMAT=v7
36826 export TEST_TAR_FORMAT
36827 TAR_OPTIONS=\"-H v7\"
36828 export TAR_OPTIONS
36829 rm -rf *
36830
36831
36832 cat /dev/null | gzip - > /dev/null 2>&1 || exit 77
36833
36834 genfile --length 10240 --file file1
36835 echo \"separator\"
36836 tar cfz archive file1
36837 echo \"separator\"
36838 mv file1 orig
36839 tar xfv archive --warning=no-timestamp
36840 cmp orig file1
36841 )"
36842 echo comprec.at:25 >"$at_check_line_file"
36843
36844 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
36845    false; }; then
36846   ( $at_traceon;
36847 mkdir v7
36848 (cd v7
36849 TEST_TAR_FORMAT=v7
36850 export TEST_TAR_FORMAT
36851 TAR_OPTIONS="-H v7"
36852 export TAR_OPTIONS
36853 rm -rf *
36854
36855
36856 cat /dev/null | gzip - > /dev/null 2>&1 || exit 77
36857
36858 genfile --length 10240 --file file1
36859 echo "separator"
36860 tar cfz archive file1
36861 echo "separator"
36862 mv file1 orig
36863 tar xfv archive --warning=no-timestamp
36864 cmp orig file1
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 cat /dev/null | gzip - > /dev/null 2>&1 || exit 77
36879
36880 genfile --length 10240 --file file1
36881 echo "separator"
36882 tar cfz archive file1
36883 echo "separator"
36884 mv file1 orig
36885 tar xfv archive --warning=no-timestamp
36886 cmp orig file1
36887 ) ) >"$at_stdout" 2>"$at_stderr"
36888 fi
36889 at_status=$?
36890 at_failed=false
36891 at_func_diff_devnull "$at_stderr" || at_failed=:
36892 echo >>"$at_stdout"; $as_echo "separator
36893 separator
36894 file1
36895 " | \
36896   $at_diff - "$at_stdout" || at_failed=:
36897 at_func_check_status 0 $at_status "$at_srcdir/comprec.at:25"
36898
36899 $at_failed && at_func_log_failure
36900 $at_traceon; }
36901
36902               { $at_traceoff
36903 $as_echo "$at_srcdir/comprec.at:25:
36904 mkdir oldgnu
36905 (cd oldgnu
36906 TEST_TAR_FORMAT=oldgnu
36907 export TEST_TAR_FORMAT
36908 TAR_OPTIONS=\"-H oldgnu\"
36909 export TAR_OPTIONS
36910 rm -rf *
36911
36912
36913 cat /dev/null | gzip - > /dev/null 2>&1 || exit 77
36914
36915 genfile --length 10240 --file file1
36916 echo \"separator\"
36917 tar cfz archive file1
36918 echo \"separator\"
36919 mv file1 orig
36920 tar xfv archive --warning=no-timestamp
36921 cmp orig file1
36922 )"
36923 echo comprec.at:25 >"$at_check_line_file"
36924
36925 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
36926    false; }; then
36927   ( $at_traceon;
36928 mkdir oldgnu
36929 (cd oldgnu
36930 TEST_TAR_FORMAT=oldgnu
36931 export TEST_TAR_FORMAT
36932 TAR_OPTIONS="-H oldgnu"
36933 export TAR_OPTIONS
36934 rm -rf *
36935
36936
36937 cat /dev/null | gzip - > /dev/null 2>&1 || exit 77
36938
36939 genfile --length 10240 --file file1
36940 echo "separator"
36941 tar cfz archive file1
36942 echo "separator"
36943 mv file1 orig
36944 tar xfv archive --warning=no-timestamp
36945 cmp orig file1
36946 ) ) >"$at_stdout" 2>"$at_stder1"
36947   at_func_filter_trace $?
36948 else
36949   ( :;
36950 mkdir oldgnu
36951 (cd oldgnu
36952 TEST_TAR_FORMAT=oldgnu
36953 export TEST_TAR_FORMAT
36954 TAR_OPTIONS="-H oldgnu"
36955 export TAR_OPTIONS
36956 rm -rf *
36957
36958
36959 cat /dev/null | gzip - > /dev/null 2>&1 || exit 77
36960
36961 genfile --length 10240 --file file1
36962 echo "separator"
36963 tar cfz archive file1
36964 echo "separator"
36965 mv file1 orig
36966 tar xfv archive --warning=no-timestamp
36967 cmp orig file1
36968 ) ) >"$at_stdout" 2>"$at_stderr"
36969 fi
36970 at_status=$?
36971 at_failed=false
36972 at_func_diff_devnull "$at_stderr" || at_failed=:
36973 echo >>"$at_stdout"; $as_echo "separator
36974 separator
36975 file1
36976 " | \
36977   $at_diff - "$at_stdout" || at_failed=:
36978 at_func_check_status 0 $at_status "$at_srcdir/comprec.at:25"
36979
36980 $at_failed && at_func_log_failure
36981 $at_traceon; }
36982
36983               { $at_traceoff
36984 $as_echo "$at_srcdir/comprec.at:25:
36985 mkdir ustar
36986 (cd ustar
36987 TEST_TAR_FORMAT=ustar
36988 export TEST_TAR_FORMAT
36989 TAR_OPTIONS=\"-H ustar\"
36990 export TAR_OPTIONS
36991 rm -rf *
36992
36993
36994 cat /dev/null | gzip - > /dev/null 2>&1 || exit 77
36995
36996 genfile --length 10240 --file file1
36997 echo \"separator\"
36998 tar cfz archive file1
36999 echo \"separator\"
37000 mv file1 orig
37001 tar xfv archive --warning=no-timestamp
37002 cmp orig file1
37003 )"
37004 echo comprec.at:25 >"$at_check_line_file"
37005
37006 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
37007    false; }; then
37008   ( $at_traceon;
37009 mkdir ustar
37010 (cd ustar
37011 TEST_TAR_FORMAT=ustar
37012 export TEST_TAR_FORMAT
37013 TAR_OPTIONS="-H ustar"
37014 export TAR_OPTIONS
37015 rm -rf *
37016
37017
37018 cat /dev/null | gzip - > /dev/null 2>&1 || exit 77
37019
37020 genfile --length 10240 --file file1
37021 echo "separator"
37022 tar cfz archive file1
37023 echo "separator"
37024 mv file1 orig
37025 tar xfv archive --warning=no-timestamp
37026 cmp orig file1
37027 ) ) >"$at_stdout" 2>"$at_stder1"
37028   at_func_filter_trace $?
37029 else
37030   ( :;
37031 mkdir ustar
37032 (cd ustar
37033 TEST_TAR_FORMAT=ustar
37034 export TEST_TAR_FORMAT
37035 TAR_OPTIONS="-H ustar"
37036 export TAR_OPTIONS
37037 rm -rf *
37038
37039
37040 cat /dev/null | gzip - > /dev/null 2>&1 || exit 77
37041
37042 genfile --length 10240 --file file1
37043 echo "separator"
37044 tar cfz archive file1
37045 echo "separator"
37046 mv file1 orig
37047 tar xfv archive --warning=no-timestamp
37048 cmp orig file1
37049 ) ) >"$at_stdout" 2>"$at_stderr"
37050 fi
37051 at_status=$?
37052 at_failed=false
37053 at_func_diff_devnull "$at_stderr" || at_failed=:
37054 echo >>"$at_stdout"; $as_echo "separator
37055 separator
37056 file1
37057 " | \
37058   $at_diff - "$at_stdout" || at_failed=:
37059 at_func_check_status 0 $at_status "$at_srcdir/comprec.at:25"
37060
37061 $at_failed && at_func_log_failure
37062 $at_traceon; }
37063
37064               { $at_traceoff
37065 $as_echo "$at_srcdir/comprec.at:25:
37066 mkdir posix
37067 (cd posix
37068 TEST_TAR_FORMAT=posix
37069 export TEST_TAR_FORMAT
37070 TAR_OPTIONS=\"-H posix\"
37071 export TAR_OPTIONS
37072 rm -rf *
37073
37074
37075 cat /dev/null | gzip - > /dev/null 2>&1 || exit 77
37076
37077 genfile --length 10240 --file file1
37078 echo \"separator\"
37079 tar cfz archive file1
37080 echo \"separator\"
37081 mv file1 orig
37082 tar xfv archive --warning=no-timestamp
37083 cmp orig file1
37084 )"
37085 echo comprec.at:25 >"$at_check_line_file"
37086
37087 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
37088    false; }; then
37089   ( $at_traceon;
37090 mkdir posix
37091 (cd posix
37092 TEST_TAR_FORMAT=posix
37093 export TEST_TAR_FORMAT
37094 TAR_OPTIONS="-H posix"
37095 export TAR_OPTIONS
37096 rm -rf *
37097
37098
37099 cat /dev/null | gzip - > /dev/null 2>&1 || exit 77
37100
37101 genfile --length 10240 --file file1
37102 echo "separator"
37103 tar cfz archive file1
37104 echo "separator"
37105 mv file1 orig
37106 tar xfv archive --warning=no-timestamp
37107 cmp orig file1
37108 ) ) >"$at_stdout" 2>"$at_stder1"
37109   at_func_filter_trace $?
37110 else
37111   ( :;
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 cat /dev/null | gzip - > /dev/null 2>&1 || exit 77
37122
37123 genfile --length 10240 --file file1
37124 echo "separator"
37125 tar cfz archive file1
37126 echo "separator"
37127 mv file1 orig
37128 tar xfv archive --warning=no-timestamp
37129 cmp orig file1
37130 ) ) >"$at_stdout" 2>"$at_stderr"
37131 fi
37132 at_status=$?
37133 at_failed=false
37134 at_func_diff_devnull "$at_stderr" || at_failed=:
37135 echo >>"$at_stdout"; $as_echo "separator
37136 separator
37137 file1
37138 " | \
37139   $at_diff - "$at_stdout" || at_failed=:
37140 at_func_check_status 0 $at_status "$at_srcdir/comprec.at:25"
37141
37142 $at_failed && at_func_log_failure
37143 $at_traceon; }
37144
37145               { $at_traceoff
37146 $as_echo "$at_srcdir/comprec.at:25:
37147 mkdir gnu
37148 (cd gnu
37149 TEST_TAR_FORMAT=gnu
37150 export TEST_TAR_FORMAT
37151 TAR_OPTIONS=\"-H gnu\"
37152 export TAR_OPTIONS
37153 rm -rf *
37154
37155
37156 cat /dev/null | gzip - > /dev/null 2>&1 || exit 77
37157
37158 genfile --length 10240 --file file1
37159 echo \"separator\"
37160 tar cfz archive file1
37161 echo \"separator\"
37162 mv file1 orig
37163 tar xfv archive --warning=no-timestamp
37164 cmp orig file1
37165 )"
37166 echo comprec.at:25 >"$at_check_line_file"
37167
37168 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
37169    false; }; then
37170   ( $at_traceon;
37171 mkdir gnu
37172 (cd gnu
37173 TEST_TAR_FORMAT=gnu
37174 export TEST_TAR_FORMAT
37175 TAR_OPTIONS="-H gnu"
37176 export TAR_OPTIONS
37177 rm -rf *
37178
37179
37180 cat /dev/null | gzip - > /dev/null 2>&1 || exit 77
37181
37182 genfile --length 10240 --file file1
37183 echo "separator"
37184 tar cfz archive file1
37185 echo "separator"
37186 mv file1 orig
37187 tar xfv archive --warning=no-timestamp
37188 cmp orig file1
37189 ) ) >"$at_stdout" 2>"$at_stder1"
37190   at_func_filter_trace $?
37191 else
37192   ( :;
37193 mkdir gnu
37194 (cd gnu
37195 TEST_TAR_FORMAT=gnu
37196 export TEST_TAR_FORMAT
37197 TAR_OPTIONS="-H gnu"
37198 export TAR_OPTIONS
37199 rm -rf *
37200
37201
37202 cat /dev/null | gzip - > /dev/null 2>&1 || exit 77
37203
37204 genfile --length 10240 --file file1
37205 echo "separator"
37206 tar cfz archive file1
37207 echo "separator"
37208 mv file1 orig
37209 tar xfv archive --warning=no-timestamp
37210 cmp orig file1
37211 ) ) >"$at_stdout" 2>"$at_stderr"
37212 fi
37213 at_status=$?
37214 at_failed=false
37215 at_func_diff_devnull "$at_stderr" || at_failed=:
37216 echo >>"$at_stdout"; $as_echo "separator
37217 separator
37218 file1
37219 " | \
37220   $at_diff - "$at_stdout" || at_failed=:
37221 at_func_check_status 0 $at_status "$at_srcdir/comprec.at:25"
37222
37223 $at_failed && at_func_log_failure
37224 $at_traceon; }
37225
37226
37227
37228
37229   $at_traceoff
37230   $at_times_p && times >"$at_times_file"
37231 ) 5>&1 2>&1 | eval $at_tee_pipe
37232 at_status=`cat "$at_status_file"`
37233 #AT_STOP_104
37234 #AT_START_105
37235 # 105. shortfile.at:26: short input files
37236 at_setup_line='shortfile.at:26'
37237 at_desc="short input files"
37238 $at_quiet $as_echo_n "105: $at_desc                              "
37239 at_xfail=no
37240       test -f $XFAILFILE && at_xfail=yes
37241 echo "#                             -*- compilation -*-" >> "$at_group_log"
37242 (
37243   $as_echo "105. shortfile.at:26: testing ..."
37244   $at_traceon
37245
37246
37247
37248
37249
37250   { $at_traceoff
37251 $as_echo "$at_srcdir/shortfile.at:29:
37252 mkdir gnu
37253 (cd gnu
37254 TEST_TAR_FORMAT=gnu
37255 export TEST_TAR_FORMAT
37256 TAR_OPTIONS=\"-H gnu\"
37257 export TAR_OPTIONS
37258 rm -rf *
37259
37260 genfile --length 511 --file foo || exit 5
37261 tar tf foo
37262 )"
37263 echo shortfile.at:29 >"$at_check_line_file"
37264
37265 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
37266    false; }; then
37267   ( $at_traceon;
37268 mkdir gnu
37269 (cd gnu
37270 TEST_TAR_FORMAT=gnu
37271 export TEST_TAR_FORMAT
37272 TAR_OPTIONS="-H gnu"
37273 export TAR_OPTIONS
37274 rm -rf *
37275
37276 genfile --length 511 --file foo || exit 5
37277 tar tf foo
37278 ) ) >"$at_stdout" 2>"$at_stder1"
37279   at_func_filter_trace $?
37280 else
37281   ( :;
37282 mkdir gnu
37283 (cd gnu
37284 TEST_TAR_FORMAT=gnu
37285 export TEST_TAR_FORMAT
37286 TAR_OPTIONS="-H gnu"
37287 export TAR_OPTIONS
37288 rm -rf *
37289
37290 genfile --length 511 --file foo || exit 5
37291 tar tf foo
37292 ) ) >"$at_stdout" 2>"$at_stderr"
37293 fi
37294 at_status=$?
37295 at_failed=false
37296 echo >>"$at_stderr"; $as_echo "tar: This does not look like a tar archive
37297 tar: Exiting with failure status due to previous errors
37298 " | \
37299   $at_diff - "$at_stderr" || at_failed=:
37300 at_func_diff_devnull "$at_stdout" || at_failed=:
37301 at_func_check_status 2 $at_status "$at_srcdir/shortfile.at:29"
37302
37303 $at_failed && at_func_log_failure
37304 $at_traceon; }
37305
37306
37307
37308
37309   $at_traceoff
37310   $at_times_p && times >"$at_times_file"
37311 ) 5>&1 2>&1 | eval $at_tee_pipe
37312 at_status=`cat "$at_status_file"`
37313 #AT_STOP_105
37314 #AT_START_106
37315 # 106. shortupd.at:29: updating short archives
37316 at_setup_line='shortupd.at:29'
37317 at_desc="updating short archives"
37318 $at_quiet $as_echo_n "106: $at_desc                        "
37319 at_xfail=no
37320       test -f $XFAILFILE && at_xfail=yes
37321 echo "#                             -*- compilation -*-" >> "$at_group_log"
37322 (
37323   $as_echo "106. shortupd.at:29: testing ..."
37324   $at_traceon
37325
37326
37327
37328
37329
37330   { $at_traceoff
37331 $as_echo "$at_srcdir/shortupd.at:32:
37332 mkdir v7
37333 (cd v7
37334 TEST_TAR_FORMAT=v7
37335 export TEST_TAR_FORMAT
37336 TAR_OPTIONS=\"-H v7\"
37337 export TAR_OPTIONS
37338 rm -rf *
37339
37340 touch foo
37341 tar uf archive foo
37342 )"
37343 echo shortupd.at:32 >"$at_check_line_file"
37344
37345 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
37346    false; }; then
37347   ( $at_traceon;
37348 mkdir v7
37349 (cd v7
37350 TEST_TAR_FORMAT=v7
37351 export TEST_TAR_FORMAT
37352 TAR_OPTIONS="-H v7"
37353 export TAR_OPTIONS
37354 rm -rf *
37355
37356 touch foo
37357 tar uf archive foo
37358 ) ) >"$at_stdout" 2>"$at_stder1"
37359   at_func_filter_trace $?
37360 else
37361   ( :;
37362 mkdir v7
37363 (cd v7
37364 TEST_TAR_FORMAT=v7
37365 export TEST_TAR_FORMAT
37366 TAR_OPTIONS="-H v7"
37367 export TAR_OPTIONS
37368 rm -rf *
37369
37370 touch foo
37371 tar uf archive foo
37372 ) ) >"$at_stdout" 2>"$at_stderr"
37373 fi
37374 at_status=$?
37375 at_failed=false
37376 at_func_diff_devnull "$at_stderr" || at_failed=:
37377 at_func_diff_devnull "$at_stdout" || at_failed=:
37378 at_func_check_status 0 $at_status "$at_srcdir/shortupd.at:32"
37379
37380 $at_failed && at_func_log_failure
37381 $at_traceon; }
37382
37383               { $at_traceoff
37384 $as_echo "$at_srcdir/shortupd.at:32:
37385 mkdir oldgnu
37386 (cd oldgnu
37387 TEST_TAR_FORMAT=oldgnu
37388 export TEST_TAR_FORMAT
37389 TAR_OPTIONS=\"-H oldgnu\"
37390 export TAR_OPTIONS
37391 rm -rf *
37392
37393 touch foo
37394 tar uf archive foo
37395 )"
37396 echo shortupd.at:32 >"$at_check_line_file"
37397
37398 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
37399    false; }; then
37400   ( $at_traceon;
37401 mkdir oldgnu
37402 (cd oldgnu
37403 TEST_TAR_FORMAT=oldgnu
37404 export TEST_TAR_FORMAT
37405 TAR_OPTIONS="-H oldgnu"
37406 export TAR_OPTIONS
37407 rm -rf *
37408
37409 touch foo
37410 tar uf archive foo
37411 ) ) >"$at_stdout" 2>"$at_stder1"
37412   at_func_filter_trace $?
37413 else
37414   ( :;
37415 mkdir oldgnu
37416 (cd oldgnu
37417 TEST_TAR_FORMAT=oldgnu
37418 export TEST_TAR_FORMAT
37419 TAR_OPTIONS="-H oldgnu"
37420 export TAR_OPTIONS
37421 rm -rf *
37422
37423 touch foo
37424 tar uf archive foo
37425 ) ) >"$at_stdout" 2>"$at_stderr"
37426 fi
37427 at_status=$?
37428 at_failed=false
37429 at_func_diff_devnull "$at_stderr" || at_failed=:
37430 at_func_diff_devnull "$at_stdout" || at_failed=:
37431 at_func_check_status 0 $at_status "$at_srcdir/shortupd.at:32"
37432
37433 $at_failed && at_func_log_failure
37434 $at_traceon; }
37435
37436               { $at_traceoff
37437 $as_echo "$at_srcdir/shortupd.at:32:
37438 mkdir ustar
37439 (cd ustar
37440 TEST_TAR_FORMAT=ustar
37441 export TEST_TAR_FORMAT
37442 TAR_OPTIONS=\"-H ustar\"
37443 export TAR_OPTIONS
37444 rm -rf *
37445
37446 touch foo
37447 tar uf archive foo
37448 )"
37449 echo shortupd.at:32 >"$at_check_line_file"
37450
37451 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
37452    false; }; then
37453   ( $at_traceon;
37454 mkdir ustar
37455 (cd ustar
37456 TEST_TAR_FORMAT=ustar
37457 export TEST_TAR_FORMAT
37458 TAR_OPTIONS="-H ustar"
37459 export TAR_OPTIONS
37460 rm -rf *
37461
37462 touch foo
37463 tar uf archive foo
37464 ) ) >"$at_stdout" 2>"$at_stder1"
37465   at_func_filter_trace $?
37466 else
37467   ( :;
37468 mkdir ustar
37469 (cd ustar
37470 TEST_TAR_FORMAT=ustar
37471 export TEST_TAR_FORMAT
37472 TAR_OPTIONS="-H ustar"
37473 export TAR_OPTIONS
37474 rm -rf *
37475
37476 touch foo
37477 tar uf archive foo
37478 ) ) >"$at_stdout" 2>"$at_stderr"
37479 fi
37480 at_status=$?
37481 at_failed=false
37482 at_func_diff_devnull "$at_stderr" || at_failed=:
37483 at_func_diff_devnull "$at_stdout" || at_failed=:
37484 at_func_check_status 0 $at_status "$at_srcdir/shortupd.at:32"
37485
37486 $at_failed && at_func_log_failure
37487 $at_traceon; }
37488
37489               { $at_traceoff
37490 $as_echo "$at_srcdir/shortupd.at:32:
37491 mkdir posix
37492 (cd posix
37493 TEST_TAR_FORMAT=posix
37494 export TEST_TAR_FORMAT
37495 TAR_OPTIONS=\"-H posix\"
37496 export TAR_OPTIONS
37497 rm -rf *
37498
37499 touch foo
37500 tar uf archive foo
37501 )"
37502 echo shortupd.at:32 >"$at_check_line_file"
37503
37504 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
37505    false; }; then
37506   ( $at_traceon;
37507 mkdir posix
37508 (cd posix
37509 TEST_TAR_FORMAT=posix
37510 export TEST_TAR_FORMAT
37511 TAR_OPTIONS="-H posix"
37512 export TAR_OPTIONS
37513 rm -rf *
37514
37515 touch foo
37516 tar uf archive foo
37517 ) ) >"$at_stdout" 2>"$at_stder1"
37518   at_func_filter_trace $?
37519 else
37520   ( :;
37521 mkdir posix
37522 (cd posix
37523 TEST_TAR_FORMAT=posix
37524 export TEST_TAR_FORMAT
37525 TAR_OPTIONS="-H posix"
37526 export TAR_OPTIONS
37527 rm -rf *
37528
37529 touch foo
37530 tar uf archive foo
37531 ) ) >"$at_stdout" 2>"$at_stderr"
37532 fi
37533 at_status=$?
37534 at_failed=false
37535 at_func_diff_devnull "$at_stderr" || at_failed=:
37536 at_func_diff_devnull "$at_stdout" || at_failed=:
37537 at_func_check_status 0 $at_status "$at_srcdir/shortupd.at:32"
37538
37539 $at_failed && at_func_log_failure
37540 $at_traceon; }
37541
37542               { $at_traceoff
37543 $as_echo "$at_srcdir/shortupd.at:32:
37544 mkdir gnu
37545 (cd gnu
37546 TEST_TAR_FORMAT=gnu
37547 export TEST_TAR_FORMAT
37548 TAR_OPTIONS=\"-H gnu\"
37549 export TAR_OPTIONS
37550 rm -rf *
37551
37552 touch foo
37553 tar uf archive foo
37554 )"
37555 echo shortupd.at:32 >"$at_check_line_file"
37556
37557 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
37558    false; }; then
37559   ( $at_traceon;
37560 mkdir gnu
37561 (cd gnu
37562 TEST_TAR_FORMAT=gnu
37563 export TEST_TAR_FORMAT
37564 TAR_OPTIONS="-H gnu"
37565 export TAR_OPTIONS
37566 rm -rf *
37567
37568 touch foo
37569 tar uf archive foo
37570 ) ) >"$at_stdout" 2>"$at_stder1"
37571   at_func_filter_trace $?
37572 else
37573   ( :;
37574 mkdir gnu
37575 (cd gnu
37576 TEST_TAR_FORMAT=gnu
37577 export TEST_TAR_FORMAT
37578 TAR_OPTIONS="-H gnu"
37579 export TAR_OPTIONS
37580 rm -rf *
37581
37582 touch foo
37583 tar uf archive foo
37584 ) ) >"$at_stdout" 2>"$at_stderr"
37585 fi
37586 at_status=$?
37587 at_failed=false
37588 at_func_diff_devnull "$at_stderr" || at_failed=:
37589 at_func_diff_devnull "$at_stdout" || at_failed=:
37590 at_func_check_status 0 $at_status "$at_srcdir/shortupd.at:32"
37591
37592 $at_failed && at_func_log_failure
37593 $at_traceon; }
37594
37595
37596
37597
37598   $at_traceoff
37599   $at_times_p && times >"$at_times_file"
37600 ) 5>&1 2>&1 | eval $at_tee_pipe
37601 at_status=`cat "$at_status_file"`
37602 #AT_STOP_106
37603 #AT_START_107
37604 # 107. truncate.at:29: truncate
37605 at_setup_line='truncate.at:29'
37606 at_desc="truncate"
37607 $at_quiet $as_echo_n "107: $at_desc                                       "
37608 at_xfail=no
37609       test -f $XFAILFILE && at_xfail=yes
37610 echo "#                             -*- compilation -*-" >> "$at_group_log"
37611 (
37612   $as_echo "107. truncate.at:29: testing ..."
37613   $at_traceon
37614
37615
37616
37617
37618
37619   { $at_traceoff
37620 $as_echo "$at_srcdir/truncate.at:32:
37621 mkdir v7
37622 (cd v7
37623 TEST_TAR_FORMAT=v7
37624 export TEST_TAR_FORMAT
37625 TAR_OPTIONS=\"-H v7\"
37626 export TAR_OPTIONS
37627 rm -rf *
37628
37629 genfile --file foo --length 50000k
37630 genfile --file baz
37631 genfile --run --checkpoint 10 --length 49995k --truncate foo -- tar --checkpoint -vcf bar foo baz
37632 echo Exit status: \$?
37633 echo separator
37634 sleep 1
37635 genfile --file foo --seek 49995k --length 5k --pattern=zeros
37636 tar dvf bar)"
37637 echo truncate.at:32 >"$at_check_line_file"
37638
37639 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
37640    false; }; then
37641   ( $at_traceon;
37642 mkdir v7
37643 (cd v7
37644 TEST_TAR_FORMAT=v7
37645 export TEST_TAR_FORMAT
37646 TAR_OPTIONS="-H v7"
37647 export TAR_OPTIONS
37648 rm -rf *
37649
37650 genfile --file foo --length 50000k
37651 genfile --file baz
37652 genfile --run --checkpoint 10 --length 49995k --truncate foo -- tar --checkpoint -vcf bar foo baz
37653 echo Exit status: $?
37654 echo separator
37655 sleep 1
37656 genfile --file foo --seek 49995k --length 5k --pattern=zeros
37657 tar dvf bar) ) >"$at_stdout" 2>"$at_stder1"
37658   at_func_filter_trace $?
37659 else
37660   ( :;
37661 mkdir v7
37662 (cd v7
37663 TEST_TAR_FORMAT=v7
37664 export TEST_TAR_FORMAT
37665 TAR_OPTIONS="-H v7"
37666 export TAR_OPTIONS
37667 rm -rf *
37668
37669 genfile --file foo --length 50000k
37670 genfile --file baz
37671 genfile --run --checkpoint 10 --length 49995k --truncate foo -- tar --checkpoint -vcf bar foo baz
37672 echo Exit status: $?
37673 echo separator
37674 sleep 1
37675 genfile --file foo --seek 49995k --length 5k --pattern=zeros
37676 tar dvf bar) ) >"$at_stdout" 2>"$at_stderr"
37677 fi
37678 at_status=$?
37679 at_failed=false
37680 echo >>"$at_stderr"; $as_echo "tar: foo: File shrank by 5120 bytes; padding with zeros
37681 " | \
37682   $at_diff - "$at_stderr" || at_failed=:
37683 echo >>"$at_stdout"; $as_echo "foo
37684 baz
37685 Exit status: 1
37686 separator
37687 foo
37688 foo: Mod time differs
37689 baz
37690 " | \
37691   $at_diff - "$at_stdout" || at_failed=:
37692 at_func_check_status 1 $at_status "$at_srcdir/truncate.at:32"
37693
37694 $at_failed && at_func_log_failure
37695 $at_traceon; }
37696
37697               { $at_traceoff
37698 $as_echo "$at_srcdir/truncate.at:32:
37699 mkdir oldgnu
37700 (cd oldgnu
37701 TEST_TAR_FORMAT=oldgnu
37702 export TEST_TAR_FORMAT
37703 TAR_OPTIONS=\"-H oldgnu\"
37704 export TAR_OPTIONS
37705 rm -rf *
37706
37707 genfile --file foo --length 50000k
37708 genfile --file baz
37709 genfile --run --checkpoint 10 --length 49995k --truncate foo -- tar --checkpoint -vcf bar foo baz
37710 echo Exit status: \$?
37711 echo separator
37712 sleep 1
37713 genfile --file foo --seek 49995k --length 5k --pattern=zeros
37714 tar dvf bar)"
37715 echo truncate.at:32 >"$at_check_line_file"
37716
37717 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
37718    false; }; then
37719   ( $at_traceon;
37720 mkdir oldgnu
37721 (cd oldgnu
37722 TEST_TAR_FORMAT=oldgnu
37723 export TEST_TAR_FORMAT
37724 TAR_OPTIONS="-H oldgnu"
37725 export TAR_OPTIONS
37726 rm -rf *
37727
37728 genfile --file foo --length 50000k
37729 genfile --file baz
37730 genfile --run --checkpoint 10 --length 49995k --truncate foo -- tar --checkpoint -vcf bar foo baz
37731 echo Exit status: $?
37732 echo separator
37733 sleep 1
37734 genfile --file foo --seek 49995k --length 5k --pattern=zeros
37735 tar dvf bar) ) >"$at_stdout" 2>"$at_stder1"
37736   at_func_filter_trace $?
37737 else
37738   ( :;
37739 mkdir oldgnu
37740 (cd oldgnu
37741 TEST_TAR_FORMAT=oldgnu
37742 export TEST_TAR_FORMAT
37743 TAR_OPTIONS="-H oldgnu"
37744 export TAR_OPTIONS
37745 rm -rf *
37746
37747 genfile --file foo --length 50000k
37748 genfile --file baz
37749 genfile --run --checkpoint 10 --length 49995k --truncate foo -- tar --checkpoint -vcf bar foo baz
37750 echo Exit status: $?
37751 echo separator
37752 sleep 1
37753 genfile --file foo --seek 49995k --length 5k --pattern=zeros
37754 tar dvf bar) ) >"$at_stdout" 2>"$at_stderr"
37755 fi
37756 at_status=$?
37757 at_failed=false
37758 echo >>"$at_stderr"; $as_echo "tar: foo: File shrank by 5120 bytes; padding with zeros
37759 " | \
37760   $at_diff - "$at_stderr" || at_failed=:
37761 echo >>"$at_stdout"; $as_echo "foo
37762 baz
37763 Exit status: 1
37764 separator
37765 foo
37766 foo: Mod time differs
37767 baz
37768 " | \
37769   $at_diff - "$at_stdout" || at_failed=:
37770 at_func_check_status 1 $at_status "$at_srcdir/truncate.at:32"
37771
37772 $at_failed && at_func_log_failure
37773 $at_traceon; }
37774
37775               { $at_traceoff
37776 $as_echo "$at_srcdir/truncate.at:32:
37777 mkdir ustar
37778 (cd ustar
37779 TEST_TAR_FORMAT=ustar
37780 export TEST_TAR_FORMAT
37781 TAR_OPTIONS=\"-H ustar\"
37782 export TAR_OPTIONS
37783 rm -rf *
37784
37785 genfile --file foo --length 50000k
37786 genfile --file baz
37787 genfile --run --checkpoint 10 --length 49995k --truncate foo -- tar --checkpoint -vcf bar foo baz
37788 echo Exit status: \$?
37789 echo separator
37790 sleep 1
37791 genfile --file foo --seek 49995k --length 5k --pattern=zeros
37792 tar dvf bar)"
37793 echo truncate.at:32 >"$at_check_line_file"
37794
37795 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
37796    false; }; then
37797   ( $at_traceon;
37798 mkdir ustar
37799 (cd ustar
37800 TEST_TAR_FORMAT=ustar
37801 export TEST_TAR_FORMAT
37802 TAR_OPTIONS="-H ustar"
37803 export TAR_OPTIONS
37804 rm -rf *
37805
37806 genfile --file foo --length 50000k
37807 genfile --file baz
37808 genfile --run --checkpoint 10 --length 49995k --truncate foo -- tar --checkpoint -vcf bar foo baz
37809 echo Exit status: $?
37810 echo separator
37811 sleep 1
37812 genfile --file foo --seek 49995k --length 5k --pattern=zeros
37813 tar dvf bar) ) >"$at_stdout" 2>"$at_stder1"
37814   at_func_filter_trace $?
37815 else
37816   ( :;
37817 mkdir ustar
37818 (cd ustar
37819 TEST_TAR_FORMAT=ustar
37820 export TEST_TAR_FORMAT
37821 TAR_OPTIONS="-H ustar"
37822 export TAR_OPTIONS
37823 rm -rf *
37824
37825 genfile --file foo --length 50000k
37826 genfile --file baz
37827 genfile --run --checkpoint 10 --length 49995k --truncate foo -- tar --checkpoint -vcf bar foo baz
37828 echo Exit status: $?
37829 echo separator
37830 sleep 1
37831 genfile --file foo --seek 49995k --length 5k --pattern=zeros
37832 tar dvf bar) ) >"$at_stdout" 2>"$at_stderr"
37833 fi
37834 at_status=$?
37835 at_failed=false
37836 echo >>"$at_stderr"; $as_echo "tar: foo: File shrank by 5120 bytes; padding with zeros
37837 " | \
37838   $at_diff - "$at_stderr" || at_failed=:
37839 echo >>"$at_stdout"; $as_echo "foo
37840 baz
37841 Exit status: 1
37842 separator
37843 foo
37844 foo: Mod time differs
37845 baz
37846 " | \
37847   $at_diff - "$at_stdout" || at_failed=:
37848 at_func_check_status 1 $at_status "$at_srcdir/truncate.at:32"
37849
37850 $at_failed && at_func_log_failure
37851 $at_traceon; }
37852
37853               { $at_traceoff
37854 $as_echo "$at_srcdir/truncate.at:32:
37855 mkdir posix
37856 (cd posix
37857 TEST_TAR_FORMAT=posix
37858 export TEST_TAR_FORMAT
37859 TAR_OPTIONS=\"-H posix\"
37860 export TAR_OPTIONS
37861 rm -rf *
37862
37863 genfile --file foo --length 50000k
37864 genfile --file baz
37865 genfile --run --checkpoint 10 --length 49995k --truncate foo -- tar --checkpoint -vcf bar foo baz
37866 echo Exit status: \$?
37867 echo separator
37868 sleep 1
37869 genfile --file foo --seek 49995k --length 5k --pattern=zeros
37870 tar dvf bar)"
37871 echo truncate.at:32 >"$at_check_line_file"
37872
37873 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
37874    false; }; then
37875   ( $at_traceon;
37876 mkdir posix
37877 (cd posix
37878 TEST_TAR_FORMAT=posix
37879 export TEST_TAR_FORMAT
37880 TAR_OPTIONS="-H posix"
37881 export TAR_OPTIONS
37882 rm -rf *
37883
37884 genfile --file foo --length 50000k
37885 genfile --file baz
37886 genfile --run --checkpoint 10 --length 49995k --truncate foo -- tar --checkpoint -vcf bar foo baz
37887 echo Exit status: $?
37888 echo separator
37889 sleep 1
37890 genfile --file foo --seek 49995k --length 5k --pattern=zeros
37891 tar dvf bar) ) >"$at_stdout" 2>"$at_stder1"
37892   at_func_filter_trace $?
37893 else
37894   ( :;
37895 mkdir posix
37896 (cd posix
37897 TEST_TAR_FORMAT=posix
37898 export TEST_TAR_FORMAT
37899 TAR_OPTIONS="-H posix"
37900 export TAR_OPTIONS
37901 rm -rf *
37902
37903 genfile --file foo --length 50000k
37904 genfile --file baz
37905 genfile --run --checkpoint 10 --length 49995k --truncate foo -- tar --checkpoint -vcf bar foo baz
37906 echo Exit status: $?
37907 echo separator
37908 sleep 1
37909 genfile --file foo --seek 49995k --length 5k --pattern=zeros
37910 tar dvf bar) ) >"$at_stdout" 2>"$at_stderr"
37911 fi
37912 at_status=$?
37913 at_failed=false
37914 echo >>"$at_stderr"; $as_echo "tar: foo: File shrank by 5120 bytes; padding with zeros
37915 " | \
37916   $at_diff - "$at_stderr" || at_failed=:
37917 echo >>"$at_stdout"; $as_echo "foo
37918 baz
37919 Exit status: 1
37920 separator
37921 foo
37922 foo: Mod time differs
37923 baz
37924 " | \
37925   $at_diff - "$at_stdout" || at_failed=:
37926 at_func_check_status 1 $at_status "$at_srcdir/truncate.at:32"
37927
37928 $at_failed && at_func_log_failure
37929 $at_traceon; }
37930
37931               { $at_traceoff
37932 $as_echo "$at_srcdir/truncate.at:32:
37933 mkdir gnu
37934 (cd gnu
37935 TEST_TAR_FORMAT=gnu
37936 export TEST_TAR_FORMAT
37937 TAR_OPTIONS=\"-H gnu\"
37938 export TAR_OPTIONS
37939 rm -rf *
37940
37941 genfile --file foo --length 50000k
37942 genfile --file baz
37943 genfile --run --checkpoint 10 --length 49995k --truncate foo -- tar --checkpoint -vcf bar foo baz
37944 echo Exit status: \$?
37945 echo separator
37946 sleep 1
37947 genfile --file foo --seek 49995k --length 5k --pattern=zeros
37948 tar dvf bar)"
37949 echo truncate.at:32 >"$at_check_line_file"
37950
37951 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
37952    false; }; then
37953   ( $at_traceon;
37954 mkdir gnu
37955 (cd gnu
37956 TEST_TAR_FORMAT=gnu
37957 export TEST_TAR_FORMAT
37958 TAR_OPTIONS="-H gnu"
37959 export TAR_OPTIONS
37960 rm -rf *
37961
37962 genfile --file foo --length 50000k
37963 genfile --file baz
37964 genfile --run --checkpoint 10 --length 49995k --truncate foo -- tar --checkpoint -vcf bar foo baz
37965 echo Exit status: $?
37966 echo separator
37967 sleep 1
37968 genfile --file foo --seek 49995k --length 5k --pattern=zeros
37969 tar dvf bar) ) >"$at_stdout" 2>"$at_stder1"
37970   at_func_filter_trace $?
37971 else
37972   ( :;
37973 mkdir gnu
37974 (cd gnu
37975 TEST_TAR_FORMAT=gnu
37976 export TEST_TAR_FORMAT
37977 TAR_OPTIONS="-H gnu"
37978 export TAR_OPTIONS
37979 rm -rf *
37980
37981 genfile --file foo --length 50000k
37982 genfile --file baz
37983 genfile --run --checkpoint 10 --length 49995k --truncate foo -- tar --checkpoint -vcf bar foo baz
37984 echo Exit status: $?
37985 echo separator
37986 sleep 1
37987 genfile --file foo --seek 49995k --length 5k --pattern=zeros
37988 tar dvf bar) ) >"$at_stdout" 2>"$at_stderr"
37989 fi
37990 at_status=$?
37991 at_failed=false
37992 echo >>"$at_stderr"; $as_echo "tar: foo: File shrank by 5120 bytes; padding with zeros
37993 " | \
37994   $at_diff - "$at_stderr" || at_failed=:
37995 echo >>"$at_stdout"; $as_echo "foo
37996 baz
37997 Exit status: 1
37998 separator
37999 foo
38000 foo: Mod time differs
38001 baz
38002 " | \
38003   $at_diff - "$at_stdout" || at_failed=:
38004 at_func_check_status 1 $at_status "$at_srcdir/truncate.at:32"
38005
38006 $at_failed && at_func_log_failure
38007 $at_traceon; }
38008
38009
38010
38011
38012   $at_traceoff
38013   $at_times_p && times >"$at_times_file"
38014 ) 5>&1 2>&1 | eval $at_tee_pipe
38015 at_status=`cat "$at_status_file"`
38016 #AT_STOP_107
38017 #AT_START_108
38018 # 108. grow.at:24: grow
38019 at_setup_line='grow.at:24'
38020 at_desc="grow"
38021 $at_quiet $as_echo_n "108: $at_desc                                           "
38022 at_xfail=no
38023       test -f $XFAILFILE && at_xfail=yes
38024 echo "#                             -*- compilation -*-" >> "$at_group_log"
38025 (
38026   $as_echo "108. grow.at:24: testing ..."
38027   $at_traceon
38028
38029
38030
38031
38032
38033   { $at_traceoff
38034 $as_echo "$at_srcdir/grow.at:27:
38035 mkdir v7
38036 (cd v7
38037 TEST_TAR_FORMAT=v7
38038 export TEST_TAR_FORMAT
38039 TAR_OPTIONS=\"-H v7\"
38040 export TAR_OPTIONS
38041 rm -rf *
38042
38043 genfile --file foo --length 50000k
38044 genfile --file baz
38045 genfile --run --checkpoint 10 --length 1024 --append foo -- tar --checkpoint -vcf bar foo baz
38046 )"
38047 echo grow.at:27 >"$at_check_line_file"
38048
38049 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
38050    false; }; then
38051   ( $at_traceon;
38052 mkdir v7
38053 (cd v7
38054 TEST_TAR_FORMAT=v7
38055 export TEST_TAR_FORMAT
38056 TAR_OPTIONS="-H v7"
38057 export TAR_OPTIONS
38058 rm -rf *
38059
38060 genfile --file foo --length 50000k
38061 genfile --file baz
38062 genfile --run --checkpoint 10 --length 1024 --append foo -- tar --checkpoint -vcf bar foo baz
38063 ) ) >"$at_stdout" 2>"$at_stder1"
38064   at_func_filter_trace $?
38065 else
38066   ( :;
38067 mkdir v7
38068 (cd v7
38069 TEST_TAR_FORMAT=v7
38070 export TEST_TAR_FORMAT
38071 TAR_OPTIONS="-H v7"
38072 export TAR_OPTIONS
38073 rm -rf *
38074
38075 genfile --file foo --length 50000k
38076 genfile --file baz
38077 genfile --run --checkpoint 10 --length 1024 --append foo -- tar --checkpoint -vcf bar foo baz
38078 ) ) >"$at_stdout" 2>"$at_stderr"
38079 fi
38080 at_status=$?
38081 at_failed=false
38082 echo >>"$at_stderr"; $as_echo "tar: foo: file changed as we read it
38083 " | \
38084   $at_diff - "$at_stderr" || at_failed=:
38085 echo >>"$at_stdout"; $as_echo "foo
38086 baz
38087 " | \
38088   $at_diff - "$at_stdout" || at_failed=:
38089 at_func_check_status 1 $at_status "$at_srcdir/grow.at:27"
38090
38091 $at_failed && at_func_log_failure
38092 $at_traceon; }
38093
38094               { $at_traceoff
38095 $as_echo "$at_srcdir/grow.at:27:
38096 mkdir oldgnu
38097 (cd oldgnu
38098 TEST_TAR_FORMAT=oldgnu
38099 export TEST_TAR_FORMAT
38100 TAR_OPTIONS=\"-H oldgnu\"
38101 export TAR_OPTIONS
38102 rm -rf *
38103
38104 genfile --file foo --length 50000k
38105 genfile --file baz
38106 genfile --run --checkpoint 10 --length 1024 --append foo -- tar --checkpoint -vcf bar foo baz
38107 )"
38108 echo grow.at:27 >"$at_check_line_file"
38109
38110 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
38111    false; }; then
38112   ( $at_traceon;
38113 mkdir oldgnu
38114 (cd oldgnu
38115 TEST_TAR_FORMAT=oldgnu
38116 export TEST_TAR_FORMAT
38117 TAR_OPTIONS="-H oldgnu"
38118 export TAR_OPTIONS
38119 rm -rf *
38120
38121 genfile --file foo --length 50000k
38122 genfile --file baz
38123 genfile --run --checkpoint 10 --length 1024 --append foo -- tar --checkpoint -vcf bar foo baz
38124 ) ) >"$at_stdout" 2>"$at_stder1"
38125   at_func_filter_trace $?
38126 else
38127   ( :;
38128 mkdir oldgnu
38129 (cd oldgnu
38130 TEST_TAR_FORMAT=oldgnu
38131 export TEST_TAR_FORMAT
38132 TAR_OPTIONS="-H oldgnu"
38133 export TAR_OPTIONS
38134 rm -rf *
38135
38136 genfile --file foo --length 50000k
38137 genfile --file baz
38138 genfile --run --checkpoint 10 --length 1024 --append foo -- tar --checkpoint -vcf bar foo baz
38139 ) ) >"$at_stdout" 2>"$at_stderr"
38140 fi
38141 at_status=$?
38142 at_failed=false
38143 echo >>"$at_stderr"; $as_echo "tar: foo: file changed as we read it
38144 " | \
38145   $at_diff - "$at_stderr" || at_failed=:
38146 echo >>"$at_stdout"; $as_echo "foo
38147 baz
38148 " | \
38149   $at_diff - "$at_stdout" || at_failed=:
38150 at_func_check_status 1 $at_status "$at_srcdir/grow.at:27"
38151
38152 $at_failed && at_func_log_failure
38153 $at_traceon; }
38154
38155               { $at_traceoff
38156 $as_echo "$at_srcdir/grow.at:27:
38157 mkdir ustar
38158 (cd ustar
38159 TEST_TAR_FORMAT=ustar
38160 export TEST_TAR_FORMAT
38161 TAR_OPTIONS=\"-H ustar\"
38162 export TAR_OPTIONS
38163 rm -rf *
38164
38165 genfile --file foo --length 50000k
38166 genfile --file baz
38167 genfile --run --checkpoint 10 --length 1024 --append foo -- tar --checkpoint -vcf bar foo baz
38168 )"
38169 echo grow.at:27 >"$at_check_line_file"
38170
38171 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
38172    false; }; then
38173   ( $at_traceon;
38174 mkdir ustar
38175 (cd ustar
38176 TEST_TAR_FORMAT=ustar
38177 export TEST_TAR_FORMAT
38178 TAR_OPTIONS="-H ustar"
38179 export TAR_OPTIONS
38180 rm -rf *
38181
38182 genfile --file foo --length 50000k
38183 genfile --file baz
38184 genfile --run --checkpoint 10 --length 1024 --append foo -- tar --checkpoint -vcf bar foo baz
38185 ) ) >"$at_stdout" 2>"$at_stder1"
38186   at_func_filter_trace $?
38187 else
38188   ( :;
38189 mkdir ustar
38190 (cd ustar
38191 TEST_TAR_FORMAT=ustar
38192 export TEST_TAR_FORMAT
38193 TAR_OPTIONS="-H ustar"
38194 export TAR_OPTIONS
38195 rm -rf *
38196
38197 genfile --file foo --length 50000k
38198 genfile --file baz
38199 genfile --run --checkpoint 10 --length 1024 --append foo -- tar --checkpoint -vcf bar foo baz
38200 ) ) >"$at_stdout" 2>"$at_stderr"
38201 fi
38202 at_status=$?
38203 at_failed=false
38204 echo >>"$at_stderr"; $as_echo "tar: foo: file changed as we read it
38205 " | \
38206   $at_diff - "$at_stderr" || at_failed=:
38207 echo >>"$at_stdout"; $as_echo "foo
38208 baz
38209 " | \
38210   $at_diff - "$at_stdout" || at_failed=:
38211 at_func_check_status 1 $at_status "$at_srcdir/grow.at:27"
38212
38213 $at_failed && at_func_log_failure
38214 $at_traceon; }
38215
38216               { $at_traceoff
38217 $as_echo "$at_srcdir/grow.at:27:
38218 mkdir posix
38219 (cd posix
38220 TEST_TAR_FORMAT=posix
38221 export TEST_TAR_FORMAT
38222 TAR_OPTIONS=\"-H posix\"
38223 export TAR_OPTIONS
38224 rm -rf *
38225
38226 genfile --file foo --length 50000k
38227 genfile --file baz
38228 genfile --run --checkpoint 10 --length 1024 --append foo -- tar --checkpoint -vcf bar foo baz
38229 )"
38230 echo grow.at:27 >"$at_check_line_file"
38231
38232 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
38233    false; }; then
38234   ( $at_traceon;
38235 mkdir posix
38236 (cd posix
38237 TEST_TAR_FORMAT=posix
38238 export TEST_TAR_FORMAT
38239 TAR_OPTIONS="-H posix"
38240 export TAR_OPTIONS
38241 rm -rf *
38242
38243 genfile --file foo --length 50000k
38244 genfile --file baz
38245 genfile --run --checkpoint 10 --length 1024 --append foo -- tar --checkpoint -vcf bar foo baz
38246 ) ) >"$at_stdout" 2>"$at_stder1"
38247   at_func_filter_trace $?
38248 else
38249   ( :;
38250 mkdir posix
38251 (cd posix
38252 TEST_TAR_FORMAT=posix
38253 export TEST_TAR_FORMAT
38254 TAR_OPTIONS="-H posix"
38255 export TAR_OPTIONS
38256 rm -rf *
38257
38258 genfile --file foo --length 50000k
38259 genfile --file baz
38260 genfile --run --checkpoint 10 --length 1024 --append foo -- tar --checkpoint -vcf bar foo baz
38261 ) ) >"$at_stdout" 2>"$at_stderr"
38262 fi
38263 at_status=$?
38264 at_failed=false
38265 echo >>"$at_stderr"; $as_echo "tar: foo: file changed as we read it
38266 " | \
38267   $at_diff - "$at_stderr" || at_failed=:
38268 echo >>"$at_stdout"; $as_echo "foo
38269 baz
38270 " | \
38271   $at_diff - "$at_stdout" || at_failed=:
38272 at_func_check_status 1 $at_status "$at_srcdir/grow.at:27"
38273
38274 $at_failed && at_func_log_failure
38275 $at_traceon; }
38276
38277               { $at_traceoff
38278 $as_echo "$at_srcdir/grow.at:27:
38279 mkdir gnu
38280 (cd gnu
38281 TEST_TAR_FORMAT=gnu
38282 export TEST_TAR_FORMAT
38283 TAR_OPTIONS=\"-H gnu\"
38284 export TAR_OPTIONS
38285 rm -rf *
38286
38287 genfile --file foo --length 50000k
38288 genfile --file baz
38289 genfile --run --checkpoint 10 --length 1024 --append foo -- tar --checkpoint -vcf bar foo baz
38290 )"
38291 echo grow.at:27 >"$at_check_line_file"
38292
38293 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
38294    false; }; then
38295   ( $at_traceon;
38296 mkdir gnu
38297 (cd gnu
38298 TEST_TAR_FORMAT=gnu
38299 export TEST_TAR_FORMAT
38300 TAR_OPTIONS="-H gnu"
38301 export TAR_OPTIONS
38302 rm -rf *
38303
38304 genfile --file foo --length 50000k
38305 genfile --file baz
38306 genfile --run --checkpoint 10 --length 1024 --append foo -- tar --checkpoint -vcf bar foo baz
38307 ) ) >"$at_stdout" 2>"$at_stder1"
38308   at_func_filter_trace $?
38309 else
38310   ( :;
38311 mkdir gnu
38312 (cd gnu
38313 TEST_TAR_FORMAT=gnu
38314 export TEST_TAR_FORMAT
38315 TAR_OPTIONS="-H gnu"
38316 export TAR_OPTIONS
38317 rm -rf *
38318
38319 genfile --file foo --length 50000k
38320 genfile --file baz
38321 genfile --run --checkpoint 10 --length 1024 --append foo -- tar --checkpoint -vcf bar foo baz
38322 ) ) >"$at_stdout" 2>"$at_stderr"
38323 fi
38324 at_status=$?
38325 at_failed=false
38326 echo >>"$at_stderr"; $as_echo "tar: foo: file changed as we read it
38327 " | \
38328   $at_diff - "$at_stderr" || at_failed=:
38329 echo >>"$at_stdout"; $as_echo "foo
38330 baz
38331 " | \
38332   $at_diff - "$at_stdout" || at_failed=:
38333 at_func_check_status 1 $at_status "$at_srcdir/grow.at:27"
38334
38335 $at_failed && at_func_log_failure
38336 $at_traceon; }
38337
38338
38339
38340
38341   $at_traceoff
38342   $at_times_p && times >"$at_times_file"
38343 ) 5>&1 2>&1 | eval $at_tee_pipe
38344 at_status=`cat "$at_status_file"`
38345 #AT_STOP_108
38346 #AT_START_109
38347 # 109. remfiles01.at:28: remove-files with compression
38348 at_setup_line='remfiles01.at:28'
38349 at_desc="remove-files with compression"
38350 $at_quiet $as_echo_n "109: $at_desc                  "
38351 at_xfail=no
38352 echo "#                             -*- compilation -*-" >> "$at_group_log"
38353 (
38354   $as_echo "109. remfiles01.at:28: testing ..."
38355   $at_traceon
38356
38357
38358
38359 unset TAR_OPTIONS
38360 { $at_traceoff
38361 $as_echo "$at_srcdir/remfiles01.at:32:
38362
38363 echo "test" > $$
38364 chmod 0 $$
38365 cat $$ > /dev/null 2>&1
38366 result=$?
38367 rm -f $$
38368 test $result -eq 0 && exit 77
38369
38370
38371 cat /dev/null | gzip - > /dev/null 2>&1 || exit 77
38372
38373
38374 test -z "`sort < /dev/null 2>&1`" || exit 77
38375
38376
38377 mkdir dir
38378 cd dir
38379 genfile --file a --length 0
38380 chmod 0 a
38381 genfile --file b
38382 mkdir c
38383
38384 # Depending on when the SIGPIPE gets delivered, the invocation below
38385 # may finish with either
38386 #  tar: a: Cannot write: Broken pipe
38387 # or
38388 #  tar: Child returned status 2
38389
38390 # Discard diagnostics that some shells generate about broken pipes,
38391 # and discard all of tar's diagnostics except for the ones saying \"(child)\".
38392 # Gzip's exit code is propagated to the shell.  Usually it is 141.
38393 # Convert all non-zero exits to 2 to make it predictable.
38394 (tar -c -f a -z --remove-files b c 2>err || (exit 2) ) 2>/dev/null
38395 EC=\$?
38396 sed -n '/(child)/p' err >&2
38397 rm err
38398 find . | sort
38399 exit \$EC
38400 "
38401 echo remfiles01.at:32 >"$at_check_line_file"
38402
38403 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
38404    false; }; then
38405   ( $at_traceon;
38406
38407 echo "test" > $$
38408 chmod 0 $$
38409 cat $$ > /dev/null 2>&1
38410 result=$?
38411 rm -f $$
38412 test $result -eq 0 && exit 77
38413
38414
38415 cat /dev/null | gzip - > /dev/null 2>&1 || exit 77
38416
38417
38418 test -z "`sort < /dev/null 2>&1`" || exit 77
38419
38420
38421 mkdir dir
38422 cd dir
38423 genfile --file a --length 0
38424 chmod 0 a
38425 genfile --file b
38426 mkdir c
38427
38428 # Depending on when the SIGPIPE gets delivered, the invocation below
38429 # may finish with either
38430 #  tar: a: Cannot write: Broken pipe
38431 # or
38432 #  tar: Child returned status 2
38433
38434 # Discard diagnostics that some shells generate about broken pipes,
38435 # and discard all of tar's diagnostics except for the ones saying "(child)".
38436 # Gzip's exit code is propagated to the shell.  Usually it is 141.
38437 # Convert all non-zero exits to 2 to make it predictable.
38438 (tar -c -f a -z --remove-files b c 2>err || (exit 2) ) 2>/dev/null
38439 EC=$?
38440 sed -n '/(child)/p' err >&2
38441 rm err
38442 find . | sort
38443 exit $EC
38444  ) >"$at_stdout" 2>"$at_stder1"
38445   at_func_filter_trace $?
38446 else
38447   ( :;
38448
38449 echo "test" > $$
38450 chmod 0 $$
38451 cat $$ > /dev/null 2>&1
38452 result=$?
38453 rm -f $$
38454 test $result -eq 0 && exit 77
38455
38456
38457 cat /dev/null | gzip - > /dev/null 2>&1 || exit 77
38458
38459
38460 test -z "`sort < /dev/null 2>&1`" || exit 77
38461
38462
38463 mkdir dir
38464 cd dir
38465 genfile --file a --length 0
38466 chmod 0 a
38467 genfile --file b
38468 mkdir c
38469
38470 # Depending on when the SIGPIPE gets delivered, the invocation below
38471 # may finish with either
38472 #  tar: a: Cannot write: Broken pipe
38473 # or
38474 #  tar: Child returned status 2
38475
38476 # Discard diagnostics that some shells generate about broken pipes,
38477 # and discard all of tar's diagnostics except for the ones saying "(child)".
38478 # Gzip's exit code is propagated to the shell.  Usually it is 141.
38479 # Convert all non-zero exits to 2 to make it predictable.
38480 (tar -c -f a -z --remove-files b c 2>err || (exit 2) ) 2>/dev/null
38481 EC=$?
38482 sed -n '/(child)/p' err >&2
38483 rm err
38484 find . | sort
38485 exit $EC
38486  ) >"$at_stdout" 2>"$at_stderr"
38487 fi
38488 at_status=$?
38489 at_failed=false
38490 echo >>"$at_stderr"; $as_echo "tar (child): a: Cannot open: Permission denied
38491 tar (child): Error is not recoverable: exiting now
38492 " | \
38493   $at_diff - "$at_stderr" || at_failed=:
38494 echo >>"$at_stdout"; $as_echo ".
38495 ./a
38496 ./b
38497 ./c
38498 " | \
38499   $at_diff - "$at_stdout" || at_failed=:
38500 at_func_check_status 2 $at_status "$at_srcdir/remfiles01.at:32"
38501
38502 $at_failed && at_func_log_failure
38503 $at_traceon; }
38504
38505
38506   $at_traceoff
38507   $at_times_p && times >"$at_times_file"
38508 ) 5>&1 2>&1 | eval $at_tee_pipe
38509 at_status=`cat "$at_status_file"`
38510 #AT_STOP_109
38511 #AT_START_110
38512 # 110. remfiles02.at:28: remove-files with compression: grand-child
38513 at_setup_line='remfiles02.at:28'
38514 at_desc="remove-files with compression: grand-child"
38515 $at_quiet $as_echo_n "110: $at_desc     "
38516 at_xfail=no
38517 echo "#                             -*- compilation -*-" >> "$at_group_log"
38518 (
38519   $as_echo "110. remfiles02.at:28: testing ..."
38520   $at_traceon
38521
38522
38523
38524 unset TAR_OPTIONS
38525 { $at_traceoff
38526 $as_echo "$at_srcdir/remfiles02.at:32:
38527
38528 cat /dev/null | gzip - > /dev/null 2>&1 || exit 77
38529
38530
38531 test -z "`sort < /dev/null 2>&1`" || exit 77
38532
38533
38534 mkdir dir
38535 cd dir
38536 mkdir a
38537 genfile --file b
38538 mkdir c
38539
38540 tar -c -f a -z --remove-files b c 2>err
38541 EC=\$?
38542 sed -n '/(child)/p' err >&2
38543 rm err
38544 find . | sort
38545 exit \$EC
38546 "
38547 echo remfiles02.at:32 >"$at_check_line_file"
38548
38549 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
38550    false; }; then
38551   ( $at_traceon;
38552
38553 cat /dev/null | gzip - > /dev/null 2>&1 || exit 77
38554
38555
38556 test -z "`sort < /dev/null 2>&1`" || exit 77
38557
38558
38559 mkdir dir
38560 cd dir
38561 mkdir a
38562 genfile --file b
38563 mkdir c
38564
38565 tar -c -f a -z --remove-files b c 2>err
38566 EC=$?
38567 sed -n '/(child)/p' err >&2
38568 rm err
38569 find . | sort
38570 exit $EC
38571  ) >"$at_stdout" 2>"$at_stder1"
38572   at_func_filter_trace $?
38573 else
38574   ( :;
38575
38576 cat /dev/null | gzip - > /dev/null 2>&1 || exit 77
38577
38578
38579 test -z "`sort < /dev/null 2>&1`" || exit 77
38580
38581
38582 mkdir dir
38583 cd dir
38584 mkdir a
38585 genfile --file b
38586 mkdir c
38587
38588 tar -c -f a -z --remove-files b c 2>err
38589 EC=$?
38590 sed -n '/(child)/p' err >&2
38591 rm err
38592 find . | sort
38593 exit $EC
38594  ) >"$at_stdout" 2>"$at_stderr"
38595 fi
38596 at_status=$?
38597 at_failed=false
38598 echo >>"$at_stderr"; $as_echo "tar (child): a: Cannot open: Is a directory
38599 tar (child): Error is not recoverable: exiting now
38600 " | \
38601   $at_diff - "$at_stderr" || at_failed=:
38602 echo >>"$at_stdout"; $as_echo ".
38603 ./a
38604 ./b
38605 ./c
38606 " | \
38607   $at_diff - "$at_stdout" || at_failed=:
38608 at_func_check_status 2 $at_status "$at_srcdir/remfiles02.at:32"
38609
38610 $at_failed && at_func_log_failure
38611 $at_traceon; }
38612
38613
38614   $at_traceoff
38615   $at_times_p && times >"$at_times_file"
38616 ) 5>&1 2>&1 | eval $at_tee_pipe
38617 at_status=`cat "$at_status_file"`
38618 #AT_STOP_110
38619 #AT_START_111
38620 # 111. remfiles03.at:28: remove-files with symbolic links
38621 at_setup_line='remfiles03.at:28'
38622 at_desc="remove-files with symbolic links"
38623 $at_quiet $as_echo_n "111: $at_desc               "
38624 at_xfail=no
38625 echo "#                             -*- compilation -*-" >> "$at_group_log"
38626 (
38627   $as_echo "111. remfiles03.at:28: testing ..."
38628   $at_traceon
38629
38630
38631
38632 { $at_traceoff
38633 $as_echo "$at_srcdir/remfiles03.at:31:
38634 mkdir a
38635 mkdir a/b
38636 ln -s b a/c || exit 77
38637 tar --remove-files -cf a.tar a
38638 genfile --stat a
38639 "
38640 echo remfiles03.at:31 >"$at_check_line_file"
38641
38642 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
38643    false; }; then
38644   ( $at_traceon;
38645 mkdir a
38646 mkdir a/b
38647 ln -s b a/c || exit 77
38648 tar --remove-files -cf a.tar a
38649 genfile --stat a
38650  ) >"$at_stdout" 2>"$at_stder1"
38651   at_func_filter_trace $?
38652 else
38653   ( :;
38654 mkdir a
38655 mkdir a/b
38656 ln -s b a/c || exit 77
38657 tar --remove-files -cf a.tar a
38658 genfile --stat a
38659  ) >"$at_stdout" 2>"$at_stderr"
38660 fi
38661 at_status=$?
38662 at_failed=false
38663 echo >>"$at_stderr"; $as_echo "genfile: stat(a) failed: No such file or directory
38664 " | \
38665   $at_diff - "$at_stderr" || at_failed=:
38666 at_func_diff_devnull "$at_stdout" || at_failed=:
38667 at_func_check_status 0 $at_status "$at_srcdir/remfiles03.at:31"
38668
38669 $at_failed && at_func_log_failure
38670 $at_traceon; }
38671
38672
38673   $at_traceoff
38674   $at_times_p && times >"$at_times_file"
38675 ) 5>&1 2>&1 | eval $at_tee_pipe
38676 at_status=`cat "$at_status_file"`
38677 #AT_STOP_111
38678 #AT_START_112
38679 # 112. sigpipe.at:19: sigpipe handling
38680 at_setup_line='sigpipe.at:19'
38681 at_desc="sigpipe handling"
38682 $at_quiet $as_echo_n "112: $at_desc                               "
38683 at_xfail=no
38684 echo "#                             -*- compilation -*-" >> "$at_group_log"
38685 (
38686   $as_echo "112. sigpipe.at:19: testing ..."
38687   $at_traceon
38688
38689
38690
38691 # Description: Tar 1.23 ignored sigpipe which lead to spurious "write
38692 # error" diagnostics when piping output to another programs.
38693 # Reported-by: "Dmitry V. Levin" <ldv@altlinux.org>
38694 # References: http://lists.gnu.org/archive/html/bug-tar/2010-03/msg00039.html
38695 #             <20100319184141.GC30047@wo.int.altlinux.org>
38696
38697 { $at_traceoff
38698 $as_echo "$at_srcdir/sigpipe.at:28:
38699 genfile --length 2048 --file first
38700 genfile --length 2048 --file second
38701 genfile --length 2049 --file third
38702
38703 tar cf archive first second third
38704
38705 # Discard diagnostics that some shells generate about broken pipes.
38706 (tar tf archive 2>&3 | :) 3>&2 2>/dev/null
38707 "
38708 echo sigpipe.at:28 >"$at_check_line_file"
38709
38710 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
38711    false; }; then
38712   ( $at_traceon;
38713 genfile --length 2048 --file first
38714 genfile --length 2048 --file second
38715 genfile --length 2049 --file third
38716
38717 tar cf archive first second third
38718
38719 # Discard diagnostics that some shells generate about broken pipes.
38720 (tar tf archive 2>&3 | :) 3>&2 2>/dev/null
38721  ) >"$at_stdout" 2>"$at_stder1"
38722   at_func_filter_trace $?
38723 else
38724   ( :;
38725 genfile --length 2048 --file first
38726 genfile --length 2048 --file second
38727 genfile --length 2049 --file third
38728
38729 tar cf archive first second third
38730
38731 # Discard diagnostics that some shells generate about broken pipes.
38732 (tar tf archive 2>&3 | :) 3>&2 2>/dev/null
38733  ) >"$at_stdout" 2>"$at_stderr"
38734 fi
38735 at_status=$?
38736 at_failed=false
38737 at_func_diff_devnull "$at_stderr" || at_failed=:
38738 at_func_diff_devnull "$at_stdout" || at_failed=:
38739 at_func_check_status 0 $at_status "$at_srcdir/sigpipe.at:28"
38740
38741 $at_failed && at_func_log_failure
38742 $at_traceon; }
38743
38744
38745   $at_traceoff
38746   $at_times_p && times >"$at_times_file"
38747 ) 5>&1 2>&1 | eval $at_tee_pipe
38748 at_status=`cat "$at_status_file"`
38749 #AT_STOP_112
38750 #AT_START_113
38751 # 113. gtarfail.at:21: gtarfail
38752 at_setup_line='gtarfail.at:21'
38753 at_desc="gtarfail"
38754 $at_quiet $as_echo_n "113: $at_desc                                       "
38755 at_xfail=no
38756 echo "#                             -*- compilation -*-" >> "$at_group_log"
38757 (
38758   $as_echo "113. gtarfail.at:21: testing ..."
38759   $at_traceon
38760
38761
38762
38763 unset TAR_OPTIONS
38764
38765 { $at_traceoff
38766 $as_echo "$at_srcdir/gtarfail.at:26:
38767
38768 test -z "$STAR_TESTSCRIPTS" && exit 77
38769 tarball_prereq gtarfail.tar bf7612e401aaa679edbb07ae1183811b $STAR_TESTSCRIPTS $STAR_DATA_URL || exit 77
38770
38771
38772 tar --utc -tvf \$STAR_TESTSCRIPTS/gtarfail.tar
38773 "
38774 echo gtarfail.at:26 >"$at_check_line_file"
38775
38776 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
38777    false; }; then
38778   ( $at_traceon;
38779
38780 test -z "$STAR_TESTSCRIPTS" && exit 77
38781 tarball_prereq gtarfail.tar bf7612e401aaa679edbb07ae1183811b $STAR_TESTSCRIPTS $STAR_DATA_URL || exit 77
38782
38783
38784 tar --utc -tvf $STAR_TESTSCRIPTS/gtarfail.tar
38785  ) >"$at_stdout" 2>"$at_stder1"
38786   at_func_filter_trace $?
38787 else
38788   ( :;
38789
38790 test -z "$STAR_TESTSCRIPTS" && exit 77
38791 tarball_prereq gtarfail.tar bf7612e401aaa679edbb07ae1183811b $STAR_TESTSCRIPTS $STAR_DATA_URL || exit 77
38792
38793
38794 tar --utc -tvf $STAR_TESTSCRIPTS/gtarfail.tar
38795  ) >"$at_stdout" 2>"$at_stderr"
38796 fi
38797 at_status=$?
38798 at_failed=false
38799 at_func_diff_devnull "$at_stderr" || at_failed=:
38800 echo >>"$at_stdout"; $as_echo "-rw-r--r-- jes/glone       518 2001-05-25 14:41 vedpowered.gif
38801 -rw-r--r-- jes/glone      6825 1997-04-29 00:19 cd.gif
38802 -rw-r--r-- jes/glone     33354 1999-06-22 12:17 DSCN0049c.JPG
38803 -rw-r--r-- jes/glone     86159 2001-06-05 18:16 Window1.jpg
38804 -rw-r--r-- jes/glone      1310 2001-05-25 13:05 vipower.gif
38805 -rw-rw-rw- jes/glone    148753 1998-09-15 13:08 billyboy.jpg
38806 " | \
38807   $at_diff - "$at_stdout" || at_failed=:
38808 at_func_check_status 0 $at_status "$at_srcdir/gtarfail.at:26"
38809
38810 $at_failed && at_func_log_failure
38811 $at_traceon; }
38812
38813
38814   $at_traceoff
38815   $at_times_p && times >"$at_times_file"
38816 ) 5>&1 2>&1 | eval $at_tee_pipe
38817 at_status=`cat "$at_status_file"`
38818 #AT_STOP_113
38819 #AT_START_114
38820 # 114. gtarfail2.at:21: gtarfail2
38821 at_setup_line='gtarfail2.at:21'
38822 at_desc="gtarfail2"
38823 $at_quiet $as_echo_n "114: $at_desc                                      "
38824 at_xfail=no
38825 echo "#                             -*- compilation -*-" >> "$at_group_log"
38826 (
38827   $as_echo "114. gtarfail2.at:21: testing ..."
38828   $at_traceon
38829
38830
38831
38832 unset TAR_OPTIONS
38833
38834 { $at_traceoff
38835 $as_echo "$at_srcdir/gtarfail2.at:26:
38836
38837 test -z "$STAR_TESTSCRIPTS" && exit 77
38838 tarball_prereq gtarfail2.tar 6b607d1faec14b82f69525d9c5b66e53 $STAR_TESTSCRIPTS $STAR_DATA_URL || exit 77
38839
38840 tar --utc -tvf \$STAR_TESTSCRIPTS/gtarfail2.tar
38841 "
38842 echo gtarfail2.at:26 >"$at_check_line_file"
38843
38844 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
38845    false; }; then
38846   ( $at_traceon;
38847
38848 test -z "$STAR_TESTSCRIPTS" && exit 77
38849 tarball_prereq gtarfail2.tar 6b607d1faec14b82f69525d9c5b66e53 $STAR_TESTSCRIPTS $STAR_DATA_URL || exit 77
38850
38851 tar --utc -tvf $STAR_TESTSCRIPTS/gtarfail2.tar
38852  ) >"$at_stdout" 2>"$at_stder1"
38853   at_func_filter_trace $?
38854 else
38855   ( :;
38856
38857 test -z "$STAR_TESTSCRIPTS" && exit 77
38858 tarball_prereq gtarfail2.tar 6b607d1faec14b82f69525d9c5b66e53 $STAR_TESTSCRIPTS $STAR_DATA_URL || exit 77
38859
38860 tar --utc -tvf $STAR_TESTSCRIPTS/gtarfail2.tar
38861  ) >"$at_stdout" 2>"$at_stderr"
38862 fi
38863 at_status=$?
38864 at_failed=false
38865 at_func_diff_devnull "$at_stderr" || at_failed=:
38866 echo >>"$at_stdout"; $as_echo "-rwxr-xr-x jes/glone       214 2001-09-21 14:08 .clean
38867 lrwxrwxrwx jes/cats          0 1998-05-07 12:39 RULES -> makefiles/RULES
38868 drwxr-sr-x jes/glone         0 2001-12-10 00:00 build/
38869 -rw-r--r-- jes/glone    312019 2001-12-10 00:00 build/smake-1.2.tar.gz
38870 drwxr-sr-x jes/glone         0 2001-11-09 18:20 build/psmake/
38871 -rwxr-xr-x jes/glone       259 2000-01-09 16:36 build/psmake/MAKE
38872 -rwxr-xr-x jes/glone      4820 2001-02-25 22:45 build/psmake/MAKE.sh
38873 -rw-r--r-- jes/glone       647 2001-02-25 23:50 build/psmake/Makefile
38874 lrwxrwxrwx jes/glone         0 2001-08-29 10:53 build/psmake/archconf.c -> ../archconf.c
38875 lrwxrwxrwx jes/glone         0 2001-08-29 10:54 build/psmake/astoi.c -> ../../lib/astoi.c
38876 " | \
38877   $at_diff - "$at_stdout" || at_failed=:
38878 at_func_check_status 0 $at_status "$at_srcdir/gtarfail2.at:26"
38879
38880 $at_failed && at_func_log_failure
38881 $at_traceon; }
38882
38883
38884   $at_traceoff
38885   $at_times_p && times >"$at_times_file"
38886 ) 5>&1 2>&1 | eval $at_tee_pipe
38887 at_status=`cat "$at_status_file"`
38888 #AT_STOP_114
38889 #AT_START_115
38890 # 115. multi-fail.at:21: multi-fail
38891 at_setup_line='multi-fail.at:21'
38892 at_desc="multi-fail"
38893 $at_quiet $as_echo_n "115: $at_desc                                     "
38894 at_xfail=no
38895 echo "#                             -*- compilation -*-" >> "$at_group_log"
38896 (
38897   $as_echo "115. multi-fail.at:21: testing ..."
38898   $at_traceon
38899
38900
38901
38902 unset TAR_OPTIONS
38903
38904 { $at_traceoff
38905 $as_echo "$at_srcdir/multi-fail.at:26:
38906
38907 test -z "$STAR_TESTSCRIPTS" && exit 77
38908 tarball_prereq gnu-multi-fail-volume1.gtar 7c28663dd98b0bd91ceb4be7af55254e $STAR_TESTSCRIPTS $STAR_DATA_URL || exit 77
38909
38910
38911 test -z "$STAR_TESTSCRIPTS" && exit 77
38912 tarball_prereq gnu-multi-fail-volume2.gtar b5d41c4c3ec440687d4a44957b5079a8 $STAR_TESTSCRIPTS $STAR_DATA_URL || exit 77
38913
38914
38915 tar --utc -tvM -f \$STAR_TESTSCRIPTS/gnu-multi-fail-volume1.gtar \\
38916                -f \$STAR_TESTSCRIPTS/gnu-multi-fail-volume2.gtar <&-
38917 "
38918 echo multi-fail.at:26 >"$at_check_line_file"
38919
38920 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
38921    false; }; then
38922   ( $at_traceon;
38923
38924 test -z "$STAR_TESTSCRIPTS" && exit 77
38925 tarball_prereq gnu-multi-fail-volume1.gtar 7c28663dd98b0bd91ceb4be7af55254e $STAR_TESTSCRIPTS $STAR_DATA_URL || exit 77
38926
38927
38928 test -z "$STAR_TESTSCRIPTS" && exit 77
38929 tarball_prereq gnu-multi-fail-volume2.gtar b5d41c4c3ec440687d4a44957b5079a8 $STAR_TESTSCRIPTS $STAR_DATA_URL || exit 77
38930
38931
38932 tar --utc -tvM -f $STAR_TESTSCRIPTS/gnu-multi-fail-volume1.gtar \
38933                -f $STAR_TESTSCRIPTS/gnu-multi-fail-volume2.gtar <&-
38934  ) >"$at_stdout" 2>"$at_stder1"
38935   at_func_filter_trace $?
38936 else
38937   ( :;
38938
38939 test -z "$STAR_TESTSCRIPTS" && exit 77
38940 tarball_prereq gnu-multi-fail-volume1.gtar 7c28663dd98b0bd91ceb4be7af55254e $STAR_TESTSCRIPTS $STAR_DATA_URL || exit 77
38941
38942
38943 test -z "$STAR_TESTSCRIPTS" && exit 77
38944 tarball_prereq gnu-multi-fail-volume2.gtar b5d41c4c3ec440687d4a44957b5079a8 $STAR_TESTSCRIPTS $STAR_DATA_URL || exit 77
38945
38946
38947 tar --utc -tvM -f $STAR_TESTSCRIPTS/gnu-multi-fail-volume1.gtar \
38948                -f $STAR_TESTSCRIPTS/gnu-multi-fail-volume2.gtar <&-
38949  ) >"$at_stdout" 2>"$at_stderr"
38950 fi
38951 at_status=$?
38952 at_failed=false
38953 at_func_diff_devnull "$at_stderr" || at_failed=:
38954 echo >>"$at_stdout"; $as_echo "drwxrwsr-x joerg/bs          0 2003-10-11 14:32 OBJ/i386-sunos5-gcc/
38955 -rw-r--r-- joerg/bs          1 2003-10-11 14:32 OBJ/i386-sunos5-gcc/Dnull
38956 -rw-r--r-- joerg/bs       1743 2003-10-10 18:06 OBJ/i386-sunos5-gcc/star.d
38957 -rw-r--r-- joerg/bs       1460 2003-10-11 11:53 OBJ/i386-sunos5-gcc/header.d
38958 -rw-r--r-- joerg/bs       1540 2003-10-10 18:06 OBJ/i386-sunos5-gcc/cpiohdr.d
38959 -rw-r--r-- joerg/bs       2245 2003-10-10 18:06 OBJ/i386-sunos5-gcc/xheader.d
38960 -rw-r--r-- joerg/bs       1254 2003-10-10 18:06 OBJ/i386-sunos5-gcc/xattr.d
38961 -rw-r--r-- joerg/bs       1330 2003-10-10 18:06 OBJ/i386-sunos5-gcc/list.d
38962 -rw-r--r-- joerg/bs       1745 2003-10-10 18:06 OBJ/i386-sunos5-gcc/extract.d
38963 -rw-r--r-- joerg/bs       1518 2003-10-10 18:06 OBJ/i386-sunos5-gcc/create.d
38964 -rw-r--r-- joerg/bs       1235 2003-10-10 18:06 OBJ/i386-sunos5-gcc/append.d
38965 -rw-r--r-- joerg/bs       1368 2003-10-10 18:06 OBJ/i386-sunos5-gcc/diff.d
38966 -rw-r--r-- joerg/bs       1423 2003-10-10 18:06 OBJ/i386-sunos5-gcc/remove.d
38967 -rw-r--r-- joerg/bs       1493 2003-10-10 18:07 OBJ/i386-sunos5-gcc/star_unix.d
38968 -rw-r--r-- joerg/bs       1572 2003-10-10 18:07 OBJ/i386-sunos5-gcc/acl_unix.d
38969 -rw-r--r-- joerg/bs       1453 2003-10-10 18:07 OBJ/i386-sunos5-gcc/fflags.d
38970 -rw-r--r-- joerg/bs       2257 2003-10-11 14:32 OBJ/i386-sunos5-gcc/buffer.d
38971 -rw-r--r-- joerg/bs        969 2003-10-07 17:53 OBJ/i386-sunos5-gcc/dirtime.d
38972 -rw-r--r-- joerg/bs       1308 2003-10-10 18:07 OBJ/i386-sunos5-gcc/lhash.d
38973 -rw-r--r-- joerg/bs       1287 2003-10-10 18:07 OBJ/i386-sunos5-gcc/hole.d
38974 -rw-r--r-- joerg/bs       1105 2003-10-10 18:07 OBJ/i386-sunos5-gcc/longnames.d
38975 -rw-r--r-- joerg/bs       1230 2003-10-10 18:07 OBJ/i386-sunos5-gcc/names.d
38976 -rw-r--r-- joerg/bs       1091 2003-10-10 18:07 OBJ/i386-sunos5-gcc/movearch.d
38977 -rw-r--r-- joerg/bs        961 2003-10-07 17:53 OBJ/i386-sunos5-gcc/table.d
38978 -rw-r--r-- joerg/bs       1113 2003-10-10 18:07 OBJ/i386-sunos5-gcc/props.d
38979 -rw-r--r-- joerg/bs       2146 2003-10-10 18:07 OBJ/i386-sunos5-gcc/fetchdir.d
38980 -rw-r--r-- joerg/bs       1093 2003-10-10 18:07 OBJ/i386-sunos5-gcc/unicode.d
38981 -rw-r--r-- joerg/bs       1211 2003-10-10 18:07 OBJ/i386-sunos5-gcc/subst.d
38982 -rw-r--r-- joerg/bs       2076 2003-10-11 11:53 OBJ/i386-sunos5-gcc/volhdr.d
38983 -rw-r--r-- joerg/bs       1480 2003-10-10 18:07 OBJ/i386-sunos5-gcc/chdir.d
38984 -rw-r--r-- joerg/bs      42460 2003-10-10 18:07 OBJ/i386-sunos5-gcc/star.o
38985 -rw-r--r-- joerg/bs      22564 2003-10-11 11:53 OBJ/i386-sunos5-gcc/header.o
38986 -rw-r--r-- joerg/bs       7880 2003-10-10 18:07 OBJ/i386-sunos5-gcc/cpiohdr.o
38987 -rw-r--r-- joerg/bs      14624 2003-10-10 18:07 OBJ/i386-sunos5-gcc/xheader.o
38988 -rw-r--r-- joerg/bs        924 2003-10-10 18:07 OBJ/i386-sunos5-gcc/xattr.o
38989 -rw-r--r-- joerg/bs       6120 2003-10-10 18:07 OBJ/i386-sunos5-gcc/list.o
38990 -rw-r--r-- joerg/bs      12764 2003-10-10 18:07 OBJ/i386-sunos5-gcc/extract.o
38991 -rw-r--r-- joerg/bs      14668 2003-10-10 18:07 OBJ/i386-sunos5-gcc/create.o
38992 -rw-r--r-- joerg/bs       2576 2003-10-10 18:07 OBJ/i386-sunos5-gcc/append.o
38993 -rw-r--r-- joerg/bs       7636 2003-10-10 18:07 OBJ/i386-sunos5-gcc/diff.o
38994 -rw-r--r-- joerg/bs       3072 2003-10-10 18:07 OBJ/i386-sunos5-gcc/remove.o
38995 -rw-r--r-- joerg/bs       5612 2003-10-10 18:07 OBJ/i386-sunos5-gcc/star_unix.o
38996 -rw-r--r-- joerg/bs       6220 2003-10-10 18:07 OBJ/i386-sunos5-gcc/acl_unix.o
38997 -rw-r--r-- joerg/bs       1092 2003-10-10 18:07 OBJ/i386-sunos5-gcc/fflags.o
38998 -rw-r--r-- joerg/bs      20996 2003-10-11 14:32 OBJ/i386-sunos5-gcc/buffer.o
38999 -rw-r--r-- joerg/bs       2060 2003-10-07 17:53 OBJ/i386-sunos5-gcc/dirtime.o
39000 -rw-r--r-- joerg/bs       1664 2003-10-10 18:07 OBJ/i386-sunos5-gcc/lhash.o
39001 -rw-r--r-- joerg/bs      10564 2003-10-10 18:07 OBJ/i386-sunos5-gcc/hole.o
39002 -rw-r--r-- joerg/bs       3864 2003-10-10 18:07 OBJ/i386-sunos5-gcc/longnames.o
39003 -rw-r--r-- joerg/bs       2576 2003-10-10 18:07 OBJ/i386-sunos5-gcc/names.o
39004 -rw-r--r-- joerg/bs        952 2003-10-10 18:07 OBJ/i386-sunos5-gcc/movearch.o
39005 -rw-r--r-- joerg/bs       2756 2003-10-07 17:53 OBJ/i386-sunos5-gcc/table.o
39006 " | \
39007   $at_diff - "$at_stdout" || at_failed=:
39008 at_func_check_status 0 $at_status "$at_srcdir/multi-fail.at:26"
39009
39010 $at_failed && at_func_log_failure
39011 $at_traceon; }
39012
39013
39014   $at_traceoff
39015   $at_times_p && times >"$at_times_file"
39016 ) 5>&1 2>&1 | eval $at_tee_pipe
39017 at_status=`cat "$at_status_file"`
39018 #AT_STOP_115
39019 #AT_START_116
39020 # 116. ustar-big-2g.at:21: ustar-big-2g
39021 at_setup_line='ustar-big-2g.at:21'
39022 at_desc="ustar-big-2g"
39023 $at_quiet $as_echo_n "116: $at_desc                                   "
39024 at_xfail=no
39025 echo "#                             -*- compilation -*-" >> "$at_group_log"
39026 (
39027   $as_echo "116. ustar-big-2g.at:21: testing ..."
39028   $at_traceon
39029
39030
39031
39032 unset TAR_OPTIONS
39033
39034 { $at_traceoff
39035 $as_echo "$at_srcdir/ustar-big-2g.at:26:
39036
39037 cat /dev/null | bzip2 - > /dev/null 2>&1 || exit 77
39038
39039
39040 test -z "$STAR_TESTSCRIPTS" && exit 77
39041 tarball_prereq ustar-big-2g.tar.bz2 b63979733629c8fcdf40b60065422767 $STAR_TESTSCRIPTS $STAR_DATA_URL || exit 77
39042
39043
39044 tar --utc -tvjf \$STAR_TESTSCRIPTS/ustar-big-2g.tar.bz2
39045 "
39046 echo ustar-big-2g.at:26 >"$at_check_line_file"
39047
39048 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
39049    false; }; then
39050   ( $at_traceon;
39051
39052 cat /dev/null | bzip2 - > /dev/null 2>&1 || exit 77
39053
39054
39055 test -z "$STAR_TESTSCRIPTS" && exit 77
39056 tarball_prereq ustar-big-2g.tar.bz2 b63979733629c8fcdf40b60065422767 $STAR_TESTSCRIPTS $STAR_DATA_URL || exit 77
39057
39058
39059 tar --utc -tvjf $STAR_TESTSCRIPTS/ustar-big-2g.tar.bz2
39060  ) >"$at_stdout" 2>"$at_stder1"
39061   at_func_filter_trace $?
39062 else
39063   ( :;
39064
39065 cat /dev/null | bzip2 - > /dev/null 2>&1 || exit 77
39066
39067
39068 test -z "$STAR_TESTSCRIPTS" && exit 77
39069 tarball_prereq ustar-big-2g.tar.bz2 b63979733629c8fcdf40b60065422767 $STAR_TESTSCRIPTS $STAR_DATA_URL || exit 77
39070
39071
39072 tar --utc -tvjf $STAR_TESTSCRIPTS/ustar-big-2g.tar.bz2
39073  ) >"$at_stdout" 2>"$at_stderr"
39074 fi
39075 at_status=$?
39076 at_failed=false
39077 echo stderr:; tee stderr <"$at_stderr"
39078 echo >>"$at_stdout"; $as_echo "-rw------- jes/glone 2147483647 2002-06-15 14:53 big
39079 -rw-r--r-- jes/glone          0 2002-06-15 14:53 file
39080 " | \
39081   $at_diff - "$at_stdout" || at_failed=:
39082 at_func_check_status 0 $at_status "$at_srcdir/ustar-big-2g.at:26"
39083
39084 $at_failed && at_func_log_failure
39085 $at_traceon; }
39086
39087
39088
39089 cat >stderr.re <<'_ATEOF'
39090 tar: Record size = .*
39091 _ATEOF
39092
39093 awk '{print NR " " $0}' stderr > $$.1
39094 awk '{print NR " " $0}' stderr.re | join - $$.1 |
39095 while read NUM RE LINE
39096 do
39097   echo "$LINE" | grep -- "$RE" >/dev/null || exit 1
39098 done
39099
39100
39101   $at_traceoff
39102   $at_times_p && times >"$at_times_file"
39103 ) 5>&1 2>&1 | eval $at_tee_pipe
39104 at_status=`cat "$at_status_file"`
39105 #AT_STOP_116
39106 #AT_START_117
39107 # 117. ustar-big-8g.at:21: ustar-big-8g
39108 at_setup_line='ustar-big-8g.at:21'
39109 at_desc="ustar-big-8g"
39110 $at_quiet $as_echo_n "117: $at_desc                                   "
39111 at_xfail=no
39112 echo "#                             -*- compilation -*-" >> "$at_group_log"
39113 (
39114   $as_echo "117. ustar-big-8g.at:21: testing ..."
39115   $at_traceon
39116
39117
39118
39119 unset TAR_OPTIONS
39120
39121 { $at_traceoff
39122 $as_echo "$at_srcdir/ustar-big-8g.at:26:
39123
39124 cat /dev/null | bzip2 - > /dev/null 2>&1 || exit 77
39125
39126
39127 test -z "$STAR_TESTSCRIPTS" && exit 77
39128 tarball_prereq ustar-big-8g.tar.bz2 60ff503fa4b8288bef7ada89e9c91b0f $STAR_TESTSCRIPTS $STAR_DATA_URL || exit 77
39129
39130
39131 tar --utc -tvjf \$STAR_TESTSCRIPTS/ustar-big-8g.tar.bz2
39132 "
39133 echo ustar-big-8g.at:26 >"$at_check_line_file"
39134
39135 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
39136    false; }; then
39137   ( $at_traceon;
39138
39139 cat /dev/null | bzip2 - > /dev/null 2>&1 || exit 77
39140
39141
39142 test -z "$STAR_TESTSCRIPTS" && exit 77
39143 tarball_prereq ustar-big-8g.tar.bz2 60ff503fa4b8288bef7ada89e9c91b0f $STAR_TESTSCRIPTS $STAR_DATA_URL || exit 77
39144
39145
39146 tar --utc -tvjf $STAR_TESTSCRIPTS/ustar-big-8g.tar.bz2
39147  ) >"$at_stdout" 2>"$at_stder1"
39148   at_func_filter_trace $?
39149 else
39150   ( :;
39151
39152 cat /dev/null | bzip2 - > /dev/null 2>&1 || exit 77
39153
39154
39155 test -z "$STAR_TESTSCRIPTS" && exit 77
39156 tarball_prereq ustar-big-8g.tar.bz2 60ff503fa4b8288bef7ada89e9c91b0f $STAR_TESTSCRIPTS $STAR_DATA_URL || exit 77
39157
39158
39159 tar --utc -tvjf $STAR_TESTSCRIPTS/ustar-big-8g.tar.bz2
39160  ) >"$at_stdout" 2>"$at_stderr"
39161 fi
39162 at_status=$?
39163 at_failed=false
39164 echo stderr:; tee stderr <"$at_stderr"
39165 echo >>"$at_stdout"; $as_echo "-rw------- jes/glone 8589934591 2002-06-15 15:08 8gb-1
39166 -rw-r--r-- jes/glone          0 2002-06-15 14:53 file
39167 " | \
39168   $at_diff - "$at_stdout" || at_failed=:
39169 at_func_check_status 0 $at_status "$at_srcdir/ustar-big-8g.at:26"
39170
39171 $at_failed && at_func_log_failure
39172 $at_traceon; }
39173
39174
39175
39176 cat >stderr.re <<'_ATEOF'
39177 tar: Record size = .*
39178 _ATEOF
39179
39180 awk '{print NR " " $0}' stderr > $$.1
39181 awk '{print NR " " $0}' stderr.re | join - $$.1 |
39182 while read NUM RE LINE
39183 do
39184   echo "$LINE" | grep -- "$RE" >/dev/null || exit 1
39185 done
39186
39187
39188   $at_traceoff
39189   $at_times_p && times >"$at_times_file"
39190 ) 5>&1 2>&1 | eval $at_tee_pipe
39191 at_status=`cat "$at_status_file"`
39192 #AT_STOP_117
39193 #AT_START_118
39194 # 118. pax-big-10g.at:21: pax-big-10g
39195 at_setup_line='pax-big-10g.at:21'
39196 at_desc="pax-big-10g"
39197 $at_quiet $as_echo_n "118: $at_desc                                    "
39198 at_xfail=no
39199 echo "#                             -*- compilation -*-" >> "$at_group_log"
39200 (
39201   $as_echo "118. pax-big-10g.at:21: testing ..."
39202   $at_traceon
39203
39204
39205
39206 unset TAR_OPTIONS
39207
39208 { $at_traceoff
39209 $as_echo "$at_srcdir/pax-big-10g.at:26:
39210
39211 cat /dev/null | bzip2 - > /dev/null 2>&1 || exit 77
39212
39213
39214 test -z "$STAR_TESTSCRIPTS" && exit 77
39215 tarball_prereq pax-big-10g.tar.bz2 ca15c23acc8d8bb1f27e60113a5f8bff $STAR_TESTSCRIPTS $STAR_DATA_URL || exit 77
39216
39217
39218 tar --utc -tvjf \$STAR_TESTSCRIPTS/pax-big-10g.tar.bz2
39219 "
39220 echo pax-big-10g.at:26 >"$at_check_line_file"
39221
39222 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
39223    false; }; then
39224   ( $at_traceon;
39225
39226 cat /dev/null | bzip2 - > /dev/null 2>&1 || exit 77
39227
39228
39229 test -z "$STAR_TESTSCRIPTS" && exit 77
39230 tarball_prereq pax-big-10g.tar.bz2 ca15c23acc8d8bb1f27e60113a5f8bff $STAR_TESTSCRIPTS $STAR_DATA_URL || exit 77
39231
39232
39233 tar --utc -tvjf $STAR_TESTSCRIPTS/pax-big-10g.tar.bz2
39234  ) >"$at_stdout" 2>"$at_stder1"
39235   at_func_filter_trace $?
39236 else
39237   ( :;
39238
39239 cat /dev/null | bzip2 - > /dev/null 2>&1 || exit 77
39240
39241
39242 test -z "$STAR_TESTSCRIPTS" && exit 77
39243 tarball_prereq pax-big-10g.tar.bz2 ca15c23acc8d8bb1f27e60113a5f8bff $STAR_TESTSCRIPTS $STAR_DATA_URL || exit 77
39244
39245
39246 tar --utc -tvjf $STAR_TESTSCRIPTS/pax-big-10g.tar.bz2
39247  ) >"$at_stdout" 2>"$at_stderr"
39248 fi
39249 at_status=$?
39250 at_failed=false
39251 echo stderr:; tee stderr <"$at_stderr"
39252 echo >>"$at_stdout"; $as_echo "-rw------- jes/glone 10737418240 2002-06-15 21:18 10g
39253 -rw-r--r-- jes/glone           0 2002-06-15 14:53 file
39254 " | \
39255   $at_diff - "$at_stdout" || at_failed=:
39256 at_func_check_status 0 $at_status "$at_srcdir/pax-big-10g.at:26"
39257
39258 $at_failed && at_func_log_failure
39259 $at_traceon; }
39260
39261
39262
39263 cat >stderr.re <<'_ATEOF'
39264 tar: Record size = .*
39265 _ATEOF
39266
39267 awk '{print NR " " $0}' stderr > $$.1
39268 awk '{print NR " " $0}' stderr.re | join - $$.1 |
39269 while read NUM RE LINE
39270 do
39271   echo "$LINE" | grep -- "$RE" >/dev/null || exit 1
39272 done
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_118