aboutsummaryrefslogtreecommitdiff
path: root/tests/functional/plugins.sh
diff options
context:
space:
mode:
authorQyriad <qyriad@qyriad.me>2024-04-03 17:38:09 -0600
committerQyriad <qyriad@qyriad.me>2024-04-04 20:43:38 -0600
commit07e1ddc23d333c0858959919c309df918dabae17 (patch)
tree383bdd402fc1aaec33f0607ddf74220b0d70d51d /tests/functional/plugins.sh
parent9166babbaf5882ad2cfe1c7c9b30de1c153d70a8 (diff)
meson: add missing tests: ca, dyn-drv, plugins, libstoreconsumer
Change-Id: I6a74ebaf93697cb99aadd6b51538c2766b0a808a
Diffstat (limited to 'tests/functional/plugins.sh')
-rw-r--r--tests/functional/plugins.sh11
1 files changed, 9 insertions, 2 deletions
diff --git a/tests/functional/plugins.sh b/tests/functional/plugins.sh
index 491b933b7..5934b9b0c 100644
--- a/tests/functional/plugins.sh
+++ b/tests/functional/plugins.sh
@@ -4,12 +4,19 @@ if [[ $BUILD_SHARED_LIBS != 1 ]]; then
skipTest "Plugins are not supported"
fi
-res=$(nix --option setting-set true --option plugin-files $PWD/plugins/libplugintest.* eval --expr builtins.anotherNull)
+# FIXME(Qyriad): this is working around Meson putting `libplugintest.so.p` in the same place
+# as `libplugintest.so`, so `libplugintest.*` grabs both.
+libext=so
+if [[ "$(uname -s)" == Darwin ]]; then
+ libext=dylib
+fi
+
+res=$(nix --option setting-set true --option plugin-files "$PWD/plugins/libplugintest.$libext" eval --expr builtins.anotherNull)
[ "$res"x = "nullx" ]
# Plugin load failing due to missing symbols
-res=$(nix --option plugin-files $PWD/plugins/libplugintestfail.* eval --expr '1234 + 5' 2>&1)
+res=$(nix --option plugin-files "$PWD/plugins/libplugintestfail.$libext" eval --expr '1234 + 5' 2>&1)
# We expect this to succeed evaluating
echo "$res" | grep 1239 >/dev/null
# On Linux, we expect this to print some failure of dlopen.