mktest.sh - noice - small file browser (mirror / fork from 2f30.org) | |
git clone git://git.codemadness.org/noice | |
Log | |
Files | |
Refs | |
README | |
LICENSE | |
--- | |
mktest.sh (914B) | |
--- | |
1 #!/bin/sh | |
2 | |
3 # Create test files and directories | |
4 | |
5 test -e test && { | |
6 echo "Remove test and try again" | |
7 exit 1 | |
8 } | |
9 | |
10 mkdir test && cd test | |
11 | |
12 echo 'It works!' > normal.txt | |
13 echo 'Με δουλέβει;' > 'κοινό.txt' | |
14 ln -s normal.txt ln-normal.txt | |
15 ln -s normal.txt ln-normal | |
16 mkdir normal-dir | |
17 ln -s normal-dir ln-normal-dir | |
18 ln -s nowhere ln-nowhere | |
19 mkfifo mk-fifo | |
20 touch no-access && chmod 000 no-access | |
21 mkdir no-access-dir && chmod 000 no-access-dir | |
22 ln -s ../normal.txt normal-dir/ln-normal.txt | |
23 ln -s ../normal.txt normal-dir/ln-normal | |
24 echo 'int main(void) { *((char *)0) = 0; }' > ill.c | |
25 make ill > /dev/null | |
26 echo 'test/ill' > ill.sh | |
27 mkdir empty-dir | |
28 mkdir cage | |
29 echo 'chmod 000 test/cage' > cage/lock.sh | |
30 echo 'chmod 755 test/cage' > cage-unlock.sh | |
31 mkdir cage/lion | |
32 echo 'chmod 000 test/cage' > cage/lion/lock.sh | |
33 touch noice-0.1.log | |
34 touch noice-0.01.log | |
35 touch noice-0.2.log | |
36 touch noice-0.02.log | |
37 touch noice-0.10.log |