• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

Python mx.command_function函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了Python中mx.command_function函数的典型用法代码示例。如果您正苦于以下问题:Python command_function函数的具体用法?Python command_function怎么用?Python command_function使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



在下文中一共展示了command_function函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Python代码示例。

示例1: travis1

def travis1(args=None):
    """executes the first Travis job (Javac build, benchmarks, polyglot, interop, tck, asm, types, and LLVM test cases)"""
    tasks = []
    with Task("BuildJavaWithJavac", tasks) as t:
        if t:
            mx.command_function("build")(["-p", "--warning-as-error", "--force-javac"])
    with Task("TestBenchmarks", tasks) as t:
        if t:
            runBenchmarkTestCases()
    with Task("TestPolglot", tasks) as t:
        if t:
            runPolyglotTestCases()
    with Task("TestInterop", tasks) as t:
        if t:
            runInteropTestCases()
    with Task("TestTck", tasks) as t:
        if t:
            runTckTestCases()
    with Task("TestAsm", tasks) as t:
        if t:
            runAsmTestCases()
    with Task("TestTypes", tasks) as t:
        if t:
            runTypeTestCases()
    with Task("TestLLVM", tasks) as t:
        if t:
            runLLVMTestCases()
    with Task("TestMainArgs", tasks) as t:
        if t:
            runMainArgTestCases()
    with Task("TestPipe", tasks) as t:
        if t:
            runPipeTestCases()
开发者ID:graalvm,项目名称:sulong,代码行数:33,代码来源:mx_sulong.py


示例2: travisJRuby

def travisJRuby(args=None):
    """executes the JRuby Travis job (Javac build, JRuby test cases)"""
    tasks = []
    with Task('BuildJavaWithJavac', tasks) as t:
        if t: mx.command_function('build')(['-p', '--warning-as-error', '--no-native', '--force-javac'])
    with Task('TestJRuby', tasks) as t:
        if t: runTestJRuby()
开发者ID:dailypips,项目名称:sulong,代码行数:7,代码来源:mx_sulong.py


示例3: travis2

def travis2(args=None):
    """executes the second Travis job (Javac build, GCC execution test cases)"""
    tasks = []
    with Task('BuildJavaWithJavac', tasks) as t:
        if t: mx.command_function('build')(['-p', '--warning-as-error', '--force-javac'])
    with Task('TestGCC', tasks) as t:
        if t: runGCCTestCases()
开发者ID:lxp,项目名称:sulong,代码行数:7,代码来源:mx_sulong.py


示例4: travisArgon2

def travisArgon2(args=None):
    """executes the argon2 Travis job (Javac build, argon2 test cases)"""
    tasks = []
    with Task('BuildJavaWithJavac', tasks) as t:
        if t: mx.command_function('build')(['-p', '--warning-as-error', '--force-javac'])
    with Task('TestArgon2', tasks) as t:
        if t: runTestArgon2(optimize=False)
开发者ID:lxp,项目名称:sulong,代码行数:7,代码来源:mx_sulong.py


示例5: travisTestSulong

def travisTestSulong(args=None):
    """executes the Sulong test cases (which also stress compilation)"""
    tasks = []
    with Task('BuildJavaWithJavac', tasks) as t:
        if t: mx.command_function('build')(['-p', '--warning-as-error', '--force-javac'])
    with Task('TestSulong', tasks) as t:
        if t: runTruffleTestCases()
开发者ID:lxp,项目名称:sulong,代码行数:7,代码来源:mx_sulong.py


示例6: compileWithEcjStrict

def compileWithEcjStrict(args=None):
    """build project with the option --warning-as-error"""
    if mx.get_env("JDT"):
        mx.clean([])
        mx.command_function("build")(["-p", "--warning-as-error"])
    else:
        exit("JDT environment variable not set. Cannot execute BuildJavaWithEcj task.")
开发者ID:graalvm,项目名称:sulong,代码行数:7,代码来源:mx_sulong.py


示例7: travis1

