From 8eae1aca826e08d953a43978bae554f20d07897a Mon Sep 17 00:00:00 2001 From: vg Date: Fri, 29 Mar 2024 11:16:52 +0100 Subject: get debian directory from debian archive --- debian/tests/installation | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 debian/tests/installation (limited to 'debian/tests/installation') diff --git a/debian/tests/installation b/debian/tests/installation new file mode 100644 index 00000000..271fc6ca --- /dev/null +++ b/debian/tests/installation @@ -0,0 +1,23 @@ +#!/bin/sh + +############################################ +### Check main installation requirements ### +############################################ + +set -e + +# Config file +echo "Checking config file present" +test -e /etc/default/fetchmail + +# Service +echo "Checking service scripts are installed" +test -e /etc/init.d/fetchmail +test -e /etc/ppp/ip-down.d/fetchmail + +# Script +echo "Checking fetchmail is present" +test -e /usr/bin/fetchmail +fetchmail --version > /dev/null 2>&1 +c=$(fetchmail --help 2>&1 | wc -l) +test $c -gt 5 -- cgit v1.2.3