Ejemplo n.º 1
0
        modifyReleaseFile(os.path.join(cwd, RELEASE_FILE), newVersion, options.userName, fullFileListFileName, options.skipBuild)
        releaseFileModified = True
        myFiles += [RELEASE_FILE]
        filesToBeDeleted = getFilesToDelete(fullFileListFileName)

        shutil.move(fullFileListFileName, newDirName)
        mslBuildTools.edit_makefile_for_64bit(newMslDirName)

        (dirsToBeAdded, filesToBeAdded) = addFilesAndDirectories(cwd, newMslDirName, myFiles)
        copyMyFiles(cwd, newMslDirName, myFiles)
        addFiles(cwd, newMslDirName, filesToBeAdded)
        deleteFiles(cwd, newMslDirName, filesToBeDeleted)
        
        results = {'failures': []}
        if(options.skipBuild == False):
            results = mslBuildTools.run_tests(newMslDirName, mslBuildTools.buildTargets, options.numCores)
        
        # Currently aren't checking if tests are passing, failing, lead, or gold.
        if(len(results['failures']) == 0):
            mslBuildTools.print_test_results(results)
            submitFiles(cwd, newMslDirName, dirsToBeAdded, os.path.join(newDirName, FILE_LIST_FILE_NAME), newVersion, RELEASE_FILE, mslSubDir, options.userName)
            subprocess.call('rm -rf ' + newDirName, shell=True)
            print 'Submitted!'
        else:
            shutil.move(newDirName, FAILED_SUBMIT_DIR)
            newDir = os.path.join(FAILED_SUBMIT_DIR, os.path.split(newDirName)[1])
            print 'Submit failed on target: ' + ' '.join(results['failures']) + '.  Moved directory to ' + newDir + '.'
            if(releaseFileModified):
                print "A test program failed"	
                subprocess.call('svn revert ' + os.path.join(cwd, RELEASE_FILE), shell=True)
            sys.exit(1)
Ejemplo n.º 2
0
import mslBuildTools
import sys
import miscUtils
import getpass
import os

OPTIONS = {'testlevel' :                  (True, 'The test level file.'),
           'numprocesses' :               (False, 'How many processes should we use while compiling?', 1),}

SHARED_SUBMIT_DIR = '/tmp'

################################################################################
args = miscUtils.check_options(sys.argv, OPTIONS)

#currUser = getpass.getuser()
#newDirName = miscUtils.getRandomFileName(os.path.join(SHARED_SUBMIT_DIR, currUser))
#newMslDirName = os.path.join(newDirName, 'trunk')
newMslDirName = './'

results = mslBuildTools.run_tests(newMslDirName, mslBuildTools.buildTargets, int(args['numprocesses']))
mslBuildTools.print_test_results(results)
Ejemplo n.º 3
0
import mslBuildTools
import sys
import miscUtils
import getpass
import os

OPTIONS = {
    'testlevel': (True, 'The test level file.'),
    'numprocesses':
    (False, 'How many processes should we use while compiling?', 1),
}

SHARED_SUBMIT_DIR = '/tmp'

################################################################################
args = miscUtils.check_options(sys.argv, OPTIONS)

#currUser = getpass.getuser()
#newDirName = miscUtils.getRandomFileName(os.path.join(SHARED_SUBMIT_DIR, currUser))
#newMslDirName = os.path.join(newDirName, 'trunk')
newMslDirName = './'

results = mslBuildTools.run_tests(newMslDirName, mslBuildTools.buildTargets,
                                  int(args['numprocesses']))
mslBuildTools.print_test_results(results)
Ejemplo n.º 4
0
        myFiles += [RELEASE_FILE]
        filesToBeDeleted = getFilesToDelete(fullFileListFileName)

        shutil.move(fullFileListFileName, newDirName)
        mslBuildTools.edit_makefile_for_64bit(newMslDirName)

        (dirsToBeAdded,
         filesToBeAdded) = addFilesAndDirectories(cwd, newMslDirName, myFiles)
        copyMyFiles(cwd, newMslDirName, myFiles)
        addFiles(cwd, newMslDirName, filesToBeAdded)
        deleteFiles(cwd, newMslDirName, filesToBeDeleted)

        results = {'failures': []}
        if (options.skipBuild == False):
            results = mslBuildTools.run_tests(newMslDirName,
                                              mslBuildTools.buildTargets,
                                              options.numCores)

        # Currently aren't checking if tests are passing, failing, lead, or gold.
        if (len(results['failures']) == 0):
            mslBuildTools.print_test_results(results)
            submitFiles(cwd, newMslDirName, dirsToBeAdded,
                        os.path.join(newDirName, FILE_LIST_FILE_NAME),
                        newVersion, RELEASE_FILE, mslSubDir, options.userName)
            subprocess.call('rm -rf ' + newDirName, shell=True)
            print 'Submitted!'
        else:
            shutil.move(newDirName, FAILED_SUBMIT_DIR)
            newDir = os.path.join(FAILED_SUBMIT_DIR,
                                  os.path.split(newDirName)[1])
            print 'Submit failed on target: ' + ' '.join(