Mike Gerwitz

Activist for User Freedom

aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike Gerwitz <mike.gerwitz@rtspecialty.com>2018-04-10 15:02:32 -0400
committerMike Gerwitz <mike.gerwitz@rtspecialty.com>2018-04-10 15:56:38 -0400
commit42d192af792f5890a6d707caee5cb3c910a5eb9b (patch)
tree2b886313d8cf6798169ee46cf0c0b2eae50a2f6f /progtest/test/_stub/good.yml
parent8a17d0c6c575be59ace4d6b45fc59f972058a0ea (diff)
downloadtame-42d192af792f5890a6d707caee5cb3c910a5eb9b.tar.gz
tame-42d192af792f5890a6d707caee5cb3c910a5eb9b.tar.bz2
tame-42d192af792f5890a6d707caee5cb3c910a5eb9b.zip
progtest: Exit with non-zero status on test failure
Not a very useful test runner if it doesn't ever fail, now is it? * Makefile.am (check): Invoke new test/runner-test. Depend on modindex. * bin/runner.js: Exit with non-zero status on assertion failure. * test/_stub: Add stub program with good and bad test cases to test exit code. * test/runner-test: Add system test.
Diffstat (limited to 'progtest/test/_stub/good.yml')
-rw-r--r--progtest/test/_stub/good.yml7
1 files changed, 7 insertions, 0 deletions
diff --git a/progtest/test/_stub/good.yml b/progtest/test/_stub/good.yml
new file mode 100644
index 0000000..a4c682e
--- /dev/null
+++ b/progtest/test/_stub/good.yml
@@ -0,0 +1,7 @@
+# Simple test case that should succeed
+
+- description: Success
+ data:
+ in: 1
+ expect:
+ out: 1