tests for skipping dirs and files

This commit is contained in:
Thomas Levine 2016-03-02 22:01:42 +00:00
parent cf0c5b3233
commit d2290911df
6 changed files with 16 additions and 0 deletions

3
tests/Skipping/dir+x Executable file
View File

@ -0,0 +1,3 @@
mkdir $testsuite/dir+x
chmod +x $testsuite/dir+x
! ../../urchin -t $testsuite | grep SKIP

3
tests/Skipping/dir-x Executable file
View File

@ -0,0 +1,3 @@
touch $testsuite/dir-x
chmod -x $testsuite/dir-x
../../urchin -t $testsuite | grep SKIP

3
tests/Skipping/file+x Executable file
View File

@ -0,0 +1,3 @@
touch $testsuite/file+x
chmod +x $testsuite/file+x
! ../../urchin -t $testsuite | grep SKIP

3
tests/Skipping/file-x Executable file
View File

@ -0,0 +1,3 @@
touch $testsuite/file-x
chmod -x $testsuite/file-x
../../urchin -t $testsuite | grep SKIP

3
tests/Skipping/setup Normal file
View File

@ -0,0 +1,3 @@
export tmp=$(mktemp -d)
export testsuite=$tmp/test
touch $testsuite/.urchin

1
tests/Skipping/teardown Normal file
View File

@ -0,0 +1 @@
rm -R $testsuite