]> git.cworth.org Git - tar/blob - tests/testsuite
upstream: Fix extraction of device nodes.
[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'
625 # As many question marks as there are digits in the last test group number.
626 # Used to normalize the test group numbers so that `ls' lists them in
627 # numerical order.
628 at_format='???'
629 # Description of all the test groups.
630 at_help_all="1;version.at:19;tar version;;
631 2;pipe.at:30;decompressing from stdin;pipe;
632 3;options.at:24;mixing options;options options00;
633 4;options02.at:26;interspersed options;options options02;
634 5;T-empty.at:26;files-from: empty entries;files-from empty;
635 6;T-null.at:21;files-from: 0-separated file without -0;files-from null t-null;
636 7;indexfile.at:26;tar --index-file=FILE --file=-;stdout indexfile;
637 8;verbose.at:26;tar cvf -;stdout verbose;
638 9;append.at:21;append;append append00;
639 10;append01.at:29;appending files with long names;append append01;
640 11;append02.at:54;append vs. create;append append02 append-gnu;
641 12;xform-h.at:30;transforming hard links on create;transform xform xform-h;
642 13;xform01.at:26;transformations and GNU volume labels;transform xform xform01 volume;
643 14;exclude.at:23;exclude;exclude;
644 15;exclude01.at:17;exclude wildcards;exclude exclude01;
645 16;exclude02.at:17;exclude: anchoring;exclude exclude02;
646 17;exclude03.at:17;exclude: wildcards match slash;exclude exclude03;
647 18;exclude04.at:17;exclude: case insensitive;exclude exclude04;
648 19;exclude05.at:19;exclude: lots of excludes;exclude exclude05;
649 20;exclude06.at:24;exclude: long files in pax archives;exclude exclude06;
650 21;delete01.at:23;deleting a member after a big one;delete delete01;
651 22;delete02.at:23;deleting a member from stdin archive;delete delete02;
652 23;delete03.at:21;deleting members with long names;delete delete03;
653 24;delete04.at:23;deleting a large last member;delete delete04;
654 25;delete05.at:27;deleting non-existing member;delete delete05;
655 26;extrac01.at:23;extract over an existing directory;extract extract01;
656 27;extrac02.at:23;extracting symlinks over an existing file;extract extract02 symlink;
657 28;extrac03.at:23;extraction loops;extract extract03;
658 29;extrac04.at:23;extract + fnmatch;extract extract04 fnmatch;
659 30;extrac05.at:30;extracting selected members from pax;extract extract05;
660 31;extrac06.at:33;mode of extracted directories;extract extract06 directory mode;
661 32;extrac07.at:27;extracting symlinks to a read-only dir;extract extract07 read-only symlink;
662 33;extrac08.at:33;restoring mode on existing directory;extract extrac08;
663 34;extrac09.at:22;no need to save dir with unreadable . and ..;extract extrac09;
664 35;extrac10.at:27;-C and delayed setting of metadata;extract extrac10;
665 36;extrac11.at:23;scarce file descriptors;extract extrac11;
666 37;extrac12.at:23;extract dot permissions;extract extrac12;
667 38;extrac13.at:24;extract over symlinks;extract extrac13;
668 39;extrac14.at:23;extract -C symlink;extract extrac14;
669 40;extrac15.at:23;extract parent mkdir failure;extract extrac15;
670 41;label01.at:19;single-volume label;label label01;
671 42;label02.at:19;multi-volume label;label label02 multi-label multivolume multiv;
672 43;label03.at:25;test-label option;label label03 test-label;
673 44;label04.at:25;label with non-create option;label label04;
674 45;label05.at:22;label with non-create option;label label05;
675 46;backup01.at:33;extracting existing dir with --backup;extract backup backup01;
676 47;gzip.at:23;gzip;gzip;
677 48;incremental.at:23;incremental;incremental incr00;
678 49;incr01.at:27;restore broken symlinks from incremental;incremental incr01;
679 50;incr02.at:32;restoring timestamps from incremental;incremental timestamp restore incr02;
680 51;listed01.at:26;--listed for individual files;listed incremental listed01;
681 52;listed02.at:28;working --listed;listed incremental listed02;
682 53;listed03.at:22;incremental dump when the parent directory is unreadable;listed incremental listed03;
683 54;incr03.at:28;renamed files in incrementals;incremental incr03 rename;
684 55;incr04.at:29;proper icontents initialization;incremental incr04 icontents;
685 56;incr05.at:19;incremental dumps with -C;incremental incr05;
686 57;incr06.at:19;incremental dumps of nested directories;incremental incr06;
687 58;filerem01.at:34;file removed as we read it (ca. 22 seconds);create incremental filechange filerem filerem01;
688 59;filerem02.at:24;toplevel file removed (ca. 24 seconds);create incremental filechange filerem filerem02;
689 60;rename01.at:24;renamed dirs in incrementals;incremental rename rename01;
690 61;rename02.at:24;move between hierarchies;incremental rename rename02;
691 62;rename03.at:23;cyclic renames;incremental rename rename03 cyclic-rename;
692 63;rename04.at:27;renamed directory containing subdirectories;incremental rename04 rename;
693 64;rename05.at:24;renamed subdirectories;incremental rename05 rename;
694 65;chtype.at:27;changed file types in incrementals;incremental chtype;
695 66;ignfail.at:23;ignfail;ignfail;
696 67;link01.at:33;link count gt 2;hardlinks link01;
697 68;link02.at:32;preserve hard links with --remove-files;hardlinks link02;
698 69;link03.at:24;working -l with --remove-files;hardlinks link03;
699 70;link04.at:29;link count is 1 but multiple occurrences;hardlinks link04;
700 71;longv7.at:24;long names in V7 archives;longname longv7;
701 72;long01.at:28;long file names divisible by block size;longname long512;
702 73;lustar01.at:21;ustar: unsplittable file name;longname ustar lustar01;
703 74;lustar02.at:21;ustar: unsplittable path name;longname ustar lustar02;
704 75;lustar03.at:21;ustar: splitting long names;longname ustar lustar03;
705 76;multiv01.at:23;multivolume dumps from pipes;multivolume multiv multiv01;
706 77;multiv02.at:28;skipping a straddling member;multivolume multiv multiv02;
707 78;multiv03.at:30;MV archive & long filenames;multivolume multiv multiv03;
708 79;multiv04.at:36;split directory members in a MV archive;multivolume multiv incremental multiv04;
709 80;multiv05.at:26;Restoring after an out of sync volume;multivolume multiv multiv05 sync;
710 81;multiv06.at:27;Multivolumes with L=record_size;multivolume multiv multiv06;
711 82;multiv07.at:26;volumes split at an extended header;multivolume multiv multiv07 xsplit;
712 83;multiv08.at:23;multivolume header creation;multivolume multiv multiv08;
713 84;old.at:23;old archives;old;
714 85;recurse.at:21;recurse;recurse;
715 86;same-order01.at:26;working -C with --same-order;same-order same-order01;
716 87;same-order02.at:25;multiple -C options;same-order same-order02;
717 88;shortrec.at:25;short records;shortrec;
718 89;sparse01.at:21;sparse files;sparse sparse01;
719 90;sparse02.at:21;extracting sparse file over a pipe;sparse sparse02;
720 91;sparse03.at:21;storing sparse files > 8G;sparse sparse03;
721 92;sparsemv.at:21;sparse files in MV archives;sparse multiv sparsemv;
722 93;spmvp00.at:21;sparse files in PAX MV archives, v.0.0;sparse multivolume multiv sparsemvp sparsemvp00;
723 94;spmvp01.at:21;sparse files in PAX MV archives, v.0.1;sparse multiv sparsemvp sparsemvp01;
724 95;spmvp10.at:21;sparse files in PAX MV archives, v.1.0;sparse multivolume multiv sparsemvp sparsemvp10;
725 96;update.at:28;update unchanged directories;update update00;
726 97;update01.at:29;update directories;update update01;
727 98;update02.at:26;update changed files;update update02;
728 99;volume.at:23;volume;volume volcheck;
729 100;volsize.at:29;volume header size;volume volsize;
730 101;comprec.at:21;compressed format recognition;comprec;
731 102;shortfile.at:26;short input files;shortfile shortfile0;
732 103;shortupd.at:29;updating short archives;shortfile shortfile1 shortupd;
733 104;truncate.at:29;truncate;truncate filechange;
734 105;grow.at:24;grow;grow filechange;
735 106;remfiles01.at:28;remove-files with compression;create remove-files remfiles01 gzip;
736 107;remfiles02.at:28;remove-files with compression: grand-child;create remove-files remfiles02 gzip;
737 108;remfiles03.at:28;remove-files with symbolic links;create remove-files remfiles03;
738 109;sigpipe.at:19;sigpipe handling;sigpipe;
739 110;gtarfail.at:21;gtarfail;star gtarfail;
740 111;gtarfail2.at:21;gtarfail2;star gtarfail2;
741 112;multi-fail.at:21;multi-fail;star multivolume multiv multi-fail;
742 113;ustar-big-2g.at:21;ustar-big-2g;star ustar-big-2g;
743 114;ustar-big-8g.at:21;ustar-big-8g;star ustar-big-8g;
744 115;pax-big-10g.at:21;pax-big-10g;star pax-big-10g;
745 "
746
747 # at_func_validate_ranges [NAME...]
748 # ---------------------------------
749 # Validate and normalize the test group number contained in each
750 # variable NAME.  Leading zeroes are treated as decimal.
751 at_func_validate_ranges ()
752 {
753   for at_grp
754   do
755     eval at_value=\$$at_grp
756     if test $at_value -lt 1 || test $at_value -gt 115; then
757       $as_echo "invalid test group: $at_value" >&2
758       exit 1
759     fi
760     case $at_value in
761       0*) # We want to treat leading 0 as decimal, like expr and test, but
762           # at_func_arith treats it as octal if it uses $(( )).
763           # With XSI shells, ${at_value#${at_value%%[1-9]*}} avoids the
764           # expr fork, but it is not worth the effort to determine if the
765           # shell supports XSI when the user can just avoid leading 0.
766           eval $at_grp='`expr $at_value + 0`' ;;
767     esac
768   done
769 }
770
771 at_prev=
772 for at_option
773 do
774   # If the previous option needs an argument, assign it.
775   if test -n "$at_prev"; then
776     at_option=$at_prev=$at_option
777     at_prev=
778   fi
779
780   case $at_option in
781   *=*) at_optarg=`expr "x$at_option" : 'x[^=]*=\(.*\)'` ;;
782   *)   at_optarg= ;;
783   esac
784
785   # Accept the important Cygnus configure options, so we can diagnose typos.
786
787   case $at_option in
788     --help | -h )
789         at_help_p=:
790         ;;
791
792     --list | -l )
793         at_list_p=:
794         ;;
795
796     --version | -V )
797         at_version_p=:
798         ;;
799
800     --clean | -c )
801         at_clean=:
802         ;;
803
804     --debug | -d )
805         at_debug_p=:
806         ;;
807
808     --errexit | -e )
809         at_debug_p=:
810         at_errexit_p=:
811         ;;
812
813     --verbose | -v )
814         at_verbose=; at_quiet=:
815         ;;
816
817     --trace | -x )
818         at_traceon='set -x'; at_traceoff='set +x'
819         ;;
820
821     [0-9] | [0-9][0-9] | [0-9][0-9][0-9] | [0-9][0-9][0-9][0-9])
822         at_func_validate_ranges at_option
823         at_groups="$at_groups$at_option "
824         ;;
825
826     # Ranges
827     [0-9]- | [0-9][0-9]- | [0-9][0-9][0-9]- | [0-9][0-9][0-9][0-9]-)
828         at_range_start=`echo $at_option |tr -d X-`
829         at_func_validate_ranges at_range_start
830         at_range=`$as_echo " $at_groups_all " | \
831           sed -e 's/^.* \('$at_range_start' \)/\1/'`
832         at_groups="$at_groups$at_range "
833         ;;
834
835     -[0-9] | -[0-9][0-9] | -[0-9][0-9][0-9] | -[0-9][0-9][0-9][0-9])
836         at_range_end=`echo $at_option |tr -d X-`
837         at_func_validate_ranges at_range_end
838         at_range=`$as_echo " $at_groups_all " | \
839           sed -e 's/\( '$at_range_end'\) .*$/\1/'`
840         at_groups="$at_groups$at_range "
841         ;;
842
843     [0-9]-[0-9] | [0-9]-[0-9][0-9] | [0-9]-[0-9][0-9][0-9] | \
844     [0-9]-[0-9][0-9][0-9][0-9] | [0-9][0-9]-[0-9][0-9] | \
845     [0-9][0-9]-[0-9][0-9][0-9] | [0-9][0-9]-[0-9][0-9][0-9][0-9] | \
846     [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] | \
848     [0-9][0-9][0-9][0-9]-[0-9][0-9][0-9][0-9] )
849         at_range_start=`expr $at_option : '\(.*\)-'`
850         at_range_end=`expr $at_option : '.*-\(.*\)'`
851         if test $at_range_start -gt $at_range_end; then
852           at_tmp=$at_range_end
853           at_range_end=$at_range_start
854           at_range_start=$at_tmp
855         fi
856         at_func_validate_ranges at_range_start at_range_end
857         at_range=`$as_echo " $at_groups_all " | \
858           sed -e 's/^.*\( '$at_range_start' \)/\1/' \
859               -e 's/\( '$at_range_end'\) .*$/\1/'`
860         at_groups="$at_groups$at_range "
861         ;;
862
863     # Directory selection.
864     --directory | -C )
865         at_prev=--directory
866         ;;
867     --directory=* )
868         at_change_dir=:
869         at_dir=$at_optarg
870         ;;
871
872     # Keywords.
873     --keywords | -k )
874         at_prev=--keywords
875         ;;
876     --keywords=* )
877         at_groups_selected=$at_help_all
878         at_save_IFS=$IFS
879         IFS=,
880         set X $at_optarg
881         shift
882         IFS=$at_save_IFS
883         for at_keyword
884         do
885           at_invert=
886           case $at_keyword in
887           '!'*)
888             at_invert="-v"
889             at_keyword=`expr "X$at_keyword" : 'X!\(.*\)'`
890             ;;
891           esac
892           # It is on purpose that we match the test group titles too.
893           at_groups_selected=`$as_echo "$at_groups_selected" |
894               grep -i $at_invert "^[1-9][^;]*;.*[; ]$at_keyword[ ;]"`
895         done
896         # Smash the newlines.
897         at_groups_selected=`$as_echo "$at_groups_selected" | sed 's/;.*//' |
898           tr "$as_nl" ' '
899         `
900         at_groups="$at_groups$at_groups_selected "
901         ;;
902
903     *=*)
904         at_envvar=`expr "x$at_option" : 'x\([^=]*\)='`
905         # Reject names that are not valid shell variable names.
906         case $at_envvar in
907           '' | [0-9]* | *[!_$as_cr_alnum]* )
908             { { $as_echo "$as_me:$LINENO: error: invalid variable name: $at_envvar" >&5
909 $as_echo "$as_me: error: invalid variable name: $at_envvar" >&2;}
910    { (exit 1); exit 1; }; } ;;
911         esac
912         at_value=`$as_echo "$at_optarg" | sed "s/'/'\\\\\\\\''/g"`
913         # Export now, but save eval for later and for debug scripts.
914         export $at_envvar
915         at_debug_args="$at_debug_args $at_envvar='$at_value'"
916         ;;
917
918      *) $as_echo "$as_me: invalid option: $at_option" >&2
919         $as_echo "Try \`$0 --help' for more information." >&2
920         exit 1
921         ;;
922   esac
923 done
924
925 # Verify our last option didn't require an argument
926 if test -n "$at_prev"; then
927   { { $as_echo "$as_me:$LINENO: error: \`$at_prev' requires an argument." >&5
928 $as_echo "$as_me: error: \`$at_prev' requires an argument." >&2;}
929    { (exit 1); exit 1; }; }
930 fi
931
932
933 # Selected test groups.
934 if test -z "$at_groups"; then
935   at_groups=$at_groups_all
936 else
937   # Sort the tests, removing duplicates.
938   at_groups=`$as_echo "$at_groups" | tr ' ' "$as_nl" | sort -nu`
939 fi
940
941 # Help message.
942 if $at_help_p; then
943   cat <<_ATEOF || at_write_fail=1
944 Usage: $0 [OPTION]... [VARIABLE=VALUE]... [TESTS]
945
946 Run all the tests, or the selected TESTS, given by numeric ranges, and
947 save a detailed log file.  Upon failure, create debugging scripts.
948
949 You should not change environment variables unless explicitly passed
950 as command line arguments.  Set \`AUTOTEST_PATH' to select the executables
951 to exercise.  Each relative directory is expanded as build and source
952 directories relatively to the top level of this distribution.  E.g.,
953
954   $ $0 AUTOTEST_PATH=bin
955
956 possibly amounts into
957
958   PATH=/tmp/foo-1.0/bin:/src/foo-1.0/bin:\$PATH
959 _ATEOF
960 cat <<_ATEOF || at_write_fail=1
961
962 Operation modes:
963   -h, --help     print the help message, then exit
964   -V, --version  print version number, then exit
965   -c, --clean    remove all the files this test suite might create and exit
966   -l, --list     describes all the tests, or the selected TESTS
967 _ATEOF
968 cat <<_ATEOF || at_write_fail=1
969
970 Execution tuning:
971   -C, --directory=DIR
972                  change to directory DIR before starting
973   -k, --keywords=KEYWORDS
974                  select the tests matching all the comma-separated KEYWORDS
975                  multiple \`-k' accumulate; prefixed \`!' negates a KEYWORD
976   -e, --errexit  abort as soon as a test fails; implies --debug
977   -v, --verbose  force more detailed output
978                  default for debugging scripts
979   -d, --debug    inhibit clean up and top-level logging
980                  default for debugging scripts
981   -x, --trace    enable tests shell tracing
982 _ATEOF
983 cat <<_ATEOF || at_write_fail=1
984
985 Report bugs to <bug-tar@gnu.org>.
986 _ATEOF
987   exit $at_write_fail
988 fi
989
990 # List of tests.
991 if $at_list_p; then
992   cat <<_ATEOF || at_write_fail=1
993 GNU tar 1.24 test suite test groups:
994
995  NUM: FILE-NAME:LINE     TEST-GROUP-NAME
996       KEYWORDS
997
998 _ATEOF
999   # Passing at_groups is tricky.  We cannot use it to form a literal string
1000   # or regexp because of the limitation of AIX awk.  And Solaris' awk
1001   # doesn't grok more than 99 fields in a record, so we have to use `split'.
1002   # at_groups needs to be space-separated for this script to work.
1003   case $at_groups in
1004     *"$as_nl"* )
1005       at_groups=`$as_echo "$at_groups" | tr "$as_nl" ' '` ;;
1006   esac
1007   $as_echo "$at_groups$as_nl$at_help_all" |
1008     awk 'BEGIN { FS = ";" }
1009          NR == 1 {
1010            for (n = split($ 0, a, " "); n; n--) selected[a[n]] = 1
1011            next
1012          }
1013          {
1014            if (selected[$ 1]) {
1015              printf " %3d: %-18s %s\n", $ 1, $ 2, $ 3
1016              if ($ 4) printf "      %s\n", $ 4
1017            }
1018          }' || at_write_fail=1
1019   exit $at_write_fail
1020 fi
1021 if $at_version_p; then
1022   $as_echo "$as_me (GNU tar 1.24)" &&
1023   cat <<\_ACEOF || at_write_fail=1
1024
1025 Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
1026 Free Software Foundation, Inc.
1027 This test suite is free software; the Free Software Foundation gives
1028 unlimited permission to copy, distribute and modify it.
1029 _ACEOF
1030   exit $at_write_fail
1031 fi
1032
1033 # Should we print banners?  at_groups is space-separated for entire test,
1034 # newline-separated if only a subset of the testsuite is run.
1035 case $at_groups in
1036   *' '*' '* | *"$as_nl"*"$as_nl"* )
1037       at_print_banners=: ;;
1038   * ) at_print_banners=false ;;
1039 esac
1040 # Text for banner N, set to empty once printed.
1041
1042 # Take any -C into account.
1043 if $at_change_dir ; then
1044   if test x- = "x$at_dir" ; then
1045     at_dir=./-
1046   fi
1047   test x != "x$at_dir" && cd "$at_dir" \
1048     || { { $as_echo "$as_me:$LINENO: error: unable to change directory" >&5
1049 $as_echo "$as_me: error: unable to change directory" >&2;}
1050    { (exit 1); exit 1; }; }
1051   at_dir=`pwd`
1052 fi
1053
1054 # Load the config files for any default variable assignments.
1055 for at_file in atconfig atlocal
1056 do
1057   test -r $at_file || continue
1058   . ./$at_file || { { $as_echo "$as_me:$LINENO: error: invalid content: $at_file" >&5
1059 $as_echo "$as_me: error: invalid content: $at_file" >&2;}
1060    { (exit 1); exit 1; }; }
1061 done
1062
1063 # Autoconf <=2.59b set at_top_builddir instead of at_top_build_prefix:
1064 : ${at_top_build_prefix=$at_top_builddir}
1065
1066 # Perform any assignments requested during argument parsing.
1067 eval "$at_debug_args"
1068
1069 # atconfig delivers names relative to the directory the test suite is
1070 # in, but the groups themselves are run in testsuite-dir/group-dir.
1071 if test -n "$at_top_srcdir"; then
1072   builddir=../..
1073   for at_dir_var in srcdir top_srcdir top_build_prefix
1074   do
1075     at_val=`eval 'as_val=${'at_$at_dir_var'}
1076                  $as_echo "$as_val"'`
1077     case $at_val in
1078       [\\/$]* | ?:[\\/]* ) at_prefix= ;;
1079       *) at_prefix=../../ ;;
1080     esac
1081     eval "$at_dir_var=\$at_prefix\$at_val"
1082   done
1083 fi
1084
1085 ## ------------------- ##
1086 ## Directory structure ##
1087 ## ------------------- ##
1088
1089 # This is the set of directories and files used by this script
1090 # (non-literals are capitalized):
1091 #
1092 # TESTSUITE         - the testsuite
1093 # TESTSUITE.log     - summarizes the complete testsuite run
1094 # TESTSUITE.dir/    - created during a run, remains after -d or failed test
1095 # + at-groups/      - during a run: status of all groups in run
1096 # | + NNN/          - during a run: meta-data about test group NNN
1097 # | | + check-line  - location (source file and line) of current AT_CHECK
1098 # | | + status      - exit status of current AT_CHECK
1099 # | | + stdout      - stdout of current AT_CHECK
1100 # | | + stder1      - stderr, including trace
1101 # | | + stderr      - stderr, with trace filtered out
1102 # | | + test-source - portion of testsuite that defines group
1103 # | | + times       - timestamps for computing duration
1104 # | | + pass        - created if group passed
1105 # | | + xpass       - created if group xpassed
1106 # | | + fail        - created if group failed
1107 # | | + xfail       - created if group xfailed
1108 # | | + skip        - created if group skipped
1109 # + at-stop         - during a run: end the run if this file exists
1110 # + at-source-lines - during a run: cache of TESTSUITE line numbers for extraction
1111 # + 0..NNN/         - created for each group NNN, remains after -d or failed test
1112 # | + TESTSUITE.log - summarizes the group results
1113 # | + ...           - files created during the group
1114
1115 # The directory the whole suite works in.
1116 # Should be absolute to let the user `cd' at will.
1117 at_suite_dir=$at_dir/$as_me.dir
1118 # The file containing the suite.
1119 at_suite_log=$at_dir/$as_me.log
1120 # The directory containing helper files per test group.
1121 at_helper_dir=$at_suite_dir/at-groups
1122 # Stop file: if it exists, do not start new jobs.
1123 at_stop_file=$at_suite_dir/at-stop
1124
1125 if $at_clean; then
1126   test -d "$at_suite_dir" &&
1127     find "$at_suite_dir" -type d ! -perm -700 -exec chmod u+rwx \{\} \;
1128   rm -f -r "$at_suite_dir" "$at_suite_log"
1129   exit $?
1130 fi
1131
1132 # Don't take risks: use only absolute directories in PATH.
1133 #
1134 # For stand-alone test suites (ie. atconfig was not found),
1135 # AUTOTEST_PATH is relative to `.'.
1136 #
1137 # For embedded test suites, AUTOTEST_PATH is relative to the top level
1138 # of the package.  Then expand it into build/src parts, since users
1139 # may create executables in both places.
1140 AUTOTEST_PATH=`$as_echo "$AUTOTEST_PATH" | sed "s|:|$PATH_SEPARATOR|g"`
1141 at_path=
1142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1143 for as_dir in $AUTOTEST_PATH $PATH
1144 do
1145   IFS=$as_save_IFS
1146   test -z "$as_dir" && as_dir=.
1147   test -n "$at_path" && at_path=$at_path$PATH_SEPARATOR
1148 case $as_dir in
1149   [\\/]* | ?:[\\/]* )
1150     at_path=$at_path$as_dir
1151     ;;
1152   * )
1153     if test -z "$at_top_build_prefix"; then
1154       # Stand-alone test suite.
1155       at_path=$at_path$as_dir
1156     else
1157       # Embedded test suite.
1158       at_path=$at_path$at_top_build_prefix$as_dir$PATH_SEPARATOR
1159       at_path=$at_path$at_top_srcdir/$as_dir
1160     fi
1161     ;;
1162 esac
1163 done
1164 IFS=$as_save_IFS
1165
1166
1167 # Now build and simplify PATH.
1168 #
1169 # There might be directories that don't exist, but don't redirect
1170 # builtins' (eg., cd) stderr directly: Ultrix's sh hates that.
1171 at_new_path=
1172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1173 for as_dir in $at_path
1174 do
1175   IFS=$as_save_IFS
1176   test -z "$as_dir" && as_dir=.
1177   test -d "$as_dir" || continue
1178 case $as_dir in
1179   [\\/]* | ?:[\\/]* ) ;;
1180   * ) as_dir=`(cd "$as_dir" && pwd) 2>/dev/null` ;;
1181 esac
1182 case $PATH_SEPARATOR$at_new_path$PATH_SEPARATOR in
1183   *$PATH_SEPARATOR$as_dir$PATH_SEPARATOR*) ;;
1184   $PATH_SEPARATOR$PATH_SEPARATOR) at_new_path=$as_dir ;;
1185   *) at_new_path=$at_new_path$PATH_SEPARATOR$as_dir ;;
1186 esac
1187 done
1188 IFS=$as_save_IFS
1189
1190 PATH=$at_new_path
1191 export PATH
1192
1193 # Setting up the FDs.
1194 # 5 is the log file.  Not to be overwritten if `-d'.
1195 if $at_debug_p; then
1196   at_suite_log=/dev/null
1197 else
1198   : >"$at_suite_log"
1199 fi
1200 exec 5>>"$at_suite_log"
1201
1202 # Banners and logs.
1203 cat <<\_ASBOX
1204 ## ------------------------ ##
1205 ## GNU tar 1.24 test suite. ##
1206 ## ------------------------ ##
1207 _ASBOX
1208 {
1209   cat <<\_ASBOX
1210 ## ------------------------ ##
1211 ## GNU tar 1.24 test suite. ##
1212 ## ------------------------ ##
1213 _ASBOX
1214   echo
1215
1216   $as_echo "$as_me: command line was:"
1217   $as_echo "  \$ $0 $at_cli_args"
1218   echo
1219
1220   # Try to find a few ChangeLogs in case it might help determining the
1221   # exact version.  Use the relative dir: if the top dir is a symlink,
1222   # find will not follow it (and options to follow the links are not
1223   # portable), which would result in no output here.  Prune directories
1224   # matching the package tarname, since they tend to be leftovers from
1225   # `make dist' or `make distcheck' and contain redundant or stale logs.
1226   if test -n "$at_top_srcdir"; then
1227     cat <<\_ASBOX
1228 ## ----------- ##
1229 ## ChangeLogs. ##
1230 ## ----------- ##
1231 _ASBOX
1232     echo
1233     for at_file in `find "$at_top_srcdir" -name "tar-*" -prune -o -name ChangeLog -print`
1234     do
1235       $as_echo "$as_me: $at_file:"
1236       sed 's/^/| /;10q' $at_file
1237       echo
1238     done
1239
1240   fi
1241
1242   {
1243 cat <<_ASUNAME
1244 ## --------- ##
1245 ## Platform. ##
1246 ## --------- ##
1247
1248 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1249 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1250 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1251 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1252 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1253
1254 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1255 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1256
1257 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1258 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1259 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1260 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1261 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1262 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1263 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1264
1265 _ASUNAME
1266
1267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1268 for as_dir in $PATH
1269 do
1270   IFS=$as_save_IFS
1271   test -z "$as_dir" && as_dir=.
1272   $as_echo "PATH: $as_dir"
1273 done
1274 IFS=$as_save_IFS
1275
1276 }
1277   echo
1278
1279   # Contents of the config files.
1280   for at_file in atconfig atlocal
1281   do
1282     test -r $at_file || continue
1283     $as_echo "$as_me: $at_file:"
1284     sed 's/^/| /' $at_file
1285     echo
1286   done
1287 } >&5
1288
1289
1290 ## --------------- ##
1291 ## Shell functions ##
1292 ## --------------- ##
1293
1294 # at_func_banner NUMBER
1295 # ---------------------
1296 # Output banner NUMBER, provided the testsuite is running multiple groups
1297 # and this particular banner has not yet been printed.
1298 at_func_banner ()
1299 {
1300   $at_print_banners || return 0
1301   eval at_banner_text=\$at_banner_text_$1
1302   test "x$at_banner_text" = x && return 0
1303   eval at_banner_text_$1=
1304   $as_echo "$as_nl$at_banner_text$as_nl"
1305 } # at_func_banner
1306
1307 # at_func_check_newline COMMAND
1308 # -----------------------------
1309 # Test if COMMAND includes a newline and, if so, print a message and return
1310 # exit code 1
1311 at_func_check_newline ()
1312 {
1313   case "$1" in
1314  *'
1315 '*) echo 'Not enabling shell tracing (command contains an embedded newline)'
1316     return 1 ;;
1317  *) return 0 ;;
1318   esac
1319 }
1320
1321 # at_func_filter_trace EXIT-CODE
1322 # ------------------------------
1323 # Split the contents of file "$at_stder1" into the "set -x" trace (on stderr)
1324 # and the other lines (on file "$at_stderr").  Return the exit code EXIT-CODE.
1325 at_func_filter_trace ()
1326 {
1327   grep '^ *+' "$at_stder1" >&2
1328   grep -v '^ *+' "$at_stder1" >"$at_stderr"
1329   return $1
1330 }
1331
1332 # at_func_log_failure FILE-LIST
1333 # -----------------------------
1334 # Copy the files in the list on stdout with a "> " prefix, and exit the shell
1335 # with a failure exit code.
1336 at_func_log_failure ()
1337 {
1338   for file
1339     do $as_echo "$file:"; sed 's/^/> /' "$file"; done
1340   echo 1 > "$at_status_file"
1341   exit 1
1342 }
1343
1344 # at_func_check_skip EXIT-CODE
1345 # ----------------------------
1346 # Check whether EXIT-CODE is the special exit code 77, and if so exit the shell
1347 # with that same exit code.
1348 at_func_check_skip ()
1349 {
1350   case $1 in
1351     77) echo 77 > "$at_status_file"; exit 77;;
1352   esac
1353 }
1354
1355 # at_func_check_status EXPECTED EXIT-CODE LINE
1356 # --------------------------------------------
1357 # Check whether EXIT-CODE is the expected exit code, and if so do nothing.
1358 # Otherwise, if it is 77 exit the shell with that same exit code; if it is
1359 # anything else print an error message and fail the test.
1360 at_func_check_status ()
1361 {
1362   case $2 in
1363     $1 ) ;;
1364     77) echo 77 > "$at_status_file"; exit 77;;
1365     *) $as_echo "$3: exit code was $2, expected $1"
1366       at_failed=:;;
1367   esac
1368 }
1369
1370 # at_func_diff_devnull FILE
1371 # -------------------------
1372 # Emit a diff between /dev/null and FILE.  Uses "test -s" to avoid useless
1373 # diff invocations.
1374 at_func_diff_devnull ()
1375 {
1376   test -s "$1" || return 0
1377   $at_diff "$at_devnull" "$1"
1378 }
1379
1380 # at_func_test NUMBER
1381 # -------------------
1382 # Parse out test NUMBER from the tail of this file.
1383 at_func_test ()
1384 {
1385   eval at_sed=\$at_sed$1
1386   sed "$at_sed" "$at_myself" > "$at_test_source"
1387 }
1388
1389 # at_func_create_debugging_script
1390 # -------------------------------
1391 # Create the debugging script $at_group_dir/run which will reproduce the
1392 # current test group.
1393 at_func_create_debugging_script ()
1394 {
1395   {
1396     echo "#! /bin/sh" &&
1397     echo 'test "${ZSH_VERSION+set}" = set && alias -g '\''${1+"$@"}'\''='\''"$@"'\''' &&
1398     $as_echo "cd '$at_dir'" &&
1399     $as_echo "exec \${CONFIG_SHELL-$SHELL} \"$at_myself\" -v -d $at_debug_args $at_group \${1+\"\$@\"}" &&
1400     echo 'exit 1'
1401   } >"$at_group_dir/run" &&
1402   chmod +x "$at_group_dir/run"
1403 }
1404
1405 # at_func_arith
1406 # -------------
1407 # Arithmetic evaluation, avoids expr if the shell is sane.  The
1408 # interpretation of leading zeroes is unspecified.
1409 #
1410 # subshell and eval are needed to keep Solaris sh from bailing out:
1411 if ( eval 'test $(( 1 + 1 )) = 2' ) 2>/dev/null; then
1412   # With "$@", bash does not split positional parameters:
1413   eval 'at_func_arith ()
1414   {
1415     at_func_arith_result=$(( $* ))
1416   }'
1417 else
1418   at_func_arith ()
1419   {
1420     at_func_arith_result=`expr "$@"`
1421   }
1422 fi
1423
1424 ## ---------------------- ##
1425 ## End of shell functions ##
1426 ## ---------------------- ##
1427 {
1428   cat <<\_ASBOX
1429 ## ---------------- ##
1430 ## Tested programs. ##
1431 ## ---------------- ##
1432 _ASBOX
1433   echo
1434 } >&5
1435
1436 # Report what programs are being tested.
1437 for at_program in : $at_tested
1438 do
1439   test "$at_program" = : && continue
1440   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1441 for as_dir in $PATH
1442 do
1443   IFS=$as_save_IFS
1444   test -z "$as_dir" && as_dir=.
1445   test -f "$as_dir/$at_program" && break
1446 done
1447 IFS=$as_save_IFS
1448
1449   if test -f "$as_dir/$at_program"; then
1450     {
1451       $as_echo "$at_srcdir/testsuite.at:104: $as_dir/$at_program --version"
1452       "$as_dir/$at_program" --version </dev/null
1453       echo
1454     } >&5 2>&1
1455   else
1456     { { $as_echo "$as_me:$LINENO: error: cannot find $at_program" >&5
1457 $as_echo "$as_me: error: cannot find $at_program" >&2;}
1458    { (exit 1); exit 1; }; }
1459   fi
1460 done
1461
1462 {
1463   cat <<\_ASBOX
1464 ## ------------------ ##
1465 ## Running the tests. ##
1466 ## ------------------ ##
1467 _ASBOX
1468 } >&5
1469
1470 at_start_date=`date`
1471 at_start_time=`date +%s 2>/dev/null`
1472 $as_echo "$as_me: starting at: $at_start_date" >&5
1473
1474 # Create the master directory if it doesn't already exist.
1475 test -d "$at_suite_dir" ||
1476   mkdir "$at_suite_dir" ||
1477   { { $as_echo "$as_me:$LINENO: error: cannot create '$at_suite_dir'" >&5
1478 $as_echo "$as_me: error: cannot create '$at_suite_dir'" >&2;}
1479    { (exit 1); exit 1; }; }
1480
1481 # Can we diff with `/dev/null'?  DU 5.0 refuses.
1482 if diff /dev/null /dev/null >/dev/null 2>&1; then
1483   at_devnull=/dev/null
1484 else
1485   at_devnull=$at_suite_dir/devnull
1486   >"$at_devnull"
1487 fi
1488
1489 # Use `diff -u' when possible.
1490 if at_diff=`diff -u "$at_devnull" "$at_devnull" 2>&1` && test -z "$at_diff"
1491 then
1492   at_diff='diff -u'
1493 else
1494   at_diff=diff
1495 fi
1496
1497 # Get the last needed group.
1498 for at_group in : $at_groups; do :; done
1499
1500 # Extract the start and end lines of each test group at the tail
1501 # of this file
1502 awk '
1503 BEGIN { FS="\a" }
1504 /^#AT_START_/ {
1505   start = NR
1506 }
1507 /^#AT_STOP_/ {
1508   test = substr ($ 0, 10)
1509   print "at_sed" test "=\"1," start "d;" (NR-1) "q\""
1510   if (test == "'"$at_group"'") exit
1511 }' "$at_myself" > "$at_suite_dir/at-source-lines" &&
1512 . "$at_suite_dir/at-source-lines" ||
1513   { { $as_echo "$as_me:$LINENO: error: cannot create test line number cache" >&5
1514 $as_echo "$as_me: error: cannot create test line number cache" >&2;}
1515    { (exit 1); exit 1; }; }
1516 rm -f "$at_suite_dir/at-source-lines"
1517
1518 # Set up helper dirs.
1519 rm -rf "$at_helper_dir" &&
1520 mkdir "$at_helper_dir" &&
1521 cd "$at_helper_dir" &&
1522 { test -z "$at_groups" || mkdir $at_groups; } ||
1523 { { $as_echo "$as_me:$LINENO: error: testsuite directory setup failed" >&5
1524 $as_echo "$as_me: error: testsuite directory setup failed" >&2;}
1525    { (exit 1); exit 1; }; }
1526
1527 # Functions for running a test group.  We leave the actual
1528 # test group execution outside of a shell function in order
1529 # to avoid hitting zsh 4.x exit status bugs.
1530
1531 # at_func_group_prepare
1532 # ---------------------
1533 # Prepare running a test group
1534 at_func_group_prepare ()
1535 {
1536   # The directory for additional per-group helper files.
1537   at_job_dir=$at_helper_dir/$at_group
1538   # The file containing the location of the last AT_CHECK.
1539   at_check_line_file=$at_job_dir/check-line
1540   # The file containing the exit status of the last command.
1541   at_status_file=$at_job_dir/status
1542   # The files containing the output of the tested commands.
1543   at_stdout=$at_job_dir/stdout
1544   at_stder1=$at_job_dir/stder1
1545   at_stderr=$at_job_dir/stderr
1546   # The file containing the code for a test group.
1547   at_test_source=$at_job_dir/test-source
1548   # The file containing dates.
1549   at_times_file=$at_job_dir/times
1550
1551   # Be sure to come back to the top test directory.
1552   cd "$at_suite_dir"
1553
1554   # Clearly separate the test groups when verbose.
1555   $at_first || $at_verbose echo
1556
1557   at_group_normalized=$at_group
1558
1559   eval 'while :; do
1560     case $at_group_normalized in #(
1561     '"$at_format"'*) break;;
1562     esac
1563     at_group_normalized=0$at_group_normalized
1564   done'
1565
1566
1567   # Create a fresh directory for the next test group, and enter.
1568   at_group_dir=$at_suite_dir/$at_group_normalized
1569   at_group_log=$at_group_dir/$as_me.log
1570   if test -d "$at_group_dir"; then
1571     find "$at_group_dir" -type d ! -perm -700 -exec chmod u+rwx \{\} \;
1572     rm -fr "$at_group_dir" ||
1573     { $as_echo "$as_me:$LINENO: WARNING: test directory for $at_group_normalized could not be cleaned." >&5
1574 $as_echo "$as_me: WARNING: test directory for $at_group_normalized could not be cleaned." >&2;}
1575   fi
1576   # Be tolerant if the above `rm' was not able to remove the directory.
1577   { as_dir="$at_group_dir"
1578   case $as_dir in #(
1579   -*) as_dir=./$as_dir;;
1580   esac
1581   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
1582     as_dirs=
1583     while :; do
1584       case $as_dir in #(
1585       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
1586       *) as_qdir=$as_dir;;
1587       esac
1588       as_dirs="'$as_qdir' $as_dirs"
1589       as_dir=`$as_dirname -- "$as_dir" ||
1590 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1591          X"$as_dir" : 'X\(//\)[^/]' \| \
1592          X"$as_dir" : 'X\(//\)$' \| \
1593          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
1594 $as_echo X"$as_dir" |
1595     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1596             s//\1/
1597             q
1598           }
1599           /^X\(\/\/\)[^/].*/{
1600             s//\1/
1601             q
1602           }
1603           /^X\(\/\/\)$/{
1604             s//\1/
1605             q
1606           }
1607           /^X\(\/\).*/{
1608             s//\1/
1609             q
1610           }
1611           s/.*/./; q'`
1612       test -d "$as_dir" && break
1613     done
1614     test -z "$as_dirs" || eval "mkdir $as_dirs"
1615   } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
1616 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
1617    { (exit 1); exit 1; }; }; }
1618
1619   echo 0 > "$at_status_file"
1620
1621   # In verbose mode, append to the log file *and* show on
1622   # the standard output; in quiet mode only write to the log.
1623   if test -z "$at_verbose"; then
1624     at_tee_pipe='tee -a "$at_group_log"'
1625   else
1626     at_tee_pipe='cat >> "$at_group_log"'
1627   fi
1628 }
1629
1630 # at_func_group_postprocess
1631 # -------------------------
1632 at_func_group_postprocess ()
1633 {
1634   # Be sure to come back to the suite directory, in particular
1635   # since below we might `rm' the group directory we are in currently.
1636   cd "$at_suite_dir"
1637
1638   if test ! -f "$at_check_line_file"; then
1639     sed "s/^ */$as_me: WARNING: /" <<_ATEOF
1640       A failure happened in a test group before any test could be
1641       run. This means that test suite is improperly designed.  Please
1642       report this failure to <bug-tar@gnu.org>.
1643 _ATEOF
1644     $as_echo "$at_setup_line" >"$at_check_line_file"
1645   fi
1646   $at_verbose $as_echo_n "$at_group. $at_setup_line: "
1647   $as_echo_n "$at_group. $at_setup_line: " >> "$at_group_log"
1648   case $at_xfail:$at_status in
1649     yes:0)
1650         at_msg="UNEXPECTED PASS"
1651         at_res=xpass
1652         at_errexit=$at_errexit_p
1653         ;;
1654     no:0)
1655         at_msg="ok"
1656         at_res=pass
1657         at_errexit=false
1658         ;;
1659     *:77)
1660         at_msg='skipped ('`cat "$at_check_line_file"`')'
1661         at_res=skip
1662         at_errexit=false
1663         ;;
1664     yes:*)
1665         at_msg='expected failure ('`cat "$at_check_line_file"`')'
1666         at_res=xfail
1667         at_errexit=false
1668         ;;
1669     no:*)
1670         at_msg='FAILED ('`cat "$at_check_line_file"`')'
1671         at_res=fail
1672         at_errexit=$at_errexit_p
1673         ;;
1674   esac
1675   echo "$at_res" > "$at_job_dir/$at_res"
1676   # Make sure there is a separator even with long titles.
1677   $as_echo " $at_msg"
1678   at_log_msg="$at_group. $at_desc ($at_setup_line): $at_msg"
1679   case $at_status in
1680     0|77)
1681       # $at_times_file is only available if the group succeeded.
1682       # We're not including the group log, so the success message
1683       # is written in the global log separately.  But we also
1684       # write to the group log in case they're using -d.
1685       if test -f "$at_times_file"; then
1686         at_log_msg="$at_log_msg     ("`sed 1d "$at_times_file"`')'
1687         rm -f "$at_times_file"
1688       fi
1689       $as_echo "$at_log_msg" >> "$at_group_log"
1690       $as_echo "$at_log_msg" >&5
1691
1692       # Cleanup the group directory, unless the user wants the files.
1693       if $at_debug_p; then
1694         at_func_create_debugging_script
1695       else
1696         if test -d "$at_group_dir"; then
1697           find "$at_group_dir" -type d ! -perm -700 -exec chmod u+rwx \{\} \;
1698           rm -fr "$at_group_dir"
1699         fi
1700         rm -f "$at_test_source"
1701       fi
1702       ;;
1703     *)
1704       # Upon failure, include the log into the testsuite's global
1705       # log.  The failure message is written in the group log.  It
1706       # is later included in the global log.
1707       $as_echo "$at_log_msg" >> "$at_group_log"
1708
1709       # Upon failure, keep the group directory for autopsy, and create
1710       # the debugging script.  With -e, do not start any further tests.
1711       at_func_create_debugging_script
1712       if $at_errexit; then
1713         echo stop > "$at_stop_file"
1714       fi
1715       ;;
1716   esac
1717 }
1718
1719
1720 ## ------------ ##
1721 ## Driver loop. ##
1722 ## ------------ ##
1723
1724 rm -f "$at_stop_file"
1725 at_first=:
1726
1727 for at_group in $at_groups; do
1728   at_func_group_prepare
1729   if cd "$at_group_dir" &&
1730      at_func_test $at_group &&
1731      . "$at_test_source"; then :; else
1732     { $as_echo "$as_me:$LINENO: WARNING: unable to parse test group: $at_group" >&5
1733 $as_echo "$as_me: WARNING: unable to parse test group: $at_group" >&2;}
1734     at_failed=:
1735   fi
1736   at_func_group_postprocess
1737   test -f "$at_stop_file" && break
1738   at_first=false
1739 done
1740
1741 # Wrap up the test suite with summary statistics.
1742 cd "$at_helper_dir"
1743
1744 # Use ?..???? when the list must remain sorted, the faster * otherwise.
1745 at_pass_list=`for f in */pass; do echo $f; done | sed '/\*/d; s,/pass,,'`
1746 at_skip_list=`for f in */skip; do echo $f; done | sed '/\*/d; s,/skip,,'`
1747 at_xfail_list=`for f in */xfail; do echo $f; done | sed '/\*/d; s,/xfail,,'`
1748 at_xpass_list=`for f in ?/xpass ??/xpass ???/xpass ????/xpass; do
1749                  echo $f; done | sed '/?/d; s,/xpass,,'`
1750 at_fail_list=`for f in ?/fail ??/fail ???/fail ????/fail; do
1751                 echo $f; done | sed '/?/d; s,/fail,,'`
1752
1753 set X $at_pass_list $at_xpass_list $at_xfail_list $at_fail_list $at_skip_list
1754 shift; at_group_count=$#
1755 set X $at_xpass_list; shift; at_xpass_count=$#; at_xpass_list=$*
1756 set X $at_xfail_list; shift; at_xfail_count=$#
1757 set X $at_fail_list; shift; at_fail_count=$#; at_fail_list=$*
1758 set X $at_skip_list; shift; at_skip_count=$#
1759
1760 at_func_arith $at_group_count - $at_skip_count
1761 at_run_count=$at_func_arith_result
1762 at_func_arith $at_xpass_count + $at_fail_count
1763 at_unexpected_count=$at_func_arith_result
1764 at_func_arith $at_xfail_count + $at_fail_count
1765 at_total_fail_count=$at_func_arith_result
1766
1767 # Back to the top directory.
1768 cd "$at_dir"
1769 rm -rf "$at_helper_dir"
1770
1771 # Compute the duration of the suite.
1772 at_stop_date=`date`
1773 at_stop_time=`date +%s 2>/dev/null`
1774 $as_echo "$as_me: ending at: $at_stop_date" >&5
1775 case $at_start_time,$at_stop_time in
1776   [0-9]*,[0-9]*)
1777     at_func_arith $at_stop_time - $at_start_time
1778     at_duration_s=$at_func_arith_result
1779     at_func_arith $at_duration_s / 60
1780     at_duration_m=$at_func_arith_result
1781     at_func_arith $at_duration_m / 60
1782     at_duration_h=$at_func_arith_result
1783     at_func_arith $at_duration_s % 60
1784     at_duration_s=$at_func_arith_result
1785     at_func_arith $at_duration_m % 60
1786     at_duration_m=$at_func_arith_result
1787     at_duration="${at_duration_h}h ${at_duration_m}m ${at_duration_s}s"
1788     $as_echo "$as_me: test suite duration: $at_duration" >&5
1789     ;;
1790 esac
1791
1792 echo
1793 cat <<\_ASBOX
1794 ## ------------- ##
1795 ## Test results. ##
1796 ## ------------- ##
1797 _ASBOX
1798 echo
1799 {
1800   echo
1801   cat <<\_ASBOX
1802 ## ------------- ##
1803 ## Test results. ##
1804 ## ------------- ##
1805 _ASBOX
1806   echo
1807 } >&5
1808
1809 if test $at_run_count = 1; then
1810   at_result="1 test"
1811   at_were=was
1812 else
1813   at_result="$at_run_count tests"
1814   at_were=were
1815 fi
1816 if $at_errexit_p && test $at_unexpected_count != 0; then
1817   if test $at_xpass_count = 1; then
1818     at_result="$at_result $at_were run, one passed"
1819   else
1820     at_result="$at_result $at_were run, one failed"
1821   fi
1822   at_result="$at_result unexpectedly and inhibited subsequent tests."
1823 else
1824   # Don't you just love exponential explosion of the number of cases?
1825   case $at_xpass_count:$at_fail_count:$at_xfail_count in
1826     # So far, so good.
1827     0:0:0) at_result="$at_result $at_were successful." ;;
1828     0:0:*) at_result="$at_result behaved as expected." ;;
1829
1830     # Some unexpected failures
1831     0:*:0) at_result="$at_result $at_were run,
1832 $at_fail_count failed unexpectedly." ;;
1833
1834     # Some failures, both expected and unexpected
1835     0:*:1) at_result="$at_result $at_were run,
1836 $at_total_fail_count failed ($at_xfail_count expected failure)." ;;
1837     0:*:*) at_result="$at_result $at_were run,
1838 $at_total_fail_count failed ($at_xfail_count expected failures)." ;;
1839
1840     # No unexpected failures, but some xpasses
1841     *:0:*) at_result="$at_result $at_were run,
1842 $at_xpass_count passed unexpectedly." ;;
1843
1844     # No expected failures, but failures and xpasses
1845     *:1:0) at_result="$at_result $at_were run,
1846 $at_unexpected_count did not behave as expected ($at_fail_count unexpected failure)." ;;
1847     *:*:0) at_result="$at_result $at_were run,
1848 $at_unexpected_count did not behave as expected ($at_fail_count unexpected failures)." ;;
1849
1850     # All of them.
1851     *:*:1) at_result="$at_result $at_were run,
1852 $at_xpass_count passed unexpectedly,
1853 $at_total_fail_count failed ($at_xfail_count expected failure)." ;;
1854     *:*:*) at_result="$at_result $at_were run,
1855 $at_xpass_count passed unexpectedly,
1856 $at_total_fail_count failed ($at_xfail_count expected failures)." ;;
1857   esac
1858
1859   if test $at_skip_count = 0 && test $at_run_count -gt 1; then
1860     at_result="All $at_result"
1861   fi
1862 fi
1863
1864 # Now put skips in the mix.
1865 case $at_skip_count in
1866   0) ;;
1867   1) at_result="$at_result
1868 1 test was skipped." ;;
1869   *) at_result="$at_result
1870 $at_skip_count tests were skipped." ;;
1871 esac
1872
1873 if test $at_unexpected_count = 0; then
1874   echo "$at_result"
1875   echo "$at_result" >&5
1876 else
1877   echo "ERROR: $at_result" >&2
1878   echo "ERROR: $at_result" >&5
1879   {
1880     echo
1881     cat <<\_ASBOX
1882 ## ------------------------ ##
1883 ## Summary of the failures. ##
1884 ## ------------------------ ##
1885 _ASBOX
1886
1887     # Summary of failed and skipped tests.
1888     if test $at_fail_count != 0; then
1889       echo "Failed tests:"
1890       $SHELL "$at_myself" $at_fail_list --list
1891       echo
1892     fi
1893     if test $at_skip_count != 0; then
1894       echo "Skipped tests:"
1895       $SHELL "$at_myself" $at_skip_list --list
1896       echo
1897     fi
1898     if test $at_xpass_count != 0; then
1899       echo "Unexpected passes:"
1900       $SHELL "$at_myself" $at_xpass_list --list
1901       echo
1902     fi
1903     if test $at_fail_count != 0; then
1904       cat <<\_ASBOX
1905 ## ---------------------- ##
1906 ## Detailed failed tests. ##
1907 ## ---------------------- ##
1908 _ASBOX
1909       echo
1910       for at_group in $at_fail_list
1911       do
1912         at_group_normalized=$at_group
1913
1914   eval 'while :; do
1915     case $at_group_normalized in #(
1916     '"$at_format"'*) break;;
1917     esac
1918     at_group_normalized=0$at_group_normalized
1919   done'
1920
1921         cat "$at_suite_dir/$at_group_normalized/$as_me.log"
1922         echo
1923       done
1924       echo
1925     fi
1926     if test -n "$at_top_srcdir"; then
1927       sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
1928 ## ${at_top_build_prefix}config.log ##
1929 _ASBOX
1930       sed 's/^/| /' ${at_top_build_prefix}config.log
1931       echo
1932     fi
1933   } >&5
1934
1935   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
1936 ## $as_me.log was created. ##
1937 _ASBOX
1938
1939   echo
1940   $as_echo "Please send \`${at_testdir+${at_testdir}/}$as_me.log' and all information you think might help:
1941
1942    To: <bug-tar@gnu.org>
1943    Subject: [GNU tar 1.24] $as_me: $at_fail_list${at_fail_list:+ failed${at_xpass_list:+, }}$at_xpass_list${at_xpass_list:+ passed unexpectedly}
1944 "
1945   if test $at_debug_p = false; then
1946     echo
1947     echo 'You may investigate any problem if you feel able to do so, in which'
1948     echo 'case the test suite provides a good starting point.  Its output may'
1949     $as_echo "be found below \`${at_testdir+${at_testdir}/}$as_me.dir'."
1950     echo
1951   fi
1952     exit 1
1953 fi
1954
1955 exit 0
1956
1957 ## ------------- ##
1958 ## Actual tests. ##
1959 ## ------------- ##
1960 #AT_START_1
1961 # 1. version.at:19: tar version
1962 at_setup_line='version.at:19'
1963 at_desc="tar version"
1964 $at_quiet $as_echo_n "  1: $at_desc                                    "
1965 at_xfail=no
1966 echo "#                             -*- compilation -*-" >> "$at_group_log"
1967 (
1968   $as_echo "1. version.at:19: testing ..."
1969   $at_traceon
1970
1971
1972 { $at_traceoff
1973 $as_echo "$at_srcdir/version.at:21: tar --version | sed 1q"
1974 echo version.at:21 >"$at_check_line_file"
1975
1976 if test -n "$at_traceon"; then
1977   ( $at_traceon; tar --version | sed 1q ) >"$at_stdout" 2>"$at_stder1"
1978   at_func_filter_trace $?
1979 else
1980   ( :; tar --version | sed 1q ) >"$at_stdout" 2>"$at_stderr"
1981 fi
1982 at_status=$?
1983 at_failed=false
1984 at_func_diff_devnull "$at_stderr" || at_failed=:
1985 echo >>"$at_stdout"; $as_echo "tar (GNU tar) 1.24
1986 " | \
1987   $at_diff - "$at_stdout" || at_failed=:
1988 at_func_check_status 0 $at_status "$at_srcdir/version.at:21"
1989 if $at_failed; then
1990   cat >$XFAILFILE <<'_EOT'
1991
1992 ==============================================================
1993 WARNING: Not using the proper version, *all* checks dubious...
1994 ==============================================================
1995 _EOT
1996
1997 else
1998   rm -f $XFAILFILE
1999 fi
2000
2001 $at_failed && at_func_log_failure
2002 $at_traceon; }
2003
2004
2005   $at_traceoff
2006   $at_times_p && times >"$at_times_file"
2007 ) 5>&1 2>&1 | eval $at_tee_pipe
2008 at_status=`cat "$at_status_file"`
2009 #AT_STOP_1
2010 #AT_START_2
2011 # 2. pipe.at:30: decompressing from stdin
2012 at_setup_line='pipe.at:30'
2013 at_desc="decompressing from stdin"
2014 $at_quiet $as_echo_n "  2: $at_desc                       "
2015 at_xfail=no
2016       test -f $XFAILFILE && at_xfail=yes
2017 echo "#                             -*- compilation -*-" >> "$at_group_log"
2018 (
2019   $as_echo "2. pipe.at:30: testing ..."
2020   $at_traceon
2021
2022
2023
2024
2025
2026
2027   { $at_traceoff
2028 $as_echo "$at_srcdir/pipe.at:34:
2029 mkdir v7
2030 (cd v7
2031 TEST_TAR_FORMAT=v7
2032 export TEST_TAR_FORMAT
2033 TAR_OPTIONS=\"-H v7\"
2034 export TAR_OPTIONS
2035 rm -rf *
2036
2037
2038 test -z "`sort < /dev/null 2>&1`" || exit 77
2039
2040
2041 mkdir directory
2042 genfile --length 10240 --pattern zeros --file directory/file1
2043 genfile --length 13 --file directory/file2
2044 tar cf archive directory
2045 mv directory orig
2046 cat archive | tar xfv - --warning=no-timestamp | sort
2047 echo \"separator\"
2048 cmp orig/file1 directory/file1
2049 echo \"separator\"
2050 cmp orig/file2 directory/file2)"
2051 echo pipe.at:34 >"$at_check_line_file"
2052
2053 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
2054    false; }; then
2055   ( $at_traceon;
2056 mkdir v7
2057 (cd v7
2058 TEST_TAR_FORMAT=v7
2059 export TEST_TAR_FORMAT
2060 TAR_OPTIONS="-H v7"
2061 export TAR_OPTIONS
2062 rm -rf *
2063
2064
2065 test -z "`sort < /dev/null 2>&1`" || exit 77
2066
2067
2068 mkdir directory
2069 genfile --length 10240 --pattern zeros --file directory/file1
2070 genfile --length 13 --file directory/file2
2071 tar cf archive directory
2072 mv directory orig
2073 cat archive | tar xfv - --warning=no-timestamp | sort
2074 echo "separator"
2075 cmp orig/file1 directory/file1
2076 echo "separator"
2077 cmp orig/file2 directory/file2) ) >"$at_stdout" 2>"$at_stder1"
2078   at_func_filter_trace $?
2079 else
2080   ( :;
2081 mkdir v7
2082 (cd v7
2083 TEST_TAR_FORMAT=v7
2084 export TEST_TAR_FORMAT
2085 TAR_OPTIONS="-H v7"
2086 export TAR_OPTIONS
2087 rm -rf *
2088
2089
2090 test -z "`sort < /dev/null 2>&1`" || exit 77
2091
2092
2093 mkdir directory
2094 genfile --length 10240 --pattern zeros --file directory/file1
2095 genfile --length 13 --file directory/file2
2096 tar cf archive directory
2097 mv directory orig
2098 cat archive | tar xfv - --warning=no-timestamp | sort
2099 echo "separator"
2100 cmp orig/file1 directory/file1
2101 echo "separator"
2102 cmp orig/file2 directory/file2) ) >"$at_stdout" 2>"$at_stderr"
2103 fi
2104 at_status=$?
2105 at_failed=false
2106 at_func_diff_devnull "$at_stderr" || at_failed=:
2107 echo >>"$at_stdout"; $as_echo "directory/
2108 directory/file1
2109 directory/file2
2110 separator
2111 separator
2112 " | \
2113   $at_diff - "$at_stdout" || at_failed=:
2114 at_func_check_status 0 $at_status "$at_srcdir/pipe.at:34"
2115
2116 $at_failed && at_func_log_failure
2117 $at_traceon; }
2118
2119               { $at_traceoff
2120 $as_echo "$at_srcdir/pipe.at:34:
2121 mkdir oldgnu
2122 (cd oldgnu
2123 TEST_TAR_FORMAT=oldgnu
2124 export TEST_TAR_FORMAT
2125 TAR_OPTIONS=\"-H oldgnu\"
2126 export TAR_OPTIONS
2127 rm -rf *
2128
2129
2130 test -z "`sort < /dev/null 2>&1`" || exit 77
2131
2132
2133 mkdir directory
2134 genfile --length 10240 --pattern zeros --file directory/file1
2135 genfile --length 13 --file directory/file2
2136 tar cf archive directory
2137 mv directory orig
2138 cat archive | tar xfv - --warning=no-timestamp | sort
2139 echo \"separator\"
2140 cmp orig/file1 directory/file1
2141 echo \"separator\"
2142 cmp orig/file2 directory/file2)"
2143 echo pipe.at:34 >"$at_check_line_file"
2144
2145 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
2146    false; }; then
2147   ( $at_traceon;
2148 mkdir oldgnu
2149 (cd oldgnu
2150 TEST_TAR_FORMAT=oldgnu
2151 export TEST_TAR_FORMAT
2152 TAR_OPTIONS="-H oldgnu"
2153 export TAR_OPTIONS
2154 rm -rf *
2155
2156
2157 test -z "`sort < /dev/null 2>&1`" || exit 77
2158
2159
2160 mkdir directory
2161 genfile --length 10240 --pattern zeros --file directory/file1
2162 genfile --length 13 --file directory/file2
2163 tar cf archive directory
2164 mv directory orig
2165 cat archive | tar xfv - --warning=no-timestamp | sort
2166 echo "separator"
2167 cmp orig/file1 directory/file1
2168 echo "separator"
2169 cmp orig/file2 directory/file2) ) >"$at_stdout" 2>"$at_stder1"
2170   at_func_filter_trace $?
2171 else
2172   ( :;
2173 mkdir oldgnu
2174 (cd oldgnu
2175 TEST_TAR_FORMAT=oldgnu
2176 export TEST_TAR_FORMAT
2177 TAR_OPTIONS="-H oldgnu"
2178 export TAR_OPTIONS
2179 rm -rf *
2180
2181
2182 test -z "`sort < /dev/null 2>&1`" || exit 77
2183
2184
2185 mkdir directory
2186 genfile --length 10240 --pattern zeros --file directory/file1
2187 genfile --length 13 --file directory/file2
2188 tar cf archive directory
2189 mv directory orig
2190 cat archive | tar xfv - --warning=no-timestamp | sort
2191 echo "separator"
2192 cmp orig/file1 directory/file1
2193 echo "separator"
2194 cmp orig/file2 directory/file2) ) >"$at_stdout" 2>"$at_stderr"
2195 fi
2196 at_status=$?
2197 at_failed=false
2198 at_func_diff_devnull "$at_stderr" || at_failed=:
2199 echo >>"$at_stdout"; $as_echo "directory/
2200 directory/file1
2201 directory/file2
2202 separator
2203 separator
2204 " | \
2205   $at_diff - "$at_stdout" || at_failed=:
2206 at_func_check_status 0 $at_status "$at_srcdir/pipe.at:34"
2207
2208 $at_failed && at_func_log_failure
2209 $at_traceon; }
2210
2211               { $at_traceoff
2212 $as_echo "$at_srcdir/pipe.at:34:
2213 mkdir ustar
2214 (cd ustar
2215 TEST_TAR_FORMAT=ustar
2216 export TEST_TAR_FORMAT
2217 TAR_OPTIONS=\"-H ustar\"
2218 export TAR_OPTIONS
2219 rm -rf *
2220
2221
2222 test -z "`sort < /dev/null 2>&1`" || exit 77
2223
2224
2225 mkdir directory
2226 genfile --length 10240 --pattern zeros --file directory/file1
2227 genfile --length 13 --file directory/file2
2228 tar cf archive directory
2229 mv directory orig
2230 cat archive | tar xfv - --warning=no-timestamp | sort
2231 echo \"separator\"
2232 cmp orig/file1 directory/file1
2233 echo \"separator\"
2234 cmp orig/file2 directory/file2)"
2235 echo pipe.at:34 >"$at_check_line_file"
2236
2237 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
2238    false; }; then
2239   ( $at_traceon;
2240 mkdir ustar
2241 (cd ustar
2242 TEST_TAR_FORMAT=ustar
2243 export TEST_TAR_FORMAT
2244 TAR_OPTIONS="-H ustar"
2245 export TAR_OPTIONS
2246 rm -rf *
2247
2248
2249 test -z "`sort < /dev/null 2>&1`" || exit 77
2250
2251
2252 mkdir directory
2253 genfile --length 10240 --pattern zeros --file directory/file1
2254 genfile --length 13 --file directory/file2
2255 tar cf archive directory
2256 mv directory orig
2257 cat archive | tar xfv - --warning=no-timestamp | sort
2258 echo "separator"
2259 cmp orig/file1 directory/file1
2260 echo "separator"
2261 cmp orig/file2 directory/file2) ) >"$at_stdout" 2>"$at_stder1"
2262   at_func_filter_trace $?
2263 else
2264   ( :;
2265 mkdir ustar
2266 (cd ustar
2267 TEST_TAR_FORMAT=ustar
2268 export TEST_TAR_FORMAT
2269 TAR_OPTIONS="-H ustar"
2270 export TAR_OPTIONS
2271 rm -rf *
2272
2273
2274 test -z "`sort < /dev/null 2>&1`" || exit 77
2275
2276
2277 mkdir directory
2278 genfile --length 10240 --pattern zeros --file directory/file1
2279 genfile --length 13 --file directory/file2
2280 tar cf archive directory
2281 mv directory orig
2282 cat archive | tar xfv - --warning=no-timestamp | sort
2283 echo "separator"
2284 cmp orig/file1 directory/file1
2285 echo "separator"
2286 cmp orig/file2 directory/file2) ) >"$at_stdout" 2>"$at_stderr"
2287 fi
2288 at_status=$?
2289 at_failed=false
2290 at_func_diff_devnull "$at_stderr" || at_failed=:
2291 echo >>"$at_stdout"; $as_echo "directory/
2292 directory/file1
2293 directory/file2
2294 separator
2295 separator
2296 " | \
2297   $at_diff - "$at_stdout" || at_failed=:
2298 at_func_check_status 0 $at_status "$at_srcdir/pipe.at:34"
2299
2300 $at_failed && at_func_log_failure
2301 $at_traceon; }
2302
2303               { $at_traceoff
2304 $as_echo "$at_srcdir/pipe.at:34:
2305 mkdir posix
2306 (cd posix
2307 TEST_TAR_FORMAT=posix
2308 export TEST_TAR_FORMAT
2309 TAR_OPTIONS=\"-H posix\"
2310 export TAR_OPTIONS
2311 rm -rf *
2312
2313
2314 test -z "`sort < /dev/null 2>&1`" || exit 77
2315
2316
2317 mkdir directory
2318 genfile --length 10240 --pattern zeros --file directory/file1
2319 genfile --length 13 --file directory/file2
2320 tar cf archive directory
2321 mv directory orig
2322 cat archive | tar xfv - --warning=no-timestamp | sort
2323 echo \"separator\"
2324 cmp orig/file1 directory/file1
2325 echo \"separator\"
2326 cmp orig/file2 directory/file2)"
2327 echo pipe.at:34 >"$at_check_line_file"
2328
2329 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
2330    false; }; then
2331   ( $at_traceon;
2332 mkdir posix
2333 (cd posix
2334 TEST_TAR_FORMAT=posix
2335 export TEST_TAR_FORMAT
2336 TAR_OPTIONS="-H posix"
2337 export TAR_OPTIONS
2338 rm -rf *
2339
2340
2341 test -z "`sort < /dev/null 2>&1`" || exit 77
2342
2343
2344 mkdir directory
2345 genfile --length 10240 --pattern zeros --file directory/file1
2346 genfile --length 13 --file directory/file2
2347 tar cf archive directory
2348 mv directory orig
2349 cat archive | tar xfv - --warning=no-timestamp | sort
2350 echo "separator"
2351 cmp orig/file1 directory/file1
2352 echo "separator"
2353 cmp orig/file2 directory/file2) ) >"$at_stdout" 2>"$at_stder1"
2354   at_func_filter_trace $?
2355 else
2356   ( :;
2357 mkdir posix
2358 (cd posix
2359 TEST_TAR_FORMAT=posix
2360 export TEST_TAR_FORMAT
2361 TAR_OPTIONS="-H posix"
2362 export TAR_OPTIONS
2363 rm -rf *
2364
2365
2366 test -z "`sort < /dev/null 2>&1`" || exit 77
2367
2368
2369 mkdir directory
2370 genfile --length 10240 --pattern zeros --file directory/file1
2371 genfile --length 13 --file directory/file2
2372 tar cf archive directory
2373 mv directory orig
2374 cat archive | tar xfv - --warning=no-timestamp | sort
2375 echo "separator"
2376 cmp orig/file1 directory/file1
2377 echo "separator"
2378 cmp orig/file2 directory/file2) ) >"$at_stdout" 2>"$at_stderr"
2379 fi
2380 at_status=$?
2381 at_failed=false
2382 at_func_diff_devnull "$at_stderr" || at_failed=:
2383 echo >>"$at_stdout"; $as_echo "directory/
2384 directory/file1
2385 directory/file2
2386 separator
2387 separator
2388 " | \
2389   $at_diff - "$at_stdout" || at_failed=:
2390 at_func_check_status 0 $at_status "$at_srcdir/pipe.at:34"
2391
2392 $at_failed && at_func_log_failure
2393 $at_traceon; }
2394
2395               { $at_traceoff
2396 $as_echo "$at_srcdir/pipe.at:34:
2397 mkdir gnu
2398 (cd gnu
2399 TEST_TAR_FORMAT=gnu
2400 export TEST_TAR_FORMAT
2401 TAR_OPTIONS=\"-H gnu\"
2402 export TAR_OPTIONS
2403 rm -rf *
2404
2405
2406 test -z "`sort < /dev/null 2>&1`" || exit 77
2407
2408
2409 mkdir directory
2410 genfile --length 10240 --pattern zeros --file directory/file1
2411 genfile --length 13 --file directory/file2
2412 tar cf archive directory
2413 mv directory orig
2414 cat archive | tar xfv - --warning=no-timestamp | sort
2415 echo \"separator\"
2416 cmp orig/file1 directory/file1
2417 echo \"separator\"
2418 cmp orig/file2 directory/file2)"
2419 echo pipe.at:34 >"$at_check_line_file"
2420
2421 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
2422    false; }; then
2423   ( $at_traceon;
2424 mkdir gnu
2425 (cd gnu
2426 TEST_TAR_FORMAT=gnu
2427 export TEST_TAR_FORMAT
2428 TAR_OPTIONS="-H gnu"
2429 export TAR_OPTIONS
2430 rm -rf *
2431
2432
2433 test -z "`sort < /dev/null 2>&1`" || exit 77
2434
2435
2436 mkdir directory
2437 genfile --length 10240 --pattern zeros --file directory/file1
2438 genfile --length 13 --file directory/file2
2439 tar cf archive directory
2440 mv directory orig
2441 cat archive | tar xfv - --warning=no-timestamp | sort
2442 echo "separator"
2443 cmp orig/file1 directory/file1
2444 echo "separator"
2445 cmp orig/file2 directory/file2) ) >"$at_stdout" 2>"$at_stder1"
2446   at_func_filter_trace $?
2447 else
2448   ( :;
2449 mkdir gnu
2450 (cd gnu
2451 TEST_TAR_FORMAT=gnu
2452 export TEST_TAR_FORMAT
2453 TAR_OPTIONS="-H gnu"
2454 export TAR_OPTIONS
2455 rm -rf *
2456
2457
2458 test -z "`sort < /dev/null 2>&1`" || exit 77
2459
2460
2461 mkdir directory
2462 genfile --length 10240 --pattern zeros --file directory/file1
2463 genfile --length 13 --file directory/file2
2464 tar cf archive directory
2465 mv directory orig
2466 cat archive | tar xfv - --warning=no-timestamp | sort
2467 echo "separator"
2468 cmp orig/file1 directory/file1
2469 echo "separator"
2470 cmp orig/file2 directory/file2) ) >"$at_stdout" 2>"$at_stderr"
2471 fi
2472 at_status=$?
2473 at_failed=false
2474 at_func_diff_devnull "$at_stderr" || at_failed=:
2475 echo >>"$at_stdout"; $as_echo "directory/
2476 directory/file1
2477 directory/file2
2478 separator
2479 separator
2480 " | \
2481   $at_diff - "$at_stdout" || at_failed=:
2482 at_func_check_status 0 $at_status "$at_srcdir/pipe.at:34"
2483
2484 $at_failed && at_func_log_failure
2485 $at_traceon; }
2486
2487
2488
2489
2490   $at_traceoff
2491   $at_times_p && times >"$at_times_file"
2492 ) 5>&1 2>&1 | eval $at_tee_pipe
2493 at_status=`cat "$at_status_file"`
2494 #AT_STOP_2
2495 #AT_START_3
2496 # 3. options.at:24: mixing options
2497 at_setup_line='options.at:24'
2498 at_desc="mixing options"
2499 $at_quiet $as_echo_n "  3: $at_desc                                 "
2500 at_xfail=no
2501 echo "#                             -*- compilation -*-" >> "$at_group_log"
2502 (
2503   $as_echo "3. options.at:24: testing ..."
2504   $at_traceon
2505
2506
2507
2508 { $at_traceoff
2509 $as_echo "$at_srcdir/options.at:27:
2510 echo > file1
2511 TAR_OPTIONS=--numeric-owner tar chof archive file1
2512 tar tf archive
2513 "
2514 echo options.at:27 >"$at_check_line_file"
2515
2516 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
2517    false; }; then
2518   ( $at_traceon;
2519 echo > file1
2520 TAR_OPTIONS=--numeric-owner tar chof archive file1
2521 tar tf archive
2522  ) >"$at_stdout" 2>"$at_stder1"
2523   at_func_filter_trace $?
2524 else
2525   ( :;
2526 echo > file1
2527 TAR_OPTIONS=--numeric-owner tar chof archive file1
2528 tar tf archive
2529  ) >"$at_stdout" 2>"$at_stderr"
2530 fi
2531 at_status=$?
2532 at_failed=false
2533 at_func_diff_devnull "$at_stderr" || at_failed=:
2534 echo >>"$at_stdout"; $as_echo "file1
2535 " | \
2536   $at_diff - "$at_stdout" || at_failed=:
2537 at_func_check_status 0 $at_status "$at_srcdir/options.at:27"
2538
2539 $at_failed && at_func_log_failure
2540 $at_traceon; }
2541
2542
2543   $at_traceoff
2544   $at_times_p && times >"$at_times_file"
2545 ) 5>&1 2>&1 | eval $at_tee_pipe
2546 at_status=`cat "$at_status_file"`
2547 #AT_STOP_3
2548 #AT_START_4
2549 # 4. options02.at:26: interspersed options
2550 at_setup_line='options02.at:26'
2551 at_desc="interspersed options"
2552 $at_quiet $as_echo_n "  4: $at_desc                           "
2553 at_xfail=no
2554 echo "#                             -*- compilation -*-" >> "$at_group_log"
2555 (
2556   $as_echo "4. options02.at:26: testing ..."
2557   $at_traceon
2558
2559
2560
2561 { $at_traceoff
2562 $as_echo "$at_srcdir/options02.at:29:
2563 echo > file1
2564 tar c file1 -f archive
2565 tar tf archive
2566 "
2567 echo options02.at:29 >"$at_check_line_file"
2568
2569 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
2570    false; }; then
2571   ( $at_traceon;
2572 echo > file1
2573 tar c file1 -f archive
2574 tar tf archive
2575  ) >"$at_stdout" 2>"$at_stder1"
2576   at_func_filter_trace $?
2577 else
2578   ( :;
2579 echo > file1
2580 tar c file1 -f archive
2581 tar tf archive
2582  ) >"$at_stdout" 2>"$at_stderr"
2583 fi
2584 at_status=$?
2585 at_failed=false
2586 at_func_diff_devnull "$at_stderr" || at_failed=:
2587 echo >>"$at_stdout"; $as_echo "file1
2588 " | \
2589   $at_diff - "$at_stdout" || at_failed=:
2590 at_func_check_status 0 $at_status "$at_srcdir/options02.at:29"
2591
2592 $at_failed && at_func_log_failure
2593 $at_traceon; }
2594
2595
2596   $at_traceoff
2597   $at_times_p && times >"$at_times_file"
2598 ) 5>&1 2>&1 | eval $at_tee_pipe
2599 at_status=`cat "$at_status_file"`
2600 #AT_STOP_4
2601 #AT_START_5
2602 # 5. T-empty.at:26: files-from: empty entries
2603 at_setup_line='T-empty.at:26'
2604 at_desc="files-from: empty entries"
2605 $at_quiet $as_echo_n "  5: $at_desc                      "
2606 at_xfail=no
2607       test -f $XFAILFILE && at_xfail=yes
2608 echo "#                             -*- compilation -*-" >> "$at_group_log"
2609 (
2610   $as_echo "5. T-empty.at:26: testing ..."
2611   $at_traceon
2612
2613
2614
2615 cat >file-list <<'_ATEOF'
2616 jeden
2617 dwa
2618
2619 trzy
2620 _ATEOF
2621
2622
2623
2624
2625   { $at_traceoff
2626 $as_echo "$at_srcdir/T-empty.at:36:
2627 mkdir ustar
2628 (cd ustar
2629 TEST_TAR_FORMAT=ustar
2630 export TEST_TAR_FORMAT
2631 TAR_OPTIONS=\"-H ustar\"
2632 export TAR_OPTIONS
2633 rm -rf *
2634
2635
2636 test -z "`sort < /dev/null 2>&1`" || exit 77
2637
2638
2639 genfile --file jeden
2640 genfile --file dwa
2641 genfile --file trzy
2642
2643 tar cfvT archive ../file-list | sort
2644 )"
2645 echo T-empty.at:36 >"$at_check_line_file"
2646
2647 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
2648    false; }; then
2649   ( $at_traceon;
2650 mkdir ustar
2651 (cd ustar
2652 TEST_TAR_FORMAT=ustar
2653 export TEST_TAR_FORMAT
2654 TAR_OPTIONS="-H ustar"
2655 export TAR_OPTIONS
2656 rm -rf *
2657
2658
2659 test -z "`sort < /dev/null 2>&1`" || exit 77
2660
2661
2662 genfile --file jeden
2663 genfile --file dwa
2664 genfile --file trzy
2665
2666 tar cfvT archive ../file-list | sort
2667 ) ) >"$at_stdout" 2>"$at_stder1"
2668   at_func_filter_trace $?
2669 else
2670   ( :;
2671 mkdir ustar
2672 (cd ustar
2673 TEST_TAR_FORMAT=ustar
2674 export TEST_TAR_FORMAT
2675 TAR_OPTIONS="-H ustar"
2676 export TAR_OPTIONS
2677 rm -rf *
2678
2679
2680 test -z "`sort < /dev/null 2>&1`" || exit 77
2681
2682
2683 genfile --file jeden
2684 genfile --file dwa
2685 genfile --file trzy
2686
2687 tar cfvT archive ../file-list | sort
2688 ) ) >"$at_stdout" 2>"$at_stderr"
2689 fi
2690 at_status=$?
2691 at_failed=false
2692 at_func_diff_devnull "$at_stderr" || at_failed=:
2693 echo >>"$at_stdout"; $as_echo "dwa
2694 jeden
2695 trzy
2696 " | \
2697   $at_diff - "$at_stdout" || at_failed=:
2698 at_func_check_status 0 $at_status "$at_srcdir/T-empty.at:36"
2699
2700 $at_failed && at_func_log_failure
2701 $at_traceon; }
2702
2703
2704  # Testing one format is enough
2705
2706   $at_traceoff
2707   $at_times_p && times >"$at_times_file"
2708 ) 5>&1 2>&1 | eval $at_tee_pipe
2709 at_status=`cat "$at_status_file"`
2710 #AT_STOP_5
2711 #AT_START_6
2712 # 6. T-null.at:21: files-from: 0-separated file without -0
2713 at_setup_line='T-null.at:21'
2714 at_desc="files-from: 0-separated file without -0"
2715 $at_quiet $as_echo_n "  6: $at_desc        "
2716 at_xfail=no
2717       test -f $XFAILFILE && at_xfail=yes
2718 echo "#                             -*- compilation -*-" >> "$at_group_log"
2719 (
2720   $as_echo "6. T-null.at:21: testing ..."
2721   $at_traceon
2722
2723
2724
2725 cat >expout <<'_ATEOF'
2726 jeden\ndwa
2727 trzy
2728 _ATEOF
2729
2730
2731
2732
2733   { $at_traceoff
2734 $as_echo "$at_srcdir/T-null.at:28:
2735 mkdir ustar
2736 (cd ustar
2737 TEST_TAR_FORMAT=ustar
2738 export TEST_TAR_FORMAT
2739 TAR_OPTIONS=\"-H ustar\"
2740 export TAR_OPTIONS
2741 rm -rf *
2742
2743
2744 test -z "`sort < /dev/null 2>&1`" || exit 77
2745
2746
2747 echo dwa > temp
2748 echo trzy >> temp
2749 cat temp | tr '\\n' '\\0' > temp1
2750 echo jeden > file-list
2751 cat temp1 >> file-list
2752
2753 genfile -f \"jeden
2754 dwa\" || exit 77
2755 genfile -f trzy
2756
2757 tar cfTv archive file-list | sort
2758 )"
2759 echo T-null.at:28 >"$at_check_line_file"
2760
2761 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
2762    false; }; then
2763   ( $at_traceon;
2764 mkdir ustar
2765 (cd ustar
2766 TEST_TAR_FORMAT=ustar
2767 export TEST_TAR_FORMAT
2768 TAR_OPTIONS="-H ustar"
2769 export TAR_OPTIONS
2770 rm -rf *
2771
2772
2773 test -z "`sort < /dev/null 2>&1`" || exit 77
2774
2775
2776 echo dwa > temp
2777 echo trzy >> temp
2778 cat temp | tr '\n' '\0' > temp1
2779 echo jeden > file-list
2780 cat temp1 >> file-list
2781
2782 genfile -f "jeden
2783 dwa" || exit 77
2784 genfile -f trzy
2785
2786 tar cfTv archive file-list | sort
2787 ) ) >"$at_stdout" 2>"$at_stder1"
2788   at_func_filter_trace $?
2789 else
2790   ( :;
2791 mkdir ustar
2792 (cd ustar
2793 TEST_TAR_FORMAT=ustar
2794 export TEST_TAR_FORMAT
2795 TAR_OPTIONS="-H ustar"
2796 export TAR_OPTIONS
2797 rm -rf *
2798
2799
2800 test -z "`sort < /dev/null 2>&1`" || exit 77
2801
2802
2803 echo dwa > temp
2804 echo trzy >> temp
2805 cat temp | tr '\n' '\0' > temp1
2806 echo jeden > file-list
2807 cat temp1 >> file-list
2808
2809 genfile -f "jeden
2810 dwa" || exit 77
2811 genfile -f trzy
2812
2813 tar cfTv archive file-list | sort
2814 ) ) >"$at_stdout" 2>"$at_stderr"
2815 fi
2816 at_status=$?
2817 at_failed=false
2818 echo >>"$at_stderr"; $as_echo "tar: file-list: file name read contains nul character
2819 " | \
2820   $at_diff - "$at_stderr" || at_failed=:
2821 $at_diff expout "$at_stdout" || at_failed=:
2822 at_func_check_status 0 $at_status "$at_srcdir/T-null.at:28"
2823
2824 $at_failed && at_func_log_failure
2825 $at_traceon; }
2826
2827
2828  # Testing one format is enough
2829
2830   $at_traceoff
2831   $at_times_p && times >"$at_times_file"
2832 ) 5>&1 2>&1 | eval $at_tee_pipe
2833 at_status=`cat "$at_status_file"`
2834 #AT_STOP_6
2835 #AT_START_7
2836 # 7. indexfile.at:26: tar --index-file=FILE --file=-
2837 at_setup_line='indexfile.at:26'
2838 at_desc="tar --index-file=FILE --file=-"
2839 $at_quiet $as_echo_n "  7: $at_desc                 "
2840 at_xfail=no
2841       test -f $XFAILFILE && at_xfail=yes
2842 echo "#                             -*- compilation -*-" >> "$at_group_log"
2843 (
2844   $as_echo "7. indexfile.at:26: testing ..."
2845   $at_traceon
2846
2847
2848
2849
2850
2851   { $at_traceoff
2852 $as_echo "$at_srcdir/indexfile.at:29:
2853 mkdir v7
2854 (cd v7
2855 TEST_TAR_FORMAT=v7
2856 export TEST_TAR_FORMAT
2857 TAR_OPTIONS=\"-H v7\"
2858 export TAR_OPTIONS
2859 rm -rf *
2860
2861
2862 mkdir directory
2863 genfile --file=directory/a --length=1035
2864
2865 echo \"Creating the archive\"
2866 tar -c -v -f - --index-file=idx directory > archive
2867
2868 echo \"Testing the archive\"
2869 tar -tf archive
2870 )"
2871 echo indexfile.at:29 >"$at_check_line_file"
2872
2873 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
2874    false; }; then
2875   ( $at_traceon;
2876 mkdir v7
2877 (cd v7
2878 TEST_TAR_FORMAT=v7
2879 export TEST_TAR_FORMAT
2880 TAR_OPTIONS="-H v7"
2881 export TAR_OPTIONS
2882 rm -rf *
2883
2884
2885 mkdir directory
2886 genfile --file=directory/a --length=1035
2887
2888 echo "Creating the archive"
2889 tar -c -v -f - --index-file=idx directory > archive
2890
2891 echo "Testing the archive"
2892 tar -tf archive
2893 ) ) >"$at_stdout" 2>"$at_stder1"
2894   at_func_filter_trace $?
2895 else
2896   ( :;
2897 mkdir v7
2898 (cd v7
2899 TEST_TAR_FORMAT=v7
2900 export TEST_TAR_FORMAT
2901 TAR_OPTIONS="-H v7"
2902 export TAR_OPTIONS
2903 rm -rf *
2904
2905
2906 mkdir directory
2907 genfile --file=directory/a --length=1035
2908
2909 echo "Creating the archive"
2910 tar -c -v -f - --index-file=idx directory > archive
2911
2912 echo "Testing the archive"
2913 tar -tf archive
2914 ) ) >"$at_stdout" 2>"$at_stderr"
2915 fi
2916 at_status=$?
2917 at_failed=false
2918 at_func_diff_devnull "$at_stderr" || at_failed=:
2919 echo >>"$at_stdout"; $as_echo "Creating the archive
2920 Testing the archive
2921 directory/
2922 directory/a
2923 " | \
2924   $at_diff - "$at_stdout" || at_failed=:
2925 at_func_check_status 0 $at_status "$at_srcdir/indexfile.at:29"
2926
2927 $at_failed && at_func_log_failure
2928 $at_traceon; }
2929
2930               { $at_traceoff
2931 $as_echo "$at_srcdir/indexfile.at:29:
2932 mkdir oldgnu
2933 (cd oldgnu
2934 TEST_TAR_FORMAT=oldgnu
2935 export TEST_TAR_FORMAT
2936 TAR_OPTIONS=\"-H oldgnu\"
2937 export TAR_OPTIONS
2938 rm -rf *
2939
2940
2941 mkdir directory
2942 genfile --file=directory/a --length=1035
2943
2944 echo \"Creating the archive\"
2945 tar -c -v -f - --index-file=idx directory > archive
2946
2947 echo \"Testing the archive\"
2948 tar -tf archive
2949 )"
2950 echo indexfile.at:29 >"$at_check_line_file"
2951
2952 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
2953    false; }; then
2954   ( $at_traceon;
2955 mkdir oldgnu
2956 (cd oldgnu
2957 TEST_TAR_FORMAT=oldgnu
2958 export TEST_TAR_FORMAT
2959 TAR_OPTIONS="-H oldgnu"
2960 export TAR_OPTIONS
2961 rm -rf *
2962
2963
2964 mkdir directory
2965 genfile --file=directory/a --length=1035
2966
2967 echo "Creating the archive"
2968 tar -c -v -f - --index-file=idx directory > archive
2969
2970 echo "Testing the archive"
2971 tar -tf archive
2972 ) ) >"$at_stdout" 2>"$at_stder1"
2973   at_func_filter_trace $?
2974 else
2975   ( :;
2976 mkdir oldgnu
2977 (cd oldgnu
2978 TEST_TAR_FORMAT=oldgnu
2979 export TEST_TAR_FORMAT
2980 TAR_OPTIONS="-H oldgnu"
2981 export TAR_OPTIONS
2982 rm -rf *
2983
2984
2985 mkdir directory
2986 genfile --file=directory/a --length=1035
2987
2988 echo "Creating the archive"
2989 tar -c -v -f - --index-file=idx directory > archive
2990
2991 echo "Testing the archive"
2992 tar -tf archive
2993 ) ) >"$at_stdout" 2>"$at_stderr"
2994 fi
2995 at_status=$?
2996 at_failed=false
2997 at_func_diff_devnull "$at_stderr" || at_failed=:
2998 echo >>"$at_stdout"; $as_echo "Creating the archive
2999 Testing the archive
3000 directory/
3001 directory/a
3002 " | \
3003   $at_diff - "$at_stdout" || at_failed=:
3004 at_func_check_status 0 $at_status "$at_srcdir/indexfile.at:29"
3005
3006 $at_failed && at_func_log_failure
3007 $at_traceon; }
3008
3009               { $at_traceoff
3010 $as_echo "$at_srcdir/indexfile.at:29:
3011 mkdir ustar
3012 (cd ustar
3013 TEST_TAR_FORMAT=ustar
3014 export TEST_TAR_FORMAT
3015 TAR_OPTIONS=\"-H ustar\"
3016 export TAR_OPTIONS
3017 rm -rf *
3018
3019
3020 mkdir directory
3021 genfile --file=directory/a --length=1035
3022
3023 echo \"Creating the archive\"
3024 tar -c -v -f - --index-file=idx directory > archive
3025
3026 echo \"Testing the archive\"
3027 tar -tf archive
3028 )"
3029 echo indexfile.at:29 >"$at_check_line_file"
3030
3031 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
3032    false; }; then
3033   ( $at_traceon;
3034 mkdir ustar
3035 (cd ustar
3036 TEST_TAR_FORMAT=ustar
3037 export TEST_TAR_FORMAT
3038 TAR_OPTIONS="-H ustar"
3039 export TAR_OPTIONS
3040 rm -rf *
3041
3042
3043 mkdir directory
3044 genfile --file=directory/a --length=1035
3045
3046 echo "Creating the archive"
3047 tar -c -v -f - --index-file=idx directory > archive
3048
3049 echo "Testing the archive"
3050 tar -tf archive
3051 ) ) >"$at_stdout" 2>"$at_stder1"
3052   at_func_filter_trace $?
3053 else
3054   ( :;
3055 mkdir ustar
3056 (cd ustar
3057 TEST_TAR_FORMAT=ustar
3058 export TEST_TAR_FORMAT
3059 TAR_OPTIONS="-H ustar"
3060 export TAR_OPTIONS
3061 rm -rf *
3062
3063
3064 mkdir directory
3065 genfile --file=directory/a --length=1035
3066
3067 echo "Creating the archive"
3068 tar -c -v -f - --index-file=idx directory > archive
3069
3070 echo "Testing the archive"
3071 tar -tf archive
3072 ) ) >"$at_stdout" 2>"$at_stderr"
3073 fi
3074 at_status=$?
3075 at_failed=false
3076 at_func_diff_devnull "$at_stderr" || at_failed=:
3077 echo >>"$at_stdout"; $as_echo "Creating the archive
3078 Testing the archive
3079 directory/
3080 directory/a
3081 " | \
3082   $at_diff - "$at_stdout" || at_failed=:
3083 at_func_check_status 0 $at_status "$at_srcdir/indexfile.at:29"
3084
3085 $at_failed && at_func_log_failure
3086 $at_traceon; }
3087
3088               { $at_traceoff
3089 $as_echo "$at_srcdir/indexfile.at:29:
3090 mkdir posix
3091 (cd posix
3092 TEST_TAR_FORMAT=posix
3093 export TEST_TAR_FORMAT
3094 TAR_OPTIONS=\"-H posix\"
3095 export TAR_OPTIONS
3096 rm -rf *
3097
3098
3099 mkdir directory
3100 genfile --file=directory/a --length=1035
3101
3102 echo \"Creating the archive\"
3103 tar -c -v -f - --index-file=idx directory > archive
3104
3105 echo \"Testing the archive\"
3106 tar -tf archive
3107 )"
3108 echo indexfile.at:29 >"$at_check_line_file"
3109
3110 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
3111    false; }; then
3112   ( $at_traceon;
3113 mkdir posix
3114 (cd posix
3115 TEST_TAR_FORMAT=posix
3116 export TEST_TAR_FORMAT
3117 TAR_OPTIONS="-H posix"
3118 export TAR_OPTIONS
3119 rm -rf *
3120
3121
3122 mkdir directory
3123 genfile --file=directory/a --length=1035
3124
3125 echo "Creating the archive"
3126 tar -c -v -f - --index-file=idx directory > archive
3127
3128 echo "Testing the archive"
3129 tar -tf archive
3130 ) ) >"$at_stdout" 2>"$at_stder1"
3131   at_func_filter_trace $?
3132 else
3133   ( :;
3134 mkdir posix
3135 (cd posix
3136 TEST_TAR_FORMAT=posix
3137 export TEST_TAR_FORMAT
3138 TAR_OPTIONS="-H posix"
3139 export TAR_OPTIONS
3140 rm -rf *
3141
3142
3143 mkdir directory
3144 genfile --file=directory/a --length=1035
3145
3146 echo "Creating the archive"
3147 tar -c -v -f - --index-file=idx directory > archive
3148
3149 echo "Testing the archive"
3150 tar -tf archive
3151 ) ) >"$at_stdout" 2>"$at_stderr"
3152 fi
3153 at_status=$?
3154 at_failed=false
3155 at_func_diff_devnull "$at_stderr" || at_failed=:
3156 echo >>"$at_stdout"; $as_echo "Creating the archive
3157 Testing the archive
3158 directory/
3159 directory/a
3160 " | \
3161   $at_diff - "$at_stdout" || at_failed=:
3162 at_func_check_status 0 $at_status "$at_srcdir/indexfile.at:29"
3163
3164 $at_failed && at_func_log_failure
3165 $at_traceon; }
3166
3167               { $at_traceoff
3168 $as_echo "$at_srcdir/indexfile.at:29:
3169 mkdir gnu
3170 (cd gnu
3171 TEST_TAR_FORMAT=gnu
3172 export TEST_TAR_FORMAT
3173 TAR_OPTIONS=\"-H gnu\"
3174 export TAR_OPTIONS
3175 rm -rf *
3176
3177
3178 mkdir directory
3179 genfile --file=directory/a --length=1035
3180
3181 echo \"Creating the archive\"
3182 tar -c -v -f - --index-file=idx directory > archive
3183
3184 echo \"Testing the archive\"
3185 tar -tf archive
3186 )"
3187 echo indexfile.at:29 >"$at_check_line_file"
3188
3189 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
3190    false; }; then
3191   ( $at_traceon;
3192 mkdir gnu
3193 (cd gnu
3194 TEST_TAR_FORMAT=gnu
3195 export TEST_TAR_FORMAT
3196 TAR_OPTIONS="-H gnu"
3197 export TAR_OPTIONS
3198 rm -rf *
3199
3200
3201 mkdir directory
3202 genfile --file=directory/a --length=1035
3203
3204 echo "Creating the archive"
3205 tar -c -v -f - --index-file=idx directory > archive
3206
3207 echo "Testing the archive"
3208 tar -tf archive
3209 ) ) >"$at_stdout" 2>"$at_stder1"
3210   at_func_filter_trace $?
3211 else
3212   ( :;
3213 mkdir gnu
3214 (cd gnu
3215 TEST_TAR_FORMAT=gnu
3216 export TEST_TAR_FORMAT
3217 TAR_OPTIONS="-H gnu"
3218 export TAR_OPTIONS
3219 rm -rf *
3220
3221
3222 mkdir directory
3223 genfile --file=directory/a --length=1035
3224
3225 echo "Creating the archive"
3226 tar -c -v -f - --index-file=idx directory > archive
3227
3228 echo "Testing the archive"
3229 tar -tf archive
3230 ) ) >"$at_stdout" 2>"$at_stderr"
3231 fi
3232 at_status=$?
3233 at_failed=false
3234 at_func_diff_devnull "$at_stderr" || at_failed=:
3235 echo >>"$at_stdout"; $as_echo "Creating the archive
3236 Testing the archive
3237 directory/
3238 directory/a
3239 " | \
3240   $at_diff - "$at_stdout" || at_failed=:
3241 at_func_check_status 0 $at_status "$at_srcdir/indexfile.at:29"
3242
3243 $at_failed && at_func_log_failure
3244 $at_traceon; }
3245
3246
3247
3248
3249   $at_traceoff
3250   $at_times_p && times >"$at_times_file"
3251 ) 5>&1 2>&1 | eval $at_tee_pipe
3252 at_status=`cat "$at_status_file"`
3253 #AT_STOP_7
3254 #AT_START_8
3255 # 8. verbose.at:26: tar cvf -
3256 at_setup_line='verbose.at:26'
3257 at_desc="tar cvf -"
3258 $at_quiet $as_echo_n "  8: $at_desc                                      "
3259 at_xfail=no
3260       test -f $XFAILFILE && at_xfail=yes
3261 echo "#                             -*- compilation -*-" >> "$at_group_log"
3262 (
3263   $as_echo "8. verbose.at:26: testing ..."
3264   $at_traceon
3265
3266
3267
3268
3269
3270   { $at_traceoff
3271 $as_echo "$at_srcdir/verbose.at:29:
3272 mkdir v7
3273 (cd v7
3274 TEST_TAR_FORMAT=v7
3275 export TEST_TAR_FORMAT
3276 TAR_OPTIONS=\"-H v7\"
3277 export TAR_OPTIONS
3278 rm -rf *
3279
3280 genfile --file file --length 10240
3281 echo Creating the archive
3282 tar cvf - file > archive
3283 echo Testing the archive
3284 tar tf archive
3285 )"
3286 echo verbose.at:29 >"$at_check_line_file"
3287
3288 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
3289    false; }; then
3290   ( $at_traceon;
3291 mkdir v7
3292 (cd v7
3293 TEST_TAR_FORMAT=v7
3294 export TEST_TAR_FORMAT
3295 TAR_OPTIONS="-H v7"
3296 export TAR_OPTIONS
3297 rm -rf *
3298
3299 genfile --file file --length 10240
3300 echo Creating the archive
3301 tar cvf - file > archive
3302 echo Testing the archive
3303 tar tf archive
3304 ) ) >"$at_stdout" 2>"$at_stder1"
3305   at_func_filter_trace $?
3306 else
3307   ( :;
3308 mkdir v7
3309 (cd v7
3310 TEST_TAR_FORMAT=v7
3311 export TEST_TAR_FORMAT
3312 TAR_OPTIONS="-H v7"
3313 export TAR_OPTIONS
3314 rm -rf *
3315
3316 genfile --file file --length 10240
3317 echo Creating the archive
3318 tar cvf - file > archive
3319 echo Testing the archive
3320 tar tf archive
3321 ) ) >"$at_stdout" 2>"$at_stderr"
3322 fi
3323 at_status=$?
3324 at_failed=false
3325 echo >>"$at_stderr"; $as_echo "file
3326 " | \
3327   $at_diff - "$at_stderr" || at_failed=:
3328 echo >>"$at_stdout"; $as_echo "Creating the archive
3329 Testing the archive
3330 file
3331 " | \
3332   $at_diff - "$at_stdout" || at_failed=:
3333 at_func_check_status 0 $at_status "$at_srcdir/verbose.at:29"
3334
3335 $at_failed && at_func_log_failure
3336 $at_traceon; }
3337
3338               { $at_traceoff
3339 $as_echo "$at_srcdir/verbose.at:29:
3340 mkdir oldgnu
3341 (cd oldgnu
3342 TEST_TAR_FORMAT=oldgnu
3343 export TEST_TAR_FORMAT
3344 TAR_OPTIONS=\"-H oldgnu\"
3345 export TAR_OPTIONS
3346 rm -rf *
3347
3348 genfile --file file --length 10240
3349 echo Creating the archive
3350 tar cvf - file > archive
3351 echo Testing the archive
3352 tar tf archive
3353 )"
3354 echo verbose.at:29 >"$at_check_line_file"
3355
3356 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
3357    false; }; then
3358   ( $at_traceon;
3359 mkdir oldgnu
3360 (cd oldgnu
3361 TEST_TAR_FORMAT=oldgnu
3362 export TEST_TAR_FORMAT
3363 TAR_OPTIONS="-H oldgnu"
3364 export TAR_OPTIONS
3365 rm -rf *
3366
3367 genfile --file file --length 10240
3368 echo Creating the archive
3369 tar cvf - file > archive
3370 echo Testing the archive
3371 tar tf archive
3372 ) ) >"$at_stdout" 2>"$at_stder1"
3373   at_func_filter_trace $?
3374 else
3375   ( :;
3376 mkdir oldgnu
3377 (cd oldgnu
3378 TEST_TAR_FORMAT=oldgnu
3379 export TEST_TAR_FORMAT
3380 TAR_OPTIONS="-H oldgnu"
3381 export TAR_OPTIONS
3382 rm -rf *
3383
3384 genfile --file file --length 10240
3385 echo Creating the archive
3386 tar cvf - file > archive
3387 echo Testing the archive
3388 tar tf archive
3389 ) ) >"$at_stdout" 2>"$at_stderr"
3390 fi
3391 at_status=$?
3392 at_failed=false
3393 echo >>"$at_stderr"; $as_echo "file
3394 " | \
3395   $at_diff - "$at_stderr" || at_failed=:
3396 echo >>"$at_stdout"; $as_echo "Creating the archive
3397 Testing the archive
3398 file
3399 " | \
3400   $at_diff - "$at_stdout" || at_failed=:
3401 at_func_check_status 0 $at_status "$at_srcdir/verbose.at:29"
3402
3403 $at_failed && at_func_log_failure
3404 $at_traceon; }
3405
3406               { $at_traceoff
3407 $as_echo "$at_srcdir/verbose.at:29:
3408 mkdir ustar
3409 (cd ustar
3410 TEST_TAR_FORMAT=ustar
3411 export TEST_TAR_FORMAT
3412 TAR_OPTIONS=\"-H ustar\"
3413 export TAR_OPTIONS
3414 rm -rf *
3415
3416 genfile --file file --length 10240
3417 echo Creating the archive
3418 tar cvf - file > archive
3419 echo Testing the archive
3420 tar tf archive
3421 )"
3422 echo verbose.at:29 >"$at_check_line_file"
3423
3424 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
3425    false; }; then
3426   ( $at_traceon;
3427 mkdir ustar
3428 (cd ustar
3429 TEST_TAR_FORMAT=ustar
3430 export TEST_TAR_FORMAT
3431 TAR_OPTIONS="-H ustar"
3432 export TAR_OPTIONS
3433 rm -rf *
3434
3435 genfile --file file --length 10240
3436 echo Creating the archive
3437 tar cvf - file > archive
3438 echo Testing the archive
3439 tar tf archive
3440 ) ) >"$at_stdout" 2>"$at_stder1"
3441   at_func_filter_trace $?
3442 else
3443   ( :;
3444 mkdir ustar
3445 (cd ustar
3446 TEST_TAR_FORMAT=ustar
3447 export TEST_TAR_FORMAT
3448 TAR_OPTIONS="-H ustar"
3449 export TAR_OPTIONS
3450 rm -rf *
3451
3452 genfile --file file --length 10240
3453 echo Creating the archive
3454 tar cvf - file > archive
3455 echo Testing the archive
3456 tar tf archive
3457 ) ) >"$at_stdout" 2>"$at_stderr"
3458 fi
3459 at_status=$?
3460 at_failed=false
3461 echo >>"$at_stderr"; $as_echo "file
3462 " | \
3463   $at_diff - "$at_stderr" || at_failed=:
3464 echo >>"$at_stdout"; $as_echo "Creating the archive
3465 Testing the archive
3466 file
3467 " | \
3468   $at_diff - "$at_stdout" || at_failed=:
3469 at_func_check_status 0 $at_status "$at_srcdir/verbose.at:29"
3470
3471 $at_failed && at_func_log_failure
3472 $at_traceon; }
3473
3474               { $at_traceoff
3475 $as_echo "$at_srcdir/verbose.at:29:
3476 mkdir posix
3477 (cd posix
3478 TEST_TAR_FORMAT=posix
3479 export TEST_TAR_FORMAT
3480 TAR_OPTIONS=\"-H posix\"
3481 export TAR_OPTIONS
3482 rm -rf *
3483
3484 genfile --file file --length 10240
3485 echo Creating the archive
3486 tar cvf - file > archive
3487 echo Testing the archive
3488 tar tf archive
3489 )"
3490 echo verbose.at:29 >"$at_check_line_file"
3491
3492 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
3493    false; }; then
3494   ( $at_traceon;
3495 mkdir posix
3496 (cd posix
3497 TEST_TAR_FORMAT=posix
3498 export TEST_TAR_FORMAT
3499 TAR_OPTIONS="-H posix"
3500 export TAR_OPTIONS
3501 rm -rf *
3502
3503 genfile --file file --length 10240
3504 echo Creating the archive
3505 tar cvf - file > archive
3506 echo Testing the archive
3507 tar tf archive
3508 ) ) >"$at_stdout" 2>"$at_stder1"
3509   at_func_filter_trace $?
3510 else
3511   ( :;
3512 mkdir posix
3513 (cd posix
3514 TEST_TAR_FORMAT=posix
3515 export TEST_TAR_FORMAT
3516 TAR_OPTIONS="-H posix"
3517 export TAR_OPTIONS
3518 rm -rf *
3519
3520 genfile --file file --length 10240
3521 echo Creating the archive
3522 tar cvf - file > archive
3523 echo Testing the archive
3524 tar tf archive
3525 ) ) >"$at_stdout" 2>"$at_stderr"
3526 fi
3527 at_status=$?
3528 at_failed=false
3529 echo >>"$at_stderr"; $as_echo "file
3530 " | \
3531   $at_diff - "$at_stderr" || at_failed=:
3532 echo >>"$at_stdout"; $as_echo "Creating the archive
3533 Testing the archive
3534 file
3535 " | \
3536   $at_diff - "$at_stdout" || at_failed=:
3537 at_func_check_status 0 $at_status "$at_srcdir/verbose.at:29"
3538
3539 $at_failed && at_func_log_failure
3540 $at_traceon; }
3541
3542               { $at_traceoff
3543 $as_echo "$at_srcdir/verbose.at:29:
3544 mkdir gnu
3545 (cd gnu
3546 TEST_TAR_FORMAT=gnu
3547 export TEST_TAR_FORMAT
3548 TAR_OPTIONS=\"-H gnu\"
3549 export TAR_OPTIONS
3550 rm -rf *
3551
3552 genfile --file file --length 10240
3553 echo Creating the archive
3554 tar cvf - file > archive
3555 echo Testing the archive
3556 tar tf archive
3557 )"
3558 echo verbose.at:29 >"$at_check_line_file"
3559
3560 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
3561    false; }; then
3562   ( $at_traceon;
3563 mkdir gnu
3564 (cd gnu
3565 TEST_TAR_FORMAT=gnu
3566 export TEST_TAR_FORMAT
3567 TAR_OPTIONS="-H gnu"
3568 export TAR_OPTIONS
3569 rm -rf *
3570
3571 genfile --file file --length 10240
3572 echo Creating the archive
3573 tar cvf - file > archive
3574 echo Testing the archive
3575 tar tf archive
3576 ) ) >"$at_stdout" 2>"$at_stder1"
3577   at_func_filter_trace $?
3578 else
3579   ( :;
3580 mkdir gnu
3581 (cd gnu
3582 TEST_TAR_FORMAT=gnu
3583 export TEST_TAR_FORMAT
3584 TAR_OPTIONS="-H gnu"
3585 export TAR_OPTIONS
3586 rm -rf *
3587
3588 genfile --file file --length 10240
3589 echo Creating the archive
3590 tar cvf - file > archive
3591 echo Testing the archive
3592 tar tf archive
3593 ) ) >"$at_stdout" 2>"$at_stderr"
3594 fi
3595 at_status=$?
3596 at_failed=false
3597 echo >>"$at_stderr"; $as_echo "file
3598 " | \
3599   $at_diff - "$at_stderr" || at_failed=:
3600 echo >>"$at_stdout"; $as_echo "Creating the archive
3601 Testing the archive
3602 file
3603 " | \
3604   $at_diff - "$at_stdout" || at_failed=:
3605 at_func_check_status 0 $at_status "$at_srcdir/verbose.at:29"
3606
3607 $at_failed && at_func_log_failure
3608 $at_traceon; }
3609
3610
3611
3612
3613   $at_traceoff
3614   $at_times_p && times >"$at_times_file"
3615 ) 5>&1 2>&1 | eval $at_tee_pipe
3616 at_status=`cat "$at_status_file"`
3617 #AT_STOP_8
3618 #AT_START_9
3619 # 9. append.at:21: append
3620 at_setup_line='append.at:21'
3621 at_desc="append"
3622 $at_quiet $as_echo_n "  9: $at_desc                                         "
3623 at_xfail=no
3624       test -f $XFAILFILE && at_xfail=yes
3625 echo "#                             -*- compilation -*-" >> "$at_group_log"
3626 (
3627   $as_echo "9. append.at:21: testing ..."
3628   $at_traceon
3629
3630
3631
3632
3633
3634   { $at_traceoff
3635 $as_echo "$at_srcdir/append.at:24:
3636 mkdir v7
3637 (cd v7
3638 TEST_TAR_FORMAT=v7
3639 export TEST_TAR_FORMAT
3640 TAR_OPTIONS=\"-H v7\"
3641 export TAR_OPTIONS
3642 rm -rf *
3643 touch file1
3644           touch file2
3645           tar cf archive file1
3646           tar rf archive file2
3647           tar tf archive)"
3648 echo append.at:24 >"$at_check_line_file"
3649
3650 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
3651    false; }; then
3652   ( $at_traceon;
3653 mkdir v7
3654 (cd v7
3655 TEST_TAR_FORMAT=v7
3656 export TEST_TAR_FORMAT
3657 TAR_OPTIONS="-H v7"
3658 export TAR_OPTIONS
3659 rm -rf *
3660 touch file1
3661           touch file2
3662           tar cf archive file1
3663           tar rf archive file2
3664           tar tf archive) ) >"$at_stdout" 2>"$at_stder1"
3665   at_func_filter_trace $?
3666 else
3667   ( :;
3668 mkdir v7
3669 (cd v7
3670 TEST_TAR_FORMAT=v7
3671 export TEST_TAR_FORMAT
3672 TAR_OPTIONS="-H v7"
3673 export TAR_OPTIONS
3674 rm -rf *
3675 touch file1
3676           touch file2
3677           tar cf archive file1
3678           tar rf archive file2
3679           tar tf archive) ) >"$at_stdout" 2>"$at_stderr"
3680 fi
3681 at_status=$?
3682 at_failed=false
3683 at_func_diff_devnull "$at_stderr" || at_failed=:
3684 echo >>"$at_stdout"; $as_echo "file1
3685 file2
3686 " | \
3687   $at_diff - "$at_stdout" || at_failed=:
3688 at_func_check_status 0 $at_status "$at_srcdir/append.at:24"
3689
3690 $at_failed && at_func_log_failure
3691 $at_traceon; }
3692
3693               { $at_traceoff
3694 $as_echo "$at_srcdir/append.at:24:
3695 mkdir oldgnu
3696 (cd oldgnu
3697 TEST_TAR_FORMAT=oldgnu
3698 export TEST_TAR_FORMAT
3699 TAR_OPTIONS=\"-H oldgnu\"
3700 export TAR_OPTIONS
3701 rm -rf *
3702 touch file1
3703           touch file2
3704           tar cf archive file1
3705           tar rf archive file2
3706           tar tf archive)"
3707 echo append.at:24 >"$at_check_line_file"
3708
3709 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
3710    false; }; then
3711   ( $at_traceon;
3712 mkdir oldgnu
3713 (cd oldgnu
3714 TEST_TAR_FORMAT=oldgnu
3715 export TEST_TAR_FORMAT
3716 TAR_OPTIONS="-H oldgnu"
3717 export TAR_OPTIONS
3718 rm -rf *
3719 touch file1
3720           touch file2
3721           tar cf archive file1
3722           tar rf archive file2
3723           tar tf archive) ) >"$at_stdout" 2>"$at_stder1"
3724   at_func_filter_trace $?
3725 else
3726   ( :;
3727 mkdir oldgnu
3728 (cd oldgnu
3729 TEST_TAR_FORMAT=oldgnu
3730 export TEST_TAR_FORMAT
3731 TAR_OPTIONS="-H oldgnu"
3732 export TAR_OPTIONS
3733 rm -rf *
3734 touch file1
3735           touch file2
3736           tar cf archive file1
3737           tar rf archive file2
3738           tar tf archive) ) >"$at_stdout" 2>"$at_stderr"
3739 fi
3740 at_status=$?
3741 at_failed=false
3742 at_func_diff_devnull "$at_stderr" || at_failed=:
3743 echo >>"$at_stdout"; $as_echo "file1
3744 file2
3745 " | \
3746   $at_diff - "$at_stdout" || at_failed=:
3747 at_func_check_status 0 $at_status "$at_srcdir/append.at:24"
3748
3749 $at_failed && at_func_log_failure
3750 $at_traceon; }
3751
3752               { $at_traceoff
3753 $as_echo "$at_srcdir/append.at:24:
3754 mkdir ustar
3755 (cd ustar
3756 TEST_TAR_FORMAT=ustar
3757 export TEST_TAR_FORMAT
3758 TAR_OPTIONS=\"-H ustar\"
3759 export TAR_OPTIONS
3760 rm -rf *
3761 touch file1
3762           touch file2
3763           tar cf archive file1
3764           tar rf archive file2
3765           tar tf archive)"
3766 echo append.at:24 >"$at_check_line_file"
3767
3768 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
3769    false; }; then
3770   ( $at_traceon;
3771 mkdir ustar
3772 (cd ustar
3773 TEST_TAR_FORMAT=ustar
3774 export TEST_TAR_FORMAT
3775 TAR_OPTIONS="-H ustar"
3776 export TAR_OPTIONS
3777 rm -rf *
3778 touch file1
3779           touch file2
3780           tar cf archive file1
3781           tar rf archive file2
3782           tar tf archive) ) >"$at_stdout" 2>"$at_stder1"
3783   at_func_filter_trace $?
3784 else
3785   ( :;
3786 mkdir ustar
3787 (cd ustar
3788 TEST_TAR_FORMAT=ustar
3789 export TEST_TAR_FORMAT
3790 TAR_OPTIONS="-H ustar"
3791 export TAR_OPTIONS
3792 rm -rf *
3793 touch file1
3794           touch file2
3795           tar cf archive file1
3796           tar rf archive file2
3797           tar tf archive) ) >"$at_stdout" 2>"$at_stderr"
3798 fi
3799 at_status=$?
3800 at_failed=false
3801 at_func_diff_devnull "$at_stderr" || at_failed=:
3802 echo >>"$at_stdout"; $as_echo "file1
3803 file2
3804 " | \
3805   $at_diff - "$at_stdout" || at_failed=:
3806 at_func_check_status 0 $at_status "$at_srcdir/append.at:24"
3807
3808 $at_failed && at_func_log_failure
3809 $at_traceon; }
3810
3811               { $at_traceoff
3812 $as_echo "$at_srcdir/append.at:24:
3813 mkdir posix
3814 (cd posix
3815 TEST_TAR_FORMAT=posix
3816 export TEST_TAR_FORMAT
3817 TAR_OPTIONS=\"-H posix\"
3818 export TAR_OPTIONS
3819 rm -rf *
3820 touch file1
3821           touch file2
3822           tar cf archive file1
3823           tar rf archive file2
3824           tar tf archive)"
3825 echo append.at:24 >"$at_check_line_file"
3826
3827 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
3828    false; }; then
3829   ( $at_traceon;
3830 mkdir posix
3831 (cd posix
3832 TEST_TAR_FORMAT=posix
3833 export TEST_TAR_FORMAT
3834 TAR_OPTIONS="-H posix"
3835 export TAR_OPTIONS
3836 rm -rf *
3837 touch file1
3838           touch file2
3839           tar cf archive file1
3840           tar rf archive file2
3841           tar tf archive) ) >"$at_stdout" 2>"$at_stder1"
3842   at_func_filter_trace $?
3843 else
3844   ( :;
3845 mkdir posix
3846 (cd posix
3847 TEST_TAR_FORMAT=posix
3848 export TEST_TAR_FORMAT
3849 TAR_OPTIONS="-H posix"
3850 export TAR_OPTIONS
3851 rm -rf *
3852 touch file1
3853           touch file2
3854           tar cf archive file1
3855           tar rf archive file2
3856           tar tf archive) ) >"$at_stdout" 2>"$at_stderr"
3857 fi
3858 at_status=$?
3859 at_failed=false
3860 at_func_diff_devnull "$at_stderr" || at_failed=:
3861 echo >>"$at_stdout"; $as_echo "file1
3862 file2
3863 " | \
3864   $at_diff - "$at_stdout" || at_failed=:
3865 at_func_check_status 0 $at_status "$at_srcdir/append.at:24"
3866
3867 $at_failed && at_func_log_failure
3868 $at_traceon; }
3869
3870               { $at_traceoff
3871 $as_echo "$at_srcdir/append.at:24:
3872 mkdir gnu
3873 (cd gnu
3874 TEST_TAR_FORMAT=gnu
3875 export TEST_TAR_FORMAT
3876 TAR_OPTIONS=\"-H gnu\"
3877 export TAR_OPTIONS
3878 rm -rf *
3879 touch file1
3880           touch file2
3881           tar cf archive file1
3882           tar rf archive file2
3883           tar tf archive)"
3884 echo append.at:24 >"$at_check_line_file"
3885
3886 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
3887    false; }; then
3888   ( $at_traceon;
3889 mkdir gnu
3890 (cd gnu
3891 TEST_TAR_FORMAT=gnu
3892 export TEST_TAR_FORMAT
3893 TAR_OPTIONS="-H gnu"
3894 export TAR_OPTIONS
3895 rm -rf *
3896 touch file1
3897           touch file2
3898           tar cf archive file1
3899           tar rf archive file2
3900           tar tf archive) ) >"$at_stdout" 2>"$at_stder1"
3901   at_func_filter_trace $?
3902 else
3903   ( :;
3904 mkdir gnu
3905 (cd gnu
3906 TEST_TAR_FORMAT=gnu
3907 export TEST_TAR_FORMAT
3908 TAR_OPTIONS="-H gnu"
3909 export TAR_OPTIONS
3910 rm -rf *
3911 touch file1
3912           touch file2
3913           tar cf archive file1
3914           tar rf archive file2
3915           tar tf archive) ) >"$at_stdout" 2>"$at_stderr"
3916 fi
3917 at_status=$?
3918 at_failed=false
3919 at_func_diff_devnull "$at_stderr" || at_failed=:
3920 echo >>"$at_stdout"; $as_echo "file1
3921 file2
3922 " | \
3923   $at_diff - "$at_stdout" || at_failed=:
3924 at_func_check_status 0 $at_status "$at_srcdir/append.at:24"
3925
3926 $at_failed && at_func_log_failure
3927 $at_traceon; }
3928
3929
3930
3931
3932   $at_traceoff
3933   $at_times_p && times >"$at_times_file"
3934 ) 5>&1 2>&1 | eval $at_tee_pipe
3935 at_status=`cat "$at_status_file"`
3936 #AT_STOP_9
3937 #AT_START_10
3938 # 10. append01.at:29: appending files with long names
3939 at_setup_line='append01.at:29'
3940 at_desc="appending files with long names"
3941 $at_quiet $as_echo_n " 10: $at_desc                "
3942 at_xfail=no
3943       test -f $XFAILFILE && at_xfail=yes
3944 echo "#                             -*- compilation -*-" >> "$at_group_log"
3945 (
3946   $as_echo "10. append01.at:29: testing ..."
3947   $at_traceon
3948
3949
3950
3951
3952
3953
3954
3955   { $at_traceoff
3956 $as_echo "$at_srcdir/append01.at:34:
3957 mkdir oldgnu
3958 (cd oldgnu
3959 TEST_TAR_FORMAT=oldgnu
3960 export TEST_TAR_FORMAT
3961 TAR_OPTIONS=\"-H oldgnu\"
3962 export TAR_OPTIONS
3963 rm -rf *
3964
3965 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
3966 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
3967 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
3968 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
3969 tar tf archive
3970 )"
3971 echo append01.at:34 >"$at_check_line_file"
3972
3973 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
3974    false; }; then
3975   ( $at_traceon;
3976 mkdir oldgnu
3977 (cd oldgnu
3978 TEST_TAR_FORMAT=oldgnu
3979 export TEST_TAR_FORMAT
3980 TAR_OPTIONS="-H oldgnu"
3981 export TAR_OPTIONS
3982 rm -rf *
3983
3984 mkdir This_is_a_very_long_file_name_prefix_that_is_designed_to_cause_problems_with_appending_long_file_names_that_run_into_a_limit_of_the_ustar_tarX
3985 touch This_is_a_very_long_file_name_prefix_that_is_designed_to_cause_problems_with_appending_long_file_names_that_run_into_a_limit_of_the_ustar_tarX/file1 This_is_a_very_long_file_name_prefix_that_is_designed_to_cause_problems_with_appending_long_file_names_that_run_into_a_limit_of_the_ustar_tarX/file2
3986 tar cf archive This_is_a_very_long_file_name_prefix_that_is_designed_to_cause_problems_with_appending_long_file_names_that_run_into_a_limit_of_the_ustar_tarX/file1
3987 tar rf archive This_is_a_very_long_file_name_prefix_that_is_designed_to_cause_problems_with_appending_long_file_names_that_run_into_a_limit_of_the_ustar_tarX/file2
3988 tar tf archive
3989 ) ) >"$at_stdout" 2>"$at_stder1"
3990   at_func_filter_trace $?
3991 else
3992   ( :;
3993 mkdir oldgnu
3994 (cd oldgnu
3995 TEST_TAR_FORMAT=oldgnu
3996 export TEST_TAR_FORMAT
3997 TAR_OPTIONS="-H oldgnu"
3998 export TAR_OPTIONS
3999 rm -rf *
4000
4001 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
4002 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
4003 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
4004 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
4005 tar tf archive
4006 ) ) >"$at_stdout" 2>"$at_stderr"
4007 fi
4008 at_status=$?
4009 at_failed=false
4010 at_func_diff_devnull "$at_stderr" || at_failed=:
4011 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
4012 This_is_a_very_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
4013 " | \
4014   $at_diff - "$at_stdout" || at_failed=:
4015 at_func_check_status 0 $at_status "$at_srcdir/append01.at:34"
4016
4017 $at_failed && at_func_log_failure
4018 $at_traceon; }
4019
4020               { $at_traceoff
4021 $as_echo "$at_srcdir/append01.at:34:
4022 mkdir ustar
4023 (cd ustar
4024 TEST_TAR_FORMAT=ustar
4025 export TEST_TAR_FORMAT
4026 TAR_OPTIONS=\"-H ustar\"
4027 export TAR_OPTIONS
4028 rm -rf *
4029
4030 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
4031 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
4032 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
4033 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
4034 tar tf archive
4035 )"
4036 echo append01.at:34 >"$at_check_line_file"
4037
4038 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
4039    false; }; then
4040   ( $at_traceon;
4041 mkdir ustar
4042 (cd ustar
4043 TEST_TAR_FORMAT=ustar
4044 export TEST_TAR_FORMAT
4045 TAR_OPTIONS="-H ustar"
4046 export TAR_OPTIONS
4047 rm -rf *
4048
4049 mkdir This_is_a_very_long_file_name_prefix_that_is_designed_to_cause_problems_with_appending_long_file_names_that_run_into_a_limit_of_the_ustar_tarX
4050 touch This_is_a_very_long_file_name_prefix_that_is_designed_to_cause_problems_with_appending_long_file_names_that_run_into_a_limit_of_the_ustar_tarX/file1 This_is_a_very_long_file_name_prefix_that_is_designed_to_cause_problems_with_appending_long_file_names_that_run_into_a_limit_of_the_ustar_tarX/file2
4051 tar cf archive This_is_a_very_long_file_name_prefix_that_is_designed_to_cause_problems_with_appending_long_file_names_that_run_into_a_limit_of_the_ustar_tarX/file1
4052 tar rf archive This_is_a_very_long_file_name_prefix_that_is_designed_to_cause_problems_with_appending_long_file_names_that_run_into_a_limit_of_the_ustar_tarX/file2
4053 tar tf archive
4054 ) ) >"$at_stdout" 2>"$at_stder1"
4055   at_func_filter_trace $?
4056 else
4057   ( :;
4058 mkdir ustar
4059 (cd ustar
4060 TEST_TAR_FORMAT=ustar
4061 export TEST_TAR_FORMAT
4062 TAR_OPTIONS="-H ustar"
4063 export TAR_OPTIONS
4064 rm -rf *
4065
4066 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
4067 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
4068 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
4069 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
4070 tar tf archive
4071 ) ) >"$at_stdout" 2>"$at_stderr"
4072 fi
4073 at_status=$?
4074 at_failed=false
4075 at_func_diff_devnull "$at_stderr" || at_failed=:
4076 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
4077 This_is_a_very_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
4078 " | \
4079   $at_diff - "$at_stdout" || at_failed=:
4080 at_func_check_status 0 $at_status "$at_srcdir/append01.at:34"
4081
4082 $at_failed && at_func_log_failure
4083 $at_traceon; }
4084
4085               { $at_traceoff
4086 $as_echo "$at_srcdir/append01.at:34:
4087 mkdir posix
4088 (cd posix
4089 TEST_TAR_FORMAT=posix
4090 export TEST_TAR_FORMAT
4091 TAR_OPTIONS=\"-H posix\"
4092 export TAR_OPTIONS
4093 rm -rf *
4094
4095 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
4096 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
4097 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
4098 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
4099 tar tf archive
4100 )"
4101 echo append01.at:34 >"$at_check_line_file"
4102
4103 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
4104    false; }; then
4105   ( $at_traceon;
4106 mkdir posix
4107 (cd posix
4108 TEST_TAR_FORMAT=posix
4109 export TEST_TAR_FORMAT
4110 TAR_OPTIONS="-H posix"
4111 export TAR_OPTIONS
4112 rm -rf *
4113
4114 mkdir This_is_a_very_long_file_name_prefix_that_is_designed_to_cause_problems_with_appending_long_file_names_that_run_into_a_limit_of_the_ustar_tarX
4115 touch This_is_a_very_long_file_name_prefix_that_is_designed_to_cause_problems_with_appending_long_file_names_that_run_into_a_limit_of_the_ustar_tarX/file1 This_is_a_very_long_file_name_prefix_that_is_designed_to_cause_problems_with_appending_long_file_names_that_run_into_a_limit_of_the_ustar_tarX/file2
4116 tar cf archive This_is_a_very_long_file_name_prefix_that_is_designed_to_cause_problems_with_appending_long_file_names_that_run_into_a_limit_of_the_ustar_tarX/file1
4117 tar rf archive This_is_a_very_long_file_name_prefix_that_is_designed_to_cause_problems_with_appending_long_file_names_that_run_into_a_limit_of_the_ustar_tarX/file2
4118 tar tf archive
4119 ) ) >"$at_stdout" 2>"$at_stder1"
4120   at_func_filter_trace $?
4121 else
4122   ( :;
4123 mkdir posix
4124 (cd posix
4125 TEST_TAR_FORMAT=posix
4126 export TEST_TAR_FORMAT
4127 TAR_OPTIONS="-H posix"
4128 export TAR_OPTIONS
4129 rm -rf *
4130
4131 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
4132 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
4133 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
4134 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
4135 tar tf archive
4136 ) ) >"$at_stdout" 2>"$at_stderr"
4137 fi
4138 at_status=$?
4139 at_failed=false
4140 at_func_diff_devnull "$at_stderr" || at_failed=:
4141 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
4142 This_is_a_very_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
4143 " | \
4144   $at_diff - "$at_stdout" || at_failed=:
4145 at_func_check_status 0 $at_status "$at_srcdir/append01.at:34"
4146
4147 $at_failed && at_func_log_failure
4148 $at_traceon; }
4149
4150               { $at_traceoff
4151 $as_echo "$at_srcdir/append01.at:34:
4152 mkdir gnu
4153 (cd gnu
4154 TEST_TAR_FORMAT=gnu
4155 export TEST_TAR_FORMAT
4156 TAR_OPTIONS=\"-H gnu\"
4157 export TAR_OPTIONS
4158 rm -rf *
4159
4160 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
4161 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
4162 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
4163 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
4164 tar tf archive
4165 )"
4166 echo append01.at:34 >"$at_check_line_file"
4167
4168 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
4169    false; }; then
4170   ( $at_traceon;
4171 mkdir gnu
4172 (cd gnu
4173 TEST_TAR_FORMAT=gnu
4174 export TEST_TAR_FORMAT
4175 TAR_OPTIONS="-H gnu"
4176 export TAR_OPTIONS
4177 rm -rf *
4178
4179 mkdir This_is_a_very_long_file_name_prefix_that_is_designed_to_cause_problems_with_appending_long_file_names_that_run_into_a_limit_of_the_ustar_tarX
4180 touch This_is_a_very_long_file_name_prefix_that_is_designed_to_cause_problems_with_appending_long_file_names_that_run_into_a_limit_of_the_ustar_tarX/file1 This_is_a_very_long_file_name_prefix_that_is_designed_to_cause_problems_with_appending_long_file_names_that_run_into_a_limit_of_the_ustar_tarX/file2
4181 tar cf archive This_is_a_very_long_file_name_prefix_that_is_designed_to_cause_problems_with_appending_long_file_names_that_run_into_a_limit_of_the_ustar_tarX/file1
4182 tar rf archive This_is_a_very_long_file_name_prefix_that_is_designed_to_cause_problems_with_appending_long_file_names_that_run_into_a_limit_of_the_ustar_tarX/file2
4183 tar tf archive
4184 ) ) >"$at_stdout" 2>"$at_stder1"
4185   at_func_filter_trace $?
4186 else
4187   ( :;
4188 mkdir gnu
4189 (cd gnu
4190 TEST_TAR_FORMAT=gnu
4191 export TEST_TAR_FORMAT
4192 TAR_OPTIONS="-H gnu"
4193 export TAR_OPTIONS
4194 rm -rf *
4195
4196 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
4197 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
4198 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
4199 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
4200 tar tf archive
4201 ) ) >"$at_stdout" 2>"$at_stderr"
4202 fi
4203 at_status=$?
4204 at_failed=false
4205 at_func_diff_devnull "$at_stderr" || at_failed=:
4206 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
4207 This_is_a_very_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
4208 " | \
4209   $at_diff - "$at_stdout" || at_failed=:
4210 at_func_check_status 0 $at_status "$at_srcdir/append01.at:34"
4211
4212 $at_failed && at_func_log_failure
4213 $at_traceon; }
4214
4215
4216
4217
4218   $at_traceoff
4219   $at_times_p && times >"$at_times_file"
4220 ) 5>&1 2>&1 | eval $at_tee_pipe
4221 at_status=`cat "$at_status_file"`
4222 #AT_STOP_10
4223 #AT_START_11
4224 # 11. append02.at:54: append vs. create
4225 at_setup_line='append02.at:54'
4226 at_desc="append vs. create"
4227 $at_quiet $as_echo_n " 11: $at_desc                              "
4228 at_xfail=no
4229       test -f $XFAILFILE && at_xfail=yes
4230 echo "#                             -*- compilation -*-" >> "$at_group_log"
4231 (
4232   $as_echo "11. append02.at:54: testing ..."
4233   $at_traceon
4234
4235
4236
4237
4238
4239   { $at_traceoff
4240 $as_echo "$at_srcdir/append02.at:57:
4241 mkdir v7
4242 (cd v7
4243 TEST_TAR_FORMAT=v7
4244 export TEST_TAR_FORMAT
4245 TAR_OPTIONS=\"-H v7\"
4246 export TAR_OPTIONS
4247 rm -rf *
4248
4249 genfile --file file1
4250 genfile --file file2
4251
4252 # Make sure file timestamps in the archive will not differ
4253 MTIME=\"--mtime=@0\"
4254
4255 # For PAX archives, we need to make sure extended header names are
4256 # reproducible and that their contents won't change with time
4257 if test \$TEST_TAR_FORMAT = posix; then
4258   TAR_OPTIONS=\"\$TAR_OPTIONS --pax-option=exthdr.name=%d/PaxHeaders/%f,delete=mtime,delete=atime,delete=ctime\"
4259 fi
4260
4261 echo Creating archive.1
4262 tar \$MTIME -cf archive.1 file1 file2
4263
4264 echo Creating archive.2
4265 tar \$MTIME -cf archive.2 -T /dev/null
4266 tar \$MTIME -rf archive.2 file1
4267 tar \$MTIME -rf archive.2 file2
4268
4269 echo Comparing archives
4270 cmp archive.1 archive.2
4271 )"
4272 echo append02.at:57 >"$at_check_line_file"
4273
4274 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
4275    false; }; then
4276   ( $at_traceon;
4277 mkdir v7
4278 (cd v7
4279 TEST_TAR_FORMAT=v7
4280 export TEST_TAR_FORMAT
4281 TAR_OPTIONS="-H v7"
4282 export TAR_OPTIONS
4283 rm -rf *
4284
4285 genfile --file file1
4286 genfile --file file2
4287
4288 # Make sure file timestamps in the archive will not differ
4289 MTIME="--mtime=@0"
4290
4291 # For PAX archives, we need to make sure extended header names are
4292 # reproducible and that their contents won't change with time
4293 if test $TEST_TAR_FORMAT = posix; then
4294   TAR_OPTIONS="$TAR_OPTIONS --pax-option=exthdr.name=%d/PaxHeaders/%f,delete=mtime,delete=atime,delete=ctime"
4295 fi
4296
4297 echo Creating archive.1
4298 tar $MTIME -cf archive.1 file1 file2
4299
4300 echo Creating archive.2
4301 tar $MTIME -cf archive.2 -T /dev/null
4302 tar $MTIME -rf archive.2 file1
4303 tar $MTIME -rf archive.2 file2
4304
4305 echo Comparing archives
4306 cmp archive.1 archive.2
4307 ) ) >"$at_stdout" 2>"$at_stder1"
4308   at_func_filter_trace $?
4309 else
4310   ( :;
4311 mkdir v7
4312 (cd v7
4313 TEST_TAR_FORMAT=v7
4314 export TEST_TAR_FORMAT
4315 TAR_OPTIONS="-H v7"
4316 export TAR_OPTIONS
4317 rm -rf *
4318
4319 genfile --file file1
4320 genfile --file file2
4321
4322 # Make sure file timestamps in the archive will not differ
4323 MTIME="--mtime=@0"
4324
4325 # For PAX archives, we need to make sure extended header names are
4326 # reproducible and that their contents won't change with time
4327 if test $TEST_TAR_FORMAT = posix; then
4328   TAR_OPTIONS="$TAR_OPTIONS --pax-option=exthdr.name=%d/PaxHeaders/%f,delete=mtime,delete=atime,delete=ctime"
4329 fi
4330
4331 echo Creating archive.1
4332 tar $MTIME -cf archive.1 file1 file2
4333
4334 echo Creating archive.2
4335 tar $MTIME -cf archive.2 -T /dev/null
4336 tar $MTIME -rf archive.2 file1
4337 tar $MTIME -rf archive.2 file2
4338
4339 echo Comparing archives
4340 cmp archive.1 archive.2
4341 ) ) >"$at_stdout" 2>"$at_stderr"
4342 fi
4343 at_status=$?
4344 at_failed=false
4345 at_func_diff_devnull "$at_stderr" || at_failed=:
4346 echo >>"$at_stdout"; $as_echo "Creating archive.1
4347 Creating archive.2
4348 Comparing archives
4349 " | \
4350   $at_diff - "$at_stdout" || at_failed=:
4351 at_func_check_status 0 $at_status "$at_srcdir/append02.at:57"
4352
4353 $at_failed && at_func_log_failure
4354 $at_traceon; }
4355
4356               { $at_traceoff
4357 $as_echo "$at_srcdir/append02.at:57:
4358 mkdir oldgnu
4359 (cd oldgnu
4360 TEST_TAR_FORMAT=oldgnu
4361 export TEST_TAR_FORMAT
4362 TAR_OPTIONS=\"-H oldgnu\"
4363 export TAR_OPTIONS
4364 rm -rf *
4365
4366 genfile --file file1
4367 genfile --file file2
4368
4369 # Make sure file timestamps in the archive will not differ
4370 MTIME=\"--mtime=@0\"
4371
4372 # For PAX archives, we need to make sure extended header names are
4373 # reproducible and that their contents won't change with time
4374 if test \$TEST_TAR_FORMAT = posix; then
4375   TAR_OPTIONS=\"\$TAR_OPTIONS --pax-option=exthdr.name=%d/PaxHeaders/%f,delete=mtime,delete=atime,delete=ctime\"
4376 fi
4377
4378 echo Creating archive.1
4379 tar \$MTIME -cf archive.1 file1 file2
4380
4381 echo Creating archive.2
4382 tar \$MTIME -cf archive.2 -T /dev/null
4383 tar \$MTIME -rf archive.2 file1
4384 tar \$MTIME -rf archive.2 file2
4385
4386 echo Comparing archives
4387 cmp archive.1 archive.2
4388 )"
4389 echo append02.at:57 >"$at_check_line_file"
4390
4391 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
4392    false; }; then
4393   ( $at_traceon;
4394 mkdir oldgnu
4395 (cd oldgnu
4396 TEST_TAR_FORMAT=oldgnu
4397 export TEST_TAR_FORMAT
4398 TAR_OPTIONS="-H oldgnu"
4399 export TAR_OPTIONS
4400 rm -rf *
4401
4402 genfile --file file1
4403 genfile --file file2
4404
4405 # Make sure file timestamps in the archive will not differ
4406 MTIME="--mtime=@0"
4407
4408 # For PAX archives, we need to make sure extended header names are
4409 # reproducible and that their contents won't change with time
4410 if test $TEST_TAR_FORMAT = posix; then
4411   TAR_OPTIONS="$TAR_OPTIONS --pax-option=exthdr.name=%d/PaxHeaders/%f,delete=mtime,delete=atime,delete=ctime"
4412 fi
4413
4414 echo Creating archive.1
4415 tar $MTIME -cf archive.1 file1 file2
4416
4417 echo Creating archive.2
4418 tar $MTIME -cf archive.2 -T /dev/null
4419 tar $MTIME -rf archive.2 file1
4420 tar $MTIME -rf archive.2 file2
4421
4422 echo Comparing archives
4423 cmp archive.1 archive.2
4424 ) ) >"$at_stdout" 2>"$at_stder1"
4425   at_func_filter_trace $?
4426 else
4427   ( :;
4428 mkdir oldgnu
4429 (cd oldgnu
4430 TEST_TAR_FORMAT=oldgnu
4431 export TEST_TAR_FORMAT
4432 TAR_OPTIONS="-H oldgnu"
4433 export TAR_OPTIONS
4434 rm -rf *
4435
4436 genfile --file file1
4437 genfile --file file2
4438
4439 # Make sure file timestamps in the archive will not differ
4440 MTIME="--mtime=@0"
4441
4442 # For PAX archives, we need to make sure extended header names are
4443 # reproducible and that their contents won't change with time
4444 if test $TEST_TAR_FORMAT = posix; then
4445   TAR_OPTIONS="$TAR_OPTIONS --pax-option=exthdr.name=%d/PaxHeaders/%f,delete=mtime,delete=atime,delete=ctime"
4446 fi
4447
4448 echo Creating archive.1
4449 tar $MTIME -cf archive.1 file1 file2
4450
4451 echo Creating archive.2
4452 tar $MTIME -cf archive.2 -T /dev/null
4453 tar $MTIME -rf archive.2 file1
4454 tar $MTIME -rf archive.2 file2
4455
4456 echo Comparing archives
4457 cmp archive.1 archive.2
4458 ) ) >"$at_stdout" 2>"$at_stderr"
4459 fi
4460 at_status=$?
4461 at_failed=false
4462 at_func_diff_devnull "$at_stderr" || at_failed=:
4463 echo >>"$at_stdout"; $as_echo "Creating archive.1
4464 Creating archive.2
4465 Comparing archives
4466 " | \
4467   $at_diff - "$at_stdout" || at_failed=:
4468 at_func_check_status 0 $at_status "$at_srcdir/append02.at:57"
4469
4470 $at_failed && at_func_log_failure
4471 $at_traceon; }
4472
4473               { $at_traceoff
4474 $as_echo "$at_srcdir/append02.at:57:
4475 mkdir ustar
4476 (cd ustar
4477 TEST_TAR_FORMAT=ustar
4478 export TEST_TAR_FORMAT
4479 TAR_OPTIONS=\"-H ustar\"
4480 export TAR_OPTIONS
4481 rm -rf *
4482
4483 genfile --file file1
4484 genfile --file file2
4485
4486 # Make sure file timestamps in the archive will not differ
4487 MTIME=\"--mtime=@0\"
4488
4489 # For PAX archives, we need to make sure extended header names are
4490 # reproducible and that their contents won't change with time
4491 if test \$TEST_TAR_FORMAT = posix; then
4492   TAR_OPTIONS=\"\$TAR_OPTIONS --pax-option=exthdr.name=%d/PaxHeaders/%f,delete=mtime,delete=atime,delete=ctime\"
4493 fi
4494
4495 echo Creating archive.1
4496 tar \$MTIME -cf archive.1 file1 file2
4497
4498 echo Creating archive.2
4499 tar \$MTIME -cf archive.2 -T /dev/null
4500 tar \$MTIME -rf archive.2 file1
4501 tar \$MTIME -rf archive.2 file2
4502
4503 echo Comparing archives
4504 cmp archive.1 archive.2
4505 )"
4506 echo append02.at:57 >"$at_check_line_file"
4507
4508 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
4509    false; }; then
4510   ( $at_traceon;
4511 mkdir ustar
4512 (cd ustar
4513 TEST_TAR_FORMAT=ustar
4514 export TEST_TAR_FORMAT
4515 TAR_OPTIONS="-H ustar"
4516 export TAR_OPTIONS
4517 rm -rf *
4518
4519 genfile --file file1
4520 genfile --file file2
4521
4522 # Make sure file timestamps in the archive will not differ
4523 MTIME="--mtime=@0"
4524
4525 # For PAX archives, we need to make sure extended header names are
4526 # reproducible and that their contents won't change with time
4527 if test $TEST_TAR_FORMAT = posix; then
4528   TAR_OPTIONS="$TAR_OPTIONS --pax-option=exthdr.name=%d/PaxHeaders/%f,delete=mtime,delete=atime,delete=ctime"
4529 fi
4530
4531 echo Creating archive.1
4532 tar $MTIME -cf archive.1 file1 file2
4533
4534 echo Creating archive.2
4535 tar $MTIME -cf archive.2 -T /dev/null
4536 tar $MTIME -rf archive.2 file1
4537 tar $MTIME -rf archive.2 file2
4538
4539 echo Comparing archives
4540 cmp archive.1 archive.2
4541 ) ) >"$at_stdout" 2>"$at_stder1"
4542   at_func_filter_trace $?
4543 else
4544   ( :;
4545 mkdir ustar
4546 (cd ustar
4547 TEST_TAR_FORMAT=ustar
4548 export TEST_TAR_FORMAT
4549 TAR_OPTIONS="-H ustar"
4550 export TAR_OPTIONS
4551 rm -rf *
4552
4553 genfile --file file1
4554 genfile --file file2
4555
4556 # Make sure file timestamps in the archive will not differ
4557 MTIME="--mtime=@0"
4558
4559 # For PAX archives, we need to make sure extended header names are
4560 # reproducible and that their contents won't change with time
4561 if test $TEST_TAR_FORMAT = posix; then
4562   TAR_OPTIONS="$TAR_OPTIONS --pax-option=exthdr.name=%d/PaxHeaders/%f,delete=mtime,delete=atime,delete=ctime"
4563 fi
4564
4565 echo Creating archive.1
4566 tar $MTIME -cf archive.1 file1 file2
4567
4568 echo Creating archive.2
4569 tar $MTIME -cf archive.2 -T /dev/null
4570 tar $MTIME -rf archive.2 file1
4571 tar $MTIME -rf archive.2 file2
4572
4573 echo Comparing archives
4574 cmp archive.1 archive.2
4575 ) ) >"$at_stdout" 2>"$at_stderr"
4576 fi
4577 at_status=$?
4578 at_failed=false
4579 at_func_diff_devnull "$at_stderr" || at_failed=:
4580 echo >>"$at_stdout"; $as_echo "Creating archive.1
4581 Creating archive.2
4582 Comparing archives
4583 " | \
4584   $at_diff - "$at_stdout" || at_failed=:
4585 at_func_check_status 0 $at_status "$at_srcdir/append02.at:57"
4586
4587 $at_failed && at_func_log_failure
4588 $at_traceon; }
4589
4590               { $at_traceoff
4591 $as_echo "$at_srcdir/append02.at:57:
4592 mkdir posix
4593 (cd posix
4594 TEST_TAR_FORMAT=posix
4595 export TEST_TAR_FORMAT
4596 TAR_OPTIONS=\"-H posix\"
4597 export TAR_OPTIONS
4598 rm -rf *
4599
4600 genfile --file file1
4601 genfile --file file2
4602
4603 # Make sure file timestamps in the archive will not differ
4604 MTIME=\"--mtime=@0\"
4605
4606 # For PAX archives, we need to make sure extended header names are
4607 # reproducible and that their contents won't change with time
4608 if test \$TEST_TAR_FORMAT = posix; then
4609   TAR_OPTIONS=\"\$TAR_OPTIONS --pax-option=exthdr.name=%d/PaxHeaders/%f,delete=mtime,delete=atime,delete=ctime\"
4610 fi
4611
4612 echo Creating archive.1
4613 tar \$MTIME -cf archive.1 file1 file2
4614
4615 echo Creating archive.2
4616 tar \$MTIME -cf archive.2 -T /dev/null
4617 tar \$MTIME -rf archive.2 file1
4618 tar \$MTIME -rf archive.2 file2
4619
4620 echo Comparing archives
4621 cmp archive.1 archive.2
4622 )"
4623 echo append02.at:57 >"$at_check_line_file"
4624
4625 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
4626    false; }; then
4627   ( $at_traceon;
4628 mkdir posix
4629 (cd posix
4630 TEST_TAR_FORMAT=posix
4631 export TEST_TAR_FORMAT
4632 TAR_OPTIONS="-H posix"
4633 export TAR_OPTIONS
4634 rm -rf *
4635
4636 genfile --file file1
4637 genfile --file file2
4638
4639 # Make sure file timestamps in the archive will not differ
4640 MTIME="--mtime=@0"
4641
4642 # For PAX archives, we need to make sure extended header names are
4643 # reproducible and that their contents won't change with time
4644 if test $TEST_TAR_FORMAT = posix; then
4645   TAR_OPTIONS="$TAR_OPTIONS --pax-option=exthdr.name=%d/PaxHeaders/%f,delete=mtime,delete=atime,delete=ctime"
4646 fi
4647
4648 echo Creating archive.1
4649 tar $MTIME -cf archive.1 file1 file2
4650
4651 echo Creating archive.2
4652 tar $MTIME -cf archive.2 -T /dev/null
4653 tar $MTIME -rf archive.2 file1
4654 tar $MTIME -rf archive.2 file2
4655
4656 echo Comparing archives
4657 cmp archive.1 archive.2
4658 ) ) >"$at_stdout" 2>"$at_stder1"
4659   at_func_filter_trace $?
4660 else
4661   ( :;
4662 mkdir posix
4663 (cd posix
4664 TEST_TAR_FORMAT=posix
4665 export TEST_TAR_FORMAT
4666 TAR_OPTIONS="-H posix"
4667 export TAR_OPTIONS
4668 rm -rf *
4669
4670 genfile --file file1
4671 genfile --file file2
4672
4673 # Make sure file timestamps in the archive will not differ
4674 MTIME="--mtime=@0"
4675
4676 # For PAX archives, we need to make sure extended header names are
4677 # reproducible and that their contents won't change with time
4678 if test $TEST_TAR_FORMAT = posix; then
4679   TAR_OPTIONS="$TAR_OPTIONS --pax-option=exthdr.name=%d/PaxHeaders/%f,delete=mtime,delete=atime,delete=ctime"
4680 fi
4681
4682 echo Creating archive.1
4683 tar $MTIME -cf archive.1 file1 file2
4684
4685 echo Creating archive.2
4686 tar $MTIME -cf archive.2 -T /dev/null
4687 tar $MTIME -rf archive.2 file1
4688 tar $MTIME -rf archive.2 file2
4689
4690 echo Comparing archives
4691 cmp archive.1 archive.2
4692 ) ) >"$at_stdout" 2>"$at_stderr"
4693 fi
4694 at_status=$?
4695 at_failed=false
4696 at_func_diff_devnull "$at_stderr" || at_failed=:
4697 echo >>"$at_stdout"; $as_echo "Creating archive.1
4698 Creating archive.2
4699 Comparing archives
4700 " | \
4701   $at_diff - "$at_stdout" || at_failed=:
4702 at_func_check_status 0 $at_status "$at_srcdir/append02.at:57"
4703
4704 $at_failed && at_func_log_failure
4705 $at_traceon; }
4706
4707               { $at_traceoff
4708 $as_echo "$at_srcdir/append02.at:57:
4709 mkdir gnu
4710 (cd gnu
4711 TEST_TAR_FORMAT=gnu
4712 export TEST_TAR_FORMAT
4713 TAR_OPTIONS=\"-H gnu\"
4714 export TAR_OPTIONS
4715 rm -rf *
4716
4717 genfile --file file1
4718 genfile --file file2
4719
4720 # Make sure file timestamps in the archive will not differ
4721 MTIME=\"--mtime=@0\"
4722
4723 # For PAX archives, we need to make sure extended header names are
4724 # reproducible and that their contents won't change with time
4725 if test \$TEST_TAR_FORMAT = posix; then
4726   TAR_OPTIONS=\"\$TAR_OPTIONS --pax-option=exthdr.name=%d/PaxHeaders/%f,delete=mtime,delete=atime,delete=ctime\"
4727 fi
4728
4729 echo Creating archive.1
4730 tar \$MTIME -cf archive.1 file1 file2
4731
4732 echo Creating archive.2
4733 tar \$MTIME -cf archive.2 -T /dev/null
4734 tar \$MTIME -rf archive.2 file1
4735 tar \$MTIME -rf archive.2 file2
4736
4737 echo Comparing archives
4738 cmp archive.1 archive.2
4739 )"
4740 echo append02.at:57 >"$at_check_line_file"
4741
4742 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
4743    false; }; then
4744   ( $at_traceon;
4745 mkdir gnu
4746 (cd gnu
4747 TEST_TAR_FORMAT=gnu
4748 export TEST_TAR_FORMAT
4749 TAR_OPTIONS="-H gnu"
4750 export TAR_OPTIONS
4751 rm -rf *
4752
4753 genfile --file file1
4754 genfile --file file2
4755
4756 # Make sure file timestamps in the archive will not differ
4757 MTIME="--mtime=@0"
4758
4759 # For PAX archives, we need to make sure extended header names are
4760 # reproducible and that their contents won't change with time
4761 if test $TEST_TAR_FORMAT = posix; then
4762   TAR_OPTIONS="$TAR_OPTIONS --pax-option=exthdr.name=%d/PaxHeaders/%f,delete=mtime,delete=atime,delete=ctime"
4763 fi
4764
4765 echo Creating archive.1
4766 tar $MTIME -cf archive.1 file1 file2
4767
4768 echo Creating archive.2
4769 tar $MTIME -cf archive.2 -T /dev/null
4770 tar $MTIME -rf archive.2 file1
4771 tar $MTIME -rf archive.2 file2
4772
4773 echo Comparing archives
4774 cmp archive.1 archive.2
4775 ) ) >"$at_stdout" 2>"$at_stder1"
4776   at_func_filter_trace $?
4777 else
4778   ( :;
4779 mkdir gnu
4780 (cd gnu
4781 TEST_TAR_FORMAT=gnu
4782 export TEST_TAR_FORMAT
4783 TAR_OPTIONS="-H gnu"
4784 export TAR_OPTIONS
4785 rm -rf *
4786
4787 genfile --file file1
4788 genfile --file file2
4789
4790 # Make sure file timestamps in the archive will not differ
4791 MTIME="--mtime=@0"
4792
4793 # For PAX archives, we need to make sure extended header names are
4794 # reproducible and that their contents won't change with time
4795 if test $TEST_TAR_FORMAT = posix; then
4796   TAR_OPTIONS="$TAR_OPTIONS --pax-option=exthdr.name=%d/PaxHeaders/%f,delete=mtime,delete=atime,delete=ctime"
4797 fi
4798
4799 echo Creating archive.1
4800 tar $MTIME -cf archive.1 file1 file2
4801
4802 echo Creating archive.2
4803 tar $MTIME -cf archive.2 -T /dev/null
4804 tar $MTIME -rf archive.2 file1
4805 tar $MTIME -rf archive.2 file2
4806
4807 echo Comparing archives
4808 cmp archive.1 archive.2
4809 ) ) >"$at_stdout" 2>"$at_stderr"
4810 fi
4811 at_status=$?
4812 at_failed=false
4813 at_func_diff_devnull "$at_stderr" || at_failed=:
4814 echo >>"$at_stdout"; $as_echo "Creating archive.1
4815 Creating archive.2
4816 Comparing archives
4817 " | \
4818   $at_diff - "$at_stdout" || at_failed=:
4819 at_func_check_status 0 $at_status "$at_srcdir/append02.at:57"
4820
4821 $at_failed && at_func_log_failure
4822 $at_traceon; }
4823
4824
4825
4826
4827   $at_traceoff
4828   $at_times_p && times >"$at_times_file"
4829 ) 5>&1 2>&1 | eval $at_tee_pipe
4830 at_status=`cat "$at_status_file"`
4831 #AT_STOP_11
4832 #AT_START_12
4833 # 12. xform-h.at:30: transforming hard links on create
4834 at_setup_line='xform-h.at:30'
4835 at_desc="transforming hard links on create"
4836 $at_quiet $as_echo_n " 12: $at_desc              "
4837 at_xfail=no
4838       test -f $XFAILFILE && at_xfail=yes
4839 echo "#                             -*- compilation -*-" >> "$at_group_log"
4840 (
4841   $as_echo "12. xform-h.at:30: testing ..."
4842   $at_traceon
4843
4844
4845
4846
4847
4848
4849
4850   { $at_traceoff
4851 $as_echo "$at_srcdir/xform-h.at:39:
4852 mkdir v7
4853 (cd v7
4854 TEST_TAR_FORMAT=v7
4855 export TEST_TAR_FORMAT
4856 TAR_OPTIONS=\"-H v7\"
4857 export TAR_OPTIONS
4858 rm -rf *
4859
4860 mkdir basedir
4861 echo \"hello\" > basedir/test
4862 ln basedir/test basedir/test_link
4863
4864
4865 echo "Default transform scope"
4866 tar cf archive --transform="s,^basedir/,," basedir/test basedir/test_link
4867 tar tvf archive | sed -n 's/.*test_link link to //p'
4868
4869
4870 echo "Transforming hard links"
4871 tar cf archive --transform="s,^basedir/,,h" basedir/test basedir/test_link
4872 tar tvf archive | sed -n 's/.*test_link link to //p'
4873
4874
4875 echo "Not transforming hard links"
4876 tar cf archive --transform="s,^basedir/,,H" basedir/test basedir/test_link
4877 tar tvf archive | sed -n 's/.*test_link link to //p'
4878
4879 )"
4880 echo xform-h.at:39 >"$at_check_line_file"
4881
4882 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
4883    false; }; then
4884   ( $at_traceon;
4885 mkdir v7
4886 (cd v7
4887 TEST_TAR_FORMAT=v7
4888 export TEST_TAR_FORMAT
4889 TAR_OPTIONS="-H v7"
4890 export TAR_OPTIONS
4891 rm -rf *
4892
4893 mkdir basedir
4894 echo "hello" > basedir/test
4895 ln basedir/test basedir/test_link
4896
4897
4898 echo "Default transform scope"
4899 tar cf archive --transform="s,^basedir/,," basedir/test basedir/test_link
4900 tar tvf archive | sed -n 's/.*test_link link to //p'
4901
4902
4903 echo "Transforming hard links"
4904 tar cf archive --transform="s,^basedir/,,h" basedir/test basedir/test_link
4905 tar tvf archive | sed -n 's/.*test_link link to //p'
4906
4907
4908 echo "Not transforming hard links"
4909 tar cf archive --transform="s,^basedir/,,H" basedir/test basedir/test_link
4910 tar tvf archive | sed -n 's/.*test_link link to //p'
4911
4912 ) ) >"$at_stdout" 2>"$at_stder1"
4913   at_func_filter_trace $?
4914 else
4915   ( :;
4916 mkdir v7
4917 (cd v7
4918 TEST_TAR_FORMAT=v7
4919 export TEST_TAR_FORMAT
4920 TAR_OPTIONS="-H v7"
4921 export TAR_OPTIONS
4922 rm -rf *
4923
4924 mkdir basedir
4925 echo "hello" > basedir/test
4926 ln basedir/test basedir/test_link
4927
4928
4929 echo "Default transform scope"
4930 tar cf archive --transform="s,^basedir/,," basedir/test basedir/test_link
4931 tar tvf archive | sed -n 's/.*test_link link to //p'
4932
4933
4934 echo "Transforming hard links"
4935 tar cf archive --transform="s,^basedir/,,h" basedir/test basedir/test_link
4936 tar tvf archive | sed -n 's/.*test_link link to //p'
4937
4938
4939 echo "Not transforming hard links"
4940 tar cf archive --transform="s,^basedir/,,H" basedir/test basedir/test_link
4941 tar tvf archive | sed -n 's/.*test_link link to //p'
4942
4943 ) ) >"$at_stdout" 2>"$at_stderr"
4944 fi
4945 at_status=$?
4946 at_failed=false
4947 at_func_diff_devnull "$at_stderr" || at_failed=:
4948 echo >>"$at_stdout"; $as_echo "Default transform scope
4949 test
4950 Transforming hard links
4951 test
4952 Not transforming hard links
4953 basedir/test
4954 " | \
4955   $at_diff - "$at_stdout" || at_failed=:
4956 at_func_check_status 0 $at_status "$at_srcdir/xform-h.at:39"
4957
4958 $at_failed && at_func_log_failure
4959 $at_traceon; }
4960
4961               { $at_traceoff
4962 $as_echo "$at_srcdir/xform-h.at:39:
4963 mkdir oldgnu
4964 (cd oldgnu
4965 TEST_TAR_FORMAT=oldgnu
4966 export TEST_TAR_FORMAT
4967 TAR_OPTIONS=\"-H oldgnu\"
4968 export TAR_OPTIONS
4969 rm -rf *
4970
4971 mkdir basedir
4972 echo \"hello\" > basedir/test
4973 ln basedir/test basedir/test_link
4974
4975
4976 echo "Default transform scope"
4977 tar cf archive --transform="s,^basedir/,," basedir/test basedir/test_link
4978 tar tvf archive | sed -n 's/.*test_link link to //p'
4979
4980
4981 echo "Transforming hard links"
4982 tar cf archive --transform="s,^basedir/,,h" basedir/test basedir/test_link
4983 tar tvf archive | sed -n 's/.*test_link link to //p'
4984
4985
4986 echo "Not transforming hard links"
4987 tar cf archive --transform="s,^basedir/,,H" basedir/test basedir/test_link
4988 tar tvf archive | sed -n 's/.*test_link link to //p'
4989
4990 )"
4991 echo xform-h.at:39 >"$at_check_line_file"
4992
4993 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
4994    false; }; then
4995   ( $at_traceon;
4996 mkdir oldgnu
4997 (cd oldgnu
4998 TEST_TAR_FORMAT=oldgnu
4999 export TEST_TAR_FORMAT
5000 TAR_OPTIONS="-H oldgnu"
5001 export TAR_OPTIONS
5002 rm -rf *
5003
5004 mkdir basedir
5005 echo "hello" > basedir/test
5006 ln basedir/test basedir/test_link
5007
5008
5009 echo "Default transform scope"
5010 tar cf archive --transform="s,^basedir/,," basedir/test basedir/test_link
5011 tar tvf archive | sed -n 's/.*test_link link to //p'
5012
5013
5014 echo "Transforming hard links"
5015 tar cf archive --transform="s,^basedir/,,h" basedir/test basedir/test_link
5016 tar tvf archive | sed -n 's/.*test_link link to //p'
5017
5018
5019 echo "Not transforming hard links"
5020 tar cf archive --transform="s,^basedir/,,H" basedir/test basedir/test_link
5021 tar tvf archive | sed -n 's/.*test_link link to //p'
5022
5023 ) ) >"$at_stdout" 2>"$at_stder1"
5024   at_func_filter_trace $?
5025 else
5026   ( :;
5027 mkdir oldgnu
5028 (cd oldgnu
5029 TEST_TAR_FORMAT=oldgnu
5030 export TEST_TAR_FORMAT
5031 TAR_OPTIONS="-H oldgnu"
5032 export TAR_OPTIONS
5033 rm -rf *
5034
5035 mkdir basedir
5036 echo "hello" > basedir/test
5037 ln basedir/test basedir/test_link
5038
5039
5040 echo "Default transform scope"
5041 tar cf archive --transform="s,^basedir/,," basedir/test basedir/test_link
5042 tar tvf archive | sed -n 's/.*test_link link to //p'
5043
5044
5045 echo "Transforming hard links"
5046 tar cf archive --transform="s,^basedir/,,h" basedir/test basedir/test_link
5047 tar tvf archive | sed -n 's/.*test_link link to //p'
5048
5049
5050 echo "Not transforming hard links"
5051 tar cf archive --transform="s,^basedir/,,H" basedir/test basedir/test_link
5052 tar tvf archive | sed -n 's/.*test_link link to //p'
5053
5054 ) ) >"$at_stdout" 2>"$at_stderr"
5055 fi
5056 at_status=$?
5057 at_failed=false
5058 at_func_diff_devnull "$at_stderr" || at_failed=:
5059 echo >>"$at_stdout"; $as_echo "Default transform scope
5060 test
5061 Transforming hard links
5062 test
5063 Not transforming hard links
5064 basedir/test
5065 " | \
5066   $at_diff - "$at_stdout" || at_failed=:
5067 at_func_check_status 0 $at_status "$at_srcdir/xform-h.at:39"
5068
5069 $at_failed && at_func_log_failure
5070 $at_traceon; }
5071
5072               { $at_traceoff
5073 $as_echo "$at_srcdir/xform-h.at:39:
5074 mkdir ustar
5075 (cd ustar
5076 TEST_TAR_FORMAT=ustar
5077 export TEST_TAR_FORMAT
5078 TAR_OPTIONS=\"-H ustar\"
5079 export TAR_OPTIONS
5080 rm -rf *
5081
5082 mkdir basedir
5083 echo \"hello\" > basedir/test
5084 ln basedir/test basedir/test_link
5085
5086
5087 echo "Default transform scope"
5088 tar cf archive --transform="s,^basedir/,," basedir/test basedir/test_link
5089 tar tvf archive | sed -n 's/.*test_link link to //p'
5090
5091
5092 echo "Transforming hard links"
5093 tar cf archive --transform="s,^basedir/,,h" basedir/test basedir/test_link
5094 tar tvf archive | sed -n 's/.*test_link link to //p'
5095
5096
5097 echo "Not transforming hard links"
5098 tar cf archive --transform="s,^basedir/,,H" basedir/test basedir/test_link
5099 tar tvf archive | sed -n 's/.*test_link link to //p'
5100
5101 )"
5102 echo xform-h.at:39 >"$at_check_line_file"
5103
5104 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
5105    false; }; then
5106   ( $at_traceon;
5107 mkdir ustar
5108 (cd ustar
5109 TEST_TAR_FORMAT=ustar
5110 export TEST_TAR_FORMAT
5111 TAR_OPTIONS="-H ustar"
5112 export TAR_OPTIONS
5113 rm -rf *
5114
5115 mkdir basedir
5116 echo "hello" > basedir/test
5117 ln basedir/test basedir/test_link
5118
5119
5120 echo "Default transform scope"
5121 tar cf archive --transform="s,^basedir/,," basedir/test basedir/test_link
5122 tar tvf archive | sed -n 's/.*test_link link to //p'
5123
5124
5125 echo "Transforming hard links"
5126 tar cf archive --transform="s,^basedir/,,h" basedir/test basedir/test_link
5127 tar tvf archive | sed -n 's/.*test_link link to //p'
5128
5129
5130 echo "Not transforming hard links"
5131 tar cf archive --transform="s,^basedir/,,H" basedir/test basedir/test_link
5132 tar tvf archive | sed -n 's/.*test_link link to //p'
5133
5134 ) ) >"$at_stdout" 2>"$at_stder1"
5135   at_func_filter_trace $?
5136 else
5137   ( :;
5138 mkdir ustar
5139 (cd ustar
5140 TEST_TAR_FORMAT=ustar
5141 export TEST_TAR_FORMAT
5142 TAR_OPTIONS="-H ustar"
5143 export TAR_OPTIONS
5144 rm -rf *
5145
5146 mkdir basedir
5147 echo "hello" > basedir/test
5148 ln basedir/test basedir/test_link
5149
5150
5151 echo "Default transform scope"
5152 tar cf archive --transform="s,^basedir/,," basedir/test basedir/test_link
5153 tar tvf archive | sed -n 's/.*test_link link to //p'
5154
5155
5156 echo "Transforming hard links"
5157 tar cf archive --transform="s,^basedir/,,h" basedir/test basedir/test_link
5158 tar tvf archive | sed -n 's/.*test_link link to //p'
5159
5160
5161 echo "Not transforming hard links"
5162 tar cf archive --transform="s,^basedir/,,H" basedir/test basedir/test_link
5163 tar tvf archive | sed -n 's/.*test_link link to //p'
5164
5165 ) ) >"$at_stdout" 2>"$at_stderr"
5166 fi
5167 at_status=$?
5168 at_failed=false
5169 at_func_diff_devnull "$at_stderr" || at_failed=:
5170 echo >>"$at_stdout"; $as_echo "Default transform scope
5171 test
5172 Transforming hard links
5173 test
5174 Not transforming hard links
5175 basedir/test
5176 " | \
5177   $at_diff - "$at_stdout" || at_failed=:
5178 at_func_check_status 0 $at_status "$at_srcdir/xform-h.at:39"
5179
5180 $at_failed && at_func_log_failure
5181 $at_traceon; }
5182
5183               { $at_traceoff
5184 $as_echo "$at_srcdir/xform-h.at:39:
5185 mkdir posix
5186 (cd posix
5187 TEST_TAR_FORMAT=posix
5188 export TEST_TAR_FORMAT
5189 TAR_OPTIONS=\"-H posix\"
5190 export TAR_OPTIONS
5191 rm -rf *
5192
5193 mkdir basedir
5194 echo \"hello\" > basedir/test
5195 ln basedir/test basedir/test_link
5196
5197
5198 echo "Default transform scope"
5199 tar cf archive --transform="s,^basedir/,," basedir/test basedir/test_link
5200 tar tvf archive | sed -n 's/.*test_link link to //p'
5201
5202
5203 echo "Transforming hard links"
5204 tar cf archive --transform="s,^basedir/,,h" basedir/test basedir/test_link
5205 tar tvf archive | sed -n 's/.*test_link link to //p'
5206
5207
5208 echo "Not transforming hard links"
5209 tar cf archive --transform="s,^basedir/,,H" basedir/test basedir/test_link
5210 tar tvf archive | sed -n 's/.*test_link link to //p'
5211
5212 )"
5213 echo xform-h.at:39 >"$at_check_line_file"
5214
5215 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
5216    false; }; then
5217   ( $at_traceon;
5218 mkdir posix
5219 (cd posix
5220 TEST_TAR_FORMAT=posix
5221 export TEST_TAR_FORMAT
5222 TAR_OPTIONS="-H posix"
5223 export TAR_OPTIONS
5224 rm -rf *
5225
5226 mkdir basedir
5227 echo "hello" > basedir/test
5228 ln basedir/test basedir/test_link
5229
5230
5231 echo "Default transform scope"
5232 tar cf archive --transform="s,^basedir/,," basedir/test basedir/test_link
5233 tar tvf archive | sed -n 's/.*test_link link to //p'
5234
5235
5236 echo "Transforming hard links"
5237 tar cf archive --transform="s,^basedir/,,h" basedir/test basedir/test_link
5238 tar tvf archive | sed -n 's/.*test_link link to //p'
5239
5240
5241 echo "Not transforming hard links"
5242 tar cf archive --transform="s,^basedir/,,H" basedir/test basedir/test_link
5243 tar tvf archive | sed -n 's/.*test_link link to //p'
5244
5245 ) ) >"$at_stdout" 2>"$at_stder1"
5246   at_func_filter_trace $?
5247 else
5248   ( :;
5249 mkdir posix
5250 (cd posix
5251 TEST_TAR_FORMAT=posix
5252 export TEST_TAR_FORMAT
5253 TAR_OPTIONS="-H posix"
5254 export TAR_OPTIONS
5255 rm -rf *
5256
5257 mkdir basedir
5258 echo "hello" > basedir/test
5259 ln basedir/test basedir/test_link
5260
5261
5262 echo "Default transform scope"
5263 tar cf archive --transform="s,^basedir/,," basedir/test basedir/test_link
5264 tar tvf archive | sed -n 's/.*test_link link to //p'
5265
5266
5267 echo "Transforming hard links"
5268 tar cf archive --transform="s,^basedir/,,h" basedir/test basedir/test_link
5269 tar tvf archive | sed -n 's/.*test_link link to //p'
5270
5271
5272 echo "Not transforming hard links"
5273 tar cf archive --transform="s,^basedir/,,H" basedir/test basedir/test_link
5274 tar tvf archive | sed -n 's/.*test_link link to //p'
5275
5276 ) ) >"$at_stdout" 2>"$at_stderr"
5277 fi
5278 at_status=$?
5279 at_failed=false
5280 at_func_diff_devnull "$at_stderr" || at_failed=:
5281 echo >>"$at_stdout"; $as_echo "Default transform scope
5282 test
5283 Transforming hard links
5284 test
5285 Not transforming hard links
5286 basedir/test
5287 " | \
5288   $at_diff - "$at_stdout" || at_failed=:
5289 at_func_check_status 0 $at_status "$at_srcdir/xform-h.at:39"
5290
5291 $at_failed && at_func_log_failure
5292 $at_traceon; }
5293
5294               { $at_traceoff
5295 $as_echo "$at_srcdir/xform-h.at:39:
5296 mkdir gnu
5297 (cd gnu
5298 TEST_TAR_FORMAT=gnu
5299 export TEST_TAR_FORMAT
5300 TAR_OPTIONS=\"-H gnu\"
5301 export TAR_OPTIONS
5302 rm -rf *
5303
5304 mkdir basedir
5305 echo \"hello\" > basedir/test
5306 ln basedir/test basedir/test_link
5307
5308
5309 echo "Default transform scope"
5310 tar cf archive --transform="s,^basedir/,," basedir/test basedir/test_link
5311 tar tvf archive | sed -n 's/.*test_link link to //p'
5312
5313
5314 echo "Transforming hard links"
5315 tar cf archive --transform="s,^basedir/,,h" basedir/test basedir/test_link
5316 tar tvf archive | sed -n 's/.*test_link link to //p'
5317
5318
5319 echo "Not transforming hard links"
5320 tar cf archive --transform="s,^basedir/,,H" basedir/test basedir/test_link
5321 tar tvf archive | sed -n 's/.*test_link link to //p'
5322
5323 )"
5324 echo xform-h.at:39 >"$at_check_line_file"
5325
5326 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
5327    false; }; then
5328   ( $at_traceon;
5329 mkdir gnu
5330 (cd gnu
5331 TEST_TAR_FORMAT=gnu
5332 export TEST_TAR_FORMAT
5333 TAR_OPTIONS="-H gnu"
5334 export TAR_OPTIONS
5335 rm -rf *
5336
5337 mkdir basedir
5338 echo "hello" > basedir/test
5339 ln basedir/test basedir/test_link
5340
5341
5342 echo "Default transform scope"
5343 tar cf archive --transform="s,^basedir/,," basedir/test basedir/test_link
5344 tar tvf archive | sed -n 's/.*test_link link to //p'
5345
5346
5347 echo "Transforming hard links"
5348 tar cf archive --transform="s,^basedir/,,h" basedir/test basedir/test_link
5349 tar tvf archive | sed -n 's/.*test_link link to //p'
5350
5351
5352 echo "Not transforming hard links"
5353 tar cf archive --transform="s,^basedir/,,H" basedir/test basedir/test_link
5354 tar tvf archive | sed -n 's/.*test_link link to //p'
5355
5356 ) ) >"$at_stdout" 2>"$at_stder1"
5357   at_func_filter_trace $?
5358 else
5359   ( :;
5360 mkdir gnu
5361 (cd gnu
5362 TEST_TAR_FORMAT=gnu
5363 export TEST_TAR_FORMAT
5364 TAR_OPTIONS="-H gnu"
5365 export TAR_OPTIONS
5366 rm -rf *
5367
5368 mkdir basedir
5369 echo "hello" > basedir/test
5370 ln basedir/test basedir/test_link
5371
5372
5373 echo "Default transform scope"
5374 tar cf archive --transform="s,^basedir/,," basedir/test basedir/test_link
5375 tar tvf archive | sed -n 's/.*test_link link to //p'
5376
5377
5378 echo "Transforming hard links"
5379 tar cf archive --transform="s,^basedir/,,h" basedir/test basedir/test_link
5380 tar tvf archive | sed -n 's/.*test_link link to //p'
5381
5382
5383 echo "Not transforming hard links"
5384 tar cf archive --transform="s,^basedir/,,H" basedir/test basedir/test_link
5385 tar tvf archive | sed -n 's/.*test_link link to //p'
5386
5387 ) ) >"$at_stdout" 2>"$at_stderr"
5388 fi
5389 at_status=$?
5390 at_failed=false
5391 at_func_diff_devnull "$at_stderr" || at_failed=:
5392 echo >>"$at_stdout"; $as_echo "Default transform scope
5393 test
5394 Transforming hard links
5395 test
5396 Not transforming hard links
5397 basedir/test
5398 " | \
5399   $at_diff - "$at_stdout" || at_failed=:
5400 at_func_check_status 0 $at_status "$at_srcdir/xform-h.at:39"
5401
5402 $at_failed && at_func_log_failure
5403 $at_traceon; }
5404
5405
5406
5407
5408
5409
5410   $at_traceoff
5411   $at_times_p && times >"$at_times_file"
5412 ) 5>&1 2>&1 | eval $at_tee_pipe
5413 at_status=`cat "$at_status_file"`
5414 #AT_STOP_12
5415 #AT_START_13
5416 # 13. xform01.at:26: transformations and GNU volume labels
5417 at_setup_line='xform01.at:26'
5418 at_desc="transformations and GNU volume labels"
5419 $at_quiet $as_echo_n " 13: $at_desc          "
5420 at_xfail=no
5421       test -f $XFAILFILE && at_xfail=yes
5422 echo "#                             -*- compilation -*-" >> "$at_group_log"
5423 (
5424   $as_echo "13. xform01.at:26: testing ..."
5425   $at_traceon
5426
5427
5428
5429
5430
5431   { $at_traceoff
5432 $as_echo "$at_srcdir/xform01.at:29:
5433 mkdir gnu
5434 (cd gnu
5435 TEST_TAR_FORMAT=gnu
5436 export TEST_TAR_FORMAT
5437 TAR_OPTIONS=\"-H gnu\"
5438 export TAR_OPTIONS
5439 rm -rf *
5440
5441 genfile --file file
5442 tar -cf archive.tar -V /label/ file
5443 tar tf archive.tar
5444 )"
5445 echo xform01.at:29 >"$at_check_line_file"
5446
5447 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
5448    false; }; then
5449   ( $at_traceon;
5450 mkdir gnu
5451 (cd gnu
5452 TEST_TAR_FORMAT=gnu
5453 export TEST_TAR_FORMAT
5454 TAR_OPTIONS="-H gnu"
5455 export TAR_OPTIONS
5456 rm -rf *
5457
5458 genfile --file file
5459 tar -cf archive.tar -V /label/ file
5460 tar tf archive.tar
5461 ) ) >"$at_stdout" 2>"$at_stder1"
5462   at_func_filter_trace $?
5463 else
5464   ( :;
5465 mkdir gnu
5466 (cd gnu
5467 TEST_TAR_FORMAT=gnu
5468 export TEST_TAR_FORMAT
5469 TAR_OPTIONS="-H gnu"
5470 export TAR_OPTIONS
5471 rm -rf *
5472
5473 genfile --file file
5474 tar -cf archive.tar -V /label/ file
5475 tar tf archive.tar
5476 ) ) >"$at_stdout" 2>"$at_stderr"
5477 fi
5478 at_status=$?
5479 at_failed=false
5480 at_func_diff_devnull "$at_stderr" || at_failed=:
5481 echo >>"$at_stdout"; $as_echo "/label/
5482 file
5483 " | \
5484   $at_diff - "$at_stdout" || at_failed=:
5485 at_func_check_status 0 $at_status "$at_srcdir/xform01.at:29"
5486
5487 $at_failed && at_func_log_failure
5488 $at_traceon; }
5489
5490
5491
5492
5493   $at_traceoff
5494   $at_times_p && times >"$at_times_file"
5495 ) 5>&1 2>&1 | eval $at_tee_pipe
5496 at_status=`cat "$at_status_file"`
5497 #AT_STOP_13
5498 #AT_START_14
5499 # 14. exclude.at:23: exclude
5500 at_setup_line='exclude.at:23'
5501 at_desc="exclude"
5502 $at_quiet $as_echo_n " 14: $at_desc                                        "
5503 at_xfail=no
5504       test -f $XFAILFILE && at_xfail=yes
5505 echo "#                             -*- compilation -*-" >> "$at_group_log"
5506 (
5507   $as_echo "14. exclude.at:23: testing ..."
5508   $at_traceon
5509
5510
5511
5512
5513
5514   { $at_traceoff
5515 $as_echo "$at_srcdir/exclude.at:26:
5516 mkdir ustar
5517 (cd ustar
5518 TEST_TAR_FORMAT=ustar
5519 export TEST_TAR_FORMAT
5520 TAR_OPTIONS=\"-H ustar\"
5521 export TAR_OPTIONS
5522 rm -rf *
5523
5524
5525 test -z "`sort < /dev/null 2>&1`" || exit 77
5526
5527
5528 mkdir dir
5529 echo blues > dir/blues
5530 echo jazz > dir/jazz
5531 mkdir dir/folk
5532 echo tagfile > dir/folk/tagfile
5533 echo sanjuan > dir/folk/sanjuan
5534 mkdir dir/rock
5535 echo \"Signature: 8a477f597d28d172789f06886806bc55\" > dir/rock/CACHEDIR.TAG
5536 echo \"test\" > dir/rock/file
5537
5538 for option in exclude-caches exclude-caches-under exclude-caches-all
5539 do
5540   echo OPTION \$option
5541   tar -cf archive.tar --\$option -v dir 2>err | sort
5542   cat err
5543   echo ARCHIVE
5544   tar tf archive.tar | sort
5545 done
5546
5547 for option in exclude-tag exclude-tag-under exclude-tag-all
5548 do
5549   echo OPTION \$option
5550   tar -cf archive.tar --\${option}=tagfile -v dir 2>err | sort
5551   cat err
5552   echo ARCHIVE
5553   tar tf archive.tar | sort
5554 done
5555 )"
5556 echo exclude.at:26 >"$at_check_line_file"
5557
5558 if { echo 'Not enabling shell tracing (command contains a ${...} parameter expansion)'
5559    false; }; then
5560   ( $at_traceon;
5561 mkdir ustar
5562 (cd ustar
5563 TEST_TAR_FORMAT=ustar
5564 export TEST_TAR_FORMAT
5565 TAR_OPTIONS="-H ustar"
5566 export TAR_OPTIONS
5567 rm -rf *
5568
5569
5570 test -z "`sort < /dev/null 2>&1`" || exit 77
5571
5572
5573 mkdir dir
5574 echo blues > dir/blues
5575 echo jazz > dir/jazz
5576 mkdir dir/folk
5577 echo tagfile > dir/folk/tagfile
5578 echo sanjuan > dir/folk/sanjuan
5579 mkdir dir/rock
5580 echo "Signature: 8a477f597d28d172789f06886806bc55" > dir/rock/CACHEDIR.TAG
5581 echo "test" > dir/rock/file
5582
5583 for option in exclude-caches exclude-caches-under exclude-caches-all
5584 do
5585   echo OPTION $option
5586   tar -cf archive.tar --$option -v dir 2>err | sort
5587   cat err
5588   echo ARCHIVE
5589   tar tf archive.tar | sort
5590 done
5591
5592 for option in exclude-tag exclude-tag-under exclude-tag-all
5593 do
5594   echo OPTION $option
5595   tar -cf archive.tar --${option}=tagfile -v dir 2>err | sort
5596   cat err
5597   echo ARCHIVE
5598   tar tf archive.tar | sort
5599 done
5600 ) ) >"$at_stdout" 2>"$at_stder1"
5601   at_func_filter_trace $?
5602 else
5603   ( :;
5604 mkdir ustar
5605 (cd ustar
5606 TEST_TAR_FORMAT=ustar
5607 export TEST_TAR_FORMAT
5608 TAR_OPTIONS="-H ustar"
5609 export TAR_OPTIONS
5610 rm -rf *
5611
5612
5613 test -z "`sort < /dev/null 2>&1`" || exit 77
5614
5615
5616 mkdir dir
5617 echo blues > dir/blues
5618 echo jazz > dir/jazz
5619 mkdir dir/folk
5620 echo tagfile > dir/folk/tagfile
5621 echo sanjuan > dir/folk/sanjuan
5622 mkdir dir/rock
5623 echo "Signature: 8a477f597d28d172789f06886806bc55" > dir/rock/CACHEDIR.TAG
5624 echo "test" > dir/rock/file
5625
5626 for option in exclude-caches exclude-caches-under exclude-caches-all
5627 do
5628   echo OPTION $option
5629   tar -cf archive.tar --$option -v dir 2>err | sort
5630   cat err
5631   echo ARCHIVE
5632   tar tf archive.tar | sort
5633 done
5634
5635 for option in exclude-tag exclude-tag-under exclude-tag-all
5636 do
5637   echo OPTION $option
5638   tar -cf archive.tar --${option}=tagfile -v dir 2>err | sort
5639   cat err
5640   echo ARCHIVE
5641   tar tf archive.tar | sort
5642 done
5643 ) ) >"$at_stdout" 2>"$at_stderr"
5644 fi
5645 at_status=$?
5646 at_failed=false
5647 at_func_diff_devnull "$at_stderr" || at_failed=:
5648 echo >>"$at_stdout"; $as_echo "OPTION exclude-caches
5649 dir/
5650 dir/blues
5651 dir/folk/
5652 dir/folk/sanjuan
5653 dir/folk/tagfile
5654 dir/jazz
5655 dir/rock/
5656 dir/rock/CACHEDIR.TAG
5657 tar: dir/rock/: contains a cache directory tag CACHEDIR.TAG; contents not dumped
5658 ARCHIVE
5659 dir/
5660 dir/blues
5661 dir/folk/
5662 dir/folk/sanjuan
5663 dir/folk/tagfile
5664 dir/jazz
5665 dir/rock/
5666 dir/rock/CACHEDIR.TAG
5667 OPTION exclude-caches-under
5668 dir/
5669 dir/blues
5670 dir/folk/
5671 dir/folk/sanjuan
5672 dir/folk/tagfile
5673 dir/jazz
5674 dir/rock/
5675 tar: dir/rock/: contains a cache directory tag CACHEDIR.TAG; contents not dumped
5676 ARCHIVE
5677 dir/
5678 dir/blues
5679 dir/folk/
5680 dir/folk/sanjuan
5681 dir/folk/tagfile
5682 dir/jazz
5683 dir/rock/
5684 OPTION exclude-caches-all
5685 dir/
5686 dir/blues
5687 dir/folk/
5688 dir/folk/sanjuan
5689 dir/folk/tagfile
5690 dir/jazz
5691 tar: dir/rock/: contains a cache directory tag CACHEDIR.TAG; directory not dumped
5692 ARCHIVE
5693 dir/
5694 dir/blues
5695 dir/folk/
5696 dir/folk/sanjuan
5697 dir/folk/tagfile
5698 dir/jazz
5699 OPTION exclude-tag
5700 dir/
5701 dir/blues
5702 dir/folk/
5703 dir/folk/tagfile
5704 dir/jazz
5705 dir/rock/
5706 dir/rock/CACHEDIR.TAG
5707 dir/rock/file
5708 tar: dir/folk/: contains a cache directory tag tagfile; contents not dumped
5709 ARCHIVE
5710 dir/
5711 dir/blues
5712 dir/folk/
5713 dir/folk/tagfile
5714 dir/jazz
5715 dir/rock/
5716 dir/rock/CACHEDIR.TAG
5717 dir/rock/file
5718 OPTION exclude-tag-under
5719 dir/
5720 dir/blues
5721 dir/folk/
5722 dir/jazz
5723 dir/rock/
5724 dir/rock/CACHEDIR.TAG
5725 dir/rock/file
5726 tar: dir/folk/: contains a cache directory tag tagfile; contents not dumped
5727 ARCHIVE
5728 dir/
5729 dir/blues
5730 dir/folk/
5731 dir/jazz
5732 dir/rock/
5733 dir/rock/CACHEDIR.TAG
5734 dir/rock/file
5735 OPTION exclude-tag-all
5736 dir/
5737 dir/blues
5738 dir/jazz
5739 dir/rock/
5740 dir/rock/CACHEDIR.TAG
5741 dir/rock/file
5742 tar: dir/folk/: contains a cache directory tag tagfile; directory not dumped
5743 ARCHIVE
5744 dir/
5745 dir/blues
5746 dir/jazz
5747 dir/rock/
5748 dir/rock/CACHEDIR.TAG
5749 dir/rock/file
5750 " | \
5751   $at_diff - "$at_stdout" || at_failed=:
5752 at_func_check_status 0 $at_status "$at_srcdir/exclude.at:26"
5753
5754 $at_failed && at_func_log_failure
5755 $at_traceon; }
5756
5757
5758
5759
5760   $at_traceoff
5761   $at_times_p && times >"$at_times_file"
5762 ) 5>&1 2>&1 | eval $at_tee_pipe
5763 at_status=`cat "$at_status_file"`
5764 #AT_STOP_14
5765 #AT_START_15
5766 # 15. exclude01.at:17: exclude wildcards
5767 at_setup_line='exclude01.at:17'
5768 at_desc="exclude wildcards"
5769 $at_quiet $as_echo_n " 15: $at_desc                              "
5770 at_xfail=no
5771       test -f $XFAILFILE && at_xfail=yes
5772 echo "#                             -*- compilation -*-" >> "$at_group_log"
5773 (
5774   $as_echo "15. exclude01.at:17: testing ..."
5775   $at_traceon
5776
5777
5778
5779
5780
5781   { $at_traceoff
5782 $as_echo "$at_srcdir/exclude01.at:20:
5783 mkdir v7
5784 (cd v7
5785 TEST_TAR_FORMAT=v7
5786 export TEST_TAR_FORMAT
5787 TAR_OPTIONS=\"-H v7\"
5788 export TAR_OPTIONS
5789 rm -rf *
5790
5791
5792 test -z "`sort < /dev/null 2>&1`" || exit 77
5793
5794
5795 rm -rf testdir
5796 mkdir -p testdir/dir1 testdir/dir2 testdir/dir3
5797 touch testdir/dir1/file1
5798 touch testdir/dir1/\\*
5799 touch testdir/dir2/file2
5800 touch testdir/dir2/\\*
5801 touch testdir/dir3/file3
5802 touch testdir/dir3/\\*
5803
5804 tar cf archive --exclude=testdir/dir1/\\* \\
5805                --no-wildcards \\
5806                --exclude=testdir/dir2/\\* \\
5807                --wildcards \\
5808                --exclude=testdir/dir3/\\* \\
5809                testdir
5810 tar tf archive | sort
5811
5812 echo \"NEXT\"
5813 tar cf archive testdir
5814 tar t \"testdir/dir1/*\" -f archive | sort
5815
5816 echo \"NEXT\"
5817 tar cf archive testdir/dir1
5818 tar t --no-wildcards \"testdir/dir1/*\" -f archive | sort
5819
5820 echo \"NEXT\"
5821 tar cf archive testdir
5822 tar t --wildcards \"testdir/dir1/*\" -f archive | sort
5823
5824 rm -rf testdir
5825 )"
5826 echo exclude01.at:20 >"$at_check_line_file"
5827
5828 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
5829    false; }; then
5830   ( $at_traceon;
5831 mkdir v7
5832 (cd v7
5833 TEST_TAR_FORMAT=v7
5834 export TEST_TAR_FORMAT
5835 TAR_OPTIONS="-H v7"
5836 export TAR_OPTIONS
5837 rm -rf *
5838
5839
5840 test -z "`sort < /dev/null 2>&1`" || exit 77
5841
5842
5843 rm -rf testdir
5844 mkdir -p testdir/dir1 testdir/dir2 testdir/dir3
5845 touch testdir/dir1/file1
5846 touch testdir/dir1/\*
5847 touch testdir/dir2/file2
5848 touch testdir/dir2/\*
5849 touch testdir/dir3/file3
5850 touch testdir/dir3/\*
5851
5852 tar cf archive --exclude=testdir/dir1/\* \
5853                --no-wildcards \
5854                --exclude=testdir/dir2/\* \
5855                --wildcards \
5856                --exclude=testdir/dir3/\* \
5857                testdir
5858 tar tf archive | sort
5859
5860 echo "NEXT"
5861 tar cf archive testdir
5862 tar t "testdir/dir1/*" -f archive | sort
5863
5864 echo "NEXT"
5865 tar cf archive testdir/dir1
5866 tar t --no-wildcards "testdir/dir1/*" -f archive | sort
5867
5868 echo "NEXT"
5869 tar cf archive testdir
5870 tar t --wildcards "testdir/dir1/*" -f archive | sort
5871
5872 rm -rf testdir
5873 ) ) >"$at_stdout" 2>"$at_stder1"
5874   at_func_filter_trace $?
5875 else
5876   ( :;
5877 mkdir v7
5878 (cd v7
5879 TEST_TAR_FORMAT=v7
5880 export TEST_TAR_FORMAT
5881 TAR_OPTIONS="-H v7"
5882 export TAR_OPTIONS
5883 rm -rf *
5884
5885
5886 test -z "`sort < /dev/null 2>&1`" || exit 77
5887
5888
5889 rm -rf testdir
5890 mkdir -p testdir/dir1 testdir/dir2 testdir/dir3
5891 touch testdir/dir1/file1
5892 touch testdir/dir1/\*
5893 touch testdir/dir2/file2
5894 touch testdir/dir2/\*
5895 touch testdir/dir3/file3
5896 touch testdir/dir3/\*
5897
5898 tar cf archive --exclude=testdir/dir1/\* \
5899                --no-wildcards \
5900                --exclude=testdir/dir2/\* \
5901                --wildcards \
5902                --exclude=testdir/dir3/\* \
5903                testdir
5904 tar tf archive | sort
5905
5906 echo "NEXT"
5907 tar cf archive testdir
5908 tar t "testdir/dir1/*" -f archive | sort
5909
5910 echo "NEXT"
5911 tar cf archive testdir/dir1
5912 tar t --no-wildcards "testdir/dir1/*" -f archive | sort
5913
5914 echo "NEXT"
5915 tar cf archive testdir
5916 tar t --wildcards "testdir/dir1/*" -f archive | sort
5917
5918 rm -rf testdir
5919 ) ) >"$at_stdout" 2>"$at_stderr"
5920 fi
5921 at_status=$?
5922 at_failed=false
5923 at_func_diff_devnull "$at_stderr" || at_failed=:
5924 echo >>"$at_stdout"; $as_echo "testdir/
5925 testdir/dir1/
5926 testdir/dir2/
5927 testdir/dir2/file2
5928 testdir/dir3/
5929 NEXT
5930 testdir/dir1/*
5931 NEXT
5932 testdir/dir1/*
5933 NEXT
5934 testdir/dir1/*
5935 testdir/dir1/file1
5936 " | \
5937   $at_diff - "$at_stdout" || at_failed=:
5938 at_func_check_status 0 $at_status "$at_srcdir/exclude01.at:20"
5939
5940 $at_failed && at_func_log_failure
5941 $at_traceon; }
5942
5943               { $at_traceoff
5944 $as_echo "$at_srcdir/exclude01.at:20:
5945 mkdir oldgnu
5946 (cd oldgnu
5947 TEST_TAR_FORMAT=oldgnu
5948 export TEST_TAR_FORMAT
5949 TAR_OPTIONS=\"-H oldgnu\"
5950 export TAR_OPTIONS
5951 rm -rf *
5952
5953
5954 test -z "`sort < /dev/null 2>&1`" || exit 77
5955
5956
5957 rm -rf testdir
5958 mkdir -p testdir/dir1 testdir/dir2 testdir/dir3
5959 touch testdir/dir1/file1
5960 touch testdir/dir1/\\*
5961 touch testdir/dir2/file2
5962 touch testdir/dir2/\\*
5963 touch testdir/dir3/file3
5964 touch testdir/dir3/\\*
5965
5966 tar cf archive --exclude=testdir/dir1/\\* \\
5967                --no-wildcards \\
5968                --exclude=testdir/dir2/\\* \\
5969                --wildcards \\
5970                --exclude=testdir/dir3/\\* \\
5971                testdir
5972 tar tf archive | sort
5973
5974 echo \"NEXT\"
5975 tar cf archive testdir
5976 tar t \"testdir/dir1/*\" -f archive | sort
5977
5978 echo \"NEXT\"
5979 tar cf archive testdir/dir1
5980 tar t --no-wildcards \"testdir/dir1/*\" -f archive | sort
5981
5982 echo \"NEXT\"
5983 tar cf archive testdir
5984 tar t --wildcards \"testdir/dir1/*\" -f archive | sort
5985
5986 rm -rf testdir
5987 )"
5988 echo exclude01.at:20 >"$at_check_line_file"
5989
5990 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
5991    false; }; then
5992   ( $at_traceon;
5993 mkdir oldgnu
5994 (cd oldgnu
5995 TEST_TAR_FORMAT=oldgnu
5996 export TEST_TAR_FORMAT
5997 TAR_OPTIONS="-H oldgnu"
5998 export TAR_OPTIONS
5999 rm -rf *
6000
6001
6002 test -z "`sort < /dev/null 2>&1`" || exit 77
6003
6004
6005 rm -rf testdir
6006 mkdir -p testdir/dir1 testdir/dir2 testdir/dir3
6007 touch testdir/dir1/file1
6008 touch testdir/dir1/\*
6009 touch testdir/dir2/file2
6010 touch testdir/dir2/\*
6011 touch testdir/dir3/file3
6012 touch testdir/dir3/\*
6013
6014 tar cf archive --exclude=testdir/dir1/\* \
6015                --no-wildcards \
6016                --exclude=testdir/dir2/\* \
6017                --wildcards \
6018                --exclude=testdir/dir3/\* \
6019                testdir
6020 tar tf archive | sort
6021
6022 echo "NEXT"
6023 tar cf archive testdir
6024 tar t "testdir/dir1/*" -f archive | sort
6025
6026 echo "NEXT"
6027 tar cf archive testdir/dir1
6028 tar t --no-wildcards "testdir/dir1/*" -f archive | sort
6029
6030 echo "NEXT"
6031 tar cf archive testdir
6032 tar t --wildcards "testdir/dir1/*" -f archive | sort
6033
6034 rm -rf testdir
6035 ) ) >"$at_stdout" 2>"$at_stder1"
6036   at_func_filter_trace $?
6037 else
6038   ( :;
6039 mkdir oldgnu
6040 (cd oldgnu
6041 TEST_TAR_FORMAT=oldgnu
6042 export TEST_TAR_FORMAT
6043 TAR_OPTIONS="-H oldgnu"
6044 export TAR_OPTIONS
6045 rm -rf *
6046
6047
6048 test -z "`sort < /dev/null 2>&1`" || exit 77
6049
6050
6051 rm -rf testdir
6052 mkdir -p testdir/dir1 testdir/dir2 testdir/dir3
6053 touch testdir/dir1/file1
6054 touch testdir/dir1/\*
6055 touch testdir/dir2/file2
6056 touch testdir/dir2/\*
6057 touch testdir/dir3/file3
6058 touch testdir/dir3/\*
6059
6060 tar cf archive --exclude=testdir/dir1/\* \
6061                --no-wildcards \
6062                --exclude=testdir/dir2/\* \
6063                --wildcards \
6064                --exclude=testdir/dir3/\* \
6065                testdir
6066 tar tf archive | sort
6067
6068 echo "NEXT"
6069 tar cf archive testdir
6070 tar t "testdir/dir1/*" -f archive | sort
6071
6072 echo "NEXT"
6073 tar cf archive testdir/dir1
6074 tar t --no-wildcards "testdir/dir1/*" -f archive | sort
6075
6076 echo "NEXT"
6077 tar cf archive testdir
6078 tar t --wildcards "testdir/dir1/*" -f archive | sort
6079
6080 rm -rf testdir
6081 ) ) >"$at_stdout" 2>"$at_stderr"
6082 fi
6083 at_status=$?
6084 at_failed=false
6085 at_func_diff_devnull "$at_stderr" || at_failed=:
6086 echo >>"$at_stdout"; $as_echo "testdir/
6087 testdir/dir1/
6088 testdir/dir2/
6089 testdir/dir2/file2
6090 testdir/dir3/
6091 NEXT
6092 testdir/dir1/*
6093 NEXT
6094 testdir/dir1/*
6095 NEXT
6096 testdir/dir1/*
6097 testdir/dir1/file1
6098 " | \
6099   $at_diff - "$at_stdout" || at_failed=:
6100 at_func_check_status 0 $at_status "$at_srcdir/exclude01.at:20"
6101
6102 $at_failed && at_func_log_failure
6103 $at_traceon; }
6104
6105               { $at_traceoff
6106 $as_echo "$at_srcdir/exclude01.at:20:
6107 mkdir ustar
6108 (cd ustar
6109 TEST_TAR_FORMAT=ustar
6110 export TEST_TAR_FORMAT
6111 TAR_OPTIONS=\"-H ustar\"
6112 export TAR_OPTIONS
6113 rm -rf *
6114
6115
6116 test -z "`sort < /dev/null 2>&1`" || exit 77
6117
6118
6119 rm -rf testdir
6120 mkdir -p testdir/dir1 testdir/dir2 testdir/dir3
6121 touch testdir/dir1/file1
6122 touch testdir/dir1/\\*
6123 touch testdir/dir2/file2
6124 touch testdir/dir2/\\*
6125 touch testdir/dir3/file3
6126 touch testdir/dir3/\\*
6127
6128 tar cf archive --exclude=testdir/dir1/\\* \\
6129                --no-wildcards \\
6130                --exclude=testdir/dir2/\\* \\
6131                --wildcards \\
6132                --exclude=testdir/dir3/\\* \\
6133                testdir
6134 tar tf archive | sort
6135
6136 echo \"NEXT\"
6137 tar cf archive testdir
6138 tar t \"testdir/dir1/*\" -f archive | sort
6139
6140 echo \"NEXT\"
6141 tar cf archive testdir/dir1
6142 tar t --no-wildcards \"testdir/dir1/*\" -f archive | sort
6143
6144 echo \"NEXT\"
6145 tar cf archive testdir
6146 tar t --wildcards \"testdir/dir1/*\" -f archive | sort
6147
6148 rm -rf testdir
6149 )"
6150 echo exclude01.at:20 >"$at_check_line_file"
6151
6152 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
6153    false; }; then
6154   ( $at_traceon;
6155 mkdir ustar
6156 (cd ustar
6157 TEST_TAR_FORMAT=ustar
6158 export TEST_TAR_FORMAT
6159 TAR_OPTIONS="-H ustar"
6160 export TAR_OPTIONS
6161 rm -rf *
6162
6163
6164 test -z "`sort < /dev/null 2>&1`" || exit 77
6165
6166
6167 rm -rf testdir
6168 mkdir -p testdir/dir1 testdir/dir2 testdir/dir3
6169 touch testdir/dir1/file1
6170 touch testdir/dir1/\*
6171 touch testdir/dir2/file2
6172 touch testdir/dir2/\*
6173 touch testdir/dir3/file3
6174 touch testdir/dir3/\*
6175
6176 tar cf archive --exclude=testdir/dir1/\* \
6177                --no-wildcards \
6178                --exclude=testdir/dir2/\* \
6179                --wildcards \
6180                --exclude=testdir/dir3/\* \
6181                testdir
6182 tar tf archive | sort
6183
6184 echo "NEXT"
6185 tar cf archive testdir
6186 tar t "testdir/dir1/*" -f archive | sort
6187
6188 echo "NEXT"
6189 tar cf archive testdir/dir1
6190 tar t --no-wildcards "testdir/dir1/*" -f archive | sort
6191
6192 echo "NEXT"
6193 tar cf archive testdir
6194 tar t --wildcards "testdir/dir1/*" -f archive | sort
6195
6196 rm -rf testdir
6197 ) ) >"$at_stdout" 2>"$at_stder1"
6198   at_func_filter_trace $?
6199 else
6200   ( :;
6201 mkdir ustar
6202 (cd ustar
6203 TEST_TAR_FORMAT=ustar
6204 export TEST_TAR_FORMAT
6205 TAR_OPTIONS="-H ustar"
6206 export TAR_OPTIONS
6207 rm -rf *
6208
6209
6210 test -z "`sort < /dev/null 2>&1`" || exit 77
6211
6212
6213 rm -rf testdir
6214 mkdir -p testdir/dir1 testdir/dir2 testdir/dir3
6215 touch testdir/dir1/file1
6216 touch testdir/dir1/\*
6217 touch testdir/dir2/file2
6218 touch testdir/dir2/\*
6219 touch testdir/dir3/file3
6220 touch testdir/dir3/\*
6221
6222 tar cf archive --exclude=testdir/dir1/\* \
6223                --no-wildcards \
6224                --exclude=testdir/dir2/\* \
6225                --wildcards \
6226                --exclude=testdir/dir3/\* \
6227                testdir
6228 tar tf archive | sort
6229
6230 echo "NEXT"
6231 tar cf archive testdir
6232 tar t "testdir/dir1/*" -f archive | sort
6233
6234 echo "NEXT"
6235 tar cf archive testdir/dir1
6236 tar t --no-wildcards "testdir/dir1/*" -f archive | sort
6237
6238 echo "NEXT"
6239 tar cf archive testdir
6240 tar t --wildcards "testdir/dir1/*" -f archive | sort
6241
6242 rm -rf testdir
6243 ) ) >"$at_stdout" 2>"$at_stderr"
6244 fi
6245 at_status=$?
6246 at_failed=false
6247 at_func_diff_devnull "$at_stderr" || at_failed=:
6248 echo >>"$at_stdout"; $as_echo "testdir/
6249 testdir/dir1/
6250 testdir/dir2/
6251 testdir/dir2/file2
6252 testdir/dir3/
6253 NEXT
6254 testdir/dir1/*
6255 NEXT
6256 testdir/dir1/*
6257 NEXT
6258 testdir/dir1/*
6259 testdir/dir1/file1
6260 " | \
6261   $at_diff - "$at_stdout" || at_failed=:
6262 at_func_check_status 0 $at_status "$at_srcdir/exclude01.at:20"
6263
6264 $at_failed && at_func_log_failure
6265 $at_traceon; }
6266
6267               { $at_traceoff
6268 $as_echo "$at_srcdir/exclude01.at:20:
6269 mkdir posix
6270 (cd posix
6271 TEST_TAR_FORMAT=posix
6272 export TEST_TAR_FORMAT
6273 TAR_OPTIONS=\"-H posix\"
6274 export TAR_OPTIONS
6275 rm -rf *
6276
6277
6278 test -z "`sort < /dev/null 2>&1`" || exit 77
6279
6280
6281 rm -rf testdir
6282 mkdir -p testdir/dir1 testdir/dir2 testdir/dir3
6283 touch testdir/dir1/file1
6284 touch testdir/dir1/\\*
6285 touch testdir/dir2/file2
6286 touch testdir/dir2/\\*
6287 touch testdir/dir3/file3
6288 touch testdir/dir3/\\*
6289
6290 tar cf archive --exclude=testdir/dir1/\\* \\
6291                --no-wildcards \\
6292                --exclude=testdir/dir2/\\* \\
6293                --wildcards \\
6294                --exclude=testdir/dir3/\\* \\
6295                testdir
6296 tar tf archive | sort
6297
6298 echo \"NEXT\"
6299 tar cf archive testdir
6300 tar t \"testdir/dir1/*\" -f archive | sort
6301
6302 echo \"NEXT\"
6303 tar cf archive testdir/dir1
6304 tar t --no-wildcards \"testdir/dir1/*\" -f archive | sort
6305
6306 echo \"NEXT\"
6307 tar cf archive testdir
6308 tar t --wildcards \"testdir/dir1/*\" -f archive | sort
6309
6310 rm -rf testdir
6311 )"
6312 echo exclude01.at:20 >"$at_check_line_file"
6313
6314 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
6315    false; }; then
6316   ( $at_traceon;
6317 mkdir posix
6318 (cd posix
6319 TEST_TAR_FORMAT=posix
6320 export TEST_TAR_FORMAT
6321 TAR_OPTIONS="-H posix"
6322 export TAR_OPTIONS
6323 rm -rf *
6324
6325
6326 test -z "`sort < /dev/null 2>&1`" || exit 77
6327
6328
6329 rm -rf testdir
6330 mkdir -p testdir/dir1 testdir/dir2 testdir/dir3
6331 touch testdir/dir1/file1
6332 touch testdir/dir1/\*
6333 touch testdir/dir2/file2
6334 touch testdir/dir2/\*
6335 touch testdir/dir3/file3
6336 touch testdir/dir3/\*
6337
6338 tar cf archive --exclude=testdir/dir1/\* \
6339                --no-wildcards \
6340                --exclude=testdir/dir2/\* \
6341                --wildcards \
6342                --exclude=testdir/dir3/\* \
6343                testdir
6344 tar tf archive | sort
6345
6346 echo "NEXT"
6347 tar cf archive testdir
6348 tar t "testdir/dir1/*" -f archive | sort
6349
6350 echo "NEXT"
6351 tar cf archive testdir/dir1
6352 tar t --no-wildcards "testdir/dir1/*" -f archive | sort
6353
6354 echo "NEXT"
6355 tar cf archive testdir
6356 tar t --wildcards "testdir/dir1/*" -f archive | sort
6357
6358 rm -rf testdir
6359 ) ) >"$at_stdout" 2>"$at_stder1"
6360   at_func_filter_trace $?
6361 else
6362   ( :;
6363 mkdir posix
6364 (cd posix
6365 TEST_TAR_FORMAT=posix
6366 export TEST_TAR_FORMAT
6367 TAR_OPTIONS="-H posix"
6368 export TAR_OPTIONS
6369 rm -rf *
6370
6371
6372 test -z "`sort < /dev/null 2>&1`" || exit 77
6373
6374
6375 rm -rf testdir
6376 mkdir -p testdir/dir1 testdir/dir2 testdir/dir3
6377 touch testdir/dir1/file1
6378 touch testdir/dir1/\*
6379 touch testdir/dir2/file2
6380 touch testdir/dir2/\*
6381 touch testdir/dir3/file3
6382 touch testdir/dir3/\*
6383
6384 tar cf archive --exclude=testdir/dir1/\* \
6385                --no-wildcards \
6386                --exclude=testdir/dir2/\* \
6387                --wildcards \
6388                --exclude=testdir/dir3/\* \
6389                testdir
6390 tar tf archive | sort
6391
6392 echo "NEXT"
6393 tar cf archive testdir
6394 tar t "testdir/dir1/*" -f archive | sort
6395
6396 echo "NEXT"
6397 tar cf archive testdir/dir1
6398 tar t --no-wildcards "testdir/dir1/*" -f archive | sort
6399
6400 echo "NEXT"
6401 tar cf archive testdir
6402 tar t --wildcards "testdir/dir1/*" -f archive | sort
6403
6404 rm -rf testdir
6405 ) ) >"$at_stdout" 2>"$at_stderr"
6406 fi
6407 at_status=$?
6408 at_failed=false
6409 at_func_diff_devnull "$at_stderr" || at_failed=:
6410 echo >>"$at_stdout"; $as_echo "testdir/
6411 testdir/dir1/
6412 testdir/dir2/
6413 testdir/dir2/file2
6414 testdir/dir3/
6415 NEXT
6416 testdir/dir1/*
6417 NEXT
6418 testdir/dir1/*
6419 NEXT
6420 testdir/dir1/*
6421 testdir/dir1/file1
6422 " | \
6423   $at_diff - "$at_stdout" || at_failed=:
6424 at_func_check_status 0 $at_status "$at_srcdir/exclude01.at:20"
6425
6426 $at_failed && at_func_log_failure
6427 $at_traceon; }
6428
6429               { $at_traceoff
6430 $as_echo "$at_srcdir/exclude01.at:20:
6431 mkdir gnu
6432 (cd gnu
6433 TEST_TAR_FORMAT=gnu
6434 export TEST_TAR_FORMAT
6435 TAR_OPTIONS=\"-H gnu\"
6436 export TAR_OPTIONS
6437 rm -rf *
6438
6439
6440 test -z "`sort < /dev/null 2>&1`" || exit 77
6441
6442
6443 rm -rf testdir
6444 mkdir -p testdir/dir1 testdir/dir2 testdir/dir3
6445 touch testdir/dir1/file1
6446 touch testdir/dir1/\\*
6447 touch testdir/dir2/file2
6448 touch testdir/dir2/\\*
6449 touch testdir/dir3/file3
6450 touch testdir/dir3/\\*
6451
6452 tar cf archive --exclude=testdir/dir1/\\* \\
6453                --no-wildcards \\
6454                --exclude=testdir/dir2/\\* \\
6455                --wildcards \\
6456                --exclude=testdir/dir3/\\* \\
6457                testdir
6458 tar tf archive | sort
6459
6460 echo \"NEXT\"
6461 tar cf archive testdir
6462 tar t \"testdir/dir1/*\" -f archive | sort
6463
6464 echo \"NEXT\"
6465 tar cf archive testdir/dir1
6466 tar t --no-wildcards \"testdir/dir1/*\" -f archive | sort
6467
6468 echo \"NEXT\"
6469 tar cf archive testdir
6470 tar t --wildcards \"testdir/dir1/*\" -f archive | sort
6471
6472 rm -rf testdir
6473 )"
6474 echo exclude01.at:20 >"$at_check_line_file"
6475
6476 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
6477    false; }; then
6478   ( $at_traceon;
6479 mkdir gnu
6480 (cd gnu
6481 TEST_TAR_FORMAT=gnu
6482 export TEST_TAR_FORMAT
6483 TAR_OPTIONS="-H gnu"
6484 export TAR_OPTIONS
6485 rm -rf *
6486
6487
6488 test -z "`sort < /dev/null 2>&1`" || exit 77
6489
6490
6491 rm -rf testdir
6492 mkdir -p testdir/dir1 testdir/dir2 testdir/dir3
6493 touch testdir/dir1/file1
6494 touch testdir/dir1/\*
6495 touch testdir/dir2/file2
6496 touch testdir/dir2/\*
6497 touch testdir/dir3/file3
6498 touch testdir/dir3/\*
6499
6500 tar cf archive --exclude=testdir/dir1/\* \
6501                --no-wildcards \
6502                --exclude=testdir/dir2/\* \
6503                --wildcards \
6504                --exclude=testdir/dir3/\* \
6505                testdir
6506 tar tf archive | sort
6507
6508 echo "NEXT"
6509 tar cf archive testdir
6510 tar t "testdir/dir1/*" -f archive | sort
6511
6512 echo "NEXT"
6513 tar cf archive testdir/dir1
6514 tar t --no-wildcards "testdir/dir1/*" -f archive | sort
6515
6516 echo "NEXT"
6517 tar cf archive testdir
6518 tar t --wildcards "testdir/dir1/*" -f archive | sort
6519
6520 rm -rf testdir
6521 ) ) >"$at_stdout" 2>"$at_stder1"
6522   at_func_filter_trace $?
6523 else
6524   ( :;
6525 mkdir gnu
6526 (cd gnu
6527 TEST_TAR_FORMAT=gnu
6528 export TEST_TAR_FORMAT
6529 TAR_OPTIONS="-H gnu"
6530 export TAR_OPTIONS
6531 rm -rf *
6532
6533
6534 test -z "`sort < /dev/null 2>&1`" || exit 77
6535
6536
6537 rm -rf testdir
6538 mkdir -p testdir/dir1 testdir/dir2 testdir/dir3
6539 touch testdir/dir1/file1
6540 touch testdir/dir1/\*
6541 touch testdir/dir2/file2
6542 touch testdir/dir2/\*
6543 touch testdir/dir3/file3
6544 touch testdir/dir3/\*
6545
6546 tar cf archive --exclude=testdir/dir1/\* \
6547                --no-wildcards \
6548                --exclude=testdir/dir2/\* \
6549                --wildcards \
6550                --exclude=testdir/dir3/\* \
6551                testdir
6552 tar tf archive | sort
6553
6554 echo "NEXT"
6555 tar cf archive testdir
6556 tar t "testdir/dir1/*" -f archive | sort
6557
6558 echo "NEXT"
6559 tar cf archive testdir/dir1
6560 tar t --no-wildcards "testdir/dir1/*" -f archive | sort
6561
6562 echo "NEXT"
6563 tar cf archive testdir
6564 tar t --wildcards "testdir/dir1/*" -f archive | sort
6565
6566 rm -rf testdir
6567 ) ) >"$at_stdout" 2>"$at_stderr"
6568 fi
6569 at_status=$?
6570 at_failed=false
6571 at_func_diff_devnull "$at_stderr" || at_failed=:
6572 echo >>"$at_stdout"; $as_echo "testdir/
6573 testdir/dir1/
6574 testdir/dir2/
6575 testdir/dir2/file2
6576 testdir/dir3/
6577 NEXT
6578 testdir/dir1/*
6579 NEXT
6580 testdir/dir1/*
6581 NEXT
6582 testdir/dir1/*
6583 testdir/dir1/file1
6584 " | \
6585   $at_diff - "$at_stdout" || at_failed=:
6586 at_func_check_status 0 $at_status "$at_srcdir/exclude01.at:20"
6587
6588 $at_failed && at_func_log_failure
6589 $at_traceon; }
6590
6591
6592
6593
6594   $at_traceoff
6595   $at_times_p && times >"$at_times_file"
6596 ) 5>&1 2>&1 | eval $at_tee_pipe
6597 at_status=`cat "$at_status_file"`
6598 #AT_STOP_15
6599 #AT_START_16
6600 # 16. exclude02.at:17: exclude: anchoring
6601 at_setup_line='exclude02.at:17'
6602 at_desc="exclude: anchoring"
6603 $at_quiet $as_echo_n " 16: $at_desc                             "
6604 at_xfail=no
6605       test -f $XFAILFILE && at_xfail=yes
6606 echo "#                             -*- compilation -*-" >> "$at_group_log"
6607 (
6608   $as_echo "16. exclude02.at:17: testing ..."
6609   $at_traceon
6610
6611
6612
6613
6614
6615   { $at_traceoff
6616 $as_echo "$at_srcdir/exclude02.at:20:
6617 mkdir v7
6618 (cd v7
6619 TEST_TAR_FORMAT=v7
6620 export TEST_TAR_FORMAT
6621 TAR_OPTIONS=\"-H v7\"
6622 export TAR_OPTIONS
6623 rm -rf *
6624
6625
6626 test -z "`sort < /dev/null 2>&1`" || exit 77
6627
6628
6629 rm -rf testdir
6630 mkdir -p testdir
6631 touch file1.txt
6632 touch testdir/file1.txt
6633 touch testdir/file2
6634
6635 tar cf archive --exclude=\"file1.txt\" \\
6636                testdir
6637 tar tf archive | sort
6638
6639 echo \"SUB 1\"
6640 tar cf archive --no-anchored \\
6641                --exclude=\"file1.txt\" \\
6642                testdir
6643 tar tf archive | sort
6644
6645 echo \"SUB 2\"
6646 tar cf archive --anchored \\
6647                --exclude=\"file1.txt\" \\
6648                testdir
6649 tar tf archive | sort
6650
6651 echo \"SUB 3\"
6652 tar cf archive testdir file1.txt
6653 tar t \"file1.txt\" -f archive | sort
6654
6655 echo \"SUB 4\"
6656 tar t --no-anchored \"file1.txt\" -f archive | sort
6657
6658 echo \"SUB 5\"
6659 tar t --anchored \"file1.txt\" -f archive | sort
6660
6661 rm -rf testdir file1.txt
6662
6663 )"
6664 echo exclude02.at:20 >"$at_check_line_file"
6665
6666 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
6667    false; }; then
6668   ( $at_traceon;
6669 mkdir v7
6670 (cd v7
6671 TEST_TAR_FORMAT=v7
6672 export TEST_TAR_FORMAT
6673 TAR_OPTIONS="-H v7"
6674 export TAR_OPTIONS
6675 rm -rf *
6676
6677
6678 test -z "`sort < /dev/null 2>&1`" || exit 77
6679
6680
6681 rm -rf testdir
6682 mkdir -p testdir
6683 touch file1.txt
6684 touch testdir/file1.txt
6685 touch testdir/file2
6686
6687 tar cf archive --exclude="file1.txt" \
6688                testdir
6689 tar tf archive | sort
6690
6691 echo "SUB 1"
6692 tar cf archive --no-anchored \
6693                --exclude="file1.txt" \
6694                testdir
6695 tar tf archive | sort
6696
6697 echo "SUB 2"
6698 tar cf archive --anchored \
6699                --exclude="file1.txt" \
6700                testdir
6701 tar tf archive | sort
6702
6703 echo "SUB 3"
6704 tar cf archive testdir file1.txt
6705 tar t "file1.txt" -f archive | sort
6706
6707 echo "SUB 4"
6708 tar t --no-anchored "file1.txt" -f archive | sort
6709
6710 echo "SUB 5"
6711 tar t --anchored "file1.txt" -f archive | sort
6712
6713 rm -rf testdir file1.txt
6714
6715 ) ) >"$at_stdout" 2>"$at_stder1"
6716   at_func_filter_trace $?
6717 else
6718   ( :;
6719 mkdir v7
6720 (cd v7
6721 TEST_TAR_FORMAT=v7
6722 export TEST_TAR_FORMAT
6723 TAR_OPTIONS="-H v7"
6724 export TAR_OPTIONS
6725 rm -rf *
6726
6727
6728 test -z "`sort < /dev/null 2>&1`" || exit 77
6729
6730
6731 rm -rf testdir
6732 mkdir -p testdir
6733 touch file1.txt
6734 touch testdir/file1.txt
6735 touch testdir/file2
6736
6737 tar cf archive --exclude="file1.txt" \
6738                testdir
6739 tar tf archive | sort
6740
6741 echo "SUB 1"
6742 tar cf archive --no-anchored \
6743                --exclude="file1.txt" \
6744                testdir
6745 tar tf archive | sort
6746
6747 echo "SUB 2"
6748 tar cf archive --anchored \
6749                --exclude="file1.txt" \
6750                testdir
6751 tar tf archive | sort
6752
6753 echo "SUB 3"
6754 tar cf archive testdir file1.txt
6755 tar t "file1.txt" -f archive | sort
6756
6757 echo "SUB 4"
6758 tar t --no-anchored "file1.txt" -f archive | sort
6759
6760 echo "SUB 5"
6761 tar t --anchored "file1.txt" -f archive | sort
6762
6763 rm -rf testdir file1.txt
6764
6765 ) ) >"$at_stdout" 2>"$at_stderr"
6766 fi
6767 at_status=$?
6768 at_failed=false
6769 at_func_diff_devnull "$at_stderr" || at_failed=:
6770 echo >>"$at_stdout"; $as_echo "testdir/
6771 testdir/file2
6772 SUB 1
6773 testdir/
6774 testdir/file2
6775 SUB 2
6776 testdir/
6777 testdir/file1.txt
6778 testdir/file2
6779 SUB 3
6780 file1.txt
6781 SUB 4
6782 file1.txt
6783 testdir/file1.txt
6784 SUB 5
6785 file1.txt
6786 " | \
6787   $at_diff - "$at_stdout" || at_failed=:
6788 at_func_check_status 0 $at_status "$at_srcdir/exclude02.at:20"
6789
6790 $at_failed && at_func_log_failure
6791 $at_traceon; }
6792
6793               { $at_traceoff
6794 $as_echo "$at_srcdir/exclude02.at:20:
6795 mkdir oldgnu
6796 (cd oldgnu
6797 TEST_TAR_FORMAT=oldgnu
6798 export TEST_TAR_FORMAT
6799 TAR_OPTIONS=\"-H oldgnu\"
6800 export TAR_OPTIONS
6801 rm -rf *
6802
6803
6804 test -z "`sort < /dev/null 2>&1`" || exit 77
6805
6806
6807 rm -rf testdir
6808 mkdir -p testdir
6809 touch file1.txt
6810 touch testdir/file1.txt
6811 touch testdir/file2
6812
6813 tar cf archive --exclude=\"file1.txt\" \\
6814                testdir
6815 tar tf archive | sort
6816
6817 echo \"SUB 1\"
6818 tar cf archive --no-anchored \\
6819                --exclude=\"file1.txt\" \\
6820                testdir
6821 tar tf archive | sort
6822
6823 echo \"SUB 2\"
6824 tar cf archive --anchored \\
6825                --exclude=\"file1.txt\" \\
6826                testdir
6827 tar tf archive | sort
6828
6829 echo \"SUB 3\"
6830 tar cf archive testdir file1.txt
6831 tar t \"file1.txt\" -f archive | sort
6832
6833 echo \"SUB 4\"
6834 tar t --no-anchored \"file1.txt\" -f archive | sort
6835
6836 echo \"SUB 5\"
6837 tar t --anchored \"file1.txt\" -f archive | sort
6838
6839 rm -rf testdir file1.txt
6840
6841 )"
6842 echo exclude02.at:20 >"$at_check_line_file"
6843
6844 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
6845    false; }; then
6846   ( $at_traceon;
6847 mkdir oldgnu
6848 (cd oldgnu
6849 TEST_TAR_FORMAT=oldgnu
6850 export TEST_TAR_FORMAT
6851 TAR_OPTIONS="-H oldgnu"
6852 export TAR_OPTIONS
6853 rm -rf *
6854
6855
6856 test -z "`sort < /dev/null 2>&1`" || exit 77
6857
6858
6859 rm -rf testdir
6860 mkdir -p testdir
6861 touch file1.txt
6862 touch testdir/file1.txt
6863 touch testdir/file2
6864
6865 tar cf archive --exclude="file1.txt" \
6866                testdir
6867 tar tf archive | sort
6868
6869 echo "SUB 1"
6870 tar cf archive --no-anchored \
6871                --exclude="file1.txt" \
6872                testdir
6873 tar tf archive | sort
6874
6875 echo "SUB 2"
6876 tar cf archive --anchored \
6877                --exclude="file1.txt" \
6878                testdir
6879 tar tf archive | sort
6880
6881 echo "SUB 3"
6882 tar cf archive testdir file1.txt
6883 tar t "file1.txt" -f archive | sort
6884
6885 echo "SUB 4"
6886 tar t --no-anchored "file1.txt" -f archive | sort
6887
6888 echo "SUB 5"
6889 tar t --anchored "file1.txt" -f archive | sort
6890
6891 rm -rf testdir file1.txt
6892
6893 ) ) >"$at_stdout" 2>"$at_stder1"
6894   at_func_filter_trace $?
6895 else
6896   ( :;
6897 mkdir oldgnu
6898 (cd oldgnu
6899 TEST_TAR_FORMAT=oldgnu
6900 export TEST_TAR_FORMAT
6901 TAR_OPTIONS="-H oldgnu"
6902 export TAR_OPTIONS
6903 rm -rf *
6904
6905
6906 test -z "`sort < /dev/null 2>&1`" || exit 77
6907
6908
6909 rm -rf testdir
6910 mkdir -p testdir
6911 touch file1.txt
6912 touch testdir/file1.txt
6913 touch testdir/file2
6914
6915 tar cf archive --exclude="file1.txt" \
6916                testdir
6917 tar tf archive | sort
6918
6919 echo "SUB 1"
6920 tar cf archive --no-anchored \
6921                --exclude="file1.txt" \
6922                testdir
6923 tar tf archive | sort
6924
6925 echo "SUB 2"
6926 tar cf archive --anchored \
6927                --exclude="file1.txt" \
6928                testdir
6929 tar tf archive | sort
6930
6931 echo "SUB 3"
6932 tar cf archive testdir file1.txt
6933 tar t "file1.txt" -f archive | sort
6934
6935 echo "SUB 4"
6936 tar t --no-anchored "file1.txt" -f archive | sort
6937
6938 echo "SUB 5"
6939 tar t --anchored "file1.txt" -f archive | sort
6940
6941 rm -rf testdir file1.txt
6942
6943 ) ) >"$at_stdout" 2>"$at_stderr"
6944 fi
6945 at_status=$?
6946 at_failed=false
6947 at_func_diff_devnull "$at_stderr" || at_failed=:
6948 echo >>"$at_stdout"; $as_echo "testdir/
6949 testdir/file2
6950 SUB 1
6951 testdir/
6952 testdir/file2
6953 SUB 2
6954 testdir/
6955 testdir/file1.txt
6956 testdir/file2
6957 SUB 3
6958 file1.txt
6959 SUB 4
6960 file1.txt
6961 testdir/file1.txt
6962 SUB 5
6963 file1.txt
6964 " | \
6965   $at_diff - "$at_stdout" || at_failed=:
6966 at_func_check_status 0 $at_status "$at_srcdir/exclude02.at:20"
6967
6968 $at_failed && at_func_log_failure
6969 $at_traceon; }
6970
6971               { $at_traceoff
6972 $as_echo "$at_srcdir/exclude02.at:20:
6973 mkdir ustar
6974 (cd ustar
6975 TEST_TAR_FORMAT=ustar
6976 export TEST_TAR_FORMAT
6977 TAR_OPTIONS=\"-H ustar\"
6978 export TAR_OPTIONS
6979 rm -rf *
6980
6981
6982 test -z "`sort < /dev/null 2>&1`" || exit 77
6983
6984
6985 rm -rf testdir
6986 mkdir -p testdir
6987 touch file1.txt
6988 touch testdir/file1.txt
6989 touch testdir/file2
6990
6991 tar cf archive --exclude=\"file1.txt\" \\
6992                testdir
6993 tar tf archive | sort
6994
6995 echo \"SUB 1\"
6996 tar cf archive --no-anchored \\
6997                --exclude=\"file1.txt\" \\
6998                testdir
6999 tar tf archive | sort
7000
7001 echo \"SUB 2\"
7002 tar cf archive --anchored \\
7003                --exclude=\"file1.txt\" \\
7004                testdir
7005 tar tf archive | sort
7006
7007 echo \"SUB 3\"
7008 tar cf archive testdir file1.txt
7009 tar t \"file1.txt\" -f archive | sort
7010
7011 echo \"SUB 4\"
7012 tar t --no-anchored \"file1.txt\" -f archive | sort
7013
7014 echo \"SUB 5\"
7015 tar t --anchored \"file1.txt\" -f archive | sort
7016
7017 rm -rf testdir file1.txt
7018
7019 )"
7020 echo exclude02.at:20 >"$at_check_line_file"
7021
7022 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
7023    false; }; then
7024   ( $at_traceon;
7025 mkdir ustar
7026 (cd ustar
7027 TEST_TAR_FORMAT=ustar
7028 export TEST_TAR_FORMAT
7029 TAR_OPTIONS="-H ustar"
7030 export TAR_OPTIONS
7031 rm -rf *
7032
7033
7034 test -z "`sort < /dev/null 2>&1`" || exit 77
7035
7036
7037 rm -rf testdir
7038 mkdir -p testdir
7039 touch file1.txt
7040 touch testdir/file1.txt
7041 touch testdir/file2
7042
7043 tar cf archive --exclude="file1.txt" \
7044                testdir
7045 tar tf archive | sort
7046
7047 echo "SUB 1"
7048 tar cf archive --no-anchored \
7049                --exclude="file1.txt" \
7050                testdir
7051 tar tf archive | sort
7052
7053 echo "SUB 2"
7054 tar cf archive --anchored \
7055                --exclude="file1.txt" \
7056                testdir
7057 tar tf archive | sort
7058
7059 echo "SUB 3"
7060 tar cf archive testdir file1.txt
7061 tar t "file1.txt" -f archive | sort
7062
7063 echo "SUB 4"
7064 tar t --no-anchored "file1.txt" -f archive | sort
7065
7066 echo "SUB 5"
7067 tar t --anchored "file1.txt" -f archive | sort
7068
7069 rm -rf testdir file1.txt
7070
7071 ) ) >"$at_stdout" 2>"$at_stder1"
7072   at_func_filter_trace $?
7073 else
7074   ( :;
7075 mkdir ustar
7076 (cd ustar
7077 TEST_TAR_FORMAT=ustar
7078 export TEST_TAR_FORMAT
7079 TAR_OPTIONS="-H ustar"
7080 export TAR_OPTIONS
7081 rm -rf *
7082
7083
7084 test -z "`sort < /dev/null 2>&1`" || exit 77
7085
7086
7087 rm -rf testdir
7088 mkdir -p testdir
7089 touch file1.txt
7090 touch testdir/file1.txt
7091 touch testdir/file2
7092
7093 tar cf archive --exclude="file1.txt" \
7094                testdir
7095 tar tf archive | sort
7096
7097 echo "SUB 1"
7098 tar cf archive --no-anchored \
7099                --exclude="file1.txt" \
7100                testdir
7101 tar tf archive | sort
7102
7103 echo "SUB 2"
7104 tar cf archive --anchored \
7105                --exclude="file1.txt" \
7106                testdir
7107 tar tf archive | sort
7108
7109 echo "SUB 3"
7110 tar cf archive testdir file1.txt
7111 tar t "file1.txt" -f archive | sort
7112
7113 echo "SUB 4"
7114 tar t --no-anchored "file1.txt" -f archive | sort
7115
7116 echo "SUB 5"
7117 tar t --anchored "file1.txt" -f archive | sort
7118
7119 rm -rf testdir file1.txt
7120
7121 ) ) >"$at_stdout" 2>"$at_stderr"
7122 fi
7123 at_status=$?
7124 at_failed=false
7125 at_func_diff_devnull "$at_stderr" || at_failed=:
7126 echo >>"$at_stdout"; $as_echo "testdir/
7127 testdir/file2
7128 SUB 1
7129 testdir/
7130 testdir/file2
7131 SUB 2
7132 testdir/
7133 testdir/file1.txt
7134 testdir/file2
7135 SUB 3
7136 file1.txt
7137 SUB 4
7138 file1.txt
7139 testdir/file1.txt
7140 SUB 5
7141 file1.txt
7142 " | \
7143   $at_diff - "$at_stdout" || at_failed=:
7144 at_func_check_status 0 $at_status "$at_srcdir/exclude02.at:20"
7145
7146 $at_failed && at_func_log_failure
7147 $at_traceon; }
7148
7149               { $at_traceoff
7150 $as_echo "$at_srcdir/exclude02.at:20:
7151 mkdir posix
7152 (cd posix
7153 TEST_TAR_FORMAT=posix
7154 export TEST_TAR_FORMAT
7155 TAR_OPTIONS=\"-H posix\"
7156 export TAR_OPTIONS
7157 rm -rf *
7158
7159
7160 test -z "`sort < /dev/null 2>&1`" || exit 77
7161
7162
7163 rm -rf testdir
7164 mkdir -p testdir
7165 touch file1.txt
7166 touch testdir/file1.txt
7167 touch testdir/file2
7168
7169 tar cf archive --exclude=\"file1.txt\" \\
7170                testdir
7171 tar tf archive | sort
7172
7173 echo \"SUB 1\"
7174 tar cf archive --no-anchored \\
7175                --exclude=\"file1.txt\" \\
7176                testdir
7177 tar tf archive | sort
7178
7179 echo \"SUB 2\"
7180 tar cf archive --anchored \\
7181                --exclude=\"file1.txt\" \\
7182                testdir
7183 tar tf archive | sort
7184
7185 echo \"SUB 3\"
7186 tar cf archive testdir file1.txt
7187 tar t \"file1.txt\" -f archive | sort
7188
7189 echo \"SUB 4\"
7190 tar t --no-anchored \"file1.txt\" -f archive | sort
7191
7192 echo \"SUB 5\"
7193 tar t --anchored \"file1.txt\" -f archive | sort
7194
7195 rm -rf testdir file1.txt
7196
7197 )"
7198 echo exclude02.at:20 >"$at_check_line_file"
7199
7200 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
7201    false; }; then
7202   ( $at_traceon;
7203 mkdir posix
7204 (cd posix
7205 TEST_TAR_FORMAT=posix
7206 export TEST_TAR_FORMAT
7207 TAR_OPTIONS="-H posix"
7208 export TAR_OPTIONS
7209 rm -rf *
7210
7211
7212 test -z "`sort < /dev/null 2>&1`" || exit 77
7213
7214
7215 rm -rf testdir
7216 mkdir -p testdir
7217 touch file1.txt
7218 touch testdir/file1.txt
7219 touch testdir/file2
7220
7221 tar cf archive --exclude="file1.txt" \
7222                testdir
7223 tar tf archive | sort
7224
7225 echo "SUB 1"
7226 tar cf archive --no-anchored \
7227                --exclude="file1.txt" \
7228                testdir
7229 tar tf archive | sort
7230
7231 echo "SUB 2"
7232 tar cf archive --anchored \
7233                --exclude="file1.txt" \
7234                testdir
7235 tar tf archive | sort
7236
7237 echo "SUB 3"
7238 tar cf archive testdir file1.txt
7239 tar t "file1.txt" -f archive | sort
7240
7241 echo "SUB 4"
7242 tar t --no-anchored "file1.txt" -f archive | sort
7243
7244 echo "SUB 5"
7245 tar t --anchored "file1.txt" -f archive | sort
7246
7247 rm -rf testdir file1.txt
7248
7249 ) ) >"$at_stdout" 2>"$at_stder1"
7250   at_func_filter_trace $?
7251 else
7252   ( :;
7253 mkdir posix
7254 (cd posix
7255 TEST_TAR_FORMAT=posix
7256 export TEST_TAR_FORMAT
7257 TAR_OPTIONS="-H posix"
7258 export TAR_OPTIONS
7259 rm -rf *
7260
7261
7262 test -z "`sort < /dev/null 2>&1`" || exit 77
7263
7264
7265 rm -rf testdir
7266 mkdir -p testdir
7267 touch file1.txt
7268 touch testdir/file1.txt
7269 touch testdir/file2
7270
7271 tar cf archive --exclude="file1.txt" \
7272                testdir
7273 tar tf archive | sort
7274
7275 echo "SUB 1"
7276 tar cf archive --no-anchored \
7277                --exclude="file1.txt" \
7278                testdir
7279 tar tf archive | sort
7280
7281 echo "SUB 2"
7282 tar cf archive --anchored \
7283                --exclude="file1.txt" \
7284                testdir
7285 tar tf archive | sort
7286
7287 echo "SUB 3"
7288 tar cf archive testdir file1.txt
7289 tar t "file1.txt" -f archive | sort
7290
7291 echo "SUB 4"
7292 tar t --no-anchored "file1.txt" -f archive | sort
7293
7294 echo "SUB 5"
7295 tar t --anchored "file1.txt" -f archive | sort
7296
7297 rm -rf testdir file1.txt
7298
7299 ) ) >"$at_stdout" 2>"$at_stderr"
7300 fi
7301 at_status=$?
7302 at_failed=false
7303 at_func_diff_devnull "$at_stderr" || at_failed=:
7304 echo >>"$at_stdout"; $as_echo "testdir/
7305 testdir/file2
7306 SUB 1
7307 testdir/
7308 testdir/file2
7309 SUB 2
7310 testdir/
7311 testdir/file1.txt
7312 testdir/file2
7313 SUB 3
7314 file1.txt
7315 SUB 4
7316 file1.txt
7317 testdir/file1.txt
7318 SUB 5
7319 file1.txt
7320 " | \
7321   $at_diff - "$at_stdout" || at_failed=:
7322 at_func_check_status 0 $at_status "$at_srcdir/exclude02.at:20"
7323
7324 $at_failed && at_func_log_failure
7325 $at_traceon; }
7326
7327               { $at_traceoff
7328 $as_echo "$at_srcdir/exclude02.at:20:
7329 mkdir gnu
7330 (cd gnu
7331 TEST_TAR_FORMAT=gnu
7332 export TEST_TAR_FORMAT
7333 TAR_OPTIONS=\"-H gnu\"
7334 export TAR_OPTIONS
7335 rm -rf *
7336
7337
7338 test -z "`sort < /dev/null 2>&1`" || exit 77
7339
7340
7341 rm -rf testdir
7342 mkdir -p testdir
7343 touch file1.txt
7344 touch testdir/file1.txt
7345 touch testdir/file2
7346
7347 tar cf archive --exclude=\"file1.txt\" \\
7348                testdir
7349 tar tf archive | sort
7350
7351 echo \"SUB 1\"
7352 tar cf archive --no-anchored \\
7353                --exclude=\"file1.txt\" \\
7354                testdir
7355 tar tf archive | sort
7356
7357 echo \"SUB 2\"
7358 tar cf archive --anchored \\
7359                --exclude=\"file1.txt\" \\
7360                testdir
7361 tar tf archive | sort
7362
7363 echo \"SUB 3\"
7364 tar cf archive testdir file1.txt
7365 tar t \"file1.txt\" -f archive | sort
7366
7367 echo \"SUB 4\"
7368 tar t --no-anchored \"file1.txt\" -f archive | sort
7369
7370 echo \"SUB 5\"
7371 tar t --anchored \"file1.txt\" -f archive | sort
7372
7373 rm -rf testdir file1.txt
7374
7375 )"
7376 echo exclude02.at:20 >"$at_check_line_file"
7377
7378 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
7379    false; }; then
7380   ( $at_traceon;
7381 mkdir gnu
7382 (cd gnu
7383 TEST_TAR_FORMAT=gnu
7384 export TEST_TAR_FORMAT
7385 TAR_OPTIONS="-H gnu"
7386 export TAR_OPTIONS
7387 rm -rf *
7388
7389
7390 test -z "`sort < /dev/null 2>&1`" || exit 77
7391
7392
7393 rm -rf testdir
7394 mkdir -p testdir
7395 touch file1.txt
7396 touch testdir/file1.txt
7397 touch testdir/file2
7398
7399 tar cf archive --exclude="file1.txt" \
7400                testdir
7401 tar tf archive | sort
7402
7403 echo "SUB 1"
7404 tar cf archive --no-anchored \
7405                --exclude="file1.txt" \
7406                testdir
7407 tar tf archive | sort
7408
7409 echo "SUB 2"
7410 tar cf archive --anchored \
7411                --exclude="file1.txt" \
7412                testdir
7413 tar tf archive | sort
7414
7415 echo "SUB 3"
7416 tar cf archive testdir file1.txt
7417 tar t "file1.txt" -f archive | sort
7418
7419 echo "SUB 4"
7420 tar t --no-anchored "file1.txt" -f archive | sort
7421
7422 echo "SUB 5"
7423 tar t --anchored "file1.txt" -f archive | sort
7424
7425 rm -rf testdir file1.txt
7426
7427 ) ) >"$at_stdout" 2>"$at_stder1"
7428   at_func_filter_trace $?
7429 else
7430   ( :;
7431 mkdir gnu
7432 (cd gnu
7433 TEST_TAR_FORMAT=gnu
7434 export TEST_TAR_FORMAT
7435 TAR_OPTIONS="-H gnu"
7436 export TAR_OPTIONS
7437 rm -rf *
7438
7439
7440 test -z "`sort < /dev/null 2>&1`" || exit 77
7441
7442
7443 rm -rf testdir
7444 mkdir -p testdir
7445 touch file1.txt
7446 touch testdir/file1.txt
7447 touch testdir/file2
7448
7449 tar cf archive --exclude="file1.txt" \
7450                testdir
7451 tar tf archive | sort
7452
7453 echo "SUB 1"
7454 tar cf archive --no-anchored \
7455                --exclude="file1.txt" \
7456                testdir
7457 tar tf archive | sort
7458
7459 echo "SUB 2"
7460 tar cf archive --anchored \
7461                --exclude="file1.txt" \
7462                testdir
7463 tar tf archive | sort
7464
7465 echo "SUB 3"
7466 tar cf archive testdir file1.txt
7467 tar t "file1.txt" -f archive | sort
7468
7469 echo "SUB 4"
7470 tar t --no-anchored "file1.txt" -f archive | sort
7471
7472 echo "SUB 5"
7473 tar t --anchored "file1.txt" -f archive | sort
7474
7475 rm -rf testdir file1.txt
7476
7477 ) ) >"$at_stdout" 2>"$at_stderr"
7478 fi
7479 at_status=$?
7480 at_failed=false
7481 at_func_diff_devnull "$at_stderr" || at_failed=:
7482 echo >>"$at_stdout"; $as_echo "testdir/
7483 testdir/file2
7484 SUB 1
7485 testdir/
7486 testdir/file2
7487 SUB 2
7488 testdir/
7489 testdir/file1.txt
7490 testdir/file2
7491 SUB 3
7492 file1.txt
7493 SUB 4
7494 file1.txt
7495 testdir/file1.txt
7496 SUB 5
7497 file1.txt
7498 " | \
7499   $at_diff - "$at_stdout" || at_failed=:
7500 at_func_check_status 0 $at_status "$at_srcdir/exclude02.at:20"
7501
7502 $at_failed && at_func_log_failure
7503 $at_traceon; }
7504
7505
7506
7507
7508   $at_traceoff
7509   $at_times_p && times >"$at_times_file"
7510 ) 5>&1 2>&1 | eval $at_tee_pipe
7511 at_status=`cat "$at_status_file"`
7512 #AT_STOP_16
7513 #AT_START_17
7514 # 17. exclude03.at:17: exclude: wildcards match slash
7515 at_setup_line='exclude03.at:17'
7516 at_desc="exclude: wildcards match slash"
7517 $at_quiet $as_echo_n " 17: $at_desc                 "
7518 at_xfail=no
7519       test -f $XFAILFILE && at_xfail=yes
7520 echo "#                             -*- compilation -*-" >> "$at_group_log"
7521 (
7522   $as_echo "17. exclude03.at:17: testing ..."
7523   $at_traceon
7524
7525
7526
7527
7528
7529   { $at_traceoff
7530 $as_echo "$at_srcdir/exclude03.at:20:
7531 mkdir v7
7532 (cd v7
7533 TEST_TAR_FORMAT=v7
7534 export TEST_TAR_FORMAT
7535 TAR_OPTIONS=\"-H v7\"
7536 export TAR_OPTIONS
7537 rm -rf *
7538
7539
7540 test -z "`sort < /dev/null 2>&1`" || exit 77
7541
7542
7543 rm -rf testdir
7544 mkdir -p testdir/dir1 testdir/dir2 testdir/dir3
7545 touch testdir/\\*f\\*1
7546 touch testdir/dir1/file1
7547 touch testdir/dir1/\\*
7548 touch testdir/dir2/file2
7549 touch testdir/dir2/\\*
7550 touch testdir/dir3/file3
7551 touch testdir/dir3/\\*
7552
7553 tar cf archive --exclude='testdir*f*1' \\
7554                --no-wildcards-match-slash \\
7555                --exclude='testdir*f*2' \\
7556                --wildcards-match-slash \\
7557                --exclude='testdir*f*3' \\
7558                testdir
7559 tar tf archive | sort
7560
7561 echo \"NEXT\"
7562 tar cf archive testdir
7563 tar t --wildcards 'testdir/*f*1' -f archive | sort
7564
7565 echo \"NEXT\"
7566 tar t --wildcards --no-wildcards-match-slash 'testdir/*f*1' -f archive | sort
7567
7568 echo \"NEXT\"
7569 tar t --wildcards --wildcards-match-slash 'testdir/*f*1' -f archive | sort
7570
7571 rm -rf testdir
7572
7573 )"
7574 echo exclude03.at:20 >"$at_check_line_file"
7575
7576 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
7577    false; }; then
7578   ( $at_traceon;
7579 mkdir v7
7580 (cd v7
7581 TEST_TAR_FORMAT=v7
7582 export TEST_TAR_FORMAT
7583 TAR_OPTIONS="-H v7"
7584 export TAR_OPTIONS
7585 rm -rf *
7586
7587
7588 test -z "`sort < /dev/null 2>&1`" || exit 77
7589
7590
7591 rm -rf testdir
7592 mkdir -p testdir/dir1 testdir/dir2 testdir/dir3
7593 touch testdir/\*f\*1
7594 touch testdir/dir1/file1
7595 touch testdir/dir1/\*
7596 touch testdir/dir2/file2
7597 touch testdir/dir2/\*
7598 touch testdir/dir3/file3
7599 touch testdir/dir3/\*
7600
7601 tar cf archive --exclude='testdir*f*1' \
7602                --no-wildcards-match-slash \
7603                --exclude='testdir*f*2' \
7604                --wildcards-match-slash \
7605                --exclude='testdir*f*3' \
7606                testdir
7607 tar tf archive | sort
7608
7609 echo "NEXT"
7610 tar cf archive testdir
7611 tar t --wildcards 'testdir/*f*1' -f archive | sort
7612
7613 echo "NEXT"
7614 tar t --wildcards --no-wildcards-match-slash 'testdir/*f*1' -f archive | sort
7615
7616 echo "NEXT"
7617 tar t --wildcards --wildcards-match-slash 'testdir/*f*1' -f archive | sort
7618
7619 rm -rf testdir
7620
7621 ) ) >"$at_stdout" 2>"$at_stder1"
7622   at_func_filter_trace $?
7623 else
7624   ( :;
7625 mkdir v7
7626 (cd v7
7627 TEST_TAR_FORMAT=v7
7628 export TEST_TAR_FORMAT
7629 TAR_OPTIONS="-H v7"
7630 export TAR_OPTIONS
7631 rm -rf *
7632
7633
7634 test -z "`sort < /dev/null 2>&1`" || exit 77
7635
7636
7637 rm -rf testdir
7638 mkdir -p testdir/dir1 testdir/dir2 testdir/dir3
7639 touch testdir/\*f\*1
7640 touch testdir/dir1/file1
7641 touch testdir/dir1/\*
7642 touch testdir/dir2/file2
7643 touch testdir/dir2/\*
7644 touch testdir/dir3/file3
7645 touch testdir/dir3/\*
7646
7647 tar cf archive --exclude='testdir*f*1' \
7648                --no-wildcards-match-slash \
7649                --exclude='testdir*f*2' \
7650                --wildcards-match-slash \
7651                --exclude='testdir*f*3' \
7652                testdir
7653 tar tf archive | sort
7654
7655 echo "NEXT"
7656 tar cf archive testdir
7657 tar t --wildcards 'testdir/*f*1' -f archive | sort
7658
7659 echo "NEXT"
7660 tar t --wildcards --no-wildcards-match-slash 'testdir/*f*1' -f archive | sort
7661
7662 echo "NEXT"
7663 tar t --wildcards --wildcards-match-slash 'testdir/*f*1' -f archive | sort
7664
7665 rm -rf testdir
7666
7667 ) ) >"$at_stdout" 2>"$at_stderr"
7668 fi
7669 at_status=$?
7670 at_failed=false
7671 at_func_diff_devnull "$at_stderr" || at_failed=:
7672 echo >>"$at_stdout"; $as_echo "testdir/
7673 testdir/dir1/
7674 testdir/dir1/*
7675 testdir/dir2/
7676 testdir/dir2/*
7677 testdir/dir2/file2
7678 testdir/dir3/
7679 testdir/dir3/*
7680 NEXT
7681 testdir/*f*1
7682 testdir/dir1/file1
7683 NEXT
7684 testdir/*f*1
7685 NEXT
7686 testdir/*f*1
7687 testdir/dir1/file1
7688 " | \
7689   $at_diff - "$at_stdout" || at_failed=:
7690 at_func_check_status 0 $at_status "$at_srcdir/exclude03.at:20"
7691
7692 $at_failed && at_func_log_failure
7693 $at_traceon; }
7694
7695               { $at_traceoff
7696 $as_echo "$at_srcdir/exclude03.at:20:
7697 mkdir oldgnu
7698 (cd oldgnu
7699 TEST_TAR_FORMAT=oldgnu
7700 export TEST_TAR_FORMAT
7701 TAR_OPTIONS=\"-H oldgnu\"
7702 export TAR_OPTIONS
7703 rm -rf *
7704
7705
7706 test -z "`sort < /dev/null 2>&1`" || exit 77
7707
7708
7709 rm -rf testdir
7710 mkdir -p testdir/dir1 testdir/dir2 testdir/dir3
7711 touch testdir/\\*f\\*1
7712 touch testdir/dir1/file1
7713 touch testdir/dir1/\\*
7714 touch testdir/dir2/file2
7715 touch testdir/dir2/\\*
7716 touch testdir/dir3/file3
7717 touch testdir/dir3/\\*
7718
7719 tar cf archive --exclude='testdir*f*1' \\
7720                --no-wildcards-match-slash \\
7721                --exclude='testdir*f*2' \\
7722                --wildcards-match-slash \\
7723                --exclude='testdir*f*3' \\
7724                testdir
7725 tar tf archive | sort
7726
7727 echo \"NEXT\"
7728 tar cf archive testdir
7729 tar t --wildcards 'testdir/*f*1' -f archive | sort
7730
7731 echo \"NEXT\"
7732 tar t --wildcards --no-wildcards-match-slash 'testdir/*f*1' -f archive | sort
7733
7734 echo \"NEXT\"
7735 tar t --wildcards --wildcards-match-slash 'testdir/*f*1' -f archive | sort
7736
7737 rm -rf testdir
7738
7739 )"
7740 echo exclude03.at:20 >"$at_check_line_file"
7741
7742 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
7743    false; }; then
7744   ( $at_traceon;
7745 mkdir oldgnu
7746 (cd oldgnu
7747 TEST_TAR_FORMAT=oldgnu
7748 export TEST_TAR_FORMAT
7749 TAR_OPTIONS="-H oldgnu"
7750 export TAR_OPTIONS
7751 rm -rf *
7752
7753
7754 test -z "`sort < /dev/null 2>&1`" || exit 77
7755
7756
7757 rm -rf testdir
7758 mkdir -p testdir/dir1 testdir/dir2 testdir/dir3
7759 touch testdir/\*f\*1
7760 touch testdir/dir1/file1
7761 touch testdir/dir1/\*
7762 touch testdir/dir2/file2
7763 touch testdir/dir2/\*
7764 touch testdir/dir3/file3
7765 touch testdir/dir3/\*
7766
7767 tar cf archive --exclude='testdir*f*1' \
7768                --no-wildcards-match-slash \
7769                --exclude='testdir*f*2' \
7770                --wildcards-match-slash \
7771                --exclude='testdir*f*3' \
7772                testdir
7773 tar tf archive | sort
7774
7775 echo "NEXT"
7776 tar cf archive testdir
7777 tar t --wildcards 'testdir/*f*1' -f archive | sort
7778
7779 echo "NEXT"
7780 tar t --wildcards --no-wildcards-match-slash 'testdir/*f*1' -f archive | sort
7781
7782 echo "NEXT"
7783 tar t --wildcards --wildcards-match-slash 'testdir/*f*1' -f archive | sort
7784
7785 rm -rf testdir
7786
7787 ) ) >"$at_stdout" 2>"$at_stder1"
7788   at_func_filter_trace $?
7789 else
7790   ( :;
7791 mkdir oldgnu
7792 (cd oldgnu
7793 TEST_TAR_FORMAT=oldgnu
7794 export TEST_TAR_FORMAT
7795 TAR_OPTIONS="-H oldgnu"
7796 export TAR_OPTIONS
7797 rm -rf *
7798
7799
7800 test -z "`sort < /dev/null 2>&1`" || exit 77
7801
7802
7803 rm -rf testdir
7804 mkdir -p testdir/dir1 testdir/dir2 testdir/dir3
7805 touch testdir/\*f\*1
7806 touch testdir/dir1/file1
7807 touch testdir/dir1/\*
7808 touch testdir/dir2/file2
7809 touch testdir/dir2/\*
7810 touch testdir/dir3/file3
7811 touch testdir/dir3/\*
7812
7813 tar cf archive --exclude='testdir*f*1' \
7814                --no-wildcards-match-slash \
7815                --exclude='testdir*f*2' \
7816                --wildcards-match-slash \
7817                --exclude='testdir*f*3' \
7818                testdir
7819 tar tf archive | sort
7820
7821 echo "NEXT"
7822 tar cf archive testdir
7823 tar t --wildcards 'testdir/*f*1' -f archive | sort
7824
7825 echo "NEXT"
7826 tar t --wildcards --no-wildcards-match-slash 'testdir/*f*1' -f archive | sort
7827
7828 echo "NEXT"
7829 tar t --wildcards --wildcards-match-slash 'testdir/*f*1' -f archive | sort
7830
7831 rm -rf testdir
7832
7833 ) ) >"$at_stdout" 2>"$at_stderr"
7834 fi
7835 at_status=$?
7836 at_failed=false
7837 at_func_diff_devnull "$at_stderr" || at_failed=:
7838 echo >>"$at_stdout"; $as_echo "testdir/
7839 testdir/dir1/
7840 testdir/dir1/*
7841 testdir/dir2/
7842 testdir/dir2/*
7843 testdir/dir2/file2
7844 testdir/dir3/
7845 testdir/dir3/*
7846 NEXT
7847 testdir/*f*1
7848 testdir/dir1/file1
7849 NEXT
7850 testdir/*f*1
7851 NEXT
7852 testdir/*f*1
7853 testdir/dir1/file1
7854 " | \
7855   $at_diff - "$at_stdout" || at_failed=:
7856 at_func_check_status 0 $at_status "$at_srcdir/exclude03.at:20"
7857
7858 $at_failed && at_func_log_failure
7859 $at_traceon; }
7860
7861               { $at_traceoff
7862 $as_echo "$at_srcdir/exclude03.at:20:
7863 mkdir ustar
7864 (cd ustar
7865 TEST_TAR_FORMAT=ustar
7866 export TEST_TAR_FORMAT
7867 TAR_OPTIONS=\"-H ustar\"
7868 export TAR_OPTIONS
7869 rm -rf *
7870
7871
7872 test -z "`sort < /dev/null 2>&1`" || exit 77
7873
7874
7875 rm -rf testdir
7876 mkdir -p testdir/dir1 testdir/dir2 testdir/dir3
7877 touch testdir/\\*f\\*1
7878 touch testdir/dir1/file1
7879 touch testdir/dir1/\\*
7880 touch testdir/dir2/file2
7881 touch testdir/dir2/\\*
7882 touch testdir/dir3/file3
7883 touch testdir/dir3/\\*
7884
7885 tar cf archive --exclude='testdir*f*1' \\
7886                --no-wildcards-match-slash \\
7887                --exclude='testdir*f*2' \\
7888                --wildcards-match-slash \\
7889                --exclude='testdir*f*3' \\
7890                testdir
7891 tar tf archive | sort
7892
7893 echo \"NEXT\"
7894 tar cf archive testdir
7895 tar t --wildcards 'testdir/*f*1' -f archive | sort
7896
7897 echo \"NEXT\"
7898 tar t --wildcards --no-wildcards-match-slash 'testdir/*f*1' -f archive | sort
7899
7900 echo \"NEXT\"
7901 tar t --wildcards --wildcards-match-slash 'testdir/*f*1' -f archive | sort
7902
7903 rm -rf testdir
7904
7905 )"
7906 echo exclude03.at:20 >"$at_check_line_file"
7907
7908 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
7909    false; }; then
7910   ( $at_traceon;
7911 mkdir ustar
7912 (cd ustar
7913 TEST_TAR_FORMAT=ustar
7914 export TEST_TAR_FORMAT
7915 TAR_OPTIONS="-H ustar"
7916 export TAR_OPTIONS
7917 rm -rf *
7918
7919
7920 test -z "`sort < /dev/null 2>&1`" || exit 77
7921
7922
7923 rm -rf testdir
7924 mkdir -p testdir/dir1 testdir/dir2 testdir/dir3
7925 touch testdir/\*f\*1
7926 touch testdir/dir1/file1
7927 touch testdir/dir1/\*
7928 touch testdir/dir2/file2
7929 touch testdir/dir2/\*
7930 touch testdir/dir3/file3
7931 touch testdir/dir3/\*
7932
7933 tar cf archive --exclude='testdir*f*1' \
7934                --no-wildcards-match-slash \
7935                --exclude='testdir*f*2' \
7936                --wildcards-match-slash \
7937                --exclude='testdir*f*3' \
7938                testdir
7939 tar tf archive | sort
7940
7941 echo "NEXT"
7942 tar cf archive testdir
7943 tar t --wildcards 'testdir/*f*1' -f archive | sort
7944
7945 echo "NEXT"
7946 tar t --wildcards --no-wildcards-match-slash 'testdir/*f*1' -f archive | sort
7947
7948 echo "NEXT"
7949 tar t --wildcards --wildcards-match-slash 'testdir/*f*1' -f archive | sort
7950
7951 rm -rf testdir
7952
7953 ) ) >"$at_stdout" 2>"$at_stder1"
7954   at_func_filter_trace $?
7955 else
7956   ( :;
7957 mkdir ustar
7958 (cd ustar
7959 TEST_TAR_FORMAT=ustar
7960 export TEST_TAR_FORMAT
7961 TAR_OPTIONS="-H ustar"
7962 export TAR_OPTIONS
7963 rm -rf *
7964
7965
7966 test -z "`sort < /dev/null 2>&1`" || exit 77
7967
7968
7969 rm -rf testdir
7970 mkdir -p testdir/dir1 testdir/dir2 testdir/dir3
7971 touch testdir/\*f\*1
7972 touch testdir/dir1/file1
7973 touch testdir/dir1/\*
7974 touch testdir/dir2/file2
7975 touch testdir/dir2/\*
7976 touch testdir/dir3/file3
7977 touch testdir/dir3/\*
7978
7979 tar cf archive --exclude='testdir*f*1' \
7980                --no-wildcards-match-slash \
7981                --exclude='testdir*f*2' \
7982                --wildcards-match-slash \
7983                --exclude='testdir*f*3' \
7984                testdir
7985 tar tf archive | sort
7986
7987 echo "NEXT"
7988 tar cf archive testdir
7989 tar t --wildcards 'testdir/*f*1' -f archive | sort
7990
7991 echo "NEXT"
7992 tar t --wildcards --no-wildcards-match-slash 'testdir/*f*1' -f archive | sort
7993
7994 echo "NEXT"
7995 tar t --wildcards --wildcards-match-slash 'testdir/*f*1' -f archive | sort
7996
7997 rm -rf testdir
7998
7999 ) ) >"$at_stdout" 2>"$at_stderr"
8000 fi
8001 at_status=$?
8002 at_failed=false
8003 at_func_diff_devnull "$at_stderr" || at_failed=:
8004 echo >>"$at_stdout"; $as_echo "testdir/
8005 testdir/dir1/
8006 testdir/dir1/*
8007 testdir/dir2/
8008 testdir/dir2/*
8009 testdir/dir2/file2
8010 testdir/dir3/
8011 testdir/dir3/*
8012 NEXT
8013 testdir/*f*1
8014 testdir/dir1/file1
8015 NEXT
8016 testdir/*f*1
8017 NEXT
8018 testdir/*f*1
8019 testdir/dir1/file1
8020 " | \
8021   $at_diff - "$at_stdout" || at_failed=:
8022 at_func_check_status 0 $at_status "$at_srcdir/exclude03.at:20"
8023
8024 $at_failed && at_func_log_failure
8025 $at_traceon; }
8026
8027               { $at_traceoff
8028 $as_echo "$at_srcdir/exclude03.at:20:
8029 mkdir posix
8030 (cd posix
8031 TEST_TAR_FORMAT=posix
8032 export TEST_TAR_FORMAT
8033 TAR_OPTIONS=\"-H posix\"
8034 export TAR_OPTIONS
8035 rm -rf *
8036
8037
8038 test -z "`sort < /dev/null 2>&1`" || exit 77
8039
8040
8041 rm -rf testdir
8042 mkdir -p testdir/dir1 testdir/dir2 testdir/dir3
8043 touch testdir/\\*f\\*1
8044 touch testdir/dir1/file1
8045 touch testdir/dir1/\\*
8046 touch testdir/dir2/file2
8047 touch testdir/dir2/\\*
8048 touch testdir/dir3/file3
8049 touch testdir/dir3/\\*
8050
8051 tar cf archive --exclude='testdir*f*1' \\
8052                --no-wildcards-match-slash \\
8053                --exclude='testdir*f*2' \\
8054                --wildcards-match-slash \\
8055                --exclude='testdir*f*3' \\
8056                testdir
8057 tar tf archive | sort
8058
8059 echo \"NEXT\"
8060 tar cf archive testdir
8061 tar t --wildcards 'testdir/*f*1' -f archive | sort
8062
8063 echo \"NEXT\"
8064 tar t --wildcards --no-wildcards-match-slash 'testdir/*f*1' -f archive | sort
8065
8066 echo \"NEXT\"
8067 tar t --wildcards --wildcards-match-slash 'testdir/*f*1' -f archive | sort
8068
8069 rm -rf testdir
8070
8071 )"
8072 echo exclude03.at:20 >"$at_check_line_file"
8073
8074 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
8075    false; }; then
8076   ( $at_traceon;
8077 mkdir posix
8078 (cd posix
8079 TEST_TAR_FORMAT=posix
8080 export TEST_TAR_FORMAT
8081 TAR_OPTIONS="-H posix"
8082 export TAR_OPTIONS
8083 rm -rf *
8084
8085
8086 test -z "`sort < /dev/null 2>&1`" || exit 77
8087
8088
8089 rm -rf testdir
8090 mkdir -p testdir/dir1 testdir/dir2 testdir/dir3
8091 touch testdir/\*f\*1
8092 touch testdir/dir1/file1
8093 touch testdir/dir1/\*
8094 touch testdir/dir2/file2
8095 touch testdir/dir2/\*
8096 touch testdir/dir3/file3
8097 touch testdir/dir3/\*
8098
8099 tar cf archive --exclude='testdir*f*1' \
8100                --no-wildcards-match-slash \
8101                --exclude='testdir*f*2' \
8102                --wildcards-match-slash \
8103                --exclude='testdir*f*3' \
8104                testdir
8105 tar tf archive | sort
8106
8107 echo "NEXT"
8108 tar cf archive testdir
8109 tar t --wildcards 'testdir/*f*1' -f archive | sort
8110
8111 echo "NEXT"
8112 tar t --wildcards --no-wildcards-match-slash 'testdir/*f*1' -f archive | sort
8113
8114 echo "NEXT"
8115 tar t --wildcards --wildcards-match-slash 'testdir/*f*1' -f archive | sort
8116
8117 rm -rf testdir
8118
8119 ) ) >"$at_stdout" 2>"$at_stder1"
8120   at_func_filter_trace $?
8121 else
8122   ( :;
8123 mkdir posix
8124 (cd posix
8125 TEST_TAR_FORMAT=posix
8126 export TEST_TAR_FORMAT
8127 TAR_OPTIONS="-H posix"
8128 export TAR_OPTIONS
8129 rm -rf *
8130
8131
8132 test -z "`sort < /dev/null 2>&1`" || exit 77
8133
8134
8135 rm -rf testdir
8136 mkdir -p testdir/dir1 testdir/dir2 testdir/dir3
8137 touch testdir/\*f\*1
8138 touch testdir/dir1/file1
8139 touch testdir/dir1/\*
8140 touch testdir/dir2/file2
8141 touch testdir/dir2/\*
8142 touch testdir/dir3/file3
8143 touch testdir/dir3/\*
8144
8145 tar cf archive --exclude='testdir*f*1' \
8146                --no-wildcards-match-slash \
8147                --exclude='testdir*f*2' \
8148                --wildcards-match-slash \
8149                --exclude='testdir*f*3' \
8150                testdir
8151 tar tf archive | sort
8152
8153 echo "NEXT"
8154 tar cf archive testdir
8155 tar t --wildcards 'testdir/*f*1' -f archive | sort
8156
8157 echo "NEXT"
8158 tar t --wildcards --no-wildcards-match-slash 'testdir/*f*1' -f archive | sort
8159
8160 echo "NEXT"
8161 tar t --wildcards --wildcards-match-slash 'testdir/*f*1' -f archive | sort
8162
8163 rm -rf testdir
8164
8165 ) ) >"$at_stdout" 2>"$at_stderr"
8166 fi
8167 at_status=$?
8168 at_failed=false
8169 at_func_diff_devnull "$at_stderr" || at_failed=:
8170 echo >>"$at_stdout"; $as_echo "testdir/
8171 testdir/dir1/
8172 testdir/dir1/*
8173 testdir/dir2/
8174 testdir/dir2/*
8175 testdir/dir2/file2
8176 testdir/dir3/
8177 testdir/dir3/*
8178 NEXT
8179 testdir/*f*1
8180 testdir/dir1/file1
8181 NEXT
8182 testdir/*f*1
8183 NEXT
8184 testdir/*f*1
8185 testdir/dir1/file1
8186 " | \
8187   $at_diff - "$at_stdout" || at_failed=:
8188 at_func_check_status 0 $at_status "$at_srcdir/exclude03.at:20"
8189
8190 $at_failed && at_func_log_failure
8191 $at_traceon; }
8192
8193               { $at_traceoff
8194 $as_echo "$at_srcdir/exclude03.at:20:
8195 mkdir gnu
8196 (cd gnu
8197 TEST_TAR_FORMAT=gnu
8198 export TEST_TAR_FORMAT
8199 TAR_OPTIONS=\"-H gnu\"
8200 export TAR_OPTIONS
8201 rm -rf *
8202
8203
8204 test -z "`sort < /dev/null 2>&1`" || exit 77
8205
8206
8207 rm -rf testdir
8208 mkdir -p testdir/dir1 testdir/dir2 testdir/dir3
8209 touch testdir/\\*f\\*1
8210 touch testdir/dir1/file1
8211 touch testdir/dir1/\\*
8212 touch testdir/dir2/file2
8213 touch testdir/dir2/\\*
8214 touch testdir/dir3/file3
8215 touch testdir/dir3/\\*
8216
8217 tar cf archive --exclude='testdir*f*1' \\
8218                --no-wildcards-match-slash \\
8219                --exclude='testdir*f*2' \\
8220                --wildcards-match-slash \\
8221                --exclude='testdir*f*3' \\
8222                testdir
8223 tar tf archive | sort
8224
8225 echo \"NEXT\"
8226 tar cf archive testdir
8227 tar t --wildcards 'testdir/*f*1' -f archive | sort
8228
8229 echo \"NEXT\"
8230 tar t --wildcards --no-wildcards-match-slash 'testdir/*f*1' -f archive | sort
8231
8232 echo \"NEXT\"
8233 tar t --wildcards --wildcards-match-slash 'testdir/*f*1' -f archive | sort
8234
8235 rm -rf testdir
8236
8237 )"
8238 echo exclude03.at:20 >"$at_check_line_file"
8239
8240 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
8241    false; }; then
8242   ( $at_traceon;
8243 mkdir gnu
8244 (cd gnu
8245 TEST_TAR_FORMAT=gnu
8246 export TEST_TAR_FORMAT
8247 TAR_OPTIONS="-H gnu"
8248 export TAR_OPTIONS
8249 rm -rf *
8250
8251
8252 test -z "`sort < /dev/null 2>&1`" || exit 77
8253
8254
8255 rm -rf testdir
8256 mkdir -p testdir/dir1 testdir/dir2 testdir/dir3
8257 touch testdir/\*f\*1
8258 touch testdir/dir1/file1
8259 touch testdir/dir1/\*
8260 touch testdir/dir2/file2
8261 touch testdir/dir2/\*
8262 touch testdir/dir3/file3
8263 touch testdir/dir3/\*
8264
8265 tar cf archive --exclude='testdir*f*1' \
8266                --no-wildcards-match-slash \
8267                --exclude='testdir*f*2' \
8268                --wildcards-match-slash \
8269                --exclude='testdir*f*3' \
8270                testdir
8271 tar tf archive | sort
8272
8273 echo "NEXT"
8274 tar cf archive testdir
8275 tar t --wildcards 'testdir/*f*1' -f archive | sort
8276
8277 echo "NEXT"
8278 tar t --wildcards --no-wildcards-match-slash 'testdir/*f*1' -f archive | sort
8279
8280 echo "NEXT"
8281 tar t --wildcards --wildcards-match-slash 'testdir/*f*1' -f archive | sort
8282
8283 rm -rf testdir
8284
8285 ) ) >"$at_stdout" 2>"$at_stder1"
8286   at_func_filter_trace $?
8287 else
8288   ( :;
8289 mkdir gnu
8290 (cd gnu
8291 TEST_TAR_FORMAT=gnu
8292 export TEST_TAR_FORMAT
8293 TAR_OPTIONS="-H gnu"
8294 export TAR_OPTIONS
8295 rm -rf *
8296
8297
8298 test -z "`sort < /dev/null 2>&1`" || exit 77
8299
8300
8301 rm -rf testdir
8302 mkdir -p testdir/dir1 testdir/dir2 testdir/dir3
8303 touch testdir/\*f\*1
8304 touch testdir/dir1/file1
8305 touch testdir/dir1/\*
8306 touch testdir/dir2/file2
8307 touch testdir/dir2/\*
8308 touch testdir/dir3/file3
8309 touch testdir/dir3/\*
8310
8311 tar cf archive --exclude='testdir*f*1' \
8312                --no-wildcards-match-slash \
8313                --exclude='testdir*f*2' \
8314                --wildcards-match-slash \
8315                --exclude='testdir*f*3' \
8316                testdir
8317 tar tf archive | sort
8318
8319 echo "NEXT"
8320 tar cf archive testdir
8321 tar t --wildcards 'testdir/*f*1' -f archive | sort
8322
8323 echo "NEXT"
8324 tar t --wildcards --no-wildcards-match-slash 'testdir/*f*1' -f archive | sort
8325
8326 echo "NEXT"
8327 tar t --wildcards --wildcards-match-slash 'testdir/*f*1' -f archive | sort
8328
8329 rm -rf testdir
8330
8331 ) ) >"$at_stdout" 2>"$at_stderr"
8332 fi
8333 at_status=$?
8334 at_failed=false
8335 at_func_diff_devnull "$at_stderr" || at_failed=:
8336 echo >>"$at_stdout"; $as_echo "testdir/
8337 testdir/dir1/
8338 testdir/dir1/*
8339 testdir/dir2/
8340 testdir/dir2/*
8341 testdir/dir2/file2
8342 testdir/dir3/
8343 testdir/dir3/*
8344 NEXT
8345 testdir/*f*1
8346 testdir/dir1/file1
8347 NEXT
8348 testdir/*f*1
8349 NEXT
8350 testdir/*f*1
8351 testdir/dir1/file1
8352 " | \
8353   $at_diff - "$at_stdout" || at_failed=:
8354 at_func_check_status 0 $at_status "$at_srcdir/exclude03.at:20"
8355
8356 $at_failed && at_func_log_failure
8357 $at_traceon; }
8358
8359
8360
8361
8362   $at_traceoff
8363   $at_times_p && times >"$at_times_file"
8364 ) 5>&1 2>&1 | eval $at_tee_pipe
8365 at_status=`cat "$at_status_file"`
8366 #AT_STOP_17
8367 #AT_START_18
8368 # 18. exclude04.at:17: exclude: case insensitive
8369 at_setup_line='exclude04.at:17'
8370 at_desc="exclude: case insensitive"
8371 $at_quiet $as_echo_n " 18: $at_desc                      "
8372 at_xfail=no
8373       test -f $XFAILFILE && at_xfail=yes
8374 echo "#                             -*- compilation -*-" >> "$at_group_log"
8375 (
8376   $as_echo "18. exclude04.at:17: testing ..."
8377   $at_traceon
8378
8379
8380
8381
8382
8383   { $at_traceoff
8384 $as_echo "$at_srcdir/exclude04.at:20:
8385 mkdir v7
8386 (cd v7
8387 TEST_TAR_FORMAT=v7
8388 export TEST_TAR_FORMAT
8389 TAR_OPTIONS=\"-H v7\"
8390 export TAR_OPTIONS
8391 rm -rf *
8392
8393
8394 test -z "`sort < /dev/null 2>&1`" || exit 77
8395
8396
8397 rm -rf testdir
8398 mkdir -p testdir/dir
8399 touch testdir/file1
8400 touch testdir/file2
8401 touch testdir/file3
8402 touch testdir/file4
8403 touch testdir/dir/File1
8404 touch testdir/dir/File2
8405 touch testdir/dir/File3
8406 touch testdir/dir/File4
8407
8408 tar cf archive --exclude=FILE2 \\
8409                --exclude=file1 \\
8410                --ignore-case \\
8411                --exclude=file3 \\
8412                --no-ignore-case \\
8413                --exclude=FILE2 \\
8414                --exclude=file4 \\
8415                testdir
8416 tar tf archive | sort
8417
8418 echo \"SUB 1\"
8419 tar cf archive testdir
8420 tar t --wildcards --wildcards-match-slash '*File2' -f archive | sort
8421
8422 echo \"SUB 2\"
8423 tar t --wildcards --wildcards-match-slash --ignore-case '*File2' -f archive | sort
8424
8425 echo \"SUB 3\"
8426 tar t --wildcards --wildcards-match-slash --no-ignore-case '*File2' -f archive | sort
8427
8428 rm -rf testdir
8429
8430 )"
8431 echo exclude04.at:20 >"$at_check_line_file"
8432
8433 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
8434    false; }; then
8435   ( $at_traceon;
8436 mkdir v7
8437 (cd v7
8438 TEST_TAR_FORMAT=v7
8439 export TEST_TAR_FORMAT
8440 TAR_OPTIONS="-H v7"
8441 export TAR_OPTIONS
8442 rm -rf *
8443
8444
8445 test -z "`sort < /dev/null 2>&1`" || exit 77
8446
8447
8448 rm -rf testdir
8449 mkdir -p testdir/dir
8450 touch testdir/file1
8451 touch testdir/file2
8452 touch testdir/file3
8453 touch testdir/file4
8454 touch testdir/dir/File1
8455 touch testdir/dir/File2
8456 touch testdir/dir/File3
8457 touch testdir/dir/File4
8458
8459 tar cf archive --exclude=FILE2 \
8460                --exclude=file1 \
8461                --ignore-case \
8462                --exclude=file3 \
8463                --no-ignore-case \
8464                --exclude=FILE2 \
8465                --exclude=file4 \
8466                testdir
8467 tar tf archive | sort
8468
8469 echo "SUB 1"
8470 tar cf archive testdir
8471 tar t --wildcards --wildcards-match-slash '*File2' -f archive | sort
8472
8473 echo "SUB 2"
8474 tar t --wildcards --wildcards-match-slash --ignore-case '*File2' -f archive | sort
8475
8476 echo "SUB 3"
8477 tar t --wildcards --wildcards-match-slash --no-ignore-case '*File2' -f archive | sort
8478
8479 rm -rf testdir
8480
8481 ) ) >"$at_stdout" 2>"$at_stder1"
8482   at_func_filter_trace $?
8483 else
8484   ( :;
8485 mkdir v7
8486 (cd v7
8487 TEST_TAR_FORMAT=v7
8488 export TEST_TAR_FORMAT
8489 TAR_OPTIONS="-H v7"
8490 export TAR_OPTIONS
8491 rm -rf *
8492
8493
8494 test -z "`sort < /dev/null 2>&1`" || exit 77
8495
8496
8497 rm -rf testdir
8498 mkdir -p testdir/dir
8499 touch testdir/file1
8500 touch testdir/file2
8501 touch testdir/file3
8502 touch testdir/file4
8503 touch testdir/dir/File1
8504 touch testdir/dir/File2
8505 touch testdir/dir/File3
8506 touch testdir/dir/File4
8507
8508 tar cf archive --exclude=FILE2 \
8509                --exclude=file1 \
8510                --ignore-case \
8511                --exclude=file3 \
8512                --no-ignore-case \
8513                --exclude=FILE2 \
8514                --exclude=file4 \
8515                testdir
8516 tar tf archive | sort
8517
8518 echo "SUB 1"
8519 tar cf archive testdir
8520 tar t --wildcards --wildcards-match-slash '*File2' -f archive | sort
8521
8522 echo "SUB 2"
8523 tar t --wildcards --wildcards-match-slash --ignore-case '*File2' -f archive | sort
8524
8525 echo "SUB 3"
8526 tar t --wildcards --wildcards-match-slash --no-ignore-case '*File2' -f archive | sort
8527
8528 rm -rf testdir
8529
8530 ) ) >"$at_stdout" 2>"$at_stderr"
8531 fi
8532 at_status=$?
8533 at_failed=false
8534 at_func_diff_devnull "$at_stderr" || at_failed=:
8535 echo >>"$at_stdout"; $as_echo "testdir/
8536 testdir/dir/
8537 testdir/dir/File1
8538 testdir/dir/File2
8539 testdir/dir/File4
8540 testdir/file2
8541 SUB 1
8542 testdir/dir/File2
8543 SUB 2
8544 testdir/dir/File2
8545 testdir/file2
8546 SUB 3
8547 testdir/dir/File2
8548 " | \
8549   $at_diff - "$at_stdout" || at_failed=:
8550 at_func_check_status 0 $at_status "$at_srcdir/exclude04.at:20"
8551
8552 $at_failed && at_func_log_failure
8553 $at_traceon; }
8554
8555               { $at_traceoff
8556 $as_echo "$at_srcdir/exclude04.at:20:
8557 mkdir oldgnu
8558 (cd oldgnu
8559 TEST_TAR_FORMAT=oldgnu
8560 export TEST_TAR_FORMAT
8561 TAR_OPTIONS=\"-H oldgnu\"
8562 export TAR_OPTIONS
8563 rm -rf *
8564
8565
8566 test -z "`sort < /dev/null 2>&1`" || exit 77
8567
8568
8569 rm -rf testdir
8570 mkdir -p testdir/dir
8571 touch testdir/file1
8572 touch testdir/file2
8573 touch testdir/file3
8574 touch testdir/file4
8575 touch testdir/dir/File1
8576 touch testdir/dir/File2
8577 touch testdir/dir/File3
8578 touch testdir/dir/File4
8579
8580 tar cf archive --exclude=FILE2 \\
8581                --exclude=file1 \\
8582                --ignore-case \\
8583                --exclude=file3 \\
8584                --no-ignore-case \\
8585                --exclude=FILE2 \\
8586                --exclude=file4 \\
8587                testdir
8588 tar tf archive | sort
8589
8590 echo \"SUB 1\"
8591 tar cf archive testdir
8592 tar t --wildcards --wildcards-match-slash '*File2' -f archive | sort
8593
8594 echo \"SUB 2\"
8595 tar t --wildcards --wildcards-match-slash --ignore-case '*File2' -f archive | sort
8596
8597 echo \"SUB 3\"
8598 tar t --wildcards --wildcards-match-slash --no-ignore-case '*File2' -f archive | sort
8599
8600 rm -rf testdir
8601
8602 )"
8603 echo exclude04.at:20 >"$at_check_line_file"
8604
8605 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
8606    false; }; then
8607   ( $at_traceon;
8608 mkdir oldgnu
8609 (cd oldgnu
8610 TEST_TAR_FORMAT=oldgnu
8611 export TEST_TAR_FORMAT
8612 TAR_OPTIONS="-H oldgnu"
8613 export TAR_OPTIONS
8614 rm -rf *
8615
8616
8617 test -z "`sort < /dev/null 2>&1`" || exit 77
8618
8619
8620 rm -rf testdir
8621 mkdir -p testdir/dir
8622 touch testdir/file1
8623 touch testdir/file2
8624 touch testdir/file3
8625 touch testdir/file4
8626 touch testdir/dir/File1
8627 touch testdir/dir/File2
8628 touch testdir/dir/File3
8629 touch testdir/dir/File4
8630
8631 tar cf archive --exclude=FILE2 \
8632                --exclude=file1 \
8633                --ignore-case \
8634                --exclude=file3 \
8635                --no-ignore-case \
8636                --exclude=FILE2 \
8637                --exclude=file4 \
8638                testdir
8639 tar tf archive | sort
8640
8641 echo "SUB 1"
8642 tar cf archive testdir
8643 tar t --wildcards --wildcards-match-slash '*File2' -f archive | sort
8644
8645 echo "SUB 2"
8646 tar t --wildcards --wildcards-match-slash --ignore-case '*File2' -f archive | sort
8647
8648 echo "SUB 3"
8649 tar t --wildcards --wildcards-match-slash --no-ignore-case '*File2' -f archive | sort
8650
8651 rm -rf testdir
8652
8653 ) ) >"$at_stdout" 2>"$at_stder1"
8654   at_func_filter_trace $?
8655 else
8656   ( :;
8657 mkdir oldgnu
8658 (cd oldgnu
8659 TEST_TAR_FORMAT=oldgnu
8660 export TEST_TAR_FORMAT
8661 TAR_OPTIONS="-H oldgnu"
8662 export TAR_OPTIONS
8663 rm -rf *
8664
8665
8666 test -z "`sort < /dev/null 2>&1`" || exit 77
8667
8668
8669 rm -rf testdir
8670 mkdir -p testdir/dir
8671 touch testdir/file1
8672 touch testdir/file2
8673 touch testdir/file3
8674 touch testdir/file4
8675 touch testdir/dir/File1
8676 touch testdir/dir/File2
8677 touch testdir/dir/File3
8678 touch testdir/dir/File4
8679
8680 tar cf archive --exclude=FILE2 \
8681                --exclude=file1 \
8682                --ignore-case \
8683                --exclude=file3 \
8684                --no-ignore-case \
8685                --exclude=FILE2 \
8686                --exclude=file4 \
8687                testdir
8688 tar tf archive | sort
8689
8690 echo "SUB 1"
8691 tar cf archive testdir
8692 tar t --wildcards --wildcards-match-slash '*File2' -f archive | sort
8693
8694 echo "SUB 2"
8695 tar t --wildcards --wildcards-match-slash --ignore-case '*File2' -f archive | sort
8696
8697 echo "SUB 3"
8698 tar t --wildcards --wildcards-match-slash --no-ignore-case '*File2' -f archive | sort
8699
8700 rm -rf testdir
8701
8702 ) ) >"$at_stdout" 2>"$at_stderr"
8703 fi
8704 at_status=$?
8705 at_failed=false
8706 at_func_diff_devnull "$at_stderr" || at_failed=:
8707 echo >>"$at_stdout"; $as_echo "testdir/
8708 testdir/dir/
8709 testdir/dir/File1
8710 testdir/dir/File2
8711 testdir/dir/File4
8712 testdir/file2
8713 SUB 1
8714 testdir/dir/File2
8715 SUB 2
8716 testdir/dir/File2
8717 testdir/file2
8718 SUB 3
8719 testdir/dir/File2
8720 " | \
8721   $at_diff - "$at_stdout" || at_failed=:
8722 at_func_check_status 0 $at_status "$at_srcdir/exclude04.at:20"
8723
8724 $at_failed && at_func_log_failure
8725 $at_traceon; }
8726
8727               { $at_traceoff
8728 $as_echo "$at_srcdir/exclude04.at:20:
8729 mkdir ustar
8730 (cd ustar
8731 TEST_TAR_FORMAT=ustar
8732 export TEST_TAR_FORMAT
8733 TAR_OPTIONS=\"-H ustar\"
8734 export TAR_OPTIONS
8735 rm -rf *
8736
8737
8738 test -z "`sort < /dev/null 2>&1`" || exit 77
8739
8740
8741 rm -rf testdir
8742 mkdir -p testdir/dir
8743 touch testdir/file1
8744 touch testdir/file2
8745 touch testdir/file3
8746 touch testdir/file4
8747 touch testdir/dir/File1
8748 touch testdir/dir/File2
8749 touch testdir/dir/File3
8750 touch testdir/dir/File4
8751
8752 tar cf archive --exclude=FILE2 \\
8753                --exclude=file1 \\
8754                --ignore-case \\
8755                --exclude=file3 \\
8756                --no-ignore-case \\
8757                --exclude=FILE2 \\
8758                --exclude=file4 \\
8759                testdir
8760 tar tf archive | sort
8761
8762 echo \"SUB 1\"
8763 tar cf archive testdir
8764 tar t --wildcards --wildcards-match-slash '*File2' -f archive | sort
8765
8766 echo \"SUB 2\"
8767 tar t --wildcards --wildcards-match-slash --ignore-case '*File2' -f archive | sort
8768
8769 echo \"SUB 3\"
8770 tar t --wildcards --wildcards-match-slash --no-ignore-case '*File2' -f archive | sort
8771
8772 rm -rf testdir
8773
8774 )"
8775 echo exclude04.at:20 >"$at_check_line_file"
8776
8777 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
8778    false; }; then
8779   ( $at_traceon;
8780 mkdir ustar
8781 (cd ustar
8782 TEST_TAR_FORMAT=ustar
8783 export TEST_TAR_FORMAT
8784 TAR_OPTIONS="-H ustar"
8785 export TAR_OPTIONS
8786 rm -rf *
8787
8788
8789 test -z "`sort < /dev/null 2>&1`" || exit 77
8790
8791
8792 rm -rf testdir
8793 mkdir -p testdir/dir
8794 touch testdir/file1
8795 touch testdir/file2
8796 touch testdir/file3
8797 touch testdir/file4
8798 touch testdir/dir/File1
8799 touch testdir/dir/File2
8800 touch testdir/dir/File3
8801 touch testdir/dir/File4
8802
8803 tar cf archive --exclude=FILE2 \
8804                --exclude=file1 \
8805                --ignore-case \
8806                --exclude=file3 \
8807                --no-ignore-case \
8808                --exclude=FILE2 \
8809                --exclude=file4 \
8810                testdir
8811 tar tf archive | sort
8812
8813 echo "SUB 1"
8814 tar cf archive testdir
8815 tar t --wildcards --wildcards-match-slash '*File2' -f archive | sort
8816
8817 echo "SUB 2"
8818 tar t --wildcards --wildcards-match-slash --ignore-case '*File2' -f archive | sort
8819
8820 echo "SUB 3"
8821 tar t --wildcards --wildcards-match-slash --no-ignore-case '*File2' -f archive | sort
8822
8823 rm -rf testdir
8824
8825 ) ) >"$at_stdout" 2>"$at_stder1"
8826   at_func_filter_trace $?
8827 else
8828   ( :;
8829 mkdir ustar
8830 (cd ustar
8831 TEST_TAR_FORMAT=ustar
8832 export TEST_TAR_FORMAT
8833 TAR_OPTIONS="-H ustar"
8834 export TAR_OPTIONS
8835 rm -rf *
8836
8837
8838 test -z "`sort < /dev/null 2>&1`" || exit 77
8839
8840
8841 rm -rf testdir
8842 mkdir -p testdir/dir
8843 touch testdir/file1
8844 touch testdir/file2
8845 touch testdir/file3
8846 touch testdir/file4
8847 touch testdir/dir/File1
8848 touch testdir/dir/File2
8849 touch testdir/dir/File3
8850 touch testdir/dir/File4
8851
8852 tar cf archive --exclude=FILE2 \
8853                --exclude=file1 \
8854                --ignore-case \
8855                --exclude=file3 \
8856                --no-ignore-case \
8857                --exclude=FILE2 \
8858                --exclude=file4 \
8859                testdir
8860 tar tf archive | sort
8861
8862 echo "SUB 1"
8863 tar cf archive testdir
8864 tar t --wildcards --wildcards-match-slash '*File2' -f archive | sort
8865
8866 echo "SUB 2"
8867 tar t --wildcards --wildcards-match-slash --ignore-case '*File2' -f archive | sort
8868
8869 echo "SUB 3"
8870 tar t --wildcards --wildcards-match-slash --no-ignore-case '*File2' -f archive | sort
8871
8872 rm -rf testdir
8873
8874 ) ) >"$at_stdout" 2>"$at_stderr"
8875 fi
8876 at_status=$?
8877 at_failed=false
8878 at_func_diff_devnull "$at_stderr" || at_failed=:
8879 echo >>"$at_stdout"; $as_echo "testdir/
8880 testdir/dir/
8881 testdir/dir/File1
8882 testdir/dir/File2
8883 testdir/dir/File4
8884 testdir/file2
8885 SUB 1
8886 testdir/dir/File2
8887 SUB 2
8888 testdir/dir/File2
8889 testdir/file2
8890 SUB 3
8891 testdir/dir/File2
8892 " | \
8893   $at_diff - "$at_stdout" || at_failed=:
8894 at_func_check_status 0 $at_status "$at_srcdir/exclude04.at:20"
8895
8896 $at_failed && at_func_log_failure
8897 $at_traceon; }
8898
8899               { $at_traceoff
8900 $as_echo "$at_srcdir/exclude04.at:20:
8901 mkdir posix
8902 (cd posix
8903 TEST_TAR_FORMAT=posix
8904 export TEST_TAR_FORMAT
8905 TAR_OPTIONS=\"-H posix\"
8906 export TAR_OPTIONS
8907 rm -rf *
8908
8909
8910 test -z "`sort < /dev/null 2>&1`" || exit 77
8911
8912
8913 rm -rf testdir
8914 mkdir -p testdir/dir
8915 touch testdir/file1
8916 touch testdir/file2
8917 touch testdir/file3
8918 touch testdir/file4
8919 touch testdir/dir/File1
8920 touch testdir/dir/File2
8921 touch testdir/dir/File3
8922 touch testdir/dir/File4
8923
8924 tar cf archive --exclude=FILE2 \\
8925                --exclude=file1 \\
8926                --ignore-case \\
8927                --exclude=file3 \\
8928                --no-ignore-case \\
8929                --exclude=FILE2 \\
8930                --exclude=file4 \\
8931                testdir
8932 tar tf archive | sort
8933
8934 echo \"SUB 1\"
8935 tar cf archive testdir
8936 tar t --wildcards --wildcards-match-slash '*File2' -f archive | sort
8937
8938 echo \"SUB 2\"
8939 tar t --wildcards --wildcards-match-slash --ignore-case '*File2' -f archive | sort
8940
8941 echo \"SUB 3\"
8942 tar t --wildcards --wildcards-match-slash --no-ignore-case '*File2' -f archive | sort
8943
8944 rm -rf testdir
8945
8946 )"
8947 echo exclude04.at:20 >"$at_check_line_file"
8948
8949 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
8950    false; }; then
8951   ( $at_traceon;
8952 mkdir posix
8953 (cd posix
8954 TEST_TAR_FORMAT=posix
8955 export TEST_TAR_FORMAT
8956 TAR_OPTIONS="-H posix"
8957 export TAR_OPTIONS
8958 rm -rf *
8959
8960
8961 test -z "`sort < /dev/null 2>&1`" || exit 77
8962
8963
8964 rm -rf testdir
8965 mkdir -p testdir/dir
8966 touch testdir/file1
8967 touch testdir/file2
8968 touch testdir/file3
8969 touch testdir/file4
8970 touch testdir/dir/File1
8971 touch testdir/dir/File2
8972 touch testdir/dir/File3
8973 touch testdir/dir/File4
8974
8975 tar cf archive --exclude=FILE2 \
8976                --exclude=file1 \
8977                --ignore-case \
8978                --exclude=file3 \
8979                --no-ignore-case \
8980                --exclude=FILE2 \
8981                --exclude=file4 \
8982                testdir
8983 tar tf archive | sort
8984
8985 echo "SUB 1"
8986 tar cf archive testdir
8987 tar t --wildcards --wildcards-match-slash '*File2' -f archive | sort
8988
8989 echo "SUB 2"
8990 tar t --wildcards --wildcards-match-slash --ignore-case '*File2' -f archive | sort
8991
8992 echo "SUB 3"
8993 tar t --wildcards --wildcards-match-slash --no-ignore-case '*File2' -f archive | sort
8994
8995 rm -rf testdir
8996
8997 ) ) >"$at_stdout" 2>"$at_stder1"
8998   at_func_filter_trace $?
8999 else
9000   ( :;
9001 mkdir posix
9002 (cd posix
9003 TEST_TAR_FORMAT=posix
9004 export TEST_TAR_FORMAT
9005 TAR_OPTIONS="-H posix"
9006 export TAR_OPTIONS
9007 rm -rf *
9008
9009
9010 test -z "`sort < /dev/null 2>&1`" || exit 77
9011
9012
9013 rm -rf testdir
9014 mkdir -p testdir/dir
9015 touch testdir/file1
9016 touch testdir/file2
9017 touch testdir/file3
9018 touch testdir/file4
9019 touch testdir/dir/File1
9020 touch testdir/dir/File2
9021 touch testdir/dir/File3
9022 touch testdir/dir/File4
9023
9024 tar cf archive --exclude=FILE2 \
9025                --exclude=file1 \
9026                --ignore-case \
9027                --exclude=file3 \
9028                --no-ignore-case \
9029                --exclude=FILE2 \
9030                --exclude=file4 \
9031                testdir
9032 tar tf archive | sort
9033
9034 echo "SUB 1"
9035 tar cf archive testdir
9036 tar t --wildcards --wildcards-match-slash '*File2' -f archive | sort
9037
9038 echo "SUB 2"
9039 tar t --wildcards --wildcards-match-slash --ignore-case '*File2' -f archive | sort
9040
9041 echo "SUB 3"
9042 tar t --wildcards --wildcards-match-slash --no-ignore-case '*File2' -f archive | sort
9043
9044 rm -rf testdir
9045
9046 ) ) >"$at_stdout" 2>"$at_stderr"
9047 fi
9048 at_status=$?
9049 at_failed=false
9050 at_func_diff_devnull "$at_stderr" || at_failed=:
9051 echo >>"$at_stdout"; $as_echo "testdir/
9052 testdir/dir/
9053 testdir/dir/File1
9054 testdir/dir/File2
9055 testdir/dir/File4
9056 testdir/file2
9057 SUB 1
9058 testdir/dir/File2
9059 SUB 2
9060 testdir/dir/File2
9061 testdir/file2
9062 SUB 3
9063 testdir/dir/File2
9064 " | \
9065   $at_diff - "$at_stdout" || at_failed=:
9066 at_func_check_status 0 $at_status "$at_srcdir/exclude04.at:20"
9067
9068 $at_failed && at_func_log_failure
9069 $at_traceon; }
9070
9071               { $at_traceoff
9072 $as_echo "$at_srcdir/exclude04.at:20:
9073 mkdir gnu
9074 (cd gnu
9075 TEST_TAR_FORMAT=gnu
9076 export TEST_TAR_FORMAT
9077 TAR_OPTIONS=\"-H gnu\"
9078 export TAR_OPTIONS
9079 rm -rf *
9080
9081
9082 test -z "`sort < /dev/null 2>&1`" || exit 77
9083
9084
9085 rm -rf testdir
9086 mkdir -p testdir/dir
9087 touch testdir/file1
9088 touch testdir/file2
9089 touch testdir/file3
9090 touch testdir/file4
9091 touch testdir/dir/File1
9092 touch testdir/dir/File2
9093 touch testdir/dir/File3
9094 touch testdir/dir/File4
9095
9096 tar cf archive --exclude=FILE2 \\
9097                --exclude=file1 \\
9098                --ignore-case \\
9099                --exclude=file3 \\
9100                --no-ignore-case \\
9101                --exclude=FILE2 \\
9102                --exclude=file4 \\
9103                testdir
9104 tar tf archive | sort
9105
9106 echo \"SUB 1\"
9107 tar cf archive testdir
9108 tar t --wildcards --wildcards-match-slash '*File2' -f archive | sort
9109
9110 echo \"SUB 2\"
9111 tar t --wildcards --wildcards-match-slash --ignore-case '*File2' -f archive | sort
9112
9113 echo \"SUB 3\"
9114 tar t --wildcards --wildcards-match-slash --no-ignore-case '*File2' -f archive | sort
9115
9116 rm -rf testdir
9117
9118 )"
9119 echo exclude04.at:20 >"$at_check_line_file"
9120
9121 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
9122    false; }; then
9123   ( $at_traceon;
9124 mkdir gnu
9125 (cd gnu
9126 TEST_TAR_FORMAT=gnu
9127 export TEST_TAR_FORMAT
9128 TAR_OPTIONS="-H gnu"
9129 export TAR_OPTIONS
9130 rm -rf *
9131
9132
9133 test -z "`sort < /dev/null 2>&1`" || exit 77
9134
9135
9136 rm -rf testdir
9137 mkdir -p testdir/dir
9138 touch testdir/file1
9139 touch testdir/file2
9140 touch testdir/file3
9141 touch testdir/file4
9142 touch testdir/dir/File1
9143 touch testdir/dir/File2
9144 touch testdir/dir/File3
9145 touch testdir/dir/File4
9146
9147 tar cf archive --exclude=FILE2 \
9148                --exclude=file1 \
9149                --ignore-case \
9150                --exclude=file3 \
9151                --no-ignore-case \
9152                --exclude=FILE2 \
9153                --exclude=file4 \
9154                testdir
9155 tar tf archive | sort
9156
9157 echo "SUB 1"
9158 tar cf archive testdir
9159 tar t --wildcards --wildcards-match-slash '*File2' -f archive | sort
9160
9161 echo "SUB 2"
9162 tar t --wildcards --wildcards-match-slash --ignore-case '*File2' -f archive | sort
9163
9164 echo "SUB 3"
9165 tar t --wildcards --wildcards-match-slash --no-ignore-case '*File2' -f archive | sort
9166
9167 rm -rf testdir
9168
9169 ) ) >"$at_stdout" 2>"$at_stder1"
9170   at_func_filter_trace $?
9171 else
9172   ( :;
9173 mkdir gnu
9174 (cd gnu
9175 TEST_TAR_FORMAT=gnu
9176 export TEST_TAR_FORMAT
9177 TAR_OPTIONS="-H gnu"
9178 export TAR_OPTIONS
9179 rm -rf *
9180
9181
9182 test -z "`sort < /dev/null 2>&1`" || exit 77
9183
9184
9185 rm -rf testdir
9186 mkdir -p testdir/dir
9187 touch testdir/file1
9188 touch testdir/file2
9189 touch testdir/file3
9190 touch testdir/file4
9191 touch testdir/dir/File1
9192 touch testdir/dir/File2
9193 touch testdir/dir/File3
9194 touch testdir/dir/File4
9195
9196 tar cf archive --exclude=FILE2 \
9197                --exclude=file1 \
9198                --ignore-case \
9199                --exclude=file3 \
9200                --no-ignore-case \
9201                --exclude=FILE2 \
9202                --exclude=file4 \
9203                testdir
9204 tar tf archive | sort
9205
9206 echo "SUB 1"
9207 tar cf archive testdir
9208 tar t --wildcards --wildcards-match-slash '*File2' -f archive | sort
9209
9210 echo "SUB 2"
9211 tar t --wildcards --wildcards-match-slash --ignore-case '*File2' -f archive | sort
9212
9213 echo "SUB 3"
9214 tar t --wildcards --wildcards-match-slash --no-ignore-case '*File2' -f archive | sort
9215
9216 rm -rf testdir
9217
9218 ) ) >"$at_stdout" 2>"$at_stderr"
9219 fi
9220 at_status=$?
9221 at_failed=false
9222 at_func_diff_devnull "$at_stderr" || at_failed=:
9223 echo >>"$at_stdout"; $as_echo "testdir/
9224 testdir/dir/
9225 testdir/dir/File1
9226 testdir/dir/File2
9227 testdir/dir/File4
9228 testdir/file2
9229 SUB 1
9230 testdir/dir/File2
9231 SUB 2
9232 testdir/dir/File2
9233 testdir/file2
9234 SUB 3
9235 testdir/dir/File2
9236 " | \
9237   $at_diff - "$at_stdout" || at_failed=:
9238 at_func_check_status 0 $at_status "$at_srcdir/exclude04.at:20"
9239
9240 $at_failed && at_func_log_failure
9241 $at_traceon; }
9242
9243
9244
9245
9246   $at_traceoff
9247   $at_times_p && times >"$at_times_file"
9248 ) 5>&1 2>&1 | eval $at_tee_pipe
9249 at_status=`cat "$at_status_file"`
9250 #AT_STOP_18
9251 #AT_START_19
9252 # 19. exclude05.at:19: exclude: lots of excludes
9253 at_setup_line='exclude05.at:19'
9254 at_desc="exclude: lots of excludes"
9255 $at_quiet $as_echo_n " 19: $at_desc                      "
9256 at_xfail=no
9257       test -f $XFAILFILE && at_xfail=yes
9258 echo "#                             -*- compilation -*-" >> "$at_group_log"
9259 (
9260   $as_echo "19. exclude05.at:19: testing ..."
9261   $at_traceon
9262
9263
9264
9265
9266
9267   { $at_traceoff
9268 $as_echo "$at_srcdir/exclude05.at:22:
9269 mkdir v7
9270 (cd v7
9271 TEST_TAR_FORMAT=v7
9272 export TEST_TAR_FORMAT
9273 TAR_OPTIONS=\"-H v7\"
9274 export TAR_OPTIONS
9275 rm -rf *
9276
9277
9278 test -z "`sort < /dev/null 2>&1`" || exit 77
9279
9280
9281 rm -rf testdir exclfile
9282 mkdir -p testdir
9283 awk 'BEGIN {for (i=9; i < 100; ++i ) { print \"testdir/file\" i; }}' < /dev/null | \\
9284  while read name
9285  do
9286    genfile --file \$name
9287  done
9288
9289 awk 'BEGIN {for (i=1000000; i >= 12; --i ) { print \"testdir/file\" i }}' < /dev/null > exclfile
9290
9291 tar cf archive --anchored --exclude-from=exclfile \\
9292                testdir
9293 tar tf archive | sort
9294
9295 echo \"NEXT\"
9296 tar cf archive --exclude-from=exclfile \\
9297                testdir
9298 tar tf archive | sort
9299
9300 rm -rf testdir exclfile
9301
9302 )"
9303 echo exclude05.at:22 >"$at_check_line_file"
9304
9305 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
9306    false; }; then
9307   ( $at_traceon;
9308 mkdir v7
9309 (cd v7
9310 TEST_TAR_FORMAT=v7
9311 export TEST_TAR_FORMAT
9312 TAR_OPTIONS="-H v7"
9313 export TAR_OPTIONS
9314 rm -rf *
9315
9316
9317 test -z "`sort < /dev/null 2>&1`" || exit 77
9318
9319
9320 rm -rf testdir exclfile
9321 mkdir -p testdir
9322 awk 'BEGIN {for (i=9; i < 100; ++i ) { print "testdir/file" i; }}' < /dev/null | \
9323  while read name
9324  do
9325    genfile --file $name
9326  done
9327
9328 awk 'BEGIN {for (i=1000000; i >= 12; --i ) { print "testdir/file" i }}' < /dev/null > exclfile
9329
9330 tar cf archive --anchored --exclude-from=exclfile \
9331                testdir
9332 tar tf archive | sort
9333
9334 echo "NEXT"
9335 tar cf archive --exclude-from=exclfile \
9336                testdir
9337 tar tf archive | sort
9338
9339 rm -rf testdir exclfile
9340
9341 ) ) >"$at_stdout" 2>"$at_stder1"
9342   at_func_filter_trace $?
9343 else
9344   ( :;
9345 mkdir v7
9346 (cd v7
9347 TEST_TAR_FORMAT=v7
9348 export TEST_TAR_FORMAT
9349 TAR_OPTIONS="-H v7"
9350 export TAR_OPTIONS
9351 rm -rf *
9352
9353
9354 test -z "`sort < /dev/null 2>&1`" || exit 77
9355
9356
9357 rm -rf testdir exclfile
9358 mkdir -p testdir
9359 awk 'BEGIN {for (i=9; i < 100; ++i ) { print "testdir/file" i; }}' < /dev/null | \
9360  while read name
9361  do
9362    genfile --file $name
9363  done
9364
9365 awk 'BEGIN {for (i=1000000; i >= 12; --i ) { print "testdir/file" i }}' < /dev/null > exclfile
9366
9367 tar cf archive --anchored --exclude-from=exclfile \
9368                testdir
9369 tar tf archive | sort
9370
9371 echo "NEXT"
9372 tar cf archive --exclude-from=exclfile \
9373                testdir
9374 tar tf archive | sort
9375
9376 rm -rf testdir exclfile
9377
9378 ) ) >"$at_stdout" 2>"$at_stderr"
9379 fi
9380 at_status=$?
9381 at_failed=false
9382 at_func_diff_devnull "$at_stderr" || at_failed=:
9383 echo >>"$at_stdout"; $as_echo "testdir/
9384 testdir/file10
9385 testdir/file11
9386 testdir/file9
9387 NEXT
9388 testdir/
9389 testdir/file10
9390 testdir/file11
9391 testdir/file9
9392 " | \
9393   $at_diff - "$at_stdout" || at_failed=:
9394 at_func_check_status 0 $at_status "$at_srcdir/exclude05.at:22"
9395
9396 $at_failed && at_func_log_failure
9397 $at_traceon; }
9398
9399               { $at_traceoff
9400 $as_echo "$at_srcdir/exclude05.at:22:
9401 mkdir oldgnu
9402 (cd oldgnu
9403 TEST_TAR_FORMAT=oldgnu
9404 export TEST_TAR_FORMAT
9405 TAR_OPTIONS=\"-H oldgnu\"
9406 export TAR_OPTIONS
9407 rm -rf *
9408
9409
9410 test -z "`sort < /dev/null 2>&1`" || exit 77
9411
9412
9413 rm -rf testdir exclfile
9414 mkdir -p testdir
9415 awk 'BEGIN {for (i=9; i < 100; ++i ) { print \"testdir/file\" i; }}' < /dev/null | \\
9416  while read name
9417  do
9418    genfile --file \$name
9419  done
9420
9421 awk 'BEGIN {for (i=1000000; i >= 12; --i ) { print \"testdir/file\" i }}' < /dev/null > exclfile
9422
9423 tar cf archive --anchored --exclude-from=exclfile \\
9424                testdir
9425 tar tf archive | sort
9426
9427 echo \"NEXT\"
9428 tar cf archive --exclude-from=exclfile \\
9429                testdir
9430 tar tf archive | sort
9431
9432 rm -rf testdir exclfile
9433
9434 )"
9435 echo exclude05.at:22 >"$at_check_line_file"
9436
9437 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
9438    false; }; then
9439   ( $at_traceon;
9440 mkdir oldgnu
9441 (cd oldgnu
9442 TEST_TAR_FORMAT=oldgnu
9443 export TEST_TAR_FORMAT
9444 TAR_OPTIONS="-H oldgnu"
9445 export TAR_OPTIONS
9446 rm -rf *
9447
9448
9449 test -z "`sort < /dev/null 2>&1`" || exit 77
9450
9451
9452 rm -rf testdir exclfile
9453 mkdir -p testdir
9454 awk 'BEGIN {for (i=9; i < 100; ++i ) { print "testdir/file" i; }}' < /dev/null | \
9455  while read name
9456  do
9457    genfile --file $name
9458  done
9459
9460 awk 'BEGIN {for (i=1000000; i >= 12; --i ) { print "testdir/file" i }}' < /dev/null > exclfile
9461
9462 tar cf archive --anchored --exclude-from=exclfile \
9463                testdir
9464 tar tf archive | sort
9465
9466 echo "NEXT"
9467 tar cf archive --exclude-from=exclfile \
9468                testdir
9469 tar tf archive | sort
9470
9471 rm -rf testdir exclfile
9472
9473 ) ) >"$at_stdout" 2>"$at_stder1"
9474   at_func_filter_trace $?
9475 else
9476   ( :;
9477 mkdir oldgnu
9478 (cd oldgnu
9479 TEST_TAR_FORMAT=oldgnu
9480 export TEST_TAR_FORMAT
9481 TAR_OPTIONS="-H oldgnu"
9482 export TAR_OPTIONS
9483 rm -rf *
9484
9485
9486 test -z "`sort < /dev/null 2>&1`" || exit 77
9487
9488
9489 rm -rf testdir exclfile
9490 mkdir -p testdir
9491 awk 'BEGIN {for (i=9; i < 100; ++i ) { print "testdir/file" i; }}' < /dev/null | \
9492  while read name
9493  do
9494    genfile --file $name
9495  done
9496
9497 awk 'BEGIN {for (i=1000000; i >= 12; --i ) { print "testdir/file" i }}' < /dev/null > exclfile
9498
9499 tar cf archive --anchored --exclude-from=exclfile \
9500                testdir
9501 tar tf archive | sort
9502
9503 echo "NEXT"
9504 tar cf archive --exclude-from=exclfile \
9505                testdir
9506 tar tf archive | sort
9507
9508 rm -rf testdir exclfile
9509
9510 ) ) >"$at_stdout" 2>"$at_stderr"
9511 fi
9512 at_status=$?
9513 at_failed=false
9514 at_func_diff_devnull "$at_stderr" || at_failed=:
9515 echo >>"$at_stdout"; $as_echo "testdir/
9516 testdir/file10
9517 testdir/file11
9518 testdir/file9
9519 NEXT
9520 testdir/
9521 testdir/file10
9522 testdir/file11
9523 testdir/file9
9524 " | \
9525   $at_diff - "$at_stdout" || at_failed=:
9526 at_func_check_status 0 $at_status "$at_srcdir/exclude05.at:22"
9527
9528 $at_failed && at_func_log_failure
9529 $at_traceon; }
9530
9531               { $at_traceoff
9532 $as_echo "$at_srcdir/exclude05.at:22:
9533 mkdir ustar
9534 (cd ustar
9535 TEST_TAR_FORMAT=ustar
9536 export TEST_TAR_FORMAT
9537 TAR_OPTIONS=\"-H ustar\"
9538 export TAR_OPTIONS
9539 rm -rf *
9540
9541
9542 test -z "`sort < /dev/null 2>&1`" || exit 77
9543
9544
9545 rm -rf testdir exclfile
9546 mkdir -p testdir
9547 awk 'BEGIN {for (i=9; i < 100; ++i ) { print \"testdir/file\" i; }}' < /dev/null | \\
9548  while read name
9549  do
9550    genfile --file \$name
9551  done
9552
9553 awk 'BEGIN {for (i=1000000; i >= 12; --i ) { print \"testdir/file\" i }}' < /dev/null > exclfile
9554
9555 tar cf archive --anchored --exclude-from=exclfile \\
9556                testdir
9557 tar tf archive | sort
9558
9559 echo \"NEXT\"
9560 tar cf archive --exclude-from=exclfile \\
9561                testdir
9562 tar tf archive | sort
9563
9564 rm -rf testdir exclfile
9565
9566 )"
9567 echo exclude05.at:22 >"$at_check_line_file"
9568
9569 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
9570    false; }; then
9571   ( $at_traceon;
9572 mkdir ustar
9573 (cd ustar
9574 TEST_TAR_FORMAT=ustar
9575 export TEST_TAR_FORMAT
9576 TAR_OPTIONS="-H ustar"
9577 export TAR_OPTIONS
9578 rm -rf *
9579
9580
9581 test -z "`sort < /dev/null 2>&1`" || exit 77
9582
9583
9584 rm -rf testdir exclfile
9585 mkdir -p testdir
9586 awk 'BEGIN {for (i=9; i < 100; ++i ) { print "testdir/file" i; }}' < /dev/null | \
9587  while read name
9588  do
9589    genfile --file $name
9590  done
9591
9592 awk 'BEGIN {for (i=1000000; i >= 12; --i ) { print "testdir/file" i }}' < /dev/null > exclfile
9593
9594 tar cf archive --anchored --exclude-from=exclfile \
9595                testdir
9596 tar tf archive | sort
9597
9598 echo "NEXT"
9599 tar cf archive --exclude-from=exclfile \
9600                testdir
9601 tar tf archive | sort
9602
9603 rm -rf testdir exclfile
9604
9605 ) ) >"$at_stdout" 2>"$at_stder1"
9606   at_func_filter_trace $?
9607 else
9608   ( :;
9609 mkdir ustar
9610 (cd ustar
9611 TEST_TAR_FORMAT=ustar
9612 export TEST_TAR_FORMAT
9613 TAR_OPTIONS="-H ustar"
9614 export TAR_OPTIONS
9615 rm -rf *
9616
9617
9618 test -z "`sort < /dev/null 2>&1`" || exit 77
9619
9620
9621 rm -rf testdir exclfile
9622 mkdir -p testdir
9623 awk 'BEGIN {for (i=9; i < 100; ++i ) { print "testdir/file" i; }}' < /dev/null | \
9624  while read name
9625  do
9626    genfile --file $name
9627  done
9628
9629 awk 'BEGIN {for (i=1000000; i >= 12; --i ) { print "testdir/file" i }}' < /dev/null > exclfile
9630
9631 tar cf archive --anchored --exclude-from=exclfile \
9632                testdir
9633 tar tf archive | sort
9634
9635 echo "NEXT"
9636 tar cf archive --exclude-from=exclfile \
9637                testdir
9638 tar tf archive | sort
9639
9640 rm -rf testdir exclfile
9641
9642 ) ) >"$at_stdout" 2>"$at_stderr"
9643 fi
9644 at_status=$?
9645 at_failed=false
9646 at_func_diff_devnull "$at_stderr" || at_failed=:
9647 echo >>"$at_stdout"; $as_echo "testdir/
9648 testdir/file10
9649 testdir/file11
9650 testdir/file9
9651 NEXT
9652 testdir/
9653 testdir/file10
9654 testdir/file11
9655 testdir/file9
9656 " | \
9657   $at_diff - "$at_stdout" || at_failed=:
9658 at_func_check_status 0 $at_status "$at_srcdir/exclude05.at:22"
9659
9660 $at_failed && at_func_log_failure
9661 $at_traceon; }
9662
9663               { $at_traceoff
9664 $as_echo "$at_srcdir/exclude05.at:22:
9665 mkdir posix
9666 (cd posix
9667 TEST_TAR_FORMAT=posix
9668 export TEST_TAR_FORMAT
9669 TAR_OPTIONS=\"-H posix\"
9670 export TAR_OPTIONS
9671 rm -rf *
9672
9673
9674 test -z "`sort < /dev/null 2>&1`" || exit 77
9675
9676
9677 rm -rf testdir exclfile
9678 mkdir -p testdir
9679 awk 'BEGIN {for (i=9; i < 100; ++i ) { print \"testdir/file\" i; }}' < /dev/null | \\
9680  while read name
9681  do
9682    genfile --file \$name
9683  done
9684
9685 awk 'BEGIN {for (i=1000000; i >= 12; --i ) { print \"testdir/file\" i }}' < /dev/null > exclfile
9686
9687 tar cf archive --anchored --exclude-from=exclfile \\
9688                testdir
9689 tar tf archive | sort
9690
9691 echo \"NEXT\"
9692 tar cf archive --exclude-from=exclfile \\
9693                testdir
9694 tar tf archive | sort
9695
9696 rm -rf testdir exclfile
9697
9698 )"
9699 echo exclude05.at:22 >"$at_check_line_file"
9700
9701 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
9702    false; }; then
9703   ( $at_traceon;
9704 mkdir posix
9705 (cd posix
9706 TEST_TAR_FORMAT=posix
9707 export TEST_TAR_FORMAT
9708 TAR_OPTIONS="-H posix"
9709 export TAR_OPTIONS
9710 rm -rf *
9711
9712
9713 test -z "`sort < /dev/null 2>&1`" || exit 77
9714
9715
9716 rm -rf testdir exclfile
9717 mkdir -p testdir
9718 awk 'BEGIN {for (i=9; i < 100; ++i ) { print "testdir/file" i; }}' < /dev/null | \
9719  while read name
9720  do
9721    genfile --file $name
9722  done
9723
9724 awk 'BEGIN {for (i=1000000; i >= 12; --i ) { print "testdir/file" i }}' < /dev/null > exclfile
9725
9726 tar cf archive --anchored --exclude-from=exclfile \
9727                testdir
9728 tar tf archive | sort
9729
9730 echo "NEXT"
9731 tar cf archive --exclude-from=exclfile \
9732                testdir
9733 tar tf archive | sort
9734
9735 rm -rf testdir exclfile
9736
9737 ) ) >"$at_stdout" 2>"$at_stder1"
9738   at_func_filter_trace $?
9739 else
9740   ( :;
9741 mkdir posix
9742 (cd posix
9743 TEST_TAR_FORMAT=posix
9744 export TEST_TAR_FORMAT
9745 TAR_OPTIONS="-H posix"
9746 export TAR_OPTIONS
9747 rm -rf *
9748
9749
9750 test -z "`sort < /dev/null 2>&1`" || exit 77
9751
9752
9753 rm -rf testdir exclfile
9754 mkdir -p testdir
9755 awk 'BEGIN {for (i=9; i < 100; ++i ) { print "testdir/file" i; }}' < /dev/null | \
9756  while read name
9757  do
9758    genfile --file $name
9759  done
9760
9761 awk 'BEGIN {for (i=1000000; i >= 12; --i ) { print "testdir/file" i }}' < /dev/null > exclfile
9762
9763 tar cf archive --anchored --exclude-from=exclfile \
9764                testdir
9765 tar tf archive | sort
9766
9767 echo "NEXT"
9768 tar cf archive --exclude-from=exclfile \
9769                testdir
9770 tar tf archive | sort
9771
9772 rm -rf testdir exclfile
9773
9774 ) ) >"$at_stdout" 2>"$at_stderr"
9775 fi
9776 at_status=$?
9777 at_failed=false
9778 at_func_diff_devnull "$at_stderr" || at_failed=:
9779 echo >>"$at_stdout"; $as_echo "testdir/
9780 testdir/file10
9781 testdir/file11
9782 testdir/file9
9783 NEXT
9784 testdir/
9785 testdir/file10
9786 testdir/file11
9787 testdir/file9
9788 " | \
9789   $at_diff - "$at_stdout" || at_failed=:
9790 at_func_check_status 0 $at_status "$at_srcdir/exclude05.at:22"
9791
9792 $at_failed && at_func_log_failure
9793 $at_traceon; }
9794
9795               { $at_traceoff
9796 $as_echo "$at_srcdir/exclude05.at:22:
9797 mkdir gnu
9798 (cd gnu
9799 TEST_TAR_FORMAT=gnu
9800 export TEST_TAR_FORMAT
9801 TAR_OPTIONS=\"-H gnu\"
9802 export TAR_OPTIONS
9803 rm -rf *
9804
9805
9806 test -z "`sort < /dev/null 2>&1`" || exit 77
9807
9808
9809 rm -rf testdir exclfile
9810 mkdir -p testdir
9811 awk 'BEGIN {for (i=9; i < 100; ++i ) { print \"testdir/file\" i; }}' < /dev/null | \\
9812  while read name
9813  do
9814    genfile --file \$name
9815  done
9816
9817 awk 'BEGIN {for (i=1000000; i >= 12; --i ) { print \"testdir/file\" i }}' < /dev/null > exclfile
9818
9819 tar cf archive --anchored --exclude-from=exclfile \\
9820                testdir
9821 tar tf archive | sort
9822
9823 echo \"NEXT\"
9824 tar cf archive --exclude-from=exclfile \\
9825                testdir
9826 tar tf archive | sort
9827
9828 rm -rf testdir exclfile
9829
9830 )"
9831 echo exclude05.at:22 >"$at_check_line_file"
9832
9833 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
9834    false; }; then
9835   ( $at_traceon;
9836 mkdir gnu
9837 (cd gnu
9838 TEST_TAR_FORMAT=gnu
9839 export TEST_TAR_FORMAT
9840 TAR_OPTIONS="-H gnu"
9841 export TAR_OPTIONS
9842 rm -rf *
9843
9844
9845 test -z "`sort < /dev/null 2>&1`" || exit 77
9846
9847
9848 rm -rf testdir exclfile
9849 mkdir -p testdir
9850 awk 'BEGIN {for (i=9; i < 100; ++i ) { print "testdir/file" i; }}' < /dev/null | \
9851  while read name
9852  do
9853    genfile --file $name
9854  done
9855
9856 awk 'BEGIN {for (i=1000000; i >= 12; --i ) { print "testdir/file" i }}' < /dev/null > exclfile
9857
9858 tar cf archive --anchored --exclude-from=exclfile \
9859                testdir
9860 tar tf archive | sort
9861
9862 echo "NEXT"
9863 tar cf archive --exclude-from=exclfile \
9864                testdir
9865 tar tf archive | sort
9866
9867 rm -rf testdir exclfile
9868
9869 ) ) >"$at_stdout" 2>"$at_stder1"
9870   at_func_filter_trace $?
9871 else
9872   ( :;
9873 mkdir gnu
9874 (cd gnu
9875 TEST_TAR_FORMAT=gnu
9876 export TEST_TAR_FORMAT
9877 TAR_OPTIONS="-H gnu"
9878 export TAR_OPTIONS
9879 rm -rf *
9880
9881
9882 test -z "`sort < /dev/null 2>&1`" || exit 77
9883
9884
9885 rm -rf testdir exclfile
9886 mkdir -p testdir
9887 awk 'BEGIN {for (i=9; i < 100; ++i ) { print "testdir/file" i; }}' < /dev/null | \
9888  while read name
9889  do
9890    genfile --file $name
9891  done
9892
9893 awk 'BEGIN {for (i=1000000; i >= 12; --i ) { print "testdir/file" i }}' < /dev/null > exclfile
9894
9895 tar cf archive --anchored --exclude-from=exclfile \
9896                testdir
9897 tar tf archive | sort
9898
9899 echo "NEXT"
9900 tar cf archive --exclude-from=exclfile \
9901                testdir
9902 tar tf archive | sort
9903
9904 rm -rf testdir exclfile
9905
9906 ) ) >"$at_stdout" 2>"$at_stderr"
9907 fi
9908 at_status=$?
9909 at_failed=false
9910 at_func_diff_devnull "$at_stderr" || at_failed=:
9911 echo >>"$at_stdout"; $as_echo "testdir/
9912 testdir/file10
9913 testdir/file11
9914 testdir/file9
9915 NEXT
9916 testdir/
9917 testdir/file10
9918 testdir/file11
9919 testdir/file9
9920 " | \
9921   $at_diff - "$at_stdout" || at_failed=:
9922 at_func_check_status 0 $at_status "$at_srcdir/exclude05.at:22"
9923
9924 $at_failed && at_func_log_failure
9925 $at_traceon; }
9926
9927
9928
9929
9930   $at_traceoff
9931   $at_times_p && times >"$at_times_file"
9932 ) 5>&1 2>&1 | eval $at_tee_pipe
9933 at_status=`cat "$at_status_file"`
9934 #AT_STOP_19
9935 #AT_START_20
9936 # 20. exclude06.at:24: exclude: long files in pax archives
9937 at_setup_line='exclude06.at:24'
9938 at_desc="exclude: long files in pax archives"
9939 $at_quiet $as_echo_n " 20: $at_desc            "
9940 at_xfail=no
9941       test -f $XFAILFILE && at_xfail=yes
9942 echo "#                             -*- compilation -*-" >> "$at_group_log"
9943 (
9944   $as_echo "20. exclude06.at:24: testing ..."
9945   $at_traceon
9946
9947
9948
9949
9950
9951
9952
9953   { $at_traceoff
9954 $as_echo "$at_srcdir/exclude06.at:29:
9955 mkdir pax
9956 (cd pax
9957 TEST_TAR_FORMAT=pax
9958 export TEST_TAR_FORMAT
9959 TAR_OPTIONS=\"-H pax\"
9960 export TAR_OPTIONS
9961 rm -rf *
9962
9963
9964 install-sh -d one/two/three/four/five/six/seven/eight/nine/ten/eleven/twelve/thirteen/fourteen/fifteen/sixteen/seventeen >/dev/null  || exit 77
9965 genfile --length 20 -f one/two/three/four/five/six/seven/eight/nine/ten/eleven/twelve/thirteen/fourteen/fifteen/sixteen/seventeen/1.txt
9966 genfile --length 20 -f one/two/three/four/five/six/seven/eight/nine/ten/eleven/twelve/thirteen/fourteen/fifteen/sixteen/seventeen/1.c
9967
9968 tar cf archive.tar one/two/three/four/five/six/seven/eight/nine/ten/eleven/twelve/thirteen/fourteen/fifteen/sixteen/seventeen
9969 mkdir out
9970 tar -C out -xf archive.tar --exclude='*.txt' --warning=no-timestamp
9971 find out -type f
9972 )"
9973 echo exclude06.at:29 >"$at_check_line_file"
9974
9975 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
9976    false; }; then
9977   ( $at_traceon;
9978 mkdir pax
9979 (cd pax
9980 TEST_TAR_FORMAT=pax
9981 export TEST_TAR_FORMAT
9982 TAR_OPTIONS="-H pax"
9983 export TAR_OPTIONS
9984 rm -rf *
9985
9986
9987 install-sh -d one/two/three/four/five/six/seven/eight/nine/ten/eleven/twelve/thirteen/fourteen/fifteen/sixteen/seventeen >/dev/null  || exit 77
9988 genfile --length 20 -f one/two/three/four/five/six/seven/eight/nine/ten/eleven/twelve/thirteen/fourteen/fifteen/sixteen/seventeen/1.txt
9989 genfile --length 20 -f one/two/three/four/five/six/seven/eight/nine/ten/eleven/twelve/thirteen/fourteen/fifteen/sixteen/seventeen/1.c
9990
9991 tar cf archive.tar one/two/three/four/five/six/seven/eight/nine/ten/eleven/twelve/thirteen/fourteen/fifteen/sixteen/seventeen
9992 mkdir out
9993 tar -C out -xf archive.tar --exclude='*.txt' --warning=no-timestamp
9994 find out -type f
9995 ) ) >"$at_stdout" 2>"$at_stder1"
9996   at_func_filter_trace $?
9997 else
9998   ( :;
9999 mkdir pax
10000 (cd pax
10001 TEST_TAR_FORMAT=pax
10002 export TEST_TAR_FORMAT
10003 TAR_OPTIONS="-H pax"
10004 export TAR_OPTIONS
10005 rm -rf *
10006
10007
10008 install-sh -d one/two/three/four/five/six/seven/eight/nine/ten/eleven/twelve/thirteen/fourteen/fifteen/sixteen/seventeen >/dev/null  || exit 77
10009 genfile --length 20 -f one/two/three/four/five/six/seven/eight/nine/ten/eleven/twelve/thirteen/fourteen/fifteen/sixteen/seventeen/1.txt
10010 genfile --length 20 -f one/two/three/four/five/six/seven/eight/nine/ten/eleven/twelve/thirteen/fourteen/fifteen/sixteen/seventeen/1.c
10011
10012 tar cf archive.tar one/two/three/four/five/six/seven/eight/nine/ten/eleven/twelve/thirteen/fourteen/fifteen/sixteen/seventeen
10013 mkdir out
10014 tar -C out -xf archive.tar --exclude='*.txt' --warning=no-timestamp
10015 find out -type f
10016 ) ) >"$at_stdout" 2>"$at_stderr"
10017 fi
10018 at_status=$?
10019 at_failed=false
10020 at_func_diff_devnull "$at_stderr" || at_failed=:
10021 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
10022 " | \
10023   $at_diff - "$at_stdout" || at_failed=:
10024 at_func_check_status 0 $at_status "$at_srcdir/exclude06.at:29"
10025
10026 $at_failed && at_func_log_failure
10027 $at_traceon; }
10028
10029
10030
10031
10032   $at_traceoff
10033   $at_times_p && times >"$at_times_file"
10034 ) 5>&1 2>&1 | eval $at_tee_pipe
10035 at_status=`cat "$at_status_file"`
10036 #AT_STOP_20
10037 #AT_START_21
10038 # 21. delete01.at:23: deleting a member after a big one
10039 at_setup_line='delete01.at:23'
10040 at_desc="deleting a member after a big one"
10041 $at_quiet $as_echo_n " 21: $at_desc              "
10042 at_xfail=no
10043       test -f $XFAILFILE && at_xfail=yes
10044 echo "#                             -*- compilation -*-" >> "$at_group_log"
10045 (
10046   $as_echo "21. delete01.at:23: testing ..."
10047   $at_traceon
10048
10049
10050
10051
10052
10053   { $at_traceoff
10054 $as_echo "$at_srcdir/delete01.at:26:
10055 mkdir v7
10056 (cd v7
10057 TEST_TAR_FORMAT=v7
10058 export TEST_TAR_FORMAT
10059 TAR_OPTIONS=\"-H v7\"
10060 export TAR_OPTIONS
10061 rm -rf *
10062
10063 genfile -l 50000 --file file1
10064 genfile -l 1024 --file file2
10065 tar cf archive file1 file2
10066 tar f archive --delete file2
10067 tar tf archive)"
10068 echo delete01.at:26 >"$at_check_line_file"
10069
10070 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
10071    false; }; then
10072   ( $at_traceon;
10073 mkdir v7
10074 (cd v7
10075 TEST_TAR_FORMAT=v7
10076 export TEST_TAR_FORMAT
10077 TAR_OPTIONS="-H v7"
10078 export TAR_OPTIONS
10079 rm -rf *
10080
10081 genfile -l 50000 --file file1
10082 genfile -l 1024 --file file2
10083 tar cf archive file1 file2
10084 tar f archive --delete file2
10085 tar tf archive) ) >"$at_stdout" 2>"$at_stder1"
10086   at_func_filter_trace $?
10087 else
10088   ( :;
10089 mkdir v7
10090 (cd v7
10091 TEST_TAR_FORMAT=v7
10092 export TEST_TAR_FORMAT
10093 TAR_OPTIONS="-H v7"
10094 export TAR_OPTIONS
10095 rm -rf *
10096
10097 genfile -l 50000 --file file1
10098 genfile -l 1024 --file file2
10099 tar cf archive file1 file2
10100 tar f archive --delete file2
10101 tar tf archive) ) >"$at_stdout" 2>"$at_stderr"
10102 fi
10103 at_status=$?
10104 at_failed=false
10105 at_func_diff_devnull "$at_stderr" || at_failed=:
10106 echo >>"$at_stdout"; $as_echo "file1
10107 " | \
10108   $at_diff - "$at_stdout" || at_failed=:
10109 at_func_check_status 0 $at_status "$at_srcdir/delete01.at:26"
10110
10111 $at_failed && at_func_log_failure
10112 $at_traceon; }
10113
10114               { $at_traceoff
10115 $as_echo "$at_srcdir/delete01.at:26:
10116 mkdir oldgnu
10117 (cd oldgnu
10118 TEST_TAR_FORMAT=oldgnu
10119 export TEST_TAR_FORMAT
10120 TAR_OPTIONS=\"-H oldgnu\"
10121 export TAR_OPTIONS
10122 rm -rf *
10123
10124 genfile -l 50000 --file file1
10125 genfile -l 1024 --file file2
10126 tar cf archive file1 file2
10127 tar f archive --delete file2
10128 tar tf archive)"
10129 echo delete01.at:26 >"$at_check_line_file"
10130
10131 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
10132    false; }; then
10133   ( $at_traceon;
10134 mkdir oldgnu
10135 (cd oldgnu
10136 TEST_TAR_FORMAT=oldgnu
10137 export TEST_TAR_FORMAT
10138 TAR_OPTIONS="-H oldgnu"
10139 export TAR_OPTIONS
10140 rm -rf *
10141
10142 genfile -l 50000 --file file1
10143 genfile -l 1024 --file file2
10144 tar cf archive file1 file2
10145 tar f archive --delete file2
10146 tar tf archive) ) >"$at_stdout" 2>"$at_stder1"
10147   at_func_filter_trace $?
10148 else
10149   ( :;
10150 mkdir oldgnu
10151 (cd oldgnu
10152 TEST_TAR_FORMAT=oldgnu
10153 export TEST_TAR_FORMAT
10154 TAR_OPTIONS="-H oldgnu"
10155 export TAR_OPTIONS
10156 rm -rf *
10157
10158 genfile -l 50000 --file file1
10159 genfile -l 1024 --file file2
10160 tar cf archive file1 file2
10161 tar f archive --delete file2
10162 tar tf archive) ) >"$at_stdout" 2>"$at_stderr"
10163 fi
10164 at_status=$?
10165 at_failed=false
10166 at_func_diff_devnull "$at_stderr" || at_failed=:
10167 echo >>"$at_stdout"; $as_echo "file1
10168 " | \
10169   $at_diff - "$at_stdout" || at_failed=:
10170 at_func_check_status 0 $at_status "$at_srcdir/delete01.at:26"
10171
10172 $at_failed && at_func_log_failure
10173 $at_traceon; }
10174
10175               { $at_traceoff
10176 $as_echo "$at_srcdir/delete01.at:26:
10177 mkdir ustar
10178 (cd ustar
10179 TEST_TAR_FORMAT=ustar
10180 export TEST_TAR_FORMAT
10181 TAR_OPTIONS=\"-H ustar\"
10182 export TAR_OPTIONS
10183 rm -rf *
10184
10185 genfile -l 50000 --file file1
10186 genfile -l 1024 --file file2
10187 tar cf archive file1 file2
10188 tar f archive --delete file2
10189 tar tf archive)"
10190 echo delete01.at:26 >"$at_check_line_file"
10191
10192 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
10193    false; }; then
10194   ( $at_traceon;
10195 mkdir ustar
10196 (cd ustar
10197 TEST_TAR_FORMAT=ustar
10198 export TEST_TAR_FORMAT
10199 TAR_OPTIONS="-H ustar"
10200 export TAR_OPTIONS
10201 rm -rf *
10202
10203 genfile -l 50000 --file file1
10204 genfile -l 1024 --file file2
10205 tar cf archive file1 file2
10206 tar f archive --delete file2
10207 tar tf archive) ) >"$at_stdout" 2>"$at_stder1"
10208   at_func_filter_trace $?
10209 else
10210   ( :;
10211 mkdir ustar
10212 (cd ustar
10213 TEST_TAR_FORMAT=ustar
10214 export TEST_TAR_FORMAT
10215 TAR_OPTIONS="-H ustar"
10216 export TAR_OPTIONS
10217 rm -rf *
10218
10219 genfile -l 50000 --file file1
10220 genfile -l 1024 --file file2
10221 tar cf archive file1 file2
10222 tar f archive --delete file2
10223 tar tf archive) ) >"$at_stdout" 2>"$at_stderr"
10224 fi
10225 at_status=$?
10226 at_failed=false
10227 at_func_diff_devnull "$at_stderr" || at_failed=:
10228 echo >>"$at_stdout"; $as_echo "file1
10229 " | \
10230   $at_diff - "$at_stdout" || at_failed=:
10231 at_func_check_status 0 $at_status "$at_srcdir/delete01.at:26"
10232
10233 $at_failed && at_func_log_failure
10234 $at_traceon; }
10235
10236               { $at_traceoff
10237 $as_echo "$at_srcdir/delete01.at:26:
10238 mkdir posix
10239 (cd posix
10240 TEST_TAR_FORMAT=posix
10241 export TEST_TAR_FORMAT
10242 TAR_OPTIONS=\"-H posix\"
10243 export TAR_OPTIONS
10244 rm -rf *
10245
10246 genfile -l 50000 --file file1
10247 genfile -l 1024 --file file2
10248 tar cf archive file1 file2
10249 tar f archive --delete file2
10250 tar tf archive)"
10251 echo delete01.at:26 >"$at_check_line_file"
10252
10253 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
10254    false; }; then
10255   ( $at_traceon;
10256 mkdir posix
10257 (cd posix
10258 TEST_TAR_FORMAT=posix
10259 export TEST_TAR_FORMAT
10260 TAR_OPTIONS="-H posix"
10261 export TAR_OPTIONS
10262 rm -rf *
10263
10264 genfile -l 50000 --file file1
10265 genfile -l 1024 --file file2
10266 tar cf archive file1 file2
10267 tar f archive --delete file2
10268 tar tf archive) ) >"$at_stdout" 2>"$at_stder1"
10269   at_func_filter_trace $?
10270 else
10271   ( :;
10272 mkdir posix
10273 (cd posix
10274 TEST_TAR_FORMAT=posix
10275 export TEST_TAR_FORMAT
10276 TAR_OPTIONS="-H posix"
10277 export TAR_OPTIONS
10278 rm -rf *
10279
10280 genfile -l 50000 --file file1
10281 genfile -l 1024 --file file2
10282 tar cf archive file1 file2
10283 tar f archive --delete file2
10284 tar tf archive) ) >"$at_stdout" 2>"$at_stderr"
10285 fi
10286 at_status=$?
10287 at_failed=false
10288 at_func_diff_devnull "$at_stderr" || at_failed=:
10289 echo >>"$at_stdout"; $as_echo "file1
10290 " | \
10291   $at_diff - "$at_stdout" || at_failed=:
10292 at_func_check_status 0 $at_status "$at_srcdir/delete01.at:26"
10293
10294 $at_failed && at_func_log_failure
10295 $at_traceon; }
10296
10297               { $at_traceoff
10298 $as_echo "$at_srcdir/delete01.at:26:
10299 mkdir gnu
10300 (cd gnu
10301 TEST_TAR_FORMAT=gnu
10302 export TEST_TAR_FORMAT
10303 TAR_OPTIONS=\"-H gnu\"
10304 export TAR_OPTIONS
10305 rm -rf *
10306
10307 genfile -l 50000 --file file1
10308 genfile -l 1024 --file file2
10309 tar cf archive file1 file2
10310 tar f archive --delete file2
10311 tar tf archive)"
10312 echo delete01.at:26 >"$at_check_line_file"
10313
10314 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
10315    false; }; then
10316   ( $at_traceon;
10317 mkdir gnu
10318 (cd gnu
10319 TEST_TAR_FORMAT=gnu
10320 export TEST_TAR_FORMAT
10321 TAR_OPTIONS="-H gnu"
10322 export TAR_OPTIONS
10323 rm -rf *
10324
10325 genfile -l 50000 --file file1
10326 genfile -l 1024 --file file2
10327 tar cf archive file1 file2
10328 tar f archive --delete file2
10329 tar tf archive) ) >"$at_stdout" 2>"$at_stder1"
10330   at_func_filter_trace $?
10331 else
10332   ( :;
10333 mkdir gnu
10334 (cd gnu
10335 TEST_TAR_FORMAT=gnu
10336 export TEST_TAR_FORMAT
10337 TAR_OPTIONS="-H gnu"
10338 export TAR_OPTIONS
10339 rm -rf *
10340
10341 genfile -l 50000 --file file1
10342 genfile -l 1024 --file file2
10343 tar cf archive file1 file2
10344 tar f archive --delete file2
10345 tar tf archive) ) >"$at_stdout" 2>"$at_stderr"
10346 fi
10347 at_status=$?
10348 at_failed=false
10349 at_func_diff_devnull "$at_stderr" || at_failed=:
10350 echo >>"$at_stdout"; $as_echo "file1
10351 " | \
10352   $at_diff - "$at_stdout" || at_failed=:
10353 at_func_check_status 0 $at_status "$at_srcdir/delete01.at:26"
10354
10355 $at_failed && at_func_log_failure
10356 $at_traceon; }
10357
10358
10359
10360
10361   $at_traceoff
10362   $at_times_p && times >"$at_times_file"
10363 ) 5>&1 2>&1 | eval $at_tee_pipe
10364 at_status=`cat "$at_status_file"`
10365 #AT_STOP_21
10366 #AT_START_22
10367 # 22. delete02.at:23: deleting a member from stdin archive
10368 at_setup_line='delete02.at:23'
10369 at_desc="deleting a member from stdin archive"
10370 $at_quiet $as_echo_n " 22: $at_desc           "
10371 at_xfail=no
10372       test -f $XFAILFILE && at_xfail=yes
10373 echo "#                             -*- compilation -*-" >> "$at_group_log"
10374 (
10375   $as_echo "22. delete02.at:23: testing ..."
10376   $at_traceon
10377
10378
10379
10380
10381
10382   { $at_traceoff
10383 $as_echo "$at_srcdir/delete02.at:26:
10384 mkdir v7
10385 (cd v7
10386 TEST_TAR_FORMAT=v7
10387 export TEST_TAR_FORMAT
10388 TAR_OPTIONS=\"-H v7\"
10389 export TAR_OPTIONS
10390 rm -rf *
10391
10392 genfile -l 3073 -p zeros --file 1
10393 cp 1 2
10394 cp 2 3
10395 tar cf archive 1 2 3
10396 tar tf archive
10397 cat archive | tar f - --delete 2 > archive2
10398 echo separator
10399 tar tf archive2)"
10400 echo delete02.at:26 >"$at_check_line_file"
10401
10402 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
10403    false; }; then
10404   ( $at_traceon;
10405 mkdir v7
10406 (cd v7
10407 TEST_TAR_FORMAT=v7
10408 export TEST_TAR_FORMAT
10409 TAR_OPTIONS="-H v7"
10410 export TAR_OPTIONS
10411 rm -rf *
10412
10413 genfile -l 3073 -p zeros --file 1
10414 cp 1 2
10415 cp 2 3
10416 tar cf archive 1 2 3
10417 tar tf archive
10418 cat archive | tar f - --delete 2 > archive2
10419 echo separator
10420 tar tf archive2) ) >"$at_stdout" 2>"$at_stder1"
10421   at_func_filter_trace $?
10422 else
10423   ( :;
10424 mkdir v7
10425 (cd v7
10426 TEST_TAR_FORMAT=v7
10427 export TEST_TAR_FORMAT
10428 TAR_OPTIONS="-H v7"
10429 export TAR_OPTIONS
10430 rm -rf *
10431
10432 genfile -l 3073 -p zeros --file 1
10433 cp 1 2
10434 cp 2 3
10435 tar cf archive 1 2 3
10436 tar tf archive
10437 cat archive | tar f - --delete 2 > archive2
10438 echo separator
10439 tar tf archive2) ) >"$at_stdout" 2>"$at_stderr"
10440 fi
10441 at_status=$?
10442 at_failed=false
10443 at_func_diff_devnull "$at_stderr" || at_failed=:
10444 echo >>"$at_stdout"; $as_echo "1
10445 2
10446 3
10447 separator
10448 1
10449 3
10450 " | \
10451   $at_diff - "$at_stdout" || at_failed=:
10452 at_func_check_status 0 $at_status "$at_srcdir/delete02.at:26"
10453
10454 $at_failed && at_func_log_failure
10455 $at_traceon; }
10456
10457               { $at_traceoff
10458 $as_echo "$at_srcdir/delete02.at:26:
10459 mkdir oldgnu
10460 (cd oldgnu
10461 TEST_TAR_FORMAT=oldgnu
10462 export TEST_TAR_FORMAT
10463 TAR_OPTIONS=\"-H oldgnu\"
10464 export TAR_OPTIONS
10465 rm -rf *
10466
10467 genfile -l 3073 -p zeros --file 1
10468 cp 1 2
10469 cp 2 3
10470 tar cf archive 1 2 3
10471 tar tf archive
10472 cat archive | tar f - --delete 2 > archive2
10473 echo separator
10474 tar tf archive2)"
10475 echo delete02.at:26 >"$at_check_line_file"
10476
10477 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
10478    false; }; then
10479   ( $at_traceon;
10480 mkdir oldgnu
10481 (cd oldgnu
10482 TEST_TAR_FORMAT=oldgnu
10483 export TEST_TAR_FORMAT
10484 TAR_OPTIONS="-H oldgnu"
10485 export TAR_OPTIONS
10486 rm -rf *
10487
10488 genfile -l 3073 -p zeros --file 1
10489 cp 1 2
10490 cp 2 3
10491 tar cf archive 1 2 3
10492 tar tf archive
10493 cat archive | tar f - --delete 2 > archive2
10494 echo separator
10495 tar tf archive2) ) >"$at_stdout" 2>"$at_stder1"
10496   at_func_filter_trace $?
10497 else
10498   ( :;
10499 mkdir oldgnu
10500 (cd oldgnu
10501 TEST_TAR_FORMAT=oldgnu
10502 export TEST_TAR_FORMAT
10503 TAR_OPTIONS="-H oldgnu"
10504 export TAR_OPTIONS
10505 rm -rf *
10506
10507 genfile -l 3073 -p zeros --file 1
10508 cp 1 2
10509 cp 2 3
10510 tar cf archive 1 2 3
10511 tar tf archive
10512 cat archive | tar f - --delete 2 > archive2
10513 echo separator
10514 tar tf archive2) ) >"$at_stdout" 2>"$at_stderr"
10515 fi
10516 at_status=$?
10517 at_failed=false
10518 at_func_diff_devnull "$at_stderr" || at_failed=:
10519 echo >>"$at_stdout"; $as_echo "1
10520 2
10521 3
10522 separator
10523 1
10524 3
10525 " | \
10526   $at_diff - "$at_stdout" || at_failed=:
10527 at_func_check_status 0 $at_status "$at_srcdir/delete02.at:26"
10528
10529 $at_failed && at_func_log_failure
10530 $at_traceon; }
10531
10532               { $at_traceoff
10533 $as_echo "$at_srcdir/delete02.at:26:
10534 mkdir ustar
10535 (cd ustar
10536 TEST_TAR_FORMAT=ustar
10537 export TEST_TAR_FORMAT
10538 TAR_OPTIONS=\"-H ustar\"
10539 export TAR_OPTIONS
10540 rm -rf *
10541
10542 genfile -l 3073 -p zeros --file 1
10543 cp 1 2
10544 cp 2 3
10545 tar cf archive 1 2 3
10546 tar tf archive
10547 cat archive | tar f - --delete 2 > archive2
10548 echo separator
10549 tar tf archive2)"
10550 echo delete02.at:26 >"$at_check_line_file"
10551
10552 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
10553    false; }; then
10554   ( $at_traceon;
10555 mkdir ustar
10556 (cd ustar
10557 TEST_TAR_FORMAT=ustar
10558 export TEST_TAR_FORMAT
10559 TAR_OPTIONS="-H ustar"
10560 export TAR_OPTIONS
10561 rm -rf *
10562
10563 genfile -l 3073 -p zeros --file 1
10564 cp 1 2
10565 cp 2 3
10566 tar cf archive 1 2 3
10567 tar tf archive
10568 cat archive | tar f - --delete 2 > archive2
10569 echo separator
10570 tar tf archive2) ) >"$at_stdout" 2>"$at_stder1"
10571   at_func_filter_trace $?
10572 else
10573   ( :;
10574 mkdir ustar
10575 (cd ustar
10576 TEST_TAR_FORMAT=ustar
10577 export TEST_TAR_FORMAT
10578 TAR_OPTIONS="-H ustar"
10579 export TAR_OPTIONS
10580 rm -rf *
10581
10582 genfile -l 3073 -p zeros --file 1
10583 cp 1 2
10584 cp 2 3
10585 tar cf archive 1 2 3
10586 tar tf archive
10587 cat archive | tar f - --delete 2 > archive2
10588 echo separator
10589 tar tf archive2) ) >"$at_stdout" 2>"$at_stderr"
10590 fi
10591 at_status=$?
10592 at_failed=false
10593 at_func_diff_devnull "$at_stderr" || at_failed=:
10594 echo >>"$at_stdout"; $as_echo "1
10595 2
10596 3
10597 separator
10598 1
10599 3
10600 " | \
10601   $at_diff - "$at_stdout" || at_failed=:
10602 at_func_check_status 0 $at_status "$at_srcdir/delete02.at:26"
10603
10604 $at_failed && at_func_log_failure
10605 $at_traceon; }
10606
10607               { $at_traceoff
10608 $as_echo "$at_srcdir/delete02.at:26:
10609 mkdir posix
10610 (cd posix
10611 TEST_TAR_FORMAT=posix
10612 export TEST_TAR_FORMAT
10613 TAR_OPTIONS=\"-H posix\"
10614 export TAR_OPTIONS
10615 rm -rf *
10616
10617 genfile -l 3073 -p zeros --file 1
10618 cp 1 2
10619 cp 2 3
10620 tar cf archive 1 2 3
10621 tar tf archive
10622 cat archive | tar f - --delete 2 > archive2
10623 echo separator
10624 tar tf archive2)"
10625 echo delete02.at:26 >"$at_check_line_file"
10626
10627 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
10628    false; }; then
10629   ( $at_traceon;
10630 mkdir posix
10631 (cd posix
10632 TEST_TAR_FORMAT=posix
10633 export TEST_TAR_FORMAT
10634 TAR_OPTIONS="-H posix"
10635 export TAR_OPTIONS
10636 rm -rf *
10637
10638 genfile -l 3073 -p zeros --file 1
10639 cp 1 2
10640 cp 2 3
10641 tar cf archive 1 2 3
10642 tar tf archive
10643 cat archive | tar f - --delete 2 > archive2
10644 echo separator
10645 tar tf archive2) ) >"$at_stdout" 2>"$at_stder1"
10646   at_func_filter_trace $?
10647 else
10648   ( :;
10649 mkdir posix
10650 (cd posix
10651 TEST_TAR_FORMAT=posix
10652 export TEST_TAR_FORMAT
10653 TAR_OPTIONS="-H posix"
10654 export TAR_OPTIONS
10655 rm -rf *
10656
10657 genfile -l 3073 -p zeros --file 1
10658 cp 1 2
10659 cp 2 3
10660 tar cf archive 1 2 3
10661 tar tf archive
10662 cat archive | tar f - --delete 2 > archive2
10663 echo separator
10664 tar tf archive2) ) >"$at_stdout" 2>"$at_stderr"
10665 fi
10666 at_status=$?
10667 at_failed=false
10668 at_func_diff_devnull "$at_stderr" || at_failed=:
10669 echo >>"$at_stdout"; $as_echo "1
10670 2
10671 3
10672 separator
10673 1
10674 3
10675 " | \
10676   $at_diff - "$at_stdout" || at_failed=:
10677 at_func_check_status 0 $at_status "$at_srcdir/delete02.at:26"
10678
10679 $at_failed && at_func_log_failure
10680 $at_traceon; }
10681
10682               { $at_traceoff
10683 $as_echo "$at_srcdir/delete02.at:26:
10684 mkdir gnu
10685 (cd gnu
10686 TEST_TAR_FORMAT=gnu
10687 export TEST_TAR_FORMAT
10688 TAR_OPTIONS=\"-H gnu\"
10689 export TAR_OPTIONS
10690 rm -rf *
10691
10692 genfile -l 3073 -p zeros --file 1
10693 cp 1 2
10694 cp 2 3
10695 tar cf archive 1 2 3
10696 tar tf archive
10697 cat archive | tar f - --delete 2 > archive2
10698 echo separator
10699 tar tf archive2)"
10700 echo delete02.at:26 >"$at_check_line_file"
10701
10702 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
10703    false; }; then
10704   ( $at_traceon;
10705 mkdir gnu
10706 (cd gnu
10707 TEST_TAR_FORMAT=gnu
10708 export TEST_TAR_FORMAT
10709 TAR_OPTIONS="-H gnu"
10710 export TAR_OPTIONS
10711 rm -rf *
10712
10713 genfile -l 3073 -p zeros --file 1
10714 cp 1 2
10715 cp 2 3
10716 tar cf archive 1 2 3
10717 tar tf archive
10718 cat archive | tar f - --delete 2 > archive2
10719 echo separator
10720 tar tf archive2) ) >"$at_stdout" 2>"$at_stder1"
10721   at_func_filter_trace $?
10722 else
10723   ( :;
10724 mkdir gnu
10725 (cd gnu
10726 TEST_TAR_FORMAT=gnu
10727 export TEST_TAR_FORMAT
10728 TAR_OPTIONS="-H gnu"
10729 export TAR_OPTIONS
10730 rm -rf *
10731
10732 genfile -l 3073 -p zeros --file 1
10733 cp 1 2
10734 cp 2 3
10735 tar cf archive 1 2 3
10736 tar tf archive
10737 cat archive | tar f - --delete 2 > archive2
10738 echo separator
10739 tar tf archive2) ) >"$at_stdout" 2>"$at_stderr"
10740 fi
10741 at_status=$?
10742 at_failed=false
10743 at_func_diff_devnull "$at_stderr" || at_failed=:
10744 echo >>"$at_stdout"; $as_echo "1
10745 2
10746 3
10747 separator
10748 1
10749 3
10750 " | \
10751   $at_diff - "$at_stdout" || at_failed=:
10752 at_func_check_status 0 $at_status "$at_srcdir/delete02.at:26"
10753
10754 $at_failed && at_func_log_failure
10755 $at_traceon; }
10756
10757
10758
10759
10760   $at_traceoff
10761   $at_times_p && times >"$at_times_file"
10762 ) 5>&1 2>&1 | eval $at_tee_pipe
10763 at_status=`cat "$at_status_file"`
10764 #AT_STOP_22
10765 #AT_START_23
10766 # 23. delete03.at:21: deleting members with long names
10767 at_setup_line='delete03.at:21'
10768 at_desc="deleting members with long names"
10769 $at_quiet $as_echo_n " 23: $at_desc               "
10770 at_xfail=no
10771       test -f $XFAILFILE && at_xfail=yes
10772 echo "#                             -*- compilation -*-" >> "$at_group_log"
10773 (
10774   $as_echo "23. delete03.at:21: testing ..."
10775   $at_traceon
10776
10777
10778
10779
10780
10781
10782
10783   { $at_traceoff
10784 $as_echo "$at_srcdir/delete03.at:26:
10785 mkdir gnu
10786 (cd gnu
10787 TEST_TAR_FORMAT=gnu
10788 export TEST_TAR_FORMAT
10789 TAR_OPTIONS=\"-H gnu\"
10790 export TAR_OPTIONS
10791 rm -rf *
10792
10793
10794 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
10795 rm -f \$prefix*
10796 for i in 1 2 3 4 5 6 7 8 9
10797 do touch \$prefix\$i
10798 done
10799 tar -cf archive ./\$prefix* &&
10800  tar --delete -f archive ./\${prefix}5 &&
10801  tar -tf archive
10802 )"
10803 echo delete03.at:26 >"$at_check_line_file"
10804
10805 if { echo 'Not enabling shell tracing (command contains a ${...} parameter expansion)'
10806    false; }; then
10807   ( $at_traceon;
10808 mkdir gnu
10809 (cd gnu
10810 TEST_TAR_FORMAT=gnu
10811 export TEST_TAR_FORMAT
10812 TAR_OPTIONS="-H gnu"
10813 export TAR_OPTIONS
10814 rm -rf *
10815
10816
10817 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
10818 rm -f $prefix*
10819 for i in 1 2 3 4 5 6 7 8 9
10820 do touch $prefix$i
10821 done
10822 tar -cf archive ./$prefix* &&
10823  tar --delete -f archive ./${prefix}5 &&
10824  tar -tf archive
10825 ) ) >"$at_stdout" 2>"$at_stder1"
10826   at_func_filter_trace $?
10827 else
10828   ( :;
10829 mkdir gnu
10830 (cd gnu
10831 TEST_TAR_FORMAT=gnu
10832 export TEST_TAR_FORMAT
10833 TAR_OPTIONS="-H gnu"
10834 export TAR_OPTIONS
10835 rm -rf *
10836
10837
10838 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
10839 rm -f $prefix*
10840 for i in 1 2 3 4 5 6 7 8 9
10841 do touch $prefix$i
10842 done
10843 tar -cf archive ./$prefix* &&
10844  tar --delete -f archive ./${prefix}5 &&
10845  tar -tf archive
10846 ) ) >"$at_stdout" 2>"$at_stderr"
10847 fi
10848 at_status=$?
10849 at_failed=false
10850 at_func_diff_devnull "$at_stderr" || at_failed=:
10851 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
10852 ./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
10853 ./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
10854 ./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
10855 ./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
10856 ./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
10857 ./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
10858 ./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
10859 " | \
10860   $at_diff - "$at_stdout" || at_failed=:
10861 at_func_check_status 0 $at_status "$at_srcdir/delete03.at:26"
10862
10863 $at_failed && at_func_log_failure
10864 $at_traceon; }
10865
10866               { $at_traceoff
10867 $as_echo "$at_srcdir/delete03.at:26:
10868 mkdir oldgnu
10869 (cd oldgnu
10870 TEST_TAR_FORMAT=oldgnu
10871 export TEST_TAR_FORMAT
10872 TAR_OPTIONS=\"-H oldgnu\"
10873 export TAR_OPTIONS
10874 rm -rf *
10875
10876
10877 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
10878 rm -f \$prefix*
10879 for i in 1 2 3 4 5 6 7 8 9
10880 do touch \$prefix\$i
10881 done
10882 tar -cf archive ./\$prefix* &&
10883  tar --delete -f archive ./\${prefix}5 &&
10884  tar -tf archive
10885 )"
10886 echo delete03.at:26 >"$at_check_line_file"
10887
10888 if { echo 'Not enabling shell tracing (command contains a ${...} parameter expansion)'
10889    false; }; then
10890   ( $at_traceon;
10891 mkdir oldgnu
10892 (cd oldgnu
10893 TEST_TAR_FORMAT=oldgnu
10894 export TEST_TAR_FORMAT
10895 TAR_OPTIONS="-H oldgnu"
10896 export TAR_OPTIONS
10897 rm -rf *
10898
10899
10900 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
10901 rm -f $prefix*
10902 for i in 1 2 3 4 5 6 7 8 9
10903 do touch $prefix$i
10904 done
10905 tar -cf archive ./$prefix* &&
10906  tar --delete -f archive ./${prefix}5 &&
10907  tar -tf archive
10908 ) ) >"$at_stdout" 2>"$at_stder1"
10909   at_func_filter_trace $?
10910 else
10911   ( :;
10912 mkdir oldgnu
10913 (cd oldgnu
10914 TEST_TAR_FORMAT=oldgnu
10915 export TEST_TAR_FORMAT
10916 TAR_OPTIONS="-H oldgnu"
10917 export TAR_OPTIONS
10918 rm -rf *
10919
10920
10921 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
10922 rm -f $prefix*
10923 for i in 1 2 3 4 5 6 7 8 9
10924 do touch $prefix$i
10925 done
10926 tar -cf archive ./$prefix* &&
10927  tar --delete -f archive ./${prefix}5 &&
10928  tar -tf archive
10929 ) ) >"$at_stdout" 2>"$at_stderr"
10930 fi
10931 at_status=$?
10932 at_failed=false
10933 at_func_diff_devnull "$at_stderr" || at_failed=:
10934 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
10935 ./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
10936 ./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
10937 ./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
10938 ./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
10939 ./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
10940 ./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
10941 ./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
10942 " | \
10943   $at_diff - "$at_stdout" || at_failed=:
10944 at_func_check_status 0 $at_status "$at_srcdir/delete03.at:26"
10945
10946 $at_failed && at_func_log_failure
10947 $at_traceon; }
10948
10949               { $at_traceoff
10950 $as_echo "$at_srcdir/delete03.at:26:
10951 mkdir posix
10952 (cd posix
10953 TEST_TAR_FORMAT=posix
10954 export TEST_TAR_FORMAT
10955 TAR_OPTIONS=\"-H posix\"
10956 export TAR_OPTIONS
10957 rm -rf *
10958
10959
10960 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
10961 rm -f \$prefix*
10962 for i in 1 2 3 4 5 6 7 8 9
10963 do touch \$prefix\$i
10964 done
10965 tar -cf archive ./\$prefix* &&
10966  tar --delete -f archive ./\${prefix}5 &&
10967  tar -tf archive
10968 )"
10969 echo delete03.at:26 >"$at_check_line_file"
10970
10971 if { echo 'Not enabling shell tracing (command contains a ${...} parameter expansion)'
10972    false; }; then
10973   ( $at_traceon;
10974 mkdir posix
10975 (cd posix
10976 TEST_TAR_FORMAT=posix
10977 export TEST_TAR_FORMAT
10978 TAR_OPTIONS="-H posix"
10979 export TAR_OPTIONS
10980 rm -rf *
10981
10982
10983 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
10984 rm -f $prefix*
10985 for i in 1 2 3 4 5 6 7 8 9
10986 do touch $prefix$i
10987 done
10988 tar -cf archive ./$prefix* &&
10989  tar --delete -f archive ./${prefix}5 &&
10990  tar -tf archive
10991 ) ) >"$at_stdout" 2>"$at_stder1"
10992   at_func_filter_trace $?
10993 else
10994   ( :;
10995 mkdir posix
10996 (cd posix
10997 TEST_TAR_FORMAT=posix
10998 export TEST_TAR_FORMAT
10999 TAR_OPTIONS="-H posix"
11000 export TAR_OPTIONS
11001 rm -rf *
11002
11003
11004 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
11005 rm -f $prefix*
11006 for i in 1 2 3 4 5 6 7 8 9
11007 do touch $prefix$i
11008 done
11009 tar -cf archive ./$prefix* &&
11010  tar --delete -f archive ./${prefix}5 &&
11011  tar -tf archive
11012 ) ) >"$at_stdout" 2>"$at_stderr"
11013 fi
11014 at_status=$?
11015 at_failed=false
11016 at_func_diff_devnull "$at_stderr" || at_failed=:
11017 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
11018 ./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
11019 ./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
11020 ./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
11021 ./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
11022 ./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
11023 ./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
11024 ./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
11025 " | \
11026   $at_diff - "$at_stdout" || at_failed=:
11027 at_func_check_status 0 $at_status "$at_srcdir/delete03.at:26"
11028
11029 $at_failed && at_func_log_failure
11030 $at_traceon; }
11031
11032
11033
11034
11035   $at_traceoff
11036   $at_times_p && times >"$at_times_file"
11037 ) 5>&1 2>&1 | eval $at_tee_pipe
11038 at_status=`cat "$at_status_file"`
11039 #AT_STOP_23
11040 #AT_START_24
11041 # 24. delete04.at:23: deleting a large last member
11042 at_setup_line='delete04.at:23'
11043 at_desc="deleting a large last member"
11044 $at_quiet $as_echo_n " 24: $at_desc                   "
11045 at_xfail=no
11046       test -f $XFAILFILE && at_xfail=yes
11047 echo "#                             -*- compilation -*-" >> "$at_group_log"
11048 (
11049   $as_echo "24. delete04.at:23: testing ..."
11050   $at_traceon
11051
11052
11053
11054
11055
11056   { $at_traceoff
11057 $as_echo "$at_srcdir/delete04.at:26:
11058 mkdir v7
11059 (cd v7
11060 TEST_TAR_FORMAT=v7
11061 export TEST_TAR_FORMAT
11062 TAR_OPTIONS=\"-H v7\"
11063 export TAR_OPTIONS
11064 rm -rf *
11065
11066 genfile -l      3 -f file1
11067 genfile -l      5 -f file2
11068 genfile -l      3 -f file3
11069 genfile -l      6 -f file4
11070 genfile -l     24 -f file5
11071 genfile -l     13 -f file6
11072 genfile -l   1385 -f file7
11073 genfile -l     30 -f file8
11074 genfile -l     10 -f file9
11075 genfile -l 256000 -f file10
11076 tar cf archive file1 file2 file3 file4 file5 file6 file7 file8 file9 file10
11077 tar f archive --delete file10
11078 tar tf archive
11079 )"
11080 echo delete04.at:26 >"$at_check_line_file"
11081
11082 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
11083    false; }; then
11084   ( $at_traceon;
11085 mkdir v7
11086 (cd v7
11087 TEST_TAR_FORMAT=v7
11088 export TEST_TAR_FORMAT
11089 TAR_OPTIONS="-H v7"
11090 export TAR_OPTIONS
11091 rm -rf *
11092
11093 genfile -l      3 -f file1
11094 genfile -l      5 -f file2
11095 genfile -l      3 -f file3
11096 genfile -l      6 -f file4
11097 genfile -l     24 -f file5
11098 genfile -l     13 -f file6
11099 genfile -l   1385 -f file7
11100 genfile -l     30 -f file8
11101 genfile -l     10 -f file9
11102 genfile -l 256000 -f file10
11103 tar cf archive file1 file2 file3 file4 file5 file6 file7 file8 file9 file10
11104 tar f archive --delete file10
11105 tar tf archive
11106 ) ) >"$at_stdout" 2>"$at_stder1"
11107   at_func_filter_trace $?
11108 else
11109   ( :;
11110 mkdir v7
11111 (cd v7
11112 TEST_TAR_FORMAT=v7
11113 export TEST_TAR_FORMAT
11114 TAR_OPTIONS="-H v7"
11115 export TAR_OPTIONS
11116 rm -rf *
11117
11118 genfile -l      3 -f file1
11119 genfile -l      5 -f file2
11120 genfile -l      3 -f file3
11121 genfile -l      6 -f file4
11122 genfile -l     24 -f file5
11123 genfile -l     13 -f file6
11124 genfile -l   1385 -f file7
11125 genfile -l     30 -f file8
11126 genfile -l     10 -f file9
11127 genfile -l 256000 -f file10
11128 tar cf archive file1 file2 file3 file4 file5 file6 file7 file8 file9 file10
11129 tar f archive --delete file10
11130 tar tf archive
11131 ) ) >"$at_stdout" 2>"$at_stderr"
11132 fi
11133 at_status=$?
11134 at_failed=false
11135 at_func_diff_devnull "$at_stderr" || at_failed=:
11136 echo >>"$at_stdout"; $as_echo "file1
11137 file2
11138 file3
11139 file4
11140 file5
11141 file6
11142 file7
11143 file8
11144 file9
11145 " | \
11146   $at_diff - "$at_stdout" || at_failed=:
11147 at_func_check_status 0 $at_status "$at_srcdir/delete04.at:26"
11148
11149 $at_failed && at_func_log_failure
11150 $at_traceon; }
11151
11152               { $at_traceoff
11153 $as_echo "$at_srcdir/delete04.at:26:
11154 mkdir oldgnu
11155 (cd oldgnu
11156 TEST_TAR_FORMAT=oldgnu
11157 export TEST_TAR_FORMAT
11158 TAR_OPTIONS=\"-H oldgnu\"
11159 export TAR_OPTIONS
11160 rm -rf *
11161
11162 genfile -l      3 -f file1
11163 genfile -l      5 -f file2
11164 genfile -l      3 -f file3
11165 genfile -l      6 -f file4
11166 genfile -l     24 -f file5
11167 genfile -l     13 -f file6
11168 genfile -l   1385 -f file7
11169 genfile -l     30 -f file8
11170 genfile -l     10 -f file9
11171 genfile -l 256000 -f file10
11172 tar cf archive file1 file2 file3 file4 file5 file6 file7 file8 file9 file10
11173 tar f archive --delete file10
11174 tar tf archive
11175 )"
11176 echo delete04.at:26 >"$at_check_line_file"
11177
11178 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
11179    false; }; then
11180   ( $at_traceon;
11181 mkdir oldgnu
11182 (cd oldgnu
11183 TEST_TAR_FORMAT=oldgnu
11184 export TEST_TAR_FORMAT
11185 TAR_OPTIONS="-H oldgnu"
11186 export TAR_OPTIONS
11187 rm -rf *
11188
11189 genfile -l      3 -f file1
11190 genfile -l      5 -f file2
11191 genfile -l      3 -f file3
11192 genfile -l      6 -f file4
11193 genfile -l     24 -f file5
11194 genfile -l     13 -f file6
11195 genfile -l   1385 -f file7
11196 genfile -l     30 -f file8
11197 genfile -l     10 -f file9
11198 genfile -l 256000 -f file10
11199 tar cf archive file1 file2 file3 file4 file5 file6 file7 file8 file9 file10
11200 tar f archive --delete file10
11201 tar tf archive
11202 ) ) >"$at_stdout" 2>"$at_stder1"
11203   at_func_filter_trace $?
11204 else
11205   ( :;
11206 mkdir oldgnu
11207 (cd oldgnu
11208 TEST_TAR_FORMAT=oldgnu
11209 export TEST_TAR_FORMAT
11210 TAR_OPTIONS="-H oldgnu"
11211 export TAR_OPTIONS
11212 rm -rf *
11213
11214 genfile -l      3 -f file1
11215 genfile -l      5 -f file2
11216 genfile -l      3 -f file3
11217 genfile -l      6 -f file4
11218 genfile -l     24 -f file5
11219 genfile -l     13 -f file6
11220 genfile -l   1385 -f file7
11221 genfile -l     30 -f file8
11222 genfile -l     10 -f file9
11223 genfile -l 256000 -f file10
11224 tar cf archive file1 file2 file3 file4 file5 file6 file7 file8 file9 file10
11225 tar f archive --delete file10
11226 tar tf archive
11227 ) ) >"$at_stdout" 2>"$at_stderr"
11228 fi
11229 at_status=$?
11230 at_failed=false
11231 at_func_diff_devnull "$at_stderr" || at_failed=:
11232 echo >>"$at_stdout"; $as_echo "file1
11233 file2
11234 file3
11235 file4
11236 file5
11237 file6
11238 file7
11239 file8
11240 file9
11241 " | \
11242   $at_diff - "$at_stdout" || at_failed=:
11243 at_func_check_status 0 $at_status "$at_srcdir/delete04.at:26"
11244
11245 $at_failed && at_func_log_failure
11246 $at_traceon; }
11247
11248               { $at_traceoff
11249 $as_echo "$at_srcdir/delete04.at:26:
11250 mkdir ustar
11251 (cd ustar
11252 TEST_TAR_FORMAT=ustar
11253 export TEST_TAR_FORMAT
11254 TAR_OPTIONS=\"-H ustar\"
11255 export TAR_OPTIONS
11256 rm -rf *
11257
11258 genfile -l      3 -f file1
11259 genfile -l      5 -f file2
11260 genfile -l      3 -f file3
11261 genfile -l      6 -f file4
11262 genfile -l     24 -f file5
11263 genfile -l     13 -f file6
11264 genfile -l   1385 -f file7
11265 genfile -l     30 -f file8
11266 genfile -l     10 -f file9
11267 genfile -l 256000 -f file10
11268 tar cf archive file1 file2 file3 file4 file5 file6 file7 file8 file9 file10
11269 tar f archive --delete file10
11270 tar tf archive
11271 )"
11272 echo delete04.at:26 >"$at_check_line_file"
11273
11274 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
11275    false; }; then
11276   ( $at_traceon;
11277 mkdir ustar
11278 (cd ustar
11279 TEST_TAR_FORMAT=ustar
11280 export TEST_TAR_FORMAT
11281 TAR_OPTIONS="-H ustar"
11282 export TAR_OPTIONS
11283 rm -rf *
11284
11285 genfile -l      3 -f file1
11286 genfile -l      5 -f file2
11287 genfile -l      3 -f file3
11288 genfile -l      6 -f file4
11289 genfile -l     24 -f file5
11290 genfile -l     13 -f file6
11291 genfile -l   1385 -f file7
11292 genfile -l     30 -f file8
11293 genfile -l     10 -f file9
11294 genfile -l 256000 -f file10
11295 tar cf archive file1 file2 file3 file4 file5 file6 file7 file8 file9 file10
11296 tar f archive --delete file10
11297 tar tf archive
11298 ) ) >"$at_stdout" 2>"$at_stder1"
11299   at_func_filter_trace $?
11300 else
11301   ( :;
11302 mkdir ustar
11303 (cd ustar
11304 TEST_TAR_FORMAT=ustar
11305 export TEST_TAR_FORMAT
11306 TAR_OPTIONS="-H ustar"
11307 export TAR_OPTIONS
11308 rm -rf *
11309
11310 genfile -l      3 -f file1
11311 genfile -l      5 -f file2
11312 genfile -l      3 -f file3
11313 genfile -l      6 -f file4
11314 genfile -l     24 -f file5
11315 genfile -l     13 -f file6
11316 genfile -l   1385 -f file7
11317 genfile -l     30 -f file8
11318 genfile -l     10 -f file9
11319 genfile -l 256000 -f file10
11320 tar cf archive file1 file2 file3 file4 file5 file6 file7 file8 file9 file10
11321 tar f archive --delete file10
11322 tar tf archive
11323 ) ) >"$at_stdout" 2>"$at_stderr"
11324 fi
11325 at_status=$?
11326 at_failed=false
11327 at_func_diff_devnull "$at_stderr" || at_failed=:
11328 echo >>"$at_stdout"; $as_echo "file1
11329 file2
11330 file3
11331 file4
11332 file5
11333 file6
11334 file7
11335 file8
11336 file9
11337 " | \
11338   $at_diff - "$at_stdout" || at_failed=:
11339 at_func_check_status 0 $at_status "$at_srcdir/delete04.at:26"
11340
11341 $at_failed && at_func_log_failure
11342 $at_traceon; }
11343
11344               { $at_traceoff
11345 $as_echo "$at_srcdir/delete04.at:26:
11346 mkdir posix
11347 (cd posix
11348 TEST_TAR_FORMAT=posix
11349 export TEST_TAR_FORMAT
11350 TAR_OPTIONS=\"-H posix\"
11351 export TAR_OPTIONS
11352 rm -rf *
11353
11354 genfile -l      3 -f file1
11355 genfile -l      5 -f file2
11356 genfile -l      3 -f file3
11357 genfile -l      6 -f file4
11358 genfile -l     24 -f file5
11359 genfile -l     13 -f file6
11360 genfile -l   1385 -f file7
11361 genfile -l     30 -f file8
11362 genfile -l     10 -f file9
11363 genfile -l 256000 -f file10
11364 tar cf archive file1 file2 file3 file4 file5 file6 file7 file8 file9 file10
11365 tar f archive --delete file10
11366 tar tf archive
11367 )"
11368 echo delete04.at:26 >"$at_check_line_file"
11369
11370 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
11371    false; }; then
11372   ( $at_traceon;
11373 mkdir posix
11374 (cd posix
11375 TEST_TAR_FORMAT=posix
11376 export TEST_TAR_FORMAT
11377 TAR_OPTIONS="-H posix"
11378 export TAR_OPTIONS
11379 rm -rf *
11380
11381 genfile -l      3 -f file1
11382 genfile -l      5 -f file2
11383 genfile -l      3 -f file3
11384 genfile -l      6 -f file4
11385 genfile -l     24 -f file5
11386 genfile -l     13 -f file6
11387 genfile -l   1385 -f file7
11388 genfile -l     30 -f file8
11389 genfile -l     10 -f file9
11390 genfile -l 256000 -f file10
11391 tar cf archive file1 file2 file3 file4 file5 file6 file7 file8 file9 file10
11392 tar f archive --delete file10
11393 tar tf archive
11394 ) ) >"$at_stdout" 2>"$at_stder1"
11395   at_func_filter_trace $?
11396 else
11397   ( :;
11398 mkdir posix
11399 (cd posix
11400 TEST_TAR_FORMAT=posix
11401 export TEST_TAR_FORMAT
11402 TAR_OPTIONS="-H posix"
11403 export TAR_OPTIONS
11404 rm -rf *
11405
11406 genfile -l      3 -f file1
11407 genfile -l      5 -f file2
11408 genfile -l      3 -f file3
11409 genfile -l      6 -f file4
11410 genfile -l     24 -f file5
11411 genfile -l     13 -f file6
11412 genfile -l   1385 -f file7
11413 genfile -l     30 -f file8
11414 genfile -l     10 -f file9
11415 genfile -l 256000 -f file10
11416 tar cf archive file1 file2 file3 file4 file5 file6 file7 file8 file9 file10
11417 tar f archive --delete file10
11418 tar tf archive
11419 ) ) >"$at_stdout" 2>"$at_stderr"
11420 fi
11421 at_status=$?
11422 at_failed=false
11423 at_func_diff_devnull "$at_stderr" || at_failed=:
11424 echo >>"$at_stdout"; $as_echo "file1
11425 file2
11426 file3
11427 file4
11428 file5
11429 file6
11430 file7
11431 file8
11432 file9
11433 " | \
11434   $at_diff - "$at_stdout" || at_failed=:
11435 at_func_check_status 0 $at_status "$at_srcdir/delete04.at:26"
11436
11437 $at_failed && at_func_log_failure
11438 $at_traceon; }
11439
11440               { $at_traceoff
11441 $as_echo "$at_srcdir/delete04.at:26:
11442 mkdir gnu
11443 (cd gnu
11444 TEST_TAR_FORMAT=gnu
11445 export TEST_TAR_FORMAT
11446 TAR_OPTIONS=\"-H gnu\"
11447 export TAR_OPTIONS
11448 rm -rf *
11449
11450 genfile -l      3 -f file1
11451 genfile -l      5 -f file2
11452 genfile -l      3 -f file3
11453 genfile -l      6 -f file4
11454 genfile -l     24 -f file5
11455 genfile -l     13 -f file6
11456 genfile -l   1385 -f file7
11457 genfile -l     30 -f file8
11458 genfile -l     10 -f file9
11459 genfile -l 256000 -f file10
11460 tar cf archive file1 file2 file3 file4 file5 file6 file7 file8 file9 file10
11461 tar f archive --delete file10
11462 tar tf archive
11463 )"
11464 echo delete04.at:26 >"$at_check_line_file"
11465
11466 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
11467    false; }; then
11468   ( $at_traceon;
11469 mkdir gnu
11470 (cd gnu
11471 TEST_TAR_FORMAT=gnu
11472 export TEST_TAR_FORMAT
11473 TAR_OPTIONS="-H gnu"
11474 export TAR_OPTIONS
11475 rm -rf *
11476
11477 genfile -l      3 -f file1
11478 genfile -l      5 -f file2
11479 genfile -l      3 -f file3
11480 genfile -l      6 -f file4
11481 genfile -l     24 -f file5
11482 genfile -l     13 -f file6
11483 genfile -l   1385 -f file7
11484 genfile -l     30 -f file8
11485 genfile -l     10 -f file9
11486 genfile -l 256000 -f file10
11487 tar cf archive file1 file2 file3 file4 file5 file6 file7 file8 file9 file10
11488 tar f archive --delete file10
11489 tar tf archive
11490 ) ) >"$at_stdout" 2>"$at_stder1"
11491   at_func_filter_trace $?
11492 else
11493   ( :;
11494 mkdir gnu
11495 (cd gnu
11496 TEST_TAR_FORMAT=gnu
11497 export TEST_TAR_FORMAT
11498 TAR_OPTIONS="-H gnu"
11499 export TAR_OPTIONS
11500 rm -rf *
11501
11502 genfile -l      3 -f file1
11503 genfile -l      5 -f file2
11504 genfile -l      3 -f file3
11505 genfile -l      6 -f file4
11506 genfile -l     24 -f file5
11507 genfile -l     13 -f file6
11508 genfile -l   1385 -f file7
11509 genfile -l     30 -f file8
11510 genfile -l     10 -f file9
11511 genfile -l 256000 -f file10
11512 tar cf archive file1 file2 file3 file4 file5 file6 file7 file8 file9 file10
11513 tar f archive --delete file10
11514 tar tf archive
11515 ) ) >"$at_stdout" 2>"$at_stderr"
11516 fi
11517 at_status=$?
11518 at_failed=false
11519 at_func_diff_devnull "$at_stderr" || at_failed=:
11520 echo >>"$at_stdout"; $as_echo "file1
11521 file2
11522 file3
11523 file4
11524 file5
11525 file6
11526 file7
11527 file8
11528 file9
11529 " | \
11530   $at_diff - "$at_stdout" || at_failed=:
11531 at_func_check_status 0 $at_status "$at_srcdir/delete04.at:26"
11532
11533 $at_failed && at_func_log_failure
11534 $at_traceon; }
11535
11536
11537
11538
11539   $at_traceoff
11540   $at_times_p && times >"$at_times_file"
11541 ) 5>&1 2>&1 | eval $at_tee_pipe
11542 at_status=`cat "$at_status_file"`
11543 #AT_STOP_24
11544 #AT_START_25
11545 # 25. delete05.at:27: deleting non-existing member
11546 at_setup_line='delete05.at:27'
11547 at_desc="deleting non-existing member"
11548 $at_quiet $as_echo_n " 25: $at_desc                   "
11549 at_xfail=no
11550       test -f $XFAILFILE && at_xfail=yes
11551 echo "#                             -*- compilation -*-" >> "$at_group_log"
11552 (
11553   $as_echo "25. delete05.at:27: testing ..."
11554   $at_traceon
11555
11556
11557
11558
11559
11560   { $at_traceoff
11561 $as_echo "$at_srcdir/delete05.at:30:
11562 mkdir v7
11563 (cd v7
11564 TEST_TAR_FORMAT=v7
11565 export TEST_TAR_FORMAT
11566 TAR_OPTIONS=\"-H v7\"
11567 export TAR_OPTIONS
11568 rm -rf *
11569
11570 genfile -l 1024 -f en
11571 genfile -l 1024 -f to
11572
11573 tar cf archive en to
11574 # Make sure we don't use bogus blocking factor.
11575 # GNU tar up to and including 1.14.91 produced an empty archive this way:
11576 tar --file archive --blocking-factor=20 --delete tre
11577 tar tf archive
11578 )"
11579 echo delete05.at:30 >"$at_check_line_file"
11580
11581 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
11582    false; }; then
11583   ( $at_traceon;
11584 mkdir v7
11585 (cd v7
11586 TEST_TAR_FORMAT=v7
11587 export TEST_TAR_FORMAT
11588 TAR_OPTIONS="-H v7"
11589 export TAR_OPTIONS
11590 rm -rf *
11591
11592 genfile -l 1024 -f en
11593 genfile -l 1024 -f to
11594
11595 tar cf archive en to
11596 # Make sure we don't use bogus blocking factor.
11597 # GNU tar up to and including 1.14.91 produced an empty archive this way:
11598 tar --file archive --blocking-factor=20 --delete tre
11599 tar tf archive
11600 ) ) >"$at_stdout" 2>"$at_stder1"
11601   at_func_filter_trace $?
11602 else
11603   ( :;
11604 mkdir v7
11605 (cd v7
11606 TEST_TAR_FORMAT=v7
11607 export TEST_TAR_FORMAT
11608 TAR_OPTIONS="-H v7"
11609 export TAR_OPTIONS
11610 rm -rf *
11611
11612 genfile -l 1024 -f en
11613 genfile -l 1024 -f to
11614
11615 tar cf archive en to
11616 # Make sure we don't use bogus blocking factor.
11617 # GNU tar up to and including 1.14.91 produced an empty archive this way:
11618 tar --file archive --blocking-factor=20 --delete tre
11619 tar tf archive
11620 ) ) >"$at_stdout" 2>"$at_stderr"
11621 fi
11622 at_status=$?
11623 at_failed=false
11624 echo >>"$at_stderr"; $as_echo "tar: tre: Not found in archive
11625 tar: Exiting with failure status due to previous errors
11626 " | \
11627   $at_diff - "$at_stderr" || at_failed=:
11628 echo >>"$at_stdout"; $as_echo "en
11629 to
11630 " | \
11631   $at_diff - "$at_stdout" || at_failed=:
11632 at_func_check_status 0 $at_status "$at_srcdir/delete05.at:30"
11633
11634 $at_failed && at_func_log_failure
11635 $at_traceon; }
11636
11637               { $at_traceoff
11638 $as_echo "$at_srcdir/delete05.at:30:
11639 mkdir oldgnu
11640 (cd oldgnu
11641 TEST_TAR_FORMAT=oldgnu
11642 export TEST_TAR_FORMAT
11643 TAR_OPTIONS=\"-H oldgnu\"
11644 export TAR_OPTIONS
11645 rm -rf *
11646
11647 genfile -l 1024 -f en
11648 genfile -l 1024 -f to
11649
11650 tar cf archive en to
11651 # Make sure we don't use bogus blocking factor.
11652 # GNU tar up to and including 1.14.91 produced an empty archive this way:
11653 tar --file archive --blocking-factor=20 --delete tre
11654 tar tf archive
11655 )"
11656 echo delete05.at:30 >"$at_check_line_file"
11657
11658 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
11659    false; }; then
11660   ( $at_traceon;
11661 mkdir oldgnu
11662 (cd oldgnu
11663 TEST_TAR_FORMAT=oldgnu
11664 export TEST_TAR_FORMAT
11665 TAR_OPTIONS="-H oldgnu"
11666 export TAR_OPTIONS
11667 rm -rf *
11668
11669 genfile -l 1024 -f en
11670 genfile -l 1024 -f to
11671
11672 tar cf archive en to
11673 # Make sure we don't use bogus blocking factor.
11674 # GNU tar up to and including 1.14.91 produced an empty archive this way:
11675 tar --file archive --blocking-factor=20 --delete tre
11676 tar tf archive
11677 ) ) >"$at_stdout" 2>"$at_stder1"
11678   at_func_filter_trace $?
11679 else
11680   ( :;
11681 mkdir oldgnu
11682 (cd oldgnu
11683 TEST_TAR_FORMAT=oldgnu
11684 export TEST_TAR_FORMAT
11685 TAR_OPTIONS="-H oldgnu"
11686 export TAR_OPTIONS
11687 rm -rf *
11688
11689 genfile -l 1024 -f en
11690 genfile -l 1024 -f to
11691
11692 tar cf archive en to
11693 # Make sure we don't use bogus blocking factor.
11694 # GNU tar up to and including 1.14.91 produced an empty archive this way:
11695 tar --file archive --blocking-factor=20 --delete tre
11696 tar tf archive
11697 ) ) >"$at_stdout" 2>"$at_stderr"
11698 fi
11699 at_status=$?
11700 at_failed=false
11701 echo >>"$at_stderr"; $as_echo "tar: tre: Not found in archive
11702 tar: Exiting with failure status due to previous errors
11703 " | \
11704   $at_diff - "$at_stderr" || at_failed=:
11705 echo >>"$at_stdout"; $as_echo "en
11706 to
11707 " | \
11708   $at_diff - "$at_stdout" || at_failed=:
11709 at_func_check_status 0 $at_status "$at_srcdir/delete05.at:30"
11710
11711 $at_failed && at_func_log_failure
11712 $at_traceon; }
11713
11714               { $at_traceoff
11715 $as_echo "$at_srcdir/delete05.at:30:
11716 mkdir ustar
11717 (cd ustar
11718 TEST_TAR_FORMAT=ustar
11719 export TEST_TAR_FORMAT
11720 TAR_OPTIONS=\"-H ustar\"
11721 export TAR_OPTIONS
11722 rm -rf *
11723
11724 genfile -l 1024 -f en
11725 genfile -l 1024 -f to
11726
11727 tar cf archive en to
11728 # Make sure we don't use bogus blocking factor.
11729 # GNU tar up to and including 1.14.91 produced an empty archive this way:
11730 tar --file archive --blocking-factor=20 --delete tre
11731 tar tf archive
11732 )"
11733 echo delete05.at:30 >"$at_check_line_file"
11734
11735 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
11736    false; }; then
11737   ( $at_traceon;
11738 mkdir ustar
11739 (cd ustar
11740 TEST_TAR_FORMAT=ustar
11741 export TEST_TAR_FORMAT
11742 TAR_OPTIONS="-H ustar"
11743 export TAR_OPTIONS
11744 rm -rf *
11745
11746 genfile -l 1024 -f en
11747 genfile -l 1024 -f to
11748
11749 tar cf archive en to
11750 # Make sure we don't use bogus blocking factor.
11751 # GNU tar up to and including 1.14.91 produced an empty archive this way:
11752 tar --file archive --blocking-factor=20 --delete tre
11753 tar tf archive
11754 ) ) >"$at_stdout" 2>"$at_stder1"
11755   at_func_filter_trace $?
11756 else
11757   ( :;
11758 mkdir ustar
11759 (cd ustar
11760 TEST_TAR_FORMAT=ustar
11761 export TEST_TAR_FORMAT
11762 TAR_OPTIONS="-H ustar"
11763 export TAR_OPTIONS
11764 rm -rf *
11765
11766 genfile -l 1024 -f en
11767 genfile -l 1024 -f to
11768
11769 tar cf archive en to
11770 # Make sure we don't use bogus blocking factor.
11771 # GNU tar up to and including 1.14.91 produced an empty archive this way:
11772 tar --file archive --blocking-factor=20 --delete tre
11773 tar tf archive
11774 ) ) >"$at_stdout" 2>"$at_stderr"
11775 fi
11776 at_status=$?
11777 at_failed=false
11778 echo >>"$at_stderr"; $as_echo "tar: tre: Not found in archive
11779 tar: Exiting with failure status due to previous errors
11780 " | \
11781   $at_diff - "$at_stderr" || at_failed=:
11782 echo >>"$at_stdout"; $as_echo "en
11783 to
11784 " | \
11785   $at_diff - "$at_stdout" || at_failed=:
11786 at_func_check_status 0 $at_status "$at_srcdir/delete05.at:30"
11787
11788 $at_failed && at_func_log_failure
11789 $at_traceon; }
11790
11791               { $at_traceoff
11792 $as_echo "$at_srcdir/delete05.at:30:
11793 mkdir posix
11794 (cd posix
11795 TEST_TAR_FORMAT=posix
11796 export TEST_TAR_FORMAT
11797 TAR_OPTIONS=\"-H posix\"
11798 export TAR_OPTIONS
11799 rm -rf *
11800
11801 genfile -l 1024 -f en
11802 genfile -l 1024 -f to
11803
11804 tar cf archive en to
11805 # Make sure we don't use bogus blocking factor.
11806 # GNU tar up to and including 1.14.91 produced an empty archive this way:
11807 tar --file archive --blocking-factor=20 --delete tre
11808 tar tf archive
11809 )"
11810 echo delete05.at:30 >"$at_check_line_file"
11811
11812 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
11813    false; }; then
11814   ( $at_traceon;
11815 mkdir posix
11816 (cd posix
11817 TEST_TAR_FORMAT=posix
11818 export TEST_TAR_FORMAT
11819 TAR_OPTIONS="-H posix"
11820 export TAR_OPTIONS
11821 rm -rf *
11822
11823 genfile -l 1024 -f en
11824 genfile -l 1024 -f to
11825
11826 tar cf archive en to
11827 # Make sure we don't use bogus blocking factor.
11828 # GNU tar up to and including 1.14.91 produced an empty archive this way:
11829 tar --file archive --blocking-factor=20 --delete tre
11830 tar tf archive
11831 ) ) >"$at_stdout" 2>"$at_stder1"
11832   at_func_filter_trace $?
11833 else
11834   ( :;
11835 mkdir posix
11836 (cd posix
11837 TEST_TAR_FORMAT=posix
11838 export TEST_TAR_FORMAT
11839 TAR_OPTIONS="-H posix"
11840 export TAR_OPTIONS
11841 rm -rf *
11842
11843 genfile -l 1024 -f en
11844 genfile -l 1024 -f to
11845
11846 tar cf archive en to
11847 # Make sure we don't use bogus blocking factor.
11848 # GNU tar up to and including 1.14.91 produced an empty archive this way:
11849 tar --file archive --blocking-factor=20 --delete tre
11850 tar tf archive
11851 ) ) >"$at_stdout" 2>"$at_stderr"
11852 fi
11853 at_status=$?
11854 at_failed=false
11855 echo >>"$at_stderr"; $as_echo "tar: tre: Not found in archive
11856 tar: Exiting with failure status due to previous errors
11857 " | \
11858   $at_diff - "$at_stderr" || at_failed=:
11859 echo >>"$at_stdout"; $as_echo "en
11860 to
11861 " | \
11862   $at_diff - "$at_stdout" || at_failed=:
11863 at_func_check_status 0 $at_status "$at_srcdir/delete05.at:30"
11864
11865 $at_failed && at_func_log_failure
11866 $at_traceon; }
11867
11868               { $at_traceoff
11869 $as_echo "$at_srcdir/delete05.at:30:
11870 mkdir gnu
11871 (cd gnu
11872 TEST_TAR_FORMAT=gnu
11873 export TEST_TAR_FORMAT
11874 TAR_OPTIONS=\"-H gnu\"
11875 export TAR_OPTIONS
11876 rm -rf *
11877
11878 genfile -l 1024 -f en
11879 genfile -l 1024 -f to
11880
11881 tar cf archive en to
11882 # Make sure we don't use bogus blocking factor.
11883 # GNU tar up to and including 1.14.91 produced an empty archive this way:
11884 tar --file archive --blocking-factor=20 --delete tre
11885 tar tf archive
11886 )"
11887 echo delete05.at:30 >"$at_check_line_file"
11888
11889 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
11890    false; }; then
11891   ( $at_traceon;
11892 mkdir gnu
11893 (cd gnu
11894 TEST_TAR_FORMAT=gnu
11895 export TEST_TAR_FORMAT
11896 TAR_OPTIONS="-H gnu"
11897 export TAR_OPTIONS
11898 rm -rf *
11899
11900 genfile -l 1024 -f en
11901 genfile -l 1024 -f to
11902
11903 tar cf archive en to
11904 # Make sure we don't use bogus blocking factor.
11905 # GNU tar up to and including 1.14.91 produced an empty archive this way:
11906 tar --file archive --blocking-factor=20 --delete tre
11907 tar tf archive
11908 ) ) >"$at_stdout" 2>"$at_stder1"
11909   at_func_filter_trace $?
11910 else
11911   ( :;
11912 mkdir gnu
11913 (cd gnu
11914 TEST_TAR_FORMAT=gnu
11915 export TEST_TAR_FORMAT
11916 TAR_OPTIONS="-H gnu"
11917 export TAR_OPTIONS
11918 rm -rf *
11919
11920 genfile -l 1024 -f en
11921 genfile -l 1024 -f to
11922
11923 tar cf archive en to
11924 # Make sure we don't use bogus blocking factor.
11925 # GNU tar up to and including 1.14.91 produced an empty archive this way:
11926 tar --file archive --blocking-factor=20 --delete tre
11927 tar tf archive
11928 ) ) >"$at_stdout" 2>"$at_stderr"
11929 fi
11930 at_status=$?
11931 at_failed=false
11932 echo >>"$at_stderr"; $as_echo "tar: tre: Not found in archive
11933 tar: Exiting with failure status due to previous errors
11934 " | \
11935   $at_diff - "$at_stderr" || at_failed=:
11936 echo >>"$at_stdout"; $as_echo "en
11937 to
11938 " | \
11939   $at_diff - "$at_stdout" || at_failed=:
11940 at_func_check_status 0 $at_status "$at_srcdir/delete05.at:30"
11941
11942 $at_failed && at_func_log_failure
11943 $at_traceon; }
11944
11945
11946
11947
11948   $at_traceoff
11949   $at_times_p && times >"$at_times_file"
11950 ) 5>&1 2>&1 | eval $at_tee_pipe
11951 at_status=`cat "$at_status_file"`
11952 #AT_STOP_25
11953 #AT_START_26
11954 # 26. extrac01.at:23: extract over an existing directory
11955 at_setup_line='extrac01.at:23'
11956 at_desc="extract over an existing directory"
11957 $at_quiet $as_echo_n " 26: $at_desc             "
11958 at_xfail=no
11959       test -f $XFAILFILE && at_xfail=yes
11960 echo "#                             -*- compilation -*-" >> "$at_group_log"
11961 (
11962   $as_echo "26. extrac01.at:23: testing ..."
11963   $at_traceon
11964
11965
11966
11967
11968
11969   { $at_traceoff
11970 $as_echo "$at_srcdir/extrac01.at:26:
11971 mkdir v7
11972 (cd v7
11973 TEST_TAR_FORMAT=v7
11974 export TEST_TAR_FORMAT
11975 TAR_OPTIONS=\"-H v7\"
11976 export TAR_OPTIONS
11977 rm -rf *
11978
11979 mkdir directory
11980 touch directory/file
11981 tar cf archive directory || exit 1
11982 tar xf archive --warning=no-timestamp || exit 1
11983 )"
11984 echo extrac01.at:26 >"$at_check_line_file"
11985
11986 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
11987    false; }; then
11988   ( $at_traceon;
11989 mkdir v7
11990 (cd v7
11991 TEST_TAR_FORMAT=v7
11992 export TEST_TAR_FORMAT
11993 TAR_OPTIONS="-H v7"
11994 export TAR_OPTIONS
11995 rm -rf *
11996
11997 mkdir directory
11998 touch directory/file
11999 tar cf archive directory || exit 1
12000 tar xf archive --warning=no-timestamp || exit 1
12001 ) ) >"$at_stdout" 2>"$at_stder1"
12002   at_func_filter_trace $?
12003 else
12004   ( :;
12005 mkdir v7
12006 (cd v7
12007 TEST_TAR_FORMAT=v7
12008 export TEST_TAR_FORMAT
12009 TAR_OPTIONS="-H v7"
12010 export TAR_OPTIONS
12011 rm -rf *
12012
12013 mkdir directory
12014 touch directory/file
12015 tar cf archive directory || exit 1
12016 tar xf archive --warning=no-timestamp || exit 1
12017 ) ) >"$at_stdout" 2>"$at_stderr"
12018 fi
12019 at_status=$?
12020 at_failed=false
12021 at_func_diff_devnull "$at_stderr" || at_failed=:
12022 at_func_diff_devnull "$at_stdout" || at_failed=:
12023 at_func_check_status 0 $at_status "$at_srcdir/extrac01.at:26"
12024
12025 $at_failed && at_func_log_failure
12026 $at_traceon; }
12027
12028               { $at_traceoff
12029 $as_echo "$at_srcdir/extrac01.at:26:
12030 mkdir oldgnu
12031 (cd oldgnu
12032 TEST_TAR_FORMAT=oldgnu
12033 export TEST_TAR_FORMAT
12034 TAR_OPTIONS=\"-H oldgnu\"
12035 export TAR_OPTIONS
12036 rm -rf *
12037
12038 mkdir directory
12039 touch directory/file
12040 tar cf archive directory || exit 1
12041 tar xf archive --warning=no-timestamp || exit 1
12042 )"
12043 echo extrac01.at:26 >"$at_check_line_file"
12044
12045 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
12046    false; }; then
12047   ( $at_traceon;
12048 mkdir oldgnu
12049 (cd oldgnu
12050 TEST_TAR_FORMAT=oldgnu
12051 export TEST_TAR_FORMAT
12052 TAR_OPTIONS="-H oldgnu"
12053 export TAR_OPTIONS
12054 rm -rf *
12055
12056 mkdir directory
12057 touch directory/file
12058 tar cf archive directory || exit 1
12059 tar xf archive --warning=no-timestamp || exit 1
12060 ) ) >"$at_stdout" 2>"$at_stder1"
12061   at_func_filter_trace $?
12062 else
12063   ( :;
12064 mkdir oldgnu
12065 (cd oldgnu
12066 TEST_TAR_FORMAT=oldgnu
12067 export TEST_TAR_FORMAT
12068 TAR_OPTIONS="-H oldgnu"
12069 export TAR_OPTIONS
12070 rm -rf *
12071
12072 mkdir directory
12073 touch directory/file
12074 tar cf archive directory || exit 1
12075 tar xf archive --warning=no-timestamp || exit 1
12076 ) ) >"$at_stdout" 2>"$at_stderr"
12077 fi
12078 at_status=$?
12079 at_failed=false
12080 at_func_diff_devnull "$at_stderr" || at_failed=:
12081 at_func_diff_devnull "$at_stdout" || at_failed=:
12082 at_func_check_status 0 $at_status "$at_srcdir/extrac01.at:26"
12083
12084 $at_failed && at_func_log_failure
12085 $at_traceon; }
12086
12087               { $at_traceoff
12088 $as_echo "$at_srcdir/extrac01.at:26:
12089 mkdir ustar
12090 (cd ustar
12091 TEST_TAR_FORMAT=ustar
12092 export TEST_TAR_FORMAT
12093 TAR_OPTIONS=\"-H ustar\"
12094 export TAR_OPTIONS
12095 rm -rf *
12096
12097 mkdir directory
12098 touch directory/file
12099 tar cf archive directory || exit 1
12100 tar xf archive --warning=no-timestamp || exit 1
12101 )"
12102 echo extrac01.at:26 >"$at_check_line_file"
12103
12104 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
12105    false; }; then
12106   ( $at_traceon;
12107 mkdir ustar
12108 (cd ustar
12109 TEST_TAR_FORMAT=ustar
12110 export TEST_TAR_FORMAT
12111 TAR_OPTIONS="-H ustar"
12112 export TAR_OPTIONS
12113 rm -rf *
12114
12115 mkdir directory
12116 touch directory/file
12117 tar cf archive directory || exit 1
12118 tar xf archive --warning=no-timestamp || exit 1
12119 ) ) >"$at_stdout" 2>"$at_stder1"
12120   at_func_filter_trace $?
12121 else
12122   ( :;
12123 mkdir ustar
12124 (cd ustar
12125 TEST_TAR_FORMAT=ustar
12126 export TEST_TAR_FORMAT
12127 TAR_OPTIONS="-H ustar"
12128 export TAR_OPTIONS
12129 rm -rf *
12130
12131 mkdir directory
12132 touch directory/file
12133 tar cf archive directory || exit 1
12134 tar xf archive --warning=no-timestamp || exit 1
12135 ) ) >"$at_stdout" 2>"$at_stderr"
12136 fi
12137 at_status=$?
12138 at_failed=false
12139 at_func_diff_devnull "$at_stderr" || at_failed=:
12140 at_func_diff_devnull "$at_stdout" || at_failed=:
12141 at_func_check_status 0 $at_status "$at_srcdir/extrac01.at:26"
12142
12143 $at_failed && at_func_log_failure
12144 $at_traceon; }
12145
12146               { $at_traceoff
12147 $as_echo "$at_srcdir/extrac01.at:26:
12148 mkdir posix
12149 (cd posix
12150 TEST_TAR_FORMAT=posix
12151 export TEST_TAR_FORMAT
12152 TAR_OPTIONS=\"-H posix\"
12153 export TAR_OPTIONS
12154 rm -rf *
12155
12156 mkdir directory
12157 touch directory/file
12158 tar cf archive directory || exit 1
12159 tar xf archive --warning=no-timestamp || exit 1
12160 )"
12161 echo extrac01.at:26 >"$at_check_line_file"
12162
12163 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
12164    false; }; then
12165   ( $at_traceon;
12166 mkdir posix
12167 (cd posix
12168 TEST_TAR_FORMAT=posix
12169 export TEST_TAR_FORMAT
12170 TAR_OPTIONS="-H posix"
12171 export TAR_OPTIONS
12172 rm -rf *
12173
12174 mkdir directory
12175 touch directory/file
12176 tar cf archive directory || exit 1
12177 tar xf archive --warning=no-timestamp || exit 1
12178 ) ) >"$at_stdout" 2>"$at_stder1"
12179   at_func_filter_trace $?
12180 else
12181   ( :;
12182 mkdir posix
12183 (cd posix
12184 TEST_TAR_FORMAT=posix
12185 export TEST_TAR_FORMAT
12186 TAR_OPTIONS="-H posix"
12187 export TAR_OPTIONS
12188 rm -rf *
12189
12190 mkdir directory
12191 touch directory/file
12192 tar cf archive directory || exit 1
12193 tar xf archive --warning=no-timestamp || exit 1
12194 ) ) >"$at_stdout" 2>"$at_stderr"
12195 fi
12196 at_status=$?
12197 at_failed=false
12198 at_func_diff_devnull "$at_stderr" || at_failed=:
12199 at_func_diff_devnull "$at_stdout" || at_failed=:
12200 at_func_check_status 0 $at_status "$at_srcdir/extrac01.at:26"
12201
12202 $at_failed && at_func_log_failure
12203 $at_traceon; }
12204
12205               { $at_traceoff
12206 $as_echo "$at_srcdir/extrac01.at:26:
12207 mkdir gnu
12208 (cd gnu
12209 TEST_TAR_FORMAT=gnu
12210 export TEST_TAR_FORMAT
12211 TAR_OPTIONS=\"-H gnu\"
12212 export TAR_OPTIONS
12213 rm -rf *
12214
12215 mkdir directory
12216 touch directory/file
12217 tar cf archive directory || exit 1
12218 tar xf archive --warning=no-timestamp || exit 1
12219 )"
12220 echo extrac01.at:26 >"$at_check_line_file"
12221
12222 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
12223    false; }; then
12224   ( $at_traceon;
12225 mkdir gnu
12226 (cd gnu
12227 TEST_TAR_FORMAT=gnu
12228 export TEST_TAR_FORMAT
12229 TAR_OPTIONS="-H gnu"
12230 export TAR_OPTIONS
12231 rm -rf *
12232
12233 mkdir directory
12234 touch directory/file
12235 tar cf archive directory || exit 1
12236 tar xf archive --warning=no-timestamp || exit 1
12237 ) ) >"$at_stdout" 2>"$at_stder1"
12238   at_func_filter_trace $?
12239 else
12240   ( :;
12241 mkdir gnu
12242 (cd gnu
12243 TEST_TAR_FORMAT=gnu
12244 export TEST_TAR_FORMAT
12245 TAR_OPTIONS="-H gnu"
12246 export TAR_OPTIONS
12247 rm -rf *
12248
12249 mkdir directory
12250 touch directory/file
12251 tar cf archive directory || exit 1
12252 tar xf archive --warning=no-timestamp || exit 1
12253 ) ) >"$at_stdout" 2>"$at_stderr"
12254 fi
12255 at_status=$?
12256 at_failed=false
12257 at_func_diff_devnull "$at_stderr" || at_failed=:
12258 at_func_diff_devnull "$at_stdout" || at_failed=:
12259 at_func_check_status 0 $at_status "$at_srcdir/extrac01.at:26"
12260
12261 $at_failed && at_func_log_failure
12262 $at_traceon; }
12263
12264
12265
12266
12267   $at_traceoff
12268   $at_times_p && times >"$at_times_file"
12269 ) 5>&1 2>&1 | eval $at_tee_pipe
12270 at_status=`cat "$at_status_file"`
12271 #AT_STOP_26
12272 #AT_START_27
12273 # 27. extrac02.at:23: extracting symlinks over an existing file
12274 at_setup_line='extrac02.at:23'
12275 at_desc="extracting symlinks over an existing file"
12276 $at_quiet $as_echo_n " 27: $at_desc      "
12277 at_xfail=no
12278       test -f $XFAILFILE && at_xfail=yes
12279 echo "#                             -*- compilation -*-" >> "$at_group_log"
12280 (
12281   $as_echo "27. extrac02.at:23: testing ..."
12282   $at_traceon
12283
12284
12285
12286 # FIXME: Skip if symlinks are not supported on the system
12287
12288
12289
12290   { $at_traceoff
12291 $as_echo "$at_srcdir/extrac02.at:28:
12292 mkdir v7
12293 (cd v7
12294 TEST_TAR_FORMAT=v7
12295 export TEST_TAR_FORMAT
12296 TAR_OPTIONS=\"-H v7\"
12297 export TAR_OPTIONS
12298 rm -rf *
12299
12300 touch file
12301 ln -s file link 2> /dev/null || ln file link
12302 tar cf archive link
12303 rm link
12304 touch link
12305 tar xf archive
12306 )"
12307 echo extrac02.at:28 >"$at_check_line_file"
12308
12309 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
12310    false; }; then
12311   ( $at_traceon;
12312 mkdir v7
12313 (cd v7
12314 TEST_TAR_FORMAT=v7
12315 export TEST_TAR_FORMAT
12316 TAR_OPTIONS="-H v7"
12317 export TAR_OPTIONS
12318 rm -rf *
12319
12320 touch file
12321 ln -s file link 2> /dev/null || ln file link
12322 tar cf archive link
12323 rm link
12324 touch link
12325 tar xf archive
12326 ) ) >"$at_stdout" 2>"$at_stder1"
12327   at_func_filter_trace $?
12328 else
12329   ( :;
12330 mkdir v7
12331 (cd v7
12332 TEST_TAR_FORMAT=v7
12333 export TEST_TAR_FORMAT
12334 TAR_OPTIONS="-H v7"
12335 export TAR_OPTIONS
12336 rm -rf *
12337
12338 touch file
12339 ln -s file link 2> /dev/null || ln file link
12340 tar cf archive link
12341 rm link
12342 touch link
12343 tar xf archive
12344 ) ) >"$at_stdout" 2>"$at_stderr"
12345 fi
12346 at_status=$?
12347 at_failed=false
12348 at_func_diff_devnull "$at_stderr" || at_failed=:
12349 at_func_diff_devnull "$at_stdout" || at_failed=:
12350 at_func_check_status 0 $at_status "$at_srcdir/extrac02.at:28"
12351
12352 $at_failed && at_func_log_failure
12353 $at_traceon; }
12354
12355               { $at_traceoff
12356 $as_echo "$at_srcdir/extrac02.at:28:
12357 mkdir oldgnu
12358 (cd oldgnu
12359 TEST_TAR_FORMAT=oldgnu
12360 export TEST_TAR_FORMAT
12361 TAR_OPTIONS=\"-H oldgnu\"
12362 export TAR_OPTIONS
12363 rm -rf *
12364
12365 touch file
12366 ln -s file link 2> /dev/null || ln file link
12367 tar cf archive link
12368 rm link
12369 touch link
12370 tar xf archive
12371 )"
12372 echo extrac02.at:28 >"$at_check_line_file"
12373
12374 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
12375    false; }; then
12376   ( $at_traceon;
12377 mkdir oldgnu
12378 (cd oldgnu
12379 TEST_TAR_FORMAT=oldgnu
12380 export TEST_TAR_FORMAT
12381 TAR_OPTIONS="-H oldgnu"
12382 export TAR_OPTIONS
12383 rm -rf *
12384
12385 touch file
12386 ln -s file link 2> /dev/null || ln file link
12387 tar cf archive link
12388 rm link
12389 touch link
12390 tar xf archive
12391 ) ) >"$at_stdout" 2>"$at_stder1"
12392   at_func_filter_trace $?
12393 else
12394   ( :;
12395 mkdir oldgnu
12396 (cd oldgnu
12397 TEST_TAR_FORMAT=oldgnu
12398 export TEST_TAR_FORMAT
12399 TAR_OPTIONS="-H oldgnu"
12400 export TAR_OPTIONS
12401 rm -rf *
12402
12403 touch file
12404 ln -s file link 2> /dev/null || ln file link
12405 tar cf archive link
12406 rm link
12407 touch link
12408 tar xf archive
12409 ) ) >"$at_stdout" 2>"$at_stderr"
12410 fi
12411 at_status=$?
12412 at_failed=false
12413 at_func_diff_devnull "$at_stderr" || at_failed=:
12414 at_func_diff_devnull "$at_stdout" || at_failed=:
12415 at_func_check_status 0 $at_status "$at_srcdir/extrac02.at:28"
12416
12417 $at_failed && at_func_log_failure
12418 $at_traceon; }
12419
12420               { $at_traceoff
12421 $as_echo "$at_srcdir/extrac02.at:28:
12422 mkdir ustar
12423 (cd ustar
12424 TEST_TAR_FORMAT=ustar
12425 export TEST_TAR_FORMAT
12426 TAR_OPTIONS=\"-H ustar\"
12427 export TAR_OPTIONS
12428 rm -rf *
12429
12430 touch file
12431 ln -s file link 2> /dev/null || ln file link
12432 tar cf archive link
12433 rm link
12434 touch link
12435 tar xf archive
12436 )"
12437 echo extrac02.at:28 >"$at_check_line_file"
12438
12439 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
12440    false; }; then
12441   ( $at_traceon;
12442 mkdir ustar
12443 (cd ustar
12444 TEST_TAR_FORMAT=ustar
12445 export TEST_TAR_FORMAT
12446 TAR_OPTIONS="-H ustar"
12447 export TAR_OPTIONS
12448 rm -rf *
12449
12450 touch file
12451 ln -s file link 2> /dev/null || ln file link
12452 tar cf archive link
12453 rm link
12454 touch link
12455 tar xf archive
12456 ) ) >"$at_stdout" 2>"$at_stder1"
12457   at_func_filter_trace $?
12458 else
12459   ( :;
12460 mkdir ustar
12461 (cd ustar
12462 TEST_TAR_FORMAT=ustar
12463 export TEST_TAR_FORMAT
12464 TAR_OPTIONS="-H ustar"
12465 export TAR_OPTIONS
12466 rm -rf *
12467
12468 touch file
12469 ln -s file link 2> /dev/null || ln file link
12470 tar cf archive link
12471 rm link
12472 touch link
12473 tar xf archive
12474 ) ) >"$at_stdout" 2>"$at_stderr"
12475 fi
12476 at_status=$?
12477 at_failed=false
12478 at_func_diff_devnull "$at_stderr" || at_failed=:
12479 at_func_diff_devnull "$at_stdout" || at_failed=:
12480 at_func_check_status 0 $at_status "$at_srcdir/extrac02.at:28"
12481
12482 $at_failed && at_func_log_failure
12483 $at_traceon; }
12484
12485               { $at_traceoff
12486 $as_echo "$at_srcdir/extrac02.at:28:
12487 mkdir posix
12488 (cd posix
12489 TEST_TAR_FORMAT=posix
12490 export TEST_TAR_FORMAT
12491 TAR_OPTIONS=\"-H posix\"
12492 export TAR_OPTIONS
12493 rm -rf *
12494
12495 touch file
12496 ln -s file link 2> /dev/null || ln file link
12497 tar cf archive link
12498 rm link
12499 touch link
12500 tar xf archive
12501 )"
12502 echo extrac02.at:28 >"$at_check_line_file"
12503
12504 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
12505    false; }; then
12506   ( $at_traceon;
12507 mkdir posix
12508 (cd posix
12509 TEST_TAR_FORMAT=posix
12510 export TEST_TAR_FORMAT
12511 TAR_OPTIONS="-H posix"
12512 export TAR_OPTIONS
12513 rm -rf *
12514
12515 touch file
12516 ln -s file link 2> /dev/null || ln file link
12517 tar cf archive link
12518 rm link
12519 touch link
12520 tar xf archive
12521 ) ) >"$at_stdout" 2>"$at_stder1"
12522   at_func_filter_trace $?
12523 else
12524   ( :;
12525 mkdir posix
12526 (cd posix
12527 TEST_TAR_FORMAT=posix
12528 export TEST_TAR_FORMAT
12529 TAR_OPTIONS="-H posix"
12530 export TAR_OPTIONS
12531 rm -rf *
12532
12533 touch file
12534 ln -s file link 2> /dev/null || ln file link
12535 tar cf archive link
12536 rm link
12537 touch link
12538 tar xf archive
12539 ) ) >"$at_stdout" 2>"$at_stderr"
12540 fi
12541 at_status=$?
12542 at_failed=false
12543 at_func_diff_devnull "$at_stderr" || at_failed=:
12544 at_func_diff_devnull "$at_stdout" || at_failed=:
12545 at_func_check_status 0 $at_status "$at_srcdir/extrac02.at:28"
12546
12547 $at_failed && at_func_log_failure
12548 $at_traceon; }
12549
12550               { $at_traceoff
12551 $as_echo "$at_srcdir/extrac02.at:28:
12552 mkdir gnu
12553 (cd gnu
12554 TEST_TAR_FORMAT=gnu
12555 export TEST_TAR_FORMAT
12556 TAR_OPTIONS=\"-H gnu\"
12557 export TAR_OPTIONS
12558 rm -rf *
12559
12560 touch file
12561 ln -s file link 2> /dev/null || ln file link
12562 tar cf archive link
12563 rm link
12564 touch link
12565 tar xf archive
12566 )"
12567 echo extrac02.at:28 >"$at_check_line_file"
12568
12569 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
12570    false; }; then
12571   ( $at_traceon;
12572 mkdir gnu
12573 (cd gnu
12574 TEST_TAR_FORMAT=gnu
12575 export TEST_TAR_FORMAT
12576 TAR_OPTIONS="-H gnu"
12577 export TAR_OPTIONS
12578 rm -rf *
12579
12580 touch file
12581 ln -s file link 2> /dev/null || ln file link
12582 tar cf archive link
12583 rm link
12584 touch link
12585 tar xf archive
12586 ) ) >"$at_stdout" 2>"$at_stder1"
12587   at_func_filter_trace $?
12588 else
12589   ( :;
12590 mkdir gnu
12591 (cd gnu
12592 TEST_TAR_FORMAT=gnu
12593 export TEST_TAR_FORMAT
12594 TAR_OPTIONS="-H gnu"
12595 export TAR_OPTIONS
12596 rm -rf *
12597
12598 touch file
12599 ln -s file link 2> /dev/null || ln file link
12600 tar cf archive link
12601 rm link
12602 touch link
12603 tar xf archive
12604 ) ) >"$at_stdout" 2>"$at_stderr"
12605 fi
12606 at_status=$?
12607 at_failed=false
12608 at_func_diff_devnull "$at_stderr" || at_failed=:
12609 at_func_diff_devnull "$at_stdout" || at_failed=:
12610 at_func_check_status 0 $at_status "$at_srcdir/extrac02.at:28"
12611
12612 $at_failed && at_func_log_failure
12613 $at_traceon; }
12614
12615
12616
12617
12618   $at_traceoff
12619   $at_times_p && times >"$at_times_file"
12620 ) 5>&1 2>&1 | eval $at_tee_pipe
12621 at_status=`cat "$at_status_file"`
12622 #AT_STOP_27
12623 #AT_START_28
12624 # 28. extrac03.at:23: extraction loops
12625 at_setup_line='extrac03.at:23'
12626 at_desc="extraction loops"
12627 $at_quiet $as_echo_n " 28: $at_desc                               "
12628 at_xfail=no
12629       test -f $XFAILFILE && at_xfail=yes
12630 echo "#                             -*- compilation -*-" >> "$at_group_log"
12631 (
12632   $as_echo "28. extrac03.at:23: testing ..."
12633   $at_traceon
12634
12635
12636
12637
12638
12639   { $at_traceoff
12640 $as_echo "$at_srcdir/extrac03.at:26:
12641 mkdir v7
12642 (cd v7
12643 TEST_TAR_FORMAT=v7
12644 export TEST_TAR_FORMAT
12645 TAR_OPTIONS=\"-H v7\"
12646 export TAR_OPTIONS
12647 rm -rf *
12648
12649 mkdir directory
12650 tar -cPvf archive directory/../directory
12651 echo separator
12652 tar -xPvf archive --warning=no-timestamp)"
12653 echo extrac03.at:26 >"$at_check_line_file"
12654
12655 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
12656    false; }; then
12657   ( $at_traceon;
12658 mkdir v7
12659 (cd v7
12660 TEST_TAR_FORMAT=v7
12661 export TEST_TAR_FORMAT
12662 TAR_OPTIONS="-H v7"
12663 export TAR_OPTIONS
12664 rm -rf *
12665
12666 mkdir directory
12667 tar -cPvf archive directory/../directory
12668 echo separator
12669 tar -xPvf archive --warning=no-timestamp) ) >"$at_stdout" 2>"$at_stder1"
12670   at_func_filter_trace $?
12671 else
12672   ( :;
12673 mkdir v7
12674 (cd v7
12675 TEST_TAR_FORMAT=v7
12676 export TEST_TAR_FORMAT
12677 TAR_OPTIONS="-H v7"
12678 export TAR_OPTIONS
12679 rm -rf *
12680
12681 mkdir directory
12682 tar -cPvf archive directory/../directory
12683 echo separator
12684 tar -xPvf archive --warning=no-timestamp) ) >"$at_stdout" 2>"$at_stderr"
12685 fi
12686 at_status=$?
12687 at_failed=false
12688 at_func_diff_devnull "$at_stderr" || at_failed=:
12689 echo >>"$at_stdout"; $as_echo "directory/../directory/
12690 separator
12691 directory/../directory/
12692 " | \
12693   $at_diff - "$at_stdout" || at_failed=:
12694 at_func_check_status 0 $at_status "$at_srcdir/extrac03.at:26"
12695
12696 $at_failed && at_func_log_failure
12697 $at_traceon; }
12698
12699               { $at_traceoff
12700 $as_echo "$at_srcdir/extrac03.at:26:
12701 mkdir oldgnu
12702 (cd oldgnu
12703 TEST_TAR_FORMAT=oldgnu
12704 export TEST_TAR_FORMAT
12705 TAR_OPTIONS=\"-H oldgnu\"
12706 export TAR_OPTIONS
12707 rm -rf *
12708
12709 mkdir directory
12710 tar -cPvf archive directory/../directory
12711 echo separator
12712 tar -xPvf archive --warning=no-timestamp)"
12713 echo extrac03.at:26 >"$at_check_line_file"
12714
12715 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
12716    false; }; then
12717   ( $at_traceon;
12718 mkdir oldgnu
12719 (cd oldgnu
12720 TEST_TAR_FORMAT=oldgnu
12721 export TEST_TAR_FORMAT
12722 TAR_OPTIONS="-H oldgnu"
12723 export TAR_OPTIONS
12724 rm -rf *
12725
12726 mkdir directory
12727 tar -cPvf archive directory/../directory
12728 echo separator
12729 tar -xPvf archive --warning=no-timestamp) ) >"$at_stdout" 2>"$at_stder1"
12730   at_func_filter_trace $?
12731 else
12732   ( :;
12733 mkdir oldgnu
12734 (cd oldgnu
12735 TEST_TAR_FORMAT=oldgnu
12736 export TEST_TAR_FORMAT
12737 TAR_OPTIONS="-H oldgnu"
12738 export TAR_OPTIONS
12739 rm -rf *
12740
12741 mkdir directory
12742 tar -cPvf archive directory/../directory
12743 echo separator
12744 tar -xPvf archive --warning=no-timestamp) ) >"$at_stdout" 2>"$at_stderr"
12745 fi
12746 at_status=$?
12747 at_failed=false
12748 at_func_diff_devnull "$at_stderr" || at_failed=:
12749 echo >>"$at_stdout"; $as_echo "directory/../directory/
12750 separator
12751 directory/../directory/
12752 " | \
12753   $at_diff - "$at_stdout" || at_failed=:
12754 at_func_check_status 0 $at_status "$at_srcdir/extrac03.at:26"
12755
12756 $at_failed && at_func_log_failure
12757 $at_traceon; }
12758
12759               { $at_traceoff
12760 $as_echo "$at_srcdir/extrac03.at:26:
12761 mkdir ustar
12762 (cd ustar
12763 TEST_TAR_FORMAT=ustar
12764 export TEST_TAR_FORMAT
12765 TAR_OPTIONS=\"-H ustar\"
12766 export TAR_OPTIONS
12767 rm -rf *
12768
12769 mkdir directory
12770 tar -cPvf archive directory/../directory
12771 echo separator
12772 tar -xPvf archive --warning=no-timestamp)"
12773 echo extrac03.at:26 >"$at_check_line_file"
12774
12775 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
12776    false; }; then
12777   ( $at_traceon;
12778 mkdir ustar
12779 (cd ustar
12780 TEST_TAR_FORMAT=ustar
12781 export TEST_TAR_FORMAT
12782 TAR_OPTIONS="-H ustar"
12783 export TAR_OPTIONS
12784 rm -rf *
12785
12786 mkdir directory
12787 tar -cPvf archive directory/../directory
12788 echo separator
12789 tar -xPvf archive --warning=no-timestamp) ) >"$at_stdout" 2>"$at_stder1"
12790   at_func_filter_trace $?
12791 else
12792   ( :;
12793 mkdir ustar
12794 (cd ustar
12795 TEST_TAR_FORMAT=ustar
12796 export TEST_TAR_FORMAT
12797 TAR_OPTIONS="-H ustar"
12798 export TAR_OPTIONS
12799 rm -rf *
12800
12801 mkdir directory
12802 tar -cPvf archive directory/../directory
12803 echo separator
12804 tar -xPvf archive --warning=no-timestamp) ) >"$at_stdout" 2>"$at_stderr"
12805 fi
12806 at_status=$?
12807 at_failed=false
12808 at_func_diff_devnull "$at_stderr" || at_failed=:
12809 echo >>"$at_stdout"; $as_echo "directory/../directory/
12810 separator
12811 directory/../directory/
12812 " | \
12813   $at_diff - "$at_stdout" || at_failed=:
12814 at_func_check_status 0 $at_status "$at_srcdir/extrac03.at:26"
12815
12816 $at_failed && at_func_log_failure
12817 $at_traceon; }
12818
12819               { $at_traceoff
12820 $as_echo "$at_srcdir/extrac03.at:26:
12821 mkdir posix
12822 (cd posix
12823 TEST_TAR_FORMAT=posix
12824 export TEST_TAR_FORMAT
12825 TAR_OPTIONS=\"-H posix\"
12826 export TAR_OPTIONS
12827 rm -rf *
12828
12829 mkdir directory
12830 tar -cPvf archive directory/../directory
12831 echo separator
12832 tar -xPvf archive --warning=no-timestamp)"
12833 echo extrac03.at:26 >"$at_check_line_file"
12834
12835 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
12836    false; }; then
12837   ( $at_traceon;
12838 mkdir posix
12839 (cd posix
12840 TEST_TAR_FORMAT=posix
12841 export TEST_TAR_FORMAT
12842 TAR_OPTIONS="-H posix"
12843 export TAR_OPTIONS
12844 rm -rf *
12845
12846 mkdir directory
12847 tar -cPvf archive directory/../directory
12848 echo separator
12849 tar -xPvf archive --warning=no-timestamp) ) >"$at_stdout" 2>"$at_stder1"
12850   at_func_filter_trace $?
12851 else
12852   ( :;
12853 mkdir posix
12854 (cd posix
12855 TEST_TAR_FORMAT=posix
12856 export TEST_TAR_FORMAT
12857 TAR_OPTIONS="-H posix"
12858 export TAR_OPTIONS
12859 rm -rf *
12860
12861 mkdir directory
12862 tar -cPvf archive directory/../directory
12863 echo separator
12864 tar -xPvf archive --warning=no-timestamp) ) >"$at_stdout" 2>"$at_stderr"
12865 fi
12866 at_status=$?
12867 at_failed=false
12868 at_func_diff_devnull "$at_stderr" || at_failed=:
12869 echo >>"$at_stdout"; $as_echo "directory/../directory/
12870 separator
12871 directory/../directory/
12872 " | \
12873   $at_diff - "$at_stdout" || at_failed=:
12874 at_func_check_status 0 $at_status "$at_srcdir/extrac03.at:26"
12875
12876 $at_failed && at_func_log_failure
12877 $at_traceon; }
12878
12879               { $at_traceoff
12880 $as_echo "$at_srcdir/extrac03.at:26:
12881 mkdir gnu
12882 (cd gnu
12883 TEST_TAR_FORMAT=gnu
12884 export TEST_TAR_FORMAT
12885 TAR_OPTIONS=\"-H gnu\"
12886 export TAR_OPTIONS
12887 rm -rf *
12888
12889 mkdir directory
12890 tar -cPvf archive directory/../directory
12891 echo separator
12892 tar -xPvf archive --warning=no-timestamp)"
12893 echo extrac03.at:26 >"$at_check_line_file"
12894
12895 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
12896    false; }; then
12897   ( $at_traceon;
12898 mkdir gnu
12899 (cd gnu
12900 TEST_TAR_FORMAT=gnu
12901 export TEST_TAR_FORMAT
12902 TAR_OPTIONS="-H gnu"
12903 export TAR_OPTIONS
12904 rm -rf *
12905
12906 mkdir directory
12907 tar -cPvf archive directory/../directory
12908 echo separator
12909 tar -xPvf archive --warning=no-timestamp) ) >"$at_stdout" 2>"$at_stder1"
12910   at_func_filter_trace $?
12911 else
12912   ( :;
12913 mkdir gnu
12914 (cd gnu
12915 TEST_TAR_FORMAT=gnu
12916 export TEST_TAR_FORMAT
12917 TAR_OPTIONS="-H gnu"
12918 export TAR_OPTIONS
12919 rm -rf *
12920
12921 mkdir directory
12922 tar -cPvf archive directory/../directory
12923 echo separator
12924 tar -xPvf archive --warning=no-timestamp) ) >"$at_stdout" 2>"$at_stderr"
12925 fi
12926 at_status=$?
12927 at_failed=false
12928 at_func_diff_devnull "$at_stderr" || at_failed=:
12929 echo >>"$at_stdout"; $as_echo "directory/../directory/
12930 separator
12931 directory/../directory/
12932 " | \
12933   $at_diff - "$at_stdout" || at_failed=:
12934 at_func_check_status 0 $at_status "$at_srcdir/extrac03.at:26"
12935
12936 $at_failed && at_func_log_failure
12937 $at_traceon; }
12938
12939
12940
12941
12942   $at_traceoff
12943   $at_times_p && times >"$at_times_file"
12944 ) 5>&1 2>&1 | eval $at_tee_pipe
12945 at_status=`cat "$at_status_file"`
12946 #AT_STOP_28
12947 #AT_START_29
12948 # 29. extrac04.at:23: extract + fnmatch
12949 at_setup_line='extrac04.at:23'
12950 at_desc="extract + fnmatch"
12951 $at_quiet $as_echo_n " 29: $at_desc                              "
12952 at_xfail=no
12953       test -f $XFAILFILE && at_xfail=yes
12954 echo "#                             -*- compilation -*-" >> "$at_group_log"
12955 (
12956   $as_echo "29. extrac04.at:23: testing ..."
12957   $at_traceon
12958
12959
12960
12961
12962
12963   { $at_traceoff
12964 $as_echo "$at_srcdir/extrac04.at:26:
12965 mkdir v7
12966 (cd v7
12967 TEST_TAR_FORMAT=v7
12968 export TEST_TAR_FORMAT
12969 TAR_OPTIONS=\"-H v7\"
12970 export TAR_OPTIONS
12971 rm -rf *
12972
12973
12974 test -z "`sort < /dev/null 2>&1`" || exit 77
12975
12976 touch file1
12977 mkdir directory
12978 mkdir directory/subdirectory
12979 touch directory/file1
12980 touch directory/file2
12981 touch directory/subdirectory/file1
12982 touch directory/subdirectory/file2
12983 tar -cf archive ./file1 directory
12984 tar -tf archive \\
12985   --exclude='./*1' \\
12986   --exclude='d*/*1' \\
12987   --exclude='d*/s*/*2' | sort
12988 )"
12989 echo extrac04.at:26 >"$at_check_line_file"
12990
12991 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
12992    false; }; then
12993   ( $at_traceon;
12994 mkdir v7
12995 (cd v7
12996 TEST_TAR_FORMAT=v7
12997 export TEST_TAR_FORMAT
12998 TAR_OPTIONS="-H v7"
12999 export TAR_OPTIONS
13000 rm -rf *
13001
13002
13003 test -z "`sort < /dev/null 2>&1`" || exit 77
13004
13005 touch file1
13006 mkdir directory
13007 mkdir directory/subdirectory
13008 touch directory/file1
13009 touch directory/file2
13010 touch directory/subdirectory/file1
13011 touch directory/subdirectory/file2
13012 tar -cf archive ./file1 directory
13013 tar -tf archive \
13014   --exclude='./*1' \
13015   --exclude='d*/*1' \
13016   --exclude='d*/s*/*2' | sort
13017 ) ) >"$at_stdout" 2>"$at_stder1"
13018   at_func_filter_trace $?
13019 else
13020   ( :;
13021 mkdir v7
13022 (cd v7
13023 TEST_TAR_FORMAT=v7
13024 export TEST_TAR_FORMAT
13025 TAR_OPTIONS="-H v7"
13026 export TAR_OPTIONS
13027 rm -rf *
13028
13029
13030 test -z "`sort < /dev/null 2>&1`" || exit 77
13031
13032 touch file1
13033 mkdir directory
13034 mkdir directory/subdirectory
13035 touch directory/file1
13036 touch directory/file2
13037 touch directory/subdirectory/file1
13038 touch directory/subdirectory/file2
13039 tar -cf archive ./file1 directory
13040 tar -tf archive \
13041   --exclude='./*1' \
13042   --exclude='d*/*1' \
13043   --exclude='d*/s*/*2' | sort
13044 ) ) >"$at_stdout" 2>"$at_stderr"
13045 fi
13046 at_status=$?
13047 at_failed=false
13048 at_func_diff_devnull "$at_stderr" || at_failed=:
13049 echo >>"$at_stdout"; $as_echo "directory/
13050 directory/file2
13051 directory/subdirectory/
13052 " | \
13053   $at_diff - "$at_stdout" || at_failed=:
13054 at_func_check_status 0 $at_status "$at_srcdir/extrac04.at:26"
13055
13056 $at_failed && at_func_log_failure
13057 $at_traceon; }
13058
13059               { $at_traceoff
13060 $as_echo "$at_srcdir/extrac04.at:26:
13061 mkdir oldgnu
13062 (cd oldgnu
13063 TEST_TAR_FORMAT=oldgnu
13064 export TEST_TAR_FORMAT
13065 TAR_OPTIONS=\"-H oldgnu\"
13066 export TAR_OPTIONS
13067 rm -rf *
13068
13069
13070 test -z "`sort < /dev/null 2>&1`" || exit 77
13071
13072 touch file1
13073 mkdir directory
13074 mkdir directory/subdirectory
13075 touch directory/file1
13076 touch directory/file2
13077 touch directory/subdirectory/file1
13078 touch directory/subdirectory/file2
13079 tar -cf archive ./file1 directory
13080 tar -tf archive \\
13081   --exclude='./*1' \\
13082   --exclude='d*/*1' \\
13083   --exclude='d*/s*/*2' | sort
13084 )"
13085 echo extrac04.at:26 >"$at_check_line_file"
13086
13087 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
13088    false; }; then
13089   ( $at_traceon;
13090 mkdir oldgnu
13091 (cd oldgnu
13092 TEST_TAR_FORMAT=oldgnu
13093 export TEST_TAR_FORMAT
13094 TAR_OPTIONS="-H oldgnu"
13095 export TAR_OPTIONS
13096 rm -rf *
13097
13098
13099 test -z "`sort < /dev/null 2>&1`" || exit 77
13100
13101 touch file1
13102 mkdir directory
13103 mkdir directory/subdirectory
13104 touch directory/file1
13105 touch directory/file2
13106 touch directory/subdirectory/file1
13107 touch directory/subdirectory/file2
13108 tar -cf archive ./file1 directory
13109 tar -tf archive \
13110   --exclude='./*1' \
13111   --exclude='d*/*1' \
13112   --exclude='d*/s*/*2' | sort
13113 ) ) >"$at_stdout" 2>"$at_stder1"
13114   at_func_filter_trace $?
13115 else
13116   ( :;
13117 mkdir oldgnu
13118 (cd oldgnu
13119 TEST_TAR_FORMAT=oldgnu
13120 export TEST_TAR_FORMAT
13121 TAR_OPTIONS="-H oldgnu"
13122 export TAR_OPTIONS
13123 rm -rf *
13124
13125
13126 test -z "`sort < /dev/null 2>&1`" || exit 77
13127
13128 touch file1
13129 mkdir directory
13130 mkdir directory/subdirectory
13131 touch directory/file1
13132 touch directory/file2
13133 touch directory/subdirectory/file1
13134 touch directory/subdirectory/file2
13135 tar -cf archive ./file1 directory
13136 tar -tf archive \
13137   --exclude='./*1' \
13138   --exclude='d*/*1' \
13139   --exclude='d*/s*/*2' | sort
13140 ) ) >"$at_stdout" 2>"$at_stderr"
13141 fi
13142 at_status=$?
13143 at_failed=false
13144 at_func_diff_devnull "$at_stderr" || at_failed=:
13145 echo >>"$at_stdout"; $as_echo "directory/
13146 directory/file2
13147 directory/subdirectory/
13148 " | \
13149   $at_diff - "$at_stdout" || at_failed=:
13150 at_func_check_status 0 $at_status "$at_srcdir/extrac04.at:26"
13151
13152 $at_failed && at_func_log_failure
13153 $at_traceon; }
13154
13155               { $at_traceoff
13156 $as_echo "$at_srcdir/extrac04.at:26:
13157 mkdir ustar
13158 (cd ustar
13159 TEST_TAR_FORMAT=ustar
13160 export TEST_TAR_FORMAT
13161 TAR_OPTIONS=\"-H ustar\"
13162 export TAR_OPTIONS
13163 rm -rf *
13164
13165
13166 test -z "`sort < /dev/null 2>&1`" || exit 77
13167
13168 touch file1
13169 mkdir directory
13170 mkdir directory/subdirectory
13171 touch directory/file1
13172 touch directory/file2
13173 touch directory/subdirectory/file1
13174 touch directory/subdirectory/file2
13175 tar -cf archive ./file1 directory
13176 tar -tf archive \\
13177   --exclude='./*1' \\
13178   --exclude='d*/*1' \\
13179   --exclude='d*/s*/*2' | sort
13180 )"
13181 echo extrac04.at:26 >"$at_check_line_file"
13182
13183 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
13184    false; }; then
13185   ( $at_traceon;
13186 mkdir ustar
13187 (cd ustar
13188 TEST_TAR_FORMAT=ustar
13189 export TEST_TAR_FORMAT
13190 TAR_OPTIONS="-H ustar"
13191 export TAR_OPTIONS
13192 rm -rf *
13193
13194
13195 test -z "`sort < /dev/null 2>&1`" || exit 77
13196
13197 touch file1
13198 mkdir directory
13199 mkdir directory/subdirectory
13200 touch directory/file1
13201 touch directory/file2
13202 touch directory/subdirectory/file1
13203 touch directory/subdirectory/file2
13204 tar -cf archive ./file1 directory
13205 tar -tf archive \
13206   --exclude='./*1' \
13207   --exclude='d*/*1' \
13208   --exclude='d*/s*/*2' | sort
13209 ) ) >"$at_stdout" 2>"$at_stder1"
13210   at_func_filter_trace $?
13211 else
13212   ( :;
13213 mkdir ustar
13214 (cd ustar
13215 TEST_TAR_FORMAT=ustar
13216 export TEST_TAR_FORMAT
13217 TAR_OPTIONS="-H ustar"
13218 export TAR_OPTIONS
13219 rm -rf *
13220
13221
13222 test -z "`sort < /dev/null 2>&1`" || exit 77
13223
13224 touch file1
13225 mkdir directory
13226 mkdir directory/subdirectory
13227 touch directory/file1
13228 touch directory/file2
13229 touch directory/subdirectory/file1
13230 touch directory/subdirectory/file2
13231 tar -cf archive ./file1 directory
13232 tar -tf archive \
13233   --exclude='./*1' \
13234   --exclude='d*/*1' \
13235   --exclude='d*/s*/*2' | sort
13236 ) ) >"$at_stdout" 2>"$at_stderr"
13237 fi
13238 at_status=$?
13239 at_failed=false
13240 at_func_diff_devnull "$at_stderr" || at_failed=:
13241 echo >>"$at_stdout"; $as_echo "directory/
13242 directory/file2
13243 directory/subdirectory/
13244 " | \
13245   $at_diff - "$at_stdout" || at_failed=:
13246 at_func_check_status 0 $at_status "$at_srcdir/extrac04.at:26"
13247
13248 $at_failed && at_func_log_failure
13249 $at_traceon; }
13250
13251               { $at_traceoff
13252 $as_echo "$at_srcdir/extrac04.at:26:
13253 mkdir posix
13254 (cd posix
13255 TEST_TAR_FORMAT=posix
13256 export TEST_TAR_FORMAT
13257 TAR_OPTIONS=\"-H posix\"
13258 export TAR_OPTIONS
13259 rm -rf *
13260
13261
13262 test -z "`sort < /dev/null 2>&1`" || exit 77
13263
13264 touch file1
13265 mkdir directory
13266 mkdir directory/subdirectory
13267 touch directory/file1
13268 touch directory/file2
13269 touch directory/subdirectory/file1
13270 touch directory/subdirectory/file2
13271 tar -cf archive ./file1 directory
13272 tar -tf archive \\
13273   --exclude='./*1' \\
13274   --exclude='d*/*1' \\
13275   --exclude='d*/s*/*2' | sort
13276 )"
13277 echo extrac04.at:26 >"$at_check_line_file"
13278
13279 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
13280    false; }; then
13281   ( $at_traceon;
13282 mkdir posix
13283 (cd posix
13284 TEST_TAR_FORMAT=posix
13285 export TEST_TAR_FORMAT
13286 TAR_OPTIONS="-H posix"
13287 export TAR_OPTIONS
13288 rm -rf *
13289
13290
13291 test -z "`sort < /dev/null 2>&1`" || exit 77
13292
13293 touch file1
13294 mkdir directory
13295 mkdir directory/subdirectory
13296 touch directory/file1
13297 touch directory/file2
13298 touch directory/subdirectory/file1
13299 touch directory/subdirectory/file2
13300 tar -cf archive ./file1 directory
13301 tar -tf archive \
13302   --exclude='./*1' \
13303   --exclude='d*/*1' \
13304   --exclude='d*/s*/*2' | sort
13305 ) ) >"$at_stdout" 2>"$at_stder1"
13306   at_func_filter_trace $?
13307 else
13308   ( :;
13309 mkdir posix
13310 (cd posix
13311 TEST_TAR_FORMAT=posix
13312 export TEST_TAR_FORMAT
13313 TAR_OPTIONS="-H posix"
13314 export TAR_OPTIONS
13315 rm -rf *
13316
13317
13318 test -z "`sort < /dev/null 2>&1`" || exit 77
13319
13320 touch file1
13321 mkdir directory
13322 mkdir directory/subdirectory
13323 touch directory/file1
13324 touch directory/file2
13325 touch directory/subdirectory/file1
13326 touch directory/subdirectory/file2
13327 tar -cf archive ./file1 directory
13328 tar -tf archive \
13329   --exclude='./*1' \
13330   --exclude='d*/*1' \
13331   --exclude='d*/s*/*2' | sort
13332 ) ) >"$at_stdout" 2>"$at_stderr"
13333 fi
13334 at_status=$?
13335 at_failed=false
13336 at_func_diff_devnull "$at_stderr" || at_failed=:
13337 echo >>"$at_stdout"; $as_echo "directory/
13338 directory/file2
13339 directory/subdirectory/
13340 " | \
13341   $at_diff - "$at_stdout" || at_failed=:
13342 at_func_check_status 0 $at_status "$at_srcdir/extrac04.at:26"
13343
13344 $at_failed && at_func_log_failure
13345 $at_traceon; }
13346
13347               { $at_traceoff
13348 $as_echo "$at_srcdir/extrac04.at:26:
13349 mkdir gnu
13350 (cd gnu
13351 TEST_TAR_FORMAT=gnu
13352 export TEST_TAR_FORMAT
13353 TAR_OPTIONS=\"-H gnu\"
13354 export TAR_OPTIONS
13355 rm -rf *
13356
13357
13358 test -z "`sort < /dev/null 2>&1`" || exit 77
13359
13360 touch file1
13361 mkdir directory
13362 mkdir directory/subdirectory
13363 touch directory/file1
13364 touch directory/file2
13365 touch directory/subdirectory/file1
13366 touch directory/subdirectory/file2
13367 tar -cf archive ./file1 directory
13368 tar -tf archive \\
13369   --exclude='./*1' \\
13370   --exclude='d*/*1' \\
13371   --exclude='d*/s*/*2' | sort
13372 )"
13373 echo extrac04.at:26 >"$at_check_line_file"
13374
13375 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
13376    false; }; then
13377   ( $at_traceon;
13378 mkdir gnu
13379 (cd gnu
13380 TEST_TAR_FORMAT=gnu
13381 export TEST_TAR_FORMAT
13382 TAR_OPTIONS="-H gnu"
13383 export TAR_OPTIONS
13384 rm -rf *
13385
13386
13387 test -z "`sort < /dev/null 2>&1`" || exit 77
13388
13389 touch file1
13390 mkdir directory
13391 mkdir directory/subdirectory
13392 touch directory/file1
13393 touch directory/file2
13394 touch directory/subdirectory/file1
13395 touch directory/subdirectory/file2
13396 tar -cf archive ./file1 directory
13397 tar -tf archive \
13398   --exclude='./*1' \
13399   --exclude='d*/*1' \
13400   --exclude='d*/s*/*2' | sort
13401 ) ) >"$at_stdout" 2>"$at_stder1"
13402   at_func_filter_trace $?
13403 else
13404   ( :;
13405 mkdir gnu
13406 (cd gnu
13407 TEST_TAR_FORMAT=gnu
13408 export TEST_TAR_FORMAT
13409 TAR_OPTIONS="-H gnu"
13410 export TAR_OPTIONS
13411 rm -rf *
13412
13413
13414 test -z "`sort < /dev/null 2>&1`" || exit 77
13415
13416 touch file1
13417 mkdir directory
13418 mkdir directory/subdirectory
13419 touch directory/file1
13420 touch directory/file2
13421 touch directory/subdirectory/file1
13422 touch directory/subdirectory/file2
13423 tar -cf archive ./file1 directory
13424 tar -tf archive \
13425   --exclude='./*1' \
13426   --exclude='d*/*1' \
13427   --exclude='d*/s*/*2' | sort
13428 ) ) >"$at_stdout" 2>"$at_stderr"
13429 fi
13430 at_status=$?
13431 at_failed=false
13432 at_func_diff_devnull "$at_stderr" || at_failed=:
13433 echo >>"$at_stdout"; $as_echo "directory/
13434 directory/file2
13435 directory/subdirectory/
13436 " | \
13437   $at_diff - "$at_stdout" || at_failed=:
13438 at_func_check_status 0 $at_status "$at_srcdir/extrac04.at:26"
13439
13440 $at_failed && at_func_log_failure
13441 $at_traceon; }
13442
13443
13444
13445
13446   $at_traceoff
13447   $at_times_p && times >"$at_times_file"
13448 ) 5>&1 2>&1 | eval $at_tee_pipe
13449 at_status=`cat "$at_status_file"`
13450 #AT_STOP_29
13451 #AT_START_30
13452 # 30. extrac05.at:30: extracting selected members from pax
13453 at_setup_line='extrac05.at:30'
13454 at_desc="extracting selected members from pax"
13455 $at_quiet $as_echo_n " 30: $at_desc           "
13456 at_xfail=no
13457       test -f $XFAILFILE && at_xfail=yes
13458 echo "#                             -*- compilation -*-" >> "$at_group_log"
13459 (
13460   $as_echo "30. extrac05.at:30: testing ..."
13461   $at_traceon
13462
13463
13464
13465 cat >list <<'_ATEOF'
13466 jeden
13467 cztery
13468 _ATEOF
13469
13470
13471
13472
13473   { $at_traceoff
13474 $as_echo "$at_srcdir/extrac05.at:38:
13475 mkdir posix
13476 (cd posix
13477 TEST_TAR_FORMAT=posix
13478 export TEST_TAR_FORMAT
13479 TAR_OPTIONS=\"-H posix\"
13480 export TAR_OPTIONS
13481 rm -rf *
13482
13483 genfile --sparse --file sparsefile 0 ABCD 1M EFGH 2000K IJKL || exit 77
13484 genfile --length 118 --file jeden
13485 genfile --length 223 --file dwa
13486 genfile --length 517 --file trzy
13487 genfile --length 110 --file cztery
13488
13489 tar cf archive jeden dwa trzy cztery || exit 1
13490
13491 mkdir dir
13492 cd dir
13493
13494 tar xvfT ../archive ../../list --warning=no-timestamp || exit 1
13495
13496 cd ..
13497 )"
13498 echo extrac05.at:38 >"$at_check_line_file"
13499
13500 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
13501    false; }; then
13502   ( $at_traceon;
13503 mkdir posix
13504 (cd posix
13505 TEST_TAR_FORMAT=posix
13506 export TEST_TAR_FORMAT
13507 TAR_OPTIONS="-H posix"
13508 export TAR_OPTIONS
13509 rm -rf *
13510
13511 genfile --sparse --file sparsefile 0 ABCD 1M EFGH 2000K IJKL || exit 77
13512 genfile --length 118 --file jeden
13513 genfile --length 223 --file dwa
13514 genfile --length 517 --file trzy
13515 genfile --length 110 --file cztery
13516
13517 tar cf archive jeden dwa trzy cztery || exit 1
13518
13519 mkdir dir
13520 cd dir
13521
13522 tar xvfT ../archive ../../list --warning=no-timestamp || exit 1
13523
13524 cd ..
13525 ) ) >"$at_stdout" 2>"$at_stder1"
13526   at_func_filter_trace $?
13527 else
13528   ( :;
13529 mkdir posix
13530 (cd posix
13531 TEST_TAR_FORMAT=posix
13532 export TEST_TAR_FORMAT
13533 TAR_OPTIONS="-H posix"
13534 export TAR_OPTIONS
13535 rm -rf *
13536
13537 genfile --sparse --file sparsefile 0 ABCD 1M EFGH 2000K IJKL || exit 77
13538 genfile --length 118 --file jeden
13539 genfile --length 223 --file dwa
13540 genfile --length 517 --file trzy
13541 genfile --length 110 --file cztery
13542
13543 tar cf archive jeden dwa trzy cztery || exit 1
13544
13545 mkdir dir
13546 cd dir
13547
13548 tar xvfT ../archive ../../list --warning=no-timestamp || exit 1
13549
13550 cd ..
13551 ) ) >"$at_stdout" 2>"$at_stderr"
13552 fi
13553 at_status=$?
13554 at_failed=false
13555 at_func_diff_devnull "$at_stderr" || at_failed=:
13556 echo >>"$at_stdout"; $as_echo "jeden
13557 cztery
13558 " | \
13559   $at_diff - "$at_stdout" || at_failed=:
13560 at_func_check_status 0 $at_status "$at_srcdir/extrac05.at:38"
13561
13562 $at_failed && at_func_log_failure
13563 $at_traceon; }
13564
13565
13566
13567
13568   $at_traceoff
13569   $at_times_p && times >"$at_times_file"
13570 ) 5>&1 2>&1 | eval $at_tee_pipe
13571 at_status=`cat "$at_status_file"`
13572 #AT_STOP_30
13573 #AT_START_31
13574 # 31. extrac06.at:33: mode of extracted directories
13575 at_setup_line='extrac06.at:33'
13576 at_desc="mode of extracted directories"
13577 $at_quiet $as_echo_n " 31: $at_desc                  "
13578 at_xfail=no
13579       test -f $XFAILFILE && at_xfail=yes
13580 echo "#                             -*- compilation -*-" >> "$at_group_log"
13581 (
13582   $as_echo "31. extrac06.at:33: testing ..."
13583   $at_traceon
13584
13585
13586
13587
13588
13589   { $at_traceoff
13590 $as_echo "$at_srcdir/extrac06.at:36:
13591 mkdir v7
13592 (cd v7
13593 TEST_TAR_FORMAT=v7
13594 export TEST_TAR_FORMAT
13595 TAR_OPTIONS=\"-H v7\"
13596 export TAR_OPTIONS
13597 rm -rf *
13598
13599
13600 # Force umask
13601 umask 022
13602
13603 # Make sure user's umask is honored, even if we are superuser
13604 TAR_OPTIONS=\"\$TAR_OPTIONS --no-same-permissions\"
13605
13606 # Create a directory
13607 mkdir directory
13608 chmod 777 directory
13609 genfile --stat=mode:777 directory
13610
13611 # Archive it
13612 tar cf arc directory
13613
13614 # Change its permissions ...
13615 chmod 755 directory
13616 genfile --stat=mode:777 directory
13617
13618 # ... and attempt to restore it twice
13619 tar xf arc directory --warning=no-timestamp
13620 genfile --stat=mode:777 directory
13621
13622 tar xf arc directory --warning=no-timestamp
13623 genfile --stat=mode:777 directory
13624
13625 # After both restores, the directory mode should be 755
13626 )"
13627 echo extrac06.at:36 >"$at_check_line_file"
13628
13629 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
13630    false; }; then
13631   ( $at_traceon;
13632 mkdir v7
13633 (cd v7
13634 TEST_TAR_FORMAT=v7
13635 export TEST_TAR_FORMAT
13636 TAR_OPTIONS="-H v7"
13637 export TAR_OPTIONS
13638 rm -rf *
13639
13640
13641 # Force umask
13642 umask 022
13643
13644 # Make sure user's umask is honored, even if we are superuser
13645 TAR_OPTIONS="$TAR_OPTIONS --no-same-permissions"
13646
13647 # Create a directory
13648 mkdir directory
13649 chmod 777 directory
13650 genfile --stat=mode:777 directory
13651
13652 # Archive it
13653 tar cf arc directory
13654
13655 # Change its permissions ...
13656 chmod 755 directory
13657 genfile --stat=mode:777 directory
13658
13659 # ... and attempt to restore it twice
13660 tar xf arc directory --warning=no-timestamp
13661 genfile --stat=mode:777 directory
13662
13663 tar xf arc directory --warning=no-timestamp
13664 genfile --stat=mode:777 directory
13665
13666 # After both restores, the directory mode should be 755
13667 ) ) >"$at_stdout" 2>"$at_stder1"
13668   at_func_filter_trace $?
13669 else
13670   ( :;
13671 mkdir v7
13672 (cd v7
13673 TEST_TAR_FORMAT=v7
13674 export TEST_TAR_FORMAT
13675 TAR_OPTIONS="-H v7"
13676 export TAR_OPTIONS
13677 rm -rf *
13678
13679
13680 # Force umask
13681 umask 022
13682
13683 # Make sure user's umask is honored, even if we are superuser
13684 TAR_OPTIONS="$TAR_OPTIONS --no-same-permissions"
13685
13686 # Create a directory
13687 mkdir directory
13688 chmod 777 directory
13689 genfile --stat=mode:777 directory
13690
13691 # Archive it
13692 tar cf arc directory
13693
13694 # Change its permissions ...
13695 chmod 755 directory
13696 genfile --stat=mode:777 directory
13697
13698 # ... and attempt to restore it twice
13699 tar xf arc directory --warning=no-timestamp
13700 genfile --stat=mode:777 directory
13701
13702 tar xf arc directory --warning=no-timestamp
13703 genfile --stat=mode:777 directory
13704
13705 # After both restores, the directory mode should be 755
13706 ) ) >"$at_stdout" 2>"$at_stderr"
13707 fi
13708 at_status=$?
13709 at_failed=false
13710 at_func_diff_devnull "$at_stderr" || at_failed=:
13711 echo >>"$at_stdout"; $as_echo "777
13712 755
13713 755
13714 755
13715 " | \
13716   $at_diff - "$at_stdout" || at_failed=:
13717 at_func_check_status 0 $at_status "$at_srcdir/extrac06.at:36"
13718
13719 $at_failed && at_func_log_failure
13720 $at_traceon; }
13721
13722               { $at_traceoff
13723 $as_echo "$at_srcdir/extrac06.at:36:
13724 mkdir oldgnu
13725 (cd oldgnu
13726 TEST_TAR_FORMAT=oldgnu
13727 export TEST_TAR_FORMAT
13728 TAR_OPTIONS=\"-H oldgnu\"
13729 export TAR_OPTIONS
13730 rm -rf *
13731
13732
13733 # Force umask
13734 umask 022
13735
13736 # Make sure user's umask is honored, even if we are superuser
13737 TAR_OPTIONS=\"\$TAR_OPTIONS --no-same-permissions\"
13738
13739 # Create a directory
13740 mkdir directory
13741 chmod 777 directory
13742 genfile --stat=mode:777 directory
13743
13744 # Archive it
13745 tar cf arc directory
13746
13747 # Change its permissions ...
13748 chmod 755 directory
13749 genfile --stat=mode:777 directory
13750
13751 # ... and attempt to restore it twice
13752 tar xf arc directory --warning=no-timestamp
13753 genfile --stat=mode:777 directory
13754
13755 tar xf arc directory --warning=no-timestamp
13756 genfile --stat=mode:777 directory
13757
13758 # After both restores, the directory mode should be 755
13759 )"
13760 echo extrac06.at:36 >"$at_check_line_file"
13761
13762 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
13763    false; }; then
13764   ( $at_traceon;
13765 mkdir oldgnu
13766 (cd oldgnu
13767 TEST_TAR_FORMAT=oldgnu
13768 export TEST_TAR_FORMAT
13769 TAR_OPTIONS="-H oldgnu"
13770 export TAR_OPTIONS
13771 rm -rf *
13772
13773
13774 # Force umask
13775 umask 022
13776
13777 # Make sure user's umask is honored, even if we are superuser
13778 TAR_OPTIONS="$TAR_OPTIONS --no-same-permissions"
13779
13780 # Create a directory
13781 mkdir directory
13782 chmod 777 directory
13783 genfile --stat=mode:777 directory
13784
13785 # Archive it
13786 tar cf arc directory
13787
13788 # Change its permissions ...
13789 chmod 755 directory
13790 genfile --stat=mode:777 directory
13791
13792 # ... and attempt to restore it twice
13793 tar xf arc directory --warning=no-timestamp
13794 genfile --stat=mode:777 directory
13795
13796 tar xf arc directory --warning=no-timestamp
13797 genfile --stat=mode:777 directory
13798
13799 # After both restores, the directory mode should be 755
13800 ) ) >"$at_stdout" 2>"$at_stder1"
13801   at_func_filter_trace $?
13802 else
13803   ( :;
13804 mkdir oldgnu
13805 (cd oldgnu
13806 TEST_TAR_FORMAT=oldgnu
13807 export TEST_TAR_FORMAT
13808 TAR_OPTIONS="-H oldgnu"
13809 export TAR_OPTIONS
13810 rm -rf *
13811
13812
13813 # Force umask
13814 umask 022
13815
13816 # Make sure user's umask is honored, even if we are superuser
13817 TAR_OPTIONS="$TAR_OPTIONS --no-same-permissions"
13818
13819 # Create a directory
13820 mkdir directory
13821 chmod 777 directory
13822 genfile --stat=mode:777 directory
13823
13824 # Archive it
13825 tar cf arc directory
13826
13827 # Change its permissions ...
13828 chmod 755 directory
13829 genfile --stat=mode:777 directory
13830
13831 # ... and attempt to restore it twice
13832 tar xf arc directory --warning=no-timestamp
13833 genfile --stat=mode:777 directory
13834
13835 tar xf arc directory --warning=no-timestamp
13836 genfile --stat=mode:777 directory
13837
13838 # After both restores, the directory mode should be 755
13839 ) ) >"$at_stdout" 2>"$at_stderr"
13840 fi
13841 at_status=$?
13842 at_failed=false
13843 at_func_diff_devnull "$at_stderr" || at_failed=:
13844 echo >>"$at_stdout"; $as_echo "777
13845 755
13846 755
13847 755
13848 " | \
13849   $at_diff - "$at_stdout" || at_failed=:
13850 at_func_check_status 0 $at_status "$at_srcdir/extrac06.at:36"
13851
13852 $at_failed && at_func_log_failure
13853 $at_traceon; }
13854
13855               { $at_traceoff
13856 $as_echo "$at_srcdir/extrac06.at:36:
13857 mkdir ustar
13858 (cd ustar
13859 TEST_TAR_FORMAT=ustar
13860 export TEST_TAR_FORMAT
13861 TAR_OPTIONS=\"-H ustar\"
13862 export TAR_OPTIONS
13863 rm -rf *
13864
13865
13866 # Force umask
13867 umask 022
13868
13869 # Make sure user's umask is honored, even if we are superuser
13870 TAR_OPTIONS=\"\$TAR_OPTIONS --no-same-permissions\"
13871
13872 # Create a directory
13873 mkdir directory
13874 chmod 777 directory
13875 genfile --stat=mode:777 directory
13876
13877 # Archive it
13878 tar cf arc directory
13879
13880 # Change its permissions ...
13881 chmod 755 directory
13882 genfile --stat=mode:777 directory
13883
13884 # ... and attempt to restore it twice
13885 tar xf arc directory --warning=no-timestamp
13886 genfile --stat=mode:777 directory
13887
13888 tar xf arc directory --warning=no-timestamp
13889 genfile --stat=mode:777 directory
13890
13891 # After both restores, the directory mode should be 755
13892 )"
13893 echo extrac06.at:36 >"$at_check_line_file"
13894
13895 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
13896    false; }; then
13897   ( $at_traceon;
13898 mkdir ustar
13899 (cd ustar
13900 TEST_TAR_FORMAT=ustar
13901 export TEST_TAR_FORMAT
13902 TAR_OPTIONS="-H ustar"
13903 export TAR_OPTIONS
13904 rm -rf *
13905
13906
13907 # Force umask
13908 umask 022
13909
13910 # Make sure user's umask is honored, even if we are superuser
13911 TAR_OPTIONS="$TAR_OPTIONS --no-same-permissions"
13912
13913 # Create a directory
13914 mkdir directory
13915 chmod 777 directory
13916 genfile --stat=mode:777 directory
13917
13918 # Archive it
13919 tar cf arc directory
13920
13921 # Change its permissions ...
13922 chmod 755 directory
13923 genfile --stat=mode:777 directory
13924
13925 # ... and attempt to restore it twice
13926 tar xf arc directory --warning=no-timestamp
13927 genfile --stat=mode:777 directory
13928
13929 tar xf arc directory --warning=no-timestamp
13930 genfile --stat=mode:777 directory
13931
13932 # After both restores, the directory mode should be 755
13933 ) ) >"$at_stdout" 2>"$at_stder1"
13934   at_func_filter_trace $?
13935 else
13936   ( :;
13937 mkdir ustar
13938 (cd ustar
13939 TEST_TAR_FORMAT=ustar
13940 export TEST_TAR_FORMAT
13941 TAR_OPTIONS="-H ustar"
13942 export TAR_OPTIONS
13943 rm -rf *
13944
13945
13946 # Force umask
13947 umask 022
13948
13949 # Make sure user's umask is honored, even if we are superuser
13950 TAR_OPTIONS="$TAR_OPTIONS --no-same-permissions"
13951
13952 # Create a directory
13953 mkdir directory
13954 chmod 777 directory
13955 genfile --stat=mode:777 directory
13956
13957 # Archive it
13958 tar cf arc directory
13959
13960 # Change its permissions ...
13961 chmod 755 directory
13962 genfile --stat=mode:777 directory
13963
13964 # ... and attempt to restore it twice
13965 tar xf arc directory --warning=no-timestamp
13966 genfile --stat=mode:777 directory
13967
13968 tar xf arc directory --warning=no-timestamp
13969 genfile --stat=mode:777 directory
13970
13971 # After both restores, the directory mode should be 755
13972 ) ) >"$at_stdout" 2>"$at_stderr"
13973 fi
13974 at_status=$?
13975 at_failed=false
13976 at_func_diff_devnull "$at_stderr" || at_failed=:
13977 echo >>"$at_stdout"; $as_echo "777
13978 755
13979 755
13980 755
13981 " | \
13982   $at_diff - "$at_stdout" || at_failed=:
13983 at_func_check_status 0 $at_status "$at_srcdir/extrac06.at:36"
13984
13985 $at_failed && at_func_log_failure
13986 $at_traceon; }
13987
13988               { $at_traceoff
13989 $as_echo "$at_srcdir/extrac06.at:36:
13990 mkdir posix
13991 (cd posix
13992 TEST_TAR_FORMAT=posix
13993 export TEST_TAR_FORMAT
13994 TAR_OPTIONS=\"-H posix\"
13995 export TAR_OPTIONS
13996 rm -rf *
13997
13998
13999 # Force umask
14000 umask 022
14001
14002 # Make sure user's umask is honored, even if we are superuser
14003 TAR_OPTIONS=\"\$TAR_OPTIONS --no-same-permissions\"
14004
14005 # Create a directory
14006 mkdir directory
14007 chmod 777 directory
14008 genfile --stat=mode:777 directory
14009
14010 # Archive it
14011 tar cf arc directory
14012
14013 # Change its permissions ...
14014 chmod 755 directory
14015 genfile --stat=mode:777 directory
14016
14017 # ... and attempt to restore it twice
14018 tar xf arc directory --warning=no-timestamp
14019 genfile --stat=mode:777 directory
14020
14021 tar xf arc directory --warning=no-timestamp
14022 genfile --stat=mode:777 directory
14023
14024 # After both restores, the directory mode should be 755
14025 )"
14026 echo extrac06.at:36 >"$at_check_line_file"
14027
14028 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
14029    false; }; then
14030   ( $at_traceon;
14031 mkdir posix
14032 (cd posix
14033 TEST_TAR_FORMAT=posix
14034 export TEST_TAR_FORMAT
14035 TAR_OPTIONS="-H posix"
14036 export TAR_OPTIONS
14037 rm -rf *
14038
14039
14040 # Force umask
14041 umask 022
14042
14043 # Make sure user's umask is honored, even if we are superuser
14044 TAR_OPTIONS="$TAR_OPTIONS --no-same-permissions"
14045
14046 # Create a directory
14047 mkdir directory
14048 chmod 777 directory
14049 genfile --stat=mode:777 directory
14050
14051 # Archive it
14052 tar cf arc directory
14053
14054 # Change its permissions ...
14055 chmod 755 directory
14056 genfile --stat=mode:777 directory
14057
14058 # ... and attempt to restore it twice
14059 tar xf arc directory --warning=no-timestamp
14060 genfile --stat=mode:777 directory
14061
14062 tar xf arc directory --warning=no-timestamp
14063 genfile --stat=mode:777 directory
14064
14065 # After both restores, the directory mode should be 755
14066 ) ) >"$at_stdout" 2>"$at_stder1"
14067   at_func_filter_trace $?
14068 else
14069   ( :;
14070 mkdir posix
14071 (cd posix
14072 TEST_TAR_FORMAT=posix
14073 export TEST_TAR_FORMAT
14074 TAR_OPTIONS="-H posix"
14075 export TAR_OPTIONS
14076 rm -rf *
14077
14078
14079 # Force umask
14080 umask 022
14081
14082 # Make sure user's umask is honored, even if we are superuser
14083 TAR_OPTIONS="$TAR_OPTIONS --no-same-permissions"
14084
14085 # Create a directory
14086 mkdir directory
14087 chmod 777 directory
14088 genfile --stat=mode:777 directory
14089
14090 # Archive it
14091 tar cf arc directory
14092
14093 # Change its permissions ...
14094 chmod 755 directory
14095 genfile --stat=mode:777 directory
14096
14097 # ... and attempt to restore it twice
14098 tar xf arc directory --warning=no-timestamp
14099 genfile --stat=mode:777 directory
14100
14101 tar xf arc directory --warning=no-timestamp
14102 genfile --stat=mode:777 directory
14103
14104 # After both restores, the directory mode should be 755
14105 ) ) >"$at_stdout" 2>"$at_stderr"
14106 fi
14107 at_status=$?
14108 at_failed=false
14109 at_func_diff_devnull "$at_stderr" || at_failed=:
14110 echo >>"$at_stdout"; $as_echo "777
14111 755
14112 755
14113 755
14114 " | \
14115   $at_diff - "$at_stdout" || at_failed=:
14116 at_func_check_status 0 $at_status "$at_srcdir/extrac06.at:36"
14117
14118 $at_failed && at_func_log_failure
14119 $at_traceon; }
14120
14121               { $at_traceoff
14122 $as_echo "$at_srcdir/extrac06.at:36:
14123 mkdir gnu
14124 (cd gnu
14125 TEST_TAR_FORMAT=gnu
14126 export TEST_TAR_FORMAT
14127 TAR_OPTIONS=\"-H gnu\"
14128 export TAR_OPTIONS
14129 rm -rf *
14130
14131
14132 # Force umask
14133 umask 022
14134
14135 # Make sure user's umask is honored, even if we are superuser
14136 TAR_OPTIONS=\"\$TAR_OPTIONS --no-same-permissions\"
14137
14138 # Create a directory
14139 mkdir directory
14140 chmod 777 directory
14141 genfile --stat=mode:777 directory
14142
14143 # Archive it
14144 tar cf arc directory
14145
14146 # Change its permissions ...
14147 chmod 755 directory
14148 genfile --stat=mode:777 directory
14149
14150 # ... and attempt to restore it twice
14151 tar xf arc directory --warning=no-timestamp
14152 genfile --stat=mode:777 directory
14153
14154 tar xf arc directory --warning=no-timestamp
14155 genfile --stat=mode:777 directory
14156
14157 # After both restores, the directory mode should be 755
14158 )"
14159 echo extrac06.at:36 >"$at_check_line_file"
14160
14161 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
14162    false; }; then
14163   ( $at_traceon;
14164 mkdir gnu
14165 (cd gnu
14166 TEST_TAR_FORMAT=gnu
14167 export TEST_TAR_FORMAT
14168 TAR_OPTIONS="-H gnu"
14169 export TAR_OPTIONS
14170 rm -rf *
14171
14172
14173 # Force umask
14174 umask 022
14175
14176 # Make sure user's umask is honored, even if we are superuser
14177 TAR_OPTIONS="$TAR_OPTIONS --no-same-permissions"
14178
14179 # Create a directory
14180 mkdir directory
14181 chmod 777 directory
14182 genfile --stat=mode:777 directory
14183
14184 # Archive it
14185 tar cf arc directory
14186
14187 # Change its permissions ...
14188 chmod 755 directory
14189 genfile --stat=mode:777 directory
14190
14191 # ... and attempt to restore it twice
14192 tar xf arc directory --warning=no-timestamp
14193 genfile --stat=mode:777 directory
14194
14195 tar xf arc directory --warning=no-timestamp
14196 genfile --stat=mode:777 directory
14197
14198 # After both restores, the directory mode should be 755
14199 ) ) >"$at_stdout" 2>"$at_stder1"
14200   at_func_filter_trace $?
14201 else
14202   ( :;
14203 mkdir gnu
14204 (cd gnu
14205 TEST_TAR_FORMAT=gnu
14206 export TEST_TAR_FORMAT
14207 TAR_OPTIONS="-H gnu"
14208 export TAR_OPTIONS
14209 rm -rf *
14210
14211
14212 # Force umask
14213 umask 022
14214
14215 # Make sure user's umask is honored, even if we are superuser
14216 TAR_OPTIONS="$TAR_OPTIONS --no-same-permissions"
14217
14218 # Create a directory
14219 mkdir directory
14220 chmod 777 directory
14221 genfile --stat=mode:777 directory
14222
14223 # Archive it
14224 tar cf arc directory
14225
14226 # Change its permissions ...
14227 chmod 755 directory
14228 genfile --stat=mode:777 directory
14229
14230 # ... and attempt to restore it twice
14231 tar xf arc directory --warning=no-timestamp
14232 genfile --stat=mode:777 directory
14233
14234 tar xf arc directory --warning=no-timestamp
14235 genfile --stat=mode:777 directory
14236
14237 # After both restores, the directory mode should be 755
14238 ) ) >"$at_stdout" 2>"$at_stderr"
14239 fi
14240 at_status=$?
14241 at_failed=false
14242 at_func_diff_devnull "$at_stderr" || at_failed=:
14243 echo >>"$at_stdout"; $as_echo "777
14244 755
14245 755
14246 755
14247 " | \
14248   $at_diff - "$at_stdout" || at_failed=:
14249 at_func_check_status 0 $at_status "$at_srcdir/extrac06.at:36"
14250
14251 $at_failed && at_func_log_failure
14252 $at_traceon; }
14253
14254
14255
14256
14257   $at_traceoff
14258   $at_times_p && times >"$at_times_file"
14259 ) 5>&1 2>&1 | eval $at_tee_pipe
14260 at_status=`cat "$at_status_file"`
14261 #AT_STOP_31
14262 #AT_START_32
14263 # 32. extrac07.at:27: extracting symlinks to a read-only dir
14264 at_setup_line='extrac07.at:27'
14265 at_desc="extracting symlinks to a read-only dir"
14266 $at_quiet $as_echo_n " 32: $at_desc         "
14267 at_xfail=no
14268       test -f $XFAILFILE && at_xfail=yes
14269 echo "#                             -*- compilation -*-" >> "$at_group_log"
14270 (
14271   $as_echo "32. extrac07.at:27: testing ..."
14272   $at_traceon
14273
14274
14275
14276
14277
14278   { $at_traceoff
14279 $as_echo "$at_srcdir/extrac07.at:30:
14280 mkdir ustar
14281 (cd ustar
14282 TEST_TAR_FORMAT=ustar
14283 export TEST_TAR_FORMAT
14284 TAR_OPTIONS=\"-H ustar\"
14285 export TAR_OPTIONS
14286 rm -rf *
14287
14288
14289 echo "test" > $$
14290 chmod 0 $$
14291 cat $$ > /dev/null 2>&1
14292 result=$?
14293 rm -f $$
14294 test $result -eq 0 && exit 77
14295
14296
14297 echo Prepare the directory
14298 mkdir dir
14299 genfile -f foo
14300 cd dir
14301 ln -s ../foo .
14302 cd ..
14303 chmod a-w dir
14304
14305 echo Create the archive
14306 tar cf archive dir || exit 1
14307
14308 chmod +w dir
14309
14310 echo Extract
14311 mkdir out
14312 tar -C out -xvf archive
14313 )"
14314 echo extrac07.at:30 >"$at_check_line_file"
14315
14316 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
14317    false; }; then
14318   ( $at_traceon;
14319 mkdir ustar
14320 (cd ustar
14321 TEST_TAR_FORMAT=ustar
14322 export TEST_TAR_FORMAT
14323 TAR_OPTIONS="-H ustar"
14324 export TAR_OPTIONS
14325 rm -rf *
14326
14327
14328 echo "test" > $$
14329 chmod 0 $$
14330 cat $$ > /dev/null 2>&1
14331 result=$?
14332 rm -f $$
14333 test $result -eq 0 && exit 77
14334
14335
14336 echo Prepare the directory
14337 mkdir dir
14338 genfile -f foo
14339 cd dir
14340 ln -s ../foo .
14341 cd ..
14342 chmod a-w dir
14343
14344 echo Create the archive
14345 tar cf archive dir || exit 1
14346
14347 chmod +w dir
14348
14349 echo Extract
14350 mkdir out
14351 tar -C out -xvf archive
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 echo "test" > $$
14366 chmod 0 $$
14367 cat $$ > /dev/null 2>&1
14368 result=$?
14369 rm -f $$
14370 test $result -eq 0 && exit 77
14371
14372
14373 echo Prepare the directory
14374 mkdir dir
14375 genfile -f foo
14376 cd dir
14377 ln -s ../foo .
14378 cd ..
14379 chmod a-w dir
14380
14381 echo Create the archive
14382 tar cf archive dir || exit 1
14383
14384 chmod +w dir
14385
14386 echo Extract
14387 mkdir out
14388 tar -C out -xvf archive
14389 ) ) >"$at_stdout" 2>"$at_stderr"
14390 fi
14391 at_status=$?
14392 at_failed=false
14393 at_func_diff_devnull "$at_stderr" || at_failed=:
14394 echo >>"$at_stdout"; $as_echo "Prepare the directory
14395 Create the archive
14396 Extract
14397 dir/
14398 dir/foo
14399 " | \
14400   $at_diff - "$at_stdout" || at_failed=:
14401 at_func_check_status 0 $at_status "$at_srcdir/extrac07.at:30"
14402
14403 $at_failed && at_func_log_failure
14404 $at_traceon; }
14405
14406
14407  # Testing one format is enough
14408
14409   $at_traceoff
14410   $at_times_p && times >"$at_times_file"
14411 ) 5>&1 2>&1 | eval $at_tee_pipe
14412 at_status=`cat "$at_status_file"`
14413 #AT_STOP_32
14414 #AT_START_33
14415 # 33. extrac08.at:33: restoring mode on existing directory
14416 at_setup_line='extrac08.at:33'
14417 at_desc="restoring mode on existing directory"
14418 $at_quiet $as_echo_n " 33: $at_desc           "
14419 at_xfail=no
14420       test -f $XFAILFILE && at_xfail=yes
14421 echo "#                             -*- compilation -*-" >> "$at_group_log"
14422 (
14423   $as_echo "33. extrac08.at:33: testing ..."
14424   $at_traceon
14425
14426
14427
14428
14429
14430   { $at_traceoff
14431 $as_echo "$at_srcdir/extrac08.at:36:
14432 mkdir v7
14433 (cd v7
14434 TEST_TAR_FORMAT=v7
14435 export TEST_TAR_FORMAT
14436 TAR_OPTIONS=\"-H v7\"
14437 export TAR_OPTIONS
14438 rm -rf *
14439
14440 umask 000
14441 mkdir dir
14442 chmod 755 dir
14443 echo bla > dir/file
14444 tar cf test.tar dir
14445 chmod 700 dir
14446 tar xfv test.tar --warning=no-timestamp
14447 genfile --stat=mode.777 dir
14448 )"
14449 echo extrac08.at:36 >"$at_check_line_file"
14450
14451 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
14452    false; }; then
14453   ( $at_traceon;
14454 mkdir v7
14455 (cd v7
14456 TEST_TAR_FORMAT=v7
14457 export TEST_TAR_FORMAT
14458 TAR_OPTIONS="-H v7"
14459 export TAR_OPTIONS
14460 rm -rf *
14461
14462 umask 000
14463 mkdir dir
14464 chmod 755 dir
14465 echo bla > dir/file
14466 tar cf test.tar dir
14467 chmod 700 dir
14468 tar xfv test.tar --warning=no-timestamp
14469 genfile --stat=mode.777 dir
14470 ) ) >"$at_stdout" 2>"$at_stder1"
14471   at_func_filter_trace $?
14472 else
14473   ( :;
14474 mkdir v7
14475 (cd v7
14476 TEST_TAR_FORMAT=v7
14477 export TEST_TAR_FORMAT
14478 TAR_OPTIONS="-H v7"
14479 export TAR_OPTIONS
14480 rm -rf *
14481
14482 umask 000
14483 mkdir dir
14484 chmod 755 dir
14485 echo bla > dir/file
14486 tar cf test.tar dir
14487 chmod 700 dir
14488 tar xfv test.tar --warning=no-timestamp
14489 genfile --stat=mode.777 dir
14490 ) ) >"$at_stdout" 2>"$at_stderr"
14491 fi
14492 at_status=$?
14493 at_failed=false
14494 at_func_diff_devnull "$at_stderr" || at_failed=:
14495 echo >>"$at_stdout"; $as_echo "dir/
14496 dir/file
14497 755
14498 " | \
14499   $at_diff - "$at_stdout" || at_failed=:
14500 at_func_check_status 0 $at_status "$at_srcdir/extrac08.at:36"
14501
14502 $at_failed && at_func_log_failure
14503 $at_traceon; }
14504
14505               { $at_traceoff
14506 $as_echo "$at_srcdir/extrac08.at:36:
14507 mkdir oldgnu
14508 (cd oldgnu
14509 TEST_TAR_FORMAT=oldgnu
14510 export TEST_TAR_FORMAT
14511 TAR_OPTIONS=\"-H oldgnu\"
14512 export TAR_OPTIONS
14513 rm -rf *
14514
14515 umask 000
14516 mkdir dir
14517 chmod 755 dir
14518 echo bla > dir/file
14519 tar cf test.tar dir
14520 chmod 700 dir
14521 tar xfv test.tar --warning=no-timestamp
14522 genfile --stat=mode.777 dir
14523 )"
14524 echo extrac08.at:36 >"$at_check_line_file"
14525
14526 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
14527    false; }; then
14528   ( $at_traceon;
14529 mkdir oldgnu
14530 (cd oldgnu
14531 TEST_TAR_FORMAT=oldgnu
14532 export TEST_TAR_FORMAT
14533 TAR_OPTIONS="-H oldgnu"
14534 export TAR_OPTIONS
14535 rm -rf *
14536
14537 umask 000
14538 mkdir dir
14539 chmod 755 dir
14540 echo bla > dir/file
14541 tar cf test.tar dir
14542 chmod 700 dir
14543 tar xfv test.tar --warning=no-timestamp
14544 genfile --stat=mode.777 dir
14545 ) ) >"$at_stdout" 2>"$at_stder1"
14546   at_func_filter_trace $?
14547 else
14548   ( :;
14549 mkdir oldgnu
14550 (cd oldgnu
14551 TEST_TAR_FORMAT=oldgnu
14552 export TEST_TAR_FORMAT
14553 TAR_OPTIONS="-H oldgnu"
14554 export TAR_OPTIONS
14555 rm -rf *
14556
14557 umask 000
14558 mkdir dir
14559 chmod 755 dir
14560 echo bla > dir/file
14561 tar cf test.tar dir
14562 chmod 700 dir
14563 tar xfv test.tar --warning=no-timestamp
14564 genfile --stat=mode.777 dir
14565 ) ) >"$at_stdout" 2>"$at_stderr"
14566 fi
14567 at_status=$?
14568 at_failed=false
14569 at_func_diff_devnull "$at_stderr" || at_failed=:
14570 echo >>"$at_stdout"; $as_echo "dir/
14571 dir/file
14572 755
14573 " | \
14574   $at_diff - "$at_stdout" || at_failed=:
14575 at_func_check_status 0 $at_status "$at_srcdir/extrac08.at:36"
14576
14577 $at_failed && at_func_log_failure
14578 $at_traceon; }
14579
14580               { $at_traceoff
14581 $as_echo "$at_srcdir/extrac08.at:36:
14582 mkdir ustar
14583 (cd ustar
14584 TEST_TAR_FORMAT=ustar
14585 export TEST_TAR_FORMAT
14586 TAR_OPTIONS=\"-H ustar\"
14587 export TAR_OPTIONS
14588 rm -rf *
14589
14590 umask 000
14591 mkdir dir
14592 chmod 755 dir
14593 echo bla > dir/file
14594 tar cf test.tar dir
14595 chmod 700 dir
14596 tar xfv test.tar --warning=no-timestamp
14597 genfile --stat=mode.777 dir
14598 )"
14599 echo extrac08.at:36 >"$at_check_line_file"
14600
14601 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
14602    false; }; then
14603   ( $at_traceon;
14604 mkdir ustar
14605 (cd ustar
14606 TEST_TAR_FORMAT=ustar
14607 export TEST_TAR_FORMAT
14608 TAR_OPTIONS="-H ustar"
14609 export TAR_OPTIONS
14610 rm -rf *
14611
14612 umask 000
14613 mkdir dir
14614 chmod 755 dir
14615 echo bla > dir/file
14616 tar cf test.tar dir
14617 chmod 700 dir
14618 tar xfv test.tar --warning=no-timestamp
14619 genfile --stat=mode.777 dir
14620 ) ) >"$at_stdout" 2>"$at_stder1"
14621   at_func_filter_trace $?
14622 else
14623   ( :;
14624 mkdir ustar
14625 (cd ustar
14626 TEST_TAR_FORMAT=ustar
14627 export TEST_TAR_FORMAT
14628 TAR_OPTIONS="-H ustar"
14629 export TAR_OPTIONS
14630 rm -rf *
14631
14632 umask 000
14633 mkdir dir
14634 chmod 755 dir
14635 echo bla > dir/file
14636 tar cf test.tar dir
14637 chmod 700 dir
14638 tar xfv test.tar --warning=no-timestamp
14639 genfile --stat=mode.777 dir
14640 ) ) >"$at_stdout" 2>"$at_stderr"
14641 fi
14642 at_status=$?
14643 at_failed=false
14644 at_func_diff_devnull "$at_stderr" || at_failed=:
14645 echo >>"$at_stdout"; $as_echo "dir/
14646 dir/file
14647 755
14648 " | \
14649   $at_diff - "$at_stdout" || at_failed=:
14650 at_func_check_status 0 $at_status "$at_srcdir/extrac08.at:36"
14651
14652 $at_failed && at_func_log_failure
14653 $at_traceon; }
14654
14655               { $at_traceoff
14656 $as_echo "$at_srcdir/extrac08.at:36:
14657 mkdir posix
14658 (cd posix
14659 TEST_TAR_FORMAT=posix
14660 export TEST_TAR_FORMAT
14661 TAR_OPTIONS=\"-H posix\"
14662 export TAR_OPTIONS
14663 rm -rf *
14664
14665 umask 000
14666 mkdir dir
14667 chmod 755 dir
14668 echo bla > dir/file
14669 tar cf test.tar dir
14670 chmod 700 dir
14671 tar xfv test.tar --warning=no-timestamp
14672 genfile --stat=mode.777 dir
14673 )"
14674 echo extrac08.at:36 >"$at_check_line_file"
14675
14676 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
14677    false; }; then
14678   ( $at_traceon;
14679 mkdir posix
14680 (cd posix
14681 TEST_TAR_FORMAT=posix
14682 export TEST_TAR_FORMAT
14683 TAR_OPTIONS="-H posix"
14684 export TAR_OPTIONS
14685 rm -rf *
14686
14687 umask 000
14688 mkdir dir
14689 chmod 755 dir
14690 echo bla > dir/file
14691 tar cf test.tar dir
14692 chmod 700 dir
14693 tar xfv test.tar --warning=no-timestamp
14694 genfile --stat=mode.777 dir
14695 ) ) >"$at_stdout" 2>"$at_stder1"
14696   at_func_filter_trace $?
14697 else
14698   ( :;
14699 mkdir posix
14700 (cd posix
14701 TEST_TAR_FORMAT=posix
14702 export TEST_TAR_FORMAT
14703 TAR_OPTIONS="-H posix"
14704 export TAR_OPTIONS
14705 rm -rf *
14706
14707 umask 000
14708 mkdir dir
14709 chmod 755 dir
14710 echo bla > dir/file
14711 tar cf test.tar dir
14712 chmod 700 dir
14713 tar xfv test.tar --warning=no-timestamp
14714 genfile --stat=mode.777 dir
14715 ) ) >"$at_stdout" 2>"$at_stderr"
14716 fi
14717 at_status=$?
14718 at_failed=false
14719 at_func_diff_devnull "$at_stderr" || at_failed=:
14720 echo >>"$at_stdout"; $as_echo "dir/
14721 dir/file
14722 755
14723 " | \
14724   $at_diff - "$at_stdout" || at_failed=:
14725 at_func_check_status 0 $at_status "$at_srcdir/extrac08.at:36"
14726
14727 $at_failed && at_func_log_failure
14728 $at_traceon; }
14729
14730               { $at_traceoff
14731 $as_echo "$at_srcdir/extrac08.at:36:
14732 mkdir gnu
14733 (cd gnu
14734 TEST_TAR_FORMAT=gnu
14735 export TEST_TAR_FORMAT
14736 TAR_OPTIONS=\"-H gnu\"
14737 export TAR_OPTIONS
14738 rm -rf *
14739
14740 umask 000
14741 mkdir dir
14742 chmod 755 dir
14743 echo bla > dir/file
14744 tar cf test.tar dir
14745 chmod 700 dir
14746 tar xfv test.tar --warning=no-timestamp
14747 genfile --stat=mode.777 dir
14748 )"
14749 echo extrac08.at:36 >"$at_check_line_file"
14750
14751 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
14752    false; }; then
14753   ( $at_traceon;
14754 mkdir gnu
14755 (cd gnu
14756 TEST_TAR_FORMAT=gnu
14757 export TEST_TAR_FORMAT
14758 TAR_OPTIONS="-H gnu"
14759 export TAR_OPTIONS
14760 rm -rf *
14761
14762 umask 000
14763 mkdir dir
14764 chmod 755 dir
14765 echo bla > dir/file
14766 tar cf test.tar dir
14767 chmod 700 dir
14768 tar xfv test.tar --warning=no-timestamp
14769 genfile --stat=mode.777 dir
14770 ) ) >"$at_stdout" 2>"$at_stder1"
14771   at_func_filter_trace $?
14772 else
14773   ( :;
14774 mkdir gnu
14775 (cd gnu
14776 TEST_TAR_FORMAT=gnu
14777 export TEST_TAR_FORMAT
14778 TAR_OPTIONS="-H gnu"
14779 export TAR_OPTIONS
14780 rm -rf *
14781
14782 umask 000
14783 mkdir dir
14784 chmod 755 dir
14785 echo bla > dir/file
14786 tar cf test.tar dir
14787 chmod 700 dir
14788 tar xfv test.tar --warning=no-timestamp
14789 genfile --stat=mode.777 dir
14790 ) ) >"$at_stdout" 2>"$at_stderr"
14791 fi
14792 at_status=$?
14793 at_failed=false
14794 at_func_diff_devnull "$at_stderr" || at_failed=:
14795 echo >>"$at_stdout"; $as_echo "dir/
14796 dir/file
14797 755
14798 " | \
14799   $at_diff - "$at_stdout" || at_failed=:
14800 at_func_check_status 0 $at_status "$at_srcdir/extrac08.at:36"
14801
14802 $at_failed && at_func_log_failure
14803 $at_traceon; }
14804
14805
14806
14807
14808   $at_traceoff
14809   $at_times_p && times >"$at_times_file"
14810 ) 5>&1 2>&1 | eval $at_tee_pipe
14811 at_status=`cat "$at_status_file"`
14812 #AT_STOP_33
14813 #AT_START_34
14814 # 34. extrac09.at:22: no need to save dir with unreadable . and ..
14815 at_setup_line='extrac09.at:22'
14816 at_desc="no need to save dir with unreadable . and .."
14817 $at_quiet $as_echo_n " 34: $at_desc   "
14818 at_xfail=no
14819       test -f $XFAILFILE && at_xfail=yes
14820 echo "#                             -*- compilation -*-" >> "$at_group_log"
14821 (
14822   $as_echo "34. extrac09.at:22: testing ..."
14823   $at_traceon
14824
14825
14826
14827
14828
14829   { $at_traceoff
14830 $as_echo "$at_srcdir/extrac09.at:25:
14831 mkdir gnu
14832 (cd gnu
14833 TEST_TAR_FORMAT=gnu
14834 export TEST_TAR_FORMAT
14835 TAR_OPTIONS=\"-H gnu\"
14836 export TAR_OPTIONS
14837 rm -rf *
14838
14839
14840 echo "test" > $$
14841 chmod 0 $$
14842 cat $$ > /dev/null 2>&1
14843 result=$?
14844 rm -f $$
14845 test $result -eq 0 && exit 77
14846
14847
14848 mkdir dir
14849 mkdir dir/sub
14850 mkdir dir/sub/extract
14851 genfile --file dir/sub/f
14852 cd dir/sub
14853
14854 tar -cf archive.tar f
14855
14856 chmod a-r . ..
14857 tar -xvf archive.tar -C extract f
14858 status=\$?
14859 chmod a+r . ..
14860 cmp f extract/f || status=\$?
14861 exit \$status
14862 )"
14863 echo extrac09.at:25 >"$at_check_line_file"
14864
14865 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
14866    false; }; then
14867   ( $at_traceon;
14868 mkdir gnu
14869 (cd gnu
14870 TEST_TAR_FORMAT=gnu
14871 export TEST_TAR_FORMAT
14872 TAR_OPTIONS="-H gnu"
14873 export TAR_OPTIONS
14874 rm -rf *
14875
14876
14877 echo "test" > $$
14878 chmod 0 $$
14879 cat $$ > /dev/null 2>&1
14880 result=$?
14881 rm -f $$
14882 test $result -eq 0 && exit 77
14883
14884
14885 mkdir dir
14886 mkdir dir/sub
14887 mkdir dir/sub/extract
14888 genfile --file dir/sub/f
14889 cd dir/sub
14890
14891 tar -cf archive.tar f
14892
14893 chmod a-r . ..
14894 tar -xvf archive.tar -C extract f
14895 status=$?
14896 chmod a+r . ..
14897 cmp f extract/f || status=$?
14898 exit $status
14899 ) ) >"$at_stdout" 2>"$at_stder1"
14900   at_func_filter_trace $?
14901 else
14902   ( :;
14903 mkdir gnu
14904 (cd gnu
14905 TEST_TAR_FORMAT=gnu
14906 export TEST_TAR_FORMAT
14907 TAR_OPTIONS="-H gnu"
14908 export TAR_OPTIONS
14909 rm -rf *
14910
14911
14912 echo "test" > $$
14913 chmod 0 $$
14914 cat $$ > /dev/null 2>&1
14915 result=$?
14916 rm -f $$
14917 test $result -eq 0 && exit 77
14918
14919
14920 mkdir dir
14921 mkdir dir/sub
14922 mkdir dir/sub/extract
14923 genfile --file dir/sub/f
14924 cd dir/sub
14925
14926 tar -cf archive.tar f
14927
14928 chmod a-r . ..
14929 tar -xvf archive.tar -C extract f
14930 status=$?
14931 chmod a+r . ..
14932 cmp f extract/f || status=$?
14933 exit $status
14934 ) ) >"$at_stdout" 2>"$at_stderr"
14935 fi
14936 at_status=$?
14937 at_failed=false
14938 at_func_diff_devnull "$at_stderr" || at_failed=:
14939 echo >>"$at_stdout"; $as_echo "f
14940 " | \
14941   $at_diff - "$at_stdout" || at_failed=:
14942 at_func_check_status 0 $at_status "$at_srcdir/extrac09.at:25"
14943
14944 $at_failed && at_func_log_failure
14945 $at_traceon; }
14946
14947
14948
14949
14950   $at_traceoff
14951   $at_times_p && times >"$at_times_file"
14952 ) 5>&1 2>&1 | eval $at_tee_pipe
14953 at_status=`cat "$at_status_file"`
14954 #AT_STOP_34
14955 #AT_START_35
14956 # 35. extrac10.at:27: -C and delayed setting of metadata
14957 at_setup_line='extrac10.at:27'
14958 at_desc="-C and delayed setting of metadata"
14959 $at_quiet $as_echo_n " 35: $at_desc             "
14960 at_xfail=no
14961       test -f $XFAILFILE && at_xfail=yes
14962 echo "#                             -*- compilation -*-" >> "$at_group_log"
14963 (
14964   $as_echo "35. extrac10.at:27: testing ..."
14965   $at_traceon
14966
14967
14968
14969
14970
14971   { $at_traceoff
14972 $as_echo "$at_srcdir/extrac10.at:30:
14973 mkdir gnu
14974 (cd gnu
14975 TEST_TAR_FORMAT=gnu
14976 export TEST_TAR_FORMAT
14977 TAR_OPTIONS=\"-H gnu\"
14978 export TAR_OPTIONS
14979 rm -rf *
14980
14981 mkdir d x x/y
14982 echo foo >d/d1
14983 echo bar >e
14984
14985 tar -cf archive.tar d e &&
14986 tar -xf archive.tar -C x d -C y e &&
14987 diff -r d x/d &&
14988 diff e x/y/e
14989 )"
14990 echo extrac10.at:30 >"$at_check_line_file"
14991
14992 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
14993    false; }; then
14994   ( $at_traceon;
14995 mkdir gnu
14996 (cd gnu
14997 TEST_TAR_FORMAT=gnu
14998 export TEST_TAR_FORMAT
14999 TAR_OPTIONS="-H gnu"
15000 export TAR_OPTIONS
15001 rm -rf *
15002
15003 mkdir d x x/y
15004 echo foo >d/d1
15005 echo bar >e
15006
15007 tar -cf archive.tar d e &&
15008 tar -xf archive.tar -C x d -C y e &&
15009 diff -r d x/d &&
15010 diff e x/y/e
15011 ) ) >"$at_stdout" 2>"$at_stder1"
15012   at_func_filter_trace $?
15013 else
15014   ( :;
15015 mkdir gnu
15016 (cd gnu
15017 TEST_TAR_FORMAT=gnu
15018 export TEST_TAR_FORMAT
15019 TAR_OPTIONS="-H gnu"
15020 export TAR_OPTIONS
15021 rm -rf *
15022
15023 mkdir d x x/y
15024 echo foo >d/d1
15025 echo bar >e
15026
15027 tar -cf archive.tar d e &&
15028 tar -xf archive.tar -C x d -C y e &&
15029 diff -r d x/d &&
15030 diff e x/y/e
15031 ) ) >"$at_stdout" 2>"$at_stderr"
15032 fi
15033 at_status=$?
15034 at_failed=false
15035 at_func_diff_devnull "$at_stderr" || at_failed=:
15036 at_func_diff_devnull "$at_stdout" || at_failed=:
15037 at_func_check_status 0 $at_status "$at_srcdir/extrac10.at:30"
15038
15039 $at_failed && at_func_log_failure
15040 $at_traceon; }
15041
15042
15043
15044
15045   $at_traceoff
15046   $at_times_p && times >"$at_times_file"
15047 ) 5>&1 2>&1 | eval $at_tee_pipe
15048 at_status=`cat "$at_status_file"`
15049 #AT_STOP_35
15050 #AT_START_36
15051 # 36. extrac11.at:23: scarce file descriptors
15052 at_setup_line='extrac11.at:23'
15053 at_desc="scarce file descriptors"
15054 $at_quiet $as_echo_n " 36: $at_desc                        "
15055 at_xfail=no
15056       test -f $XFAILFILE && at_xfail=yes
15057 echo "#                             -*- compilation -*-" >> "$at_group_log"
15058 (
15059   $as_echo "36. extrac11.at:23: testing ..."
15060   $at_traceon
15061
15062
15063
15064
15065
15066   { $at_traceoff
15067 $as_echo "$at_srcdir/extrac11.at:26:
15068 mkdir gnu
15069 (cd gnu
15070 TEST_TAR_FORMAT=gnu
15071 export TEST_TAR_FORMAT
15072 TAR_OPTIONS=\"-H gnu\"
15073 export TAR_OPTIONS
15074 rm -rf *
15075
15076 dirs='a
15077       a/b
15078       a/b/c
15079       a/b/c/d
15080       a/b/c/d/e
15081       a/b/c/d/e/f
15082       a/b/c/d/e/f/g
15083       a/b/c/d/e/f/g/h
15084       a/b/c/d/e/f/g/h/i
15085       a/b/c/d/e/f/g/h/i/j
15086       a/b/c/d/e/f/g/h/i/j/k
15087 '
15088 files=
15089 mkdir \$dirs dest1 dest2 dest3 || exit
15090 for dir in \$dirs; do
15091   for file in X Y Z; do
15092     echo \$file >\$dir/\$file || exit
15093     files=\"\$files \$file\"
15094   done
15095 done
15096
15097 # Check that \"ulimit\" itself works.
15098 ((ulimit -n 100 &&
15099   tar -cf archive1.tar a 3<&- 4<&- 5<&- 6<&- 7<&- 8<&- 9<&- &&
15100   tar -xf archive1.tar -C dest1 a 3<&- 4<&- 5<&- 6<&- 7<&- 8<&- 9<&-
15101  ) &&
15102  diff -r a dest1/a
15103 ) >/dev/null 2>&1 ||
15104    exit 77
15105
15106 # Another test that \"ulimit\" itself works:
15107 # tar should fail when completely starved of file descriptors.
15108 ((ulimit -n 4 &&
15109   tar -cf archive2.tar a 3<&- 4<&- 5<&- 6<&- 7<&- 8<&- 9<&- &&
15110   tar -xf archive2.tar -C dest2 a 3<&- 4<&- 5<&- 6<&- 7<&- 8<&- 9<&-
15111  ) &&
15112  diff -r a dest2/a
15113 ) >/dev/null 2>&1 &&
15114    exit 77
15115
15116 # Tar should work when there are few, but enough, file descriptors.
15117 ((ulimit -n 10 &&
15118   tar -cf archive3.tar a 3<&- 4<&- 5<&- 6<&- 7<&- 8<&- 9<&- &&
15119   tar -xf archive3.tar -C dest3 a 3<&- 4<&- 5<&- 6<&- 7<&- 8<&- 9<&-
15120  ) &&
15121  diff -r a dest3/a >/dev/null 2>&1
15122 ) || { diff -r a dest3/a; exit 1; }
15123 )"
15124 echo extrac11.at:26 >"$at_check_line_file"
15125
15126 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
15127    false; }; then
15128   ( $at_traceon;
15129 mkdir gnu
15130 (cd gnu
15131 TEST_TAR_FORMAT=gnu
15132 export TEST_TAR_FORMAT
15133 TAR_OPTIONS="-H gnu"
15134 export TAR_OPTIONS
15135 rm -rf *
15136
15137 dirs='a
15138       a/b
15139       a/b/c
15140       a/b/c/d
15141       a/b/c/d/e
15142       a/b/c/d/e/f
15143       a/b/c/d/e/f/g
15144       a/b/c/d/e/f/g/h
15145       a/b/c/d/e/f/g/h/i
15146       a/b/c/d/e/f/g/h/i/j
15147       a/b/c/d/e/f/g/h/i/j/k
15148 '
15149 files=
15150 mkdir $dirs dest1 dest2 dest3 || exit
15151 for dir in $dirs; do
15152   for file in X Y Z; do
15153     echo $file >$dir/$file || exit
15154     files="$files $file"
15155   done
15156 done
15157
15158 # Check that "ulimit" itself works.
15159 ((ulimit -n 100 &&
15160   tar -cf archive1.tar a 3<&- 4<&- 5<&- 6<&- 7<&- 8<&- 9<&- &&
15161   tar -xf archive1.tar -C dest1 a 3<&- 4<&- 5<&- 6<&- 7<&- 8<&- 9<&-
15162  ) &&
15163  diff -r a dest1/a
15164 ) >/dev/null 2>&1 ||
15165    exit 77
15166
15167 # Another test that "ulimit" itself works:
15168 # tar should fail when completely starved of file descriptors.
15169 ((ulimit -n 4 &&
15170   tar -cf archive2.tar a 3<&- 4<&- 5<&- 6<&- 7<&- 8<&- 9<&- &&
15171   tar -xf archive2.tar -C dest2 a 3<&- 4<&- 5<&- 6<&- 7<&- 8<&- 9<&-
15172  ) &&
15173  diff -r a dest2/a
15174 ) >/dev/null 2>&1 &&
15175    exit 77
15176
15177 # Tar should work when there are few, but enough, file descriptors.
15178 ((ulimit -n 10 &&
15179   tar -cf archive3.tar a 3<&- 4<&- 5<&- 6<&- 7<&- 8<&- 9<&- &&
15180   tar -xf archive3.tar -C dest3 a 3<&- 4<&- 5<&- 6<&- 7<&- 8<&- 9<&-
15181  ) &&
15182  diff -r a dest3/a >/dev/null 2>&1
15183 ) || { diff -r a dest3/a; exit 1; }
15184 ) ) >"$at_stdout" 2>"$at_stder1"
15185   at_func_filter_trace $?
15186 else
15187   ( :;
15188 mkdir gnu
15189 (cd gnu
15190 TEST_TAR_FORMAT=gnu
15191 export TEST_TAR_FORMAT
15192 TAR_OPTIONS="-H gnu"
15193 export TAR_OPTIONS
15194 rm -rf *
15195
15196 dirs='a
15197       a/b
15198       a/b/c
15199       a/b/c/d
15200       a/b/c/d/e
15201       a/b/c/d/e/f
15202       a/b/c/d/e/f/g
15203       a/b/c/d/e/f/g/h
15204       a/b/c/d/e/f/g/h/i
15205       a/b/c/d/e/f/g/h/i/j
15206       a/b/c/d/e/f/g/h/i/j/k
15207 '
15208 files=
15209 mkdir $dirs dest1 dest2 dest3 || exit
15210 for dir in $dirs; do
15211   for file in X Y Z; do
15212     echo $file >$dir/$file || exit
15213     files="$files $file"
15214   done
15215 done
15216
15217 # Check that "ulimit" itself works.
15218 ((ulimit -n 100 &&
15219   tar -cf archive1.tar a 3<&- 4<&- 5<&- 6<&- 7<&- 8<&- 9<&- &&
15220   tar -xf archive1.tar -C dest1 a 3<&- 4<&- 5<&- 6<&- 7<&- 8<&- 9<&-
15221  ) &&
15222  diff -r a dest1/a
15223 ) >/dev/null 2>&1 ||
15224    exit 77
15225
15226 # Another test that "ulimit" itself works:
15227 # tar should fail when completely starved of file descriptors.
15228 ((ulimit -n 4 &&
15229   tar -cf archive2.tar a 3<&- 4<&- 5<&- 6<&- 7<&- 8<&- 9<&- &&
15230   tar -xf archive2.tar -C dest2 a 3<&- 4<&- 5<&- 6<&- 7<&- 8<&- 9<&-
15231  ) &&
15232  diff -r a dest2/a
15233 ) >/dev/null 2>&1 &&
15234    exit 77
15235
15236 # Tar should work when there are few, but enough, file descriptors.
15237 ((ulimit -n 10 &&
15238   tar -cf archive3.tar a 3<&- 4<&- 5<&- 6<&- 7<&- 8<&- 9<&- &&
15239   tar -xf archive3.tar -C dest3 a 3<&- 4<&- 5<&- 6<&- 7<&- 8<&- 9<&-
15240  ) &&
15241  diff -r a dest3/a >/dev/null 2>&1
15242 ) || { diff -r a dest3/a; exit 1; }
15243 ) ) >"$at_stdout" 2>"$at_stderr"
15244 fi
15245 at_status=$?
15246 at_failed=false
15247 at_func_diff_devnull "$at_stderr" || at_failed=:
15248 at_func_diff_devnull "$at_stdout" || at_failed=:
15249 at_func_check_status 0 $at_status "$at_srcdir/extrac11.at:26"
15250
15251 $at_failed && at_func_log_failure
15252 $at_traceon; }
15253
15254
15255
15256
15257   $at_traceoff
15258   $at_times_p && times >"$at_times_file"
15259 ) 5>&1 2>&1 | eval $at_tee_pipe
15260 at_status=`cat "$at_status_file"`
15261 #AT_STOP_36
15262 #AT_START_37
15263 # 37. extrac12.at:23: extract dot permissions
15264 at_setup_line='extrac12.at:23'
15265 at_desc="extract dot permissions"
15266 $at_quiet $as_echo_n " 37: $at_desc                        "
15267 at_xfail=no
15268       test -f $XFAILFILE && at_xfail=yes
15269 echo "#                             -*- compilation -*-" >> "$at_group_log"
15270 (
15271   $as_echo "37. extrac12.at:23: testing ..."
15272   $at_traceon
15273
15274
15275
15276
15277
15278   { $at_traceoff
15279 $as_echo "$at_srcdir/extrac12.at:26:
15280 mkdir gnu
15281 (cd gnu
15282 TEST_TAR_FORMAT=gnu
15283 export TEST_TAR_FORMAT
15284 TAR_OPTIONS=\"-H gnu\"
15285 export TAR_OPTIONS
15286 rm -rf *
15287
15288 mkdir src dst
15289 echo file1 >src/file1
15290 echo file2 >src/file2
15291 chmod a-w src
15292
15293 tar --no-recursion -cf archive.tar -C src . ./file1 file2 &&
15294 tar -xf archive.tar -C dst &&
15295 cmp src/file1 dst/file1 &&
15296 cmp src/file2 dst/file2
15297 )"
15298 echo extrac12.at:26 >"$at_check_line_file"
15299
15300 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
15301    false; }; then
15302   ( $at_traceon;
15303 mkdir gnu
15304 (cd gnu
15305 TEST_TAR_FORMAT=gnu
15306 export TEST_TAR_FORMAT
15307 TAR_OPTIONS="-H gnu"
15308 export TAR_OPTIONS
15309 rm -rf *
15310
15311 mkdir src dst
15312 echo file1 >src/file1
15313 echo file2 >src/file2
15314 chmod a-w src
15315
15316 tar --no-recursion -cf archive.tar -C src . ./file1 file2 &&
15317 tar -xf archive.tar -C dst &&
15318 cmp src/file1 dst/file1 &&
15319 cmp src/file2 dst/file2
15320 ) ) >"$at_stdout" 2>"$at_stder1"
15321   at_func_filter_trace $?
15322 else
15323   ( :;
15324 mkdir gnu
15325 (cd gnu
15326 TEST_TAR_FORMAT=gnu
15327 export TEST_TAR_FORMAT
15328 TAR_OPTIONS="-H gnu"
15329 export TAR_OPTIONS
15330 rm -rf *
15331
15332 mkdir src dst
15333 echo file1 >src/file1
15334 echo file2 >src/file2
15335 chmod a-w src
15336
15337 tar --no-recursion -cf archive.tar -C src . ./file1 file2 &&
15338 tar -xf archive.tar -C dst &&
15339 cmp src/file1 dst/file1 &&
15340 cmp src/file2 dst/file2
15341 ) ) >"$at_stdout" 2>"$at_stderr"
15342 fi
15343 at_status=$?
15344 at_failed=false
15345 at_func_diff_devnull "$at_stderr" || at_failed=:
15346 at_func_diff_devnull "$at_stdout" || at_failed=:
15347 at_func_check_status 0 $at_status "$at_srcdir/extrac12.at:26"
15348
15349 $at_failed && at_func_log_failure
15350 $at_traceon; }
15351
15352
15353
15354
15355   $at_traceoff
15356   $at_times_p && times >"$at_times_file"
15357 ) 5>&1 2>&1 | eval $at_tee_pipe
15358 at_status=`cat "$at_status_file"`
15359 #AT_STOP_37
15360 #AT_START_38
15361 # 38. extrac13.at:24: extract over symlinks
15362 at_setup_line='extrac13.at:24'
15363 at_desc="extract over symlinks"
15364 $at_quiet $as_echo_n " 38: $at_desc                          "
15365 at_xfail=no
15366       test -f $XFAILFILE && at_xfail=yes
15367 echo "#                             -*- compilation -*-" >> "$at_group_log"
15368 (
15369   $as_echo "38. extrac13.at:24: testing ..."
15370   $at_traceon
15371
15372
15373
15374
15375
15376   { $at_traceoff
15377 $as_echo "$at_srcdir/extrac13.at:27:
15378 mkdir gnu
15379 (cd gnu
15380 TEST_TAR_FORMAT=gnu
15381 export TEST_TAR_FORMAT
15382 TAR_OPTIONS=\"-H gnu\"
15383 export TAR_OPTIONS
15384 rm -rf *
15385
15386 mkdir src dst1 dst2 dst3
15387 echo file1 >src/file1
15388 ln -s target1 dst1/file1
15389 echo target1 >dst1/target1
15390 echo target1 >target1
15391
15392 tar -cf archive.tar -C src . &&
15393 tar -xf archive.tar -C dst1 --warning=no-timestamp &&
15394 diff -c src/file1 dst1/file1 &&
15395 diff -c target1 dst1/target1
15396
15397 ln -s target1 dst2/file1
15398 echo target1 >dst2/target1
15399 tar --overwrite -xf archive.tar -C dst2 --warning=no-timestamp &&
15400 diff -c src/file1 dst2/file1 &&
15401 diff -c target1 dst2/target1
15402
15403 ln -s target1 dst3/file1
15404 echo target1 >dst3/target1
15405 tar --overwrite -xhf archive.tar -C dst3 --warning=no-timestamp &&
15406 diff -c src/file1 dst3/file1 &&
15407 diff -c src/file1 dst3/target1
15408 )"
15409 echo extrac13.at:27 >"$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 src dst1 dst2 dst3
15423 echo file1 >src/file1
15424 ln -s target1 dst1/file1
15425 echo target1 >dst1/target1
15426 echo target1 >target1
15427
15428 tar -cf archive.tar -C src . &&
15429 tar -xf archive.tar -C dst1 --warning=no-timestamp &&
15430 diff -c src/file1 dst1/file1 &&
15431 diff -c target1 dst1/target1
15432
15433 ln -s target1 dst2/file1
15434 echo target1 >dst2/target1
15435 tar --overwrite -xf archive.tar -C dst2 --warning=no-timestamp &&
15436 diff -c src/file1 dst2/file1 &&
15437 diff -c target1 dst2/target1
15438
15439 ln -s target1 dst3/file1
15440 echo target1 >dst3/target1
15441 tar --overwrite -xhf archive.tar -C dst3 --warning=no-timestamp &&
15442 diff -c src/file1 dst3/file1 &&
15443 diff -c src/file1 dst3/target1
15444 ) ) >"$at_stdout" 2>"$at_stder1"
15445   at_func_filter_trace $?
15446 else
15447   ( :;
15448 mkdir gnu
15449 (cd gnu
15450 TEST_TAR_FORMAT=gnu
15451 export TEST_TAR_FORMAT
15452 TAR_OPTIONS="-H gnu"
15453 export TAR_OPTIONS
15454 rm -rf *
15455
15456 mkdir src dst1 dst2 dst3
15457 echo file1 >src/file1
15458 ln -s target1 dst1/file1
15459 echo target1 >dst1/target1
15460 echo target1 >target1
15461
15462 tar -cf archive.tar -C src . &&
15463 tar -xf archive.tar -C dst1 --warning=no-timestamp &&
15464 diff -c src/file1 dst1/file1 &&
15465 diff -c target1 dst1/target1
15466
15467 ln -s target1 dst2/file1
15468 echo target1 >dst2/target1
15469 tar --overwrite -xf archive.tar -C dst2 --warning=no-timestamp &&
15470 diff -c src/file1 dst2/file1 &&
15471 diff -c target1 dst2/target1
15472
15473 ln -s target1 dst3/file1
15474 echo target1 >dst3/target1
15475 tar --overwrite -xhf archive.tar -C dst3 --warning=no-timestamp &&
15476 diff -c src/file1 dst3/file1 &&
15477 diff -c src/file1 dst3/target1
15478 ) ) >"$at_stdout" 2>"$at_stderr"
15479 fi
15480 at_status=$?
15481 at_failed=false
15482 at_func_diff_devnull "$at_stderr" || at_failed=:
15483 at_func_diff_devnull "$at_stdout" || at_failed=:
15484 at_func_check_status 0 $at_status "$at_srcdir/extrac13.at:27"
15485
15486 $at_failed && at_func_log_failure
15487 $at_traceon; }
15488
15489
15490
15491
15492   $at_traceoff
15493   $at_times_p && times >"$at_times_file"
15494 ) 5>&1 2>&1 | eval $at_tee_pipe
15495 at_status=`cat "$at_status_file"`
15496 #AT_STOP_38
15497 #AT_START_39
15498 # 39. extrac14.at:23: extract -C symlink
15499 at_setup_line='extrac14.at:23'
15500 at_desc="extract -C symlink"
15501 $at_quiet $as_echo_n " 39: $at_desc                             "
15502 at_xfail=no
15503       test -f $XFAILFILE && at_xfail=yes
15504 echo "#                             -*- compilation -*-" >> "$at_group_log"
15505 (
15506   $as_echo "39. extrac14.at:23: testing ..."
15507   $at_traceon
15508
15509
15510
15511
15512
15513   { $at_traceoff
15514 $as_echo "$at_srcdir/extrac14.at:26:
15515 mkdir gnu
15516 (cd gnu
15517 TEST_TAR_FORMAT=gnu
15518 export TEST_TAR_FORMAT
15519 TAR_OPTIONS=\"-H gnu\"
15520 export TAR_OPTIONS
15521 rm -rf *
15522
15523 mkdir dest
15524 ln -s dest symlink
15525 echo foo >foo
15526 tar -cf archive.tar foo &&
15527 tar -xf archive.tar -C symlink --warning=no-timestamp &&
15528 cmp foo dest/foo
15529 )"
15530 echo extrac14.at:26 >"$at_check_line_file"
15531
15532 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
15533    false; }; then
15534   ( $at_traceon;
15535 mkdir gnu
15536 (cd gnu
15537 TEST_TAR_FORMAT=gnu
15538 export TEST_TAR_FORMAT
15539 TAR_OPTIONS="-H gnu"
15540 export TAR_OPTIONS
15541 rm -rf *
15542
15543 mkdir dest
15544 ln -s dest symlink
15545 echo foo >foo
15546 tar -cf archive.tar foo &&
15547 tar -xf archive.tar -C symlink --warning=no-timestamp &&
15548 cmp foo dest/foo
15549 ) ) >"$at_stdout" 2>"$at_stder1"
15550   at_func_filter_trace $?
15551 else
15552   ( :;
15553 mkdir gnu
15554 (cd gnu
15555 TEST_TAR_FORMAT=gnu
15556 export TEST_TAR_FORMAT
15557 TAR_OPTIONS="-H gnu"
15558 export TAR_OPTIONS
15559 rm -rf *
15560
15561 mkdir dest
15562 ln -s dest symlink
15563 echo foo >foo
15564 tar -cf archive.tar foo &&
15565 tar -xf archive.tar -C symlink --warning=no-timestamp &&
15566 cmp foo dest/foo
15567 ) ) >"$at_stdout" 2>"$at_stderr"
15568 fi
15569 at_status=$?
15570 at_failed=false
15571 at_func_diff_devnull "$at_stderr" || at_failed=:
15572 at_func_diff_devnull "$at_stdout" || at_failed=:
15573 at_func_check_status 0 $at_status "$at_srcdir/extrac14.at:26"
15574
15575 $at_failed && at_func_log_failure
15576 $at_traceon; }
15577
15578
15579
15580
15581   $at_traceoff
15582   $at_times_p && times >"$at_times_file"
15583 ) 5>&1 2>&1 | eval $at_tee_pipe
15584 at_status=`cat "$at_status_file"`
15585 #AT_STOP_39
15586 #AT_START_40
15587 # 40. extrac15.at:23: extract parent mkdir failure
15588 at_setup_line='extrac15.at:23'
15589 at_desc="extract parent mkdir failure"
15590 $at_quiet $as_echo_n " 40: $at_desc                   "
15591 at_xfail=no
15592       test -f $XFAILFILE && at_xfail=yes
15593 echo "#                             -*- compilation -*-" >> "$at_group_log"
15594 (
15595   $as_echo "40. extrac15.at:23: testing ..."
15596   $at_traceon
15597
15598
15599
15600
15601
15602   { $at_traceoff
15603 $as_echo "$at_srcdir/extrac15.at:26:
15604 mkdir gnu
15605 (cd gnu
15606 TEST_TAR_FORMAT=gnu
15607 export TEST_TAR_FORMAT
15608 TAR_OPTIONS=\"-H gnu\"
15609 export TAR_OPTIONS
15610 rm -rf *
15611
15612
15613 echo "test" > $$
15614 chmod 0 $$
15615 cat $$ > /dev/null 2>&1
15616 result=$?
15617 rm -f $$
15618 test $result -eq 0 && exit 77
15619
15620
15621 mkdir src src/a src/a/b dest dest/a
15622 touch src/a/b/c
15623 chmod a-w dest/a
15624
15625 tar -cf archive.tar -C src a/b/c &&
15626 if tar -xf archive.tar -C dest a/b/c
15627 then (exit 1)
15628 else (exit 0)
15629 fi
15630 )"
15631 echo extrac15.at:26 >"$at_check_line_file"
15632
15633 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
15634    false; }; then
15635   ( $at_traceon;
15636 mkdir gnu
15637 (cd gnu
15638 TEST_TAR_FORMAT=gnu
15639 export TEST_TAR_FORMAT
15640 TAR_OPTIONS="-H gnu"
15641 export TAR_OPTIONS
15642 rm -rf *
15643
15644
15645 echo "test" > $$
15646 chmod 0 $$
15647 cat $$ > /dev/null 2>&1
15648 result=$?
15649 rm -f $$
15650 test $result -eq 0 && exit 77
15651
15652
15653 mkdir src src/a src/a/b dest dest/a
15654 touch src/a/b/c
15655 chmod a-w dest/a
15656
15657 tar -cf archive.tar -C src a/b/c &&
15658 if tar -xf archive.tar -C dest a/b/c
15659 then (exit 1)
15660 else (exit 0)
15661 fi
15662 ) ) >"$at_stdout" 2>"$at_stder1"
15663   at_func_filter_trace $?
15664 else
15665   ( :;
15666 mkdir gnu
15667 (cd gnu
15668 TEST_TAR_FORMAT=gnu
15669 export TEST_TAR_FORMAT
15670 TAR_OPTIONS="-H gnu"
15671 export TAR_OPTIONS
15672 rm -rf *
15673
15674
15675 echo "test" > $$
15676 chmod 0 $$
15677 cat $$ > /dev/null 2>&1
15678 result=$?
15679 rm -f $$
15680 test $result -eq 0 && exit 77
15681
15682
15683 mkdir src src/a src/a/b dest dest/a
15684 touch src/a/b/c
15685 chmod a-w dest/a
15686
15687 tar -cf archive.tar -C src a/b/c &&
15688 if tar -xf archive.tar -C dest a/b/c
15689 then (exit 1)
15690 else (exit 0)
15691 fi
15692 ) ) >"$at_stdout" 2>"$at_stderr"
15693 fi
15694 at_status=$?
15695 at_failed=false
15696 echo >>"$at_stderr"; $as_echo "tar: a/b: Cannot mkdir: Permission denied
15697 tar: a/b/c: Cannot open: No such file or directory
15698 tar: Exiting with failure status due to previous errors
15699 " | \
15700   $at_diff - "$at_stderr" || at_failed=:
15701 at_func_diff_devnull "$at_stdout" || at_failed=:
15702 at_func_check_status 0 $at_status "$at_srcdir/extrac15.at:26"
15703
15704 $at_failed && at_func_log_failure
15705 $at_traceon; }
15706
15707
15708
15709
15710   $at_traceoff
15711   $at_times_p && times >"$at_times_file"
15712 ) 5>&1 2>&1 | eval $at_tee_pipe
15713 at_status=`cat "$at_status_file"`
15714 #AT_STOP_40
15715 #AT_START_41
15716 # 41. label01.at:19: single-volume label
15717 at_setup_line='label01.at:19'
15718 at_desc="single-volume label"
15719 $at_quiet $as_echo_n " 41: $at_desc                            "
15720 at_xfail=no
15721       test -f $XFAILFILE && at_xfail=yes
15722 echo "#                             -*- compilation -*-" >> "$at_group_log"
15723 (
15724   $as_echo "41. label01.at:19: testing ..."
15725   $at_traceon
15726
15727
15728
15729
15730
15731   { $at_traceoff
15732 $as_echo "$at_srcdir/label01.at:22:
15733 mkdir gnu
15734 (cd gnu
15735 TEST_TAR_FORMAT=gnu
15736 export TEST_TAR_FORMAT
15737 TAR_OPTIONS=\"-H gnu\"
15738 export TAR_OPTIONS
15739 rm -rf *
15740
15741 genfile --file foo
15742 genfile --file bar
15743 tar -cf archive --label=Test foo bar
15744 tar tf archive
15745 )"
15746 echo label01.at:22 >"$at_check_line_file"
15747
15748 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
15749    false; }; then
15750   ( $at_traceon;
15751 mkdir gnu
15752 (cd gnu
15753 TEST_TAR_FORMAT=gnu
15754 export TEST_TAR_FORMAT
15755 TAR_OPTIONS="-H gnu"
15756 export TAR_OPTIONS
15757 rm -rf *
15758
15759 genfile --file foo
15760 genfile --file bar
15761 tar -cf archive --label=Test foo bar
15762 tar tf archive
15763 ) ) >"$at_stdout" 2>"$at_stder1"
15764   at_func_filter_trace $?
15765 else
15766   ( :;
15767 mkdir gnu
15768 (cd gnu
15769 TEST_TAR_FORMAT=gnu
15770 export TEST_TAR_FORMAT
15771 TAR_OPTIONS="-H gnu"
15772 export TAR_OPTIONS
15773 rm -rf *
15774
15775 genfile --file foo
15776 genfile --file bar
15777 tar -cf archive --label=Test foo bar
15778 tar tf archive
15779 ) ) >"$at_stdout" 2>"$at_stderr"
15780 fi
15781 at_status=$?
15782 at_failed=false
15783 at_func_diff_devnull "$at_stderr" || at_failed=:
15784 echo >>"$at_stdout"; $as_echo "Test
15785 foo
15786 bar
15787 " | \
15788   $at_diff - "$at_stdout" || at_failed=:
15789 at_func_check_status 0 $at_status "$at_srcdir/label01.at:22"
15790
15791 $at_failed && at_func_log_failure
15792 $at_traceon; }
15793
15794               { $at_traceoff
15795 $as_echo "$at_srcdir/label01.at:22:
15796 mkdir oldgnu
15797 (cd oldgnu
15798 TEST_TAR_FORMAT=oldgnu
15799 export TEST_TAR_FORMAT
15800 TAR_OPTIONS=\"-H oldgnu\"
15801 export TAR_OPTIONS
15802 rm -rf *
15803
15804 genfile --file foo
15805 genfile --file bar
15806 tar -cf archive --label=Test foo bar
15807 tar tf archive
15808 )"
15809 echo label01.at:22 >"$at_check_line_file"
15810
15811 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
15812    false; }; then
15813   ( $at_traceon;
15814 mkdir oldgnu
15815 (cd oldgnu
15816 TEST_TAR_FORMAT=oldgnu
15817 export TEST_TAR_FORMAT
15818 TAR_OPTIONS="-H oldgnu"
15819 export TAR_OPTIONS
15820 rm -rf *
15821
15822 genfile --file foo
15823 genfile --file bar
15824 tar -cf archive --label=Test foo bar
15825 tar tf archive
15826 ) ) >"$at_stdout" 2>"$at_stder1"
15827   at_func_filter_trace $?
15828 else
15829   ( :;
15830 mkdir oldgnu
15831 (cd oldgnu
15832 TEST_TAR_FORMAT=oldgnu
15833 export TEST_TAR_FORMAT
15834 TAR_OPTIONS="-H oldgnu"
15835 export TAR_OPTIONS
15836 rm -rf *
15837
15838 genfile --file foo
15839 genfile --file bar
15840 tar -cf archive --label=Test foo bar
15841 tar tf archive
15842 ) ) >"$at_stdout" 2>"$at_stderr"
15843 fi
15844 at_status=$?
15845 at_failed=false
15846 at_func_diff_devnull "$at_stderr" || at_failed=:
15847 echo >>"$at_stdout"; $as_echo "Test
15848 foo
15849 bar
15850 " | \
15851   $at_diff - "$at_stdout" || at_failed=:
15852 at_func_check_status 0 $at_status "$at_srcdir/label01.at:22"
15853
15854 $at_failed && at_func_log_failure
15855 $at_traceon; }
15856
15857               { $at_traceoff
15858 $as_echo "$at_srcdir/label01.at:22:
15859 mkdir posix
15860 (cd posix
15861 TEST_TAR_FORMAT=posix
15862 export TEST_TAR_FORMAT
15863 TAR_OPTIONS=\"-H posix\"
15864 export TAR_OPTIONS
15865 rm -rf *
15866
15867 genfile --file foo
15868 genfile --file bar
15869 tar -cf archive --label=Test foo bar
15870 tar tf archive
15871 )"
15872 echo label01.at:22 >"$at_check_line_file"
15873
15874 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
15875    false; }; then
15876   ( $at_traceon;
15877 mkdir posix
15878 (cd posix
15879 TEST_TAR_FORMAT=posix
15880 export TEST_TAR_FORMAT
15881 TAR_OPTIONS="-H posix"
15882 export TAR_OPTIONS
15883 rm -rf *
15884
15885 genfile --file foo
15886 genfile --file bar
15887 tar -cf archive --label=Test foo bar
15888 tar tf archive
15889 ) ) >"$at_stdout" 2>"$at_stder1"
15890   at_func_filter_trace $?
15891 else
15892   ( :;
15893 mkdir posix
15894 (cd posix
15895 TEST_TAR_FORMAT=posix
15896 export TEST_TAR_FORMAT
15897 TAR_OPTIONS="-H posix"
15898 export TAR_OPTIONS
15899 rm -rf *
15900
15901 genfile --file foo
15902 genfile --file bar
15903 tar -cf archive --label=Test foo bar
15904 tar tf archive
15905 ) ) >"$at_stdout" 2>"$at_stderr"
15906 fi
15907 at_status=$?
15908 at_failed=false
15909 at_func_diff_devnull "$at_stderr" || at_failed=:
15910 echo >>"$at_stdout"; $as_echo "Test
15911 foo
15912 bar
15913 " | \
15914   $at_diff - "$at_stdout" || at_failed=:
15915 at_func_check_status 0 $at_status "$at_srcdir/label01.at:22"
15916
15917 $at_failed && at_func_log_failure
15918 $at_traceon; }
15919
15920
15921
15922
15923   $at_traceoff
15924   $at_times_p && times >"$at_times_file"
15925 ) 5>&1 2>&1 | eval $at_tee_pipe
15926 at_status=`cat "$at_status_file"`
15927 #AT_STOP_41
15928 #AT_START_42
15929 # 42. label02.at:19: multi-volume label
15930 at_setup_line='label02.at:19'
15931 at_desc="multi-volume label"
15932 $at_quiet $as_echo_n " 42: $at_desc                             "
15933 at_xfail=no
15934       test -f $XFAILFILE && at_xfail=yes
15935 echo "#                             -*- compilation -*-" >> "$at_group_log"
15936 (
15937   $as_echo "42. label02.at:19: testing ..."
15938   $at_traceon
15939
15940
15941
15942
15943
15944   { $at_traceoff
15945 $as_echo "$at_srcdir/label02.at:22:
15946 mkdir gnu
15947 (cd gnu
15948 TEST_TAR_FORMAT=gnu
15949 export TEST_TAR_FORMAT
15950 TAR_OPTIONS=\"-H gnu\"
15951 export TAR_OPTIONS
15952 rm -rf *
15953
15954 exec <&-
15955 genfile --length 0 --file foo
15956 genfile --length 12288 --file bar
15957 genfile --length 12288 --file baz
15958 tar --label=Test -cM -L10 -f 1.tar -f 2.tar -f 3.tar -f 4.tar foo bar baz
15959 tar -Mt -f 1.tar -f 2.tar -f 3.tar -f 4.tar
15960 )"
15961 echo label02.at:22 >"$at_check_line_file"
15962
15963 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
15964    false; }; then
15965   ( $at_traceon;
15966 mkdir gnu
15967 (cd gnu
15968 TEST_TAR_FORMAT=gnu
15969 export TEST_TAR_FORMAT
15970 TAR_OPTIONS="-H gnu"
15971 export TAR_OPTIONS
15972 rm -rf *
15973
15974 exec <&-
15975 genfile --length 0 --file foo
15976 genfile --length 12288 --file bar
15977 genfile --length 12288 --file baz
15978 tar --label=Test -cM -L10 -f 1.tar -f 2.tar -f 3.tar -f 4.tar foo bar baz
15979 tar -Mt -f 1.tar -f 2.tar -f 3.tar -f 4.tar
15980 ) ) >"$at_stdout" 2>"$at_stder1"
15981   at_func_filter_trace $?
15982 else
15983   ( :;
15984 mkdir gnu
15985 (cd gnu
15986 TEST_TAR_FORMAT=gnu
15987 export TEST_TAR_FORMAT
15988 TAR_OPTIONS="-H gnu"
15989 export TAR_OPTIONS
15990 rm -rf *
15991
15992 exec <&-
15993 genfile --length 0 --file foo
15994 genfile --length 12288 --file bar
15995 genfile --length 12288 --file baz
15996 tar --label=Test -cM -L10 -f 1.tar -f 2.tar -f 3.tar -f 4.tar foo bar baz
15997 tar -Mt -f 1.tar -f 2.tar -f 3.tar -f 4.tar
15998 ) ) >"$at_stdout" 2>"$at_stderr"
15999 fi
16000 at_status=$?
16001 at_failed=false
16002 at_func_diff_devnull "$at_stderr" || at_failed=:
16003 echo >>"$at_stdout"; $as_echo "Test Volume 1
16004 foo
16005 bar
16006 baz
16007 " | \
16008   $at_diff - "$at_stdout" || at_failed=:
16009 at_func_check_status 0 $at_status "$at_srcdir/label02.at:22"
16010
16011 $at_failed && at_func_log_failure
16012 $at_traceon; }
16013
16014               { $at_traceoff
16015 $as_echo "$at_srcdir/label02.at:22:
16016 mkdir oldgnu
16017 (cd oldgnu
16018 TEST_TAR_FORMAT=oldgnu
16019 export TEST_TAR_FORMAT
16020 TAR_OPTIONS=\"-H oldgnu\"
16021 export TAR_OPTIONS
16022 rm -rf *
16023
16024 exec <&-
16025 genfile --length 0 --file foo
16026 genfile --length 12288 --file bar
16027 genfile --length 12288 --file baz
16028 tar --label=Test -cM -L10 -f 1.tar -f 2.tar -f 3.tar -f 4.tar foo bar baz
16029 tar -Mt -f 1.tar -f 2.tar -f 3.tar -f 4.tar
16030 )"
16031 echo label02.at:22 >"$at_check_line_file"
16032
16033 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
16034    false; }; then
16035   ( $at_traceon;
16036 mkdir oldgnu
16037 (cd oldgnu
16038 TEST_TAR_FORMAT=oldgnu
16039 export TEST_TAR_FORMAT
16040 TAR_OPTIONS="-H oldgnu"
16041 export TAR_OPTIONS
16042 rm -rf *
16043
16044 exec <&-
16045 genfile --length 0 --file foo
16046 genfile --length 12288 --file bar
16047 genfile --length 12288 --file baz
16048 tar --label=Test -cM -L10 -f 1.tar -f 2.tar -f 3.tar -f 4.tar foo bar baz
16049 tar -Mt -f 1.tar -f 2.tar -f 3.tar -f 4.tar
16050 ) ) >"$at_stdout" 2>"$at_stder1"
16051   at_func_filter_trace $?
16052 else
16053   ( :;
16054 mkdir oldgnu
16055 (cd oldgnu
16056 TEST_TAR_FORMAT=oldgnu
16057 export TEST_TAR_FORMAT
16058 TAR_OPTIONS="-H oldgnu"
16059 export TAR_OPTIONS
16060 rm -rf *
16061
16062 exec <&-
16063 genfile --length 0 --file foo
16064 genfile --length 12288 --file bar
16065 genfile --length 12288 --file baz
16066 tar --label=Test -cM -L10 -f 1.tar -f 2.tar -f 3.tar -f 4.tar foo bar baz
16067 tar -Mt -f 1.tar -f 2.tar -f 3.tar -f 4.tar
16068 ) ) >"$at_stdout" 2>"$at_stderr"
16069 fi
16070 at_status=$?
16071 at_failed=false
16072 at_func_diff_devnull "$at_stderr" || at_failed=:
16073 echo >>"$at_stdout"; $as_echo "Test Volume 1
16074 foo
16075 bar
16076 baz
16077 " | \
16078   $at_diff - "$at_stdout" || at_failed=:
16079 at_func_check_status 0 $at_status "$at_srcdir/label02.at:22"
16080
16081 $at_failed && at_func_log_failure
16082 $at_traceon; }
16083
16084               { $at_traceoff
16085 $as_echo "$at_srcdir/label02.at:22:
16086 mkdir posix
16087 (cd posix
16088 TEST_TAR_FORMAT=posix
16089 export TEST_TAR_FORMAT
16090 TAR_OPTIONS=\"-H posix\"
16091 export TAR_OPTIONS
16092 rm -rf *
16093
16094 exec <&-
16095 genfile --length 0 --file foo
16096 genfile --length 12288 --file bar
16097 genfile --length 12288 --file baz
16098 tar --label=Test -cM -L10 -f 1.tar -f 2.tar -f 3.tar -f 4.tar foo bar baz
16099 tar -Mt -f 1.tar -f 2.tar -f 3.tar -f 4.tar
16100 )"
16101 echo label02.at:22 >"$at_check_line_file"
16102
16103 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
16104    false; }; then
16105   ( $at_traceon;
16106 mkdir posix
16107 (cd posix
16108 TEST_TAR_FORMAT=posix
16109 export TEST_TAR_FORMAT
16110 TAR_OPTIONS="-H posix"
16111 export TAR_OPTIONS
16112 rm -rf *
16113
16114 exec <&-
16115 genfile --length 0 --file foo
16116 genfile --length 12288 --file bar
16117 genfile --length 12288 --file baz
16118 tar --label=Test -cM -L10 -f 1.tar -f 2.tar -f 3.tar -f 4.tar foo bar baz
16119 tar -Mt -f 1.tar -f 2.tar -f 3.tar -f 4.tar
16120 ) ) >"$at_stdout" 2>"$at_stder1"
16121   at_func_filter_trace $?
16122 else
16123   ( :;
16124 mkdir posix
16125 (cd posix
16126 TEST_TAR_FORMAT=posix
16127 export TEST_TAR_FORMAT
16128 TAR_OPTIONS="-H posix"
16129 export TAR_OPTIONS
16130 rm -rf *
16131
16132 exec <&-
16133 genfile --length 0 --file foo
16134 genfile --length 12288 --file bar
16135 genfile --length 12288 --file baz
16136 tar --label=Test -cM -L10 -f 1.tar -f 2.tar -f 3.tar -f 4.tar foo bar baz
16137 tar -Mt -f 1.tar -f 2.tar -f 3.tar -f 4.tar
16138 ) ) >"$at_stdout" 2>"$at_stderr"
16139 fi
16140 at_status=$?
16141 at_failed=false
16142 at_func_diff_devnull "$at_stderr" || at_failed=:
16143 echo >>"$at_stdout"; $as_echo "Test Volume 1
16144 foo
16145 bar
16146 baz
16147 " | \
16148   $at_diff - "$at_stdout" || at_failed=:
16149 at_func_check_status 0 $at_status "$at_srcdir/label02.at:22"
16150
16151 $at_failed && at_func_log_failure
16152 $at_traceon; }
16153
16154
16155
16156
16157   $at_traceoff
16158   $at_times_p && times >"$at_times_file"
16159 ) 5>&1 2>&1 | eval $at_tee_pipe
16160 at_status=`cat "$at_status_file"`
16161 #AT_STOP_42
16162 #AT_START_43
16163 # 43. label03.at:25: test-label option
16164 at_setup_line='label03.at:25'
16165 at_desc="test-label option"
16166 $at_quiet $as_echo_n " 43: $at_desc                              "
16167 at_xfail=no
16168       test -f $XFAILFILE && at_xfail=yes
16169 echo "#                             -*- compilation -*-" >> "$at_group_log"
16170 (
16171   $as_echo "43. label03.at:25: testing ..."
16172   $at_traceon
16173
16174
16175
16176
16177
16178   { $at_traceoff
16179 $as_echo "$at_srcdir/label03.at:28:
16180 mkdir gnu
16181 (cd gnu
16182 TEST_TAR_FORMAT=gnu
16183 export TEST_TAR_FORMAT
16184 TAR_OPTIONS=\"-H gnu\"
16185 export TAR_OPTIONS
16186 rm -rf *
16187
16188 exec <&-
16189 genfile --file file
16190 tar -c --label='iamalabel' --file iamanarchive file
16191 tar -c --file unlabeled.tar file
16192 decho \"# Display label\"
16193 tar --test-label --file=iamanarchive; echo \$?
16194 decho \"# Display label: unlabeled\"
16195 tar --test-label --file=unlabeled.tar; echo \$?
16196 decho \"# Test label: success\"
16197 tar --test-label --file=iamanarchive 'iamalabel'; echo \$?
16198 decho \"# Test label: failure\"
16199 tar --test-label --file=iamanarchive 'amalabel'; echo \$?
16200 decho \"# Test label: unlabeled\"
16201 tar --test-label --file=unlabeled.tar 'amalabel'; echo \$?
16202 decho \"# Test label, verbose: success\"
16203 tar --test-label --verbose --file=iamanarchive 'iamalabel'; echo \$?
16204 decho \"# Test label, verbose: failure\"
16205 tar --test-label --verbose --file=iamanarchive 'amalabel'; echo \$?
16206 decho \"# Test label: multiple arguments\"
16207 tar --test-label --file=iamanarchive a iamalabel b; echo \$?
16208 decho \"# Test label: wildcards\"
16209 tar --test-label --file=iamanarchive --wildcards '*label'; echo \$?
16210 )"
16211 echo label03.at:28 >"$at_check_line_file"
16212
16213 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
16214    false; }; then
16215   ( $at_traceon;
16216 mkdir gnu
16217 (cd gnu
16218 TEST_TAR_FORMAT=gnu
16219 export TEST_TAR_FORMAT
16220 TAR_OPTIONS="-H gnu"
16221 export TAR_OPTIONS
16222 rm -rf *
16223
16224 exec <&-
16225 genfile --file file
16226 tar -c --label='iamalabel' --file iamanarchive file
16227 tar -c --file unlabeled.tar file
16228 decho "# Display label"
16229 tar --test-label --file=iamanarchive; echo $?
16230 decho "# Display label: unlabeled"
16231 tar --test-label --file=unlabeled.tar; echo $?
16232 decho "# Test label: success"
16233 tar --test-label --file=iamanarchive 'iamalabel'; echo $?
16234 decho "# Test label: failure"
16235 tar --test-label --file=iamanarchive 'amalabel'; echo $?
16236 decho "# Test label: unlabeled"
16237 tar --test-label --file=unlabeled.tar 'amalabel'; echo $?
16238 decho "# Test label, verbose: success"
16239 tar --test-label --verbose --file=iamanarchive 'iamalabel'; echo $?
16240 decho "# Test label, verbose: failure"
16241 tar --test-label --verbose --file=iamanarchive 'amalabel'; echo $?
16242 decho "# Test label: multiple arguments"
16243 tar --test-label --file=iamanarchive a iamalabel b; echo $?
16244 decho "# Test label: wildcards"
16245 tar --test-label --file=iamanarchive --wildcards '*label'; echo $?
16246 ) ) >"$at_stdout" 2>"$at_stder1"
16247   at_func_filter_trace $?
16248 else
16249   ( :;
16250 mkdir gnu
16251 (cd gnu
16252 TEST_TAR_FORMAT=gnu
16253 export TEST_TAR_FORMAT
16254 TAR_OPTIONS="-H gnu"
16255 export TAR_OPTIONS
16256 rm -rf *
16257
16258 exec <&-
16259 genfile --file file
16260 tar -c --label='iamalabel' --file iamanarchive file
16261 tar -c --file unlabeled.tar file
16262 decho "# Display label"
16263 tar --test-label --file=iamanarchive; echo $?
16264 decho "# Display label: unlabeled"
16265 tar --test-label --file=unlabeled.tar; echo $?
16266 decho "# Test label: success"
16267 tar --test-label --file=iamanarchive 'iamalabel'; echo $?
16268 decho "# Test label: failure"
16269 tar --test-label --file=iamanarchive 'amalabel'; echo $?
16270 decho "# Test label: unlabeled"
16271 tar --test-label --file=unlabeled.tar 'amalabel'; echo $?
16272 decho "# Test label, verbose: success"
16273 tar --test-label --verbose --file=iamanarchive 'iamalabel'; echo $?
16274 decho "# Test label, verbose: failure"
16275 tar --test-label --verbose --file=iamanarchive 'amalabel'; echo $?
16276 decho "# Test label: multiple arguments"
16277 tar --test-label --file=iamanarchive a iamalabel b; echo $?
16278 decho "# Test label: wildcards"
16279 tar --test-label --file=iamanarchive --wildcards '*label'; echo $?
16280 ) ) >"$at_stdout" 2>"$at_stderr"
16281 fi
16282 at_status=$?
16283 at_failed=false
16284 echo >>"$at_stderr"; $as_echo "# Display label
16285 # Display label: unlabeled
16286 # Test label: success
16287 # Test label: failure
16288 # Test label: unlabeled
16289 # Test label, verbose: success
16290 # Test label, verbose: failure
16291 tar: Archive label mismatch
16292 # Test label: multiple arguments
16293 # Test label: wildcards
16294 " | \
16295   $at_diff - "$at_stderr" || at_failed=:
16296 echo >>"$at_stdout"; $as_echo "# Display label
16297 iamalabel
16298 0
16299 # Display label: unlabeled
16300 0
16301 # Test label: success
16302 0
16303 # Test label: failure
16304 1
16305 # Test label: unlabeled
16306 1
16307 # Test label, verbose: success
16308 iamalabel
16309 0
16310 # Test label, verbose: failure
16311 iamalabel
16312 1
16313 # Test label: multiple arguments
16314 0
16315 # Test label: wildcards
16316 0
16317 " | \
16318   $at_diff - "$at_stdout" || at_failed=:
16319 at_func_check_status 0 $at_status "$at_srcdir/label03.at:28"
16320
16321 $at_failed && at_func_log_failure
16322 $at_traceon; }
16323
16324               { $at_traceoff
16325 $as_echo "$at_srcdir/label03.at:28:
16326 mkdir oldgnu
16327 (cd oldgnu
16328 TEST_TAR_FORMAT=oldgnu
16329 export TEST_TAR_FORMAT
16330 TAR_OPTIONS=\"-H oldgnu\"
16331 export TAR_OPTIONS
16332 rm -rf *
16333
16334 exec <&-
16335 genfile --file file
16336 tar -c --label='iamalabel' --file iamanarchive file
16337 tar -c --file unlabeled.tar file
16338 decho \"# Display label\"
16339 tar --test-label --file=iamanarchive; echo \$?
16340 decho \"# Display label: unlabeled\"
16341 tar --test-label --file=unlabeled.tar; echo \$?
16342 decho \"# Test label: success\"
16343 tar --test-label --file=iamanarchive 'iamalabel'; echo \$?
16344 decho \"# Test label: failure\"
16345 tar --test-label --file=iamanarchive 'amalabel'; echo \$?
16346 decho \"# Test label: unlabeled\"
16347 tar --test-label --file=unlabeled.tar 'amalabel'; echo \$?
16348 decho \"# Test label, verbose: success\"
16349 tar --test-label --verbose --file=iamanarchive 'iamalabel'; echo \$?
16350 decho \"# Test label, verbose: failure\"
16351 tar --test-label --verbose --file=iamanarchive 'amalabel'; echo \$?
16352 decho \"# Test label: multiple arguments\"
16353 tar --test-label --file=iamanarchive a iamalabel b; echo \$?
16354 decho \"# Test label: wildcards\"
16355 tar --test-label --file=iamanarchive --wildcards '*label'; echo \$?
16356 )"
16357 echo label03.at:28 >"$at_check_line_file"
16358
16359 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
16360    false; }; then
16361   ( $at_traceon;
16362 mkdir oldgnu
16363 (cd oldgnu
16364 TEST_TAR_FORMAT=oldgnu
16365 export TEST_TAR_FORMAT
16366 TAR_OPTIONS="-H oldgnu"
16367 export TAR_OPTIONS
16368 rm -rf *
16369
16370 exec <&-
16371 genfile --file file
16372 tar -c --label='iamalabel' --file iamanarchive file
16373 tar -c --file unlabeled.tar file
16374 decho "# Display label"
16375 tar --test-label --file=iamanarchive; echo $?
16376 decho "# Display label: unlabeled"
16377 tar --test-label --file=unlabeled.tar; echo $?
16378 decho "# Test label: success"
16379 tar --test-label --file=iamanarchive 'iamalabel'; echo $?
16380 decho "# Test label: failure"
16381 tar --test-label --file=iamanarchive 'amalabel'; echo $?
16382 decho "# Test label: unlabeled"
16383 tar --test-label --file=unlabeled.tar 'amalabel'; echo $?
16384 decho "# Test label, verbose: success"
16385 tar --test-label --verbose --file=iamanarchive 'iamalabel'; echo $?
16386 decho "# Test label, verbose: failure"
16387 tar --test-label --verbose --file=iamanarchive 'amalabel'; echo $?
16388 decho "# Test label: multiple arguments"
16389 tar --test-label --file=iamanarchive a iamalabel b; echo $?
16390 decho "# Test label: wildcards"
16391 tar --test-label --file=iamanarchive --wildcards '*label'; echo $?
16392 ) ) >"$at_stdout" 2>"$at_stder1"
16393   at_func_filter_trace $?
16394 else
16395   ( :;
16396 mkdir oldgnu
16397 (cd oldgnu
16398 TEST_TAR_FORMAT=oldgnu
16399 export TEST_TAR_FORMAT
16400 TAR_OPTIONS="-H oldgnu"
16401 export TAR_OPTIONS
16402 rm -rf *
16403
16404 exec <&-
16405 genfile --file file
16406 tar -c --label='iamalabel' --file iamanarchive file
16407 tar -c --file unlabeled.tar file
16408 decho "# Display label"
16409 tar --test-label --file=iamanarchive; echo $?
16410 decho "# Display label: unlabeled"
16411 tar --test-label --file=unlabeled.tar; echo $?
16412 decho "# Test label: success"
16413 tar --test-label --file=iamanarchive 'iamalabel'; echo $?
16414 decho "# Test label: failure"
16415 tar --test-label --file=iamanarchive 'amalabel'; echo $?
16416 decho "# Test label: unlabeled"
16417 tar --test-label --file=unlabeled.tar 'amalabel'; echo $?
16418 decho "# Test label, verbose: success"
16419 tar --test-label --verbose --file=iamanarchive 'iamalabel'; echo $?
16420 decho "# Test label, verbose: failure"
16421 tar --test-label --verbose --file=iamanarchive 'amalabel'; echo $?
16422 decho "# Test label: multiple arguments"
16423 tar --test-label --file=iamanarchive a iamalabel b; echo $?
16424 decho "# Test label: wildcards"
16425 tar --test-label --file=iamanarchive --wildcards '*label'; echo $?
16426 ) ) >"$at_stdout" 2>"$at_stderr"
16427 fi
16428 at_status=$?
16429 at_failed=false
16430 echo >>"$at_stderr"; $as_echo "# Display label
16431 # Display label: unlabeled
16432 # Test label: success
16433 # Test label: failure
16434 # Test label: unlabeled
16435 # Test label, verbose: success
16436 # Test label, verbose: failure
16437 tar: Archive label mismatch
16438 # Test label: multiple arguments
16439 # Test label: wildcards
16440 " | \
16441   $at_diff - "$at_stderr" || at_failed=:
16442 echo >>"$at_stdout"; $as_echo "# Display label
16443 iamalabel
16444 0
16445 # Display label: unlabeled
16446 0
16447 # Test label: success
16448 0
16449 # Test label: failure
16450 1
16451 # Test label: unlabeled
16452 1
16453 # Test label, verbose: success
16454 iamalabel
16455 0
16456 # Test label, verbose: failure
16457 iamalabel
16458 1
16459 # Test label: multiple arguments
16460 0
16461 # Test label: wildcards
16462 0
16463 " | \
16464   $at_diff - "$at_stdout" || at_failed=:
16465 at_func_check_status 0 $at_status "$at_srcdir/label03.at:28"
16466
16467 $at_failed && at_func_log_failure
16468 $at_traceon; }
16469
16470               { $at_traceoff
16471 $as_echo "$at_srcdir/label03.at:28:
16472 mkdir posix
16473 (cd posix
16474 TEST_TAR_FORMAT=posix
16475 export TEST_TAR_FORMAT
16476 TAR_OPTIONS=\"-H posix\"
16477 export TAR_OPTIONS
16478 rm -rf *
16479
16480 exec <&-
16481 genfile --file file
16482 tar -c --label='iamalabel' --file iamanarchive file
16483 tar -c --file unlabeled.tar file
16484 decho \"# Display label\"
16485 tar --test-label --file=iamanarchive; echo \$?
16486 decho \"# Display label: unlabeled\"
16487 tar --test-label --file=unlabeled.tar; echo \$?
16488 decho \"# Test label: success\"
16489 tar --test-label --file=iamanarchive 'iamalabel'; echo \$?
16490 decho \"# Test label: failure\"
16491 tar --test-label --file=iamanarchive 'amalabel'; echo \$?
16492 decho \"# Test label: unlabeled\"
16493 tar --test-label --file=unlabeled.tar 'amalabel'; echo \$?
16494 decho \"# Test label, verbose: success\"
16495 tar --test-label --verbose --file=iamanarchive 'iamalabel'; echo \$?
16496 decho \"# Test label, verbose: failure\"
16497 tar --test-label --verbose --file=iamanarchive 'amalabel'; echo \$?
16498 decho \"# Test label: multiple arguments\"
16499 tar --test-label --file=iamanarchive a iamalabel b; echo \$?
16500 decho \"# Test label: wildcards\"
16501 tar --test-label --file=iamanarchive --wildcards '*label'; echo \$?
16502 )"
16503 echo label03.at:28 >"$at_check_line_file"
16504
16505 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
16506    false; }; then
16507   ( $at_traceon;
16508 mkdir posix
16509 (cd posix
16510 TEST_TAR_FORMAT=posix
16511 export TEST_TAR_FORMAT
16512 TAR_OPTIONS="-H posix"
16513 export TAR_OPTIONS
16514 rm -rf *
16515
16516 exec <&-
16517 genfile --file file
16518 tar -c --label='iamalabel' --file iamanarchive file
16519 tar -c --file unlabeled.tar file
16520 decho "# Display label"
16521 tar --test-label --file=iamanarchive; echo $?
16522 decho "# Display label: unlabeled"
16523 tar --test-label --file=unlabeled.tar; echo $?
16524 decho "# Test label: success"
16525 tar --test-label --file=iamanarchive 'iamalabel'; echo $?
16526 decho "# Test label: failure"
16527 tar --test-label --file=iamanarchive 'amalabel'; echo $?
16528 decho "# Test label: unlabeled"
16529 tar --test-label --file=unlabeled.tar 'amalabel'; echo $?
16530 decho "# Test label, verbose: success"
16531 tar --test-label --verbose --file=iamanarchive 'iamalabel'; echo $?
16532 decho "# Test label, verbose: failure"
16533 tar --test-label --verbose --file=iamanarchive 'amalabel'; echo $?
16534 decho "# Test label: multiple arguments"
16535 tar --test-label --file=iamanarchive a iamalabel b; echo $?
16536 decho "# Test label: wildcards"
16537 tar --test-label --file=iamanarchive --wildcards '*label'; echo $?
16538 ) ) >"$at_stdout" 2>"$at_stder1"
16539   at_func_filter_trace $?
16540 else
16541   ( :;
16542 mkdir posix
16543 (cd posix
16544 TEST_TAR_FORMAT=posix
16545 export TEST_TAR_FORMAT
16546 TAR_OPTIONS="-H posix"
16547 export TAR_OPTIONS
16548 rm -rf *
16549
16550 exec <&-
16551 genfile --file file
16552 tar -c --label='iamalabel' --file iamanarchive file
16553 tar -c --file unlabeled.tar file
16554 decho "# Display label"
16555 tar --test-label --file=iamanarchive; echo $?
16556 decho "# Display label: unlabeled"
16557 tar --test-label --file=unlabeled.tar; echo $?
16558 decho "# Test label: success"
16559 tar --test-label --file=iamanarchive 'iamalabel'; echo $?
16560 decho "# Test label: failure"
16561 tar --test-label --file=iamanarchive 'amalabel'; echo $?
16562 decho "# Test label: unlabeled"
16563 tar --test-label --file=unlabeled.tar 'amalabel'; echo $?
16564 decho "# Test label, verbose: success"
16565 tar --test-label --verbose --file=iamanarchive 'iamalabel'; echo $?
16566 decho "# Test label, verbose: failure"
16567 tar --test-label --verbose --file=iamanarchive 'amalabel'; echo $?
16568 decho "# Test label: multiple arguments"
16569 tar --test-label --file=iamanarchive a iamalabel b; echo $?
16570 decho "# Test label: wildcards"
16571 tar --test-label --file=iamanarchive --wildcards '*label'; echo $?
16572 ) ) >"$at_stdout" 2>"$at_stderr"
16573 fi
16574 at_status=$?
16575 at_failed=false
16576 echo >>"$at_stderr"; $as_echo "# Display label
16577 # Display label: unlabeled
16578 # Test label: success
16579 # Test label: failure
16580 # Test label: unlabeled
16581 # Test label, verbose: success
16582 # Test label, verbose: failure
16583 tar: Archive label mismatch
16584 # Test label: multiple arguments
16585 # Test label: wildcards
16586 " | \
16587   $at_diff - "$at_stderr" || at_failed=:
16588 echo >>"$at_stdout"; $as_echo "# Display label
16589 iamalabel
16590 0
16591 # Display label: unlabeled
16592 0
16593 # Test label: success
16594 0
16595 # Test label: failure
16596 1
16597 # Test label: unlabeled
16598 1
16599 # Test label, verbose: success
16600 iamalabel
16601 0
16602 # Test label, verbose: failure
16603 iamalabel
16604 1
16605 # Test label: multiple arguments
16606 0
16607 # Test label: wildcards
16608 0
16609 " | \
16610   $at_diff - "$at_stdout" || at_failed=:
16611 at_func_check_status 0 $at_status "$at_srcdir/label03.at:28"
16612
16613 $at_failed && at_func_log_failure
16614 $at_traceon; }
16615
16616
16617
16618
16619   $at_traceoff
16620   $at_times_p && times >"$at_times_file"
16621 ) 5>&1 2>&1 | eval $at_tee_pipe
16622 at_status=`cat "$at_status_file"`
16623 #AT_STOP_43
16624 #AT_START_44
16625 # 44. label04.at:25: label with non-create option
16626 at_setup_line='label04.at:25'
16627 at_desc="label with non-create option"
16628 $at_quiet $as_echo_n " 44: $at_desc                   "
16629 at_xfail=no
16630       test -f $XFAILFILE && at_xfail=yes
16631 echo "#                             -*- compilation -*-" >> "$at_group_log"
16632 (
16633   $as_echo "44. label04.at:25: testing ..."
16634   $at_traceon
16635
16636
16637
16638
16639
16640   { $at_traceoff
16641 $as_echo "$at_srcdir/label04.at:28:
16642 mkdir gnu
16643 (cd gnu
16644 TEST_TAR_FORMAT=gnu
16645 export TEST_TAR_FORMAT
16646 TAR_OPTIONS=\"-H gnu\"
16647 export TAR_OPTIONS
16648 rm -rf *
16649
16650 exec <&-
16651 genfile --file file
16652 decho \"# Create volume\"
16653 tar -c -f archive --label='New volume' file
16654 decho \"# Update: wrong label\"
16655 tar -rf archive --label='My volume' file; echo \$?
16656 decho \"# Update: right label\"
16657 tar -rf archive --label='New volume' file
16658 )"
16659 echo label04.at:28 >"$at_check_line_file"
16660
16661 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
16662    false; }; then
16663   ( $at_traceon;
16664 mkdir gnu
16665 (cd gnu
16666 TEST_TAR_FORMAT=gnu
16667 export TEST_TAR_FORMAT
16668 TAR_OPTIONS="-H gnu"
16669 export TAR_OPTIONS
16670 rm -rf *
16671
16672 exec <&-
16673 genfile --file file
16674 decho "# Create volume"
16675 tar -c -f archive --label='New volume' file
16676 decho "# Update: wrong label"
16677 tar -rf archive --label='My volume' file; echo $?
16678 decho "# Update: right label"
16679 tar -rf archive --label='New volume' file
16680 ) ) >"$at_stdout" 2>"$at_stder1"
16681   at_func_filter_trace $?
16682 else
16683   ( :;
16684 mkdir gnu
16685 (cd gnu
16686 TEST_TAR_FORMAT=gnu
16687 export TEST_TAR_FORMAT
16688 TAR_OPTIONS="-H gnu"
16689 export TAR_OPTIONS
16690 rm -rf *
16691
16692 exec <&-
16693 genfile --file file
16694 decho "# Create volume"
16695 tar -c -f archive --label='New volume' file
16696 decho "# Update: wrong label"
16697 tar -rf archive --label='My volume' file; echo $?
16698 decho "# Update: right label"
16699 tar -rf archive --label='New volume' file
16700 ) ) >"$at_stdout" 2>"$at_stderr"
16701 fi
16702 at_status=$?
16703 at_failed=false
16704 echo >>"$at_stderr"; $as_echo "# Create volume
16705 # Update: wrong label
16706 tar: Volume \`New volume' does not match \`My volume'
16707 tar: Error is not recoverable: exiting now
16708 # Update: right label
16709 " | \
16710   $at_diff - "$at_stderr" || at_failed=:
16711 echo >>"$at_stdout"; $as_echo "# Create volume
16712 # Update: wrong label
16713 2
16714 # Update: right label
16715 " | \
16716   $at_diff - "$at_stdout" || at_failed=:
16717 at_func_check_status 0 $at_status "$at_srcdir/label04.at:28"
16718
16719 $at_failed && at_func_log_failure
16720 $at_traceon; }
16721
16722               { $at_traceoff
16723 $as_echo "$at_srcdir/label04.at:28:
16724 mkdir oldgnu
16725 (cd oldgnu
16726 TEST_TAR_FORMAT=oldgnu
16727 export TEST_TAR_FORMAT
16728 TAR_OPTIONS=\"-H oldgnu\"
16729 export TAR_OPTIONS
16730 rm -rf *
16731
16732 exec <&-
16733 genfile --file file
16734 decho \"# Create volume\"
16735 tar -c -f archive --label='New volume' file
16736 decho \"# Update: wrong label\"
16737 tar -rf archive --label='My volume' file; echo \$?
16738 decho \"# Update: right label\"
16739 tar -rf archive --label='New volume' file
16740 )"
16741 echo label04.at:28 >"$at_check_line_file"
16742
16743 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
16744    false; }; then
16745   ( $at_traceon;
16746 mkdir oldgnu
16747 (cd oldgnu
16748 TEST_TAR_FORMAT=oldgnu
16749 export TEST_TAR_FORMAT
16750 TAR_OPTIONS="-H oldgnu"
16751 export TAR_OPTIONS
16752 rm -rf *
16753
16754 exec <&-
16755 genfile --file file
16756 decho "# Create volume"
16757 tar -c -f archive --label='New volume' file
16758 decho "# Update: wrong label"
16759 tar -rf archive --label='My volume' file; echo $?
16760 decho "# Update: right label"
16761 tar -rf archive --label='New volume' file
16762 ) ) >"$at_stdout" 2>"$at_stder1"
16763   at_func_filter_trace $?
16764 else
16765   ( :;
16766 mkdir oldgnu
16767 (cd oldgnu
16768 TEST_TAR_FORMAT=oldgnu
16769 export TEST_TAR_FORMAT
16770 TAR_OPTIONS="-H oldgnu"
16771 export TAR_OPTIONS
16772 rm -rf *
16773
16774 exec <&-
16775 genfile --file file
16776 decho "# Create volume"
16777 tar -c -f archive --label='New volume' file
16778 decho "# Update: wrong label"
16779 tar -rf archive --label='My volume' file; echo $?
16780 decho "# Update: right label"
16781 tar -rf archive --label='New volume' file
16782 ) ) >"$at_stdout" 2>"$at_stderr"
16783 fi
16784 at_status=$?
16785 at_failed=false
16786 echo >>"$at_stderr"; $as_echo "# Create volume
16787 # Update: wrong label
16788 tar: Volume \`New volume' does not match \`My volume'
16789 tar: Error is not recoverable: exiting now
16790 # Update: right label
16791 " | \
16792   $at_diff - "$at_stderr" || at_failed=:
16793 echo >>"$at_stdout"; $as_echo "# Create volume
16794 # Update: wrong label
16795 2
16796 # Update: right label
16797 " | \
16798   $at_diff - "$at_stdout" || at_failed=:
16799 at_func_check_status 0 $at_status "$at_srcdir/label04.at:28"
16800
16801 $at_failed && at_func_log_failure
16802 $at_traceon; }
16803
16804               { $at_traceoff
16805 $as_echo "$at_srcdir/label04.at:28:
16806 mkdir posix
16807 (cd posix
16808 TEST_TAR_FORMAT=posix
16809 export TEST_TAR_FORMAT
16810 TAR_OPTIONS=\"-H posix\"
16811 export TAR_OPTIONS
16812 rm -rf *
16813
16814 exec <&-
16815 genfile --file file
16816 decho \"# Create volume\"
16817 tar -c -f archive --label='New volume' file
16818 decho \"# Update: wrong label\"
16819 tar -rf archive --label='My volume' file; echo \$?
16820 decho \"# Update: right label\"
16821 tar -rf archive --label='New volume' file
16822 )"
16823 echo label04.at:28 >"$at_check_line_file"
16824
16825 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
16826    false; }; then
16827   ( $at_traceon;
16828 mkdir posix
16829 (cd posix
16830 TEST_TAR_FORMAT=posix
16831 export TEST_TAR_FORMAT
16832 TAR_OPTIONS="-H posix"
16833 export TAR_OPTIONS
16834 rm -rf *
16835
16836 exec <&-
16837 genfile --file file
16838 decho "# Create volume"
16839 tar -c -f archive --label='New volume' file
16840 decho "# Update: wrong label"
16841 tar -rf archive --label='My volume' file; echo $?
16842 decho "# Update: right label"
16843 tar -rf archive --label='New volume' file
16844 ) ) >"$at_stdout" 2>"$at_stder1"
16845   at_func_filter_trace $?
16846 else
16847   ( :;
16848 mkdir posix
16849 (cd posix
16850 TEST_TAR_FORMAT=posix
16851 export TEST_TAR_FORMAT
16852 TAR_OPTIONS="-H posix"
16853 export TAR_OPTIONS
16854 rm -rf *
16855
16856 exec <&-
16857 genfile --file file
16858 decho "# Create volume"
16859 tar -c -f archive --label='New volume' file
16860 decho "# Update: wrong label"
16861 tar -rf archive --label='My volume' file; echo $?
16862 decho "# Update: right label"
16863 tar -rf archive --label='New volume' file
16864 ) ) >"$at_stdout" 2>"$at_stderr"
16865 fi
16866 at_status=$?
16867 at_failed=false
16868 echo >>"$at_stderr"; $as_echo "# Create volume
16869 # Update: wrong label
16870 tar: Volume \`New volume' does not match \`My volume'
16871 tar: Error is not recoverable: exiting now
16872 # Update: right label
16873 " | \
16874   $at_diff - "$at_stderr" || at_failed=:
16875 echo >>"$at_stdout"; $as_echo "# Create volume
16876 # Update: wrong label
16877 2
16878 # Update: right label
16879 " | \
16880   $at_diff - "$at_stdout" || at_failed=:
16881 at_func_check_status 0 $at_status "$at_srcdir/label04.at:28"
16882
16883 $at_failed && at_func_log_failure
16884 $at_traceon; }
16885
16886
16887
16888
16889   $at_traceoff
16890   $at_times_p && times >"$at_times_file"
16891 ) 5>&1 2>&1 | eval $at_tee_pipe
16892 at_status=`cat "$at_status_file"`
16893 #AT_STOP_44
16894 #AT_START_45
16895 # 45. label05.at:22: label with non-create option
16896 at_setup_line='label05.at:22'
16897 at_desc="label with non-create option"
16898 $at_quiet $as_echo_n " 45: $at_desc                   "
16899 at_xfail=no
16900       test -f $XFAILFILE && at_xfail=yes
16901 echo "#                             -*- compilation -*-" >> "$at_group_log"
16902 (
16903   $as_echo "45. label05.at:22: testing ..."
16904   $at_traceon
16905
16906
16907
16908
16909
16910   { $at_traceoff
16911 $as_echo "$at_srcdir/label05.at:25:
16912 mkdir gnu
16913 (cd gnu
16914 TEST_TAR_FORMAT=gnu
16915 export TEST_TAR_FORMAT
16916 TAR_OPTIONS=\"-H gnu\"
16917 export TAR_OPTIONS
16918 rm -rf *
16919
16920 exec <&-
16921 genfile --file file
16922 decho \"# Create volume\"
16923 tar -c -f archive file
16924 decho \"# Update: wrong label\"
16925 tar -rf archive --label='My volume' file; echo \$?
16926 decho \"# Update: right label\"
16927 tar -rf archive file
16928 )"
16929 echo label05.at:25 >"$at_check_line_file"
16930
16931 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
16932    false; }; then
16933   ( $at_traceon;
16934 mkdir gnu
16935 (cd gnu
16936 TEST_TAR_FORMAT=gnu
16937 export TEST_TAR_FORMAT
16938 TAR_OPTIONS="-H gnu"
16939 export TAR_OPTIONS
16940 rm -rf *
16941
16942 exec <&-
16943 genfile --file file
16944 decho "# Create volume"
16945 tar -c -f archive file
16946 decho "# Update: wrong label"
16947 tar -rf archive --label='My volume' file; echo $?
16948 decho "# Update: right label"
16949 tar -rf archive file
16950 ) ) >"$at_stdout" 2>"$at_stder1"
16951   at_func_filter_trace $?
16952 else
16953   ( :;
16954 mkdir gnu
16955 (cd gnu
16956 TEST_TAR_FORMAT=gnu
16957 export TEST_TAR_FORMAT
16958 TAR_OPTIONS="-H gnu"
16959 export TAR_OPTIONS
16960 rm -rf *
16961
16962 exec <&-
16963 genfile --file file
16964 decho "# Create volume"
16965 tar -c -f archive file
16966 decho "# Update: wrong label"
16967 tar -rf archive --label='My volume' file; echo $?
16968 decho "# Update: right label"
16969 tar -rf archive file
16970 ) ) >"$at_stdout" 2>"$at_stderr"
16971 fi
16972 at_status=$?
16973 at_failed=false
16974 echo >>"$at_stderr"; $as_echo "# Create volume
16975 # Update: wrong label
16976 tar: Archive not labeled to match \`My volume'
16977 tar: Error is not recoverable: exiting now
16978 # Update: right label
16979 " | \
16980   $at_diff - "$at_stderr" || at_failed=:
16981 echo >>"$at_stdout"; $as_echo "# Create volume
16982 # Update: wrong label
16983 2
16984 # Update: right label
16985 " | \
16986   $at_diff - "$at_stdout" || at_failed=:
16987 at_func_check_status 0 $at_status "$at_srcdir/label05.at:25"
16988
16989 $at_failed && at_func_log_failure
16990 $at_traceon; }
16991
16992               { $at_traceoff
16993 $as_echo "$at_srcdir/label05.at:25:
16994 mkdir oldgnu
16995 (cd oldgnu
16996 TEST_TAR_FORMAT=oldgnu
16997 export TEST_TAR_FORMAT
16998 TAR_OPTIONS=\"-H oldgnu\"
16999 export TAR_OPTIONS
17000 rm -rf *
17001
17002 exec <&-
17003 genfile --file file
17004 decho \"# Create volume\"
17005 tar -c -f archive file
17006 decho \"# Update: wrong label\"
17007 tar -rf archive --label='My volume' file; echo \$?
17008 decho \"# Update: right label\"
17009 tar -rf archive file
17010 )"
17011 echo label05.at:25 >"$at_check_line_file"
17012
17013 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
17014    false; }; then
17015   ( $at_traceon;
17016 mkdir oldgnu
17017 (cd oldgnu
17018 TEST_TAR_FORMAT=oldgnu
17019 export TEST_TAR_FORMAT
17020 TAR_OPTIONS="-H oldgnu"
17021 export TAR_OPTIONS
17022 rm -rf *
17023
17024 exec <&-
17025 genfile --file file
17026 decho "# Create volume"
17027 tar -c -f archive file
17028 decho "# Update: wrong label"
17029 tar -rf archive --label='My volume' file; echo $?
17030 decho "# Update: right label"
17031 tar -rf archive file
17032 ) ) >"$at_stdout" 2>"$at_stder1"
17033   at_func_filter_trace $?
17034 else
17035   ( :;
17036 mkdir oldgnu
17037 (cd oldgnu
17038 TEST_TAR_FORMAT=oldgnu
17039 export TEST_TAR_FORMAT
17040 TAR_OPTIONS="-H oldgnu"
17041 export TAR_OPTIONS
17042 rm -rf *
17043
17044 exec <&-
17045 genfile --file file
17046 decho "# Create volume"
17047 tar -c -f archive file
17048 decho "# Update: wrong label"
17049 tar -rf archive --label='My volume' file; echo $?
17050 decho "# Update: right label"
17051 tar -rf archive file
17052 ) ) >"$at_stdout" 2>"$at_stderr"
17053 fi
17054 at_status=$?
17055 at_failed=false
17056 echo >>"$at_stderr"; $as_echo "# Create volume
17057 # Update: wrong label
17058 tar: Archive not labeled to match \`My volume'
17059 tar: Error is not recoverable: exiting now
17060 # Update: right label
17061 " | \
17062   $at_diff - "$at_stderr" || at_failed=:
17063 echo >>"$at_stdout"; $as_echo "# Create volume
17064 # Update: wrong label
17065 2
17066 # Update: right label
17067 " | \
17068   $at_diff - "$at_stdout" || at_failed=:
17069 at_func_check_status 0 $at_status "$at_srcdir/label05.at:25"
17070
17071 $at_failed && at_func_log_failure
17072 $at_traceon; }
17073
17074               { $at_traceoff
17075 $as_echo "$at_srcdir/label05.at:25:
17076 mkdir posix
17077 (cd posix
17078 TEST_TAR_FORMAT=posix
17079 export TEST_TAR_FORMAT
17080 TAR_OPTIONS=\"-H posix\"
17081 export TAR_OPTIONS
17082 rm -rf *
17083
17084 exec <&-
17085 genfile --file file
17086 decho \"# Create volume\"
17087 tar -c -f archive file
17088 decho \"# Update: wrong label\"
17089 tar -rf archive --label='My volume' file; echo \$?
17090 decho \"# Update: right label\"
17091 tar -rf archive file
17092 )"
17093 echo label05.at:25 >"$at_check_line_file"
17094
17095 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
17096    false; }; then
17097   ( $at_traceon;
17098 mkdir posix
17099 (cd posix
17100 TEST_TAR_FORMAT=posix
17101 export TEST_TAR_FORMAT
17102 TAR_OPTIONS="-H posix"
17103 export TAR_OPTIONS
17104 rm -rf *
17105
17106 exec <&-
17107 genfile --file file
17108 decho "# Create volume"
17109 tar -c -f archive file
17110 decho "# Update: wrong label"
17111 tar -rf archive --label='My volume' file; echo $?
17112 decho "# Update: right label"
17113 tar -rf archive file
17114 ) ) >"$at_stdout" 2>"$at_stder1"
17115   at_func_filter_trace $?
17116 else
17117   ( :;
17118 mkdir posix
17119 (cd posix
17120 TEST_TAR_FORMAT=posix
17121 export TEST_TAR_FORMAT
17122 TAR_OPTIONS="-H posix"
17123 export TAR_OPTIONS
17124 rm -rf *
17125
17126 exec <&-
17127 genfile --file file
17128 decho "# Create volume"
17129 tar -c -f archive file
17130 decho "# Update: wrong label"
17131 tar -rf archive --label='My volume' file; echo $?
17132 decho "# Update: right label"
17133 tar -rf archive file
17134 ) ) >"$at_stdout" 2>"$at_stderr"
17135 fi
17136 at_status=$?
17137 at_failed=false
17138 echo >>"$at_stderr"; $as_echo "# Create volume
17139 # Update: wrong label
17140 tar: Archive not labeled to match \`My volume'
17141 tar: Error is not recoverable: exiting now
17142 # Update: right label
17143 " | \
17144   $at_diff - "$at_stderr" || at_failed=:
17145 echo >>"$at_stdout"; $as_echo "# Create volume
17146 # Update: wrong label
17147 2
17148 # Update: right label
17149 " | \
17150   $at_diff - "$at_stdout" || at_failed=:
17151 at_func_check_status 0 $at_status "$at_srcdir/label05.at:25"
17152
17153 $at_failed && at_func_log_failure
17154 $at_traceon; }
17155
17156
17157
17158
17159   $at_traceoff
17160   $at_times_p && times >"$at_times_file"
17161 ) 5>&1 2>&1 | eval $at_tee_pipe
17162 at_status=`cat "$at_status_file"`
17163 #AT_STOP_45
17164 #AT_START_46
17165 # 46. backup01.at:33: extracting existing dir with --backup
17166 at_setup_line='backup01.at:33'
17167 at_desc="extracting existing dir with --backup"
17168 $at_quiet $as_echo_n " 46: $at_desc          "
17169 at_xfail=no
17170       test -f $XFAILFILE && at_xfail=yes
17171 echo "#                             -*- compilation -*-" >> "$at_group_log"
17172 (
17173   $as_echo "46. backup01.at:33: testing ..."
17174   $at_traceon
17175
17176
17177
17178
17179
17180   { $at_traceoff
17181 $as_echo "$at_srcdir/backup01.at:36:
17182 mkdir v7
17183 (cd v7
17184 TEST_TAR_FORMAT=v7
17185 export TEST_TAR_FORMAT
17186 TAR_OPTIONS=\"-H v7\"
17187 export TAR_OPTIONS
17188 rm -rf *
17189
17190 mkdir dir1 dir2
17191 echo bla > dir1/file1
17192 tar cf test.tar dir1 dir2
17193 tar xfv test.tar --backup --warning=no-timestamp
17194 )"
17195 echo backup01.at:36 >"$at_check_line_file"
17196
17197 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
17198    false; }; then
17199   ( $at_traceon;
17200 mkdir v7
17201 (cd v7
17202 TEST_TAR_FORMAT=v7
17203 export TEST_TAR_FORMAT
17204 TAR_OPTIONS="-H v7"
17205 export TAR_OPTIONS
17206 rm -rf *
17207
17208 mkdir dir1 dir2
17209 echo bla > dir1/file1
17210 tar cf test.tar dir1 dir2
17211 tar xfv test.tar --backup --warning=no-timestamp
17212 ) ) >"$at_stdout" 2>"$at_stder1"
17213   at_func_filter_trace $?
17214 else
17215   ( :;
17216 mkdir v7
17217 (cd v7
17218 TEST_TAR_FORMAT=v7
17219 export TEST_TAR_FORMAT
17220 TAR_OPTIONS="-H v7"
17221 export TAR_OPTIONS
17222 rm -rf *
17223
17224 mkdir dir1 dir2
17225 echo bla > dir1/file1
17226 tar cf test.tar dir1 dir2
17227 tar xfv test.tar --backup --warning=no-timestamp
17228 ) ) >"$at_stdout" 2>"$at_stderr"
17229 fi
17230 at_status=$?
17231 at_failed=false
17232 at_func_diff_devnull "$at_stderr" || at_failed=:
17233 echo >>"$at_stdout"; $as_echo "dir1/
17234 dir1/file1
17235 Renaming \`dir1/file1' to \`dir1/file1~'
17236 dir2/
17237 " | \
17238   $at_diff - "$at_stdout" || at_failed=:
17239 at_func_check_status 0 $at_status "$at_srcdir/backup01.at:36"
17240
17241 $at_failed && at_func_log_failure
17242 $at_traceon; }
17243
17244               { $at_traceoff
17245 $as_echo "$at_srcdir/backup01.at:36:
17246 mkdir oldgnu
17247 (cd oldgnu
17248 TEST_TAR_FORMAT=oldgnu
17249 export TEST_TAR_FORMAT
17250 TAR_OPTIONS=\"-H oldgnu\"
17251 export TAR_OPTIONS
17252 rm -rf *
17253
17254 mkdir dir1 dir2
17255 echo bla > dir1/file1
17256 tar cf test.tar dir1 dir2
17257 tar xfv test.tar --backup --warning=no-timestamp
17258 )"
17259 echo backup01.at:36 >"$at_check_line_file"
17260
17261 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
17262    false; }; then
17263   ( $at_traceon;
17264 mkdir oldgnu
17265 (cd oldgnu
17266 TEST_TAR_FORMAT=oldgnu
17267 export TEST_TAR_FORMAT
17268 TAR_OPTIONS="-H oldgnu"
17269 export TAR_OPTIONS
17270 rm -rf *
17271
17272 mkdir dir1 dir2
17273 echo bla > dir1/file1
17274 tar cf test.tar dir1 dir2
17275 tar xfv test.tar --backup --warning=no-timestamp
17276 ) ) >"$at_stdout" 2>"$at_stder1"
17277   at_func_filter_trace $?
17278 else
17279   ( :;
17280 mkdir oldgnu
17281 (cd oldgnu
17282 TEST_TAR_FORMAT=oldgnu
17283 export TEST_TAR_FORMAT
17284 TAR_OPTIONS="-H oldgnu"
17285 export TAR_OPTIONS
17286 rm -rf *
17287
17288 mkdir dir1 dir2
17289 echo bla > dir1/file1
17290 tar cf test.tar dir1 dir2
17291 tar xfv test.tar --backup --warning=no-timestamp
17292 ) ) >"$at_stdout" 2>"$at_stderr"
17293 fi
17294 at_status=$?
17295 at_failed=false
17296 at_func_diff_devnull "$at_stderr" || at_failed=:
17297 echo >>"$at_stdout"; $as_echo "dir1/
17298 dir1/file1
17299 Renaming \`dir1/file1' to \`dir1/file1~'
17300 dir2/
17301 " | \
17302   $at_diff - "$at_stdout" || at_failed=:
17303 at_func_check_status 0 $at_status "$at_srcdir/backup01.at:36"
17304
17305 $at_failed && at_func_log_failure
17306 $at_traceon; }
17307
17308               { $at_traceoff
17309 $as_echo "$at_srcdir/backup01.at:36:
17310 mkdir ustar
17311 (cd ustar
17312 TEST_TAR_FORMAT=ustar
17313 export TEST_TAR_FORMAT
17314 TAR_OPTIONS=\"-H ustar\"
17315 export TAR_OPTIONS
17316 rm -rf *
17317
17318 mkdir dir1 dir2
17319 echo bla > dir1/file1
17320 tar cf test.tar dir1 dir2
17321 tar xfv test.tar --backup --warning=no-timestamp
17322 )"
17323 echo backup01.at:36 >"$at_check_line_file"
17324
17325 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
17326    false; }; then
17327   ( $at_traceon;
17328 mkdir ustar
17329 (cd ustar
17330 TEST_TAR_FORMAT=ustar
17331 export TEST_TAR_FORMAT
17332 TAR_OPTIONS="-H ustar"
17333 export TAR_OPTIONS
17334 rm -rf *
17335
17336 mkdir dir1 dir2
17337 echo bla > dir1/file1
17338 tar cf test.tar dir1 dir2
17339 tar xfv test.tar --backup --warning=no-timestamp
17340 ) ) >"$at_stdout" 2>"$at_stder1"
17341   at_func_filter_trace $?
17342 else
17343   ( :;
17344 mkdir ustar
17345 (cd ustar
17346 TEST_TAR_FORMAT=ustar
17347 export TEST_TAR_FORMAT
17348 TAR_OPTIONS="-H ustar"
17349 export TAR_OPTIONS
17350 rm -rf *
17351
17352 mkdir dir1 dir2
17353 echo bla > dir1/file1
17354 tar cf test.tar dir1 dir2
17355 tar xfv test.tar --backup --warning=no-timestamp
17356 ) ) >"$at_stdout" 2>"$at_stderr"
17357 fi
17358 at_status=$?
17359 at_failed=false
17360 at_func_diff_devnull "$at_stderr" || at_failed=:
17361 echo >>"$at_stdout"; $as_echo "dir1/
17362 dir1/file1
17363 Renaming \`dir1/file1' to \`dir1/file1~'
17364 dir2/
17365 " | \
17366   $at_diff - "$at_stdout" || at_failed=:
17367 at_func_check_status 0 $at_status "$at_srcdir/backup01.at:36"
17368
17369 $at_failed && at_func_log_failure
17370 $at_traceon; }
17371
17372               { $at_traceoff
17373 $as_echo "$at_srcdir/backup01.at:36:
17374 mkdir posix
17375 (cd posix
17376 TEST_TAR_FORMAT=posix
17377 export TEST_TAR_FORMAT
17378 TAR_OPTIONS=\"-H posix\"
17379 export TAR_OPTIONS
17380 rm -rf *
17381
17382 mkdir dir1 dir2
17383 echo bla > dir1/file1
17384 tar cf test.tar dir1 dir2
17385 tar xfv test.tar --backup --warning=no-timestamp
17386 )"
17387 echo backup01.at:36 >"$at_check_line_file"
17388
17389 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
17390    false; }; then
17391   ( $at_traceon;
17392 mkdir posix
17393 (cd posix
17394 TEST_TAR_FORMAT=posix
17395 export TEST_TAR_FORMAT
17396 TAR_OPTIONS="-H posix"
17397 export TAR_OPTIONS
17398 rm -rf *
17399
17400 mkdir dir1 dir2
17401 echo bla > dir1/file1
17402 tar cf test.tar dir1 dir2
17403 tar xfv test.tar --backup --warning=no-timestamp
17404 ) ) >"$at_stdout" 2>"$at_stder1"
17405   at_func_filter_trace $?
17406 else
17407   ( :;
17408 mkdir posix
17409 (cd posix
17410 TEST_TAR_FORMAT=posix
17411 export TEST_TAR_FORMAT
17412 TAR_OPTIONS="-H posix"
17413 export TAR_OPTIONS
17414 rm -rf *
17415
17416 mkdir dir1 dir2
17417 echo bla > dir1/file1
17418 tar cf test.tar dir1 dir2
17419 tar xfv test.tar --backup --warning=no-timestamp
17420 ) ) >"$at_stdout" 2>"$at_stderr"
17421 fi
17422 at_status=$?
17423 at_failed=false
17424 at_func_diff_devnull "$at_stderr" || at_failed=:
17425 echo >>"$at_stdout"; $as_echo "dir1/
17426 dir1/file1
17427 Renaming \`dir1/file1' to \`dir1/file1~'
17428 dir2/
17429 " | \
17430   $at_diff - "$at_stdout" || at_failed=:
17431 at_func_check_status 0 $at_status "$at_srcdir/backup01.at:36"
17432
17433 $at_failed && at_func_log_failure
17434 $at_traceon; }
17435
17436               { $at_traceoff
17437 $as_echo "$at_srcdir/backup01.at:36:
17438 mkdir gnu
17439 (cd gnu
17440 TEST_TAR_FORMAT=gnu
17441 export TEST_TAR_FORMAT
17442 TAR_OPTIONS=\"-H gnu\"
17443 export TAR_OPTIONS
17444 rm -rf *
17445
17446 mkdir dir1 dir2
17447 echo bla > dir1/file1
17448 tar cf test.tar dir1 dir2
17449 tar xfv test.tar --backup --warning=no-timestamp
17450 )"
17451 echo backup01.at:36 >"$at_check_line_file"
17452
17453 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
17454    false; }; then
17455   ( $at_traceon;
17456 mkdir gnu
17457 (cd gnu
17458 TEST_TAR_FORMAT=gnu
17459 export TEST_TAR_FORMAT
17460 TAR_OPTIONS="-H gnu"
17461 export TAR_OPTIONS
17462 rm -rf *
17463
17464 mkdir dir1 dir2
17465 echo bla > dir1/file1
17466 tar cf test.tar dir1 dir2
17467 tar xfv test.tar --backup --warning=no-timestamp
17468 ) ) >"$at_stdout" 2>"$at_stder1"
17469   at_func_filter_trace $?
17470 else
17471   ( :;
17472 mkdir gnu
17473 (cd gnu
17474 TEST_TAR_FORMAT=gnu
17475 export TEST_TAR_FORMAT
17476 TAR_OPTIONS="-H gnu"
17477 export TAR_OPTIONS
17478 rm -rf *
17479
17480 mkdir dir1 dir2
17481 echo bla > dir1/file1
17482 tar cf test.tar dir1 dir2
17483 tar xfv test.tar --backup --warning=no-timestamp
17484 ) ) >"$at_stdout" 2>"$at_stderr"
17485 fi
17486 at_status=$?
17487 at_failed=false
17488 at_func_diff_devnull "$at_stderr" || at_failed=:
17489 echo >>"$at_stdout"; $as_echo "dir1/
17490 dir1/file1
17491 Renaming \`dir1/file1' to \`dir1/file1~'
17492 dir2/
17493 " | \
17494   $at_diff - "$at_stdout" || at_failed=:
17495 at_func_check_status 0 $at_status "$at_srcdir/backup01.at:36"
17496
17497 $at_failed && at_func_log_failure
17498 $at_traceon; }
17499
17500
17501
17502
17503   $at_traceoff
17504   $at_times_p && times >"$at_times_file"
17505 ) 5>&1 2>&1 | eval $at_tee_pipe
17506 at_status=`cat "$at_status_file"`
17507 #AT_STOP_46
17508 #AT_START_47
17509 # 47. gzip.at:23: gzip
17510 at_setup_line='gzip.at:23'
17511 at_desc="gzip"
17512 $at_quiet $as_echo_n " 47: $at_desc                                           "
17513 at_xfail=no
17514 echo "#                             -*- compilation -*-" >> "$at_group_log"
17515 (
17516   $as_echo "47. gzip.at:23: testing ..."
17517   $at_traceon
17518
17519
17520
17521 unset TAR_OPTIONS
17522
17523 { $at_traceoff
17524 $as_echo "$at_srcdir/gzip.at:28:
17525
17526 cat /dev/null | gzip - > /dev/null 2>&1 || exit 77
17527
17528 tar xfvz /dev/null 2>err
17529 RC=\$?
17530 sed -n '/^tar:/p' err >&2
17531 exit \$RC
17532 "
17533 echo gzip.at:28 >"$at_check_line_file"
17534
17535 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
17536    false; }; then
17537   ( $at_traceon;
17538
17539 cat /dev/null | gzip - > /dev/null 2>&1 || exit 77
17540
17541 tar xfvz /dev/null 2>err
17542 RC=$?
17543 sed -n '/^tar:/p' err >&2
17544 exit $RC
17545  ) >"$at_stdout" 2>"$at_stder1"
17546   at_func_filter_trace $?
17547 else
17548   ( :;
17549
17550 cat /dev/null | gzip - > /dev/null 2>&1 || exit 77
17551
17552 tar xfvz /dev/null 2>err
17553 RC=$?
17554 sed -n '/^tar:/p' err >&2
17555 exit $RC
17556  ) >"$at_stdout" 2>"$at_stderr"
17557 fi
17558 at_status=$?
17559 at_failed=false
17560 echo >>"$at_stderr"; $as_echo "tar: Child returned status 1
17561 tar: Error is not recoverable: exiting now
17562 " | \
17563   $at_diff - "$at_stderr" || at_failed=:
17564 at_func_diff_devnull "$at_stdout" || at_failed=:
17565 at_func_check_status 2 $at_status "$at_srcdir/gzip.at:28"
17566
17567 $at_failed && at_func_log_failure
17568 $at_traceon; }
17569
17570
17571   $at_traceoff
17572   $at_times_p && times >"$at_times_file"
17573 ) 5>&1 2>&1 | eval $at_tee_pipe
17574 at_status=`cat "$at_status_file"`
17575 #AT_STOP_47
17576 #AT_START_48
17577 # 48. incremental.at:23: incremental
17578 at_setup_line='incremental.at:23'
17579 at_desc="incremental"
17580 $at_quiet $as_echo_n " 48: $at_desc                                    "
17581 at_xfail=no
17582       test -f $XFAILFILE && at_xfail=yes
17583 echo "#                             -*- compilation -*-" >> "$at_group_log"
17584 (
17585   $as_echo "48. incremental.at:23: testing ..."
17586   $at_traceon
17587
17588
17589
17590
17591
17592   { $at_traceoff
17593 $as_echo "$at_srcdir/incremental.at:26:
17594 mkdir gnu
17595 (cd gnu
17596 TEST_TAR_FORMAT=gnu
17597 export TEST_TAR_FORMAT
17598 TAR_OPTIONS=\"-H gnu\"
17599 export TAR_OPTIONS
17600 rm -rf *
17601
17602 mkdir structure
17603 echo x >structure/file
17604
17605 # On Nextstep (and perhaps other 4.3BSD systems),
17606 # a newly created file's ctime isn't updated
17607 # until the next sync or stat operation on the file.
17608 ls -l structure/file >/dev/null
17609
17610 # If the time of an initial backup and the creation time of a file contained
17611 # in that backup are the same, the file will be backed up again when an
17612 # incremental backup is done, because the incremental backup backs up
17613 # files created \`on or after' the initial backup time.  Without the sleep
17614 # command, behaviour of tar becomes variable, depending whether the system
17615 # clock ticked over to the next second between creating the file and
17616 # backing it up.
17617 sleep 1
17618
17619 tar cf archive --listed=list structure
17620 tar cfv archive --listed=list structure
17621 echo separator
17622 # ReiserFS often offsets the timestamps of newly created files
17623 # 1 second to the past.  Try to compensate for it, until a better
17624 # solution is found.
17625 sleep 2
17626 echo y >structure/file
17627 tar cfv archive --listed=list structure
17628 )"
17629 echo incremental.at:26 >"$at_check_line_file"
17630
17631 if { echo 'Not enabling shell tracing (command contains a `...` command substitution)'
17632    false; }; then
17633   ( $at_traceon;
17634 mkdir gnu
17635 (cd gnu
17636 TEST_TAR_FORMAT=gnu
17637 export TEST_TAR_FORMAT
17638 TAR_OPTIONS="-H gnu"
17639 export TAR_OPTIONS
17640 rm -rf *
17641
17642 mkdir structure
17643 echo x >structure/file
17644
17645 # On Nextstep (and perhaps other 4.3BSD systems),
17646 # a newly created file's ctime isn't updated
17647 # until the next sync or stat operation on the file.
17648 ls -l structure/file >/dev/null
17649
17650 # If the time of an initial backup and the creation time of a file contained
17651 # in that backup are the same, the file will be backed up again when an
17652 # incremental backup is done, because the incremental backup backs up
17653 # files created `on or after' the initial backup time.  Without the sleep
17654 # command, behaviour of tar becomes variable, depending whether the system
17655 # clock ticked over to the next second between creating the file and
17656 # backing it up.
17657 sleep 1
17658
17659 tar cf archive --listed=list structure
17660 tar cfv archive --listed=list structure
17661 echo separator
17662 # ReiserFS often offsets the timestamps of newly created files
17663 # 1 second to the past.  Try to compensate for it, until a better
17664 # solution is found.
17665 sleep 2
17666 echo y >structure/file
17667 tar cfv archive --listed=list structure
17668 ) ) >"$at_stdout" 2>"$at_stder1"
17669   at_func_filter_trace $?
17670 else
17671   ( :;
17672 mkdir gnu
17673 (cd gnu
17674 TEST_TAR_FORMAT=gnu
17675 export TEST_TAR_FORMAT
17676 TAR_OPTIONS="-H gnu"
17677 export TAR_OPTIONS
17678 rm -rf *
17679
17680 mkdir structure
17681 echo x >structure/file
17682
17683 # On Nextstep (and perhaps other 4.3BSD systems),
17684 # a newly created file's ctime isn't updated
17685 # until the next sync or stat operation on the file.
17686 ls -l structure/file >/dev/null
17687
17688 # If the time of an initial backup and the creation time of a file contained
17689 # in that backup are the same, the file will be backed up again when an
17690 # incremental backup is done, because the incremental backup backs up
17691 # files created `on or after' the initial backup time.  Without the sleep
17692 # command, behaviour of tar becomes variable, depending whether the system
17693 # clock ticked over to the next second between creating the file and
17694 # backing it up.
17695 sleep 1
17696
17697 tar cf archive --listed=list structure
17698 tar cfv archive --listed=list structure
17699 echo separator
17700 # ReiserFS often offsets the timestamps of newly created files
17701 # 1 second to the past.  Try to compensate for it, until a better
17702 # solution is found.
17703 sleep 2
17704 echo y >structure/file
17705 tar cfv archive --listed=list structure
17706 ) ) >"$at_stdout" 2>"$at_stderr"
17707 fi
17708 at_status=$?
17709 at_failed=false
17710 at_func_diff_devnull "$at_stderr" || at_failed=:
17711 echo >>"$at_stdout"; $as_echo "structure/
17712 separator
17713 structure/
17714 structure/file
17715 " | \
17716   $at_diff - "$at_stdout" || at_failed=:
17717 at_func_check_status 0 $at_status "$at_srcdir/incremental.at:26"
17718
17719 $at_failed && at_func_log_failure
17720 $at_traceon; }
17721
17722               { $at_traceoff
17723 $as_echo "$at_srcdir/incremental.at:26:
17724 mkdir oldgnu
17725 (cd oldgnu
17726 TEST_TAR_FORMAT=oldgnu
17727 export TEST_TAR_FORMAT
17728 TAR_OPTIONS=\"-H oldgnu\"
17729 export TAR_OPTIONS
17730 rm -rf *
17731
17732 mkdir structure
17733 echo x >structure/file
17734
17735 # On Nextstep (and perhaps other 4.3BSD systems),
17736 # a newly created file's ctime isn't updated
17737 # until the next sync or stat operation on the file.
17738 ls -l structure/file >/dev/null
17739
17740 # If the time of an initial backup and the creation time of a file contained
17741 # in that backup are the same, the file will be backed up again when an
17742 # incremental backup is done, because the incremental backup backs up
17743 # files created \`on or after' the initial backup time.  Without the sleep
17744 # command, behaviour of tar becomes variable, depending whether the system
17745 # clock ticked over to the next second between creating the file and
17746 # backing it up.
17747 sleep 1
17748
17749 tar cf archive --listed=list structure
17750 tar cfv archive --listed=list structure
17751 echo separator
17752 # ReiserFS often offsets the timestamps of newly created files
17753 # 1 second to the past.  Try to compensate for it, until a better
17754 # solution is found.
17755 sleep 2
17756 echo y >structure/file
17757 tar cfv archive --listed=list structure
17758 )"
17759 echo incremental.at:26 >"$at_check_line_file"
17760
17761 if { echo 'Not enabling shell tracing (command contains a `...` command substitution)'
17762    false; }; then
17763   ( $at_traceon;
17764 mkdir oldgnu
17765 (cd oldgnu
17766 TEST_TAR_FORMAT=oldgnu
17767 export TEST_TAR_FORMAT
17768 TAR_OPTIONS="-H oldgnu"
17769 export TAR_OPTIONS
17770 rm -rf *
17771
17772 mkdir structure
17773 echo x >structure/file
17774
17775 # On Nextstep (and perhaps other 4.3BSD systems),
17776 # a newly created file's ctime isn't updated
17777 # until the next sync or stat operation on the file.
17778 ls -l structure/file >/dev/null
17779
17780 # If the time of an initial backup and the creation time of a file contained
17781 # in that backup are the same, the file will be backed up again when an
17782 # incremental backup is done, because the incremental backup backs up
17783 # files created `on or after' the initial backup time.  Without the sleep
17784 # command, behaviour of tar becomes variable, depending whether the system
17785 # clock ticked over to the next second between creating the file and
17786 # backing it up.
17787 sleep 1
17788
17789 tar cf archive --listed=list structure
17790 tar cfv archive --listed=list structure
17791 echo separator
17792 # ReiserFS often offsets the timestamps of newly created files
17793 # 1 second to the past.  Try to compensate for it, until a better
17794 # solution is found.
17795 sleep 2
17796 echo y >structure/file
17797 tar cfv archive --listed=list structure
17798 ) ) >"$at_stdout" 2>"$at_stder1"
17799   at_func_filter_trace $?
17800 else
17801   ( :;
17802 mkdir oldgnu
17803 (cd oldgnu
17804 TEST_TAR_FORMAT=oldgnu
17805 export TEST_TAR_FORMAT
17806 TAR_OPTIONS="-H oldgnu"
17807 export TAR_OPTIONS
17808 rm -rf *
17809
17810 mkdir structure
17811 echo x >structure/file
17812
17813 # On Nextstep (and perhaps other 4.3BSD systems),
17814 # a newly created file's ctime isn't updated
17815 # until the next sync or stat operation on the file.
17816 ls -l structure/file >/dev/null
17817
17818 # If the time of an initial backup and the creation time of a file contained
17819 # in that backup are the same, the file will be backed up again when an
17820 # incremental backup is done, because the incremental backup backs up
17821 # files created `on or after' the initial backup time.  Without the sleep
17822 # command, behaviour of tar becomes variable, depending whether the system
17823 # clock ticked over to the next second between creating the file and
17824 # backing it up.
17825 sleep 1
17826
17827 tar cf archive --listed=list structure
17828 tar cfv archive --listed=list structure
17829 echo separator
17830 # ReiserFS often offsets the timestamps of newly created files
17831 # 1 second to the past.  Try to compensate for it, until a better
17832 # solution is found.
17833 sleep 2
17834 echo y >structure/file
17835 tar cfv archive --listed=list structure
17836 ) ) >"$at_stdout" 2>"$at_stderr"
17837 fi
17838 at_status=$?
17839 at_failed=false
17840 at_func_diff_devnull "$at_stderr" || at_failed=:
17841 echo >>"$at_stdout"; $as_echo "structure/
17842 separator
17843 structure/
17844 structure/file
17845 " | \
17846   $at_diff - "$at_stdout" || at_failed=:
17847 at_func_check_status 0 $at_status "$at_srcdir/incremental.at:26"
17848
17849 $at_failed && at_func_log_failure
17850 $at_traceon; }
17851
17852               { $at_traceoff
17853 $as_echo "$at_srcdir/incremental.at:26:
17854 mkdir posix
17855 (cd posix
17856 TEST_TAR_FORMAT=posix
17857 export TEST_TAR_FORMAT
17858 TAR_OPTIONS=\"-H posix\"
17859 export TAR_OPTIONS
17860 rm -rf *
17861
17862 mkdir structure
17863 echo x >structure/file
17864
17865 # On Nextstep (and perhaps other 4.3BSD systems),
17866 # a newly created file's ctime isn't updated
17867 # until the next sync or stat operation on the file.
17868 ls -l structure/file >/dev/null
17869
17870 # If the time of an initial backup and the creation time of a file contained
17871 # in that backup are the same, the file will be backed up again when an
17872 # incremental backup is done, because the incremental backup backs up
17873 # files created \`on or after' the initial backup time.  Without the sleep
17874 # command, behaviour of tar becomes variable, depending whether the system
17875 # clock ticked over to the next second between creating the file and
17876 # backing it up.
17877 sleep 1
17878
17879 tar cf archive --listed=list structure
17880 tar cfv archive --listed=list structure
17881 echo separator
17882 # ReiserFS often offsets the timestamps of newly created files
17883 # 1 second to the past.  Try to compensate for it, until a better
17884 # solution is found.
17885 sleep 2
17886 echo y >structure/file
17887 tar cfv archive --listed=list structure
17888 )"
17889 echo incremental.at:26 >"$at_check_line_file"
17890
17891 if { echo 'Not enabling shell tracing (command contains a `...` command substitution)'
17892    false; }; then
17893   ( $at_traceon;
17894 mkdir posix
17895 (cd posix
17896 TEST_TAR_FORMAT=posix
17897 export TEST_TAR_FORMAT
17898 TAR_OPTIONS="-H posix"
17899 export TAR_OPTIONS
17900 rm -rf *
17901
17902 mkdir structure
17903 echo x >structure/file
17904
17905 # On Nextstep (and perhaps other 4.3BSD systems),
17906 # a newly created file's ctime isn't updated
17907 # until the next sync or stat operation on the file.
17908 ls -l structure/file >/dev/null
17909
17910 # If the time of an initial backup and the creation time of a file contained
17911 # in that backup are the same, the file will be backed up again when an
17912 # incremental backup is done, because the incremental backup backs up
17913 # files created `on or after' the initial backup time.  Without the sleep
17914 # command, behaviour of tar becomes variable, depending whether the system
17915 # clock ticked over to the next second between creating the file and
17916 # backing it up.
17917 sleep 1
17918
17919 tar cf archive --listed=list structure
17920 tar cfv archive --listed=list structure
17921 echo separator
17922 # ReiserFS often offsets the timestamps of newly created files
17923 # 1 second to the past.  Try to compensate for it, until a better
17924 # solution is found.
17925 sleep 2
17926 echo y >structure/file
17927 tar cfv archive --listed=list structure
17928 ) ) >"$at_stdout" 2>"$at_stder1"
17929   at_func_filter_trace $?
17930 else
17931   ( :;
17932 mkdir posix
17933 (cd posix
17934 TEST_TAR_FORMAT=posix
17935 export TEST_TAR_FORMAT
17936 TAR_OPTIONS="-H posix"
17937 export TAR_OPTIONS
17938 rm -rf *
17939
17940 mkdir structure
17941 echo x >structure/file
17942
17943 # On Nextstep (and perhaps other 4.3BSD systems),
17944 # a newly created file's ctime isn't updated
17945 # until the next sync or stat operation on the file.
17946 ls -l structure/file >/dev/null
17947
17948 # If the time of an initial backup and the creation time of a file contained
17949 # in that backup are the same, the file will be backed up again when an
17950 # incremental backup is done, because the incremental backup backs up
17951 # files created `on or after' the initial backup time.  Without the sleep
17952 # command, behaviour of tar becomes variable, depending whether the system
17953 # clock ticked over to the next second between creating the file and
17954 # backing it up.
17955 sleep 1
17956
17957 tar cf archive --listed=list structure
17958 tar cfv archive --listed=list structure
17959 echo separator
17960 # ReiserFS often offsets the timestamps of newly created files
17961 # 1 second to the past.  Try to compensate for it, until a better
17962 # solution is found.
17963 sleep 2
17964 echo y >structure/file
17965 tar cfv archive --listed=list structure
17966 ) ) >"$at_stdout" 2>"$at_stderr"
17967 fi
17968 at_status=$?
17969 at_failed=false
17970 at_func_diff_devnull "$at_stderr" || at_failed=:
17971 echo >>"$at_stdout"; $as_echo "structure/
17972 separator
17973 structure/
17974 structure/file
17975 " | \
17976   $at_diff - "$at_stdout" || at_failed=:
17977 at_func_check_status 0 $at_status "$at_srcdir/incremental.at:26"
17978
17979 $at_failed && at_func_log_failure
17980 $at_traceon; }
17981
17982
17983
17984
17985   $at_traceoff
17986   $at_times_p && times >"$at_times_file"
17987 ) 5>&1 2>&1 | eval $at_tee_pipe
17988 at_status=`cat "$at_status_file"`
17989 #AT_STOP_48
17990 #AT_START_49
17991 # 49. incr01.at:27: restore broken symlinks from incremental
17992 at_setup_line='incr01.at:27'
17993 at_desc="restore broken symlinks from incremental"
17994 $at_quiet $as_echo_n " 49: $at_desc       "
17995 at_xfail=no
17996       test -f $XFAILFILE && at_xfail=yes
17997 echo "#                             -*- compilation -*-" >> "$at_group_log"
17998 (
17999   $as_echo "49. incr01.at:27: testing ..."
18000   $at_traceon
18001
18002
18003
18004
18005
18006   { $at_traceoff
18007 $as_echo "$at_srcdir/incr01.at:30:
18008 mkdir gnu
18009 (cd gnu
18010 TEST_TAR_FORMAT=gnu
18011 export TEST_TAR_FORMAT
18012 TAR_OPTIONS=\"-H gnu\"
18013 export TAR_OPTIONS
18014 rm -rf *
18015
18016 mkdir directory
18017 \$as_ln_s foo directory/bar
18018
18019 tar -cf archive.0 -g db directory
18020 rm directory/bar
18021 tar -cf archive.1 -g db directory
18022
18023 mv directory orig
18024
18025 tar xvfg archive.0 /dev/null --warning=no-timestamp
18026 echo separator
18027 tar xvfg archive.1 /dev/null --warning=no-timestamp
18028 )"
18029 echo incr01.at:30 >"$at_check_line_file"
18030
18031 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
18032    false; }; then
18033   ( $at_traceon;
18034 mkdir gnu
18035 (cd gnu
18036 TEST_TAR_FORMAT=gnu
18037 export TEST_TAR_FORMAT
18038 TAR_OPTIONS="-H gnu"
18039 export TAR_OPTIONS
18040 rm -rf *
18041
18042 mkdir directory
18043 $as_ln_s foo directory/bar
18044
18045 tar -cf archive.0 -g db directory
18046 rm directory/bar
18047 tar -cf archive.1 -g db directory
18048
18049 mv directory orig
18050
18051 tar xvfg archive.0 /dev/null --warning=no-timestamp
18052 echo separator
18053 tar xvfg archive.1 /dev/null --warning=no-timestamp
18054 ) ) >"$at_stdout" 2>"$at_stder1"
18055   at_func_filter_trace $?
18056 else
18057   ( :;
18058 mkdir gnu
18059 (cd gnu
18060 TEST_TAR_FORMAT=gnu
18061 export TEST_TAR_FORMAT
18062 TAR_OPTIONS="-H gnu"
18063 export TAR_OPTIONS
18064 rm -rf *
18065
18066 mkdir directory
18067 $as_ln_s foo directory/bar
18068
18069 tar -cf archive.0 -g db directory
18070 rm directory/bar
18071 tar -cf archive.1 -g db directory
18072
18073 mv directory orig
18074
18075 tar xvfg archive.0 /dev/null --warning=no-timestamp
18076 echo separator
18077 tar xvfg archive.1 /dev/null --warning=no-timestamp
18078 ) ) >"$at_stdout" 2>"$at_stderr"
18079 fi
18080 at_status=$?
18081 at_failed=false
18082 at_func_diff_devnull "$at_stderr" || at_failed=:
18083 echo >>"$at_stdout"; $as_echo "directory/
18084 directory/bar
18085 separator
18086 directory/
18087 tar: Deleting \`directory/bar'
18088 " | \
18089   $at_diff - "$at_stdout" || at_failed=:
18090 at_func_check_status 0 $at_status "$at_srcdir/incr01.at:30"
18091
18092 $at_failed && at_func_log_failure
18093 $at_traceon; }
18094
18095               { $at_traceoff
18096 $as_echo "$at_srcdir/incr01.at:30:
18097 mkdir oldgnu
18098 (cd oldgnu
18099 TEST_TAR_FORMAT=oldgnu
18100 export TEST_TAR_FORMAT
18101 TAR_OPTIONS=\"-H oldgnu\"
18102 export TAR_OPTIONS
18103 rm -rf *
18104
18105 mkdir directory
18106 \$as_ln_s foo directory/bar
18107
18108 tar -cf archive.0 -g db directory
18109 rm directory/bar
18110 tar -cf archive.1 -g db directory
18111
18112 mv directory orig
18113
18114 tar xvfg archive.0 /dev/null --warning=no-timestamp
18115 echo separator
18116 tar xvfg archive.1 /dev/null --warning=no-timestamp
18117 )"
18118 echo incr01.at:30 >"$at_check_line_file"
18119
18120 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
18121    false; }; then
18122   ( $at_traceon;
18123 mkdir oldgnu
18124 (cd oldgnu
18125 TEST_TAR_FORMAT=oldgnu
18126 export TEST_TAR_FORMAT
18127 TAR_OPTIONS="-H oldgnu"
18128 export TAR_OPTIONS
18129 rm -rf *
18130
18131 mkdir directory
18132 $as_ln_s foo directory/bar
18133
18134 tar -cf archive.0 -g db directory
18135 rm directory/bar
18136 tar -cf archive.1 -g db directory
18137
18138 mv directory orig
18139
18140 tar xvfg archive.0 /dev/null --warning=no-timestamp
18141 echo separator
18142 tar xvfg archive.1 /dev/null --warning=no-timestamp
18143 ) ) >"$at_stdout" 2>"$at_stder1"
18144   at_func_filter_trace $?
18145 else
18146   ( :;
18147 mkdir oldgnu
18148 (cd oldgnu
18149 TEST_TAR_FORMAT=oldgnu
18150 export TEST_TAR_FORMAT
18151 TAR_OPTIONS="-H oldgnu"
18152 export TAR_OPTIONS
18153 rm -rf *
18154
18155 mkdir directory
18156 $as_ln_s foo directory/bar
18157
18158 tar -cf archive.0 -g db directory
18159 rm directory/bar
18160 tar -cf archive.1 -g db directory
18161
18162 mv directory orig
18163
18164 tar xvfg archive.0 /dev/null --warning=no-timestamp
18165 echo separator
18166 tar xvfg archive.1 /dev/null --warning=no-timestamp
18167 ) ) >"$at_stdout" 2>"$at_stderr"
18168 fi
18169 at_status=$?
18170 at_failed=false
18171 at_func_diff_devnull "$at_stderr" || at_failed=:
18172 echo >>"$at_stdout"; $as_echo "directory/
18173 directory/bar
18174 separator
18175 directory/
18176 tar: Deleting \`directory/bar'
18177 " | \
18178   $at_diff - "$at_stdout" || at_failed=:
18179 at_func_check_status 0 $at_status "$at_srcdir/incr01.at:30"
18180
18181 $at_failed && at_func_log_failure
18182 $at_traceon; }
18183
18184               { $at_traceoff
18185 $as_echo "$at_srcdir/incr01.at:30:
18186 mkdir posix
18187 (cd posix
18188 TEST_TAR_FORMAT=posix
18189 export TEST_TAR_FORMAT
18190 TAR_OPTIONS=\"-H posix\"
18191 export TAR_OPTIONS
18192 rm -rf *
18193
18194 mkdir directory
18195 \$as_ln_s foo directory/bar
18196
18197 tar -cf archive.0 -g db directory
18198 rm directory/bar
18199 tar -cf archive.1 -g db directory
18200
18201 mv directory orig
18202
18203 tar xvfg archive.0 /dev/null --warning=no-timestamp
18204 echo separator
18205 tar xvfg archive.1 /dev/null --warning=no-timestamp
18206 )"
18207 echo incr01.at:30 >"$at_check_line_file"
18208
18209 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
18210    false; }; then
18211   ( $at_traceon;
18212 mkdir posix
18213 (cd posix
18214 TEST_TAR_FORMAT=posix
18215 export TEST_TAR_FORMAT
18216 TAR_OPTIONS="-H posix"
18217 export TAR_OPTIONS
18218 rm -rf *
18219
18220 mkdir directory
18221 $as_ln_s foo directory/bar
18222
18223 tar -cf archive.0 -g db directory
18224 rm directory/bar
18225 tar -cf archive.1 -g db directory
18226
18227 mv directory orig
18228
18229 tar xvfg archive.0 /dev/null --warning=no-timestamp
18230 echo separator
18231 tar xvfg archive.1 /dev/null --warning=no-timestamp
18232 ) ) >"$at_stdout" 2>"$at_stder1"
18233   at_func_filter_trace $?
18234 else
18235   ( :;
18236 mkdir posix
18237 (cd posix
18238 TEST_TAR_FORMAT=posix
18239 export TEST_TAR_FORMAT
18240 TAR_OPTIONS="-H posix"
18241 export TAR_OPTIONS
18242 rm -rf *
18243
18244 mkdir directory
18245 $as_ln_s foo directory/bar
18246
18247 tar -cf archive.0 -g db directory
18248 rm directory/bar
18249 tar -cf archive.1 -g db directory
18250
18251 mv directory orig
18252
18253 tar xvfg archive.0 /dev/null --warning=no-timestamp
18254 echo separator
18255 tar xvfg archive.1 /dev/null --warning=no-timestamp
18256 ) ) >"$at_stdout" 2>"$at_stderr"
18257 fi
18258 at_status=$?
18259 at_failed=false
18260 at_func_diff_devnull "$at_stderr" || at_failed=:
18261 echo >>"$at_stdout"; $as_echo "directory/
18262 directory/bar
18263 separator
18264 directory/
18265 tar: Deleting \`directory/bar'
18266 " | \
18267   $at_diff - "$at_stdout" || at_failed=:
18268 at_func_check_status 0 $at_status "$at_srcdir/incr01.at:30"
18269
18270 $at_failed && at_func_log_failure
18271 $at_traceon; }
18272
18273
18274
18275
18276   $at_traceoff
18277   $at_times_p && times >"$at_times_file"
18278 ) 5>&1 2>&1 | eval $at_tee_pipe
18279 at_status=`cat "$at_status_file"`
18280 #AT_STOP_49
18281 #AT_START_50
18282 # 50. incr02.at:32: restoring timestamps from incremental
18283 at_setup_line='incr02.at:32'
18284 at_desc="restoring timestamps from incremental"
18285 $at_quiet $as_echo_n " 50: $at_desc          "
18286 at_xfail=no
18287       test -f $XFAILFILE && at_xfail=yes
18288 echo "#                             -*- compilation -*-" >> "$at_group_log"
18289 (
18290   $as_echo "50. incr02.at:32: testing ..."
18291   $at_traceon
18292
18293
18294
18295
18296
18297   { $at_traceoff
18298 $as_echo "$at_srcdir/incr02.at:35:
18299 mkdir gnu
18300 (cd gnu
18301 TEST_TAR_FORMAT=gnu
18302 export TEST_TAR_FORMAT
18303 TAR_OPTIONS=\"-H gnu\"
18304 export TAR_OPTIONS
18305 rm -rf *
18306
18307 # Create directory structure
18308 mkdir dir
18309 mkdir dir/subdir1
18310 mkdir dir/subdir2
18311 genfile --length 10 --file dir/subdir1/file
18312
18313 # Save mtime for later comparison
18314 genfile --stat=mtime dir/subdir1 > ts
18315
18316 # Create an archive. Using incremental mode makes sure the
18317 # archive will have a directory-first member ordering,
18318 # i.e.:
18319 # dir/
18320 # dir/subdir1/
18321 # dir/subdir2/
18322 # dir/subdir1/foofile
18323 #
18324 # When restoring from this directory structure, \`dir/subdir2/' used to
18325 # trigger apply_nonancestor_delayed_set_stat() which restored stats for
18326 # \`subdir1' prior to restoring \`dir/subdir1/foofile'. Then, restoring the
18327 # latter clobbered the directory timestamp.
18328
18329 tar -cf archive -g db dir
18330
18331 # Move away the directory
18332 mv dir orig
18333
18334 # Wait enough time for timestamps to differ in case of failure.
18335 sleep 5
18336
18337 # Restore the directory
18338 tar -xf archive dir
18339
18340 # Check the timestamp
18341 genfile --stat=mtime dir/subdir1 | diff ts -
18342 )"
18343 echo incr02.at:35 >"$at_check_line_file"
18344
18345 if { echo 'Not enabling shell tracing (command contains a `...` command substitution)'
18346    false; }; then
18347   ( $at_traceon;
18348 mkdir gnu
18349 (cd gnu
18350 TEST_TAR_FORMAT=gnu
18351 export TEST_TAR_FORMAT
18352 TAR_OPTIONS="-H gnu"
18353 export TAR_OPTIONS
18354 rm -rf *
18355
18356 # Create directory structure
18357 mkdir dir
18358 mkdir dir/subdir1
18359 mkdir dir/subdir2
18360 genfile --length 10 --file dir/subdir1/file
18361
18362 # Save mtime for later comparison
18363 genfile --stat=mtime dir/subdir1 > ts
18364
18365 # Create an archive. Using incremental mode makes sure the
18366 # archive will have a directory-first member ordering,
18367 # i.e.:
18368 # dir/
18369 # dir/subdir1/
18370 # dir/subdir2/
18371 # dir/subdir1/foofile
18372 #
18373 # When restoring from this directory structure, `dir/subdir2/' used to
18374 # trigger apply_nonancestor_delayed_set_stat() which restored stats for
18375 # `subdir1' prior to restoring `dir/subdir1/foofile'. Then, restoring the
18376 # latter clobbered the directory timestamp.
18377
18378 tar -cf archive -g db dir
18379
18380 # Move away the directory
18381 mv dir orig
18382
18383 # Wait enough time for timestamps to differ in case of failure.
18384 sleep 5
18385
18386 # Restore the directory
18387 tar -xf archive dir
18388
18389 # Check the timestamp
18390 genfile --stat=mtime dir/subdir1 | diff ts -
18391 ) ) >"$at_stdout" 2>"$at_stder1"
18392   at_func_filter_trace $?
18393 else
18394   ( :;
18395 mkdir gnu
18396 (cd gnu
18397 TEST_TAR_FORMAT=gnu
18398 export TEST_TAR_FORMAT
18399 TAR_OPTIONS="-H gnu"
18400 export TAR_OPTIONS
18401 rm -rf *
18402
18403 # Create directory structure
18404 mkdir dir
18405 mkdir dir/subdir1
18406 mkdir dir/subdir2
18407 genfile --length 10 --file dir/subdir1/file
18408
18409 # Save mtime for later comparison
18410 genfile --stat=mtime dir/subdir1 > ts
18411
18412 # Create an archive. Using incremental mode makes sure the
18413 # archive will have a directory-first member ordering,
18414 # i.e.:
18415 # dir/
18416 # dir/subdir1/
18417 # dir/subdir2/
18418 # dir/subdir1/foofile
18419 #
18420 # When restoring from this directory structure, `dir/subdir2/' used to
18421 # trigger apply_nonancestor_delayed_set_stat() which restored stats for
18422 # `subdir1' prior to restoring `dir/subdir1/foofile'. Then, restoring the
18423 # latter clobbered the directory timestamp.
18424
18425 tar -cf archive -g db dir
18426
18427 # Move away the directory
18428 mv dir orig
18429
18430 # Wait enough time for timestamps to differ in case of failure.
18431 sleep 5
18432
18433 # Restore the directory
18434 tar -xf archive dir
18435
18436 # Check the timestamp
18437 genfile --stat=mtime dir/subdir1 | diff ts -
18438 ) ) >"$at_stdout" 2>"$at_stderr"
18439 fi
18440 at_status=$?
18441 at_failed=false
18442 at_func_diff_devnull "$at_stderr" || at_failed=:
18443 at_func_diff_devnull "$at_stdout" || at_failed=:
18444 at_func_check_status 0 $at_status "$at_srcdir/incr02.at:35"
18445
18446 $at_failed && at_func_log_failure
18447 $at_traceon; }
18448
18449               { $at_traceoff
18450 $as_echo "$at_srcdir/incr02.at:35:
18451 mkdir oldgnu
18452 (cd oldgnu
18453 TEST_TAR_FORMAT=oldgnu
18454 export TEST_TAR_FORMAT
18455 TAR_OPTIONS=\"-H oldgnu\"
18456 export TAR_OPTIONS
18457 rm -rf *
18458
18459 # Create directory structure
18460 mkdir dir
18461 mkdir dir/subdir1
18462 mkdir dir/subdir2
18463 genfile --length 10 --file dir/subdir1/file
18464
18465 # Save mtime for later comparison
18466 genfile --stat=mtime dir/subdir1 > ts
18467
18468 # Create an archive. Using incremental mode makes sure the
18469 # archive will have a directory-first member ordering,
18470 # i.e.:
18471 # dir/
18472 # dir/subdir1/
18473 # dir/subdir2/
18474 # dir/subdir1/foofile
18475 #
18476 # When restoring from this directory structure, \`dir/subdir2/' used to
18477 # trigger apply_nonancestor_delayed_set_stat() which restored stats for
18478 # \`subdir1' prior to restoring \`dir/subdir1/foofile'. Then, restoring the
18479 # latter clobbered the directory timestamp.
18480
18481 tar -cf archive -g db dir
18482
18483 # Move away the directory
18484 mv dir orig
18485
18486 # Wait enough time for timestamps to differ in case of failure.
18487 sleep 5
18488
18489 # Restore the directory
18490 tar -xf archive dir
18491
18492 # Check the timestamp
18493 genfile --stat=mtime dir/subdir1 | diff ts -
18494 )"
18495 echo incr02.at:35 >"$at_check_line_file"
18496
18497 if { echo 'Not enabling shell tracing (command contains a `...` command substitution)'
18498    false; }; then
18499   ( $at_traceon;
18500 mkdir oldgnu
18501 (cd oldgnu
18502 TEST_TAR_FORMAT=oldgnu
18503 export TEST_TAR_FORMAT
18504 TAR_OPTIONS="-H oldgnu"
18505 export TAR_OPTIONS
18506 rm -rf *
18507
18508 # Create directory structure
18509 mkdir dir
18510 mkdir dir/subdir1
18511 mkdir dir/subdir2
18512 genfile --length 10 --file dir/subdir1/file
18513
18514 # Save mtime for later comparison
18515 genfile --stat=mtime dir/subdir1 > ts
18516
18517 # Create an archive. Using incremental mode makes sure the
18518 # archive will have a directory-first member ordering,
18519 # i.e.:
18520 # dir/
18521 # dir/subdir1/
18522 # dir/subdir2/
18523 # dir/subdir1/foofile
18524 #
18525 # When restoring from this directory structure, `dir/subdir2/' used to
18526 # trigger apply_nonancestor_delayed_set_stat() which restored stats for
18527 # `subdir1' prior to restoring `dir/subdir1/foofile'. Then, restoring the
18528 # latter clobbered the directory timestamp.
18529
18530 tar -cf archive -g db dir
18531
18532 # Move away the directory
18533 mv dir orig
18534
18535 # Wait enough time for timestamps to differ in case of failure.
18536 sleep 5
18537
18538 # Restore the directory
18539 tar -xf archive dir
18540
18541 # Check the timestamp
18542 genfile --stat=mtime dir/subdir1 | diff ts -
18543 ) ) >"$at_stdout" 2>"$at_stder1"
18544   at_func_filter_trace $?
18545 else
18546   ( :;
18547 mkdir oldgnu
18548 (cd oldgnu
18549 TEST_TAR_FORMAT=oldgnu
18550 export TEST_TAR_FORMAT
18551 TAR_OPTIONS="-H oldgnu"
18552 export TAR_OPTIONS
18553 rm -rf *
18554
18555 # Create directory structure
18556 mkdir dir
18557 mkdir dir/subdir1
18558 mkdir dir/subdir2
18559 genfile --length 10 --file dir/subdir1/file
18560
18561 # Save mtime for later comparison
18562 genfile --stat=mtime dir/subdir1 > ts
18563
18564 # Create an archive. Using incremental mode makes sure the
18565 # archive will have a directory-first member ordering,
18566 # i.e.:
18567 # dir/
18568 # dir/subdir1/
18569 # dir/subdir2/
18570 # dir/subdir1/foofile
18571 #
18572 # When restoring from this directory structure, `dir/subdir2/' used to
18573 # trigger apply_nonancestor_delayed_set_stat() which restored stats for
18574 # `subdir1' prior to restoring `dir/subdir1/foofile'. Then, restoring the
18575 # latter clobbered the directory timestamp.
18576
18577 tar -cf archive -g db dir
18578
18579 # Move away the directory
18580 mv dir orig
18581
18582 # Wait enough time for timestamps to differ in case of failure.
18583 sleep 5
18584
18585 # Restore the directory
18586 tar -xf archive dir
18587
18588 # Check the timestamp
18589 genfile --stat=mtime dir/subdir1 | diff ts -
18590 ) ) >"$at_stdout" 2>"$at_stderr"
18591 fi
18592 at_status=$?
18593 at_failed=false
18594 at_func_diff_devnull "$at_stderr" || at_failed=:
18595 at_func_diff_devnull "$at_stdout" || at_failed=:
18596 at_func_check_status 0 $at_status "$at_srcdir/incr02.at:35"
18597
18598 $at_failed && at_func_log_failure
18599 $at_traceon; }
18600
18601               { $at_traceoff
18602 $as_echo "$at_srcdir/incr02.at:35:
18603 mkdir posix
18604 (cd posix
18605 TEST_TAR_FORMAT=posix
18606 export TEST_TAR_FORMAT
18607 TAR_OPTIONS=\"-H posix\"
18608 export TAR_OPTIONS
18609 rm -rf *
18610
18611 # Create directory structure
18612 mkdir dir
18613 mkdir dir/subdir1
18614 mkdir dir/subdir2
18615 genfile --length 10 --file dir/subdir1/file
18616
18617 # Save mtime for later comparison
18618 genfile --stat=mtime dir/subdir1 > ts
18619
18620 # Create an archive. Using incremental mode makes sure the
18621 # archive will have a directory-first member ordering,
18622 # i.e.:
18623 # dir/
18624 # dir/subdir1/
18625 # dir/subdir2/
18626 # dir/subdir1/foofile
18627 #
18628 # When restoring from this directory structure, \`dir/subdir2/' used to
18629 # trigger apply_nonancestor_delayed_set_stat() which restored stats for
18630 # \`subdir1' prior to restoring \`dir/subdir1/foofile'. Then, restoring the
18631 # latter clobbered the directory timestamp.
18632
18633 tar -cf archive -g db dir
18634
18635 # Move away the directory
18636 mv dir orig
18637
18638 # Wait enough time for timestamps to differ in case of failure.
18639 sleep 5
18640
18641 # Restore the directory
18642 tar -xf archive dir
18643
18644 # Check the timestamp
18645 genfile --stat=mtime dir/subdir1 | diff ts -
18646 )"
18647 echo incr02.at:35 >"$at_check_line_file"
18648
18649 if { echo 'Not enabling shell tracing (command contains a `...` command substitution)'
18650    false; }; then
18651   ( $at_traceon;
18652 mkdir posix
18653 (cd posix
18654 TEST_TAR_FORMAT=posix
18655 export TEST_TAR_FORMAT
18656 TAR_OPTIONS="-H posix"
18657 export TAR_OPTIONS
18658 rm -rf *
18659
18660 # Create directory structure
18661 mkdir dir
18662 mkdir dir/subdir1
18663 mkdir dir/subdir2
18664 genfile --length 10 --file dir/subdir1/file
18665
18666 # Save mtime for later comparison
18667 genfile --stat=mtime dir/subdir1 > ts
18668
18669 # Create an archive. Using incremental mode makes sure the
18670 # archive will have a directory-first member ordering,
18671 # i.e.:
18672 # dir/
18673 # dir/subdir1/
18674 # dir/subdir2/
18675 # dir/subdir1/foofile
18676 #
18677 # When restoring from this directory structure, `dir/subdir2/' used to
18678 # trigger apply_nonancestor_delayed_set_stat() which restored stats for
18679 # `subdir1' prior to restoring `dir/subdir1/foofile'. Then, restoring the
18680 # latter clobbered the directory timestamp.
18681
18682 tar -cf archive -g db dir
18683
18684 # Move away the directory
18685 mv dir orig
18686
18687 # Wait enough time for timestamps to differ in case of failure.
18688 sleep 5
18689
18690 # Restore the directory
18691 tar -xf archive dir
18692
18693 # Check the timestamp
18694 genfile --stat=mtime dir/subdir1 | diff ts -
18695 ) ) >"$at_stdout" 2>"$at_stder1"
18696   at_func_filter_trace $?
18697 else
18698   ( :;
18699 mkdir posix
18700 (cd posix
18701 TEST_TAR_FORMAT=posix
18702 export TEST_TAR_FORMAT
18703 TAR_OPTIONS="-H posix"
18704 export TAR_OPTIONS
18705 rm -rf *
18706
18707 # Create directory structure
18708 mkdir dir
18709 mkdir dir/subdir1
18710 mkdir dir/subdir2
18711 genfile --length 10 --file dir/subdir1/file
18712
18713 # Save mtime for later comparison
18714 genfile --stat=mtime dir/subdir1 > ts
18715
18716 # Create an archive. Using incremental mode makes sure the
18717 # archive will have a directory-first member ordering,
18718 # i.e.:
18719 # dir/
18720 # dir/subdir1/
18721 # dir/subdir2/
18722 # dir/subdir1/foofile
18723 #
18724 # When restoring from this directory structure, `dir/subdir2/' used to
18725 # trigger apply_nonancestor_delayed_set_stat() which restored stats for
18726 # `subdir1' prior to restoring `dir/subdir1/foofile'. Then, restoring the
18727 # latter clobbered the directory timestamp.
18728
18729 tar -cf archive -g db dir
18730
18731 # Move away the directory
18732 mv dir orig
18733
18734 # Wait enough time for timestamps to differ in case of failure.
18735 sleep 5
18736
18737 # Restore the directory
18738 tar -xf archive dir
18739
18740 # Check the timestamp
18741 genfile --stat=mtime dir/subdir1 | diff ts -
18742 ) ) >"$at_stdout" 2>"$at_stderr"
18743 fi
18744 at_status=$?
18745 at_failed=false
18746 at_func_diff_devnull "$at_stderr" || at_failed=:
18747 at_func_diff_devnull "$at_stdout" || at_failed=:
18748 at_func_check_status 0 $at_status "$at_srcdir/incr02.at:35"
18749
18750 $at_failed && at_func_log_failure
18751 $at_traceon; }
18752
18753
18754
18755
18756   $at_traceoff
18757   $at_times_p && times >"$at_times_file"
18758 ) 5>&1 2>&1 | eval $at_tee_pipe
18759 at_status=`cat "$at_status_file"`
18760 #AT_STOP_50
18761 #AT_START_51
18762 # 51. listed01.at:26: --listed for individual files
18763 at_setup_line='listed01.at:26'
18764 at_desc="--listed for individual files"
18765 $at_quiet $as_echo_n " 51: $at_desc                  "
18766 at_xfail=no
18767       test -f $XFAILFILE && at_xfail=yes
18768 echo "#                             -*- compilation -*-" >> "$at_group_log"
18769 (
18770   $as_echo "51. listed01.at:26: testing ..."
18771   $at_traceon
18772
18773
18774
18775
18776
18777   { $at_traceoff
18778 $as_echo "$at_srcdir/listed01.at:29:
18779 mkdir gnu
18780 (cd gnu
18781 TEST_TAR_FORMAT=gnu
18782 export TEST_TAR_FORMAT
18783 TAR_OPTIONS=\"-H gnu\"
18784 export TAR_OPTIONS
18785 rm -rf *
18786
18787 mkdir directory
18788 genfile --length 10240 --pattern zeros --file directory/file1
18789 # Let the things settle
18790 sleep 1
18791
18792 tar --create \\
18793     --file=archive.1 \\
18794     --listed-incremental=listing \\
18795     directory/file*
18796
18797 tar tf archive.1 || exit 1
18798
18799 sleep 2
18800
18801 genfile --length 10240 --pattern zeros --file directory/file2
18802
18803 echo \"separator\"
18804 cp listing listing.old
18805 tar --create \\
18806     --file=archive.2 \\
18807     --listed-incremental=listing \\
18808     directory/file* || exit 1
18809
18810 tar tf archive.2 || exit 1
18811 )"
18812 echo listed01.at:29 >"$at_check_line_file"
18813
18814 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
18815    false; }; then
18816   ( $at_traceon;
18817 mkdir gnu
18818 (cd gnu
18819 TEST_TAR_FORMAT=gnu
18820 export TEST_TAR_FORMAT
18821 TAR_OPTIONS="-H gnu"
18822 export TAR_OPTIONS
18823 rm -rf *
18824
18825 mkdir directory
18826 genfile --length 10240 --pattern zeros --file directory/file1
18827 # Let the things settle
18828 sleep 1
18829
18830 tar --create \
18831     --file=archive.1 \
18832     --listed-incremental=listing \
18833     directory/file*
18834
18835 tar tf archive.1 || exit 1
18836
18837 sleep 2
18838
18839 genfile --length 10240 --pattern zeros --file directory/file2
18840
18841 echo "separator"
18842 cp listing listing.old
18843 tar --create \
18844     --file=archive.2 \
18845     --listed-incremental=listing \
18846     directory/file* || exit 1
18847
18848 tar tf archive.2 || exit 1
18849 ) ) >"$at_stdout" 2>"$at_stder1"
18850   at_func_filter_trace $?
18851 else
18852   ( :;
18853 mkdir gnu
18854 (cd gnu
18855 TEST_TAR_FORMAT=gnu
18856 export TEST_TAR_FORMAT
18857 TAR_OPTIONS="-H gnu"
18858 export TAR_OPTIONS
18859 rm -rf *
18860
18861 mkdir directory
18862 genfile --length 10240 --pattern zeros --file directory/file1
18863 # Let the things settle
18864 sleep 1
18865
18866 tar --create \
18867     --file=archive.1 \
18868     --listed-incremental=listing \
18869     directory/file*
18870
18871 tar tf archive.1 || exit 1
18872
18873 sleep 2
18874
18875 genfile --length 10240 --pattern zeros --file directory/file2
18876
18877 echo "separator"
18878 cp listing listing.old
18879 tar --create \
18880     --file=archive.2 \
18881     --listed-incremental=listing \
18882     directory/file* || exit 1
18883
18884 tar tf archive.2 || exit 1
18885 ) ) >"$at_stdout" 2>"$at_stderr"
18886 fi
18887 at_status=$?
18888 at_failed=false
18889 at_func_diff_devnull "$at_stderr" || at_failed=:
18890 echo >>"$at_stdout"; $as_echo "directory/file1
18891 separator
18892 directory/file2
18893 " | \
18894   $at_diff - "$at_stdout" || at_failed=:
18895 at_func_check_status 0 $at_status "$at_srcdir/listed01.at:29"
18896
18897 $at_failed && at_func_log_failure
18898 $at_traceon; }
18899
18900               { $at_traceoff
18901 $as_echo "$at_srcdir/listed01.at:29:
18902 mkdir oldgnu
18903 (cd oldgnu
18904 TEST_TAR_FORMAT=oldgnu
18905 export TEST_TAR_FORMAT
18906 TAR_OPTIONS=\"-H oldgnu\"
18907 export TAR_OPTIONS
18908 rm -rf *
18909
18910 mkdir directory
18911 genfile --length 10240 --pattern zeros --file directory/file1
18912 # Let the things settle
18913 sleep 1
18914
18915 tar --create \\
18916     --file=archive.1 \\
18917     --listed-incremental=listing \\
18918     directory/file*
18919
18920 tar tf archive.1 || exit 1
18921
18922 sleep 2
18923
18924 genfile --length 10240 --pattern zeros --file directory/file2
18925
18926 echo \"separator\"
18927 cp listing listing.old
18928 tar --create \\
18929     --file=archive.2 \\
18930     --listed-incremental=listing \\
18931     directory/file* || exit 1
18932
18933 tar tf archive.2 || exit 1
18934 )"
18935 echo listed01.at:29 >"$at_check_line_file"
18936
18937 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
18938    false; }; then
18939   ( $at_traceon;
18940 mkdir oldgnu
18941 (cd oldgnu
18942 TEST_TAR_FORMAT=oldgnu
18943 export TEST_TAR_FORMAT
18944 TAR_OPTIONS="-H oldgnu"
18945 export TAR_OPTIONS
18946 rm -rf *
18947
18948 mkdir directory
18949 genfile --length 10240 --pattern zeros --file directory/file1
18950 # Let the things settle
18951 sleep 1
18952
18953 tar --create \
18954     --file=archive.1 \
18955     --listed-incremental=listing \
18956     directory/file*
18957
18958 tar tf archive.1 || exit 1
18959
18960 sleep 2
18961
18962 genfile --length 10240 --pattern zeros --file directory/file2
18963
18964 echo "separator"
18965 cp listing listing.old
18966 tar --create \
18967     --file=archive.2 \
18968     --listed-incremental=listing \
18969     directory/file* || exit 1
18970
18971 tar tf archive.2 || exit 1
18972 ) ) >"$at_stdout" 2>"$at_stder1"
18973   at_func_filter_trace $?
18974 else
18975   ( :;
18976 mkdir oldgnu
18977 (cd oldgnu
18978 TEST_TAR_FORMAT=oldgnu
18979 export TEST_TAR_FORMAT
18980 TAR_OPTIONS="-H oldgnu"
18981 export TAR_OPTIONS
18982 rm -rf *
18983
18984 mkdir directory
18985 genfile --length 10240 --pattern zeros --file directory/file1
18986 # Let the things settle
18987 sleep 1
18988
18989 tar --create \
18990     --file=archive.1 \
18991     --listed-incremental=listing \
18992     directory/file*
18993
18994 tar tf archive.1 || exit 1
18995
18996 sleep 2
18997
18998 genfile --length 10240 --pattern zeros --file directory/file2
18999
19000 echo "separator"
19001 cp listing listing.old
19002 tar --create \
19003     --file=archive.2 \
19004     --listed-incremental=listing \
19005     directory/file* || exit 1
19006
19007 tar tf archive.2 || exit 1
19008 ) ) >"$at_stdout" 2>"$at_stderr"
19009 fi
19010 at_status=$?
19011 at_failed=false
19012 at_func_diff_devnull "$at_stderr" || at_failed=:
19013 echo >>"$at_stdout"; $as_echo "directory/file1
19014 separator
19015 directory/file2
19016 " | \
19017   $at_diff - "$at_stdout" || at_failed=:
19018 at_func_check_status 0 $at_status "$at_srcdir/listed01.at:29"
19019
19020 $at_failed && at_func_log_failure
19021 $at_traceon; }
19022
19023
19024
19025
19026   $at_traceoff
19027   $at_times_p && times >"$at_times_file"
19028 ) 5>&1 2>&1 | eval $at_tee_pipe
19029 at_status=`cat "$at_status_file"`
19030 #AT_STOP_51
19031 #AT_START_52
19032 # 52. listed02.at:28: working --listed
19033 at_setup_line='listed02.at:28'
19034 at_desc="working --listed"
19035 $at_quiet $as_echo_n " 52: $at_desc                               "
19036 at_xfail=no
19037       test -f $XFAILFILE && at_xfail=yes
19038 echo "#                             -*- compilation -*-" >> "$at_group_log"
19039 (
19040   $as_echo "52. listed02.at:28: testing ..."
19041   $at_traceon
19042
19043
19044
19045
19046
19047   { $at_traceoff
19048 $as_echo "$at_srcdir/listed02.at:31:
19049 mkdir gnu
19050 (cd gnu
19051 TEST_TAR_FORMAT=gnu
19052 export TEST_TAR_FORMAT
19053 TAR_OPTIONS=\"-H gnu\"
19054 export TAR_OPTIONS
19055 rm -rf *
19056
19057
19058 test -z "`sort < /dev/null 2>&1`" || exit 77
19059
19060 echo Create directories
19061
19062 mkdir tart
19063 sleep 1
19064 mkdir tart/c0
19065 sleep 1
19066 mkdir tart/c1
19067 sleep 1
19068
19069 for file in tart/a1 tart/b1 tart/c0/cq1 tart/c0/cq2 tart/c1/ca1 tart/c1/ca2
19070 do
19071   echo File \$file > \$file
19072   sleep 1
19073 done
19074
19075 sleep 1
19076 echo Creating main archive
19077 echo >&2 \"Creating main archive\"
19078 tar -c -v --listed-incremental=tart.incr1 -f archive.1 tart 2> err || exit 1
19079
19080 # The above prints two lines to stderr announcing the new directories c0 and c1.
19081 # Ensure that they appear in this script's stderr in sorted order.
19082 sort err 1>&2; rm -f err
19083
19084 sleep 1
19085 echo Modifying filesystem
19086 rm tart/a1
19087
19088 mv tart/b1 tart/b2
19089 mv tart/c1 tart/c2
19090 touch tart/c2/ca3
19091
19092 echo Directory contents
19093 find tart -print | sort 2>/dev/null
19094
19095 sleep 1
19096 echo Creating incremental archive
19097 echo >&2 \"Creating incremental archive\"
19098 cp -p tart.incr1 tart.incr2
19099 tar -c -v --listed-incremental=tart.incr2 -f archive.2 tart || exit 1
19100
19101 sleep 1
19102
19103 rm -rf tart/*
19104 echo Extracting main archive
19105 echo >&2 \"Extracting main archive\"
19106 tar -x -v --listed-incremental=tart.incr1 -f archive.1 || exit 1
19107 echo Extracting incremental archive
19108 # This command should produce three messages about deletion
19109 # of the existing files, that may appear in any order. Piping
19110 # to sort makes sure we don't depend on any particular ordering.
19111 tar -x -v --listed-incremental=tart.incr2 -f archive.2 | sort 2>/dev/null
19112
19113 echo Final files:
19114 find tart -print | sort 2>/dev/null
19115 )"
19116 echo listed02.at:31 >"$at_check_line_file"
19117
19118 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
19119    false; }; then
19120   ( $at_traceon;
19121 mkdir gnu
19122 (cd gnu
19123 TEST_TAR_FORMAT=gnu
19124 export TEST_TAR_FORMAT
19125 TAR_OPTIONS="-H gnu"
19126 export TAR_OPTIONS
19127 rm -rf *
19128
19129
19130 test -z "`sort < /dev/null 2>&1`" || exit 77
19131
19132 echo Create directories
19133
19134 mkdir tart
19135 sleep 1
19136 mkdir tart/c0
19137 sleep 1
19138 mkdir tart/c1
19139 sleep 1
19140
19141 for file in tart/a1 tart/b1 tart/c0/cq1 tart/c0/cq2 tart/c1/ca1 tart/c1/ca2
19142 do
19143   echo File $file > $file
19144   sleep 1
19145 done
19146
19147 sleep 1
19148 echo Creating main archive
19149 echo >&2 "Creating main archive"
19150 tar -c -v --listed-incremental=tart.incr1 -f archive.1 tart 2> err || exit 1
19151
19152 # The above prints two lines to stderr announcing the new directories c0 and c1.
19153 # Ensure that they appear in this script's stderr in sorted order.
19154 sort err 1>&2; rm -f err
19155
19156 sleep 1
19157 echo Modifying filesystem
19158 rm tart/a1
19159
19160 mv tart/b1 tart/b2
19161 mv tart/c1 tart/c2
19162 touch tart/c2/ca3
19163
19164 echo Directory contents
19165 find tart -print | sort 2>/dev/null
19166
19167 sleep 1
19168 echo Creating incremental archive
19169 echo >&2 "Creating incremental archive"
19170 cp -p tart.incr1 tart.incr2
19171 tar -c -v --listed-incremental=tart.incr2 -f archive.2 tart || exit 1
19172
19173 sleep 1
19174
19175 rm -rf tart/*
19176 echo Extracting main archive
19177 echo >&2 "Extracting main archive"
19178 tar -x -v --listed-incremental=tart.incr1 -f archive.1 || exit 1
19179 echo Extracting incremental archive
19180 # This command should produce three messages about deletion
19181 # of the existing files, that may appear in any order. Piping
19182 # to sort makes sure we don't depend on any particular ordering.
19183 tar -x -v --listed-incremental=tart.incr2 -f archive.2 | sort 2>/dev/null
19184
19185 echo Final files:
19186 find tart -print | sort 2>/dev/null
19187 ) ) >"$at_stdout" 2>"$at_stder1"
19188   at_func_filter_trace $?
19189 else
19190   ( :;
19191 mkdir gnu
19192 (cd gnu
19193 TEST_TAR_FORMAT=gnu
19194 export TEST_TAR_FORMAT
19195 TAR_OPTIONS="-H gnu"
19196 export TAR_OPTIONS
19197 rm -rf *
19198
19199
19200 test -z "`sort < /dev/null 2>&1`" || exit 77
19201
19202 echo Create directories
19203
19204 mkdir tart
19205 sleep 1
19206 mkdir tart/c0
19207 sleep 1
19208 mkdir tart/c1
19209 sleep 1
19210
19211 for file in tart/a1 tart/b1 tart/c0/cq1 tart/c0/cq2 tart/c1/ca1 tart/c1/ca2
19212 do
19213   echo File $file > $file
19214   sleep 1
19215 done
19216
19217 sleep 1
19218 echo Creating main archive
19219 echo >&2 "Creating main archive"
19220 tar -c -v --listed-incremental=tart.incr1 -f archive.1 tart 2> err || exit 1
19221
19222 # The above prints two lines to stderr announcing the new directories c0 and c1.
19223 # Ensure that they appear in this script's stderr in sorted order.
19224 sort err 1>&2; rm -f err
19225
19226 sleep 1
19227 echo Modifying filesystem
19228 rm tart/a1
19229
19230 mv tart/b1 tart/b2
19231 mv tart/c1 tart/c2
19232 touch tart/c2/ca3
19233
19234 echo Directory contents
19235 find tart -print | sort 2>/dev/null
19236
19237 sleep 1
19238 echo Creating incremental archive
19239 echo >&2 "Creating incremental archive"
19240 cp -p tart.incr1 tart.incr2
19241 tar -c -v --listed-incremental=tart.incr2 -f archive.2 tart || exit 1
19242
19243 sleep 1
19244
19245 rm -rf tart/*
19246 echo Extracting main archive
19247 echo >&2 "Extracting main archive"
19248 tar -x -v --listed-incremental=tart.incr1 -f archive.1 || exit 1
19249 echo Extracting incremental archive
19250 # This command should produce three messages about deletion
19251 # of the existing files, that may appear in any order. Piping
19252 # to sort makes sure we don't depend on any particular ordering.
19253 tar -x -v --listed-incremental=tart.incr2 -f archive.2 | sort 2>/dev/null
19254
19255 echo Final files:
19256 find tart -print | sort 2>/dev/null
19257 ) ) >"$at_stdout" 2>"$at_stderr"
19258 fi
19259 at_status=$?
19260 at_failed=false
19261 echo >>"$at_stderr"; $as_echo "Creating main archive
19262 tar: tart/c0: Directory is new
19263 tar: tart/c1: Directory is new
19264 tar: tart: Directory is new
19265 Creating incremental archive
19266 tar: tart/c2: Directory has been renamed from \`tart/c1'
19267 Extracting main archive
19268 " | \
19269   $at_diff - "$at_stderr" || at_failed=:
19270 echo >>"$at_stdout"; $as_echo "Create directories
19271 Creating main archive
19272 tart/
19273 tart/c0/
19274 tart/c1/
19275 tart/a1
19276 tart/b1
19277 tart/c0/cq1
19278 tart/c0/cq2
19279 tart/c1/ca1
19280 tart/c1/ca2
19281 Modifying filesystem
19282 Directory contents
19283 tart
19284 tart/b2
19285 tart/c0
19286 tart/c0/cq1
19287 tart/c0/cq2
19288 tart/c2
19289 tart/c2/ca1
19290 tart/c2/ca2
19291 tart/c2/ca3
19292 Creating incremental archive
19293 tart/
19294 tart/c0/
19295 tart/c2/
19296 tart/b2
19297 tart/c2/ca3
19298 Extracting main archive
19299 tart/
19300 tart/c0/
19301 tart/c1/
19302 tart/a1
19303 tart/b1
19304 tart/c0/cq1
19305 tart/c0/cq2
19306 tart/c1/ca1
19307 tart/c1/ca2
19308 Extracting incremental archive
19309 tar: Deleting \`tart/a1'
19310 tar: Deleting \`tart/b1'
19311 tart/
19312 tart/b2
19313 tart/c0/
19314 tart/c2/
19315 tart/c2/ca3
19316 Final files:
19317 tart
19318 tart/b2
19319 tart/c0
19320 tart/c0/cq1
19321 tart/c0/cq2
19322 tart/c2
19323 tart/c2/ca1
19324 tart/c2/ca2
19325 tart/c2/ca3
19326 " | \
19327   $at_diff - "$at_stdout" || at_failed=:
19328 at_func_check_status 0 $at_status "$at_srcdir/listed02.at:31"
19329
19330 $at_failed && at_func_log_failure
19331 $at_traceon; }
19332
19333               { $at_traceoff
19334 $as_echo "$at_srcdir/listed02.at:31:
19335 mkdir oldgnu
19336 (cd oldgnu
19337 TEST_TAR_FORMAT=oldgnu
19338 export TEST_TAR_FORMAT
19339 TAR_OPTIONS=\"-H oldgnu\"
19340 export TAR_OPTIONS
19341 rm -rf *
19342
19343
19344 test -z "`sort < /dev/null 2>&1`" || exit 77
19345
19346 echo Create directories
19347
19348 mkdir tart
19349 sleep 1
19350 mkdir tart/c0
19351 sleep 1
19352 mkdir tart/c1
19353 sleep 1
19354
19355 for file in tart/a1 tart/b1 tart/c0/cq1 tart/c0/cq2 tart/c1/ca1 tart/c1/ca2
19356 do
19357   echo File \$file > \$file
19358   sleep 1
19359 done
19360
19361 sleep 1
19362 echo Creating main archive
19363 echo >&2 \"Creating main archive\"
19364 tar -c -v --listed-incremental=tart.incr1 -f archive.1 tart 2> err || exit 1
19365
19366 # The above prints two lines to stderr announcing the new directories c0 and c1.
19367 # Ensure that they appear in this script's stderr in sorted order.
19368 sort err 1>&2; rm -f err
19369
19370 sleep 1
19371 echo Modifying filesystem
19372 rm tart/a1
19373
19374 mv tart/b1 tart/b2
19375 mv tart/c1 tart/c2
19376 touch tart/c2/ca3
19377
19378 echo Directory contents
19379 find tart -print | sort 2>/dev/null
19380
19381 sleep 1
19382 echo Creating incremental archive
19383 echo >&2 \"Creating incremental archive\"
19384 cp -p tart.incr1 tart.incr2
19385 tar -c -v --listed-incremental=tart.incr2 -f archive.2 tart || exit 1
19386
19387 sleep 1
19388
19389 rm -rf tart/*
19390 echo Extracting main archive
19391 echo >&2 \"Extracting main archive\"
19392 tar -x -v --listed-incremental=tart.incr1 -f archive.1 || exit 1
19393 echo Extracting incremental archive
19394 # This command should produce three messages about deletion
19395 # of the existing files, that may appear in any order. Piping
19396 # to sort makes sure we don't depend on any particular ordering.
19397 tar -x -v --listed-incremental=tart.incr2 -f archive.2 | sort 2>/dev/null
19398
19399 echo Final files:
19400 find tart -print | sort 2>/dev/null
19401 )"
19402 echo listed02.at:31 >"$at_check_line_file"
19403
19404 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
19405    false; }; then
19406   ( $at_traceon;
19407 mkdir oldgnu
19408 (cd oldgnu
19409 TEST_TAR_FORMAT=oldgnu
19410 export TEST_TAR_FORMAT
19411 TAR_OPTIONS="-H oldgnu"
19412 export TAR_OPTIONS
19413 rm -rf *
19414
19415
19416 test -z "`sort < /dev/null 2>&1`" || exit 77
19417
19418 echo Create directories
19419
19420 mkdir tart
19421 sleep 1
19422 mkdir tart/c0
19423 sleep 1
19424 mkdir tart/c1
19425 sleep 1
19426
19427 for file in tart/a1 tart/b1 tart/c0/cq1 tart/c0/cq2 tart/c1/ca1 tart/c1/ca2
19428 do
19429   echo File $file > $file
19430   sleep 1
19431 done
19432
19433 sleep 1
19434 echo Creating main archive
19435 echo >&2 "Creating main archive"
19436 tar -c -v --listed-incremental=tart.incr1 -f archive.1 tart 2> err || exit 1
19437
19438 # The above prints two lines to stderr announcing the new directories c0 and c1.
19439 # Ensure that they appear in this script's stderr in sorted order.
19440 sort err 1>&2; rm -f err
19441
19442 sleep 1
19443 echo Modifying filesystem
19444 rm tart/a1
19445
19446 mv tart/b1 tart/b2
19447 mv tart/c1 tart/c2
19448 touch tart/c2/ca3
19449
19450 echo Directory contents
19451 find tart -print | sort 2>/dev/null
19452
19453 sleep 1
19454 echo Creating incremental archive
19455 echo >&2 "Creating incremental archive"
19456 cp -p tart.incr1 tart.incr2
19457 tar -c -v --listed-incremental=tart.incr2 -f archive.2 tart || exit 1
19458
19459 sleep 1
19460
19461 rm -rf tart/*
19462 echo Extracting main archive
19463 echo >&2 "Extracting main archive"
19464 tar -x -v --listed-incremental=tart.incr1 -f archive.1 || exit 1
19465 echo Extracting incremental archive
19466 # This command should produce three messages about deletion
19467 # of the existing files, that may appear in any order. Piping
19468 # to sort makes sure we don't depend on any particular ordering.
19469 tar -x -v --listed-incremental=tart.incr2 -f archive.2 | sort 2>/dev/null
19470
19471 echo Final files:
19472 find tart -print | sort 2>/dev/null
19473 ) ) >"$at_stdout" 2>"$at_stder1"
19474   at_func_filter_trace $?
19475 else
19476   ( :;
19477 mkdir oldgnu
19478 (cd oldgnu
19479 TEST_TAR_FORMAT=oldgnu
19480 export TEST_TAR_FORMAT
19481 TAR_OPTIONS="-H oldgnu"
19482 export TAR_OPTIONS
19483 rm -rf *
19484
19485
19486 test -z "`sort < /dev/null 2>&1`" || exit 77
19487
19488 echo Create directories
19489
19490 mkdir tart
19491 sleep 1
19492 mkdir tart/c0
19493 sleep 1
19494 mkdir tart/c1
19495 sleep 1
19496
19497 for file in tart/a1 tart/b1 tart/c0/cq1 tart/c0/cq2 tart/c1/ca1 tart/c1/ca2
19498 do
19499   echo File $file > $file
19500   sleep 1
19501 done
19502
19503 sleep 1
19504 echo Creating main archive
19505 echo >&2 "Creating main archive"
19506 tar -c -v --listed-incremental=tart.incr1 -f archive.1 tart 2> err || exit 1
19507
19508 # The above prints two lines to stderr announcing the new directories c0 and c1.
19509 # Ensure that they appear in this script's stderr in sorted order.
19510 sort err 1>&2; rm -f err
19511
19512 sleep 1
19513 echo Modifying filesystem
19514 rm tart/a1
19515
19516 mv tart/b1 tart/b2
19517 mv tart/c1 tart/c2
19518 touch tart/c2/ca3
19519
19520 echo Directory contents
19521 find tart -print | sort 2>/dev/null
19522
19523 sleep 1
19524 echo Creating incremental archive
19525 echo >&2 "Creating incremental archive"
19526 cp -p tart.incr1 tart.incr2
19527 tar -c -v --listed-incremental=tart.incr2 -f archive.2 tart || exit 1
19528
19529 sleep 1
19530
19531 rm -rf tart/*
19532 echo Extracting main archive
19533 echo >&2 "Extracting main archive"
19534 tar -x -v --listed-incremental=tart.incr1 -f archive.1 || exit 1
19535 echo Extracting incremental archive
19536 # This command should produce three messages about deletion
19537 # of the existing files, that may appear in any order. Piping
19538 # to sort makes sure we don't depend on any particular ordering.
19539 tar -x -v --listed-incremental=tart.incr2 -f archive.2 | sort 2>/dev/null
19540
19541 echo Final files:
19542 find tart -print | sort 2>/dev/null
19543 ) ) >"$at_stdout" 2>"$at_stderr"
19544 fi
19545 at_status=$?
19546 at_failed=false
19547 echo >>"$at_stderr"; $as_echo "Creating main archive
19548 tar: tart/c0: Directory is new
19549 tar: tart/c1: Directory is new
19550 tar: tart: Directory is new
19551 Creating incremental archive
19552 tar: tart/c2: Directory has been renamed from \`tart/c1'
19553 Extracting main archive
19554 " | \
19555   $at_diff - "$at_stderr" || at_failed=:
19556 echo >>"$at_stdout"; $as_echo "Create directories
19557 Creating main archive
19558 tart/
19559 tart/c0/
19560 tart/c1/
19561 tart/a1
19562 tart/b1
19563 tart/c0/cq1
19564 tart/c0/cq2
19565 tart/c1/ca1
19566 tart/c1/ca2
19567 Modifying filesystem
19568 Directory contents
19569 tart
19570 tart/b2
19571 tart/c0
19572 tart/c0/cq1
19573 tart/c0/cq2
19574 tart/c2
19575 tart/c2/ca1
19576 tart/c2/ca2
19577 tart/c2/ca3
19578 Creating incremental archive
19579 tart/
19580 tart/c0/
19581 tart/c2/
19582 tart/b2
19583 tart/c2/ca3
19584 Extracting main archive
19585 tart/
19586 tart/c0/
19587 tart/c1/
19588 tart/a1
19589 tart/b1
19590 tart/c0/cq1
19591 tart/c0/cq2
19592 tart/c1/ca1
19593 tart/c1/ca2
19594 Extracting incremental archive
19595 tar: Deleting \`tart/a1'
19596 tar: Deleting \`tart/b1'
19597 tart/
19598 tart/b2
19599 tart/c0/
19600 tart/c2/
19601 tart/c2/ca3
19602 Final files:
19603 tart
19604 tart/b2
19605 tart/c0
19606 tart/c0/cq1
19607 tart/c0/cq2
19608 tart/c2
19609 tart/c2/ca1
19610 tart/c2/ca2
19611 tart/c2/ca3
19612 " | \
19613   $at_diff - "$at_stdout" || at_failed=:
19614 at_func_check_status 0 $at_status "$at_srcdir/listed02.at:31"
19615
19616 $at_failed && at_func_log_failure
19617 $at_traceon; }
19618
19619
19620
19621
19622   $at_traceoff
19623   $at_times_p && times >"$at_times_file"
19624 ) 5>&1 2>&1 | eval $at_tee_pipe
19625 at_status=`cat "$at_status_file"`
19626 #AT_STOP_52
19627 #AT_START_53
19628 # 53. listed03.at:22: incremental dump when the parent directory is unreadable
19629 at_setup_line='listed03.at:22'
19630 at_desc="incremental dump when the parent directory is unreadable"
19631 $at_quiet $as_echo_n " 53: $at_desc"
19632 at_xfail=no
19633       test -f $XFAILFILE && at_xfail=yes
19634 echo "#                             -*- compilation -*-" >> "$at_group_log"
19635 (
19636   $as_echo "53. listed03.at:22: testing ..."
19637   $at_traceon
19638
19639
19640
19641
19642
19643   { $at_traceoff
19644 $as_echo "$at_srcdir/listed03.at:25:
19645 mkdir gnu
19646 (cd gnu
19647 TEST_TAR_FORMAT=gnu
19648 export TEST_TAR_FORMAT
19649 TAR_OPTIONS=\"-H gnu\"
19650 export TAR_OPTIONS
19651 rm -rf *
19652
19653
19654 echo "test" > $$
19655 chmod 0 $$
19656 cat $$ > /dev/null 2>&1
19657 result=$?
19658 rm -f $$
19659 test $result -eq 0 && exit 77
19660
19661
19662 mkdir dir
19663 mkdir dir/sub
19664 mkdir dir/sub/a
19665 genfile --file dir/sub/a/file
19666 cd dir/sub
19667
19668 chmod a-r ..
19669 tar -c -f archive.tar --listed-incremental=db.1 -v a
19670 status=\$?
19671 chmod a+r ..
19672 exit \$status
19673 )"
19674 echo listed03.at:25 >"$at_check_line_file"
19675
19676 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
19677    false; }; then
19678   ( $at_traceon;
19679 mkdir gnu
19680 (cd gnu
19681 TEST_TAR_FORMAT=gnu
19682 export TEST_TAR_FORMAT
19683 TAR_OPTIONS="-H gnu"
19684 export TAR_OPTIONS
19685 rm -rf *
19686
19687
19688 echo "test" > $$
19689 chmod 0 $$
19690 cat $$ > /dev/null 2>&1
19691 result=$?
19692 rm -f $$
19693 test $result -eq 0 && exit 77
19694
19695
19696 mkdir dir
19697 mkdir dir/sub
19698 mkdir dir/sub/a
19699 genfile --file dir/sub/a/file
19700 cd dir/sub
19701
19702 chmod a-r ..
19703 tar -c -f archive.tar --listed-incremental=db.1 -v a
19704 status=$?
19705 chmod a+r ..
19706 exit $status
19707 ) ) >"$at_stdout" 2>"$at_stder1"
19708   at_func_filter_trace $?
19709 else
19710   ( :;
19711 mkdir gnu
19712 (cd gnu
19713 TEST_TAR_FORMAT=gnu
19714 export TEST_TAR_FORMAT
19715 TAR_OPTIONS="-H gnu"
19716 export TAR_OPTIONS
19717 rm -rf *
19718
19719
19720 echo "test" > $$
19721 chmod 0 $$
19722 cat $$ > /dev/null 2>&1
19723 result=$?
19724 rm -f $$
19725 test $result -eq 0 && exit 77
19726
19727
19728 mkdir dir
19729 mkdir dir/sub
19730 mkdir dir/sub/a
19731 genfile --file dir/sub/a/file
19732 cd dir/sub
19733
19734 chmod a-r ..
19735 tar -c -f archive.tar --listed-incremental=db.1 -v a
19736 status=$?
19737 chmod a+r ..
19738 exit $status
19739 ) ) >"$at_stdout" 2>"$at_stderr"
19740 fi
19741 at_status=$?
19742 at_failed=false
19743 echo >>"$at_stderr"; $as_echo "tar: a: Directory is new
19744 " | \
19745   $at_diff - "$at_stderr" || at_failed=:
19746 echo >>"$at_stdout"; $as_echo "a/
19747 a/file
19748 " | \
19749   $at_diff - "$at_stdout" || at_failed=:
19750 at_func_check_status 0 $at_status "$at_srcdir/listed03.at:25"
19751
19752 $at_failed && at_func_log_failure
19753 $at_traceon; }
19754
19755
19756
19757
19758   $at_traceoff
19759   $at_times_p && times >"$at_times_file"
19760 ) 5>&1 2>&1 | eval $at_tee_pipe
19761 at_status=`cat "$at_status_file"`
19762 #AT_STOP_53
19763 #AT_START_54
19764 # 54. incr03.at:28: renamed files in incrementals
19765 at_setup_line='incr03.at:28'
19766 at_desc="renamed files in incrementals"
19767 $at_quiet $as_echo_n " 54: $at_desc                  "
19768 at_xfail=no
19769       test -f $XFAILFILE && at_xfail=yes
19770 echo "#                             -*- compilation -*-" >> "$at_group_log"
19771 (
19772   $as_echo "54. incr03.at:28: testing ..."
19773   $at_traceon
19774
19775
19776
19777
19778
19779   { $at_traceoff
19780 $as_echo "$at_srcdir/incr03.at:31:
19781 mkdir gnu
19782 (cd gnu
19783 TEST_TAR_FORMAT=gnu
19784 export TEST_TAR_FORMAT
19785 TAR_OPTIONS=\"-H gnu\"
19786 export TAR_OPTIONS
19787 rm -rf *
19788
19789
19790 test -z "`sort < /dev/null 2>&1`" || exit 77
19791
19792 mkdir directory
19793 genfile --file=directory/x
19794 genfile --file=directory/y
19795
19796 sleep 1
19797
19798 tar -cf archive.1 -g db directory
19799
19800 mv directory/x directory/z
19801 cp db db.old
19802 tar -cf archive.2 -g db directory
19803
19804 mv directory orig
19805
19806 echo Listing of archive.1
19807 tar -tf archive.1 | sort
19808 echo Listing of archive.2
19809 tar -tf archive.2 | sort
19810
19811 echo Directory after first restore
19812 tar -xf archive.1 -g db --warning=no-timestamp
19813 find directory | sort
19814
19815 echo Directory after second restore
19816 tar -xf archive.2 -g db --warning=no-timestamp
19817 find directory | sort
19818 )"
19819 echo incr03.at:31 >"$at_check_line_file"
19820
19821 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
19822    false; }; then
19823   ( $at_traceon;
19824 mkdir gnu
19825 (cd gnu
19826 TEST_TAR_FORMAT=gnu
19827 export TEST_TAR_FORMAT
19828 TAR_OPTIONS="-H gnu"
19829 export TAR_OPTIONS
19830 rm -rf *
19831
19832
19833 test -z "`sort < /dev/null 2>&1`" || exit 77
19834
19835 mkdir directory
19836 genfile --file=directory/x
19837 genfile --file=directory/y
19838
19839 sleep 1
19840
19841 tar -cf archive.1 -g db directory
19842
19843 mv directory/x directory/z
19844 cp db db.old
19845 tar -cf archive.2 -g db directory
19846
19847 mv directory orig
19848
19849 echo Listing of archive.1
19850 tar -tf archive.1 | sort
19851 echo Listing of archive.2
19852 tar -tf archive.2 | sort
19853
19854 echo Directory after first restore
19855 tar -xf archive.1 -g db --warning=no-timestamp
19856 find directory | sort
19857
19858 echo Directory after second restore
19859 tar -xf archive.2 -g db --warning=no-timestamp
19860 find directory | sort
19861 ) ) >"$at_stdout" 2>"$at_stder1"
19862   at_func_filter_trace $?
19863 else
19864   ( :;
19865 mkdir gnu
19866 (cd gnu
19867 TEST_TAR_FORMAT=gnu
19868 export TEST_TAR_FORMAT
19869 TAR_OPTIONS="-H gnu"
19870 export TAR_OPTIONS
19871 rm -rf *
19872
19873
19874 test -z "`sort < /dev/null 2>&1`" || exit 77
19875
19876 mkdir directory
19877 genfile --file=directory/x
19878 genfile --file=directory/y
19879
19880 sleep 1
19881
19882 tar -cf archive.1 -g db directory
19883
19884 mv directory/x directory/z
19885 cp db db.old
19886 tar -cf archive.2 -g db directory
19887
19888 mv directory orig
19889
19890 echo Listing of archive.1
19891 tar -tf archive.1 | sort
19892 echo Listing of archive.2
19893 tar -tf archive.2 | sort
19894
19895 echo Directory after first restore
19896 tar -xf archive.1 -g db --warning=no-timestamp
19897 find directory | sort
19898
19899 echo Directory after second restore
19900 tar -xf archive.2 -g db --warning=no-timestamp
19901 find directory | sort
19902 ) ) >"$at_stdout" 2>"$at_stderr"
19903 fi
19904 at_status=$?
19905 at_failed=false
19906 at_func_diff_devnull "$at_stderr" || at_failed=:
19907 echo >>"$at_stdout"; $as_echo "Listing of archive.1
19908 directory/
19909 directory/x
19910 directory/y
19911 Listing of archive.2
19912 directory/
19913 directory/z
19914 Directory after first restore
19915 directory
19916 directory/x
19917 directory/y
19918 Directory after second restore
19919 directory
19920 directory/y
19921 directory/z
19922 " | \
19923   $at_diff - "$at_stdout" || at_failed=:
19924 at_func_check_status 0 $at_status "$at_srcdir/incr03.at:31"
19925
19926 $at_failed && at_func_log_failure
19927 $at_traceon; }
19928
19929               { $at_traceoff
19930 $as_echo "$at_srcdir/incr03.at:31:
19931 mkdir oldgnu
19932 (cd oldgnu
19933 TEST_TAR_FORMAT=oldgnu
19934 export TEST_TAR_FORMAT
19935 TAR_OPTIONS=\"-H oldgnu\"
19936 export TAR_OPTIONS
19937 rm -rf *
19938
19939
19940 test -z "`sort < /dev/null 2>&1`" || exit 77
19941
19942 mkdir directory
19943 genfile --file=directory/x
19944 genfile --file=directory/y
19945
19946 sleep 1
19947
19948 tar -cf archive.1 -g db directory
19949
19950 mv directory/x directory/z
19951 cp db db.old
19952 tar -cf archive.2 -g db directory
19953
19954 mv directory orig
19955
19956 echo Listing of archive.1
19957 tar -tf archive.1 | sort
19958 echo Listing of archive.2
19959 tar -tf archive.2 | sort
19960
19961 echo Directory after first restore
19962 tar -xf archive.1 -g db --warning=no-timestamp
19963 find directory | sort
19964
19965 echo Directory after second restore
19966 tar -xf archive.2 -g db --warning=no-timestamp
19967 find directory | sort
19968 )"
19969 echo incr03.at:31 >"$at_check_line_file"
19970
19971 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
19972    false; }; then
19973   ( $at_traceon;
19974 mkdir oldgnu
19975 (cd oldgnu
19976 TEST_TAR_FORMAT=oldgnu
19977 export TEST_TAR_FORMAT
19978 TAR_OPTIONS="-H oldgnu"
19979 export TAR_OPTIONS
19980 rm -rf *
19981
19982
19983 test -z "`sort < /dev/null 2>&1`" || exit 77
19984
19985 mkdir directory
19986 genfile --file=directory/x
19987 genfile --file=directory/y
19988
19989 sleep 1
19990
19991 tar -cf archive.1 -g db directory
19992
19993 mv directory/x directory/z
19994 cp db db.old
19995 tar -cf archive.2 -g db directory
19996
19997 mv directory orig
19998
19999 echo Listing of archive.1
20000 tar -tf archive.1 | sort
20001 echo Listing of archive.2
20002 tar -tf archive.2 | sort
20003
20004 echo Directory after first restore
20005 tar -xf archive.1 -g db --warning=no-timestamp
20006 find directory | sort
20007
20008 echo Directory after second restore
20009 tar -xf archive.2 -g db --warning=no-timestamp
20010 find directory | sort
20011 ) ) >"$at_stdout" 2>"$at_stder1"
20012   at_func_filter_trace $?
20013 else
20014   ( :;
20015 mkdir oldgnu
20016 (cd oldgnu
20017 TEST_TAR_FORMAT=oldgnu
20018 export TEST_TAR_FORMAT
20019 TAR_OPTIONS="-H oldgnu"
20020 export TAR_OPTIONS
20021 rm -rf *
20022
20023
20024 test -z "`sort < /dev/null 2>&1`" || exit 77
20025
20026 mkdir directory
20027 genfile --file=directory/x
20028 genfile --file=directory/y
20029
20030 sleep 1
20031
20032 tar -cf archive.1 -g db directory
20033
20034 mv directory/x directory/z
20035 cp db db.old
20036 tar -cf archive.2 -g db directory
20037
20038 mv directory orig
20039
20040 echo Listing of archive.1
20041 tar -tf archive.1 | sort
20042 echo Listing of archive.2
20043 tar -tf archive.2 | sort
20044
20045 echo Directory after first restore
20046 tar -xf archive.1 -g db --warning=no-timestamp
20047 find directory | sort
20048
20049 echo Directory after second restore
20050 tar -xf archive.2 -g db --warning=no-timestamp
20051 find directory | sort
20052 ) ) >"$at_stdout" 2>"$at_stderr"
20053 fi
20054 at_status=$?
20055 at_failed=false
20056 at_func_diff_devnull "$at_stderr" || at_failed=:
20057 echo >>"$at_stdout"; $as_echo "Listing of archive.1
20058 directory/
20059 directory/x
20060 directory/y
20061 Listing of archive.2
20062 directory/
20063 directory/z
20064 Directory after first restore
20065 directory
20066 directory/x
20067 directory/y
20068 Directory after second restore
20069 directory
20070 directory/y
20071 directory/z
20072 " | \
20073   $at_diff - "$at_stdout" || at_failed=:
20074 at_func_check_status 0 $at_status "$at_srcdir/incr03.at:31"
20075
20076 $at_failed && at_func_log_failure
20077 $at_traceon; }
20078
20079               { $at_traceoff
20080 $as_echo "$at_srcdir/incr03.at:31:
20081 mkdir posix
20082 (cd posix
20083 TEST_TAR_FORMAT=posix
20084 export TEST_TAR_FORMAT
20085 TAR_OPTIONS=\"-H posix\"
20086 export TAR_OPTIONS
20087 rm -rf *
20088
20089
20090 test -z "`sort < /dev/null 2>&1`" || exit 77
20091
20092 mkdir directory
20093 genfile --file=directory/x
20094 genfile --file=directory/y
20095
20096 sleep 1
20097
20098 tar -cf archive.1 -g db directory
20099
20100 mv directory/x directory/z
20101 cp db db.old
20102 tar -cf archive.2 -g db directory
20103
20104 mv directory orig
20105
20106 echo Listing of archive.1
20107 tar -tf archive.1 | sort
20108 echo Listing of archive.2
20109 tar -tf archive.2 | sort
20110
20111 echo Directory after first restore
20112 tar -xf archive.1 -g db --warning=no-timestamp
20113 find directory | sort
20114
20115 echo Directory after second restore
20116 tar -xf archive.2 -g db --warning=no-timestamp
20117 find directory | sort
20118 )"
20119 echo incr03.at:31 >"$at_check_line_file"
20120
20121 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
20122    false; }; then
20123   ( $at_traceon;
20124 mkdir posix
20125 (cd posix
20126 TEST_TAR_FORMAT=posix
20127 export TEST_TAR_FORMAT
20128 TAR_OPTIONS="-H posix"
20129 export TAR_OPTIONS
20130 rm -rf *
20131
20132
20133 test -z "`sort < /dev/null 2>&1`" || exit 77
20134
20135 mkdir directory
20136 genfile --file=directory/x
20137 genfile --file=directory/y
20138
20139 sleep 1
20140
20141 tar -cf archive.1 -g db directory
20142
20143 mv directory/x directory/z
20144 cp db db.old
20145 tar -cf archive.2 -g db directory
20146
20147 mv directory orig
20148
20149 echo Listing of archive.1
20150 tar -tf archive.1 | sort
20151 echo Listing of archive.2
20152 tar -tf archive.2 | sort
20153
20154 echo Directory after first restore
20155 tar -xf archive.1 -g db --warning=no-timestamp
20156 find directory | sort
20157
20158 echo Directory after second restore
20159 tar -xf archive.2 -g db --warning=no-timestamp
20160 find directory | sort
20161 ) ) >"$at_stdout" 2>"$at_stder1"
20162   at_func_filter_trace $?
20163 else
20164   ( :;
20165 mkdir posix
20166 (cd posix
20167 TEST_TAR_FORMAT=posix
20168 export TEST_TAR_FORMAT
20169 TAR_OPTIONS="-H posix"
20170 export TAR_OPTIONS
20171 rm -rf *
20172
20173
20174 test -z "`sort < /dev/null 2>&1`" || exit 77
20175
20176 mkdir directory
20177 genfile --file=directory/x
20178 genfile --file=directory/y
20179
20180 sleep 1
20181
20182 tar -cf archive.1 -g db directory
20183
20184 mv directory/x directory/z
20185 cp db db.old
20186 tar -cf archive.2 -g db directory
20187
20188 mv directory orig
20189
20190 echo Listing of archive.1
20191 tar -tf archive.1 | sort
20192 echo Listing of archive.2
20193 tar -tf archive.2 | sort
20194
20195 echo Directory after first restore
20196 tar -xf archive.1 -g db --warning=no-timestamp
20197 find directory | sort
20198
20199 echo Directory after second restore
20200 tar -xf archive.2 -g db --warning=no-timestamp
20201 find directory | sort
20202 ) ) >"$at_stdout" 2>"$at_stderr"
20203 fi
20204 at_status=$?
20205 at_failed=false
20206 at_func_diff_devnull "$at_stderr" || at_failed=:
20207 echo >>"$at_stdout"; $as_echo "Listing of archive.1
20208 directory/
20209 directory/x
20210 directory/y
20211 Listing of archive.2
20212 directory/
20213 directory/z
20214 Directory after first restore
20215 directory
20216 directory/x
20217 directory/y
20218 Directory after second restore
20219 directory
20220 directory/y
20221 directory/z
20222 " | \
20223   $at_diff - "$at_stdout" || at_failed=:
20224 at_func_check_status 0 $at_status "$at_srcdir/incr03.at:31"
20225
20226 $at_failed && at_func_log_failure
20227 $at_traceon; }
20228
20229
20230
20231
20232   $at_traceoff
20233   $at_times_p && times >"$at_times_file"
20234 ) 5>&1 2>&1 | eval $at_tee_pipe
20235 at_status=`cat "$at_status_file"`
20236 #AT_STOP_54
20237 #AT_START_55
20238 # 55. incr04.at:29: proper icontents initialization
20239 at_setup_line='incr04.at:29'
20240 at_desc="proper icontents initialization"
20241 $at_quiet $as_echo_n " 55: $at_desc                "
20242 at_xfail=no
20243       test -f $XFAILFILE && at_xfail=yes
20244 echo "#                             -*- compilation -*-" >> "$at_group_log"
20245 (
20246   $as_echo "55. incr04.at:29: testing ..."
20247   $at_traceon
20248
20249
20250
20251
20252
20253
20254
20255   { $at_traceoff
20256 $as_echo "$at_srcdir/incr04.at:34:
20257 mkdir gnu
20258 (cd gnu
20259 TEST_TAR_FORMAT=gnu
20260 export TEST_TAR_FORMAT
20261 TAR_OPTIONS=\"-H gnu\"
20262 export TAR_OPTIONS
20263 rm -rf *
20264
20265
20266 install-sh -d a/b >/dev/null  || exit 77
20267 awk 'BEGIN {
20268   for (i=1;i<=142;i++)
20269     printf(\"a/b/one_31_chars_long_file_name_%03d\\n\", i);
20270   }' < /dev/null | genfile --files-from -
20271
20272 sleep 1
20273
20274 echo \"Initial dump\"
20275 tar cvf a0.tar -g a.sna a
20276 mv a/b a/c
20277 echo \"Incremental dump\"
20278 tar cvf a1.tar -g a.sna a
20279 )"
20280 echo incr04.at:34 >"$at_check_line_file"
20281
20282 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
20283    false; }; then
20284   ( $at_traceon;
20285 mkdir gnu
20286 (cd gnu
20287 TEST_TAR_FORMAT=gnu
20288 export TEST_TAR_FORMAT
20289 TAR_OPTIONS="-H gnu"
20290 export TAR_OPTIONS
20291 rm -rf *
20292
20293
20294 install-sh -d a/b >/dev/null  || exit 77
20295 awk 'BEGIN {
20296   for (i=1;i<=142;i++)
20297     printf("a/b/one_31_chars_long_file_name_%03d\n", i);
20298   }' < /dev/null | genfile --files-from -
20299
20300 sleep 1
20301
20302 echo "Initial dump"
20303 tar cvf a0.tar -g a.sna a
20304 mv a/b a/c
20305 echo "Incremental dump"
20306 tar cvf a1.tar -g a.sna a
20307 ) ) >"$at_stdout" 2>"$at_stder1"
20308   at_func_filter_trace $?
20309 else
20310   ( :;
20311 mkdir gnu
20312 (cd gnu
20313 TEST_TAR_FORMAT=gnu
20314 export TEST_TAR_FORMAT
20315 TAR_OPTIONS="-H gnu"
20316 export TAR_OPTIONS
20317 rm -rf *
20318
20319
20320 install-sh -d a/b >/dev/null  || exit 77
20321 awk 'BEGIN {
20322   for (i=1;i<=142;i++)
20323     printf("a/b/one_31_chars_long_file_name_%03d\n", i);
20324   }' < /dev/null | genfile --files-from -
20325
20326 sleep 1
20327
20328 echo "Initial dump"
20329 tar cvf a0.tar -g a.sna a
20330 mv a/b a/c
20331 echo "Incremental dump"
20332 tar cvf a1.tar -g a.sna a
20333 ) ) >"$at_stdout" 2>"$at_stderr"
20334 fi
20335 at_status=$?
20336 at_failed=false
20337 echo >>"$at_stderr"; $as_echo "tar: a: Directory is new
20338 tar: a/b: Directory is new
20339 tar: a/c: Directory has been renamed from \`a/b'
20340 " | \
20341   $at_diff - "$at_stderr" || at_failed=:
20342 echo >>"$at_stdout"; $as_echo "Initial dump
20343 a/
20344 a/b/
20345 a/b/one_31_chars_long_file_name_001
20346 a/b/one_31_chars_long_file_name_002
20347 a/b/one_31_chars_long_file_name_003
20348 a/b/one_31_chars_long_file_name_004
20349 a/b/one_31_chars_long_file_name_005
20350 a/b/one_31_chars_long_file_name_006
20351 a/b/one_31_chars_long_file_name_007
20352 a/b/one_31_chars_long_file_name_008
20353 a/b/one_31_chars_long_file_name_009
20354 a/b/one_31_chars_long_file_name_010
20355 a/b/one_31_chars_long_file_name_011
20356 a/b/one_31_chars_long_file_name_012
20357 a/b/one_31_chars_long_file_name_013
20358 a/b/one_31_chars_long_file_name_014
20359 a/b/one_31_chars_long_file_name_015
20360 a/b/one_31_chars_long_file_name_016
20361 a/b/one_31_chars_long_file_name_017
20362 a/b/one_31_chars_long_file_name_018
20363 a/b/one_31_chars_long_file_name_019
20364 a/b/one_31_chars_long_file_name_020
20365 a/b/one_31_chars_long_file_name_021
20366 a/b/one_31_chars_long_file_name_022
20367 a/b/one_31_chars_long_file_name_023
20368 a/b/one_31_chars_long_file_name_024
20369 a/b/one_31_chars_long_file_name_025
20370 a/b/one_31_chars_long_file_name_026
20371 a/b/one_31_chars_long_file_name_027
20372 a/b/one_31_chars_long_file_name_028
20373 a/b/one_31_chars_long_file_name_029
20374 a/b/one_31_chars_long_file_name_030
20375 a/b/one_31_chars_long_file_name_031
20376 a/b/one_31_chars_long_file_name_032
20377 a/b/one_31_chars_long_file_name_033
20378 a/b/one_31_chars_long_file_name_034
20379 a/b/one_31_chars_long_file_name_035
20380 a/b/one_31_chars_long_file_name_036
20381 a/b/one_31_chars_long_file_name_037
20382 a/b/one_31_chars_long_file_name_038
20383 a/b/one_31_chars_long_file_name_039
20384 a/b/one_31_chars_long_file_name_040
20385 a/b/one_31_chars_long_file_name_041
20386 a/b/one_31_chars_long_file_name_042
20387 a/b/one_31_chars_long_file_name_043
20388 a/b/one_31_chars_long_file_name_044
20389 a/b/one_31_chars_long_file_name_045
20390 a/b/one_31_chars_long_file_name_046
20391 a/b/one_31_chars_long_file_name_047
20392 a/b/one_31_chars_long_file_name_048
20393 a/b/one_31_chars_long_file_name_049
20394 a/b/one_31_chars_long_file_name_050
20395 a/b/one_31_chars_long_file_name_051
20396 a/b/one_31_chars_long_file_name_052
20397 a/b/one_31_chars_long_file_name_053
20398 a/b/one_31_chars_long_file_name_054
20399 a/b/one_31_chars_long_file_name_055
20400 a/b/one_31_chars_long_file_name_056
20401 a/b/one_31_chars_long_file_name_057
20402 a/b/one_31_chars_long_file_name_058
20403 a/b/one_31_chars_long_file_name_059
20404 a/b/one_31_chars_long_file_name_060
20405 a/b/one_31_chars_long_file_name_061
20406 a/b/one_31_chars_long_file_name_062
20407 a/b/one_31_chars_long_file_name_063
20408 a/b/one_31_chars_long_file_name_064
20409 a/b/one_31_chars_long_file_name_065
20410 a/b/one_31_chars_long_file_name_066
20411 a/b/one_31_chars_long_file_name_067
20412 a/b/one_31_chars_long_file_name_068
20413 a/b/one_31_chars_long_file_name_069
20414 a/b/one_31_chars_long_file_name_070
20415 a/b/one_31_chars_long_file_name_071
20416 a/b/one_31_chars_long_file_name_072
20417 a/b/one_31_chars_long_file_name_073
20418 a/b/one_31_chars_long_file_name_074
20419 a/b/one_31_chars_long_file_name_075
20420 a/b/one_31_chars_long_file_name_076
20421 a/b/one_31_chars_long_file_name_077
20422 a/b/one_31_chars_long_file_name_078
20423 a/b/one_31_chars_long_file_name_079
20424 a/b/one_31_chars_long_file_name_080
20425 a/b/one_31_chars_long_file_name_081
20426 a/b/one_31_chars_long_file_name_082
20427 a/b/one_31_chars_long_file_name_083
20428 a/b/one_31_chars_long_file_name_084
20429 a/b/one_31_chars_long_file_name_085
20430 a/b/one_31_chars_long_file_name_086
20431 a/b/one_31_chars_long_file_name_087
20432 a/b/one_31_chars_long_file_name_088
20433 a/b/one_31_chars_long_file_name_089
20434 a/b/one_31_chars_long_file_name_090
20435 a/b/one_31_chars_long_file_name_091
20436 a/b/one_31_chars_long_file_name_092
20437 a/b/one_31_chars_long_file_name_093
20438 a/b/one_31_chars_long_file_name_094
20439 a/b/one_31_chars_long_file_name_095
20440 a/b/one_31_chars_long_file_name_096
20441 a/b/one_31_chars_long_file_name_097
20442 a/b/one_31_chars_long_file_name_098
20443 a/b/one_31_chars_long_file_name_099
20444 a/b/one_31_chars_long_file_name_100
20445 a/b/one_31_chars_long_file_name_101
20446 a/b/one_31_chars_long_file_name_102
20447 a/b/one_31_chars_long_file_name_103
20448 a/b/one_31_chars_long_file_name_104
20449 a/b/one_31_chars_long_file_name_105
20450 a/b/one_31_chars_long_file_name_106
20451 a/b/one_31_chars_long_file_name_107
20452 a/b/one_31_chars_long_file_name_108
20453 a/b/one_31_chars_long_file_name_109
20454 a/b/one_31_chars_long_file_name_110
20455 a/b/one_31_chars_long_file_name_111
20456 a/b/one_31_chars_long_file_name_112
20457 a/b/one_31_chars_long_file_name_113
20458 a/b/one_31_chars_long_file_name_114
20459 a/b/one_31_chars_long_file_name_115
20460 a/b/one_31_chars_long_file_name_116
20461 a/b/one_31_chars_long_file_name_117
20462 a/b/one_31_chars_long_file_name_118
20463 a/b/one_31_chars_long_file_name_119
20464 a/b/one_31_chars_long_file_name_120
20465 a/b/one_31_chars_long_file_name_121
20466 a/b/one_31_chars_long_file_name_122
20467 a/b/one_31_chars_long_file_name_123
20468 a/b/one_31_chars_long_file_name_124
20469 a/b/one_31_chars_long_file_name_125
20470 a/b/one_31_chars_long_file_name_126
20471 a/b/one_31_chars_long_file_name_127
20472 a/b/one_31_chars_long_file_name_128
20473 a/b/one_31_chars_long_file_name_129
20474 a/b/one_31_chars_long_file_name_130
20475 a/b/one_31_chars_long_file_name_131
20476 a/b/one_31_chars_long_file_name_132
20477 a/b/one_31_chars_long_file_name_133
20478 a/b/one_31_chars_long_file_name_134
20479 a/b/one_31_chars_long_file_name_135
20480 a/b/one_31_chars_long_file_name_136
20481 a/b/one_31_chars_long_file_name_137
20482 a/b/one_31_chars_long_file_name_138
20483 a/b/one_31_chars_long_file_name_139
20484 a/b/one_31_chars_long_file_name_140
20485 a/b/one_31_chars_long_file_name_141
20486 a/b/one_31_chars_long_file_name_142
20487 Incremental dump
20488 a/
20489 a/c/
20490 " | \
20491   $at_diff - "$at_stdout" || at_failed=:
20492 at_func_check_status 0 $at_status "$at_srcdir/incr04.at:34"
20493
20494 $at_failed && at_func_log_failure
20495 $at_traceon; }
20496
20497               { $at_traceoff
20498 $as_echo "$at_srcdir/incr04.at:34:
20499 mkdir oldgnu
20500 (cd oldgnu
20501 TEST_TAR_FORMAT=oldgnu
20502 export TEST_TAR_FORMAT
20503 TAR_OPTIONS=\"-H oldgnu\"
20504 export TAR_OPTIONS
20505 rm -rf *
20506
20507
20508 install-sh -d a/b >/dev/null  || exit 77
20509 awk 'BEGIN {
20510   for (i=1;i<=142;i++)
20511     printf(\"a/b/one_31_chars_long_file_name_%03d\\n\", i);
20512   }' < /dev/null | genfile --files-from -
20513
20514 sleep 1
20515
20516 echo \"Initial dump\"
20517 tar cvf a0.tar -g a.sna a
20518 mv a/b a/c
20519 echo \"Incremental dump\"
20520 tar cvf a1.tar -g a.sna a
20521 )"
20522 echo incr04.at:34 >"$at_check_line_file"
20523
20524 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
20525    false; }; then
20526   ( $at_traceon;
20527 mkdir oldgnu
20528 (cd oldgnu
20529 TEST_TAR_FORMAT=oldgnu
20530 export TEST_TAR_FORMAT
20531 TAR_OPTIONS="-H oldgnu"
20532 export TAR_OPTIONS
20533 rm -rf *
20534
20535
20536 install-sh -d a/b >/dev/null  || exit 77
20537 awk 'BEGIN {
20538   for (i=1;i<=142;i++)
20539     printf("a/b/one_31_chars_long_file_name_%03d\n", i);
20540   }' < /dev/null | genfile --files-from -
20541
20542 sleep 1
20543
20544 echo "Initial dump"
20545 tar cvf a0.tar -g a.sna a
20546 mv a/b a/c
20547 echo "Incremental dump"
20548 tar cvf a1.tar -g a.sna a
20549 ) ) >"$at_stdout" 2>"$at_stder1"
20550   at_func_filter_trace $?
20551 else
20552   ( :;
20553 mkdir oldgnu
20554 (cd oldgnu
20555 TEST_TAR_FORMAT=oldgnu
20556 export TEST_TAR_FORMAT
20557 TAR_OPTIONS="-H oldgnu"
20558 export TAR_OPTIONS
20559 rm -rf *
20560
20561
20562 install-sh -d a/b >/dev/null  || exit 77
20563 awk 'BEGIN {
20564   for (i=1;i<=142;i++)
20565     printf("a/b/one_31_chars_long_file_name_%03d\n", i);
20566   }' < /dev/null | genfile --files-from -
20567
20568 sleep 1
20569
20570 echo "Initial dump"
20571 tar cvf a0.tar -g a.sna a
20572 mv a/b a/c
20573 echo "Incremental dump"
20574 tar cvf a1.tar -g a.sna a
20575 ) ) >"$at_stdout" 2>"$at_stderr"
20576 fi
20577 at_status=$?
20578 at_failed=false
20579 echo >>"$at_stderr"; $as_echo "tar: a: Directory is new
20580 tar: a/b: Directory is new
20581 tar: a/c: Directory has been renamed from \`a/b'
20582 " | \
20583   $at_diff - "$at_stderr" || at_failed=:
20584 echo >>"$at_stdout"; $as_echo "Initial dump
20585 a/
20586 a/b/
20587 a/b/one_31_chars_long_file_name_001
20588 a/b/one_31_chars_long_file_name_002
20589 a/b/one_31_chars_long_file_name_003
20590 a/b/one_31_chars_long_file_name_004
20591 a/b/one_31_chars_long_file_name_005
20592 a/b/one_31_chars_long_file_name_006
20593 a/b/one_31_chars_long_file_name_007
20594 a/b/one_31_chars_long_file_name_008
20595 a/b/one_31_chars_long_file_name_009
20596 a/b/one_31_chars_long_file_name_010
20597 a/b/one_31_chars_long_file_name_011
20598 a/b/one_31_chars_long_file_name_012
20599 a/b/one_31_chars_long_file_name_013
20600 a/b/one_31_chars_long_file_name_014
20601 a/b/one_31_chars_long_file_name_015
20602 a/b/one_31_chars_long_file_name_016
20603 a/b/one_31_chars_long_file_name_017
20604 a/b/one_31_chars_long_file_name_018
20605 a/b/one_31_chars_long_file_name_019
20606 a/b/one_31_chars_long_file_name_020
20607 a/b/one_31_chars_long_file_name_021
20608 a/b/one_31_chars_long_file_name_022
20609 a/b/one_31_chars_long_file_name_023
20610 a/b/one_31_chars_long_file_name_024
20611 a/b/one_31_chars_long_file_name_025
20612 a/b/one_31_chars_long_file_name_026
20613 a/b/one_31_chars_long_file_name_027
20614 a/b/one_31_chars_long_file_name_028
20615 a/b/one_31_chars_long_file_name_029
20616 a/b/one_31_chars_long_file_name_030
20617 a/b/one_31_chars_long_file_name_031
20618 a/b/one_31_chars_long_file_name_032
20619 a/b/one_31_chars_long_file_name_033
20620 a/b/one_31_chars_long_file_name_034
20621 a/b/one_31_chars_long_file_name_035
20622 a/b/one_31_chars_long_file_name_036
20623 a/b/one_31_chars_long_file_name_037
20624 a/b/one_31_chars_long_file_name_038
20625 a/b/one_31_chars_long_file_name_039
20626 a/b/one_31_chars_long_file_name_040
20627 a/b/one_31_chars_long_file_name_041
20628 a/b/one_31_chars_long_file_name_042
20629 a/b/one_31_chars_long_file_name_043
20630 a/b/one_31_chars_long_file_name_044
20631 a/b/one_31_chars_long_file_name_045
20632 a/b/one_31_chars_long_file_name_046
20633 a/b/one_31_chars_long_file_name_047
20634 a/b/one_31_chars_long_file_name_048
20635 a/b/one_31_chars_long_file_name_049
20636 a/b/one_31_chars_long_file_name_050
20637 a/b/one_31_chars_long_file_name_051
20638 a/b/one_31_chars_long_file_name_052
20639 a/b/one_31_chars_long_file_name_053
20640 a/b/one_31_chars_long_file_name_054
20641 a/b/one_31_chars_long_file_name_055
20642 a/b/one_31_chars_long_file_name_056
20643 a/b/one_31_chars_long_file_name_057
20644 a/b/one_31_chars_long_file_name_058
20645 a/b/one_31_chars_long_file_name_059
20646 a/b/one_31_chars_long_file_name_060
20647 a/b/one_31_chars_long_file_name_061
20648 a/b/one_31_chars_long_file_name_062
20649 a/b/one_31_chars_long_file_name_063
20650 a/b/one_31_chars_long_file_name_064
20651 a/b/one_31_chars_long_file_name_065
20652 a/b/one_31_chars_long_file_name_066
20653 a/b/one_31_chars_long_file_name_067
20654 a/b/one_31_chars_long_file_name_068
20655 a/b/one_31_chars_long_file_name_069
20656 a/b/one_31_chars_long_file_name_070
20657 a/b/one_31_chars_long_file_name_071
20658 a/b/one_31_chars_long_file_name_072
20659 a/b/one_31_chars_long_file_name_073
20660 a/b/one_31_chars_long_file_name_074
20661 a/b/one_31_chars_long_file_name_075
20662 a/b/one_31_chars_long_file_name_076
20663 a/b/one_31_chars_long_file_name_077
20664 a/b/one_31_chars_long_file_name_078
20665 a/b/one_31_chars_long_file_name_079
20666 a/b/one_31_chars_long_file_name_080
20667 a/b/one_31_chars_long_file_name_081
20668 a/b/one_31_chars_long_file_name_082
20669 a/b/one_31_chars_long_file_name_083
20670 a/b/one_31_chars_long_file_name_084
20671 a/b/one_31_chars_long_file_name_085
20672 a/b/one_31_chars_long_file_name_086
20673 a/b/one_31_chars_long_file_name_087
20674 a/b/one_31_chars_long_file_name_088
20675 a/b/one_31_chars_long_file_name_089
20676 a/b/one_31_chars_long_file_name_090
20677 a/b/one_31_chars_long_file_name_091
20678 a/b/one_31_chars_long_file_name_092
20679 a/b/one_31_chars_long_file_name_093
20680 a/b/one_31_chars_long_file_name_094
20681 a/b/one_31_chars_long_file_name_095
20682 a/b/one_31_chars_long_file_name_096
20683 a/b/one_31_chars_long_file_name_097
20684 a/b/one_31_chars_long_file_name_098
20685 a/b/one_31_chars_long_file_name_099
20686 a/b/one_31_chars_long_file_name_100
20687 a/b/one_31_chars_long_file_name_101
20688 a/b/one_31_chars_long_file_name_102
20689 a/b/one_31_chars_long_file_name_103
20690 a/b/one_31_chars_long_file_name_104
20691 a/b/one_31_chars_long_file_name_105
20692 a/b/one_31_chars_long_file_name_106
20693 a/b/one_31_chars_long_file_name_107
20694 a/b/one_31_chars_long_file_name_108
20695 a/b/one_31_chars_long_file_name_109
20696 a/b/one_31_chars_long_file_name_110
20697 a/b/one_31_chars_long_file_name_111
20698 a/b/one_31_chars_long_file_name_112
20699 a/b/one_31_chars_long_file_name_113
20700 a/b/one_31_chars_long_file_name_114
20701 a/b/one_31_chars_long_file_name_115
20702 a/b/one_31_chars_long_file_name_116
20703 a/b/one_31_chars_long_file_name_117
20704 a/b/one_31_chars_long_file_name_118
20705 a/b/one_31_chars_long_file_name_119
20706 a/b/one_31_chars_long_file_name_120
20707 a/b/one_31_chars_long_file_name_121
20708 a/b/one_31_chars_long_file_name_122
20709 a/b/one_31_chars_long_file_name_123
20710 a/b/one_31_chars_long_file_name_124
20711 a/b/one_31_chars_long_file_name_125
20712 a/b/one_31_chars_long_file_name_126
20713 a/b/one_31_chars_long_file_name_127
20714 a/b/one_31_chars_long_file_name_128
20715 a/b/one_31_chars_long_file_name_129
20716 a/b/one_31_chars_long_file_name_130
20717 a/b/one_31_chars_long_file_name_131
20718 a/b/one_31_chars_long_file_name_132
20719 a/b/one_31_chars_long_file_name_133
20720 a/b/one_31_chars_long_file_name_134
20721 a/b/one_31_chars_long_file_name_135
20722 a/b/one_31_chars_long_file_name_136
20723 a/b/one_31_chars_long_file_name_137
20724 a/b/one_31_chars_long_file_name_138
20725 a/b/one_31_chars_long_file_name_139
20726 a/b/one_31_chars_long_file_name_140
20727 a/b/one_31_chars_long_file_name_141
20728 a/b/one_31_chars_long_file_name_142
20729 Incremental dump
20730 a/
20731 a/c/
20732 " | \
20733   $at_diff - "$at_stdout" || at_failed=:
20734 at_func_check_status 0 $at_status "$at_srcdir/incr04.at:34"
20735
20736 $at_failed && at_func_log_failure
20737 $at_traceon; }
20738
20739               { $at_traceoff
20740 $as_echo "$at_srcdir/incr04.at:34:
20741 mkdir posix
20742 (cd posix
20743 TEST_TAR_FORMAT=posix
20744 export TEST_TAR_FORMAT
20745 TAR_OPTIONS=\"-H posix\"
20746 export TAR_OPTIONS
20747 rm -rf *
20748
20749
20750 install-sh -d a/b >/dev/null  || exit 77
20751 awk 'BEGIN {
20752   for (i=1;i<=142;i++)
20753     printf(\"a/b/one_31_chars_long_file_name_%03d\\n\", i);
20754   }' < /dev/null | genfile --files-from -
20755
20756 sleep 1
20757
20758 echo \"Initial dump\"
20759 tar cvf a0.tar -g a.sna a
20760 mv a/b a/c
20761 echo \"Incremental dump\"
20762 tar cvf a1.tar -g a.sna a
20763 )"
20764 echo incr04.at:34 >"$at_check_line_file"
20765
20766 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
20767    false; }; then
20768   ( $at_traceon;
20769 mkdir posix
20770 (cd posix
20771 TEST_TAR_FORMAT=posix
20772 export TEST_TAR_FORMAT
20773 TAR_OPTIONS="-H posix"
20774 export TAR_OPTIONS
20775 rm -rf *
20776
20777
20778 install-sh -d a/b >/dev/null  || exit 77
20779 awk 'BEGIN {
20780   for (i=1;i<=142;i++)
20781     printf("a/b/one_31_chars_long_file_name_%03d\n", i);
20782   }' < /dev/null | genfile --files-from -
20783
20784 sleep 1
20785
20786 echo "Initial dump"
20787 tar cvf a0.tar -g a.sna a
20788 mv a/b a/c
20789 echo "Incremental dump"
20790 tar cvf a1.tar -g a.sna a
20791 ) ) >"$at_stdout" 2>"$at_stder1"
20792   at_func_filter_trace $?
20793 else
20794   ( :;
20795 mkdir posix
20796 (cd posix
20797 TEST_TAR_FORMAT=posix
20798 export TEST_TAR_FORMAT
20799 TAR_OPTIONS="-H posix"
20800 export TAR_OPTIONS
20801 rm -rf *
20802
20803
20804 install-sh -d a/b >/dev/null  || exit 77
20805 awk 'BEGIN {
20806   for (i=1;i<=142;i++)
20807     printf("a/b/one_31_chars_long_file_name_%03d\n", i);
20808   }' < /dev/null | genfile --files-from -
20809
20810 sleep 1
20811
20812 echo "Initial dump"
20813 tar cvf a0.tar -g a.sna a
20814 mv a/b a/c
20815 echo "Incremental dump"
20816 tar cvf a1.tar -g a.sna a
20817 ) ) >"$at_stdout" 2>"$at_stderr"
20818 fi
20819 at_status=$?
20820 at_failed=false
20821 echo >>"$at_stderr"; $as_echo "tar: a: Directory is new
20822 tar: a/b: Directory is new
20823 tar: a/c: Directory has been renamed from \`a/b'
20824 " | \
20825   $at_diff - "$at_stderr" || at_failed=:
20826 echo >>"$at_stdout"; $as_echo "Initial dump
20827 a/
20828 a/b/
20829 a/b/one_31_chars_long_file_name_001
20830 a/b/one_31_chars_long_file_name_002
20831 a/b/one_31_chars_long_file_name_003
20832 a/b/one_31_chars_long_file_name_004
20833 a/b/one_31_chars_long_file_name_005
20834 a/b/one_31_chars_long_file_name_006
20835 a/b/one_31_chars_long_file_name_007
20836 a/b/one_31_chars_long_file_name_008
20837 a/b/one_31_chars_long_file_name_009
20838 a/b/one_31_chars_long_file_name_010
20839 a/b/one_31_chars_long_file_name_011
20840 a/b/one_31_chars_long_file_name_012
20841 a/b/one_31_chars_long_file_name_013
20842 a/b/one_31_chars_long_file_name_014
20843 a/b/one_31_chars_long_file_name_015
20844 a/b/one_31_chars_long_file_name_016
20845 a/b/one_31_chars_long_file_name_017
20846 a/b/one_31_chars_long_file_name_018
20847 a/b/one_31_chars_long_file_name_019
20848 a/b/one_31_chars_long_file_name_020
20849 a/b/one_31_chars_long_file_name_021
20850 a/b/one_31_chars_long_file_name_022
20851 a/b/one_31_chars_long_file_name_023
20852 a/b/one_31_chars_long_file_name_024
20853 a/b/one_31_chars_long_file_name_025
20854 a/b/one_31_chars_long_file_name_026
20855 a/b/one_31_chars_long_file_name_027
20856 a/b/one_31_chars_long_file_name_028
20857 a/b/one_31_chars_long_file_name_029
20858 a/b/one_31_chars_long_file_name_030
20859 a/b/one_31_chars_long_file_name_031
20860 a/b/one_31_chars_long_file_name_032
20861 a/b/one_31_chars_long_file_name_033
20862 a/b/one_31_chars_long_file_name_034
20863 a/b/one_31_chars_long_file_name_035
20864 a/b/one_31_chars_long_file_name_036
20865 a/b/one_31_chars_long_file_name_037
20866 a/b/one_31_chars_long_file_name_038
20867 a/b/one_31_chars_long_file_name_039
20868 a/b/one_31_chars_long_file_name_040
20869 a/b/one_31_chars_long_file_name_041
20870 a/b/one_31_chars_long_file_name_042
20871 a/b/one_31_chars_long_file_name_043
20872 a/b/one_31_chars_long_file_name_044
20873 a/b/one_31_chars_long_file_name_045
20874 a/b/one_31_chars_long_file_name_046
20875 a/b/one_31_chars_long_file_name_047
20876 a/b/one_31_chars_long_file_name_048
20877 a/b/one_31_chars_long_file_name_049
20878 a/b/one_31_chars_long_file_name_050
20879 a/b/one_31_chars_long_file_name_051
20880 a/b/one_31_chars_long_file_name_052
20881 a/b/one_31_chars_long_file_name_053
20882 a/b/one_31_chars_long_file_name_054
20883 a/b/one_31_chars_long_file_name_055
20884 a/b/one_31_chars_long_file_name_056
20885 a/b/one_31_chars_long_file_name_057
20886 a/b/one_31_chars_long_file_name_058
20887 a/b/one_31_chars_long_file_name_059
20888 a/b/one_31_chars_long_file_name_060
20889 a/b/one_31_chars_long_file_name_061
20890 a/b/one_31_chars_long_file_name_062
20891 a/b/one_31_chars_long_file_name_063
20892 a/b/one_31_chars_long_file_name_064
20893 a/b/one_31_chars_long_file_name_065
20894 a/b/one_31_chars_long_file_name_066
20895 a/b/one_31_chars_long_file_name_067
20896 a/b/one_31_chars_long_file_name_068
20897 a/b/one_31_chars_long_file_name_069
20898 a/b/one_31_chars_long_file_name_070
20899 a/b/one_31_chars_long_file_name_071
20900 a/b/one_31_chars_long_file_name_072
20901 a/b/one_31_chars_long_file_name_073
20902 a/b/one_31_chars_long_file_name_074
20903 a/b/one_31_chars_long_file_name_075
20904 a/b/one_31_chars_long_file_name_076
20905 a/b/one_31_chars_long_file_name_077
20906 a/b/one_31_chars_long_file_name_078
20907 a/b/one_31_chars_long_file_name_079
20908 a/b/one_31_chars_long_file_name_080
20909 a/b/one_31_chars_long_file_name_081
20910 a/b/one_31_chars_long_file_name_082
20911 a/b/one_31_chars_long_file_name_083
20912 a/b/one_31_chars_long_file_name_084
20913 a/b/one_31_chars_long_file_name_085
20914 a/b/one_31_chars_long_file_name_086
20915 a/b/one_31_chars_long_file_name_087
20916 a/b/one_31_chars_long_file_name_088
20917 a/b/one_31_chars_long_file_name_089
20918 a/b/one_31_chars_long_file_name_090
20919 a/b/one_31_chars_long_file_name_091
20920 a/b/one_31_chars_long_file_name_092
20921 a/b/one_31_chars_long_file_name_093
20922 a/b/one_31_chars_long_file_name_094
20923 a/b/one_31_chars_long_file_name_095
20924 a/b/one_31_chars_long_file_name_096
20925 a/b/one_31_chars_long_file_name_097
20926 a/b/one_31_chars_long_file_name_098
20927 a/b/one_31_chars_long_file_name_099
20928 a/b/one_31_chars_long_file_name_100
20929 a/b/one_31_chars_long_file_name_101
20930 a/b/one_31_chars_long_file_name_102
20931 a/b/one_31_chars_long_file_name_103
20932 a/b/one_31_chars_long_file_name_104
20933 a/b/one_31_chars_long_file_name_105
20934 a/b/one_31_chars_long_file_name_106
20935 a/b/one_31_chars_long_file_name_107
20936 a/b/one_31_chars_long_file_name_108
20937 a/b/one_31_chars_long_file_name_109
20938 a/b/one_31_chars_long_file_name_110
20939 a/b/one_31_chars_long_file_name_111
20940 a/b/one_31_chars_long_file_name_112
20941 a/b/one_31_chars_long_file_name_113
20942 a/b/one_31_chars_long_file_name_114
20943 a/b/one_31_chars_long_file_name_115
20944 a/b/one_31_chars_long_file_name_116
20945 a/b/one_31_chars_long_file_name_117
20946 a/b/one_31_chars_long_file_name_118
20947 a/b/one_31_chars_long_file_name_119
20948 a/b/one_31_chars_long_file_name_120
20949 a/b/one_31_chars_long_file_name_121
20950 a/b/one_31_chars_long_file_name_122
20951 a/b/one_31_chars_long_file_name_123
20952 a/b/one_31_chars_long_file_name_124
20953 a/b/one_31_chars_long_file_name_125
20954 a/b/one_31_chars_long_file_name_126
20955 a/b/one_31_chars_long_file_name_127
20956 a/b/one_31_chars_long_file_name_128
20957 a/b/one_31_chars_long_file_name_129
20958 a/b/one_31_chars_long_file_name_130
20959 a/b/one_31_chars_long_file_name_131
20960 a/b/one_31_chars_long_file_name_132
20961 a/b/one_31_chars_long_file_name_133
20962 a/b/one_31_chars_long_file_name_134
20963 a/b/one_31_chars_long_file_name_135
20964 a/b/one_31_chars_long_file_name_136
20965 a/b/one_31_chars_long_file_name_137
20966 a/b/one_31_chars_long_file_name_138
20967 a/b/one_31_chars_long_file_name_139
20968 a/b/one_31_chars_long_file_name_140
20969 a/b/one_31_chars_long_file_name_141
20970 a/b/one_31_chars_long_file_name_142
20971 Incremental dump
20972 a/
20973 a/c/
20974 " | \
20975   $at_diff - "$at_stdout" || at_failed=:
20976 at_func_check_status 0 $at_status "$at_srcdir/incr04.at:34"
20977
20978 $at_failed && at_func_log_failure
20979 $at_traceon; }
20980
20981
20982
20983
20984   $at_traceoff
20985   $at_times_p && times >"$at_times_file"
20986 ) 5>&1 2>&1 | eval $at_tee_pipe
20987 at_status=`cat "$at_status_file"`
20988 #AT_STOP_55
20989 #AT_START_56
20990 # 56. incr05.at:19: incremental dumps with -C
20991 at_setup_line='incr05.at:19'
20992 at_desc="incremental dumps with -C"
20993 $at_quiet $as_echo_n " 56: $at_desc                      "
20994 at_xfail=no
20995       test -f $XFAILFILE && at_xfail=yes
20996 echo "#                             -*- compilation -*-" >> "$at_group_log"
20997 (
20998   $as_echo "56. incr05.at:19: testing ..."
20999   $at_traceon
21000
21001
21002
21003
21004
21005   { $at_traceoff
21006 $as_echo "$at_srcdir/incr05.at:22:
21007 mkdir gnu
21008 (cd gnu
21009 TEST_TAR_FORMAT=gnu
21010 export TEST_TAR_FORMAT
21011 TAR_OPTIONS=\"-H gnu\"
21012 export TAR_OPTIONS
21013 rm -rf *
21014
21015 mkdir dir
21016 mkdir dir/sub
21017 genfile --file dir/file1
21018 genfile --file dir/sub/file2
21019
21020 echo Level 0
21021 tar -c -f archive.tar -g db -C dir -v --warning=no-new-dir .
21022
21023 genfile --file dir/file3
21024 echo Level 1
21025 tar -c -f archive.tar -g db -C dir -v --warning=no-new-dir .
21026 )"
21027 echo incr05.at:22 >"$at_check_line_file"
21028
21029 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
21030    false; }; then
21031   ( $at_traceon;
21032 mkdir gnu
21033 (cd gnu
21034 TEST_TAR_FORMAT=gnu
21035 export TEST_TAR_FORMAT
21036 TAR_OPTIONS="-H gnu"
21037 export TAR_OPTIONS
21038 rm -rf *
21039
21040 mkdir dir
21041 mkdir dir/sub
21042 genfile --file dir/file1
21043 genfile --file dir/sub/file2
21044
21045 echo Level 0
21046 tar -c -f archive.tar -g db -C dir -v --warning=no-new-dir .
21047
21048 genfile --file dir/file3
21049 echo Level 1
21050 tar -c -f archive.tar -g db -C dir -v --warning=no-new-dir .
21051 ) ) >"$at_stdout" 2>"$at_stder1"
21052   at_func_filter_trace $?
21053 else
21054   ( :;
21055 mkdir gnu
21056 (cd gnu
21057 TEST_TAR_FORMAT=gnu
21058 export TEST_TAR_FORMAT
21059 TAR_OPTIONS="-H gnu"
21060 export TAR_OPTIONS
21061 rm -rf *
21062
21063 mkdir dir
21064 mkdir dir/sub
21065 genfile --file dir/file1
21066 genfile --file dir/sub/file2
21067
21068 echo Level 0
21069 tar -c -f archive.tar -g db -C dir -v --warning=no-new-dir .
21070
21071 genfile --file dir/file3
21072 echo Level 1
21073 tar -c -f archive.tar -g db -C dir -v --warning=no-new-dir .
21074 ) ) >"$at_stdout" 2>"$at_stderr"
21075 fi
21076 at_status=$?
21077 at_failed=false
21078 at_func_diff_devnull "$at_stderr" || at_failed=:
21079 echo >>"$at_stdout"; $as_echo "Level 0
21080 ./
21081 ./sub/
21082 ./file1
21083 ./sub/file2
21084 Level 1
21085 ./
21086 ./sub/
21087 ./file3
21088 " | \
21089   $at_diff - "$at_stdout" || at_failed=:
21090 at_func_check_status 0 $at_status "$at_srcdir/incr05.at:22"
21091
21092 $at_failed && at_func_log_failure
21093 $at_traceon; }
21094
21095               { $at_traceoff
21096 $as_echo "$at_srcdir/incr05.at:22:
21097 mkdir oldgnu
21098 (cd oldgnu
21099 TEST_TAR_FORMAT=oldgnu
21100 export TEST_TAR_FORMAT
21101 TAR_OPTIONS=\"-H oldgnu\"
21102 export TAR_OPTIONS
21103 rm -rf *
21104
21105 mkdir dir
21106 mkdir dir/sub
21107 genfile --file dir/file1
21108 genfile --file dir/sub/file2
21109
21110 echo Level 0
21111 tar -c -f archive.tar -g db -C dir -v --warning=no-new-dir .
21112
21113 genfile --file dir/file3
21114 echo Level 1
21115 tar -c -f archive.tar -g db -C dir -v --warning=no-new-dir .
21116 )"
21117 echo incr05.at:22 >"$at_check_line_file"
21118
21119 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
21120    false; }; then
21121   ( $at_traceon;
21122 mkdir oldgnu
21123 (cd oldgnu
21124 TEST_TAR_FORMAT=oldgnu
21125 export TEST_TAR_FORMAT
21126 TAR_OPTIONS="-H oldgnu"
21127 export TAR_OPTIONS
21128 rm -rf *
21129
21130 mkdir dir
21131 mkdir dir/sub
21132 genfile --file dir/file1
21133 genfile --file dir/sub/file2
21134
21135 echo Level 0
21136 tar -c -f archive.tar -g db -C dir -v --warning=no-new-dir .
21137
21138 genfile --file dir/file3
21139 echo Level 1
21140 tar -c -f archive.tar -g db -C dir -v --warning=no-new-dir .
21141 ) ) >"$at_stdout" 2>"$at_stder1"
21142   at_func_filter_trace $?
21143 else
21144   ( :;
21145 mkdir oldgnu
21146 (cd oldgnu
21147 TEST_TAR_FORMAT=oldgnu
21148 export TEST_TAR_FORMAT
21149 TAR_OPTIONS="-H oldgnu"
21150 export TAR_OPTIONS
21151 rm -rf *
21152
21153 mkdir dir
21154 mkdir dir/sub
21155 genfile --file dir/file1
21156 genfile --file dir/sub/file2
21157
21158 echo Level 0
21159 tar -c -f archive.tar -g db -C dir -v --warning=no-new-dir .
21160
21161 genfile --file dir/file3
21162 echo Level 1
21163 tar -c -f archive.tar -g db -C dir -v --warning=no-new-dir .
21164 ) ) >"$at_stdout" 2>"$at_stderr"
21165 fi
21166 at_status=$?
21167 at_failed=false
21168 at_func_diff_devnull "$at_stderr" || at_failed=:
21169 echo >>"$at_stdout"; $as_echo "Level 0
21170 ./
21171 ./sub/
21172 ./file1
21173 ./sub/file2
21174 Level 1
21175 ./
21176 ./sub/
21177 ./file3
21178 " | \
21179   $at_diff - "$at_stdout" || at_failed=:
21180 at_func_check_status 0 $at_status "$at_srcdir/incr05.at:22"
21181
21182 $at_failed && at_func_log_failure
21183 $at_traceon; }
21184
21185               { $at_traceoff
21186 $as_echo "$at_srcdir/incr05.at:22:
21187 mkdir posix
21188 (cd posix
21189 TEST_TAR_FORMAT=posix
21190 export TEST_TAR_FORMAT
21191 TAR_OPTIONS=\"-H posix\"
21192 export TAR_OPTIONS
21193 rm -rf *
21194
21195 mkdir dir
21196 mkdir dir/sub
21197 genfile --file dir/file1
21198 genfile --file dir/sub/file2
21199
21200 echo Level 0
21201 tar -c -f archive.tar -g db -C dir -v --warning=no-new-dir .
21202
21203 genfile --file dir/file3
21204 echo Level 1
21205 tar -c -f archive.tar -g db -C dir -v --warning=no-new-dir .
21206 )"
21207 echo incr05.at:22 >"$at_check_line_file"
21208
21209 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
21210    false; }; then
21211   ( $at_traceon;
21212 mkdir posix
21213 (cd posix
21214 TEST_TAR_FORMAT=posix
21215 export TEST_TAR_FORMAT
21216 TAR_OPTIONS="-H posix"
21217 export TAR_OPTIONS
21218 rm -rf *
21219
21220 mkdir dir
21221 mkdir dir/sub
21222 genfile --file dir/file1
21223 genfile --file dir/sub/file2
21224
21225 echo Level 0
21226 tar -c -f archive.tar -g db -C dir -v --warning=no-new-dir .
21227
21228 genfile --file dir/file3
21229 echo Level 1
21230 tar -c -f archive.tar -g db -C dir -v --warning=no-new-dir .
21231 ) ) >"$at_stdout" 2>"$at_stder1"
21232   at_func_filter_trace $?
21233 else
21234   ( :;
21235 mkdir posix
21236 (cd posix
21237 TEST_TAR_FORMAT=posix
21238 export TEST_TAR_FORMAT
21239 TAR_OPTIONS="-H posix"
21240 export TAR_OPTIONS
21241 rm -rf *
21242
21243 mkdir dir
21244 mkdir dir/sub
21245 genfile --file dir/file1
21246 genfile --file dir/sub/file2
21247
21248 echo Level 0
21249 tar -c -f archive.tar -g db -C dir -v --warning=no-new-dir .
21250
21251 genfile --file dir/file3
21252 echo Level 1
21253 tar -c -f archive.tar -g db -C dir -v --warning=no-new-dir .
21254 ) ) >"$at_stdout" 2>"$at_stderr"
21255 fi
21256 at_status=$?
21257 at_failed=false
21258 at_func_diff_devnull "$at_stderr" || at_failed=:
21259 echo >>"$at_stdout"; $as_echo "Level 0
21260 ./
21261 ./sub/
21262 ./file1
21263 ./sub/file2
21264 Level 1
21265 ./
21266 ./sub/
21267 ./file3
21268 " | \
21269   $at_diff - "$at_stdout" || at_failed=:
21270 at_func_check_status 0 $at_status "$at_srcdir/incr05.at:22"
21271
21272 $at_failed && at_func_log_failure
21273 $at_traceon; }
21274
21275
21276
21277
21278   $at_traceoff
21279   $at_times_p && times >"$at_times_file"
21280 ) 5>&1 2>&1 | eval $at_tee_pipe
21281 at_status=`cat "$at_status_file"`
21282 #AT_STOP_56
21283 #AT_START_57
21284 # 57. incr06.at:19: incremental dumps of nested directories
21285 at_setup_line='incr06.at:19'
21286 at_desc="incremental dumps of nested directories"
21287 $at_quiet $as_echo_n " 57: $at_desc        "
21288 at_xfail=no
21289       test -f $XFAILFILE && at_xfail=yes
21290 echo "#                             -*- compilation -*-" >> "$at_group_log"
21291 (
21292   $as_echo "57. incr06.at:19: testing ..."
21293   $at_traceon
21294
21295
21296
21297
21298
21299   { $at_traceoff
21300 $as_echo "$at_srcdir/incr06.at:22:
21301 mkdir gnu
21302 (cd gnu
21303 TEST_TAR_FORMAT=gnu
21304 export TEST_TAR_FORMAT
21305 TAR_OPTIONS=\"-H gnu\"
21306 export TAR_OPTIONS
21307 rm -rf *
21308
21309 mkdir dir
21310 mkdir dir/sub
21311 mkdir dir/sub/a
21312 mkdir dir/sub/b
21313 genfile --file dir/file1
21314 genfile --file dir/sub/file2
21315 genfile --file dir/sub/a/file3
21316
21317 echo Level 0 . sub
21318 tar -c -f archive-0.1.tar -g db.1 -C dir -v --warning=no-new-dir . sub
21319 echo Level 0 sub .
21320 tar -c -f archive-0.2.tar -g db.2 -C dir -v --warning=no-new-dir sub .
21321
21322 mkdir dir/c
21323 genfile --file dir/sub/b/file4
21324
21325 echo Level 1 . sub
21326 tar -c -f archive-1.1.tar -g db.1 -C dir -v --warning=no-new-dir . sub
21327 echo Level 1 sub .
21328 tar -c -f archive-1.2.tar -g db.2 -C dir -v --warning=no-new-dir sub .
21329 )"
21330 echo incr06.at:22 >"$at_check_line_file"
21331
21332 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
21333    false; }; then
21334   ( $at_traceon;
21335 mkdir gnu
21336 (cd gnu
21337 TEST_TAR_FORMAT=gnu
21338 export TEST_TAR_FORMAT
21339 TAR_OPTIONS="-H gnu"
21340 export TAR_OPTIONS
21341 rm -rf *
21342
21343 mkdir dir
21344 mkdir dir/sub
21345 mkdir dir/sub/a
21346 mkdir dir/sub/b
21347 genfile --file dir/file1
21348 genfile --file dir/sub/file2
21349 genfile --file dir/sub/a/file3
21350
21351 echo Level 0 . sub
21352 tar -c -f archive-0.1.tar -g db.1 -C dir -v --warning=no-new-dir . sub
21353 echo Level 0 sub .
21354 tar -c -f archive-0.2.tar -g db.2 -C dir -v --warning=no-new-dir sub .
21355
21356 mkdir dir/c
21357 genfile --file dir/sub/b/file4
21358
21359 echo Level 1 . sub
21360 tar -c -f archive-1.1.tar -g db.1 -C dir -v --warning=no-new-dir . sub
21361 echo Level 1 sub .
21362 tar -c -f archive-1.2.tar -g db.2 -C dir -v --warning=no-new-dir sub .
21363 ) ) >"$at_stdout" 2>"$at_stder1"
21364   at_func_filter_trace $?
21365 else
21366   ( :;
21367 mkdir gnu
21368 (cd gnu
21369 TEST_TAR_FORMAT=gnu
21370 export TEST_TAR_FORMAT
21371 TAR_OPTIONS="-H gnu"
21372 export TAR_OPTIONS
21373 rm -rf *
21374
21375 mkdir dir
21376 mkdir dir/sub
21377 mkdir dir/sub/a
21378 mkdir dir/sub/b
21379 genfile --file dir/file1
21380 genfile --file dir/sub/file2
21381 genfile --file dir/sub/a/file3
21382
21383 echo Level 0 . sub
21384 tar -c -f archive-0.1.tar -g db.1 -C dir -v --warning=no-new-dir . sub
21385 echo Level 0 sub .
21386 tar -c -f archive-0.2.tar -g db.2 -C dir -v --warning=no-new-dir sub .
21387
21388 mkdir dir/c
21389 genfile --file dir/sub/b/file4
21390
21391 echo Level 1 . sub
21392 tar -c -f archive-1.1.tar -g db.1 -C dir -v --warning=no-new-dir . sub
21393 echo Level 1 sub .
21394 tar -c -f archive-1.2.tar -g db.2 -C dir -v --warning=no-new-dir sub .
21395 ) ) >"$at_stdout" 2>"$at_stderr"
21396 fi
21397 at_status=$?
21398 at_failed=false
21399 at_func_diff_devnull "$at_stderr" || at_failed=:
21400 echo >>"$at_stdout"; $as_echo "Level 0 . sub
21401 ./
21402 sub/
21403 sub/a/
21404 sub/b/
21405 ./file1
21406 sub/file2
21407 sub/a/file3
21408 Level 0 sub .
21409 ./
21410 sub/
21411 sub/a/
21412 sub/b/
21413 ./file1
21414 sub/file2
21415 sub/a/file3
21416 Level 1 . sub
21417 ./
21418 ./c/
21419 sub/
21420 sub/a/
21421 sub/b/
21422 sub/b/file4
21423 Level 1 sub .
21424 ./
21425 ./c/
21426 sub/
21427 sub/a/
21428 sub/b/
21429 sub/b/file4
21430 " | \
21431   $at_diff - "$at_stdout" || at_failed=:
21432 at_func_check_status 0 $at_status "$at_srcdir/incr06.at:22"
21433
21434 $at_failed && at_func_log_failure
21435 $at_traceon; }
21436
21437               { $at_traceoff
21438 $as_echo "$at_srcdir/incr06.at:22:
21439 mkdir oldgnu
21440 (cd oldgnu
21441 TEST_TAR_FORMAT=oldgnu
21442 export TEST_TAR_FORMAT
21443 TAR_OPTIONS=\"-H oldgnu\"
21444 export TAR_OPTIONS
21445 rm -rf *
21446
21447 mkdir dir
21448 mkdir dir/sub
21449 mkdir dir/sub/a
21450 mkdir dir/sub/b
21451 genfile --file dir/file1
21452 genfile --file dir/sub/file2
21453 genfile --file dir/sub/a/file3
21454
21455 echo Level 0 . sub
21456 tar -c -f archive-0.1.tar -g db.1 -C dir -v --warning=no-new-dir . sub
21457 echo Level 0 sub .
21458 tar -c -f archive-0.2.tar -g db.2 -C dir -v --warning=no-new-dir sub .
21459
21460 mkdir dir/c
21461 genfile --file dir/sub/b/file4
21462
21463 echo Level 1 . sub
21464 tar -c -f archive-1.1.tar -g db.1 -C dir -v --warning=no-new-dir . sub
21465 echo Level 1 sub .
21466 tar -c -f archive-1.2.tar -g db.2 -C dir -v --warning=no-new-dir sub .
21467 )"
21468 echo incr06.at:22 >"$at_check_line_file"
21469
21470 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
21471    false; }; then
21472   ( $at_traceon;
21473 mkdir oldgnu
21474 (cd oldgnu
21475 TEST_TAR_FORMAT=oldgnu
21476 export TEST_TAR_FORMAT
21477 TAR_OPTIONS="-H oldgnu"
21478 export TAR_OPTIONS
21479 rm -rf *
21480
21481 mkdir dir
21482 mkdir dir/sub
21483 mkdir dir/sub/a
21484 mkdir dir/sub/b
21485 genfile --file dir/file1
21486 genfile --file dir/sub/file2
21487 genfile --file dir/sub/a/file3
21488
21489 echo Level 0 . sub
21490 tar -c -f archive-0.1.tar -g db.1 -C dir -v --warning=no-new-dir . sub
21491 echo Level 0 sub .
21492 tar -c -f archive-0.2.tar -g db.2 -C dir -v --warning=no-new-dir sub .
21493
21494 mkdir dir/c
21495 genfile --file dir/sub/b/file4
21496
21497 echo Level 1 . sub
21498 tar -c -f archive-1.1.tar -g db.1 -C dir -v --warning=no-new-dir . sub
21499 echo Level 1 sub .
21500 tar -c -f archive-1.2.tar -g db.2 -C dir -v --warning=no-new-dir sub .
21501 ) ) >"$at_stdout" 2>"$at_stder1"
21502   at_func_filter_trace $?
21503 else
21504   ( :;
21505 mkdir oldgnu
21506 (cd oldgnu
21507 TEST_TAR_FORMAT=oldgnu
21508 export TEST_TAR_FORMAT
21509 TAR_OPTIONS="-H oldgnu"
21510 export TAR_OPTIONS
21511 rm -rf *
21512
21513 mkdir dir
21514 mkdir dir/sub
21515 mkdir dir/sub/a
21516 mkdir dir/sub/b
21517 genfile --file dir/file1
21518 genfile --file dir/sub/file2
21519 genfile --file dir/sub/a/file3
21520
21521 echo Level 0 . sub
21522 tar -c -f archive-0.1.tar -g db.1 -C dir -v --warning=no-new-dir . sub
21523 echo Level 0 sub .
21524 tar -c -f archive-0.2.tar -g db.2 -C dir -v --warning=no-new-dir sub .
21525
21526 mkdir dir/c
21527 genfile --file dir/sub/b/file4
21528
21529 echo Level 1 . sub
21530 tar -c -f archive-1.1.tar -g db.1 -C dir -v --warning=no-new-dir . sub
21531 echo Level 1 sub .
21532 tar -c -f archive-1.2.tar -g db.2 -C dir -v --warning=no-new-dir sub .
21533 ) ) >"$at_stdout" 2>"$at_stderr"
21534 fi
21535 at_status=$?
21536 at_failed=false
21537 at_func_diff_devnull "$at_stderr" || at_failed=:
21538 echo >>"$at_stdout"; $as_echo "Level 0 . sub
21539 ./
21540 sub/
21541 sub/a/
21542 sub/b/
21543 ./file1
21544 sub/file2
21545 sub/a/file3
21546 Level 0 sub .
21547 ./
21548 sub/
21549 sub/a/
21550 sub/b/
21551 ./file1
21552 sub/file2
21553 sub/a/file3
21554 Level 1 . sub
21555 ./
21556 ./c/
21557 sub/
21558 sub/a/
21559 sub/b/
21560 sub/b/file4
21561 Level 1 sub .
21562 ./
21563 ./c/
21564 sub/
21565 sub/a/
21566 sub/b/
21567 sub/b/file4
21568 " | \
21569   $at_diff - "$at_stdout" || at_failed=:
21570 at_func_check_status 0 $at_status "$at_srcdir/incr06.at:22"
21571
21572 $at_failed && at_func_log_failure
21573 $at_traceon; }
21574
21575               { $at_traceoff
21576 $as_echo "$at_srcdir/incr06.at:22:
21577 mkdir posix
21578 (cd posix
21579 TEST_TAR_FORMAT=posix
21580 export TEST_TAR_FORMAT
21581 TAR_OPTIONS=\"-H posix\"
21582 export TAR_OPTIONS
21583 rm -rf *
21584
21585 mkdir dir
21586 mkdir dir/sub
21587 mkdir dir/sub/a
21588 mkdir dir/sub/b
21589 genfile --file dir/file1
21590 genfile --file dir/sub/file2
21591 genfile --file dir/sub/a/file3
21592
21593 echo Level 0 . sub
21594 tar -c -f archive-0.1.tar -g db.1 -C dir -v --warning=no-new-dir . sub
21595 echo Level 0 sub .
21596 tar -c -f archive-0.2.tar -g db.2 -C dir -v --warning=no-new-dir sub .
21597
21598 mkdir dir/c
21599 genfile --file dir/sub/b/file4
21600
21601 echo Level 1 . sub
21602 tar -c -f archive-1.1.tar -g db.1 -C dir -v --warning=no-new-dir . sub
21603 echo Level 1 sub .
21604 tar -c -f archive-1.2.tar -g db.2 -C dir -v --warning=no-new-dir sub .
21605 )"
21606 echo incr06.at:22 >"$at_check_line_file"
21607
21608 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
21609    false; }; then
21610   ( $at_traceon;
21611 mkdir posix
21612 (cd posix
21613 TEST_TAR_FORMAT=posix
21614 export TEST_TAR_FORMAT
21615 TAR_OPTIONS="-H posix"
21616 export TAR_OPTIONS
21617 rm -rf *
21618
21619 mkdir dir
21620 mkdir dir/sub
21621 mkdir dir/sub/a
21622 mkdir dir/sub/b
21623 genfile --file dir/file1
21624 genfile --file dir/sub/file2
21625 genfile --file dir/sub/a/file3
21626
21627 echo Level 0 . sub
21628 tar -c -f archive-0.1.tar -g db.1 -C dir -v --warning=no-new-dir . sub
21629 echo Level 0 sub .
21630 tar -c -f archive-0.2.tar -g db.2 -C dir -v --warning=no-new-dir sub .
21631
21632 mkdir dir/c
21633 genfile --file dir/sub/b/file4
21634
21635 echo Level 1 . sub
21636 tar -c -f archive-1.1.tar -g db.1 -C dir -v --warning=no-new-dir . sub
21637 echo Level 1 sub .
21638 tar -c -f archive-1.2.tar -g db.2 -C dir -v --warning=no-new-dir sub .
21639 ) ) >"$at_stdout" 2>"$at_stder1"
21640   at_func_filter_trace $?
21641 else
21642   ( :;
21643 mkdir posix
21644 (cd posix
21645 TEST_TAR_FORMAT=posix
21646 export TEST_TAR_FORMAT
21647 TAR_OPTIONS="-H posix"
21648 export TAR_OPTIONS
21649 rm -rf *
21650
21651 mkdir dir
21652 mkdir dir/sub
21653 mkdir dir/sub/a
21654 mkdir dir/sub/b
21655 genfile --file dir/file1
21656 genfile --file dir/sub/file2
21657 genfile --file dir/sub/a/file3
21658
21659 echo Level 0 . sub
21660 tar -c -f archive-0.1.tar -g db.1 -C dir -v --warning=no-new-dir . sub
21661 echo Level 0 sub .
21662 tar -c -f archive-0.2.tar -g db.2 -C dir -v --warning=no-new-dir sub .
21663
21664 mkdir dir/c
21665 genfile --file dir/sub/b/file4
21666
21667 echo Level 1 . sub
21668 tar -c -f archive-1.1.tar -g db.1 -C dir -v --warning=no-new-dir . sub
21669 echo Level 1 sub .
21670 tar -c -f archive-1.2.tar -g db.2 -C dir -v --warning=no-new-dir sub .
21671 ) ) >"$at_stdout" 2>"$at_stderr"
21672 fi
21673 at_status=$?
21674 at_failed=false
21675 at_func_diff_devnull "$at_stderr" || at_failed=:
21676 echo >>"$at_stdout"; $as_echo "Level 0 . sub
21677 ./
21678 sub/
21679 sub/a/
21680 sub/b/
21681 ./file1
21682 sub/file2
21683 sub/a/file3
21684 Level 0 sub .
21685 ./
21686 sub/
21687 sub/a/
21688 sub/b/
21689 ./file1
21690 sub/file2
21691 sub/a/file3
21692 Level 1 . sub
21693 ./
21694 ./c/
21695 sub/
21696 sub/a/
21697 sub/b/
21698 sub/b/file4
21699 Level 1 sub .
21700 ./
21701 ./c/
21702 sub/
21703 sub/a/
21704 sub/b/
21705 sub/b/file4
21706 " | \
21707   $at_diff - "$at_stdout" || at_failed=:
21708 at_func_check_status 0 $at_status "$at_srcdir/incr06.at:22"
21709
21710 $at_failed && at_func_log_failure
21711 $at_traceon; }
21712
21713
21714
21715
21716   $at_traceoff
21717   $at_times_p && times >"$at_times_file"
21718 ) 5>&1 2>&1 | eval $at_tee_pipe
21719 at_status=`cat "$at_status_file"`
21720 #AT_STOP_57
21721 #AT_START_58
21722 # 58. filerem01.at:34: file removed as we read it (ca. 22 seconds)
21723 at_setup_line='filerem01.at:34'
21724 at_desc="file removed as we read it (ca. 22 seconds)"
21725 $at_quiet $as_echo_n " 58: $at_desc    "
21726 at_xfail=no
21727       test -f $XFAILFILE && at_xfail=yes
21728 echo "#                             -*- compilation -*-" >> "$at_group_log"
21729 (
21730   $as_echo "58. filerem01.at:34: testing ..."
21731   $at_traceon
21732
21733
21734
21735
21736
21737   { $at_traceoff
21738 $as_echo "$at_srcdir/filerem01.at:37:
21739 mkdir gnu
21740 (cd gnu
21741 TEST_TAR_FORMAT=gnu
21742 export TEST_TAR_FORMAT
21743 TAR_OPTIONS=\"-H gnu\"
21744 export TAR_OPTIONS
21745 rm -rf *
21746
21747 mkdir dir
21748 mkdir dir/sub
21749 genfile --file dir/file1
21750 genfile --file dir/sub/file2
21751
21752 genfile --run --checkpoint=3 --unlink dir/file1 -- \\
21753        tar --blocking-factor=1 --checkpoint=1 --checkpoint-action='sleep=1' \\
21754        --checkpoint-action='echo' -c -f archive.tar \\
21755        --listed-incremental db -v dir >/dev/null
21756 )"
21757 echo filerem01.at:37 >"$at_check_line_file"
21758
21759 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
21760    false; }; then
21761   ( $at_traceon;
21762 mkdir gnu
21763 (cd gnu
21764 TEST_TAR_FORMAT=gnu
21765 export TEST_TAR_FORMAT
21766 TAR_OPTIONS="-H gnu"
21767 export TAR_OPTIONS
21768 rm -rf *
21769
21770 mkdir dir
21771 mkdir dir/sub
21772 genfile --file dir/file1
21773 genfile --file dir/sub/file2
21774
21775 genfile --run --checkpoint=3 --unlink dir/file1 -- \
21776        tar --blocking-factor=1 --checkpoint=1 --checkpoint-action='sleep=1' \
21777        --checkpoint-action='echo' -c -f archive.tar \
21778        --listed-incremental db -v dir >/dev/null
21779 ) ) >"$at_stdout" 2>"$at_stder1"
21780   at_func_filter_trace $?
21781 else
21782   ( :;
21783 mkdir gnu
21784 (cd gnu
21785 TEST_TAR_FORMAT=gnu
21786 export TEST_TAR_FORMAT
21787 TAR_OPTIONS="-H gnu"
21788 export TAR_OPTIONS
21789 rm -rf *
21790
21791 mkdir dir
21792 mkdir dir/sub
21793 genfile --file dir/file1
21794 genfile --file dir/sub/file2
21795
21796 genfile --run --checkpoint=3 --unlink dir/file1 -- \
21797        tar --blocking-factor=1 --checkpoint=1 --checkpoint-action='sleep=1' \
21798        --checkpoint-action='echo' -c -f archive.tar \
21799        --listed-incremental db -v dir >/dev/null
21800 ) ) >"$at_stdout" 2>"$at_stderr"
21801 fi
21802 at_status=$?
21803 at_failed=false
21804 echo >>"$at_stderr"; $as_echo "tar: dir: Directory is new
21805 tar: dir/sub: Directory is new
21806 tar: dir/file1: File removed before we read it
21807 " | \
21808   $at_diff - "$at_stderr" || at_failed=:
21809 echo stdout:; cat "$at_stdout"
21810 at_func_check_status 1 $at_status "$at_srcdir/filerem01.at:37"
21811
21812 $at_failed && at_func_log_failure
21813 $at_traceon; }
21814
21815               { $at_traceoff
21816 $as_echo "$at_srcdir/filerem01.at:37:
21817 mkdir posix
21818 (cd posix
21819 TEST_TAR_FORMAT=posix
21820 export TEST_TAR_FORMAT
21821 TAR_OPTIONS=\"-H posix\"
21822 export TAR_OPTIONS
21823 rm -rf *
21824
21825 mkdir dir
21826 mkdir dir/sub
21827 genfile --file dir/file1
21828 genfile --file dir/sub/file2
21829
21830 genfile --run --checkpoint=3 --unlink dir/file1 -- \\
21831        tar --blocking-factor=1 --checkpoint=1 --checkpoint-action='sleep=1' \\
21832        --checkpoint-action='echo' -c -f archive.tar \\
21833        --listed-incremental db -v dir >/dev/null
21834 )"
21835 echo filerem01.at:37 >"$at_check_line_file"
21836
21837 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
21838    false; }; then
21839   ( $at_traceon;
21840 mkdir posix
21841 (cd posix
21842 TEST_TAR_FORMAT=posix
21843 export TEST_TAR_FORMAT
21844 TAR_OPTIONS="-H posix"
21845 export TAR_OPTIONS
21846 rm -rf *
21847
21848 mkdir dir
21849 mkdir dir/sub
21850 genfile --file dir/file1
21851 genfile --file dir/sub/file2
21852
21853 genfile --run --checkpoint=3 --unlink dir/file1 -- \
21854        tar --blocking-factor=1 --checkpoint=1 --checkpoint-action='sleep=1' \
21855        --checkpoint-action='echo' -c -f archive.tar \
21856        --listed-incremental db -v dir >/dev/null
21857 ) ) >"$at_stdout" 2>"$at_stder1"
21858   at_func_filter_trace $?
21859 else
21860   ( :;
21861 mkdir posix
21862 (cd posix
21863 TEST_TAR_FORMAT=posix
21864 export TEST_TAR_FORMAT
21865 TAR_OPTIONS="-H posix"
21866 export TAR_OPTIONS
21867 rm -rf *
21868
21869 mkdir dir
21870 mkdir dir/sub
21871 genfile --file dir/file1
21872 genfile --file dir/sub/file2
21873
21874 genfile --run --checkpoint=3 --unlink dir/file1 -- \
21875        tar --blocking-factor=1 --checkpoint=1 --checkpoint-action='sleep=1' \
21876        --checkpoint-action='echo' -c -f archive.tar \
21877        --listed-incremental db -v dir >/dev/null
21878 ) ) >"$at_stdout" 2>"$at_stderr"
21879 fi
21880 at_status=$?
21881 at_failed=false
21882 echo >>"$at_stderr"; $as_echo "tar: dir: Directory is new
21883 tar: dir/sub: Directory is new
21884 tar: dir/file1: File removed before we read it
21885 " | \
21886   $at_diff - "$at_stderr" || at_failed=:
21887 echo stdout:; cat "$at_stdout"
21888 at_func_check_status 1 $at_status "$at_srcdir/filerem01.at:37"
21889
21890 $at_failed && at_func_log_failure
21891 $at_traceon; }
21892
21893
21894
21895
21896 # Timing information:
21897 #
21898 # For -Hgnu the above command line takes about 8 seconds to execute and
21899 # produces:
21900 #
21901 # tar: dir: Directory is new
21902 # tar: dir/sub: Directory is new
21903 # dir/
21904 # tar: Write checkpoint 1
21905 # tar: Write checkpoint 2
21906 # dir/sub/
21907 # tar: Write checkpoint 3
21908 # tar: Write checkpoint 4
21909 # dir/file1
21910 # tar: Write checkpoint 5
21911 # dir/sub/file2
21912 # tar: Write checkpoint 6
21913 # tar: Write checkpoint 7
21914 # tar: Write checkpoint 8
21915 #
21916 # For -Hposix the above command line takes about 14 seconds to execute and
21917 # produces:
21918 #
21919 # ./tar: dir: Directory is new
21920 # ./tar: dir/sub: Directory is new
21921 # dir/
21922 # ./tar: Write checkpoint 1
21923 # ./tar: Write checkpoint 2
21924 # ./tar: Write checkpoint 3
21925 # dir/sub/
21926 # ./tar: Write checkpoint 4
21927 # ./tar: Write checkpoint 5
21928 # ./tar: Write checkpoint 6
21929 # dir/file1
21930 # ./tar: Write checkpoint 7
21931 # ./tar: Write checkpoint 8
21932 # ./tar: Write checkpoint 9
21933 # dir/sub/file2
21934 # ./tar: Write checkpoint 10
21935 # ./tar: Write checkpoint 11
21936 # ./tar: Write checkpoint 12
21937 # ./tar: Write checkpoint 13
21938 # ./tar: Write checkpoint 14
21939
21940
21941   $at_traceoff
21942   $at_times_p && times >"$at_times_file"
21943 ) 5>&1 2>&1 | eval $at_tee_pipe
21944 at_status=`cat "$at_status_file"`
21945 #AT_STOP_58
21946 #AT_START_59
21947 # 59. filerem02.at:24: toplevel file removed (ca. 24 seconds)
21948 at_setup_line='filerem02.at:24'
21949 at_desc="toplevel file removed (ca. 24 seconds)"
21950 $at_quiet $as_echo_n " 59: $at_desc         "
21951 at_xfail=no
21952       test -f $XFAILFILE && at_xfail=yes
21953 echo "#                             -*- compilation -*-" >> "$at_group_log"
21954 (
21955   $as_echo "59. filerem02.at:24: testing ..."
21956   $at_traceon
21957
21958
21959
21960
21961
21962   { $at_traceoff
21963 $as_echo "$at_srcdir/filerem02.at:27:
21964 mkdir gnu
21965 (cd gnu
21966 TEST_TAR_FORMAT=gnu
21967 export TEST_TAR_FORMAT
21968 TAR_OPTIONS=\"-H gnu\"
21969 export TAR_OPTIONS
21970 rm -rf *
21971
21972 mkdir dir
21973 mkdir dir/sub
21974 genfile --file dir/file1
21975 genfile --file dir/sub/file2
21976 mkdir dir2
21977 genfile --file dir2/file1
21978
21979 genfile --run --checkpoint=3 --exec 'rm -rf dir2' -- \\
21980        tar --blocking-factor=1 --checkpoint=1 --checkpoint-action='sleep=1' \\
21981        --checkpoint-action='echo' -c -f archive.tar \\
21982        --listed-incremental db -v --warning=no-new-dir dir dir2 >/dev/null
21983 )"
21984 echo filerem02.at:27 >"$at_check_line_file"
21985
21986 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
21987    false; }; then
21988   ( $at_traceon;
21989 mkdir gnu
21990 (cd gnu
21991 TEST_TAR_FORMAT=gnu
21992 export TEST_TAR_FORMAT
21993 TAR_OPTIONS="-H gnu"
21994 export TAR_OPTIONS
21995 rm -rf *
21996
21997 mkdir dir
21998 mkdir dir/sub
21999 genfile --file dir/file1
22000 genfile --file dir/sub/file2
22001 mkdir dir2
22002 genfile --file dir2/file1
22003
22004 genfile --run --checkpoint=3 --exec 'rm -rf dir2' -- \
22005        tar --blocking-factor=1 --checkpoint=1 --checkpoint-action='sleep=1' \
22006        --checkpoint-action='echo' -c -f archive.tar \
22007        --listed-incremental db -v --warning=no-new-dir dir dir2 >/dev/null
22008 ) ) >"$at_stdout" 2>"$at_stder1"
22009   at_func_filter_trace $?
22010 else
22011   ( :;
22012 mkdir gnu
22013 (cd gnu
22014 TEST_TAR_FORMAT=gnu
22015 export TEST_TAR_FORMAT
22016 TAR_OPTIONS="-H gnu"
22017 export TAR_OPTIONS
22018 rm -rf *
22019
22020 mkdir dir
22021 mkdir dir/sub
22022 genfile --file dir/file1
22023 genfile --file dir/sub/file2
22024 mkdir dir2
22025 genfile --file dir2/file1
22026
22027 genfile --run --checkpoint=3 --exec 'rm -rf dir2' -- \
22028        tar --blocking-factor=1 --checkpoint=1 --checkpoint-action='sleep=1' \
22029        --checkpoint-action='echo' -c -f archive.tar \
22030        --listed-incremental db -v --warning=no-new-dir dir dir2 >/dev/null
22031 ) ) >"$at_stdout" 2>"$at_stderr"
22032 fi
22033 at_status=$?
22034 at_failed=false
22035 echo stderr:; cat "$at_stderr"
22036 echo stdout:; cat "$at_stdout"
22037 at_func_check_status 2 $at_status "$at_srcdir/filerem02.at:27"
22038
22039 $at_failed && at_func_log_failure
22040 $at_traceon; }
22041
22042               { $at_traceoff
22043 $as_echo "$at_srcdir/filerem02.at:27:
22044 mkdir posix
22045 (cd posix
22046 TEST_TAR_FORMAT=posix
22047 export TEST_TAR_FORMAT
22048 TAR_OPTIONS=\"-H posix\"
22049 export TAR_OPTIONS
22050 rm -rf *
22051
22052 mkdir dir
22053 mkdir dir/sub
22054 genfile --file dir/file1
22055 genfile --file dir/sub/file2
22056 mkdir dir2
22057 genfile --file dir2/file1
22058
22059 genfile --run --checkpoint=3 --exec 'rm -rf dir2' -- \\
22060        tar --blocking-factor=1 --checkpoint=1 --checkpoint-action='sleep=1' \\
22061        --checkpoint-action='echo' -c -f archive.tar \\
22062        --listed-incremental db -v --warning=no-new-dir dir dir2 >/dev/null
22063 )"
22064 echo filerem02.at:27 >"$at_check_line_file"
22065
22066 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
22067    false; }; then
22068   ( $at_traceon;
22069 mkdir posix
22070 (cd posix
22071 TEST_TAR_FORMAT=posix
22072 export TEST_TAR_FORMAT
22073 TAR_OPTIONS="-H posix"
22074 export TAR_OPTIONS
22075 rm -rf *
22076
22077 mkdir dir
22078 mkdir dir/sub
22079 genfile --file dir/file1
22080 genfile --file dir/sub/file2
22081 mkdir dir2
22082 genfile --file dir2/file1
22083
22084 genfile --run --checkpoint=3 --exec 'rm -rf dir2' -- \
22085        tar --blocking-factor=1 --checkpoint=1 --checkpoint-action='sleep=1' \
22086        --checkpoint-action='echo' -c -f archive.tar \
22087        --listed-incremental db -v --warning=no-new-dir dir dir2 >/dev/null
22088 ) ) >"$at_stdout" 2>"$at_stder1"
22089   at_func_filter_trace $?
22090 else
22091   ( :;
22092 mkdir posix
22093 (cd posix
22094 TEST_TAR_FORMAT=posix
22095 export TEST_TAR_FORMAT
22096 TAR_OPTIONS="-H posix"
22097 export TAR_OPTIONS
22098 rm -rf *
22099
22100 mkdir dir
22101 mkdir dir/sub
22102 genfile --file dir/file1
22103 genfile --file dir/sub/file2
22104 mkdir dir2
22105 genfile --file dir2/file1
22106
22107 genfile --run --checkpoint=3 --exec 'rm -rf dir2' -- \
22108        tar --blocking-factor=1 --checkpoint=1 --checkpoint-action='sleep=1' \
22109        --checkpoint-action='echo' -c -f archive.tar \
22110        --listed-incremental db -v --warning=no-new-dir dir dir2 >/dev/null
22111 ) ) >"$at_stdout" 2>"$at_stderr"
22112 fi
22113 at_status=$?
22114 at_failed=false
22115 echo stderr:; cat "$at_stderr"
22116 echo stdout:; cat "$at_stdout"
22117 at_func_check_status 2 $at_status "$at_srcdir/filerem02.at:27"
22118
22119 $at_failed && at_func_log_failure
22120 $at_traceon; }
22121
22122
22123
22124
22125 # Ignore stdout and stderr because their contents depend on
22126 # the file system implementation.
22127
22128 # Timing information: see filerem01.at
22129
22130   $at_traceoff
22131   $at_times_p && times >"$at_times_file"
22132 ) 5>&1 2>&1 | eval $at_tee_pipe
22133 at_status=`cat "$at_status_file"`
22134 #AT_STOP_59
22135 #AT_START_60
22136 # 60. rename01.at:24: renamed dirs in incrementals
22137 at_setup_line='rename01.at:24'
22138 at_desc="renamed dirs in incrementals"
22139 $at_quiet $as_echo_n " 60: $at_desc                   "
22140 at_xfail=no
22141       test -f $XFAILFILE && at_xfail=yes
22142 echo "#                             -*- compilation -*-" >> "$at_group_log"
22143 (
22144   $as_echo "60. rename01.at:24: testing ..."
22145   $at_traceon
22146
22147
22148
22149
22150
22151   { $at_traceoff
22152 $as_echo "$at_srcdir/rename01.at:27:
22153 mkdir gnu
22154 (cd gnu
22155 TEST_TAR_FORMAT=gnu
22156 export TEST_TAR_FORMAT
22157 TAR_OPTIONS=\"-H gnu\"
22158 export TAR_OPTIONS
22159 rm -rf *
22160
22161
22162 test -z "`sort < /dev/null 2>&1`" || exit 77
22163
22164
22165 mkdir foo
22166 genfile --file foo/file1
22167 genfile --file foo/file2
22168 mkdir foo/bar
22169 genfile --file foo/bar/file
22170
22171 echo \"Creating base archive\"
22172 tar -g incr -cf arch.1 -v foo
22173
22174 mv foo/bar foo/baz
22175
22176 echo \"Creating incremental archive\"
22177 tar -g incr -cf arch.2 -v foo
22178
22179 mv foo old
22180
22181 tar xfg arch.1 /dev/null
22182
22183 echo \"Begin directory listing 1\"
22184 find foo | sort
22185 echo \"End directory listing 1\"
22186
22187 tar xfg arch.2 /dev/null
22188 echo Begin directory listing 2
22189 find foo | sort
22190 echo End directory listing 2
22191 )"
22192 echo rename01.at:27 >"$at_check_line_file"
22193
22194 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
22195    false; }; then
22196   ( $at_traceon;
22197 mkdir gnu
22198 (cd gnu
22199 TEST_TAR_FORMAT=gnu
22200 export TEST_TAR_FORMAT
22201 TAR_OPTIONS="-H gnu"
22202 export TAR_OPTIONS
22203 rm -rf *
22204
22205
22206 test -z "`sort < /dev/null 2>&1`" || exit 77
22207
22208
22209 mkdir foo
22210 genfile --file foo/file1
22211 genfile --file foo/file2
22212 mkdir foo/bar
22213 genfile --file foo/bar/file
22214
22215 echo "Creating base archive"
22216 tar -g incr -cf arch.1 -v foo
22217
22218 mv foo/bar foo/baz
22219
22220 echo "Creating incremental archive"
22221 tar -g incr -cf arch.2 -v foo
22222
22223 mv foo old
22224
22225 tar xfg arch.1 /dev/null
22226
22227 echo "Begin directory listing 1"
22228 find foo | sort
22229 echo "End directory listing 1"
22230
22231 tar xfg arch.2 /dev/null
22232 echo Begin directory listing 2
22233 find foo | sort
22234 echo End directory listing 2
22235 ) ) >"$at_stdout" 2>"$at_stder1"
22236   at_func_filter_trace $?
22237 else
22238   ( :;
22239 mkdir gnu
22240 (cd gnu
22241 TEST_TAR_FORMAT=gnu
22242 export TEST_TAR_FORMAT
22243 TAR_OPTIONS="-H gnu"
22244 export TAR_OPTIONS
22245 rm -rf *
22246
22247
22248 test -z "`sort < /dev/null 2>&1`" || exit 77
22249
22250
22251 mkdir foo
22252 genfile --file foo/file1
22253 genfile --file foo/file2
22254 mkdir foo/bar
22255 genfile --file foo/bar/file
22256
22257 echo "Creating base archive"
22258 tar -g incr -cf arch.1 -v foo
22259
22260 mv foo/bar foo/baz
22261
22262 echo "Creating incremental archive"
22263 tar -g incr -cf arch.2 -v foo
22264
22265 mv foo old
22266
22267 tar xfg arch.1 /dev/null
22268
22269 echo "Begin directory listing 1"
22270 find foo | sort
22271 echo "End directory listing 1"
22272
22273 tar xfg arch.2 /dev/null
22274 echo Begin directory listing 2
22275 find foo | sort
22276 echo End directory listing 2
22277 ) ) >"$at_stdout" 2>"$at_stderr"
22278 fi
22279 at_status=$?
22280 at_failed=false
22281 echo >>"$at_stderr"; $as_echo "tar: foo: Directory is new
22282 tar: foo/bar: Directory is new
22283 tar: foo/baz: Directory has been renamed from \`foo/bar'
22284 " | \
22285   $at_diff - "$at_stderr" || at_failed=:
22286 echo >>"$at_stdout"; $as_echo "Creating base archive
22287 foo/
22288 foo/bar/
22289 foo/file1
22290 foo/file2
22291 foo/bar/file
22292 Creating incremental archive
22293 foo/
22294 foo/baz/
22295 Begin directory listing 1
22296 foo
22297 foo/bar
22298 foo/bar/file
22299 foo/file1
22300 foo/file2
22301 End directory listing 1
22302 Begin directory listing 2
22303 foo
22304 foo/baz
22305 foo/baz/file
22306 foo/file1
22307 foo/file2
22308 End directory listing 2
22309 " | \
22310   $at_diff - "$at_stdout" || at_failed=:
22311 at_func_check_status 0 $at_status "$at_srcdir/rename01.at:27"
22312
22313 $at_failed && at_func_log_failure
22314 $at_traceon; }
22315
22316               { $at_traceoff
22317 $as_echo "$at_srcdir/rename01.at:27:
22318 mkdir oldgnu
22319 (cd oldgnu
22320 TEST_TAR_FORMAT=oldgnu
22321 export TEST_TAR_FORMAT
22322 TAR_OPTIONS=\"-H oldgnu\"
22323 export TAR_OPTIONS
22324 rm -rf *
22325
22326
22327 test -z "`sort < /dev/null 2>&1`" || exit 77
22328
22329
22330 mkdir foo
22331 genfile --file foo/file1
22332 genfile --file foo/file2
22333 mkdir foo/bar
22334 genfile --file foo/bar/file
22335
22336 echo \"Creating base archive\"
22337 tar -g incr -cf arch.1 -v foo
22338
22339 mv foo/bar foo/baz
22340
22341 echo \"Creating incremental archive\"
22342 tar -g incr -cf arch.2 -v foo
22343
22344 mv foo old
22345
22346 tar xfg arch.1 /dev/null
22347
22348 echo \"Begin directory listing 1\"
22349 find foo | sort
22350 echo \"End directory listing 1\"
22351
22352 tar xfg arch.2 /dev/null
22353 echo Begin directory listing 2
22354 find foo | sort
22355 echo End directory listing 2
22356 )"
22357 echo rename01.at:27 >"$at_check_line_file"
22358
22359 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
22360    false; }; then
22361   ( $at_traceon;
22362 mkdir oldgnu
22363 (cd oldgnu
22364 TEST_TAR_FORMAT=oldgnu
22365 export TEST_TAR_FORMAT
22366 TAR_OPTIONS="-H oldgnu"
22367 export TAR_OPTIONS
22368 rm -rf *
22369
22370
22371 test -z "`sort < /dev/null 2>&1`" || exit 77
22372
22373
22374 mkdir foo
22375 genfile --file foo/file1
22376 genfile --file foo/file2
22377 mkdir foo/bar
22378 genfile --file foo/bar/file
22379
22380 echo "Creating base archive"
22381 tar -g incr -cf arch.1 -v foo
22382
22383 mv foo/bar foo/baz
22384
22385 echo "Creating incremental archive"
22386 tar -g incr -cf arch.2 -v foo
22387
22388 mv foo old
22389
22390 tar xfg arch.1 /dev/null
22391
22392 echo "Begin directory listing 1"
22393 find foo | sort
22394 echo "End directory listing 1"
22395
22396 tar xfg arch.2 /dev/null
22397 echo Begin directory listing 2
22398 find foo | sort
22399 echo End directory listing 2
22400 ) ) >"$at_stdout" 2>"$at_stder1"
22401   at_func_filter_trace $?
22402 else
22403   ( :;
22404 mkdir oldgnu
22405 (cd oldgnu
22406 TEST_TAR_FORMAT=oldgnu
22407 export TEST_TAR_FORMAT
22408 TAR_OPTIONS="-H oldgnu"
22409 export TAR_OPTIONS
22410 rm -rf *
22411
22412
22413 test -z "`sort < /dev/null 2>&1`" || exit 77
22414
22415
22416 mkdir foo
22417 genfile --file foo/file1
22418 genfile --file foo/file2
22419 mkdir foo/bar
22420 genfile --file foo/bar/file
22421
22422 echo "Creating base archive"
22423 tar -g incr -cf arch.1 -v foo
22424
22425 mv foo/bar foo/baz
22426
22427 echo "Creating incremental archive"
22428 tar -g incr -cf arch.2 -v foo
22429
22430 mv foo old
22431
22432 tar xfg arch.1 /dev/null
22433
22434 echo "Begin directory listing 1"
22435 find foo | sort
22436 echo "End directory listing 1"
22437
22438 tar xfg arch.2 /dev/null
22439 echo Begin directory listing 2
22440 find foo | sort
22441 echo End directory listing 2
22442 ) ) >"$at_stdout" 2>"$at_stderr"
22443 fi
22444 at_status=$?
22445 at_failed=false
22446 echo >>"$at_stderr"; $as_echo "tar: foo: Directory is new
22447 tar: foo/bar: Directory is new
22448 tar: foo/baz: Directory has been renamed from \`foo/bar'
22449 " | \
22450   $at_diff - "$at_stderr" || at_failed=:
22451 echo >>"$at_stdout"; $as_echo "Creating base archive
22452 foo/
22453 foo/bar/
22454 foo/file1
22455 foo/file2
22456 foo/bar/file
22457 Creating incremental archive
22458 foo/
22459 foo/baz/
22460 Begin directory listing 1
22461 foo
22462 foo/bar
22463 foo/bar/file
22464 foo/file1
22465 foo/file2
22466 End directory listing 1
22467 Begin directory listing 2
22468 foo
22469 foo/baz
22470 foo/baz/file
22471 foo/file1
22472 foo/file2
22473 End directory listing 2
22474 " | \
22475   $at_diff - "$at_stdout" || at_failed=:
22476 at_func_check_status 0 $at_status "$at_srcdir/rename01.at:27"
22477
22478 $at_failed && at_func_log_failure
22479 $at_traceon; }
22480
22481               { $at_traceoff
22482 $as_echo "$at_srcdir/rename01.at:27:
22483 mkdir posix
22484 (cd posix
22485 TEST_TAR_FORMAT=posix
22486 export TEST_TAR_FORMAT
22487 TAR_OPTIONS=\"-H posix\"
22488 export TAR_OPTIONS
22489 rm -rf *
22490
22491
22492 test -z "`sort < /dev/null 2>&1`" || exit 77
22493
22494
22495 mkdir foo
22496 genfile --file foo/file1
22497 genfile --file foo/file2
22498 mkdir foo/bar
22499 genfile --file foo/bar/file
22500
22501 echo \"Creating base archive\"
22502 tar -g incr -cf arch.1 -v foo
22503
22504 mv foo/bar foo/baz
22505
22506 echo \"Creating incremental archive\"
22507 tar -g incr -cf arch.2 -v foo
22508
22509 mv foo old
22510
22511 tar xfg arch.1 /dev/null
22512
22513 echo \"Begin directory listing 1\"
22514 find foo | sort
22515 echo \"End directory listing 1\"
22516
22517 tar xfg arch.2 /dev/null
22518 echo Begin directory listing 2
22519 find foo | sort
22520 echo End directory listing 2
22521 )"
22522 echo rename01.at:27 >"$at_check_line_file"
22523
22524 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
22525    false; }; then
22526   ( $at_traceon;
22527 mkdir posix
22528 (cd posix
22529 TEST_TAR_FORMAT=posix
22530 export TEST_TAR_FORMAT
22531 TAR_OPTIONS="-H posix"
22532 export TAR_OPTIONS
22533 rm -rf *
22534
22535
22536 test -z "`sort < /dev/null 2>&1`" || exit 77
22537
22538
22539 mkdir foo
22540 genfile --file foo/file1
22541 genfile --file foo/file2
22542 mkdir foo/bar
22543 genfile --file foo/bar/file
22544
22545 echo "Creating base archive"
22546 tar -g incr -cf arch.1 -v foo
22547
22548 mv foo/bar foo/baz
22549
22550 echo "Creating incremental archive"
22551 tar -g incr -cf arch.2 -v foo
22552
22553 mv foo old
22554
22555 tar xfg arch.1 /dev/null
22556
22557 echo "Begin directory listing 1"
22558 find foo | sort
22559 echo "End directory listing 1"
22560
22561 tar xfg arch.2 /dev/null
22562 echo Begin directory listing 2
22563 find foo | sort
22564 echo End directory listing 2
22565 ) ) >"$at_stdout" 2>"$at_stder1"
22566   at_func_filter_trace $?
22567 else
22568   ( :;
22569 mkdir posix
22570 (cd posix
22571 TEST_TAR_FORMAT=posix
22572 export TEST_TAR_FORMAT
22573 TAR_OPTIONS="-H posix"
22574 export TAR_OPTIONS
22575 rm -rf *
22576
22577
22578 test -z "`sort < /dev/null 2>&1`" || exit 77
22579
22580
22581 mkdir foo
22582 genfile --file foo/file1
22583 genfile --file foo/file2
22584 mkdir foo/bar
22585 genfile --file foo/bar/file
22586
22587 echo "Creating base archive"
22588 tar -g incr -cf arch.1 -v foo
22589
22590 mv foo/bar foo/baz
22591
22592 echo "Creating incremental archive"
22593 tar -g incr -cf arch.2 -v foo
22594
22595 mv foo old
22596
22597 tar xfg arch.1 /dev/null
22598
22599 echo "Begin directory listing 1"
22600 find foo | sort
22601 echo "End directory listing 1"
22602
22603 tar xfg arch.2 /dev/null
22604 echo Begin directory listing 2
22605 find foo | sort
22606 echo End directory listing 2
22607 ) ) >"$at_stdout" 2>"$at_stderr"
22608 fi
22609 at_status=$?
22610 at_failed=false
22611 echo >>"$at_stderr"; $as_echo "tar: foo: Directory is new
22612 tar: foo/bar: Directory is new
22613 tar: foo/baz: Directory has been renamed from \`foo/bar'
22614 " | \
22615   $at_diff - "$at_stderr" || at_failed=:
22616 echo >>"$at_stdout"; $as_echo "Creating base archive
22617 foo/
22618 foo/bar/
22619 foo/file1
22620 foo/file2
22621 foo/bar/file
22622 Creating incremental archive
22623 foo/
22624 foo/baz/
22625 Begin directory listing 1
22626 foo
22627 foo/bar
22628 foo/bar/file
22629 foo/file1
22630 foo/file2
22631 End directory listing 1
22632 Begin directory listing 2
22633 foo
22634 foo/baz
22635 foo/baz/file
22636 foo/file1
22637 foo/file2
22638 End directory listing 2
22639 " | \
22640   $at_diff - "$at_stdout" || at_failed=:
22641 at_func_check_status 0 $at_status "$at_srcdir/rename01.at:27"
22642
22643 $at_failed && at_func_log_failure
22644 $at_traceon; }
22645
22646
22647
22648
22649   $at_traceoff
22650   $at_times_p && times >"$at_times_file"
22651 ) 5>&1 2>&1 | eval $at_tee_pipe
22652 at_status=`cat "$at_status_file"`
22653 #AT_STOP_60
22654 #AT_START_61
22655 # 61. rename02.at:24: move between hierarchies
22656 at_setup_line='rename02.at:24'
22657 at_desc="move between hierarchies"
22658 $at_quiet $as_echo_n " 61: $at_desc                       "
22659 at_xfail=no
22660       test -f $XFAILFILE && at_xfail=yes
22661 echo "#                             -*- compilation -*-" >> "$at_group_log"
22662 (
22663   $as_echo "61. rename02.at:24: testing ..."
22664   $at_traceon
22665
22666
22667
22668
22669
22670   { $at_traceoff
22671 $as_echo "$at_srcdir/rename02.at:27:
22672 mkdir gnu
22673 (cd gnu
22674 TEST_TAR_FORMAT=gnu
22675 export TEST_TAR_FORMAT
22676 TAR_OPTIONS=\"-H gnu\"
22677 export TAR_OPTIONS
22678 rm -rf *
22679
22680
22681 test -z "`sort < /dev/null 2>&1`" || exit 77
22682
22683 mkdir foo
22684 genfile --file foo/file1
22685 genfile --file foo/file2
22686 mkdir foo/bar
22687 genfile --file foo/bar/file.r
22688 mkdir foo/bar/baz
22689 genfile --file foo/bar/baz/file.z
22690
22691 sleep 1
22692
22693 echo \"Creating base archive\"
22694 tar -g incr -cf arch.1 -v foo
22695
22696 mv foo/bar/baz foo
22697
22698 echo \"Creating incremental archive\"
22699 tar -g incr -cf arch.2 -v foo
22700
22701 mv foo old
22702
22703 tar xfg arch.1 /dev/null --warning=no-timestamp 2>tmperr
22704 sort tmperr >&2
22705
22706 echo \"Begin directory listing 1\"
22707 find foo | sort
22708 echo \"End directory listing 1\"
22709
22710 tar xfgv arch.2 /dev/null --warning=no-timestamp
22711 echo Begin directory listing 2
22712 find foo | sort
22713 echo End directory listing 2
22714 )"
22715 echo rename02.at:27 >"$at_check_line_file"
22716
22717 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
22718    false; }; then
22719   ( $at_traceon;
22720 mkdir gnu
22721 (cd gnu
22722 TEST_TAR_FORMAT=gnu
22723 export TEST_TAR_FORMAT
22724 TAR_OPTIONS="-H gnu"
22725 export TAR_OPTIONS
22726 rm -rf *
22727
22728
22729 test -z "`sort < /dev/null 2>&1`" || exit 77
22730
22731 mkdir foo
22732 genfile --file foo/file1
22733 genfile --file foo/file2
22734 mkdir foo/bar
22735 genfile --file foo/bar/file.r
22736 mkdir foo/bar/baz
22737 genfile --file foo/bar/baz/file.z
22738
22739 sleep 1
22740
22741 echo "Creating base archive"
22742 tar -g incr -cf arch.1 -v foo
22743
22744 mv foo/bar/baz foo
22745
22746 echo "Creating incremental archive"
22747 tar -g incr -cf arch.2 -v foo
22748
22749 mv foo old
22750
22751 tar xfg arch.1 /dev/null --warning=no-timestamp 2>tmperr
22752 sort tmperr >&2
22753
22754 echo "Begin directory listing 1"
22755 find foo | sort
22756 echo "End directory listing 1"
22757
22758 tar xfgv arch.2 /dev/null --warning=no-timestamp
22759 echo Begin directory listing 2
22760 find foo | sort
22761 echo End directory listing 2
22762 ) ) >"$at_stdout" 2>"$at_stder1"
22763   at_func_filter_trace $?
22764 else
22765   ( :;
22766 mkdir gnu
22767 (cd gnu
22768 TEST_TAR_FORMAT=gnu
22769 export TEST_TAR_FORMAT
22770 TAR_OPTIONS="-H gnu"
22771 export TAR_OPTIONS
22772 rm -rf *
22773
22774
22775 test -z "`sort < /dev/null 2>&1`" || exit 77
22776
22777 mkdir foo
22778 genfile --file foo/file1
22779 genfile --file foo/file2
22780 mkdir foo/bar
22781 genfile --file foo/bar/file.r
22782 mkdir foo/bar/baz
22783 genfile --file foo/bar/baz/file.z
22784
22785 sleep 1
22786
22787 echo "Creating base archive"
22788 tar -g incr -cf arch.1 -v foo
22789
22790 mv foo/bar/baz foo
22791
22792 echo "Creating incremental archive"
22793 tar -g incr -cf arch.2 -v foo
22794
22795 mv foo old
22796
22797 tar xfg arch.1 /dev/null --warning=no-timestamp 2>tmperr
22798 sort tmperr >&2
22799
22800 echo "Begin directory listing 1"
22801 find foo | sort
22802 echo "End directory listing 1"
22803
22804 tar xfgv arch.2 /dev/null --warning=no-timestamp
22805 echo Begin directory listing 2
22806 find foo | sort
22807 echo End directory listing 2
22808 ) ) >"$at_stdout" 2>"$at_stderr"
22809 fi
22810 at_status=$?
22811 at_failed=false
22812 echo >>"$at_stderr"; $as_echo "tar: foo: Directory is new
22813 tar: foo/bar: Directory is new
22814 tar: foo/bar/baz: Directory is new
22815 tar: foo/baz: Directory has been renamed from \`foo/bar/baz'
22816 " | \
22817   $at_diff - "$at_stderr" || at_failed=:
22818 echo >>"$at_stdout"; $as_echo "Creating base archive
22819 foo/
22820 foo/bar/
22821 foo/bar/baz/
22822 foo/file1
22823 foo/file2
22824 foo/bar/file.r
22825 foo/bar/baz/file.z
22826 Creating incremental archive
22827 foo/
22828 foo/bar/
22829 foo/baz/
22830 Begin directory listing 1
22831 foo
22832 foo/bar
22833 foo/bar/baz
22834 foo/bar/baz/file.z
22835 foo/bar/file.r
22836 foo/file1
22837 foo/file2
22838 End directory listing 1
22839 foo/
22840 foo/bar/
22841 foo/baz/
22842 Begin directory listing 2
22843 foo
22844 foo/bar
22845 foo/bar/file.r
22846 foo/baz
22847 foo/baz/file.z
22848 foo/file1
22849 foo/file2
22850 End directory listing 2
22851 " | \
22852   $at_diff - "$at_stdout" || at_failed=:
22853 at_func_check_status 0 $at_status "$at_srcdir/rename02.at:27"
22854
22855 $at_failed && at_func_log_failure
22856 $at_traceon; }
22857
22858               { $at_traceoff
22859 $as_echo "$at_srcdir/rename02.at:27:
22860 mkdir oldgnu
22861 (cd oldgnu
22862 TEST_TAR_FORMAT=oldgnu
22863 export TEST_TAR_FORMAT
22864 TAR_OPTIONS=\"-H oldgnu\"
22865 export TAR_OPTIONS
22866 rm -rf *
22867
22868
22869 test -z "`sort < /dev/null 2>&1`" || exit 77
22870
22871 mkdir foo
22872 genfile --file foo/file1
22873 genfile --file foo/file2
22874 mkdir foo/bar
22875 genfile --file foo/bar/file.r
22876 mkdir foo/bar/baz
22877 genfile --file foo/bar/baz/file.z
22878
22879 sleep 1
22880
22881 echo \"Creating base archive\"
22882 tar -g incr -cf arch.1 -v foo
22883
22884 mv foo/bar/baz foo
22885
22886 echo \"Creating incremental archive\"
22887 tar -g incr -cf arch.2 -v foo
22888
22889 mv foo old
22890
22891 tar xfg arch.1 /dev/null --warning=no-timestamp 2>tmperr
22892 sort tmperr >&2
22893
22894 echo \"Begin directory listing 1\"
22895 find foo | sort
22896 echo \"End directory listing 1\"
22897
22898 tar xfgv arch.2 /dev/null --warning=no-timestamp
22899 echo Begin directory listing 2
22900 find foo | sort
22901 echo End directory listing 2
22902 )"
22903 echo rename02.at:27 >"$at_check_line_file"
22904
22905 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
22906    false; }; then
22907   ( $at_traceon;
22908 mkdir oldgnu
22909 (cd oldgnu
22910 TEST_TAR_FORMAT=oldgnu
22911 export TEST_TAR_FORMAT
22912 TAR_OPTIONS="-H oldgnu"
22913 export TAR_OPTIONS
22914 rm -rf *
22915
22916
22917 test -z "`sort < /dev/null 2>&1`" || exit 77
22918
22919 mkdir foo
22920 genfile --file foo/file1
22921 genfile --file foo/file2
22922 mkdir foo/bar
22923 genfile --file foo/bar/file.r
22924 mkdir foo/bar/baz
22925 genfile --file foo/bar/baz/file.z
22926
22927 sleep 1
22928
22929 echo "Creating base archive"
22930 tar -g incr -cf arch.1 -v foo
22931
22932 mv foo/bar/baz foo
22933
22934 echo "Creating incremental archive"
22935 tar -g incr -cf arch.2 -v foo
22936
22937 mv foo old
22938
22939 tar xfg arch.1 /dev/null --warning=no-timestamp 2>tmperr
22940 sort tmperr >&2
22941
22942 echo "Begin directory listing 1"
22943 find foo | sort
22944 echo "End directory listing 1"
22945
22946 tar xfgv arch.2 /dev/null --warning=no-timestamp
22947 echo Begin directory listing 2
22948 find foo | sort
22949 echo End directory listing 2
22950 ) ) >"$at_stdout" 2>"$at_stder1"
22951   at_func_filter_trace $?
22952 else
22953   ( :;
22954 mkdir oldgnu
22955 (cd oldgnu
22956 TEST_TAR_FORMAT=oldgnu
22957 export TEST_TAR_FORMAT
22958 TAR_OPTIONS="-H oldgnu"
22959 export TAR_OPTIONS
22960 rm -rf *
22961
22962
22963 test -z "`sort < /dev/null 2>&1`" || exit 77
22964
22965 mkdir foo
22966 genfile --file foo/file1
22967 genfile --file foo/file2
22968 mkdir foo/bar
22969 genfile --file foo/bar/file.r
22970 mkdir foo/bar/baz
22971 genfile --file foo/bar/baz/file.z
22972
22973 sleep 1
22974
22975 echo "Creating base archive"
22976 tar -g incr -cf arch.1 -v foo
22977
22978 mv foo/bar/baz foo
22979
22980 echo "Creating incremental archive"
22981 tar -g incr -cf arch.2 -v foo
22982
22983 mv foo old
22984
22985 tar xfg arch.1 /dev/null --warning=no-timestamp 2>tmperr
22986 sort tmperr >&2
22987
22988 echo "Begin directory listing 1"
22989 find foo | sort
22990 echo "End directory listing 1"
22991
22992 tar xfgv arch.2 /dev/null --warning=no-timestamp
22993 echo Begin directory listing 2
22994 find foo | sort
22995 echo End directory listing 2
22996 ) ) >"$at_stdout" 2>"$at_stderr"
22997 fi
22998 at_status=$?
22999 at_failed=false
23000 echo >>"$at_stderr"; $as_echo "tar: foo: Directory is new
23001 tar: foo/bar: Directory is new
23002 tar: foo/bar/baz: Directory is new
23003 tar: foo/baz: Directory has been renamed from \`foo/bar/baz'
23004 " | \
23005   $at_diff - "$at_stderr" || at_failed=:
23006 echo >>"$at_stdout"; $as_echo "Creating base archive
23007 foo/
23008 foo/bar/
23009 foo/bar/baz/
23010 foo/file1
23011 foo/file2
23012 foo/bar/file.r
23013 foo/bar/baz/file.z
23014 Creating incremental archive
23015 foo/
23016 foo/bar/
23017 foo/baz/
23018 Begin directory listing 1
23019 foo
23020 foo/bar
23021 foo/bar/baz
23022 foo/bar/baz/file.z
23023 foo/bar/file.r
23024 foo/file1
23025 foo/file2
23026 End directory listing 1
23027 foo/
23028 foo/bar/
23029 foo/baz/
23030 Begin directory listing 2
23031 foo
23032 foo/bar
23033 foo/bar/file.r
23034 foo/baz
23035 foo/baz/file.z
23036 foo/file1
23037 foo/file2
23038 End directory listing 2
23039 " | \
23040   $at_diff - "$at_stdout" || at_failed=:
23041 at_func_check_status 0 $at_status "$at_srcdir/rename02.at:27"
23042
23043 $at_failed && at_func_log_failure
23044 $at_traceon; }
23045
23046               { $at_traceoff
23047 $as_echo "$at_srcdir/rename02.at:27:
23048 mkdir posix
23049 (cd posix
23050 TEST_TAR_FORMAT=posix
23051 export TEST_TAR_FORMAT
23052 TAR_OPTIONS=\"-H posix\"
23053 export TAR_OPTIONS
23054 rm -rf *
23055
23056
23057 test -z "`sort < /dev/null 2>&1`" || exit 77
23058
23059 mkdir foo
23060 genfile --file foo/file1
23061 genfile --file foo/file2
23062 mkdir foo/bar
23063 genfile --file foo/bar/file.r
23064 mkdir foo/bar/baz
23065 genfile --file foo/bar/baz/file.z
23066
23067 sleep 1
23068
23069 echo \"Creating base archive\"
23070 tar -g incr -cf arch.1 -v foo
23071
23072 mv foo/bar/baz foo
23073
23074 echo \"Creating incremental archive\"
23075 tar -g incr -cf arch.2 -v foo
23076
23077 mv foo old
23078
23079 tar xfg arch.1 /dev/null --warning=no-timestamp 2>tmperr
23080 sort tmperr >&2
23081
23082 echo \"Begin directory listing 1\"
23083 find foo | sort
23084 echo \"End directory listing 1\"
23085
23086 tar xfgv arch.2 /dev/null --warning=no-timestamp
23087 echo Begin directory listing 2
23088 find foo | sort
23089 echo End directory listing 2
23090 )"
23091 echo rename02.at:27 >"$at_check_line_file"
23092
23093 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
23094    false; }; then
23095   ( $at_traceon;
23096 mkdir posix
23097 (cd posix
23098 TEST_TAR_FORMAT=posix
23099 export TEST_TAR_FORMAT
23100 TAR_OPTIONS="-H posix"
23101 export TAR_OPTIONS
23102 rm -rf *
23103
23104
23105 test -z "`sort < /dev/null 2>&1`" || exit 77
23106
23107 mkdir foo
23108 genfile --file foo/file1
23109 genfile --file foo/file2
23110 mkdir foo/bar
23111 genfile --file foo/bar/file.r
23112 mkdir foo/bar/baz
23113 genfile --file foo/bar/baz/file.z
23114
23115 sleep 1
23116
23117 echo "Creating base archive"
23118 tar -g incr -cf arch.1 -v foo
23119
23120 mv foo/bar/baz foo
23121
23122 echo "Creating incremental archive"
23123 tar -g incr -cf arch.2 -v foo
23124
23125 mv foo old
23126
23127 tar xfg arch.1 /dev/null --warning=no-timestamp 2>tmperr
23128 sort tmperr >&2
23129
23130 echo "Begin directory listing 1"
23131 find foo | sort
23132 echo "End directory listing 1"
23133
23134 tar xfgv arch.2 /dev/null --warning=no-timestamp
23135 echo Begin directory listing 2
23136 find foo | sort
23137 echo End directory listing 2
23138 ) ) >"$at_stdout" 2>"$at_stder1"
23139   at_func_filter_trace $?
23140 else
23141   ( :;
23142 mkdir posix
23143 (cd posix
23144 TEST_TAR_FORMAT=posix
23145 export TEST_TAR_FORMAT
23146 TAR_OPTIONS="-H posix"
23147 export TAR_OPTIONS
23148 rm -rf *
23149
23150
23151 test -z "`sort < /dev/null 2>&1`" || exit 77
23152
23153 mkdir foo
23154 genfile --file foo/file1
23155 genfile --file foo/file2
23156 mkdir foo/bar
23157 genfile --file foo/bar/file.r
23158 mkdir foo/bar/baz
23159 genfile --file foo/bar/baz/file.z
23160
23161 sleep 1
23162
23163 echo "Creating base archive"
23164 tar -g incr -cf arch.1 -v foo
23165
23166 mv foo/bar/baz foo
23167
23168 echo "Creating incremental archive"
23169 tar -g incr -cf arch.2 -v foo
23170
23171 mv foo old
23172
23173 tar xfg arch.1 /dev/null --warning=no-timestamp 2>tmperr
23174 sort tmperr >&2
23175
23176 echo "Begin directory listing 1"
23177 find foo | sort
23178 echo "End directory listing 1"
23179
23180 tar xfgv arch.2 /dev/null --warning=no-timestamp
23181 echo Begin directory listing 2
23182 find foo | sort
23183 echo End directory listing 2
23184 ) ) >"$at_stdout" 2>"$at_stderr"
23185 fi
23186 at_status=$?
23187 at_failed=false
23188 echo >>"$at_stderr"; $as_echo "tar: foo: Directory is new
23189 tar: foo/bar: Directory is new
23190 tar: foo/bar/baz: Directory is new
23191 tar: foo/baz: Directory has been renamed from \`foo/bar/baz'
23192 " | \
23193   $at_diff - "$at_stderr" || at_failed=:
23194 echo >>"$at_stdout"; $as_echo "Creating base archive
23195 foo/
23196 foo/bar/
23197 foo/bar/baz/
23198 foo/file1
23199 foo/file2
23200 foo/bar/file.r
23201 foo/bar/baz/file.z
23202 Creating incremental archive
23203 foo/
23204 foo/bar/
23205 foo/baz/
23206 Begin directory listing 1
23207 foo
23208 foo/bar
23209 foo/bar/baz
23210 foo/bar/baz/file.z
23211 foo/bar/file.r
23212 foo/file1
23213 foo/file2
23214 End directory listing 1
23215 foo/
23216 foo/bar/
23217 foo/baz/
23218 Begin directory listing 2
23219 foo
23220 foo/bar
23221 foo/bar/file.r
23222 foo/baz
23223 foo/baz/file.z
23224 foo/file1
23225 foo/file2
23226 End directory listing 2
23227 " | \
23228   $at_diff - "$at_stdout" || at_failed=:
23229 at_func_check_status 0 $at_status "$at_srcdir/rename02.at:27"
23230
23231 $at_failed && at_func_log_failure
23232 $at_traceon; }
23233
23234
23235
23236
23237   $at_traceoff
23238   $at_times_p && times >"$at_times_file"
23239 ) 5>&1 2>&1 | eval $at_tee_pipe
23240 at_status=`cat "$at_status_file"`
23241 #AT_STOP_61
23242 #AT_START_62
23243 # 62. rename03.at:23: cyclic renames
23244 at_setup_line='rename03.at:23'
23245 at_desc="cyclic renames"
23246 $at_quiet $as_echo_n " 62: $at_desc                                 "
23247 at_xfail=no
23248       test -f $XFAILFILE && at_xfail=yes
23249 echo "#                             -*- compilation -*-" >> "$at_group_log"
23250 (
23251   $as_echo "62. rename03.at:23: testing ..."
23252   $at_traceon
23253
23254
23255
23256
23257
23258   { $at_traceoff
23259 $as_echo "$at_srcdir/rename03.at:26:
23260 mkdir gnu
23261 (cd gnu
23262 TEST_TAR_FORMAT=gnu
23263 export TEST_TAR_FORMAT
23264 TAR_OPTIONS=\"-H gnu\"
23265 export TAR_OPTIONS
23266 rm -rf *
23267
23268
23269 test -z "`sort < /dev/null 2>&1`" || exit 77
23270
23271
23272 mkdir foo
23273 genfile --file foo/file1
23274 genfile --file foo/file2
23275
23276 mkdir foo/a
23277 genfile --file foo/a/filea
23278
23279 mkdir foo/b
23280 genfile --file foo/b/fileb
23281
23282 mkdir foo/c
23283 genfile --file foo/c/filec
23284
23285 sleep 1
23286
23287 echo \"First dump\"
23288 echo \"First dump\">&2
23289 tar -g incr -cf arch.1 -v foo 2>tmperr
23290 sort tmperr >&2
23291
23292 # Shuffle directories:
23293 (cd foo
23294 mv a \$\$
23295 mv c a
23296 mv b c
23297 mv \$\$ b)
23298
23299 echo \"Second dump\"
23300 echo \"Second dump\" >&2
23301 tar -g incr -cf arch.2 -v foo 2>tmperr
23302 sort tmperr >&2
23303
23304 tar xfg arch.1 /dev/null --warning=no-timestamp
23305
23306 echo \"Begin directory listing 1\"
23307 find foo | sort
23308 echo \"End directory listing 1\"
23309
23310 tar xfgv arch.2 /dev/null --warning=no-timestamp
23311 echo Begin directory listing 2
23312 find foo | sort
23313 echo End directory listing 2
23314 )"
23315 echo rename03.at:26 >"$at_check_line_file"
23316
23317 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
23318    false; }; then
23319   ( $at_traceon;
23320 mkdir gnu
23321 (cd gnu
23322 TEST_TAR_FORMAT=gnu
23323 export TEST_TAR_FORMAT
23324 TAR_OPTIONS="-H gnu"
23325 export TAR_OPTIONS
23326 rm -rf *
23327
23328
23329 test -z "`sort < /dev/null 2>&1`" || exit 77
23330
23331
23332 mkdir foo
23333 genfile --file foo/file1
23334 genfile --file foo/file2
23335
23336 mkdir foo/a
23337 genfile --file foo/a/filea
23338
23339 mkdir foo/b
23340 genfile --file foo/b/fileb
23341
23342 mkdir foo/c
23343 genfile --file foo/c/filec
23344
23345 sleep 1
23346
23347 echo "First dump"
23348 echo "First dump">&2
23349 tar -g incr -cf arch.1 -v foo 2>tmperr
23350 sort tmperr >&2
23351
23352 # Shuffle directories:
23353 (cd foo
23354 mv a $$
23355 mv c a
23356 mv b c
23357 mv $$ b)
23358
23359 echo "Second dump"
23360 echo "Second dump" >&2
23361 tar -g incr -cf arch.2 -v foo 2>tmperr
23362 sort tmperr >&2
23363
23364 tar xfg arch.1 /dev/null --warning=no-timestamp
23365
23366 echo "Begin directory listing 1"
23367 find foo | sort
23368 echo "End directory listing 1"
23369
23370 tar xfgv arch.2 /dev/null --warning=no-timestamp
23371 echo Begin directory listing 2
23372 find foo | sort
23373 echo End directory listing 2
23374 ) ) >"$at_stdout" 2>"$at_stder1"
23375   at_func_filter_trace $?
23376 else
23377   ( :;
23378 mkdir gnu
23379 (cd gnu
23380 TEST_TAR_FORMAT=gnu
23381 export TEST_TAR_FORMAT
23382 TAR_OPTIONS="-H gnu"
23383 export TAR_OPTIONS
23384 rm -rf *
23385
23386
23387 test -z "`sort < /dev/null 2>&1`" || exit 77
23388
23389
23390 mkdir foo
23391 genfile --file foo/file1
23392 genfile --file foo/file2
23393
23394 mkdir foo/a
23395 genfile --file foo/a/filea
23396
23397 mkdir foo/b
23398 genfile --file foo/b/fileb
23399
23400 mkdir foo/c
23401 genfile --file foo/c/filec
23402
23403 sleep 1
23404
23405 echo "First dump"
23406 echo "First dump">&2
23407 tar -g incr -cf arch.1 -v foo 2>tmperr
23408 sort tmperr >&2
23409
23410 # Shuffle directories:
23411 (cd foo
23412 mv a $$
23413 mv c a
23414 mv b c
23415 mv $$ b)
23416
23417 echo "Second dump"
23418 echo "Second dump" >&2
23419 tar -g incr -cf arch.2 -v foo 2>tmperr
23420 sort tmperr >&2
23421
23422 tar xfg arch.1 /dev/null --warning=no-timestamp
23423
23424 echo "Begin directory listing 1"
23425 find foo | sort
23426 echo "End directory listing 1"
23427
23428 tar xfgv arch.2 /dev/null --warning=no-timestamp
23429 echo Begin directory listing 2
23430 find foo | sort
23431 echo End directory listing 2
23432 ) ) >"$at_stdout" 2>"$at_stderr"
23433 fi
23434 at_status=$?
23435 at_failed=false
23436 echo >>"$at_stderr"; $as_echo "First dump
23437 tar: foo/a: Directory is new
23438 tar: foo/b: Directory is new
23439 tar: foo/c: Directory is new
23440 tar: foo: Directory is new
23441 Second dump
23442 tar: foo/a: Directory has been renamed from \`foo/c'
23443 tar: foo/b: Directory has been renamed from \`foo/a'
23444 tar: foo/c: Directory has been renamed from \`foo/b'
23445 " | \
23446   $at_diff - "$at_stderr" || at_failed=:
23447 echo >>"$at_stdout"; $as_echo "First dump
23448 foo/
23449 foo/a/
23450 foo/b/
23451 foo/c/
23452 foo/file1
23453 foo/file2
23454 foo/a/filea
23455 foo/b/fileb
23456 foo/c/filec
23457 Second dump
23458 foo/
23459 foo/a/
23460 foo/b/
23461 foo/c/
23462 Begin directory listing 1
23463 foo
23464 foo/a
23465 foo/a/filea
23466 foo/b
23467 foo/b/fileb
23468 foo/c
23469 foo/c/filec
23470 foo/file1
23471 foo/file2
23472 End directory listing 1
23473 foo/
23474 foo/a/
23475 foo/b/
23476 foo/c/
23477 Begin directory listing 2
23478 foo
23479 foo/a
23480 foo/a/filec
23481 foo/b
23482 foo/b/filea
23483 foo/c
23484 foo/c/fileb
23485 foo/file1
23486 foo/file2
23487 End directory listing 2
23488 " | \
23489   $at_diff - "$at_stdout" || at_failed=:
23490 at_func_check_status 0 $at_status "$at_srcdir/rename03.at:26"
23491
23492 $at_failed && at_func_log_failure
23493 $at_traceon; }
23494
23495               { $at_traceoff
23496 $as_echo "$at_srcdir/rename03.at:26:
23497 mkdir oldgnu
23498 (cd oldgnu
23499 TEST_TAR_FORMAT=oldgnu
23500 export TEST_TAR_FORMAT
23501 TAR_OPTIONS=\"-H oldgnu\"
23502 export TAR_OPTIONS
23503 rm -rf *
23504
23505
23506 test -z "`sort < /dev/null 2>&1`" || exit 77
23507
23508
23509 mkdir foo
23510 genfile --file foo/file1
23511 genfile --file foo/file2
23512
23513 mkdir foo/a
23514 genfile --file foo/a/filea
23515
23516 mkdir foo/b
23517 genfile --file foo/b/fileb
23518
23519 mkdir foo/c
23520 genfile --file foo/c/filec
23521
23522 sleep 1
23523
23524 echo \"First dump\"
23525 echo \"First dump\">&2
23526 tar -g incr -cf arch.1 -v foo 2>tmperr
23527 sort tmperr >&2
23528
23529 # Shuffle directories:
23530 (cd foo
23531 mv a \$\$
23532 mv c a
23533 mv b c
23534 mv \$\$ b)
23535
23536 echo \"Second dump\"
23537 echo \"Second dump\" >&2
23538 tar -g incr -cf arch.2 -v foo 2>tmperr
23539 sort tmperr >&2
23540
23541 tar xfg arch.1 /dev/null --warning=no-timestamp
23542
23543 echo \"Begin directory listing 1\"
23544 find foo | sort
23545 echo \"End directory listing 1\"
23546
23547 tar xfgv arch.2 /dev/null --warning=no-timestamp
23548 echo Begin directory listing 2
23549 find foo | sort
23550 echo End directory listing 2
23551 )"
23552 echo rename03.at:26 >"$at_check_line_file"
23553
23554 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
23555    false; }; then
23556   ( $at_traceon;
23557 mkdir oldgnu
23558 (cd oldgnu
23559 TEST_TAR_FORMAT=oldgnu
23560 export TEST_TAR_FORMAT
23561 TAR_OPTIONS="-H oldgnu"
23562 export TAR_OPTIONS
23563 rm -rf *
23564
23565
23566 test -z "`sort < /dev/null 2>&1`" || exit 77
23567
23568
23569 mkdir foo
23570 genfile --file foo/file1
23571 genfile --file foo/file2
23572
23573 mkdir foo/a
23574 genfile --file foo/a/filea
23575
23576 mkdir foo/b
23577 genfile --file foo/b/fileb
23578
23579 mkdir foo/c
23580 genfile --file foo/c/filec
23581
23582 sleep 1
23583
23584 echo "First dump"
23585 echo "First dump">&2
23586 tar -g incr -cf arch.1 -v foo 2>tmperr
23587 sort tmperr >&2
23588
23589 # Shuffle directories:
23590 (cd foo
23591 mv a $$
23592 mv c a
23593 mv b c
23594 mv $$ b)
23595
23596 echo "Second dump"
23597 echo "Second dump" >&2
23598 tar -g incr -cf arch.2 -v foo 2>tmperr
23599 sort tmperr >&2
23600
23601 tar xfg arch.1 /dev/null --warning=no-timestamp
23602
23603 echo "Begin directory listing 1"
23604 find foo | sort
23605 echo "End directory listing 1"
23606
23607 tar xfgv arch.2 /dev/null --warning=no-timestamp
23608 echo Begin directory listing 2
23609 find foo | sort
23610 echo End directory listing 2
23611 ) ) >"$at_stdout" 2>"$at_stder1"
23612   at_func_filter_trace $?
23613 else
23614   ( :;
23615 mkdir oldgnu
23616 (cd oldgnu
23617 TEST_TAR_FORMAT=oldgnu
23618 export TEST_TAR_FORMAT
23619 TAR_OPTIONS="-H oldgnu"
23620 export TAR_OPTIONS
23621 rm -rf *
23622
23623
23624 test -z "`sort < /dev/null 2>&1`" || exit 77
23625
23626
23627 mkdir foo
23628 genfile --file foo/file1
23629 genfile --file foo/file2
23630
23631 mkdir foo/a
23632 genfile --file foo/a/filea
23633
23634 mkdir foo/b
23635 genfile --file foo/b/fileb
23636
23637 mkdir foo/c
23638 genfile --file foo/c/filec
23639
23640 sleep 1
23641
23642 echo "First dump"
23643 echo "First dump">&2
23644 tar -g incr -cf arch.1 -v foo 2>tmperr
23645 sort tmperr >&2
23646
23647 # Shuffle directories:
23648 (cd foo
23649 mv a $$
23650 mv c a
23651 mv b c
23652 mv $$ b)
23653
23654 echo "Second dump"
23655 echo "Second dump" >&2
23656 tar -g incr -cf arch.2 -v foo 2>tmperr
23657 sort tmperr >&2
23658
23659 tar xfg arch.1 /dev/null --warning=no-timestamp
23660
23661 echo "Begin directory listing 1"
23662 find foo | sort
23663 echo "End directory listing 1"
23664
23665 tar xfgv arch.2 /dev/null --warning=no-timestamp
23666 echo Begin directory listing 2
23667 find foo | sort
23668 echo End directory listing 2
23669 ) ) >"$at_stdout" 2>"$at_stderr"
23670 fi
23671 at_status=$?
23672 at_failed=false
23673 echo >>"$at_stderr"; $as_echo "First dump
23674 tar: foo/a: Directory is new
23675 tar: foo/b: Directory is new
23676 tar: foo/c: Directory is new
23677 tar: foo: Directory is new
23678 Second dump
23679 tar: foo/a: Directory has been renamed from \`foo/c'
23680 tar: foo/b: Directory has been renamed from \`foo/a'
23681 tar: foo/c: Directory has been renamed from \`foo/b'
23682 " | \
23683   $at_diff - "$at_stderr" || at_failed=:
23684 echo >>"$at_stdout"; $as_echo "First dump
23685 foo/
23686 foo/a/
23687 foo/b/
23688 foo/c/
23689 foo/file1
23690 foo/file2
23691 foo/a/filea
23692 foo/b/fileb
23693 foo/c/filec
23694 Second dump
23695 foo/
23696 foo/a/
23697 foo/b/
23698 foo/c/
23699 Begin directory listing 1
23700 foo
23701 foo/a
23702 foo/a/filea
23703 foo/b
23704 foo/b/fileb
23705 foo/c
23706 foo/c/filec
23707 foo/file1
23708 foo/file2
23709 End directory listing 1
23710 foo/
23711 foo/a/
23712 foo/b/
23713 foo/c/
23714 Begin directory listing 2
23715 foo
23716 foo/a
23717 foo/a/filec
23718 foo/b
23719 foo/b/filea
23720 foo/c
23721 foo/c/fileb
23722 foo/file1
23723 foo/file2
23724 End directory listing 2
23725 " | \
23726   $at_diff - "$at_stdout" || at_failed=:
23727 at_func_check_status 0 $at_status "$at_srcdir/rename03.at:26"
23728
23729 $at_failed && at_func_log_failure
23730 $at_traceon; }
23731
23732               { $at_traceoff
23733 $as_echo "$at_srcdir/rename03.at:26:
23734 mkdir posix
23735 (cd posix
23736 TEST_TAR_FORMAT=posix
23737 export TEST_TAR_FORMAT
23738 TAR_OPTIONS=\"-H posix\"
23739 export TAR_OPTIONS
23740 rm -rf *
23741
23742
23743 test -z "`sort < /dev/null 2>&1`" || exit 77
23744
23745
23746 mkdir foo
23747 genfile --file foo/file1
23748 genfile --file foo/file2
23749
23750 mkdir foo/a
23751 genfile --file foo/a/filea
23752
23753 mkdir foo/b
23754 genfile --file foo/b/fileb
23755
23756 mkdir foo/c
23757 genfile --file foo/c/filec
23758
23759 sleep 1
23760
23761 echo \"First dump\"
23762 echo \"First dump\">&2
23763 tar -g incr -cf arch.1 -v foo 2>tmperr
23764 sort tmperr >&2
23765
23766 # Shuffle directories:
23767 (cd foo
23768 mv a \$\$
23769 mv c a
23770 mv b c
23771 mv \$\$ b)
23772
23773 echo \"Second dump\"
23774 echo \"Second dump\" >&2
23775 tar -g incr -cf arch.2 -v foo 2>tmperr
23776 sort tmperr >&2
23777
23778 tar xfg arch.1 /dev/null --warning=no-timestamp
23779
23780 echo \"Begin directory listing 1\"
23781 find foo | sort
23782 echo \"End directory listing 1\"
23783
23784 tar xfgv arch.2 /dev/null --warning=no-timestamp
23785 echo Begin directory listing 2
23786 find foo | sort
23787 echo End directory listing 2
23788 )"
23789 echo rename03.at:26 >"$at_check_line_file"
23790
23791 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
23792    false; }; then
23793   ( $at_traceon;
23794 mkdir posix
23795 (cd posix
23796 TEST_TAR_FORMAT=posix
23797 export TEST_TAR_FORMAT
23798 TAR_OPTIONS="-H posix"
23799 export TAR_OPTIONS
23800 rm -rf *
23801
23802
23803 test -z "`sort < /dev/null 2>&1`" || exit 77
23804
23805
23806 mkdir foo
23807 genfile --file foo/file1
23808 genfile --file foo/file2
23809
23810 mkdir foo/a
23811 genfile --file foo/a/filea
23812
23813 mkdir foo/b
23814 genfile --file foo/b/fileb
23815
23816 mkdir foo/c
23817 genfile --file foo/c/filec
23818
23819 sleep 1
23820
23821 echo "First dump"
23822 echo "First dump">&2
23823 tar -g incr -cf arch.1 -v foo 2>tmperr
23824 sort tmperr >&2
23825
23826 # Shuffle directories:
23827 (cd foo
23828 mv a $$
23829 mv c a
23830 mv b c
23831 mv $$ b)
23832
23833 echo "Second dump"
23834 echo "Second dump" >&2
23835 tar -g incr -cf arch.2 -v foo 2>tmperr
23836 sort tmperr >&2
23837
23838 tar xfg arch.1 /dev/null --warning=no-timestamp
23839
23840 echo "Begin directory listing 1"
23841 find foo | sort
23842 echo "End directory listing 1"
23843
23844 tar xfgv arch.2 /dev/null --warning=no-timestamp
23845 echo Begin directory listing 2
23846 find foo | sort
23847 echo End directory listing 2
23848 ) ) >"$at_stdout" 2>"$at_stder1"
23849   at_func_filter_trace $?
23850 else
23851   ( :;
23852 mkdir posix
23853 (cd posix
23854 TEST_TAR_FORMAT=posix
23855 export TEST_TAR_FORMAT
23856 TAR_OPTIONS="-H posix"
23857 export TAR_OPTIONS
23858 rm -rf *
23859
23860
23861 test -z "`sort < /dev/null 2>&1`" || exit 77
23862
23863
23864 mkdir foo
23865 genfile --file foo/file1
23866 genfile --file foo/file2
23867
23868 mkdir foo/a
23869 genfile --file foo/a/filea
23870
23871 mkdir foo/b
23872 genfile --file foo/b/fileb
23873
23874 mkdir foo/c
23875 genfile --file foo/c/filec
23876
23877 sleep 1
23878
23879 echo "First dump"
23880 echo "First dump">&2
23881 tar -g incr -cf arch.1 -v foo 2>tmperr
23882 sort tmperr >&2
23883
23884 # Shuffle directories:
23885 (cd foo
23886 mv a $$
23887 mv c a
23888 mv b c
23889 mv $$ b)
23890
23891 echo "Second dump"
23892 echo "Second dump" >&2
23893 tar -g incr -cf arch.2 -v foo 2>tmperr
23894 sort tmperr >&2
23895
23896 tar xfg arch.1 /dev/null --warning=no-timestamp
23897
23898 echo "Begin directory listing 1"
23899 find foo | sort
23900 echo "End directory listing 1"
23901
23902 tar xfgv arch.2 /dev/null --warning=no-timestamp
23903 echo Begin directory listing 2
23904 find foo | sort
23905 echo End directory listing 2
23906 ) ) >"$at_stdout" 2>"$at_stderr"
23907 fi
23908 at_status=$?
23909 at_failed=false
23910 echo >>"$at_stderr"; $as_echo "First dump
23911 tar: foo/a: Directory is new
23912 tar: foo/b: Directory is new
23913 tar: foo/c: Directory is new
23914 tar: foo: Directory is new
23915 Second dump
23916 tar: foo/a: Directory has been renamed from \`foo/c'
23917 tar: foo/b: Directory has been renamed from \`foo/a'
23918 tar: foo/c: Directory has been renamed from \`foo/b'
23919 " | \
23920   $at_diff - "$at_stderr" || at_failed=:
23921 echo >>"$at_stdout"; $as_echo "First dump
23922 foo/
23923 foo/a/
23924 foo/b/
23925 foo/c/
23926 foo/file1
23927 foo/file2
23928 foo/a/filea
23929 foo/b/fileb
23930 foo/c/filec
23931 Second dump
23932 foo/
23933 foo/a/
23934 foo/b/
23935 foo/c/
23936 Begin directory listing 1
23937 foo
23938 foo/a
23939 foo/a/filea
23940 foo/b
23941 foo/b/fileb
23942 foo/c
23943 foo/c/filec
23944 foo/file1
23945 foo/file2
23946 End directory listing 1
23947 foo/
23948 foo/a/
23949 foo/b/
23950 foo/c/
23951 Begin directory listing 2
23952 foo
23953 foo/a
23954 foo/a/filec
23955 foo/b
23956 foo/b/filea
23957 foo/c
23958 foo/c/fileb
23959 foo/file1
23960 foo/file2
23961 End directory listing 2
23962 " | \
23963   $at_diff - "$at_stdout" || at_failed=:
23964 at_func_check_status 0 $at_status "$at_srcdir/rename03.at:26"
23965
23966 $at_failed && at_func_log_failure
23967 $at_traceon; }
23968
23969
23970
23971
23972   $at_traceoff
23973   $at_times_p && times >"$at_times_file"
23974 ) 5>&1 2>&1 | eval $at_tee_pipe
23975 at_status=`cat "$at_status_file"`
23976 #AT_STOP_62
23977 #AT_START_63
23978 # 63. rename04.at:27: renamed directory containing subdirectories
23979 at_setup_line='rename04.at:27'
23980 at_desc="renamed directory containing subdirectories"
23981 $at_quiet $as_echo_n " 63: $at_desc    "
23982 at_xfail=no
23983       test -f $XFAILFILE && at_xfail=yes
23984 echo "#                             -*- compilation -*-" >> "$at_group_log"
23985 (
23986   $as_echo "63. rename04.at:27: testing ..."
23987   $at_traceon
23988
23989
23990
23991
23992
23993   { $at_traceoff
23994 $as_echo "$at_srcdir/rename04.at:30:
23995 mkdir gnu
23996 (cd gnu
23997 TEST_TAR_FORMAT=gnu
23998 export TEST_TAR_FORMAT
23999 TAR_OPTIONS=\"-H gnu\"
24000 export TAR_OPTIONS
24001 rm -rf *
24002
24003
24004 test -z "`sort < /dev/null 2>&1`" || exit 77
24005
24006
24007 decho Creating directory structure
24008 mkdir directory
24009 mkdir directory/subdir
24010 genfile --file=directory/file
24011
24012 decho Creating initial archive
24013 tar -cf archive.1 -g db.1 directory
24014
24015 decho Renaming
24016 mv directory dir
24017
24018 decho Creating incremental archive
24019 cp db.1 db.2
24020 tar -cf archive.2 -g db.2 dir
24021
24022 mv dir orig
24023
24024 decho First restore
24025 tar -xf archive.1 -g db.1
24026 find directory | sort
24027
24028 decho Second restore
24029 tar -xf archive.2 -g db.2
24030 find dir | sort
24031 )"
24032 echo rename04.at:30 >"$at_check_line_file"
24033
24034 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
24035    false; }; then
24036   ( $at_traceon;
24037 mkdir gnu
24038 (cd gnu
24039 TEST_TAR_FORMAT=gnu
24040 export TEST_TAR_FORMAT
24041 TAR_OPTIONS="-H gnu"
24042 export TAR_OPTIONS
24043 rm -rf *
24044
24045
24046 test -z "`sort < /dev/null 2>&1`" || exit 77
24047
24048
24049 decho Creating directory structure
24050 mkdir directory
24051 mkdir directory/subdir
24052 genfile --file=directory/file
24053
24054 decho Creating initial archive
24055 tar -cf archive.1 -g db.1 directory
24056
24057 decho Renaming
24058 mv directory dir
24059
24060 decho Creating incremental archive
24061 cp db.1 db.2
24062 tar -cf archive.2 -g db.2 dir
24063
24064 mv dir orig
24065
24066 decho First restore
24067 tar -xf archive.1 -g db.1
24068 find directory | sort
24069
24070 decho Second restore
24071 tar -xf archive.2 -g db.2
24072 find dir | sort
24073 ) ) >"$at_stdout" 2>"$at_stder1"
24074   at_func_filter_trace $?
24075 else
24076   ( :;
24077 mkdir gnu
24078 (cd gnu
24079 TEST_TAR_FORMAT=gnu
24080 export TEST_TAR_FORMAT
24081 TAR_OPTIONS="-H gnu"
24082 export TAR_OPTIONS
24083 rm -rf *
24084
24085
24086 test -z "`sort < /dev/null 2>&1`" || exit 77
24087
24088
24089 decho Creating directory structure
24090 mkdir directory
24091 mkdir directory/subdir
24092 genfile --file=directory/file
24093
24094 decho Creating initial archive
24095 tar -cf archive.1 -g db.1 directory
24096
24097 decho Renaming
24098 mv directory dir
24099
24100 decho Creating incremental archive
24101 cp db.1 db.2
24102 tar -cf archive.2 -g db.2 dir
24103
24104 mv dir orig
24105
24106 decho First restore
24107 tar -xf archive.1 -g db.1
24108 find directory | sort
24109
24110 decho Second restore
24111 tar -xf archive.2 -g db.2
24112 find dir | sort
24113 ) ) >"$at_stdout" 2>"$at_stderr"
24114 fi
24115 at_status=$?
24116 at_failed=false
24117 echo >>"$at_stderr"; $as_echo "Creating directory structure
24118 Creating initial archive
24119 Renaming
24120 Creating incremental archive
24121 First restore
24122 Second restore
24123 " | \
24124   $at_diff - "$at_stderr" || at_failed=:
24125 echo >>"$at_stdout"; $as_echo "Creating directory structure
24126 Creating initial archive
24127 Renaming
24128 Creating incremental archive
24129 First restore
24130 directory
24131 directory/file
24132 directory/subdir
24133 Second restore
24134 dir
24135 dir/subdir
24136 " | \
24137   $at_diff - "$at_stdout" || at_failed=:
24138 at_func_check_status 0 $at_status "$at_srcdir/rename04.at:30"
24139
24140 $at_failed && at_func_log_failure
24141 $at_traceon; }
24142
24143               { $at_traceoff
24144 $as_echo "$at_srcdir/rename04.at:30:
24145 mkdir oldgnu
24146 (cd oldgnu
24147 TEST_TAR_FORMAT=oldgnu
24148 export TEST_TAR_FORMAT
24149 TAR_OPTIONS=\"-H oldgnu\"
24150 export TAR_OPTIONS
24151 rm -rf *
24152
24153
24154 test -z "`sort < /dev/null 2>&1`" || exit 77
24155
24156
24157 decho Creating directory structure
24158 mkdir directory
24159 mkdir directory/subdir
24160 genfile --file=directory/file
24161
24162 decho Creating initial archive
24163 tar -cf archive.1 -g db.1 directory
24164
24165 decho Renaming
24166 mv directory dir
24167
24168 decho Creating incremental archive
24169 cp db.1 db.2
24170 tar -cf archive.2 -g db.2 dir
24171
24172 mv dir orig
24173
24174 decho First restore
24175 tar -xf archive.1 -g db.1
24176 find directory | sort
24177
24178 decho Second restore
24179 tar -xf archive.2 -g db.2
24180 find dir | sort
24181 )"
24182 echo rename04.at:30 >"$at_check_line_file"
24183
24184 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
24185    false; }; then
24186   ( $at_traceon;
24187 mkdir oldgnu
24188 (cd oldgnu
24189 TEST_TAR_FORMAT=oldgnu
24190 export TEST_TAR_FORMAT
24191 TAR_OPTIONS="-H oldgnu"
24192 export TAR_OPTIONS
24193 rm -rf *
24194
24195
24196 test -z "`sort < /dev/null 2>&1`" || exit 77
24197
24198
24199 decho Creating directory structure
24200 mkdir directory
24201 mkdir directory/subdir
24202 genfile --file=directory/file
24203
24204 decho Creating initial archive
24205 tar -cf archive.1 -g db.1 directory
24206
24207 decho Renaming
24208 mv directory dir
24209
24210 decho Creating incremental archive
24211 cp db.1 db.2
24212 tar -cf archive.2 -g db.2 dir
24213
24214 mv dir orig
24215
24216 decho First restore
24217 tar -xf archive.1 -g db.1
24218 find directory | sort
24219
24220 decho Second restore
24221 tar -xf archive.2 -g db.2
24222 find dir | sort
24223 ) ) >"$at_stdout" 2>"$at_stder1"
24224   at_func_filter_trace $?
24225 else
24226   ( :;
24227 mkdir oldgnu
24228 (cd oldgnu
24229 TEST_TAR_FORMAT=oldgnu
24230 export TEST_TAR_FORMAT
24231 TAR_OPTIONS="-H oldgnu"
24232 export TAR_OPTIONS
24233 rm -rf *
24234
24235
24236 test -z "`sort < /dev/null 2>&1`" || exit 77
24237
24238
24239 decho Creating directory structure
24240 mkdir directory
24241 mkdir directory/subdir
24242 genfile --file=directory/file
24243
24244 decho Creating initial archive
24245 tar -cf archive.1 -g db.1 directory
24246
24247 decho Renaming
24248 mv directory dir
24249
24250 decho Creating incremental archive
24251 cp db.1 db.2
24252 tar -cf archive.2 -g db.2 dir
24253
24254 mv dir orig
24255
24256 decho First restore
24257 tar -xf archive.1 -g db.1
24258 find directory | sort
24259
24260 decho Second restore
24261 tar -xf archive.2 -g db.2
24262 find dir | sort
24263 ) ) >"$at_stdout" 2>"$at_stderr"
24264 fi
24265 at_status=$?
24266 at_failed=false
24267 echo >>"$at_stderr"; $as_echo "Creating directory structure
24268 Creating initial archive
24269 Renaming
24270 Creating incremental archive
24271 First restore
24272 Second restore
24273 " | \
24274   $at_diff - "$at_stderr" || at_failed=:
24275 echo >>"$at_stdout"; $as_echo "Creating directory structure
24276 Creating initial archive
24277 Renaming
24278 Creating incremental archive
24279 First restore
24280 directory
24281 directory/file
24282 directory/subdir
24283 Second restore
24284 dir
24285 dir/subdir
24286 " | \
24287   $at_diff - "$at_stdout" || at_failed=:
24288 at_func_check_status 0 $at_status "$at_srcdir/rename04.at:30"
24289
24290 $at_failed && at_func_log_failure
24291 $at_traceon; }
24292
24293               { $at_traceoff
24294 $as_echo "$at_srcdir/rename04.at:30:
24295 mkdir posix
24296 (cd posix
24297 TEST_TAR_FORMAT=posix
24298 export TEST_TAR_FORMAT
24299 TAR_OPTIONS=\"-H posix\"
24300 export TAR_OPTIONS
24301 rm -rf *
24302
24303
24304 test -z "`sort < /dev/null 2>&1`" || exit 77
24305
24306
24307 decho Creating directory structure
24308 mkdir directory
24309 mkdir directory/subdir
24310 genfile --file=directory/file
24311
24312 decho Creating initial archive
24313 tar -cf archive.1 -g db.1 directory
24314
24315 decho Renaming
24316 mv directory dir
24317
24318 decho Creating incremental archive
24319 cp db.1 db.2
24320 tar -cf archive.2 -g db.2 dir
24321
24322 mv dir orig
24323
24324 decho First restore
24325 tar -xf archive.1 -g db.1
24326 find directory | sort
24327
24328 decho Second restore
24329 tar -xf archive.2 -g db.2
24330 find dir | sort
24331 )"
24332 echo rename04.at:30 >"$at_check_line_file"
24333
24334 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
24335    false; }; then
24336   ( $at_traceon;
24337 mkdir posix
24338 (cd posix
24339 TEST_TAR_FORMAT=posix
24340 export TEST_TAR_FORMAT
24341 TAR_OPTIONS="-H posix"
24342 export TAR_OPTIONS
24343 rm -rf *
24344
24345
24346 test -z "`sort < /dev/null 2>&1`" || exit 77
24347
24348
24349 decho Creating directory structure
24350 mkdir directory
24351 mkdir directory/subdir
24352 genfile --file=directory/file
24353
24354 decho Creating initial archive
24355 tar -cf archive.1 -g db.1 directory
24356
24357 decho Renaming
24358 mv directory dir
24359
24360 decho Creating incremental archive
24361 cp db.1 db.2
24362 tar -cf archive.2 -g db.2 dir
24363
24364 mv dir orig
24365
24366 decho First restore
24367 tar -xf archive.1 -g db.1
24368 find directory | sort
24369
24370 decho Second restore
24371 tar -xf archive.2 -g db.2
24372 find dir | sort
24373 ) ) >"$at_stdout" 2>"$at_stder1"
24374   at_func_filter_trace $?
24375 else
24376   ( :;
24377 mkdir posix
24378 (cd posix
24379 TEST_TAR_FORMAT=posix
24380 export TEST_TAR_FORMAT
24381 TAR_OPTIONS="-H posix"
24382 export TAR_OPTIONS
24383 rm -rf *
24384
24385
24386 test -z "`sort < /dev/null 2>&1`" || exit 77
24387
24388
24389 decho Creating directory structure
24390 mkdir directory
24391 mkdir directory/subdir
24392 genfile --file=directory/file
24393
24394 decho Creating initial archive
24395 tar -cf archive.1 -g db.1 directory
24396
24397 decho Renaming
24398 mv directory dir
24399
24400 decho Creating incremental archive
24401 cp db.1 db.2
24402 tar -cf archive.2 -g db.2 dir
24403
24404 mv dir orig
24405
24406 decho First restore
24407 tar -xf archive.1 -g db.1
24408 find directory | sort
24409
24410 decho Second restore
24411 tar -xf archive.2 -g db.2
24412 find dir | sort
24413 ) ) >"$at_stdout" 2>"$at_stderr"
24414 fi
24415 at_status=$?
24416 at_failed=false
24417 echo >>"$at_stderr"; $as_echo "Creating directory structure
24418 Creating initial archive
24419 Renaming
24420 Creating incremental archive
24421 First restore
24422 Second restore
24423 " | \
24424   $at_diff - "$at_stderr" || at_failed=:
24425 echo >>"$at_stdout"; $as_echo "Creating directory structure
24426 Creating initial archive
24427 Renaming
24428 Creating incremental archive
24429 First restore
24430 directory
24431 directory/file
24432 directory/subdir
24433 Second restore
24434 dir
24435 dir/subdir
24436 " | \
24437   $at_diff - "$at_stdout" || at_failed=:
24438 at_func_check_status 0 $at_status "$at_srcdir/rename04.at:30"
24439
24440 $at_failed && at_func_log_failure
24441 $at_traceon; }
24442
24443
24444
24445
24446   $at_traceoff
24447   $at_times_p && times >"$at_times_file"
24448 ) 5>&1 2>&1 | eval $at_tee_pipe
24449 at_status=`cat "$at_status_file"`
24450 #AT_STOP_63
24451 #AT_START_64
24452 # 64. rename05.at:24: renamed subdirectories
24453 at_setup_line='rename05.at:24'
24454 at_desc="renamed subdirectories"
24455 $at_quiet $as_echo_n " 64: $at_desc                         "
24456 at_xfail=no
24457       test -f $XFAILFILE && at_xfail=yes
24458 echo "#                             -*- compilation -*-" >> "$at_group_log"
24459 (
24460   $as_echo "64. rename05.at:24: testing ..."
24461   $at_traceon
24462
24463
24464
24465
24466
24467   { $at_traceoff
24468 $as_echo "$at_srcdir/rename05.at:27:
24469 mkdir gnu
24470 (cd gnu
24471 TEST_TAR_FORMAT=gnu
24472 export TEST_TAR_FORMAT
24473 TAR_OPTIONS=\"-H gnu\"
24474 export TAR_OPTIONS
24475 rm -rf *
24476
24477
24478 test -z "`sort < /dev/null 2>&1`" || exit 77
24479
24480
24481 decho Creating directory structure
24482 mkdir directory
24483 mkdir directory/subdir
24484 genfile --file=directory/file
24485
24486 decho Creating initial archive
24487 tar -cf archive.1 -g db.1 directory
24488
24489 decho Renaming
24490 mv directory/subdir directory/subdir.0
24491 mv directory dir
24492
24493 decho Creating incremental archive
24494 cp db.1 db.2
24495 tar -cf archive.2 -g db.2 dir
24496
24497 mv dir orig
24498
24499 decho First restore
24500 tar -xf archive.1 -g db.1 --warning=no-timestamp
24501 find directory | sort
24502
24503 decho Second restore
24504 tar -xf archive.2 -g db.2 --warning=no-timestamp
24505 find dir | sort
24506 )"
24507 echo rename05.at:27 >"$at_check_line_file"
24508
24509 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
24510    false; }; then
24511   ( $at_traceon;
24512 mkdir gnu
24513 (cd gnu
24514 TEST_TAR_FORMAT=gnu
24515 export TEST_TAR_FORMAT
24516 TAR_OPTIONS="-H gnu"
24517 export TAR_OPTIONS
24518 rm -rf *
24519
24520
24521 test -z "`sort < /dev/null 2>&1`" || exit 77
24522
24523
24524 decho Creating directory structure
24525 mkdir directory
24526 mkdir directory/subdir
24527 genfile --file=directory/file
24528
24529 decho Creating initial archive
24530 tar -cf archive.1 -g db.1 directory
24531
24532 decho Renaming
24533 mv directory/subdir directory/subdir.0
24534 mv directory dir
24535
24536 decho Creating incremental archive
24537 cp db.1 db.2
24538 tar -cf archive.2 -g db.2 dir
24539
24540 mv dir orig
24541
24542 decho First restore
24543 tar -xf archive.1 -g db.1 --warning=no-timestamp
24544 find directory | sort
24545
24546 decho Second restore
24547 tar -xf archive.2 -g db.2 --warning=no-timestamp
24548 find dir | sort
24549 ) ) >"$at_stdout" 2>"$at_stder1"
24550   at_func_filter_trace $?
24551 else
24552   ( :;
24553 mkdir gnu
24554 (cd gnu
24555 TEST_TAR_FORMAT=gnu
24556 export TEST_TAR_FORMAT
24557 TAR_OPTIONS="-H gnu"
24558 export TAR_OPTIONS
24559 rm -rf *
24560
24561
24562 test -z "`sort < /dev/null 2>&1`" || exit 77
24563
24564
24565 decho Creating directory structure
24566 mkdir directory
24567 mkdir directory/subdir
24568 genfile --file=directory/file
24569
24570 decho Creating initial archive
24571 tar -cf archive.1 -g db.1 directory
24572
24573 decho Renaming
24574 mv directory/subdir directory/subdir.0
24575 mv directory dir
24576
24577 decho Creating incremental archive
24578 cp db.1 db.2
24579 tar -cf archive.2 -g db.2 dir
24580
24581 mv dir orig
24582
24583 decho First restore
24584 tar -xf archive.1 -g db.1 --warning=no-timestamp
24585 find directory | sort
24586
24587 decho Second restore
24588 tar -xf archive.2 -g db.2 --warning=no-timestamp
24589 find dir | sort
24590 ) ) >"$at_stdout" 2>"$at_stderr"
24591 fi
24592 at_status=$?
24593 at_failed=false
24594 echo >>"$at_stderr"; $as_echo "Creating directory structure
24595 Creating initial archive
24596 Renaming
24597 Creating incremental archive
24598 First restore
24599 Second restore
24600 " | \
24601   $at_diff - "$at_stderr" || at_failed=:
24602 echo >>"$at_stdout"; $as_echo "Creating directory structure
24603 Creating initial archive
24604 Renaming
24605 Creating incremental archive
24606 First restore
24607 directory
24608 directory/file
24609 directory/subdir
24610 Second restore
24611 dir
24612 dir/subdir.0
24613 " | \
24614   $at_diff - "$at_stdout" || at_failed=:
24615 at_func_check_status 0 $at_status "$at_srcdir/rename05.at:27"
24616
24617 $at_failed && at_func_log_failure
24618 $at_traceon; }
24619
24620               { $at_traceoff
24621 $as_echo "$at_srcdir/rename05.at:27:
24622 mkdir oldgnu
24623 (cd oldgnu
24624 TEST_TAR_FORMAT=oldgnu
24625 export TEST_TAR_FORMAT
24626 TAR_OPTIONS=\"-H oldgnu\"
24627 export TAR_OPTIONS
24628 rm -rf *
24629
24630
24631 test -z "`sort < /dev/null 2>&1`" || exit 77
24632
24633
24634 decho Creating directory structure
24635 mkdir directory
24636 mkdir directory/subdir
24637 genfile --file=directory/file
24638
24639 decho Creating initial archive
24640 tar -cf archive.1 -g db.1 directory
24641
24642 decho Renaming
24643 mv directory/subdir directory/subdir.0
24644 mv directory dir
24645
24646 decho Creating incremental archive
24647 cp db.1 db.2
24648 tar -cf archive.2 -g db.2 dir
24649
24650 mv dir orig
24651
24652 decho First restore
24653 tar -xf archive.1 -g db.1 --warning=no-timestamp
24654 find directory | sort
24655
24656 decho Second restore
24657 tar -xf archive.2 -g db.2 --warning=no-timestamp
24658 find dir | sort
24659 )"
24660 echo rename05.at:27 >"$at_check_line_file"
24661
24662 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
24663    false; }; then
24664   ( $at_traceon;
24665 mkdir oldgnu
24666 (cd oldgnu
24667 TEST_TAR_FORMAT=oldgnu
24668 export TEST_TAR_FORMAT
24669 TAR_OPTIONS="-H oldgnu"
24670 export TAR_OPTIONS
24671 rm -rf *
24672
24673
24674 test -z "`sort < /dev/null 2>&1`" || exit 77
24675
24676
24677 decho Creating directory structure
24678 mkdir directory
24679 mkdir directory/subdir
24680 genfile --file=directory/file
24681
24682 decho Creating initial archive
24683 tar -cf archive.1 -g db.1 directory
24684
24685 decho Renaming
24686 mv directory/subdir directory/subdir.0
24687 mv directory dir
24688
24689 decho Creating incremental archive
24690 cp db.1 db.2
24691 tar -cf archive.2 -g db.2 dir
24692
24693 mv dir orig
24694
24695 decho First restore
24696 tar -xf archive.1 -g db.1 --warning=no-timestamp
24697 find directory | sort
24698
24699 decho Second restore
24700 tar -xf archive.2 -g db.2 --warning=no-timestamp
24701 find dir | sort
24702 ) ) >"$at_stdout" 2>"$at_stder1"
24703   at_func_filter_trace $?
24704 else
24705   ( :;
24706 mkdir oldgnu
24707 (cd oldgnu
24708 TEST_TAR_FORMAT=oldgnu
24709 export TEST_TAR_FORMAT
24710 TAR_OPTIONS="-H oldgnu"
24711 export TAR_OPTIONS
24712 rm -rf *
24713
24714
24715 test -z "`sort < /dev/null 2>&1`" || exit 77
24716
24717
24718 decho Creating directory structure
24719 mkdir directory
24720 mkdir directory/subdir
24721 genfile --file=directory/file
24722
24723 decho Creating initial archive
24724 tar -cf archive.1 -g db.1 directory
24725
24726 decho Renaming
24727 mv directory/subdir directory/subdir.0
24728 mv directory dir
24729
24730 decho Creating incremental archive
24731 cp db.1 db.2
24732 tar -cf archive.2 -g db.2 dir
24733
24734 mv dir orig
24735
24736 decho First restore
24737 tar -xf archive.1 -g db.1 --warning=no-timestamp
24738 find directory | sort
24739
24740 decho Second restore
24741 tar -xf archive.2 -g db.2 --warning=no-timestamp
24742 find dir | sort
24743 ) ) >"$at_stdout" 2>"$at_stderr"
24744 fi
24745 at_status=$?
24746 at_failed=false
24747 echo >>"$at_stderr"; $as_echo "Creating directory structure
24748 Creating initial archive
24749 Renaming
24750 Creating incremental archive
24751 First restore
24752 Second restore
24753 " | \
24754   $at_diff - "$at_stderr" || at_failed=:
24755 echo >>"$at_stdout"; $as_echo "Creating directory structure
24756 Creating initial archive
24757 Renaming
24758 Creating incremental archive
24759 First restore
24760 directory
24761 directory/file
24762 directory/subdir
24763 Second restore
24764 dir
24765 dir/subdir.0
24766 " | \
24767   $at_diff - "$at_stdout" || at_failed=:
24768 at_func_check_status 0 $at_status "$at_srcdir/rename05.at:27"
24769
24770 $at_failed && at_func_log_failure
24771 $at_traceon; }
24772
24773               { $at_traceoff
24774 $as_echo "$at_srcdir/rename05.at:27:
24775 mkdir posix
24776 (cd posix
24777 TEST_TAR_FORMAT=posix
24778 export TEST_TAR_FORMAT
24779 TAR_OPTIONS=\"-H posix\"
24780 export TAR_OPTIONS
24781 rm -rf *
24782
24783
24784 test -z "`sort < /dev/null 2>&1`" || exit 77
24785
24786
24787 decho Creating directory structure
24788 mkdir directory
24789 mkdir directory/subdir
24790 genfile --file=directory/file
24791
24792 decho Creating initial archive
24793 tar -cf archive.1 -g db.1 directory
24794
24795 decho Renaming
24796 mv directory/subdir directory/subdir.0
24797 mv directory dir
24798
24799 decho Creating incremental archive
24800 cp db.1 db.2
24801 tar -cf archive.2 -g db.2 dir
24802
24803 mv dir orig
24804
24805 decho First restore
24806 tar -xf archive.1 -g db.1 --warning=no-timestamp
24807 find directory | sort
24808
24809 decho Second restore
24810 tar -xf archive.2 -g db.2 --warning=no-timestamp
24811 find dir | sort
24812 )"
24813 echo rename05.at:27 >"$at_check_line_file"
24814
24815 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
24816    false; }; then
24817   ( $at_traceon;
24818 mkdir posix
24819 (cd posix
24820 TEST_TAR_FORMAT=posix
24821 export TEST_TAR_FORMAT
24822 TAR_OPTIONS="-H posix"
24823 export TAR_OPTIONS
24824 rm -rf *
24825
24826
24827 test -z "`sort < /dev/null 2>&1`" || exit 77
24828
24829
24830 decho Creating directory structure
24831 mkdir directory
24832 mkdir directory/subdir
24833 genfile --file=directory/file
24834
24835 decho Creating initial archive
24836 tar -cf archive.1 -g db.1 directory
24837
24838 decho Renaming
24839 mv directory/subdir directory/subdir.0
24840 mv directory dir
24841
24842 decho Creating incremental archive
24843 cp db.1 db.2
24844 tar -cf archive.2 -g db.2 dir
24845
24846 mv dir orig
24847
24848 decho First restore
24849 tar -xf archive.1 -g db.1 --warning=no-timestamp
24850 find directory | sort
24851
24852 decho Second restore
24853 tar -xf archive.2 -g db.2 --warning=no-timestamp
24854 find dir | sort
24855 ) ) >"$at_stdout" 2>"$at_stder1"
24856   at_func_filter_trace $?
24857 else
24858   ( :;
24859 mkdir posix
24860 (cd posix
24861 TEST_TAR_FORMAT=posix
24862 export TEST_TAR_FORMAT
24863 TAR_OPTIONS="-H posix"
24864 export TAR_OPTIONS
24865 rm -rf *
24866
24867
24868 test -z "`sort < /dev/null 2>&1`" || exit 77
24869
24870
24871 decho Creating directory structure
24872 mkdir directory
24873 mkdir directory/subdir
24874 genfile --file=directory/file
24875
24876 decho Creating initial archive
24877 tar -cf archive.1 -g db.1 directory
24878
24879 decho Renaming
24880 mv directory/subdir directory/subdir.0
24881 mv directory dir
24882
24883 decho Creating incremental archive
24884 cp db.1 db.2
24885 tar -cf archive.2 -g db.2 dir
24886
24887 mv dir orig
24888
24889 decho First restore
24890 tar -xf archive.1 -g db.1 --warning=no-timestamp
24891 find directory | sort
24892
24893 decho Second restore
24894 tar -xf archive.2 -g db.2 --warning=no-timestamp
24895 find dir | sort
24896 ) ) >"$at_stdout" 2>"$at_stderr"
24897 fi
24898 at_status=$?
24899 at_failed=false
24900 echo >>"$at_stderr"; $as_echo "Creating directory structure
24901 Creating initial archive
24902 Renaming
24903 Creating incremental archive
24904 First restore
24905 Second restore
24906 " | \
24907   $at_diff - "$at_stderr" || at_failed=:
24908 echo >>"$at_stdout"; $as_echo "Creating directory structure
24909 Creating initial archive
24910 Renaming
24911 Creating incremental archive
24912 First restore
24913 directory
24914 directory/file
24915 directory/subdir
24916 Second restore
24917 dir
24918 dir/subdir.0
24919 " | \
24920   $at_diff - "$at_stdout" || at_failed=:
24921 at_func_check_status 0 $at_status "$at_srcdir/rename05.at:27"
24922
24923 $at_failed && at_func_log_failure
24924 $at_traceon; }
24925
24926
24927
24928
24929   $at_traceoff
24930   $at_times_p && times >"$at_times_file"
24931 ) 5>&1 2>&1 | eval $at_tee_pipe
24932 at_status=`cat "$at_status_file"`
24933 #AT_STOP_64
24934 #AT_START_65
24935 # 65. chtype.at:27: changed file types in incrementals
24936 at_setup_line='chtype.at:27'
24937 at_desc="changed file types in incrementals"
24938 $at_quiet $as_echo_n " 65: $at_desc             "
24939 at_xfail=no
24940       test -f $XFAILFILE && at_xfail=yes
24941 echo "#                             -*- compilation -*-" >> "$at_group_log"
24942 (
24943   $as_echo "65. chtype.at:27: testing ..."
24944   $at_traceon
24945
24946
24947
24948
24949
24950   { $at_traceoff
24951 $as_echo "$at_srcdir/chtype.at:30:
24952 mkdir gnu
24953 (cd gnu
24954 TEST_TAR_FORMAT=gnu
24955 export TEST_TAR_FORMAT
24956 TAR_OPTIONS=\"-H gnu\"
24957 export TAR_OPTIONS
24958 rm -rf *
24959
24960
24961 test -z "`sort < /dev/null 2>&1`" || exit 77
24962
24963
24964 install-sh -d directory/b/c >/dev/null && genfile --file directory/b/c/x || exit 77
24965 mkdir directory/a
24966 genfile --file directory/a/a
24967
24968 echo First backup
24969 tar --create --file=archive.1 --listed-incremental=db.1 directory
24970
24971 sleep 2
24972
24973 # Remove directory b and create a file with this name.
24974 # Previous versions were not able to restore over this file.
24975 rm -r directory/b
24976 genfile --file directory/b
24977 genfile --file directory/a/b
24978
24979 echo Second backup
24980 tar --create --file=archive.2 --listed-incremental=db.2 directory
24981
24982 # Delete a
24983 rm -r directory
24984
24985 echo Restore archive.1
24986 tar -xf archive.1 --listed-incremental=/dev/null --warning=no-timestamp
24987 echo Restore archive.2
24988 tar -xf archive.2 --listed-incremental=/dev/null --warning=no-timestamp
24989 find directory | sort
24990 )"
24991 echo chtype.at:30 >"$at_check_line_file"
24992
24993 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
24994    false; }; then
24995   ( $at_traceon;
24996 mkdir gnu
24997 (cd gnu
24998 TEST_TAR_FORMAT=gnu
24999 export TEST_TAR_FORMAT
25000 TAR_OPTIONS="-H gnu"
25001 export TAR_OPTIONS
25002 rm -rf *
25003
25004
25005 test -z "`sort < /dev/null 2>&1`" || exit 77
25006
25007
25008 install-sh -d directory/b/c >/dev/null && genfile --file directory/b/c/x || exit 77
25009 mkdir directory/a
25010 genfile --file directory/a/a
25011
25012 echo First backup
25013 tar --create --file=archive.1 --listed-incremental=db.1 directory
25014
25015 sleep 2
25016
25017 # Remove directory b and create a file with this name.
25018 # Previous versions were not able to restore over this file.
25019 rm -r directory/b
25020 genfile --file directory/b
25021 genfile --file directory/a/b
25022
25023 echo Second backup
25024 tar --create --file=archive.2 --listed-incremental=db.2 directory
25025
25026 # Delete a
25027 rm -r directory
25028
25029 echo Restore archive.1
25030 tar -xf archive.1 --listed-incremental=/dev/null --warning=no-timestamp
25031 echo Restore archive.2
25032 tar -xf archive.2 --listed-incremental=/dev/null --warning=no-timestamp
25033 find directory | sort
25034 ) ) >"$at_stdout" 2>"$at_stder1"
25035   at_func_filter_trace $?
25036 else
25037   ( :;
25038 mkdir gnu
25039 (cd gnu
25040 TEST_TAR_FORMAT=gnu
25041 export TEST_TAR_FORMAT
25042 TAR_OPTIONS="-H gnu"
25043 export TAR_OPTIONS
25044 rm -rf *
25045
25046
25047 test -z "`sort < /dev/null 2>&1`" || exit 77
25048
25049
25050 install-sh -d directory/b/c >/dev/null && genfile --file directory/b/c/x || exit 77
25051 mkdir directory/a
25052 genfile --file directory/a/a
25053
25054 echo First backup
25055 tar --create --file=archive.1 --listed-incremental=db.1 directory
25056
25057 sleep 2
25058
25059 # Remove directory b and create a file with this name.
25060 # Previous versions were not able to restore over this file.
25061 rm -r directory/b
25062 genfile --file directory/b
25063 genfile --file directory/a/b
25064
25065 echo Second backup
25066 tar --create --file=archive.2 --listed-incremental=db.2 directory
25067
25068 # Delete a
25069 rm -r directory
25070
25071 echo Restore archive.1
25072 tar -xf archive.1 --listed-incremental=/dev/null --warning=no-timestamp
25073 echo Restore archive.2
25074 tar -xf archive.2 --listed-incremental=/dev/null --warning=no-timestamp
25075 find directory | sort
25076 ) ) >"$at_stdout" 2>"$at_stderr"
25077 fi
25078 at_status=$?
25079 at_failed=false
25080 at_func_diff_devnull "$at_stderr" || at_failed=:
25081 echo >>"$at_stdout"; $as_echo "First backup
25082 Second backup
25083 Restore archive.1
25084 Restore archive.2
25085 directory
25086 directory/a
25087 directory/a/a
25088 directory/a/b
25089 directory/b
25090 " | \
25091   $at_diff - "$at_stdout" || at_failed=:
25092 at_func_check_status 0 $at_status "$at_srcdir/chtype.at:30"
25093
25094 $at_failed && at_func_log_failure
25095 $at_traceon; }
25096
25097               { $at_traceoff
25098 $as_echo "$at_srcdir/chtype.at:30:
25099 mkdir oldgnu
25100 (cd oldgnu
25101 TEST_TAR_FORMAT=oldgnu
25102 export TEST_TAR_FORMAT
25103 TAR_OPTIONS=\"-H oldgnu\"
25104 export TAR_OPTIONS
25105 rm -rf *
25106
25107
25108 test -z "`sort < /dev/null 2>&1`" || exit 77
25109
25110
25111 install-sh -d directory/b/c >/dev/null && genfile --file directory/b/c/x || exit 77
25112 mkdir directory/a
25113 genfile --file directory/a/a
25114
25115 echo First backup
25116 tar --create --file=archive.1 --listed-incremental=db.1 directory
25117
25118 sleep 2
25119
25120 # Remove directory b and create a file with this name.
25121 # Previous versions were not able to restore over this file.
25122 rm -r directory/b
25123 genfile --file directory/b
25124 genfile --file directory/a/b
25125
25126 echo Second backup
25127 tar --create --file=archive.2 --listed-incremental=db.2 directory
25128
25129 # Delete a
25130 rm -r directory
25131
25132 echo Restore archive.1
25133 tar -xf archive.1 --listed-incremental=/dev/null --warning=no-timestamp
25134 echo Restore archive.2
25135 tar -xf archive.2 --listed-incremental=/dev/null --warning=no-timestamp
25136 find directory | sort
25137 )"
25138 echo chtype.at:30 >"$at_check_line_file"
25139
25140 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
25141    false; }; then
25142   ( $at_traceon;
25143 mkdir oldgnu
25144 (cd oldgnu
25145 TEST_TAR_FORMAT=oldgnu
25146 export TEST_TAR_FORMAT
25147 TAR_OPTIONS="-H oldgnu"
25148 export TAR_OPTIONS
25149 rm -rf *
25150
25151
25152 test -z "`sort < /dev/null 2>&1`" || exit 77
25153
25154
25155 install-sh -d directory/b/c >/dev/null && genfile --file directory/b/c/x || exit 77
25156 mkdir directory/a
25157 genfile --file directory/a/a
25158
25159 echo First backup
25160 tar --create --file=archive.1 --listed-incremental=db.1 directory
25161
25162 sleep 2
25163
25164 # Remove directory b and create a file with this name.
25165 # Previous versions were not able to restore over this file.
25166 rm -r directory/b
25167 genfile --file directory/b
25168 genfile --file directory/a/b
25169
25170 echo Second backup
25171 tar --create --file=archive.2 --listed-incremental=db.2 directory
25172
25173 # Delete a
25174 rm -r directory
25175
25176 echo Restore archive.1
25177 tar -xf archive.1 --listed-incremental=/dev/null --warning=no-timestamp
25178 echo Restore archive.2
25179 tar -xf archive.2 --listed-incremental=/dev/null --warning=no-timestamp
25180 find directory | sort
25181 ) ) >"$at_stdout" 2>"$at_stder1"
25182   at_func_filter_trace $?
25183 else
25184   ( :;
25185 mkdir oldgnu
25186 (cd oldgnu
25187 TEST_TAR_FORMAT=oldgnu
25188 export TEST_TAR_FORMAT
25189 TAR_OPTIONS="-H oldgnu"
25190 export TAR_OPTIONS
25191 rm -rf *
25192
25193
25194 test -z "`sort < /dev/null 2>&1`" || exit 77
25195
25196
25197 install-sh -d directory/b/c >/dev/null && genfile --file directory/b/c/x || exit 77
25198 mkdir directory/a
25199 genfile --file directory/a/a
25200
25201 echo First backup
25202 tar --create --file=archive.1 --listed-incremental=db.1 directory
25203
25204 sleep 2
25205
25206 # Remove directory b and create a file with this name.
25207 # Previous versions were not able to restore over this file.
25208 rm -r directory/b
25209 genfile --file directory/b
25210 genfile --file directory/a/b
25211
25212 echo Second backup
25213 tar --create --file=archive.2 --listed-incremental=db.2 directory
25214
25215 # Delete a
25216 rm -r directory
25217
25218 echo Restore archive.1
25219 tar -xf archive.1 --listed-incremental=/dev/null --warning=no-timestamp
25220 echo Restore archive.2
25221 tar -xf archive.2 --listed-incremental=/dev/null --warning=no-timestamp
25222 find directory | sort
25223 ) ) >"$at_stdout" 2>"$at_stderr"
25224 fi
25225 at_status=$?
25226 at_failed=false
25227 at_func_diff_devnull "$at_stderr" || at_failed=:
25228 echo >>"$at_stdout"; $as_echo "First backup
25229 Second backup
25230 Restore archive.1
25231 Restore archive.2
25232 directory
25233 directory/a
25234 directory/a/a
25235 directory/a/b
25236 directory/b
25237 " | \
25238   $at_diff - "$at_stdout" || at_failed=:
25239 at_func_check_status 0 $at_status "$at_srcdir/chtype.at:30"
25240
25241 $at_failed && at_func_log_failure
25242 $at_traceon; }
25243
25244               { $at_traceoff
25245 $as_echo "$at_srcdir/chtype.at:30:
25246 mkdir posix
25247 (cd posix
25248 TEST_TAR_FORMAT=posix
25249 export TEST_TAR_FORMAT
25250 TAR_OPTIONS=\"-H posix\"
25251 export TAR_OPTIONS
25252 rm -rf *
25253
25254
25255 test -z "`sort < /dev/null 2>&1`" || exit 77
25256
25257
25258 install-sh -d directory/b/c >/dev/null && genfile --file directory/b/c/x || exit 77
25259 mkdir directory/a
25260 genfile --file directory/a/a
25261
25262 echo First backup
25263 tar --create --file=archive.1 --listed-incremental=db.1 directory
25264
25265 sleep 2
25266
25267 # Remove directory b and create a file with this name.
25268 # Previous versions were not able to restore over this file.
25269 rm -r directory/b
25270 genfile --file directory/b
25271 genfile --file directory/a/b
25272
25273 echo Second backup
25274 tar --create --file=archive.2 --listed-incremental=db.2 directory
25275
25276 # Delete a
25277 rm -r directory
25278
25279 echo Restore archive.1
25280 tar -xf archive.1 --listed-incremental=/dev/null --warning=no-timestamp
25281 echo Restore archive.2
25282 tar -xf archive.2 --listed-incremental=/dev/null --warning=no-timestamp
25283 find directory | sort
25284 )"
25285 echo chtype.at:30 >"$at_check_line_file"
25286
25287 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
25288    false; }; then
25289   ( $at_traceon;
25290 mkdir posix
25291 (cd posix
25292 TEST_TAR_FORMAT=posix
25293 export TEST_TAR_FORMAT
25294 TAR_OPTIONS="-H posix"
25295 export TAR_OPTIONS
25296 rm -rf *
25297
25298
25299 test -z "`sort < /dev/null 2>&1`" || exit 77
25300
25301
25302 install-sh -d directory/b/c >/dev/null && genfile --file directory/b/c/x || exit 77
25303 mkdir directory/a
25304 genfile --file directory/a/a
25305
25306 echo First backup
25307 tar --create --file=archive.1 --listed-incremental=db.1 directory
25308
25309 sleep 2
25310
25311 # Remove directory b and create a file with this name.
25312 # Previous versions were not able to restore over this file.
25313 rm -r directory/b
25314 genfile --file directory/b
25315 genfile --file directory/a/b
25316
25317 echo Second backup
25318 tar --create --file=archive.2 --listed-incremental=db.2 directory
25319
25320 # Delete a
25321 rm -r directory
25322
25323 echo Restore archive.1
25324 tar -xf archive.1 --listed-incremental=/dev/null --warning=no-timestamp
25325 echo Restore archive.2
25326 tar -xf archive.2 --listed-incremental=/dev/null --warning=no-timestamp
25327 find directory | sort
25328 ) ) >"$at_stdout" 2>"$at_stder1"
25329   at_func_filter_trace $?
25330 else
25331   ( :;
25332 mkdir posix
25333 (cd posix
25334 TEST_TAR_FORMAT=posix
25335 export TEST_TAR_FORMAT
25336 TAR_OPTIONS="-H posix"
25337 export TAR_OPTIONS
25338 rm -rf *
25339
25340
25341 test -z "`sort < /dev/null 2>&1`" || exit 77
25342
25343
25344 install-sh -d directory/b/c >/dev/null && genfile --file directory/b/c/x || exit 77
25345 mkdir directory/a
25346 genfile --file directory/a/a
25347
25348 echo First backup
25349 tar --create --file=archive.1 --listed-incremental=db.1 directory
25350
25351 sleep 2
25352
25353 # Remove directory b and create a file with this name.
25354 # Previous versions were not able to restore over this file.
25355 rm -r directory/b
25356 genfile --file directory/b
25357 genfile --file directory/a/b
25358
25359 echo Second backup
25360 tar --create --file=archive.2 --listed-incremental=db.2 directory
25361
25362 # Delete a
25363 rm -r directory
25364
25365 echo Restore archive.1
25366 tar -xf archive.1 --listed-incremental=/dev/null --warning=no-timestamp
25367 echo Restore archive.2
25368 tar -xf archive.2 --listed-incremental=/dev/null --warning=no-timestamp
25369 find directory | sort
25370 ) ) >"$at_stdout" 2>"$at_stderr"
25371 fi
25372 at_status=$?
25373 at_failed=false
25374 at_func_diff_devnull "$at_stderr" || at_failed=:
25375 echo >>"$at_stdout"; $as_echo "First backup
25376 Second backup
25377 Restore archive.1
25378 Restore archive.2
25379 directory
25380 directory/a
25381 directory/a/a
25382 directory/a/b
25383 directory/b
25384 " | \
25385   $at_diff - "$at_stdout" || at_failed=:
25386 at_func_check_status 0 $at_status "$at_srcdir/chtype.at:30"
25387
25388 $at_failed && at_func_log_failure
25389 $at_traceon; }
25390
25391
25392
25393
25394   $at_traceoff
25395   $at_times_p && times >"$at_times_file"
25396 ) 5>&1 2>&1 | eval $at_tee_pipe
25397 at_status=`cat "$at_status_file"`
25398 #AT_STOP_65
25399 #AT_START_66
25400 # 66. ignfail.at:23: ignfail
25401 at_setup_line='ignfail.at:23'
25402 at_desc="ignfail"
25403 $at_quiet $as_echo_n " 66: $at_desc                                        "
25404 at_xfail=no
25405       test -f $XFAILFILE && at_xfail=yes
25406 echo "#                             -*- compilation -*-" >> "$at_group_log"
25407 (
25408   $as_echo "66. ignfail.at:23: testing ..."
25409   $at_traceon
25410
25411
25412
25413
25414
25415   { $at_traceoff
25416 $as_echo "$at_srcdir/ignfail.at:26:
25417 mkdir v7
25418 (cd v7
25419 TEST_TAR_FORMAT=v7
25420 export TEST_TAR_FORMAT
25421 TAR_OPTIONS=\"-H v7\"
25422 export TAR_OPTIONS
25423 rm -rf *
25424
25425 # The test is meaningless for super-user.
25426
25427 echo "test" > $$
25428 chmod 0 $$
25429 cat $$ > /dev/null 2>&1
25430 result=$?
25431 rm -f $$
25432 test $result -eq 0 && exit 77
25433
25434
25435 touch file
25436 mkdir directory
25437 touch directory/file
25438
25439 echo 1>&2 -----
25440 chmod 000 file
25441 tar cf archive file
25442 status=\$?
25443 chmod 600 file
25444 test \$status = 2 || exit 1
25445
25446 echo 1>&2 -----
25447 chmod 000 file
25448 tar cf archive --ignore-failed-read file || exit 1
25449 status=\$?
25450 chmod 600 file
25451 test \$status = 0 || exit 1
25452
25453 echo 1>&2 -----
25454 chmod 000 directory
25455 tar cf archive directory
25456 status=\$?
25457 chmod 700 directory
25458 test \$status = 2 || exit 1
25459
25460 echo 1>&2 -----
25461 chmod 000 directory
25462 tar cf archive --ignore-failed-read directory || exit 1
25463 status=\$?
25464 chmod 700 directory
25465 test \$status = 0
25466 )"
25467 echo ignfail.at:26 >"$at_check_line_file"
25468
25469 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
25470    false; }; then
25471   ( $at_traceon;
25472 mkdir v7
25473 (cd v7
25474 TEST_TAR_FORMAT=v7
25475 export TEST_TAR_FORMAT
25476 TAR_OPTIONS="-H v7"
25477 export TAR_OPTIONS
25478 rm -rf *
25479
25480 # The test is meaningless for super-user.
25481
25482 echo "test" > $$
25483 chmod 0 $$
25484 cat $$ > /dev/null 2>&1
25485 result=$?
25486 rm -f $$
25487 test $result -eq 0 && exit 77
25488
25489
25490 touch file
25491 mkdir directory
25492 touch directory/file
25493
25494 echo 1>&2 -----
25495 chmod 000 file
25496 tar cf archive file
25497 status=$?
25498 chmod 600 file
25499 test $status = 2 || exit 1
25500
25501 echo 1>&2 -----
25502 chmod 000 file
25503 tar cf archive --ignore-failed-read file || exit 1
25504 status=$?
25505 chmod 600 file
25506 test $status = 0 || exit 1
25507
25508 echo 1>&2 -----
25509 chmod 000 directory
25510 tar cf archive directory
25511 status=$?
25512 chmod 700 directory
25513 test $status = 2 || exit 1
25514
25515 echo 1>&2 -----
25516 chmod 000 directory
25517 tar cf archive --ignore-failed-read directory || exit 1
25518 status=$?
25519 chmod 700 directory
25520 test $status = 0
25521 ) ) >"$at_stdout" 2>"$at_stder1"
25522   at_func_filter_trace $?
25523 else
25524   ( :;
25525 mkdir v7
25526 (cd v7
25527 TEST_TAR_FORMAT=v7
25528 export TEST_TAR_FORMAT
25529 TAR_OPTIONS="-H v7"
25530 export TAR_OPTIONS
25531 rm -rf *
25532
25533 # The test is meaningless for super-user.
25534
25535 echo "test" > $$
25536 chmod 0 $$
25537 cat $$ > /dev/null 2>&1
25538 result=$?
25539 rm -f $$
25540 test $result -eq 0 && exit 77
25541
25542
25543 touch file
25544 mkdir directory
25545 touch directory/file
25546
25547 echo 1>&2 -----
25548 chmod 000 file
25549 tar cf archive file
25550 status=$?
25551 chmod 600 file
25552 test $status = 2 || exit 1
25553
25554 echo 1>&2 -----
25555 chmod 000 file
25556 tar cf archive --ignore-failed-read file || exit 1
25557 status=$?
25558 chmod 600 file
25559 test $status = 0 || exit 1
25560
25561 echo 1>&2 -----
25562 chmod 000 directory
25563 tar cf archive directory
25564 status=$?
25565 chmod 700 directory
25566 test $status = 2 || exit 1
25567
25568 echo 1>&2 -----
25569 chmod 000 directory
25570 tar cf archive --ignore-failed-read directory || exit 1
25571 status=$?
25572 chmod 700 directory
25573 test $status = 0
25574 ) ) >"$at_stdout" 2>"$at_stderr"
25575 fi
25576 at_status=$?
25577 at_failed=false
25578 echo >>"$at_stderr"; $as_echo "-----
25579 tar: file: Cannot open: Permission denied
25580 tar: Exiting with failure status due to previous errors
25581 -----
25582 tar: file: Warning: Cannot open: Permission denied
25583 -----
25584 tar: directory: Cannot open: Permission denied
25585 tar: Exiting with failure status due to previous errors
25586 -----
25587 tar: directory: Warning: Cannot open: Permission denied
25588 " | \
25589   $at_diff - "$at_stderr" || at_failed=:
25590 at_func_diff_devnull "$at_stdout" || at_failed=:
25591 at_func_check_status 0 $at_status "$at_srcdir/ignfail.at:26"
25592
25593 $at_failed && at_func_log_failure
25594 $at_traceon; }
25595
25596               { $at_traceoff
25597 $as_echo "$at_srcdir/ignfail.at:26:
25598 mkdir oldgnu
25599 (cd oldgnu
25600 TEST_TAR_FORMAT=oldgnu
25601 export TEST_TAR_FORMAT
25602 TAR_OPTIONS=\"-H oldgnu\"
25603 export TAR_OPTIONS
25604 rm -rf *
25605
25606 # The test is meaningless for super-user.
25607
25608 echo "test" > $$
25609 chmod 0 $$
25610 cat $$ > /dev/null 2>&1
25611 result=$?
25612 rm -f $$
25613 test $result -eq 0 && exit 77
25614
25615
25616 touch file
25617 mkdir directory
25618 touch directory/file
25619
25620 echo 1>&2 -----
25621 chmod 000 file
25622 tar cf archive file
25623 status=\$?
25624 chmod 600 file
25625 test \$status = 2 || exit 1
25626
25627 echo 1>&2 -----
25628 chmod 000 file
25629 tar cf archive --ignore-failed-read file || exit 1
25630 status=\$?
25631 chmod 600 file
25632 test \$status = 0 || exit 1
25633
25634 echo 1>&2 -----
25635 chmod 000 directory
25636 tar cf archive directory
25637 status=\$?
25638 chmod 700 directory
25639 test \$status = 2 || exit 1
25640
25641 echo 1>&2 -----
25642 chmod 000 directory
25643 tar cf archive --ignore-failed-read directory || exit 1
25644 status=\$?
25645 chmod 700 directory
25646 test \$status = 0
25647 )"
25648 echo ignfail.at:26 >"$at_check_line_file"
25649
25650 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
25651    false; }; then
25652   ( $at_traceon;
25653 mkdir oldgnu
25654 (cd oldgnu
25655 TEST_TAR_FORMAT=oldgnu
25656 export TEST_TAR_FORMAT
25657 TAR_OPTIONS="-H oldgnu"
25658 export TAR_OPTIONS
25659 rm -rf *
25660
25661 # The test is meaningless for super-user.
25662
25663 echo "test" > $$
25664 chmod 0 $$
25665 cat $$ > /dev/null 2>&1
25666 result=$?
25667 rm -f $$
25668 test $result -eq 0 && exit 77
25669
25670
25671 touch file
25672 mkdir directory
25673 touch directory/file
25674
25675 echo 1>&2 -----
25676 chmod 000 file
25677 tar cf archive file
25678 status=$?
25679 chmod 600 file
25680 test $status = 2 || exit 1
25681
25682 echo 1>&2 -----
25683 chmod 000 file
25684 tar cf archive --ignore-failed-read file || exit 1
25685 status=$?
25686 chmod 600 file
25687 test $status = 0 || exit 1
25688
25689 echo 1>&2 -----
25690 chmod 000 directory
25691 tar cf archive directory
25692 status=$?
25693 chmod 700 directory
25694 test $status = 2 || exit 1
25695
25696 echo 1>&2 -----
25697 chmod 000 directory
25698 tar cf archive --ignore-failed-read directory || exit 1
25699 status=$?
25700 chmod 700 directory
25701 test $status = 0
25702 ) ) >"$at_stdout" 2>"$at_stder1"
25703   at_func_filter_trace $?
25704 else
25705   ( :;
25706 mkdir oldgnu
25707 (cd oldgnu
25708 TEST_TAR_FORMAT=oldgnu
25709 export TEST_TAR_FORMAT
25710 TAR_OPTIONS="-H oldgnu"
25711 export TAR_OPTIONS
25712 rm -rf *
25713
25714 # The test is meaningless for super-user.
25715
25716 echo "test" > $$
25717 chmod 0 $$
25718 cat $$ > /dev/null 2>&1
25719 result=$?
25720 rm -f $$
25721 test $result -eq 0 && exit 77
25722
25723
25724 touch file
25725 mkdir directory
25726 touch directory/file
25727
25728 echo 1>&2 -----
25729 chmod 000 file
25730 tar cf archive file
25731 status=$?
25732 chmod 600 file
25733 test $status = 2 || exit 1
25734
25735 echo 1>&2 -----
25736 chmod 000 file
25737 tar cf archive --ignore-failed-read file || exit 1
25738 status=$?
25739 chmod 600 file
25740 test $status = 0 || exit 1
25741
25742 echo 1>&2 -----
25743 chmod 000 directory
25744 tar cf archive directory
25745 status=$?
25746 chmod 700 directory
25747 test $status = 2 || exit 1
25748
25749 echo 1>&2 -----
25750 chmod 000 directory
25751 tar cf archive --ignore-failed-read directory || exit 1
25752 status=$?
25753 chmod 700 directory
25754 test $status = 0
25755 ) ) >"$at_stdout" 2>"$at_stderr"
25756 fi
25757 at_status=$?
25758 at_failed=false
25759 echo >>"$at_stderr"; $as_echo "-----
25760 tar: file: Cannot open: Permission denied
25761 tar: Exiting with failure status due to previous errors
25762 -----
25763 tar: file: Warning: Cannot open: Permission denied
25764 -----
25765 tar: directory: Cannot open: Permission denied
25766 tar: Exiting with failure status due to previous errors
25767 -----
25768 tar: directory: Warning: Cannot open: Permission denied
25769 " | \
25770   $at_diff - "$at_stderr" || at_failed=:
25771 at_func_diff_devnull "$at_stdout" || at_failed=:
25772 at_func_check_status 0 $at_status "$at_srcdir/ignfail.at:26"
25773
25774 $at_failed && at_func_log_failure
25775 $at_traceon; }
25776
25777               { $at_traceoff
25778 $as_echo "$at_srcdir/ignfail.at:26:
25779 mkdir ustar
25780 (cd ustar
25781 TEST_TAR_FORMAT=ustar
25782 export TEST_TAR_FORMAT
25783 TAR_OPTIONS=\"-H ustar\"
25784 export TAR_OPTIONS
25785 rm -rf *
25786
25787 # The test is meaningless for super-user.
25788
25789 echo "test" > $$
25790 chmod 0 $$
25791 cat $$ > /dev/null 2>&1
25792 result=$?
25793 rm -f $$
25794 test $result -eq 0 && exit 77
25795
25796
25797 touch file
25798 mkdir directory
25799 touch directory/file
25800
25801 echo 1>&2 -----
25802 chmod 000 file
25803 tar cf archive file
25804 status=\$?
25805 chmod 600 file
25806 test \$status = 2 || exit 1
25807
25808 echo 1>&2 -----
25809 chmod 000 file
25810 tar cf archive --ignore-failed-read file || exit 1
25811 status=\$?
25812 chmod 600 file
25813 test \$status = 0 || exit 1
25814
25815 echo 1>&2 -----
25816 chmod 000 directory
25817 tar cf archive directory
25818 status=\$?
25819 chmod 700 directory
25820 test \$status = 2 || exit 1
25821
25822 echo 1>&2 -----
25823 chmod 000 directory
25824 tar cf archive --ignore-failed-read directory || exit 1
25825 status=\$?
25826 chmod 700 directory
25827 test \$status = 0
25828 )"
25829 echo ignfail.at:26 >"$at_check_line_file"
25830
25831 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
25832    false; }; then
25833   ( $at_traceon;
25834 mkdir ustar
25835 (cd ustar
25836 TEST_TAR_FORMAT=ustar
25837 export TEST_TAR_FORMAT
25838 TAR_OPTIONS="-H ustar"
25839 export TAR_OPTIONS
25840 rm -rf *
25841
25842 # The test is meaningless for super-user.
25843
25844 echo "test" > $$
25845 chmod 0 $$
25846 cat $$ > /dev/null 2>&1
25847 result=$?
25848 rm -f $$
25849 test $result -eq 0 && exit 77
25850
25851
25852 touch file
25853 mkdir directory
25854 touch directory/file
25855
25856 echo 1>&2 -----
25857 chmod 000 file
25858 tar cf archive file
25859 status=$?
25860 chmod 600 file
25861 test $status = 2 || exit 1
25862
25863 echo 1>&2 -----
25864 chmod 000 file
25865 tar cf archive --ignore-failed-read file || exit 1
25866 status=$?
25867 chmod 600 file
25868 test $status = 0 || exit 1
25869
25870 echo 1>&2 -----
25871 chmod 000 directory
25872 tar cf archive directory
25873 status=$?
25874 chmod 700 directory
25875 test $status = 2 || exit 1
25876
25877 echo 1>&2 -----
25878 chmod 000 directory
25879 tar cf archive --ignore-failed-read directory || exit 1
25880 status=$?
25881 chmod 700 directory
25882 test $status = 0
25883 ) ) >"$at_stdout" 2>"$at_stder1"
25884   at_func_filter_trace $?
25885 else
25886   ( :;
25887 mkdir ustar
25888 (cd ustar
25889 TEST_TAR_FORMAT=ustar
25890 export TEST_TAR_FORMAT
25891 TAR_OPTIONS="-H ustar"
25892 export TAR_OPTIONS
25893 rm -rf *
25894
25895 # The test is meaningless for super-user.
25896
25897 echo "test" > $$
25898 chmod 0 $$
25899 cat $$ > /dev/null 2>&1
25900 result=$?
25901 rm -f $$
25902 test $result -eq 0 && exit 77
25903
25904
25905 touch file
25906 mkdir directory
25907 touch directory/file
25908
25909 echo 1>&2 -----
25910 chmod 000 file
25911 tar cf archive file
25912 status=$?
25913 chmod 600 file
25914 test $status = 2 || exit 1
25915
25916 echo 1>&2 -----
25917 chmod 000 file
25918 tar cf archive --ignore-failed-read file || exit 1
25919 status=$?
25920 chmod 600 file
25921 test $status = 0 || exit 1
25922
25923 echo 1>&2 -----
25924 chmod 000 directory
25925 tar cf archive directory
25926 status=$?
25927 chmod 700 directory
25928 test $status = 2 || exit 1
25929
25930 echo 1>&2 -----
25931 chmod 000 directory
25932 tar cf archive --ignore-failed-read directory || exit 1
25933 status=$?
25934 chmod 700 directory
25935 test $status = 0
25936 ) ) >"$at_stdout" 2>"$at_stderr"
25937 fi
25938 at_status=$?
25939 at_failed=false
25940 echo >>"$at_stderr"; $as_echo "-----
25941 tar: file: Cannot open: Permission denied
25942 tar: Exiting with failure status due to previous errors
25943 -----
25944 tar: file: Warning: Cannot open: Permission denied
25945 -----
25946 tar: directory: Cannot open: Permission denied
25947 tar: Exiting with failure status due to previous errors
25948 -----
25949 tar: directory: Warning: Cannot open: Permission denied
25950 " | \
25951   $at_diff - "$at_stderr" || at_failed=:
25952 at_func_diff_devnull "$at_stdout" || at_failed=:
25953 at_func_check_status 0 $at_status "$at_srcdir/ignfail.at:26"
25954
25955 $at_failed && at_func_log_failure
25956 $at_traceon; }
25957
25958               { $at_traceoff
25959 $as_echo "$at_srcdir/ignfail.at:26:
25960 mkdir posix
25961 (cd posix
25962 TEST_TAR_FORMAT=posix
25963 export TEST_TAR_FORMAT
25964 TAR_OPTIONS=\"-H posix\"
25965 export TAR_OPTIONS
25966 rm -rf *
25967
25968 # The test is meaningless for super-user.
25969
25970 echo "test" > $$
25971 chmod 0 $$
25972 cat $$ > /dev/null 2>&1
25973 result=$?
25974 rm -f $$
25975 test $result -eq 0 && exit 77
25976
25977
25978 touch file
25979 mkdir directory
25980 touch directory/file
25981
25982 echo 1>&2 -----
25983 chmod 000 file
25984 tar cf archive file
25985 status=\$?
25986 chmod 600 file
25987 test \$status = 2 || exit 1
25988
25989 echo 1>&2 -----
25990 chmod 000 file
25991 tar cf archive --ignore-failed-read file || exit 1
25992 status=\$?
25993 chmod 600 file
25994 test \$status = 0 || exit 1
25995
25996 echo 1>&2 -----
25997 chmod 000 directory
25998 tar cf archive directory
25999 status=\$?
26000 chmod 700 directory
26001 test \$status = 2 || exit 1
26002
26003 echo 1>&2 -----
26004 chmod 000 directory
26005 tar cf archive --ignore-failed-read directory || exit 1
26006 status=\$?
26007 chmod 700 directory
26008 test \$status = 0
26009 )"
26010 echo ignfail.at:26 >"$at_check_line_file"
26011
26012 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
26013    false; }; then
26014   ( $at_traceon;
26015 mkdir posix
26016 (cd posix
26017 TEST_TAR_FORMAT=posix
26018 export TEST_TAR_FORMAT
26019 TAR_OPTIONS="-H posix"
26020 export TAR_OPTIONS
26021 rm -rf *
26022
26023 # The test is meaningless for super-user.
26024
26025 echo "test" > $$
26026 chmod 0 $$
26027 cat $$ > /dev/null 2>&1
26028 result=$?
26029 rm -f $$
26030 test $result -eq 0 && exit 77
26031
26032
26033 touch file
26034 mkdir directory
26035 touch directory/file
26036
26037 echo 1>&2 -----
26038 chmod 000 file
26039 tar cf archive file
26040 status=$?
26041 chmod 600 file
26042 test $status = 2 || exit 1
26043
26044 echo 1>&2 -----
26045 chmod 000 file
26046 tar cf archive --ignore-failed-read file || exit 1
26047 status=$?
26048 chmod 600 file
26049 test $status = 0 || exit 1
26050
26051 echo 1>&2 -----
26052 chmod 000 directory
26053 tar cf archive directory
26054 status=$?
26055 chmod 700 directory
26056 test $status = 2 || exit 1
26057
26058 echo 1>&2 -----
26059 chmod 000 directory
26060 tar cf archive --ignore-failed-read directory || exit 1
26061 status=$?
26062 chmod 700 directory
26063 test $status = 0
26064 ) ) >"$at_stdout" 2>"$at_stder1"
26065   at_func_filter_trace $?
26066 else
26067   ( :;
26068 mkdir posix
26069 (cd posix
26070 TEST_TAR_FORMAT=posix
26071 export TEST_TAR_FORMAT
26072 TAR_OPTIONS="-H posix"
26073 export TAR_OPTIONS
26074 rm -rf *
26075
26076 # The test is meaningless for super-user.
26077
26078 echo "test" > $$
26079 chmod 0 $$
26080 cat $$ > /dev/null 2>&1
26081 result=$?
26082 rm -f $$
26083 test $result -eq 0 && exit 77
26084
26085
26086 touch file
26087 mkdir directory
26088 touch directory/file
26089
26090 echo 1>&2 -----
26091 chmod 000 file
26092 tar cf archive file
26093 status=$?
26094 chmod 600 file
26095 test $status = 2 || exit 1
26096
26097 echo 1>&2 -----
26098 chmod 000 file
26099 tar cf archive --ignore-failed-read file || exit 1
26100 status=$?
26101 chmod 600 file
26102 test $status = 0 || exit 1
26103
26104 echo 1>&2 -----
26105 chmod 000 directory
26106 tar cf archive directory
26107 status=$?
26108 chmod 700 directory
26109 test $status = 2 || exit 1
26110
26111 echo 1>&2 -----
26112 chmod 000 directory
26113 tar cf archive --ignore-failed-read directory || exit 1
26114 status=$?
26115 chmod 700 directory
26116 test $status = 0
26117 ) ) >"$at_stdout" 2>"$at_stderr"
26118 fi
26119 at_status=$?
26120 at_failed=false
26121 echo >>"$at_stderr"; $as_echo "-----
26122 tar: file: Cannot open: Permission denied
26123 tar: Exiting with failure status due to previous errors
26124 -----
26125 tar: file: Warning: Cannot open: Permission denied
26126 -----
26127 tar: directory: Cannot open: Permission denied
26128 tar: Exiting with failure status due to previous errors
26129 -----
26130 tar: directory: Warning: Cannot open: Permission denied
26131 " | \
26132   $at_diff - "$at_stderr" || at_failed=:
26133 at_func_diff_devnull "$at_stdout" || at_failed=:
26134 at_func_check_status 0 $at_status "$at_srcdir/ignfail.at:26"
26135
26136 $at_failed && at_func_log_failure
26137 $at_traceon; }
26138
26139               { $at_traceoff
26140 $as_echo "$at_srcdir/ignfail.at:26:
26141 mkdir gnu
26142 (cd gnu
26143 TEST_TAR_FORMAT=gnu
26144 export TEST_TAR_FORMAT
26145 TAR_OPTIONS=\"-H gnu\"
26146 export TAR_OPTIONS
26147 rm -rf *
26148
26149 # The test is meaningless for super-user.
26150
26151 echo "test" > $$
26152 chmod 0 $$
26153 cat $$ > /dev/null 2>&1
26154 result=$?
26155 rm -f $$
26156 test $result -eq 0 && exit 77
26157
26158
26159 touch file
26160 mkdir directory
26161 touch directory/file
26162
26163 echo 1>&2 -----
26164 chmod 000 file
26165 tar cf archive file
26166 status=\$?
26167 chmod 600 file
26168 test \$status = 2 || exit 1
26169
26170 echo 1>&2 -----
26171 chmod 000 file
26172 tar cf archive --ignore-failed-read file || exit 1
26173 status=\$?
26174 chmod 600 file
26175 test \$status = 0 || exit 1
26176
26177 echo 1>&2 -----
26178 chmod 000 directory
26179 tar cf archive directory
26180 status=\$?
26181 chmod 700 directory
26182 test \$status = 2 || exit 1
26183
26184 echo 1>&2 -----
26185 chmod 000 directory
26186 tar cf archive --ignore-failed-read directory || exit 1
26187 status=\$?
26188 chmod 700 directory
26189 test \$status = 0
26190 )"
26191 echo ignfail.at:26 >"$at_check_line_file"
26192
26193 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
26194    false; }; then
26195   ( $at_traceon;
26196 mkdir gnu
26197 (cd gnu
26198 TEST_TAR_FORMAT=gnu
26199 export TEST_TAR_FORMAT
26200 TAR_OPTIONS="-H gnu"
26201 export TAR_OPTIONS
26202 rm -rf *
26203
26204 # The test is meaningless for super-user.
26205
26206 echo "test" > $$
26207 chmod 0 $$
26208 cat $$ > /dev/null 2>&1
26209 result=$?
26210 rm -f $$
26211 test $result -eq 0 && exit 77
26212
26213
26214 touch file
26215 mkdir directory
26216 touch directory/file
26217
26218 echo 1>&2 -----
26219 chmod 000 file
26220 tar cf archive file
26221 status=$?
26222 chmod 600 file
26223 test $status = 2 || exit 1
26224
26225 echo 1>&2 -----
26226 chmod 000 file
26227 tar cf archive --ignore-failed-read file || exit 1
26228 status=$?
26229 chmod 600 file
26230 test $status = 0 || exit 1
26231
26232 echo 1>&2 -----
26233 chmod 000 directory
26234 tar cf archive directory
26235 status=$?
26236 chmod 700 directory
26237 test $status = 2 || exit 1
26238
26239 echo 1>&2 -----
26240 chmod 000 directory
26241 tar cf archive --ignore-failed-read directory || exit 1
26242 status=$?
26243 chmod 700 directory
26244 test $status = 0
26245 ) ) >"$at_stdout" 2>"$at_stder1"
26246   at_func_filter_trace $?
26247 else
26248   ( :;
26249 mkdir gnu
26250 (cd gnu
26251 TEST_TAR_FORMAT=gnu
26252 export TEST_TAR_FORMAT
26253 TAR_OPTIONS="-H gnu"
26254 export TAR_OPTIONS
26255 rm -rf *
26256
26257 # The test is meaningless for super-user.
26258
26259 echo "test" > $$
26260 chmod 0 $$
26261 cat $$ > /dev/null 2>&1
26262 result=$?
26263 rm -f $$
26264 test $result -eq 0 && exit 77
26265
26266
26267 touch file
26268 mkdir directory
26269 touch directory/file
26270
26271 echo 1>&2 -----
26272 chmod 000 file
26273 tar cf archive file
26274 status=$?
26275 chmod 600 file
26276 test $status = 2 || exit 1
26277
26278 echo 1>&2 -----
26279 chmod 000 file
26280 tar cf archive --ignore-failed-read file || exit 1
26281 status=$?
26282 chmod 600 file
26283 test $status = 0 || exit 1
26284
26285 echo 1>&2 -----
26286 chmod 000 directory
26287 tar cf archive directory
26288 status=$?
26289 chmod 700 directory
26290 test $status = 2 || exit 1
26291
26292 echo 1>&2 -----
26293 chmod 000 directory
26294 tar cf archive --ignore-failed-read directory || exit 1
26295 status=$?
26296 chmod 700 directory
26297 test $status = 0
26298 ) ) >"$at_stdout" 2>"$at_stderr"
26299 fi
26300 at_status=$?
26301 at_failed=false
26302 echo >>"$at_stderr"; $as_echo "-----
26303 tar: file: Cannot open: Permission denied
26304 tar: Exiting with failure status due to previous errors
26305 -----
26306 tar: file: Warning: Cannot open: Permission denied
26307 -----
26308 tar: directory: Cannot open: Permission denied
26309 tar: Exiting with failure status due to previous errors
26310 -----
26311 tar: directory: Warning: Cannot open: Permission denied
26312 " | \
26313   $at_diff - "$at_stderr" || at_failed=:
26314 at_func_diff_devnull "$at_stdout" || at_failed=:
26315 at_func_check_status 0 $at_status "$at_srcdir/ignfail.at:26"
26316
26317 $at_failed && at_func_log_failure
26318 $at_traceon; }
26319
26320
26321
26322
26323   $at_traceoff
26324   $at_times_p && times >"$at_times_file"
26325 ) 5>&1 2>&1 | eval $at_tee_pipe
26326 at_status=`cat "$at_status_file"`
26327 #AT_STOP_66
26328 #AT_START_67
26329 # 67. link01.at:33: link count gt 2
26330 at_setup_line='link01.at:33'
26331 at_desc="link count gt 2"
26332 $at_quiet $as_echo_n " 67: $at_desc                                "
26333 at_xfail=no
26334       test -f $XFAILFILE && at_xfail=yes
26335 echo "#                             -*- compilation -*-" >> "$at_group_log"
26336 (
26337   $as_echo "67. link01.at:33: testing ..."
26338   $at_traceon
26339
26340
26341
26342
26343
26344   { $at_traceoff
26345 $as_echo "$at_srcdir/link01.at:36:
26346 mkdir v7
26347 (cd v7
26348 TEST_TAR_FORMAT=v7
26349 export TEST_TAR_FORMAT
26350 TAR_OPTIONS=\"-H v7\"
26351 export TAR_OPTIONS
26352 rm -rf *
26353
26354 mkdir directory
26355 mkdir directory/test1
26356 mkdir directory/test2
26357
26358 echo TEST > directory/test1/test.txt
26359 ln directory/test1/test.txt directory/test2/test.txt || exit 77
26360
26361 tar cf archive directory/test1/test.txt directory/test1/test.txt
26362
26363 rm -r directory
26364 tar xf archive --warning=no-timestamp
26365
26366 ls directory/test1
26367 )"
26368 echo link01.at:36 >"$at_check_line_file"
26369
26370 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
26371    false; }; then
26372   ( $at_traceon;
26373 mkdir v7
26374 (cd v7
26375 TEST_TAR_FORMAT=v7
26376 export TEST_TAR_FORMAT
26377 TAR_OPTIONS="-H v7"
26378 export TAR_OPTIONS
26379 rm -rf *
26380
26381 mkdir directory
26382 mkdir directory/test1
26383 mkdir directory/test2
26384
26385 echo TEST > directory/test1/test.txt
26386 ln directory/test1/test.txt directory/test2/test.txt || exit 77
26387
26388 tar cf archive directory/test1/test.txt directory/test1/test.txt
26389
26390 rm -r directory
26391 tar xf archive --warning=no-timestamp
26392
26393 ls directory/test1
26394 ) ) >"$at_stdout" 2>"$at_stder1"
26395   at_func_filter_trace $?
26396 else
26397   ( :;
26398 mkdir v7
26399 (cd v7
26400 TEST_TAR_FORMAT=v7
26401 export TEST_TAR_FORMAT
26402 TAR_OPTIONS="-H v7"
26403 export TAR_OPTIONS
26404 rm -rf *
26405
26406 mkdir directory
26407 mkdir directory/test1
26408 mkdir directory/test2
26409
26410 echo TEST > directory/test1/test.txt
26411 ln directory/test1/test.txt directory/test2/test.txt || exit 77
26412
26413 tar cf archive directory/test1/test.txt directory/test1/test.txt
26414
26415 rm -r directory
26416 tar xf archive --warning=no-timestamp
26417
26418 ls directory/test1
26419 ) ) >"$at_stdout" 2>"$at_stderr"
26420 fi
26421 at_status=$?
26422 at_failed=false
26423 at_func_diff_devnull "$at_stderr" || at_failed=:
26424 echo >>"$at_stdout"; $as_echo "test.txt
26425 " | \
26426   $at_diff - "$at_stdout" || at_failed=:
26427 at_func_check_status 0 $at_status "$at_srcdir/link01.at:36"
26428
26429 $at_failed && at_func_log_failure
26430 $at_traceon; }
26431
26432               { $at_traceoff
26433 $as_echo "$at_srcdir/link01.at:36:
26434 mkdir oldgnu
26435 (cd oldgnu
26436 TEST_TAR_FORMAT=oldgnu
26437 export TEST_TAR_FORMAT
26438 TAR_OPTIONS=\"-H oldgnu\"
26439 export TAR_OPTIONS
26440 rm -rf *
26441
26442 mkdir directory
26443 mkdir directory/test1
26444 mkdir directory/test2
26445
26446 echo TEST > directory/test1/test.txt
26447 ln directory/test1/test.txt directory/test2/test.txt || exit 77
26448
26449 tar cf archive directory/test1/test.txt directory/test1/test.txt
26450
26451 rm -r directory
26452 tar xf archive --warning=no-timestamp
26453
26454 ls directory/test1
26455 )"
26456 echo link01.at:36 >"$at_check_line_file"
26457
26458 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
26459    false; }; then
26460   ( $at_traceon;
26461 mkdir oldgnu
26462 (cd oldgnu
26463 TEST_TAR_FORMAT=oldgnu
26464 export TEST_TAR_FORMAT
26465 TAR_OPTIONS="-H oldgnu"
26466 export TAR_OPTIONS
26467 rm -rf *
26468
26469 mkdir directory
26470 mkdir directory/test1
26471 mkdir directory/test2
26472
26473 echo TEST > directory/test1/test.txt
26474 ln directory/test1/test.txt directory/test2/test.txt || exit 77
26475
26476 tar cf archive directory/test1/test.txt directory/test1/test.txt
26477
26478 rm -r directory
26479 tar xf archive --warning=no-timestamp
26480
26481 ls directory/test1
26482 ) ) >"$at_stdout" 2>"$at_stder1"
26483   at_func_filter_trace $?
26484 else
26485   ( :;
26486 mkdir oldgnu
26487 (cd oldgnu
26488 TEST_TAR_FORMAT=oldgnu
26489 export TEST_TAR_FORMAT
26490 TAR_OPTIONS="-H oldgnu"
26491 export TAR_OPTIONS
26492 rm -rf *
26493
26494 mkdir directory
26495 mkdir directory/test1
26496 mkdir directory/test2
26497
26498 echo TEST > directory/test1/test.txt
26499 ln directory/test1/test.txt directory/test2/test.txt || exit 77
26500
26501 tar cf archive directory/test1/test.txt directory/test1/test.txt
26502
26503 rm -r directory
26504 tar xf archive --warning=no-timestamp
26505
26506 ls directory/test1
26507 ) ) >"$at_stdout" 2>"$at_stderr"
26508 fi
26509 at_status=$?
26510 at_failed=false
26511 at_func_diff_devnull "$at_stderr" || at_failed=:
26512 echo >>"$at_stdout"; $as_echo "test.txt
26513 " | \
26514   $at_diff - "$at_stdout" || at_failed=:
26515 at_func_check_status 0 $at_status "$at_srcdir/link01.at:36"
26516
26517 $at_failed && at_func_log_failure
26518 $at_traceon; }
26519
26520               { $at_traceoff
26521 $as_echo "$at_srcdir/link01.at:36:
26522 mkdir ustar
26523 (cd ustar
26524 TEST_TAR_FORMAT=ustar
26525 export TEST_TAR_FORMAT
26526 TAR_OPTIONS=\"-H ustar\"
26527 export TAR_OPTIONS
26528 rm -rf *
26529
26530 mkdir directory
26531 mkdir directory/test1
26532 mkdir directory/test2
26533
26534 echo TEST > directory/test1/test.txt
26535 ln directory/test1/test.txt directory/test2/test.txt || exit 77
26536
26537 tar cf archive directory/test1/test.txt directory/test1/test.txt
26538
26539 rm -r directory
26540 tar xf archive --warning=no-timestamp
26541
26542 ls directory/test1
26543 )"
26544 echo link01.at:36 >"$at_check_line_file"
26545
26546 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
26547    false; }; then
26548   ( $at_traceon;
26549 mkdir ustar
26550 (cd ustar
26551 TEST_TAR_FORMAT=ustar
26552 export TEST_TAR_FORMAT
26553 TAR_OPTIONS="-H ustar"
26554 export TAR_OPTIONS
26555 rm -rf *
26556
26557 mkdir directory
26558 mkdir directory/test1
26559 mkdir directory/test2
26560
26561 echo TEST > directory/test1/test.txt
26562 ln directory/test1/test.txt directory/test2/test.txt || exit 77
26563
26564 tar cf archive directory/test1/test.txt directory/test1/test.txt
26565
26566 rm -r directory
26567 tar xf archive --warning=no-timestamp
26568
26569 ls directory/test1
26570 ) ) >"$at_stdout" 2>"$at_stder1"
26571   at_func_filter_trace $?
26572 else
26573   ( :;
26574 mkdir ustar
26575 (cd ustar
26576 TEST_TAR_FORMAT=ustar
26577 export TEST_TAR_FORMAT
26578 TAR_OPTIONS="-H ustar"
26579 export TAR_OPTIONS
26580 rm -rf *
26581
26582 mkdir directory
26583 mkdir directory/test1
26584 mkdir directory/test2
26585
26586 echo TEST > directory/test1/test.txt
26587 ln directory/test1/test.txt directory/test2/test.txt || exit 77
26588
26589 tar cf archive directory/test1/test.txt directory/test1/test.txt
26590
26591 rm -r directory
26592 tar xf archive --warning=no-timestamp
26593
26594 ls directory/test1
26595 ) ) >"$at_stdout" 2>"$at_stderr"
26596 fi
26597 at_status=$?
26598 at_failed=false
26599 at_func_diff_devnull "$at_stderr" || at_failed=:
26600 echo >>"$at_stdout"; $as_echo "test.txt
26601 " | \
26602   $at_diff - "$at_stdout" || at_failed=:
26603 at_func_check_status 0 $at_status "$at_srcdir/link01.at:36"
26604
26605 $at_failed && at_func_log_failure
26606 $at_traceon; }
26607
26608               { $at_traceoff
26609 $as_echo "$at_srcdir/link01.at:36:
26610 mkdir posix
26611 (cd posix
26612 TEST_TAR_FORMAT=posix
26613 export TEST_TAR_FORMAT
26614 TAR_OPTIONS=\"-H posix\"
26615 export TAR_OPTIONS
26616 rm -rf *
26617
26618 mkdir directory
26619 mkdir directory/test1
26620 mkdir directory/test2
26621
26622 echo TEST > directory/test1/test.txt
26623 ln directory/test1/test.txt directory/test2/test.txt || exit 77
26624
26625 tar cf archive directory/test1/test.txt directory/test1/test.txt
26626
26627 rm -r directory
26628 tar xf archive --warning=no-timestamp
26629
26630 ls directory/test1
26631 )"
26632 echo link01.at:36 >"$at_check_line_file"
26633
26634 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
26635    false; }; then
26636   ( $at_traceon;
26637 mkdir posix
26638 (cd posix
26639 TEST_TAR_FORMAT=posix
26640 export TEST_TAR_FORMAT
26641 TAR_OPTIONS="-H posix"
26642 export TAR_OPTIONS
26643 rm -rf *
26644
26645 mkdir directory
26646 mkdir directory/test1
26647 mkdir directory/test2
26648
26649 echo TEST > directory/test1/test.txt
26650 ln directory/test1/test.txt directory/test2/test.txt || exit 77
26651
26652 tar cf archive directory/test1/test.txt directory/test1/test.txt
26653
26654 rm -r directory
26655 tar xf archive --warning=no-timestamp
26656
26657 ls directory/test1
26658 ) ) >"$at_stdout" 2>"$at_stder1"
26659   at_func_filter_trace $?
26660 else
26661   ( :;
26662 mkdir posix
26663 (cd posix
26664 TEST_TAR_FORMAT=posix
26665 export TEST_TAR_FORMAT
26666 TAR_OPTIONS="-H posix"
26667 export TAR_OPTIONS
26668 rm -rf *
26669
26670 mkdir directory
26671 mkdir directory/test1
26672 mkdir directory/test2
26673
26674 echo TEST > directory/test1/test.txt
26675 ln directory/test1/test.txt directory/test2/test.txt || exit 77
26676
26677 tar cf archive directory/test1/test.txt directory/test1/test.txt
26678
26679 rm -r directory
26680 tar xf archive --warning=no-timestamp
26681
26682 ls directory/test1
26683 ) ) >"$at_stdout" 2>"$at_stderr"
26684 fi
26685 at_status=$?
26686 at_failed=false
26687 at_func_diff_devnull "$at_stderr" || at_failed=:
26688 echo >>"$at_stdout"; $as_echo "test.txt
26689 " | \
26690   $at_diff - "$at_stdout" || at_failed=:
26691 at_func_check_status 0 $at_status "$at_srcdir/link01.at:36"
26692
26693 $at_failed && at_func_log_failure
26694 $at_traceon; }
26695
26696               { $at_traceoff
26697 $as_echo "$at_srcdir/link01.at:36:
26698 mkdir gnu
26699 (cd gnu
26700 TEST_TAR_FORMAT=gnu
26701 export TEST_TAR_FORMAT
26702 TAR_OPTIONS=\"-H gnu\"
26703 export TAR_OPTIONS
26704 rm -rf *
26705
26706 mkdir directory
26707 mkdir directory/test1
26708 mkdir directory/test2
26709
26710 echo TEST > directory/test1/test.txt
26711 ln directory/test1/test.txt directory/test2/test.txt || exit 77
26712
26713 tar cf archive directory/test1/test.txt directory/test1/test.txt
26714
26715 rm -r directory
26716 tar xf archive --warning=no-timestamp
26717
26718 ls directory/test1
26719 )"
26720 echo link01.at:36 >"$at_check_line_file"
26721
26722 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
26723    false; }; then
26724   ( $at_traceon;
26725 mkdir gnu
26726 (cd gnu
26727 TEST_TAR_FORMAT=gnu
26728 export TEST_TAR_FORMAT
26729 TAR_OPTIONS="-H gnu"
26730 export TAR_OPTIONS
26731 rm -rf *
26732
26733 mkdir directory
26734 mkdir directory/test1
26735 mkdir directory/test2
26736
26737 echo TEST > directory/test1/test.txt
26738 ln directory/test1/test.txt directory/test2/test.txt || exit 77
26739
26740 tar cf archive directory/test1/test.txt directory/test1/test.txt
26741
26742 rm -r directory
26743 tar xf archive --warning=no-timestamp
26744
26745 ls directory/test1
26746 ) ) >"$at_stdout" 2>"$at_stder1"
26747   at_func_filter_trace $?
26748 else
26749   ( :;
26750 mkdir gnu
26751 (cd gnu
26752 TEST_TAR_FORMAT=gnu
26753 export TEST_TAR_FORMAT
26754 TAR_OPTIONS="-H gnu"
26755 export TAR_OPTIONS
26756 rm -rf *
26757
26758 mkdir directory
26759 mkdir directory/test1
26760 mkdir directory/test2
26761
26762 echo TEST > directory/test1/test.txt
26763 ln directory/test1/test.txt directory/test2/test.txt || exit 77
26764
26765 tar cf archive directory/test1/test.txt directory/test1/test.txt
26766
26767 rm -r directory
26768 tar xf archive --warning=no-timestamp
26769
26770 ls directory/test1
26771 ) ) >"$at_stdout" 2>"$at_stderr"
26772 fi
26773 at_status=$?
26774 at_failed=false
26775 at_func_diff_devnull "$at_stderr" || at_failed=:
26776 echo >>"$at_stdout"; $as_echo "test.txt
26777 " | \
26778   $at_diff - "$at_stdout" || at_failed=:
26779 at_func_check_status 0 $at_status "$at_srcdir/link01.at:36"
26780
26781 $at_failed && at_func_log_failure
26782 $at_traceon; }
26783
26784
26785
26786
26787   $at_traceoff
26788   $at_times_p && times >"$at_times_file"
26789 ) 5>&1 2>&1 | eval $at_tee_pipe
26790 at_status=`cat "$at_status_file"`
26791 #AT_STOP_67
26792 #AT_START_68
26793 # 68. link02.at:32: preserve hard links with --remove-files
26794 at_setup_line='link02.at:32'
26795 at_desc="preserve hard links with --remove-files"
26796 $at_quiet $as_echo_n " 68: $at_desc        "
26797 at_xfail=no
26798       test -f $XFAILFILE && at_xfail=yes
26799 echo "#                             -*- compilation -*-" >> "$at_group_log"
26800 (
26801   $as_echo "68. link02.at:32: testing ..."
26802   $at_traceon
26803
26804
26805
26806
26807
26808   { $at_traceoff
26809 $as_echo "$at_srcdir/link02.at:35:
26810 mkdir v7
26811 (cd v7
26812 TEST_TAR_FORMAT=v7
26813 export TEST_TAR_FORMAT
26814 TAR_OPTIONS=\"-H v7\"
26815 export TAR_OPTIONS
26816 rm -rf *
26817
26818 genfile -l 64 -f file1
26819 ln file1 file2
26820 ln file2 file3
26821 ln file3 file4
26822 tar -c -f archive --remove-files file1 file2 file3 file4
26823 tar tfv archive | sed -n 's/.*file[2-4] link to //p'
26824 )"
26825 echo link02.at:35 >"$at_check_line_file"
26826
26827 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
26828    false; }; then
26829   ( $at_traceon;
26830 mkdir v7
26831 (cd v7
26832 TEST_TAR_FORMAT=v7
26833 export TEST_TAR_FORMAT
26834 TAR_OPTIONS="-H v7"
26835 export TAR_OPTIONS
26836 rm -rf *
26837
26838 genfile -l 64 -f file1
26839 ln file1 file2
26840 ln file2 file3
26841 ln file3 file4
26842 tar -c -f archive --remove-files file1 file2 file3 file4
26843 tar tfv archive | sed -n 's/.*file[2-4] link to //p'
26844 ) ) >"$at_stdout" 2>"$at_stder1"
26845   at_func_filter_trace $?
26846 else
26847   ( :;
26848 mkdir v7
26849 (cd v7
26850 TEST_TAR_FORMAT=v7
26851 export TEST_TAR_FORMAT
26852 TAR_OPTIONS="-H v7"
26853 export TAR_OPTIONS
26854 rm -rf *
26855
26856 genfile -l 64 -f file1
26857 ln file1 file2
26858 ln file2 file3
26859 ln file3 file4
26860 tar -c -f archive --remove-files file1 file2 file3 file4
26861 tar tfv archive | sed -n 's/.*file[2-4] link to //p'
26862 ) ) >"$at_stdout" 2>"$at_stderr"
26863 fi
26864 at_status=$?
26865 at_failed=false
26866 at_func_diff_devnull "$at_stderr" || at_failed=:
26867 echo >>"$at_stdout"; $as_echo "file1
26868 file1
26869 file1
26870 " | \
26871   $at_diff - "$at_stdout" || at_failed=:
26872 at_func_check_status 0 $at_status "$at_srcdir/link02.at:35"
26873
26874 $at_failed && at_func_log_failure
26875 $at_traceon; }
26876
26877               { $at_traceoff
26878 $as_echo "$at_srcdir/link02.at:35:
26879 mkdir oldgnu
26880 (cd oldgnu
26881 TEST_TAR_FORMAT=oldgnu
26882 export TEST_TAR_FORMAT
26883 TAR_OPTIONS=\"-H oldgnu\"
26884 export TAR_OPTIONS
26885 rm -rf *
26886
26887 genfile -l 64 -f file1
26888 ln file1 file2
26889 ln file2 file3
26890 ln file3 file4
26891 tar -c -f archive --remove-files file1 file2 file3 file4
26892 tar tfv archive | sed -n 's/.*file[2-4] link to //p'
26893 )"
26894 echo link02.at:35 >"$at_check_line_file"
26895
26896 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
26897    false; }; then
26898   ( $at_traceon;
26899 mkdir oldgnu
26900 (cd oldgnu
26901 TEST_TAR_FORMAT=oldgnu
26902 export TEST_TAR_FORMAT
26903 TAR_OPTIONS="-H oldgnu"
26904 export TAR_OPTIONS
26905 rm -rf *
26906
26907 genfile -l 64 -f file1
26908 ln file1 file2
26909 ln file2 file3
26910 ln file3 file4
26911 tar -c -f archive --remove-files file1 file2 file3 file4
26912 tar tfv archive | sed -n 's/.*file[2-4] link to //p'
26913 ) ) >"$at_stdout" 2>"$at_stder1"
26914   at_func_filter_trace $?
26915 else
26916   ( :;
26917 mkdir oldgnu
26918 (cd oldgnu
26919 TEST_TAR_FORMAT=oldgnu
26920 export TEST_TAR_FORMAT
26921 TAR_OPTIONS="-H oldgnu"
26922 export TAR_OPTIONS
26923 rm -rf *
26924
26925 genfile -l 64 -f file1
26926 ln file1 file2
26927 ln file2 file3
26928 ln file3 file4
26929 tar -c -f archive --remove-files file1 file2 file3 file4
26930 tar tfv archive | sed -n 's/.*file[2-4] link to //p'
26931 ) ) >"$at_stdout" 2>"$at_stderr"
26932 fi
26933 at_status=$?
26934 at_failed=false
26935 at_func_diff_devnull "$at_stderr" || at_failed=:
26936 echo >>"$at_stdout"; $as_echo "file1
26937 file1
26938 file1
26939 " | \
26940   $at_diff - "$at_stdout" || at_failed=:
26941 at_func_check_status 0 $at_status "$at_srcdir/link02.at:35"
26942
26943 $at_failed && at_func_log_failure
26944 $at_traceon; }
26945
26946               { $at_traceoff
26947 $as_echo "$at_srcdir/link02.at:35:
26948 mkdir ustar
26949 (cd ustar
26950 TEST_TAR_FORMAT=ustar
26951 export TEST_TAR_FORMAT
26952 TAR_OPTIONS=\"-H ustar\"
26953 export TAR_OPTIONS
26954 rm -rf *
26955
26956 genfile -l 64 -f file1
26957 ln file1 file2
26958 ln file2 file3
26959 ln file3 file4
26960 tar -c -f archive --remove-files file1 file2 file3 file4
26961 tar tfv archive | sed -n 's/.*file[2-4] link to //p'
26962 )"
26963 echo link02.at:35 >"$at_check_line_file"
26964
26965 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
26966    false; }; then
26967   ( $at_traceon;
26968 mkdir ustar
26969 (cd ustar
26970 TEST_TAR_FORMAT=ustar
26971 export TEST_TAR_FORMAT
26972 TAR_OPTIONS="-H ustar"
26973 export TAR_OPTIONS
26974 rm -rf *
26975
26976 genfile -l 64 -f file1
26977 ln file1 file2
26978 ln file2 file3
26979 ln file3 file4
26980 tar -c -f archive --remove-files file1 file2 file3 file4
26981 tar tfv archive | sed -n 's/.*file[2-4] link to //p'
26982 ) ) >"$at_stdout" 2>"$at_stder1"
26983   at_func_filter_trace $?
26984 else
26985   ( :;
26986 mkdir ustar
26987 (cd ustar
26988 TEST_TAR_FORMAT=ustar
26989 export TEST_TAR_FORMAT
26990 TAR_OPTIONS="-H ustar"
26991 export TAR_OPTIONS
26992 rm -rf *
26993
26994 genfile -l 64 -f file1
26995 ln file1 file2
26996 ln file2 file3
26997 ln file3 file4
26998 tar -c -f archive --remove-files file1 file2 file3 file4
26999 tar tfv archive | sed -n 's/.*file[2-4] link to //p'
27000 ) ) >"$at_stdout" 2>"$at_stderr"
27001 fi
27002 at_status=$?
27003 at_failed=false
27004 at_func_diff_devnull "$at_stderr" || at_failed=:
27005 echo >>"$at_stdout"; $as_echo "file1
27006 file1
27007 file1
27008 " | \
27009   $at_diff - "$at_stdout" || at_failed=:
27010 at_func_check_status 0 $at_status "$at_srcdir/link02.at:35"
27011
27012 $at_failed && at_func_log_failure
27013 $at_traceon; }
27014
27015               { $at_traceoff
27016 $as_echo "$at_srcdir/link02.at:35:
27017 mkdir posix
27018 (cd posix
27019 TEST_TAR_FORMAT=posix
27020 export TEST_TAR_FORMAT
27021 TAR_OPTIONS=\"-H posix\"
27022 export TAR_OPTIONS
27023 rm -rf *
27024
27025 genfile -l 64 -f file1
27026 ln file1 file2
27027 ln file2 file3
27028 ln file3 file4
27029 tar -c -f archive --remove-files file1 file2 file3 file4
27030 tar tfv archive | sed -n 's/.*file[2-4] link to //p'
27031 )"
27032 echo link02.at:35 >"$at_check_line_file"
27033
27034 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
27035    false; }; then
27036   ( $at_traceon;
27037 mkdir posix
27038 (cd posix
27039 TEST_TAR_FORMAT=posix
27040 export TEST_TAR_FORMAT
27041 TAR_OPTIONS="-H posix"
27042 export TAR_OPTIONS
27043 rm -rf *
27044
27045 genfile -l 64 -f file1
27046 ln file1 file2
27047 ln file2 file3
27048 ln file3 file4
27049 tar -c -f archive --remove-files file1 file2 file3 file4
27050 tar tfv archive | sed -n 's/.*file[2-4] link to //p'
27051 ) ) >"$at_stdout" 2>"$at_stder1"
27052   at_func_filter_trace $?
27053 else
27054   ( :;
27055 mkdir posix
27056 (cd posix
27057 TEST_TAR_FORMAT=posix
27058 export TEST_TAR_FORMAT
27059 TAR_OPTIONS="-H posix"
27060 export TAR_OPTIONS
27061 rm -rf *
27062
27063 genfile -l 64 -f file1
27064 ln file1 file2
27065 ln file2 file3
27066 ln file3 file4
27067 tar -c -f archive --remove-files file1 file2 file3 file4
27068 tar tfv archive | sed -n 's/.*file[2-4] link to //p'
27069 ) ) >"$at_stdout" 2>"$at_stderr"
27070 fi
27071 at_status=$?
27072 at_failed=false
27073 at_func_diff_devnull "$at_stderr" || at_failed=:
27074 echo >>"$at_stdout"; $as_echo "file1
27075 file1
27076 file1
27077 " | \
27078   $at_diff - "$at_stdout" || at_failed=:
27079 at_func_check_status 0 $at_status "$at_srcdir/link02.at:35"
27080
27081 $at_failed && at_func_log_failure
27082 $at_traceon; }
27083
27084               { $at_traceoff
27085 $as_echo "$at_srcdir/link02.at:35:
27086 mkdir gnu
27087 (cd gnu
27088 TEST_TAR_FORMAT=gnu
27089 export TEST_TAR_FORMAT
27090 TAR_OPTIONS=\"-H gnu\"
27091 export TAR_OPTIONS
27092 rm -rf *
27093
27094 genfile -l 64 -f file1
27095 ln file1 file2
27096 ln file2 file3
27097 ln file3 file4
27098 tar -c -f archive --remove-files file1 file2 file3 file4
27099 tar tfv archive | sed -n 's/.*file[2-4] link to //p'
27100 )"
27101 echo link02.at:35 >"$at_check_line_file"
27102
27103 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
27104    false; }; then
27105   ( $at_traceon;
27106 mkdir gnu
27107 (cd gnu
27108 TEST_TAR_FORMAT=gnu
27109 export TEST_TAR_FORMAT
27110 TAR_OPTIONS="-H gnu"
27111 export TAR_OPTIONS
27112 rm -rf *
27113
27114 genfile -l 64 -f file1
27115 ln file1 file2
27116 ln file2 file3
27117 ln file3 file4
27118 tar -c -f archive --remove-files file1 file2 file3 file4
27119 tar tfv archive | sed -n 's/.*file[2-4] link to //p'
27120 ) ) >"$at_stdout" 2>"$at_stder1"
27121   at_func_filter_trace $?
27122 else
27123   ( :;
27124 mkdir gnu
27125 (cd gnu
27126 TEST_TAR_FORMAT=gnu
27127 export TEST_TAR_FORMAT
27128 TAR_OPTIONS="-H gnu"
27129 export TAR_OPTIONS
27130 rm -rf *
27131
27132 genfile -l 64 -f file1
27133 ln file1 file2
27134 ln file2 file3
27135 ln file3 file4
27136 tar -c -f archive --remove-files file1 file2 file3 file4
27137 tar tfv archive | sed -n 's/.*file[2-4] link to //p'
27138 ) ) >"$at_stdout" 2>"$at_stderr"
27139 fi
27140 at_status=$?
27141 at_failed=false
27142 at_func_diff_devnull "$at_stderr" || at_failed=:
27143 echo >>"$at_stdout"; $as_echo "file1
27144 file1
27145 file1
27146 " | \
27147   $at_diff - "$at_stdout" || at_failed=:
27148 at_func_check_status 0 $at_status "$at_srcdir/link02.at:35"
27149
27150 $at_failed && at_func_log_failure
27151 $at_traceon; }
27152
27153
27154
27155
27156   $at_traceoff
27157   $at_times_p && times >"$at_times_file"
27158 ) 5>&1 2>&1 | eval $at_tee_pipe
27159 at_status=`cat "$at_status_file"`
27160 #AT_STOP_68
27161 #AT_START_69
27162 # 69. link03.at:24: working -l with --remove-files
27163 at_setup_line='link03.at:24'
27164 at_desc="working -l with --remove-files"
27165 $at_quiet $as_echo_n " 69: $at_desc                 "
27166 at_xfail=no
27167       test -f $XFAILFILE && at_xfail=yes
27168 echo "#                             -*- compilation -*-" >> "$at_group_log"
27169 (
27170   $as_echo "69. link03.at:24: testing ..."
27171   $at_traceon
27172
27173
27174
27175
27176
27177
27178
27179   { $at_traceoff
27180 $as_echo "$at_srcdir/link03.at:34:
27181 mkdir v7
27182 (cd v7
27183 TEST_TAR_FORMAT=v7
27184 export TEST_TAR_FORMAT
27185 TAR_OPTIONS=\"-H v7\"
27186 export TAR_OPTIONS
27187 rm -rf *
27188
27189
27190 genfile -l 64 -f file1
27191 ln file1 file2
27192 ln file2 file3
27193 ln file3 file4
27194
27195 echo archive.1
27196 tar -c -f archive.1 -l --remove-files file1 file2 file3 file4
27197
27198 genfile -l 64 -f file1
27199 ln file1 file2
27200 ln file2 file3
27201 ln file3 file4
27202
27203 echo archive.2
27204 tar -c -f archive.2 -l --remove-files file1 file2 file3
27205 echo testing archive.2
27206 tar tfv archive.2 | sed -n 's/.*file[2-3] link to //p'
27207 )"
27208 echo link03.at:34 >"$at_check_line_file"
27209
27210 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
27211    false; }; then
27212   ( $at_traceon;
27213 mkdir v7
27214 (cd v7
27215 TEST_TAR_FORMAT=v7
27216 export TEST_TAR_FORMAT
27217 TAR_OPTIONS="-H v7"
27218 export TAR_OPTIONS
27219 rm -rf *
27220
27221
27222 genfile -l 64 -f file1
27223 ln file1 file2
27224 ln file2 file3
27225 ln file3 file4
27226
27227 echo archive.1
27228 tar -c -f archive.1 -l --remove-files file1 file2 file3 file4
27229
27230 genfile -l 64 -f file1
27231 ln file1 file2
27232 ln file2 file3
27233 ln file3 file4
27234
27235 echo archive.2
27236 tar -c -f archive.2 -l --remove-files file1 file2 file3
27237 echo testing archive.2
27238 tar tfv archive.2 | sed -n 's/.*file[2-3] link to //p'
27239 ) ) >"$at_stdout" 2>"$at_stder1"
27240   at_func_filter_trace $?
27241 else
27242   ( :;
27243 mkdir v7
27244 (cd v7
27245 TEST_TAR_FORMAT=v7
27246 export TEST_TAR_FORMAT
27247 TAR_OPTIONS="-H v7"
27248 export TAR_OPTIONS
27249 rm -rf *
27250
27251
27252 genfile -l 64 -f file1
27253 ln file1 file2
27254 ln file2 file3
27255 ln file3 file4
27256
27257 echo archive.1
27258 tar -c -f archive.1 -l --remove-files file1 file2 file3 file4
27259
27260 genfile -l 64 -f file1
27261 ln file1 file2
27262 ln file2 file3
27263 ln file3 file4
27264
27265 echo archive.2
27266 tar -c -f archive.2 -l --remove-files file1 file2 file3
27267 echo testing archive.2
27268 tar tfv archive.2 | sed -n 's/.*file[2-3] link to //p'
27269 ) ) >"$at_stdout" 2>"$at_stderr"
27270 fi
27271 at_status=$?
27272 at_failed=false
27273 echo >>"$at_stderr"; $as_echo "tar: Missing links to \`file1'.
27274 " | \
27275   $at_diff - "$at_stderr" || at_failed=:
27276 echo >>"$at_stdout"; $as_echo "archive.1
27277 archive.2
27278 testing archive.2
27279 file1
27280 file1
27281 " | \
27282   $at_diff - "$at_stdout" || at_failed=:
27283 at_func_check_status 0 $at_status "$at_srcdir/link03.at:34"
27284
27285 $at_failed && at_func_log_failure
27286 $at_traceon; }
27287
27288               { $at_traceoff
27289 $as_echo "$at_srcdir/link03.at:34:
27290 mkdir oldgnu
27291 (cd oldgnu
27292 TEST_TAR_FORMAT=oldgnu
27293 export TEST_TAR_FORMAT
27294 TAR_OPTIONS=\"-H oldgnu\"
27295 export TAR_OPTIONS
27296 rm -rf *
27297
27298
27299 genfile -l 64 -f file1
27300 ln file1 file2
27301 ln file2 file3
27302 ln file3 file4
27303
27304 echo archive.1
27305 tar -c -f archive.1 -l --remove-files file1 file2 file3 file4
27306
27307 genfile -l 64 -f file1
27308 ln file1 file2
27309 ln file2 file3
27310 ln file3 file4
27311
27312 echo archive.2
27313 tar -c -f archive.2 -l --remove-files file1 file2 file3
27314 echo testing archive.2
27315 tar tfv archive.2 | sed -n 's/.*file[2-3] link to //p'
27316 )"
27317 echo link03.at:34 >"$at_check_line_file"
27318
27319 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
27320    false; }; then
27321   ( $at_traceon;
27322 mkdir oldgnu
27323 (cd oldgnu
27324 TEST_TAR_FORMAT=oldgnu
27325 export TEST_TAR_FORMAT
27326 TAR_OPTIONS="-H oldgnu"
27327 export TAR_OPTIONS
27328 rm -rf *
27329
27330
27331 genfile -l 64 -f file1
27332 ln file1 file2
27333 ln file2 file3
27334 ln file3 file4
27335
27336 echo archive.1
27337 tar -c -f archive.1 -l --remove-files file1 file2 file3 file4
27338
27339 genfile -l 64 -f file1
27340 ln file1 file2
27341 ln file2 file3
27342 ln file3 file4
27343
27344 echo archive.2
27345 tar -c -f archive.2 -l --remove-files file1 file2 file3
27346 echo testing archive.2
27347 tar tfv archive.2 | sed -n 's/.*file[2-3] link to //p'
27348 ) ) >"$at_stdout" 2>"$at_stder1"
27349   at_func_filter_trace $?
27350 else
27351   ( :;
27352 mkdir oldgnu
27353 (cd oldgnu
27354 TEST_TAR_FORMAT=oldgnu
27355 export TEST_TAR_FORMAT
27356 TAR_OPTIONS="-H oldgnu"
27357 export TAR_OPTIONS
27358 rm -rf *
27359
27360
27361 genfile -l 64 -f file1
27362 ln file1 file2
27363 ln file2 file3
27364 ln file3 file4
27365
27366 echo archive.1
27367 tar -c -f archive.1 -l --remove-files file1 file2 file3 file4
27368
27369 genfile -l 64 -f file1
27370 ln file1 file2
27371 ln file2 file3
27372 ln file3 file4
27373
27374 echo archive.2
27375 tar -c -f archive.2 -l --remove-files file1 file2 file3
27376 echo testing archive.2
27377 tar tfv archive.2 | sed -n 's/.*file[2-3] link to //p'
27378 ) ) >"$at_stdout" 2>"$at_stderr"
27379 fi
27380 at_status=$?
27381 at_failed=false
27382 echo >>"$at_stderr"; $as_echo "tar: Missing links to \`file1'.
27383 " | \
27384   $at_diff - "$at_stderr" || at_failed=:
27385 echo >>"$at_stdout"; $as_echo "archive.1
27386 archive.2
27387 testing archive.2
27388 file1
27389 file1
27390 " | \
27391   $at_diff - "$at_stdout" || at_failed=:
27392 at_func_check_status 0 $at_status "$at_srcdir/link03.at:34"
27393
27394 $at_failed && at_func_log_failure
27395 $at_traceon; }
27396
27397               { $at_traceoff
27398 $as_echo "$at_srcdir/link03.at:34:
27399 mkdir ustar
27400 (cd ustar
27401 TEST_TAR_FORMAT=ustar
27402 export TEST_TAR_FORMAT
27403 TAR_OPTIONS=\"-H ustar\"
27404 export TAR_OPTIONS
27405 rm -rf *
27406
27407
27408 genfile -l 64 -f file1
27409 ln file1 file2
27410 ln file2 file3
27411 ln file3 file4
27412
27413 echo archive.1
27414 tar -c -f archive.1 -l --remove-files file1 file2 file3 file4
27415
27416 genfile -l 64 -f file1
27417 ln file1 file2
27418 ln file2 file3
27419 ln file3 file4
27420
27421 echo archive.2
27422 tar -c -f archive.2 -l --remove-files file1 file2 file3
27423 echo testing archive.2
27424 tar tfv archive.2 | sed -n 's/.*file[2-3] link to //p'
27425 )"
27426 echo link03.at:34 >"$at_check_line_file"
27427
27428 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
27429    false; }; then
27430   ( $at_traceon;
27431 mkdir ustar
27432 (cd ustar
27433 TEST_TAR_FORMAT=ustar
27434 export TEST_TAR_FORMAT
27435 TAR_OPTIONS="-H ustar"
27436 export TAR_OPTIONS
27437 rm -rf *
27438
27439
27440 genfile -l 64 -f file1
27441 ln file1 file2
27442 ln file2 file3
27443 ln file3 file4
27444
27445 echo archive.1
27446 tar -c -f archive.1 -l --remove-files file1 file2 file3 file4
27447
27448 genfile -l 64 -f file1
27449 ln file1 file2
27450 ln file2 file3
27451 ln file3 file4
27452
27453 echo archive.2
27454 tar -c -f archive.2 -l --remove-files file1 file2 file3
27455 echo testing archive.2
27456 tar tfv archive.2 | sed -n 's/.*file[2-3] link to //p'
27457 ) ) >"$at_stdout" 2>"$at_stder1"
27458   at_func_filter_trace $?
27459 else
27460   ( :;
27461 mkdir ustar
27462 (cd ustar
27463 TEST_TAR_FORMAT=ustar
27464 export TEST_TAR_FORMAT
27465 TAR_OPTIONS="-H ustar"
27466 export TAR_OPTIONS
27467 rm -rf *
27468
27469
27470 genfile -l 64 -f file1
27471 ln file1 file2
27472 ln file2 file3
27473 ln file3 file4
27474
27475 echo archive.1
27476 tar -c -f archive.1 -l --remove-files file1 file2 file3 file4
27477
27478 genfile -l 64 -f file1
27479 ln file1 file2
27480 ln file2 file3
27481 ln file3 file4
27482
27483 echo archive.2
27484 tar -c -f archive.2 -l --remove-files file1 file2 file3
27485 echo testing archive.2
27486 tar tfv archive.2 | sed -n 's/.*file[2-3] link to //p'
27487 ) ) >"$at_stdout" 2>"$at_stderr"
27488 fi
27489 at_status=$?
27490 at_failed=false
27491 echo >>"$at_stderr"; $as_echo "tar: Missing links to \`file1'.
27492 " | \
27493   $at_diff - "$at_stderr" || at_failed=:
27494 echo >>"$at_stdout"; $as_echo "archive.1
27495 archive.2
27496 testing archive.2
27497 file1
27498 file1
27499 " | \
27500   $at_diff - "$at_stdout" || at_failed=:
27501 at_func_check_status 0 $at_status "$at_srcdir/link03.at:34"
27502
27503 $at_failed && at_func_log_failure
27504 $at_traceon; }
27505
27506               { $at_traceoff
27507 $as_echo "$at_srcdir/link03.at:34:
27508 mkdir posix
27509 (cd posix
27510 TEST_TAR_FORMAT=posix
27511 export TEST_TAR_FORMAT
27512 TAR_OPTIONS=\"-H posix\"
27513 export TAR_OPTIONS
27514 rm -rf *
27515
27516
27517 genfile -l 64 -f file1
27518 ln file1 file2
27519 ln file2 file3
27520 ln file3 file4
27521
27522 echo archive.1
27523 tar -c -f archive.1 -l --remove-files file1 file2 file3 file4
27524
27525 genfile -l 64 -f file1
27526 ln file1 file2
27527 ln file2 file3
27528 ln file3 file4
27529
27530 echo archive.2
27531 tar -c -f archive.2 -l --remove-files file1 file2 file3
27532 echo testing archive.2
27533 tar tfv archive.2 | sed -n 's/.*file[2-3] link to //p'
27534 )"
27535 echo link03.at:34 >"$at_check_line_file"
27536
27537 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
27538    false; }; then
27539   ( $at_traceon;
27540 mkdir posix
27541 (cd posix
27542 TEST_TAR_FORMAT=posix
27543 export TEST_TAR_FORMAT
27544 TAR_OPTIONS="-H posix"
27545 export TAR_OPTIONS
27546 rm -rf *
27547
27548
27549 genfile -l 64 -f file1
27550 ln file1 file2
27551 ln file2 file3
27552 ln file3 file4
27553
27554 echo archive.1
27555 tar -c -f archive.1 -l --remove-files file1 file2 file3 file4
27556
27557 genfile -l 64 -f file1
27558 ln file1 file2
27559 ln file2 file3
27560 ln file3 file4
27561
27562 echo archive.2
27563 tar -c -f archive.2 -l --remove-files file1 file2 file3
27564 echo testing archive.2
27565 tar tfv archive.2 | sed -n 's/.*file[2-3] link to //p'
27566 ) ) >"$at_stdout" 2>"$at_stder1"
27567   at_func_filter_trace $?
27568 else
27569   ( :;
27570 mkdir posix
27571 (cd posix
27572 TEST_TAR_FORMAT=posix
27573 export TEST_TAR_FORMAT
27574 TAR_OPTIONS="-H posix"
27575 export TAR_OPTIONS
27576 rm -rf *
27577
27578
27579 genfile -l 64 -f file1
27580 ln file1 file2
27581 ln file2 file3
27582 ln file3 file4
27583
27584 echo archive.1
27585 tar -c -f archive.1 -l --remove-files file1 file2 file3 file4
27586
27587 genfile -l 64 -f file1
27588 ln file1 file2
27589 ln file2 file3
27590 ln file3 file4
27591
27592 echo archive.2
27593 tar -c -f archive.2 -l --remove-files file1 file2 file3
27594 echo testing archive.2
27595 tar tfv archive.2 | sed -n 's/.*file[2-3] link to //p'
27596 ) ) >"$at_stdout" 2>"$at_stderr"
27597 fi
27598 at_status=$?
27599 at_failed=false
27600 echo >>"$at_stderr"; $as_echo "tar: Missing links to \`file1'.
27601 " | \
27602   $at_diff - "$at_stderr" || at_failed=:
27603 echo >>"$at_stdout"; $as_echo "archive.1
27604 archive.2
27605 testing archive.2
27606 file1
27607 file1
27608 " | \
27609   $at_diff - "$at_stdout" || at_failed=:
27610 at_func_check_status 0 $at_status "$at_srcdir/link03.at:34"
27611
27612 $at_failed && at_func_log_failure
27613 $at_traceon; }
27614
27615               { $at_traceoff
27616 $as_echo "$at_srcdir/link03.at:34:
27617 mkdir gnu
27618 (cd gnu
27619 TEST_TAR_FORMAT=gnu
27620 export TEST_TAR_FORMAT
27621 TAR_OPTIONS=\"-H gnu\"
27622 export TAR_OPTIONS
27623 rm -rf *
27624
27625
27626 genfile -l 64 -f file1
27627 ln file1 file2
27628 ln file2 file3
27629 ln file3 file4
27630
27631 echo archive.1
27632 tar -c -f archive.1 -l --remove-files file1 file2 file3 file4
27633
27634 genfile -l 64 -f file1
27635 ln file1 file2
27636 ln file2 file3
27637 ln file3 file4
27638
27639 echo archive.2
27640 tar -c -f archive.2 -l --remove-files file1 file2 file3
27641 echo testing archive.2
27642 tar tfv archive.2 | sed -n 's/.*file[2-3] link to //p'
27643 )"
27644 echo link03.at:34 >"$at_check_line_file"
27645
27646 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
27647    false; }; then
27648   ( $at_traceon;
27649 mkdir gnu
27650 (cd gnu
27651 TEST_TAR_FORMAT=gnu
27652 export TEST_TAR_FORMAT
27653 TAR_OPTIONS="-H gnu"
27654 export TAR_OPTIONS
27655 rm -rf *
27656
27657
27658 genfile -l 64 -f file1
27659 ln file1 file2
27660 ln file2 file3
27661 ln file3 file4
27662
27663 echo archive.1
27664 tar -c -f archive.1 -l --remove-files file1 file2 file3 file4
27665
27666 genfile -l 64 -f file1
27667 ln file1 file2
27668 ln file2 file3
27669 ln file3 file4
27670
27671 echo archive.2
27672 tar -c -f archive.2 -l --remove-files file1 file2 file3
27673 echo testing archive.2
27674 tar tfv archive.2 | sed -n 's/.*file[2-3] link to //p'
27675 ) ) >"$at_stdout" 2>"$at_stder1"
27676   at_func_filter_trace $?
27677 else
27678   ( :;
27679 mkdir gnu
27680 (cd gnu
27681 TEST_TAR_FORMAT=gnu
27682 export TEST_TAR_FORMAT
27683 TAR_OPTIONS="-H gnu"
27684 export TAR_OPTIONS
27685 rm -rf *
27686
27687
27688 genfile -l 64 -f file1
27689 ln file1 file2
27690 ln file2 file3
27691 ln file3 file4
27692
27693 echo archive.1
27694 tar -c -f archive.1 -l --remove-files file1 file2 file3 file4
27695
27696 genfile -l 64 -f file1
27697 ln file1 file2
27698 ln file2 file3
27699 ln file3 file4
27700
27701 echo archive.2
27702 tar -c -f archive.2 -l --remove-files file1 file2 file3
27703 echo testing archive.2
27704 tar tfv archive.2 | sed -n 's/.*file[2-3] link to //p'
27705 ) ) >"$at_stdout" 2>"$at_stderr"
27706 fi
27707 at_status=$?
27708 at_failed=false
27709 echo >>"$at_stderr"; $as_echo "tar: Missing links to \`file1'.
27710 " | \
27711   $at_diff - "$at_stderr" || at_failed=:
27712 echo >>"$at_stdout"; $as_echo "archive.1
27713 archive.2
27714 testing archive.2
27715 file1
27716 file1
27717 " | \
27718   $at_diff - "$at_stdout" || at_failed=:
27719 at_func_check_status 0 $at_status "$at_srcdir/link03.at:34"
27720
27721 $at_failed && at_func_log_failure
27722 $at_traceon; }
27723
27724
27725
27726
27727   $at_traceoff
27728   $at_times_p && times >"$at_times_file"
27729 ) 5>&1 2>&1 | eval $at_tee_pipe
27730 at_status=`cat "$at_status_file"`
27731 #AT_STOP_69
27732 #AT_START_70
27733 # 70. link04.at:29: link count is 1 but multiple occurrences
27734 at_setup_line='link04.at:29'
27735 at_desc="link count is 1 but multiple occurrences"
27736 $at_quiet $as_echo_n " 70: $at_desc       "
27737 at_xfail=no
27738       test -f $XFAILFILE && at_xfail=yes
27739 echo "#                             -*- compilation -*-" >> "$at_group_log"
27740 (
27741   $as_echo "70. link04.at:29: testing ..."
27742   $at_traceon
27743
27744
27745
27746
27747
27748   { $at_traceoff
27749 $as_echo "$at_srcdir/link04.at:32:
27750 mkdir v7
27751 (cd v7
27752 TEST_TAR_FORMAT=v7
27753 export TEST_TAR_FORMAT
27754 TAR_OPTIONS=\"-H v7\"
27755 export TAR_OPTIONS
27756 rm -rf *
27757
27758 mkdir dir
27759 echo TEST > dir/file
27760 ln -s file dir/symlink || exit 77
27761
27762 tar cf archive dir dir
27763 tar tvf archive | sed '
27764   s,.*[0-9] dir/,dir/,
27765 ' | sort
27766
27767 echo ==
27768
27769 tar chf archive dir
27770 tar tvf archive | sed '
27771   s,.*[0-9] dir/,dir/,
27772   s,file,FOO,g
27773   s,symlink,FOO,g
27774 ' | sort
27775 )"
27776 echo link04.at:32 >"$at_check_line_file"
27777
27778 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
27779    false; }; then
27780   ( $at_traceon;
27781 mkdir v7
27782 (cd v7
27783 TEST_TAR_FORMAT=v7
27784 export TEST_TAR_FORMAT
27785 TAR_OPTIONS="-H v7"
27786 export TAR_OPTIONS
27787 rm -rf *
27788
27789 mkdir dir
27790 echo TEST > dir/file
27791 ln -s file dir/symlink || exit 77
27792
27793 tar cf archive dir dir
27794 tar tvf archive | sed '
27795   s,.*[0-9] dir/,dir/,
27796 ' | sort
27797
27798 echo ==
27799
27800 tar chf archive dir
27801 tar tvf archive | sed '
27802   s,.*[0-9] dir/,dir/,
27803   s,file,FOO,g
27804   s,symlink,FOO,g
27805 ' | sort
27806 ) ) >"$at_stdout" 2>"$at_stder1"
27807   at_func_filter_trace $?
27808 else
27809   ( :;
27810 mkdir v7
27811 (cd v7
27812 TEST_TAR_FORMAT=v7
27813 export TEST_TAR_FORMAT
27814 TAR_OPTIONS="-H v7"
27815 export TAR_OPTIONS
27816 rm -rf *
27817
27818 mkdir dir
27819 echo TEST > dir/file
27820 ln -s file dir/symlink || exit 77
27821
27822 tar cf archive dir dir
27823 tar tvf archive | sed '
27824   s,.*[0-9] dir/,dir/,
27825 ' | sort
27826
27827 echo ==
27828
27829 tar chf archive dir
27830 tar tvf archive | sed '
27831   s,.*[0-9] dir/,dir/,
27832   s,file,FOO,g
27833   s,symlink,FOO,g
27834 ' | sort
27835 ) ) >"$at_stdout" 2>"$at_stderr"
27836 fi
27837 at_status=$?
27838 at_failed=false
27839 at_func_diff_devnull "$at_stderr" || at_failed=:
27840 echo >>"$at_stdout"; $as_echo "dir/
27841 dir/
27842 dir/file
27843 dir/file link to dir/file
27844 dir/symlink -> file
27845 dir/symlink link to dir/symlink
27846 ==
27847 dir/
27848 dir/FOO
27849 dir/FOO link to dir/FOO
27850 " | \
27851   $at_diff - "$at_stdout" || at_failed=:
27852 at_func_check_status 0 $at_status "$at_srcdir/link04.at:32"
27853
27854 $at_failed && at_func_log_failure
27855 $at_traceon; }
27856
27857               { $at_traceoff
27858 $as_echo "$at_srcdir/link04.at:32:
27859 mkdir oldgnu
27860 (cd oldgnu
27861 TEST_TAR_FORMAT=oldgnu
27862 export TEST_TAR_FORMAT
27863 TAR_OPTIONS=\"-H oldgnu\"
27864 export TAR_OPTIONS
27865 rm -rf *
27866
27867 mkdir dir
27868 echo TEST > dir/file
27869 ln -s file dir/symlink || exit 77
27870
27871 tar cf archive dir dir
27872 tar tvf archive | sed '
27873   s,.*[0-9] dir/,dir/,
27874 ' | sort
27875
27876 echo ==
27877
27878 tar chf archive dir
27879 tar tvf archive | sed '
27880   s,.*[0-9] dir/,dir/,
27881   s,file,FOO,g
27882   s,symlink,FOO,g
27883 ' | sort
27884 )"
27885 echo link04.at:32 >"$at_check_line_file"
27886
27887 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
27888    false; }; then
27889   ( $at_traceon;
27890 mkdir oldgnu
27891 (cd oldgnu
27892 TEST_TAR_FORMAT=oldgnu
27893 export TEST_TAR_FORMAT
27894 TAR_OPTIONS="-H oldgnu"
27895 export TAR_OPTIONS
27896 rm -rf *
27897
27898 mkdir dir
27899 echo TEST > dir/file
27900 ln -s file dir/symlink || exit 77
27901
27902 tar cf archive dir dir
27903 tar tvf archive | sed '
27904   s,.*[0-9] dir/,dir/,
27905 ' | sort
27906
27907 echo ==
27908
27909 tar chf archive dir
27910 tar tvf archive | sed '
27911   s,.*[0-9] dir/,dir/,
27912   s,file,FOO,g
27913   s,symlink,FOO,g
27914 ' | sort
27915 ) ) >"$at_stdout" 2>"$at_stder1"
27916   at_func_filter_trace $?
27917 else
27918   ( :;
27919 mkdir oldgnu
27920 (cd oldgnu
27921 TEST_TAR_FORMAT=oldgnu
27922 export TEST_TAR_FORMAT
27923 TAR_OPTIONS="-H oldgnu"
27924 export TAR_OPTIONS
27925 rm -rf *
27926
27927 mkdir dir
27928 echo TEST > dir/file
27929 ln -s file dir/symlink || exit 77
27930
27931 tar cf archive dir dir
27932 tar tvf archive | sed '
27933   s,.*[0-9] dir/,dir/,
27934 ' | sort
27935
27936 echo ==
27937
27938 tar chf archive dir
27939 tar tvf archive | sed '
27940   s,.*[0-9] dir/,dir/,
27941   s,file,FOO,g
27942   s,symlink,FOO,g
27943 ' | sort
27944 ) ) >"$at_stdout" 2>"$at_stderr"
27945 fi
27946 at_status=$?
27947 at_failed=false
27948 at_func_diff_devnull "$at_stderr" || at_failed=:
27949 echo >>"$at_stdout"; $as_echo "dir/
27950 dir/
27951 dir/file
27952 dir/file link to dir/file
27953 dir/symlink -> file
27954 dir/symlink link to dir/symlink
27955 ==
27956 dir/
27957 dir/FOO
27958 dir/FOO link to dir/FOO
27959 " | \
27960   $at_diff - "$at_stdout" || at_failed=:
27961 at_func_check_status 0 $at_status "$at_srcdir/link04.at:32"
27962
27963 $at_failed && at_func_log_failure
27964 $at_traceon; }
27965
27966               { $at_traceoff
27967 $as_echo "$at_srcdir/link04.at:32:
27968 mkdir ustar
27969 (cd ustar
27970 TEST_TAR_FORMAT=ustar
27971 export TEST_TAR_FORMAT
27972 TAR_OPTIONS=\"-H ustar\"
27973 export TAR_OPTIONS
27974 rm -rf *
27975
27976 mkdir dir
27977 echo TEST > dir/file
27978 ln -s file dir/symlink || exit 77
27979
27980 tar cf archive dir dir
27981 tar tvf archive | sed '
27982   s,.*[0-9] dir/,dir/,
27983 ' | sort
27984
27985 echo ==
27986
27987 tar chf archive dir
27988 tar tvf archive | sed '
27989   s,.*[0-9] dir/,dir/,
27990   s,file,FOO,g
27991   s,symlink,FOO,g
27992 ' | sort
27993 )"
27994 echo link04.at:32 >"$at_check_line_file"
27995
27996 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
27997    false; }; then
27998   ( $at_traceon;
27999 mkdir ustar
28000 (cd ustar
28001 TEST_TAR_FORMAT=ustar
28002 export TEST_TAR_FORMAT
28003 TAR_OPTIONS="-H ustar"
28004 export TAR_OPTIONS
28005 rm -rf *
28006
28007 mkdir dir
28008 echo TEST > dir/file
28009 ln -s file dir/symlink || exit 77
28010
28011 tar cf archive dir dir
28012 tar tvf archive | sed '
28013   s,.*[0-9] dir/,dir/,
28014 ' | sort
28015
28016 echo ==
28017
28018 tar chf archive dir
28019 tar tvf archive | sed '
28020   s,.*[0-9] dir/,dir/,
28021   s,file,FOO,g
28022   s,symlink,FOO,g
28023 ' | sort
28024 ) ) >"$at_stdout" 2>"$at_stder1"
28025   at_func_filter_trace $?
28026 else
28027   ( :;
28028 mkdir ustar
28029 (cd ustar
28030 TEST_TAR_FORMAT=ustar
28031 export TEST_TAR_FORMAT
28032 TAR_OPTIONS="-H ustar"
28033 export TAR_OPTIONS
28034 rm -rf *
28035
28036 mkdir dir
28037 echo TEST > dir/file
28038 ln -s file dir/symlink || exit 77
28039
28040 tar cf archive dir dir
28041 tar tvf archive | sed '
28042   s,.*[0-9] dir/,dir/,
28043 ' | sort
28044
28045 echo ==
28046
28047 tar chf archive dir
28048 tar tvf archive | sed '
28049   s,.*[0-9] dir/,dir/,
28050   s,file,FOO,g
28051   s,symlink,FOO,g
28052 ' | sort
28053 ) ) >"$at_stdout" 2>"$at_stderr"
28054 fi
28055 at_status=$?
28056 at_failed=false
28057 at_func_diff_devnull "$at_stderr" || at_failed=:
28058 echo >>"$at_stdout"; $as_echo "dir/
28059 dir/
28060 dir/file
28061 dir/file link to dir/file
28062 dir/symlink -> file
28063 dir/symlink link to dir/symlink
28064 ==
28065 dir/
28066 dir/FOO
28067 dir/FOO link to dir/FOO
28068 " | \
28069   $at_diff - "$at_stdout" || at_failed=:
28070 at_func_check_status 0 $at_status "$at_srcdir/link04.at:32"
28071
28072 $at_failed && at_func_log_failure
28073 $at_traceon; }
28074
28075               { $at_traceoff
28076 $as_echo "$at_srcdir/link04.at:32:
28077 mkdir posix
28078 (cd posix
28079 TEST_TAR_FORMAT=posix
28080 export TEST_TAR_FORMAT
28081 TAR_OPTIONS=\"-H posix\"
28082 export TAR_OPTIONS
28083 rm -rf *
28084
28085 mkdir dir
28086 echo TEST > dir/file
28087 ln -s file dir/symlink || exit 77
28088
28089 tar cf archive dir dir
28090 tar tvf archive | sed '
28091   s,.*[0-9] dir/,dir/,
28092 ' | sort
28093
28094 echo ==
28095
28096 tar chf archive dir
28097 tar tvf archive | sed '
28098   s,.*[0-9] dir/,dir/,
28099   s,file,FOO,g
28100   s,symlink,FOO,g
28101 ' | sort
28102 )"
28103 echo link04.at:32 >"$at_check_line_file"
28104
28105 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
28106    false; }; then
28107   ( $at_traceon;
28108 mkdir posix
28109 (cd posix
28110 TEST_TAR_FORMAT=posix
28111 export TEST_TAR_FORMAT
28112 TAR_OPTIONS="-H posix"
28113 export TAR_OPTIONS
28114 rm -rf *
28115
28116 mkdir dir
28117 echo TEST > dir/file
28118 ln -s file dir/symlink || exit 77
28119
28120 tar cf archive dir dir
28121 tar tvf archive | sed '
28122   s,.*[0-9] dir/,dir/,
28123 ' | sort
28124
28125 echo ==
28126
28127 tar chf archive dir
28128 tar tvf archive | sed '
28129   s,.*[0-9] dir/,dir/,
28130   s,file,FOO,g
28131   s,symlink,FOO,g
28132 ' | sort
28133 ) ) >"$at_stdout" 2>"$at_stder1"
28134   at_func_filter_trace $?
28135 else
28136   ( :;
28137 mkdir posix
28138 (cd posix
28139 TEST_TAR_FORMAT=posix
28140 export TEST_TAR_FORMAT
28141 TAR_OPTIONS="-H posix"
28142 export TAR_OPTIONS
28143 rm -rf *
28144
28145 mkdir dir
28146 echo TEST > dir/file
28147 ln -s file dir/symlink || exit 77
28148
28149 tar cf archive dir dir
28150 tar tvf archive | sed '
28151   s,.*[0-9] dir/,dir/,
28152 ' | sort
28153
28154 echo ==
28155
28156 tar chf archive dir
28157 tar tvf archive | sed '
28158   s,.*[0-9] dir/,dir/,
28159   s,file,FOO,g
28160   s,symlink,FOO,g
28161 ' | sort
28162 ) ) >"$at_stdout" 2>"$at_stderr"
28163 fi
28164 at_status=$?
28165 at_failed=false
28166 at_func_diff_devnull "$at_stderr" || at_failed=:
28167 echo >>"$at_stdout"; $as_echo "dir/
28168 dir/
28169 dir/file
28170 dir/file link to dir/file
28171 dir/symlink -> file
28172 dir/symlink link to dir/symlink
28173 ==
28174 dir/
28175 dir/FOO
28176 dir/FOO link to dir/FOO
28177 " | \
28178   $at_diff - "$at_stdout" || at_failed=:
28179 at_func_check_status 0 $at_status "$at_srcdir/link04.at:32"
28180
28181 $at_failed && at_func_log_failure
28182 $at_traceon; }
28183
28184               { $at_traceoff
28185 $as_echo "$at_srcdir/link04.at:32:
28186 mkdir gnu
28187 (cd gnu
28188 TEST_TAR_FORMAT=gnu
28189 export TEST_TAR_FORMAT
28190 TAR_OPTIONS=\"-H gnu\"
28191 export TAR_OPTIONS
28192 rm -rf *
28193
28194 mkdir dir
28195 echo TEST > dir/file
28196 ln -s file dir/symlink || exit 77
28197
28198 tar cf archive dir dir
28199 tar tvf archive | sed '
28200   s,.*[0-9] dir/,dir/,
28201 ' | sort
28202
28203 echo ==
28204
28205 tar chf archive dir
28206 tar tvf archive | sed '
28207   s,.*[0-9] dir/,dir/,
28208   s,file,FOO,g
28209   s,symlink,FOO,g
28210 ' | sort
28211 )"
28212 echo link04.at:32 >"$at_check_line_file"
28213
28214 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
28215    false; }; then
28216   ( $at_traceon;
28217 mkdir gnu
28218 (cd gnu
28219 TEST_TAR_FORMAT=gnu
28220 export TEST_TAR_FORMAT
28221 TAR_OPTIONS="-H gnu"
28222 export TAR_OPTIONS
28223 rm -rf *
28224
28225 mkdir dir
28226 echo TEST > dir/file
28227 ln -s file dir/symlink || exit 77
28228
28229 tar cf archive dir dir
28230 tar tvf archive | sed '
28231   s,.*[0-9] dir/,dir/,
28232 ' | sort
28233
28234 echo ==
28235
28236 tar chf archive dir
28237 tar tvf archive | sed '
28238   s,.*[0-9] dir/,dir/,
28239   s,file,FOO,g
28240   s,symlink,FOO,g
28241 ' | sort
28242 ) ) >"$at_stdout" 2>"$at_stder1"
28243   at_func_filter_trace $?
28244 else
28245   ( :;
28246 mkdir gnu
28247 (cd gnu
28248 TEST_TAR_FORMAT=gnu
28249 export TEST_TAR_FORMAT
28250 TAR_OPTIONS="-H gnu"
28251 export TAR_OPTIONS
28252 rm -rf *
28253
28254 mkdir dir
28255 echo TEST > dir/file
28256 ln -s file dir/symlink || exit 77
28257
28258 tar cf archive dir dir
28259 tar tvf archive | sed '
28260   s,.*[0-9] dir/,dir/,
28261 ' | sort
28262
28263 echo ==
28264
28265 tar chf archive dir
28266 tar tvf archive | sed '
28267   s,.*[0-9] dir/,dir/,
28268   s,file,FOO,g
28269   s,symlink,FOO,g
28270 ' | sort
28271 ) ) >"$at_stdout" 2>"$at_stderr"
28272 fi
28273 at_status=$?
28274 at_failed=false
28275 at_func_diff_devnull "$at_stderr" || at_failed=:
28276 echo >>"$at_stdout"; $as_echo "dir/
28277 dir/
28278 dir/file
28279 dir/file link to dir/file
28280 dir/symlink -> file
28281 dir/symlink link to dir/symlink
28282 ==
28283 dir/
28284 dir/FOO
28285 dir/FOO link to dir/FOO
28286 " | \
28287   $at_diff - "$at_stdout" || at_failed=:
28288 at_func_check_status 0 $at_status "$at_srcdir/link04.at:32"
28289
28290 $at_failed && at_func_log_failure
28291 $at_traceon; }
28292
28293
28294
28295
28296   $at_traceoff
28297   $at_times_p && times >"$at_times_file"
28298 ) 5>&1 2>&1 | eval $at_tee_pipe
28299 at_status=`cat "$at_status_file"`
28300 #AT_STOP_70
28301 #AT_START_71
28302 # 71. longv7.at:24: long names in V7 archives
28303 at_setup_line='longv7.at:24'
28304 at_desc="long names in V7 archives"
28305 $at_quiet $as_echo_n " 71: $at_desc                      "
28306 at_xfail=no
28307       test -f $XFAILFILE && at_xfail=yes
28308 echo "#                             -*- compilation -*-" >> "$at_group_log"
28309 (
28310   $as_echo "71. longv7.at:24: testing ..."
28311   $at_traceon
28312
28313
28314
28315
28316
28317
28318
28319
28320   { $at_traceoff
28321 $as_echo "$at_srcdir/longv7.at:30:
28322 mkdir v7
28323 (cd v7
28324 TEST_TAR_FORMAT=v7
28325 export TEST_TAR_FORMAT
28326 TAR_OPTIONS=\"-H v7\"
28327 export TAR_OPTIONS
28328 rm -rf *
28329
28330 mkdir this_is_a_very_long_name_for_a_directory_which_causes_problems
28331 touch this_is_a_very_long_name_for_a_directory_which_causes_problems/this_is_a_very_long_file_name_which_raises_issues.c
28332
28333 tar cf archive this_is_a_very_long_name_for_a_directory_which_causes_problems
28334 echo separator
28335 tar tf archive
28336 )"
28337 echo longv7.at:30 >"$at_check_line_file"
28338
28339 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
28340    false; }; then
28341   ( $at_traceon;
28342 mkdir v7
28343 (cd v7
28344 TEST_TAR_FORMAT=v7
28345 export TEST_TAR_FORMAT
28346 TAR_OPTIONS="-H v7"
28347 export TAR_OPTIONS
28348 rm -rf *
28349
28350 mkdir this_is_a_very_long_name_for_a_directory_which_causes_problems
28351 touch this_is_a_very_long_name_for_a_directory_which_causes_problems/this_is_a_very_long_file_name_which_raises_issues.c
28352
28353 tar cf archive this_is_a_very_long_name_for_a_directory_which_causes_problems
28354 echo separator
28355 tar tf archive
28356 ) ) >"$at_stdout" 2>"$at_stder1"
28357   at_func_filter_trace $?
28358 else
28359   ( :;
28360 mkdir v7
28361 (cd v7
28362 TEST_TAR_FORMAT=v7
28363 export TEST_TAR_FORMAT
28364 TAR_OPTIONS="-H v7"
28365 export TAR_OPTIONS
28366 rm -rf *
28367
28368 mkdir this_is_a_very_long_name_for_a_directory_which_causes_problems
28369 touch this_is_a_very_long_name_for_a_directory_which_causes_problems/this_is_a_very_long_file_name_which_raises_issues.c
28370
28371 tar cf archive this_is_a_very_long_name_for_a_directory_which_causes_problems
28372 echo separator
28373 tar tf archive
28374 ) ) >"$at_stdout" 2>"$at_stderr"
28375 fi
28376 at_status=$?
28377 at_failed=false
28378 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
28379 tar: Exiting with failure status due to previous errors
28380 " | \
28381   $at_diff - "$at_stderr" || at_failed=:
28382 echo >>"$at_stdout"; $as_echo "separator
28383 this_is_a_very_long_name_for_a_directory_which_causes_problems/
28384 " | \
28385   $at_diff - "$at_stdout" || at_failed=:
28386 at_func_check_status 0 $at_status "$at_srcdir/longv7.at:30"
28387
28388 $at_failed && at_func_log_failure
28389 $at_traceon; }
28390
28391
28392
28393
28394   $at_traceoff
28395   $at_times_p && times >"$at_times_file"
28396 ) 5>&1 2>&1 | eval $at_tee_pipe
28397 at_status=`cat "$at_status_file"`
28398 #AT_STOP_71
28399 #AT_START_72
28400 # 72. long01.at:28: long file names divisible by block size
28401 at_setup_line='long01.at:28'
28402 at_desc="long file names divisible by block size"
28403 $at_quiet $as_echo_n " 72: $at_desc        "
28404 at_xfail=no
28405       test -f $XFAILFILE && at_xfail=yes
28406 echo "#                             -*- compilation -*-" >> "$at_group_log"
28407 (
28408   $as_echo "72. long01.at:28: testing ..."
28409   $at_traceon
28410
28411
28412
28413
28414
28415
28416
28417
28418
28419   { $at_traceoff
28420 $as_echo "$at_srcdir/long01.at:36:
28421 mkdir gnu
28422 (cd gnu
28423 TEST_TAR_FORMAT=gnu
28424 export TEST_TAR_FORMAT
28425 TAR_OPTIONS=\"-H gnu\"
28426 export TAR_OPTIONS
28427 rm -rf *
28428
28429
28430 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
28431 echo test > endfile
28432
28433 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
28434 tar tf archive)"
28435 echo long01.at:36 >"$at_check_line_file"
28436
28437 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
28438    false; }; then
28439   ( $at_traceon;
28440 mkdir gnu
28441 (cd gnu
28442 TEST_TAR_FORMAT=gnu
28443 export TEST_TAR_FORMAT
28444 TAR_OPTIONS="-H gnu"
28445 export TAR_OPTIONS
28446 rm -rf *
28447
28448
28449 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
28450 echo test > endfile
28451
28452 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
28453 tar tf archive) ) >"$at_stdout" 2>"$at_stder1"
28454   at_func_filter_trace $?
28455 else
28456   ( :;
28457 mkdir gnu
28458 (cd gnu
28459 TEST_TAR_FORMAT=gnu
28460 export TEST_TAR_FORMAT
28461 TAR_OPTIONS="-H gnu"
28462 export TAR_OPTIONS
28463 rm -rf *
28464
28465
28466 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
28467 echo test > endfile
28468
28469 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
28470 tar tf archive) ) >"$at_stdout" 2>"$at_stderr"
28471 fi
28472 at_status=$?
28473 at_failed=false
28474 at_func_diff_devnull "$at_stderr" || at_failed=:
28475 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
28476 endfile
28477 " | \
28478   $at_diff - "$at_stdout" || at_failed=:
28479 at_func_check_status 0 $at_status "$at_srcdir/long01.at:36"
28480
28481 $at_failed && at_func_log_failure
28482 $at_traceon; }
28483
28484               { $at_traceoff
28485 $as_echo "$at_srcdir/long01.at:36:
28486 mkdir oldgnu
28487 (cd oldgnu
28488 TEST_TAR_FORMAT=oldgnu
28489 export TEST_TAR_FORMAT
28490 TAR_OPTIONS=\"-H oldgnu\"
28491 export TAR_OPTIONS
28492 rm -rf *
28493
28494
28495 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
28496 echo test > endfile
28497
28498 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
28499 tar tf archive)"
28500 echo long01.at:36 >"$at_check_line_file"
28501
28502 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
28503    false; }; then
28504   ( $at_traceon;
28505 mkdir oldgnu
28506 (cd oldgnu
28507 TEST_TAR_FORMAT=oldgnu
28508 export TEST_TAR_FORMAT
28509 TAR_OPTIONS="-H oldgnu"
28510 export TAR_OPTIONS
28511 rm -rf *
28512
28513
28514 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
28515 echo test > endfile
28516
28517 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
28518 tar tf archive) ) >"$at_stdout" 2>"$at_stder1"
28519   at_func_filter_trace $?
28520 else
28521   ( :;
28522 mkdir oldgnu
28523 (cd oldgnu
28524 TEST_TAR_FORMAT=oldgnu
28525 export TEST_TAR_FORMAT
28526 TAR_OPTIONS="-H oldgnu"
28527 export TAR_OPTIONS
28528 rm -rf *
28529
28530
28531 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
28532 echo test > endfile
28533
28534 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
28535 tar tf archive) ) >"$at_stdout" 2>"$at_stderr"
28536 fi
28537 at_status=$?
28538 at_failed=false
28539 at_func_diff_devnull "$at_stderr" || at_failed=:
28540 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
28541 endfile
28542 " | \
28543   $at_diff - "$at_stdout" || at_failed=:
28544 at_func_check_status 0 $at_status "$at_srcdir/long01.at:36"
28545
28546 $at_failed && at_func_log_failure
28547 $at_traceon; }
28548
28549
28550
28551
28552   $at_traceoff
28553   $at_times_p && times >"$at_times_file"
28554 ) 5>&1 2>&1 | eval $at_tee_pipe
28555 at_status=`cat "$at_status_file"`
28556 #AT_STOP_72
28557 #AT_START_73
28558 # 73. lustar01.at:21: ustar: unsplittable file name
28559 at_setup_line='lustar01.at:21'
28560 at_desc="ustar: unsplittable file name"
28561 $at_quiet $as_echo_n " 73: $at_desc                  "
28562 at_xfail=no
28563       test -f $XFAILFILE && at_xfail=yes
28564 echo "#                             -*- compilation -*-" >> "$at_group_log"
28565 (
28566   $as_echo "73. lustar01.at:21: testing ..."
28567   $at_traceon
28568
28569
28570
28571
28572
28573
28574
28575   { $at_traceoff
28576 $as_echo "$at_srcdir/lustar01.at:27:
28577 mkdir ustar
28578 (cd ustar
28579 TEST_TAR_FORMAT=ustar
28580 export TEST_TAR_FORMAT
28581 TAR_OPTIONS=\"-H ustar\"
28582 export TAR_OPTIONS
28583 rm -rf *
28584
28585 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
28586 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
28587 )"
28588 echo lustar01.at:27 >"$at_check_line_file"
28589
28590 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
28591    false; }; then
28592   ( $at_traceon;
28593 mkdir ustar
28594 (cd ustar
28595 TEST_TAR_FORMAT=ustar
28596 export TEST_TAR_FORMAT
28597 TAR_OPTIONS="-H ustar"
28598 export TAR_OPTIONS
28599 rm -rf *
28600
28601 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
28602 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
28603 ) ) >"$at_stdout" 2>"$at_stder1"
28604   at_func_filter_trace $?
28605 else
28606   ( :;
28607 mkdir ustar
28608 (cd ustar
28609 TEST_TAR_FORMAT=ustar
28610 export TEST_TAR_FORMAT
28611 TAR_OPTIONS="-H ustar"
28612 export TAR_OPTIONS
28613 rm -rf *
28614
28615 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
28616 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
28617 ) ) >"$at_stdout" 2>"$at_stderr"
28618 fi
28619 at_status=$?
28620 at_failed=false
28621 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
28622 tar: Exiting with failure status due to previous errors
28623 " | \
28624   $at_diff - "$at_stderr" || at_failed=:
28625 at_func_diff_devnull "$at_stdout" || at_failed=:
28626 at_func_check_status 2 $at_status "$at_srcdir/lustar01.at:27"
28627
28628 $at_failed && at_func_log_failure
28629 $at_traceon; }
28630
28631
28632
28633
28634   $at_traceoff
28635   $at_times_p && times >"$at_times_file"
28636 ) 5>&1 2>&1 | eval $at_tee_pipe
28637 at_status=`cat "$at_status_file"`
28638 #AT_STOP_73
28639 #AT_START_74
28640 # 74. lustar02.at:21: ustar: unsplittable path name
28641 at_setup_line='lustar02.at:21'
28642 at_desc="ustar: unsplittable path name"
28643 $at_quiet $as_echo_n " 74: $at_desc                  "
28644 at_xfail=no
28645       test -f $XFAILFILE && at_xfail=yes
28646 echo "#                             -*- compilation -*-" >> "$at_group_log"
28647 (
28648   $as_echo "74. lustar02.at:21: testing ..."
28649   $at_traceon
28650
28651
28652
28653
28654
28655
28656
28657
28658
28659
28660
28661   { $at_traceoff
28662 $as_echo "$at_srcdir/lustar02.at:32:
28663 mkdir ustar
28664 (cd ustar
28665 TEST_TAR_FORMAT=ustar
28666 export TEST_TAR_FORMAT
28667 TAR_OPTIONS=\"-H ustar\"
28668 export TAR_OPTIONS
28669 rm -rf *
28670
28671
28672 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
28673 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
28674 )"
28675 echo lustar02.at:32 >"$at_check_line_file"
28676
28677 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
28678    false; }; then
28679   ( $at_traceon;
28680 mkdir ustar
28681 (cd ustar
28682 TEST_TAR_FORMAT=ustar
28683 export TEST_TAR_FORMAT
28684 TAR_OPTIONS="-H ustar"
28685 export TAR_OPTIONS
28686 rm -rf *
28687
28688
28689 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
28690 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
28691 ) ) >"$at_stdout" 2>"$at_stder1"
28692   at_func_filter_trace $?
28693 else
28694   ( :;
28695 mkdir ustar
28696 (cd ustar
28697 TEST_TAR_FORMAT=ustar
28698 export TEST_TAR_FORMAT
28699 TAR_OPTIONS="-H ustar"
28700 export TAR_OPTIONS
28701 rm -rf *
28702
28703
28704 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
28705 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
28706 ) ) >"$at_stdout" 2>"$at_stderr"
28707 fi
28708 at_status=$?
28709 at_failed=false
28710 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
28711 tar: Exiting with failure status due to previous errors
28712 " | \
28713   $at_diff - "$at_stderr" || at_failed=:
28714 at_func_diff_devnull "$at_stdout" || at_failed=:
28715 at_func_check_status 2 $at_status "$at_srcdir/lustar02.at:32"
28716
28717 $at_failed && at_func_log_failure
28718 $at_traceon; }
28719
28720
28721
28722
28723   $at_traceoff
28724   $at_times_p && times >"$at_times_file"
28725 ) 5>&1 2>&1 | eval $at_tee_pipe
28726 at_status=`cat "$at_status_file"`
28727 #AT_STOP_74
28728 #AT_START_75
28729 # 75. lustar03.at:21: ustar: splitting long names
28730 at_setup_line='lustar03.at:21'
28731 at_desc="ustar: splitting long names"
28732 $at_quiet $as_echo_n " 75: $at_desc                    "
28733 at_xfail=no
28734       test -f $XFAILFILE && at_xfail=yes
28735 echo "#                             -*- compilation -*-" >> "$at_group_log"
28736 (
28737   $as_echo "75. lustar03.at:21: testing ..."
28738   $at_traceon
28739
28740
28741
28742
28743
28744
28745
28746
28747
28748   { $at_traceoff
28749 $as_echo "$at_srcdir/lustar03.at:29:
28750 mkdir ustar
28751 (cd ustar
28752 TEST_TAR_FORMAT=ustar
28753 export TEST_TAR_FORMAT
28754 TAR_OPTIONS=\"-H ustar\"
28755 export TAR_OPTIONS
28756 rm -rf *
28757
28758
28759 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
28760 echo \"Create archive\"
28761 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
28762 echo \"List archive\"
28763 tar tf archive)"
28764 echo lustar03.at:29 >"$at_check_line_file"
28765
28766 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
28767    false; }; then
28768   ( $at_traceon;
28769 mkdir ustar
28770 (cd ustar
28771 TEST_TAR_FORMAT=ustar
28772 export TEST_TAR_FORMAT
28773 TAR_OPTIONS="-H ustar"
28774 export TAR_OPTIONS
28775 rm -rf *
28776
28777
28778 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
28779 echo "Create archive"
28780 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
28781 echo "List archive"
28782 tar tf archive) ) >"$at_stdout" 2>"$at_stder1"
28783   at_func_filter_trace $?
28784 else
28785   ( :;
28786 mkdir ustar
28787 (cd ustar
28788 TEST_TAR_FORMAT=ustar
28789 export TEST_TAR_FORMAT
28790 TAR_OPTIONS="-H ustar"
28791 export TAR_OPTIONS
28792 rm -rf *
28793
28794
28795 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
28796 echo "Create archive"
28797 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
28798 echo "List archive"
28799 tar tf archive) ) >"$at_stdout" 2>"$at_stderr"
28800 fi
28801 at_status=$?
28802 at_failed=false
28803 at_func_diff_devnull "$at_stderr" || at_failed=:
28804 echo >>"$at_stdout"; $as_echo "Create archive
28805 List archive
28806 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/
28807 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
28808 " | \
28809   $at_diff - "$at_stdout" || at_failed=:
28810 at_func_check_status 0 $at_status "$at_srcdir/lustar03.at:29"
28811
28812 $at_failed && at_func_log_failure
28813 $at_traceon; }
28814
28815
28816
28817
28818   $at_traceoff
28819   $at_times_p && times >"$at_times_file"
28820 ) 5>&1 2>&1 | eval $at_tee_pipe
28821 at_status=`cat "$at_status_file"`
28822 #AT_STOP_75
28823 #AT_START_76
28824 # 76. multiv01.at:23: multivolume dumps from pipes
28825 at_setup_line='multiv01.at:23'
28826 at_desc="multivolume dumps from pipes"
28827 $at_quiet $as_echo_n " 76: $at_desc                   "
28828 at_xfail=no
28829       test -f $XFAILFILE && at_xfail=yes
28830 echo "#                             -*- compilation -*-" >> "$at_group_log"
28831 (
28832   $as_echo "76. multiv01.at:23: testing ..."
28833   $at_traceon
28834
28835
28836
28837 # Fixme: should be configurable
28838 #  TRUSS=truss -o /tmp/tr
28839 #  TRUSS=strace
28840
28841
28842
28843   { $at_traceoff
28844 $as_echo "$at_srcdir/multiv01.at:30:
28845 mkdir gnu
28846 (cd gnu
28847 TEST_TAR_FORMAT=gnu
28848 export TEST_TAR_FORMAT
28849 TAR_OPTIONS=\"-H gnu\"
28850 export TAR_OPTIONS
28851 rm -rf *
28852
28853 exec <&-
28854 genfile --length 7168 --file file1
28855
28856 for block in \" 1\" \" 2\" \" 3\" \" 4\" \" 5\" \" 6\" \" 7\" \" 8\" \\
28857               \" 9\" \"10\" \"11\" \"12\" \"13\" \"14\" \"15\" \"16\" ; do \\
28858   echo \"file2  block \${block} bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla\"
28859   for count in 2 3 4 5 6 7 8 ; do
28860     echo \"bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla\"
28861   done
28862 done >file2
28863
28864 if test \$TEST_TAR_FORMAT = pax; then
28865   TAPE_LENGTH=11
28866 else
28867   TAPE_LENGTH=10
28868 fi
28869
28870 tar -c --multi-volume --tape-length=\$TAPE_LENGTH \\
28871   -f t1-pipe.tar -f t2-pipe.tar ./file1 ./file2 || exit 1
28872
28873 mkdir extract-dir-pipe
28874 dd bs=4096 count=\$TAPE_LENGTH if=t2-pipe.tar 2>/dev/null |
28875 PATH=\$PATH \${TRUSS} tar -f t1-pipe.tar -f - \\
28876       -C extract-dir-pipe -x --multi-volume --warning=no-timestamp \\
28877       --tape-length=\$TAPE_LENGTH --read-full-records || exit 1
28878
28879 cmp file1 extract-dir-pipe/file1
28880 cmp file2 extract-dir-pipe/file2
28881 )"
28882 echo multiv01.at:30 >"$at_check_line_file"
28883
28884 if { echo 'Not enabling shell tracing (command contains a ${...} parameter expansion)'
28885    false; }; then
28886   ( $at_traceon;
28887 mkdir gnu
28888 (cd gnu
28889 TEST_TAR_FORMAT=gnu
28890 export TEST_TAR_FORMAT
28891 TAR_OPTIONS="-H gnu"
28892 export TAR_OPTIONS
28893 rm -rf *
28894
28895 exec <&-
28896 genfile --length 7168 --file file1
28897
28898 for block in " 1" " 2" " 3" " 4" " 5" " 6" " 7" " 8" \
28899               " 9" "10" "11" "12" "13" "14" "15" "16" ; do \
28900   echo "file2  block ${block} bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla"
28901   for count in 2 3 4 5 6 7 8 ; do
28902     echo "bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla"
28903   done
28904 done >file2
28905
28906 if test $TEST_TAR_FORMAT = pax; then
28907   TAPE_LENGTH=11
28908 else
28909   TAPE_LENGTH=10
28910 fi
28911
28912 tar -c --multi-volume --tape-length=$TAPE_LENGTH \
28913   -f t1-pipe.tar -f t2-pipe.tar ./file1 ./file2 || exit 1
28914
28915 mkdir extract-dir-pipe
28916 dd bs=4096 count=$TAPE_LENGTH if=t2-pipe.tar 2>/dev/null |
28917 PATH=$PATH ${TRUSS} tar -f t1-pipe.tar -f - \
28918       -C extract-dir-pipe -x --multi-volume --warning=no-timestamp \
28919       --tape-length=$TAPE_LENGTH --read-full-records || exit 1
28920
28921 cmp file1 extract-dir-pipe/file1
28922 cmp file2 extract-dir-pipe/file2
28923 ) ) >"$at_stdout" 2>"$at_stder1"
28924   at_func_filter_trace $?
28925 else
28926   ( :;
28927 mkdir gnu
28928 (cd gnu
28929 TEST_TAR_FORMAT=gnu
28930 export TEST_TAR_FORMAT
28931 TAR_OPTIONS="-H gnu"
28932 export TAR_OPTIONS
28933 rm -rf *
28934
28935 exec <&-
28936 genfile --length 7168 --file file1
28937
28938 for block in " 1" " 2" " 3" " 4" " 5" " 6" " 7" " 8" \
28939               " 9" "10" "11" "12" "13" "14" "15" "16" ; do \
28940   echo "file2  block ${block} bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla"
28941   for count in 2 3 4 5 6 7 8 ; do
28942     echo "bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla"
28943   done
28944 done >file2
28945
28946 if test $TEST_TAR_FORMAT = pax; then
28947   TAPE_LENGTH=11
28948 else
28949   TAPE_LENGTH=10
28950 fi
28951
28952 tar -c --multi-volume --tape-length=$TAPE_LENGTH \
28953   -f t1-pipe.tar -f t2-pipe.tar ./file1 ./file2 || exit 1
28954
28955 mkdir extract-dir-pipe
28956 dd bs=4096 count=$TAPE_LENGTH if=t2-pipe.tar 2>/dev/null |
28957 PATH=$PATH ${TRUSS} tar -f t1-pipe.tar -f - \
28958       -C extract-dir-pipe -x --multi-volume --warning=no-timestamp \
28959       --tape-length=$TAPE_LENGTH --read-full-records || exit 1
28960
28961 cmp file1 extract-dir-pipe/file1
28962 cmp file2 extract-dir-pipe/file2
28963 ) ) >"$at_stdout" 2>"$at_stderr"
28964 fi
28965 at_status=$?
28966 at_failed=false
28967 at_func_diff_devnull "$at_stderr" || at_failed=:
28968 at_func_diff_devnull "$at_stdout" || at_failed=:
28969 at_func_check_status 0 $at_status "$at_srcdir/multiv01.at:30"
28970
28971 $at_failed && at_func_log_failure
28972 $at_traceon; }
28973
28974               { $at_traceoff
28975 $as_echo "$at_srcdir/multiv01.at:30:
28976 mkdir oldgnu
28977 (cd oldgnu
28978 TEST_TAR_FORMAT=oldgnu
28979 export TEST_TAR_FORMAT
28980 TAR_OPTIONS=\"-H oldgnu\"
28981 export TAR_OPTIONS
28982 rm -rf *
28983
28984 exec <&-
28985 genfile --length 7168 --file file1
28986
28987 for block in \" 1\" \" 2\" \" 3\" \" 4\" \" 5\" \" 6\" \" 7\" \" 8\" \\
28988               \" 9\" \"10\" \"11\" \"12\" \"13\" \"14\" \"15\" \"16\" ; do \\
28989   echo \"file2  block \${block} bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla\"
28990   for count in 2 3 4 5 6 7 8 ; do
28991     echo \"bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla\"
28992   done
28993 done >file2
28994
28995 if test \$TEST_TAR_FORMAT = pax; then
28996   TAPE_LENGTH=11
28997 else
28998   TAPE_LENGTH=10
28999 fi
29000
29001 tar -c --multi-volume --tape-length=\$TAPE_LENGTH \\
29002   -f t1-pipe.tar -f t2-pipe.tar ./file1 ./file2 || exit 1
29003
29004 mkdir extract-dir-pipe
29005 dd bs=4096 count=\$TAPE_LENGTH if=t2-pipe.tar 2>/dev/null |
29006 PATH=\$PATH \${TRUSS} tar -f t1-pipe.tar -f - \\
29007       -C extract-dir-pipe -x --multi-volume --warning=no-timestamp \\
29008       --tape-length=\$TAPE_LENGTH --read-full-records || exit 1
29009
29010 cmp file1 extract-dir-pipe/file1
29011 cmp file2 extract-dir-pipe/file2
29012 )"
29013 echo multiv01.at:30 >"$at_check_line_file"
29014
29015 if { echo 'Not enabling shell tracing (command contains a ${...} parameter expansion)'
29016    false; }; then
29017   ( $at_traceon;
29018 mkdir oldgnu
29019 (cd oldgnu
29020 TEST_TAR_FORMAT=oldgnu
29021 export TEST_TAR_FORMAT
29022 TAR_OPTIONS="-H oldgnu"
29023 export TAR_OPTIONS
29024 rm -rf *
29025
29026 exec <&-
29027 genfile --length 7168 --file file1
29028
29029 for block in " 1" " 2" " 3" " 4" " 5" " 6" " 7" " 8" \
29030               " 9" "10" "11" "12" "13" "14" "15" "16" ; do \
29031   echo "file2  block ${block} bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla"
29032   for count in 2 3 4 5 6 7 8 ; do
29033     echo "bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla"
29034   done
29035 done >file2
29036
29037 if test $TEST_TAR_FORMAT = pax; then
29038   TAPE_LENGTH=11
29039 else
29040   TAPE_LENGTH=10
29041 fi
29042
29043 tar -c --multi-volume --tape-length=$TAPE_LENGTH \
29044   -f t1-pipe.tar -f t2-pipe.tar ./file1 ./file2 || exit 1
29045
29046 mkdir extract-dir-pipe
29047 dd bs=4096 count=$TAPE_LENGTH if=t2-pipe.tar 2>/dev/null |
29048 PATH=$PATH ${TRUSS} tar -f t1-pipe.tar -f - \
29049       -C extract-dir-pipe -x --multi-volume --warning=no-timestamp \
29050       --tape-length=$TAPE_LENGTH --read-full-records || exit 1
29051
29052 cmp file1 extract-dir-pipe/file1
29053 cmp file2 extract-dir-pipe/file2
29054 ) ) >"$at_stdout" 2>"$at_stder1"
29055   at_func_filter_trace $?
29056 else
29057   ( :;
29058 mkdir oldgnu
29059 (cd oldgnu
29060 TEST_TAR_FORMAT=oldgnu
29061 export TEST_TAR_FORMAT
29062 TAR_OPTIONS="-H oldgnu"
29063 export TAR_OPTIONS
29064 rm -rf *
29065
29066 exec <&-
29067 genfile --length 7168 --file file1
29068
29069 for block in " 1" " 2" " 3" " 4" " 5" " 6" " 7" " 8" \
29070               " 9" "10" "11" "12" "13" "14" "15" "16" ; do \
29071   echo "file2  block ${block} bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla"
29072   for count in 2 3 4 5 6 7 8 ; do
29073     echo "bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla"
29074   done
29075 done >file2
29076
29077 if test $TEST_TAR_FORMAT = pax; then
29078   TAPE_LENGTH=11
29079 else
29080   TAPE_LENGTH=10
29081 fi
29082
29083 tar -c --multi-volume --tape-length=$TAPE_LENGTH \
29084   -f t1-pipe.tar -f t2-pipe.tar ./file1 ./file2 || exit 1
29085
29086 mkdir extract-dir-pipe
29087 dd bs=4096 count=$TAPE_LENGTH if=t2-pipe.tar 2>/dev/null |
29088 PATH=$PATH ${TRUSS} tar -f t1-pipe.tar -f - \
29089       -C extract-dir-pipe -x --multi-volume --warning=no-timestamp \
29090       --tape-length=$TAPE_LENGTH --read-full-records || exit 1
29091
29092 cmp file1 extract-dir-pipe/file1
29093 cmp file2 extract-dir-pipe/file2
29094 ) ) >"$at_stdout" 2>"$at_stderr"
29095 fi
29096 at_status=$?
29097 at_failed=false
29098 at_func_diff_devnull "$at_stderr" || at_failed=:
29099 at_func_diff_devnull "$at_stdout" || at_failed=:
29100 at_func_check_status 0 $at_status "$at_srcdir/multiv01.at:30"
29101
29102 $at_failed && at_func_log_failure
29103 $at_traceon; }
29104
29105               { $at_traceoff
29106 $as_echo "$at_srcdir/multiv01.at:30:
29107 mkdir pax
29108 (cd pax
29109 TEST_TAR_FORMAT=pax
29110 export TEST_TAR_FORMAT
29111 TAR_OPTIONS=\"-H pax\"
29112 export TAR_OPTIONS
29113 rm -rf *
29114
29115 exec <&-
29116 genfile --length 7168 --file file1
29117
29118 for block in \" 1\" \" 2\" \" 3\" \" 4\" \" 5\" \" 6\" \" 7\" \" 8\" \\
29119               \" 9\" \"10\" \"11\" \"12\" \"13\" \"14\" \"15\" \"16\" ; do \\
29120   echo \"file2  block \${block} bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla\"
29121   for count in 2 3 4 5 6 7 8 ; do
29122     echo \"bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla\"
29123   done
29124 done >file2
29125
29126 if test \$TEST_TAR_FORMAT = pax; then
29127   TAPE_LENGTH=11
29128 else
29129   TAPE_LENGTH=10
29130 fi
29131
29132 tar -c --multi-volume --tape-length=\$TAPE_LENGTH \\
29133   -f t1-pipe.tar -f t2-pipe.tar ./file1 ./file2 || exit 1
29134
29135 mkdir extract-dir-pipe
29136 dd bs=4096 count=\$TAPE_LENGTH if=t2-pipe.tar 2>/dev/null |
29137 PATH=\$PATH \${TRUSS} tar -f t1-pipe.tar -f - \\
29138       -C extract-dir-pipe -x --multi-volume --warning=no-timestamp \\
29139       --tape-length=\$TAPE_LENGTH --read-full-records || exit 1
29140
29141 cmp file1 extract-dir-pipe/file1
29142 cmp file2 extract-dir-pipe/file2
29143 )"
29144 echo multiv01.at:30 >"$at_check_line_file"
29145
29146 if { echo 'Not enabling shell tracing (command contains a ${...} parameter expansion)'
29147    false; }; then
29148   ( $at_traceon;
29149 mkdir pax
29150 (cd pax
29151 TEST_TAR_FORMAT=pax
29152 export TEST_TAR_FORMAT
29153 TAR_OPTIONS="-H pax"
29154 export TAR_OPTIONS
29155 rm -rf *
29156
29157 exec <&-
29158 genfile --length 7168 --file file1
29159
29160 for block in " 1" " 2" " 3" " 4" " 5" " 6" " 7" " 8" \
29161               " 9" "10" "11" "12" "13" "14" "15" "16" ; do \
29162   echo "file2  block ${block} bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla"
29163   for count in 2 3 4 5 6 7 8 ; do
29164     echo "bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla"
29165   done
29166 done >file2
29167
29168 if test $TEST_TAR_FORMAT = pax; then
29169   TAPE_LENGTH=11
29170 else
29171   TAPE_LENGTH=10
29172 fi
29173
29174 tar -c --multi-volume --tape-length=$TAPE_LENGTH \
29175   -f t1-pipe.tar -f t2-pipe.tar ./file1 ./file2 || exit 1
29176
29177 mkdir extract-dir-pipe
29178 dd bs=4096 count=$TAPE_LENGTH if=t2-pipe.tar 2>/dev/null |
29179 PATH=$PATH ${TRUSS} tar -f t1-pipe.tar -f - \
29180       -C extract-dir-pipe -x --multi-volume --warning=no-timestamp \
29181       --tape-length=$TAPE_LENGTH --read-full-records || exit 1
29182
29183 cmp file1 extract-dir-pipe/file1
29184 cmp file2 extract-dir-pipe/file2
29185 ) ) >"$at_stdout" 2>"$at_stder1"
29186   at_func_filter_trace $?
29187 else
29188   ( :;
29189 mkdir pax
29190 (cd pax
29191 TEST_TAR_FORMAT=pax
29192 export TEST_TAR_FORMAT
29193 TAR_OPTIONS="-H pax"
29194 export TAR_OPTIONS
29195 rm -rf *
29196
29197 exec <&-
29198 genfile --length 7168 --file file1
29199
29200 for block in " 1" " 2" " 3" " 4" " 5" " 6" " 7" " 8" \
29201               " 9" "10" "11" "12" "13" "14" "15" "16" ; do \
29202   echo "file2  block ${block} bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla"
29203   for count in 2 3 4 5 6 7 8 ; do
29204     echo "bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla!bla"
29205   done
29206 done >file2
29207
29208 if test $TEST_TAR_FORMAT = pax; then
29209   TAPE_LENGTH=11
29210 else
29211   TAPE_LENGTH=10
29212 fi
29213
29214 tar -c --multi-volume --tape-length=$TAPE_LENGTH \
29215   -f t1-pipe.tar -f t2-pipe.tar ./file1 ./file2 || exit 1
29216
29217 mkdir extract-dir-pipe
29218 dd bs=4096 count=$TAPE_LENGTH if=t2-pipe.tar 2>/dev/null |
29219 PATH=$PATH ${TRUSS} tar -f t1-pipe.tar -f - \
29220       -C extract-dir-pipe -x --multi-volume --warning=no-timestamp \
29221       --tape-length=$TAPE_LENGTH --read-full-records || exit 1
29222
29223 cmp file1 extract-dir-pipe/file1
29224 cmp file2 extract-dir-pipe/file2
29225 ) ) >"$at_stdout" 2>"$at_stderr"
29226 fi
29227 at_status=$?
29228 at_failed=false
29229 at_func_diff_devnull "$at_stderr" || at_failed=:
29230 at_func_diff_devnull "$at_stdout" || at_failed=:
29231 at_func_check_status 0 $at_status "$at_srcdir/multiv01.at:30"
29232
29233 $at_failed && at_func_log_failure
29234 $at_traceon; }
29235
29236
29237
29238
29239   $at_traceoff
29240   $at_times_p && times >"$at_times_file"
29241 ) 5>&1 2>&1 | eval $at_tee_pipe
29242 at_status=`cat "$at_status_file"`
29243 #AT_STOP_76
29244 #AT_START_77
29245 # 77. multiv02.at:28: skipping a straddling member
29246 at_setup_line='multiv02.at:28'
29247 at_desc="skipping a straddling member"
29248 $at_quiet $as_echo_n " 77: $at_desc                   "
29249 at_xfail=no
29250       test -f $XFAILFILE && at_xfail=yes
29251 echo "#                             -*- compilation -*-" >> "$at_group_log"
29252 (
29253   $as_echo "77. multiv02.at:28: testing ..."
29254   $at_traceon
29255
29256
29257
29258
29259
29260   { $at_traceoff
29261 $as_echo "$at_srcdir/multiv02.at:31:
29262 mkdir gnu
29263 (cd gnu
29264 TEST_TAR_FORMAT=gnu
29265 export TEST_TAR_FORMAT
29266 TAR_OPTIONS=\"-H gnu\"
29267 export TAR_OPTIONS
29268 rm -rf *
29269
29270 genfile --length 10240 --file en
29271 genfile --length 20000 --file to
29272 genfile --length 20000 --file tre
29273 genfile --length 10240 --file fire
29274
29275 exec <&-
29276
29277 tar -c -f A.tar -f B.tar -f C.tar -M -L 30 en to tre fire || exit 1
29278 echo separator
29279 tar -v -x -f A.tar -f B.tar -f C.tar -M en --warning=no-timestamp || exit 1
29280 )"
29281 echo multiv02.at:31 >"$at_check_line_file"
29282
29283 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
29284    false; }; then
29285   ( $at_traceon;
29286 mkdir gnu
29287 (cd gnu
29288 TEST_TAR_FORMAT=gnu
29289 export TEST_TAR_FORMAT
29290 TAR_OPTIONS="-H gnu"
29291 export TAR_OPTIONS
29292 rm -rf *
29293
29294 genfile --length 10240 --file en
29295 genfile --length 20000 --file to
29296 genfile --length 20000 --file tre
29297 genfile --length 10240 --file fire
29298
29299 exec <&-
29300
29301 tar -c -f A.tar -f B.tar -f C.tar -M -L 30 en to tre fire || exit 1
29302 echo separator
29303 tar -v -x -f A.tar -f B.tar -f C.tar -M en --warning=no-timestamp || exit 1
29304 ) ) >"$at_stdout" 2>"$at_stder1"
29305   at_func_filter_trace $?
29306 else
29307   ( :;
29308 mkdir gnu
29309 (cd gnu
29310 TEST_TAR_FORMAT=gnu
29311 export TEST_TAR_FORMAT
29312 TAR_OPTIONS="-H gnu"
29313 export TAR_OPTIONS
29314 rm -rf *
29315
29316 genfile --length 10240 --file en
29317 genfile --length 20000 --file to
29318 genfile --length 20000 --file tre
29319 genfile --length 10240 --file fire
29320
29321 exec <&-
29322
29323 tar -c -f A.tar -f B.tar -f C.tar -M -L 30 en to tre fire || exit 1
29324 echo separator
29325 tar -v -x -f A.tar -f B.tar -f C.tar -M en --warning=no-timestamp || exit 1
29326 ) ) >"$at_stdout" 2>"$at_stderr"
29327 fi
29328 at_status=$?
29329 at_failed=false
29330 at_func_diff_devnull "$at_stderr" || at_failed=:
29331 echo >>"$at_stdout"; $as_echo "separator
29332 en
29333 " | \
29334   $at_diff - "$at_stdout" || at_failed=:
29335 at_func_check_status 0 $at_status "$at_srcdir/multiv02.at:31"
29336
29337 $at_failed && at_func_log_failure
29338 $at_traceon; }
29339
29340               { $at_traceoff
29341 $as_echo "$at_srcdir/multiv02.at:31:
29342 mkdir oldgnu
29343 (cd oldgnu
29344 TEST_TAR_FORMAT=oldgnu
29345 export TEST_TAR_FORMAT
29346 TAR_OPTIONS=\"-H oldgnu\"
29347 export TAR_OPTIONS
29348 rm -rf *
29349
29350 genfile --length 10240 --file en
29351 genfile --length 20000 --file to
29352 genfile --length 20000 --file tre
29353 genfile --length 10240 --file fire
29354
29355 exec <&-
29356
29357 tar -c -f A.tar -f B.tar -f C.tar -M -L 30 en to tre fire || exit 1
29358 echo separator
29359 tar -v -x -f A.tar -f B.tar -f C.tar -M en --warning=no-timestamp || exit 1
29360 )"
29361 echo multiv02.at:31 >"$at_check_line_file"
29362
29363 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
29364    false; }; then
29365   ( $at_traceon;
29366 mkdir oldgnu
29367 (cd oldgnu
29368 TEST_TAR_FORMAT=oldgnu
29369 export TEST_TAR_FORMAT
29370 TAR_OPTIONS="-H oldgnu"
29371 export TAR_OPTIONS
29372 rm -rf *
29373
29374 genfile --length 10240 --file en
29375 genfile --length 20000 --file to
29376 genfile --length 20000 --file tre
29377 genfile --length 10240 --file fire
29378
29379 exec <&-
29380
29381 tar -c -f A.tar -f B.tar -f C.tar -M -L 30 en to tre fire || exit 1
29382 echo separator
29383 tar -v -x -f A.tar -f B.tar -f C.tar -M en --warning=no-timestamp || exit 1
29384 ) ) >"$at_stdout" 2>"$at_stder1"
29385   at_func_filter_trace $?
29386 else
29387   ( :;
29388 mkdir oldgnu
29389 (cd oldgnu
29390 TEST_TAR_FORMAT=oldgnu
29391 export TEST_TAR_FORMAT
29392 TAR_OPTIONS="-H oldgnu"
29393 export TAR_OPTIONS
29394 rm -rf *
29395
29396 genfile --length 10240 --file en
29397 genfile --length 20000 --file to
29398 genfile --length 20000 --file tre
29399 genfile --length 10240 --file fire
29400
29401 exec <&-
29402
29403 tar -c -f A.tar -f B.tar -f C.tar -M -L 30 en to tre fire || exit 1
29404 echo separator
29405 tar -v -x -f A.tar -f B.tar -f C.tar -M en --warning=no-timestamp || exit 1
29406 ) ) >"$at_stdout" 2>"$at_stderr"
29407 fi
29408 at_status=$?
29409 at_failed=false
29410 at_func_diff_devnull "$at_stderr" || at_failed=:
29411 echo >>"$at_stdout"; $as_echo "separator
29412 en
29413 " | \
29414   $at_diff - "$at_stdout" || at_failed=:
29415 at_func_check_status 0 $at_status "$at_srcdir/multiv02.at:31"
29416
29417 $at_failed && at_func_log_failure
29418 $at_traceon; }
29419
29420               { $at_traceoff
29421 $as_echo "$at_srcdir/multiv02.at:31:
29422 mkdir pax
29423 (cd pax
29424 TEST_TAR_FORMAT=pax
29425 export TEST_TAR_FORMAT
29426 TAR_OPTIONS=\"-H pax\"
29427 export TAR_OPTIONS
29428 rm -rf *
29429
29430 genfile --length 10240 --file en
29431 genfile --length 20000 --file to
29432 genfile --length 20000 --file tre
29433 genfile --length 10240 --file fire
29434
29435 exec <&-
29436
29437 tar -c -f A.tar -f B.tar -f C.tar -M -L 30 en to tre fire || exit 1
29438 echo separator
29439 tar -v -x -f A.tar -f B.tar -f C.tar -M en --warning=no-timestamp || exit 1
29440 )"
29441 echo multiv02.at:31 >"$at_check_line_file"
29442
29443 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
29444    false; }; then
29445   ( $at_traceon;
29446 mkdir pax
29447 (cd pax
29448 TEST_TAR_FORMAT=pax
29449 export TEST_TAR_FORMAT
29450 TAR_OPTIONS="-H pax"
29451 export TAR_OPTIONS
29452 rm -rf *
29453
29454 genfile --length 10240 --file en
29455 genfile --length 20000 --file to
29456 genfile --length 20000 --file tre
29457 genfile --length 10240 --file fire
29458
29459 exec <&-
29460
29461 tar -c -f A.tar -f B.tar -f C.tar -M -L 30 en to tre fire || exit 1
29462 echo separator
29463 tar -v -x -f A.tar -f B.tar -f C.tar -M en --warning=no-timestamp || exit 1
29464 ) ) >"$at_stdout" 2>"$at_stder1"
29465   at_func_filter_trace $?
29466 else
29467   ( :;
29468 mkdir pax
29469 (cd pax
29470 TEST_TAR_FORMAT=pax
29471 export TEST_TAR_FORMAT
29472 TAR_OPTIONS="-H pax"
29473 export TAR_OPTIONS
29474 rm -rf *
29475
29476 genfile --length 10240 --file en
29477 genfile --length 20000 --file to
29478 genfile --length 20000 --file tre
29479 genfile --length 10240 --file fire
29480
29481 exec <&-
29482
29483 tar -c -f A.tar -f B.tar -f C.tar -M -L 30 en to tre fire || exit 1
29484 echo separator
29485 tar -v -x -f A.tar -f B.tar -f C.tar -M en --warning=no-timestamp || exit 1
29486 ) ) >"$at_stdout" 2>"$at_stderr"
29487 fi
29488 at_status=$?
29489 at_failed=false
29490 at_func_diff_devnull "$at_stderr" || at_failed=:
29491 echo >>"$at_stdout"; $as_echo "separator
29492 en
29493 " | \
29494   $at_diff - "$at_stdout" || at_failed=:
29495 at_func_check_status 0 $at_status "$at_srcdir/multiv02.at:31"
29496
29497 $at_failed && at_func_log_failure
29498 $at_traceon; }
29499
29500
29501
29502
29503   $at_traceoff
29504   $at_times_p && times >"$at_times_file"
29505 ) 5>&1 2>&1 | eval $at_tee_pipe
29506 at_status=`cat "$at_status_file"`
29507 #AT_STOP_77
29508 #AT_START_78
29509 # 78. multiv03.at:30: MV archive & long filenames
29510 at_setup_line='multiv03.at:30'
29511 at_desc="MV archive & long filenames"
29512 $at_quiet $as_echo_n " 78: $at_desc                    "
29513 at_xfail=no
29514       test -f $XFAILFILE && at_xfail=yes
29515 echo "#                             -*- compilation -*-" >> "$at_group_log"
29516 (
29517   $as_echo "78. multiv03.at:30: testing ..."
29518   $at_traceon
29519
29520
29521
29522
29523
29524   { $at_traceoff
29525 $as_echo "$at_srcdir/multiv03.at:33:
29526 mkdir gnu
29527 (cd gnu
29528 TEST_TAR_FORMAT=gnu
29529 export TEST_TAR_FORMAT
29530 TAR_OPTIONS=\"-H gnu\"
29531 export TAR_OPTIONS
29532 rm -rf *
29533
29534 AFILE=\`awk 'BEGIN { for (i = 0; i < 100; i++) printf \"a\"; exit; }'\`
29535 BFILE=\`awk 'BEGIN { for (i = 0; i < 101; i++) printf \"b\"; exit; }'\`
29536
29537 cat > ../experr <<EOF
29538 tar: \$BFILE: file name too long to be stored in a GNU multivolume header, truncated
29539 tar: \\\`\$BFILE' is possibly continued on this volume: header contains truncated name
29540 EOF
29541
29542 cat > ../expout <<EOF
29543 \$AFILE
29544 separator-1
29545 separator-2
29546 EOF
29547
29548 genfile --length 15360 --file \$AFILE
29549
29550 exec <&-
29551
29552 tar -M -L 10 -c -f arch.1 -f arch.2 \$AFILE || exit 1
29553 tar -tM -f arch.1 -f arch.2 || exit 1
29554
29555 echo separator-1
29556
29557 genfile --length 15360 --file \$BFILE
29558 tar -M -L 10 -c -f arch.1 -f arch.2 \$BFILE || exit 1
29559
29560 echo separator-2
29561 mv \$BFILE bfile
29562 tar -M -x -f arch.1 -f arch.2 --warning=no-timestamp || exit 1
29563 cmp \$BFILE bfile
29564 )"
29565 echo multiv03.at:33 >"$at_check_line_file"
29566
29567 if { echo 'Not enabling shell tracing (command contains a `...` command substitution)'
29568    false; }; then
29569   ( $at_traceon;
29570 mkdir gnu
29571 (cd gnu
29572 TEST_TAR_FORMAT=gnu
29573 export TEST_TAR_FORMAT
29574 TAR_OPTIONS="-H gnu"
29575 export TAR_OPTIONS
29576 rm -rf *
29577
29578 AFILE=`awk 'BEGIN { for (i = 0; i < 100; i++) printf "a"; exit; }'`
29579 BFILE=`awk 'BEGIN { for (i = 0; i < 101; i++) printf "b"; exit; }'`
29580
29581 cat > ../experr <<EOF
29582 tar: $BFILE: file name too long to be stored in a GNU multivolume header, truncated
29583 tar: \`$BFILE' is possibly continued on this volume: header contains truncated name
29584 EOF
29585
29586 cat > ../expout <<EOF
29587 $AFILE
29588 separator-1
29589 separator-2
29590 EOF
29591
29592 genfile --length 15360 --file $AFILE
29593
29594 exec <&-
29595
29596 tar -M -L 10 -c -f arch.1 -f arch.2 $AFILE || exit 1
29597 tar -tM -f arch.1 -f arch.2 || exit 1
29598
29599 echo separator-1
29600
29601 genfile --length 15360 --file $BFILE
29602 tar -M -L 10 -c -f arch.1 -f arch.2 $BFILE || exit 1
29603
29604 echo separator-2
29605 mv $BFILE bfile
29606 tar -M -x -f arch.1 -f arch.2 --warning=no-timestamp || exit 1
29607 cmp $BFILE bfile
29608 ) ) >"$at_stdout" 2>"$at_stder1"
29609   at_func_filter_trace $?
29610 else
29611   ( :;
29612 mkdir gnu
29613 (cd gnu
29614 TEST_TAR_FORMAT=gnu
29615 export TEST_TAR_FORMAT
29616 TAR_OPTIONS="-H gnu"
29617 export TAR_OPTIONS
29618 rm -rf *
29619
29620 AFILE=`awk 'BEGIN { for (i = 0; i < 100; i++) printf "a"; exit; }'`
29621 BFILE=`awk 'BEGIN { for (i = 0; i < 101; i++) printf "b"; exit; }'`
29622
29623 cat > ../experr <<EOF
29624 tar: $BFILE: file name too long to be stored in a GNU multivolume header, truncated
29625 tar: \`$BFILE' is possibly continued on this volume: header contains truncated name
29626 EOF
29627
29628 cat > ../expout <<EOF
29629 $AFILE
29630 separator-1
29631 separator-2
29632 EOF
29633
29634 genfile --length 15360 --file $AFILE
29635
29636 exec <&-
29637
29638 tar -M -L 10 -c -f arch.1 -f arch.2 $AFILE || exit 1
29639 tar -tM -f arch.1 -f arch.2 || exit 1
29640
29641 echo separator-1
29642
29643 genfile --length 15360 --file $BFILE
29644 tar -M -L 10 -c -f arch.1 -f arch.2 $BFILE || exit 1
29645
29646 echo separator-2
29647 mv $BFILE bfile
29648 tar -M -x -f arch.1 -f arch.2 --warning=no-timestamp || exit 1
29649 cmp $BFILE bfile
29650 ) ) >"$at_stdout" 2>"$at_stderr"
29651 fi
29652 at_status=$?
29653 at_failed=false
29654 $at_diff experr "$at_stderr" || at_failed=:
29655 $at_diff expout "$at_stdout" || at_failed=:
29656 at_func_check_status 0 $at_status "$at_srcdir/multiv03.at:33"
29657
29658 $at_failed && at_func_log_failure
29659 $at_traceon; }
29660
29661               { $at_traceoff
29662 $as_echo "$at_srcdir/multiv03.at:33:
29663 mkdir oldgnu
29664 (cd oldgnu
29665 TEST_TAR_FORMAT=oldgnu
29666 export TEST_TAR_FORMAT
29667 TAR_OPTIONS=\"-H oldgnu\"
29668 export TAR_OPTIONS
29669 rm -rf *
29670
29671 AFILE=\`awk 'BEGIN { for (i = 0; i < 100; i++) printf \"a\"; exit; }'\`
29672 BFILE=\`awk 'BEGIN { for (i = 0; i < 101; i++) printf \"b\"; exit; }'\`
29673
29674 cat > ../experr <<EOF
29675 tar: \$BFILE: file name too long to be stored in a GNU multivolume header, truncated
29676 tar: \\\`\$BFILE' is possibly continued on this volume: header contains truncated name
29677 EOF
29678
29679 cat > ../expout <<EOF
29680 \$AFILE
29681 separator-1
29682 separator-2
29683 EOF
29684
29685 genfile --length 15360 --file \$AFILE
29686
29687 exec <&-
29688
29689 tar -M -L 10 -c -f arch.1 -f arch.2 \$AFILE || exit 1
29690 tar -tM -f arch.1 -f arch.2 || exit 1
29691
29692 echo separator-1
29693
29694 genfile --length 15360 --file \$BFILE
29695 tar -M -L 10 -c -f arch.1 -f arch.2 \$BFILE || exit 1
29696
29697 echo separator-2
29698 mv \$BFILE bfile
29699 tar -M -x -f arch.1 -f arch.2 --warning=no-timestamp || exit 1
29700 cmp \$BFILE bfile
29701 )"
29702 echo multiv03.at:33 >"$at_check_line_file"
29703
29704 if { echo 'Not enabling shell tracing (command contains a `...` command substitution)'
29705    false; }; then
29706   ( $at_traceon;
29707 mkdir oldgnu
29708 (cd oldgnu
29709 TEST_TAR_FORMAT=oldgnu
29710 export TEST_TAR_FORMAT
29711 TAR_OPTIONS="-H oldgnu"
29712 export TAR_OPTIONS
29713 rm -rf *
29714
29715 AFILE=`awk 'BEGIN { for (i = 0; i < 100; i++) printf "a"; exit; }'`
29716 BFILE=`awk 'BEGIN { for (i = 0; i < 101; i++) printf "b"; exit; }'`
29717
29718 cat > ../experr <<EOF
29719 tar: $BFILE: file name too long to be stored in a GNU multivolume header, truncated
29720 tar: \`$BFILE' is possibly continued on this volume: header contains truncated name
29721 EOF
29722
29723 cat > ../expout <<EOF
29724 $AFILE
29725 separator-1
29726 separator-2
29727 EOF
29728
29729 genfile --length 15360 --file $AFILE
29730
29731 exec <&-
29732
29733 tar -M -L 10 -c -f arch.1 -f arch.2 $AFILE || exit 1
29734 tar -tM -f arch.1 -f arch.2 || exit 1
29735
29736 echo separator-1
29737
29738 genfile --length 15360 --file $BFILE
29739 tar -M -L 10 -c -f arch.1 -f arch.2 $BFILE || exit 1
29740
29741 echo separator-2
29742 mv $BFILE bfile
29743 tar -M -x -f arch.1 -f arch.2 --warning=no-timestamp || exit 1
29744 cmp $BFILE bfile
29745 ) ) >"$at_stdout" 2>"$at_stder1"
29746   at_func_filter_trace $?
29747 else
29748   ( :;
29749 mkdir oldgnu
29750 (cd oldgnu
29751 TEST_TAR_FORMAT=oldgnu
29752 export TEST_TAR_FORMAT
29753 TAR_OPTIONS="-H oldgnu"
29754 export TAR_OPTIONS
29755 rm -rf *
29756
29757 AFILE=`awk 'BEGIN { for (i = 0; i < 100; i++) printf "a"; exit; }'`
29758 BFILE=`awk 'BEGIN { for (i = 0; i < 101; i++) printf "b"; exit; }'`
29759
29760 cat > ../experr <<EOF
29761 tar: $BFILE: file name too long to be stored in a GNU multivolume header, truncated
29762 tar: \`$BFILE' is possibly continued on this volume: header contains truncated name
29763 EOF
29764
29765 cat > ../expout <<EOF
29766 $AFILE
29767 separator-1
29768 separator-2
29769 EOF
29770
29771 genfile --length 15360 --file $AFILE
29772
29773 exec <&-
29774
29775 tar -M -L 10 -c -f arch.1 -f arch.2 $AFILE || exit 1
29776 tar -tM -f arch.1 -f arch.2 || exit 1
29777
29778 echo separator-1
29779
29780 genfile --length 15360 --file $BFILE
29781 tar -M -L 10 -c -f arch.1 -f arch.2 $BFILE || exit 1
29782
29783 echo separator-2
29784 mv $BFILE bfile
29785 tar -M -x -f arch.1 -f arch.2 --warning=no-timestamp || exit 1
29786 cmp $BFILE bfile
29787 ) ) >"$at_stdout" 2>"$at_stderr"
29788 fi
29789 at_status=$?
29790 at_failed=false
29791 $at_diff experr "$at_stderr" || at_failed=:
29792 $at_diff expout "$at_stdout" || at_failed=:
29793 at_func_check_status 0 $at_status "$at_srcdir/multiv03.at:33"
29794
29795 $at_failed && at_func_log_failure
29796 $at_traceon; }
29797
29798
29799
29800
29801   $at_traceoff
29802   $at_times_p && times >"$at_times_file"
29803 ) 5>&1 2>&1 | eval $at_tee_pipe
29804 at_status=`cat "$at_status_file"`
29805 #AT_STOP_78
29806 #AT_START_79
29807 # 79. multiv04.at:36: split directory members in a MV archive
29808 at_setup_line='multiv04.at:36'
29809 at_desc="split directory members in a MV archive"
29810 $at_quiet $as_echo_n " 79: $at_desc        "
29811 at_xfail=no
29812       test -f $XFAILFILE && at_xfail=yes
29813 echo "#                             -*- compilation -*-" >> "$at_group_log"
29814 (
29815   $as_echo "79. multiv04.at:36: testing ..."
29816   $at_traceon
29817
29818
29819
29820
29821
29822   { $at_traceoff
29823 $as_echo "$at_srcdir/multiv04.at:39:
29824 mkdir gnu
29825 (cd gnu
29826 TEST_TAR_FORMAT=gnu
29827 export TEST_TAR_FORMAT
29828 TAR_OPTIONS=\"-H gnu\"
29829 export TAR_OPTIONS
29830 rm -rf *
29831
29832
29833 mkdir directory
29834 awk 'BEGIN { for (i = 0; i < 1024; i++) printf(\"directory/%014x\\n\", i); }' </dev/null | genfile --files-from -
29835
29836 exec <&-
29837
29838 sleep 2
29839
29840 tar --listed-incremental=list -c -f archive.a directory
29841
29842 sleep 2
29843
29844 tar --listed-incremental=list -c --record-size 1024 -L 16 -f arc.1 -f arc.2 -v directory
29845
29846 echo separator
29847
29848 tar -MRt -f arc.1 -f arc.2)"
29849 echo multiv04.at:39 >"$at_check_line_file"
29850
29851 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
29852    false; }; then
29853   ( $at_traceon;
29854 mkdir gnu
29855 (cd gnu
29856 TEST_TAR_FORMAT=gnu
29857 export TEST_TAR_FORMAT
29858 TAR_OPTIONS="-H gnu"
29859 export TAR_OPTIONS
29860 rm -rf *
29861
29862
29863 mkdir directory
29864 awk 'BEGIN { for (i = 0; i < 1024; i++) printf("directory/%014x\n", i); }' </dev/null | genfile --files-from -
29865
29866 exec <&-
29867
29868 sleep 2
29869
29870 tar --listed-incremental=list -c -f archive.a directory
29871
29872 sleep 2
29873
29874 tar --listed-incremental=list -c --record-size 1024 -L 16 -f arc.1 -f arc.2 -v directory
29875
29876 echo separator
29877
29878 tar -MRt -f arc.1 -f arc.2) ) >"$at_stdout" 2>"$at_stder1"
29879   at_func_filter_trace $?
29880 else
29881   ( :;
29882 mkdir gnu
29883 (cd gnu
29884 TEST_TAR_FORMAT=gnu
29885 export TEST_TAR_FORMAT
29886 TAR_OPTIONS="-H gnu"
29887 export TAR_OPTIONS
29888 rm -rf *
29889
29890
29891 mkdir directory
29892 awk 'BEGIN { for (i = 0; i < 1024; i++) printf("directory/%014x\n", i); }' </dev/null | genfile --files-from -
29893
29894 exec <&-
29895
29896 sleep 2
29897
29898 tar --listed-incremental=list -c -f archive.a directory
29899
29900 sleep 2
29901
29902 tar --listed-incremental=list -c --record-size 1024 -L 16 -f arc.1 -f arc.2 -v directory
29903
29904 echo separator
29905
29906 tar -MRt -f arc.1 -f arc.2) ) >"$at_stdout" 2>"$at_stderr"
29907 fi
29908 at_status=$?
29909 at_failed=false
29910 at_func_diff_devnull "$at_stderr" || at_failed=:
29911 echo >>"$at_stdout"; $as_echo "directory/
29912 separator
29913 block 0: directory/
29914 block 35: ** Block of NULs **
29915 " | \
29916   $at_diff - "$at_stdout" || at_failed=:
29917 at_func_check_status 0 $at_status "$at_srcdir/multiv04.at:39"
29918
29919 $at_failed && at_func_log_failure
29920 $at_traceon; }
29921
29922               { $at_traceoff
29923 $as_echo "$at_srcdir/multiv04.at:39:
29924 mkdir oldgnu
29925 (cd oldgnu
29926 TEST_TAR_FORMAT=oldgnu
29927 export TEST_TAR_FORMAT
29928 TAR_OPTIONS=\"-H oldgnu\"
29929 export TAR_OPTIONS
29930 rm -rf *
29931
29932
29933 mkdir directory
29934 awk 'BEGIN { for (i = 0; i < 1024; i++) printf(\"directory/%014x\\n\", i); }' </dev/null | genfile --files-from -
29935
29936 exec <&-
29937
29938 sleep 2
29939
29940 tar --listed-incremental=list -c -f archive.a directory
29941
29942 sleep 2
29943
29944 tar --listed-incremental=list -c --record-size 1024 -L 16 -f arc.1 -f arc.2 -v directory
29945
29946 echo separator
29947
29948 tar -MRt -f arc.1 -f arc.2)"
29949 echo multiv04.at:39 >"$at_check_line_file"
29950
29951 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
29952    false; }; then
29953   ( $at_traceon;
29954 mkdir oldgnu
29955 (cd oldgnu
29956 TEST_TAR_FORMAT=oldgnu
29957 export TEST_TAR_FORMAT
29958 TAR_OPTIONS="-H oldgnu"
29959 export TAR_OPTIONS
29960 rm -rf *
29961
29962
29963 mkdir directory
29964 awk 'BEGIN { for (i = 0; i < 1024; i++) printf("directory/%014x\n", i); }' </dev/null | genfile --files-from -
29965
29966 exec <&-
29967
29968 sleep 2
29969
29970 tar --listed-incremental=list -c -f archive.a directory
29971
29972 sleep 2
29973
29974 tar --listed-incremental=list -c --record-size 1024 -L 16 -f arc.1 -f arc.2 -v directory
29975
29976 echo separator
29977
29978 tar -MRt -f arc.1 -f arc.2) ) >"$at_stdout" 2>"$at_stder1"
29979   at_func_filter_trace $?
29980 else
29981   ( :;
29982 mkdir oldgnu
29983 (cd oldgnu
29984 TEST_TAR_FORMAT=oldgnu
29985 export TEST_TAR_FORMAT
29986 TAR_OPTIONS="-H oldgnu"
29987 export TAR_OPTIONS
29988 rm -rf *
29989
29990
29991 mkdir directory
29992 awk 'BEGIN { for (i = 0; i < 1024; i++) printf("directory/%014x\n", i); }' </dev/null | genfile --files-from -
29993
29994 exec <&-
29995
29996 sleep 2
29997
29998 tar --listed-incremental=list -c -f archive.a directory
29999
30000 sleep 2
30001
30002 tar --listed-incremental=list -c --record-size 1024 -L 16 -f arc.1 -f arc.2 -v directory
30003
30004 echo separator
30005
30006 tar -MRt -f arc.1 -f arc.2) ) >"$at_stdout" 2>"$at_stderr"
30007 fi
30008 at_status=$?
30009 at_failed=false
30010 at_func_diff_devnull "$at_stderr" || at_failed=:
30011 echo >>"$at_stdout"; $as_echo "directory/
30012 separator
30013 block 0: directory/
30014 block 35: ** Block of NULs **
30015 " | \
30016   $at_diff - "$at_stdout" || at_failed=:
30017 at_func_check_status 0 $at_status "$at_srcdir/multiv04.at:39"
30018
30019 $at_failed && at_func_log_failure
30020 $at_traceon; }
30021
30022
30023
30024
30025   $at_traceoff
30026   $at_times_p && times >"$at_times_file"
30027 ) 5>&1 2>&1 | eval $at_tee_pipe
30028 at_status=`cat "$at_status_file"`
30029 #AT_STOP_79
30030 #AT_START_80
30031 # 80. multiv05.at:26: Restoring after an out of sync volume
30032 at_setup_line='multiv05.at:26'
30033 at_desc="Restoring after an out of sync volume"
30034 $at_quiet $as_echo_n " 80: $at_desc          "
30035 at_xfail=no
30036       test -f $XFAILFILE && at_xfail=yes
30037 echo "#                             -*- compilation -*-" >> "$at_group_log"
30038 (
30039   $as_echo "80. multiv05.at:26: testing ..."
30040   $at_traceon
30041
30042
30043
30044
30045
30046
30047   { $at_traceoff
30048 $as_echo "$at_srcdir/multiv05.at:30:
30049 mkdir gnu
30050 (cd gnu
30051 TEST_TAR_FORMAT=gnu
30052 export TEST_TAR_FORMAT
30053 TAR_OPTIONS=\"-H gnu\"
30054 export TAR_OPTIONS
30055 rm -rf *
30056
30057 exec <&-
30058
30059 genfile --length 250k --file jeden
30060 genfile --length 250k --file dwa
30061 genfile --length 250k --file trzy
30062 genfile --length 250k --file cztery
30063 genfile --length 250k --file piec
30064 genfile --length 250k --file szesc
30065
30066
30067 echo Creating archive
30068 tar -c -M -L 502 -f a.tar -f b.tar -f c.tar jeden dwa trzy cztery piec szesc
30069 echo separator
30070 mkdir bak
30071 mv jeden dwa trzy cztery piec szesc bak
30072 tar -vxM -f a.tar -f c.tar -f b.tar -f c.tar
30073 echo Diffing jeden
30074    cmp bak/jeden jeden || exit 1
30075 echo Diffing dwa
30076    cmp bak/dwa dwa || exit 1
30077 echo Diffing trzy
30078    cmp bak/trzy trzy || exit 1
30079 echo Diffing cztery
30080    cmp bak/cztery cztery || exit 1
30081 echo Diffing piec
30082    cmp bak/piec piec || exit 1
30083 echo Diffing szesc
30084    cmp bak/szesc szesc || exit 1
30085 )"
30086 echo multiv05.at:30 >"$at_check_line_file"
30087
30088 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
30089    false; }; then
30090   ( $at_traceon;
30091 mkdir gnu
30092 (cd gnu
30093 TEST_TAR_FORMAT=gnu
30094 export TEST_TAR_FORMAT
30095 TAR_OPTIONS="-H gnu"
30096 export TAR_OPTIONS
30097 rm -rf *
30098
30099 exec <&-
30100
30101 genfile --length 250k --file jeden
30102 genfile --length 250k --file dwa
30103 genfile --length 250k --file trzy
30104 genfile --length 250k --file cztery
30105 genfile --length 250k --file piec
30106 genfile --length 250k --file szesc
30107
30108
30109 echo Creating archive
30110 tar -c -M -L 502 -f a.tar -f b.tar -f c.tar jeden dwa trzy cztery piec szesc
30111 echo separator
30112 mkdir bak
30113 mv jeden dwa trzy cztery piec szesc bak
30114 tar -vxM -f a.tar -f c.tar -f b.tar -f c.tar
30115 echo Diffing jeden
30116    cmp bak/jeden jeden || exit 1
30117 echo Diffing dwa
30118    cmp bak/dwa dwa || exit 1
30119 echo Diffing trzy
30120    cmp bak/trzy trzy || exit 1
30121 echo Diffing cztery
30122    cmp bak/cztery cztery || exit 1
30123 echo Diffing piec
30124    cmp bak/piec piec || exit 1
30125 echo Diffing szesc
30126    cmp bak/szesc szesc || exit 1
30127 ) ) >"$at_stdout" 2>"$at_stder1"
30128   at_func_filter_trace $?
30129 else
30130   ( :;
30131 mkdir gnu
30132 (cd gnu
30133 TEST_TAR_FORMAT=gnu
30134 export TEST_TAR_FORMAT
30135 TAR_OPTIONS="-H gnu"
30136 export TAR_OPTIONS
30137 rm -rf *
30138
30139 exec <&-
30140
30141 genfile --length 250k --file jeden
30142 genfile --length 250k --file dwa
30143 genfile --length 250k --file trzy
30144 genfile --length 250k --file cztery
30145 genfile --length 250k --file piec
30146 genfile --length 250k --file szesc
30147
30148
30149 echo Creating archive
30150 tar -c -M -L 502 -f a.tar -f b.tar -f c.tar jeden dwa trzy cztery piec szesc
30151 echo separator
30152 mkdir bak
30153 mv jeden dwa trzy cztery piec szesc bak
30154 tar -vxM -f a.tar -f c.tar -f b.tar -f c.tar
30155 echo Diffing jeden
30156    cmp bak/jeden jeden || exit 1
30157 echo Diffing dwa
30158    cmp bak/dwa dwa || exit 1
30159 echo Diffing trzy
30160    cmp bak/trzy trzy || exit 1
30161 echo Diffing cztery
30162    cmp bak/cztery cztery || exit 1
30163 echo Diffing piec
30164    cmp bak/piec piec || exit 1
30165 echo Diffing szesc
30166    cmp bak/szesc szesc || exit 1
30167 ) ) >"$at_stdout" 2>"$at_stderr"
30168 fi
30169 at_status=$?
30170 at_failed=false
30171 echo >>"$at_stderr"; $as_echo "tar: \`trzy' is not continued on this volume
30172 " | \
30173   $at_diff - "$at_stderr" || at_failed=:
30174 echo >>"$at_stdout"; $as_echo "Creating archive
30175 separator
30176 jeden
30177 dwa
30178 trzy
30179 cztery
30180 piec
30181 szesc
30182 Diffing jeden
30183 Diffing dwa
30184 Diffing trzy
30185 Diffing cztery
30186 Diffing piec
30187 Diffing szesc
30188 " | \
30189   $at_diff - "$at_stdout" || at_failed=:
30190 at_func_check_status 0 $at_status "$at_srcdir/multiv05.at:30"
30191
30192 $at_failed && at_func_log_failure
30193 $at_traceon; }
30194
30195
30196
30197
30198   $at_traceoff
30199   $at_times_p && times >"$at_times_file"
30200 ) 5>&1 2>&1 | eval $at_tee_pipe
30201 at_status=`cat "$at_status_file"`
30202 #AT_STOP_80
30203 #AT_START_81
30204 # 81. multiv06.at:27: Multivolumes with L=record_size
30205 at_setup_line='multiv06.at:27'
30206 at_desc="Multivolumes with L=record_size"
30207 $at_quiet $as_echo_n " 81: $at_desc                "
30208 at_xfail=no
30209       test -f $XFAILFILE && at_xfail=yes
30210 echo "#                             -*- compilation -*-" >> "$at_group_log"
30211 (
30212   $as_echo "81. multiv06.at:27: testing ..."
30213   $at_traceon
30214
30215
30216
30217
30218
30219   { $at_traceoff
30220 $as_echo "$at_srcdir/multiv06.at:30:
30221 mkdir gnu
30222 (cd gnu
30223 TEST_TAR_FORMAT=gnu
30224 export TEST_TAR_FORMAT
30225 TAR_OPTIONS=\"-H gnu\"
30226 export TAR_OPTIONS
30227 rm -rf *
30228
30229 exec <&-
30230 decho Creating file
30231 genfile --length 20139 --file file
30232 decho Creating archive
30233 tar -c -M -L10 -b20 -farc.1 -farc.2 -farc.3 file
30234 decho Testing archive
30235 tar -t -M -farc.1 -farc.2 -farc.3)"
30236 echo multiv06.at:30 >"$at_check_line_file"
30237
30238 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
30239    false; }; then
30240   ( $at_traceon;
30241 mkdir gnu
30242 (cd gnu
30243 TEST_TAR_FORMAT=gnu
30244 export TEST_TAR_FORMAT
30245 TAR_OPTIONS="-H gnu"
30246 export TAR_OPTIONS
30247 rm -rf *
30248
30249 exec <&-
30250 decho Creating file
30251 genfile --length 20139 --file file
30252 decho Creating archive
30253 tar -c -M -L10 -b20 -farc.1 -farc.2 -farc.3 file
30254 decho Testing archive
30255 tar -t -M -farc.1 -farc.2 -farc.3) ) >"$at_stdout" 2>"$at_stder1"
30256   at_func_filter_trace $?
30257 else
30258   ( :;
30259 mkdir gnu
30260 (cd gnu
30261 TEST_TAR_FORMAT=gnu
30262 export TEST_TAR_FORMAT
30263 TAR_OPTIONS="-H gnu"
30264 export TAR_OPTIONS
30265 rm -rf *
30266
30267 exec <&-
30268 decho Creating file
30269 genfile --length 20139 --file file
30270 decho Creating archive
30271 tar -c -M -L10 -b20 -farc.1 -farc.2 -farc.3 file
30272 decho Testing archive
30273 tar -t -M -farc.1 -farc.2 -farc.3) ) >"$at_stdout" 2>"$at_stderr"
30274 fi
30275 at_status=$?
30276 at_failed=false
30277 echo >>"$at_stderr"; $as_echo "Creating file
30278 Creating archive
30279 Testing archive
30280 " | \
30281   $at_diff - "$at_stderr" || at_failed=:
30282 echo >>"$at_stdout"; $as_echo "Creating file
30283 Creating archive
30284 Testing archive
30285 file
30286 " | \
30287   $at_diff - "$at_stdout" || at_failed=:
30288 at_func_check_status 0 $at_status "$at_srcdir/multiv06.at:30"
30289
30290 $at_failed && at_func_log_failure
30291 $at_traceon; }
30292
30293               { $at_traceoff
30294 $as_echo "$at_srcdir/multiv06.at:30:
30295 mkdir pax
30296 (cd pax
30297 TEST_TAR_FORMAT=pax
30298 export TEST_TAR_FORMAT
30299 TAR_OPTIONS=\"-H pax\"
30300 export TAR_OPTIONS
30301 rm -rf *
30302
30303 exec <&-
30304 decho Creating file
30305 genfile --length 20139 --file file
30306 decho Creating archive
30307 tar -c -M -L10 -b20 -farc.1 -farc.2 -farc.3 file
30308 decho Testing archive
30309 tar -t -M -farc.1 -farc.2 -farc.3)"
30310 echo multiv06.at:30 >"$at_check_line_file"
30311
30312 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
30313    false; }; then
30314   ( $at_traceon;
30315 mkdir pax
30316 (cd pax
30317 TEST_TAR_FORMAT=pax
30318 export TEST_TAR_FORMAT
30319 TAR_OPTIONS="-H pax"
30320 export TAR_OPTIONS
30321 rm -rf *
30322
30323 exec <&-
30324 decho Creating file
30325 genfile --length 20139 --file file
30326 decho Creating archive
30327 tar -c -M -L10 -b20 -farc.1 -farc.2 -farc.3 file
30328 decho Testing archive
30329 tar -t -M -farc.1 -farc.2 -farc.3) ) >"$at_stdout" 2>"$at_stder1"
30330   at_func_filter_trace $?
30331 else
30332   ( :;
30333 mkdir pax
30334 (cd pax
30335 TEST_TAR_FORMAT=pax
30336 export TEST_TAR_FORMAT
30337 TAR_OPTIONS="-H pax"
30338 export TAR_OPTIONS
30339 rm -rf *
30340
30341 exec <&-
30342 decho Creating file
30343 genfile --length 20139 --file file
30344 decho Creating archive
30345 tar -c -M -L10 -b20 -farc.1 -farc.2 -farc.3 file
30346 decho Testing archive
30347 tar -t -M -farc.1 -farc.2 -farc.3) ) >"$at_stdout" 2>"$at_stderr"
30348 fi
30349 at_status=$?
30350 at_failed=false
30351 echo >>"$at_stderr"; $as_echo "Creating file
30352 Creating archive
30353 Testing archive
30354 " | \
30355   $at_diff - "$at_stderr" || at_failed=:
30356 echo >>"$at_stdout"; $as_echo "Creating file
30357 Creating archive
30358 Testing archive
30359 file
30360 " | \
30361   $at_diff - "$at_stdout" || at_failed=:
30362 at_func_check_status 0 $at_status "$at_srcdir/multiv06.at:30"
30363
30364 $at_failed && at_func_log_failure
30365 $at_traceon; }
30366
30367
30368
30369
30370   $at_traceoff
30371   $at_times_p && times >"$at_times_file"
30372 ) 5>&1 2>&1 | eval $at_tee_pipe
30373 at_status=`cat "$at_status_file"`
30374 #AT_STOP_81
30375 #AT_START_82
30376 # 82. multiv07.at:26: volumes split at an extended header
30377 at_setup_line='multiv07.at:26'
30378 at_desc="volumes split at an extended header"
30379 $at_quiet $as_echo_n " 82: $at_desc            "
30380 at_xfail=no
30381       test -f \$XFAILFILE && at_xfail=yes
30382       test -f $XFAILFILE && at_xfail=yes
30383       test -f $XFAILFILE && at_xfail=yes
30384 echo "#                             -*- compilation -*-" >> "$at_group_log"
30385 (
30386   $as_echo "82. multiv07.at:26: testing ..."
30387   $at_traceon
30388
30389
30390
30391 { $at_traceoff
30392 $as_echo "$at_srcdir/multiv07.at:29:
30393
30394
30395 test -z "$TEST_DATA_DIR" && exit 77
30396 tarball_prereq xsplit-1.tar 0e008c84c517e48fbf23ca6a7033cde6 $TEST_DATA_DIR $TEST_DATA_URL || exit 77
30397
30398 test -z "$TEST_DATA_DIR" && exit 77
30399 tarball_prereq xsplit-2.tar 03150b9852d285458f43734e9e0b9a45 $TEST_DATA_DIR $TEST_DATA_URL || exit 77
30400
30401 exec <&-
30402
30403 cd \$TEST_DATA_DIR
30404 tar -t -M -fxsplit-1.tar -fxsplit-2.tar
30405 "
30406 echo multiv07.at:29 >"$at_check_line_file"
30407
30408 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
30409    false; }; then
30410   ( $at_traceon;
30411
30412
30413 test -z "$TEST_DATA_DIR" && exit 77
30414 tarball_prereq xsplit-1.tar 0e008c84c517e48fbf23ca6a7033cde6 $TEST_DATA_DIR $TEST_DATA_URL || exit 77
30415
30416 test -z "$TEST_DATA_DIR" && exit 77
30417 tarball_prereq xsplit-2.tar 03150b9852d285458f43734e9e0b9a45 $TEST_DATA_DIR $TEST_DATA_URL || exit 77
30418
30419 exec <&-
30420
30421 cd $TEST_DATA_DIR
30422 tar -t -M -fxsplit-1.tar -fxsplit-2.tar
30423  ) >"$at_stdout" 2>"$at_stder1"
30424   at_func_filter_trace $?
30425 else
30426   ( :;
30427
30428
30429 test -z "$TEST_DATA_DIR" && exit 77
30430 tarball_prereq xsplit-1.tar 0e008c84c517e48fbf23ca6a7033cde6 $TEST_DATA_DIR $TEST_DATA_URL || exit 77
30431
30432 test -z "$TEST_DATA_DIR" && exit 77
30433 tarball_prereq xsplit-2.tar 03150b9852d285458f43734e9e0b9a45 $TEST_DATA_DIR $TEST_DATA_URL || exit 77
30434
30435 exec <&-
30436
30437 cd $TEST_DATA_DIR
30438 tar -t -M -fxsplit-1.tar -fxsplit-2.tar
30439  ) >"$at_stdout" 2>"$at_stderr"
30440 fi
30441 at_status=$?
30442 at_failed=false
30443 at_func_diff_devnull "$at_stderr" || at_failed=:
30444 echo >>"$at_stdout"; $as_echo "Archive volumes split at an extended header Volume 1
30445 foo
30446 bar
30447 " | \
30448   $at_diff - "$at_stdout" || at_failed=:
30449 at_func_check_status 0 $at_status "$at_srcdir/multiv07.at:29"
30450
30451 $at_failed && at_func_log_failure
30452 $at_traceon; }
30453
30454
30455   $at_traceoff
30456   $at_times_p && times >"$at_times_file"
30457 ) 5>&1 2>&1 | eval $at_tee_pipe
30458 at_status=`cat "$at_status_file"`
30459 #AT_STOP_82
30460 #AT_START_83
30461 # 83. multiv08.at:23: multivolume header creation
30462 at_setup_line='multiv08.at:23'
30463 at_desc="multivolume header creation"
30464 $at_quiet $as_echo_n " 83: $at_desc                    "
30465 at_xfail=no
30466       test -f $XFAILFILE && at_xfail=yes
30467 echo "#                             -*- compilation -*-" >> "$at_group_log"
30468 (
30469   $as_echo "83. multiv08.at:23: testing ..."
30470   $at_traceon
30471
30472
30473
30474
30475
30476   { $at_traceoff
30477 $as_echo "$at_srcdir/multiv08.at:26:
30478 mkdir gnu
30479 (cd gnu
30480 TEST_TAR_FORMAT=gnu
30481 export TEST_TAR_FORMAT
30482 TAR_OPTIONS=\"-H gnu\"
30483 export TAR_OPTIONS
30484 rm -rf *
30485
30486 genfile --length 9472 --file a
30487 genfile --length 9984 --file b
30488 decho Creating
30489 tar -c -M -L10 -f A.tar -f B.tar -f C.tar a b
30490 decho Testing
30491 tar -tMR -f A.tar -f B.tar -f C.tar
30492 )"
30493 echo multiv08.at:26 >"$at_check_line_file"
30494
30495 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
30496    false; }; then
30497   ( $at_traceon;
30498 mkdir gnu
30499 (cd gnu
30500 TEST_TAR_FORMAT=gnu
30501 export TEST_TAR_FORMAT
30502 TAR_OPTIONS="-H gnu"
30503 export TAR_OPTIONS
30504 rm -rf *
30505
30506 genfile --length 9472 --file a
30507 genfile --length 9984 --file b
30508 decho Creating
30509 tar -c -M -L10 -f A.tar -f B.tar -f C.tar a b
30510 decho Testing
30511 tar -tMR -f A.tar -f B.tar -f C.tar
30512 ) ) >"$at_stdout" 2>"$at_stder1"
30513   at_func_filter_trace $?
30514 else
30515   ( :;
30516 mkdir gnu
30517 (cd gnu
30518 TEST_TAR_FORMAT=gnu
30519 export TEST_TAR_FORMAT
30520 TAR_OPTIONS="-H gnu"
30521 export TAR_OPTIONS
30522 rm -rf *
30523
30524 genfile --length 9472 --file a
30525 genfile --length 9984 --file b
30526 decho Creating
30527 tar -c -M -L10 -f A.tar -f B.tar -f C.tar a b
30528 decho Testing
30529 tar -tMR -f A.tar -f B.tar -f C.tar
30530 ) ) >"$at_stdout" 2>"$at_stderr"
30531 fi
30532 at_status=$?
30533 at_failed=false
30534 echo >>"$at_stderr"; $as_echo "Creating
30535 Testing
30536 " | \
30537   $at_diff - "$at_stderr" || at_failed=:
30538 echo >>"$at_stdout"; $as_echo "Creating
30539 Testing
30540 block 0: a
30541 block 21: b
30542 block 43: ** Block of NULs **
30543 " | \
30544   $at_diff - "$at_stdout" || at_failed=:
30545 at_func_check_status 0 $at_status "$at_srcdir/multiv08.at:26"
30546
30547 $at_failed && at_func_log_failure
30548 $at_traceon; }
30549
30550
30551
30552
30553   $at_traceoff
30554   $at_times_p && times >"$at_times_file"
30555 ) 5>&1 2>&1 | eval $at_tee_pipe
30556 at_status=`cat "$at_status_file"`
30557 #AT_STOP_83
30558 #AT_START_84
30559 # 84. old.at:23: old archives
30560 at_setup_line='old.at:23'
30561 at_desc="old archives"
30562 $at_quiet $as_echo_n " 84: $at_desc                                   "
30563 at_xfail=no
30564 echo "#                             -*- compilation -*-" >> "$at_group_log"
30565 (
30566   $as_echo "84. old.at:23: testing ..."
30567   $at_traceon
30568
30569
30570
30571 unset TAR_OPTIONS
30572 { $at_traceoff
30573 $as_echo "$at_srcdir/old.at:27:
30574 mkdir directory
30575 tar cfvo archive directory || exit 1
30576 tar tf archive
30577 "
30578 echo old.at:27 >"$at_check_line_file"
30579
30580 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
30581    false; }; then
30582   ( $at_traceon;
30583 mkdir directory
30584 tar cfvo archive directory || exit 1
30585 tar tf archive
30586  ) >"$at_stdout" 2>"$at_stder1"
30587   at_func_filter_trace $?
30588 else
30589   ( :;
30590 mkdir directory
30591 tar cfvo archive directory || exit 1
30592 tar tf archive
30593  ) >"$at_stdout" 2>"$at_stderr"
30594 fi
30595 at_status=$?
30596 at_failed=false
30597 at_func_diff_devnull "$at_stderr" || at_failed=:
30598 echo >>"$at_stdout"; $as_echo "directory/
30599 directory/
30600 " | \
30601   $at_diff - "$at_stdout" || at_failed=:
30602 at_func_check_status 0 $at_status "$at_srcdir/old.at:27"
30603
30604 $at_failed && at_func_log_failure
30605 $at_traceon; }
30606
30607
30608   $at_traceoff
30609   $at_times_p && times >"$at_times_file"
30610 ) 5>&1 2>&1 | eval $at_tee_pipe
30611 at_status=`cat "$at_status_file"`
30612 #AT_STOP_84
30613 #AT_START_85
30614 # 85. recurse.at:21: recurse
30615 at_setup_line='recurse.at:21'
30616 at_desc="recurse"
30617 $at_quiet $as_echo_n " 85: $at_desc                                        "
30618 at_xfail=no
30619       test -f $XFAILFILE && at_xfail=yes
30620 echo "#                             -*- compilation -*-" >> "$at_group_log"
30621 (
30622   $as_echo "85. recurse.at:21: testing ..."
30623   $at_traceon
30624
30625
30626
30627
30628
30629   { $at_traceoff
30630 $as_echo "$at_srcdir/recurse.at:24:
30631 mkdir v7
30632 (cd v7
30633 TEST_TAR_FORMAT=v7
30634 export TEST_TAR_FORMAT
30635 TAR_OPTIONS=\"-H v7\"
30636 export TAR_OPTIONS
30637 rm -rf *
30638
30639 mkdir directory
30640 touch directory/file
30641 tar --create --file archive --no-recursion directory || exit 1
30642 tar tf archive
30643 )"
30644 echo recurse.at:24 >"$at_check_line_file"
30645
30646 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
30647    false; }; then
30648   ( $at_traceon;
30649 mkdir v7
30650 (cd v7
30651 TEST_TAR_FORMAT=v7
30652 export TEST_TAR_FORMAT
30653 TAR_OPTIONS="-H v7"
30654 export TAR_OPTIONS
30655 rm -rf *
30656
30657 mkdir directory
30658 touch directory/file
30659 tar --create --file archive --no-recursion directory || exit 1
30660 tar tf archive
30661 ) ) >"$at_stdout" 2>"$at_stder1"
30662   at_func_filter_trace $?
30663 else
30664   ( :;
30665 mkdir v7
30666 (cd v7
30667 TEST_TAR_FORMAT=v7
30668 export TEST_TAR_FORMAT
30669 TAR_OPTIONS="-H v7"
30670 export TAR_OPTIONS
30671 rm -rf *
30672
30673 mkdir directory
30674 touch directory/file
30675 tar --create --file archive --no-recursion directory || exit 1
30676 tar tf archive
30677 ) ) >"$at_stdout" 2>"$at_stderr"
30678 fi
30679 at_status=$?
30680 at_failed=false
30681 at_func_diff_devnull "$at_stderr" || at_failed=:
30682 echo >>"$at_stdout"; $as_echo "directory/
30683 " | \
30684   $at_diff - "$at_stdout" || at_failed=:
30685 at_func_check_status 0 $at_status "$at_srcdir/recurse.at:24"
30686
30687 $at_failed && at_func_log_failure
30688 $at_traceon; }
30689
30690               { $at_traceoff
30691 $as_echo "$at_srcdir/recurse.at:24:
30692 mkdir oldgnu
30693 (cd oldgnu
30694 TEST_TAR_FORMAT=oldgnu
30695 export TEST_TAR_FORMAT
30696 TAR_OPTIONS=\"-H oldgnu\"
30697 export TAR_OPTIONS
30698 rm -rf *
30699
30700 mkdir directory
30701 touch directory/file
30702 tar --create --file archive --no-recursion directory || exit 1
30703 tar tf archive
30704 )"
30705 echo recurse.at:24 >"$at_check_line_file"
30706
30707 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
30708    false; }; then
30709   ( $at_traceon;
30710 mkdir oldgnu
30711 (cd oldgnu
30712 TEST_TAR_FORMAT=oldgnu
30713 export TEST_TAR_FORMAT
30714 TAR_OPTIONS="-H oldgnu"
30715 export TAR_OPTIONS
30716 rm -rf *
30717
30718 mkdir directory
30719 touch directory/file
30720 tar --create --file archive --no-recursion directory || exit 1
30721 tar tf archive
30722 ) ) >"$at_stdout" 2>"$at_stder1"
30723   at_func_filter_trace $?
30724 else
30725   ( :;
30726 mkdir oldgnu
30727 (cd oldgnu
30728 TEST_TAR_FORMAT=oldgnu
30729 export TEST_TAR_FORMAT
30730 TAR_OPTIONS="-H oldgnu"
30731 export TAR_OPTIONS
30732 rm -rf *
30733
30734 mkdir directory
30735 touch directory/file
30736 tar --create --file archive --no-recursion directory || exit 1
30737 tar tf archive
30738 ) ) >"$at_stdout" 2>"$at_stderr"
30739 fi
30740 at_status=$?
30741 at_failed=false
30742 at_func_diff_devnull "$at_stderr" || at_failed=:
30743 echo >>"$at_stdout"; $as_echo "directory/
30744 " | \
30745   $at_diff - "$at_stdout" || at_failed=:
30746 at_func_check_status 0 $at_status "$at_srcdir/recurse.at:24"
30747
30748 $at_failed && at_func_log_failure
30749 $at_traceon; }
30750
30751               { $at_traceoff
30752 $as_echo "$at_srcdir/recurse.at:24:
30753 mkdir ustar
30754 (cd ustar
30755 TEST_TAR_FORMAT=ustar
30756 export TEST_TAR_FORMAT
30757 TAR_OPTIONS=\"-H ustar\"
30758 export TAR_OPTIONS
30759 rm -rf *
30760
30761 mkdir directory
30762 touch directory/file
30763 tar --create --file archive --no-recursion directory || exit 1
30764 tar tf archive
30765 )"
30766 echo recurse.at:24 >"$at_check_line_file"
30767
30768 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
30769    false; }; then
30770   ( $at_traceon;
30771 mkdir ustar
30772 (cd ustar
30773 TEST_TAR_FORMAT=ustar
30774 export TEST_TAR_FORMAT
30775 TAR_OPTIONS="-H ustar"
30776 export TAR_OPTIONS
30777 rm -rf *
30778
30779 mkdir directory
30780 touch directory/file
30781 tar --create --file archive --no-recursion directory || exit 1
30782 tar tf archive
30783 ) ) >"$at_stdout" 2>"$at_stder1"
30784   at_func_filter_trace $?
30785 else
30786   ( :;
30787 mkdir ustar
30788 (cd ustar
30789 TEST_TAR_FORMAT=ustar
30790 export TEST_TAR_FORMAT
30791 TAR_OPTIONS="-H ustar"
30792 export TAR_OPTIONS
30793 rm -rf *
30794
30795 mkdir directory
30796 touch directory/file
30797 tar --create --file archive --no-recursion directory || exit 1
30798 tar tf archive
30799 ) ) >"$at_stdout" 2>"$at_stderr"
30800 fi
30801 at_status=$?
30802 at_failed=false
30803 at_func_diff_devnull "$at_stderr" || at_failed=:
30804 echo >>"$at_stdout"; $as_echo "directory/
30805 " | \
30806   $at_diff - "$at_stdout" || at_failed=:
30807 at_func_check_status 0 $at_status "$at_srcdir/recurse.at:24"
30808
30809 $at_failed && at_func_log_failure
30810 $at_traceon; }
30811
30812               { $at_traceoff
30813 $as_echo "$at_srcdir/recurse.at:24:
30814 mkdir posix
30815 (cd posix
30816 TEST_TAR_FORMAT=posix
30817 export TEST_TAR_FORMAT
30818 TAR_OPTIONS=\"-H posix\"
30819 export TAR_OPTIONS
30820 rm -rf *
30821
30822 mkdir directory
30823 touch directory/file
30824 tar --create --file archive --no-recursion directory || exit 1
30825 tar tf archive
30826 )"
30827 echo recurse.at:24 >"$at_check_line_file"
30828
30829 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
30830    false; }; then
30831   ( $at_traceon;
30832 mkdir posix
30833 (cd posix
30834 TEST_TAR_FORMAT=posix
30835 export TEST_TAR_FORMAT
30836 TAR_OPTIONS="-H posix"
30837 export TAR_OPTIONS
30838 rm -rf *
30839
30840 mkdir directory
30841 touch directory/file
30842 tar --create --file archive --no-recursion directory || exit 1
30843 tar tf archive
30844 ) ) >"$at_stdout" 2>"$at_stder1"
30845   at_func_filter_trace $?
30846 else
30847   ( :;
30848 mkdir posix
30849 (cd posix
30850 TEST_TAR_FORMAT=posix
30851 export TEST_TAR_FORMAT
30852 TAR_OPTIONS="-H posix"
30853 export TAR_OPTIONS
30854 rm -rf *
30855
30856 mkdir directory
30857 touch directory/file
30858 tar --create --file archive --no-recursion directory || exit 1
30859 tar tf archive
30860 ) ) >"$at_stdout" 2>"$at_stderr"
30861 fi
30862 at_status=$?
30863 at_failed=false
30864 at_func_diff_devnull "$at_stderr" || at_failed=:
30865 echo >>"$at_stdout"; $as_echo "directory/
30866 " | \
30867   $at_diff - "$at_stdout" || at_failed=:
30868 at_func_check_status 0 $at_status "$at_srcdir/recurse.at:24"
30869
30870 $at_failed && at_func_log_failure
30871 $at_traceon; }
30872
30873               { $at_traceoff
30874 $as_echo "$at_srcdir/recurse.at:24:
30875 mkdir gnu
30876 (cd gnu
30877 TEST_TAR_FORMAT=gnu
30878 export TEST_TAR_FORMAT
30879 TAR_OPTIONS=\"-H gnu\"
30880 export TAR_OPTIONS
30881 rm -rf *
30882
30883 mkdir directory
30884 touch directory/file
30885 tar --create --file archive --no-recursion directory || exit 1
30886 tar tf archive
30887 )"
30888 echo recurse.at:24 >"$at_check_line_file"
30889
30890 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
30891    false; }; then
30892   ( $at_traceon;
30893 mkdir gnu
30894 (cd gnu
30895 TEST_TAR_FORMAT=gnu
30896 export TEST_TAR_FORMAT
30897 TAR_OPTIONS="-H gnu"
30898 export TAR_OPTIONS
30899 rm -rf *
30900
30901 mkdir directory
30902 touch directory/file
30903 tar --create --file archive --no-recursion directory || exit 1
30904 tar tf archive
30905 ) ) >"$at_stdout" 2>"$at_stder1"
30906   at_func_filter_trace $?
30907 else
30908   ( :;
30909 mkdir gnu
30910 (cd gnu
30911 TEST_TAR_FORMAT=gnu
30912 export TEST_TAR_FORMAT
30913 TAR_OPTIONS="-H gnu"
30914 export TAR_OPTIONS
30915 rm -rf *
30916
30917 mkdir directory
30918 touch directory/file
30919 tar --create --file archive --no-recursion directory || exit 1
30920 tar tf archive
30921 ) ) >"$at_stdout" 2>"$at_stderr"
30922 fi
30923 at_status=$?
30924 at_failed=false
30925 at_func_diff_devnull "$at_stderr" || at_failed=:
30926 echo >>"$at_stdout"; $as_echo "directory/
30927 " | \
30928   $at_diff - "$at_stdout" || at_failed=:
30929 at_func_check_status 0 $at_status "$at_srcdir/recurse.at:24"
30930
30931 $at_failed && at_func_log_failure
30932 $at_traceon; }
30933
30934
30935
30936
30937   $at_traceoff
30938   $at_times_p && times >"$at_times_file"
30939 ) 5>&1 2>&1 | eval $at_tee_pipe
30940 at_status=`cat "$at_status_file"`
30941 #AT_STOP_85
30942 #AT_START_86
30943 # 86. same-order01.at:26: working -C with --same-order
30944 at_setup_line='same-order01.at:26'
30945 at_desc="working -C with --same-order"
30946 $at_quiet $as_echo_n " 86: $at_desc                   "
30947 at_xfail=no
30948       test -f $XFAILFILE && at_xfail=yes
30949 echo "#                             -*- compilation -*-" >> "$at_group_log"
30950 (
30951   $as_echo "86. same-order01.at:26: testing ..."
30952   $at_traceon
30953
30954
30955
30956
30957
30958   { $at_traceoff
30959 $as_echo "$at_srcdir/same-order01.at:29:
30960 mkdir v7
30961 (cd v7
30962 TEST_TAR_FORMAT=v7
30963 export TEST_TAR_FORMAT
30964 TAR_OPTIONS=\"-H v7\"
30965 export TAR_OPTIONS
30966 rm -rf *
30967
30968
30969 test -z "`sort < /dev/null 2>&1`" || exit 77
30970
30971
30972 genfile -l 1024 -f file1
30973 genfile -l 1024 -f file2
30974 tar cf archive file1 file2
30975
30976 mkdir directory
30977 tar -xf archive --same-order -C directory --warning=no-timestamp || exit 1
30978
30979 ls directory|sort
30980 )"
30981 echo same-order01.at:29 >"$at_check_line_file"
30982
30983 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
30984    false; }; then
30985   ( $at_traceon;
30986 mkdir v7
30987 (cd v7
30988 TEST_TAR_FORMAT=v7
30989 export TEST_TAR_FORMAT
30990 TAR_OPTIONS="-H v7"
30991 export TAR_OPTIONS
30992 rm -rf *
30993
30994
30995 test -z "`sort < /dev/null 2>&1`" || exit 77
30996
30997
30998 genfile -l 1024 -f file1
30999 genfile -l 1024 -f file2
31000 tar cf archive file1 file2
31001
31002 mkdir directory
31003 tar -xf archive --same-order -C directory --warning=no-timestamp || exit 1
31004
31005 ls directory|sort
31006 ) ) >"$at_stdout" 2>"$at_stder1"
31007   at_func_filter_trace $?
31008 else
31009   ( :;
31010 mkdir v7
31011 (cd v7
31012 TEST_TAR_FORMAT=v7
31013 export TEST_TAR_FORMAT
31014 TAR_OPTIONS="-H v7"
31015 export TAR_OPTIONS
31016 rm -rf *
31017
31018
31019 test -z "`sort < /dev/null 2>&1`" || exit 77
31020
31021
31022 genfile -l 1024 -f file1
31023 genfile -l 1024 -f file2
31024 tar cf archive file1 file2
31025
31026 mkdir directory
31027 tar -xf archive --same-order -C directory --warning=no-timestamp || exit 1
31028
31029 ls directory|sort
31030 ) ) >"$at_stdout" 2>"$at_stderr"
31031 fi
31032 at_status=$?
31033 at_failed=false
31034 at_func_diff_devnull "$at_stderr" || at_failed=:
31035 echo >>"$at_stdout"; $as_echo "file1
31036 file2
31037 " | \
31038   $at_diff - "$at_stdout" || at_failed=:
31039 at_func_check_status 0 $at_status "$at_srcdir/same-order01.at:29"
31040
31041 $at_failed && at_func_log_failure
31042 $at_traceon; }
31043
31044               { $at_traceoff
31045 $as_echo "$at_srcdir/same-order01.at:29:
31046 mkdir oldgnu
31047 (cd oldgnu
31048 TEST_TAR_FORMAT=oldgnu
31049 export TEST_TAR_FORMAT
31050 TAR_OPTIONS=\"-H oldgnu\"
31051 export TAR_OPTIONS
31052 rm -rf *
31053
31054
31055 test -z "`sort < /dev/null 2>&1`" || exit 77
31056
31057
31058 genfile -l 1024 -f file1
31059 genfile -l 1024 -f file2
31060 tar cf archive file1 file2
31061
31062 mkdir directory
31063 tar -xf archive --same-order -C directory --warning=no-timestamp || exit 1
31064
31065 ls directory|sort
31066 )"
31067 echo same-order01.at:29 >"$at_check_line_file"
31068
31069 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
31070    false; }; then
31071   ( $at_traceon;
31072 mkdir oldgnu
31073 (cd oldgnu
31074 TEST_TAR_FORMAT=oldgnu
31075 export TEST_TAR_FORMAT
31076 TAR_OPTIONS="-H oldgnu"
31077 export TAR_OPTIONS
31078 rm -rf *
31079
31080
31081 test -z "`sort < /dev/null 2>&1`" || exit 77
31082
31083
31084 genfile -l 1024 -f file1
31085 genfile -l 1024 -f file2
31086 tar cf archive file1 file2
31087
31088 mkdir directory
31089 tar -xf archive --same-order -C directory --warning=no-timestamp || exit 1
31090
31091 ls directory|sort
31092 ) ) >"$at_stdout" 2>"$at_stder1"
31093   at_func_filter_trace $?
31094 else
31095   ( :;
31096 mkdir oldgnu
31097 (cd oldgnu
31098 TEST_TAR_FORMAT=oldgnu
31099 export TEST_TAR_FORMAT
31100 TAR_OPTIONS="-H oldgnu"
31101 export TAR_OPTIONS
31102 rm -rf *
31103
31104
31105 test -z "`sort < /dev/null 2>&1`" || exit 77
31106
31107
31108 genfile -l 1024 -f file1
31109 genfile -l 1024 -f file2
31110 tar cf archive file1 file2
31111
31112 mkdir directory
31113 tar -xf archive --same-order -C directory --warning=no-timestamp || exit 1
31114
31115 ls directory|sort
31116 ) ) >"$at_stdout" 2>"$at_stderr"
31117 fi
31118 at_status=$?
31119 at_failed=false
31120 at_func_diff_devnull "$at_stderr" || at_failed=:
31121 echo >>"$at_stdout"; $as_echo "file1
31122 file2
31123 " | \
31124   $at_diff - "$at_stdout" || at_failed=:
31125 at_func_check_status 0 $at_status "$at_srcdir/same-order01.at:29"
31126
31127 $at_failed && at_func_log_failure
31128 $at_traceon; }
31129
31130               { $at_traceoff
31131 $as_echo "$at_srcdir/same-order01.at:29:
31132 mkdir ustar
31133 (cd ustar
31134 TEST_TAR_FORMAT=ustar
31135 export TEST_TAR_FORMAT
31136 TAR_OPTIONS=\"-H ustar\"
31137 export TAR_OPTIONS
31138 rm -rf *
31139
31140
31141 test -z "`sort < /dev/null 2>&1`" || exit 77
31142
31143
31144 genfile -l 1024 -f file1
31145 genfile -l 1024 -f file2
31146 tar cf archive file1 file2
31147
31148 mkdir directory
31149 tar -xf archive --same-order -C directory --warning=no-timestamp || exit 1
31150
31151 ls directory|sort
31152 )"
31153 echo same-order01.at:29 >"$at_check_line_file"
31154
31155 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
31156    false; }; then
31157   ( $at_traceon;
31158 mkdir ustar
31159 (cd ustar
31160 TEST_TAR_FORMAT=ustar
31161 export TEST_TAR_FORMAT
31162 TAR_OPTIONS="-H ustar"
31163 export TAR_OPTIONS
31164 rm -rf *
31165
31166
31167 test -z "`sort < /dev/null 2>&1`" || exit 77
31168
31169
31170 genfile -l 1024 -f file1
31171 genfile -l 1024 -f file2
31172 tar cf archive file1 file2
31173
31174 mkdir directory
31175 tar -xf archive --same-order -C directory --warning=no-timestamp || exit 1
31176
31177 ls directory|sort
31178 ) ) >"$at_stdout" 2>"$at_stder1"
31179   at_func_filter_trace $?
31180 else
31181   ( :;
31182 mkdir ustar
31183 (cd ustar
31184 TEST_TAR_FORMAT=ustar
31185 export TEST_TAR_FORMAT
31186 TAR_OPTIONS="-H ustar"
31187 export TAR_OPTIONS
31188 rm -rf *
31189
31190
31191 test -z "`sort < /dev/null 2>&1`" || exit 77
31192
31193
31194 genfile -l 1024 -f file1
31195 genfile -l 1024 -f file2
31196 tar cf archive file1 file2
31197
31198 mkdir directory
31199 tar -xf archive --same-order -C directory --warning=no-timestamp || exit 1
31200
31201 ls directory|sort
31202 ) ) >"$at_stdout" 2>"$at_stderr"
31203 fi
31204 at_status=$?
31205 at_failed=false
31206 at_func_diff_devnull "$at_stderr" || at_failed=:
31207 echo >>"$at_stdout"; $as_echo "file1
31208 file2
31209 " | \
31210   $at_diff - "$at_stdout" || at_failed=:
31211 at_func_check_status 0 $at_status "$at_srcdir/same-order01.at:29"
31212
31213 $at_failed && at_func_log_failure
31214 $at_traceon; }
31215
31216               { $at_traceoff
31217 $as_echo "$at_srcdir/same-order01.at:29:
31218 mkdir posix
31219 (cd posix
31220 TEST_TAR_FORMAT=posix
31221 export TEST_TAR_FORMAT
31222 TAR_OPTIONS=\"-H posix\"
31223 export TAR_OPTIONS
31224 rm -rf *
31225
31226
31227 test -z "`sort < /dev/null 2>&1`" || exit 77
31228
31229
31230 genfile -l 1024 -f file1
31231 genfile -l 1024 -f file2
31232 tar cf archive file1 file2
31233
31234 mkdir directory
31235 tar -xf archive --same-order -C directory --warning=no-timestamp || exit 1
31236
31237 ls directory|sort
31238 )"
31239 echo same-order01.at:29 >"$at_check_line_file"
31240
31241 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
31242    false; }; then
31243   ( $at_traceon;
31244 mkdir posix
31245 (cd posix
31246 TEST_TAR_FORMAT=posix
31247 export TEST_TAR_FORMAT
31248 TAR_OPTIONS="-H posix"
31249 export TAR_OPTIONS
31250 rm -rf *
31251
31252
31253 test -z "`sort < /dev/null 2>&1`" || exit 77
31254
31255
31256 genfile -l 1024 -f file1
31257 genfile -l 1024 -f file2
31258 tar cf archive file1 file2
31259
31260 mkdir directory
31261 tar -xf archive --same-order -C directory --warning=no-timestamp || exit 1
31262
31263 ls directory|sort
31264 ) ) >"$at_stdout" 2>"$at_stder1"
31265   at_func_filter_trace $?
31266 else
31267   ( :;
31268 mkdir posix
31269 (cd posix
31270 TEST_TAR_FORMAT=posix
31271 export TEST_TAR_FORMAT
31272 TAR_OPTIONS="-H posix"
31273 export TAR_OPTIONS
31274 rm -rf *
31275
31276
31277 test -z "`sort < /dev/null 2>&1`" || exit 77
31278
31279
31280 genfile -l 1024 -f file1
31281 genfile -l 1024 -f file2
31282 tar cf archive file1 file2
31283
31284 mkdir directory
31285 tar -xf archive --same-order -C directory --warning=no-timestamp || exit 1
31286
31287 ls directory|sort
31288 ) ) >"$at_stdout" 2>"$at_stderr"
31289 fi
31290 at_status=$?
31291 at_failed=false
31292 at_func_diff_devnull "$at_stderr" || at_failed=:
31293 echo >>"$at_stdout"; $as_echo "file1
31294 file2
31295 " | \
31296   $at_diff - "$at_stdout" || at_failed=:
31297 at_func_check_status 0 $at_status "$at_srcdir/same-order01.at:29"
31298
31299 $at_failed && at_func_log_failure
31300 $at_traceon; }
31301
31302               { $at_traceoff
31303 $as_echo "$at_srcdir/same-order01.at:29:
31304 mkdir gnu
31305 (cd gnu
31306 TEST_TAR_FORMAT=gnu
31307 export TEST_TAR_FORMAT
31308 TAR_OPTIONS=\"-H gnu\"
31309 export TAR_OPTIONS
31310 rm -rf *
31311
31312
31313 test -z "`sort < /dev/null 2>&1`" || exit 77
31314
31315
31316 genfile -l 1024 -f file1
31317 genfile -l 1024 -f file2
31318 tar cf archive file1 file2
31319
31320 mkdir directory
31321 tar -xf archive --same-order -C directory --warning=no-timestamp || exit 1
31322
31323 ls directory|sort
31324 )"
31325 echo same-order01.at:29 >"$at_check_line_file"
31326
31327 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
31328    false; }; then
31329   ( $at_traceon;
31330 mkdir gnu
31331 (cd gnu
31332 TEST_TAR_FORMAT=gnu
31333 export TEST_TAR_FORMAT
31334 TAR_OPTIONS="-H gnu"
31335 export TAR_OPTIONS
31336 rm -rf *
31337
31338
31339 test -z "`sort < /dev/null 2>&1`" || exit 77
31340
31341
31342 genfile -l 1024 -f file1
31343 genfile -l 1024 -f file2
31344 tar cf archive file1 file2
31345
31346 mkdir directory
31347 tar -xf archive --same-order -C directory --warning=no-timestamp || exit 1
31348
31349 ls directory|sort
31350 ) ) >"$at_stdout" 2>"$at_stder1"
31351   at_func_filter_trace $?
31352 else
31353   ( :;
31354 mkdir gnu
31355 (cd gnu
31356 TEST_TAR_FORMAT=gnu
31357 export TEST_TAR_FORMAT
31358 TAR_OPTIONS="-H gnu"
31359 export TAR_OPTIONS
31360 rm -rf *
31361
31362
31363 test -z "`sort < /dev/null 2>&1`" || exit 77
31364
31365
31366 genfile -l 1024 -f file1
31367 genfile -l 1024 -f file2
31368 tar cf archive file1 file2
31369
31370 mkdir directory
31371 tar -xf archive --same-order -C directory --warning=no-timestamp || exit 1
31372
31373 ls directory|sort
31374 ) ) >"$at_stdout" 2>"$at_stderr"
31375 fi
31376 at_status=$?
31377 at_failed=false
31378 at_func_diff_devnull "$at_stderr" || at_failed=:
31379 echo >>"$at_stdout"; $as_echo "file1
31380 file2
31381 " | \
31382   $at_diff - "$at_stdout" || at_failed=:
31383 at_func_check_status 0 $at_status "$at_srcdir/same-order01.at:29"
31384
31385 $at_failed && at_func_log_failure
31386 $at_traceon; }
31387
31388
31389
31390
31391   $at_traceoff
31392   $at_times_p && times >"$at_times_file"
31393 ) 5>&1 2>&1 | eval $at_tee_pipe
31394 at_status=`cat "$at_status_file"`
31395 #AT_STOP_86
31396 #AT_START_87
31397 # 87. same-order02.at:25: multiple -C options
31398 at_setup_line='same-order02.at:25'
31399 at_desc="multiple -C options"
31400 $at_quiet $as_echo_n " 87: $at_desc                            "
31401 at_xfail=no
31402       test -f $XFAILFILE && at_xfail=yes
31403 echo "#                             -*- compilation -*-" >> "$at_group_log"
31404 (
31405   $as_echo "87. same-order02.at:25: testing ..."
31406   $at_traceon
31407
31408
31409
31410
31411
31412   { $at_traceoff
31413 $as_echo "$at_srcdir/same-order02.at:28:
31414 mkdir v7
31415 (cd v7
31416 TEST_TAR_FORMAT=v7
31417 export TEST_TAR_FORMAT
31418 TAR_OPTIONS=\"-H v7\"
31419 export TAR_OPTIONS
31420 rm -rf *
31421
31422 genfile -l 1024 -f file1
31423 genfile -l 1024 -f file2
31424 tar cf archive file1 file2
31425
31426 mkdir en
31427 mkdir to
31428
31429 HERE=\`pwd\`
31430 tar -xf archive --same-order --warning=no-timestamp \\
31431   -C \$HERE/en file1 \\
31432   -C \$HERE/to file2 || exit 1
31433
31434 ls en
31435 echo separator
31436 ls to
31437 )"
31438 echo same-order02.at:28 >"$at_check_line_file"
31439
31440 if { echo 'Not enabling shell tracing (command contains a `...` command substitution)'
31441    false; }; then
31442   ( $at_traceon;
31443 mkdir v7
31444 (cd v7
31445 TEST_TAR_FORMAT=v7
31446 export TEST_TAR_FORMAT
31447 TAR_OPTIONS="-H v7"
31448 export TAR_OPTIONS
31449 rm -rf *
31450
31451 genfile -l 1024 -f file1
31452 genfile -l 1024 -f file2
31453 tar cf archive file1 file2
31454
31455 mkdir en
31456 mkdir to
31457
31458 HERE=`pwd`
31459 tar -xf archive --same-order --warning=no-timestamp \
31460   -C $HERE/en file1 \
31461   -C $HERE/to file2 || exit 1
31462
31463 ls en
31464 echo separator
31465 ls to
31466 ) ) >"$at_stdout" 2>"$at_stder1"
31467   at_func_filter_trace $?
31468 else
31469   ( :;
31470 mkdir v7
31471 (cd v7
31472 TEST_TAR_FORMAT=v7
31473 export TEST_TAR_FORMAT
31474 TAR_OPTIONS="-H v7"
31475 export TAR_OPTIONS
31476 rm -rf *
31477
31478 genfile -l 1024 -f file1
31479 genfile -l 1024 -f file2
31480 tar cf archive file1 file2
31481
31482 mkdir en
31483 mkdir to
31484
31485 HERE=`pwd`
31486 tar -xf archive --same-order --warning=no-timestamp \
31487   -C $HERE/en file1 \
31488   -C $HERE/to file2 || exit 1
31489
31490 ls en
31491 echo separator
31492 ls to
31493 ) ) >"$at_stdout" 2>"$at_stderr"
31494 fi
31495 at_status=$?
31496 at_failed=false
31497 at_func_diff_devnull "$at_stderr" || at_failed=:
31498 echo >>"$at_stdout"; $as_echo "file1
31499 separator
31500 file2
31501 " | \
31502   $at_diff - "$at_stdout" || at_failed=:
31503 at_func_check_status 0 $at_status "$at_srcdir/same-order02.at:28"
31504
31505 $at_failed && at_func_log_failure
31506 $at_traceon; }
31507
31508               { $at_traceoff
31509 $as_echo "$at_srcdir/same-order02.at:28:
31510 mkdir oldgnu
31511 (cd oldgnu
31512 TEST_TAR_FORMAT=oldgnu
31513 export TEST_TAR_FORMAT
31514 TAR_OPTIONS=\"-H oldgnu\"
31515 export TAR_OPTIONS
31516 rm -rf *
31517
31518 genfile -l 1024 -f file1
31519 genfile -l 1024 -f file2
31520 tar cf archive file1 file2
31521
31522 mkdir en
31523 mkdir to
31524
31525 HERE=\`pwd\`
31526 tar -xf archive --same-order --warning=no-timestamp \\
31527   -C \$HERE/en file1 \\
31528   -C \$HERE/to file2 || exit 1
31529
31530 ls en
31531 echo separator
31532 ls to
31533 )"
31534 echo same-order02.at:28 >"$at_check_line_file"
31535
31536 if { echo 'Not enabling shell tracing (command contains a `...` command substitution)'
31537    false; }; then
31538   ( $at_traceon;
31539 mkdir oldgnu
31540 (cd oldgnu
31541 TEST_TAR_FORMAT=oldgnu
31542 export TEST_TAR_FORMAT
31543 TAR_OPTIONS="-H oldgnu"
31544 export TAR_OPTIONS
31545 rm -rf *
31546
31547 genfile -l 1024 -f file1
31548 genfile -l 1024 -f file2
31549 tar cf archive file1 file2
31550
31551 mkdir en
31552 mkdir to
31553
31554 HERE=`pwd`
31555 tar -xf archive --same-order --warning=no-timestamp \
31556   -C $HERE/en file1 \
31557   -C $HERE/to file2 || exit 1
31558
31559 ls en
31560 echo separator
31561 ls to
31562 ) ) >"$at_stdout" 2>"$at_stder1"
31563   at_func_filter_trace $?
31564 else
31565   ( :;
31566 mkdir oldgnu
31567 (cd oldgnu
31568 TEST_TAR_FORMAT=oldgnu
31569 export TEST_TAR_FORMAT
31570 TAR_OPTIONS="-H oldgnu"
31571 export TAR_OPTIONS
31572 rm -rf *
31573
31574 genfile -l 1024 -f file1
31575 genfile -l 1024 -f file2
31576 tar cf archive file1 file2
31577
31578 mkdir en
31579 mkdir to
31580
31581 HERE=`pwd`
31582 tar -xf archive --same-order --warning=no-timestamp \
31583   -C $HERE/en file1 \
31584   -C $HERE/to file2 || exit 1
31585
31586 ls en
31587 echo separator
31588 ls to
31589 ) ) >"$at_stdout" 2>"$at_stderr"
31590 fi
31591 at_status=$?
31592 at_failed=false
31593 at_func_diff_devnull "$at_stderr" || at_failed=:
31594 echo >>"$at_stdout"; $as_echo "file1
31595 separator
31596 file2
31597 " | \
31598   $at_diff - "$at_stdout" || at_failed=:
31599 at_func_check_status 0 $at_status "$at_srcdir/same-order02.at:28"
31600
31601 $at_failed && at_func_log_failure
31602 $at_traceon; }
31603
31604               { $at_traceoff
31605 $as_echo "$at_srcdir/same-order02.at:28:
31606 mkdir ustar
31607 (cd ustar
31608 TEST_TAR_FORMAT=ustar
31609 export TEST_TAR_FORMAT
31610 TAR_OPTIONS=\"-H ustar\"
31611 export TAR_OPTIONS
31612 rm -rf *
31613
31614 genfile -l 1024 -f file1
31615 genfile -l 1024 -f file2
31616 tar cf archive file1 file2
31617
31618 mkdir en
31619 mkdir to
31620
31621 HERE=\`pwd\`
31622 tar -xf archive --same-order --warning=no-timestamp \\
31623   -C \$HERE/en file1 \\
31624   -C \$HERE/to file2 || exit 1
31625
31626 ls en
31627 echo separator
31628 ls to
31629 )"
31630 echo same-order02.at:28 >"$at_check_line_file"
31631
31632 if { echo 'Not enabling shell tracing (command contains a `...` command substitution)'
31633    false; }; then
31634   ( $at_traceon;
31635 mkdir ustar
31636 (cd ustar
31637 TEST_TAR_FORMAT=ustar
31638 export TEST_TAR_FORMAT
31639 TAR_OPTIONS="-H ustar"
31640 export TAR_OPTIONS
31641 rm -rf *
31642
31643 genfile -l 1024 -f file1
31644 genfile -l 1024 -f file2
31645 tar cf archive file1 file2
31646
31647 mkdir en
31648 mkdir to
31649
31650 HERE=`pwd`
31651 tar -xf archive --same-order --warning=no-timestamp \
31652   -C $HERE/en file1 \
31653   -C $HERE/to file2 || exit 1
31654
31655 ls en
31656 echo separator
31657 ls to
31658 ) ) >"$at_stdout" 2>"$at_stder1"
31659   at_func_filter_trace $?
31660 else
31661   ( :;
31662 mkdir ustar
31663 (cd ustar
31664 TEST_TAR_FORMAT=ustar
31665 export TEST_TAR_FORMAT
31666 TAR_OPTIONS="-H ustar"
31667 export TAR_OPTIONS
31668 rm -rf *
31669
31670 genfile -l 1024 -f file1
31671 genfile -l 1024 -f file2
31672 tar cf archive file1 file2
31673
31674 mkdir en
31675 mkdir to
31676
31677 HERE=`pwd`
31678 tar -xf archive --same-order --warning=no-timestamp \
31679   -C $HERE/en file1 \
31680   -C $HERE/to file2 || exit 1
31681
31682 ls en
31683 echo separator
31684 ls to
31685 ) ) >"$at_stdout" 2>"$at_stderr"
31686 fi
31687 at_status=$?
31688 at_failed=false
31689 at_func_diff_devnull "$at_stderr" || at_failed=:
31690 echo >>"$at_stdout"; $as_echo "file1
31691 separator
31692 file2
31693 " | \
31694   $at_diff - "$at_stdout" || at_failed=:
31695 at_func_check_status 0 $at_status "$at_srcdir/same-order02.at:28"
31696
31697 $at_failed && at_func_log_failure
31698 $at_traceon; }
31699
31700               { $at_traceoff
31701 $as_echo "$at_srcdir/same-order02.at:28:
31702 mkdir posix
31703 (cd posix
31704 TEST_TAR_FORMAT=posix
31705 export TEST_TAR_FORMAT
31706 TAR_OPTIONS=\"-H posix\"
31707 export TAR_OPTIONS
31708 rm -rf *
31709
31710 genfile -l 1024 -f file1
31711 genfile -l 1024 -f file2
31712 tar cf archive file1 file2
31713
31714 mkdir en
31715 mkdir to
31716
31717 HERE=\`pwd\`
31718 tar -xf archive --same-order --warning=no-timestamp \\
31719   -C \$HERE/en file1 \\
31720   -C \$HERE/to file2 || exit 1
31721
31722 ls en
31723 echo separator
31724 ls to
31725 )"
31726 echo same-order02.at:28 >"$at_check_line_file"
31727
31728 if { echo 'Not enabling shell tracing (command contains a `...` command substitution)'
31729    false; }; then
31730   ( $at_traceon;
31731 mkdir posix
31732 (cd posix
31733 TEST_TAR_FORMAT=posix
31734 export TEST_TAR_FORMAT
31735 TAR_OPTIONS="-H posix"
31736 export TAR_OPTIONS
31737 rm -rf *
31738
31739 genfile -l 1024 -f file1
31740 genfile -l 1024 -f file2
31741 tar cf archive file1 file2
31742
31743 mkdir en
31744 mkdir to
31745
31746 HERE=`pwd`
31747 tar -xf archive --same-order --warning=no-timestamp \
31748   -C $HERE/en file1 \
31749   -C $HERE/to file2 || exit 1
31750
31751 ls en
31752 echo separator
31753 ls to
31754 ) ) >"$at_stdout" 2>"$at_stder1"
31755   at_func_filter_trace $?
31756 else
31757   ( :;
31758 mkdir posix
31759 (cd posix
31760 TEST_TAR_FORMAT=posix
31761 export TEST_TAR_FORMAT
31762 TAR_OPTIONS="-H posix"
31763 export TAR_OPTIONS
31764 rm -rf *
31765
31766 genfile -l 1024 -f file1
31767 genfile -l 1024 -f file2
31768 tar cf archive file1 file2
31769
31770 mkdir en
31771 mkdir to
31772
31773 HERE=`pwd`
31774 tar -xf archive --same-order --warning=no-timestamp \
31775   -C $HERE/en file1 \
31776   -C $HERE/to file2 || exit 1
31777
31778 ls en
31779 echo separator
31780 ls to
31781 ) ) >"$at_stdout" 2>"$at_stderr"
31782 fi
31783 at_status=$?
31784 at_failed=false
31785 at_func_diff_devnull "$at_stderr" || at_failed=:
31786 echo >>"$at_stdout"; $as_echo "file1
31787 separator
31788 file2
31789 " | \
31790   $at_diff - "$at_stdout" || at_failed=:
31791 at_func_check_status 0 $at_status "$at_srcdir/same-order02.at:28"
31792
31793 $at_failed && at_func_log_failure
31794 $at_traceon; }
31795
31796               { $at_traceoff
31797 $as_echo "$at_srcdir/same-order02.at:28:
31798 mkdir gnu
31799 (cd gnu
31800 TEST_TAR_FORMAT=gnu
31801 export TEST_TAR_FORMAT
31802 TAR_OPTIONS=\"-H gnu\"
31803 export TAR_OPTIONS
31804 rm -rf *
31805
31806 genfile -l 1024 -f file1
31807 genfile -l 1024 -f file2
31808 tar cf archive file1 file2
31809
31810 mkdir en
31811 mkdir to
31812
31813 HERE=\`pwd\`
31814 tar -xf archive --same-order --warning=no-timestamp \\
31815   -C \$HERE/en file1 \\
31816   -C \$HERE/to file2 || exit 1
31817
31818 ls en
31819 echo separator
31820 ls to
31821 )"
31822 echo same-order02.at:28 >"$at_check_line_file"
31823
31824 if { echo 'Not enabling shell tracing (command contains a `...` command substitution)'
31825    false; }; then
31826   ( $at_traceon;
31827 mkdir gnu
31828 (cd gnu
31829 TEST_TAR_FORMAT=gnu
31830 export TEST_TAR_FORMAT
31831 TAR_OPTIONS="-H gnu"
31832 export TAR_OPTIONS
31833 rm -rf *
31834
31835 genfile -l 1024 -f file1
31836 genfile -l 1024 -f file2
31837 tar cf archive file1 file2
31838
31839 mkdir en
31840 mkdir to
31841
31842 HERE=`pwd`
31843 tar -xf archive --same-order --warning=no-timestamp \
31844   -C $HERE/en file1 \
31845   -C $HERE/to file2 || exit 1
31846
31847 ls en
31848 echo separator
31849 ls to
31850 ) ) >"$at_stdout" 2>"$at_stder1"
31851   at_func_filter_trace $?
31852 else
31853   ( :;
31854 mkdir gnu
31855 (cd gnu
31856 TEST_TAR_FORMAT=gnu
31857 export TEST_TAR_FORMAT
31858 TAR_OPTIONS="-H gnu"
31859 export TAR_OPTIONS
31860 rm -rf *
31861
31862 genfile -l 1024 -f file1
31863 genfile -l 1024 -f file2
31864 tar cf archive file1 file2
31865
31866 mkdir en
31867 mkdir to
31868
31869 HERE=`pwd`
31870 tar -xf archive --same-order --warning=no-timestamp \
31871   -C $HERE/en file1 \
31872   -C $HERE/to file2 || exit 1
31873
31874 ls en
31875 echo separator
31876 ls to
31877 ) ) >"$at_stdout" 2>"$at_stderr"
31878 fi
31879 at_status=$?
31880 at_failed=false
31881 at_func_diff_devnull "$at_stderr" || at_failed=:
31882 echo >>"$at_stdout"; $as_echo "file1
31883 separator
31884 file2
31885 " | \
31886   $at_diff - "$at_stdout" || at_failed=:
31887 at_func_check_status 0 $at_status "$at_srcdir/same-order02.at:28"
31888
31889 $at_failed && at_func_log_failure
31890 $at_traceon; }
31891
31892
31893
31894
31895   $at_traceoff
31896   $at_times_p && times >"$at_times_file"
31897 ) 5>&1 2>&1 | eval $at_tee_pipe
31898 at_status=`cat "$at_status_file"`
31899 #AT_STOP_87
31900 #AT_START_88
31901 # 88. shortrec.at:25: short records
31902 at_setup_line='shortrec.at:25'
31903 at_desc="short records"
31904 $at_quiet $as_echo_n " 88: $at_desc                                  "
31905 at_xfail=no
31906       test -f $XFAILFILE && at_xfail=yes
31907 echo "#                             -*- compilation -*-" >> "$at_group_log"
31908 (
31909   $as_echo "88. shortrec.at:25: testing ..."
31910   $at_traceon
31911
31912
31913
31914
31915
31916   { $at_traceoff
31917 $as_echo "$at_srcdir/shortrec.at:28:
31918 mkdir v7
31919 (cd v7
31920 TEST_TAR_FORMAT=v7
31921 export TEST_TAR_FORMAT
31922 TAR_OPTIONS=\"-H v7\"
31923 export TAR_OPTIONS
31924 rm -rf *
31925
31926 mkdir directory
31927 (cd directory && touch a b c d e f g h i j k l m n o p q r)
31928 tar -c -b 1 -f - directory | tar -t -f - > /dev/null
31929 tar -c -b 1 -f archive directory
31930 tar -t -f archive > /dev/null
31931 tar -t -f - < archive > /dev/null
31932
31933 rm -r directory
31934 )"
31935 echo shortrec.at:28 >"$at_check_line_file"
31936
31937 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
31938    false; }; then
31939   ( $at_traceon;
31940 mkdir v7
31941 (cd v7
31942 TEST_TAR_FORMAT=v7
31943 export TEST_TAR_FORMAT
31944 TAR_OPTIONS="-H v7"
31945 export TAR_OPTIONS
31946 rm -rf *
31947
31948 mkdir directory
31949 (cd directory && touch a b c d e f g h i j k l m n o p q r)
31950 tar -c -b 1 -f - directory | tar -t -f - > /dev/null
31951 tar -c -b 1 -f archive directory
31952 tar -t -f archive > /dev/null
31953 tar -t -f - < archive > /dev/null
31954
31955 rm -r directory
31956 ) ) >"$at_stdout" 2>"$at_stder1"
31957   at_func_filter_trace $?
31958 else
31959   ( :;
31960 mkdir v7
31961 (cd v7
31962 TEST_TAR_FORMAT=v7
31963 export TEST_TAR_FORMAT
31964 TAR_OPTIONS="-H v7"
31965 export TAR_OPTIONS
31966 rm -rf *
31967
31968 mkdir directory
31969 (cd directory && touch a b c d e f g h i j k l m n o p q r)
31970 tar -c -b 1 -f - directory | tar -t -f - > /dev/null
31971 tar -c -b 1 -f archive directory
31972 tar -t -f archive > /dev/null
31973 tar -t -f - < archive > /dev/null
31974
31975 rm -r directory
31976 ) ) >"$at_stdout" 2>"$at_stderr"
31977 fi
31978 at_status=$?
31979 at_failed=false
31980 at_func_diff_devnull "$at_stderr" || at_failed=:
31981 at_func_diff_devnull "$at_stdout" || at_failed=:
31982 at_func_check_status 0 $at_status "$at_srcdir/shortrec.at:28"
31983
31984 $at_failed && at_func_log_failure
31985 $at_traceon; }
31986
31987               { $at_traceoff
31988 $as_echo "$at_srcdir/shortrec.at:28:
31989 mkdir oldgnu
31990 (cd oldgnu
31991 TEST_TAR_FORMAT=oldgnu
31992 export TEST_TAR_FORMAT
31993 TAR_OPTIONS=\"-H oldgnu\"
31994 export TAR_OPTIONS
31995 rm -rf *
31996
31997 mkdir directory
31998 (cd directory && touch a b c d e f g h i j k l m n o p q r)
31999 tar -c -b 1 -f - directory | tar -t -f - > /dev/null
32000 tar -c -b 1 -f archive directory
32001 tar -t -f archive > /dev/null
32002 tar -t -f - < archive > /dev/null
32003
32004 rm -r directory
32005 )"
32006 echo shortrec.at:28 >"$at_check_line_file"
32007
32008 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
32009    false; }; then
32010   ( $at_traceon;
32011 mkdir oldgnu
32012 (cd oldgnu
32013 TEST_TAR_FORMAT=oldgnu
32014 export TEST_TAR_FORMAT
32015 TAR_OPTIONS="-H oldgnu"
32016 export TAR_OPTIONS
32017 rm -rf *
32018
32019 mkdir directory
32020 (cd directory && touch a b c d e f g h i j k l m n o p q r)
32021 tar -c -b 1 -f - directory | tar -t -f - > /dev/null
32022 tar -c -b 1 -f archive directory
32023 tar -t -f archive > /dev/null
32024 tar -t -f - < archive > /dev/null
32025
32026 rm -r directory
32027 ) ) >"$at_stdout" 2>"$at_stder1"
32028   at_func_filter_trace $?
32029 else
32030   ( :;
32031 mkdir oldgnu
32032 (cd oldgnu
32033 TEST_TAR_FORMAT=oldgnu
32034 export TEST_TAR_FORMAT
32035 TAR_OPTIONS="-H oldgnu"
32036 export TAR_OPTIONS
32037 rm -rf *
32038
32039 mkdir directory
32040 (cd directory && touch a b c d e f g h i j k l m n o p q r)
32041 tar -c -b 1 -f - directory | tar -t -f - > /dev/null
32042 tar -c -b 1 -f archive directory
32043 tar -t -f archive > /dev/null
32044 tar -t -f - < archive > /dev/null
32045
32046 rm -r directory
32047 ) ) >"$at_stdout" 2>"$at_stderr"
32048 fi
32049 at_status=$?
32050 at_failed=false
32051 at_func_diff_devnull "$at_stderr" || at_failed=:
32052 at_func_diff_devnull "$at_stdout" || at_failed=:
32053 at_func_check_status 0 $at_status "$at_srcdir/shortrec.at:28"
32054
32055 $at_failed && at_func_log_failure
32056 $at_traceon; }
32057
32058               { $at_traceoff
32059 $as_echo "$at_srcdir/shortrec.at:28:
32060 mkdir ustar
32061 (cd ustar
32062 TEST_TAR_FORMAT=ustar
32063 export TEST_TAR_FORMAT
32064 TAR_OPTIONS=\"-H ustar\"
32065 export TAR_OPTIONS
32066 rm -rf *
32067
32068 mkdir directory
32069 (cd directory && touch a b c d e f g h i j k l m n o p q r)
32070 tar -c -b 1 -f - directory | tar -t -f - > /dev/null
32071 tar -c -b 1 -f archive directory
32072 tar -t -f archive > /dev/null
32073 tar -t -f - < archive > /dev/null
32074
32075 rm -r directory
32076 )"
32077 echo shortrec.at:28 >"$at_check_line_file"
32078
32079 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
32080    false; }; then
32081   ( $at_traceon;
32082 mkdir ustar
32083 (cd ustar
32084 TEST_TAR_FORMAT=ustar
32085 export TEST_TAR_FORMAT
32086 TAR_OPTIONS="-H ustar"
32087 export TAR_OPTIONS
32088 rm -rf *
32089
32090 mkdir directory
32091 (cd directory && touch a b c d e f g h i j k l m n o p q r)
32092 tar -c -b 1 -f - directory | tar -t -f - > /dev/null
32093 tar -c -b 1 -f archive directory
32094 tar -t -f archive > /dev/null
32095 tar -t -f - < archive > /dev/null
32096
32097 rm -r directory
32098 ) ) >"$at_stdout" 2>"$at_stder1"
32099   at_func_filter_trace $?
32100 else
32101   ( :;
32102 mkdir ustar
32103 (cd ustar
32104 TEST_TAR_FORMAT=ustar
32105 export TEST_TAR_FORMAT
32106 TAR_OPTIONS="-H ustar"
32107 export TAR_OPTIONS
32108 rm -rf *
32109
32110 mkdir directory
32111 (cd directory && touch a b c d e f g h i j k l m n o p q r)
32112 tar -c -b 1 -f - directory | tar -t -f - > /dev/null
32113 tar -c -b 1 -f archive directory
32114 tar -t -f archive > /dev/null
32115 tar -t -f - < archive > /dev/null
32116
32117 rm -r directory
32118 ) ) >"$at_stdout" 2>"$at_stderr"
32119 fi
32120 at_status=$?
32121 at_failed=false
32122 at_func_diff_devnull "$at_stderr" || at_failed=:
32123 at_func_diff_devnull "$at_stdout" || at_failed=:
32124 at_func_check_status 0 $at_status "$at_srcdir/shortrec.at:28"
32125
32126 $at_failed && at_func_log_failure
32127 $at_traceon; }
32128
32129               { $at_traceoff
32130 $as_echo "$at_srcdir/shortrec.at:28:
32131 mkdir posix
32132 (cd posix
32133 TEST_TAR_FORMAT=posix
32134 export TEST_TAR_FORMAT
32135 TAR_OPTIONS=\"-H posix\"
32136 export TAR_OPTIONS
32137 rm -rf *
32138
32139 mkdir directory
32140 (cd directory && touch a b c d e f g h i j k l m n o p q r)
32141 tar -c -b 1 -f - directory | tar -t -f - > /dev/null
32142 tar -c -b 1 -f archive directory
32143 tar -t -f archive > /dev/null
32144 tar -t -f - < archive > /dev/null
32145
32146 rm -r directory
32147 )"
32148 echo shortrec.at:28 >"$at_check_line_file"
32149
32150 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
32151    false; }; then
32152   ( $at_traceon;
32153 mkdir posix
32154 (cd posix
32155 TEST_TAR_FORMAT=posix
32156 export TEST_TAR_FORMAT
32157 TAR_OPTIONS="-H posix"
32158 export TAR_OPTIONS
32159 rm -rf *
32160
32161 mkdir directory
32162 (cd directory && touch a b c d e f g h i j k l m n o p q r)
32163 tar -c -b 1 -f - directory | tar -t -f - > /dev/null
32164 tar -c -b 1 -f archive directory
32165 tar -t -f archive > /dev/null
32166 tar -t -f - < archive > /dev/null
32167
32168 rm -r directory
32169 ) ) >"$at_stdout" 2>"$at_stder1"
32170   at_func_filter_trace $?
32171 else
32172   ( :;
32173 mkdir posix
32174 (cd posix
32175 TEST_TAR_FORMAT=posix
32176 export TEST_TAR_FORMAT
32177 TAR_OPTIONS="-H posix"
32178 export TAR_OPTIONS
32179 rm -rf *
32180
32181 mkdir directory
32182 (cd directory && touch a b c d e f g h i j k l m n o p q r)
32183 tar -c -b 1 -f - directory | tar -t -f - > /dev/null
32184 tar -c -b 1 -f archive directory
32185 tar -t -f archive > /dev/null
32186 tar -t -f - < archive > /dev/null
32187
32188 rm -r directory
32189 ) ) >"$at_stdout" 2>"$at_stderr"
32190 fi
32191 at_status=$?
32192 at_failed=false
32193 at_func_diff_devnull "$at_stderr" || at_failed=:
32194 at_func_diff_devnull "$at_stdout" || at_failed=:
32195 at_func_check_status 0 $at_status "$at_srcdir/shortrec.at:28"
32196
32197 $at_failed && at_func_log_failure
32198 $at_traceon; }
32199
32200               { $at_traceoff
32201 $as_echo "$at_srcdir/shortrec.at:28:
32202 mkdir gnu
32203 (cd gnu
32204 TEST_TAR_FORMAT=gnu
32205 export TEST_TAR_FORMAT
32206 TAR_OPTIONS=\"-H gnu\"
32207 export TAR_OPTIONS
32208 rm -rf *
32209
32210 mkdir directory
32211 (cd directory && touch a b c d e f g h i j k l m n o p q r)
32212 tar -c -b 1 -f - directory | tar -t -f - > /dev/null
32213 tar -c -b 1 -f archive directory
32214 tar -t -f archive > /dev/null
32215 tar -t -f - < archive > /dev/null
32216
32217 rm -r directory
32218 )"
32219 echo shortrec.at:28 >"$at_check_line_file"
32220
32221 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
32222    false; }; then
32223   ( $at_traceon;
32224 mkdir gnu
32225 (cd gnu
32226 TEST_TAR_FORMAT=gnu
32227 export TEST_TAR_FORMAT
32228 TAR_OPTIONS="-H gnu"
32229 export TAR_OPTIONS
32230 rm -rf *
32231
32232 mkdir directory
32233 (cd directory && touch a b c d e f g h i j k l m n o p q r)
32234 tar -c -b 1 -f - directory | tar -t -f - > /dev/null
32235 tar -c -b 1 -f archive directory
32236 tar -t -f archive > /dev/null
32237 tar -t -f - < archive > /dev/null
32238
32239 rm -r directory
32240 ) ) >"$at_stdout" 2>"$at_stder1"
32241   at_func_filter_trace $?
32242 else
32243   ( :;
32244 mkdir gnu
32245 (cd gnu
32246 TEST_TAR_FORMAT=gnu
32247 export TEST_TAR_FORMAT
32248 TAR_OPTIONS="-H gnu"
32249 export TAR_OPTIONS
32250 rm -rf *
32251
32252 mkdir directory
32253 (cd directory && touch a b c d e f g h i j k l m n o p q r)
32254 tar -c -b 1 -f - directory | tar -t -f - > /dev/null
32255 tar -c -b 1 -f archive directory
32256 tar -t -f archive > /dev/null
32257 tar -t -f - < archive > /dev/null
32258
32259 rm -r directory
32260 ) ) >"$at_stdout" 2>"$at_stderr"
32261 fi
32262 at_status=$?
32263 at_failed=false
32264 at_func_diff_devnull "$at_stderr" || at_failed=:
32265 at_func_diff_devnull "$at_stdout" || at_failed=:
32266 at_func_check_status 0 $at_status "$at_srcdir/shortrec.at:28"
32267
32268 $at_failed && at_func_log_failure
32269 $at_traceon; }
32270
32271
32272
32273
32274   $at_traceoff
32275   $at_times_p && times >"$at_times_file"
32276 ) 5>&1 2>&1 | eval $at_tee_pipe
32277 at_status=`cat "$at_status_file"`
32278 #AT_STOP_88
32279 #AT_START_89
32280 # 89. sparse01.at:21: sparse files
32281 at_setup_line='sparse01.at:21'
32282 at_desc="sparse files"
32283 $at_quiet $as_echo_n " 89: $at_desc                                   "
32284 at_xfail=no
32285       test -f $XFAILFILE && at_xfail=yes
32286 echo "#                             -*- compilation -*-" >> "$at_group_log"
32287 (
32288   $as_echo "89. sparse01.at:21: testing ..."
32289   $at_traceon
32290
32291
32292
32293
32294
32295   { $at_traceoff
32296 $as_echo "$at_srcdir/sparse01.at:24:
32297 mkdir posix
32298 (cd posix
32299 TEST_TAR_FORMAT=posix
32300 export TEST_TAR_FORMAT
32301 TAR_OPTIONS=\"-H posix\"
32302 export TAR_OPTIONS
32303 rm -rf *
32304
32305 genfile --length 1000 -f begin
32306 genfile --length 1000 -f end
32307 genfile --sparse --file sparsefile --block-size 512 0 ABCD 1M EFGH 2000K IJKL || exit 77
32308 tar -c -f archive --sparse begin sparsefile end || exit 1
32309 echo separator
32310
32311 tar tfv archive
32312 echo separator
32313 mkdir directory
32314 tar Cxf directory archive --warning=no-timestamp
32315 genfile --stat=name,size sparsefile
32316 cmp sparsefile directory/sparsefile
32317 )"
32318 echo sparse01.at:24 >"$at_check_line_file"
32319
32320 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
32321    false; }; then
32322   ( $at_traceon;
32323 mkdir posix
32324 (cd posix
32325 TEST_TAR_FORMAT=posix
32326 export TEST_TAR_FORMAT
32327 TAR_OPTIONS="-H posix"
32328 export TAR_OPTIONS
32329 rm -rf *
32330
32331 genfile --length 1000 -f begin
32332 genfile --length 1000 -f end
32333 genfile --sparse --file sparsefile --block-size 512 0 ABCD 1M EFGH 2000K IJKL || exit 77
32334 tar -c -f archive --sparse begin sparsefile end || exit 1
32335 echo separator
32336
32337 tar tfv archive
32338 echo separator
32339 mkdir directory
32340 tar Cxf directory archive --warning=no-timestamp
32341 genfile --stat=name,size sparsefile
32342 cmp sparsefile directory/sparsefile
32343 ) ) >"$at_stdout" 2>"$at_stder1"
32344   at_func_filter_trace $?
32345 else
32346   ( :;
32347 mkdir posix
32348 (cd posix
32349 TEST_TAR_FORMAT=posix
32350 export TEST_TAR_FORMAT
32351 TAR_OPTIONS="-H posix"
32352 export TAR_OPTIONS
32353 rm -rf *
32354
32355 genfile --length 1000 -f begin
32356 genfile --length 1000 -f end
32357 genfile --sparse --file sparsefile --block-size 512 0 ABCD 1M EFGH 2000K IJKL || exit 77
32358 tar -c -f archive --sparse begin sparsefile end || exit 1
32359 echo separator
32360
32361 tar tfv archive
32362 echo separator
32363 mkdir directory
32364 tar Cxf directory archive --warning=no-timestamp
32365 genfile --stat=name,size sparsefile
32366 cmp sparsefile directory/sparsefile
32367 ) ) >"$at_stdout" 2>"$at_stderr"
32368 fi
32369 at_status=$?
32370 at_failed=false
32371 at_func_diff_devnull "$at_stderr" || at_failed=:
32372 echo stdout:; tee stdout <"$at_stdout"
32373 at_func_check_status 0 $at_status "$at_srcdir/sparse01.at:24"
32374
32375 $at_failed && at_func_log_failure
32376 $at_traceon; }
32377
32378               { $at_traceoff
32379 $as_echo "$at_srcdir/sparse01.at:24:
32380 mkdir gnu
32381 (cd gnu
32382 TEST_TAR_FORMAT=gnu
32383 export TEST_TAR_FORMAT
32384 TAR_OPTIONS=\"-H gnu\"
32385 export TAR_OPTIONS
32386 rm -rf *
32387
32388 genfile --length 1000 -f begin
32389 genfile --length 1000 -f end
32390 genfile --sparse --file sparsefile --block-size 512 0 ABCD 1M EFGH 2000K IJKL || exit 77
32391 tar -c -f archive --sparse begin sparsefile end || exit 1
32392 echo separator
32393
32394 tar tfv archive
32395 echo separator
32396 mkdir directory
32397 tar Cxf directory archive --warning=no-timestamp
32398 genfile --stat=name,size sparsefile
32399 cmp sparsefile directory/sparsefile
32400 )"
32401 echo sparse01.at:24 >"$at_check_line_file"
32402
32403 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
32404    false; }; then
32405   ( $at_traceon;
32406 mkdir gnu
32407 (cd gnu
32408 TEST_TAR_FORMAT=gnu
32409 export TEST_TAR_FORMAT
32410 TAR_OPTIONS="-H gnu"
32411 export TAR_OPTIONS
32412 rm -rf *
32413
32414 genfile --length 1000 -f begin
32415 genfile --length 1000 -f end
32416 genfile --sparse --file sparsefile --block-size 512 0 ABCD 1M EFGH 2000K IJKL || exit 77
32417 tar -c -f archive --sparse begin sparsefile end || exit 1
32418 echo separator
32419
32420 tar tfv archive
32421 echo separator
32422 mkdir directory
32423 tar Cxf directory archive --warning=no-timestamp
32424 genfile --stat=name,size sparsefile
32425 cmp sparsefile directory/sparsefile
32426 ) ) >"$at_stdout" 2>"$at_stder1"
32427   at_func_filter_trace $?
32428 else
32429   ( :;
32430 mkdir gnu
32431 (cd gnu
32432 TEST_TAR_FORMAT=gnu
32433 export TEST_TAR_FORMAT
32434 TAR_OPTIONS="-H gnu"
32435 export TAR_OPTIONS
32436 rm -rf *
32437
32438 genfile --length 1000 -f begin
32439 genfile --length 1000 -f end
32440 genfile --sparse --file sparsefile --block-size 512 0 ABCD 1M EFGH 2000K IJKL || exit 77
32441 tar -c -f archive --sparse begin sparsefile end || exit 1
32442 echo separator
32443
32444 tar tfv archive
32445 echo separator
32446 mkdir directory
32447 tar Cxf directory archive --warning=no-timestamp
32448 genfile --stat=name,size sparsefile
32449 cmp sparsefile directory/sparsefile
32450 ) ) >"$at_stdout" 2>"$at_stderr"
32451 fi
32452 at_status=$?
32453 at_failed=false
32454 at_func_diff_devnull "$at_stderr" || at_failed=:
32455 echo stdout:; tee stdout <"$at_stdout"
32456 at_func_check_status 0 $at_status "$at_srcdir/sparse01.at:24"
32457
32458 $at_failed && at_func_log_failure
32459 $at_traceon; }
32460
32461               { $at_traceoff
32462 $as_echo "$at_srcdir/sparse01.at:24:
32463 mkdir oldgnu
32464 (cd oldgnu
32465 TEST_TAR_FORMAT=oldgnu
32466 export TEST_TAR_FORMAT
32467 TAR_OPTIONS=\"-H oldgnu\"
32468 export TAR_OPTIONS
32469 rm -rf *
32470
32471 genfile --length 1000 -f begin
32472 genfile --length 1000 -f end
32473 genfile --sparse --file sparsefile --block-size 512 0 ABCD 1M EFGH 2000K IJKL || exit 77
32474 tar -c -f archive --sparse begin sparsefile end || exit 1
32475 echo separator
32476
32477 tar tfv archive
32478 echo separator
32479 mkdir directory
32480 tar Cxf directory archive --warning=no-timestamp
32481 genfile --stat=name,size sparsefile
32482 cmp sparsefile directory/sparsefile
32483 )"
32484 echo sparse01.at:24 >"$at_check_line_file"
32485
32486 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
32487    false; }; then
32488   ( $at_traceon;
32489 mkdir oldgnu
32490 (cd oldgnu
32491 TEST_TAR_FORMAT=oldgnu
32492 export TEST_TAR_FORMAT
32493 TAR_OPTIONS="-H oldgnu"
32494 export TAR_OPTIONS
32495 rm -rf *
32496
32497 genfile --length 1000 -f begin
32498 genfile --length 1000 -f end
32499 genfile --sparse --file sparsefile --block-size 512 0 ABCD 1M EFGH 2000K IJKL || exit 77
32500 tar -c -f archive --sparse begin sparsefile end || exit 1
32501 echo separator
32502
32503 tar tfv archive
32504 echo separator
32505 mkdir directory
32506 tar Cxf directory archive --warning=no-timestamp
32507 genfile --stat=name,size sparsefile
32508 cmp sparsefile directory/sparsefile
32509 ) ) >"$at_stdout" 2>"$at_stder1"
32510   at_func_filter_trace $?
32511 else
32512   ( :;
32513 mkdir oldgnu
32514 (cd oldgnu
32515 TEST_TAR_FORMAT=oldgnu
32516 export TEST_TAR_FORMAT
32517 TAR_OPTIONS="-H oldgnu"
32518 export TAR_OPTIONS
32519 rm -rf *
32520
32521 genfile --length 1000 -f begin
32522 genfile --length 1000 -f end
32523 genfile --sparse --file sparsefile --block-size 512 0 ABCD 1M EFGH 2000K IJKL || exit 77
32524 tar -c -f archive --sparse begin sparsefile end || exit 1
32525 echo separator
32526
32527 tar tfv archive
32528 echo separator
32529 mkdir directory
32530 tar Cxf directory archive --warning=no-timestamp
32531 genfile --stat=name,size sparsefile
32532 cmp sparsefile directory/sparsefile
32533 ) ) >"$at_stdout" 2>"$at_stderr"
32534 fi
32535 at_status=$?
32536 at_failed=false
32537 at_func_diff_devnull "$at_stderr" || at_failed=:
32538 echo stdout:; tee stdout <"$at_stdout"
32539 at_func_check_status 0 $at_status "$at_srcdir/sparse01.at:24"
32540
32541 $at_failed && at_func_log_failure
32542 $at_traceon; }
32543
32544
32545
32546
32547
32548 cat >stdout.re <<'_ATEOF'
32549 separator
32550 -rw-r--r-- ^ ^ *  *1000 0-90-90-90-9-0-90-9-0-90-9 0-90-9:0-90-9 begin
32551 -rw-r--r-- ^ ^ *  *10344448 0-90-90-90-9-0-90-9-0-90-9 0-90-9:0-90-9 sparsefile
32552 -rw-r--r-- ^ ^ *  *1000 0-90-90-90-9-0-90-9-0-90-9 0-90-9:0-90-9 end
32553 separator
32554 sparsefile 10344448
32555 _ATEOF
32556
32557 awk '{print NR " " $0}' stdout > $$.1
32558 awk '{print NR " " $0}' stdout.re | join - $$.1 |
32559 while read NUM RE LINE
32560 do
32561   echo "$LINE" | grep -- "$RE" >/dev/null || exit 1
32562 done
32563
32564
32565   $at_traceoff
32566   $at_times_p && times >"$at_times_file"
32567 ) 5>&1 2>&1 | eval $at_tee_pipe
32568 at_status=`cat "$at_status_file"`
32569 #AT_STOP_89
32570 #AT_START_90
32571 # 90. sparse02.at:21: extracting sparse file over a pipe
32572 at_setup_line='sparse02.at:21'
32573 at_desc="extracting sparse file over a pipe"
32574 $at_quiet $as_echo_n " 90: $at_desc             "
32575 at_xfail=no
32576       test -f $XFAILFILE && at_xfail=yes
32577 echo "#                             -*- compilation -*-" >> "$at_group_log"
32578 (
32579   $as_echo "90. sparse02.at:21: testing ..."
32580   $at_traceon
32581
32582
32583
32584 # Tar 1.14 - 1.15.1 was unable to extract sparse files to a pipe.
32585 # References: <16896.21739.460782.124775@jik.kamens.brookline.ma.us>
32586 # http://lists.gnu.org/archive/html/bug-tar/2005-02/msg00003.html
32587
32588
32589
32590   { $at_traceoff
32591 $as_echo "$at_srcdir/sparse02.at:28:
32592 mkdir posix
32593 (cd posix
32594 TEST_TAR_FORMAT=posix
32595 export TEST_TAR_FORMAT
32596 TAR_OPTIONS=\"-H posix\"
32597 export TAR_OPTIONS
32598 rm -rf *
32599
32600 genfile --sparse --file sparsefile --block-size 512 0 ABCD 1M EFGH 2000K IJKL || exit 77
32601 tar -c -f archive --sparse sparsefile || exit 1
32602 echo separator
32603
32604 tar xfO archive | cat - > sparsecopy || exit 1
32605 cmp sparsefile sparsecopy
32606 )"
32607 echo sparse02.at:28 >"$at_check_line_file"
32608
32609 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
32610    false; }; then
32611   ( $at_traceon;
32612 mkdir posix
32613 (cd posix
32614 TEST_TAR_FORMAT=posix
32615 export TEST_TAR_FORMAT
32616 TAR_OPTIONS="-H posix"
32617 export TAR_OPTIONS
32618 rm -rf *
32619
32620 genfile --sparse --file sparsefile --block-size 512 0 ABCD 1M EFGH 2000K IJKL || exit 77
32621 tar -c -f archive --sparse sparsefile || exit 1
32622 echo separator
32623
32624 tar xfO archive | cat - > sparsecopy || exit 1
32625 cmp sparsefile sparsecopy
32626 ) ) >"$at_stdout" 2>"$at_stder1"
32627   at_func_filter_trace $?
32628 else
32629   ( :;
32630 mkdir posix
32631 (cd posix
32632 TEST_TAR_FORMAT=posix
32633 export TEST_TAR_FORMAT
32634 TAR_OPTIONS="-H posix"
32635 export TAR_OPTIONS
32636 rm -rf *
32637
32638 genfile --sparse --file sparsefile --block-size 512 0 ABCD 1M EFGH 2000K IJKL || exit 77
32639 tar -c -f archive --sparse sparsefile || exit 1
32640 echo separator
32641
32642 tar xfO archive | cat - > sparsecopy || exit 1
32643 cmp sparsefile sparsecopy
32644 ) ) >"$at_stdout" 2>"$at_stderr"
32645 fi
32646 at_status=$?
32647 at_failed=false
32648 at_func_diff_devnull "$at_stderr" || at_failed=:
32649 echo >>"$at_stdout"; $as_echo "separator
32650 " | \
32651   $at_diff - "$at_stdout" || at_failed=:
32652 at_func_check_status 0 $at_status "$at_srcdir/sparse02.at:28"
32653
32654 $at_failed && at_func_log_failure
32655 $at_traceon; }
32656
32657               { $at_traceoff
32658 $as_echo "$at_srcdir/sparse02.at:28:
32659 mkdir gnu
32660 (cd gnu
32661 TEST_TAR_FORMAT=gnu
32662 export TEST_TAR_FORMAT
32663 TAR_OPTIONS=\"-H gnu\"
32664 export TAR_OPTIONS
32665 rm -rf *
32666
32667 genfile --sparse --file sparsefile --block-size 512 0 ABCD 1M EFGH 2000K IJKL || exit 77
32668 tar -c -f archive --sparse sparsefile || exit 1
32669 echo separator
32670
32671 tar xfO archive | cat - > sparsecopy || exit 1
32672 cmp sparsefile sparsecopy
32673 )"
32674 echo sparse02.at:28 >"$at_check_line_file"
32675
32676 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
32677    false; }; then
32678   ( $at_traceon;
32679 mkdir gnu
32680 (cd gnu
32681 TEST_TAR_FORMAT=gnu
32682 export TEST_TAR_FORMAT
32683 TAR_OPTIONS="-H gnu"
32684 export TAR_OPTIONS
32685 rm -rf *
32686
32687 genfile --sparse --file sparsefile --block-size 512 0 ABCD 1M EFGH 2000K IJKL || exit 77
32688 tar -c -f archive --sparse sparsefile || exit 1
32689 echo separator
32690
32691 tar xfO archive | cat - > sparsecopy || exit 1
32692 cmp sparsefile sparsecopy
32693 ) ) >"$at_stdout" 2>"$at_stder1"
32694   at_func_filter_trace $?
32695 else
32696   ( :;
32697 mkdir gnu
32698 (cd gnu
32699 TEST_TAR_FORMAT=gnu
32700 export TEST_TAR_FORMAT
32701 TAR_OPTIONS="-H gnu"
32702 export TAR_OPTIONS
32703 rm -rf *
32704
32705 genfile --sparse --file sparsefile --block-size 512 0 ABCD 1M EFGH 2000K IJKL || exit 77
32706 tar -c -f archive --sparse sparsefile || exit 1
32707 echo separator
32708
32709 tar xfO archive | cat - > sparsecopy || exit 1
32710 cmp sparsefile sparsecopy
32711 ) ) >"$at_stdout" 2>"$at_stderr"
32712 fi
32713 at_status=$?
32714 at_failed=false
32715 at_func_diff_devnull "$at_stderr" || at_failed=:
32716 echo >>"$at_stdout"; $as_echo "separator
32717 " | \
32718   $at_diff - "$at_stdout" || at_failed=:
32719 at_func_check_status 0 $at_status "$at_srcdir/sparse02.at:28"
32720
32721 $at_failed && at_func_log_failure
32722 $at_traceon; }
32723
32724               { $at_traceoff
32725 $as_echo "$at_srcdir/sparse02.at:28:
32726 mkdir oldgnu
32727 (cd oldgnu
32728 TEST_TAR_FORMAT=oldgnu
32729 export TEST_TAR_FORMAT
32730 TAR_OPTIONS=\"-H oldgnu\"
32731 export TAR_OPTIONS
32732 rm -rf *
32733
32734 genfile --sparse --file sparsefile --block-size 512 0 ABCD 1M EFGH 2000K IJKL || exit 77
32735 tar -c -f archive --sparse sparsefile || exit 1
32736 echo separator
32737
32738 tar xfO archive | cat - > sparsecopy || exit 1
32739 cmp sparsefile sparsecopy
32740 )"
32741 echo sparse02.at:28 >"$at_check_line_file"
32742
32743 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
32744    false; }; then
32745   ( $at_traceon;
32746 mkdir oldgnu
32747 (cd oldgnu
32748 TEST_TAR_FORMAT=oldgnu
32749 export TEST_TAR_FORMAT
32750 TAR_OPTIONS="-H oldgnu"
32751 export TAR_OPTIONS
32752 rm -rf *
32753
32754 genfile --sparse --file sparsefile --block-size 512 0 ABCD 1M EFGH 2000K IJKL || exit 77
32755 tar -c -f archive --sparse sparsefile || exit 1
32756 echo separator
32757
32758 tar xfO archive | cat - > sparsecopy || exit 1
32759 cmp sparsefile sparsecopy
32760 ) ) >"$at_stdout" 2>"$at_stder1"
32761   at_func_filter_trace $?
32762 else
32763   ( :;
32764 mkdir oldgnu
32765 (cd oldgnu
32766 TEST_TAR_FORMAT=oldgnu
32767 export TEST_TAR_FORMAT
32768 TAR_OPTIONS="-H oldgnu"
32769 export TAR_OPTIONS
32770 rm -rf *
32771
32772 genfile --sparse --file sparsefile --block-size 512 0 ABCD 1M EFGH 2000K IJKL || exit 77
32773 tar -c -f archive --sparse sparsefile || exit 1
32774 echo separator
32775
32776 tar xfO archive | cat - > sparsecopy || exit 1
32777 cmp sparsefile sparsecopy
32778 ) ) >"$at_stdout" 2>"$at_stderr"
32779 fi
32780 at_status=$?
32781 at_failed=false
32782 at_func_diff_devnull "$at_stderr" || at_failed=:
32783 echo >>"$at_stdout"; $as_echo "separator
32784 " | \
32785   $at_diff - "$at_stdout" || at_failed=:
32786 at_func_check_status 0 $at_status "$at_srcdir/sparse02.at:28"
32787
32788 $at_failed && at_func_log_failure
32789 $at_traceon; }
32790
32791
32792
32793
32794   $at_traceoff
32795   $at_times_p && times >"$at_times_file"
32796 ) 5>&1 2>&1 | eval $at_tee_pipe
32797 at_status=`cat "$at_status_file"`
32798 #AT_STOP_90
32799 #AT_START_91
32800 # 91. sparse03.at:21: storing sparse files > 8G
32801 at_setup_line='sparse03.at:21'
32802 at_desc="storing sparse files > 8G"
32803 $at_quiet $as_echo_n " 91: $at_desc                      "
32804 at_xfail=no
32805       test -f $XFAILFILE && at_xfail=yes
32806 echo "#                             -*- compilation -*-" >> "$at_group_log"
32807 (
32808   $as_echo "91. sparse03.at:21: testing ..."
32809   $at_traceon
32810
32811
32812
32813 # Tar 1.15.1 incorrectly computed sparse member size if the extended
32814 # PAX header contained size keyword.
32815 # References: <87vf46nb36.fsf@penguin.cs.ucla.edu>
32816 # http://lists.gnu.org/archive/html/bug-tar/2005-06/msg00040.html
32817
32818
32819
32820   { $at_traceoff
32821 $as_echo "$at_srcdir/sparse03.at:29:
32822 mkdir posix
32823 (cd posix
32824 TEST_TAR_FORMAT=posix
32825 export TEST_TAR_FORMAT
32826 TAR_OPTIONS=\"-H posix\"
32827 export TAR_OPTIONS
32828 rm -rf *
32829
32830 genfile --length 1000 --file begin
32831 genfile --length 1000 --file end
32832 genfile --sparse --file sparsefile --block-size 512 8G A || exit 77
32833 tar -c -f archive --sparse begin sparsefile end || exit 1
32834 echo separator
32835
32836 tar tfv archive
32837 echo separator
32838 mkdir directory
32839 tar Cxf directory archive
32840 genfile --stat=name,size sparsefile
32841 cmp sparsefile directory/sparsefile
32842 )"
32843 echo sparse03.at:29 >"$at_check_line_file"
32844
32845 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
32846    false; }; then
32847   ( $at_traceon;
32848 mkdir posix
32849 (cd posix
32850 TEST_TAR_FORMAT=posix
32851 export TEST_TAR_FORMAT
32852 TAR_OPTIONS="-H posix"
32853 export TAR_OPTIONS
32854 rm -rf *
32855
32856 genfile --length 1000 --file begin
32857 genfile --length 1000 --file end
32858 genfile --sparse --file sparsefile --block-size 512 8G A || exit 77
32859 tar -c -f archive --sparse begin sparsefile end || exit 1
32860 echo separator
32861
32862 tar tfv archive
32863 echo separator
32864 mkdir directory
32865 tar Cxf directory archive
32866 genfile --stat=name,size sparsefile
32867 cmp sparsefile directory/sparsefile
32868 ) ) >"$at_stdout" 2>"$at_stder1"
32869   at_func_filter_trace $?
32870 else
32871   ( :;
32872 mkdir posix
32873 (cd posix
32874 TEST_TAR_FORMAT=posix
32875 export TEST_TAR_FORMAT
32876 TAR_OPTIONS="-H posix"
32877 export TAR_OPTIONS
32878 rm -rf *
32879
32880 genfile --length 1000 --file begin
32881 genfile --length 1000 --file end
32882 genfile --sparse --file sparsefile --block-size 512 8G A || exit 77
32883 tar -c -f archive --sparse begin sparsefile end || exit 1
32884 echo separator
32885
32886 tar tfv archive
32887 echo separator
32888 mkdir directory
32889 tar Cxf directory archive
32890 genfile --stat=name,size sparsefile
32891 cmp sparsefile directory/sparsefile
32892 ) ) >"$at_stdout" 2>"$at_stderr"
32893 fi
32894 at_status=$?
32895 at_failed=false
32896 at_func_diff_devnull "$at_stderr" || at_failed=:
32897 echo stdout:; tee stdout <"$at_stdout"
32898 at_func_check_status 0 $at_status "$at_srcdir/sparse03.at:29"
32899
32900 $at_failed && at_func_log_failure
32901 $at_traceon; }
32902
32903
32904
32905
32906
32907 cat >stdout.re <<'_ATEOF'
32908 separator
32909 -rw-r--r-- ^ ^ *  *1000 0-90-90-90-9-0-90-9-0-90-9 0-90-9:0-90-9 begin
32910 -rw-r--r-- ^ ^ *  *8589935104 0-90-90-90-9-0-90-9-0-90-9 0-90-9:0-90-9 sparsefile
32911 -rw-r--r-- ^ ^ *  *1000 0-90-90-90-9-0-90-9-0-90-9 0-90-9:0-90-9 end
32912 separator
32913 sparsefile 8589935104
32914 _ATEOF
32915
32916 awk '{print NR " " $0}' stdout > $$.1
32917 awk '{print NR " " $0}' stdout.re | join - $$.1 |
32918 while read NUM RE LINE
32919 do
32920   echo "$LINE" | grep -- "$RE" >/dev/null || exit 1
32921 done
32922
32923
32924   $at_traceoff
32925   $at_times_p && times >"$at_times_file"
32926 ) 5>&1 2>&1 | eval $at_tee_pipe
32927 at_status=`cat "$at_status_file"`
32928 #AT_STOP_91
32929 #AT_START_92
32930 # 92. sparsemv.at:21: sparse files in MV archives
32931 at_setup_line='sparsemv.at:21'
32932 at_desc="sparse files in MV archives"
32933 $at_quiet $as_echo_n " 92: $at_desc                    "
32934 at_xfail=no
32935       test -f $XFAILFILE && at_xfail=yes
32936 echo "#                             -*- compilation -*-" >> "$at_group_log"
32937 (
32938   $as_echo "92. sparsemv.at:21: testing ..."
32939   $at_traceon
32940
32941
32942
32943 # Check if sparse files are correctly split between GNU multi-volume
32944 # archives.
32945 # There are two cases: the file can be split within an empty (null) block,
32946 # or within a data block. Since null blocks are not archived, the first
32947 # case means the file is split between two consecutive data blocks.
32948 #
32949
32950
32951
32952   { $at_traceoff
32953 $as_echo "$at_srcdir/sparsemv.at:31:
32954 mkdir gnu
32955 (cd gnu
32956 TEST_TAR_FORMAT=gnu
32957 export TEST_TAR_FORMAT
32958 TAR_OPTIONS=\"-H gnu\"
32959 export TAR_OPTIONS
32960 rm -rf *
32961
32962 exec <&-
32963 genfile --sparse --file sparsefile 0 ABCDEFGHIJK 1M ABCDEFGHI || exit 77
32964 echo \"Pass 1: Split between data blocks\"
32965 echo \"Create archive\"
32966 tar --sparse -c --record-size=512 -M -L6 -f arc.1 -f arc.2 sparsefile || exit 1
32967 echo \"Test archive\"
32968 tar --record-size=512 -t -M -f arc.1 -f arc.2
32969 echo \"Compare archive\"
32970 tar --record-size=512 -d -M -f arc.1 -f arc.2
32971
32972 echo \"Pass 2: Split within a data block\"
32973 genfile --sparse --file sparsefile 0 ABCDEFGHIJ 1M ABCDEFGHI || exit 77
32974 echo \"Create archive\"
32975 tar --sparse -c --record-size=512 -M -L6 -f arc.1 -f arc.2 sparsefile || exit 1
32976 echo \"Test archive\"
32977 tar --record-size=512 -t -M -f arc.1 -f arc.2
32978 echo \"Compare archive\"
32979 tar --record-size=512 -d -M -f arc.1 -f arc.2
32980 )"
32981 echo sparsemv.at:31 >"$at_check_line_file"
32982
32983 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
32984    false; }; then
32985   ( $at_traceon;
32986 mkdir gnu
32987 (cd gnu
32988 TEST_TAR_FORMAT=gnu
32989 export TEST_TAR_FORMAT
32990 TAR_OPTIONS="-H gnu"
32991 export TAR_OPTIONS
32992 rm -rf *
32993
32994 exec <&-
32995 genfile --sparse --file sparsefile 0 ABCDEFGHIJK 1M ABCDEFGHI || exit 77
32996 echo "Pass 1: Split between data blocks"
32997 echo "Create archive"
32998 tar --sparse -c --record-size=512 -M -L6 -f arc.1 -f arc.2 sparsefile || exit 1
32999 echo "Test archive"
33000 tar --record-size=512 -t -M -f arc.1 -f arc.2
33001 echo "Compare archive"
33002 tar --record-size=512 -d -M -f arc.1 -f arc.2
33003
33004 echo "Pass 2: Split within a data block"
33005 genfile --sparse --file sparsefile 0 ABCDEFGHIJ 1M ABCDEFGHI || exit 77
33006 echo "Create archive"
33007 tar --sparse -c --record-size=512 -M -L6 -f arc.1 -f arc.2 sparsefile || exit 1
33008 echo "Test archive"
33009 tar --record-size=512 -t -M -f arc.1 -f arc.2
33010 echo "Compare archive"
33011 tar --record-size=512 -d -M -f arc.1 -f arc.2
33012 ) ) >"$at_stdout" 2>"$at_stder1"
33013   at_func_filter_trace $?
33014 else
33015   ( :;
33016 mkdir gnu
33017 (cd gnu
33018 TEST_TAR_FORMAT=gnu
33019 export TEST_TAR_FORMAT
33020 TAR_OPTIONS="-H gnu"
33021 export TAR_OPTIONS
33022 rm -rf *
33023
33024 exec <&-
33025 genfile --sparse --file sparsefile 0 ABCDEFGHIJK 1M ABCDEFGHI || exit 77
33026 echo "Pass 1: Split between data blocks"
33027 echo "Create archive"
33028 tar --sparse -c --record-size=512 -M -L6 -f arc.1 -f arc.2 sparsefile || exit 1
33029 echo "Test archive"
33030 tar --record-size=512 -t -M -f arc.1 -f arc.2
33031 echo "Compare archive"
33032 tar --record-size=512 -d -M -f arc.1 -f arc.2
33033
33034 echo "Pass 2: Split within a data block"
33035 genfile --sparse --file sparsefile 0 ABCDEFGHIJ 1M ABCDEFGHI || exit 77
33036 echo "Create archive"
33037 tar --sparse -c --record-size=512 -M -L6 -f arc.1 -f arc.2 sparsefile || exit 1
33038 echo "Test archive"
33039 tar --record-size=512 -t -M -f arc.1 -f arc.2
33040 echo "Compare archive"
33041 tar --record-size=512 -d -M -f arc.1 -f arc.2
33042 ) ) >"$at_stdout" 2>"$at_stderr"
33043 fi
33044 at_status=$?
33045 at_failed=false
33046 at_func_diff_devnull "$at_stderr" || at_failed=:
33047 echo >>"$at_stdout"; $as_echo "Pass 1: Split between data blocks
33048 Create archive
33049 Test archive
33050 sparsefile
33051 Compare archive
33052 Pass 2: Split within a data block
33053 Create archive
33054 Test archive
33055 sparsefile
33056 Compare archive
33057 " | \
33058   $at_diff - "$at_stdout" || at_failed=:
33059 at_func_check_status 0 $at_status "$at_srcdir/sparsemv.at:31"
33060
33061 $at_failed && at_func_log_failure
33062 $at_traceon; }
33063
33064               { $at_traceoff
33065 $as_echo "$at_srcdir/sparsemv.at:31:
33066 mkdir oldgnu
33067 (cd oldgnu
33068 TEST_TAR_FORMAT=oldgnu
33069 export TEST_TAR_FORMAT
33070 TAR_OPTIONS=\"-H oldgnu\"
33071 export TAR_OPTIONS
33072 rm -rf *
33073
33074 exec <&-
33075 genfile --sparse --file sparsefile 0 ABCDEFGHIJK 1M ABCDEFGHI || exit 77
33076 echo \"Pass 1: Split between data blocks\"
33077 echo \"Create archive\"
33078 tar --sparse -c --record-size=512 -M -L6 -f arc.1 -f arc.2 sparsefile || exit 1
33079 echo \"Test archive\"
33080 tar --record-size=512 -t -M -f arc.1 -f arc.2
33081 echo \"Compare archive\"
33082 tar --record-size=512 -d -M -f arc.1 -f arc.2
33083
33084 echo \"Pass 2: Split within a data block\"
33085 genfile --sparse --file sparsefile 0 ABCDEFGHIJ 1M ABCDEFGHI || exit 77
33086 echo \"Create archive\"
33087 tar --sparse -c --record-size=512 -M -L6 -f arc.1 -f arc.2 sparsefile || exit 1
33088 echo \"Test archive\"
33089 tar --record-size=512 -t -M -f arc.1 -f arc.2
33090 echo \"Compare archive\"
33091 tar --record-size=512 -d -M -f arc.1 -f arc.2
33092 )"
33093 echo sparsemv.at:31 >"$at_check_line_file"
33094
33095 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
33096    false; }; then
33097   ( $at_traceon;
33098 mkdir oldgnu
33099 (cd oldgnu
33100 TEST_TAR_FORMAT=oldgnu
33101 export TEST_TAR_FORMAT
33102 TAR_OPTIONS="-H oldgnu"
33103 export TAR_OPTIONS
33104 rm -rf *
33105
33106 exec <&-
33107 genfile --sparse --file sparsefile 0 ABCDEFGHIJK 1M ABCDEFGHI || exit 77
33108 echo "Pass 1: Split between data blocks"
33109 echo "Create archive"
33110 tar --sparse -c --record-size=512 -M -L6 -f arc.1 -f arc.2 sparsefile || exit 1
33111 echo "Test archive"
33112 tar --record-size=512 -t -M -f arc.1 -f arc.2
33113 echo "Compare archive"
33114 tar --record-size=512 -d -M -f arc.1 -f arc.2
33115
33116 echo "Pass 2: Split within a data block"
33117 genfile --sparse --file sparsefile 0 ABCDEFGHIJ 1M ABCDEFGHI || exit 77
33118 echo "Create archive"
33119 tar --sparse -c --record-size=512 -M -L6 -f arc.1 -f arc.2 sparsefile || exit 1
33120 echo "Test archive"
33121 tar --record-size=512 -t -M -f arc.1 -f arc.2
33122 echo "Compare archive"
33123 tar --record-size=512 -d -M -f arc.1 -f arc.2
33124 ) ) >"$at_stdout" 2>"$at_stder1"
33125   at_func_filter_trace $?
33126 else
33127   ( :;
33128 mkdir oldgnu
33129 (cd oldgnu
33130 TEST_TAR_FORMAT=oldgnu
33131 export TEST_TAR_FORMAT
33132 TAR_OPTIONS="-H oldgnu"
33133 export TAR_OPTIONS
33134 rm -rf *
33135
33136 exec <&-
33137 genfile --sparse --file sparsefile 0 ABCDEFGHIJK 1M ABCDEFGHI || exit 77
33138 echo "Pass 1: Split between data blocks"
33139 echo "Create archive"
33140 tar --sparse -c --record-size=512 -M -L6 -f arc.1 -f arc.2 sparsefile || exit 1
33141 echo "Test archive"
33142 tar --record-size=512 -t -M -f arc.1 -f arc.2
33143 echo "Compare archive"
33144 tar --record-size=512 -d -M -f arc.1 -f arc.2
33145
33146 echo "Pass 2: Split within a data block"
33147 genfile --sparse --file sparsefile 0 ABCDEFGHIJ 1M ABCDEFGHI || exit 77
33148 echo "Create archive"
33149 tar --sparse -c --record-size=512 -M -L6 -f arc.1 -f arc.2 sparsefile || exit 1
33150 echo "Test archive"
33151 tar --record-size=512 -t -M -f arc.1 -f arc.2
33152 echo "Compare archive"
33153 tar --record-size=512 -d -M -f arc.1 -f arc.2
33154 ) ) >"$at_stdout" 2>"$at_stderr"
33155 fi
33156 at_status=$?
33157 at_failed=false
33158 at_func_diff_devnull "$at_stderr" || at_failed=:
33159 echo >>"$at_stdout"; $as_echo "Pass 1: Split between data blocks
33160 Create archive
33161 Test archive
33162 sparsefile
33163 Compare archive
33164 Pass 2: Split within a data block
33165 Create archive
33166 Test archive
33167 sparsefile
33168 Compare archive
33169 " | \
33170   $at_diff - "$at_stdout" || at_failed=:
33171 at_func_check_status 0 $at_status "$at_srcdir/sparsemv.at:31"
33172
33173 $at_failed && at_func_log_failure
33174 $at_traceon; }
33175
33176
33177
33178
33179   $at_traceoff
33180   $at_times_p && times >"$at_times_file"
33181 ) 5>&1 2>&1 | eval $at_tee_pipe
33182 at_status=`cat "$at_status_file"`
33183 #AT_STOP_92
33184 #AT_START_93
33185 # 93. spmvp00.at:21: sparse files in PAX MV archives, v.0.0
33186 at_setup_line='spmvp00.at:21'
33187 at_desc="sparse files in PAX MV archives, v.0.0"
33188 $at_quiet $as_echo_n " 93: $at_desc         "
33189 at_xfail=no
33190       test -f $XFAILFILE && at_xfail=yes
33191 echo "#                             -*- compilation -*-" >> "$at_group_log"
33192 (
33193   $as_echo "93. spmvp00.at:21: testing ..."
33194   $at_traceon
33195
33196
33197
33198
33199
33200
33201   { $at_traceoff
33202 $as_echo "$at_srcdir/spmvp00.at:24:
33203 mkdir pax
33204 (cd pax
33205 TEST_TAR_FORMAT=pax
33206 export TEST_TAR_FORMAT
33207 TAR_OPTIONS=\"-H pax\"
33208 export TAR_OPTIONS
33209 rm -rf *
33210
33211 exec <&-
33212 genfile --sparse --file sparsefile 0 ABCDEFGHI 1M ABCDEFGHI || exit 77
33213 echo \"Pass 1: Split between data blocks\"
33214 echo \"Create archive\"
33215 tar --sparse --sparse-version=0.0 -c --record-size=512 -M -L6 -f arc.1 -f arc.2 -f arc.3 sparsefile
33216 echo \"Test archive\"
33217 tar -t -M -f arc.1 -f arc.2 -f arc.3
33218 echo \"Compare archive\"
33219 tar -d -M -f arc.1 -f arc.2 -f arc.3
33220
33221 echo \"Pass 2: Split within a data block\"
33222 genfile --sparse --file sparsefile 0 ABCDEFGH 1M ABCDEFGHI || exit 77
33223 echo \"Create archive\"
33224 tar --sparse --sparse-version=0.0 -c --record-size=512 -M -L6 -f arc.1 -f arc.2 -f arc.3 sparsefile
33225 echo \"Test archive\"
33226 tar -t -M -f arc.1 -f arc.2 -f arc.3
33227 echo \"Compare archive\"
33228 tar -d -M -f arc.1 -f arc.2 -f arc.3
33229 )"
33230 echo spmvp00.at:24 >"$at_check_line_file"
33231
33232 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
33233    false; }; then
33234   ( $at_traceon;
33235 mkdir pax
33236 (cd pax
33237 TEST_TAR_FORMAT=pax
33238 export TEST_TAR_FORMAT
33239 TAR_OPTIONS="-H pax"
33240 export TAR_OPTIONS
33241 rm -rf *
33242
33243 exec <&-
33244 genfile --sparse --file sparsefile 0 ABCDEFGHI 1M ABCDEFGHI || exit 77
33245 echo "Pass 1: Split between data blocks"
33246 echo "Create archive"
33247 tar --sparse --sparse-version=0.0 -c --record-size=512 -M -L6 -f arc.1 -f arc.2 -f arc.3 sparsefile
33248 echo "Test archive"
33249 tar -t -M -f arc.1 -f arc.2 -f arc.3
33250 echo "Compare archive"
33251 tar -d -M -f arc.1 -f arc.2 -f arc.3
33252
33253 echo "Pass 2: Split within a data block"
33254 genfile --sparse --file sparsefile 0 ABCDEFGH 1M ABCDEFGHI || exit 77
33255 echo "Create archive"
33256 tar --sparse --sparse-version=0.0 -c --record-size=512 -M -L6 -f arc.1 -f arc.2 -f arc.3 sparsefile
33257 echo "Test archive"
33258 tar -t -M -f arc.1 -f arc.2 -f arc.3
33259 echo "Compare archive"
33260 tar -d -M -f arc.1 -f arc.2 -f arc.3
33261 ) ) >"$at_stdout" 2>"$at_stder1"
33262   at_func_filter_trace $?
33263 else
33264   ( :;
33265 mkdir pax
33266 (cd pax
33267 TEST_TAR_FORMAT=pax
33268 export TEST_TAR_FORMAT
33269 TAR_OPTIONS="-H pax"
33270 export TAR_OPTIONS
33271 rm -rf *
33272
33273 exec <&-
33274 genfile --sparse --file sparsefile 0 ABCDEFGHI 1M ABCDEFGHI || exit 77
33275 echo "Pass 1: Split between data blocks"
33276 echo "Create archive"
33277 tar --sparse --sparse-version=0.0 -c --record-size=512 -M -L6 -f arc.1 -f arc.2 -f arc.3 sparsefile
33278 echo "Test archive"
33279 tar -t -M -f arc.1 -f arc.2 -f arc.3
33280 echo "Compare archive"
33281 tar -d -M -f arc.1 -f arc.2 -f arc.3
33282
33283 echo "Pass 2: Split within a data block"
33284 genfile --sparse --file sparsefile 0 ABCDEFGH 1M ABCDEFGHI || exit 77
33285 echo "Create archive"
33286 tar --sparse --sparse-version=0.0 -c --record-size=512 -M -L6 -f arc.1 -f arc.2 -f arc.3 sparsefile
33287 echo "Test archive"
33288 tar -t -M -f arc.1 -f arc.2 -f arc.3
33289 echo "Compare archive"
33290 tar -d -M -f arc.1 -f arc.2 -f arc.3
33291 ) ) >"$at_stdout" 2>"$at_stderr"
33292 fi
33293 at_status=$?
33294 at_failed=false
33295 at_func_diff_devnull "$at_stderr" || at_failed=:
33296 echo >>"$at_stdout"; $as_echo "Pass 1: Split between data blocks
33297 Create archive
33298 Test archive
33299 sparsefile
33300 Compare archive
33301 Pass 2: Split within a data block
33302 Create archive
33303 Test archive
33304 sparsefile
33305 Compare archive
33306 " | \
33307   $at_diff - "$at_stdout" || at_failed=:
33308 at_func_check_status 0 $at_status "$at_srcdir/spmvp00.at:24"
33309
33310 $at_failed && at_func_log_failure
33311 $at_traceon; }
33312
33313
33314
33315
33316   $at_traceoff
33317   $at_times_p && times >"$at_times_file"
33318 ) 5>&1 2>&1 | eval $at_tee_pipe
33319 at_status=`cat "$at_status_file"`
33320 #AT_STOP_93
33321 #AT_START_94
33322 # 94. spmvp01.at:21: sparse files in PAX MV archives, v.0.1
33323 at_setup_line='spmvp01.at:21'
33324 at_desc="sparse files in PAX MV archives, v.0.1"
33325 $at_quiet $as_echo_n " 94: $at_desc         "
33326 at_xfail=no
33327       test -f $XFAILFILE && at_xfail=yes
33328 echo "#                             -*- compilation -*-" >> "$at_group_log"
33329 (
33330   $as_echo "94. spmvp01.at:21: testing ..."
33331   $at_traceon
33332
33333
33334
33335
33336
33337
33338   { $at_traceoff
33339 $as_echo "$at_srcdir/spmvp01.at:24:
33340 mkdir pax
33341 (cd pax
33342 TEST_TAR_FORMAT=pax
33343 export TEST_TAR_FORMAT
33344 TAR_OPTIONS=\"-H pax\"
33345 export TAR_OPTIONS
33346 rm -rf *
33347
33348 exec <&-
33349 genfile --sparse --file sparsefile 0 ABCDEFGHIJK 1M ABCDEFGHI || exit 77
33350 echo \"Pass 1: Split between data blocks\"
33351 echo \"Create archive\"
33352 tar --sparse --sparse-version=0.1 -c --record-size=512 -M -L6 -f arc.1 -f arc.2 -f arc.3 sparsefile
33353 echo \"Test archive\"
33354 tar -t -M -f arc.1 -f arc.2 -f arc.3
33355 echo \"Compare archive\"
33356 tar -d -M -f arc.1 -f arc.2 -f arc.3
33357
33358 echo \"Pass 2: Split within a data block\"
33359 genfile --sparse --file sparsefile 0 ABCDEFGHIJ 1M ABCDEFGHI || exit 77
33360 echo \"Create archive\"
33361 tar --sparse --sparse-version=0.1 -c --record-size=512 -M -L6 -f arc.1 -f arc.2 -f arc.3 sparsefile
33362 echo \"Test archive\"
33363 tar -t -M -f arc.1 -f arc.2 -f arc.3
33364 echo \"Compare archive\"
33365 tar -d -M -f arc.1 -f arc.2 -f arc.3
33366 )"
33367 echo spmvp01.at:24 >"$at_check_line_file"
33368
33369 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
33370    false; }; then
33371   ( $at_traceon;
33372 mkdir pax
33373 (cd pax
33374 TEST_TAR_FORMAT=pax
33375 export TEST_TAR_FORMAT
33376 TAR_OPTIONS="-H pax"
33377 export TAR_OPTIONS
33378 rm -rf *
33379
33380 exec <&-
33381 genfile --sparse --file sparsefile 0 ABCDEFGHIJK 1M ABCDEFGHI || exit 77
33382 echo "Pass 1: Split between data blocks"
33383 echo "Create archive"
33384 tar --sparse --sparse-version=0.1 -c --record-size=512 -M -L6 -f arc.1 -f arc.2 -f arc.3 sparsefile
33385 echo "Test archive"
33386 tar -t -M -f arc.1 -f arc.2 -f arc.3
33387 echo "Compare archive"
33388 tar -d -M -f arc.1 -f arc.2 -f arc.3
33389
33390 echo "Pass 2: Split within a data block"
33391 genfile --sparse --file sparsefile 0 ABCDEFGHIJ 1M ABCDEFGHI || exit 77
33392 echo "Create archive"
33393 tar --sparse --sparse-version=0.1 -c --record-size=512 -M -L6 -f arc.1 -f arc.2 -f arc.3 sparsefile
33394 echo "Test archive"
33395 tar -t -M -f arc.1 -f arc.2 -f arc.3
33396 echo "Compare archive"
33397 tar -d -M -f arc.1 -f arc.2 -f arc.3
33398 ) ) >"$at_stdout" 2>"$at_stder1"
33399   at_func_filter_trace $?
33400 else
33401   ( :;
33402 mkdir pax
33403 (cd pax
33404 TEST_TAR_FORMAT=pax
33405 export TEST_TAR_FORMAT
33406 TAR_OPTIONS="-H pax"
33407 export TAR_OPTIONS
33408 rm -rf *
33409
33410 exec <&-
33411 genfile --sparse --file sparsefile 0 ABCDEFGHIJK 1M ABCDEFGHI || exit 77
33412 echo "Pass 1: Split between data blocks"
33413 echo "Create archive"
33414 tar --sparse --sparse-version=0.1 -c --record-size=512 -M -L6 -f arc.1 -f arc.2 -f arc.3 sparsefile
33415 echo "Test archive"
33416 tar -t -M -f arc.1 -f arc.2 -f arc.3
33417 echo "Compare archive"
33418 tar -d -M -f arc.1 -f arc.2 -f arc.3
33419
33420 echo "Pass 2: Split within a data block"
33421 genfile --sparse --file sparsefile 0 ABCDEFGHIJ 1M ABCDEFGHI || exit 77
33422 echo "Create archive"
33423 tar --sparse --sparse-version=0.1 -c --record-size=512 -M -L6 -f arc.1 -f arc.2 -f arc.3 sparsefile
33424 echo "Test archive"
33425 tar -t -M -f arc.1 -f arc.2 -f arc.3
33426 echo "Compare archive"
33427 tar -d -M -f arc.1 -f arc.2 -f arc.3
33428 ) ) >"$at_stdout" 2>"$at_stderr"
33429 fi
33430 at_status=$?
33431 at_failed=false
33432 at_func_diff_devnull "$at_stderr" || at_failed=:
33433 echo >>"$at_stdout"; $as_echo "Pass 1: Split between data blocks
33434 Create archive
33435 Test archive
33436 sparsefile
33437 Compare archive
33438 Pass 2: Split within a data block
33439 Create archive
33440 Test archive
33441 sparsefile
33442 Compare archive
33443 " | \
33444   $at_diff - "$at_stdout" || at_failed=:
33445 at_func_check_status 0 $at_status "$at_srcdir/spmvp01.at:24"
33446
33447 $at_failed && at_func_log_failure
33448 $at_traceon; }
33449
33450
33451
33452
33453   $at_traceoff
33454   $at_times_p && times >"$at_times_file"
33455 ) 5>&1 2>&1 | eval $at_tee_pipe
33456 at_status=`cat "$at_status_file"`
33457 #AT_STOP_94
33458 #AT_START_95
33459 # 95. spmvp10.at:21: sparse files in PAX MV archives, v.1.0
33460 at_setup_line='spmvp10.at:21'
33461 at_desc="sparse files in PAX MV archives, v.1.0"
33462 $at_quiet $as_echo_n " 95: $at_desc         "
33463 at_xfail=no
33464       test -f $XFAILFILE && at_xfail=yes
33465 echo "#                             -*- compilation -*-" >> "$at_group_log"
33466 (
33467   $as_echo "95. spmvp10.at:21: testing ..."
33468   $at_traceon
33469
33470
33471
33472
33473
33474
33475   { $at_traceoff
33476 $as_echo "$at_srcdir/spmvp10.at:24:
33477 mkdir pax
33478 (cd pax
33479 TEST_TAR_FORMAT=pax
33480 export TEST_TAR_FORMAT
33481 TAR_OPTIONS=\"-H pax\"
33482 export TAR_OPTIONS
33483 rm -rf *
33484
33485 exec <&-
33486 genfile --sparse --file sparsefile 0 ABCDEFGH 1M ABCDEFGHI || exit 77
33487 echo \"Pass 1: Split between data blocks\"
33488 echo \"Create archive\"
33489 tar --sparse --sparse-version=1.0 -c --record-size=512 -M -L6 -f arc.1 -f arc.2 -f arc.3 sparsefile
33490 echo \"Test archive\"
33491 tar -t -M -f arc.1 -f arc.2 -f arc.3
33492 echo \"Compare archive\"
33493 tar -d -M -f arc.1 -f arc.2 -f arc.3
33494
33495 echo \"Pass 2: Split within a data block\"
33496 genfile --sparse --file sparsefile 0 ABCDEFG 1M ABCDEFGHI || exit 77
33497 echo \"Create archive\"
33498 tar --sparse --sparse-version=1.0 -c --record-size=512 -M -L6 -f arc.1 -f arc.2 -f arc.3 sparsefile
33499 echo \"Test archive\"
33500 tar -t -M -f arc.1 -f arc.2 -f arc.3
33501 echo \"Compare archive\"
33502 tar -d -M -f arc.1 -f arc.2 -f arc.3
33503 )"
33504 echo spmvp10.at:24 >"$at_check_line_file"
33505
33506 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
33507    false; }; then
33508   ( $at_traceon;
33509 mkdir pax
33510 (cd pax
33511 TEST_TAR_FORMAT=pax
33512 export TEST_TAR_FORMAT
33513 TAR_OPTIONS="-H pax"
33514 export TAR_OPTIONS
33515 rm -rf *
33516
33517 exec <&-
33518 genfile --sparse --file sparsefile 0 ABCDEFGH 1M ABCDEFGHI || exit 77
33519 echo "Pass 1: Split between data blocks"
33520 echo "Create archive"
33521 tar --sparse --sparse-version=1.0 -c --record-size=512 -M -L6 -f arc.1 -f arc.2 -f arc.3 sparsefile
33522 echo "Test archive"
33523 tar -t -M -f arc.1 -f arc.2 -f arc.3
33524 echo "Compare archive"
33525 tar -d -M -f arc.1 -f arc.2 -f arc.3
33526
33527 echo "Pass 2: Split within a data block"
33528 genfile --sparse --file sparsefile 0 ABCDEFG 1M ABCDEFGHI || exit 77
33529 echo "Create archive"
33530 tar --sparse --sparse-version=1.0 -c --record-size=512 -M -L6 -f arc.1 -f arc.2 -f arc.3 sparsefile
33531 echo "Test archive"
33532 tar -t -M -f arc.1 -f arc.2 -f arc.3
33533 echo "Compare archive"
33534 tar -d -M -f arc.1 -f arc.2 -f arc.3
33535 ) ) >"$at_stdout" 2>"$at_stder1"
33536   at_func_filter_trace $?
33537 else
33538   ( :;
33539 mkdir pax
33540 (cd pax
33541 TEST_TAR_FORMAT=pax
33542 export TEST_TAR_FORMAT
33543 TAR_OPTIONS="-H pax"
33544 export TAR_OPTIONS
33545 rm -rf *
33546
33547 exec <&-
33548 genfile --sparse --file sparsefile 0 ABCDEFGH 1M ABCDEFGHI || exit 77
33549 echo "Pass 1: Split between data blocks"
33550 echo "Create archive"
33551 tar --sparse --sparse-version=1.0 -c --record-size=512 -M -L6 -f arc.1 -f arc.2 -f arc.3 sparsefile
33552 echo "Test archive"
33553 tar -t -M -f arc.1 -f arc.2 -f arc.3
33554 echo "Compare archive"
33555 tar -d -M -f arc.1 -f arc.2 -f arc.3
33556
33557 echo "Pass 2: Split within a data block"
33558 genfile --sparse --file sparsefile 0 ABCDEFG 1M ABCDEFGHI || exit 77
33559 echo "Create archive"
33560 tar --sparse --sparse-version=1.0 -c --record-size=512 -M -L6 -f arc.1 -f arc.2 -f arc.3 sparsefile
33561 echo "Test archive"
33562 tar -t -M -f arc.1 -f arc.2 -f arc.3
33563 echo "Compare archive"
33564 tar -d -M -f arc.1 -f arc.2 -f arc.3
33565 ) ) >"$at_stdout" 2>"$at_stderr"
33566 fi
33567 at_status=$?
33568 at_failed=false
33569 at_func_diff_devnull "$at_stderr" || at_failed=:
33570 echo >>"$at_stdout"; $as_echo "Pass 1: Split between data blocks
33571 Create archive
33572 Test archive
33573 sparsefile
33574 Compare archive
33575 Pass 2: Split within a data block
33576 Create archive
33577 Test archive
33578 sparsefile
33579 Compare archive
33580 " | \
33581   $at_diff - "$at_stdout" || at_failed=:
33582 at_func_check_status 0 $at_status "$at_srcdir/spmvp10.at:24"
33583
33584 $at_failed && at_func_log_failure
33585 $at_traceon; }
33586
33587
33588
33589
33590   $at_traceoff
33591   $at_times_p && times >"$at_times_file"
33592 ) 5>&1 2>&1 | eval $at_tee_pipe
33593 at_status=`cat "$at_status_file"`
33594 #AT_STOP_95
33595 #AT_START_96
33596 # 96. update.at:28: update unchanged directories
33597 at_setup_line='update.at:28'
33598 at_desc="update unchanged directories"
33599 $at_quiet $as_echo_n " 96: $at_desc                   "
33600 at_xfail=no
33601       test -f $XFAILFILE && at_xfail=yes
33602 echo "#                             -*- compilation -*-" >> "$at_group_log"
33603 (
33604   $as_echo "96. update.at:28: testing ..."
33605   $at_traceon
33606
33607
33608
33609
33610
33611   { $at_traceoff
33612 $as_echo "$at_srcdir/update.at:31:
33613 mkdir v7
33614 (cd v7
33615 TEST_TAR_FORMAT=v7
33616 export TEST_TAR_FORMAT
33617 TAR_OPTIONS=\"-H v7\"
33618 export TAR_OPTIONS
33619 rm -rf *
33620
33621
33622 test -z "`sort < /dev/null 2>&1`" || exit 77
33623
33624 mkdir directory
33625 genfile --length 10240 --pattern zeros --file directory/file1
33626 genfile --length 10240 --pattern default --file directory/file2
33627
33628 tar cf archive directory || exit 1
33629 echo separator
33630 tar uf archive directory || exit 1
33631 echo separator
33632 tar tf archive | sort || exit 1
33633 )"
33634 echo update.at:31 >"$at_check_line_file"
33635
33636 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
33637    false; }; then
33638   ( $at_traceon;
33639 mkdir v7
33640 (cd v7
33641 TEST_TAR_FORMAT=v7
33642 export TEST_TAR_FORMAT
33643 TAR_OPTIONS="-H v7"
33644 export TAR_OPTIONS
33645 rm -rf *
33646
33647
33648 test -z "`sort < /dev/null 2>&1`" || exit 77
33649
33650 mkdir directory
33651 genfile --length 10240 --pattern zeros --file directory/file1
33652 genfile --length 10240 --pattern default --file directory/file2
33653
33654 tar cf archive directory || exit 1
33655 echo separator
33656 tar uf archive directory || exit 1
33657 echo separator
33658 tar tf archive | sort || exit 1
33659 ) ) >"$at_stdout" 2>"$at_stder1"
33660   at_func_filter_trace $?
33661 else
33662   ( :;
33663 mkdir v7
33664 (cd v7
33665 TEST_TAR_FORMAT=v7
33666 export TEST_TAR_FORMAT
33667 TAR_OPTIONS="-H v7"
33668 export TAR_OPTIONS
33669 rm -rf *
33670
33671
33672 test -z "`sort < /dev/null 2>&1`" || exit 77
33673
33674 mkdir directory
33675 genfile --length 10240 --pattern zeros --file directory/file1
33676 genfile --length 10240 --pattern default --file directory/file2
33677
33678 tar cf archive directory || exit 1
33679 echo separator
33680 tar uf archive directory || exit 1
33681 echo separator
33682 tar tf archive | sort || exit 1
33683 ) ) >"$at_stdout" 2>"$at_stderr"
33684 fi
33685 at_status=$?
33686 at_failed=false
33687 at_func_diff_devnull "$at_stderr" || at_failed=:
33688 echo >>"$at_stdout"; $as_echo "separator
33689 separator
33690 directory/
33691 directory/file1
33692 directory/file2
33693 " | \
33694   $at_diff - "$at_stdout" || at_failed=:
33695 at_func_check_status 0 $at_status "$at_srcdir/update.at:31"
33696
33697 $at_failed && at_func_log_failure
33698 $at_traceon; }
33699
33700               { $at_traceoff
33701 $as_echo "$at_srcdir/update.at:31:
33702 mkdir oldgnu
33703 (cd oldgnu
33704 TEST_TAR_FORMAT=oldgnu
33705 export TEST_TAR_FORMAT
33706 TAR_OPTIONS=\"-H oldgnu\"
33707 export TAR_OPTIONS
33708 rm -rf *
33709
33710
33711 test -z "`sort < /dev/null 2>&1`" || exit 77
33712
33713 mkdir directory
33714 genfile --length 10240 --pattern zeros --file directory/file1
33715 genfile --length 10240 --pattern default --file directory/file2
33716
33717 tar cf archive directory || exit 1
33718 echo separator
33719 tar uf archive directory || exit 1
33720 echo separator
33721 tar tf archive | sort || exit 1
33722 )"
33723 echo update.at:31 >"$at_check_line_file"
33724
33725 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
33726    false; }; then
33727   ( $at_traceon;
33728 mkdir oldgnu
33729 (cd oldgnu
33730 TEST_TAR_FORMAT=oldgnu
33731 export TEST_TAR_FORMAT
33732 TAR_OPTIONS="-H oldgnu"
33733 export TAR_OPTIONS
33734 rm -rf *
33735
33736
33737 test -z "`sort < /dev/null 2>&1`" || exit 77
33738
33739 mkdir directory
33740 genfile --length 10240 --pattern zeros --file directory/file1
33741 genfile --length 10240 --pattern default --file directory/file2
33742
33743 tar cf archive directory || exit 1
33744 echo separator
33745 tar uf archive directory || exit 1
33746 echo separator
33747 tar tf archive | sort || exit 1
33748 ) ) >"$at_stdout" 2>"$at_stder1"
33749   at_func_filter_trace $?
33750 else
33751   ( :;
33752 mkdir oldgnu
33753 (cd oldgnu
33754 TEST_TAR_FORMAT=oldgnu
33755 export TEST_TAR_FORMAT
33756 TAR_OPTIONS="-H oldgnu"
33757 export TAR_OPTIONS
33758 rm -rf *
33759
33760
33761 test -z "`sort < /dev/null 2>&1`" || exit 77
33762
33763 mkdir directory
33764 genfile --length 10240 --pattern zeros --file directory/file1
33765 genfile --length 10240 --pattern default --file directory/file2
33766
33767 tar cf archive directory || exit 1
33768 echo separator
33769 tar uf archive directory || exit 1
33770 echo separator
33771 tar tf archive | sort || exit 1
33772 ) ) >"$at_stdout" 2>"$at_stderr"
33773 fi
33774 at_status=$?
33775 at_failed=false
33776 at_func_diff_devnull "$at_stderr" || at_failed=:
33777 echo >>"$at_stdout"; $as_echo "separator
33778 separator
33779 directory/
33780 directory/file1
33781 directory/file2
33782 " | \
33783   $at_diff - "$at_stdout" || at_failed=:
33784 at_func_check_status 0 $at_status "$at_srcdir/update.at:31"
33785
33786 $at_failed && at_func_log_failure
33787 $at_traceon; }
33788
33789               { $at_traceoff
33790 $as_echo "$at_srcdir/update.at:31:
33791 mkdir ustar
33792 (cd ustar
33793 TEST_TAR_FORMAT=ustar
33794 export TEST_TAR_FORMAT
33795 TAR_OPTIONS=\"-H ustar\"
33796 export TAR_OPTIONS
33797 rm -rf *
33798
33799
33800 test -z "`sort < /dev/null 2>&1`" || exit 77
33801
33802 mkdir directory
33803 genfile --length 10240 --pattern zeros --file directory/file1
33804 genfile --length 10240 --pattern default --file directory/file2
33805
33806 tar cf archive directory || exit 1
33807 echo separator
33808 tar uf archive directory || exit 1
33809 echo separator
33810 tar tf archive | sort || exit 1
33811 )"
33812 echo update.at:31 >"$at_check_line_file"
33813
33814 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
33815    false; }; then
33816   ( $at_traceon;
33817 mkdir ustar
33818 (cd ustar
33819 TEST_TAR_FORMAT=ustar
33820 export TEST_TAR_FORMAT
33821 TAR_OPTIONS="-H ustar"
33822 export TAR_OPTIONS
33823 rm -rf *
33824
33825
33826 test -z "`sort < /dev/null 2>&1`" || exit 77
33827
33828 mkdir directory
33829 genfile --length 10240 --pattern zeros --file directory/file1
33830 genfile --length 10240 --pattern default --file directory/file2
33831
33832 tar cf archive directory || exit 1
33833 echo separator
33834 tar uf archive directory || exit 1
33835 echo separator
33836 tar tf archive | sort || exit 1
33837 ) ) >"$at_stdout" 2>"$at_stder1"
33838   at_func_filter_trace $?
33839 else
33840   ( :;
33841 mkdir ustar
33842 (cd ustar
33843 TEST_TAR_FORMAT=ustar
33844 export TEST_TAR_FORMAT
33845 TAR_OPTIONS="-H ustar"
33846 export TAR_OPTIONS
33847 rm -rf *
33848
33849
33850 test -z "`sort < /dev/null 2>&1`" || exit 77
33851
33852 mkdir directory
33853 genfile --length 10240 --pattern zeros --file directory/file1
33854 genfile --length 10240 --pattern default --file directory/file2
33855
33856 tar cf archive directory || exit 1
33857 echo separator
33858 tar uf archive directory || exit 1
33859 echo separator
33860 tar tf archive | sort || exit 1
33861 ) ) >"$at_stdout" 2>"$at_stderr"
33862 fi
33863 at_status=$?
33864 at_failed=false
33865 at_func_diff_devnull "$at_stderr" || at_failed=:
33866 echo >>"$at_stdout"; $as_echo "separator
33867 separator
33868 directory/
33869 directory/file1
33870 directory/file2
33871 " | \
33872   $at_diff - "$at_stdout" || at_failed=:
33873 at_func_check_status 0 $at_status "$at_srcdir/update.at:31"
33874
33875 $at_failed && at_func_log_failure
33876 $at_traceon; }
33877
33878               { $at_traceoff
33879 $as_echo "$at_srcdir/update.at:31:
33880 mkdir posix
33881 (cd posix
33882 TEST_TAR_FORMAT=posix
33883 export TEST_TAR_FORMAT
33884 TAR_OPTIONS=\"-H posix\"
33885 export TAR_OPTIONS
33886 rm -rf *
33887
33888
33889 test -z "`sort < /dev/null 2>&1`" || exit 77
33890
33891 mkdir directory
33892 genfile --length 10240 --pattern zeros --file directory/file1
33893 genfile --length 10240 --pattern default --file directory/file2
33894
33895 tar cf archive directory || exit 1
33896 echo separator
33897 tar uf archive directory || exit 1
33898 echo separator
33899 tar tf archive | sort || exit 1
33900 )"
33901 echo update.at:31 >"$at_check_line_file"
33902
33903 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
33904    false; }; then
33905   ( $at_traceon;
33906 mkdir posix
33907 (cd posix
33908 TEST_TAR_FORMAT=posix
33909 export TEST_TAR_FORMAT
33910 TAR_OPTIONS="-H posix"
33911 export TAR_OPTIONS
33912 rm -rf *
33913
33914
33915 test -z "`sort < /dev/null 2>&1`" || exit 77
33916
33917 mkdir directory
33918 genfile --length 10240 --pattern zeros --file directory/file1
33919 genfile --length 10240 --pattern default --file directory/file2
33920
33921 tar cf archive directory || exit 1
33922 echo separator
33923 tar uf archive directory || exit 1
33924 echo separator
33925 tar tf archive | sort || exit 1
33926 ) ) >"$at_stdout" 2>"$at_stder1"
33927   at_func_filter_trace $?
33928 else
33929   ( :;
33930 mkdir posix
33931 (cd posix
33932 TEST_TAR_FORMAT=posix
33933 export TEST_TAR_FORMAT
33934 TAR_OPTIONS="-H posix"
33935 export TAR_OPTIONS
33936 rm -rf *
33937
33938
33939 test -z "`sort < /dev/null 2>&1`" || exit 77
33940
33941 mkdir directory
33942 genfile --length 10240 --pattern zeros --file directory/file1
33943 genfile --length 10240 --pattern default --file directory/file2
33944
33945 tar cf archive directory || exit 1
33946 echo separator
33947 tar uf archive directory || exit 1
33948 echo separator
33949 tar tf archive | sort || exit 1
33950 ) ) >"$at_stdout" 2>"$at_stderr"
33951 fi
33952 at_status=$?
33953 at_failed=false
33954 at_func_diff_devnull "$at_stderr" || at_failed=:
33955 echo >>"$at_stdout"; $as_echo "separator
33956 separator
33957 directory/
33958 directory/file1
33959 directory/file2
33960 " | \
33961   $at_diff - "$at_stdout" || at_failed=:
33962 at_func_check_status 0 $at_status "$at_srcdir/update.at:31"
33963
33964 $at_failed && at_func_log_failure
33965 $at_traceon; }
33966
33967               { $at_traceoff
33968 $as_echo "$at_srcdir/update.at:31:
33969 mkdir gnu
33970 (cd gnu
33971 TEST_TAR_FORMAT=gnu
33972 export TEST_TAR_FORMAT
33973 TAR_OPTIONS=\"-H gnu\"
33974 export TAR_OPTIONS
33975 rm -rf *
33976
33977
33978 test -z "`sort < /dev/null 2>&1`" || exit 77
33979
33980 mkdir directory
33981 genfile --length 10240 --pattern zeros --file directory/file1
33982 genfile --length 10240 --pattern default --file directory/file2
33983
33984 tar cf archive directory || exit 1
33985 echo separator
33986 tar uf archive directory || exit 1
33987 echo separator
33988 tar tf archive | sort || exit 1
33989 )"
33990 echo update.at:31 >"$at_check_line_file"
33991
33992 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
33993    false; }; then
33994   ( $at_traceon;
33995 mkdir gnu
33996 (cd gnu
33997 TEST_TAR_FORMAT=gnu
33998 export TEST_TAR_FORMAT
33999 TAR_OPTIONS="-H gnu"
34000 export TAR_OPTIONS
34001 rm -rf *
34002
34003
34004 test -z "`sort < /dev/null 2>&1`" || exit 77
34005
34006 mkdir directory
34007 genfile --length 10240 --pattern zeros --file directory/file1
34008 genfile --length 10240 --pattern default --file directory/file2
34009
34010 tar cf archive directory || exit 1
34011 echo separator
34012 tar uf archive directory || exit 1
34013 echo separator
34014 tar tf archive | sort || exit 1
34015 ) ) >"$at_stdout" 2>"$at_stder1"
34016   at_func_filter_trace $?
34017 else
34018   ( :;
34019 mkdir gnu
34020 (cd gnu
34021 TEST_TAR_FORMAT=gnu
34022 export TEST_TAR_FORMAT
34023 TAR_OPTIONS="-H gnu"
34024 export TAR_OPTIONS
34025 rm -rf *
34026
34027
34028 test -z "`sort < /dev/null 2>&1`" || exit 77
34029
34030 mkdir directory
34031 genfile --length 10240 --pattern zeros --file directory/file1
34032 genfile --length 10240 --pattern default --file directory/file2
34033
34034 tar cf archive directory || exit 1
34035 echo separator
34036 tar uf archive directory || exit 1
34037 echo separator
34038 tar tf archive | sort || exit 1
34039 ) ) >"$at_stdout" 2>"$at_stderr"
34040 fi
34041 at_status=$?
34042 at_failed=false
34043 at_func_diff_devnull "$at_stderr" || at_failed=:
34044 echo >>"$at_stdout"; $as_echo "separator
34045 separator
34046 directory/
34047 directory/file1
34048 directory/file2
34049 " | \
34050   $at_diff - "$at_stdout" || at_failed=:
34051 at_func_check_status 0 $at_status "$at_srcdir/update.at:31"
34052
34053 $at_failed && at_func_log_failure
34054 $at_traceon; }
34055
34056
34057
34058
34059   $at_traceoff
34060   $at_times_p && times >"$at_times_file"
34061 ) 5>&1 2>&1 | eval $at_tee_pipe
34062 at_status=`cat "$at_status_file"`
34063 #AT_STOP_96
34064 #AT_START_97
34065 # 97. update01.at:29: update directories
34066 at_setup_line='update01.at:29'
34067 at_desc="update directories"
34068 $at_quiet $as_echo_n " 97: $at_desc                             "
34069 at_xfail=no
34070       test -f $XFAILFILE && at_xfail=yes
34071 echo "#                             -*- compilation -*-" >> "$at_group_log"
34072 (
34073   $as_echo "97. update01.at:29: testing ..."
34074   $at_traceon
34075
34076
34077
34078
34079
34080   { $at_traceoff
34081 $as_echo "$at_srcdir/update01.at:32:
34082 mkdir v7
34083 (cd v7
34084 TEST_TAR_FORMAT=v7
34085 export TEST_TAR_FORMAT
34086 TAR_OPTIONS=\"-H v7\"
34087 export TAR_OPTIONS
34088 rm -rf *
34089
34090
34091 test -z "`sort < /dev/null 2>&1`" || exit 77
34092
34093 mkdir a
34094 genfile --file a/b
34095
34096 tar cf arc a
34097
34098 echo \"separator\"
34099
34100 sleep 2
34101 genfile --file a/c
34102
34103 tar ufv arc a
34104 echo \"separator\"
34105 tar tf arc | sort || exit 1
34106 )"
34107 echo update01.at:32 >"$at_check_line_file"
34108
34109 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
34110    false; }; then
34111   ( $at_traceon;
34112 mkdir v7
34113 (cd v7
34114 TEST_TAR_FORMAT=v7
34115 export TEST_TAR_FORMAT
34116 TAR_OPTIONS="-H v7"
34117 export TAR_OPTIONS
34118 rm -rf *
34119
34120
34121 test -z "`sort < /dev/null 2>&1`" || exit 77
34122
34123 mkdir a
34124 genfile --file a/b
34125
34126 tar cf arc a
34127
34128 echo "separator"
34129
34130 sleep 2
34131 genfile --file a/c
34132
34133 tar ufv arc a
34134 echo "separator"
34135 tar tf arc | sort || exit 1
34136 ) ) >"$at_stdout" 2>"$at_stder1"
34137   at_func_filter_trace $?
34138 else
34139   ( :;
34140 mkdir v7
34141 (cd v7
34142 TEST_TAR_FORMAT=v7
34143 export TEST_TAR_FORMAT
34144 TAR_OPTIONS="-H v7"
34145 export TAR_OPTIONS
34146 rm -rf *
34147
34148
34149 test -z "`sort < /dev/null 2>&1`" || exit 77
34150
34151 mkdir a
34152 genfile --file a/b
34153
34154 tar cf arc a
34155
34156 echo "separator"
34157
34158 sleep 2
34159 genfile --file a/c
34160
34161 tar ufv arc a
34162 echo "separator"
34163 tar tf arc | sort || exit 1
34164 ) ) >"$at_stdout" 2>"$at_stderr"
34165 fi
34166 at_status=$?
34167 at_failed=false
34168 at_func_diff_devnull "$at_stderr" || at_failed=:
34169 echo >>"$at_stdout"; $as_echo "separator
34170 a/c
34171 separator
34172 a/
34173 a/b
34174 a/c
34175 " | \
34176   $at_diff - "$at_stdout" || at_failed=:
34177 at_func_check_status 0 $at_status "$at_srcdir/update01.at:32"
34178
34179 $at_failed && at_func_log_failure
34180 $at_traceon; }
34181
34182               { $at_traceoff
34183 $as_echo "$at_srcdir/update01.at:32:
34184 mkdir oldgnu
34185 (cd oldgnu
34186 TEST_TAR_FORMAT=oldgnu
34187 export TEST_TAR_FORMAT
34188 TAR_OPTIONS=\"-H oldgnu\"
34189 export TAR_OPTIONS
34190 rm -rf *
34191
34192
34193 test -z "`sort < /dev/null 2>&1`" || exit 77
34194
34195 mkdir a
34196 genfile --file a/b
34197
34198 tar cf arc a
34199
34200 echo \"separator\"
34201
34202 sleep 2
34203 genfile --file a/c
34204
34205 tar ufv arc a
34206 echo \"separator\"
34207 tar tf arc | sort || exit 1
34208 )"
34209 echo update01.at:32 >"$at_check_line_file"
34210
34211 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
34212    false; }; then
34213   ( $at_traceon;
34214 mkdir oldgnu
34215 (cd oldgnu
34216 TEST_TAR_FORMAT=oldgnu
34217 export TEST_TAR_FORMAT
34218 TAR_OPTIONS="-H oldgnu"
34219 export TAR_OPTIONS
34220 rm -rf *
34221
34222
34223 test -z "`sort < /dev/null 2>&1`" || exit 77
34224
34225 mkdir a
34226 genfile --file a/b
34227
34228 tar cf arc a
34229
34230 echo "separator"
34231
34232 sleep 2
34233 genfile --file a/c
34234
34235 tar ufv arc a
34236 echo "separator"
34237 tar tf arc | sort || exit 1
34238 ) ) >"$at_stdout" 2>"$at_stder1"
34239   at_func_filter_trace $?
34240 else
34241   ( :;
34242 mkdir oldgnu
34243 (cd oldgnu
34244 TEST_TAR_FORMAT=oldgnu
34245 export TEST_TAR_FORMAT
34246 TAR_OPTIONS="-H oldgnu"
34247 export TAR_OPTIONS
34248 rm -rf *
34249
34250
34251 test -z "`sort < /dev/null 2>&1`" || exit 77
34252
34253 mkdir a
34254 genfile --file a/b
34255
34256 tar cf arc a
34257
34258 echo "separator"
34259
34260 sleep 2
34261 genfile --file a/c
34262
34263 tar ufv arc a
34264 echo "separator"
34265 tar tf arc | sort || exit 1
34266 ) ) >"$at_stdout" 2>"$at_stderr"
34267 fi
34268 at_status=$?
34269 at_failed=false
34270 at_func_diff_devnull "$at_stderr" || at_failed=:
34271 echo >>"$at_stdout"; $as_echo "separator
34272 a/c
34273 separator
34274 a/
34275 a/b
34276 a/c
34277 " | \
34278   $at_diff - "$at_stdout" || at_failed=:
34279 at_func_check_status 0 $at_status "$at_srcdir/update01.at:32"
34280
34281 $at_failed && at_func_log_failure
34282 $at_traceon; }
34283
34284               { $at_traceoff
34285 $as_echo "$at_srcdir/update01.at:32:
34286 mkdir ustar
34287 (cd ustar
34288 TEST_TAR_FORMAT=ustar
34289 export TEST_TAR_FORMAT
34290 TAR_OPTIONS=\"-H ustar\"
34291 export TAR_OPTIONS
34292 rm -rf *
34293
34294
34295 test -z "`sort < /dev/null 2>&1`" || exit 77
34296
34297 mkdir a
34298 genfile --file a/b
34299
34300 tar cf arc a
34301
34302 echo \"separator\"
34303
34304 sleep 2
34305 genfile --file a/c
34306
34307 tar ufv arc a
34308 echo \"separator\"
34309 tar tf arc | sort || exit 1
34310 )"
34311 echo update01.at:32 >"$at_check_line_file"
34312
34313 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
34314    false; }; then
34315   ( $at_traceon;
34316 mkdir ustar
34317 (cd ustar
34318 TEST_TAR_FORMAT=ustar
34319 export TEST_TAR_FORMAT
34320 TAR_OPTIONS="-H ustar"
34321 export TAR_OPTIONS
34322 rm -rf *
34323
34324
34325 test -z "`sort < /dev/null 2>&1`" || exit 77
34326
34327 mkdir a
34328 genfile --file a/b
34329
34330 tar cf arc a
34331
34332 echo "separator"
34333
34334 sleep 2
34335 genfile --file a/c
34336
34337 tar ufv arc a
34338 echo "separator"
34339 tar tf arc | sort || exit 1
34340 ) ) >"$at_stdout" 2>"$at_stder1"
34341   at_func_filter_trace $?
34342 else
34343   ( :;
34344 mkdir ustar
34345 (cd ustar
34346 TEST_TAR_FORMAT=ustar
34347 export TEST_TAR_FORMAT
34348 TAR_OPTIONS="-H ustar"
34349 export TAR_OPTIONS
34350 rm -rf *
34351
34352
34353 test -z "`sort < /dev/null 2>&1`" || exit 77
34354
34355 mkdir a
34356 genfile --file a/b
34357
34358 tar cf arc a
34359
34360 echo "separator"
34361
34362 sleep 2
34363 genfile --file a/c
34364
34365 tar ufv arc a
34366 echo "separator"
34367 tar tf arc | sort || exit 1
34368 ) ) >"$at_stdout" 2>"$at_stderr"
34369 fi
34370 at_status=$?
34371 at_failed=false
34372 at_func_diff_devnull "$at_stderr" || at_failed=:
34373 echo >>"$at_stdout"; $as_echo "separator
34374 a/c
34375 separator
34376 a/
34377 a/b
34378 a/c
34379 " | \
34380   $at_diff - "$at_stdout" || at_failed=:
34381 at_func_check_status 0 $at_status "$at_srcdir/update01.at:32"
34382
34383 $at_failed && at_func_log_failure
34384 $at_traceon; }
34385
34386               { $at_traceoff
34387 $as_echo "$at_srcdir/update01.at:32:
34388 mkdir posix
34389 (cd posix
34390 TEST_TAR_FORMAT=posix
34391 export TEST_TAR_FORMAT
34392 TAR_OPTIONS=\"-H posix\"
34393 export TAR_OPTIONS
34394 rm -rf *
34395
34396
34397 test -z "`sort < /dev/null 2>&1`" || exit 77
34398
34399 mkdir a
34400 genfile --file a/b
34401
34402 tar cf arc a
34403
34404 echo \"separator\"
34405
34406 sleep 2
34407 genfile --file a/c
34408
34409 tar ufv arc a
34410 echo \"separator\"
34411 tar tf arc | sort || exit 1
34412 )"
34413 echo update01.at:32 >"$at_check_line_file"
34414
34415 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
34416    false; }; then
34417   ( $at_traceon;
34418 mkdir posix
34419 (cd posix
34420 TEST_TAR_FORMAT=posix
34421 export TEST_TAR_FORMAT
34422 TAR_OPTIONS="-H posix"
34423 export TAR_OPTIONS
34424 rm -rf *
34425
34426
34427 test -z "`sort < /dev/null 2>&1`" || exit 77
34428
34429 mkdir a
34430 genfile --file a/b
34431
34432 tar cf arc a
34433
34434 echo "separator"
34435
34436 sleep 2
34437 genfile --file a/c
34438
34439 tar ufv arc a
34440 echo "separator"
34441 tar tf arc | sort || exit 1
34442 ) ) >"$at_stdout" 2>"$at_stder1"
34443   at_func_filter_trace $?
34444 else
34445   ( :;
34446 mkdir posix
34447 (cd posix
34448 TEST_TAR_FORMAT=posix
34449 export TEST_TAR_FORMAT
34450 TAR_OPTIONS="-H posix"
34451 export TAR_OPTIONS
34452 rm -rf *
34453
34454
34455 test -z "`sort < /dev/null 2>&1`" || exit 77
34456
34457 mkdir a
34458 genfile --file a/b
34459
34460 tar cf arc a
34461
34462 echo "separator"
34463
34464 sleep 2
34465 genfile --file a/c
34466
34467 tar ufv arc a
34468 echo "separator"
34469 tar tf arc | sort || exit 1
34470 ) ) >"$at_stdout" 2>"$at_stderr"
34471 fi
34472 at_status=$?
34473 at_failed=false
34474 at_func_diff_devnull "$at_stderr" || at_failed=:
34475 echo >>"$at_stdout"; $as_echo "separator
34476 a/c
34477 separator
34478 a/
34479 a/b
34480 a/c
34481 " | \
34482   $at_diff - "$at_stdout" || at_failed=:
34483 at_func_check_status 0 $at_status "$at_srcdir/update01.at:32"
34484
34485 $at_failed && at_func_log_failure
34486 $at_traceon; }
34487
34488               { $at_traceoff
34489 $as_echo "$at_srcdir/update01.at:32:
34490 mkdir gnu
34491 (cd gnu
34492 TEST_TAR_FORMAT=gnu
34493 export TEST_TAR_FORMAT
34494 TAR_OPTIONS=\"-H gnu\"
34495 export TAR_OPTIONS
34496 rm -rf *
34497
34498
34499 test -z "`sort < /dev/null 2>&1`" || exit 77
34500
34501 mkdir a
34502 genfile --file a/b
34503
34504 tar cf arc a
34505
34506 echo \"separator\"
34507
34508 sleep 2
34509 genfile --file a/c
34510
34511 tar ufv arc a
34512 echo \"separator\"
34513 tar tf arc | sort || exit 1
34514 )"
34515 echo update01.at:32 >"$at_check_line_file"
34516
34517 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
34518    false; }; then
34519   ( $at_traceon;
34520 mkdir gnu
34521 (cd gnu
34522 TEST_TAR_FORMAT=gnu
34523 export TEST_TAR_FORMAT
34524 TAR_OPTIONS="-H gnu"
34525 export TAR_OPTIONS
34526 rm -rf *
34527
34528
34529 test -z "`sort < /dev/null 2>&1`" || exit 77
34530
34531 mkdir a
34532 genfile --file a/b
34533
34534 tar cf arc a
34535
34536 echo "separator"
34537
34538 sleep 2
34539 genfile --file a/c
34540
34541 tar ufv arc a
34542 echo "separator"
34543 tar tf arc | sort || exit 1
34544 ) ) >"$at_stdout" 2>"$at_stder1"
34545   at_func_filter_trace $?
34546 else
34547   ( :;
34548 mkdir gnu
34549 (cd gnu
34550 TEST_TAR_FORMAT=gnu
34551 export TEST_TAR_FORMAT
34552 TAR_OPTIONS="-H gnu"
34553 export TAR_OPTIONS
34554 rm -rf *
34555
34556
34557 test -z "`sort < /dev/null 2>&1`" || exit 77
34558
34559 mkdir a
34560 genfile --file a/b
34561
34562 tar cf arc a
34563
34564 echo "separator"
34565
34566 sleep 2
34567 genfile --file a/c
34568
34569 tar ufv arc a
34570 echo "separator"
34571 tar tf arc | sort || exit 1
34572 ) ) >"$at_stdout" 2>"$at_stderr"
34573 fi
34574 at_status=$?
34575 at_failed=false
34576 at_func_diff_devnull "$at_stderr" || at_failed=:
34577 echo >>"$at_stdout"; $as_echo "separator
34578 a/c
34579 separator
34580 a/
34581 a/b
34582 a/c
34583 " | \
34584   $at_diff - "$at_stdout" || at_failed=:
34585 at_func_check_status 0 $at_status "$at_srcdir/update01.at:32"
34586
34587 $at_failed && at_func_log_failure
34588 $at_traceon; }
34589
34590
34591
34592
34593   $at_traceoff
34594   $at_times_p && times >"$at_times_file"
34595 ) 5>&1 2>&1 | eval $at_tee_pipe
34596 at_status=`cat "$at_status_file"`
34597 #AT_STOP_97
34598 #AT_START_98
34599 # 98. update02.at:26: update changed files
34600 at_setup_line='update02.at:26'
34601 at_desc="update changed files"
34602 $at_quiet $as_echo_n " 98: $at_desc                           "
34603 at_xfail=no
34604       test -f $XFAILFILE && at_xfail=yes
34605 echo "#                             -*- compilation -*-" >> "$at_group_log"
34606 (
34607   $as_echo "98. update02.at:26: testing ..."
34608   $at_traceon
34609
34610
34611
34612
34613
34614   { $at_traceoff
34615 $as_echo "$at_srcdir/update02.at:29:
34616 mkdir v7
34617 (cd v7
34618 TEST_TAR_FORMAT=v7
34619 export TEST_TAR_FORMAT
34620 TAR_OPTIONS=\"-H v7\"
34621 export TAR_OPTIONS
34622 rm -rf *
34623
34624
34625 test -z "`sort < /dev/null 2>&1`" || exit 77
34626
34627 mkdir a
34628 genfile --file a/b
34629
34630 tar cf arc a
34631
34632 echo \"separator\"
34633
34634 sleep 2
34635 touch a/b
34636
34637 tar ufv arc a
34638 echo \"separator\"
34639 tar tf arc | sort || exit 1
34640 )"
34641 echo update02.at:29 >"$at_check_line_file"
34642
34643 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
34644    false; }; then
34645   ( $at_traceon;
34646 mkdir v7
34647 (cd v7
34648 TEST_TAR_FORMAT=v7
34649 export TEST_TAR_FORMAT
34650 TAR_OPTIONS="-H v7"
34651 export TAR_OPTIONS
34652 rm -rf *
34653
34654
34655 test -z "`sort < /dev/null 2>&1`" || exit 77
34656
34657 mkdir a
34658 genfile --file a/b
34659
34660 tar cf arc a
34661
34662 echo "separator"
34663
34664 sleep 2
34665 touch a/b
34666
34667 tar ufv arc a
34668 echo "separator"
34669 tar tf arc | sort || exit 1
34670 ) ) >"$at_stdout" 2>"$at_stder1"
34671   at_func_filter_trace $?
34672 else
34673   ( :;
34674 mkdir v7
34675 (cd v7
34676 TEST_TAR_FORMAT=v7
34677 export TEST_TAR_FORMAT
34678 TAR_OPTIONS="-H v7"
34679 export TAR_OPTIONS
34680 rm -rf *
34681
34682
34683 test -z "`sort < /dev/null 2>&1`" || exit 77
34684
34685 mkdir a
34686 genfile --file a/b
34687
34688 tar cf arc a
34689
34690 echo "separator"
34691
34692 sleep 2
34693 touch a/b
34694
34695 tar ufv arc a
34696 echo "separator"
34697 tar tf arc | sort || exit 1
34698 ) ) >"$at_stdout" 2>"$at_stderr"
34699 fi
34700 at_status=$?
34701 at_failed=false
34702 at_func_diff_devnull "$at_stderr" || at_failed=:
34703 echo >>"$at_stdout"; $as_echo "separator
34704 a/b
34705 separator
34706 a/
34707 a/b
34708 a/b
34709 " | \
34710   $at_diff - "$at_stdout" || at_failed=:
34711 at_func_check_status 0 $at_status "$at_srcdir/update02.at:29"
34712
34713 $at_failed && at_func_log_failure
34714 $at_traceon; }
34715
34716               { $at_traceoff
34717 $as_echo "$at_srcdir/update02.at:29:
34718 mkdir oldgnu
34719 (cd oldgnu
34720 TEST_TAR_FORMAT=oldgnu
34721 export TEST_TAR_FORMAT
34722 TAR_OPTIONS=\"-H oldgnu\"
34723 export TAR_OPTIONS
34724 rm -rf *
34725
34726
34727 test -z "`sort < /dev/null 2>&1`" || exit 77
34728
34729 mkdir a
34730 genfile --file a/b
34731
34732 tar cf arc a
34733
34734 echo \"separator\"
34735
34736 sleep 2
34737 touch a/b
34738
34739 tar ufv arc a
34740 echo \"separator\"
34741 tar tf arc | sort || exit 1
34742 )"
34743 echo update02.at:29 >"$at_check_line_file"
34744
34745 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
34746    false; }; then
34747   ( $at_traceon;
34748 mkdir oldgnu
34749 (cd oldgnu
34750 TEST_TAR_FORMAT=oldgnu
34751 export TEST_TAR_FORMAT
34752 TAR_OPTIONS="-H oldgnu"
34753 export TAR_OPTIONS
34754 rm -rf *
34755
34756
34757 test -z "`sort < /dev/null 2>&1`" || exit 77
34758
34759 mkdir a
34760 genfile --file a/b
34761
34762 tar cf arc a
34763
34764 echo "separator"
34765
34766 sleep 2
34767 touch a/b
34768
34769 tar ufv arc a
34770 echo "separator"
34771 tar tf arc | sort || exit 1
34772 ) ) >"$at_stdout" 2>"$at_stder1"
34773   at_func_filter_trace $?
34774 else
34775   ( :;
34776 mkdir oldgnu
34777 (cd oldgnu
34778 TEST_TAR_FORMAT=oldgnu
34779 export TEST_TAR_FORMAT
34780 TAR_OPTIONS="-H oldgnu"
34781 export TAR_OPTIONS
34782 rm -rf *
34783
34784
34785 test -z "`sort < /dev/null 2>&1`" || exit 77
34786
34787 mkdir a
34788 genfile --file a/b
34789
34790 tar cf arc a
34791
34792 echo "separator"
34793
34794 sleep 2
34795 touch a/b
34796
34797 tar ufv arc a
34798 echo "separator"
34799 tar tf arc | sort || exit 1
34800 ) ) >"$at_stdout" 2>"$at_stderr"
34801 fi
34802 at_status=$?
34803 at_failed=false
34804 at_func_diff_devnull "$at_stderr" || at_failed=:
34805 echo >>"$at_stdout"; $as_echo "separator
34806 a/b
34807 separator
34808 a/
34809 a/b
34810 a/b
34811 " | \
34812   $at_diff - "$at_stdout" || at_failed=:
34813 at_func_check_status 0 $at_status "$at_srcdir/update02.at:29"
34814
34815 $at_failed && at_func_log_failure
34816 $at_traceon; }
34817
34818               { $at_traceoff
34819 $as_echo "$at_srcdir/update02.at:29:
34820 mkdir ustar
34821 (cd ustar
34822 TEST_TAR_FORMAT=ustar
34823 export TEST_TAR_FORMAT
34824 TAR_OPTIONS=\"-H ustar\"
34825 export TAR_OPTIONS
34826 rm -rf *
34827
34828
34829 test -z "`sort < /dev/null 2>&1`" || exit 77
34830
34831 mkdir a
34832 genfile --file a/b
34833
34834 tar cf arc a
34835
34836 echo \"separator\"
34837
34838 sleep 2
34839 touch a/b
34840
34841 tar ufv arc a
34842 echo \"separator\"
34843 tar tf arc | sort || exit 1
34844 )"
34845 echo update02.at:29 >"$at_check_line_file"
34846
34847 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
34848    false; }; then
34849   ( $at_traceon;
34850 mkdir ustar
34851 (cd ustar
34852 TEST_TAR_FORMAT=ustar
34853 export TEST_TAR_FORMAT
34854 TAR_OPTIONS="-H ustar"
34855 export TAR_OPTIONS
34856 rm -rf *
34857
34858
34859 test -z "`sort < /dev/null 2>&1`" || exit 77
34860
34861 mkdir a
34862 genfile --file a/b
34863
34864 tar cf arc a
34865
34866 echo "separator"
34867
34868 sleep 2
34869 touch a/b
34870
34871 tar ufv arc a
34872 echo "separator"
34873 tar tf arc | sort || exit 1
34874 ) ) >"$at_stdout" 2>"$at_stder1"
34875   at_func_filter_trace $?
34876 else
34877   ( :;
34878 mkdir ustar
34879 (cd ustar
34880 TEST_TAR_FORMAT=ustar
34881 export TEST_TAR_FORMAT
34882 TAR_OPTIONS="-H ustar"
34883 export TAR_OPTIONS
34884 rm -rf *
34885
34886
34887 test -z "`sort < /dev/null 2>&1`" || exit 77
34888
34889 mkdir a
34890 genfile --file a/b
34891
34892 tar cf arc a
34893
34894 echo "separator"
34895
34896 sleep 2
34897 touch a/b
34898
34899 tar ufv arc a
34900 echo "separator"
34901 tar tf arc | sort || exit 1
34902 ) ) >"$at_stdout" 2>"$at_stderr"
34903 fi
34904 at_status=$?
34905 at_failed=false
34906 at_func_diff_devnull "$at_stderr" || at_failed=:
34907 echo >>"$at_stdout"; $as_echo "separator
34908 a/b
34909 separator
34910 a/
34911 a/b
34912 a/b
34913 " | \
34914   $at_diff - "$at_stdout" || at_failed=:
34915 at_func_check_status 0 $at_status "$at_srcdir/update02.at:29"
34916
34917 $at_failed && at_func_log_failure
34918 $at_traceon; }
34919
34920               { $at_traceoff
34921 $as_echo "$at_srcdir/update02.at:29:
34922 mkdir posix
34923 (cd posix
34924 TEST_TAR_FORMAT=posix
34925 export TEST_TAR_FORMAT
34926 TAR_OPTIONS=\"-H posix\"
34927 export TAR_OPTIONS
34928 rm -rf *
34929
34930
34931 test -z "`sort < /dev/null 2>&1`" || exit 77
34932
34933 mkdir a
34934 genfile --file a/b
34935
34936 tar cf arc a
34937
34938 echo \"separator\"
34939
34940 sleep 2
34941 touch a/b
34942
34943 tar ufv arc a
34944 echo \"separator\"
34945 tar tf arc | sort || exit 1
34946 )"
34947 echo update02.at:29 >"$at_check_line_file"
34948
34949 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
34950    false; }; then
34951   ( $at_traceon;
34952 mkdir posix
34953 (cd posix
34954 TEST_TAR_FORMAT=posix
34955 export TEST_TAR_FORMAT
34956 TAR_OPTIONS="-H posix"
34957 export TAR_OPTIONS
34958 rm -rf *
34959
34960
34961 test -z "`sort < /dev/null 2>&1`" || exit 77
34962
34963 mkdir a
34964 genfile --file a/b
34965
34966 tar cf arc a
34967
34968 echo "separator"
34969
34970 sleep 2
34971 touch a/b
34972
34973 tar ufv arc a
34974 echo "separator"
34975 tar tf arc | sort || exit 1
34976 ) ) >"$at_stdout" 2>"$at_stder1"
34977   at_func_filter_trace $?
34978 else
34979   ( :;
34980 mkdir posix
34981 (cd posix
34982 TEST_TAR_FORMAT=posix
34983 export TEST_TAR_FORMAT
34984 TAR_OPTIONS="-H posix"
34985 export TAR_OPTIONS
34986 rm -rf *
34987
34988
34989 test -z "`sort < /dev/null 2>&1`" || exit 77
34990
34991 mkdir a
34992 genfile --file a/b
34993
34994 tar cf arc a
34995
34996 echo "separator"
34997
34998 sleep 2
34999 touch a/b
35000
35001 tar ufv arc a
35002 echo "separator"
35003 tar tf arc | sort || exit 1
35004 ) ) >"$at_stdout" 2>"$at_stderr"
35005 fi
35006 at_status=$?
35007 at_failed=false
35008 at_func_diff_devnull "$at_stderr" || at_failed=:
35009 echo >>"$at_stdout"; $as_echo "separator
35010 a/b
35011 separator
35012 a/
35013 a/b
35014 a/b
35015 " | \
35016   $at_diff - "$at_stdout" || at_failed=:
35017 at_func_check_status 0 $at_status "$at_srcdir/update02.at:29"
35018
35019 $at_failed && at_func_log_failure
35020 $at_traceon; }
35021
35022               { $at_traceoff
35023 $as_echo "$at_srcdir/update02.at:29:
35024 mkdir gnu
35025 (cd gnu
35026 TEST_TAR_FORMAT=gnu
35027 export TEST_TAR_FORMAT
35028 TAR_OPTIONS=\"-H gnu\"
35029 export TAR_OPTIONS
35030 rm -rf *
35031
35032
35033 test -z "`sort < /dev/null 2>&1`" || exit 77
35034
35035 mkdir a
35036 genfile --file a/b
35037
35038 tar cf arc a
35039
35040 echo \"separator\"
35041
35042 sleep 2
35043 touch a/b
35044
35045 tar ufv arc a
35046 echo \"separator\"
35047 tar tf arc | sort || exit 1
35048 )"
35049 echo update02.at:29 >"$at_check_line_file"
35050
35051 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
35052    false; }; then
35053   ( $at_traceon;
35054 mkdir gnu
35055 (cd gnu
35056 TEST_TAR_FORMAT=gnu
35057 export TEST_TAR_FORMAT
35058 TAR_OPTIONS="-H gnu"
35059 export TAR_OPTIONS
35060 rm -rf *
35061
35062
35063 test -z "`sort < /dev/null 2>&1`" || exit 77
35064
35065 mkdir a
35066 genfile --file a/b
35067
35068 tar cf arc a
35069
35070 echo "separator"
35071
35072 sleep 2
35073 touch a/b
35074
35075 tar ufv arc a
35076 echo "separator"
35077 tar tf arc | sort || exit 1
35078 ) ) >"$at_stdout" 2>"$at_stder1"
35079   at_func_filter_trace $?
35080 else
35081   ( :;
35082 mkdir gnu
35083 (cd gnu
35084 TEST_TAR_FORMAT=gnu
35085 export TEST_TAR_FORMAT
35086 TAR_OPTIONS="-H gnu"
35087 export TAR_OPTIONS
35088 rm -rf *
35089
35090
35091 test -z "`sort < /dev/null 2>&1`" || exit 77
35092
35093 mkdir a
35094 genfile --file a/b
35095
35096 tar cf arc a
35097
35098 echo "separator"
35099
35100 sleep 2
35101 touch a/b
35102
35103 tar ufv arc a
35104 echo "separator"
35105 tar tf arc | sort || exit 1
35106 ) ) >"$at_stdout" 2>"$at_stderr"
35107 fi
35108 at_status=$?
35109 at_failed=false
35110 at_func_diff_devnull "$at_stderr" || at_failed=:
35111 echo >>"$at_stdout"; $as_echo "separator
35112 a/b
35113 separator
35114 a/
35115 a/b
35116 a/b
35117 " | \
35118   $at_diff - "$at_stdout" || at_failed=:
35119 at_func_check_status 0 $at_status "$at_srcdir/update02.at:29"
35120
35121 $at_failed && at_func_log_failure
35122 $at_traceon; }
35123
35124
35125
35126
35127   $at_traceoff
35128   $at_times_p && times >"$at_times_file"
35129 ) 5>&1 2>&1 | eval $at_tee_pipe
35130 at_status=`cat "$at_status_file"`
35131 #AT_STOP_98
35132 #AT_START_99
35133 # 99. volume.at:23: volume
35134 at_setup_line='volume.at:23'
35135 at_desc="volume"
35136 $at_quiet $as_echo_n " 99: $at_desc                                         "
35137 at_xfail=no
35138       test -f $XFAILFILE && at_xfail=yes
35139 echo "#                             -*- compilation -*-" >> "$at_group_log"
35140 (
35141   $as_echo "99. volume.at:23: testing ..."
35142   $at_traceon
35143
35144
35145
35146
35147
35148   { $at_traceoff
35149 $as_echo "$at_srcdir/volume.at:26:
35150 mkdir gnu
35151 (cd gnu
35152 TEST_TAR_FORMAT=gnu
35153 export TEST_TAR_FORMAT
35154 TAR_OPTIONS=\"-H gnu\"
35155 export TAR_OPTIONS
35156 rm -rf *
35157
35158 tar -cf archive -V label -T /dev/null || exit 1
35159
35160 tar xfV archive label || exit 1
35161 tar xfV archive 'la?el' || exit 1
35162 tar xfV archive 'l*l' || exit 1
35163
35164 echo 1>&2 -----
35165 tar xfV archive lab
35166 test \$? = 2 || exit 1
35167 echo 1>&2 -----
35168 tar xfV archive bel
35169 test \$? = 2 || exit 1
35170 echo 1>&2 -----
35171 tar xfV archive babel
35172 test \$? = 2
35173 )"
35174 echo volume.at:26 >"$at_check_line_file"
35175
35176 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
35177    false; }; then
35178   ( $at_traceon;
35179 mkdir gnu
35180 (cd gnu
35181 TEST_TAR_FORMAT=gnu
35182 export TEST_TAR_FORMAT
35183 TAR_OPTIONS="-H gnu"
35184 export TAR_OPTIONS
35185 rm -rf *
35186
35187 tar -cf archive -V label -T /dev/null || exit 1
35188
35189 tar xfV archive label || exit 1
35190 tar xfV archive 'la?el' || exit 1
35191 tar xfV archive 'l*l' || exit 1
35192
35193 echo 1>&2 -----
35194 tar xfV archive lab
35195 test $? = 2 || exit 1
35196 echo 1>&2 -----
35197 tar xfV archive bel
35198 test $? = 2 || exit 1
35199 echo 1>&2 -----
35200 tar xfV archive babel
35201 test $? = 2
35202 ) ) >"$at_stdout" 2>"$at_stder1"
35203   at_func_filter_trace $?
35204 else
35205   ( :;
35206 mkdir gnu
35207 (cd gnu
35208 TEST_TAR_FORMAT=gnu
35209 export TEST_TAR_FORMAT
35210 TAR_OPTIONS="-H gnu"
35211 export TAR_OPTIONS
35212 rm -rf *
35213
35214 tar -cf archive -V label -T /dev/null || exit 1
35215
35216 tar xfV archive label || exit 1
35217 tar xfV archive 'la?el' || exit 1
35218 tar xfV archive 'l*l' || exit 1
35219
35220 echo 1>&2 -----
35221 tar xfV archive lab
35222 test $? = 2 || exit 1
35223 echo 1>&2 -----
35224 tar xfV archive bel
35225 test $? = 2 || exit 1
35226 echo 1>&2 -----
35227 tar xfV archive babel
35228 test $? = 2
35229 ) ) >"$at_stdout" 2>"$at_stderr"
35230 fi
35231 at_status=$?
35232 at_failed=false
35233 echo >>"$at_stderr"; $as_echo "-----
35234 tar: Volume \`label' does not match \`lab'
35235 tar: Error is not recoverable: exiting now
35236 -----
35237 tar: Volume \`label' does not match \`bel'
35238 tar: Error is not recoverable: exiting now
35239 -----
35240 tar: Volume \`label' does not match \`babel'
35241 tar: Error is not recoverable: exiting now
35242 " | \
35243   $at_diff - "$at_stderr" || at_failed=:
35244 at_func_diff_devnull "$at_stdout" || at_failed=:
35245 at_func_check_status 0 $at_status "$at_srcdir/volume.at:26"
35246
35247 $at_failed && at_func_log_failure
35248 $at_traceon; }
35249
35250               { $at_traceoff
35251 $as_echo "$at_srcdir/volume.at:26:
35252 mkdir oldgnu
35253 (cd oldgnu
35254 TEST_TAR_FORMAT=oldgnu
35255 export TEST_TAR_FORMAT
35256 TAR_OPTIONS=\"-H oldgnu\"
35257 export TAR_OPTIONS
35258 rm -rf *
35259
35260 tar -cf archive -V label -T /dev/null || exit 1
35261
35262 tar xfV archive label || exit 1
35263 tar xfV archive 'la?el' || exit 1
35264 tar xfV archive 'l*l' || exit 1
35265
35266 echo 1>&2 -----
35267 tar xfV archive lab
35268 test \$? = 2 || exit 1
35269 echo 1>&2 -----
35270 tar xfV archive bel
35271 test \$? = 2 || exit 1
35272 echo 1>&2 -----
35273 tar xfV archive babel
35274 test \$? = 2
35275 )"
35276 echo volume.at:26 >"$at_check_line_file"
35277
35278 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
35279    false; }; then
35280   ( $at_traceon;
35281 mkdir oldgnu
35282 (cd oldgnu
35283 TEST_TAR_FORMAT=oldgnu
35284 export TEST_TAR_FORMAT
35285 TAR_OPTIONS="-H oldgnu"
35286 export TAR_OPTIONS
35287 rm -rf *
35288
35289 tar -cf archive -V label -T /dev/null || exit 1
35290
35291 tar xfV archive label || exit 1
35292 tar xfV archive 'la?el' || exit 1
35293 tar xfV archive 'l*l' || exit 1
35294
35295 echo 1>&2 -----
35296 tar xfV archive lab
35297 test $? = 2 || exit 1
35298 echo 1>&2 -----
35299 tar xfV archive bel
35300 test $? = 2 || exit 1
35301 echo 1>&2 -----
35302 tar xfV archive babel
35303 test $? = 2
35304 ) ) >"$at_stdout" 2>"$at_stder1"
35305   at_func_filter_trace $?
35306 else
35307   ( :;
35308 mkdir oldgnu
35309 (cd oldgnu
35310 TEST_TAR_FORMAT=oldgnu
35311 export TEST_TAR_FORMAT
35312 TAR_OPTIONS="-H oldgnu"
35313 export TAR_OPTIONS
35314 rm -rf *
35315
35316 tar -cf archive -V label -T /dev/null || exit 1
35317
35318 tar xfV archive label || exit 1
35319 tar xfV archive 'la?el' || exit 1
35320 tar xfV archive 'l*l' || exit 1
35321
35322 echo 1>&2 -----
35323 tar xfV archive lab
35324 test $? = 2 || exit 1
35325 echo 1>&2 -----
35326 tar xfV archive bel
35327 test $? = 2 || exit 1
35328 echo 1>&2 -----
35329 tar xfV archive babel
35330 test $? = 2
35331 ) ) >"$at_stdout" 2>"$at_stderr"
35332 fi
35333 at_status=$?
35334 at_failed=false
35335 echo >>"$at_stderr"; $as_echo "-----
35336 tar: Volume \`label' does not match \`lab'
35337 tar: Error is not recoverable: exiting now
35338 -----
35339 tar: Volume \`label' does not match \`bel'
35340 tar: Error is not recoverable: exiting now
35341 -----
35342 tar: Volume \`label' does not match \`babel'
35343 tar: Error is not recoverable: exiting now
35344 " | \
35345   $at_diff - "$at_stderr" || at_failed=:
35346 at_func_diff_devnull "$at_stdout" || at_failed=:
35347 at_func_check_status 0 $at_status "$at_srcdir/volume.at:26"
35348
35349 $at_failed && at_func_log_failure
35350 $at_traceon; }
35351
35352
35353
35354
35355   $at_traceoff
35356   $at_times_p && times >"$at_times_file"
35357 ) 5>&1 2>&1 | eval $at_tee_pipe
35358 at_status=`cat "$at_status_file"`
35359 #AT_STOP_99
35360 #AT_START_100
35361 # 100. volsize.at:29: volume header size
35362 at_setup_line='volsize.at:29'
35363 at_desc="volume header size"
35364 $at_quiet $as_echo_n "100: $at_desc                             "
35365 at_xfail=no
35366       test -f $XFAILFILE && at_xfail=yes
35367 echo "#                             -*- compilation -*-" >> "$at_group_log"
35368 (
35369   $as_echo "100. volsize.at:29: testing ..."
35370   $at_traceon
35371
35372
35373
35374
35375
35376   { $at_traceoff
35377 $as_echo "$at_srcdir/volsize.at:32:
35378 mkdir v7
35379 (cd v7
35380 TEST_TAR_FORMAT=v7
35381 export TEST_TAR_FORMAT
35382 TAR_OPTIONS=\"-H v7\"
35383 export TAR_OPTIONS
35384 rm -rf *
35385
35386
35387 test -z "`sort < /dev/null 2>&1`" || exit 77
35388
35389
35390 test -z "$TEST_DATA_DIR" && exit 77
35391 tarball_prereq abc.tar 540f196ceddcad9e7bd2f2d7533d0474 $TEST_DATA_DIR $TEST_DATA_URL || exit 77
35392
35393 echo Short Listing
35394 tar tf \$TEST_DATA_DIR/abc.tar
35395 echo Verbose Listing
35396 tar --utc -tvf \$TEST_DATA_DIR/abc.tar
35397 echo Extracted directory
35398 tar xf \$TEST_DATA_DIR/abc.tar
35399 find abc|sort
35400 )"
35401 echo volsize.at:32 >"$at_check_line_file"
35402
35403 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
35404    false; }; then
35405   ( $at_traceon;
35406 mkdir v7
35407 (cd v7
35408 TEST_TAR_FORMAT=v7
35409 export TEST_TAR_FORMAT
35410 TAR_OPTIONS="-H v7"
35411 export TAR_OPTIONS
35412 rm -rf *
35413
35414
35415 test -z "`sort < /dev/null 2>&1`" || exit 77
35416
35417
35418 test -z "$TEST_DATA_DIR" && exit 77
35419 tarball_prereq abc.tar 540f196ceddcad9e7bd2f2d7533d0474 $TEST_DATA_DIR $TEST_DATA_URL || exit 77
35420
35421 echo Short Listing
35422 tar tf $TEST_DATA_DIR/abc.tar
35423 echo Verbose Listing
35424 tar --utc -tvf $TEST_DATA_DIR/abc.tar
35425 echo Extracted directory
35426 tar xf $TEST_DATA_DIR/abc.tar
35427 find abc|sort
35428 ) ) >"$at_stdout" 2>"$at_stder1"
35429   at_func_filter_trace $?
35430 else
35431   ( :;
35432 mkdir v7
35433 (cd v7
35434 TEST_TAR_FORMAT=v7
35435 export TEST_TAR_FORMAT
35436 TAR_OPTIONS="-H v7"
35437 export TAR_OPTIONS
35438 rm -rf *
35439
35440
35441 test -z "`sort < /dev/null 2>&1`" || exit 77
35442
35443
35444 test -z "$TEST_DATA_DIR" && exit 77
35445 tarball_prereq abc.tar 540f196ceddcad9e7bd2f2d7533d0474 $TEST_DATA_DIR $TEST_DATA_URL || exit 77
35446
35447 echo Short Listing
35448 tar tf $TEST_DATA_DIR/abc.tar
35449 echo Verbose Listing
35450 tar --utc -tvf $TEST_DATA_DIR/abc.tar
35451 echo Extracted directory
35452 tar xf $TEST_DATA_DIR/abc.tar
35453 find abc|sort
35454 ) ) >"$at_stdout" 2>"$at_stderr"
35455 fi
35456 at_status=$?
35457 at_failed=false
35458 at_func_diff_devnull "$at_stderr" || at_failed=:
35459 echo >>"$at_stdout"; $as_echo "Short Listing
35460 abc/not-a-file.gif
35461 abc/CCC
35462 Verbose Listing
35463 V--------- 0/0            1536 2006-05-08 22:07 abc/not-a-file.gif--Volume Header--
35464 -rw-r--r-- tom/users         0 2006-04-22 19:52 abc/CCC
35465 Extracted directory
35466 abc
35467 abc/CCC
35468 " | \
35469   $at_diff - "$at_stdout" || at_failed=:
35470 at_func_check_status 0 $at_status "$at_srcdir/volsize.at:32"
35471
35472 $at_failed && at_func_log_failure
35473 $at_traceon; }
35474
35475               { $at_traceoff
35476 $as_echo "$at_srcdir/volsize.at:32:
35477 mkdir oldgnu
35478 (cd oldgnu
35479 TEST_TAR_FORMAT=oldgnu
35480 export TEST_TAR_FORMAT
35481 TAR_OPTIONS=\"-H oldgnu\"
35482 export TAR_OPTIONS
35483 rm -rf *
35484
35485
35486 test -z "`sort < /dev/null 2>&1`" || exit 77
35487
35488
35489 test -z "$TEST_DATA_DIR" && exit 77
35490 tarball_prereq abc.tar 540f196ceddcad9e7bd2f2d7533d0474 $TEST_DATA_DIR $TEST_DATA_URL || exit 77
35491
35492 echo Short Listing
35493 tar tf \$TEST_DATA_DIR/abc.tar
35494 echo Verbose Listing
35495 tar --utc -tvf \$TEST_DATA_DIR/abc.tar
35496 echo Extracted directory
35497 tar xf \$TEST_DATA_DIR/abc.tar
35498 find abc|sort
35499 )"
35500 echo volsize.at:32 >"$at_check_line_file"
35501
35502 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
35503    false; }; then
35504   ( $at_traceon;
35505 mkdir oldgnu
35506 (cd oldgnu
35507 TEST_TAR_FORMAT=oldgnu
35508 export TEST_TAR_FORMAT
35509 TAR_OPTIONS="-H oldgnu"
35510 export TAR_OPTIONS
35511 rm -rf *
35512
35513
35514 test -z "`sort < /dev/null 2>&1`" || exit 77
35515
35516
35517 test -z "$TEST_DATA_DIR" && exit 77
35518 tarball_prereq abc.tar 540f196ceddcad9e7bd2f2d7533d0474 $TEST_DATA_DIR $TEST_DATA_URL || exit 77
35519
35520 echo Short Listing
35521 tar tf $TEST_DATA_DIR/abc.tar
35522 echo Verbose Listing
35523 tar --utc -tvf $TEST_DATA_DIR/abc.tar
35524 echo Extracted directory
35525 tar xf $TEST_DATA_DIR/abc.tar
35526 find abc|sort
35527 ) ) >"$at_stdout" 2>"$at_stder1"
35528   at_func_filter_trace $?
35529 else
35530   ( :;
35531 mkdir oldgnu
35532 (cd oldgnu
35533 TEST_TAR_FORMAT=oldgnu
35534 export TEST_TAR_FORMAT
35535 TAR_OPTIONS="-H oldgnu"
35536 export TAR_OPTIONS
35537 rm -rf *
35538
35539
35540 test -z "`sort < /dev/null 2>&1`" || exit 77
35541
35542
35543 test -z "$TEST_DATA_DIR" && exit 77
35544 tarball_prereq abc.tar 540f196ceddcad9e7bd2f2d7533d0474 $TEST_DATA_DIR $TEST_DATA_URL || exit 77
35545
35546 echo Short Listing
35547 tar tf $TEST_DATA_DIR/abc.tar
35548 echo Verbose Listing
35549 tar --utc -tvf $TEST_DATA_DIR/abc.tar
35550 echo Extracted directory
35551 tar xf $TEST_DATA_DIR/abc.tar
35552 find abc|sort
35553 ) ) >"$at_stdout" 2>"$at_stderr"
35554 fi
35555 at_status=$?
35556 at_failed=false
35557 at_func_diff_devnull "$at_stderr" || at_failed=:
35558 echo >>"$at_stdout"; $as_echo "Short Listing
35559 abc/not-a-file.gif
35560 abc/CCC
35561 Verbose Listing
35562 V--------- 0/0            1536 2006-05-08 22:07 abc/not-a-file.gif--Volume Header--
35563 -rw-r--r-- tom/users         0 2006-04-22 19:52 abc/CCC
35564 Extracted directory
35565 abc
35566 abc/CCC
35567 " | \
35568   $at_diff - "$at_stdout" || at_failed=:
35569 at_func_check_status 0 $at_status "$at_srcdir/volsize.at:32"
35570
35571 $at_failed && at_func_log_failure
35572 $at_traceon; }
35573
35574               { $at_traceoff
35575 $as_echo "$at_srcdir/volsize.at:32:
35576 mkdir ustar
35577 (cd ustar
35578 TEST_TAR_FORMAT=ustar
35579 export TEST_TAR_FORMAT
35580 TAR_OPTIONS=\"-H ustar\"
35581 export TAR_OPTIONS
35582 rm -rf *
35583
35584
35585 test -z "`sort < /dev/null 2>&1`" || exit 77
35586
35587
35588 test -z "$TEST_DATA_DIR" && exit 77
35589 tarball_prereq abc.tar 540f196ceddcad9e7bd2f2d7533d0474 $TEST_DATA_DIR $TEST_DATA_URL || exit 77
35590
35591 echo Short Listing
35592 tar tf \$TEST_DATA_DIR/abc.tar
35593 echo Verbose Listing
35594 tar --utc -tvf \$TEST_DATA_DIR/abc.tar
35595 echo Extracted directory
35596 tar xf \$TEST_DATA_DIR/abc.tar
35597 find abc|sort
35598 )"
35599 echo volsize.at:32 >"$at_check_line_file"
35600
35601 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
35602    false; }; then
35603   ( $at_traceon;
35604 mkdir ustar
35605 (cd ustar
35606 TEST_TAR_FORMAT=ustar
35607 export TEST_TAR_FORMAT
35608 TAR_OPTIONS="-H ustar"
35609 export TAR_OPTIONS
35610 rm -rf *
35611
35612
35613 test -z "`sort < /dev/null 2>&1`" || exit 77
35614
35615
35616 test -z "$TEST_DATA_DIR" && exit 77
35617 tarball_prereq abc.tar 540f196ceddcad9e7bd2f2d7533d0474 $TEST_DATA_DIR $TEST_DATA_URL || exit 77
35618
35619 echo Short Listing
35620 tar tf $TEST_DATA_DIR/abc.tar
35621 echo Verbose Listing
35622 tar --utc -tvf $TEST_DATA_DIR/abc.tar
35623 echo Extracted directory
35624 tar xf $TEST_DATA_DIR/abc.tar
35625 find abc|sort
35626 ) ) >"$at_stdout" 2>"$at_stder1"
35627   at_func_filter_trace $?
35628 else
35629   ( :;
35630 mkdir ustar
35631 (cd ustar
35632 TEST_TAR_FORMAT=ustar
35633 export TEST_TAR_FORMAT
35634 TAR_OPTIONS="-H ustar"
35635 export TAR_OPTIONS
35636 rm -rf *
35637
35638
35639 test -z "`sort < /dev/null 2>&1`" || exit 77
35640
35641
35642 test -z "$TEST_DATA_DIR" && exit 77
35643 tarball_prereq abc.tar 540f196ceddcad9e7bd2f2d7533d0474 $TEST_DATA_DIR $TEST_DATA_URL || exit 77
35644
35645 echo Short Listing
35646 tar tf $TEST_DATA_DIR/abc.tar
35647 echo Verbose Listing
35648 tar --utc -tvf $TEST_DATA_DIR/abc.tar
35649 echo Extracted directory
35650 tar xf $TEST_DATA_DIR/abc.tar
35651 find abc|sort
35652 ) ) >"$at_stdout" 2>"$at_stderr"
35653 fi
35654 at_status=$?
35655 at_failed=false
35656 at_func_diff_devnull "$at_stderr" || at_failed=:
35657 echo >>"$at_stdout"; $as_echo "Short Listing
35658 abc/not-a-file.gif
35659 abc/CCC
35660 Verbose Listing
35661 V--------- 0/0            1536 2006-05-08 22:07 abc/not-a-file.gif--Volume Header--
35662 -rw-r--r-- tom/users         0 2006-04-22 19:52 abc/CCC
35663 Extracted directory
35664 abc
35665 abc/CCC
35666 " | \
35667   $at_diff - "$at_stdout" || at_failed=:
35668 at_func_check_status 0 $at_status "$at_srcdir/volsize.at:32"
35669
35670 $at_failed && at_func_log_failure
35671 $at_traceon; }
35672
35673               { $at_traceoff
35674 $as_echo "$at_srcdir/volsize.at:32:
35675 mkdir posix
35676 (cd posix
35677 TEST_TAR_FORMAT=posix
35678 export TEST_TAR_FORMAT
35679 TAR_OPTIONS=\"-H posix\"
35680 export TAR_OPTIONS
35681 rm -rf *
35682
35683
35684 test -z "`sort < /dev/null 2>&1`" || exit 77
35685
35686
35687 test -z "$TEST_DATA_DIR" && exit 77
35688 tarball_prereq abc.tar 540f196ceddcad9e7bd2f2d7533d0474 $TEST_DATA_DIR $TEST_DATA_URL || exit 77
35689
35690 echo Short Listing
35691 tar tf \$TEST_DATA_DIR/abc.tar
35692 echo Verbose Listing
35693 tar --utc -tvf \$TEST_DATA_DIR/abc.tar
35694 echo Extracted directory
35695 tar xf \$TEST_DATA_DIR/abc.tar
35696 find abc|sort
35697 )"
35698 echo volsize.at:32 >"$at_check_line_file"
35699
35700 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
35701    false; }; then
35702   ( $at_traceon;
35703 mkdir posix
35704 (cd posix
35705 TEST_TAR_FORMAT=posix
35706 export TEST_TAR_FORMAT
35707 TAR_OPTIONS="-H posix"
35708 export TAR_OPTIONS
35709 rm -rf *
35710
35711
35712 test -z "`sort < /dev/null 2>&1`" || exit 77
35713
35714
35715 test -z "$TEST_DATA_DIR" && exit 77
35716 tarball_prereq abc.tar 540f196ceddcad9e7bd2f2d7533d0474 $TEST_DATA_DIR $TEST_DATA_URL || exit 77
35717
35718 echo Short Listing
35719 tar tf $TEST_DATA_DIR/abc.tar
35720 echo Verbose Listing
35721 tar --utc -tvf $TEST_DATA_DIR/abc.tar
35722 echo Extracted directory
35723 tar xf $TEST_DATA_DIR/abc.tar
35724 find abc|sort
35725 ) ) >"$at_stdout" 2>"$at_stder1"
35726   at_func_filter_trace $?
35727 else
35728   ( :;
35729 mkdir posix
35730 (cd posix
35731 TEST_TAR_FORMAT=posix
35732 export TEST_TAR_FORMAT
35733 TAR_OPTIONS="-H posix"
35734 export TAR_OPTIONS
35735 rm -rf *
35736
35737
35738 test -z "`sort < /dev/null 2>&1`" || exit 77
35739
35740
35741 test -z "$TEST_DATA_DIR" && exit 77
35742 tarball_prereq abc.tar 540f196ceddcad9e7bd2f2d7533d0474 $TEST_DATA_DIR $TEST_DATA_URL || exit 77
35743
35744 echo Short Listing
35745 tar tf $TEST_DATA_DIR/abc.tar
35746 echo Verbose Listing
35747 tar --utc -tvf $TEST_DATA_DIR/abc.tar
35748 echo Extracted directory
35749 tar xf $TEST_DATA_DIR/abc.tar
35750 find abc|sort
35751 ) ) >"$at_stdout" 2>"$at_stderr"
35752 fi
35753 at_status=$?
35754 at_failed=false
35755 at_func_diff_devnull "$at_stderr" || at_failed=:
35756 echo >>"$at_stdout"; $as_echo "Short Listing
35757 abc/not-a-file.gif
35758 abc/CCC
35759 Verbose Listing
35760 V--------- 0/0            1536 2006-05-08 22:07 abc/not-a-file.gif--Volume Header--
35761 -rw-r--r-- tom/users         0 2006-04-22 19:52 abc/CCC
35762 Extracted directory
35763 abc
35764 abc/CCC
35765 " | \
35766   $at_diff - "$at_stdout" || at_failed=:
35767 at_func_check_status 0 $at_status "$at_srcdir/volsize.at:32"
35768
35769 $at_failed && at_func_log_failure
35770 $at_traceon; }
35771
35772               { $at_traceoff
35773 $as_echo "$at_srcdir/volsize.at:32:
35774 mkdir gnu
35775 (cd gnu
35776 TEST_TAR_FORMAT=gnu
35777 export TEST_TAR_FORMAT
35778 TAR_OPTIONS=\"-H gnu\"
35779 export TAR_OPTIONS
35780 rm -rf *
35781
35782
35783 test -z "`sort < /dev/null 2>&1`" || exit 77
35784
35785
35786 test -z "$TEST_DATA_DIR" && exit 77
35787 tarball_prereq abc.tar 540f196ceddcad9e7bd2f2d7533d0474 $TEST_DATA_DIR $TEST_DATA_URL || exit 77
35788
35789 echo Short Listing
35790 tar tf \$TEST_DATA_DIR/abc.tar
35791 echo Verbose Listing
35792 tar --utc -tvf \$TEST_DATA_DIR/abc.tar
35793 echo Extracted directory
35794 tar xf \$TEST_DATA_DIR/abc.tar
35795 find abc|sort
35796 )"
35797 echo volsize.at:32 >"$at_check_line_file"
35798
35799 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
35800    false; }; then
35801   ( $at_traceon;
35802 mkdir gnu
35803 (cd gnu
35804 TEST_TAR_FORMAT=gnu
35805 export TEST_TAR_FORMAT
35806 TAR_OPTIONS="-H gnu"
35807 export TAR_OPTIONS
35808 rm -rf *
35809
35810
35811 test -z "`sort < /dev/null 2>&1`" || exit 77
35812
35813
35814 test -z "$TEST_DATA_DIR" && exit 77
35815 tarball_prereq abc.tar 540f196ceddcad9e7bd2f2d7533d0474 $TEST_DATA_DIR $TEST_DATA_URL || exit 77
35816
35817 echo Short Listing
35818 tar tf $TEST_DATA_DIR/abc.tar
35819 echo Verbose Listing
35820 tar --utc -tvf $TEST_DATA_DIR/abc.tar
35821 echo Extracted directory
35822 tar xf $TEST_DATA_DIR/abc.tar
35823 find abc|sort
35824 ) ) >"$at_stdout" 2>"$at_stder1"
35825   at_func_filter_trace $?
35826 else
35827   ( :;
35828 mkdir gnu
35829 (cd gnu
35830 TEST_TAR_FORMAT=gnu
35831 export TEST_TAR_FORMAT
35832 TAR_OPTIONS="-H gnu"
35833 export TAR_OPTIONS
35834 rm -rf *
35835
35836
35837 test -z "`sort < /dev/null 2>&1`" || exit 77
35838
35839
35840 test -z "$TEST_DATA_DIR" && exit 77
35841 tarball_prereq abc.tar 540f196ceddcad9e7bd2f2d7533d0474 $TEST_DATA_DIR $TEST_DATA_URL || exit 77
35842
35843 echo Short Listing
35844 tar tf $TEST_DATA_DIR/abc.tar
35845 echo Verbose Listing
35846 tar --utc -tvf $TEST_DATA_DIR/abc.tar
35847 echo Extracted directory
35848 tar xf $TEST_DATA_DIR/abc.tar
35849 find abc|sort
35850 ) ) >"$at_stdout" 2>"$at_stderr"
35851 fi
35852 at_status=$?
35853 at_failed=false
35854 at_func_diff_devnull "$at_stderr" || at_failed=:
35855 echo >>"$at_stdout"; $as_echo "Short Listing
35856 abc/not-a-file.gif
35857 abc/CCC
35858 Verbose Listing
35859 V--------- 0/0            1536 2006-05-08 22:07 abc/not-a-file.gif--Volume Header--
35860 -rw-r--r-- tom/users         0 2006-04-22 19:52 abc/CCC
35861 Extracted directory
35862 abc
35863 abc/CCC
35864 " | \
35865   $at_diff - "$at_stdout" || at_failed=:
35866 at_func_check_status 0 $at_status "$at_srcdir/volsize.at:32"
35867
35868 $at_failed && at_func_log_failure
35869 $at_traceon; }
35870
35871
35872
35873
35874   $at_traceoff
35875   $at_times_p && times >"$at_times_file"
35876 ) 5>&1 2>&1 | eval $at_tee_pipe
35877 at_status=`cat "$at_status_file"`
35878 #AT_STOP_100
35879 #AT_START_101
35880 # 101. comprec.at:21: compressed format recognition
35881 at_setup_line='comprec.at:21'
35882 at_desc="compressed format recognition"
35883 $at_quiet $as_echo_n "101: $at_desc                  "
35884 at_xfail=no
35885       test -f $XFAILFILE && at_xfail=yes
35886 echo "#                             -*- compilation -*-" >> "$at_group_log"
35887 (
35888   $as_echo "101. comprec.at:21: testing ..."
35889   $at_traceon
35890
35891
35892
35893
35894
35895
35896   { $at_traceoff
35897 $as_echo "$at_srcdir/comprec.at:25:
35898 mkdir v7
35899 (cd v7
35900 TEST_TAR_FORMAT=v7
35901 export TEST_TAR_FORMAT
35902 TAR_OPTIONS=\"-H v7\"
35903 export TAR_OPTIONS
35904 rm -rf *
35905
35906
35907 cat /dev/null | gzip - > /dev/null 2>&1 || exit 77
35908
35909 genfile --length 10240 --file file1
35910 echo \"separator\"
35911 tar cfz archive file1
35912 echo \"separator\"
35913 mv file1 orig
35914 tar xfv archive --warning=no-timestamp
35915 cmp orig file1
35916 )"
35917 echo comprec.at:25 >"$at_check_line_file"
35918
35919 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
35920    false; }; then
35921   ( $at_traceon;
35922 mkdir v7
35923 (cd v7
35924 TEST_TAR_FORMAT=v7
35925 export TEST_TAR_FORMAT
35926 TAR_OPTIONS="-H v7"
35927 export TAR_OPTIONS
35928 rm -rf *
35929
35930
35931 cat /dev/null | gzip - > /dev/null 2>&1 || exit 77
35932
35933 genfile --length 10240 --file file1
35934 echo "separator"
35935 tar cfz archive file1
35936 echo "separator"
35937 mv file1 orig
35938 tar xfv archive --warning=no-timestamp
35939 cmp orig file1
35940 ) ) >"$at_stdout" 2>"$at_stder1"
35941   at_func_filter_trace $?
35942 else
35943   ( :;
35944 mkdir v7
35945 (cd v7
35946 TEST_TAR_FORMAT=v7
35947 export TEST_TAR_FORMAT
35948 TAR_OPTIONS="-H v7"
35949 export TAR_OPTIONS
35950 rm -rf *
35951
35952
35953 cat /dev/null | gzip - > /dev/null 2>&1 || exit 77
35954
35955 genfile --length 10240 --file file1
35956 echo "separator"
35957 tar cfz archive file1
35958 echo "separator"
35959 mv file1 orig
35960 tar xfv archive --warning=no-timestamp
35961 cmp orig file1
35962 ) ) >"$at_stdout" 2>"$at_stderr"
35963 fi
35964 at_status=$?
35965 at_failed=false
35966 at_func_diff_devnull "$at_stderr" || at_failed=:
35967 echo >>"$at_stdout"; $as_echo "separator
35968 separator
35969 file1
35970 " | \
35971   $at_diff - "$at_stdout" || at_failed=:
35972 at_func_check_status 0 $at_status "$at_srcdir/comprec.at:25"
35973
35974 $at_failed && at_func_log_failure
35975 $at_traceon; }
35976
35977               { $at_traceoff
35978 $as_echo "$at_srcdir/comprec.at:25:
35979 mkdir oldgnu
35980 (cd oldgnu
35981 TEST_TAR_FORMAT=oldgnu
35982 export TEST_TAR_FORMAT
35983 TAR_OPTIONS=\"-H oldgnu\"
35984 export TAR_OPTIONS
35985 rm -rf *
35986
35987
35988 cat /dev/null | gzip - > /dev/null 2>&1 || exit 77
35989
35990 genfile --length 10240 --file file1
35991 echo \"separator\"
35992 tar cfz archive file1
35993 echo \"separator\"
35994 mv file1 orig
35995 tar xfv archive --warning=no-timestamp
35996 cmp orig file1
35997 )"
35998 echo comprec.at:25 >"$at_check_line_file"
35999
36000 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
36001    false; }; then
36002   ( $at_traceon;
36003 mkdir oldgnu
36004 (cd oldgnu
36005 TEST_TAR_FORMAT=oldgnu
36006 export TEST_TAR_FORMAT
36007 TAR_OPTIONS="-H oldgnu"
36008 export TAR_OPTIONS
36009 rm -rf *
36010
36011
36012 cat /dev/null | gzip - > /dev/null 2>&1 || exit 77
36013
36014 genfile --length 10240 --file file1
36015 echo "separator"
36016 tar cfz archive file1
36017 echo "separator"
36018 mv file1 orig
36019 tar xfv archive --warning=no-timestamp
36020 cmp orig file1
36021 ) ) >"$at_stdout" 2>"$at_stder1"
36022   at_func_filter_trace $?
36023 else
36024   ( :;
36025 mkdir oldgnu
36026 (cd oldgnu
36027 TEST_TAR_FORMAT=oldgnu
36028 export TEST_TAR_FORMAT
36029 TAR_OPTIONS="-H oldgnu"
36030 export TAR_OPTIONS
36031 rm -rf *
36032
36033
36034 cat /dev/null | gzip - > /dev/null 2>&1 || exit 77
36035
36036 genfile --length 10240 --file file1
36037 echo "separator"
36038 tar cfz archive file1
36039 echo "separator"
36040 mv file1 orig
36041 tar xfv archive --warning=no-timestamp
36042 cmp orig file1
36043 ) ) >"$at_stdout" 2>"$at_stderr"
36044 fi
36045 at_status=$?
36046 at_failed=false
36047 at_func_diff_devnull "$at_stderr" || at_failed=:
36048 echo >>"$at_stdout"; $as_echo "separator
36049 separator
36050 file1
36051 " | \
36052   $at_diff - "$at_stdout" || at_failed=:
36053 at_func_check_status 0 $at_status "$at_srcdir/comprec.at:25"
36054
36055 $at_failed && at_func_log_failure
36056 $at_traceon; }
36057
36058               { $at_traceoff
36059 $as_echo "$at_srcdir/comprec.at:25:
36060 mkdir ustar
36061 (cd ustar
36062 TEST_TAR_FORMAT=ustar
36063 export TEST_TAR_FORMAT
36064 TAR_OPTIONS=\"-H ustar\"
36065 export TAR_OPTIONS
36066 rm -rf *
36067
36068
36069 cat /dev/null | gzip - > /dev/null 2>&1 || exit 77
36070
36071 genfile --length 10240 --file file1
36072 echo \"separator\"
36073 tar cfz archive file1
36074 echo \"separator\"
36075 mv file1 orig
36076 tar xfv archive --warning=no-timestamp
36077 cmp orig file1
36078 )"
36079 echo comprec.at:25 >"$at_check_line_file"
36080
36081 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
36082    false; }; then
36083   ( $at_traceon;
36084 mkdir ustar
36085 (cd ustar
36086 TEST_TAR_FORMAT=ustar
36087 export TEST_TAR_FORMAT
36088 TAR_OPTIONS="-H ustar"
36089 export TAR_OPTIONS
36090 rm -rf *
36091
36092
36093 cat /dev/null | gzip - > /dev/null 2>&1 || exit 77
36094
36095 genfile --length 10240 --file file1
36096 echo "separator"
36097 tar cfz archive file1
36098 echo "separator"
36099 mv file1 orig
36100 tar xfv archive --warning=no-timestamp
36101 cmp orig file1
36102 ) ) >"$at_stdout" 2>"$at_stder1"
36103   at_func_filter_trace $?
36104 else
36105   ( :;
36106 mkdir ustar
36107 (cd ustar
36108 TEST_TAR_FORMAT=ustar
36109 export TEST_TAR_FORMAT
36110 TAR_OPTIONS="-H ustar"
36111 export TAR_OPTIONS
36112 rm -rf *
36113
36114
36115 cat /dev/null | gzip - > /dev/null 2>&1 || exit 77
36116
36117 genfile --length 10240 --file file1
36118 echo "separator"
36119 tar cfz archive file1
36120 echo "separator"
36121 mv file1 orig
36122 tar xfv archive --warning=no-timestamp
36123 cmp orig file1
36124 ) ) >"$at_stdout" 2>"$at_stderr"
36125 fi
36126 at_status=$?
36127 at_failed=false
36128 at_func_diff_devnull "$at_stderr" || at_failed=:
36129 echo >>"$at_stdout"; $as_echo "separator
36130 separator
36131 file1
36132 " | \
36133   $at_diff - "$at_stdout" || at_failed=:
36134 at_func_check_status 0 $at_status "$at_srcdir/comprec.at:25"
36135
36136 $at_failed && at_func_log_failure
36137 $at_traceon; }
36138
36139               { $at_traceoff
36140 $as_echo "$at_srcdir/comprec.at:25:
36141 mkdir posix
36142 (cd posix
36143 TEST_TAR_FORMAT=posix
36144 export TEST_TAR_FORMAT
36145 TAR_OPTIONS=\"-H posix\"
36146 export TAR_OPTIONS
36147 rm -rf *
36148
36149
36150 cat /dev/null | gzip - > /dev/null 2>&1 || exit 77
36151
36152 genfile --length 10240 --file file1
36153 echo \"separator\"
36154 tar cfz archive file1
36155 echo \"separator\"
36156 mv file1 orig
36157 tar xfv archive --warning=no-timestamp
36158 cmp orig file1
36159 )"
36160 echo comprec.at:25 >"$at_check_line_file"
36161
36162 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
36163    false; }; then
36164   ( $at_traceon;
36165 mkdir posix
36166 (cd posix
36167 TEST_TAR_FORMAT=posix
36168 export TEST_TAR_FORMAT
36169 TAR_OPTIONS="-H posix"
36170 export TAR_OPTIONS
36171 rm -rf *
36172
36173
36174 cat /dev/null | gzip - > /dev/null 2>&1 || exit 77
36175
36176 genfile --length 10240 --file file1
36177 echo "separator"
36178 tar cfz archive file1
36179 echo "separator"
36180 mv file1 orig
36181 tar xfv archive --warning=no-timestamp
36182 cmp orig file1
36183 ) ) >"$at_stdout" 2>"$at_stder1"
36184   at_func_filter_trace $?
36185 else
36186   ( :;
36187 mkdir posix
36188 (cd posix
36189 TEST_TAR_FORMAT=posix
36190 export TEST_TAR_FORMAT
36191 TAR_OPTIONS="-H posix"
36192 export TAR_OPTIONS
36193 rm -rf *
36194
36195
36196 cat /dev/null | gzip - > /dev/null 2>&1 || exit 77
36197
36198 genfile --length 10240 --file file1
36199 echo "separator"
36200 tar cfz archive file1
36201 echo "separator"
36202 mv file1 orig
36203 tar xfv archive --warning=no-timestamp
36204 cmp orig file1
36205 ) ) >"$at_stdout" 2>"$at_stderr"
36206 fi
36207 at_status=$?
36208 at_failed=false
36209 at_func_diff_devnull "$at_stderr" || at_failed=:
36210 echo >>"$at_stdout"; $as_echo "separator
36211 separator
36212 file1
36213 " | \
36214   $at_diff - "$at_stdout" || at_failed=:
36215 at_func_check_status 0 $at_status "$at_srcdir/comprec.at:25"
36216
36217 $at_failed && at_func_log_failure
36218 $at_traceon; }
36219
36220               { $at_traceoff
36221 $as_echo "$at_srcdir/comprec.at:25:
36222 mkdir gnu
36223 (cd gnu
36224 TEST_TAR_FORMAT=gnu
36225 export TEST_TAR_FORMAT
36226 TAR_OPTIONS=\"-H gnu\"
36227 export TAR_OPTIONS
36228 rm -rf *
36229
36230
36231 cat /dev/null | gzip - > /dev/null 2>&1 || exit 77
36232
36233 genfile --length 10240 --file file1
36234 echo \"separator\"
36235 tar cfz archive file1
36236 echo \"separator\"
36237 mv file1 orig
36238 tar xfv archive --warning=no-timestamp
36239 cmp orig file1
36240 )"
36241 echo comprec.at:25 >"$at_check_line_file"
36242
36243 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
36244    false; }; then
36245   ( $at_traceon;
36246 mkdir gnu
36247 (cd gnu
36248 TEST_TAR_FORMAT=gnu
36249 export TEST_TAR_FORMAT
36250 TAR_OPTIONS="-H gnu"
36251 export TAR_OPTIONS
36252 rm -rf *
36253
36254
36255 cat /dev/null | gzip - > /dev/null 2>&1 || exit 77
36256
36257 genfile --length 10240 --file file1
36258 echo "separator"
36259 tar cfz archive file1
36260 echo "separator"
36261 mv file1 orig
36262 tar xfv archive --warning=no-timestamp
36263 cmp orig file1
36264 ) ) >"$at_stdout" 2>"$at_stder1"
36265   at_func_filter_trace $?
36266 else
36267   ( :;
36268 mkdir gnu
36269 (cd gnu
36270 TEST_TAR_FORMAT=gnu
36271 export TEST_TAR_FORMAT
36272 TAR_OPTIONS="-H gnu"
36273 export TAR_OPTIONS
36274 rm -rf *
36275
36276
36277 cat /dev/null | gzip - > /dev/null 2>&1 || exit 77
36278
36279 genfile --length 10240 --file file1
36280 echo "separator"
36281 tar cfz archive file1
36282 echo "separator"
36283 mv file1 orig
36284 tar xfv archive --warning=no-timestamp
36285 cmp orig file1
36286 ) ) >"$at_stdout" 2>"$at_stderr"
36287 fi
36288 at_status=$?
36289 at_failed=false
36290 at_func_diff_devnull "$at_stderr" || at_failed=:
36291 echo >>"$at_stdout"; $as_echo "separator
36292 separator
36293 file1
36294 " | \
36295   $at_diff - "$at_stdout" || at_failed=:
36296 at_func_check_status 0 $at_status "$at_srcdir/comprec.at:25"
36297
36298 $at_failed && at_func_log_failure
36299 $at_traceon; }
36300
36301
36302
36303
36304   $at_traceoff
36305   $at_times_p && times >"$at_times_file"
36306 ) 5>&1 2>&1 | eval $at_tee_pipe
36307 at_status=`cat "$at_status_file"`
36308 #AT_STOP_101
36309 #AT_START_102
36310 # 102. shortfile.at:26: short input files
36311 at_setup_line='shortfile.at:26'
36312 at_desc="short input files"
36313 $at_quiet $as_echo_n "102: $at_desc                              "
36314 at_xfail=no
36315       test -f $XFAILFILE && at_xfail=yes
36316 echo "#                             -*- compilation -*-" >> "$at_group_log"
36317 (
36318   $as_echo "102. shortfile.at:26: testing ..."
36319   $at_traceon
36320
36321
36322
36323
36324
36325   { $at_traceoff
36326 $as_echo "$at_srcdir/shortfile.at:29:
36327 mkdir gnu
36328 (cd gnu
36329 TEST_TAR_FORMAT=gnu
36330 export TEST_TAR_FORMAT
36331 TAR_OPTIONS=\"-H gnu\"
36332 export TAR_OPTIONS
36333 rm -rf *
36334
36335 genfile --length 511 --file foo || exit 5
36336 tar tf foo
36337 )"
36338 echo shortfile.at:29 >"$at_check_line_file"
36339
36340 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
36341    false; }; then
36342   ( $at_traceon;
36343 mkdir gnu
36344 (cd gnu
36345 TEST_TAR_FORMAT=gnu
36346 export TEST_TAR_FORMAT
36347 TAR_OPTIONS="-H gnu"
36348 export TAR_OPTIONS
36349 rm -rf *
36350
36351 genfile --length 511 --file foo || exit 5
36352 tar tf foo
36353 ) ) >"$at_stdout" 2>"$at_stder1"
36354   at_func_filter_trace $?
36355 else
36356   ( :;
36357 mkdir gnu
36358 (cd gnu
36359 TEST_TAR_FORMAT=gnu
36360 export TEST_TAR_FORMAT
36361 TAR_OPTIONS="-H gnu"
36362 export TAR_OPTIONS
36363 rm -rf *
36364
36365 genfile --length 511 --file foo || exit 5
36366 tar tf foo
36367 ) ) >"$at_stdout" 2>"$at_stderr"
36368 fi
36369 at_status=$?
36370 at_failed=false
36371 echo >>"$at_stderr"; $as_echo "tar: This does not look like a tar archive
36372 tar: Exiting with failure status due to previous errors
36373 " | \
36374   $at_diff - "$at_stderr" || at_failed=:
36375 at_func_diff_devnull "$at_stdout" || at_failed=:
36376 at_func_check_status 2 $at_status "$at_srcdir/shortfile.at:29"
36377
36378 $at_failed && at_func_log_failure
36379 $at_traceon; }
36380
36381
36382
36383
36384   $at_traceoff
36385   $at_times_p && times >"$at_times_file"
36386 ) 5>&1 2>&1 | eval $at_tee_pipe
36387 at_status=`cat "$at_status_file"`
36388 #AT_STOP_102
36389 #AT_START_103
36390 # 103. shortupd.at:29: updating short archives
36391 at_setup_line='shortupd.at:29'
36392 at_desc="updating short archives"
36393 $at_quiet $as_echo_n "103: $at_desc                        "
36394 at_xfail=no
36395       test -f $XFAILFILE && at_xfail=yes
36396 echo "#                             -*- compilation -*-" >> "$at_group_log"
36397 (
36398   $as_echo "103. shortupd.at:29: testing ..."
36399   $at_traceon
36400
36401
36402
36403
36404
36405   { $at_traceoff
36406 $as_echo "$at_srcdir/shortupd.at:32:
36407 mkdir v7
36408 (cd v7
36409 TEST_TAR_FORMAT=v7
36410 export TEST_TAR_FORMAT
36411 TAR_OPTIONS=\"-H v7\"
36412 export TAR_OPTIONS
36413 rm -rf *
36414
36415 touch foo
36416 tar uf archive foo
36417 )"
36418 echo shortupd.at:32 >"$at_check_line_file"
36419
36420 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
36421    false; }; then
36422   ( $at_traceon;
36423 mkdir v7
36424 (cd v7
36425 TEST_TAR_FORMAT=v7
36426 export TEST_TAR_FORMAT
36427 TAR_OPTIONS="-H v7"
36428 export TAR_OPTIONS
36429 rm -rf *
36430
36431 touch foo
36432 tar uf archive foo
36433 ) ) >"$at_stdout" 2>"$at_stder1"
36434   at_func_filter_trace $?
36435 else
36436   ( :;
36437 mkdir v7
36438 (cd v7
36439 TEST_TAR_FORMAT=v7
36440 export TEST_TAR_FORMAT
36441 TAR_OPTIONS="-H v7"
36442 export TAR_OPTIONS
36443 rm -rf *
36444
36445 touch foo
36446 tar uf archive foo
36447 ) ) >"$at_stdout" 2>"$at_stderr"
36448 fi
36449 at_status=$?
36450 at_failed=false
36451 at_func_diff_devnull "$at_stderr" || at_failed=:
36452 at_func_diff_devnull "$at_stdout" || at_failed=:
36453 at_func_check_status 0 $at_status "$at_srcdir/shortupd.at:32"
36454
36455 $at_failed && at_func_log_failure
36456 $at_traceon; }
36457
36458               { $at_traceoff
36459 $as_echo "$at_srcdir/shortupd.at:32:
36460 mkdir oldgnu
36461 (cd oldgnu
36462 TEST_TAR_FORMAT=oldgnu
36463 export TEST_TAR_FORMAT
36464 TAR_OPTIONS=\"-H oldgnu\"
36465 export TAR_OPTIONS
36466 rm -rf *
36467
36468 touch foo
36469 tar uf archive foo
36470 )"
36471 echo shortupd.at:32 >"$at_check_line_file"
36472
36473 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
36474    false; }; then
36475   ( $at_traceon;
36476 mkdir oldgnu
36477 (cd oldgnu
36478 TEST_TAR_FORMAT=oldgnu
36479 export TEST_TAR_FORMAT
36480 TAR_OPTIONS="-H oldgnu"
36481 export TAR_OPTIONS
36482 rm -rf *
36483
36484 touch foo
36485 tar uf archive foo
36486 ) ) >"$at_stdout" 2>"$at_stder1"
36487   at_func_filter_trace $?
36488 else
36489   ( :;
36490 mkdir oldgnu
36491 (cd oldgnu
36492 TEST_TAR_FORMAT=oldgnu
36493 export TEST_TAR_FORMAT
36494 TAR_OPTIONS="-H oldgnu"
36495 export TAR_OPTIONS
36496 rm -rf *
36497
36498 touch foo
36499 tar uf archive foo
36500 ) ) >"$at_stdout" 2>"$at_stderr"
36501 fi
36502 at_status=$?
36503 at_failed=false
36504 at_func_diff_devnull "$at_stderr" || at_failed=:
36505 at_func_diff_devnull "$at_stdout" || at_failed=:
36506 at_func_check_status 0 $at_status "$at_srcdir/shortupd.at:32"
36507
36508 $at_failed && at_func_log_failure
36509 $at_traceon; }
36510
36511               { $at_traceoff
36512 $as_echo "$at_srcdir/shortupd.at:32:
36513 mkdir ustar
36514 (cd ustar
36515 TEST_TAR_FORMAT=ustar
36516 export TEST_TAR_FORMAT
36517 TAR_OPTIONS=\"-H ustar\"
36518 export TAR_OPTIONS
36519 rm -rf *
36520
36521 touch foo
36522 tar uf archive foo
36523 )"
36524 echo shortupd.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 touch foo
36538 tar uf archive foo
36539 ) ) >"$at_stdout" 2>"$at_stder1"
36540   at_func_filter_trace $?
36541 else
36542   ( :;
36543 mkdir ustar
36544 (cd ustar
36545 TEST_TAR_FORMAT=ustar
36546 export TEST_TAR_FORMAT
36547 TAR_OPTIONS="-H ustar"
36548 export TAR_OPTIONS
36549 rm -rf *
36550
36551 touch foo
36552 tar uf archive foo
36553 ) ) >"$at_stdout" 2>"$at_stderr"
36554 fi
36555 at_status=$?
36556 at_failed=false
36557 at_func_diff_devnull "$at_stderr" || at_failed=:
36558 at_func_diff_devnull "$at_stdout" || at_failed=:
36559 at_func_check_status 0 $at_status "$at_srcdir/shortupd.at:32"
36560
36561 $at_failed && at_func_log_failure
36562 $at_traceon; }
36563
36564               { $at_traceoff
36565 $as_echo "$at_srcdir/shortupd.at:32:
36566 mkdir posix
36567 (cd posix
36568 TEST_TAR_FORMAT=posix
36569 export TEST_TAR_FORMAT
36570 TAR_OPTIONS=\"-H posix\"
36571 export TAR_OPTIONS
36572 rm -rf *
36573
36574 touch foo
36575 tar uf archive foo
36576 )"
36577 echo shortupd.at:32 >"$at_check_line_file"
36578
36579 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
36580    false; }; then
36581   ( $at_traceon;
36582 mkdir posix
36583 (cd posix
36584 TEST_TAR_FORMAT=posix
36585 export TEST_TAR_FORMAT
36586 TAR_OPTIONS="-H posix"
36587 export TAR_OPTIONS
36588 rm -rf *
36589
36590 touch foo
36591 tar uf archive foo
36592 ) ) >"$at_stdout" 2>"$at_stder1"
36593   at_func_filter_trace $?
36594 else
36595   ( :;
36596 mkdir posix
36597 (cd posix
36598 TEST_TAR_FORMAT=posix
36599 export TEST_TAR_FORMAT
36600 TAR_OPTIONS="-H posix"
36601 export TAR_OPTIONS
36602 rm -rf *
36603
36604 touch foo
36605 tar uf archive foo
36606 ) ) >"$at_stdout" 2>"$at_stderr"
36607 fi
36608 at_status=$?
36609 at_failed=false
36610 at_func_diff_devnull "$at_stderr" || at_failed=:
36611 at_func_diff_devnull "$at_stdout" || at_failed=:
36612 at_func_check_status 0 $at_status "$at_srcdir/shortupd.at:32"
36613
36614 $at_failed && at_func_log_failure
36615 $at_traceon; }
36616
36617               { $at_traceoff
36618 $as_echo "$at_srcdir/shortupd.at:32:
36619 mkdir gnu
36620 (cd gnu
36621 TEST_TAR_FORMAT=gnu
36622 export TEST_TAR_FORMAT
36623 TAR_OPTIONS=\"-H gnu\"
36624 export TAR_OPTIONS
36625 rm -rf *
36626
36627 touch foo
36628 tar uf archive foo
36629 )"
36630 echo shortupd.at:32 >"$at_check_line_file"
36631
36632 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
36633    false; }; then
36634   ( $at_traceon;
36635 mkdir gnu
36636 (cd gnu
36637 TEST_TAR_FORMAT=gnu
36638 export TEST_TAR_FORMAT
36639 TAR_OPTIONS="-H gnu"
36640 export TAR_OPTIONS
36641 rm -rf *
36642
36643 touch foo
36644 tar uf archive foo
36645 ) ) >"$at_stdout" 2>"$at_stder1"
36646   at_func_filter_trace $?
36647 else
36648   ( :;
36649 mkdir gnu
36650 (cd gnu
36651 TEST_TAR_FORMAT=gnu
36652 export TEST_TAR_FORMAT
36653 TAR_OPTIONS="-H gnu"
36654 export TAR_OPTIONS
36655 rm -rf *
36656
36657 touch foo
36658 tar uf archive foo
36659 ) ) >"$at_stdout" 2>"$at_stderr"
36660 fi
36661 at_status=$?
36662 at_failed=false
36663 at_func_diff_devnull "$at_stderr" || at_failed=:
36664 at_func_diff_devnull "$at_stdout" || at_failed=:
36665 at_func_check_status 0 $at_status "$at_srcdir/shortupd.at:32"
36666
36667 $at_failed && at_func_log_failure
36668 $at_traceon; }
36669
36670
36671
36672
36673   $at_traceoff
36674   $at_times_p && times >"$at_times_file"
36675 ) 5>&1 2>&1 | eval $at_tee_pipe
36676 at_status=`cat "$at_status_file"`
36677 #AT_STOP_103
36678 #AT_START_104
36679 # 104. truncate.at:29: truncate
36680 at_setup_line='truncate.at:29'
36681 at_desc="truncate"
36682 $at_quiet $as_echo_n "104: $at_desc                                       "
36683 at_xfail=no
36684       test -f $XFAILFILE && at_xfail=yes
36685 echo "#                             -*- compilation -*-" >> "$at_group_log"
36686 (
36687   $as_echo "104. truncate.at:29: testing ..."
36688   $at_traceon
36689
36690
36691
36692
36693
36694   { $at_traceoff
36695 $as_echo "$at_srcdir/truncate.at:32:
36696 mkdir v7
36697 (cd v7
36698 TEST_TAR_FORMAT=v7
36699 export TEST_TAR_FORMAT
36700 TAR_OPTIONS=\"-H v7\"
36701 export TAR_OPTIONS
36702 rm -rf *
36703
36704 genfile --file foo --length 50000k
36705 genfile --file baz
36706 genfile --run --checkpoint 10 --length 49995k --truncate foo -- tar --checkpoint -vcf bar foo baz
36707 echo Exit status: \$?
36708 echo separator
36709 sleep 1
36710 genfile --file foo --seek 49995k --length 5k --pattern=zeros
36711 tar dvf bar)"
36712 echo truncate.at:32 >"$at_check_line_file"
36713
36714 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
36715    false; }; then
36716   ( $at_traceon;
36717 mkdir v7
36718 (cd v7
36719 TEST_TAR_FORMAT=v7
36720 export TEST_TAR_FORMAT
36721 TAR_OPTIONS="-H v7"
36722 export TAR_OPTIONS
36723 rm -rf *
36724
36725 genfile --file foo --length 50000k
36726 genfile --file baz
36727 genfile --run --checkpoint 10 --length 49995k --truncate foo -- tar --checkpoint -vcf bar foo baz
36728 echo Exit status: $?
36729 echo separator
36730 sleep 1
36731 genfile --file foo --seek 49995k --length 5k --pattern=zeros
36732 tar dvf bar) ) >"$at_stdout" 2>"$at_stder1"
36733   at_func_filter_trace $?
36734 else
36735   ( :;
36736 mkdir v7
36737 (cd v7
36738 TEST_TAR_FORMAT=v7
36739 export TEST_TAR_FORMAT
36740 TAR_OPTIONS="-H v7"
36741 export TAR_OPTIONS
36742 rm -rf *
36743
36744 genfile --file foo --length 50000k
36745 genfile --file baz
36746 genfile --run --checkpoint 10 --length 49995k --truncate foo -- tar --checkpoint -vcf bar foo baz
36747 echo Exit status: $?
36748 echo separator
36749 sleep 1
36750 genfile --file foo --seek 49995k --length 5k --pattern=zeros
36751 tar dvf bar) ) >"$at_stdout" 2>"$at_stderr"
36752 fi
36753 at_status=$?
36754 at_failed=false
36755 echo >>"$at_stderr"; $as_echo "tar: foo: File shrank by 5120 bytes; padding with zeros
36756 " | \
36757   $at_diff - "$at_stderr" || at_failed=:
36758 echo >>"$at_stdout"; $as_echo "foo
36759 baz
36760 Exit status: 1
36761 separator
36762 foo
36763 foo: Mod time differs
36764 baz
36765 " | \
36766   $at_diff - "$at_stdout" || at_failed=:
36767 at_func_check_status 1 $at_status "$at_srcdir/truncate.at:32"
36768
36769 $at_failed && at_func_log_failure
36770 $at_traceon; }
36771
36772               { $at_traceoff
36773 $as_echo "$at_srcdir/truncate.at:32:
36774 mkdir oldgnu
36775 (cd oldgnu
36776 TEST_TAR_FORMAT=oldgnu
36777 export TEST_TAR_FORMAT
36778 TAR_OPTIONS=\"-H oldgnu\"
36779 export TAR_OPTIONS
36780 rm -rf *
36781
36782 genfile --file foo --length 50000k
36783 genfile --file baz
36784 genfile --run --checkpoint 10 --length 49995k --truncate foo -- tar --checkpoint -vcf bar foo baz
36785 echo Exit status: \$?
36786 echo separator
36787 sleep 1
36788 genfile --file foo --seek 49995k --length 5k --pattern=zeros
36789 tar dvf bar)"
36790 echo truncate.at:32 >"$at_check_line_file"
36791
36792 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
36793    false; }; then
36794   ( $at_traceon;
36795 mkdir oldgnu
36796 (cd oldgnu
36797 TEST_TAR_FORMAT=oldgnu
36798 export TEST_TAR_FORMAT
36799 TAR_OPTIONS="-H oldgnu"
36800 export TAR_OPTIONS
36801 rm -rf *
36802
36803 genfile --file foo --length 50000k
36804 genfile --file baz
36805 genfile --run --checkpoint 10 --length 49995k --truncate foo -- tar --checkpoint -vcf bar foo baz
36806 echo Exit status: $?
36807 echo separator
36808 sleep 1
36809 genfile --file foo --seek 49995k --length 5k --pattern=zeros
36810 tar dvf bar) ) >"$at_stdout" 2>"$at_stder1"
36811   at_func_filter_trace $?
36812 else
36813   ( :;
36814 mkdir oldgnu
36815 (cd oldgnu
36816 TEST_TAR_FORMAT=oldgnu
36817 export TEST_TAR_FORMAT
36818 TAR_OPTIONS="-H oldgnu"
36819 export TAR_OPTIONS
36820 rm -rf *
36821
36822 genfile --file foo --length 50000k
36823 genfile --file baz
36824 genfile --run --checkpoint 10 --length 49995k --truncate foo -- tar --checkpoint -vcf bar foo baz
36825 echo Exit status: $?
36826 echo separator
36827 sleep 1
36828 genfile --file foo --seek 49995k --length 5k --pattern=zeros
36829 tar dvf bar) ) >"$at_stdout" 2>"$at_stderr"
36830 fi
36831 at_status=$?
36832 at_failed=false
36833 echo >>"$at_stderr"; $as_echo "tar: foo: File shrank by 5120 bytes; padding with zeros
36834 " | \
36835   $at_diff - "$at_stderr" || at_failed=:
36836 echo >>"$at_stdout"; $as_echo "foo
36837 baz
36838 Exit status: 1
36839 separator
36840 foo
36841 foo: Mod time differs
36842 baz
36843 " | \
36844   $at_diff - "$at_stdout" || at_failed=:
36845 at_func_check_status 1 $at_status "$at_srcdir/truncate.at:32"
36846
36847 $at_failed && at_func_log_failure
36848 $at_traceon; }
36849
36850               { $at_traceoff
36851 $as_echo "$at_srcdir/truncate.at:32:
36852 mkdir ustar
36853 (cd ustar
36854 TEST_TAR_FORMAT=ustar
36855 export TEST_TAR_FORMAT
36856 TAR_OPTIONS=\"-H ustar\"
36857 export TAR_OPTIONS
36858 rm -rf *
36859
36860 genfile --file foo --length 50000k
36861 genfile --file baz
36862 genfile --run --checkpoint 10 --length 49995k --truncate foo -- tar --checkpoint -vcf bar foo baz
36863 echo Exit status: \$?
36864 echo separator
36865 sleep 1
36866 genfile --file foo --seek 49995k --length 5k --pattern=zeros
36867 tar dvf bar)"
36868 echo truncate.at:32 >"$at_check_line_file"
36869
36870 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
36871    false; }; then
36872   ( $at_traceon;
36873 mkdir ustar
36874 (cd ustar
36875 TEST_TAR_FORMAT=ustar
36876 export TEST_TAR_FORMAT
36877 TAR_OPTIONS="-H ustar"
36878 export TAR_OPTIONS
36879 rm -rf *
36880
36881 genfile --file foo --length 50000k
36882 genfile --file baz
36883 genfile --run --checkpoint 10 --length 49995k --truncate foo -- tar --checkpoint -vcf bar foo baz
36884 echo Exit status: $?
36885 echo separator
36886 sleep 1
36887 genfile --file foo --seek 49995k --length 5k --pattern=zeros
36888 tar dvf bar) ) >"$at_stdout" 2>"$at_stder1"
36889   at_func_filter_trace $?
36890 else
36891   ( :;
36892 mkdir ustar
36893 (cd ustar
36894 TEST_TAR_FORMAT=ustar
36895 export TEST_TAR_FORMAT
36896 TAR_OPTIONS="-H ustar"
36897 export TAR_OPTIONS
36898 rm -rf *
36899
36900 genfile --file foo --length 50000k
36901 genfile --file baz
36902 genfile --run --checkpoint 10 --length 49995k --truncate foo -- tar --checkpoint -vcf bar foo baz
36903 echo Exit status: $?
36904 echo separator
36905 sleep 1
36906 genfile --file foo --seek 49995k --length 5k --pattern=zeros
36907 tar dvf bar) ) >"$at_stdout" 2>"$at_stderr"
36908 fi
36909 at_status=$?
36910 at_failed=false
36911 echo >>"$at_stderr"; $as_echo "tar: foo: File shrank by 5120 bytes; padding with zeros
36912 " | \
36913   $at_diff - "$at_stderr" || at_failed=:
36914 echo >>"$at_stdout"; $as_echo "foo
36915 baz
36916 Exit status: 1
36917 separator
36918 foo
36919 foo: Mod time differs
36920 baz
36921 " | \
36922   $at_diff - "$at_stdout" || at_failed=:
36923 at_func_check_status 1 $at_status "$at_srcdir/truncate.at:32"
36924
36925 $at_failed && at_func_log_failure
36926 $at_traceon; }
36927
36928               { $at_traceoff
36929 $as_echo "$at_srcdir/truncate.at:32:
36930 mkdir posix
36931 (cd posix
36932 TEST_TAR_FORMAT=posix
36933 export TEST_TAR_FORMAT
36934 TAR_OPTIONS=\"-H posix\"
36935 export TAR_OPTIONS
36936 rm -rf *
36937
36938 genfile --file foo --length 50000k
36939 genfile --file baz
36940 genfile --run --checkpoint 10 --length 49995k --truncate foo -- tar --checkpoint -vcf bar foo baz
36941 echo Exit status: \$?
36942 echo separator
36943 sleep 1
36944 genfile --file foo --seek 49995k --length 5k --pattern=zeros
36945 tar dvf bar)"
36946 echo truncate.at:32 >"$at_check_line_file"
36947
36948 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
36949    false; }; then
36950   ( $at_traceon;
36951 mkdir posix
36952 (cd posix
36953 TEST_TAR_FORMAT=posix
36954 export TEST_TAR_FORMAT
36955 TAR_OPTIONS="-H posix"
36956 export TAR_OPTIONS
36957 rm -rf *
36958
36959 genfile --file foo --length 50000k
36960 genfile --file baz
36961 genfile --run --checkpoint 10 --length 49995k --truncate foo -- tar --checkpoint -vcf bar foo baz
36962 echo Exit status: $?
36963 echo separator
36964 sleep 1
36965 genfile --file foo --seek 49995k --length 5k --pattern=zeros
36966 tar dvf bar) ) >"$at_stdout" 2>"$at_stder1"
36967   at_func_filter_trace $?
36968 else
36969   ( :;
36970 mkdir posix
36971 (cd posix
36972 TEST_TAR_FORMAT=posix
36973 export TEST_TAR_FORMAT
36974 TAR_OPTIONS="-H posix"
36975 export TAR_OPTIONS
36976 rm -rf *
36977
36978 genfile --file foo --length 50000k
36979 genfile --file baz
36980 genfile --run --checkpoint 10 --length 49995k --truncate foo -- tar --checkpoint -vcf bar foo baz
36981 echo Exit status: $?
36982 echo separator
36983 sleep 1
36984 genfile --file foo --seek 49995k --length 5k --pattern=zeros
36985 tar dvf bar) ) >"$at_stdout" 2>"$at_stderr"
36986 fi
36987 at_status=$?
36988 at_failed=false
36989 echo >>"$at_stderr"; $as_echo "tar: foo: File shrank by 5120 bytes; padding with zeros
36990 " | \
36991   $at_diff - "$at_stderr" || at_failed=:
36992 echo >>"$at_stdout"; $as_echo "foo
36993 baz
36994 Exit status: 1
36995 separator
36996 foo
36997 foo: Mod time differs
36998 baz
36999 " | \
37000   $at_diff - "$at_stdout" || at_failed=:
37001 at_func_check_status 1 $at_status "$at_srcdir/truncate.at:32"
37002
37003 $at_failed && at_func_log_failure
37004 $at_traceon; }
37005
37006               { $at_traceoff
37007 $as_echo "$at_srcdir/truncate.at:32:
37008 mkdir gnu
37009 (cd gnu
37010 TEST_TAR_FORMAT=gnu
37011 export TEST_TAR_FORMAT
37012 TAR_OPTIONS=\"-H gnu\"
37013 export TAR_OPTIONS
37014 rm -rf *
37015
37016 genfile --file foo --length 50000k
37017 genfile --file baz
37018 genfile --run --checkpoint 10 --length 49995k --truncate foo -- tar --checkpoint -vcf bar foo baz
37019 echo Exit status: \$?
37020 echo separator
37021 sleep 1
37022 genfile --file foo --seek 49995k --length 5k --pattern=zeros
37023 tar dvf bar)"
37024 echo truncate.at:32 >"$at_check_line_file"
37025
37026 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
37027    false; }; then
37028   ( $at_traceon;
37029 mkdir gnu
37030 (cd gnu
37031 TEST_TAR_FORMAT=gnu
37032 export TEST_TAR_FORMAT
37033 TAR_OPTIONS="-H gnu"
37034 export TAR_OPTIONS
37035 rm -rf *
37036
37037 genfile --file foo --length 50000k
37038 genfile --file baz
37039 genfile --run --checkpoint 10 --length 49995k --truncate foo -- tar --checkpoint -vcf bar foo baz
37040 echo Exit status: $?
37041 echo separator
37042 sleep 1
37043 genfile --file foo --seek 49995k --length 5k --pattern=zeros
37044 tar dvf bar) ) >"$at_stdout" 2>"$at_stder1"
37045   at_func_filter_trace $?
37046 else
37047   ( :;
37048 mkdir gnu
37049 (cd gnu
37050 TEST_TAR_FORMAT=gnu
37051 export TEST_TAR_FORMAT
37052 TAR_OPTIONS="-H gnu"
37053 export TAR_OPTIONS
37054 rm -rf *
37055
37056 genfile --file foo --length 50000k
37057 genfile --file baz
37058 genfile --run --checkpoint 10 --length 49995k --truncate foo -- tar --checkpoint -vcf bar foo baz
37059 echo Exit status: $?
37060 echo separator
37061 sleep 1
37062 genfile --file foo --seek 49995k --length 5k --pattern=zeros
37063 tar dvf bar) ) >"$at_stdout" 2>"$at_stderr"
37064 fi
37065 at_status=$?
37066 at_failed=false
37067 echo >>"$at_stderr"; $as_echo "tar: foo: File shrank by 5120 bytes; padding with zeros
37068 " | \
37069   $at_diff - "$at_stderr" || at_failed=:
37070 echo >>"$at_stdout"; $as_echo "foo
37071 baz
37072 Exit status: 1
37073 separator
37074 foo
37075 foo: Mod time differs
37076 baz
37077 " | \
37078   $at_diff - "$at_stdout" || at_failed=:
37079 at_func_check_status 1 $at_status "$at_srcdir/truncate.at:32"
37080
37081 $at_failed && at_func_log_failure
37082 $at_traceon; }
37083
37084
37085
37086
37087   $at_traceoff
37088   $at_times_p && times >"$at_times_file"
37089 ) 5>&1 2>&1 | eval $at_tee_pipe
37090 at_status=`cat "$at_status_file"`
37091 #AT_STOP_104
37092 #AT_START_105
37093 # 105. grow.at:24: grow
37094 at_setup_line='grow.at:24'
37095 at_desc="grow"
37096 $at_quiet $as_echo_n "105: $at_desc                                           "
37097 at_xfail=no
37098       test -f $XFAILFILE && at_xfail=yes
37099 echo "#                             -*- compilation -*-" >> "$at_group_log"
37100 (
37101   $as_echo "105. grow.at:24: testing ..."
37102   $at_traceon
37103
37104
37105
37106
37107
37108   { $at_traceoff
37109 $as_echo "$at_srcdir/grow.at:27:
37110 mkdir v7
37111 (cd v7
37112 TEST_TAR_FORMAT=v7
37113 export TEST_TAR_FORMAT
37114 TAR_OPTIONS=\"-H v7\"
37115 export TAR_OPTIONS
37116 rm -rf *
37117
37118 genfile --file foo --length 50000k
37119 genfile --file baz
37120 genfile --run --checkpoint 10 --length 1024 --append foo -- tar --checkpoint -vcf bar foo baz
37121 )"
37122 echo grow.at:27 >"$at_check_line_file"
37123
37124 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
37125    false; }; then
37126   ( $at_traceon;
37127 mkdir v7
37128 (cd v7
37129 TEST_TAR_FORMAT=v7
37130 export TEST_TAR_FORMAT
37131 TAR_OPTIONS="-H v7"
37132 export TAR_OPTIONS
37133 rm -rf *
37134
37135 genfile --file foo --length 50000k
37136 genfile --file baz
37137 genfile --run --checkpoint 10 --length 1024 --append foo -- tar --checkpoint -vcf bar foo baz
37138 ) ) >"$at_stdout" 2>"$at_stder1"
37139   at_func_filter_trace $?
37140 else
37141   ( :;
37142 mkdir v7
37143 (cd v7
37144 TEST_TAR_FORMAT=v7
37145 export TEST_TAR_FORMAT
37146 TAR_OPTIONS="-H v7"
37147 export TAR_OPTIONS
37148 rm -rf *
37149
37150 genfile --file foo --length 50000k
37151 genfile --file baz
37152 genfile --run --checkpoint 10 --length 1024 --append foo -- tar --checkpoint -vcf bar foo baz
37153 ) ) >"$at_stdout" 2>"$at_stderr"
37154 fi
37155 at_status=$?
37156 at_failed=false
37157 echo >>"$at_stderr"; $as_echo "tar: foo: file changed as we read it
37158 " | \
37159   $at_diff - "$at_stderr" || at_failed=:
37160 echo >>"$at_stdout"; $as_echo "foo
37161 baz
37162 " | \
37163   $at_diff - "$at_stdout" || at_failed=:
37164 at_func_check_status 1 $at_status "$at_srcdir/grow.at:27"
37165
37166 $at_failed && at_func_log_failure
37167 $at_traceon; }
37168
37169               { $at_traceoff
37170 $as_echo "$at_srcdir/grow.at:27:
37171 mkdir oldgnu
37172 (cd oldgnu
37173 TEST_TAR_FORMAT=oldgnu
37174 export TEST_TAR_FORMAT
37175 TAR_OPTIONS=\"-H oldgnu\"
37176 export TAR_OPTIONS
37177 rm -rf *
37178
37179 genfile --file foo --length 50000k
37180 genfile --file baz
37181 genfile --run --checkpoint 10 --length 1024 --append foo -- tar --checkpoint -vcf bar foo baz
37182 )"
37183 echo grow.at:27 >"$at_check_line_file"
37184
37185 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
37186    false; }; then
37187   ( $at_traceon;
37188 mkdir oldgnu
37189 (cd oldgnu
37190 TEST_TAR_FORMAT=oldgnu
37191 export TEST_TAR_FORMAT
37192 TAR_OPTIONS="-H oldgnu"
37193 export TAR_OPTIONS
37194 rm -rf *
37195
37196 genfile --file foo --length 50000k
37197 genfile --file baz
37198 genfile --run --checkpoint 10 --length 1024 --append foo -- tar --checkpoint -vcf bar foo baz
37199 ) ) >"$at_stdout" 2>"$at_stder1"
37200   at_func_filter_trace $?
37201 else
37202   ( :;
37203 mkdir oldgnu
37204 (cd oldgnu
37205 TEST_TAR_FORMAT=oldgnu
37206 export TEST_TAR_FORMAT
37207 TAR_OPTIONS="-H oldgnu"
37208 export TAR_OPTIONS
37209 rm -rf *
37210
37211 genfile --file foo --length 50000k
37212 genfile --file baz
37213 genfile --run --checkpoint 10 --length 1024 --append foo -- tar --checkpoint -vcf bar foo baz
37214 ) ) >"$at_stdout" 2>"$at_stderr"
37215 fi
37216 at_status=$?
37217 at_failed=false
37218 echo >>"$at_stderr"; $as_echo "tar: foo: file changed as we read it
37219 " | \
37220   $at_diff - "$at_stderr" || at_failed=:
37221 echo >>"$at_stdout"; $as_echo "foo
37222 baz
37223 " | \
37224   $at_diff - "$at_stdout" || at_failed=:
37225 at_func_check_status 1 $at_status "$at_srcdir/grow.at:27"
37226
37227 $at_failed && at_func_log_failure
37228 $at_traceon; }
37229
37230               { $at_traceoff
37231 $as_echo "$at_srcdir/grow.at:27:
37232 mkdir ustar
37233 (cd ustar
37234 TEST_TAR_FORMAT=ustar
37235 export TEST_TAR_FORMAT
37236 TAR_OPTIONS=\"-H ustar\"
37237 export TAR_OPTIONS
37238 rm -rf *
37239
37240 genfile --file foo --length 50000k
37241 genfile --file baz
37242 genfile --run --checkpoint 10 --length 1024 --append foo -- tar --checkpoint -vcf bar foo baz
37243 )"
37244 echo grow.at:27 >"$at_check_line_file"
37245
37246 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
37247    false; }; then
37248   ( $at_traceon;
37249 mkdir ustar
37250 (cd ustar
37251 TEST_TAR_FORMAT=ustar
37252 export TEST_TAR_FORMAT
37253 TAR_OPTIONS="-H ustar"
37254 export TAR_OPTIONS
37255 rm -rf *
37256
37257 genfile --file foo --length 50000k
37258 genfile --file baz
37259 genfile --run --checkpoint 10 --length 1024 --append foo -- tar --checkpoint -vcf bar foo baz
37260 ) ) >"$at_stdout" 2>"$at_stder1"
37261   at_func_filter_trace $?
37262 else
37263   ( :;
37264 mkdir ustar
37265 (cd ustar
37266 TEST_TAR_FORMAT=ustar
37267 export TEST_TAR_FORMAT
37268 TAR_OPTIONS="-H ustar"
37269 export TAR_OPTIONS
37270 rm -rf *
37271
37272 genfile --file foo --length 50000k
37273 genfile --file baz
37274 genfile --run --checkpoint 10 --length 1024 --append foo -- tar --checkpoint -vcf bar foo baz
37275 ) ) >"$at_stdout" 2>"$at_stderr"
37276 fi
37277 at_status=$?
37278 at_failed=false
37279 echo >>"$at_stderr"; $as_echo "tar: foo: file changed as we read it
37280 " | \
37281   $at_diff - "$at_stderr" || at_failed=:
37282 echo >>"$at_stdout"; $as_echo "foo
37283 baz
37284 " | \
37285   $at_diff - "$at_stdout" || at_failed=:
37286 at_func_check_status 1 $at_status "$at_srcdir/grow.at:27"
37287
37288 $at_failed && at_func_log_failure
37289 $at_traceon; }
37290
37291               { $at_traceoff
37292 $as_echo "$at_srcdir/grow.at:27:
37293 mkdir posix
37294 (cd posix
37295 TEST_TAR_FORMAT=posix
37296 export TEST_TAR_FORMAT
37297 TAR_OPTIONS=\"-H posix\"
37298 export TAR_OPTIONS
37299 rm -rf *
37300
37301 genfile --file foo --length 50000k
37302 genfile --file baz
37303 genfile --run --checkpoint 10 --length 1024 --append foo -- tar --checkpoint -vcf bar foo baz
37304 )"
37305 echo grow.at:27 >"$at_check_line_file"
37306
37307 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
37308    false; }; then
37309   ( $at_traceon;
37310 mkdir posix
37311 (cd posix
37312 TEST_TAR_FORMAT=posix
37313 export TEST_TAR_FORMAT
37314 TAR_OPTIONS="-H posix"
37315 export TAR_OPTIONS
37316 rm -rf *
37317
37318 genfile --file foo --length 50000k
37319 genfile --file baz
37320 genfile --run --checkpoint 10 --length 1024 --append foo -- tar --checkpoint -vcf bar foo baz
37321 ) ) >"$at_stdout" 2>"$at_stder1"
37322   at_func_filter_trace $?
37323 else
37324   ( :;
37325 mkdir posix
37326 (cd posix
37327 TEST_TAR_FORMAT=posix
37328 export TEST_TAR_FORMAT
37329 TAR_OPTIONS="-H posix"
37330 export TAR_OPTIONS
37331 rm -rf *
37332
37333 genfile --file foo --length 50000k
37334 genfile --file baz
37335 genfile --run --checkpoint 10 --length 1024 --append foo -- tar --checkpoint -vcf bar foo baz
37336 ) ) >"$at_stdout" 2>"$at_stderr"
37337 fi
37338 at_status=$?
37339 at_failed=false
37340 echo >>"$at_stderr"; $as_echo "tar: foo: file changed as we read it
37341 " | \
37342   $at_diff - "$at_stderr" || at_failed=:
37343 echo >>"$at_stdout"; $as_echo "foo
37344 baz
37345 " | \
37346   $at_diff - "$at_stdout" || at_failed=:
37347 at_func_check_status 1 $at_status "$at_srcdir/grow.at:27"
37348
37349 $at_failed && at_func_log_failure
37350 $at_traceon; }
37351
37352               { $at_traceoff
37353 $as_echo "$at_srcdir/grow.at:27:
37354 mkdir gnu
37355 (cd gnu
37356 TEST_TAR_FORMAT=gnu
37357 export TEST_TAR_FORMAT
37358 TAR_OPTIONS=\"-H gnu\"
37359 export TAR_OPTIONS
37360 rm -rf *
37361
37362 genfile --file foo --length 50000k
37363 genfile --file baz
37364 genfile --run --checkpoint 10 --length 1024 --append foo -- tar --checkpoint -vcf bar foo baz
37365 )"
37366 echo grow.at:27 >"$at_check_line_file"
37367
37368 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
37369    false; }; then
37370   ( $at_traceon;
37371 mkdir gnu
37372 (cd gnu
37373 TEST_TAR_FORMAT=gnu
37374 export TEST_TAR_FORMAT
37375 TAR_OPTIONS="-H gnu"
37376 export TAR_OPTIONS
37377 rm -rf *
37378
37379 genfile --file foo --length 50000k
37380 genfile --file baz
37381 genfile --run --checkpoint 10 --length 1024 --append foo -- tar --checkpoint -vcf bar foo baz
37382 ) ) >"$at_stdout" 2>"$at_stder1"
37383   at_func_filter_trace $?
37384 else
37385   ( :;
37386 mkdir gnu
37387 (cd gnu
37388 TEST_TAR_FORMAT=gnu
37389 export TEST_TAR_FORMAT
37390 TAR_OPTIONS="-H gnu"
37391 export TAR_OPTIONS
37392 rm -rf *
37393
37394 genfile --file foo --length 50000k
37395 genfile --file baz
37396 genfile --run --checkpoint 10 --length 1024 --append foo -- tar --checkpoint -vcf bar foo baz
37397 ) ) >"$at_stdout" 2>"$at_stderr"
37398 fi
37399 at_status=$?
37400 at_failed=false
37401 echo >>"$at_stderr"; $as_echo "tar: foo: file changed as we read it
37402 " | \
37403   $at_diff - "$at_stderr" || at_failed=:
37404 echo >>"$at_stdout"; $as_echo "foo
37405 baz
37406 " | \
37407   $at_diff - "$at_stdout" || at_failed=:
37408 at_func_check_status 1 $at_status "$at_srcdir/grow.at:27"
37409
37410 $at_failed && at_func_log_failure
37411 $at_traceon; }
37412
37413
37414
37415
37416   $at_traceoff
37417   $at_times_p && times >"$at_times_file"
37418 ) 5>&1 2>&1 | eval $at_tee_pipe
37419 at_status=`cat "$at_status_file"`
37420 #AT_STOP_105
37421 #AT_START_106
37422 # 106. remfiles01.at:28: remove-files with compression
37423 at_setup_line='remfiles01.at:28'
37424 at_desc="remove-files with compression"
37425 $at_quiet $as_echo_n "106: $at_desc                  "
37426 at_xfail=no
37427 echo "#                             -*- compilation -*-" >> "$at_group_log"
37428 (
37429   $as_echo "106. remfiles01.at:28: testing ..."
37430   $at_traceon
37431
37432
37433
37434 unset TAR_OPTIONS
37435 { $at_traceoff
37436 $as_echo "$at_srcdir/remfiles01.at:32:
37437
37438 echo "test" > $$
37439 chmod 0 $$
37440 cat $$ > /dev/null 2>&1
37441 result=$?
37442 rm -f $$
37443 test $result -eq 0 && exit 77
37444
37445
37446 cat /dev/null | gzip - > /dev/null 2>&1 || exit 77
37447
37448
37449 test -z "`sort < /dev/null 2>&1`" || exit 77
37450
37451
37452 mkdir dir
37453 cd dir
37454 genfile --file a --length 0
37455 chmod 0 a
37456 genfile --file b
37457 mkdir c
37458
37459 # Depending on when the SIGPIPE gets delivered, the invocation below
37460 # may finish with either
37461 #  tar: a: Cannot write: Broken pipe
37462 # or
37463 #  tar: Child returned status 2
37464
37465 tar -c -f a -z --remove-files b c 2>err
37466 EC=\$?
37467 sed -n '/(child)/p' err >&2
37468 rm err
37469 find . | sort
37470 # Gzip exit code is propagated to the shell. Usually it is
37471 # 141.  We convert all non-zero exits to 2 to make it predictable.
37472 test \$EC && exit 2
37473 "
37474 echo remfiles01.at:32 >"$at_check_line_file"
37475
37476 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
37477    false; }; then
37478   ( $at_traceon;
37479
37480 echo "test" > $$
37481 chmod 0 $$
37482 cat $$ > /dev/null 2>&1
37483 result=$?
37484 rm -f $$
37485 test $result -eq 0 && exit 77
37486
37487
37488 cat /dev/null | gzip - > /dev/null 2>&1 || exit 77
37489
37490
37491 test -z "`sort < /dev/null 2>&1`" || exit 77
37492
37493
37494 mkdir dir
37495 cd dir
37496 genfile --file a --length 0
37497 chmod 0 a
37498 genfile --file b
37499 mkdir c
37500
37501 # Depending on when the SIGPIPE gets delivered, the invocation below
37502 # may finish with either
37503 #  tar: a: Cannot write: Broken pipe
37504 # or
37505 #  tar: Child returned status 2
37506
37507 tar -c -f a -z --remove-files b c 2>err
37508 EC=$?
37509 sed -n '/(child)/p' err >&2
37510 rm err
37511 find . | sort
37512 # Gzip exit code is propagated to the shell. Usually it is
37513 # 141.  We convert all non-zero exits to 2 to make it predictable.
37514 test $EC && exit 2
37515  ) >"$at_stdout" 2>"$at_stder1"
37516   at_func_filter_trace $?
37517 else
37518   ( :;
37519
37520 echo "test" > $$
37521 chmod 0 $$
37522 cat $$ > /dev/null 2>&1
37523 result=$?
37524 rm -f $$
37525 test $result -eq 0 && exit 77
37526
37527
37528 cat /dev/null | gzip - > /dev/null 2>&1 || exit 77
37529
37530
37531 test -z "`sort < /dev/null 2>&1`" || exit 77
37532
37533
37534 mkdir dir
37535 cd dir
37536 genfile --file a --length 0
37537 chmod 0 a
37538 genfile --file b
37539 mkdir c
37540
37541 # Depending on when the SIGPIPE gets delivered, the invocation below
37542 # may finish with either
37543 #  tar: a: Cannot write: Broken pipe
37544 # or
37545 #  tar: Child returned status 2
37546
37547 tar -c -f a -z --remove-files b c 2>err
37548 EC=$?
37549 sed -n '/(child)/p' err >&2
37550 rm err
37551 find . | sort
37552 # Gzip exit code is propagated to the shell. Usually it is
37553 # 141.  We convert all non-zero exits to 2 to make it predictable.
37554 test $EC && exit 2
37555  ) >"$at_stdout" 2>"$at_stderr"
37556 fi
37557 at_status=$?
37558 at_failed=false
37559 echo >>"$at_stderr"; $as_echo "tar (child): a: Cannot open: Permission denied
37560 tar (child): Error is not recoverable: exiting now
37561 " | \
37562   $at_diff - "$at_stderr" || at_failed=:
37563 echo >>"$at_stdout"; $as_echo ".
37564 ./a
37565 ./b
37566 ./c
37567 " | \
37568   $at_diff - "$at_stdout" || at_failed=:
37569 at_func_check_status 2 $at_status "$at_srcdir/remfiles01.at:32"
37570
37571 $at_failed && at_func_log_failure
37572 $at_traceon; }
37573
37574
37575   $at_traceoff
37576   $at_times_p && times >"$at_times_file"
37577 ) 5>&1 2>&1 | eval $at_tee_pipe
37578 at_status=`cat "$at_status_file"`
37579 #AT_STOP_106
37580 #AT_START_107
37581 # 107. remfiles02.at:28: remove-files with compression: grand-child
37582 at_setup_line='remfiles02.at:28'
37583 at_desc="remove-files with compression: grand-child"
37584 $at_quiet $as_echo_n "107: $at_desc     "
37585 at_xfail=no
37586 echo "#                             -*- compilation -*-" >> "$at_group_log"
37587 (
37588   $as_echo "107. remfiles02.at:28: testing ..."
37589   $at_traceon
37590
37591
37592
37593 unset TAR_OPTIONS
37594 { $at_traceoff
37595 $as_echo "$at_srcdir/remfiles02.at:32:
37596
37597 cat /dev/null | gzip - > /dev/null 2>&1 || exit 77
37598
37599
37600 test -z "`sort < /dev/null 2>&1`" || exit 77
37601
37602
37603 mkdir dir
37604 cd dir
37605 mkdir a
37606 genfile --file b
37607 mkdir c
37608
37609 tar -c -f a -z --remove-files b c 2>err
37610 EC=\$?
37611 sed -n '/(child)/p' err >&2
37612 rm err
37613 find . | sort
37614 exit \$EC
37615 "
37616 echo remfiles02.at:32 >"$at_check_line_file"
37617
37618 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
37619    false; }; then
37620   ( $at_traceon;
37621
37622 cat /dev/null | gzip - > /dev/null 2>&1 || exit 77
37623
37624
37625 test -z "`sort < /dev/null 2>&1`" || exit 77
37626
37627
37628 mkdir dir
37629 cd dir
37630 mkdir a
37631 genfile --file b
37632 mkdir c
37633
37634 tar -c -f a -z --remove-files b c 2>err
37635 EC=$?
37636 sed -n '/(child)/p' err >&2
37637 rm err
37638 find . | sort
37639 exit $EC
37640  ) >"$at_stdout" 2>"$at_stder1"
37641   at_func_filter_trace $?
37642 else
37643   ( :;
37644
37645 cat /dev/null | gzip - > /dev/null 2>&1 || exit 77
37646
37647
37648 test -z "`sort < /dev/null 2>&1`" || exit 77
37649
37650
37651 mkdir dir
37652 cd dir
37653 mkdir a
37654 genfile --file b
37655 mkdir c
37656
37657 tar -c -f a -z --remove-files b c 2>err
37658 EC=$?
37659 sed -n '/(child)/p' err >&2
37660 rm err
37661 find . | sort
37662 exit $EC
37663  ) >"$at_stdout" 2>"$at_stderr"
37664 fi
37665 at_status=$?
37666 at_failed=false
37667 echo >>"$at_stderr"; $as_echo "tar (child): a: Cannot open: Is a directory
37668 tar (child): Error is not recoverable: exiting now
37669 " | \
37670   $at_diff - "$at_stderr" || at_failed=:
37671 echo >>"$at_stdout"; $as_echo ".
37672 ./a
37673 ./b
37674 ./c
37675 " | \
37676   $at_diff - "$at_stdout" || at_failed=:
37677 at_func_check_status 2 $at_status "$at_srcdir/remfiles02.at:32"
37678
37679 $at_failed && at_func_log_failure
37680 $at_traceon; }
37681
37682
37683   $at_traceoff
37684   $at_times_p && times >"$at_times_file"
37685 ) 5>&1 2>&1 | eval $at_tee_pipe
37686 at_status=`cat "$at_status_file"`
37687 #AT_STOP_107
37688 #AT_START_108
37689 # 108. remfiles03.at:28: remove-files with symbolic links
37690 at_setup_line='remfiles03.at:28'
37691 at_desc="remove-files with symbolic links"
37692 $at_quiet $as_echo_n "108: $at_desc               "
37693 at_xfail=no
37694 echo "#                             -*- compilation -*-" >> "$at_group_log"
37695 (
37696   $as_echo "108. remfiles03.at:28: testing ..."
37697   $at_traceon
37698
37699
37700
37701 { $at_traceoff
37702 $as_echo "$at_srcdir/remfiles03.at:31:
37703 mkdir a
37704 mkdir a/b
37705 ln -s b a/c || exit 77
37706 tar --remove-files -cf a.tar a
37707 genfile --stat a
37708 "
37709 echo remfiles03.at:31 >"$at_check_line_file"
37710
37711 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
37712    false; }; then
37713   ( $at_traceon;
37714 mkdir a
37715 mkdir a/b
37716 ln -s b a/c || exit 77
37717 tar --remove-files -cf a.tar a
37718 genfile --stat a
37719  ) >"$at_stdout" 2>"$at_stder1"
37720   at_func_filter_trace $?
37721 else
37722   ( :;
37723 mkdir a
37724 mkdir a/b
37725 ln -s b a/c || exit 77
37726 tar --remove-files -cf a.tar a
37727 genfile --stat a
37728  ) >"$at_stdout" 2>"$at_stderr"
37729 fi
37730 at_status=$?
37731 at_failed=false
37732 echo >>"$at_stderr"; $as_echo "genfile: stat(a) failed: No such file or directory
37733 " | \
37734   $at_diff - "$at_stderr" || at_failed=:
37735 at_func_diff_devnull "$at_stdout" || at_failed=:
37736 at_func_check_status 0 $at_status "$at_srcdir/remfiles03.at:31"
37737
37738 $at_failed && at_func_log_failure
37739 $at_traceon; }
37740
37741
37742   $at_traceoff
37743   $at_times_p && times >"$at_times_file"
37744 ) 5>&1 2>&1 | eval $at_tee_pipe
37745 at_status=`cat "$at_status_file"`
37746 #AT_STOP_108
37747 #AT_START_109
37748 # 109. sigpipe.at:19: sigpipe handling
37749 at_setup_line='sigpipe.at:19'
37750 at_desc="sigpipe handling"
37751 $at_quiet $as_echo_n "109: $at_desc                               "
37752 at_xfail=no
37753 echo "#                             -*- compilation -*-" >> "$at_group_log"
37754 (
37755   $as_echo "109. sigpipe.at:19: testing ..."
37756   $at_traceon
37757
37758
37759
37760 # Description: Tar 1.23 ignored sigpipe which lead to spurious "write
37761 # error" diagnostics when piping output to another programs.
37762 # Reported-by: "Dmitry V. Levin" <ldv@altlinux.org>
37763 # References: http://lists.gnu.org/archive/html/bug-tar/2010-03/msg00039.html
37764 #             <20100319184141.GC30047@wo.int.altlinux.org>
37765
37766 { $at_traceoff
37767 $as_echo "$at_srcdir/sigpipe.at:28:
37768 genfile --length 2048 --file first
37769 genfile --length 2048 --file second
37770 genfile --length 2049 --file third
37771
37772 tar cf archive first second third
37773
37774 tar tf archive | :
37775 "
37776 echo sigpipe.at:28 >"$at_check_line_file"
37777
37778 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
37779    false; }; then
37780   ( $at_traceon;
37781 genfile --length 2048 --file first
37782 genfile --length 2048 --file second
37783 genfile --length 2049 --file third
37784
37785 tar cf archive first second third
37786
37787 tar tf archive | :
37788  ) >"$at_stdout" 2>"$at_stder1"
37789   at_func_filter_trace $?
37790 else
37791   ( :;
37792 genfile --length 2048 --file first
37793 genfile --length 2048 --file second
37794 genfile --length 2049 --file third
37795
37796 tar cf archive first second third
37797
37798 tar tf archive | :
37799  ) >"$at_stdout" 2>"$at_stderr"
37800 fi
37801 at_status=$?
37802 at_failed=false
37803 at_func_diff_devnull "$at_stderr" || at_failed=:
37804 at_func_diff_devnull "$at_stdout" || at_failed=:
37805 at_func_check_status 0 $at_status "$at_srcdir/sigpipe.at:28"
37806
37807 $at_failed && at_func_log_failure
37808 $at_traceon; }
37809
37810
37811   $at_traceoff
37812   $at_times_p && times >"$at_times_file"
37813 ) 5>&1 2>&1 | eval $at_tee_pipe
37814 at_status=`cat "$at_status_file"`
37815 #AT_STOP_109
37816 #AT_START_110
37817 # 110. gtarfail.at:21: gtarfail
37818 at_setup_line='gtarfail.at:21'
37819 at_desc="gtarfail"
37820 $at_quiet $as_echo_n "110: $at_desc                                       "
37821 at_xfail=no
37822 echo "#                             -*- compilation -*-" >> "$at_group_log"
37823 (
37824   $as_echo "110. gtarfail.at:21: testing ..."
37825   $at_traceon
37826
37827
37828
37829 unset TAR_OPTIONS
37830
37831 { $at_traceoff
37832 $as_echo "$at_srcdir/gtarfail.at:26:
37833
37834 test -z "$STAR_TESTSCRIPTS" && exit 77
37835 tarball_prereq gtarfail.tar bf7612e401aaa679edbb07ae1183811b $STAR_TESTSCRIPTS $STAR_DATA_URL || exit 77
37836
37837
37838 tar --utc -tvf \$STAR_TESTSCRIPTS/gtarfail.tar
37839 "
37840 echo gtarfail.at:26 >"$at_check_line_file"
37841
37842 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
37843    false; }; then
37844   ( $at_traceon;
37845
37846 test -z "$STAR_TESTSCRIPTS" && exit 77
37847 tarball_prereq gtarfail.tar bf7612e401aaa679edbb07ae1183811b $STAR_TESTSCRIPTS $STAR_DATA_URL || exit 77
37848
37849
37850 tar --utc -tvf $STAR_TESTSCRIPTS/gtarfail.tar
37851  ) >"$at_stdout" 2>"$at_stder1"
37852   at_func_filter_trace $?
37853 else
37854   ( :;
37855
37856 test -z "$STAR_TESTSCRIPTS" && exit 77
37857 tarball_prereq gtarfail.tar bf7612e401aaa679edbb07ae1183811b $STAR_TESTSCRIPTS $STAR_DATA_URL || exit 77
37858
37859
37860 tar --utc -tvf $STAR_TESTSCRIPTS/gtarfail.tar
37861  ) >"$at_stdout" 2>"$at_stderr"
37862 fi
37863 at_status=$?
37864 at_failed=false
37865 at_func_diff_devnull "$at_stderr" || at_failed=:
37866 echo >>"$at_stdout"; $as_echo "-rw-r--r-- jes/glone       518 2001-05-25 14:41 vedpowered.gif
37867 -rw-r--r-- jes/glone      6825 1997-04-29 00:19 cd.gif
37868 -rw-r--r-- jes/glone     33354 1999-06-22 12:17 DSCN0049c.JPG
37869 -rw-r--r-- jes/glone     86159 2001-06-05 18:16 Window1.jpg
37870 -rw-r--r-- jes/glone      1310 2001-05-25 13:05 vipower.gif
37871 -rw-rw-rw- jes/glone    148753 1998-09-15 13:08 billyboy.jpg
37872 " | \
37873   $at_diff - "$at_stdout" || at_failed=:
37874 at_func_check_status 0 $at_status "$at_srcdir/gtarfail.at:26"
37875
37876 $at_failed && at_func_log_failure
37877 $at_traceon; }
37878
37879
37880   $at_traceoff
37881   $at_times_p && times >"$at_times_file"
37882 ) 5>&1 2>&1 | eval $at_tee_pipe
37883 at_status=`cat "$at_status_file"`
37884 #AT_STOP_110
37885 #AT_START_111
37886 # 111. gtarfail2.at:21: gtarfail2
37887 at_setup_line='gtarfail2.at:21'
37888 at_desc="gtarfail2"
37889 $at_quiet $as_echo_n "111: $at_desc                                      "
37890 at_xfail=no
37891 echo "#                             -*- compilation -*-" >> "$at_group_log"
37892 (
37893   $as_echo "111. gtarfail2.at:21: testing ..."
37894   $at_traceon
37895
37896
37897
37898 unset TAR_OPTIONS
37899
37900 { $at_traceoff
37901 $as_echo "$at_srcdir/gtarfail2.at:26:
37902
37903 test -z "$STAR_TESTSCRIPTS" && exit 77
37904 tarball_prereq gtarfail2.tar 6b607d1faec14b82f69525d9c5b66e53 $STAR_TESTSCRIPTS $STAR_DATA_URL || exit 77
37905
37906 tar --utc -tvf \$STAR_TESTSCRIPTS/gtarfail2.tar
37907 "
37908 echo gtarfail2.at:26 >"$at_check_line_file"
37909
37910 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
37911    false; }; then
37912   ( $at_traceon;
37913
37914 test -z "$STAR_TESTSCRIPTS" && exit 77
37915 tarball_prereq gtarfail2.tar 6b607d1faec14b82f69525d9c5b66e53 $STAR_TESTSCRIPTS $STAR_DATA_URL || exit 77
37916
37917 tar --utc -tvf $STAR_TESTSCRIPTS/gtarfail2.tar
37918  ) >"$at_stdout" 2>"$at_stder1"
37919   at_func_filter_trace $?
37920 else
37921   ( :;
37922
37923 test -z "$STAR_TESTSCRIPTS" && exit 77
37924 tarball_prereq gtarfail2.tar 6b607d1faec14b82f69525d9c5b66e53 $STAR_TESTSCRIPTS $STAR_DATA_URL || exit 77
37925
37926 tar --utc -tvf $STAR_TESTSCRIPTS/gtarfail2.tar
37927  ) >"$at_stdout" 2>"$at_stderr"
37928 fi
37929 at_status=$?
37930 at_failed=false
37931 at_func_diff_devnull "$at_stderr" || at_failed=:
37932 echo >>"$at_stdout"; $as_echo "-rwxr-xr-x jes/glone       214 2001-09-21 14:08 .clean
37933 lrwxrwxrwx jes/cats          0 1998-05-07 12:39 RULES -> makefiles/RULES
37934 drwxr-sr-x jes/glone         0 2001-12-10 00:00 build/
37935 -rw-r--r-- jes/glone    312019 2001-12-10 00:00 build/smake-1.2.tar.gz
37936 drwxr-sr-x jes/glone         0 2001-11-09 18:20 build/psmake/
37937 -rwxr-xr-x jes/glone       259 2000-01-09 16:36 build/psmake/MAKE
37938 -rwxr-xr-x jes/glone      4820 2001-02-25 22:45 build/psmake/MAKE.sh
37939 -rw-r--r-- jes/glone       647 2001-02-25 23:50 build/psmake/Makefile
37940 lrwxrwxrwx jes/glone         0 2001-08-29 10:53 build/psmake/archconf.c -> ../archconf.c
37941 lrwxrwxrwx jes/glone         0 2001-08-29 10:54 build/psmake/astoi.c -> ../../lib/astoi.c
37942 " | \
37943   $at_diff - "$at_stdout" || at_failed=:
37944 at_func_check_status 0 $at_status "$at_srcdir/gtarfail2.at:26"
37945
37946 $at_failed && at_func_log_failure
37947 $at_traceon; }
37948
37949
37950   $at_traceoff
37951   $at_times_p && times >"$at_times_file"
37952 ) 5>&1 2>&1 | eval $at_tee_pipe
37953 at_status=`cat "$at_status_file"`
37954 #AT_STOP_111
37955 #AT_START_112
37956 # 112. multi-fail.at:21: multi-fail
37957 at_setup_line='multi-fail.at:21'
37958 at_desc="multi-fail"
37959 $at_quiet $as_echo_n "112: $at_desc                                     "
37960 at_xfail=no
37961 echo "#                             -*- compilation -*-" >> "$at_group_log"
37962 (
37963   $as_echo "112. multi-fail.at:21: testing ..."
37964   $at_traceon
37965
37966
37967
37968 unset TAR_OPTIONS
37969
37970 { $at_traceoff
37971 $as_echo "$at_srcdir/multi-fail.at:26:
37972
37973 test -z "$STAR_TESTSCRIPTS" && exit 77
37974 tarball_prereq gnu-multi-fail-volume1.gtar 7c28663dd98b0bd91ceb4be7af55254e $STAR_TESTSCRIPTS $STAR_DATA_URL || exit 77
37975
37976
37977 test -z "$STAR_TESTSCRIPTS" && exit 77
37978 tarball_prereq gnu-multi-fail-volume2.gtar b5d41c4c3ec440687d4a44957b5079a8 $STAR_TESTSCRIPTS $STAR_DATA_URL || exit 77
37979
37980
37981 tar --utc -tvM -f \$STAR_TESTSCRIPTS/gnu-multi-fail-volume1.gtar \\
37982                -f \$STAR_TESTSCRIPTS/gnu-multi-fail-volume2.gtar <&-
37983 "
37984 echo multi-fail.at:26 >"$at_check_line_file"
37985
37986 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
37987    false; }; then
37988   ( $at_traceon;
37989
37990 test -z "$STAR_TESTSCRIPTS" && exit 77
37991 tarball_prereq gnu-multi-fail-volume1.gtar 7c28663dd98b0bd91ceb4be7af55254e $STAR_TESTSCRIPTS $STAR_DATA_URL || exit 77
37992
37993
37994 test -z "$STAR_TESTSCRIPTS" && exit 77
37995 tarball_prereq gnu-multi-fail-volume2.gtar b5d41c4c3ec440687d4a44957b5079a8 $STAR_TESTSCRIPTS $STAR_DATA_URL || exit 77
37996
37997
37998 tar --utc -tvM -f $STAR_TESTSCRIPTS/gnu-multi-fail-volume1.gtar \
37999                -f $STAR_TESTSCRIPTS/gnu-multi-fail-volume2.gtar <&-
38000  ) >"$at_stdout" 2>"$at_stder1"
38001   at_func_filter_trace $?
38002 else
38003   ( :;
38004
38005 test -z "$STAR_TESTSCRIPTS" && exit 77
38006 tarball_prereq gnu-multi-fail-volume1.gtar 7c28663dd98b0bd91ceb4be7af55254e $STAR_TESTSCRIPTS $STAR_DATA_URL || exit 77
38007
38008
38009 test -z "$STAR_TESTSCRIPTS" && exit 77
38010 tarball_prereq gnu-multi-fail-volume2.gtar b5d41c4c3ec440687d4a44957b5079a8 $STAR_TESTSCRIPTS $STAR_DATA_URL || exit 77
38011
38012
38013 tar --utc -tvM -f $STAR_TESTSCRIPTS/gnu-multi-fail-volume1.gtar \
38014                -f $STAR_TESTSCRIPTS/gnu-multi-fail-volume2.gtar <&-
38015  ) >"$at_stdout" 2>"$at_stderr"
38016 fi
38017 at_status=$?
38018 at_failed=false
38019 at_func_diff_devnull "$at_stderr" || at_failed=:
38020 echo >>"$at_stdout"; $as_echo "drwxrwsr-x joerg/bs          0 2003-10-11 14:32 OBJ/i386-sunos5-gcc/
38021 -rw-r--r-- joerg/bs          1 2003-10-11 14:32 OBJ/i386-sunos5-gcc/Dnull
38022 -rw-r--r-- joerg/bs       1743 2003-10-10 18:06 OBJ/i386-sunos5-gcc/star.d
38023 -rw-r--r-- joerg/bs       1460 2003-10-11 11:53 OBJ/i386-sunos5-gcc/header.d
38024 -rw-r--r-- joerg/bs       1540 2003-10-10 18:06 OBJ/i386-sunos5-gcc/cpiohdr.d
38025 -rw-r--r-- joerg/bs       2245 2003-10-10 18:06 OBJ/i386-sunos5-gcc/xheader.d
38026 -rw-r--r-- joerg/bs       1254 2003-10-10 18:06 OBJ/i386-sunos5-gcc/xattr.d
38027 -rw-r--r-- joerg/bs       1330 2003-10-10 18:06 OBJ/i386-sunos5-gcc/list.d
38028 -rw-r--r-- joerg/bs       1745 2003-10-10 18:06 OBJ/i386-sunos5-gcc/extract.d
38029 -rw-r--r-- joerg/bs       1518 2003-10-10 18:06 OBJ/i386-sunos5-gcc/create.d
38030 -rw-r--r-- joerg/bs       1235 2003-10-10 18:06 OBJ/i386-sunos5-gcc/append.d
38031 -rw-r--r-- joerg/bs       1368 2003-10-10 18:06 OBJ/i386-sunos5-gcc/diff.d
38032 -rw-r--r-- joerg/bs       1423 2003-10-10 18:06 OBJ/i386-sunos5-gcc/remove.d
38033 -rw-r--r-- joerg/bs       1493 2003-10-10 18:07 OBJ/i386-sunos5-gcc/star_unix.d
38034 -rw-r--r-- joerg/bs       1572 2003-10-10 18:07 OBJ/i386-sunos5-gcc/acl_unix.d
38035 -rw-r--r-- joerg/bs       1453 2003-10-10 18:07 OBJ/i386-sunos5-gcc/fflags.d
38036 -rw-r--r-- joerg/bs       2257 2003-10-11 14:32 OBJ/i386-sunos5-gcc/buffer.d
38037 -rw-r--r-- joerg/bs        969 2003-10-07 17:53 OBJ/i386-sunos5-gcc/dirtime.d
38038 -rw-r--r-- joerg/bs       1308 2003-10-10 18:07 OBJ/i386-sunos5-gcc/lhash.d
38039 -rw-r--r-- joerg/bs       1287 2003-10-10 18:07 OBJ/i386-sunos5-gcc/hole.d
38040 -rw-r--r-- joerg/bs       1105 2003-10-10 18:07 OBJ/i386-sunos5-gcc/longnames.d
38041 -rw-r--r-- joerg/bs       1230 2003-10-10 18:07 OBJ/i386-sunos5-gcc/names.d
38042 -rw-r--r-- joerg/bs       1091 2003-10-10 18:07 OBJ/i386-sunos5-gcc/movearch.d
38043 -rw-r--r-- joerg/bs        961 2003-10-07 17:53 OBJ/i386-sunos5-gcc/table.d
38044 -rw-r--r-- joerg/bs       1113 2003-10-10 18:07 OBJ/i386-sunos5-gcc/props.d
38045 -rw-r--r-- joerg/bs       2146 2003-10-10 18:07 OBJ/i386-sunos5-gcc/fetchdir.d
38046 -rw-r--r-- joerg/bs       1093 2003-10-10 18:07 OBJ/i386-sunos5-gcc/unicode.d
38047 -rw-r--r-- joerg/bs       1211 2003-10-10 18:07 OBJ/i386-sunos5-gcc/subst.d
38048 -rw-r--r-- joerg/bs       2076 2003-10-11 11:53 OBJ/i386-sunos5-gcc/volhdr.d
38049 -rw-r--r-- joerg/bs       1480 2003-10-10 18:07 OBJ/i386-sunos5-gcc/chdir.d
38050 -rw-r--r-- joerg/bs      42460 2003-10-10 18:07 OBJ/i386-sunos5-gcc/star.o
38051 -rw-r--r-- joerg/bs      22564 2003-10-11 11:53 OBJ/i386-sunos5-gcc/header.o
38052 -rw-r--r-- joerg/bs       7880 2003-10-10 18:07 OBJ/i386-sunos5-gcc/cpiohdr.o
38053 -rw-r--r-- joerg/bs      14624 2003-10-10 18:07 OBJ/i386-sunos5-gcc/xheader.o
38054 -rw-r--r-- joerg/bs        924 2003-10-10 18:07 OBJ/i386-sunos5-gcc/xattr.o
38055 -rw-r--r-- joerg/bs       6120 2003-10-10 18:07 OBJ/i386-sunos5-gcc/list.o
38056 -rw-r--r-- joerg/bs      12764 2003-10-10 18:07 OBJ/i386-sunos5-gcc/extract.o
38057 -rw-r--r-- joerg/bs      14668 2003-10-10 18:07 OBJ/i386-sunos5-gcc/create.o
38058 -rw-r--r-- joerg/bs       2576 2003-10-10 18:07 OBJ/i386-sunos5-gcc/append.o
38059 -rw-r--r-- joerg/bs       7636 2003-10-10 18:07 OBJ/i386-sunos5-gcc/diff.o
38060 -rw-r--r-- joerg/bs       3072 2003-10-10 18:07 OBJ/i386-sunos5-gcc/remove.o
38061 -rw-r--r-- joerg/bs       5612 2003-10-10 18:07 OBJ/i386-sunos5-gcc/star_unix.o
38062 -rw-r--r-- joerg/bs       6220 2003-10-10 18:07 OBJ/i386-sunos5-gcc/acl_unix.o
38063 -rw-r--r-- joerg/bs       1092 2003-10-10 18:07 OBJ/i386-sunos5-gcc/fflags.o
38064 -rw-r--r-- joerg/bs      20996 2003-10-11 14:32 OBJ/i386-sunos5-gcc/buffer.o
38065 -rw-r--r-- joerg/bs       2060 2003-10-07 17:53 OBJ/i386-sunos5-gcc/dirtime.o
38066 -rw-r--r-- joerg/bs       1664 2003-10-10 18:07 OBJ/i386-sunos5-gcc/lhash.o
38067 -rw-r--r-- joerg/bs      10564 2003-10-10 18:07 OBJ/i386-sunos5-gcc/hole.o
38068 -rw-r--r-- joerg/bs       3864 2003-10-10 18:07 OBJ/i386-sunos5-gcc/longnames.o
38069 -rw-r--r-- joerg/bs       2576 2003-10-10 18:07 OBJ/i386-sunos5-gcc/names.o
38070 -rw-r--r-- joerg/bs        952 2003-10-10 18:07 OBJ/i386-sunos5-gcc/movearch.o
38071 -rw-r--r-- joerg/bs       2756 2003-10-07 17:53 OBJ/i386-sunos5-gcc/table.o
38072 " | \
38073   $at_diff - "$at_stdout" || at_failed=:
38074 at_func_check_status 0 $at_status "$at_srcdir/multi-fail.at:26"
38075
38076 $at_failed && at_func_log_failure
38077 $at_traceon; }
38078
38079
38080   $at_traceoff
38081   $at_times_p && times >"$at_times_file"
38082 ) 5>&1 2>&1 | eval $at_tee_pipe
38083 at_status=`cat "$at_status_file"`
38084 #AT_STOP_112
38085 #AT_START_113
38086 # 113. ustar-big-2g.at:21: ustar-big-2g
38087 at_setup_line='ustar-big-2g.at:21'
38088 at_desc="ustar-big-2g"
38089 $at_quiet $as_echo_n "113: $at_desc                                   "
38090 at_xfail=no
38091 echo "#                             -*- compilation -*-" >> "$at_group_log"
38092 (
38093   $as_echo "113. ustar-big-2g.at:21: testing ..."
38094   $at_traceon
38095
38096
38097
38098 unset TAR_OPTIONS
38099
38100 { $at_traceoff
38101 $as_echo "$at_srcdir/ustar-big-2g.at:26:
38102
38103 cat /dev/null | bzip2 - > /dev/null 2>&1 || exit 77
38104
38105
38106 test -z "$STAR_TESTSCRIPTS" && exit 77
38107 tarball_prereq ustar-big-2g.tar.bz2 b63979733629c8fcdf40b60065422767 $STAR_TESTSCRIPTS $STAR_DATA_URL || exit 77
38108
38109
38110 tar --utc -tvjf \$STAR_TESTSCRIPTS/ustar-big-2g.tar.bz2
38111 "
38112 echo ustar-big-2g.at:26 >"$at_check_line_file"
38113
38114 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
38115    false; }; then
38116   ( $at_traceon;
38117
38118 cat /dev/null | bzip2 - > /dev/null 2>&1 || exit 77
38119
38120
38121 test -z "$STAR_TESTSCRIPTS" && exit 77
38122 tarball_prereq ustar-big-2g.tar.bz2 b63979733629c8fcdf40b60065422767 $STAR_TESTSCRIPTS $STAR_DATA_URL || exit 77
38123
38124
38125 tar --utc -tvjf $STAR_TESTSCRIPTS/ustar-big-2g.tar.bz2
38126  ) >"$at_stdout" 2>"$at_stder1"
38127   at_func_filter_trace $?
38128 else
38129   ( :;
38130
38131 cat /dev/null | bzip2 - > /dev/null 2>&1 || exit 77
38132
38133
38134 test -z "$STAR_TESTSCRIPTS" && exit 77
38135 tarball_prereq ustar-big-2g.tar.bz2 b63979733629c8fcdf40b60065422767 $STAR_TESTSCRIPTS $STAR_DATA_URL || exit 77
38136
38137
38138 tar --utc -tvjf $STAR_TESTSCRIPTS/ustar-big-2g.tar.bz2
38139  ) >"$at_stdout" 2>"$at_stderr"
38140 fi
38141 at_status=$?
38142 at_failed=false
38143 echo stderr:; tee stderr <"$at_stderr"
38144 echo >>"$at_stdout"; $as_echo "-rw------- jes/glone 2147483647 2002-06-15 14:53 big
38145 -rw-r--r-- jes/glone          0 2002-06-15 14:53 file
38146 " | \
38147   $at_diff - "$at_stdout" || at_failed=:
38148 at_func_check_status 0 $at_status "$at_srcdir/ustar-big-2g.at:26"
38149
38150 $at_failed && at_func_log_failure
38151 $at_traceon; }
38152
38153
38154
38155 cat >stderr.re <<'_ATEOF'
38156 tar: Record size = .*
38157 _ATEOF
38158
38159 awk '{print NR " " $0}' stderr > $$.1
38160 awk '{print NR " " $0}' stderr.re | join - $$.1 |
38161 while read NUM RE LINE
38162 do
38163   echo "$LINE" | grep -- "$RE" >/dev/null || exit 1
38164 done
38165
38166
38167   $at_traceoff
38168   $at_times_p && times >"$at_times_file"
38169 ) 5>&1 2>&1 | eval $at_tee_pipe
38170 at_status=`cat "$at_status_file"`
38171 #AT_STOP_113
38172 #AT_START_114
38173 # 114. ustar-big-8g.at:21: ustar-big-8g
38174 at_setup_line='ustar-big-8g.at:21'
38175 at_desc="ustar-big-8g"
38176 $at_quiet $as_echo_n "114: $at_desc                                   "
38177 at_xfail=no
38178 echo "#                             -*- compilation -*-" >> "$at_group_log"
38179 (
38180   $as_echo "114. ustar-big-8g.at:21: testing ..."
38181   $at_traceon
38182
38183
38184
38185 unset TAR_OPTIONS
38186
38187 { $at_traceoff
38188 $as_echo "$at_srcdir/ustar-big-8g.at:26:
38189
38190 cat /dev/null | bzip2 - > /dev/null 2>&1 || exit 77
38191
38192
38193 test -z "$STAR_TESTSCRIPTS" && exit 77
38194 tarball_prereq ustar-big-8g.tar.bz2 60ff503fa4b8288bef7ada89e9c91b0f $STAR_TESTSCRIPTS $STAR_DATA_URL || exit 77
38195
38196
38197 tar --utc -tvjf \$STAR_TESTSCRIPTS/ustar-big-8g.tar.bz2
38198 "
38199 echo ustar-big-8g.at:26 >"$at_check_line_file"
38200
38201 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
38202    false; }; then
38203   ( $at_traceon;
38204
38205 cat /dev/null | bzip2 - > /dev/null 2>&1 || exit 77
38206
38207
38208 test -z "$STAR_TESTSCRIPTS" && exit 77
38209 tarball_prereq ustar-big-8g.tar.bz2 60ff503fa4b8288bef7ada89e9c91b0f $STAR_TESTSCRIPTS $STAR_DATA_URL || exit 77
38210
38211
38212 tar --utc -tvjf $STAR_TESTSCRIPTS/ustar-big-8g.tar.bz2
38213  ) >"$at_stdout" 2>"$at_stder1"
38214   at_func_filter_trace $?
38215 else
38216   ( :;
38217
38218 cat /dev/null | bzip2 - > /dev/null 2>&1 || exit 77
38219
38220
38221 test -z "$STAR_TESTSCRIPTS" && exit 77
38222 tarball_prereq ustar-big-8g.tar.bz2 60ff503fa4b8288bef7ada89e9c91b0f $STAR_TESTSCRIPTS $STAR_DATA_URL || exit 77
38223
38224
38225 tar --utc -tvjf $STAR_TESTSCRIPTS/ustar-big-8g.tar.bz2
38226  ) >"$at_stdout" 2>"$at_stderr"
38227 fi
38228 at_status=$?
38229 at_failed=false
38230 echo stderr:; tee stderr <"$at_stderr"
38231 echo >>"$at_stdout"; $as_echo "-rw------- jes/glone 8589934591 2002-06-15 15:08 8gb-1
38232 -rw-r--r-- jes/glone          0 2002-06-15 14:53 file
38233 " | \
38234   $at_diff - "$at_stdout" || at_failed=:
38235 at_func_check_status 0 $at_status "$at_srcdir/ustar-big-8g.at:26"
38236
38237 $at_failed && at_func_log_failure
38238 $at_traceon; }
38239
38240
38241
38242 cat >stderr.re <<'_ATEOF'
38243 tar: Record size = .*
38244 _ATEOF
38245
38246 awk '{print NR " " $0}' stderr > $$.1
38247 awk '{print NR " " $0}' stderr.re | join - $$.1 |
38248 while read NUM RE LINE
38249 do
38250   echo "$LINE" | grep -- "$RE" >/dev/null || exit 1
38251 done
38252
38253
38254   $at_traceoff
38255   $at_times_p && times >"$at_times_file"
38256 ) 5>&1 2>&1 | eval $at_tee_pipe
38257 at_status=`cat "$at_status_file"`
38258 #AT_STOP_114
38259 #AT_START_115
38260 # 115. pax-big-10g.at:21: pax-big-10g
38261 at_setup_line='pax-big-10g.at:21'
38262 at_desc="pax-big-10g"
38263 $at_quiet $as_echo_n "115: $at_desc                                    "
38264 at_xfail=no
38265 echo "#                             -*- compilation -*-" >> "$at_group_log"
38266 (
38267   $as_echo "115. pax-big-10g.at:21: testing ..."
38268   $at_traceon
38269
38270
38271
38272 unset TAR_OPTIONS
38273
38274 { $at_traceoff
38275 $as_echo "$at_srcdir/pax-big-10g.at:26:
38276
38277 cat /dev/null | bzip2 - > /dev/null 2>&1 || exit 77
38278
38279
38280 test -z "$STAR_TESTSCRIPTS" && exit 77
38281 tarball_prereq pax-big-10g.tar.bz2 ca15c23acc8d8bb1f27e60113a5f8bff $STAR_TESTSCRIPTS $STAR_DATA_URL || exit 77
38282
38283
38284 tar --utc -tvjf \$STAR_TESTSCRIPTS/pax-big-10g.tar.bz2
38285 "
38286 echo pax-big-10g.at:26 >"$at_check_line_file"
38287
38288 if { echo 'Not enabling shell tracing (command contains an embedded newline)'
38289    false; }; then
38290   ( $at_traceon;
38291
38292 cat /dev/null | bzip2 - > /dev/null 2>&1 || exit 77
38293
38294
38295 test -z "$STAR_TESTSCRIPTS" && exit 77
38296 tarball_prereq pax-big-10g.tar.bz2 ca15c23acc8d8bb1f27e60113a5f8bff $STAR_TESTSCRIPTS $STAR_DATA_URL || exit 77
38297
38298
38299 tar --utc -tvjf $STAR_TESTSCRIPTS/pax-big-10g.tar.bz2
38300  ) >"$at_stdout" 2>"$at_stder1"
38301   at_func_filter_trace $?
38302 else
38303   ( :;
38304
38305 cat /dev/null | bzip2 - > /dev/null 2>&1 || exit 77
38306
38307
38308 test -z "$STAR_TESTSCRIPTS" && exit 77
38309 tarball_prereq pax-big-10g.tar.bz2 ca15c23acc8d8bb1f27e60113a5f8bff $STAR_TESTSCRIPTS $STAR_DATA_URL || exit 77
38310
38311
38312 tar --utc -tvjf $STAR_TESTSCRIPTS/pax-big-10g.tar.bz2
38313  ) >"$at_stdout" 2>"$at_stderr"
38314 fi
38315 at_status=$?
38316 at_failed=false
38317 echo stderr:; tee stderr <"$at_stderr"
38318 echo >>"$at_stdout"; $as_echo "-rw------- jes/glone 10737418240 2002-06-15 21:18 10g
38319 -rw-r--r-- jes/glone           0 2002-06-15 14:53 file
38320 " | \
38321   $at_diff - "$at_stdout" || at_failed=:
38322 at_func_check_status 0 $at_status "$at_srcdir/pax-big-10g.at:26"
38323
38324 $at_failed && at_func_log_failure
38325 $at_traceon; }
38326
38327
38328
38329 cat >stderr.re <<'_ATEOF'
38330 tar: Record size = .*
38331 _ATEOF
38332
38333 awk '{print NR " " $0}' stderr > $$.1
38334 awk '{print NR " " $0}' stderr.re | join - $$.1 |
38335 while read NUM RE LINE
38336 do
38337   echo "$LINE" | grep -- "$RE" >/dev/null || exit 1
38338 done
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_115