-
Notifications
You must be signed in to change notification settings - Fork 14
/
run-tests.sh
executable file
·45 lines (37 loc) · 919 Bytes
/
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
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#!/bin/bash
_main() (
EXCHANGES=(usa nze asx tlv)
PERIODS=(h d w)
set -e
TESTS=(cache datetime-assumptions utils time_utils)
for T in "${TESTS[@]}" ; do
echo "Running tests in tests/$T ..."
python -m tests.test_$T
done
for E in "${EXCHANGES[@]}" ; do
T="market_schedules_$E"
echo "Running tests in tests/$T ..."
python -m tests.test_$T
done
for E in "${EXCHANGES[@]}" ; do
T="market_intervals_$E"
echo "Running tests in tests/$T ..."
python -m tests.test_$T
done
for E in "${EXCHANGES[@]}" ; do
T="missing_intervals_$E"
echo "Running tests in tests/$T ..."
python -m tests.test_$T
done
for P in "${PERIODS[@]}" ; do
T="price_data_aging_1$P"
echo "Running tests in tests/$T ..."
python -m tests.test_$T
done
Y=(yf_assumptions yfc_backend yfc_adjust yfc_interface)
for T in "${Y[@]}" ; do
echo "Running tests in tests/$T ..."
python -m tests.test_$T
done
)
_main