mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-27 08:16:14 +02:00
bfb9eb87fe
- Try not to put cryptic "99" in many places Factor out `exit 99` into `skipTest` function - Alows make sure skipping a test is done with a reason `skipTest` takes a mandatory argument - Separate pure conditionals vs side-effectful test skipping. "require daemon" already had this, but "sandbox support" did not.
9 lines
245 B
Bash
9 lines
245 B
Bash
source common.sh
|
|
|
|
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)
|
|
|
|
[ "$res"x = "nullx" ]
|