From 878f29cecb22316c9970c93c1a56c47b26e4492f Mon Sep 17 00:00:00 2001 From: Thomas Levine Date: Thu, 11 Oct 2012 00:17:44 -0400 Subject: [PATCH] check failureness --- tests/.example-test-suite/this should fail | 3 +++ tests/.example-test-suite/this should pass | 3 +++ tests/failures fail | 3 +++ tests/success succeed | 3 +++ 4 files changed, 12 insertions(+) create mode 100755 tests/.example-test-suite/this should fail create mode 100755 tests/.example-test-suite/this should pass create mode 100755 tests/failures fail create mode 100755 tests/success succeed diff --git a/tests/.example-test-suite/this should fail b/tests/.example-test-suite/this should fail new file mode 100755 index 0000000..a92ed1c --- /dev/null +++ b/tests/.example-test-suite/this should fail @@ -0,0 +1,3 @@ +#!/bin/sh + +[ -f / ] diff --git a/tests/.example-test-suite/this should pass b/tests/.example-test-suite/this should pass new file mode 100755 index 0000000..4132fb2 --- /dev/null +++ b/tests/.example-test-suite/this should pass @@ -0,0 +1,3 @@ +#!/bin/sh + +[ -e / ] diff --git a/tests/failures fail b/tests/failures fail new file mode 100755 index 0000000..bd12a32 --- /dev/null +++ b/tests/failures fail @@ -0,0 +1,3 @@ +#!/bin/sh + +../urchin .example-test-suite | grep '31' diff --git a/tests/success succeed b/tests/success succeed new file mode 100755 index 0000000..71daab9 --- /dev/null +++ b/tests/success succeed @@ -0,0 +1,3 @@ +#!/bin/sh + +../urchin .example-test-suite | grep '32'