From b9d762b3c838c7e64f33465df443d7235bd82c10 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Helleu?= Date: Sun, 23 Jul 2017 15:33:47 +0200 Subject: [PATCH] core: add instructions to run tests in README --- README.adoc | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/README.adoc b/README.adoc index fb7d6d16e..42ed5f4bb 100644 --- a/README.adoc +++ b/README.adoc @@ -90,6 +90,25 @@ $ make install For more information or installation with autotools, please look at https://weechat.org/files/doc/devel/weechat_user.en.html#compile_with_autotools[user's guide]. +=== Run tests + +Following packages are *required* to compile tests: + +* libcpputest-dev +* C++ compiler + +Tests must be enabled when compiling WeeChat: + +---- +$ cmake .. -DENABLE_TESTS=ON +---- + +They can be launched after compilation from the build directory: + +---- +$ ctest -V +---- + == Copyright Copyright (C) 2003-2017 Sébastien Helleu