From 4f02e2b7a4853785a6e2ead60ed7ec848e07bb90 Mon Sep 17 00:00:00 2001 From: Benedikt Peetz Date: Wed, 29 Jan 2025 12:52:25 +0100 Subject: test(tests): Also include a test for `useShards = true` --- tests/no_shards/by-name/a/file.nix | 0 tests/no_shards/by-name/a/other.nix | 0 tests/no_shards/by-name/b/file.nix | 0 tests/no_shards/by-name/b/nothing.lix | 0 tests/no_shards/by-name/c/file.nix | 0 tests/no_shards/by-name/empty/file.other | 0 tests/no_shards/by-name/tripwire.test | 0 tests/no_shards/test.nix | 9 +++++++++ 8 files changed, 9 insertions(+) create mode 100644 tests/no_shards/by-name/a/file.nix create mode 100644 tests/no_shards/by-name/a/other.nix create mode 100644 tests/no_shards/by-name/b/file.nix create mode 100644 tests/no_shards/by-name/b/nothing.lix create mode 100644 tests/no_shards/by-name/c/file.nix create mode 100644 tests/no_shards/by-name/empty/file.other create mode 100644 tests/no_shards/by-name/tripwire.test create mode 100644 tests/no_shards/test.nix (limited to 'tests/no_shards') diff --git a/tests/no_shards/by-name/a/file.nix b/tests/no_shards/by-name/a/file.nix new file mode 100644 index 0000000..e69de29 diff --git a/tests/no_shards/by-name/a/other.nix b/tests/no_shards/by-name/a/other.nix new file mode 100644 index 0000000..e69de29 diff --git a/tests/no_shards/by-name/b/file.nix b/tests/no_shards/by-name/b/file.nix new file mode 100644 index 0000000..e69de29 diff --git a/tests/no_shards/by-name/b/nothing.lix b/tests/no_shards/by-name/b/nothing.lix new file mode 100644 index 0000000..e69de29 diff --git a/tests/no_shards/by-name/c/file.nix b/tests/no_shards/by-name/c/file.nix new file mode 100644 index 0000000..e69de29 diff --git a/tests/no_shards/by-name/empty/file.other b/tests/no_shards/by-name/empty/file.other new file mode 100644 index 0000000..e69de29 diff --git a/tests/no_shards/by-name/tripwire.test b/tests/no_shards/by-name/tripwire.test new file mode 100644 index 0000000..e69de29 diff --git a/tests/no_shards/test.nix b/tests/no_shards/test.nix new file mode 100644 index 0000000..9bc25b5 --- /dev/null +++ b/tests/no_shards/test.nix @@ -0,0 +1,9 @@ +let + nixLib = import ../../default.nix {}; +in + nixLib.mkByName { + useShards = false; + baseDirectory = ./by-name; + # fileName = "file.nix"; + fileRegex = ".*\.nix"; + } -- cgit 1.4.1