-
Notifications
You must be signed in to change notification settings - Fork 1
/
TestBenchy.py
executable file
·79 lines (69 loc) · 2.07 KB
/
TestBenchy.py
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
#!/usr/bin/env python3
import unittest
from main import main
class TestBenchy(unittest.TestCase):
def test_benchy01(self):
main(
[
"examples/benchy/benchy_0.1.yaml",
"examples/benchy/benchy.stl",
"examples/benchy/benchy_0.1.nc",
"examples/benchy/benchy_0.1_out.nc",
]
)
def test_benchy015(self):
main(
[
"examples/benchy/benchy_0.15.yaml",
"examples/benchy/benchy.stl",
"examples/benchy/benchy_0.15.nc",
"examples/benchy/benchy_0.15_out.nc",
]
)
def test_benchy02(self):
main(
[
"examples/benchy/benchy_0.2.yaml",
"examples/benchy/benchy.stl",
"examples/benchy/benchy_0.2.nc",
"examples/benchy/benchy_0.2_out.nc",
]
)
def test_benchy03(self):
main(
[
"examples/benchy/benchy_0.3.yaml",
"examples/benchy/benchy.stl",
"examples/benchy/benchy_0.3.nc",
"examples/benchy/benchy_0.3_out.nc",
]
)
def test_benchy04(self):
main(
[
"examples/benchy/benchy_0.4.yaml",
"examples/benchy/benchy.stl",
"examples/benchy/benchy_0.4.nc",
"examples/benchy/benchy_0.4_out.nc",
]
)
def test_benchy05(self):
main(
[
"examples/benchy/benchy_0.5.yaml",
"examples/benchy/benchy.stl",
"examples/benchy/benchy_0.5.nc",
"examples/benchy/benchy_0.5_out.nc",
]
)
def test_benchy06(self):
main(
[
"examples/benchy/benchy_0.6.yaml",
"examples/benchy/benchy.stl",
"examples/benchy/benchy_0.6.nc",
"examples/benchy/benchy_0.6_out.nc",
]
)
if __name__ == "__main__":
unittest.main()