From 9dae5acf6440dce30d61e8c3588f703088a64b0a Mon Sep 17 00:00:00 2001 From: sterni Date: Thu, 30 Sep 2021 14:46:12 +0200 Subject: test(nix/readTree): test marking behavior of readTree This ensures in a simple example that __readTree and __readTreeChildren are populated correctly. Change-Id: I69a46b2ddde0d1f9bf0dff1c4780f033ac8fc27a Reviewed-on: https://cl.tvl.fyi/c/depot/+/3655 Tested-by: BuildkiteCI Reviewed-by: tazjin --- nix/readTree/tests/test-marker/directory-marked/default.nix | 3 +++ nix/readTree/tests/test-marker/directory-marked/nested/default.nix | 3 +++ nix/readTree/tests/test-marker/file-children/one.nix | 3 +++ nix/readTree/tests/test-marker/file-children/two.nix | 3 +++ 4 files changed, 12 insertions(+) create mode 100644 nix/readTree/tests/test-marker/directory-marked/default.nix create mode 100644 nix/readTree/tests/test-marker/directory-marked/nested/default.nix create mode 100644 nix/readTree/tests/test-marker/file-children/one.nix create mode 100644 nix/readTree/tests/test-marker/file-children/two.nix (limited to 'nix/readTree/tests/test-marker') diff --git a/nix/readTree/tests/test-marker/directory-marked/default.nix b/nix/readTree/tests/test-marker/directory-marked/default.nix new file mode 100644 index 000000000000..a3f961128e79 --- /dev/null +++ b/nix/readTree/tests/test-marker/directory-marked/default.nix @@ -0,0 +1,3 @@ +{ ... }: + +{} diff --git a/nix/readTree/tests/test-marker/directory-marked/nested/default.nix b/nix/readTree/tests/test-marker/directory-marked/nested/default.nix new file mode 100644 index 000000000000..a3f961128e79 --- /dev/null +++ b/nix/readTree/tests/test-marker/directory-marked/nested/default.nix @@ -0,0 +1,3 @@ +{ ... }: + +{} diff --git a/nix/readTree/tests/test-marker/file-children/one.nix b/nix/readTree/tests/test-marker/file-children/one.nix new file mode 100644 index 000000000000..a3f961128e79 --- /dev/null +++ b/nix/readTree/tests/test-marker/file-children/one.nix @@ -0,0 +1,3 @@ +{ ... }: + +{} diff --git a/nix/readTree/tests/test-marker/file-children/two.nix b/nix/readTree/tests/test-marker/file-children/two.nix new file mode 100644 index 000000000000..a3f961128e79 --- /dev/null +++ b/nix/readTree/tests/test-marker/file-children/two.nix @@ -0,0 +1,3 @@ +{ ... }: + +{} -- cgit 1.4.1