mirror of
https://github.com/dredx/prole.git
synced 2026-09-24 19:54:32 +00:00
- 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.
39 lines
906 B
Bash
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
|