aboutsummaryrefslogtreecommitdiff
path: root/tests/structured-attrs.sh
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2017-10-25 13:01:50 +0200
committerEelco Dolstra <edolstra@gmail.com>2017-10-25 13:01:50 +0200
commit2d5b1b24bf70a498e4c0b378704cfdb6471cc699 (patch)
tree80e7c28cb3431ed6a3fbb080f769f9016ea564c5 /tests/structured-attrs.sh
parentac12517f3e969db9fb4834fdfd2da63101ffd3de (diff)
Pass lists/attrsets to bash as (associative) arrays
Diffstat (limited to 'tests/structured-attrs.sh')
-rw-r--r--tests/structured-attrs.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/structured-attrs.sh b/tests/structured-attrs.sh
new file mode 100644
index 000000000..9ba2672b6
--- /dev/null
+++ b/tests/structured-attrs.sh
@@ -0,0 +1,7 @@
+source common.sh
+
+clearStore
+
+outPath=$(nix-build structured-attrs.nix --no-out-link)
+
+[[ $(cat $outPath/foo) = bar ]]