-
Notifications
You must be signed in to change notification settings - Fork 10.6k
[Test][Embedded] Make dependencies print compatible with lit shell #85881
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
base: main
Are you sure you want to change the base?
[Test][Embedded] Make dependencies print compatible with lit shell #85881
Conversation
|
Yeah, this is best I could do. I don't know why I thought I'll have to recheck what I did for other test because some did work. |
|
@swift-ci please smoke test |
| // Fail if there is any entry in actual-dependencies.txt that's not in allowed-dependencies.txt | ||
| // RUN: test -z "`comm -13 %t/allowed-dependencies.txt %t/actual-dependencies.txt`" | ||
|
|
||
| // RUN: %if target-os-linux-gnu %{ comm -13 %t/allowed-dependencies_linux.txt %t/actual-dependencies.txt > %t/extra.txt && test ! -s %t/extra.txt %} %else %{ comm -13 %t/allowed-dependencies_macos.txt %t/actual-dependencies.txt > %t/extra.txt && test ! -s %t/extra.txt %} |
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.
Oh... I'm not sorting before using comm. The manual says "compare two sorted files line by line," I'm only sorting actual-dependencies.txt, not allowed-dependencies.txt
|
@swift-ci please smoke test linux platform |
Back to the Docker container. |
|
@swift-ci please smoke test |
|
@swift-ci please smoke test macos platform |
|
@swift-ci please smoke test |
Partially addresses #84407
Reference