Add dSYM to the macos unittest matrix
This commit is contained in:
parent
0b95a6afb9
commit
59f74320fc
@ -67,8 +67,16 @@ def build(runner: MatrixRunner):
|
|||||||
raise ValueError()
|
raise ValueError()
|
||||||
|
|
||||||
def test(runner: MatrixRunner):
|
def test(runner: MatrixRunner):
|
||||||
if platform.system() != "Windows":
|
if platform.system() == "Linux":
|
||||||
return runner.run_command("./unittest") and runner.run_command("bash", "-c", "exec -a u ./unittest")
|
return runner.run_command("./unittest") and runner.run_command("bash", "-c", "exec -a u ./unittest")
|
||||||
|
elif platform.system() == "Darwin":
|
||||||
|
if runner.current_config()["dSYM"]:
|
||||||
|
if not runner.run_command("dsymutil", "unittest"):
|
||||||
|
return False
|
||||||
|
good = runner.run_command("./unittest") and runner.run_command("bash", "-c", "exec -a u ./unittest")
|
||||||
|
if runner.current_config()["dSYM"]:
|
||||||
|
shutil.rmtree("unittest.dSYM")
|
||||||
|
return good
|
||||||
else:
|
else:
|
||||||
raise ValueError()
|
raise ValueError()
|
||||||
|
|
||||||
@ -117,8 +125,7 @@ def run_macos_matrix():
|
|||||||
"sanitizers": ["OFF", "ON"],
|
"sanitizers": ["OFF", "ON"],
|
||||||
"build_type": ["Debug", "RelWithDebInfo"],
|
"build_type": ["Debug", "RelWithDebInfo"],
|
||||||
"shared": ["OFF", "ON"],
|
"shared": ["OFF", "ON"],
|
||||||
# "split_dwarf": ["OFF", "ON"],
|
"dSYM": [True, False],
|
||||||
# "dwarf_version": ["4", "5"],
|
|
||||||
},
|
},
|
||||||
exclude = [
|
exclude = [
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user