-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Fixes many tests (plus skips) to get more tests running on windows #8609
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
echo sentinel | ||
echo %* |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"debugger": { "path": "echo.bat" }, | ||
"testRunner": { "path": "echo.bat" }, | ||
"schemaVersion" : "1.0", | ||
"rootPath" : "." | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
// swift-tools-version: 5.7 | ||
// swift-tools-version: 6.0 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. issue (possibly-blocking): Although this seems like a very simple change, I fear this might introduce regression as the swift-tools-version for the test package was set for 5.7 for a reason. What is the purpose of updating this? Can we revert this back to 5.7 and maybe disable (or mark the test as expected failure)? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. updating the plugin to use URL API instead of Path requires this. |
||
|
||
import PackageDescription | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -559,9 +559,14 @@ private struct CommandTaskTracker { | |
} | ||
|
||
private func progressText(of command: SPMLLBuild.Command, targetName: String?) -> String { | ||
#if os(Windows) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. suggestion (non-blocking): can we define the path separator in a common location so we don't have to redefine it multiple times whenever a test requires it? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. something to consider maybe if we ever vender in the TSC Path stuff into swift pm to remove that dependency... some day... |
||
let pathSep: Character = "\\" | ||
#else | ||
let pathSep: Character = "/" | ||
#endif | ||
// Transforms descriptions like "Linking ./.build/x86_64-apple-macosx/debug/foo" into "Linking foo". | ||
if let firstSpaceIndex = command.description.firstIndex(of: " "), | ||
let lastDirectorySeparatorIndex = command.description.lastIndex(of: "/") | ||
let lastDirectorySeparatorIndex = command.description.lastIndex(of: pathSep) | ||
{ | ||
let action = command.description[..<firstSpaceIndex] | ||
let fileNameStartIndex = command.description.index(after: lastDirectorySeparatorIndex) | ||
|
Uh oh!
There was an error while loading. Please reload this page.