-
Notifications
You must be signed in to change notification settings - Fork 4
/
test.sh
executable file
·49 lines (32 loc) · 1.31 KB
/
test.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
46
47
48
set -ex
ruff format cect/*.py
ruff check cect/*.py
pip install .[docs]
quick_test=0
if [[ ($# -eq 1) && ($1 == '-q') ]]; then
quick_test=1
else
mv docs/*data*md /tmp 2>/dev/null || true
mv docs/assets/*json /tmp 2>/dev/null || true
fi
## Test readers
python -m cect.Cells $quick_test
if [ "$quick_test" == 0 ]; then
python -m cect.TestDataReader -nogui
python -m cect.ConnectomeView
python -m cect.ConnectomeDataset -nogui
# Note: all run when Cells above called...
#python -m cect.Cook2019DataReader
#python -m cect.Cook2019HermReader -nogui
#python -m cect.WormNeuroAtlasReader -nogui
#python -m cect.WitvlietDataReader1
#python -m cect.WitvlietDataReader2
python -m cect.WhiteDataReader
#python -m cect.White_A
#python -m cect.White_L4
#python -m cect.Comparison 0
fi
mkdocs build
echo
echo " Successfully completed all cect tests (quick run: $quick_test)!"
echo