Esempio n. 1
0
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
Esempio n. 2
0
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
Esempio n. 3
0
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
Esempio n. 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
Esempio n. 5
0
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
Esempio n. 6
0
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
Esempio n. 7
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
Esempio n. 8
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
Esempio n. 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
Esempio n. 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
Esempio n. 11
0
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
Esempio n. 12
0
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
Esempio n. 13
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
Esempio n. 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
Esempio n. 15
0
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
Esempio n. 16
0
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