diff options
author | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2015-04-27 06:51:24 +0200 |
---|---|---|
committer | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2015-04-27 06:51:24 +0200 |
commit | f3843702a12cf46f9cd4d1be772055ec6893a1bb (patch) | |
tree | 3f3d8fe1f2b756dc2cd9fcff7b2e8e53539278ba /debian/tests | |
parent | b2802d98d4486d6afc585062f4ca02fddf829dc5 (diff) |
Release 1.0.25+git20150425-1
Diffstat (limited to 'debian/tests')
-rw-r--r-- | debian/tests/control | 9 | ||||
-rw-r--r-- | debian/tests/start-net | 29 |
2 files changed, 38 insertions, 0 deletions
diff --git a/debian/tests/control b/debian/tests/control new file mode 100644 index 0000000..0d875a9 --- /dev/null +++ b/debian/tests/control @@ -0,0 +1,9 @@ +# +# control file for autopkgtests +# writen from Jörg Frings-Fürst <debian@jff-webhosting.net> +# +# 1. start-net +# +Tests: start-net +Depends: sane-utils +Restrictions: needs-root allow-stderr breaks-testbed 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 + |