Lines Matching full:tar

10 TAR='tar c --owner root --group sys --mtime @1234567890'
30 tar tv "$@" | sed 's/[ \t][ \t]*/ /g'
35 testing "store file" "$TAR file | SUM 3" \
37 testing "pass file" "$TAR file | LST" \
42 testing "-T newline" "$TAR -T input | LST" \
44 testing "-T null" "$TAR --null -T input | LST" \
50 # Note: testing both "tar c" and "tar -c" here.
51 testing "specify UID, fetch GID" "tar -c --owner nobody:65534 --mtime @0 file | LST" \
53 testing "fetch UID, specify GID" "tar c --group nobody:65534 --mtime @0 file | LST" \
57 testing "huge values" "tar c --owner 9999999 --group 8888888 --mtime @0 file | SUM 3" \
60 testcmd "longname" "tf $FILES/tar/long_path.tar" \
65 "tar c --owner root --group sys file | LST --full-time" \
69 "tar c --owner root --group sys --mode a+x file | LST --full-time" \
73 testing "store dir" "$TAR dir | SUM 3" \
75 testing "pass dir" "$TAR dir | LST" \
80 testing "store file in dir" "$TAR dir/file | SUM 3" \
84 testing "store dir and dir/file" "$TAR dir | SUM 3" \
87 testing "pass dir/file" "$TAR dir | LST" \
91 testing "tar C" "$TAR -C dir that | SUM 3" \
95 testing "store hardlink" "$TAR dir/file dir/hardlink | SUM 3" \
99 testing "create dir/fifo" "$TAR dir/fifo | SUM 3" \
106 testing "create long fname" "$TAR dir/${LONG:1:97} dir/${LONG:1:96} | SUM 3" \
114 testing "create symlink" "$TAR dir/link | SUM 3" \
118 testing "create hardlink to symlink" "$TAR dir/link dir/hlink | SUM 3" \
123 testing "create long symlink" "$TAR dir/lshort dir/llong | SUM 3" \
127 testing "create long->long" "$TAR dir/${LONG:5} | SUM 7" \
132 testing "create symlink" "$TAR dir/linkok | SUM 3" \
141 testing "pass absolute symlink" "$TAR dir/linknull | LST" \
145 testing "pass broken symlink" "$TAR dir/relbrok | LST" \
149 testing "pass broken absolute symlink" "$TAR dir/linkabsbrok | LST" \
157 "tar c --mtime @0 /dev/null 2>/dev/null | LST" \
161 "tar c --mtime @0 --absolute-names /dev/null 2>/dev/null | LST" \
166 testing "autodetect gzip" 'LST -f "$FILES"/tar/tar.tgz' \
170 testing "manually specify bz2" 'LST -jf "$FILES"/tar/tar.tbz2' \
175 testing "-I gzip c" "$TAR -Igzip file | file - | grep -o 'gzip compressed'" \
177 testing "-I gzip t" 'LST -Igzip -f "$FILES"/tar/tar.tgz' \
182 NOSPACE=1 testing "character special" "tar --mtime @0 -cf test.tar dir/char && rm -f dir/char && ta…
187 NOSPACE=1 testing "block special" "tar --mtime @0 -cf test.tar dir/block && rm -f dir/block && tar
192 testing "ownership" "$TAR dir/file | SUM 3" \
196 tar cf test.tar dd/sub/blah &&
200 "tar xf test.tar 2> /dev/null || echo yes ; [ ! -e dd/sub/blah ] && echo yes" \
205 testing "extract dir/file from tar" \
206 "tar xvCf dd $FILES/tar/tar.tar && stat -c '%A %Y %n' dd/dir dd/dir/file" \
211 "tar xvCf dd $FILES/tar/tar.tgz && stat -c '%A %Y %n' dd/dir dd/dir/file" \
216 "cat $FILES/tar/tar.tgz | tar xvC dd && stat -c '%A %Y %n' dd/dir dd/dir/file" \
221 "tar xvCf dd $FILES/tar/tar.tbz2 && stat -c '%A %Y %n' dd/dir dd/dir/file" \
226 "cat $FILES/tar/tar.tbz2 | tar xvC dd && stat -c '%A %Y %n' dd/dir dd/dir/file" \
230 mkdir path && ln -s "$(which gzip)" "$(which tar)" path/ && [ -x path/gzip ] ||
233 "PATH=path; tar tf $FILES/tar/tar.tgz" "dir/\ndir/file\n" "" ""
249 testing "sparse without overflow" "$TAR --sparse fweep | SUM 3" \
257 testing "sparse single overflow" "$TAR --sparse fweep | SUM 6" \
267 testing "sparse double overflow" "$TAR --sparse fweep | SUM 7" \
270 tar c --sparse fweep > fweep.tar
272 testing "sparse extract" "tar xf fweep.tar && $TAR --sparse fweep | SUM 4" \
275 "tar tvf fweep.tar | grep -wq 13172736 && echo right size" "right size\n" \
277 rm fweep fweep.tar
279 tar c --sparse fweep2 > fweep2.tar
282 "tar xf fweep2.tar && $TAR --sparse fweep2 | SUM 4" \
284 rm fweep2 fweep2.tar
287 'xf "$FILES"/tar/oldsparse.tgz && sha1sum hello-sparse.c | head -c 12' \
297 testcmd 'links' '-cf test.tar links' '' '' ''
302 testcmd 'links2' '-cf test.tar links' '' '' ''
306 testcmd 'exclude' '--exclude skip -cvf tar.tar folder && echo yes' \
308 rm -rf folder tar.tar
310 mkdir -p one/two; echo hello > one/two/three; tar czf test.tar one/two/three
312 testcmd 'replace dir with file' '-xf test.tar && cat one/two/three' \
314 rm -rf one test.tar
317 testing "create ..dotsdir" "$TAR ..dotsdir | SUM 3" \
320 testing "pass ..dotsdir" "$TAR ..dotsdir | LST" \
326 testing "--strip" "$TAR one | tar t --strip=2 --show-transformed | grep six" \
329 # toybox tar --xform depends on toybox sed
337 TT() { $TAR --no-recursion uno uno/{dos,tres,quatro} "$@" | LL; }
362 testing "xform path" "$TAR one --xform=s@three/four/@zero@ | tar t | grep six" \
366 "$TAR --xform 's#^.+/##x' one/two/three/four/five | tar t" 'five/\nsix\n' '' ''
389 testing '-P' "$TAR -P --no-recursion -C / /// .. | SUM 3" \
392 testing 'without -P' "$TAR --no-recursion -C / /// .. 2>/dev/null | SUM 3" \
405 $TAR -f ../sub.tar abcd dabc a da top && cd .. || exit 1
410 '$TAR -C sub --wildcards a.cd abcd dabc a da top 2>/dev/null | cmp - sub.tar' \
414 '$TAR -C sub --no-wildcards --exclude=d?bc abcd dabc | LL' \
419 '$TAR -C sub --wildcards --exclude=d?bc abcd dabc | LL' \
425 testing 'tsort' '$TAR -c sub2 --sort=name | tar t' \
429 testing './file bug' 'tar c ./file > tar.tar && tar t ./file < tar.tar' \
434 'umask 0022 && rm -rf dir && mkdir dir && tar xf $FILES/tar/dir.tar && stat -c%A dir dir/file' \
437 …'umask 0022 && rm -rf dir && mkdir dir && umask 0 && tar xf $FILES/tar/dir.tar && stat -c%A dir di…
440 'umask 0022 && rm -rf dir && mkdir dir && tar xpf $FILES/tar/dir.tar && stat -c%A dir dir/file' \
450 tar cpf tar.tgz dir/file
452 #tar xpf file
477 # tar tv --owner --group --mtime