mirror of
https://github.com/kernelkit/infix.git
synced 2026-07-22 01:13:00 +02:00
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.
21 lines
428 B
Bash
Executable File
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
|