Home | History | Annotate | Download | only in tests

Lines Matching full:file1

11 testing "Move old_file to  new_file" "mv file file1 && [ ! -e file -a -f file1 ] &&
27 touch file1 file2 dir1/file3
28 ln -s file1 link1
29 testing "Move multiple files/dir to a dir" "mv file1 file2 link1 dir1 dir2 &&
30 [ ! -e file1 -a ! -e file2 -a ! -e link1 -a ! -e dir1 ] &&
31 [ -f dir2/file1 -a -f dir2/file2 -a -L dir2/link1 -a -d dir2/dir1 ] &&
32 [ -f dir2/dir1/file3 ] && readlink dir2/link1" "file1\n" "" ""
35 touch file1
36 testing "Move a empty file to new_file" "mv file1 file2 &&
37 [ ! -e file1 -a -f file2 ] && stat -c %s file2" "0\n" "" ""
45 dd if=/dev/zero of=file1 seek=10k count=1 >/dev/null 2>&1
46 testing "Move file new_file (random file)" "mv file1 file2 &&
47 [ ! -e file1 -a -f file2 ] && stat -c %s file2" "5243392\n" "" ""
50 touch file1
51 ln -s file1 link1
53 [ ! -e link1 -a -L link2 ] && readlink link2" "file1\n" "" ""
57 touch file1
58 ln file1 link1
60 [ ! -e link1 -a -f link2 -a file1 -ef link2 ] && echo 'yes'" "yes\n" "" ""
64 touch file1
65 chmod a-r file1
66 testing "Move file new_file (unreadable)" "mv file1 file2 &&
67 [ ! -e file1 -a -f file2 ] && echo 'yes'" "yes\n" "" ""
70 touch file1
71 ln file1 link1
73 testing "Move file link dir (hardlink)" "mv file1 link1 dir1 &&
74 [ ! -e file1 -a ! -e link1 -a -f dir1/file1 -a -f dir1/link1 ] &&
75 [ dir1/file1 -ef dir1/link1 ] && echo 'yes'" "yes\n" "" ""
79 touch dir1/dir2/file1 dir1/dir2/file2
81 [ ! -e dir1/dir2 -a -d dir3/dir4 -a -f dir3/dir4/file1 ] &&
90 touch file1 file2
91 testing "Move -f file new_file (exist)" "mv -f file1 file2 &&
92 [ ! -e file1 -a -e file2 ] && echo 'yes'" "yes\n" "" ""
95 touch file1 file2
96 testing "Move -n file new_file (exist)" "mv -n file1 file2 &&
97 [ -e file1 -a -e file2 ] && echo 'yes'" "yes\n" "" ""
100 touch file1 file2
101 chmod 400 file1 file2
103 "</dev/null mv file2 file1 && [ -e file -a ! -e file2 ] && echo 'yes'" \