Merge lp:~pitti/autopilot-gtk/testsuite into lp:autopilot-gtk
Proposed by
Martin Pitt
Status: | Merged |
---|---|
Approved by: | Francis Ginther |
Approved revision: | 46 |
Merged at revision: | 44 |
Proposed branch: | lp:~pitti/autopilot-gtk/testsuite |
Merge into: | lp:autopilot-gtk |
Diff against target: |
55 lines (+14/-0) 4 files modified
CMakeLists.txt (+3/-0) debian/control (+4/-0) debian/rules (+5/-0) lib/CMakeLists.txt (+2/-0) |
To merge this branch: | bzr merge lp:~pitti/autopilot-gtk/testsuite |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
PS Jenkins bot | continuous-integration | Approve | |
Francis Ginther | Approve | ||
Martin Pitt (community) | Needs Resubmitting | ||
Thomi Richards (community) | Approve | ||
Review via email: mp+170607@code.launchpad.net |
Commit message
Add make test/ctest integration, and run tests during package build
Description of the change
This branch makes it easier to run the tests.
There is no immediately obvious tests/run, "make check" or other command, and
it takes a nontrivial amount of time to figure out how to set $GTK_PATH and
which of the various test discovery alternatives to run for this.
With this branch, the standard cmake "make test" or "ctest" commands will work,
including with separate build trees.
To post a comment you must log in.
I tested this both in-tree:
cmake . && make && ctest
and with a separate build tree:
rm -rf build; mkdir build; cd build; cmake .. && make -j4 && ctest
both starting from a pristine/clean source tree.