Skip to content
Merged
16 changes: 16 additions & 0 deletions ahcpd/test-version.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#!/bin/sh

# shellcheck shell=busybox

case "$PKG_NAME" in
ahcpd)
# ahcpd does not provide any option to report its version.
# Check that the binary starts and prints its usage instead.
ahcpd 2>&1 | grep -F "Syntax: ahcpd"
;;

*)
echo "Untested package: $PKG_NAME" >&2
exit 1
;;
esac
15 changes: 15 additions & 0 deletions babel-pinger/test-version.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#!/bin/sh

# shellcheck shell=busybox

case "$PKG_NAME" in
babel-pinger)
# babel-pinger does not provide any option to report its version
exit 0
;;

*)
echo "Untested package: $PKG_NAME" >&2
exit 1
;;
esac
17 changes: 17 additions & 0 deletions naywatch/test-version.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#!/bin/sh

# shellcheck shell=busybox

case "$PKG_NAME" in
naywatch)
# naywatch is a watchdog shell script which does not provide any
# option to report its version. It must not be executed during
# the CI runtime tests, since it may trigger a reboot.
exit 0
;;

*)
echo "Untested package: $PKG_NAME" >&2
exit 1
;;
esac
16 changes: 16 additions & 0 deletions ohybridproxy/test-version.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#!/bin/sh

# shellcheck shell=busybox

case "$PKG_NAME" in
ohybridproxy|zonestitcher)
# The package version is derived from the source date and git
# hash, which the binaries do not report
exit 0
;;

*)
echo "Untested package: $PKG_NAME" >&2
exit 1
;;
esac
16 changes: 16 additions & 0 deletions pimbd/test-version.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#!/bin/sh

# shellcheck shell=busybox

case "$PKG_NAME" in
pimbd)
# The package version is derived from the source date and git
# hash, which the binary does not report
exit 0
;;

*)
echo "Untested package: $PKG_NAME" >&2
exit 1
;;
esac
16 changes: 16 additions & 0 deletions prince/test-version.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#!/bin/sh

# shellcheck shell=busybox

case "$PKG_NAME" in
prince)
# prince requires a configuration file and does not provide any
# option to report its version
exit 0
;;

*)
echo "Untested package: $PKG_NAME" >&2
exit 1
;;
esac
Loading