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.
 
 
 
 
 
 

34 lines
667 B

  1. #!/bin/bash
  2. TEST_ROOT=/tmp/libisofs_test
  3. rm -rf $TEST_ROOT
  4. #create test folders
  5. mkdir -p $TEST_ROOT
  6. mkdir -p $TEST_ROOT/dir1/dir11
  7. chmod 755 $TEST_ROOT/dir1
  8. chmod 755 $TEST_ROOT/dir1/dir11
  9. touch $TEST_ROOT/dir1/dir11/a
  10. echo "This file is to check correct file permissions. set them to 754" > $TEST_ROOT/dir1/permtest
  11. chmod 754 $TEST_ROOT/dir1/permtest
  12. mkdir -p $TEST_ROOT/dir2
  13. ln -s $TEST_ROOT/dir1 "$TEST_ROOT/link to dir1"
  14. echo "README file" > $TEST_ROOT/README
  15. chmod 555 $TEST_ROOT/README
  16. ln -s $TEST_ROOT/README "$TEST_ROOT/link to readme"
  17. echo "No read file" > $TEST_ROOT/no_read
  18. chmod 000 $TEST_ROOT/no_read
  19. if ! make check
  20. then
  21. exit 1
  22. fi
  23. test/test