Added command-line tests
This commit is contained in:
parent
61dc1b8c6c
commit
1127e5ebe3
6 changed files with 19 additions and 0 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -6,6 +6,7 @@
|
|||
!*.c
|
||||
!*.h
|
||||
!*.rst
|
||||
!samples/tests/*.sh
|
||||
|
||||
!LICENSE
|
||||
!HEADER
|
||||
|
|
|
@ -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
2
samples/tests/early_exit.sh
Executable file
|
@ -0,0 +1,2 @@
|
|||
#!/bin/sh
|
||||
./simple --no-early-exit --always-succeed
|
2
samples/tests/help.sh
Executable file
2
samples/tests/help.sh
Executable file
|
@ -0,0 +1,2 @@
|
|||
#!/bin/sh
|
||||
./simple --help
|
2
samples/tests/tap_test.sh
Executable file
2
samples/tests/tap_test.sh
Executable file
|
@ -0,0 +1,2 @@
|
|||
#!/bin/sh
|
||||
./simple --tap --always-succeed
|
2
samples/tests/verbose.sh
Executable file
2
samples/tests/verbose.sh
Executable file
|
@ -0,0 +1,2 @@
|
|||
#!/bin/sh
|
||||
./simple --verbose --always-succeed
|
Loading…
Add table
Reference in a new issue