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

CTest tests removed #78

Closed
amadio opened this issue Oct 10, 2021 · 6 comments
Closed

CTest tests removed #78

amadio opened this issue Oct 10, 2021 · 6 comments

Comments

@amadio
Copy link
Contributor

amadio commented Oct 10, 2021

Maybe they were removed by accident in commit 011b247?
Notice that include(CTest) line was removed from CMakeLists.txt in that commit.

@mpatrascoiu
Copy link
Contributor

Hello,

It's unclear whether they were removed by accident or not.
In a separate PullRequest (#79) we decided not to bring them back.

The direction in the other Data Management Clients (DMC) projects was to move away from CTest.
I will close the ticket.

Cheers,
Mihai

@amadio
Copy link
Contributor Author

amadio commented Oct 18, 2021

Could you please clarify this with @gbitzes, then? It seems that many tests that were run before are no longer running. For me, the slow unit tests now cause a segmentation fault (see below). Tests in test/bench also fail if I try to run them. Shouldn't these be run in CI, even if not anymore via CTest? Since there have been major changes after the last release (0.7.6), I want to wait until the reason for these test failures is understood before updating davix in Gentoo Linux (where I maintain its package).

$ test/slow-unit/davix-slow-unit-tests 
Running main() from gtest_main.cc
[==========] Running 10 tests from 3 test cases.
[----------] Global test environment set-up.
[----------] 2 tests from DrunkServer
[ RUN      ] DrunkServer.NoClients
[       OK ] DrunkServer.NoClients (1000 ms)
[ RUN      ] DrunkServer.ClientInteraction
[       OK ] DrunkServer.ClientInteraction (1 ms)
[----------] 2 tests from DrunkServer (1001 ms total)

[----------] 4 tests from Standalone_Neon_Request
[ RUN      ] Standalone_Neon_Request.BasicSanity
CONSUMED: GET /chickens HTTP/1.1

CONSUMED: User-Agent: libdavix/0.8.0.1.5cf6c6d6.dirty neon/0.0.29

CONSUMED: Keep-Alive: 

CONSUMED: Connection: Keep-Alive

CONSUMED: TE: trailers

CONSUMED: Host: localhost:22222

CONSUMED: I like: Turtles

CONSUMED: 

WRITING RESPONSE
Response written successfully
[       OK ] Standalone_Neon_Request.BasicSanity (1001 ms)
[ RUN      ] Standalone_Neon_Request.Redirect
CONSUMED: GET /test HTTP/1.1

CONSUMED: User-Agent: libdavix/0.8.0.1.5cf6c6d6.dirty neon/0.0.29

CONSUMED: Keep-Alive: 

CONSUMED: Connection: Keep-Alive

CONSUMED: TE: trailers

CONSUMED: Host: localhost:22222

CONSUMED: 

WRITING RESPONSE
Response written successfully
[       OK ] Standalone_Neon_Request.Redirect (1 ms)
[ RUN      ] Standalone_Neon_Request.NetworkError
[       OK ] Standalone_Neon_Request.NetworkError (0 ms)
[ RUN      ] Standalone_Neon_Request.StopNoStart
[       OK ] Standalone_Neon_Request.StopNoStart (0 ms)
[----------] 4 tests from Standalone_Neon_Request (1002 ms total)

[----------] 4 tests from Standalone_Curl_Request
[ RUN      ] Standalone_Curl_Request.BasicSanity
Segmentation fault (core dumped)

@mpatrascoiu
Copy link
Contributor

Hello,

OK, let's revive this ticket and we can look into it.
Due to other engagements, unfortunately this will not be very soon.

Cheers,
Mihai

@mpatrascoiu mpatrascoiu reopened this Oct 29, 2021
@amadio
Copy link
Contributor Author

amadio commented Dec 16, 2021

The question about FindDavix.cmake reminded me of this issue. Has there been any progress on this?

@mpatrascoiu
Copy link
Contributor

Hello,

Unfortunately, no progress here due to other commitments.

amadio added a commit to amadio/davix that referenced this issue Sep 19, 2022
This allows to run tests created with add_test() by just running
ctest in the build directory. This line seems was (inadvertently?)
removed by commit 011b247.

Fixes: cern-fts#78
@mpatrascoiu
Copy link
Contributor

In #99 , CTest was reintroduced. Ultimately, I think there's no harm to have it available, especially given our CMake files call add_test(..).

However, what we moved away from is running the tests in the rpmbuild during the %check section. All testing should be run in the gitlab-CI testing stage and not during the build stage.

Next step would be to solve the issues around davix-slow-unit-tests and then add it to the davix-tests package.

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

No branches or pull requests

2 participants