From 617a0442519d3c5602a4228a620fdd9e49ea33a3 Mon Sep 17 00:00:00 2001 From: Benny Prijono Date: Mon, 29 Dec 2008 14:56:32 +0000 Subject: 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 --- tests/cdash/cfg_gnu.py | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 tests/cdash/cfg_gnu.py (limited to 'tests/cdash/cfg_gnu.py') 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 -- cgit v1.2.3