Introduce script to save test results in files according to platform (savetest.sh)

Test results are supposed to be added to releases
This commit is contained in:
2022-03-23 10:08:36 +01:00
parent 470a8daba6
commit bf303a608b
4 changed files with 192 additions and 0 deletions

15
test/savetest.sh Executable file
View File

@@ -0,0 +1,15 @@
#!/usr/bin/env bash
savetest() {
local target_file=
readonly savetest_dir="$(cd "$(dirname -- "${BASH_SOURCE[0]}")" >/dev/null 2>&1 && pwd)"
target_dir="${savetest_dir}/results"
mkdir -p "${target_dir}"
target_file="${target_dir}/$("${savetest_dir}/getenv.sh")_result.log"
"${savetest_dir}/test_rdlink.sh" >"${target_file}" 2>&1
}
savetest