Files
konduktor/backend/run_tests.sh
T

22 lines
1.0 KiB
Bash
Executable File

#!/usr/bin/env bash
# Run Konduktor's backend tests against a copy of the real collection.
# ALWAYS run this before changing anything in the save/serialization path.
set -uo pipefail
cd "$(dirname "${BASH_SOURCE[0]}")"
source .venv/bin/activate
fail=0
for t in test_layering.py test_save_fidelity.py test_traktor_adapter.py test_rekordbox_adapter.py test_rekordbox_fidelity.py test_onelibrary_adapter.py test_import.py test_grid_detect.py test_auto_hotcues.py test_grid_batch.py test_bulk_remove.py test_picker.py test_library_id.py test_exports.py test_export.py test_export_pioneer.py test_phase3.py test_history.py; do
echo "──────────────────────────────────────────"
echo "▶ $t"
echo "──────────────────────────────────────────"
python "$t" || fail=1
echo
done
if [ "$fail" -ne 0 ]; then
echo "❌ TESTS FAILED"
exit 1
fi
echo "✅ ALL TESTS PASSED"