Ignore:
Timestamp:
Jan 2, 2009 6:15:07 PM (15 years ago)
Author:
bennylp
Message:

Test refinements for mingw etc.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/tests/cdash/builder.py

    r2405 r2410  
    8080    Operation(Operation.TEST, "./pjsip-test$SUFFIX", name="pjsip test", 
    8181              wdir="pjsip/bin") 
    82 ] 
    83  
    84 # 
    85 # These are operations to build the software on GNU/Posix systems 
    86 # 
    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") 
    9282] 
    9383 
     
    237227            self.build_tests() 
    238228        self.pre_action() 
     229        mandatory_op = ["update", "configure", "build"] 
    239230        counter = 0 
    240231        for a in self.ccdash_args: 
     
    262253            a = b 
    263254            #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 
    265259            counter = counter + 1 
    266260        self.post_action() 
     
    316310        cmds = [] 
    317311        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 
    319323        cmds.extend(std_test_ops) 
    320324        cmds.extend(build_pjsua_test_ops()) 
Note: See TracChangeset for help on using the changeset viewer.