[Hexagon] capture gtest output and return over FFI#11239
Merged
mehrdadh merged 12 commits intoapache:mainfrom May 11, 2022
Merged
[Hexagon] capture gtest output and return over FFI#11239mehrdadh merged 12 commits intoapache:mainfrom
mehrdadh merged 12 commits intoapache:mainfrom
Conversation
kparzysz-quic
approved these changes
May 9, 2022
Member
|
@adstraw how come this doesn't fail since we disabled gtest on hexagon? |
Contributor
Contributor
Author
772d7ce to
c20a060
Compare
Contributor
Author
|
Thought of a better solution that would allow us to land this PR before fixing #11237. Latest commit skips the unit tests if $USE_HEXAGON_GTEST is not set in the environment. This should allow CI to pass because we aren't currently setting that flag so test will be skipped. |
mehrdadh
requested changes
May 11, 2022
Member
mehrdadh
left a comment
There was a problem hiding this comment.
LGTM! Let's test it on hardware CI as well before merging
mehrdadh
pushed a commit
to mehrdadh/tvm
that referenced
this pull request
May 16, 2022
* [Hexagon] capture gtest output and return over FFI * rename to test_hexagon_unit_tests.py so it will run in CI * rename to run_unit_tests.cc * pass back gtest error code along with gtest output * skip Hexagon unit tests if gtest not enabled * pass gtest_args as pytest argument * change env variable to HEXAGON_GTEST * set HEXAGON_GTEST in the environment to enable Hexagon unit tests * add back try / except around get_function
shtinsa
pushed a commit
to Deelvin/tvm
that referenced
this pull request
May 17, 2022
* [Hexagon] capture gtest output and return over FFI * rename to test_hexagon_unit_tests.py so it will run in CI * rename to run_unit_tests.cc * pass back gtest error code along with gtest output * skip Hexagon unit tests if gtest not enabled * pass gtest_args as pytest argument * change env variable to HEXAGON_GTEST * set HEXAGON_GTEST in the environment to enable Hexagon unit tests * add back try / except around get_function
shingjan
pushed a commit
to shingjan/tvm
that referenced
this pull request
May 17, 2022
* [Hexagon] capture gtest output and return over FFI * rename to test_hexagon_unit_tests.py so it will run in CI * rename to run_unit_tests.cc * pass back gtest error code along with gtest output * skip Hexagon unit tests if gtest not enabled * pass gtest_args as pytest argument * change env variable to HEXAGON_GTEST * set HEXAGON_GTEST in the environment to enable Hexagon unit tests * add back try / except around get_function
SebastianBoblest
pushed a commit
to SebastianBoblest/tvm
that referenced
this pull request
May 27, 2022
* [Hexagon] capture gtest output and return over FFI * rename to test_hexagon_unit_tests.py so it will run in CI * rename to run_unit_tests.cc * pass back gtest error code along with gtest output * skip Hexagon unit tests if gtest not enabled * pass gtest_args as pytest argument * change env variable to HEXAGON_GTEST * set HEXAGON_GTEST in the environment to enable Hexagon unit tests * add back try / except around get_function
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Captures Hexagon gtest output in a string and passes back over the FFI. Captured output mimics standard gtest output:
cc @mehrdadh