Files
sausage/userland/brush/source/e2e/fzf/entrypoint.sh
T
2026-11-11 22:04:16 +00:00

16 lines
717 B
Bash
Executable File

#!/bin/bash
# Contract: $SHELL_UNDER_TEST names the shell binary (see ../shim/bash);
# results go to /results (junit XML + full log); exit status = test status.
set -uo pipefail
mkdir -p /results
cd /fzf || exit 1
tmux new-session -d
# Turn skip-list.txt into a minitest --exclude regex.
skips=$(grep -v '^\s*\(#\|$\)' /e2e/skip-list.txt | paste -sd'|')
# Non-bash shells are excluded (rather than selected with -n) so callers can pass their own -n.
exclude="^(TestZsh|TestFish|TestNushell)#"
[[ -n $skips ]] && exclude="$exclude|^($skips)$"
ruby -Itest test/test_shell_integration.rb --verbose --exclude "/$exclude/" \
--ci-report --ci-dir /results/junit "$@" 2>&1 | tee /results/log.txt
exit "${PIPESTATUS[0]}"