2022-12-16 02:17:08 +01:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
2021-12-09 16:26:46 +01:00
|
|
|
set -eu -o pipefail
|
2022-12-16 02:17:08 +01:00
|
|
|
|
|
|
|
test=$1
|
2023-11-08 06:30:55 +01:00
|
|
|
init=${2-}
|
2022-12-16 02:17:08 +01:00
|
|
|
|
|
|
|
dir="$(dirname "${BASH_SOURCE[0]}")"
|
|
|
|
source "$dir/common-test.sh"
|
|
|
|
|
2023-11-08 06:30:55 +01:00
|
|
|
if [ -n "$init" ]; then
|
|
|
|
(init_test)
|
|
|
|
fi
|
2022-12-16 02:17:08 +01:00
|
|
|
run_test_proper
|