added cargo files

This commit is contained in:
2026-03-03 10:57:43 -05:00
parent 478a90e01b
commit 169df46bc2
813 changed files with 227273 additions and 9 deletions

26
PinePods-0.8.2/setup-tests.sh Executable file
View File

@@ -0,0 +1,26 @@
#!/bin/bash
# Get the directory where the script is located
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
# Create and activate virtual environment if it doesn't exist
if [ ! -d "${SCRIPT_DIR}/venv" ]; then
python -m venv "${SCRIPT_DIR}/venv"
fi
# Activate virtual environment
source "${SCRIPT_DIR}/venv/bin/activate"
# Install requirements using absolute path
pip install -r "${SCRIPT_DIR}/test-requirements.txt"
# Create test environment file
cat > .env.test << EOL
TEST_MODE=true
EOL
# Create tests directory if it doesn't exist
mkdir -p tests
echo "Test environment setup complete!"
echo "Run tests with: ./run-tests.sh [postgresql|mariadb]"