From d2290911dfe4a838f3914be8fb33c11aa6cca7cf Mon Sep 17 00:00:00 2001 From: Thomas Levine <_@thomaslevine.com> Date: Wed, 2 Mar 2016 22:01:42 +0000 Subject: [PATCH] tests for skipping dirs and files --- tests/Skipping/dir+x | 3 +++ tests/Skipping/dir-x | 3 +++ tests/Skipping/file+x | 3 +++ tests/Skipping/file-x | 3 +++ tests/Skipping/setup | 3 +++ tests/Skipping/teardown | 1 + 6 files changed, 16 insertions(+) create mode 100755 tests/Skipping/dir+x create mode 100755 tests/Skipping/dir-x create mode 100755 tests/Skipping/file+x create mode 100755 tests/Skipping/file-x create mode 100644 tests/Skipping/setup create mode 100644 tests/Skipping/teardown diff --git a/tests/Skipping/dir+x b/tests/Skipping/dir+x new file mode 100755 index 0000000..d5a0510 --- /dev/null +++ b/tests/Skipping/dir+x @@ -0,0 +1,3 @@ +mkdir $testsuite/dir+x +chmod +x $testsuite/dir+x +! ../../urchin -t $testsuite | grep SKIP diff --git a/tests/Skipping/dir-x b/tests/Skipping/dir-x new file mode 100755 index 0000000..09ced25 --- /dev/null +++ b/tests/Skipping/dir-x @@ -0,0 +1,3 @@ +touch $testsuite/dir-x +chmod -x $testsuite/dir-x +../../urchin -t $testsuite | grep SKIP diff --git a/tests/Skipping/file+x b/tests/Skipping/file+x new file mode 100755 index 0000000..23ac147 --- /dev/null +++ b/tests/Skipping/file+x @@ -0,0 +1,3 @@ +touch $testsuite/file+x +chmod +x $testsuite/file+x +! ../../urchin -t $testsuite | grep SKIP diff --git a/tests/Skipping/file-x b/tests/Skipping/file-x new file mode 100755 index 0000000..6135684 --- /dev/null +++ b/tests/Skipping/file-x @@ -0,0 +1,3 @@ +touch $testsuite/file-x +chmod -x $testsuite/file-x +../../urchin -t $testsuite | grep SKIP diff --git a/tests/Skipping/setup b/tests/Skipping/setup new file mode 100644 index 0000000..6c12883 --- /dev/null +++ b/tests/Skipping/setup @@ -0,0 +1,3 @@ +export tmp=$(mktemp -d) +export testsuite=$tmp/test +touch $testsuite/.urchin diff --git a/tests/Skipping/teardown b/tests/Skipping/teardown new file mode 100644 index 0000000..36c0fb7 --- /dev/null +++ b/tests/Skipping/teardown @@ -0,0 +1 @@ +rm -R $testsuite