summaryrefslogtreecommitdiffstats
path: root/debian/tests
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-28 09:54:46 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-28 09:54:46 +0000
commit2d0129f6c70a7db250da488eb8668b3eb497c292 (patch)
tree49340fe84caa1e95035f5c240933c43f84763565 /debian/tests
parentAdding upstream version 0.8.0. (diff)
downloadlibrtr-2d0129f6c70a7db250da488eb8668b3eb497c292.tar.xz
librtr-2d0129f6c70a7db250da488eb8668b3eb497c292.zip
Adding debian version 0.8.0-1.debian/0.8.0-1debian
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r--debian/tests/control2
-rwxr-xr-xdebian/tests/tools-usage14
2 files changed, 16 insertions, 0 deletions
diff --git a/debian/tests/control b/debian/tests/control
new file mode 100644
index 0000000..0c2cd1e
--- /dev/null
+++ b/debian/tests/control
@@ -0,0 +1,2 @@
+Tests: tools-usage
+Depends: rtr-tools
diff --git a/debian/tests/tools-usage b/debian/tests/tools-usage
new file mode 100755
index 0000000..07daadf
--- /dev/null
+++ b/debian/tests/tools-usage
@@ -0,0 +1,14 @@
+#!/bin/sh
+
+# Very basic autopkg test to validate the two command line utilities rtrclient
+# and rpki-rov print a usage message when run without any arguments.
+
+for prg in rtrclient rpki-rov ; do
+ out=$("$prg" 2>&1)
+ if ! echo "${out}" | grep -q '^Usage:' ; then
+ echo "Error running ${prg}:" >&2
+ echo "Expected output to start with \"Usage:\", got:\n${out}" >&2
+ exit 1
+ fi
+
+done