コード例 #1
0
ファイル: darwin.py プロジェクト: eightcien/lldb
def cleanup(sender=None, dictionary=None):
    """Perform a platform-specific cleanup after the test."""
    if os.path.isfile("Makefile"):
        lldbtest.system(["/bin/sh", "-c", "make clean"+getCmdLine(dictionary)],
                        sender=sender)

    # True signifies that we can handle cleanup.
    return True
コード例 #2
0
ファイル: builder_base.py プロジェクト: fbsd/old_lldb
def cleanup(sender=None, dictionary=None):
    """Perform a platform-specific cleanup after the test."""
    if os.path.isfile("Makefile"):
        lldbtest.system(["/bin/sh", "-c", "make clean"+getCmdLine(dictionary)],
                        sender=sender)

    # True signifies that we can handle cleanup.
    return True
コード例 #3
0
ファイル: builder_base.py プロジェクト: RichardsonAlex/lldb
def buildDwo(sender=None, architecture=None, compiler=None, dictionary=None, clean=True):
    """Build the binaries with dwarf debug info."""
    commands = []
    if clean:
        commands.append([getMake(), "clean", getCmdLine(dictionary)])
    commands.append([getMake(), "MAKE_DSYM=NO", "MAKE_DWO=YES", getArchSpec(architecture), getCCSpec(compiler), getCmdLine(dictionary)])

    lldbtest.system(commands, sender=sender)
    # True signifies that we can handle building dwo.
    return True
コード例 #4
0
def buildDwarf(sender=None, architecture=None, compiler=None, dictionary=None, clean=True):
    """Build the binaries with dwarf debug info."""
    commands = []
    if clean:
        commands.append([getMake(), "clean", getCmdLine(dictionary)])
    commands.append([getMake(), "MAKE_DSYM=NO", getArchSpec(architecture), getCCSpec(compiler), getCmdLine(dictionary)])

    lldbtest.system(commands, sender=sender)
    # True signifies that we can handle building dwarf.
    return True
コード例 #5
0
ファイル: darwin.py プロジェクト: eightcien/lldb
def buildDefault(sender=None, architecture=None, compiler=None, dictionary=None):
    """Build the binaries the default way."""
    lldbtest.system(["/bin/sh", "-c",
                     "make clean" + getCmdLine(dictionary) + "; make"
                     + getArchSpec(architecture) + getCCSpec(compiler)
                     + getCmdLine(dictionary)],
                    sender=sender)

    # True signifies that we can handle building default.
    return True
コード例 #6
0
ファイル: builder_base.py プロジェクト: fbsd/old_lldb
def buildDefault(sender=None, architecture=None, compiler=None, dictionary=None):
    """Build the binaries the default way."""
    lldbtest.system(["/bin/sh", "-c",
                     "make clean" + getCmdLine(dictionary) + "; make"
                     + getArchSpec(architecture) + getCCSpec(compiler)
                     + getCmdLine(dictionary)],
                    sender=sender)

    # True signifies that we can handle building default.
    return True
コード例 #7
0
ファイル: builder_base.py プロジェクト: RichardsonAlex/lldb
def buildDefault(sender=None, architecture=None, compiler=None, dictionary=None, clean=True):
    """Build the binaries the default way."""
    commands = []
    if clean:
        commands.append([getMake(), "clean", getCmdLine(dictionary)])
    commands.append([getMake(), getArchSpec(architecture), getCCSpec(compiler), getCmdLine(dictionary)])

    lldbtest.system(commands, sender=sender)

    # True signifies that we can handle building default.
    return True
コード例 #8
0
ファイル: builder_base.py プロジェクト: RichardsonAlex/lldb
def cleanup(sender=None, dictionary=None):
    """Perform a platform-specific cleanup after the test."""
    #import traceback
    #traceback.print_stack()
    commands = []
    if os.path.isfile("Makefile"):
        commands.append([getMake(), "clean", getCmdLine(dictionary)])

    lldbtest.system(commands, sender=sender)
    # True signifies that we can handle cleanup.
    return True
コード例 #9
0
def buildDefault(sender=None, architecture=None, compiler=None, dictionary=None, clean=True):
    """Build the binaries the default way."""
    commands = []
    if clean:
        commands.append([getMake(), "clean", getCmdLine(dictionary)])
    commands.append([getMake(), getArchSpec(architecture), getCCSpec(compiler), getCmdLine(dictionary)])

    lldbtest.system(commands, sender=sender)

    # True signifies that we can handle building default.
    return True
