diff options
author | Florian Klink <flokli@flokli.de> | 2024-01-02T12·18+0200 |
---|---|---|
committer | clbot <clbot@tvl.fyi> | 2024-01-03T13·19+0000 |
commit | 7f030fe2655136299315837c1f4c2b45065ef5d4 (patch) | |
tree | 8e91ba52a144ec1dfe4f1289b2b59fde82a398e1 /tvix/glue/src | |
parent | e6782bb7c4ffad9d0ecf0bca5acb16f2b7698594 (diff) |
test(tvix/glue): add test with passAsFile r/7313
This already succeeds, as the output path calculation path does not need to be aware of any builder-specific custom handling for passAsFile. Change-Id: I9cc9e4e4351cdeaa3ec33ba58ee1569e7a368150 Reviewed-on: https://cl.tvl.fyi/c/depot/+/10520 Reviewed-by: tazjin <tazjin@tvl.su> Autosubmit: flokli <flokli@flokli.de> Tested-by: BuildkiteCI
Diffstat (limited to '')
-rw-r--r-- | tvix/glue/src/builtins/mod.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tvix/glue/src/builtins/mod.rs b/tvix/glue/src/builtins/mod.rs index aeae8a7c3baa..c70edceb3ebd 100644 --- a/tvix/glue/src/builtins/mod.rs +++ b/tvix/glue/src/builtins/mod.rs @@ -118,6 +118,7 @@ mod tests { inherit bar; }).outPath "#, "/nix/store/5vyvcwah9l9kf07d52rcgdk70g2f4y13-foo"; "full")] + #[test_case(r#"(builtins.derivation { "name" = "foo"; passAsFile = ["bar"]; bar = "baz"; system = ":"; builder = ":";}).outPath"#, "/nix/store/25gf0r1ikgmh4vchrn8qlc4fnqlsa5a1-foo"; "passAsFile")] fn test_outpath(code: &str, expected_path: &str) { let value = eval(code).value.expect("must succeed"); |