Files
infix/test/shell
T
Tobias Waldekranz 3ad20dfd5b test: Drop support for running tests with podman
When testing in the host's namespace, only docker seems to offer the
required capabilities (due to its daemon/client architecture).

Qeneth tests can still be run in podman. Users will have to install
the docker wrappers for podman to make use of this.
2024-05-20 16:21:06 +02:00

21 lines
428 B
Bash
Executable File

#!/bin/sh
# Enter shell in container running Infamy
testdir=$(dirname "$(readlink -f "$0")")
. "$testdir/.env"
usage()
{
echo "Usage:"
echo " shell [SYSTEM]"
echo "Example:"
echo " shell # Open shell in infamy0"
echo " shell infamy2 # Open shell in infamy2"
exit 1
}
sys=$1
[ -n "$sys" ] || sys=$(infamy)
docker exec -it --workdir "$ixdir/test" "$sys" ./env -C sh