-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest_lttng.py
More file actions
27 lines (22 loc) · 807 Bytes
/
test_lttng.py
File metadata and controls
27 lines (22 loc) · 807 Bytes
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
import os
import argparse
import app
from LTTng import test_runner
from LTTng import configuration
if __name__ == '__main__':
parser = argparse.ArgumentParser()
parser.add_argument(
'-c', '--configuration',
help='run the test',
dest='configuration_path',
default=os.path.join(app.script_root, 'TestConfiguration', 'LTTng.conf')
)
args = parser.parse_args()
configuration_path = args.configuration_path
test_conf = configuration.LTTngTestConfiguration(configuration_path)
test_runner.init_test(test_conf)
for run_conf in test_conf.run_conf_list:
test_runner.install_DotNET_SDK(run_conf)
test_runner.prepare_sample_app(run_conf)
test_runner.run_test_for_single_SDK(run_conf)
test_runner.clean_temp(run_conf)