@@ -1131,6 +1131,42 @@ tasks:
11311131 script : |-
11321132 ${cmake_build_type|Debug}/realm-libfuzz -rss_limit_mb=0 -max_total_time=3600
11331133
1134+ - name : combined-tests-ios-simulator
1135+ tags : [ "for_pull_requests" ]
1136+ exec_timeout_secs : 1800
1137+ commands :
1138+ - command : shell.exec
1139+ params :
1140+ working_dir : realm-core
1141+ shell : bash
1142+ script : |-
1143+ set -o errexit
1144+ set -o verbose
1145+
1146+ if [ -n "${xcode_developer_dir}" ]; then
1147+ export DEVELOPER_DIR="${xcode_developer_dir}"
1148+ export SIMCTL_CHILD_DEVELOPER_DIR="${xcode_developer_dir}"
1149+ fi
1150+
1151+ if [[ -n "${verbose_test_output}" ]]; then
1152+ TEST_FLAGS="$TEST_FLAGS -VV"
1153+ export SIMCTL_CHILD_UNITTEST_THREADS=1
1154+ export SIMCTL_CHILD_UNITTEST_LOG_LEVEL="${test_logging_level|debug}"
1155+ fi
1156+
1157+ TEST_RESULTS_FILE="$(./evergreen/abspath.sh ${task_name}_results.json)"
1158+ export SIMCTL_CHILD_UNITTEST_EVERGREEN_TEST_RESULTS="$TEST_RESULTS_FILE"
1159+ if [[ -f "$TEST_RESULTS_FILE" ]]; then
1160+ rm "$TEST_RESULTS_FILE"
1161+ fi
1162+ export SIMCTL_CHILD_UNITTEST_PROGRESS=1
1163+ export SIMCTL_CHILD_UNITTEST_ENCRYPT_ALL="${run_with_encryption|0}"
1164+
1165+ ./tools/run-in-simulator.sh \
1166+ ./build/test/${cmake_build_type|Debug}-iphonesimulator/realm-combined-tests.app \
1167+ 'io.realm.CombinedTests' \
1168+ $TEST_RESULTS_FILE
1169+
11341170- name : generate-sync-corpus
11351171 tags : [ "for_nightly_tests" ]
11361172 exec_timeout_secs : 1800
@@ -1317,6 +1353,20 @@ task_groups:
13171353 tasks :
13181354 - fuzzer
13191355
1356+ - name : ios-simulator-tests
1357+ max_hosts : 1
1358+ setup_group_can_fail_task : true
1359+ setup_group :
1360+ - func : " fetch source"
1361+ - func : " fetch binaries"
1362+ teardown_task :
1363+ - func : " upload test results"
1364+ timeout :
1365+ - func : " run hang analyzer"
1366+ tasks :
1367+ - compile
1368+ - combined-tests-ios-simulator
1369+
13201370- name : compile_only
13211371 max_hosts : 1
13221372 setup_group_can_fail_task : true
@@ -1325,7 +1375,6 @@ task_groups:
13251375 - func : " fetch binaries"
13261376 teardown_task :
13271377 - func : " upload test results"
1328- - func : " upload baas artifacts"
13291378 timeout :
13301379 - func : " run hang analyzer"
13311380 tasks :
@@ -1619,6 +1668,24 @@ buildvariants:
16191668 tasks :
16201669 - name : compile_test_and_package
16211670
1671+ - name : ios-simulator
1672+ display_name : " iOS Simulator (combined tests w/Xcode 15)"
1673+ run_on : macos-14-arm64
1674+ expansions :
1675+ cmake_bindir : " /opt/homebrew/bin"
1676+ cmake_toolchain_file : " ./tools/cmake/xcode.toolchain.cmake"
1677+ extra_flags : " -DCMAKE_XCODE_ATTRIBUTE_SDKROOT=iphoneos"
1678+ cmake_build_tool_options : " -sdk iphonesimulator -arch arm64"
1679+ cmake_generator : Xcode
1680+ max_jobs : $(sysctl -n hw.logicalcpu)
1681+ xcode_developer_dir : /Applications/Xcode15.2.app/Contents/Developer
1682+ build_command_line_tools : Off
1683+ disable_tests_against_baas : On
1684+ disable_sync : On
1685+ target_to_build : CombinedTests
1686+ tasks :
1687+ - name : ios-simulator-tests
1688+
16221689- name : macos-encrypted
16231690 display_name : " MacOS 14.0 arm64 (Encryption enabled)"
16241691 run_on : macos-14-arm64
0 commit comments