diff options
author | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2025-01-29 12:52:25 +0100 |
---|---|---|
committer | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2025-01-29 12:52:25 +0100 |
commit | 4f02e2b7a4853785a6e2ead60ed7ec848e07bb90 (patch) | |
tree | 37639e8dae2540c6a8d11faf6b39b61fd73bc7d4 /tests/shards | |
parent | test(tests): Init (diff) | |
download | nix-library-4f02e2b7a4853785a6e2ead60ed7ec848e07bb90.zip |
test(tests): Also include a test for `useShards = true`
Diffstat (limited to 'tests/shards')
-rw-r--r-- | tests/shards/by-name/em/empty/file.other | 0 | ||||
-rw-r--r-- | tests/shards/by-name/fi/first/file.nix | 0 | ||||
-rw-r--r-- | tests/shards/by-name/fi/first/other.nix | 0 | ||||
-rw-r--r-- | tests/shards/by-name/se/second/file.nix | 0 | ||||
-rw-r--r-- | tests/shards/by-name/se/second/nothing.lix | 0 | ||||
-rw-r--r-- | tests/shards/by-name/th/third/file.nix | 0 | ||||
-rw-r--r-- | tests/shards/by-name/tripwire.test | 0 | ||||
-rw-r--r-- | tests/shards/test.nix | 9 |
8 files changed, 9 insertions, 0 deletions
diff --git a/tests/shards/by-name/em/empty/file.other b/tests/shards/by-name/em/empty/file.other new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/tests/shards/by-name/em/empty/file.other diff --git a/tests/shards/by-name/fi/first/file.nix b/tests/shards/by-name/fi/first/file.nix new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/tests/shards/by-name/fi/first/file.nix diff --git a/tests/shards/by-name/fi/first/other.nix b/tests/shards/by-name/fi/first/other.nix new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/tests/shards/by-name/fi/first/other.nix diff --git a/tests/shards/by-name/se/second/file.nix b/tests/shards/by-name/se/second/file.nix new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/tests/shards/by-name/se/second/file.nix diff --git a/tests/shards/by-name/se/second/nothing.lix b/tests/shards/by-name/se/second/nothing.lix new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/tests/shards/by-name/se/second/nothing.lix diff --git a/tests/shards/by-name/th/third/file.nix b/tests/shards/by-name/th/third/file.nix new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/tests/shards/by-name/th/third/file.nix diff --git a/tests/shards/by-name/tripwire.test b/tests/shards/by-name/tripwire.test new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/tests/shards/by-name/tripwire.test diff --git a/tests/shards/test.nix b/tests/shards/test.nix new file mode 100644 index 0000000..6057b82 --- /dev/null +++ b/tests/shards/test.nix @@ -0,0 +1,9 @@ +let + nixLib = import ../../default.nix {}; +in + nixLib.mkByName { + useShards = true; + baseDirectory = ./by-name; + fileName = "file.nix"; + # fileRegex = ".*\.nix"; + } |