Changeset 2410
- Timestamp:
- Jan 2, 2009 6:15:07 PM (16 years ago)
- Location:
- pjproject/trunk/tests
- Files:
-
- 1 added
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/tests/cdash/README.TXT
r2400 r2410 44 44 $ python main.py cfg_msvc 45 45 46 To execute tests for Symbian target: 47 48 $ python main.py cfg_symbian 49 46 50 47 51 If you have a different site configuration file, you may specify it in the … … 49 53 50 54 $ python main.py cfg_gnu my_site_config 55 56 For more information you can also pass "-h" or "--help", e.g.: 57 58 $ python main.py cfg_gnu --help 59 -
pjproject/trunk/tests/cdash/builder.py
r2405 r2410 80 80 Operation(Operation.TEST, "./pjsip-test$SUFFIX", name="pjsip test", 81 81 wdir="pjsip/bin") 82 ]83 84 #85 # These are operations to build the software on GNU/Posix systems86 #87 gnu_build_ops = [88 Operation(Operation.CONFIGURE, "sh ./configure"),89 Operation(Operation.BUILD, "sh -c 'make distclean && make dep && make && cd pjsip-apps/src/python && python setup.py clean build'"),90 #Operation(Operation.BUILD, "python setup.py clean build",91 # wdir="pjsip-apps/src/python")92 82 ] 93 83 … … 237 227 self.build_tests() 238 228 self.pre_action() 229 mandatory_op = ["update", "configure", "build"] 239 230 counter = 0 240 231 for a in self.ccdash_args: … … 262 253 a = b 263 254 #print a 264 ccdash.main(a) 255 rc = ccdash.main(a) 256 if rc!=0 and a[1] in mandatory_op: 257 print "Stopping because of error.." 258 break 265 259 counter = counter + 1 266 260 self.post_action() … … 316 310 cmds = [] 317 311 cmds.extend(update_ops) 318 cmds.extend(gnu_build_ops) 312 cmds.append(Operation(Operation.CONFIGURE, "sh ./configure")) 313 if sys.platform == "win32": 314 # Don't build python module on Mingw 315 cmds.append(Operation(Operation.BUILD, 316 "sh -c 'make distclean && make dep && make'")) 317 else: 318 cmds.append(Operation(Operation.BUILD, 319 "sh -c 'make distclean && make dep && make" + \ 320 " && cd pjsip-apps/src/python && " + \ 321 "python setup.py clean build'")) 322 319 323 cmds.extend(std_test_ops) 320 324 cmds.extend(build_pjsua_test_ops()) -
pjproject/trunk/tests/cdash/cfg_gnu.py
r2405 r2410 60 60 cfg_site.OPTIONS) 61 61 62 config_site = "#define PJ_TODO(x)\n" + cfg_site.CONFIG_SITE 63 user_mak = "export CFLAGS+=-Wall\n" + cfg_site.USER_MAK 64 62 65 builders = [ 63 66 builder.GNUTestBuilder(test_cfg, build_config_name="default", 64 user_mak= "export CFLAGS+=-Wall\n",65 config_site= "#define PJ_TODO(x)\n",67 user_mak=user_mak, 68 config_site=config_site, 66 69 exclude=cfg_site.EXCLUDE, 67 70 not_exclude=cfg_site.NOT_EXCLUDE) -
pjproject/trunk/tests/cdash/cfg_msvc.py
r2405 r2410 67 67 cfg_site.OPTIONS) 68 68 69 config_site = "#define PJ_TODO(x)\n" + cfg_site.CONFIG_SITE 70 user_mak = cfg_site.USER_MAK 71 69 72 builders = [ 70 73 builder.MSVCTestBuilder(test_cfg, 71 74 target=target, 72 75 build_config_name="default", 73 config_site= "#define PJ_TODO(x)\n",76 config_site=config_site, 74 77 exclude=cfg_site.EXCLUDE, 75 78 not_exclude=cfg_site.NOT_EXCLUDE) -
pjproject/trunk/tests/cdash/cfg_site_sample.py
r2401 r2410 36 36 OPTIONS = [] 37 37 38 # What's the content of config_site.h 39 CONFIG_SITE = "" 40 41 # What's the content of user.mak 42 USER_MAK = "" 43 38 44 # List of regular expression of test patterns to be excluded 39 45 EXCLUDE = [] -
pjproject/trunk/tests/cdash/cfg_symbian.py
r2405 r2410 72 72 """ 73 73 74 config_Site = config_site1 + cfg_site.CONFIG_SITE 75 74 76 builders = [ 75 77 builder.SymbianTestBuilder(test_cfg, -
pjproject/trunk/tests/pjsua/run.py
r2398 r2410 162 162 def wait(self): 163 163 self.trace("wait") 164 self.proc.wait() 164 self.proc.communicate("q") 165 165 166 def trace(self, s): 166 167 if self.trace_enabled: … … 178 179 p.send("q") 179 180 p.send("q") 180 p.expect(const.DESTROYED, False) 181 p.wait() 181 is_err = False 182 try: 183 ret = p.expect(const.DESTROYED, False) 184 if not ret: 185 is_err = True 186 except: 187 is_err = True 188 if is_err: 189 if sys.hexversion >= 0x02060000: 190 p.proc.terminate() 191 else: 192 p.wait() 193 else: 194 p.wait() 182 195 print "Test completed with error: " + errmsg 183 196 sys.exit(1)
Note: See TracChangeset
for help on using the changeset viewer.