-
Notifications
You must be signed in to change notification settings - Fork 278
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
Revise python test and dependencies to sample applications #2080
Conversation
Codecov Report
@@ Coverage Diff @@
## main #2080 +/- ##
==========================================
- Coverage 62.08% 61.87% -0.22%
==========================================
Files 96 96
Lines 19153 19059 -94
Branches 9798 9782 -16
==========================================
- Hits 11891 11792 -99
- Misses 4967 4984 +17
+ Partials 2295 2283 -12
Continue to review full report at Codecov.
|
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.
LGTM 👍
de9d133
to
40a59ab
Compare
That's awesome work, @piponazo. README.md and CONTRIBUTING.md still discuss
|
Thanks @clanmills for letting me know. I'll go through the different documents and try to fix all these occurrences |
Good stuff, @piponazo. @kmilos and I agreed that all documentation should always discuss build and testing using cmake and conan. We should avoid discussing "legacy" tools such as make. So the preferred way to build is: $ cd <exiv2dir>
$ mkdir build
$ cd build
$ cmake ..
$ cmake --build .
$ ctest
$ sudo make install I think Milos may prefer to build in a totally different location. I can't remember exactly how to run ctest in a totally different directory. The preferred build/test command are something like: $ cd <exiv2dir>
$ mkdir /tmp/exiv2-build
$ cmake . --B /tmp/exiv2-build [-DCMAKE_BUILD_TYPE=RELEASE]
$ cmake --build /tmp/exiv2-build [--target target] [--config Release]
$ ctest --build-run-dir /tmp/exiv2-build # This is wrong. I don't know how to do this!
$ sudo cmake --build /tmp/exiv2-build --target install @kmilos. Can you comment please? |
I don't think I was doing anything different to what CI scripts do, and there we run something like Btw, you no longer need |
@clanmills You can find some examples of how to build from other directories in the CI pipelines under In my opinion, we should prefer to document things as in your first code snippet. It makes the documentation less verbose and I think it is the approach most of users will use when working locally. The second approach is specially useful for CI pipelines. One can sacrifice there some more characters to be more explicit about what are the source_code & build directories, without needing to move across directories. |
@kmilos. Thanks for your input. That's great. And thank you to @piponazo for his efforts on this issue concerning python. I think we should keep the names "bashTests" and "bugfixTests" because change usually leads to confusion! I'll deal with CONTRIBUTING.md and README.md at the weekend to service: #2082. When I open the PR, I'll invite you both to review. |
As discussed today in our chat, there was some confusion about how to run the tests. It turns out we still had in the
test
folder some old Makefiles and bash scripts that were used to run the system-tests over the exiv2 application and some of the sample applications.In this PR I did 2 things:
tests/bugfixes
totests\bash_tests
. Even though the files moved were indeed added while fixing some bugs, they depend on sample applications. We can discuss if thatbash_tests
folders is the right place for these files or whether we should create another category (something liketests\sample_tests
). But the main idea is to keep thebugfixes
folder just to test the exiv2 library and application.