From 36571215b91673aa3e9d442c3ce0d09804ac01c6 Mon Sep 17 00:00:00 2001 From: Benedikt Peetz Date: Wed, 29 Jan 2025 12:39:50 +0100 Subject: test(tests): Init --- tests/by-name/a/file.nix | 0 tests/by-name/a/other.nix | 0 tests/by-name/b/file.nix | 0 tests/by-name/b/nothing.lix | 0 tests/by-name/c/file.nix | 0 tests/by-name/empty/file.other | 0 tests/by-name/tripwire.test | 0 tests/test.nix | 9 +++++++++ 8 files changed, 9 insertions(+) create mode 100644 tests/by-name/a/file.nix create mode 100644 tests/by-name/a/other.nix create mode 100644 tests/by-name/b/file.nix create mode 100644 tests/by-name/b/nothing.lix create mode 100644 tests/by-name/c/file.nix create mode 100644 tests/by-name/empty/file.other create mode 100644 tests/by-name/tripwire.test create mode 100644 tests/test.nix (limited to 'tests') diff --git a/tests/by-name/a/file.nix b/tests/by-name/a/file.nix new file mode 100644 index 0000000..e69de29 diff --git a/tests/by-name/a/other.nix b/tests/by-name/a/other.nix new file mode 100644 index 0000000..e69de29 diff --git a/tests/by-name/b/file.nix b/tests/by-name/b/file.nix new file mode 100644 index 0000000..e69de29 diff --git a/tests/by-name/b/nothing.lix b/tests/by-name/b/nothing.lix new file mode 100644 index 0000000..e69de29 diff --git a/tests/by-name/c/file.nix b/tests/by-name/c/file.nix new file mode 100644 index 0000000..e69de29 diff --git a/tests/by-name/empty/file.other b/tests/by-name/empty/file.other new file mode 100644 index 0000000..e69de29 diff --git a/tests/by-name/tripwire.test b/tests/by-name/tripwire.test new file mode 100644 index 0000000..e69de29 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"; + } -- cgit 1.4.1