6 do_test "echo 1 > file"
8 msg "a single directory"
11 msg "subdirectory with file"
12 do_test "mkdir dir; echo 1 > dir/file"
15 do_test "echo -n > empty_file"
18 do_test "echo -n > empty_file_1; echo -n > empty_file_2"
20 msg "hard link in same directory"
21 do_test "echo 1 > file; ln file link"
23 msg "hard link between empty files"
24 do_test "echo -n > empty_file; ln empty_file link"
26 msg "relative symbolic link"
27 do_test "echo 1 > file; ln -s file symlink"
29 msg "absolute symbolic link"
30 do_test "echo 1 > file; ln -s /some/absolute/target symlink"
33 do_test "dd if=/dev/zero of=file bs=4096 count=10 &> /dev/null"
35 msg "many nested directories"
36 do_test 'mkdir dir; mkdir dir/subdir; mkdir dir/subdir/subdir2; mkdir dir/subdir/subdir3'
38 msg "identical files and symlinks in subdirectory"
41 echo 888 > dir/idfile2;
42 ln -s ../dir dir/circle; ln -s file dir/filelink'
44 msg "hard link group and identical files not hard linked"
45 do_test 'echo 888 > file;
51 msg "C source code of wimlib"
52 do_test 'cp $srcdir/src/*.c .'
54 msg "tons of random stuff"
55 do_test 'echo -n 8 > file;
57 ln -s hardlink symlink;
58 echo -n 8 > identical file;
59 dd if=/dev/urandom of=randomfile bs=4096 count=10 &>/dev/null;
63 ln file anotherdir/anotherhardlink;
64 ln -s .. anotherdir/anothersymlink;
65 ln -s anothersymlink anotherdir/symlinktosymlink;
66 echo -n 33 > anotherfile;
69 ln file dir/subdir/file;
70 echo -n 8 > dir/subdir/file2;
71 ln dir/subdir/file dir/subdir/link;'
73 msg "timestamp before 1970 (before start of UNIX epoch)"
74 do_test 'touch -t 196901231234.56 file'