Esempio n. 1
0
    def _run_test_tool(self, name, *args):
        exe = futils.get_test_tool_path(self.build, name)
        if sys.platform == 'win32':
            exe += '.exe'

        return sp.run([exe, *args], env=self.env, stdout=sp.PIPE,
                      stderr=sp.STDOUT, universal_newlines=True)
Esempio n. 2
0
def parse_lib_win(ctx, lib, static):
    dllview = ft.get_test_tool_path(ctx.build, 'dllview') + '.exe'
    cmd = [dllview, lib]
    proc = sp.run(cmd, universal_newlines=True,
                  stdout=sp.PIPE, stderr=sp.STDOUT)
    if proc.returncode != 0:
        raise ft.Fail('command "{}" failed: {}'
                      .format(' '.join(cmd), proc.stdout))

    out = sorted(proc.stdout.splitlines())
    return '\n'.join(out) + '\n'
Esempio n. 3
0
def pmemdetect(ctx, *args):
    env = os.environ.copy()

    if sys.platform == 'win32':
        env['PATH'] = envconfig['GLOBAL_LIB_PATH'] + os.pathsep +\
            ctx.build.libdir + os.pathsep +\
            env.get('PATH', '')
    else:
        env['LD_LIBRARY_PATH'] = envconfig['GLOBAL_LIB_PATH'] + os.pathsep +\
            ctx.build.libdir + os.pathsep +\
            env.get('LD_LIBRARY_PATH', '')

    exe = futils.get_test_tool_path(ctx, 'pmemdetect')

    return sp.run([exe, *args], env=env, stdout=sp.PIPE,
                  stderr=sp.STDOUT, universal_newlines=True)
Esempio n. 4
0
def pmemdetect(ctx, *args):
    env = os.environ.copy()

    if sys.platform == 'win32':
        env['PATH'] = envconfig['GLOBAL_LIB_PATH'] + os.pathsep +\
            ctx.build.libdir + os.pathsep +\
            env.get('PATH', '')
    else:
        env['LD_LIBRARY_PATH'] = envconfig['GLOBAL_LIB_PATH'] + os.pathsep +\
            ctx.build.libdir + os.pathsep +\
            env.get('LD_LIBRARY_PATH', '')

    exe = futils.get_test_tool_path(ctx, 'pmemdetect')

    return sp.run([exe, *args], env=env, stdout=sp.PIPE,
                  stderr=sp.STDOUT, universal_newlines=True)
Esempio n. 5
0
 def run(self, ctx):
     ctx.env['PMEM2_FORCE_GRANULARITY'] = "CACHELINE"
     ctx.exec(f.get_test_tool_path(ctx.build, "gran_detecto"), '-c',
              ctx.testdir)
Esempio n. 6
0
 def run(self, ctx):
     ctx.env['PMEM2_FORCE_GRANULARITY'] = "CaCHe_Line"
     ctx.exec(f.get_test_tool_path(ctx, "gran_detecto"), '-c', ctx.testdir)