Belle II Software  release-08-01-10
simulation_examples.py
1 #!/usr/bin/env python3
2 # -- analysis/tests/simulation_examples.py
3 
4 
11 
12 import b2test_utils as b2tu
13 import b2test_utils_analysis as b2tua
14 
15 
16 
17 
18 class ExamplesTest(b2tua.ExamplesTest):
20  """
21  Test supported simulation examples.
22  """
23  b2tu.skip_test_if_light(self) # simulation doesn't work in light releaes
24 
25  # list of broken examples (to be removed when they are individually fixed)
26  broken_sim_egs = ['B2A105-SimulateAndReconstruct-withBeamBkg.py'] # no beam background files on bamboo
27 
28  self._test_examples_dir('analysis/examples/simulations/', broken_sim_egs)
29 
30 
31 if __name__ == '__main__':
32  with b2tu.clean_working_directory():
33  b2tua.unittest.main()
extend the examples test class to actually run over the simulation examples: