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
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
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
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
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
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
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
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
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
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
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
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