]> git.99rst.org Git - openwrt-packages.git/commit
uradvd: fix the version check override
authorJosef Schlehofer <redacted>
Sun, 9 Aug 2026 10:18:45 +0000 (12:18 +0200)
committerAlexandru Ardelean <redacted>
Mon, 10 Aug 2026 17:27:25 +0000 (20:27 +0300)
commit9e4789e5f50b66aa125f6a8de21769b654f7728a
treed0f084385bbbcd56356132f33664af462f00e966
parent22e7e5414fbade427f4f5ec2e9e6b27124261a66
uradvd: fix the version check override

The script greps for "uradvd $PKG_SOURCE_DATE", but the test harness
only exports PKG_NAME, PKG_VERSION and CI_HELPERS. PKG_SOURCE_DATE is a
build time Makefile variable and is empty in the test container, so the
grep -Fx pattern is "uradvd " and never matches.

The binary is built with VERSION=$(PKG_SOURCE_DATE) and prints
"uradvd 2025-09-20", while PKG_VERSION is 2025.09.20~<short hash>, so
derive the date from the version instead.

Rename it to test-version.sh in the process: the generic probe looks for
PKG_VERSION verbatim and cannot match the dashed date either, and uradvd
is the only executable in the package, so without an override the whole
package fails. The shebang goes back to /bin/sh, which is what the
harness runs the script with.

Signed-off-by: Josef Schlehofer <redacted>
net/uradvd/test-version.sh [new file with mode: 0644]
net/uradvd/test.sh [deleted file]
git clone https://git.99rst.org/PROJECT