14 lines
496 B
Bash
Executable File
14 lines
496 B
Bash
Executable File
#!/bin/sh
|
|
set -eu
|
|
|
|
repo_root=$(CDPATH= cd -- "$(dirname -- "$0")/.." && pwd)
|
|
toolchain_image=$(docker compose -f "$repo_root/deploy/compose.yaml" images -q toolchain 2>/dev/null || true)
|
|
if [ -z "$toolchain_image" ]; then
|
|
toolchain_image=$(docker image inspect rvbox-dev-toolchain --format '{{.Id}}' 2>/dev/null || true)
|
|
fi
|
|
|
|
cd "$repo_root"
|
|
exec docker compose -f deploy/compose.yaml run --rm \
|
|
-e "RVBOX_TOOLCHAIN_IMAGE=$toolchain_image" \
|
|
toolchain go run ./test/harness integration "$@"
|