Initial setup on test files and helper

This commit is contained in:
Nikola Jokic
2023-10-27 14:41:34 +02:00
parent 0bfa57ac50
commit b3d135408f
3 changed files with 192 additions and 0 deletions

19
hack/e2e-test.sh Normal file
View File

@@ -0,0 +1,19 @@
#!/bin/bash
DIR="$(dirname "${BASH_SOURCE[0]}")"
DIR="$(realpath "${DIR}")"
TEST_DIR="$(realpath "${DIR}/../test/actions.github.com")"
TARGETS=()
function set_targets() {
local cases="$(find "${TEST_DIR}" -name '*.test.sh' | sort | sed -e 's/\(.*\)/test_\1\.sh/')"
mapfile -t TARGETS < <(echo "${cases}")
echo $TARGETS
}
set_targets