test(tvix/glue): add builtins.storeDir regression test
Change-Id: Ib87f41b3e0d634dd76e648acfe1b3026211f947a Reviewed-on: https://cl.tvl.fyi/c/depot/+/12619 Reviewed-by: Ilan Joselevich <personal@ilanjoselevich.com> Autosubmit: flokli <flokli@flokli.de> Reviewed-by: Jörg Thalheim <joerg@thalheim.io> Tested-by: BuildkiteCI
This commit is contained in:
parent
e6b39135bc
commit
457decb790
3 changed files with 9 additions and 0 deletions
0
tvix/glue/src/tests/dummy/.keep
Normal file
0
tvix/glue/src/tests/dummy/.keep
Normal file
1
tvix/glue/src/tests/tvix_tests/eval-okay-storePath2.exp
Normal file
1
tvix/glue/src/tests/tvix_tests/eval-okay-storePath2.exp
Normal file
|
@ -0,0 +1 @@
|
|||
{ plain = "/nix/store/vqsvbisgiqrqa1y0qljigq4ds5h38gym-dummy"; withSubPath = "/nix/store/vqsvbisgiqrqa1y0qljigq4ds5h38gym-dummy/.keep"; }
|
8
tvix/glue/src/tests/tvix_tests/eval-okay-storePath2.nix
Normal file
8
tvix/glue/src/tests/tvix_tests/eval-okay-storePath2.nix
Normal file
|
@ -0,0 +1,8 @@
|
|||
let
|
||||
path = builtins.unsafeDiscardStringContext "${../dummy}";
|
||||
storePath = builtins.storePath path;
|
||||
in
|
||||
{
|
||||
plain = builtins.storePath path;
|
||||
withSubPath = builtins.storePath (path + "/.keep");
|
||||
}
|
Loading…
Reference in a new issue