Adds basic tests.

This commit is contained in:
2025-06-28 08:17:12 -07:00
parent 2968042236
commit 0399bd54cf
13 changed files with 539 additions and 0 deletions

25
test/run_bats_tests.sh Executable file
View File

@@ -0,0 +1,25 @@
#!/bin/bash
# run_bats_tests.sh
# Run all Bats tests in the test directory
set -e
# Get the directory where this script is located
TEST_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
# Check if bats is available
if [ ! -f "$TEST_DIR/bats/bin/bats" ]; then
echo "Error: Bats not found. Make sure git submodules are initialized:"
echo " git submodule update --init --recursive"
exit 1
fi
echo "Running Wild Cloud Bats Test Suite..."
echo "======================================"
# Run all .bats files
"$TEST_DIR/bats/bin/bats" "$TEST_DIR"/*.bats
echo ""
echo "All tests completed!"