Lines Matching full:tar
20 TAR='tar c --owner root --group root --mtime @1234567890'
41 tar tv "$@" | sed 's/[ \t][ \t]*/ /g'
45 testing "create file" "$TAR file | SUM 3" \
48 testing "pass file" "$TAR file | LST" \
54 testing "pass user" "tar -c --owner nobody --group root --mtime @0 file | LST" \
59 testing "pass group" "tar c --owner root --group nobody --mtime @0 file | LST" \
64 "tar c --owner root --group root file | LST --full-time" \
68 "tar c --owner root --group root --mode a+x file | LST --full-time" \
72 testing "create dir" "$TAR dir | SUM 3" \
75 testing "pass dir" "$TAR dir | LST" \
80 testing "create file in dir" "$TAR dir/file | SUM 3" \
84 testing "create 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" \
96 testing "create symlink" "$TAR dir/link | SUM 3" \
101 testing "create hardlink" "$TAR dir/file dir/hardlink | SUM 3" \
105 testing "create hardlink to symlink" "$TAR dir/link dir/hlink | SUM 3" \
109 testing "create dir/fifo" "$TAR dir/fifo | SUM 3" \
116 testing "create long fname" "$TAR dir/${LONG:1:97} dir/${LONG:1:96} | SUM 3" \
121 testing "create long symlnk" "$TAR dir/lshort dir/llong | SUM 3" \
125 testing "create long->long" "$TAR dir/${LONG:5} | SUM 7" \
130 testing "create symlink" "$TAR dir/linkok | SUM 3" \
134 testing "pass absolute symlink" "$TAR dir/linknull | LST" \
138 testing "pass broken symlink" "$TAR dir/relbrok | LST" \
142 testing "pass broken absolute symlink" "$TAR dir/linkabsbrok | LST" \
149 "tar c --mtime @0 /dev/null 2>/dev/null | LST" \
153 testing "autodetect gzip" 'LST -f "$FILES"/tar/tar.tgz' \
157 testing "manually specify bz2" 'LST -jf "$FILES"/tar/tar.tbz2' \
162 testing "character special" "tar --mtime @0 -cf test.tar dir/char && rm -f dir/char && tar xf test.…
166 testing "block special" "tar --mtime @0 -cf test.tar dir/block && rm -f dir/block && tar xf test.ta…
170 testing "ownership" "$TAR dir/file | SUM 3" \
174 tar cf test.tar dd/sub/blah &&
178 "tar xf test.tar 2> /dev/null || echo yes ; [ ! -e dd/sub/blah ] && echo yes" \
183 testing "extract dir/file from tar" \
184 "tar xvCf dd $FILES/tar/tar.tar && stat -c '%A %Y %n' dd/dir dd/dir/file" \
189 "tar xvCf dd $FILES/tar/tar.tgz && stat -c '%A %Y %n' dd/dir dd/dir/file" \
194 "cat $FILES/tar/tar.tgz | tar xvC dd && stat -c '%A %Y %n' dd/dir dd/dir/file" \
199 "tar xvCf dd $FILES/tar/tar.tbz2 && stat -c '%A %Y %n' dd/dir dd/dir/file" \
204 "cat $FILES/tar/tar.tbz2 | tar xvC dd && stat -c '%A %Y %n' dd/dir dd/dir/file" \
209 testing "sparse without overflow" "$TAR --sparse fweep | SUM 3" \
218 testing "sparse single overflow" "$TAR --sparse fweep | SUM 6" \
229 testing "sparse double overflow" "$TAR --sparse fweep | SUM 7" \
232 tar c --sparse fweep > fweep.tar
234 testing "sparse extract" "tar xf fweep.tar && $TAR --sparse fweep | SUM 4" \
236 testing "sparse tvf" "tar tvf fweep.tar | grep -wq 13172736 && echo right size"\
238 rm fweep fweep.tar
240 tar c --sparse fweep2 > fweep2.tar
243 "tar xf fweep2.tar && $TAR --sparse fweep2 | SUM 4" \
245 rm fweep2 fweep2.tar
251 tar cpf tar.tgz dir/file
253 #tar xpf file
278 # tar tv --owner --group --mtime
287 unset LONG TAR SUM OLDUMASK OLDTZ