summaryrefslogtreecommitdiff
path: root/debian/tests/start-net
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff-webhosting.net>2015-04-23 20:15:14 +0200
committerJörg Frings-Fürst <debian@jff-webhosting.net>2015-04-23 20:15:14 +0200
commitc2be8f2c34f047a570a4ad8f642950c34cde33e5 (patch)
tree1dcbf7f3bf76169dec773cbfd43fe11adccb014d /debian/tests/start-net
parentf9f3f3426126f059165a1f37da0ad3ea205fbdd0 (diff)
Add autopkgtests
Diffstat (limited to 'debian/tests/start-net')
-rw-r--r--debian/tests/start-net29
1 files changed, 29 insertions, 0 deletions
diff --git a/debian/tests/start-net b/debian/tests/start-net
new file mode 100644
index 0000000..65679c3
--- /dev/null
+++ b/debian/tests/start-net
@@ -0,0 +1,29 @@
+#!/bin/sh
+set -ex
+
+# Simple test for sane-backends.
+# Author: Jörg Frings-Fürst <debian@jff-webhosting.net>
+# dep8 restrictions: breaks-bestbed needs-root allow-stderr
+
+
+# Enable localhost
+sed -i '/localhost/d' /etc/sane.d/saned.conf
+echo localhost >>/etc/sane.d/saned.conf
+
+# Enable pnm
+sed -i 's/^#\(pnm\)$/\1/' /etc/sane.d/dll.conf
+
+# Enable saned.socket
+systemctl enable saned.socket
+
+#
+# test
+#
+CNT=`scanimage -d net -L | grep net: | wc -l`
+
+if [ ${CNT} -eq 2 ] ; then
+ exit 0
+else
+ exit 100
+fi
+