[Lldb-commits] [lldb] r184748 - Tests require GNU make, called gmake on FreeBSD
Ed Maste
emaste at freebsd.org
Mon Jun 24 08:40:27 PDT 2013
Author: emaste
Date: Mon Jun 24 10:40:27 2013
New Revision: 184748
URL: http://llvm.org/viewvc/llvm-project?rev=184748&view=rev
Log:
Tests require GNU make, called gmake on FreeBSD
Modified:
lldb/trunk/test/plugins/builder_base.py
Modified: lldb/trunk/test/plugins/builder_base.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/plugins/builder_base.py?rev=184748&r1=184747&r2=184748&view=diff
==============================================================================
--- lldb/trunk/test/plugins/builder_base.py (original)
+++ lldb/trunk/test/plugins/builder_base.py Mon Jun 24 10:40:27 2013
@@ -13,6 +13,7 @@ variable.
"""
import os
+import platform
import lldbtest
def getArchitecture():
@@ -37,6 +38,13 @@ def getArchFlag():
return (" ARCHFLAG=" + archflag) if archflag else ""
+def getMake():
+ """Returns the name for GNU make"""
+ if platform.system() == "FreeBSD":
+ return "gmake "
+ else:
+ return "make "
+
def getArchSpec(architecture):
"""
Helper function to return the key-value string to specify the architecture
@@ -81,13 +89,14 @@ def buildDefault(sender=None, architectu
"""Build the binaries the default way."""
if clean:
lldbtest.system(["/bin/sh", "-c",
- "make clean" + getCmdLine(dictionary) + "; make"
+ getMake() + "clean" + getCmdLine(dictionary) + ";"
+ + getMake()
+ getArchSpec(architecture) + getCCSpec(compiler)
+ getCmdLine(dictionary)],
sender=sender)
else:
lldbtest.system(["/bin/sh", "-c",
- "make" + getArchSpec(architecture) + getCCSpec(compiler)
+ getMake() + getArchSpec(architecture) + getCCSpec(compiler)
+ getCmdLine(dictionary)],
sender=sender)
@@ -98,14 +107,14 @@ def buildDwarf(sender=None, architecture
"""Build the binaries with dwarf debug info."""
if clean:
lldbtest.system(["/bin/sh", "-c",
- "make clean" + getCmdLine(dictionary)
- + "; make MAKE_DSYM=NO"
+ getMake() + "clean" + getCmdLine(dictionary)
+ + ";" + getMake() + "MAKE_DSYM=NO"
+ getArchSpec(architecture) + getCCSpec(compiler)
+ getCmdLine(dictionary)],
sender=sender)
else:
lldbtest.system(["/bin/sh", "-c",
- "make MAKE_DSYM=NO"
+ getMake() + "MAKE_DSYM=NO"
+ getArchSpec(architecture) + getCCSpec(compiler)
+ getCmdLine(dictionary)],
sender=sender)
@@ -118,7 +127,8 @@ def cleanup(sender=None, dictionary=None
#import traceback
#traceback.print_stack()
if os.path.isfile("Makefile"):
- lldbtest.system(["/bin/sh", "-c", "make clean"+getCmdLine(dictionary)],
+ lldbtest.system(["/bin/sh", "-c",
+ getMake() + "clean" + getCmdLine(dictionary)],
sender=sender)
# True signifies that we can handle cleanup.
More information about the lldb-commits
mailing list