about summary refs log tree commit diff
path: root/tests/fetchurl.sh
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2012-07-09T19·41-0400
committerEelco Dolstra <eelco.dolstra@logicblox.com>2012-07-09T19·41-0400
commit51f9f9924bcd0c30b45e370fc69dc43e6621ef61 (patch)
tree7eb8cbc42c502303822ba25bd3940f049c93d08d /tests/fetchurl.sh
parent035aa114037857b51968e62a1176f4086e2477ec (diff)
Add a test for the fetchurl function
Diffstat (limited to 'tests/fetchurl.sh')
-rw-r--r--tests/fetchurl.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/fetchurl.sh b/tests/fetchurl.sh
new file mode 100644
index 0000000000..bb6180ca39
--- /dev/null
+++ b/tests/fetchurl.sh
@@ -0,0 +1,9 @@
+source common.sh
+
+clearStore
+
+hash=$(nix-hash --flat --type sha256 ./fetchurl.nix)
+
+outPath=$(nix-build ./fetchurl.nix --argstr filename $(pwd)/fetchurl.nix --argstr sha256 $hash)
+
+cmp $outPath fetchurl.nix