]> Dogcows Code - chaz/tar/blob - tests/volume.sh
obstack is autodetermined...
[chaz/tar] / tests / volume.sh
1 #! /bin/sh
2 # Volume labels are checked on read by fnmatch.
3
4 . ./preset
5 . $srcdir/before
6
7 tar cfVT archive label /dev/null || exit 1
8
9 tar xfV archive label || exit 1
10 tar xfV archive 'la?el' || exit 1
11 tar xfV archive 'l*l' || exit 1
12
13 echo 1>&2 -----
14 tar xfV archive lab
15 test $? = 2 || exit 1
16 echo 1>&2 -----
17 tar xfV archive bel
18 test $? = 2 || exit 1
19 echo 1>&2 -----
20 tar xfV archive babel
21 test $? = 2 || exit 1
22
23 err="\
24 -----
25 tar: Volume \`label' does not match \`lab'
26 tar: Error is not recoverable: exiting now
27 -----
28 tar: Volume \`label' does not match \`bel'
29 tar: Error is not recoverable: exiting now
30 -----
31 tar: Volume \`label' does not match \`babel'
32 tar: Error is not recoverable: exiting now
33 "
34
35 . $srcdir/after
This page took 0.032593 seconds and 4 git commands to generate.