def travis1(args=None):
    tasks = []
    with Task('BuildJavaWithEcj', tasks) as t:
        if t:
            if mx.get_env('JDT'):
                mx.command_function('build')(['-p', '--no-native', '--warning-as-error'])
                gate_clean([], tasks, name='CleanAfterEcjBuild')
            else:
                mx._warn_or_abort('JDT environment variable not set. Cannot execute BuildJavaWithEcj task.', args.strict_mode)
    with Task('BuildJavaWithJavac', tasks) as t:
        if t: mx.command_function('build')(['-p', '--warning-as-error', '--no-native', '--force-javac'])
    with Task('Findbugs', tasks) as t:
        if t and mx_findbugs.findbugs([]) != 0:
            t.abort('FindBugs warnings were found')
    with Task('TestBenchmarks', tasks) as t:
        if t: runBenchmarkTestCases()
    with Task('TestPolglot', tasks) as t:
        if t: runPolyglotTestCases()
    with Task('TestInterop', tasks) as t:
        if t: runInteropTestCases()
    with Task('TestAsm', tasks) as t:
        if t: runAsmTestCases()
    with Task('TestTypes', tasks) as t:
        if t: runTypeTestCases()
    with Task('TestSulong', tasks) as t:
        if t: runTruffleTestCases()
    with Task('TestLLVM', tasks) as t:
        if t: runLLVMTestCases()
开发者ID:NeilBryant,项目名称:sulong,代码行数:28,代码来源:mx_sulong.py


示例8: travis3

def travis3(args=None):
    tasks = []
    with Task('BuildJavaWithJavac', tasks) as t:
        if t: mx.command_function('build')(['-p', '--warning-as-error', '--no-native', '--force-javac'])
    with Task('TestNWCC', tasks) as t:
        if t: runNWCCTestCases()
    with Task('TestGCCSuiteCompile', tasks) as t:
        if t: runCompileTestCases()
开发者ID:NeilBryant,项目名称:sulong,代码行数:8,代码来源:mx_sulong.py


示例9: travis3

def travis3(args=None):
    """executes the third Travis job (Javac build, NWCC, GCC compilation test cases)"""
    tasks = []
    with Task('BuildJavaWithJavac', tasks) as t:
        if t: mx.command_function('build')(['-p', '--warning-as-error', '--no-native', '--force-javac'])
    with Task('TestNWCC', tasks) as t:
        if t: runNWCCTestCases()
    with Task('TestGCCSuiteCompile', tasks) as t:
        if t: runCompileTestCases()
开发者ID:dailypips,项目名称:sulong,代码行数:9,代码来源:mx_sulong.py


示例10: travis4

def travis4(args=None):
    """executes the fourth Travis job (Javac build, LLVM and GCC test cases with BitCode parser)"""
    tasks = []
    with Task('BuildJavaWithJavac', tasks) as t:
        if t: mx.command_function('build')(['-p', '--warning-as-error', '--force-javac'])
    with Task('TestLLVMBC', tasks) as t:
        if t: runLLVMTestCases(['-Dsulong.TestBinaryParser=true'])
    with Task('TestGCCBC', tasks) as t:
        if t: runGCCTestCases(['-Dsulong.TestBinaryParser=true'])
开发者ID:lxp,项目名称:sulong,代码行数:9,代码来源:mx_sulong.py


示例11: travisArgon2

def travisArgon2(args=None):
    """executes the argon2 Travis job (Javac build, argon2 test cases)"""
    tasks = []
    with Task("BuildJavaWithJavac", tasks) as t:
        if t:
            mx.command_function("build")(["-p", "--warning-as-error", "--force-javac"])
    with Task("TestArgon2", tasks) as t:
        if t:
            runTestArgon2(optimize=False)
开发者ID:graalvm,项目名称:sulong,代码行数:9,代码来源:mx_sulong.py


示例12: travisTestSulong

def travisTestSulong(args=None):
    """executes the Sulong test cases (which also stress compilation)"""
    tasks = []
    with Task("BuildJavaWithJavac", tasks) as t:
        if t:
            mx.command_function("build")(["-p", "--warning-as-error", "--force-javac"])
    with Task("TestSulong", tasks) as t:
        if t:
            runTruffleTestCases()
开发者ID:graalvm,项目名称:sulong,代码行数:9,代码来源:mx_sulong.py


示例13: travis2

def travis2(args=None):
    """executes the second Travis job (Javac build, GCC execution test cases)"""
    tasks = []
    with Task("BuildJavaWithJavac", tasks) as t:
        if t:
            mx.command_function("build")(["-p", "--warning-as-error", "--force-javac"])
    with Task("TestGCC", tasks) as t:
        if t:
            runGCCTestCases()
开发者ID:graalvm,项目名称:sulong,代码行数:9,代码来源:mx_sulong.py


示例14: travis4

def travis4(args=None):
    """executes the fourth Travis job (Javac build, LLVM and GCC test cases with BitCode parser)"""
    tasks = []
    with Task("BuildJavaWithJavac", tasks) as t:
        if t:
            mx.command_function("build")(["-p", "--warning-as-error", "--force-javac"])
    with Task("TestLLVMBC", tasks) as t:
        if t:
            runLLVMTestCases(["-Dsulong.TestBinaryParser=true"])
    with Task("TestGCCBC", tasks) as t:
        if t:
            runGCCTestCases(["-Dsulong.TestBinaryParser=true"])
