Something went wrong. Try again.
agent management prototype
Something went wrong. Try again.
123456789101112131415161718192021222324252627282930313233343536373839#!/usr/bin/env bashset -euo pipefail
TEST_DIR="${1:-./testing}"SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
mkdir -p "$TEST_DIR"
write_file() { local filepath="$1" mkdir -p "$(dirname "$filepath")" cat > "$filepath" chmod +x "$filepath" if [[ "${VERBOSE:-0}" == "1" ]]; then echo " [+] created $filepath" fi}
export -f write_fileexport TEST_DIRexport VERBOSE
if [[ "${VERBOSE:-0}" == "1" ]]; then echo "shitting out test files into $TEST_DIR... :3"fi
for gen in "$SCRIPT_DIR"/generators/*.sh; do [[ -f "$gen" ]] || continue if [[ "${VERBOSE:-0}" == "1" ]]; then echo " ── Running $(basename "$gen") ──" fi bash "$gen" "$TEST_DIR"done
if [[ "${VERBOSE:-0}" == "1" ]]; then echo "all done! u can run tests with: bash testing/run_tests :3"fi