mirror of
https://gitlab.com/cryptsetup/cryptsetup.git
synced 2026-01-06 15:35:29 +01:00
Local tests: Add option to avoid treating skipped tests as success.
`make -f Makefile.localtest tests CRYPTSETUP_PATH=/sbin TESTSUITE_NOSKIP=y` exits with status 77 upon the first skipped test. This can be useful when a full test coverage is desired. As before the test suite exits (with status 1) as soon as a failed (or skipped when the TESTSUITE_NOSKIP environment variable is defined to non-empty string) test is encountered.
This commit is contained in:
committed by
Milan Broz
parent
cbc143bf95
commit
1592511fdb
@@ -1,6 +1,7 @@
|
||||
#
|
||||
# Makefile to run tests with system binaries
|
||||
# USE: make -f Makefile.localtest tests CRYPTSETUP_PATH=/sbin
|
||||
# (append TESTSUITE_NOSKIP=y to avoid treating skipped tests as success)
|
||||
#
|
||||
CPPFLAGS=-I../lib/ -I../lib/luks1 -DHAVE_DECL_DM_TASK_RETRY_REMOVE -DKERNEL_KEYRING -DHAVE_SYS_SYSMACROS_H -DNO_CRYPTSETUP_PATH
|
||||
CFLAGS=-O2 -g -Wall
|
||||
@@ -29,7 +30,7 @@ tests: differ $(TESTS)
|
||||
@for test in $(sort $(TESTS)); do \
|
||||
echo [$$test]; \
|
||||
./$$test; \
|
||||
[ $$? -ne 77 -a $$? -ne 0 ] && exit 1; \
|
||||
[ $(if $(TESTSUITE_NOSKIP),,$$? -ne 77 -a) $$? -ne 0 ] && exit 1; \
|
||||
true; \
|
||||
done;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user