Skip to content
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

gtest should be found while build with testing #66

Closed
wants to merge 4 commits into from

Conversation

ClausKlein
Copy link

add debug suffix to enable debug and release installation

add debug suffix to enable debug and release installation
@googlebot
Copy link

Thanks for your pull request. It looks like this may be your first contribution to a Google open source project (if not, look below for help). Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

📝 Please visit https://cla.developers.google.com/ to sign.

Once you've signed (or fixed any issues), please reply here (e.g. I signed it!) and we'll verify it.


What to do if you already signed the CLA

Individual signers
Corporate signers
  • Your company has a Point of Contact who decides which employees are authorized to participate. Ask your POC to be added to the group of authorized contributors. If you don't know who your Point of Contact is, direct the project maintainer to go/cla#troubleshoot.
  • The email used to register you as an authorized contributor must be the email used for the Git commit. Check your existing CLA data and verify that your email is set on your git commits.
  • The email used to register you as an authorized contributor must also be attached to your GitHub account.

@ClausKlein ClausKlein changed the title test should be found while build with testing gtest should be found while build with testing Mar 11, 2018
use debug postfix like boost does
@googlebot
Copy link

CLAs look good, thanks!

@ClausKlein
Copy link
Author

bash-4.4$ sudo ninja install
Password:
[0/1] Install the project...
-- Install configuration: "Release"
-- Installing: /usr/local/lib/libsnappy.a
-- Up-to-date: /usr/local/include/snappy-c.h
-- Up-to-date: /usr/local/include/snappy-sinksource.h
-- Up-to-date: /usr/local/include/snappy.h
-- Installing: /usr/local/include/snappy-stubs-public.h
-- Installing: /usr/local/lib/cmake/Snappy/SnappyTargets.cmake
-- Installing: /usr/local/lib/cmake/Snappy/SnappyTargets-release.cmake
-- Up-to-date: /usr/local/lib/cmake/Snappy/SnappyConfig.cmake
-- Installing: /usr/local/lib/cmake/Snappy/SnappyConfigVersion.cmake
bash-4.4$ ninja clean
[1/1] Cleaning all built files...
Cleaning... 8 files.
bash-4.4$ ninja
[8/8] Linking CXX executable snappy_unittest
bash-4.4$ ctest
Test project /Users/clausklein/Workspace/cpp/snappy/build
Start 1: snappy_unittest
1/1 Test #1: snappy_unittest ..................***Exception: Child aborted 43.15 sec

0% tests passed, 1 tests failed out of 1

Total Test time (real) = 43.19 sec

The following tests FAILED:
1 - snappy_unittest (Child aborted)
Errors while running CTest
bash-4.4$

@ClausKlein
Copy link
Author

a debug build works?

bash-4.4$ ctest
Test project /Users/clausklein/Workspace/cpp/snappy/build
Start 1: snappy_unittest
1/1 Test #1: snappy_unittest .................. Passed 91.10 sec

100% tests passed, 0 tests failed out of 1

Total Test time (real) = 91.12 sec
bash-4.4$

@ClausKlein
Copy link
Author

no idea if someone is interested in this info, but your unit tests are fakes, as long gtest is not installed!

see *.yam

@pwnall
Copy link
Member

pwnall commented Mar 12, 2018

Google Test can be used, but is not necessary to run Snappy's tests. See snappy-test.h and snappy-test.cc

@pwnall pwnall closed this Mar 12, 2018
@ClausKlein
Copy link
Author

and what is about the failed release build test:
1/1 Test #1: snappy_unittest ..................***Exception: Child aborted 43.15 sec

@ClausKlein
Copy link
Author

ClausKlein commented Mar 12, 2018 via email

@ClausKlein
Copy link
Author

[ RUN ] Snappy.FindMatchLength
../snappy_unittest.cc:954: Failure
Expected: 6
To be equal to: TestFindMatchLength("012345", "012345", 6)
Which is: 8
[ FAILED ] Snappy.FindMatchLength (1 ms)

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.

3 participants