From e81b120a117a8f29ce2a538ded4a388bddc12362 Mon Sep 17 00:00:00 2001 From: Thomas Levine <_@thomaslevine.com> Date: Sun, 28 Feb 2016 22:51:28 +0000 Subject: [PATCH] update counting tests for multi-shell testing --- .../Singular form is used for a single failure. | 2 -- .../Singular form is used for a single pass. | 2 -- .../There should be seven successes. | 3 --- .../There should be three failures. | 3 --- tests.old/Failing tests should be marked in red. | 3 --- .../Counting tests}/.test-one/fail | 0 .../Counting tests}/.test-one/pass | 0 .../Counting tests}/.test/faila | 0 .../Counting tests}/.test/failb | 0 .../Counting tests}/.test/failc | 0 .../Counting tests}/.test/passa | 0 .../Counting tests}/.test/passb | 0 .../Counting tests}/.test/passc | 0 .../Counting tests}/.test/passd | 0 .../Counting tests}/.test/passe | 0 .../Counting tests}/.test/passf | 0 .../Counting tests}/.test/passg | 0 .../Counting tests/Singular form is used for a single failure. | 2 ++ tests/Counting tests/Singular form is used for a single pass. | 2 ++ tests/Counting tests/There should be seven successes. | 2 ++ tests/Counting tests/There should be three failures. | 2 ++ 21 files changed, 8 insertions(+), 13 deletions(-) delete mode 100755 tests.old/Counts should be kept of successes and failures./Singular form is used for a single failure. delete mode 100755 tests.old/Counts should be kept of successes and failures./Singular form is used for a single pass. delete mode 100755 tests.old/Counts should be kept of successes and failures./There should be seven successes. delete mode 100755 tests.old/Counts should be kept of successes and failures./There should be three failures. delete mode 100755 tests.old/Failing tests should be marked in red. rename {tests.old/Counts should be kept of successes and failures. => tests/Counting tests}/.test-one/fail (100%) rename {tests.old/Counts should be kept of successes and failures. => tests/Counting tests}/.test-one/pass (100%) rename {tests.old/Counts should be kept of successes and failures. => tests/Counting tests}/.test/faila (100%) rename {tests.old/Counts should be kept of successes and failures. => tests/Counting tests}/.test/failb (100%) rename {tests.old/Counts should be kept of successes and failures. => tests/Counting tests}/.test/failc (100%) rename {tests.old/Counts should be kept of successes and failures. => tests/Counting tests}/.test/passa (100%) rename {tests.old/Counts should be kept of successes and failures. => tests/Counting tests}/.test/passb (100%) rename {tests.old/Counts should be kept of successes and failures. => tests/Counting tests}/.test/passc (100%) rename {tests.old/Counts should be kept of successes and failures. => tests/Counting tests}/.test/passd (100%) rename {tests.old/Counts should be kept of successes and failures. => tests/Counting tests}/.test/passe (100%) rename {tests.old/Counts should be kept of successes and failures. => tests/Counting tests}/.test/passf (100%) rename {tests.old/Counts should be kept of successes and failures. => tests/Counting tests}/.test/passg (100%) create mode 100755 tests/Counting tests/Singular form is used for a single failure. create mode 100755 tests/Counting tests/Singular form is used for a single pass. create mode 100755 tests/Counting tests/There should be seven successes. create mode 100755 tests/Counting tests/There should be three failures. diff --git a/tests.old/Counts should be kept of successes and failures./Singular form is used for a single failure. b/tests.old/Counts should be kept of successes and failures./Singular form is used for a single failure. deleted file mode 100755 index 917f91b..0000000 --- a/tests.old/Counts should be kept of successes and failures./Singular form is used for a single failure. +++ /dev/null @@ -1,2 +0,0 @@ -#!/bin/sh -../../urchin .test-one | grep '1 test failed' diff --git a/tests.old/Counts should be kept of successes and failures./Singular form is used for a single pass. b/tests.old/Counts should be kept of successes and failures./Singular form is used for a single pass. deleted file mode 100755 index bfa5c52..0000000 --- a/tests.old/Counts should be kept of successes and failures./Singular form is used for a single pass. +++ /dev/null @@ -1,2 +0,0 @@ -#!/bin/sh -../../urchin .test-one | grep '1 test passed' diff --git a/tests.old/Counts should be kept of successes and failures./There should be seven successes. b/tests.old/Counts should be kept of successes and failures./There should be seven successes. deleted file mode 100755 index 1a55335..0000000 --- a/tests.old/Counts should be kept of successes and failures./There should be seven successes. +++ /dev/null @@ -1,3 +0,0 @@ -#!/bin/sh - -../../urchin .test | grep '7 tests passed.' diff --git a/tests.old/Counts should be kept of successes and failures./There should be three failures. b/tests.old/Counts should be kept of successes and failures./There should be three failures. deleted file mode 100755 index 2ee1c96..0000000 --- a/tests.old/Counts should be kept of successes and failures./There should be three failures. +++ /dev/null @@ -1,3 +0,0 @@ -#!/bin/sh - -../../urchin .test | grep '3 tests failed.' diff --git a/tests.old/Failing tests should be marked in red. b/tests.old/Failing tests should be marked in red. deleted file mode 100755 index bd12a32..0000000 --- a/tests.old/Failing tests should be marked in red. +++ /dev/null @@ -1,3 +0,0 @@ -#!/bin/sh - -../urchin .example-test-suite | grep '31' diff --git a/tests.old/Counts should be kept of successes and failures./.test-one/fail b/tests/Counting tests/.test-one/fail similarity index 100% rename from tests.old/Counts should be kept of successes and failures./.test-one/fail rename to tests/Counting tests/.test-one/fail diff --git a/tests.old/Counts should be kept of successes and failures./.test-one/pass b/tests/Counting tests/.test-one/pass similarity index 100% rename from tests.old/Counts should be kept of successes and failures./.test-one/pass rename to tests/Counting tests/.test-one/pass diff --git a/tests.old/Counts should be kept of successes and failures./.test/faila b/tests/Counting tests/.test/faila similarity index 100% rename from tests.old/Counts should be kept of successes and failures./.test/faila rename to tests/Counting tests/.test/faila diff --git a/tests.old/Counts should be kept of successes and failures./.test/failb b/tests/Counting tests/.test/failb similarity index 100% rename from tests.old/Counts should be kept of successes and failures./.test/failb rename to tests/Counting tests/.test/failb diff --git a/tests.old/Counts should be kept of successes and failures./.test/failc b/tests/Counting tests/.test/failc similarity index 100% rename from tests.old/Counts should be kept of successes and failures./.test/failc rename to tests/Counting tests/.test/failc diff --git a/tests.old/Counts should be kept of successes and failures./.test/passa b/tests/Counting tests/.test/passa similarity index 100% rename from tests.old/Counts should be kept of successes and failures./.test/passa rename to tests/Counting tests/.test/passa diff --git a/tests.old/Counts should be kept of successes and failures./.test/passb b/tests/Counting tests/.test/passb similarity index 100% rename from tests.old/Counts should be kept of successes and failures./.test/passb rename to tests/Counting tests/.test/passb diff --git a/tests.old/Counts should be kept of successes and failures./.test/passc b/tests/Counting tests/.test/passc similarity index 100% rename from tests.old/Counts should be kept of successes and failures./.test/passc rename to tests/Counting tests/.test/passc diff --git a/tests.old/Counts should be kept of successes and failures./.test/passd b/tests/Counting tests/.test/passd similarity index 100% rename from tests.old/Counts should be kept of successes and failures./.test/passd rename to tests/Counting tests/.test/passd diff --git a/tests.old/Counts should be kept of successes and failures./.test/passe b/tests/Counting tests/.test/passe similarity index 100% rename from tests.old/Counts should be kept of successes and failures./.test/passe rename to tests/Counting tests/.test/passe diff --git a/tests.old/Counts should be kept of successes and failures./.test/passf b/tests/Counting tests/.test/passf similarity index 100% rename from tests.old/Counts should be kept of successes and failures./.test/passf rename to tests/Counting tests/.test/passf diff --git a/tests.old/Counts should be kept of successes and failures./.test/passg b/tests/Counting tests/.test/passg similarity index 100% rename from tests.old/Counts should be kept of successes and failures./.test/passg rename to tests/Counting tests/.test/passg diff --git a/tests/Counting tests/Singular form is used for a single failure. b/tests/Counting tests/Singular form is used for a single failure. new file mode 100755 index 0000000..5303b0b --- /dev/null +++ b/tests/Counting tests/Singular form is used for a single failure. @@ -0,0 +1,2 @@ +#!/bin/sh +$TEST_SHELL ../../urchin -s sh .test-one | grep '1 test failed' diff --git a/tests/Counting tests/Singular form is used for a single pass. b/tests/Counting tests/Singular form is used for a single pass. new file mode 100755 index 0000000..335f83b --- /dev/null +++ b/tests/Counting tests/Singular form is used for a single pass. @@ -0,0 +1,2 @@ +#!/bin/sh +$TEST_SHELL ../../urchin -s sh .test-one | grep '1 test passed' diff --git a/tests/Counting tests/There should be seven successes. b/tests/Counting tests/There should be seven successes. new file mode 100755 index 0000000..3e32665 --- /dev/null +++ b/tests/Counting tests/There should be seven successes. @@ -0,0 +1,2 @@ +#!/bin/sh +$TEST_SHELL ../../urchin -s sh .test | grep '7 tests passed.' diff --git a/tests/Counting tests/There should be three failures. b/tests/Counting tests/There should be three failures. new file mode 100755 index 0000000..e98ed76 --- /dev/null +++ b/tests/Counting tests/There should be three failures. @@ -0,0 +1,2 @@ +#!/bin/sh +$TEST_SHELL ../../urchin -s sh .test | grep '3 tests failed.'