summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRuben Undheim <ruben.undheim@gmail.com>2018-11-12 20:00:31 +0100
committerRuben Undheim <ruben.undheim@gmail.com>2018-11-12 20:00:31 +0100
commit6d0ba6a2c274260fa29ed10daf8e92e273d8b125 (patch)
tree862cb4ea59d3b94e10e7c1cb1d54c442d9790231
parent88e53713918f62a30a86f65517b89c4ff793f56f (diff)
autopkgtest
-rw-r--r--debian/changelog2
-rwxr-xr-xdebian/tests/can-show-help6
-rw-r--r--debian/tests/control4
3 files changed, 12 insertions, 0 deletions
diff --git a/debian/changelog b/debian/changelog
index a6d1dc4..f06299a 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -9,6 +9,8 @@ osmo-bsc (1.2.1-1) unstable; urgency=low
* debian/osmo-bsc.service: Install systemd service
* debian/rules:
- Do not enable or start systemd service when installing package
+ * debian/tests:
+ - Add simple autopkgtest to test that executable works
-- Ruben Undheim <ruben.undheim@gmail.com> Mon, 12 Nov 2018 19:55:57 +0100
diff --git a/debian/tests/can-show-help b/debian/tests/can-show-help
new file mode 100755
index 0000000..c22f257
--- /dev/null
+++ b/debian/tests/can-show-help
@@ -0,0 +1,6 @@
+#!/bin/sh
+
+set -e
+
+osmo-bsc -h
+echo "run: OK"
diff --git a/debian/tests/control b/debian/tests/control
new file mode 100644
index 0000000..4a87a97
--- /dev/null
+++ b/debian/tests/control
@@ -0,0 +1,4 @@
+Tests: can-show-help
+Depends: osmo-bsc
+
+