开发者ID:graalvm,项目名称:sulong,代码行数:12,代码来源:mx_sulong.py


示例15: travis3

def travis3(args=None):
    """executes the third Travis job (Javac build, NWCC, GCC compilation test cases)"""
    tasks = []
    with Task("BuildJavaWithJavac", tasks) as t:
        if t:
            mx.command_function("build")(["-p", "--warning-as-error", "--force-javac"])
    with Task("TestNWCC", tasks) as t:
        if t:
            runNWCCTestCases()
    with Task("TestGCCSuiteCompile", tasks) as t:
        if t:
            runCompileTestCases()
    with Task("TestLifetime", tasks) as t:
        if t:
            runLifetimeTestCases()
开发者ID:graalvm,项目名称:sulong,代码行数:15,代码来源:mx_sulong.py


示例16: travisRunSuite

def travisRunSuite(args=None):
    """executes all the test suites or selected ones (see -h or --help)"""
    vmArgs, otherArgs = mx_sulong.truffle_extract_VM_args(args)
    parser = argparse.ArgumentParser(description="Compiles all or selected test suites.")
    parser.add_argument('suite', nargs='*', help=' '.join(testSuites.keys()), default=testSuites.keys())
    parsedArgs = parser.parse_args(otherArgs)

    tasks = []
    with mx_gate.Task('BuildJavaWithJavac', tasks) as t:
        if t: mx.command_function('build')(['-p', '--warning-as-error', '--force-javac'])

    for testSuiteName in parsedArgs.suite:
        with mx_gate.Task('Test%s' % testSuiteName.capitalize(), tasks) as t:
            if t:
                _, runCommand = testSuites[testSuiteName]
                runCommand(vmArgs)
开发者ID:lxp,项目名称:sulong,代码行数:16,代码来源:testsuites.py


示例17: deploy_binary_if_truffle_head

def deploy_binary_if_truffle_head(args):
    """If the active branch is 'truffle-head', deploy binaries for the primary suite to remote maven repository."""
    primary_branch = 'truffle-head'
    active_branch = mx.VC.get_vc(_suite.dir).active_branch(_suite.dir)
    if active_branch == primary_branch:
        return mx.command_function('deploy-binary')(args)
    else:
        mx.log('The active branch is "%s". Binaries are deployed only if the active branch is "%s".' % (active_branch, primary_branch))
        return 0
开发者ID:sumitmah,项目名称:jruby,代码行数:9,代码来源:mx_jruby.py


示例18: travis1

def travis1(args=None):
    """executes the first Travis job (Javac build, benchmarks, polyglot, interop, tck, asm, types, and LLVM test cases)"""
    tasks = []
    with Task('BuildJavaWithJavac', tasks) as t:
        if t: mx.command_function('build')(['-p', '--warning-as-error', '--force-javac'])
    with Task('TestBenchmarks', tasks) as t:
        if t: runBenchmarkTestCases()
    with Task('TestPolglot', tasks) as t:
        if t: runPolyglotTestCases()
    with Task('TestInterop', tasks) as t:
        if t: runInteropTestCases()
    with Task('TestTck', tasks) as t:
        if t: runTckTestCases()
    with Task('TestAsm', tasks) as t:
        if t: runAsmTestCases()
    with Task('TestTypes', tasks) as t:
        if t: runTypeTestCases()
    with Task('TestLLVM', tasks) as t:
        if t: runLLVMTestCases()
    with Task('TestMainArgs', tasks) as t:
        if t: runMainArgTestCases()
    with Task('TestPipe', tasks) as t:
        if t: runPipeTestCases()
开发者ID:lxp,项目名称:sulong,代码行数:23,代码来源:mx_sulong.py


示例19: rbench

def rbench(args):
    if _bm_suite:
        mx.command_function('r_benchmarks:rbench')(args)
    else:
        mx.abort("no benchmarks available")
开发者ID:anukat2015,项目名称:fastr,代码行数:5,代码来源:mx_fastr.py


示例20: junit_gate

def junit_gate(args):
    return mx.command_function('junit')(['--tests', _gate_unit_tests()] + args)
开发者ID:anukat2015,项目名称:fastr,代码行数:2,代码来源:mx_fastr.py



注:本文中的mx.command_function函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Python mx.distribution函数代码示例发布时间:2022-05-27
下一篇:
Python mx.classpath函数代码示例发布时间:2022-05-27
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap