aboutsummaryrefslogtreecommitdiff
path: root/paludis/util/fs_path_TEST_setup.sh
blob: f54d01db7750cee7183ceb452d63411d0f70b197 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/usr/bin/env bash
# vim: set ft=sh sw=4 sts=4 et :

mkdir fs_path_TEST_dir || exit 2
cd fs_path_TEST_dir || exit 3
mkdir dir_a || exit 4
ln -s dir_a symlink_to_dir_a || exit 5
ln -s doesnotexist doesnotexist_symlink || exit 5
touch dir_a/file_in_a || exit 6

touch all_perms || exit 7
chmod 777 all_perms || exit 8
touch no_perms || exit 9
sleep 1
chmod 000 no_perms || exit 10

mkdir dir_a/dir_in_a

touch file_a || exit 13

echo -n '0123456789' > ten_bytes || exit 11
ln -s dir_a/file_in_a symlink_to_file_in_a || exit 12
sleep 1