-
Notifications
You must be signed in to change notification settings - Fork 15.2k
[lldb] Revive TestSimulatorPlatform.py #142244
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -39,15 +39,15 @@ def check_debugserver(self, log, expected_platform, expected_version): | |
if expected_version: | ||
self.assertEqual(aout_info["min_version_os_sdk"], expected_version) | ||
|
||
@skipIf(bugnumber="rdar://76995109") | ||
def run_with(self, arch, os, vers, env, expected_load_command): | ||
env_list = [env] if env else [] | ||
triple = "-".join([arch, "apple", os + vers] + env_list) | ||
sdk = lldbutil.get_xcode_sdk(os, env) | ||
|
||
version_min = "" | ||
if not vers: | ||
vers = lldbutil.get_xcode_sdk_version(sdk) | ||
|
||
version_min = "" | ||
if env == "simulator": | ||
version_min = "-m{}-simulator-version-min={}".format(os, vers) | ||
elif os == "macosx": | ||
|
@@ -56,11 +56,14 @@ def run_with(self, arch, os, vers, env, expected_load_command): | |
sdk_root = lldbutil.get_xcode_sdk_root(sdk) | ||
clang = lldbutil.get_xcode_clang(sdk) | ||
|
||
print(triple) | ||
|
||
self.build( | ||
dictionary={ | ||
"ARCH": arch, | ||
"ARCH_CFLAGS": "-target {} {}".format(triple, version_min), | ||
"SDKROOT": sdk_root, | ||
"USE_SYSTEM_STDLIB": 1, | ||
}, | ||
compiler=clang, | ||
) | ||
|
@@ -146,6 +149,7 @@ def test_watchos_armv7k(self): | |
|
||
@skipUnlessDarwin | ||
@skipIfDarwinEmbedded | ||
@skipIf(archs=["arm64", "arm64e"]) | ||
def test_lc_version_min_macosx(self): | ||
"""Test running a back-deploying non-simulator MacOS X binary""" | ||
self.run_with( | ||
|
@@ -198,7 +202,7 @@ def test_ios_backdeploy_apple_silicon(self): | |
self.run_with( | ||
arch=self.getArchitecture(), | ||
os="ios", | ||
vers="11.0", | ||
vers="14.0", | ||
|
||
env="simulator", | ||
expected_load_command="LC_BUILD_VERSION", | ||
) | ||
|
@@ -229,7 +233,7 @@ def test_tvos_backdeploy_apple_silicon(self): | |
self.run_with( | ||
arch=self.getArchitecture(), | ||
os="tvos", | ||
vers="11.0", | ||
vers="14.0", | ||
env="simulator", | ||
expected_load_command="LC_BUILD_VERSION", | ||
) | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This can go altogether, this was a leftover debug statement and not particularly helpful in general.