diff options
| author | Denys Vlasenko <vda.linux@googlemail.com> | 2012-03-06 16:57:01 +0100 |
|---|---|---|
| committer | Denys Vlasenko <vda.linux@googlemail.com> | 2012-03-06 16:57:01 +0100 |
| commit | bb8d7db597e73f8bd7cb10e3d319be4c93128ccc (patch) | |
| tree | 9a811b7b078b3f47198cd876b45bf183f628d686 | |
| parent | d29c946f931730a9acf0132da5f3d73fed0113df (diff) | |
| download | busybox-w32-bb8d7db597e73f8bd7cb10e3d319be4c93128ccc.tar.gz busybox-w32-bb8d7db597e73f8bd7cb10e3d319be4c93128ccc.tar.bz2 busybox-w32-bb8d7db597e73f8bd7cb10e3d319be4c93128ccc.zip | |
testsuite: add a test that tar detects XZ-compressed data
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| -rwxr-xr-x | testsuite/tar.tests | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/testsuite/tar.tests b/testsuite/tar.tests index 39ece5feb..7927020c1 100755 --- a/testsuite/tar.tests +++ b/testsuite/tar.tests | |||
| @@ -170,6 +170,25 @@ Ok | |||
| 170 | "" "" | 170 | "" "" |
| 171 | SKIP= | 171 | SKIP= |
| 172 | 172 | ||
| 173 | # Do we detect XZ-compressed data (even w/o .tar.xz or txz extension)? | ||
| 174 | # (the uuencoded hello_world.txz contains one empty file named "hello_world") | ||
| 175 | optional UUDECODE FEATURE_TAR_AUTODETECT FEATURE_SEAMLESS_XZ | ||
| 176 | testing "tar extract txz" "\ | ||
| 177 | uudecode -o input && tar tf input && echo Ok | ||
| 178 | " "\ | ||
| 179 | hello_world | ||
| 180 | Ok | ||
| 181 | " \ | ||
| 182 | "" "\ | ||
| 183 | begin-base64 644 hello_world.txz | ||
| 184 | /Td6WFoAAATm1rRGAgAhARYAAAB0L+Wj4AX/AEldADQZSe6ODIZQ3rSQ8kAJ | ||
| 185 | SnMPTX+XWGKW3Yu/Rwqg4Ik5wqgQKgVH97J8yA8IvZ4ahaCQogUNHRkXibr2 | ||
| 186 | Q615wcb2G7fJU49AhWAAAAAAUA8gu9DyXfAAAWWADAAAAB5FXGCxxGf7AgAA | ||
| 187 | AAAEWVo= | ||
| 188 | ==== | ||
| 189 | " | ||
| 190 | SKIP= | ||
| 191 | |||
| 173 | # On extract, everything up to and including last ".." component is stripped | 192 | # On extract, everything up to and including last ".." component is stripped |
| 174 | optional FEATURE_TAR_CREATE | 193 | optional FEATURE_TAR_CREATE |
| 175 | testing "tar strips /../ on extract" "\ | 194 | testing "tar strips /../ on extract" "\ |
