From fd51454ecbed7dc6bbd5acc36ada2435d05e2a89 Mon Sep 17 00:00:00 2001 From: Graham Christensen Date: Sun, 11 Mar 2018 07:18:19 -0400 Subject: [PATCH] Commit missing test files --- .../test-srcs/eval-mixed-failure/default.nix | 34 +++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 ofborg/test-srcs/eval-mixed-failure/default.nix diff --git a/ofborg/test-srcs/eval-mixed-failure/default.nix b/ofborg/test-srcs/eval-mixed-failure/default.nix new file mode 100644 index 0000000..8d157ac --- /dev/null +++ b/ofborg/test-srcs/eval-mixed-failure/default.nix @@ -0,0 +1,34 @@ +let + nix = import ; +in rec { + success = derivation { + name = "success"; + system = builtins.currentSystem; + builder = nix.shell; + args = [ + "-c" + "echo hi; echo ${toString builtins.currentTime} > $out" ]; + }; + + failed = derivation { + name = "failed"; + system = builtins.currentSystem; + builder = nix.shell; + args = [ + "-c" + "echo hi; echo ${toString builtins.currentTime}; echo ${success}" ]; + }; + + passes-instantiation = derivation { + name = "passes-instantiation"; + system = builtins.currentSystem; + builder = nix.shell; + args = [ + "-c" + "echo this ones cool" ]; + }; + + fails-instantiation = assert builtins.trace '' + You just can't frooble the frozz on this particular system. + '' false; {}; +}