On a fresh Xcode install (including some CI provider configurations), there is
no pre-existing testing set that can be used to identify simulator models. Use
the default device set to detect available models instead. Live testing
simulators are still created in the testing set.
(cherry picked from commit dba9de731b)
Co-authored-by: Joe Rickerby <joerick@mac.com>
Include IPHONEOS_DEPLOYMENT_TARGET in iOS shim targets.
(cherry picked from commit 6e907c4d1f)
Co-authored-by: Russell Keith-Magee <russell@keith-magee.com>
Determines a candidate simulator at runtime rather than hardcoding iPhone SE.
(cherry picked from commit 42b0b0667e)
Co-authored-by: Russell Keith-Magee <russell@keith-magee.com>
Removes ``PyConfig.use_system_logger``, resolving an ABI incompatibility introduced in
3.13.2.
Changes the default behavior of iOS to *always* direct stdout/stderr to the system log.
Add a lock to ensure that only one iOS testbed per user can start at a time, so
that the simulator discovery process doesn't collide between instances.
(cherry picked from commit 9211b3dabe)
Co-authored-by: Russell Keith-Magee <russell@keith-magee.com>
Adds error handling when there are no pre-existing test simulators.
(cherry picked from commit 99088ab081)
Co-authored-by: Russell Keith-Magee <russell@keith-magee.com>
Ensure colorize tests will run on dumb terminals (or environment with TERM=dumb set)
(cherry picked from commit 1b070060c0)
Co-authored-by: Russell Keith-Magee <russell@keith-magee.com>
Correct handling of symlinks during iOS testbed framework installation.
(cherry picked from commit 625470a7d2)
Co-authored-by: Russell Keith-Magee <russell@keith-magee.com>
Filter out the iOS log prefix from testbed runner output.
(cherry picked from commit a58083811a)
Co-authored-by: Russell Keith-Magee <russell@keith-magee.com>
Uses symlinks to install iOS framework into testbed clone, adds a verbose mode
to the iOS runner to hide most Xcode output, adds another mechanism to disable
terminal colors, and ensures that stdout is flushed after every write.
(cherry picked from commit ba2d2fda93)
Co-authored-by: Russell Keith-Magee <russell@keith-magee.com>
Add versionadded annotation to use_system_logger feature.
(cherry picked from commit 51216857ca)
Co-authored-by: Russell Keith-Magee <russell@keith-magee.com>
Adds a `use_system_log` config item to enable stdout/stderr redirection for
Apple platforms. This log streaming is then used by a new iOS test runner
script, allowing the display of test suite output at runtime. The iOS test
runner script can be used by any Python project, not just the CPython test
suite.
(cherry picked from commit 2041a95e68)
Add shims for iOS C++ compilation (GH-123620)
Add shims for iOS C++ compilation.
(cherry picked from commit 135dad9bd7)
Co-authored-by: Russell Keith-Magee <russell@keith-magee.com>
Ensure that iOS test re-runs don't try to spawn a process. (GH-122994)
Adds the --single-process option to the iOS test runner to ensure re-runs execute in the same process.
(cherry picked from commit e03073ff20)
Co-authored-by: Russell Keith-Magee <russell@keith-magee.com>
Add a --rerun option to the iOS testbed. (GH-122992)
Enable --rerun when running tests on iOS.
(cherry picked from commit ce39d3c6bd)
Co-authored-by: Russell Keith-Magee <russell@keith-magee.com>
gh-120831: Increase the default minimum supported iOS version to 13.0 (GH-121250)
Increases the default minimum iOS version to 13.0.
(cherry picked from commit 7e91e0dcfe)
Co-authored-by: Russell Keith-Magee <russell@keith-magee.com>
Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
Co-authored-by: Jacob Coffee <jacob@z7x.org>
Co-authored-by: Malcolm Smith <smith@chaquo.com>
Co-authored-by: Ned Deily <nad@python.org>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
Co-authored-by: Malcolm Smith <smith@chaquo.com>
Co-authored-by: Ned Deily <nad@python.org>