2015-09-14 21:42:25 -04:00
|
|
|
import os
|
2015-06-04 13:53:42 +07:00
|
|
|
import sys
|
2018-01-29 10:53:46 -06:00
|
|
|
|
|
|
|
|
from tests.testing_harness import TestHarness
|
2014-01-06 09:57:45 -05:00
|
|
|
|
|
|
|
|
|
2015-06-25 00:10:07 -06:00
|
|
|
class SourcepointTestHarness(TestHarness):
|
|
|
|
|
def _test_output_created(self):
|
|
|
|
|
"""Make sure statepoint.* and source* have been created."""
|
|
|
|
|
TestHarness._test_output_created(self)
|
2018-01-29 10:53:46 -06:00
|
|
|
source = glob.glob(os.path.join(os.getcwd(), 'source.*.h5'))
|
2015-06-25 00:10:07 -06:00
|
|
|
assert len(source) == 1, 'Either multiple or no source files ' \
|
|
|
|
|
'exist.'
|
2014-01-06 09:57:45 -05:00
|
|
|
|
2014-03-11 18:59:37 -04:00
|
|
|
|
2018-01-29 12:10:24 -06:00
|
|
|
def test_sourcepoint_latest():
|
2017-04-07 10:25:24 -05:00
|
|
|
harness = TestHarness('statepoint.10.h5')
|
2015-06-29 18:50:53 -06:00
|
|
|
harness.main()
|