Files
Josef Schlehofer a534ca827b rtty: add version check override
The generic runtime test fails for all four variants:

  rtty-nossl: No executables in the package provided version 9.1.0

rtty -V does print the version, but its log library writes to syslog
when stdout is not a terminal. The harness captures the output through
a pipe, so it gets nothing.

The override matches the version string built into /usr/sbin/rtty
instead. It compares whole NUL-terminated strings, because the binary
also holds source paths like rtty-9.1.0/src/main.c.

Tested in the CI test container (aarch64_generic, main) with the
snapshot packages. All four variants pass.

Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
2026-11-03 13:32:32 +02:00

19 lines
492 B
Bash
Executable File

#!/bin/sh
# shellcheck shell=busybox
case "$PKG_NAME" in
rtty-mbedtls|rtty-nossl|rtty-openssl|rtty-wolfssl)
# rtty -V logs the version to syslog unless stdout is a terminal, so
# there is no output to check. Match the version string built into the
# binary instead. It also holds source paths like rtty-9.1.0/src/main.c,
# so compare whole NUL-terminated strings.
tr '\0' '\n' < /usr/sbin/rtty | grep -Fx "$PKG_VERSION"
;;
*)
echo "Untested package: $PKG_NAME" >&2
exit 1
;;
esac