aboutsummaryrefslogtreecommitdiffstats
path: root/test/root/root.sh
diff options
context:
space:
mode:
Diffstat (limited to 'test/root/root.sh')
-rwxr-xr-xtest/root/root.sh21
1 files changed, 10 insertions, 11 deletions
diff --git a/test/root/root.sh b/test/root/root.sh
index e8c0ec1ac..a39525b6e 100755
--- a/test/root/root.sh
+++ b/test/root/root.sh
@@ -11,8 +11,7 @@ export LC_ALL=C
11#******************************** 11#********************************
12# firecfg 12# firecfg
13#******************************** 13#********************************
14which less 2>/dev/null 14if command -v less
15if [ "$?" -eq 0 ];
16then 15then
17 echo "TESTING: firecfg (test/root/firecfg.exp)" 16 echo "TESTING: firecfg (test/root/firecfg.exp)"
18 mv /home/netblue/.local/share/applications /home/netblue/.local/share/applications-store 17 mv /home/netblue/.local/share/applications /home/netblue/.local/share/applications-store
@@ -25,24 +24,24 @@ fi
25#******************************** 24#********************************
26# servers 25# servers
27#******************************** 26#********************************
28if [ -f /etc/init.d/snmpd ] 27if [[ -f /etc/init.d/snmpd ]]
29then 28then
30 echo "TESTING: snmpd (test/root/snmpd.exp)" 29 echo "TESTING: snmpd (test/root/snmpd.exp)"
31 ./snmpd.exp 30 ./snmpd.exp
32else 31else
33 echo "TESTING SKIP: snmpd not found" 32 echo "TESTING SKIP: snmpd not found"
34fi 33fi
35 34
36 35
37if [ -f /etc/init.d/apache2 ] 36if [[ -f /etc/init.d/apache2 ]]
38then 37then
39 echo "TESTING: apache2 (test/root/apache2.exp)" 38 echo "TESTING: apache2 (test/root/apache2.exp)"
40 ./apache2.exp 39 ./apache2.exp
41else 40else
42 echo "TESTING SKIP: apache2 not found" 41 echo "TESTING SKIP: apache2 not found"
43fi 42fi
44 43
45if [ -f /etc/init.d/isc-dhcp-server ] 44if [[ -f /etc/init.d/isc-dhcp-server ]]
46then 45then
47 echo "TESTING: isc dhcp server (test/root/isc-dhscp.exp)" 46 echo "TESTING: isc dhcp server (test/root/isc-dhscp.exp)"
48 ./isc-dhcp.exp 47 ./isc-dhcp.exp
@@ -50,20 +49,20 @@ else
50 echo "TESTING SKIP: isc dhcp server not found" 49 echo "TESTING SKIP: isc dhcp server not found"
51fi 50fi
52 51
53if [ -f /etc/init.d/unbound ] 52if [[ -f /etc/init.d/unbound ]]
54then 53then
55 echo "TESTING: unbound (test/root/unbound.exp)" 54 echo "TESTING: unbound (test/root/unbound.exp)"
56 ./unbound.exp 55 ./unbound.exp
57else 56else
58 echo "TESTING SKIP: unbound not found" 57 echo "TESTING SKIP: unbound not found"
59fi 58fi
60 59
61if [ -f /etc/init.d/nginx ] 60if [[ -f /etc/init.d/nginx ]]
62then 61then
63 echo "TESTING: nginx (test/root/nginx.exp)" 62 echo "TESTING: nginx (test/root/nginx.exp)"
64 ./nginx.exp 63 ./nginx.exp
65else 64else
66 echo "TESTING SKIP: nginx not found" 65 echo "TESTING SKIP: nginx not found"
67fi 66fi
68 67
69#******************************** 68#********************************