From: Manuel Nickschas Date: Mon, 24 Sep 2018 18:36:21 +0000 (+0200) Subject: test: Add build system support and a main function for unit tests X-Git-Tag: test-travis-01~121 X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=commitdiff_plain;h=8f2ee00f4edef1693628d3af0bdee84d725eb754;hp=8f2ee00f4edef1693628d3af0bdee84d725eb754;ds=inline test: Add build system support and a main function for unit tests Add a new CMake option BUILD_TESTING (defaults to OFF) that, if enabled, will build unit tests and related requirements. Add a new library Quassel::Test::Main that provides a main function for test cases. Add a new CMake macro quassel_add_test for making the adding of test cases convenient by hiding most of the boilerplate. Test cases should #include "testglobal.h", so they automatically have access to GTest/GMock macros as well as the imported main function. ---