Changeset 2401


Ignore:
Timestamp:
Dec 29, 2008 5:57:13 PM (12 years ago)
Author:
bennylp
Message:

Added copyright text in python test files

Location:
pjproject/trunk/tests/cdash
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/tests/cdash

    • Property svn:ignore set to
      *.pyc
      cfg_site.py
      out.xml
  • pjproject/trunk/tests/cdash/builder.py

    r2399 r2401  
     1# 
     2# builder.py - PJSIP test scenarios builder 
     3# 
     4# Copyright (C) 2008-2009 Teluu Inc. (http://www.teluu.com) 
     5# 
     6# This program is free software; you can redistribute it and/or modify 
     7# it under the terms of the GNU General Public License as published by 
     8# the Free Software Foundation; either version 2 of the License, or 
     9# (at your option) any later version. 
     10# 
     11# This program is distributed in the hope that it will be useful, 
     12# but WITHOUT ANY WARRANTY; without even the implied warranty of 
     13# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the 
     14# GNU General Public License for more details. 
     15# 
     16# You should have received a copy of the GNU General Public License 
     17# along with this program; if not, write to the Free Software 
     18# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA 
     19# 
     20 
    121import ccdash 
    222import os 
     
    194214            included = False 
    195215            for pat in self.exclude: 
    196                 if re.search(pat, fullcmd) != None: 
     216                if pat and re.search(pat, fullcmd) != None: 
    197217                    excluded = True 
    198218                    break 
    199219            if excluded: 
    200220                for pat in self.not_exclude: 
    201                     if re.search(pat, fullcmd) != None: 
     221                    if pat and re.search(pat, fullcmd) != None: 
    202222                        included = True 
    203223                        break 
  • pjproject/trunk/tests/cdash/cfg_gnu.py

    r2399 r2401  
     1# 
     2# cfg_gnu.py - GNU target configurator 
     3# 
     4# Copyright (C) 2008-2009 Teluu Inc. (http://www.teluu.com) 
     5# 
     6# This program is free software; you can redistribute it and/or modify 
     7# it under the terms of the GNU General Public License as published by 
     8# the Free Software Foundation; either version 2 of the License, or 
     9# (at your option) any later version. 
     10# 
     11# This program is distributed in the hope that it will be useful, 
     12# but WITHOUT ANY WARRANTY; without even the implied warranty of 
     13# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the 
     14# GNU General Public License for more details. 
     15# 
     16# You should have received a copy of the GNU General Public License 
     17# along with this program; if not, write to the Free Software 
     18# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA 
     19# 
    120import builder 
    221import os 
     
    1433 
    1534    if os.access(file+".py", os.F_OK) == False: 
    16         print "Error: file '%s.py' doesn't exist." % (file) 
    17         sys.exit(1) 
     35        print "Error: file '%s.py' doesn't exist." % (file) 
     36        sys.exit(1) 
    1837 
    1938    cfg_site = __import__(file) 
  • pjproject/trunk/tests/cdash/cfg_site_sample.py

    r2400 r2401  
     1# 
     2# cfg_site_sample.py - Sample site configuration 
     3# 
     4# Copyright (C) 2008-2009 Teluu Inc. (http://www.teluu.com) 
     5# 
     6# This program is free software; you can redistribute it and/or modify 
     7# it under the terms of the GNU General Public License as published by 
     8# the Free Software Foundation; either version 2 of the License, or 
     9# (at your option) any later version. 
     10# 
     11# This program is distributed in the hope that it will be useful, 
     12# but WITHOUT ANY WARRANTY; without even the implied warranty of 
     13# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the 
     14# GNU General Public License for more details. 
     15# 
     16# You should have received a copy of the GNU General Public License 
     17# along with this program; if not, write to the Free Software 
     18# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA 
     19# 
    120import builder 
    221 
  • pjproject/trunk/tests/cdash/main.py

    r2399 r2401  
     1#!/bin/env python 
     2 
     3# 
     4# main.py - main entry for PJSIP's CDash tests 
     5# 
     6# Copyright (C) 2008-2009 Teluu Inc. (http://www.teluu.com) 
     7# 
     8# This program is free software; you can redistribute it and/or modify 
     9# it under the terms of the GNU General Public License as published by 
     10# the Free Software Foundation; either version 2 of the License, or 
     11# (at your option) any later version. 
     12# 
     13# This program is distributed in the hope that it will be useful, 
     14# but WITHOUT ANY WARRANTY; without even the implied warranty of 
     15# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the 
     16# GNU General Public License for more details. 
     17# 
     18# You should have received a copy of the GNU General Public License 
     19# along with this program; if not, write to the Free Software 
     20# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA 
     21# 
     22 
    123import sys 
    224 
Note: See TracChangeset for help on using the changeset viewer.