예제 #1
0
파일: perf.py 프로젝트: zygoloid/test-suite
def mutatePlan(context, plan):
    script = context.parsed_runscript
    if context.config.run_under:
        script = testplan.mutateScript(context, script,
                                       run_under.mutateCommandLine)
    script = testplan.mutateScript(context, script, mutateCommandLine)
    plan.profilescript += script
예제 #2
0
파일: perf.py 프로젝트: Artem-B/test-suite
def mutatePlan(context, plan):
    script = context.parsed_runscript
    if context.config.run_under:
        script = testplan.mutateScript(context, script,
                                       run_under.mutateCommandLine)
    script = testplan.mutateScript(context, script, mutateCommandLine)
    plan.profilescript += script
예제 #3
0
def mutatePlan(context, plan):
    script = context.parsed_runscript
    if context.config.run_under:
        script = testplan.mutateScript(context, script,
                                       run_under.mutateCommandLine)
    script = testplan.mutateScript(context, script, _mutateCommandLine)
    plan.profilescript += script
    plan.metric_collectors.append(
        lambda context: {'profile': context.tmpBase + '.perf_data'})
예제 #4
0
파일: timeit.py 프로젝트: kurborg/ccf
def mutateScript(context, script):
    if not hasattr(context, "timefiles"):
        context.timefiles = []
    return testplan.mutateScript(context, script, mutateCommandLine)
예제 #5
0
def _mutateScript(context, script):
    return testplan.mutateScript(context, script, _mutateCommandLine)
예제 #6
0
def mutatePlan(context, plan):
    run_under = context.config.run_under
    if run_under:
        plan.runscript = testplan.mutateScript(context, plan.runscript,
                                               mutateCommandLine)
예제 #7
0
def mutatePlan(context, plan):
    run_under = context.config.run_under
    if run_under:
        plan.runscript = testplan.mutateScript(context, plan.runscript,
                                               mutateCommandLine)
예제 #8
0
def mutateScript(context, script, suffix=""):
    mutate = lambda c, cmd: mutateCommandline(c, cmd, suffix)
    return testplan.mutateScript(context, script, mutate)
예제 #9
0
def mutateScript(context, script):
    return testplan.mutateScript(context, script, mutateCommandline)
예제 #10
0
def _mutateScript(context, script):
    def mutate(context, command):
        return _mutateCommandline(context, command)
    return testplan.mutateScript(context, script, mutate)
예제 #11
0
def mutateScript(context, script):
    if not hasattr(context, "timefiles"):
        context.timefiles = []
    return testplan.mutateScript(context, script, mutateCommandLine)