Skip to content

[Tests] Allow xctest_checker to read from stdin #131

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

Merged
merged 1 commit into from
Jun 29, 2016

Conversation

modocache
Copy link
Contributor

It's sometimes useful to run xctest_checker directly when debugging the test suite. To make it easier to compare the actual output of an executable against the expected output, allow xctest_checker to read from stdin. This makes the following possible:

Tests/Functional/MyTestCase/Output/MyTestCase | xctest_checker.py - Tests/Functional/MyTestCase/main.swift

This pipes the output from the "MyTestCase" executable into xctest_checker, which compares that output to the expected output from "MyTestCase/main.swift".

It's sometimes useful to run xctest_checker directly when
debugging the test suite. To make it easier to compare the
actual output of an executable against the expected output,
allow xctest_checker to read from stdin. This makes the
following possible:

```
Tests/Functional/MyTestCase/Output/MyTestCase | xctest_checker.py - Tests/Functional/MyTestCase/main.swift
```

This pipes the output from the "MyTestCase" executable into
xctest_checker, which compares that output to the expected output from
"MyTestCase/main.swift".
@modocache
Copy link
Contributor Author

@swift-ci please test

@modocache
Copy link
Contributor Author

Tests pass! I think the added flexibility here is a big improvement. @mike-ferris-apple, @briancroom, please merge if you agree.

@briancroom
Copy link
Contributor

Love it! Thanks for this enhancement.

@briancroom briancroom merged commit 2e5fbd7 into swiftlang:master Jun 29, 2016
@modocache modocache deleted the xctest-checker-input-streams branch June 29, 2016 14:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants