Building Swift on Amazon Linux 2

Hi @drexin,

thanks for suggestions. I have updated the code in my branch to track the progress. Currently I just add the skip-test-foundation at a predefined line. Not great for the long run, works for now. I've run it and got until Running tests for swiftpm.

There it fails with the error:

Test Suite 'Selected tests' started at 2020-03-04 14:52:48.185
Test Suite 'BuildPlanTests' started at 2020-03-04 14:52:48.189
Test Case 'BuildPlanTests.testPkgConfigHintDiagnostic' started at 2020-03-04 14:52:48.189
/home/ec2-user/swiftpm/Tests/BuildTests/BuildPlanTests.swift:1028: error: BuildPlanTests.testPkgConfigHintDiagnostic : XCTAssertTrue failed - 
Test Case 'BuildPlanTests.testPkgConfigHintDiagnostic' failed (0.023 seconds)
Test Suite 'BuildPlanTests' failed at 2020-03-04 14:52:48.212
	 Executed 1 test, with 1 failure (0 unexpected) in 0.023 (0.023) seconds
Test Suite 'Selected tests' failed at 2020-03-04 14:52:48.212
	 Executed 1 test, with 1 failure (0 unexpected) in 0.023 (0.023) seconds

Test Suite 'Selected tests' started at 2020-03-04 14:53:07.852
Test Suite 'PkgConfigTests' started at 2020-03-04 14:53:07.855
Test Case 'PkgConfigTests.testBasics' started at 2020-03-04 14:53:07.855
/home/ec2-user/swiftpm/Tests/PackageLoadingTests/PkgConfigTests.swift:60: error: PkgConfigTests.testBasics : failed - Expected a provider here
Test Case 'PkgConfigTests.testBasics' failed (0.008 seconds)
Test Suite 'PkgConfigTests' failed at 2020-03-04 14:53:07.863
	 Executed 1 test, with 1 failure (0 unexpected) in 0.008 (0.008) seconds
Test Suite 'Selected tests' failed at 2020-03-04 14:53:07.863
	 Executed 1 test, with 1 failure (0 unexpected) in 0.008 (0.008) seconds
--- bootstrap: error: tests failed with exit status 1
/home/ec2-user/swift/utils/build-script: fatal error: command terminated with a non-zero exit status 1, aborting

The full output can be found here:

Do you have any idea where this is coming from? Am I doing anything wrong?

2 Likes