diff options
author | Lukas Fleischer <calcurse@cryptocrack.de> | 2012-01-21 14:11:37 +0100 |
---|---|---|
committer | Lukas Fleischer <calcurse@cryptocrack.de> | 2012-01-22 00:13:35 +0100 |
commit | 31b4c71eb2610471cb0598338f510633f407477f (patch) | |
tree | cbb668969a7cc63c6908662c6894068aa71ad08d /test/Makefile.am | |
parent | d34e6502e91e9a301ce6b1c023adc881dbfe889c (diff) | |
download | calcurse-31b4c71eb2610471cb0598338f510633f407477f.zip |
test/: Add three basic self tests
* true-001.sh: Always returns true - this should never ever fail.
* run-test-001.sh: Invokes run-test, passing itself as a parameter.
Subsequently, it outputs the very same (hardcoded) expected and actual
values.
* run-test-002.sh: Tests run-test's negative assertion feature in a way
similar to run-test-001.sh. However, output different (hardcoded)
expected and actual values and invoke run-test with the negative test
prefix ('!').
Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
Diffstat (limited to 'test/Makefile.am')
-rw-r--r-- | test/Makefile.am | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/Makefile.am b/test/Makefile.am index 8b04cb8..a478a8b 100644 --- a/test/Makefile.am +++ b/test/Makefile.am @@ -1,6 +1,12 @@ AUTOMAKE_OPTIONS = foreign +TESTS = \ + true-001.sh \ + run-test-001.sh \ + run-test-002.sh + check_PROGRAMS = run-test +check_SCRIPTS = $(TESTS) run_test_SOURCES = run-test.c |