diff --git a/tests/local.mk b/tests/local.mk index 51bc09dd4..2a4832e13 100644 --- a/tests/local.mk +++ b/tests/local.mk @@ -32,4 +32,4 @@ tests-environment = NIX_REMOTE= $(bash) -e clean-files += $(d)/common.sh -installcheck: $(d)/common.sh $(d)/plugins/plugintest.so +installcheck: $(d)/common.sh $(d)/plugins/libplugintest.$(SO_EXT) diff --git a/tests/plugins.sh b/tests/plugins.sh index 23caf04f3..0fad4f773 100644 --- a/tests/plugins.sh +++ b/tests/plugins.sh @@ -2,6 +2,6 @@ source common.sh set -o pipefail -res=$(nix eval '(builtins.anotherNull)' --option plugin-files $PWD/plugins/plugintest.so) +res=$(nix eval '(builtins.anotherNull)' --option plugin-files $PWD/plugins/libplugintest*) [ "$res"x = "nullx" ] diff --git a/tests/plugins/local.mk b/tests/plugins/local.mk index a5f19b087..1d2bac052 100644 --- a/tests/plugins/local.mk +++ b/tests/plugins/local.mk @@ -1,9 +1,9 @@ -libraries += plugintest +libraries += libplugintest -plugintest_DIR := $(d) +libplugintest_DIR := $(d) -plugintest_SOURCES := $(d)/plugintest.cc +libplugintest_SOURCES := $(d)/plugintest.cc -plugintest_ALLOW_UNDEFINED := 1 +libplugintest_ALLOW_UNDEFINED := 1 -plugintest_EXCLUDE_FROM_LIBRARY_LIST := 1 +libplugintest_EXCLUDE_FROM_LIBRARY_LIST := 1