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

Use -Dinstall-tests=true in more places #202

Closed
wants to merge 1 commit into from

Conversation

keszybz
Copy link
Member

@keszybz keszybz commented Dec 16, 2019

This is for systemd/systemd#14338.
Now all TEST-* tests need builds with -Dinstall-tests=true.

This is for systemd/systemd#14338.
Now all TEST-* tests need builds with -Dinstall-tests=true.
@mrc0mmand
Copy link
Member

Thanks! One concern though: I dropped -Dinstall-tests=true in f3d6fcb in sanitizer jobs due to systemd/systemd#13886 (comment) - won't this cause issues once again?

@keszybz
Copy link
Member Author

keszybz commented Dec 17, 2019

Oh, so this is an exact revert of your commit. I think that your commit looks wrong:

However, in case of installed tests (-Dinstall-tests=true), these tests
are under /lib/systemd/tests, but the correct libsystemd DSO is not in
the binary's RPATH (as it's installed usually under /lib64), which
results in the system one being used. And as we don't run ninja -C build install, the system libsystemd DSO has a different version than the
built one, which leads to nasty errors.

We can't meaningfully run tests (or other binaries in fact) from temporary install prefix.

@mrc0mmand
Copy link
Member

Oh, so this is an exact revert of your commit. I think that your commit looks wrong:

However, in case of installed tests (-Dinstall-tests=true), these tests
are under /lib/systemd/tests, but the correct libsystemd DSO is not in
the binary's RPATH (as it's installed usually under /lib64), which
results in the system one being used. And as we don't run ninja -C build install, the system libsystemd DSO has a different version than the
built one, which leads to nasty errors.

We can't meaningfully run tests (or other binaries in fact) from temporary install prefix.

Ah, I see. Just to make things clear - I thought that -Dinstall-tests=true is relevant only for TEST-24-UNIT-TESTS which makes use of tests under /lib/systemd/tests, thus for meson test and other integration tests the option is somewhat pointless. Has this fact changed?

@keszybz
Copy link
Member Author

keszybz commented Dec 17, 2019

Yes. #14338 makes it required to have -Dinstall-tests=true for all the functional tests.

@mrc0mmand
Copy link
Member

Hm, in that case I'm not sure how to proceed here. We can't run ninja -C build install on the machine, as it would make the underlying system pretty unstable (and slow), because of the sanitizers. In the sanitizers run we run only TEST-01-BASIC under qemu & nspawn to make at least one full boot of systemd with sanitizers, but that's it, so we don't really need installed tests here. Would it be possible to switch this requirement off via some env variable?

/cc @evverx

@keszybz
Copy link
Member Author

keszybz commented Dec 17, 2019

I will try to partially revert the patch to make TEST-01-BASIC do manual install again.

keszybz added a commit to keszybz/systemd that referenced this pull request Dec 17, 2019
keszybz added a commit to keszybz/systemd that referenced this pull request Mar 22, 2020
keszybz added a commit to keszybz/systemd that referenced this pull request Mar 25, 2020
keszybz added a commit to keszybz/systemd that referenced this pull request Mar 27, 2020
keszybz added a commit to keszybz/systemd that referenced this pull request Mar 28, 2020
@mrc0mmand
Copy link
Member

Closing as this was addressed in systemd/systemd#14338 and we can run TEST-01-BASIC again without installing the just built systemd revision, thanks again for the rewrite effort!

(Also, I just noticed I already did the exact same change in 73d4c60, sigh)

@mrc0mmand mrc0mmand closed this Apr 9, 2020
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.

None yet

2 participants