-
Notifications
You must be signed in to change notification settings - Fork 5.1k
Add test leg to the PR build to run libraries tests on iOS x64 Simulators #37476
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
be7b233
066bafa
ebbf08b
83d7cab
1379eef
98377f1
495c602
c571262
636bc66
9d9da07
21d5ebc
df64e06
553147d
9e7d3f2
138706f
2a2243d
030511c
d1a4226
d3366ae
16168da
64da851
506afd2
6778369
f3252fd
2743b13
8a2c248
6f6731e
e6a94dd
8f07f4c
3d73fc6
0e0403f
01cc2b1
aee9b85
3f2f23c
bcc7dcc
ffb1b02
1e9eb5d
0b6b5a5
7c23cd7
1671125
1f9c3cf
413e135
82ff98a
48d66d0
09bd517
624a31c
95b1c96
e9a3b50
bbf9d5d
73d6395
36607ec
24aa660
6bb6a2c
4f1cd5b
ee0755e
16d342c
b60a3ab
4b4c195
f8aff2d
4686a68
48ab6f7
3728ff2
15dfc43
ac61f7c
e2dd430
382c0e6
232c015
4d28140
eaca727
53b7920
9cbb37b
556f566
6c0d4ba
6988ea7
82138c0
2096169
ae674a2
f64fa45
685b923
4757353
57a75a0
4af87be
3b3792c
b8ba96c
146b4b0
cc68ec3
ca4a175
fff75e7
51f1849
9360c81
a266f68
f097772
8a1ed9c
af9244b
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 | ||
---|---|---|---|---|
@@ -1,11 +1,9 @@ | ||||
#!/usr/bin/env bash | ||||
|
||||
EXECUTION_DIR=$(dirname $0) | ||||
TEST_NAME=$1 | ||||
TARGET_ARCH=$2 | ||||
TARGET= | ||||
SCHEME_SDK= | ||||
[[RunCommands]] | ||||
|
||||
# "Release" in SCHEME_SDK is what xcode produces (see "bool Optimized" property in AppleAppBuilderTask) | ||||
if [ "$TARGET_ARCH" == "arm" ]; then | ||||
TARGET=ios-device | ||||
SCHEME_SDK=Release-iphoneos | ||||
|
@@ -23,8 +21,6 @@ else | |||
exit 1 | ||||
fi | ||||
|
||||
# "Release" in SCHEME_SDK is what xcode produces (see "bool Optimized" property in AppleAppBuilderTask) | ||||
|
||||
APP_BUNDLE=$EXECUTION_DIR/$TEST_NAME/$SCHEME_SDK/$TEST_NAME.app | ||||
|
||||
# it doesn't support parallel execution yet, so, here is a hand-made semaphore: | ||||
|
@@ -39,14 +35,17 @@ while true; do | |||
fi | ||||
done | ||||
|
||||
XHARNESS_OUT="$EXECUTION_DIR/xharness-output" | ||||
XCODE_PATH="`xcode-select -p`/../.." | ||||
export XHARNESS_OUT="$EXECUTION_DIR/xharness-output" | ||||
|
||||
dotnet xharness ios test --app="$APP_BUNDLE" \ | ||||
--targets=$TARGET \ | ||||
dotnet xharness ios test \ | ||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Will we support filtering tests or any xunit parameters? Like There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ideally yes, but we first need a way to flow arbitrary command line arguments to the iOS/Android test apps and that will need some changes in xharness and the iOS/Android test runners, I don't think we need to block the PR on that. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Sounds good. We just need to be conscious that PR validation is running outerloop tests for iOS as well, which might be causing the slow runs. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ah no, we added handling for that already with runtime/eng/testing/tests.mobile.targets Line 76 in 3c1b48e
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ok, sounds good. Maybe we should do it how we do it in other places passing them as an argument but that is in the future, no need to block this PR. |
||||
--targets="$TARGET" \ | ||||
--app="$APP_BUNDLE" \ | ||||
--xcode="$XCODE_PATH" \ | ||||
--output-directory=$XHARNESS_OUT | ||||
|
||||
_exitCode=$? | ||||
|
||||
echo "Xharness artifacts: $XHARNESS_OUT" | ||||
echo "XHarness artifacts: $XHARNESS_OUT" | ||||
|
||||
exit $_exitCode | ||||
premun marked this conversation as resolved.
Show resolved
Hide resolved
|
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'm trying to get rid of the runcommands templating mechanism as having individual runner scripts for different targets (ios/android/wasm) seems to be sufficient. Doing that in #39923. That will basically undo this change here. Any objections?
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.
No, I support that change as we should be able to define it via MSBuild.
Uh oh!
There was an error while loading. Please reload this page.
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.
No objections from me.
@directhex - any objections?