Example #1
0
def run_scenarios(scenarios, group):
	# Run each scenario
	rc = 0
	for scenario in scenarios:
		argv = []
		argv.append("ccdash.py")
		argv.append("scenario")
		argv.append(scenario)
		argv.append("--group")
		argv.append(group)
		thisrc = ccdash.main(argv)
		if rc==0 and thisrc:
			rc = thisrc
	return rc
Example #2
0
def run_scenarios(scenarios, group):
    # Run each scenario
    rc = 0
    for scenario in scenarios:
        argv = []
        argv.append("ccdash.py")
        argv.append("scenario")
        argv.append(scenario)
        argv.append("--group")
        argv.append(group)
        thisrc = ccdash.main(argv)
        if rc == 0 and thisrc:
            rc = thisrc
    return rc
Example #3
0
    def execute(self):
        if len(self.ccdash_args) == 0:
            self.build_tests()
        self.pre_action()
        mandatory_op = ["update", "configure", "build"]
        counter = 0
        for a in self.ccdash_args:
            # Check if this test is in exclusion list
            fullcmd = " ".join(a)
            excluded = False
            included = False
            for pat in self.exclude:
                if pat and re.search(pat, fullcmd) != None:
                    excluded = True
                    break
            if excluded:
                for pat in self.not_exclude:
                    if pat and re.search(pat, fullcmd) != None:
                        included = True
                        break
            if excluded and not included:
                if len(fullcmd) > 60:
                    fullcmd = fullcmd[0:60] + ".."
                print "Skipping '%s'" % (fullcmd)
                continue

            b = ["ccdash.py"]
            b.extend(a)
            a = b
            #print a
            try:
                rc = ccdash.main(a)
            except Exception, e:
                errmsg = str(e)
                print "**** Error: ccdash got exception %s ****" % errmsg
                rc = -1
            except:
Example #4
0
    def execute(self):
        if len(self.ccdash_args) == 0:
            self.build_tests()
        self.pre_action()
        mandatory_op = ["update", "configure", "build"]
        counter = 0
        for a in self.ccdash_args:
            # Check if this test is in exclusion list
            fullcmd = " ".join(a)
            excluded = False
            included = False
            for pat in self.exclude:
                if pat and re.search(pat, fullcmd) != None:
                    excluded = True
                    break
            if excluded:
                for pat in self.not_exclude:
                    if pat and re.search(pat, fullcmd) != None:
                        included = True
                        break
            if excluded and not included:
                if len(fullcmd) > 60:
                    fullcmd = fullcmd[0:60] + ".."
                print "Skipping '%s'" % (fullcmd)
                continue

            b = ["ccdash.py"]
            b.extend(a)
            a = b
            # print a
            try:
                rc = ccdash.main(a)
            except Exception, e:
                errmsg = str(e)
                print "**** Error: ccdash got exception %s ****" % errmsg
                rc = -1
            except:
Example #5
0
#!/usr/bin/python
import sys
import ccdash

if __name__ == "__main__":
    sys.argv[0] = "ccdash.py"
    sys.argv.insert(1, "scenario")
    rc = ccdash.main(sys.argv)
    sys.exit(rc)
Example #6
0
		sys.exit(1)

	# Current date
	utc = time.gmtime(None)
	day = utc.tm_mday

	# Loop foreva
	while True:
		argv = []

		# Anything changed recently?
		argv.append("ccdash.py")
		argv.append("status")
		argv.append("-w")
		argv.append("../..")
		rc = ccdash.main(argv)

		utc = time.gmtime(None)

		if utc.tm_mday != day or rc != 0 or FORCE:
			group = ""
			if utc.tm_mday != day:
				day = utc.tm_mday
				group = "Nightly" + SUFFIX
			elif rc != 0:
				group = "Continuous" + SUFFIX
			else:
				group = "Experimental" + SUFFIX
			if DELAY > 0:
				print "Will run %s after %f s.." % (group, DELAY)
				time.sleep(DELAY)
Example #7
0
#!/usr/bin/python
import sys
import ccdash

if __name__ == "__main__":
	sys.argv[0] = "ccdash.py"
	sys.argv.insert(1, "scenario")
	rc = ccdash.main(sys.argv)
	sys.exit(rc)


Example #8
0
        sys.exit(1)

    # Current date
    utc = time.gmtime(None)
    day = utc.tm_mday

    # Loop foreva
    while True:
        argv = []

        # Anything changed recently?
        argv.append("ccdash.py")
        argv.append("status")
        argv.append("-w")
        argv.append("../..")
        rc = ccdash.main(argv)

        utc = time.gmtime(None)

        if utc.tm_mday != day or rc != 0 or FORCE:
            group = ""
            if utc.tm_mday != day:
                day = utc.tm_mday
                group = "Nightly" + SUFFIX
            elif rc != 0:
                group = "Continuous" + SUFFIX
            else:
                group = "Experimental" + SUFFIX
            if DELAY > 0:
                print "Will run %s after %f s.." % (group, DELAY)
                time.sleep(DELAY)