diff options
author | Benny Prijono <bennylp@teluu.com> | 2008-12-29 14:56:32 +0000 |
---|---|---|
committer | Benny Prijono <bennylp@teluu.com> | 2008-12-29 14:56:32 +0000 |
commit | 617a0442519d3c5602a4228a620fdd9e49ea33a3 (patch) | |
tree | 602426f0ff40843e384fc942ee36ee1e7902aaa7 /tests/cdash/cfg_gnu.py | |
parent | b18d5bc1e43b4c47f6433a608dfb625b2e7edf8d (diff) |
Added cdash framework for pjsip tests. Currently there is only test framework for GNU
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@2399 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'tests/cdash/cfg_gnu.py')
-rw-r--r-- | tests/cdash/cfg_gnu.py | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/tests/cdash/cfg_gnu.py b/tests/cdash/cfg_gnu.py new file mode 100644 index 00000000..55bb82bc --- /dev/null +++ b/tests/cdash/cfg_gnu.py @@ -0,0 +1,34 @@ +import builder +import os +import sys + +# Each configurator must export this function +def create_builder(args): + # (optional) args format: + # site configuration module. If not specified, "cfg_site" is implied + + if len(args)>0: + file = args[0] + else: + file = "cfg_site" + + if os.access(file+".py", os.F_OK) == False: + print "Error: file '%s.py' doesn't exist." % (file) + sys.exit(1) + + cfg_site = __import__(file) + test_cfg = builder.BaseConfig(cfg_site.BASE_DIR, \ + cfg_site.URL, \ + cfg_site.SITE_NAME, \ + cfg_site.GROUP, \ + cfg_site.OPTIONS) + + builders = [ + builder.GNUTestBuilder(test_cfg, build_config_name="default", + user_mak="export CFLAGS+=-Wall\n", + config_site="#define PJ_TODO(x)\n", + exclude=cfg_site.EXCLUDE, + not_exclude=cfg_site.NOT_EXCLUDE) + ] + + return builders |