-
Notifications
You must be signed in to change notification settings - Fork 282
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
meson: add unit tests #2495
meson: add unit tests #2495
Conversation
👇 Click on the image for a new way to code review
Legend |
Codecov Report
@@ Coverage Diff @@
## main #2495 +/- ##
=======================================
Coverage 64.67% 64.67%
=======================================
Files 104 104
Lines 22256 22256
Branches 10863 10863
=======================================
Hits 14394 14394
Misses 5619 5619
Partials 2243 2243 Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
19263fb
to
663977e
Compare
That is...very interesting |
unitTests/meson.build
Outdated
unit_tests = executable( | ||
test_sources, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing executable name. This executable is therefore unitTests/mainTestRunner.cpp.exe
and it doesn't include the main() implementation from there (instead it uses gtest_main?).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
knew there was some reason files() didn't work. Thanks.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yup, in Meson git master the python traceback is fixed with real type checking:
unitTests/meson.build:48:0: ERROR: executable argument 1 was of type "File" but should have been "str"
714b76f
to
22b59ed
Compare
fascinating. I got it to compile with MinGW but not MSVC. |
620c705
to
6d401c5
Compare
reading http://google.github.io/googletest/primer.html#writing-the-main-function and seeing unitTests/mainTestRunner.cpp makes me think it's completely unnecessary. Different PR of course. @piponazo what do you think? |
only on linux even though all tests passed. hmmmm. |
uhhh fixed by using gtest-main? That can't be right... |
629f5b4
to
bd9b81a
Compare
issue in Linux is:
why would tiffGroupTable_ be double freed? ping @kevinbackhouse |
Fixed by replacing unordered_map with map. But I still get
even though running the tests manually succeeds, No idea what's going on here. @eli-schwartz any idea what's happening? |
Necessary for the Unit Tests. Signed-off-by: Rosen Penev <[email protected]>
9e067ab
to
fcd744d
Compare
is a hint to what's wrong. |
df9b290
to
79665f6
Compare
Signed-off-by: Rosen Penev <[email protected]>
b06530b
to
b490fc7
Compare
Alright this is as good as it will ever get honestly. |
ping @piponazo |
Apologies for the slow reply, I was busy recently. That's very weird: Line 1411 in 976dcd8
Maybe we should make it |
Issue was mismatched visibility settings. Ignore. |
Signed-off-by: Rosen Penev [email protected]