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

Revive the C++ tests, make them pass and enable them on the CI #160

Merged
merged 7 commits into from
Aug 19, 2019

Conversation

mosra
Copy link
Collaborator

@mosra mosra commented Aug 19, 2019

Motivation and Context

  • Enabling existing C++ tests and exposing them to CTest (had to fight with CMake a bit to ensure glog tests are not included)
  • Converting them to use absolute known paths to datasets
  • Skipping them in case we can't get those on the CI (which needed googletest submodule update for GTEST_SKIP())
  • Building them on the CI and running CTest there

How Has This Been Tested

Passes locally and on the CI, moreover the CI output now contains also the CTest log.

And disable tests for gflags -- we don't want these to run.
GCC has issues with those:

    SimTest.cpp:26:41: sorry, unimplemented: non-trivial designated initializers not supported
We can't use them on the CI but we still want the tests to be run.
@facebook-github-bot facebook-github-bot added the CLA Signed Do not delete this pull request or issue due to inactivity. label Aug 19, 2019
Copy link
Contributor

@msbaines msbaines left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for addressing this. Excited that C++ is now part of CI.

Copy link
Contributor

@erikwijmans erikwijmans left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The CI likes it, therefore I like it.

@mosra mosra merged commit 04abf33 into master Aug 19, 2019
@mosra mosra deleted the test-the-tests branch August 19, 2019 17:45
eundersander pushed a commit to eundersander/habitat-sim that referenced this pull request Aug 6, 2020
* Add fog-of-war to topdown map
Ram81 pushed a commit to Ram81/habitat-web-sim that referenced this pull request Dec 10, 2020
…ookresearch#160)

* CMake: run tests using CTest.

And disable tests for gflags -- we don't want these to run.

* Use absolute paths to test files in the tests.

* Execute CTest in build.sh, enable tests on the CI.

* tests: don't use C designated initializers.

GCC has issues with those:

    SimTest.cpp:26:41: sorry, unimplemented: non-trivial designated initializers not supported

* tests: skip a test if (licensed) datasets are not found.

We can't use them on the CI but we still want the tests to be run.

* tests: reduce verbosity of some loud tests.

* tests: srsly?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed Do not delete this pull request or issue due to inactivity.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants