From 51f9f9924bcd0c30b45e370fc69dc43e6621ef61 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Mon, 9 Jul 2012 15:41:43 -0400 Subject: Add a test for the fetchurl function --- tests/fetchurl.sh | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 tests/fetchurl.sh (limited to 'tests/fetchurl.sh') diff --git a/tests/fetchurl.sh b/tests/fetchurl.sh new file mode 100644 index 000000000000..bb6180ca3954 --- /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 -- cgit 1.4.1