Ignore:
Timestamp:
Jan 1, 2014, 12:47:38 AM (10 years ago)
Author:
Bruno Cornec
Message:
  • Update mindi-busybox to 1.21.1
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/3.2/mindi-busybox/testsuite/tar.tests

    r2725 r3232  
    155155}
    156156
     157# Had a bug where on extract autodetect first "switched off" -z
     158# and then failed to recognize .tgz extension
     159optional FEATURE_TAR_CREATE FEATURE_SEAMLESS_GZ
     160testing "tar extract tgz" "\
     161dd count=1 bs=1M if=/dev/zero of=F0 2>/dev/null
     162tar -czf F0.tgz F0
     163rm F0
     164tar -xzvf F0.tgz && echo Ok
     165rm F0 || echo BAD
     166" "\
     167F0
     168Ok
     169" \
     170"" ""
     171SKIP=
     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")
     175optional UUDECODE FEATURE_TAR_AUTODETECT FEATURE_SEAMLESS_XZ
     176testing "tar extract txz" "\
     177uudecode -o input && tar tf input && echo Ok
     178" "\
     179hello_world
     180Ok
     181" \
     182"" "\
     183begin-base64 644 hello_world.txz
     184/Td6WFoAAATm1rRGAgAhARYAAAB0L+Wj4AX/AEldADQZSe6ODIZQ3rSQ8kAJ
     185SnMPTX+XWGKW3Yu/Rwqg4Ik5wqgQKgVH97J8yA8IvZ4ahaCQogUNHRkXibr2
     186Q615wcb2G7fJU49AhWAAAAAAUA8gu9DyXfAAAWWADAAAAB5FXGCxxGf7AgAA
     187AAAEWVo=
     188====
     189"
     190SKIP=
     191
     192# On extract, everything up to and including last ".." component is stripped
     193optional FEATURE_TAR_CREATE
     194testing "tar strips /../ on extract" "\
     195rm -rf input_* test.tar 2>/dev/null
     196mkdir input_dir
     197echo Ok >input_dir/file
     198tar cf test.tar ./../tar.tempdir/input_dir/../input_dir 2>&1
     199rm -rf input_* 2>/dev/null
     200tar -vxf test.tar 2>&1
     201cat input_dir/file 2>&1
     202" "\
     203tar: removing leading './../tar.tempdir/input_dir/../' from member names
     204input_dir/
     205input_dir/file
     206Ok
     207" \
     208"" ""
     209SKIP=
     210
    157211
    158212cd .. && rm -rf tar.tempdir || exit 1
Note: See TracChangeset for help on using the changeset viewer.