Skip to content

Commit 28b72cd

Browse files
committed
Set the LD_LIBRARY_PATH when running tests
This way when you disable rpaths you can still run `make check`
1 parent c3ccaac commit 28b72cd

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

mk/tests.mk

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,9 +116,11 @@ endif
116116

117117
# Run the compiletest runner itself under valgrind
118118
ifdef CTEST_VALGRIND
119-
CFG_RUN_CTEST_$(1)=$$(call CFG_RUN_TEST_$$(CFG_BUILD),$$(2),$$(3))
119+
CFG_RUN_CTEST_$(1)=$$(RPATH_VAR$$(1)_T_$$(3)_H_$$(3)) \
120+
$$(call CFG_RUN_TEST_$$(CFG_BUILD),$$(2),$$(3))
120121
else
121-
CFG_RUN_CTEST_$(1)=$$(call CFG_RUN_$$(CFG_BUILD),$$(TLIB$$(1)_T_$$(3)_H_$$(3)),$$(2))
122+
CFG_RUN_CTEST_$(1)=$$(RPATH_VAR$$(1)_T_$$(3)_H_$$(3)) \
123+
$$(call CFG_RUN_$$(CFG_BUILD),$$(TLIB$$(1)_T_$$(3)_H_$$(3)),$$(2))
122124
endif
123125

124126
endef

0 commit comments

Comments
 (0)