Skip to content

Commit b26ddf0

Browse files
authored
tests: gate t-verify-self-spf on TEST_SPF conditional (#412)
The test requires SPFSelfValidate support compiled in (--with-spf) but was included unconditionally in LIVE_TESTS, causing it to always fail rather than skip when SPF support is absent. Move it inside TEST_SPF so it only runs when the feature is actually enabled. Fixes #411.
1 parent 851e006 commit b26ddf0

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

opendmarc/tests/Makefile.am

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,13 @@ if LIVE_TESTS
66
check_SCRIPTS += t-verify-multi-from-reject t-verify-multi-from-malformed \
77
t-verify-nodata t-verify-nodata-reject \
88
t-verify-unspec t-verify-received-spf-good t-verify-received-spf-bad \
9-
t-verify-self-spf t-verify-authservid-jobid
9+
t-verify-authservid-jobid
10+
endif
11+
12+
if TEST_SPF
13+
if LIVE_TESTS
14+
check_SCRIPTS += t-verify-self-spf
15+
endif
1016
endif
1117

1218
TESTS = $(check_SCRIPTS)

0 commit comments

Comments
 (0)