diff options
author | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2025-01-29 12:39:50 +0100 |
---|---|---|
committer | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2025-01-29 12:39:50 +0100 |
commit | 36571215b91673aa3e9d442c3ce0d09804ac01c6 (patch) | |
tree | 0ae18bc8f9247d3ece3ef672501e63c8ae9d3e10 /tests | |
parent | feat(by-name-overlay): Support looking for files defined by a regex (diff) | |
download | nix-library-36571215b91673aa3e9d442c3ce0d09804ac01c6.zip |
test(tests): Init
Diffstat (limited to '')
-rw-r--r-- | tests/by-name/a/file.nix | 0 | ||||
-rw-r--r-- | tests/by-name/a/other.nix | 0 | ||||
-rw-r--r-- | tests/by-name/b/file.nix | 0 | ||||
-rw-r--r-- | tests/by-name/b/nothing.lix | 0 | ||||
-rw-r--r-- | tests/by-name/c/file.nix | 0 | ||||
-rw-r--r-- | tests/by-name/empty/file.other | 0 | ||||
-rw-r--r-- | tests/by-name/tripwire.test | 0 | ||||
-rw-r--r-- | tests/test.nix | 9 |
8 files changed, 9 insertions, 0 deletions
diff --git a/tests/by-name/a/file.nix b/tests/by-name/a/file.nix new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/tests/by-name/a/file.nix diff --git a/tests/by-name/a/other.nix b/tests/by-name/a/other.nix new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/tests/by-name/a/other.nix diff --git a/tests/by-name/b/file.nix b/tests/by-name/b/file.nix new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/tests/by-name/b/file.nix diff --git a/tests/by-name/b/nothing.lix b/tests/by-name/b/nothing.lix new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/tests/by-name/b/nothing.lix diff --git a/tests/by-name/c/file.nix b/tests/by-name/c/file.nix new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/tests/by-name/c/file.nix diff --git a/tests/by-name/empty/file.other b/tests/by-name/empty/file.other new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/tests/by-name/empty/file.other diff --git a/tests/by-name/tripwire.test b/tests/by-name/tripwire.test new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/tests/by-name/tripwire.test diff --git a/tests/test.nix b/tests/test.nix new file mode 100644 index 0000000..5ae7da8 --- /dev/null +++ b/tests/test.nix @@ -0,0 +1,9 @@ +let + nixLib = import ../default.nix {}; +in + nixLib.mkByName { + useShards = false; + baseDirectory = ./by-name; + # fileName = "file.nix"; + fileRegex = ".*\.nix"; + } |