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

Fix test-{cmake,pkgconfig}.sh to create, not append, to test files. #919

Merged
merged 1 commit into from
Sep 10, 2024

Conversation

hzeller
Copy link
Contributor

@hzeller hzeller commented Sep 10, 2024

The test.cc file and the CMakeLists/Makefile were created with the '>>' append in shell instead of '>'. Which means these files were growing on multiple invocations if *-consumer was not deleted between calls (which means they would fail the second time around)

While at it, add the manifold/parallel.h include also to the pkg-config test.

Make all includes 'system-header' style with angle brackets, as this is what users of the library would use.

The test.cpp file and the CMakeLists.txt/Makefile were created with
the '>>' append in shell instead of '>'. Which means these files were
growing on multiple invocations if *-consumer was not deleted
between calls (which means that the test would fail the second time
around).

While at it, add the manifold/parallel.h include also to the
pkg-config test.

Make all includes 'system-header' style with angle brackets, as this
is what users of the library would use.
@hzeller hzeller force-pushed the feature-20240910-fix-build-tests branch from 3d11914 to 76428e5 Compare September 10, 2024 16:04
Copy link

codecov bot commented Sep 10, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 88.40%. Comparing base (d437097) to head (76428e5).
Report is 89 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #919      +/-   ##
==========================================
- Coverage   91.84%   88.40%   -3.44%     
==========================================
  Files          37       62      +25     
  Lines        4976     8660    +3684     
  Branches        0     1059    +1059     
==========================================
+ Hits         4570     7656    +3086     
- Misses        406     1004     +598     

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

@pca006132
Copy link
Collaborator

Nice catch. We were only running these in the CI/nix, so I was not aware that these were using appends.

@pca006132 pca006132 merged commit 2e41fef into elalish:master Sep 10, 2024
22 checks passed
@elalish elalish mentioned this pull request Nov 5, 2024
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.

2 participants