26 lines
721 B
Bash
Executable File
26 lines
721 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
|
|
if [[ $# -lt 2 ]]; then
|
|
echo "Usage: validate_linux_release.sh <MetaCoreBuildTool> <package-directory> [--smoke]" >&2
|
|
exit 2
|
|
fi
|
|
|
|
build_tool="$(realpath "$1")"
|
|
package="$(realpath "$2")"
|
|
"$build_tool" validate --package "$package"
|
|
|
|
docker run --rm --network none --read-only \
|
|
--tmpfs /tmp --tmpfs /app/Diagnostics \
|
|
-v "$package:/app:ro" \
|
|
metacore-runtime-validation:ubuntu22.04 \
|
|
/app/MetaCorePlayer --validate-only
|
|
|
|
if [[ "${3:-}" == "--smoke" ]]; then
|
|
docker run --rm --network none \
|
|
--tmpfs /tmp --tmpfs /app/Diagnostics \
|
|
-v "$package:/app:ro" \
|
|
metacore-runtime-validation:ubuntu22.04 \
|
|
xvfb-run -a /app/MetaCorePlayer --smoke-test-frames 3
|
|
fi
|