summaryrefslogtreecommitdiff
path: root/debian/tests/admin-strongswan-starter
diff options
context:
space:
mode:
authorChristian Ehrhardt <christian.ehrhardt@canonical.com>2016-11-03 15:03:59 +0100
committerYves-Alexis Perez <corsac@corsac.net>2016-12-21 11:43:17 +0100
commit58adc44ebf6bd30dabd5f61299be79e4270d3b1a (patch)
tree0e2cf02db9fb8735d253c33f9cb6209047e2706b /debian/tests/admin-strongswan-starter
parent702c958006aca6bf34881cdcb1ece02d86278177 (diff)
downloadvyos-strongswan-58adc44ebf6bd30dabd5f61299be79e4270d3b1a.tar.gz
vyos-strongswan-58adc44ebf6bd30dabd5f61299be79e4270d3b1a.zip
* Add basic DEP8 tests
- d/tests/* add DEP8 tests - d/control enable autotestpkg Signed-off-by: Christian Ehrhardt <christian.ehrhardt@canonical.com>
Diffstat (limited to 'debian/tests/admin-strongswan-starter')
-rwxr-xr-xdebian/tests/admin-strongswan-starter21
1 files changed, 21 insertions, 0 deletions
diff --git a/debian/tests/admin-strongswan-starter b/debian/tests/admin-strongswan-starter
new file mode 100755
index 000000000..7b32e00fd
--- /dev/null
+++ b/debian/tests/admin-strongswan-starter
@@ -0,0 +1,21 @@
+#!/bin/sh
+#---------------------------
+# Testing strongswan-starter
+#---------------------------
+CMDS="
+/usr/bin/pki
+/usr/lib/ipsec/_copyright
+/usr/lib/ipsec/scepclient
+/usr/lib/ipsec/stroke
+/usr/sbin/ipsec
+"
+
+for cmd in $CMDS; do
+ $cmd --help > /dev/null 2>&1
+ RET=$?
+
+ if [ $RET -ne 0 ]; then
+ echo "ERROR, failed to run ${cmd}" >&2
+ exit $RET
+ fi
+done