summaryrefslogtreecommitdiff
path: root/justfile
diff options
context:
space:
mode:
authorFuwn <[email protected]>2026-03-24 07:15:57 +0000
committerFuwn <[email protected]>2026-03-24 07:15:57 +0000
commite05e5f05ae085e88b2df12266d9c168e7fc78ef5 (patch)
tree6283b740a8420f464142bccfa234eb1c8b4aa1d7 /justfile
parentstyle(Sora): Run formatter (diff)
downloadsora-testing-e05e5f05ae085e88b2df12266d9c168e7fc78ef5.tar.xz
sora-testing-e05e5f05ae085e88b2df12266d9c168e7fc78ef5.zip
test: fix verify with Nimble and simulator boot
Diffstat (limited to 'justfile')
-rw-r--r--justfile5
1 files changed, 5 insertions, 0 deletions
diff --git a/justfile b/justfile
index 25d8b66..a6efeeb 100644
--- a/justfile
+++ b/justfile
@@ -35,6 +35,11 @@ localize destination="platform=macOS" configuration="Debug":
xcodebuild -project Sora.xcodeproj -configuration {{configuration}} -scheme {{target}} -destination '{{destination}}' CODE_SIGNING_ALLOWED=NO build
_test destination="platform=iOS Simulator,name=iPhone 17 Pro" scheme="SoraTests" configuration="Debug" *xcodebuild_args:
+ simulator_name="$(printf '%s\n' '{{destination}}' | sed -n "s/.*name=\\([^,']*\\).*/\\1/p")"; \
+ if [ -n "${simulator_name}" ]; then \
+ xcrun simctl boot "${simulator_name}" >/dev/null 2>&1 || true; \
+ xcrun simctl bootstatus "${simulator_name}" -b; \
+ fi
xcodebuild -project Sora.xcodeproj -configuration {{configuration}} -scheme {{scheme}} -destination '{{destination}}' {{xcodebuild_args}} test
test destination="platform=iOS Simulator,name=iPhone 17 Pro" scheme="SoraTests" configuration="Debug":