My build of nnn with minor changes
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

33 lines
811 B

  1. #!/bin/sh
  2. # Create test files and directories
  3. test -e test && {
  4. echo "Remove test and try again"
  5. exit 1
  6. }
  7. mkdir test && cd test
  8. echo 'It works!' > normal.txt
  9. echo 'Με δουλέβει;' > 'κοινό.txt'
  10. ln -s normal.txt ln-normal.txt
  11. ln -s normal.txt ln-normal
  12. mkdir normal-dir
  13. ln -s normal-dir ln-normal-dir
  14. ln -s nowhere ln-nowhere
  15. mkfifo mk-fifo
  16. touch no-access && chmod 000 no-access
  17. mkdir no-access-dir && chmod 000 no-access-dir
  18. ln -s ../normal.txt normal-dir/ln-normal.txt
  19. ln -s ../normal.txt normal-dir/ln-normal
  20. echo 'int main(void) { *((char *)0) = 0; }' > ill.c
  21. make ill > /dev/null
  22. echo 'test/ill' > ill.sh
  23. mkdir empty-dir
  24. mkdir cage
  25. echo 'chmod 000 test/cage' > cage/lock.sh
  26. echo 'chmod 755 test/cage' > cage-unlock.sh
  27. mkdir cage/lion
  28. echo 'chmod 000 test/cage' > cage/lion/lock.sh