Sun, 31 Dec 2006 19:25:16 -0500
[svn] Add a -f/--flat option, which will extract the archive contents into the
current directory, rather than a dedicated subdirectory.
14
6f9e1bb59719
[svn] Add support for just decompressing files that are compressed. So, if you
brett
parents:
diff
changeset
|
1 | - name: basic .tar |
6f9e1bb59719
[svn] Add support for just decompressing files that are compressed. So, if you
brett
parents:
diff
changeset
|
2 | filename: test-1.23.tar |
6f9e1bb59719
[svn] Add support for just decompressing files that are compressed. So, if you
brett
parents:
diff
changeset
|
3 | baseline: | |
6f9e1bb59719
[svn] Add support for just decompressing files that are compressed. So, if you
brett
parents:
diff
changeset
|
4 | tar -xf $1 |
6f9e1bb59719
[svn] Add support for just decompressing files that are compressed. So, if you
brett
parents:
diff
changeset
|
5 | |
6f9e1bb59719
[svn] Add support for just decompressing files that are compressed. So, if you
brett
parents:
diff
changeset
|
6 | - name: basic .tar.gz |
6f9e1bb59719
[svn] Add support for just decompressing files that are compressed. So, if you
brett
parents:
diff
changeset
|
7 | filename: test-1.23.tar.gz |
6f9e1bb59719
[svn] Add support for just decompressing files that are compressed. So, if you
brett
parents:
diff
changeset
|
8 | baseline: | |
6f9e1bb59719
[svn] Add support for just decompressing files that are compressed. So, if you
brett
parents:
diff
changeset
|
9 | tar -zxf $1 |
6f9e1bb59719
[svn] Add support for just decompressing files that are compressed. So, if you
brett
parents:
diff
changeset
|
10 | |
6f9e1bb59719
[svn] Add support for just decompressing files that are compressed. So, if you
brett
parents:
diff
changeset
|
11 | - name: basic .tar.bz2 |
6f9e1bb59719
[svn] Add support for just decompressing files that are compressed. So, if you
brett
parents:
diff
changeset
|
12 | filename: test-1.23.tar.bz2 |
6f9e1bb59719
[svn] Add support for just decompressing files that are compressed. So, if you
brett
parents:
diff
changeset
|
13 | baseline: | |
6f9e1bb59719
[svn] Add support for just decompressing files that are compressed. So, if you
brett
parents:
diff
changeset
|
14 | mkdir test-1.23 |
6f9e1bb59719
[svn] Add support for just decompressing files that are compressed. So, if you
brett
parents:
diff
changeset
|
15 | cd test-1.23 |
6f9e1bb59719
[svn] Add support for just decompressing files that are compressed. So, if you
brett
parents:
diff
changeset
|
16 | tar -jxf ../$1 |
6f9e1bb59719
[svn] Add support for just decompressing files that are compressed. So, if you
brett
parents:
diff
changeset
|
17 | |
6f9e1bb59719
[svn] Add support for just decompressing files that are compressed. So, if you
brett
parents:
diff
changeset
|
18 | - name: basic .zip |
6f9e1bb59719
[svn] Add support for just decompressing files that are compressed. So, if you
brett
parents:
diff
changeset
|
19 | filename: test-1.23.zip |
6f9e1bb59719
[svn] Add support for just decompressing files that are compressed. So, if you
brett
parents:
diff
changeset
|
20 | baseline: | |
6f9e1bb59719
[svn] Add support for just decompressing files that are compressed. So, if you
brett
parents:
diff
changeset
|
21 | mkdir test-1.23 |
6f9e1bb59719
[svn] Add support for just decompressing files that are compressed. So, if you
brett
parents:
diff
changeset
|
22 | cd test-1.23 |
6f9e1bb59719
[svn] Add support for just decompressing files that are compressed. So, if you
brett
parents:
diff
changeset
|
23 | unzip -q ../$1 |
6f9e1bb59719
[svn] Add support for just decompressing files that are compressed. So, if you
brett
parents:
diff
changeset
|
24 | |
6f9e1bb59719
[svn] Add support for just decompressing files that are compressed. So, if you
brett
parents:
diff
changeset
|
25 | - name: basic .deb |
6f9e1bb59719
[svn] Add support for just decompressing files that are compressed. So, if you
brett
parents:
diff
changeset
|
26 | filename: test-1.23_all.deb |
6f9e1bb59719
[svn] Add support for just decompressing files that are compressed. So, if you
brett
parents:
diff
changeset
|
27 | baseline: | |
6f9e1bb59719
[svn] Add support for just decompressing files that are compressed. So, if you
brett
parents:
diff
changeset
|
28 | TD=$PWD |
6f9e1bb59719
[svn] Add support for just decompressing files that are compressed. So, if you
brett
parents:
diff
changeset
|
29 | mkdir test-1.23 |
6f9e1bb59719
[svn] Add support for just decompressing files that are compressed. So, if you
brett
parents:
diff
changeset
|
30 | cd /tmp |
6f9e1bb59719
[svn] Add support for just decompressing files that are compressed. So, if you
brett
parents:
diff
changeset
|
31 | ar x $TD/$1 data.tar.gz |
6f9e1bb59719
[svn] Add support for just decompressing files that are compressed. So, if you
brett
parents:
diff
changeset
|
32 | cd $TD/test-1.23 |
6f9e1bb59719
[svn] Add support for just decompressing files that are compressed. So, if you
brett
parents:
diff
changeset
|
33 | tar -zxf /tmp/data.tar.gz |
6f9e1bb59719
[svn] Add support for just decompressing files that are compressed. So, if you
brett
parents:
diff
changeset
|
34 | rm /tmp/data.tar.gz |
6f9e1bb59719
[svn] Add support for just decompressing files that are compressed. So, if you
brett
parents:
diff
changeset
|
35 | |
6f9e1bb59719
[svn] Add support for just decompressing files that are compressed. So, if you
brett
parents:
diff
changeset
|
36 | - name: recursion and permissions |
6f9e1bb59719
[svn] Add support for just decompressing files that are compressed. So, if you
brett
parents:
diff
changeset
|
37 | filename: test-recursive-badperms.tar.bz2 |
6f9e1bb59719
[svn] Add support for just decompressing files that are compressed. So, if you
brett
parents:
diff
changeset
|
38 | options: -r |
6f9e1bb59719
[svn] Add support for just decompressing files that are compressed. So, if you
brett
parents:
diff
changeset
|
39 | baseline: | |
6f9e1bb59719
[svn] Add support for just decompressing files that are compressed. So, if you
brett
parents:
diff
changeset
|
40 | mkdir test-recursive-badperms |
6f9e1bb59719
[svn] Add support for just decompressing files that are compressed. So, if you
brett
parents:
diff
changeset
|
41 | cd test-recursive-badperms |
6f9e1bb59719
[svn] Add support for just decompressing files that are compressed. So, if you
brett
parents:
diff
changeset
|
42 | tar -jxf ../$1 |
6f9e1bb59719
[svn] Add support for just decompressing files that are compressed. So, if you
brett
parents:
diff
changeset
|
43 | mkdir test-badperms |
6f9e1bb59719
[svn] Add support for just decompressing files that are compressed. So, if you
brett
parents:
diff
changeset
|
44 | cd test-badperms |
6f9e1bb59719
[svn] Add support for just decompressing files that are compressed. So, if you
brett
parents:
diff
changeset
|
45 | tar -xf ../test-badperms.tar |
6f9e1bb59719
[svn] Add support for just decompressing files that are compressed. So, if you
brett
parents:
diff
changeset
|
46 | chmod 755 testdir |
6f9e1bb59719
[svn] Add support for just decompressing files that are compressed. So, if you
brett
parents:
diff
changeset
|
47 | posttest: | |
6f9e1bb59719
[svn] Add support for just decompressing files that are compressed. So, if you
brett
parents:
diff
changeset
|
48 | if [ "x`cat test-recursive-badperms/test-badperms/testdir/testfile`" = \ |
6f9e1bb59719
[svn] Add support for just decompressing files that are compressed. So, if you
brett
parents:
diff
changeset
|
49 | "xhey" ]; then exit 0; else exit 1; fi |
6f9e1bb59719
[svn] Add support for just decompressing files that are compressed. So, if you
brett
parents:
diff
changeset
|
50 | |
6f9e1bb59719
[svn] Add support for just decompressing files that are compressed. So, if you
brett
parents:
diff
changeset
|
51 | - name: decompression |
6f9e1bb59719
[svn] Add support for just decompressing files that are compressed. So, if you
brett
parents:
diff
changeset
|
52 | directory: inside-dir |
6f9e1bb59719
[svn] Add support for just decompressing files that are compressed. So, if you
brett
parents:
diff
changeset
|
53 | filename: ../test-text.gz |
6f9e1bb59719
[svn] Add support for just decompressing files that are compressed. So, if you
brett
parents:
diff
changeset
|
54 | baseline: | |
6f9e1bb59719
[svn] Add support for just decompressing files that are compressed. So, if you
brett
parents:
diff
changeset
|
55 | zcat $1 >test-text |
6f9e1bb59719
[svn] Add support for just decompressing files that are compressed. So, if you
brett
parents:
diff
changeset
|
56 | |
6f9e1bb59719
[svn] Add support for just decompressing files that are compressed. So, if you
brett
parents:
diff
changeset
|
57 | - name: decompression with -r |
6f9e1bb59719
[svn] Add support for just decompressing files that are compressed. So, if you
brett
parents:
diff
changeset
|
58 | directory: inside-dir |
6f9e1bb59719
[svn] Add support for just decompressing files that are compressed. So, if you
brett
parents:
diff
changeset
|
59 | filename: ../test-text.gz |
6f9e1bb59719
[svn] Add support for just decompressing files that are compressed. So, if you
brett
parents:
diff
changeset
|
60 | options: -r |
6f9e1bb59719
[svn] Add support for just decompressing files that are compressed. So, if you
brett
parents:
diff
changeset
|
61 | baseline: | |
6f9e1bb59719
[svn] Add support for just decompressing files that are compressed. So, if you
brett
parents:
diff
changeset
|
62 | zcat $1 >test-text |
6f9e1bb59719
[svn] Add support for just decompressing files that are compressed. So, if you
brett
parents:
diff
changeset
|
63 | |
6f9e1bb59719
[svn] Add support for just decompressing files that are compressed. So, if you
brett
parents:
diff
changeset
|
64 | - name: overwrite protection |
6f9e1bb59719
[svn] Add support for just decompressing files that are compressed. So, if you
brett
parents:
diff
changeset
|
65 | filename: test-1.23.tar.bz2 |
6f9e1bb59719
[svn] Add support for just decompressing files that are compressed. So, if you
brett
parents:
diff
changeset
|
66 | baseline: | |
6f9e1bb59719
[svn] Add support for just decompressing files that are compressed. So, if you
brett
parents:
diff
changeset
|
67 | mkdir test-1.23 test-1.23.1 |
6f9e1bb59719
[svn] Add support for just decompressing files that are compressed. So, if you
brett
parents:
diff
changeset
|
68 | cd test-1.23.1 |
6f9e1bb59719
[svn] Add support for just decompressing files that are compressed. So, if you
brett
parents:
diff
changeset
|
69 | tar -jxf ../$1 |
6f9e1bb59719
[svn] Add support for just decompressing files that are compressed. So, if you
brett
parents:
diff
changeset
|
70 | prerun: | |
6f9e1bb59719
[svn] Add support for just decompressing files that are compressed. So, if you
brett
parents:
diff
changeset
|
71 | mkdir test-1.23 |
6f9e1bb59719
[svn] Add support for just decompressing files that are compressed. So, if you
brett
parents:
diff
changeset
|
72 | |
6f9e1bb59719
[svn] Add support for just decompressing files that are compressed. So, if you
brett
parents:
diff
changeset
|
73 | - name: overwrite option |
6f9e1bb59719
[svn] Add support for just decompressing files that are compressed. So, if you
brett
parents:
diff
changeset
|
74 | filename: test-1.23.tar.bz2 |
6f9e1bb59719
[svn] Add support for just decompressing files that are compressed. So, if you
brett
parents:
diff
changeset
|
75 | options: -o |
6f9e1bb59719
[svn] Add support for just decompressing files that are compressed. So, if you
brett
parents:
diff
changeset
|
76 | baseline: | |
6f9e1bb59719
[svn] Add support for just decompressing files that are compressed. So, if you
brett
parents:
diff
changeset
|
77 | mkdir test-1.23 |
6f9e1bb59719
[svn] Add support for just decompressing files that are compressed. So, if you
brett
parents:
diff
changeset
|
78 | cd test-1.23 |
6f9e1bb59719
[svn] Add support for just decompressing files that are compressed. So, if you
brett
parents:
diff
changeset
|
79 | tar -jxf ../$1 |
6f9e1bb59719
[svn] Add support for just decompressing files that are compressed. So, if you
brett
parents:
diff
changeset
|
80 | prerun: | |
6f9e1bb59719
[svn] Add support for just decompressing files that are compressed. So, if you
brett
parents:
diff
changeset
|
81 | mkdir test-1.23 |
15
28dbd52a8bb8
[svn] Add a -f/--flat option, which will extract the archive contents into the
brett
parents:
14
diff
changeset
|
82 | |
28dbd52a8bb8
[svn] Add a -f/--flat option, which will extract the archive contents into the
brett
parents:
14
diff
changeset
|
83 | - name: flat option |
28dbd52a8bb8
[svn] Add a -f/--flat option, which will extract the archive contents into the
brett
parents:
14
diff
changeset
|
84 | directory: inside-dir |
28dbd52a8bb8
[svn] Add a -f/--flat option, which will extract the archive contents into the
brett
parents:
14
diff
changeset
|
85 | filename: ../test-1.23.tar.bz2 |
28dbd52a8bb8
[svn] Add a -f/--flat option, which will extract the archive contents into the
brett
parents:
14
diff
changeset
|
86 | options: -f |
28dbd52a8bb8
[svn] Add a -f/--flat option, which will extract the archive contents into the
brett
parents:
14
diff
changeset
|
87 | baseline: | |
28dbd52a8bb8
[svn] Add a -f/--flat option, which will extract the archive contents into the
brett
parents:
14
diff
changeset
|
88 | tar -jxf $1 |
28dbd52a8bb8
[svn] Add a -f/--flat option, which will extract the archive contents into the
brett
parents:
14
diff
changeset
|
89 | |
28dbd52a8bb8
[svn] Add a -f/--flat option, which will extract the archive contents into the
brett
parents:
14
diff
changeset
|
90 | - name: flat recursion and permissions |
28dbd52a8bb8
[svn] Add a -f/--flat option, which will extract the archive contents into the
brett
parents:
14
diff
changeset
|
91 | directory: inside-dir |
28dbd52a8bb8
[svn] Add a -f/--flat option, which will extract the archive contents into the
brett
parents:
14
diff
changeset
|
92 | filename: ../test-recursive-badperms.tar.bz2 |
28dbd52a8bb8
[svn] Add a -f/--flat option, which will extract the archive contents into the
brett
parents:
14
diff
changeset
|
93 | options: -fr |
28dbd52a8bb8
[svn] Add a -f/--flat option, which will extract the archive contents into the
brett
parents:
14
diff
changeset
|
94 | baseline: | |
28dbd52a8bb8
[svn] Add a -f/--flat option, which will extract the archive contents into the
brett
parents:
14
diff
changeset
|
95 | tar -jxf $1 |
28dbd52a8bb8
[svn] Add a -f/--flat option, which will extract the archive contents into the
brett
parents:
14
diff
changeset
|
96 | tar -xf test-badperms.tar |
28dbd52a8bb8
[svn] Add a -f/--flat option, which will extract the archive contents into the
brett
parents:
14
diff
changeset
|
97 | chmod 755 testdir |
28dbd52a8bb8
[svn] Add a -f/--flat option, which will extract the archive contents into the
brett
parents:
14
diff
changeset
|
98 | posttest: | |
28dbd52a8bb8
[svn] Add a -f/--flat option, which will extract the archive contents into the
brett
parents:
14
diff
changeset
|
99 | if [ "x`cat testdir/testfile`" != "xhey" ]; then exit 1; fi |
28dbd52a8bb8
[svn] Add a -f/--flat option, which will extract the archive contents into the
brett
parents:
14
diff
changeset
|
100 |