Skip to content

allow c++ tests to run without internet#785

Merged
amcadmus merged 3 commits intodeepmodeling:develfrom
y1xiaoc:test_local
Jun 22, 2021
Merged

allow c++ tests to run without internet#785
amcadmus merged 3 commits intodeepmodeling:develfrom
y1xiaoc:test_local

Conversation

@y1xiaoc
Copy link
Copy Markdown
Contributor

@y1xiaoc y1xiaoc commented Jun 22, 2021

Current test_cc.sh script for c++ unit tests would download and install gtest and libtensorflow anyway even if they are already installed. I added a new script and refined the cmake files to allow the test being run locally without download anything.

@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented Jun 22, 2021

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 74.30%. Comparing base (44d49f3) to head (598af67).

Additional details and impacted files
@@           Coverage Diff           @@
##            devel     #785   +/-   ##
=======================================
  Coverage   74.30%   74.30%           
=======================================
  Files          82       82           
  Lines        6534     6534           
=======================================
  Hits         4855     4855           
  Misses       1679     1679           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@amcadmus amcadmus requested a review from njzjz June 22, 2021 05:22
@amcadmus amcadmus merged commit b15944d into deepmodeling:devel Jun 22, 2021
@y1xiaoc y1xiaoc deleted the test_local branch June 23, 2021 06:39
gzq942560379 pushed a commit to HPC-AI-Team/deepmd-kit that referenced this pull request Sep 2, 2021
* fix bug when trying to find gtest in cmake

* link librt explicitly

* add script to test cc without installing tf
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.

4 participants