aboutsummaryrefslogtreecommitdiff
path: root/tests/installer/default.nix
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2022-09-15 11:42:10 +0200
committerEelco Dolstra <edolstra@gmail.com>2022-09-15 11:42:10 +0200
commitfe958a682d293dec5f27d0c161833b453370d755 (patch)
treefc2683e16a2b094ea5000b804c0309d98546c54b /tests/installer/default.nix
parentcc6e31231547fc64c89c6682316f2bab03db6879 (diff)
Test building
Diffstat (limited to 'tests/installer/default.nix')
-rw-r--r--tests/installer/default.nix7
1 files changed, 5 insertions, 2 deletions
diff --git a/tests/installer/default.nix b/tests/installer/default.nix
index 9b2a34bdb..d0707018f 100644
--- a/tests/installer/default.nix
+++ b/tests/installer/default.nix
@@ -146,7 +146,7 @@ let
echo "Testing Nix installation..."
# FIXME: should update ~/.bashrc.
- $ssh "
+ $ssh <<EOF
set -ex
# FIXME: get rid of this; ideally ssh should just work.
@@ -157,7 +157,10 @@ let
nix-env --version
nix --extra-experimental-features nix-command store ping
- "
+
+ out=\$(nix-build --no-substitute -E 'derivation { name = "foo"; system = "x86_64-linux"; builder = "/bin/sh"; args = ["-c" "echo foobar > \$out"]; }')
+ [[ \$(cat \$out) = foobar ]]
+ EOF
echo "Done!"
touch $out