-
Notifications
You must be signed in to change notification settings - Fork 10.5k
[test] Add %target-run-simple-swiftgyb substitution #3011
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
[test] Add %target-run-simple-swiftgyb substitution #3011
Conversation
config.target_run_simple_swiftgyb = ( | ||
'rm -rf %%t && mkdir -p %%t && ' | ||
'%%gyb %%s -o %%t/main.swift && ' | ||
'%%line-directive %%t/main.swift -- %s %%t/main.swift' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is the build step somehow missing here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is for interpret
mode: I think swift
command would build and run the script.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see -- you're absolutely right.
@swift-ci Please test |
@swift-ci Please smoke test |
@rintaro This is a massive simplification, thank you! |
@@ -116,3 +112,4 @@ SliceTests.addMutableRandomAccessCollectionTests( | |||
) | |||
|
|||
runAllTests() | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This new line is undesirable change. will fix.
3e3c08d
to
ac1f00b
Compare
dd2d68e
to
36cf373
Compare
@swift-ci Please test |
@swift-ci Please smoke test |
@rintaro I'm sorry -- swiftpm build seems to be broken, which blocks running Swift tests. I'm afraid of merging a large change during this time, I'd prefer to wait until the master branch is more healthy. |
f544d95
to
36cf373
Compare
* utils/split_file.py compatible Inputs/Template.swift.gyb * Result scripts can be ran by %target-run-simple-swift, not GYB * Renamed stdlib/Slice/*.swift.gyb to stdlib/Slice/*.swift
* Utilize %target-run-simple-swiftgyb where possible
36cf373
to
ea2c7a6
Compare
Confirmed recent change doesn't need this substitution. @swift-ci Please test |
@swift-ci Please smoke test |
What's in this pull request?
Add
%target-run-simple-swiftgyb
substitution which will be expended to:As ground works:
__file__
binding to templates.validation-test/stdlib/{Collection,Slice}
Input/Template.swift.gyb
utils/split_file.py
compatible%target-run-simple-swift
substitutionvalidation-test/stdlib/Slice/*.swift.gyb
tovalidation-test/stdlib/Slice/*.swift
Before merging this pull request to apple/swift repository: