aboutsummaryrefslogtreecommitdiff
path: root/tests/plugins.sh
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2018-02-13 12:15:27 +0100
committerEelco Dolstra <edolstra@gmail.com>2018-02-13 12:15:27 +0100
commit1c10a74c73e710d164d9e5c527f98b309a6f7b2c (patch)
tree11d7729c31624fe452ef8ee1727bc16b229a2583 /tests/plugins.sh
parentc5cc57e96220cd3ed915875f3b1eeb2ba1f98a30 (diff)
parent88cd2d41acb994684a3e4ead1b1676019f43b4b6 (diff)
Merge branch 'plugins' of https://github.com/shlevy/nix
Diffstat (limited to 'tests/plugins.sh')
-rw-r--r--tests/plugins.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/plugins.sh b/tests/plugins.sh
new file mode 100644
index 000000000..6d18d1da0
--- /dev/null
+++ b/tests/plugins.sh
@@ -0,0 +1,7 @@
+source common.sh
+
+set -o pipefail
+
+res=$(nix eval '(builtins.constNull true)' --option plugin-files $PWD/plugins/plugintest.so)
+
+[ "$res"x = "nullx" ]