You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Test swiftly release artifacts in a plain Linux environment
Currently, there is no test coverage of a swiftly installation
where there is no swift support at all, and nothing involving
swiftly. Add a github workflow that performs a swiftly install
using the release artifact.
In order to facilitate this create an E2E test that performs
these steps, but only in an environment where it can mutate the
system. Also, make this test deployable to a plain Linux system
with no swift support installed on it.
tryXCTSkipIf(ProcessInfo.processInfo.environment["SWIFTLY_SYSTEM_MUTATING"]==nil,"Not running test since it mutates the system and SWIFTLY_SYSTEM_MUTATING environment variable is not set. This test should be run in a throw away environment, such as a container.")
throwError(message:"Unable to determine the required swift version for this version of swiftly. Please make sure that you `cd <swiftly_git_dir>` and there is a .swift-version file there.")
251
258
}
252
259
253
-
letswift=tryawaitself.assertTool("swift", message:"Please install swift \(requiredSwiftVersion) and make sure that it is added to your path.")
260
+
letswift=tryawaitself.assertTool("/usr/bin/swift", message:"Please install swift \(requiredSwiftVersion) and make sure that it is added to your path.")
254
261
255
262
// We also need a swift toolchain with the correct version
256
263
guardlet swiftVersion =tryawaitrunProgramOutput(swift,"--version"), swiftVersion.contains("Swift version \(requiredSwiftVersion)")else{
0 commit comments