30 lines
657 B
Bash
30 lines
657 B
Bash
#!/bin/bash
|
|
|
|
# Setup script for test Unity projects
|
|
# This initializes and updates git submodules containing test Unity projects
|
|
|
|
set -e
|
|
|
|
echo "Setting up test Unity projects..."
|
|
|
|
# Initialize and update all submodules
|
|
echo "Initializing git submodules..."
|
|
git submodule init
|
|
git submodule update
|
|
|
|
# Verify that test projects exist
|
|
if [ ! -d "data/tests" ]; then
|
|
echo "Error: Test projects directory not found"
|
|
echo "Please ensure git submodules are properly initialized"
|
|
exit 1
|
|
fi
|
|
|
|
echo "Test projects setup complete!"
|
|
echo "Available test projects:"
|
|
for dir in data/tests/*/; do
|
|
if [ -d "$dir" ]; then
|
|
basename "$dir"
|
|
fi
|
|
done
|
|
|