ghostty/test/run-host.sh
2022-07-21 21:00:40 -07:00

16 lines
402 B
Bash
Executable File

#!/usr/bin/env bash
#
# This runs a single test case from the host (not from Docker itself). The
# arguments are the same as run.sh but this wraps it in docker.
DIR=$(cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd)
IMAGE=$(docker build --file ${DIR}/Dockerfile -q ${DIR})
docker run \
--init \
--rm \
-v ${DIR}:/src \
--entrypoint "xvfb-run" \
$IMAGE \
/entrypoint.sh $@