From 7aa5dfe506971c74a818a22e9675a42048391911 Mon Sep 17 00:00:00 2001
From: lintao <lintao51@gmail.com>
Date: Tue, 6 Aug 2019 14:19:32 +0800
Subject: [PATCH] add a test case.

---
 Examples/CMakeLists.txt      |  6 +++++-
 Examples/options/helloalg.py | 15 +++++++++++++++
 2 files changed, 20 insertions(+), 1 deletion(-)
 create mode 100644 Examples/options/helloalg.py

diff --git a/Examples/CMakeLists.txt b/Examples/CMakeLists.txt
index 5605c6bb..4ea66c94 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 00000000..af9d547c
--- /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,
+)
-- 
GitLab