forked from LLNL/Caliper
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtest_tau_service.py
30 lines (21 loc) · 888 Bytes
/
test_tau_service.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
# report / C config test
import unittest
import calipertest as cat
class CaliperReportTest(unittest.TestCase):
""" Caliper TAU service test case """
def test_tau(self):
target_cmd = [ './ci_test_mpi_before_cali' ]
caliper_config = {
'CALI_SERVICES_ENABLE' : 'tau',
'CALI_LOG_VERBOSITY' : '0',
'TAU_PROFILE' : '0',
'TAU_TRACE' : '0'
}
#query_output = cat.run_test_with_query(target_cmd, query_cmd, caliper_config)
query_output = cat.run_test(target_cmd, caliper_config)
#snapshots = cat.get_snapshots_from_text(query_output)
#self.assertTrue(len(snapshots) == 5)
#self.assertTrue(cat.has_snapshot_with_attributes(
#snapshots, { 'iteration#fooloop': '3', 'count': '1' }))
if __name__ == "__main__":
unittest.main()