]> git.99rst.org Git - openwrt-packages.git/commit
sudo: add test-version.sh and stop running sudo in tests
authorAlexandru Ardelean <redacted>
Mon, 10 Aug 2026 09:41:17 +0000 (12:41 +0300)
committerAlexandru Ardelean <redacted>
Mon, 10 Aug 2026 17:17:56 +0000 (20:17 +0300)
commit8c8875c1f6f8eb11ca504f2abb3145c960a59081
tree7e4b3d3b0d1d32d9c07853300072c2207c7f99cc
parentbfb4cce23ac9eff565d2bcd0fa57c6685326d5d9
sudo: add test-version.sh and stop running sudo in tests

PKG_VERSION substitutes p->_p (1.9.17_p2) for a valid apk version, but the
binaries print the real 1.9.17p2, so the generic per-executable version
probe reports "no executables provided version" and fails. Add a
test-version.sh that matches the version string compiled into the binary.

Executing sudo under QEMU emulation (e.g. mips_24kc) hangs indefinitely, so
neither test-version.sh nor test.sh runs it any more: the version is read
from the binary and test.sh only checks the installed files.

Signed-off-by: Alexandru Ardelean <redacted>
admin/sudo/test-version.sh [new file with mode: 0755]
admin/sudo/test.sh [changed mode: 0644->0755]
git clone https://git.99rst.org/PROJECT