Modify dehydrate/test.sh
Some checks failed
Build-Test-Publish / build (linux/arm64) (push) Failing after 9s
Build-Test-Publish / build (linux/amd64) (push) Successful in 26s
Build-Test-Publish / test-install-from-scratch (linux/amd64) (push) Has been skipped
Build-Test-Publish / test-install-from-scratch (linux/arm64) (push) Has been skipped

This commit is contained in:
Your Name
2025-06-25 17:54:30 +12:00
parent 3d4744b7b1
commit 95da0d28d4
22 changed files with 776 additions and 5 deletions

View File

@ -121,15 +121,33 @@ fi
cleanup
# Print summary
echo -e "\n${YELLOW}Test Summary:${NC}"
# Print summary for basic tests
echo -e "\n${YELLOW}Basic Test Summary:${NC}"
echo -e "Tests passed: ${GREEN}${TESTS_PASSED}${NC}"
echo -e "Tests failed: ${RED}${TESTS_FAILED}${NC}"
# Run comprehensive tests if basic tests passed
if [ "$TESTS_FAILED" -eq 0 ]; then
echo -e "\n${GREEN}All tests passed!${NC}"
exit 0
echo -e "\n${YELLOW}Running comprehensive tests...${NC}"
if [ -f "$SCRIPT_DIR/test/test.sh" ]; then
cd "$SCRIPT_DIR/test"
./test.sh
COMPREHENSIVE_RESULT=$?
cd "$SCRIPT_DIR"
if [ "$COMPREHENSIVE_RESULT" -eq 0 ]; then
echo -e "\n${GREEN}All tests passed!${NC}"
exit 0
else
echo -e "\n${RED}Comprehensive tests failed!${NC}"
exit 1
fi
else
echo -e "${YELLOW}Warning: Comprehensive test suite not found${NC}"
echo -e "\n${GREEN}Basic tests passed!${NC}"
exit 0
fi
else
echo -e "\n${RED}Some tests failed!${NC}"
echo -e "\n${RED}Basic tests failed! Skipping comprehensive tests.${NC}"
exit 1
fi