PARQUET-437: Add googletest setup and ADD_PARQUET_TEST helper#19
PARQUET-437: Add googletest setup and ADD_PARQUET_TEST helper#19wesm wants to merge 4 commits intoapache:masterfrom
Conversation
|
I think I got an older version of gtest, let me try updating to 1.7.0. |
16b54c7 to
e237a55
Compare
|
OK, this is now googletest 1.7.0 with the source files manually inlined into gtest-all.cc to simplify compilation. |
|
Why are we inlining the source? |
|
Here was the original https://github.com/google/googletest/blob/release-1.7.0/src/gtest-all.cc. I can omit gtest-all.cc and instead list out each of the individual sources |
|
Either way is fine with me |
|
Why are we adding the gtest source into this repo? This seems different than how we manage other third party dependencies. |
|
Let me set things up to make googletest the same as the other thirdparty libraries |
|
Thanks. I think kudu was particularly fancy and has patched it but I don't think we need that yet. If we do, we can think harder about how to deal with cases like that. |
e237a55 to
add00eb
Compare
|
Annoyingly googletest is blacklisted in homebrew. Almost have this working |
|
@nongli OK, I got the build working. The Linux compiler settings were messing up OS X but I fixed that finally |
.travis.yml
Outdated
There was a problem hiding this comment.
can this pull this from thirdparty/versions.sh?
|
Thanks for doing this. Can you add a quick update to the README and the end of the build step on how to run tests? |
|
Sure thing. |
037ecea to
2fbedf2
Compare
|
Something's up with Travis. I pushed commits to address the comments and the builds errored with no logs. Trying a touched version of the last passing build |
423c99d to
24250f5
Compare
|
Okay, after a few bash mishaps we are back to green. @nongli have a look and lmk if any more comments. |
…d support scripts for using ctest after make
24250f5 to
a54a219
Compare
setup_build_env.sh
Outdated
There was a problem hiding this comment.
This doesn't work for me. I think build_thirdparty leaves the working directory in build/.
|
How do you run setup_build_env.sh? If i just run it
If I source it, it seems to mess up the shell environment (I think -e is set). |
|
It should work now |
|
Running into this now. Any ideas? The version mismatch is weird. |
|
I think that's an |
|
I was able to compile without making any changes but I made sure that |
|
@wesm can you remove the brackets in the title. I'll merge this. |
|
done |
|
@wesm merged. Thanks! |
|
thanks! |
I adapted this functionality from Apache Kudu (incubating). There are no real unit tests, yet, but you can now run `ctest` after building to run all tests that have been created with `ADD_PARQUET_TEST`. Author: Wes McKinney <wes@cloudera.com> Closes apache#19 from wesm/googletest-infra and squashes the following commits: 758328f [Wes McKinney] BLD: disable fixed OSX deployment target. Compile gtest with -fPIC 61cc5bb [Wes McKinney] Remove 'set -e' from setup_build_env.sh 6435970 [Wes McKinney] Fix setup_build_env.sh script a54a219 [Wes McKinney] Add googletest to thirdparty and add ADD_PARQUET_TEST cmake helper and support scripts for using ctest after make
I adapted this functionality from Apache Kudu (incubating). There are no real unit tests, yet, but you can now run
ctestafter building to run all tests that have been created withADD_PARQUET_TEST.