From cf7ca2cd17423f35cc951b91c2237cb67d8a45e7 Mon Sep 17 00:00:00 2001 From: Jack Henschel Date: Wed, 14 May 2025 09:38:14 +0200 Subject: [PATCH] Add load.bash helper for standardized includes This makes it easier to include the library with bats_load_library: > bats_load_library has two modes of resolving requests: > by relative path from the BATS_LIB_PATH to a file in the library > by library name, expecting libraries to have a load.bash entrypoint https://bats-core.readthedocs.io/en/stable/writing-tests.html#bats-load-library-load-system-wide-libraries Signed-off-by: Jack Henschel --- load.bash | 3 +++ 1 file changed, 3 insertions(+) create mode 100755 load.bash diff --git a/load.bash b/load.bash new file mode 100755 index 0000000..006ed33 --- /dev/null +++ b/load.bash @@ -0,0 +1,3 @@ +source "$(dirname "${BASH_SOURCE[0]}")/lib/utils.bash" +source "$(dirname "${BASH_SOURCE[0]}")/lib/detik.bash" +source "$(dirname "${BASH_SOURCE[0]}")/lib/linter.bash"