-
Notifications
You must be signed in to change notification settings - Fork 10
/
regenerateAndTest.sh
executable file
·113 lines (89 loc) · 2.01 KB
/
regenerateAndTest.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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
#!/bin/bash
set -ex
# pytest
cd neuromllite/test
pytest -v
cd -
# test example in multiple simulators
cd examples
rm -rf *dat *nml LEMS* x86_64 *mod *hoc
echo
echo "**** Running Example 1 ****"
python Example1.py
echo
echo "**** Running Example 2 ****"
python Example2.py
python Example2.py -nml
echo
echo "**** Running Example 3 ****"
python Example3.py
python Example3.py -netpyne
python Example3.py -jnmlnrn
python Example3.py -jnmlnetpyne
python Example3.py -eden
echo
echo "**** Running Example 4 ****"
python Example4.py
python Example4.py -netpyne
if [[ "$CI" != "true" ]]; then
python Example4.py -pynnnest
python Example4.py -pynnnrn
fi
#python Example4.py -pynnbrian # Not supported in python 3...
python Example4.py -jnmlnetpyne
python Example4.py -jnmlnrn
python Example4.py -jnml
python Example4.py -sonata
echo
echo "**** Running Example 5 ****"
if [[ "$CI" != "true" ]]; then
python Example5.py
fi
#python Example5.py -netpyne # Takes 2-3 mins
echo
echo "**** Running Example 6 ****"
python Example6.py
python Example6.py -nml
python Example6.py -nml -noinputs
echo
echo "**** Running Example 7 ****"
python Example7.py
python Example7.py -jnmlnrn
python Example7.py -jnml
if [[ "$CI" != "true" ]]; then
python Example7.py -pynnnest
python Example7.py -pynnnrn
fi
echo
echo "**** Running Example 8 ****"
python Example8.py
#python Example8.py -jnmlnrn
#python Example8.py -jnml
jnml -validate *nml # All until now should be valid...
echo
echo "**** Running Example 9 ****"
python Example9.py
python Example9.py -jnml
echo
echo "**** Running Example 10 ****"
python Example10.py
python Example10.py -jnml
python Example10.py -mdf
echo
echo "**** Running Example 11 ****"
python Example11.py
python Example11.py -jnml
echo
echo "**** Running Example 12 ****"
python Example12.py
python Example12.py -jnmlnrn
echo
echo "**** Running Arbor Example ****"
cd arbor
python ArborExample.py
python ArborExample.py -arbor
echo
echo "** All generated and tested! **"
cd ../../docs
python generate.py
cd ..