Skip to content
Snippets Groups Projects
Commit 8e5375ad authored by Marek Vavruša's avatar Marek Vavruša
Browse files

tests: moved integration deps

parent e5a41395
Branches
Tags
No related merge requests found
......@@ -15,7 +15,13 @@ _test_integration_DEPEND := $(libmock_calls)
$(eval $(call make_shared,_test_integration,tests))
# Targets
ifeq ($(PLATFORM),Darwin)
preload_syms := DYLD_INSERT_LIBRARIES=tests/libmock_calls.dylib
else
preload_syms := LD_PRELOAD=tests/libmock_cals.so
endif
check-integration: $(libmock_calls) $(_test_integration)
$(call preload_LIBS) tests/test_integration.py tests/testdata
$(call preload_LIBS) $(preload_syms) tests/test_integration.py tests/testdata
.PHONY: check-integration
......@@ -2,11 +2,9 @@
preload_PATH := tests
ifeq ($(PLATFORM),Darwin)
preload_LIBS := @DYLD_FORCE_FLAT_NAMESPACE=1 \
DYLD_INSERT_LIBRARIES=tests/libmock_calls.dylib \
DYLD_LIBRARY_PATH="$(preload_PATH):${DYLD_LIBRARY_PATH}"
else
preload_LIBS := @LD_LIBRARY_PATH="$(preload_PATH):${LD_LIBRARY_PATH}" \
LD_PRELOAD=tests/libmock_calls.so
preload_LIBS := @LD_LIBRARY_PATH="$(preload_PATH):${LD_LIBRARY_PATH}"
endif
# Unit tests
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment