databases/galera: Split compilation from tests run
Previously tests were ran intermixed with compilation commands in parallel (scons -jN). Running tests in parallel produces some sporadic failures which would make the compilation fail. With this change, when compiling ("make" in the ports directory) "scons -j8 ... tests=0" is used to request compilation only. To run the tests do "make test" in the ports directory. It will run "scons ... tests=1" (without -jN) and will only run the tests.
This commit is contained in:
parent
8857a2980f
commit
55c1a72fe5
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=444766
1 changed files with 7 additions and 4 deletions
|
@ -37,13 +37,16 @@ GH_ACCOUNT= codership
|
|||
GH_TAGNAME?= release_${DISTVERSION}
|
||||
|
||||
LDFLAGS+= -lboost_program_options -lboost_system
|
||||
MAKE_ARGS+= --config=force \
|
||||
deterministic_tests=1 \
|
||||
revno=${GH_TAGNAME} \
|
||||
system_asio=0
|
||||
MAKE_ARGS+= revno=${GH_TAGNAME} system_asio=0 tests=0
|
||||
|
||||
USE_RC_SUBR= garb.sh
|
||||
|
||||
# Abuse TEST_TARGET to append tests=1 (which is not a target, strictly
|
||||
# speaking) at the end of the "scons ..." command so that it overrides
|
||||
# tests=0 from ${MAKE_ARGS}. To rerun the tests a second time, remove
|
||||
# all *.passed files: find ./work -name *.passed -print -delete
|
||||
TEST_TARGET= deterministic_tests=1 tests=1
|
||||
|
||||
PLIST_FILES= bin/garbd \
|
||||
lib/libgalera.so \
|
||||
lib/libgalera_smm.so
|
||||
|
|
Loading…
Reference in a new issue