Commit missing test files
This commit is contained in:
parent
b596e4a96a
commit
fd51454ecb
34
ofborg/test-srcs/eval-mixed-failure/default.nix
Normal file
34
ofborg/test-srcs/eval-mixed-failure/default.nix
Normal file
|
@ -0,0 +1,34 @@
|
||||||
|
let
|
||||||
|
nix = import <nix/config.nix>;
|
||||||
|
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; {};
|
||||||
|
}
|
Loading…
Reference in a new issue