Files
packages/net/frr/test-version.sh
Alexandru Ardelean 850c6d3053 frr: add test.sh and test-version.sh, keep libmlag_pb.so symlinks
test.sh asserts vtysh, libfrr.so and the per-subpackage daemon binary,
and cross-checks the release in "vtysh --help" against the package
version. test-version.sh overrides the generic scan, which cannot work
for frr-pythontools.

Package/frr-zebra installed libmlag_pb.so* with INSTALL_BIN, which
dereferences symlinks and so tripped the SONAME-symlink check; use
$(CP) instead.

Signed-off-by: Alexandru Ardelean <alex@shruggie.ro>
2026-10-07 16:12:29 +03:00

37 lines
505 B
Bash
Executable File

#!/bin/sh
# shellcheck shell=busybox
# frr-pythontools ships no binary carrying FRR_VERSION; test.sh covers
# the version probes that do work.
case "$PKG_NAME" in
frr|\
frr-watchfrr|\
frr-zebra|\
frr-pythontools|\
frr-babeld|\
frr-bfdd|\
frr-bgpd|\
frr-eigrpd|\
frr-fabricd|\
frr-isisd|\
frr-ldpd|\
frr-nhrpd|\
frr-ospfd|\
frr-ospf6d|\
frr-pathd|\
frr-pbrd|\
frr-pimd|\
frr-pim6d|\
frr-ripd|\
frr-ripngd|\
frr-staticd|\
frr-vrrpd)
exit 0
;;
*)
echo "Untested package: $PKG_NAME" >&2
exit 1
;;
esac