예제 #1
0
        if t:
            unittest([
                '--suite', 'tools', '--enable-timing', '--verbose',
                '--fail-fast'
            ])


mx_gate.add_gate_runner(_suite, _tools_gate_runner)

mx_sdk_vm.register_graalvm_component(
    mx_sdk_vm.GraalVmTool(
        suite=_suite,
        name='GraalVM Language Server',
        short_name='lsp',
        dir_name='lsp',
        license_files=[],
        third_party_license_files=[],
        truffle_jars=['tools:LSP_API', 'tools:LSP'],
        support_distributions=['tools:LSP_GRAALVM_SUPPORT'],
        include_by_default=True,
    ))

mx_sdk_vm.register_graalvm_component(
    mx_sdk_vm.GraalVmTool(
        suite=_suite,
        name='GraalVM Debug Protocol Server',
        short_name='dap',
        dir_name='dap',
        license_files=[],
        third_party_license_files=[],
        dependencies=['Truffle'],
예제 #2
0
            '--initialize-at-build-time=org.graalvm.polybench',
            '--tool:all',
        ],
        is_main_launcher=True,
        default_symlinks=True,
        is_sdk_launcher=True,
        is_polyglot=True,
    )],
))

mx_sdk_vm.register_graalvm_component(mx_sdk_vm.GraalVmTool(
    suite=_suite,
    name='PolyBench Instruments',
    short_name='pbi',
    dir_name='pbi',
    license_files=[],
    third_party_license_files=[],
    dependencies=['Truffle', 'PolyBench Launcher'],
    truffle_jars=['vm:POLYBENCH_INSTRUMENTS'],
    support_distributions=['vm:POLYBENCH_INSTRUMENTS_SUPPORT'],
))

mx_sdk_vm.register_graalvm_component(mx_sdk_vm.GraalVmLanguage(
    suite=_suite,
    name='Polyglot Microbenchmark Harness',
    short_name='pmh',
    dir_name='pmh',
    license_files=[],
    third_party_license_files=[],
    dependencies=['Truffle', 'PolyBench Launcher'],
    truffle_jars=['vm:PMH'],
예제 #3
0
mx_unittest.add_config_participant(_unittest_config_participant)

def _tools_gate_runner(args, tasks):
    with Task('Jackpot check', tasks) as t:
        if t: jackpot(['--fail-on-warnings'], suite=None, nonZeroIsFatal=True)
    with Task('Tools UnitTests', tasks) as t:
        if t: unittest(['--suite', 'tools', '--enable-timing', '--verbose', '--fail-fast'])

mx_gate.add_gate_runner(_suite, _tools_gate_runner)

mx_sdk_vm.register_graalvm_component(mx_sdk_vm.GraalVmTool(
    suite=_suite,
    name='GraalVM Chrome Inspector',
    short_name='ins',
    dir_name='chromeinspector',
    license_files=[],
    third_party_license_files=[],
    dependencies=['Truffle'],
    truffle_jars=['tools:CHROMEINSPECTOR'],
    support_distributions=['tools:CHROMEINSPECTOR_GRAALVM_SUPPORT'],
    include_by_default=True,
))

mx_sdk_vm.register_graalvm_component(mx_sdk_vm.GraalVmTool(
    suite=_suite,
    name='AgentScript',
    short_name='ats',
    dir_name='agentscript',
    license_files=[],
    third_party_license_files=[],
    dependencies=['Truffle'],
    truffle_jars=['tools:AGENTSCRIPT'],