summaryrefslogtreecommitdiff
path: root/.github/scripts/validate-linux-armhf-runtime.sh
diff options
context:
space:
mode:
authorChristoph Berg <myon@debian.org>2026-09-26 23:24:28 +0200
committerChristoph Berg <myon@debian.org>2026-09-26 23:24:28 +0200
commit69344560ea394c06ca94acac46a2e4c3e8b7b229 (patch)
treeebc98370a697a9bbd6b973a14fa5113c475c6db7 /.github/scripts/validate-linux-armhf-runtime.sh
parent3e9d10a67671d0bd5c7b8c3ca8088f1818322eff (diff)
parent059831534c7e884f0a607ed86b582fd00d821731 (diff)
Update upstream source from tag 'upstream/3.2.0_rc1+dfsg'
Update to upstream version '3.2.0~rc1+dfsg' with Debian dir dbff457fd2c3616d5c77b863c7bfb2186ed86047
Diffstat (limited to '.github/scripts/validate-linux-armhf-runtime.sh')
-rwxr-xr-x.github/scripts/validate-linux-armhf-runtime.sh66
1 files changed, 66 insertions, 0 deletions
diff --git a/.github/scripts/validate-linux-armhf-runtime.sh b/.github/scripts/validate-linux-armhf-runtime.sh
new file mode 100755
index 00000000..0909d512
--- /dev/null
+++ b/.github/scripts/validate-linux-armhf-runtime.sh
@@ -0,0 +1,66 @@
+#!/usr/bin/env bash
+set -euo pipefail
+
+VERSION="${VERSION:?missing}"
+ARCH="${ARCH:?missing}"
+HAMLIB_BRANCH="${HAMLIB_BRANCH:?missing}"
+phase=${ARMHF_RUNTIME_PHASE:-all}
+if [ "$ARCH" != armhf ]; then
+ echo "validate-linux-armhf-runtime.sh supports only arch=armhf" >&2
+ exit 2
+fi
+case "$phase" in
+ all|test|package) ;;
+ *) echo "Unsupported ARMHF runtime phase: $phase" >&2; exit 2 ;;
+esac
+
+github_api_token="${GITHUB_TOKEN:-}"
+unset GITHUB_TOKEN
+cd /work
+# shellcheck source=.github/scripts/armhf-ci-image-config.sh
+source .github/scripts/armhf-ci-image-config.sh
+.github/scripts/verify-armhf-ci-image.sh runtime "$ARCH" "$HAMLIB_BRANCH"
+
+if [ "$phase" = all ] || [ "$phase" = test ]; then
+ echo "::group::ARMHF CTest under QEMU"
+ started="$(date +%s)"
+ set +e
+ (
+ cd wsjtx-build
+ LD_LIBRARY_PATH="$ARMHF_RUNTIME_PREFIX" \
+ QT_QPA_PLATFORM=xcb \
+ xvfb-run -a -s "-screen 0 1280x1024x24" \
+ ctest --output-on-failure --output-junit ctest-results.xml
+ ) 2>&1 | tee wsjtx-build/ctest-armhf.log
+ status=${PIPESTATUS[0]}
+ set -e
+ ended="$(date +%s)"
+ {
+ printf 'started_epoch=%s\n' "$started"
+ printf 'ended_epoch=%s\n' "$ended"
+ printf 'duration_seconds=%s\n' "$((ended - started))"
+ printf 'status=%s\n' "$status"
+ } > wsjtx-build/armhf-ctest-timing.env
+ echo "::endgroup::"
+ if [ "$status" -ne 0 ]; then
+ exit "$status"
+ fi
+fi
+
+if [ "$phase" = all ] || [ "$phase" = package ]; then
+ started="$(date +%s)"
+ set +e
+ GITHUB_TOKEN="$github_api_token" .github/scripts/package-linux-armhf.sh
+ status=$?
+ set -e
+ ended="$(date +%s)"
+ {
+ printf 'started_epoch=%s\n' "$started"
+ printf 'ended_epoch=%s\n' "$ended"
+ printf 'duration_seconds=%s\n' "$((ended - started))"
+ printf 'status=%s\n' "$status"
+ } > wsjtx-build/armhf-package-timing.env
+ if [ "$status" -ne 0 ]; then
+ exit "$status"
+ fi
+fi