From 8f28a3ba25dd0dad6411a039bc01ad87c61a6e59 Mon Sep 17 00:00:00 2001 From: Shea Levy Date: Wed, 14 Sep 2011 05:59:29 +0000 Subject: Add a test for multiple outputs This currently fails. Yay test-driven development! --- tests/multiple-outputs.nix | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 tests/multiple-outputs.nix (limited to 'tests/multiple-outputs.nix') diff --git a/tests/multiple-outputs.nix b/tests/multiple-outputs.nix new file mode 100644 index 000000000000..e8fbf91bfa89 --- /dev/null +++ b/tests/multiple-outputs.nix @@ -0,0 +1,23 @@ +with import ./config.nix; + +let + + a = mkDerivation { + name = "multiple-outputs-a"; + outputs = [ "first" "second" ]; + builder = ./multiple-outputs.a.builder.sh; + helloString = "Hello, world!"; + }; + +in + +assert a.second.helloString == "Hello, world!"; + +mkDerivation { + defaultOutput = a; + firstOutput = a.first.first; + secondOutput = a.second.first.first.second.second.first.second; + allOutputs = a.all; + name = "multiple-outputs-b"; + builder = ./multiple-outputs.b.builder.sh; +} -- cgit 1.4.1