fix: run interactive tmux tests in e2e pipeline

e2e.sh now runs both BATS and interactive tests per distro:
build -> BATS -> interactive. Failure stage shown in summary.

Closes: #22

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Flo
2026-03-31 11:39:43 +02:00
parent f1b9d0183d
commit 26ea0bc106

View File

@@ -178,7 +178,7 @@ run_tests() {
local distro="$1" local distro="$1"
local image_name="${IMAGE_PREFIX}:${distro}" local image_name="${IMAGE_PREFIX}:${distro}"
info "Running tests on ${distro}..." info "Running BATS tests on ${distro}..."
if ! "$RUNTIME" run \ if ! "$RUNTIME" run \
--rm \ --rm \
--network=none \ --network=none \
@@ -188,6 +188,20 @@ run_tests() {
fi fi
} }
run_interactive_tests() {
local distro="$1"
local image_name="${IMAGE_PREFIX}:${distro}"
info "Running interactive tests on ${distro}..."
if ! "$RUNTIME" run \
--rm \
--network=none \
"$image_name" \
bash test/interactive/run-all.sh 2>&1; then
return 1
fi
}
run_distro() { run_distro() {
local distro="$1" local distro="$1"
local start_time local start_time
@@ -200,7 +214,9 @@ run_distro() {
if ! build_image "$distro"; then if ! build_image "$distro"; then
status="FAIL (build)" status="FAIL (build)"
elif ! run_tests "$distro"; then elif ! run_tests "$distro"; then
status="FAIL (tests)" status="FAIL (bats)"
elif ! run_interactive_tests "$distro"; then
status="FAIL (interactive)"
fi fi
local end_time local end_time