diff --git a/Examples/CMakeLists.txt b/Examples/CMakeLists.txt index 5605c6bbc2dadb5b0b4d0c4a483072040b394f1d..4ea66c94087d8b2b05c39026ac7c46d71b3ba3a9 100644 --- a/Examples/CMakeLists.txt +++ b/Examples/CMakeLists.txt @@ -8,4 +8,8 @@ set(Examples_srcs gaudi_add_module(Examples ${Examples_srcs} INCLUDE_DIRS GaudiKernel LINK_LIBRARIES GaudiKernel -) \ No newline at end of file +) + +# Examples +gaudi_add_test(HelloAlg + FRAMEWORK options/helloalg.py) \ No newline at end of file diff --git a/Examples/options/helloalg.py b/Examples/options/helloalg.py new file mode 100644 index 0000000000000000000000000000000000000000..af9d547ca77b75a43fb779e99fa7228cc82d92f6 --- /dev/null +++ b/Examples/options/helloalg.py @@ -0,0 +1,15 @@ +#!/usr/bin/env python + +from Gaudi.Configuration import * + +from Configurables import HelloAlg + +helloalg = HelloAlg("helloAlg") +helloalg.MyInt = 42 + +# ApplicationMgr +from Configurables import ApplicationMgr +ApplicationMgr( TopAlg = [helloalg], + EvtSel = 'NONE', + EvtMax = 10, +)