From 6685bc6182a13661b17c62f1bd000fff9d91ab5f Mon Sep 17 00:00:00 2001 From: Thomas Levine Date: Mon, 8 Oct 2012 08:59:14 -0400 Subject: [PATCH] run executable stuff --- tests/test_filesystem/fixtures/bladyblah | 1 + tests/test_filesystem/test_bin_exists | 3 +++ tests/test_filesystem/test_blah_in_file | 3 +++ tests/test_filesystem/test_no_aoeuaoeuaoeu | 3 +++ tests/test_filesystem/test_root_exists | 3 +++ tests/test_something/fixtures/thingy | 0 tests/test_something/test_thing_exists | 0 urchin | 6 +++--- 8 files changed, 16 insertions(+), 3 deletions(-) create mode 100644 tests/test_filesystem/fixtures/bladyblah create mode 100755 tests/test_filesystem/test_bin_exists create mode 100755 tests/test_filesystem/test_blah_in_file create mode 100755 tests/test_filesystem/test_no_aoeuaoeuaoeu create mode 100755 tests/test_filesystem/test_root_exists delete mode 100644 tests/test_something/fixtures/thingy delete mode 100644 tests/test_something/test_thing_exists diff --git a/tests/test_filesystem/fixtures/bladyblah b/tests/test_filesystem/fixtures/bladyblah new file mode 100644 index 0000000..907b308 --- /dev/null +++ b/tests/test_filesystem/fixtures/bladyblah @@ -0,0 +1 @@ +blah diff --git a/tests/test_filesystem/test_bin_exists b/tests/test_filesystem/test_bin_exists new file mode 100755 index 0000000..895bbfd --- /dev/null +++ b/tests/test_filesystem/test_bin_exists @@ -0,0 +1,3 @@ +#!/bin/sh + +test -d /bin diff --git a/tests/test_filesystem/test_blah_in_file b/tests/test_filesystem/test_blah_in_file new file mode 100755 index 0000000..0e0f973 --- /dev/null +++ b/tests/test_filesystem/test_blah_in_file @@ -0,0 +1,3 @@ +#!/bin/sh + +grep blah fixtures/bladyblah > /dev/null diff --git a/tests/test_filesystem/test_no_aoeuaoeuaoeu b/tests/test_filesystem/test_no_aoeuaoeuaoeu new file mode 100755 index 0000000..d05977f --- /dev/null +++ b/tests/test_filesystem/test_no_aoeuaoeuaoeu @@ -0,0 +1,3 @@ +#!/bin/sh + +! test -e /aoeuaoeuaoeu diff --git a/tests/test_filesystem/test_root_exists b/tests/test_filesystem/test_root_exists new file mode 100755 index 0000000..443f08d --- /dev/null +++ b/tests/test_filesystem/test_root_exists @@ -0,0 +1,3 @@ +#!/bin/sh + +test -d / diff --git a/tests/test_something/fixtures/thingy b/tests/test_something/fixtures/thingy deleted file mode 100644 index e69de29..0000000 diff --git a/tests/test_something/test_thing_exists b/tests/test_something/test_thing_exists deleted file mode 100644 index e69de29..0000000 diff --git a/urchin b/urchin index c4f0fe9..5ac679f 100755 --- a/urchin +++ b/urchin @@ -12,10 +12,10 @@ recurse() { done [ -f teardown ] && sh teardown ) - elif [ -f "$potential_test" ] + elif [ -x "$potential_test" ] then - sh "$potential_test" - if [ "$@" = '0' ] + ./"$potential_test" + if [ "$?" = '0' ] then # Print a '.' echo -n .