Test - Added initial test case for dire wolf installation

This commit is contained in:
Gaston Gonzalez
2024-11-08 15:22:04 -07:00
parent 9fa52340ad
commit da1392523e
2 changed files with 19 additions and 2 deletions
+12 -2
View File
@@ -1,15 +1,25 @@
#!/bin/bash #!/bin/bash
# Author : Gaston Gonzalez # Author : Gaston Gonzalez
# Date : 3 November 2024 # Date : 3 November 2024
# Updated : 8 November 2024
# Purpose : Post installation validation script # Purpose : Post installation validation script
PATH=.:$PATH PATH=.:$PATH
YELLOW="\033[1;33m"
GREEN="\033[0;32m"
RED="\033[0;31m"
NC="\033[0m"
echo -e "${YELLOW}---------------------------------------"
echo "EmComm Tools Post Validation Test Suite"
echo -e "---------------------------------------${NC}"
ls test-*.sh | while read test_case; do ls test-*.sh | while read test_case; do
eval ${test_case} eval ${test_case}
if [[ $? -eq 0 ]]; then if [[ $? -eq 0 ]]; then
printf "%20s %s\n" "${test_case}" "[PASSED]" printf "%20s ${GREEN}%s${NC}\n" "${test_case}" "[PASSED]"
else else
printf "%20s %s\n" "${test_case}" "[FAILED]" printf "%20s ${RED}%s${NC}\n" "${test_case}" "[FAILED]"
fi fi
done done
+7
View File
@@ -0,0 +1,7 @@
#!/bin/bash
# Author : Gaston Gonzalez
# Date : 8 November 2024
# Purpose : Test direwolf installation
OUT=$(which direwolf)
exit $?