summaryrefslogtreecommitdiff
path: root/tests/cdash
diff options
context:
space:
mode:
authorBenny Prijono <bennylp@teluu.com>2008-12-29 17:57:13 +0000
committerBenny Prijono <bennylp@teluu.com>2008-12-29 17:57:13 +0000
commit65ffffc63d060492f4d706dd7444d48ead696723 (patch)
treeb4dcb61c10e2abdc07c353d0faafe80b1b1d9407 /tests/cdash
parent8258398a1264f78b8a852eefb0cec9f33d6dcbcb (diff)
Added copyright text in python test files
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@2401 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'tests/cdash')
-rw-r--r--tests/cdash/builder.py24
-rw-r--r--tests/cdash/cfg_gnu.py23
-rw-r--r--tests/cdash/cfg_site_sample.py19
-rw-r--r--tests/cdash/main.py22
4 files changed, 84 insertions, 4 deletions
diff --git a/tests/cdash/builder.py b/tests/cdash/builder.py
index 6336a3db..424b3c7f 100644
--- a/tests/cdash/builder.py
+++ b/tests/cdash/builder.py
@@ -1,3 +1,23 @@
+#
+# builder.py - PJSIP test scenarios builder
+#
+# Copyright (C) 2008-2009 Teluu Inc. (http://www.teluu.com)
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+#
+
import ccdash
import os
import platform
@@ -193,12 +213,12 @@ class TestBuilder:
excluded = False
included = False
for pat in self.exclude:
- if re.search(pat, fullcmd) != None:
+ if pat and re.search(pat, fullcmd) != None:
excluded = True
break
if excluded:
for pat in self.not_exclude:
- if re.search(pat, fullcmd) != None:
+ if pat and re.search(pat, fullcmd) != None:
included = True
break
if excluded and not included:
diff --git a/tests/cdash/cfg_gnu.py b/tests/cdash/cfg_gnu.py
index 55bb82bc..75f22d75 100644
--- a/tests/cdash/cfg_gnu.py
+++ b/tests/cdash/cfg_gnu.py
@@ -1,3 +1,22 @@
+#
+# cfg_gnu.py - GNU target configurator
+#
+# Copyright (C) 2008-2009 Teluu Inc. (http://www.teluu.com)
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+#
import builder
import os
import sys
@@ -13,8 +32,8 @@ def create_builder(args):
file = "cfg_site"
if os.access(file+".py", os.F_OK) == False:
- print "Error: file '%s.py' doesn't exist." % (file)
- sys.exit(1)
+ print "Error: file '%s.py' doesn't exist." % (file)
+ sys.exit(1)
cfg_site = __import__(file)
test_cfg = builder.BaseConfig(cfg_site.BASE_DIR, \
diff --git a/tests/cdash/cfg_site_sample.py b/tests/cdash/cfg_site_sample.py
index 966a156d..a73cf859 100644
--- a/tests/cdash/cfg_site_sample.py
+++ b/tests/cdash/cfg_site_sample.py
@@ -1,3 +1,22 @@
+#
+# cfg_site_sample.py - Sample site configuration
+#
+# Copyright (C) 2008-2009 Teluu Inc. (http://www.teluu.com)
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+#
import builder
# Your site name
diff --git a/tests/cdash/main.py b/tests/cdash/main.py
index 9f707bd7..8a993714 100644
--- a/tests/cdash/main.py
+++ b/tests/cdash/main.py
@@ -1,3 +1,25 @@
+#!/bin/env python
+
+#
+# main.py - main entry for PJSIP's CDash tests
+#
+# Copyright (C) 2008-2009 Teluu Inc. (http://www.teluu.com)
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+#
+
import sys
if len(sys.argv)==1: