prole/tests/etc/run_all.sh
chrisfu d2efb835b0 Refactor project structure and update initialization scripts
- Moved files from 'prole/' subdirectory to root level or appropriate subdirectories (tests, authority, infrastructure) to flatten the project structure.

- Updated 'install.py' and initialization scripts in 'etc/' to reflect the new directory layout.

- Added 'etc/repair_pipeline.sh' for automated pipeline repairs.

- Updated configuration files including 'conf/prole.cfg' and 'env.sh'.

- Integrated ArgoCD manifests in 'k8s/argocd/'.

- Updated 'prole-app' environment and properties.

- Moved and updated test scripts for better organization and reliability.

- Added 'tests/silent_install_test.sh' for automated installation testing.
2026-02-14 13:44:49 -08:00

39 lines
906 B
Bash

#!/usr/bin/env bash
# prole/tests/etc/run_all.sh
# Runner for all script unit tests in etc/
SCRIPT_DIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
TEST_DIR="$SCRIPT_DIR"
PASSED=0
FAILED=0
FAILED_TESTS=()
echo "Running etc/ script unit tests..."
echo "--------------------------------"
for test_script in "$TEST_DIR"/test_*.sh; do
if [[ -f "$test_script" ]]; then
echo -n "Running $(basename "$test_script")... "
if bash "$test_script" > /dev/null 2>&1; then
echo "PASSED"
((PASSED++))
else
echo "FAILED"
((FAILED++))
FAILED_TESTS+=("$(basename "$test_script")")
fi
fi
done
echo "--------------------------------"
echo "Tests completed: $((PASSED + FAILED))"
echo "Passed: $PASSED"
echo "Failed: $FAILED"
if [[ $FAILED -gt 0 ]]; then
echo "Failed tests: ${FAILED_TESTS[*]}"
exit 1
fi
exit 0