-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
[testing] Enable a way to test on real devices #19492
Conversation
/rebase |
6b504a9
to
0d9d64a
Compare
dd6fdf5
to
059ba24
Compare
string DOTNET_PLATFORM = TEST_DEVICE.ToLower().Contains("simulator") ? "iossimulator-x64" : "ios-arm64"; | ||
string DOTNET_PLATFORM = TEST_DEVICE.ToLower().Contains("simulator") ? | ||
$"iossimulator-{System.Runtime.InteropServices.RuntimeInformation.OSArchitecture.ToString().ToLower()}" | ||
: $"ios-arm64"; |
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.
If it's a device we always want arm64
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.
Hm I thought we had this architecture stuff in here already? Maybe I'm thinking of that ARM PR I still need to finish...
@@ -93,7 +98,16 @@ void Cleanup() | |||
Information("No simulators found to delete."); | |||
return; | |||
} | |||
var xharness = sims.Where(s => s.Name.Contains("XHarness")).ToArray(); | |||
var simulatorName = "XHarness"; | |||
if(iosVersion.Contains("17")) |
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.
I think we need to open a bug on. xharness about this it seems it doesn't have the "Created by XHarness" if it's a iPhone 15. this leads to sometimes delete existing simulators.
@@ -144,7 +144,7 @@ stages: | |||
windows: $(System.DefaultWorkingDirectory)/src/Core/tests/DeviceTests/Core.DeviceTests.csproj | |||
- name: controls | |||
desc: Controls | |||
androidApiLevelsExclude: [25] # Ignore for now API25 since the runs's are not stable | |||
androidApiLevelsExclude: [27, 25] # Ignore for now API25 since the runs's are not stable |
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.
Disable API27 since is not stable
Description of Change
Enables the cake scripts to test on real devices.
On
iosVersions: [ 'simulator-16.4','simulator-15.5','simulator-14.5' ]
one would be able to say
iosVersions: [ 'simulator-16.4','simulator-15.5','device-16.5', 'device-17' ]
Work related with #19255