Files
Elsword-GE/tests/common_test.sh
T
magges a840db9b41
build-elsword-ge / build (push) Has been cancelled
release: target GE-Proton10-34 with latest DXVK
2026-07-19 21:34:43 +02:00

38 lines
1.1 KiB
Bash

#!/usr/bin/env bash
set -euo pipefail
REPO_ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
source "$REPO_ROOT/scripts/common.sh"
if [[ "$ELSWORD_GE_VERSION" != "10-34" || "$PROTON_TAG" != "GE-Proton10-34" ]]; then
printf 'expected GE-Proton10-34 default, got version=%s tag=%s\n' "$ELSWORD_GE_VERSION" "$PROTON_TAG" >&2
exit 1
fi
printf 'Proton base is pinned to %s\n' "$PROTON_TAG"
expected_tag="latest"
actual_tag="$(dxvk_tag_for_variant stable)"
if [[ "$actual_tag" != "$expected_tag" ]]; then
printf 'expected stable DXVK tag %s, got %s\n' "$expected_tag" "$actual_tag" >&2
exit 1
fi
printf 'stable DXVK tag resolves dynamically as %s\n' "$actual_tag"
flake_file="$REPO_ROOT/flake.nix"
if ! rg -Fq 'MINGW_PTHREAD_ROOT = mingwPthreadRoot;' "$flake_file"; then
printf 'Nix shell must provide the MinGW pthread compatibility directory\n' >&2
exit 1
fi
if ! rg -Fq '${MINGW_PTHREAD_ROOT:-}/$arch_dir/$dll' "$REPO_ROOT/scripts/common.sh"; then
printf 'runtime dependency lookup must use the Nix shell MinGW directory\n' >&2
exit 1
fi
printf 'Nix shell provides the MinGW pthread compatibility directory\n'