diff --git a/tests/run-test-suite.sh b/tests/run-test-suite.sh index 67904b7..5601ce9 100755 --- a/tests/run-test-suite.sh +++ b/tests/run-test-suite.sh @@ -1,15 +1,25 @@ #!/bin/bash # Author : Gaston Gonzalez # Date : 3 November 2024 +# Updated : 8 November 2024 # Purpose : Post installation validation script 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 eval ${test_case} if [[ $? -eq 0 ]]; then - printf "%20s %s\n" "${test_case}" "[PASSED]" + printf "%20s ${GREEN}%s${NC}\n" "${test_case}" "[PASSED]" else - printf "%20s %s\n" "${test_case}" "[FAILED]" + printf "%20s ${RED}%s${NC}\n" "${test_case}" "[FAILED]" fi done diff --git a/tests/test-direwolf.sh b/tests/test-direwolf.sh new file mode 100755 index 0000000..dc76ae1 --- /dev/null +++ b/tests/test-direwolf.sh @@ -0,0 +1,7 @@ +#!/bin/bash +# Author : Gaston Gonzalez +# Date : 8 November 2024 +# Purpose : Test direwolf installation + +OUT=$(which direwolf) +exit $?