Lines Matching +full:rw +full:- +full:p
3 [ -f testing.sh ] && . testing.sh
20 TAR='tar c --owner root --group root --mtime @1234567890'
23 # gnu/dammit does more) so look at first N 512-byte frames when
27 if [ -n "$TARHD" ]; then
29 mkfifo xxd-pipe
30 xxd <xxd-pipe & pid=$!
31 tee xxd-pipe | head -c $(($1*512)) | sha1sum | sed "s/ .*//"
32 rm xxd-pipe
35 head -c $(($1*512)) | sha1sum | sed "s/ .*//"
49 "-rw-rw-r-- root/root 0 2009-02-13 23:31 file\n" "" ""
54 testing "pass user" "tar -c --owner nobody --group root --mtime @0 file | LST" \
55 "-rw-rw-r-- nobody/root 0 1970-01-01 00:00 file\n" "" ""
59 testing "pass group" "tar c --owner root --group nobody --mtime @0 file | LST" \
60 "-rw-rw-r-- root/nobody 0 1970-01-01 00:00 file\n" "" ""
64 testing "huge values" "tar c --owner 9999999 --group 8888888 --mtime @0 file | SUM 3" \
67 touch -t 198701231234.56 file
69 "tar c --owner root --group root file | LST --full-time" \
70 "-rw-rw-r-- root/root 0 1987-01-23 12:34:56 file\n" "" ""
73 "tar c --owner root --group root --mode a+x file | LST --full-time" \
74 "-rwxrwxr-x root/root 0 1987-01-23 12:34:56 file\n" "" ""
81 "drwxrwxr-x root/root 0 2009-02-13 23:31 dir/\n" "" ""
93 …"drwxrwxr-x root/root 0 2009-02-13 23:31 dir/\n-rw-rw-r-- root/root 0 2009-02-13 23:31 dir/file\n"…
96 testing "tar C" "$TAR -C dir that | SUM 3" \
100 ln -s ../name.././.. dir/link
124 ln -s dir/${LONG:1:96} dir/lshort
125 ln -s dir/${LONG:1:97} dir/llong
129 ln -s $LONG dir/${LONG:5}
130 testing "create long->long" "$TAR dir/${LONG:5} | SUM 7" \
134 ln -s file dir/linkok
138 ln -s /dev/null dir/linknull
140 "lrwxrwxrwx root/root 0 2009-02-13 23:31 dir/linknull -> /dev/null\n" "" ""
142 ln -s rel/broken dir/relbrok
144 "lrwxrwxrwx root/root 0 2009-02-13 23:31 dir/relbrok -> rel/broken\n" "" ""
146 ln -s /does/not/exist dir/linkabsbrok
148 "lrwxrwxrwx root/root 0 2009-02-13 23:31 dir/linkabsbrok -> /does/not/exist\n" \
154 "tar c --mtime @0 /dev/null 2>/dev/null | LST" \
155 "crw-rw-rw- root/root 1,3 1970-01-01 00:00 dev/null\n" "" ""
156 testing "--absolute-names" \
157 "tar c --mtime @0 --absolute-names /dev/null 2>/dev/null | LST" \
158 "crw-rw-rw- root/root 1,3 1970-01-01 00:00 /dev/null\n" "" ""
161 testing "autodetect gzip" 'LST -f "$FILES"/tar/tar.tgz' \
162 "drwxr-x--- enh/eng 0 2017-05-13 01:05 dir/\n-rw-r----- enh/eng 12 2017-05-13 01:05 dir/file\n" \
165 testing "manually specify bz2" 'LST -jf "$FILES"/tar/tar.tbz2' \
166 "drwxr-x--- enh/eng 0 2017-05-13 01:05 dir/\n-rw-r----- enh/eng 12 2017-05-13 01:05 dir/file\n" \
169 # -I
170 testing "-I gzip c" "$TAR -Igzip file | file - | grep -o 'gzip compressed'" \
172 testing "-I gzip t" 'LST -Igzip -f "$FILES"/tar/tar.tgz' \
173 "drwxr-x--- enh/eng 0 2017-05-13 01:05 dir/\n-rw-r----- enh/eng 12 2017-05-13 01:05 dir/file\n" \
177 testing "character special" "tar --mtime @0 -cf test.tar dir/char && rm -f dir/char && tar xf test.…
178 "crw-rw---- 1 root root 12, 34 1970-01-01 00:00 dir/char\n" "" ""
181 testing "block special" "tar --mtime @0 -cf test.tar dir/block && rm -f dir/block && tar xf test.ta…
182 "brw-rw---- 1 root root 23, 45 1970-01-01 00:00 dir/block\n" "" ""
188 mkdir -p dd/sub/blah &&
190 rm -rf dd/sub &&
191 ln -s ../.. dd/sub || SKIPNEXT=1
193 "tar xf test.tar 2> /dev/null || echo yes ; [ ! -e dd/sub/blah ] && echo yes" \
199 "tar xvCf dd $FILES/tar/tar.tar && stat -c '%A %Y %n' dd/dir dd/dir/file" \
200 "dir/\ndir/file\ndrwxr-x--- 1494637555 dd/dir\n-rw-r----- 1494637555 dd/dir/file\n" \
204 "tar xvCf dd $FILES/tar/tar.tgz && stat -c '%A %Y %n' dd/dir dd/dir/file" \
205 "dir/\ndir/file\ndrwxr-x--- 1494637555 dd/dir\n-rw-r----- 1494637555 dd/dir/file\n" \
209 "cat $FILES/tar/tar.tgz | tar xvC dd && stat -c '%A %Y %n' dd/dir dd/dir/file" \
210 "dir/\ndir/file\ndrwxr-x--- 1494637555 dd/dir\n-rw-r----- 1494637555 dd/dir/file\n" \
214 "tar xvCf dd $FILES/tar/tar.tbz2 && stat -c '%A %Y %n' dd/dir dd/dir/file" \
215 "dir/\ndir/file\ndrwxr-x--- 1494637555 dd/dir\n-rw-r----- 1494637555 dd/dir/file\n" \
219 "cat $FILES/tar/tar.tbz2 | tar xvC dd && stat -c '%A %Y %n' dd/dir dd/dir/file" \
220 "dir/\ndir/file\ndrwxr-x--- 1494637555 dd/dir\n-rw-r----- 1494637555 dd/dir/file\n" \
224 testing "sparse without overflow" "$TAR --sparse fweep | SUM 3" \
233 testing "sparse single overflow" "$TAR --sparse fweep | SUM 6" \
242 truncate -s 20m fweep2
244 testing "sparse double overflow" "$TAR --sparse fweep | SUM 7" \
247 tar c --sparse fweep > fweep.tar
249 testing "sparse extract" "tar xf fweep.tar && $TAR --sparse fweep | SUM 4" \
251 testing "sparse tvf" "tar tvf fweep.tar | grep -wq 13172736 && echo right size"\
255 tar c --sparse fweep2 > fweep2.tar
258 "tar xf fweep2.tar && $TAR --sparse fweep2 | SUM 4" \
265 mkdir -p links
269 testcmd 'links' '-cf test.tar links' '' '' ''
270 rm -rf links
274 testcmd 'links2' '-cf test.tar links' '' '' ''
275 rm -rf links
277 install -m 000 -d folder/skip/oof &&
278 testcmd 'exclude' '--exclude skip -cvf tar.tar folder && echo yes' \
280 rm -rf folder tar.tar
282 mkdir -p one/two; echo hello > one/two/three; tar czf test.tar one/two/three
284 testcmd 'replace dir with file' '-xf test.tar && cat one/two/three' \
286 rm -rf one test.tar
295 #ls -ld dir/file
303 # exclusion defaults to --no-anchored and --wildcards-match-slash
311 # --owner --group --numeric-owner
313 # --owner 0 --group 0
317 # // exclusion defaults to --no-anchored and --wildcards-match-slash
319 # tar tv --owner --group --mtime
329 unset -f LST