Closed ellert closed 3 years ago
Hello Mattias,
I'm not sure what was the intention of Georgios, whether he removed CTest
by mistake or he planned to stop using it altogether.
Other projects under DMC moved away from CTest
.
How do you run the tests? The CMakeList.txt files uses add_test(). This adds a test to the set of tests ctest runs, but if the CTest module is not included add_test() is a no-op. The spec file runs ctest in the %check section. Without including the CTest module, this invocation does not run any tests but simply says "no tests found". Do you run the tests some other way?
I'm not sure we still have a %check
section in the Davix specfile.
We run the tests in the gitlab-CI pipeline by executing davix-unit-tests
. [1]
This executable is provided by the davix-tests
package.
OK, so instead of calling ctest I can use the following %check section:
%check
%{_vpath_builddir}/test/unit/davix-unit-tests
That works without the proposed change in this PR.
I believe this is the best way to go forward. I will mark this ticket as closed, then.
Thanks again for the Davix support!
So that calling ctest actually runs the test.