Skip to content

Commit

Permalink
Fix plugin tests on darwin
Browse files Browse the repository at this point in the history
  • Loading branch information
shlevy committed Feb 13, 2018
1 parent 52c777a commit 3fe9767
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion tests/local.mk
Expand Up @@ -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)
2 changes: 1 addition & 1 deletion tests/plugins.sh
Expand Up @@ -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" ]
10 changes: 5 additions & 5 deletions 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

1 comment on commit 3fe9767

@copumpkin
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

❤️

Please sign in to comment.