about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--tvix/glue/src/tests/dummy/.keep0
-rw-r--r--tvix/glue/src/tests/tvix_tests/eval-okay-storePath2.exp1
-rw-r--r--tvix/glue/src/tests/tvix_tests/eval-okay-storePath2.nix8
3 files changed, 9 insertions, 0 deletions
diff --git a/tvix/glue/src/tests/dummy/.keep b/tvix/glue/src/tests/dummy/.keep
new file mode 100644
index 000000000000..e69de29bb2d1
--- /dev/null
+++ b/tvix/glue/src/tests/dummy/.keep
diff --git a/tvix/glue/src/tests/tvix_tests/eval-okay-storePath2.exp b/tvix/glue/src/tests/tvix_tests/eval-okay-storePath2.exp
new file mode 100644
index 000000000000..26a467d2799d
--- /dev/null
+++ b/tvix/glue/src/tests/tvix_tests/eval-okay-storePath2.exp
@@ -0,0 +1 @@
+{ plain = "/nix/store/vqsvbisgiqrqa1y0qljigq4ds5h38gym-dummy"; withSubPath = "/nix/store/vqsvbisgiqrqa1y0qljigq4ds5h38gym-dummy/.keep"; }
diff --git a/tvix/glue/src/tests/tvix_tests/eval-okay-storePath2.nix b/tvix/glue/src/tests/tvix_tests/eval-okay-storePath2.nix
new file mode 100644
index 000000000000..2d1fc45871f3
--- /dev/null
+++ b/tvix/glue/src/tests/tvix_tests/eval-okay-storePath2.nix
@@ -0,0 +1,8 @@
+let
+  path = builtins.unsafeDiscardStringContext "${../dummy}";
+  storePath = builtins.storePath path;
+in
+{
+  plain = builtins.storePath path;
+  withSubPath = builtins.storePath (path + "/.keep");
+}