-
Notifications
You must be signed in to change notification settings - Fork 84
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: install test executables if requested
This introduces a new meson option 'install-tests' (disabled by default) that allows installing built test executables along with regular stuff, which can be used to ensure the installed dbus-broker works as expected. The tests are installed into <prefix>/share/dbus-broker/tests directory, and split into 'unit' and 'dbus' subdirectories, similarly as they're in the source tree: $ meson setup --prefix=/usr -Dselinux=true -Dreference-test=true -Dinstall-tests=true build ... $ DESTDIR=$PWD/install-test ninja -C build install ... $ tree install-test install-test └── usr ├── bin │ ├── dbus-broker │ └── dbus-broker-launch ├── lib │ └── systemd │ ├── catalog │ │ ├── dbus-broker.catalog │ │ └── dbus-broker-launch.catalog │ ├── system │ │ └── dbus-broker.service │ └── user │ └── dbus-broker.service └── share └── dbus-broker └── tests ├── dbus │ ├── bench-connect │ ├── bench-message │ ├── test-broker │ ├── test-driver │ ├── test-fdstream │ ├── test-lifetime │ └── test-matches └── unit ├── test-address ├── test-apparmor ... ├── test-stitching ├── test-systemd └── test-user 13 directories, 36 files $ install-test/usr/share/dbus-broker/tests/dbus/test-broker Using dbus-broker binary /usr/bin/dbus-broker Using dbus-broker binary /usr/bin/dbus-broker Using dbus-broker binary /usr/bin/dbus-broker Using dbus-broker binary /usr/bin/dbus-broker
- Loading branch information
Showing
4 changed files
with
137 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters