From 7f030fe2655136299315837c1f4c2b45065ef5d4 Mon Sep 17 00:00:00 2001 From: Florian Klink Date: Tue, 2 Jan 2024 14:18:23 +0200 Subject: test(tvix/glue): add test with passAsFile 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 Autosubmit: flokli Tested-by: BuildkiteCI --- tvix/glue/src/builtins/mod.rs | 1 + 1 file changed, 1 insertion(+) (limited to 'tvix/glue/src/builtins') 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"); -- cgit 1.4.1