-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathrun_tests.sh
executable file
·23 lines (16 loc) · 1.11 KB
/
run_tests.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/bash
echo "Python tests"
python3 -m pytest
export MU2SLS_TOP=${MU2SLS_TOP:-$(git rev-parse --show-toplevel --show-superproject-working-tree)}
test_log_dir="${MU2SLS_TOP}/tests/logs/"
mkdir -p "${test_log_dir}"
test_log="${test_log_dir}/tests.log"
echo "Application integration tests... logs in \"${test_log}\""
echo "Simple URL shortener service with local store..."
./tests/test_services.sh "${MU2SLS_TOP}/experiments/url-shortener-test.csv" >"${test_log}" 2>&1 || { echo "Error: UrlShortener service test failed"; exit 1; }
echo "Cross Service Transactions with local store..."
./tests/test_services.sh "${MU2SLS_TOP}/experiments/cross-service-txn-test.csv" >>"${test_log}" 2>&1 || { echo "Error: Cross Service Transactions test failed"; exit 1; }
echo "Media service with local store..."
./tests/test_services.sh "${MU2SLS_TOP}/experiments/media-service-test.csv" >>"${test_log}" 2>&1 || { echo "Error: Media service test failed"; exit 1; }
#echo "Media service with local Beldi FDB store..."
#./tests/test_media_service.sh beldi >>"${test_log}" 2>&1 || { echo "Error: Media service test (with beldi) failed"; exit 1; }