diff options
Diffstat (limited to 'debian/tests')
-rw-r--r-- | debian/tests/control | 4 | ||||
-rw-r--r-- | debian/tests/start-net | 12 |
2 files changed, 8 insertions, 8 deletions
diff --git a/debian/tests/control b/debian/tests/control index 0d875a9..af31d1d 100644 --- a/debian/tests/control +++ b/debian/tests/control @@ -5,5 +5,5 @@ # 1. start-net # Tests: start-net -Depends: sane-utils -Restrictions: needs-root allow-stderr breaks-testbed +Depends: sane-utils, grep, coreutils +Restrictions: needs-root allow-stderr diff --git a/debian/tests/start-net b/debian/tests/start-net index dbc2c28..4ce08f1 100644 --- a/debian/tests/start-net +++ b/debian/tests/start-net @@ -7,23 +7,23 @@ set -ex # Enable localhost -sed -i '/localhost/d' /etc/sane.d/saned.conf +/bin/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 +/bin/sed -i 's/^#\(pnm\)$/\1/' /etc/sane.d/dll.conf # Enable net @ localhost -sed -i 's/^# \(localhost\)$/\1/' /etc/sane.d/net.conf +/bin/sed -i 's/^# \(localhost\)$/\1/' /etc/sane.d/net.conf # Enable & start saned.socket -systemctl enable saned.socket -systemctl start saned.socket +#/bin/systemctl enable saned.socket +#/bin/systemctl start saned.socket # # test # -CNT=`scanimage -d net -L | grep net: | wc -l` +CNT=`/usr/bin/scanimage -d net -L | /bin/grep net: | /usr/bin/wc -l` if [ ${CNT} -eq 2 ] ; then exit 0 |