nix/tests/functional/plugins.sh
John Ericson 34fe2478a2 Build Functional tests with Meson
Co-Authored-By: Qyriad <qyriad@qyriad.me>
Co-authored-by: Robert Hensing <roberth@users.noreply.github.com>
2024-08-14 15:35:40 -04:00

13 lines
271 B
Bash
Executable File

#!/usr/bin/env bash
source common.sh
for ext in so dylib; do
plugin="$PWD/plugins/libplugintest.$ext"
[[ -f "$plugin" ]] && break
done
res=$(nix --option setting-set true --option plugin-files "$plugin" eval --expr builtins.anotherNull)
[ "$res"x = "nullx" ]