-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest.sh
More file actions
39 lines (33 loc) · 882 Bytes
/
Copy pathtest.sh
File metadata and controls
39 lines (33 loc) · 882 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#!/bin/bash
echo "=== Rodando Tests ==="
VERDE='\033[0;32m'
VERMELHO='\033[0;31m'
SEM_COR='\033[0m'
# Teste 1: disk-monitor
RESULTADO=$(./Scripts/disk-monitor.sh)
if [ -n "$RESULTADO" ]; then
echo -e "${VERDE}PASS: disk-monitor${SEM_COR}"
else
echo -e "${VERMELHO}FAIL: disk-monitor${SEM_COR}"
fi
# Teste 2: helthcheck
RESULTADO=$(./Scripts/helthcheck.sh)
if [ -n "$RESULTADO" ]; then
echo -e "${VERDE}PASS: helthcheck${SEM_COR}"
else
echo -e "${VERMELHO}FAIL: helthcheck${SEM_COR}"
fi
# Teste 3: log-clean
RESULTADO=$(./Scripts/log-clean.sh)
if [ -n "$RESULTADO" ]; then
echo -e "${VERDE}PASS: log-clean${SEM_COR}"
else
echo -e "${VERMELHO}FAIL: log-clean${SEM_COR}"
fi
# Teste 4: backup
RESULTADO=$(./Scripts/backup.sh)
if [ -n "$RESULTADO" ]; then
echo -e "${VERDE}PASS: backup${SEM_COR}"
else
echo -e "${VERMELHO}FAIL: backup${SEM_COR}"
fi