コード例 #10
0
def cleanup(sender=None, dictionary=None):
    """Perform a platform-specific cleanup after the test."""
    #import traceback
    #traceback.print_stack()
    commands = []
    if os.path.isfile("Makefile"):
        commands.append([getMake(), "clean", getCmdLine(dictionary)])

    lldbtest.system(commands, sender=sender)
    # True signifies that we can handle cleanup.
    return True
コード例 #11
0
ファイル: builder_darwin.py プロジェクト: fbsd/old_lldb
def buildDsym(sender=None, architecture=None, compiler=None, dictionary=None):
    """Build the binaries with dsym debug info."""
    lldbtest.system([
        "/bin/sh", "-c", "make clean" + getCmdLine(dictionary) +
        "; make MAKE_DSYM=YES" + getArchSpec(architecture) +
        getCCSpec(compiler) + getCmdLine(dictionary)
    ],
                    sender=sender)

    # True signifies that we can handle building dsym.
    return True
コード例 #12
0
ファイル: builder_darwin.py プロジェクト: markpeek/lldb
def buildDsym(sender=None, architecture=None, compiler=None, dictionary=None):
    """Build the binaries with dsym debug info."""
    lldbtest.system(["/bin/sh", "-c",
                     "make clean" + getCmdLine(dictionary)
                     + "; make MAKE_DSYM=YES"
                     + getArchSpec(architecture) + getCCSpec(compiler)
                     + getCmdLine(dictionary)],
                    sender=sender)

    # True signifies that we can handle building dsym.
    return True
コード例 #13
0
ファイル: builder_base.py プロジェクト: Keno/lldb
def cleanup(sender=None, dictionary=None):
    """Perform a platform-specific cleanup after the test."""
    #import traceback
    #traceback.print_stack()
    if os.path.isfile("Makefile"):
        lldbtest.system(["/bin/sh", "-c",
                         getMake() + "clean" + getCmdLine(dictionary)],
                        sender=sender)

    # True signifies that we can handle cleanup.
    return True
コード例 #14
0
def cleanup(sender=None, dictionary=None):
    """Perform a platform-specific cleanup after the test."""
    #import traceback
    #traceback.print_stack()
    if os.path.isfile("Makefile"):
        lldbtest.system(
            ["/bin/sh", "-c",
             getMake() + "clean" + getCmdLine(dictionary)],
            sender=sender)

    # True signifies that we can handle cleanup.
    return True
コード例 #15
0
ファイル: builder_base.py プロジェクト: ztianjin/lldb
def buildDwarf(sender=None, architecture=None, compiler=None, dictionary=None, clean=True):
    """Build the binaries with dwarf debug info."""
    if clean:
        lldbtest.system(["/bin/sh", "-c",
                         "make clean" + getCmdLine(dictionary)
                         + "; make MAKE_DSYM=NO"
                         + getArchSpec(architecture) + getCCSpec(compiler)
                         + getCmdLine(dictionary)],
                        sender=sender)
    else:
        lldbtest.system(["/bin/sh", "-c",
                         "make MAKE_DSYM=NO"
                         + getArchSpec(architecture) + getCCSpec(compiler)
                         + getCmdLine(dictionary)],
                        sender=sender)

    # True signifies that we can handle building dwarf.
    return True
コード例 #16
0
ファイル: builder_base.py プロジェクト: nahratzah/lldb
def buildDwarf(sender=None,
               architecture=None,
               compiler=None,
               dictionary=None,
               clean=True):
    """Build the binaries with dwarf debug info."""
    if clean:
        lldbtest.system([
            "/bin/sh", "-c", "make clean" + getCmdLine(dictionary) +
            "; make MAKE_DSYM=NO" + getArchSpec(architecture) +
            getCCSpec(compiler) + getCmdLine(dictionary)
        ],
                        sender=sender)
    else:
        lldbtest.system([
            "/bin/sh", "-c", "make MAKE_DSYM=NO" + getArchSpec(architecture) +
            getCCSpec(compiler) + getCmdLine(dictionary)
        ],
                        sender=sender)

    # True signifies that we can handle building dwarf.
    return True