summaryrefslogtreecommitdiffstats
path: root/rteval/rtevalConfig.py
diff options
context:
space:
mode:
Diffstat (limited to 'rteval/rtevalConfig.py')
-rw-r--r--rteval/rtevalConfig.py16
1 files changed, 16 insertions, 0 deletions
diff --git a/rteval/rtevalConfig.py b/rteval/rtevalConfig.py
index 5fad260..bb77da2 100644
--- a/rteval/rtevalConfig.py
+++ b/rteval/rtevalConfig.py
@@ -185,3 +185,19 @@ class rtevalConfig(rtevalCfgSection):
return rtevalCfgSection(self.__config_data[section])
except KeyError, err:
raise KeyError("The section '%s' does not exist in the config file" % section)
+
+
+def unit_test(rootdir):
+ try:
+ cfg = rtevalConfig()
+ cfg.Load(rootdir + '/rteval/rteval.conf')
+ print cfg
+ return 0
+ except Exception, e:
+ print "** EXCEPTION %s", str(e)
+ return 1
+
+
+if __name__ == '__main__':
+ import sys
+ sys.exit(unit_test('..'))