Added command-line tests

This commit is contained in:
Snaipe 2015-03-11 19:42:32 +01:00
parent 61dc1b8c6c
commit 1127e5ebe3
6 changed files with 19 additions and 0 deletions

1
.gitignore vendored
View file

@ -6,6 +6,7 @@
!*.c
!*.h
!*.rst
!samples/tests/*.sh
!LICENSE
!HEADER

View file

@ -6,6 +6,16 @@ TESTS = \
asserts \
simple
TESTS += tests/tap_test.sh \
tests/early_exit.sh \
tests/verbose.sh \
tests/help.sh
tests/tap_test.sh: simple
tests/early_exit.sh: simple
tests/verbose.sh: simple
tests/help.sh: simple
TESTS_ENVIRONMENT = CRITERION_ALWAYS_SUCCEED=1
check_PROGRAMS = $(TESTS)

2
samples/tests/early_exit.sh Executable file
View file

@ -0,0 +1,2 @@
#!/bin/sh
./simple --no-early-exit --always-succeed

2
samples/tests/help.sh Executable file
View file

@ -0,0 +1,2 @@
#!/bin/sh
./simple --help

2
samples/tests/tap_test.sh Executable file
View file

@ -0,0 +1,2 @@
#!/bin/sh
./simple --tap --always-succeed

2
samples/tests/verbose.sh Executable file
View file

@ -0,0 +1,2 @@
#!/bin/sh
./simple --verbose --always-succeed