-
Notifications
You must be signed in to change notification settings - Fork 0
/
test_assert_simulation.py
28 lines (21 loc) · 1.14 KB
/
test_assert_simulation.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
import pathlib as pl
import unittest
from unit_tests.TestAssertSimulationNetcdf import TestAssertSimulationNetcdf
from unit_tests.TestAssertSimulationStates import TestAssertSimulationStates
reference = "latest_main"
reference_dir = pl.Path("./simulation/reference_output").absolute()
comparison_dir = pl.Path("./simulation/comparison_output").absolute()
if __name__ == '__main__':
configurations = [d.stem for d in (reference_dir / reference).iterdir() if d.is_dir()]
for configuration in configurations:
print(f'configuration {configuration}')
TestAssertSimulationNetcdf.reference = reference
TestAssertSimulationNetcdf.configuration = configuration
TestAssertSimulationNetcdf.reference_dir = reference_dir
TestAssertSimulationNetcdf.comparison_dir = comparison_dir
TestAssertSimulationStates.reference = reference
TestAssertSimulationStates.configuration = configuration
TestAssertSimulationStates.reference_dir = reference_dir
TestAssertSimulationStates.comparison_dir = comparison_dir
unittest.main(verbosity=2,
exit=False)