Belle II Software development
test_whizard.py
1
8
9'''
10Test if WHIZARD works.
11'''
12
13import subprocess
14
15import basf2 as b2
16import b2test_utils as b2tu
17
18
19if __name__ == '__main__':
20
21 if not b2tu.is_ci():
22 b2tu.skip_test("The test can not be properly run on buildbot.")
23
24 with b2tu.clean_working_directory() as working_dir:
25
26 steering_file = b2.find_file('generators/examples/Whizard.py')
27 subprocess.check_call(['basf2', steering_file, '--experiment', '0', '--run', '0', '-n', '100'])