mirror of
https://github.com/weechat/weechat.git
synced 2026-06-12 14:14:48 +02:00
tests: fix build of tests when the build directory is outside source tree (closes #178)
(cherry picked from commit f39b37351c)
This commit is contained in:
@@ -19,6 +19,8 @@ http://weechat.org/files/releasenotes/ReleaseNotes-devel.html[release notes]
|
||||
|
||||
* core: fix modifier "weechat_print": discard only one line when several lines
|
||||
are displayed in same message (closes #171)
|
||||
* tests: fix build of tests when the build directory is outside source tree
|
||||
(closes #178)
|
||||
* tests: fix memory leak in tests launcher
|
||||
* aspell: fix crash with command "/aspell addword" if no word is given
|
||||
(closes #164, closes #165)
|
||||
|
||||
@@ -26,8 +26,7 @@ set(LIB_WEECHAT_NCURSES_FAKE_SRC ncurses-fake.c)
|
||||
add_library(weechat_ncurses_fake STATIC ${LIB_WEECHAT_NCURSES_FAKE_SRC})
|
||||
|
||||
remove_definitions(-DHAVE_CONFIG_H)
|
||||
include_directories(${CPPUTEST_INCLUDE_DIRS})
|
||||
include_directories(${PROJECT_BINARY_DIR})
|
||||
include_directories(${CPPUTEST_INCLUDE_DIRS} ${PROJECT_BINARY_DIR} ${PROJECT_SOURCE_DIR})
|
||||
|
||||
# unit tests
|
||||
set(LIB_WEECHAT_UNIT_TESTS_SRC
|
||||
|
||||
+7
-7
@@ -32,13 +32,13 @@ extern "C"
|
||||
#ifndef HAVE_CONFIG_H
|
||||
#define HAVE_CONFIG_H
|
||||
#endif
|
||||
#include "../src/core/weechat.h"
|
||||
#include "../src/core/wee-hook.h"
|
||||
#include "../src/core/wee-input.h"
|
||||
#include "../src/core/wee-string.h"
|
||||
#include "../src/plugins/plugin.h"
|
||||
#include "../src/gui/gui-main.h"
|
||||
#include "../src/gui/gui-buffer.h"
|
||||
#include "src/core/weechat.h"
|
||||
#include "src/core/wee-hook.h"
|
||||
#include "src/core/wee-input.h"
|
||||
#include "src/core/wee-string.h"
|
||||
#include "src/plugins/plugin.h"
|
||||
#include "src/gui/gui-main.h"
|
||||
#include "src/gui/gui-buffer.h"
|
||||
|
||||
extern void gui_main_init ();
|
||||
extern void gui_main_loop ();
|
||||
|
||||
@@ -24,11 +24,11 @@
|
||||
extern "C"
|
||||
{
|
||||
#include <stdio.h>
|
||||
#include "../src/core/wee-eval.h"
|
||||
#include "../src/core/wee-config.h"
|
||||
#include "../src/core/wee-hashtable.h"
|
||||
#include "../src/core/wee-version.h"
|
||||
#include "../src/plugins/plugin.h"
|
||||
#include "src/core/wee-eval.h"
|
||||
#include "src/core/wee-config.h"
|
||||
#include "src/core/wee-hashtable.h"
|
||||
#include "src/core/wee-version.h"
|
||||
#include "src/plugins/plugin.h"
|
||||
}
|
||||
|
||||
#define WEE_CHECK_EVAL(__result, __expr) \
|
||||
|
||||
@@ -24,8 +24,8 @@
|
||||
extern "C"
|
||||
{
|
||||
#include <string.h>
|
||||
#include "../src/core/wee-hashtable.h"
|
||||
#include "../src/plugins/plugin.h"
|
||||
#include "src/core/wee-hashtable.h"
|
||||
#include "src/plugins/plugin.h"
|
||||
}
|
||||
|
||||
TEST_GROUP(Hashtable)
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
|
||||
extern "C"
|
||||
{
|
||||
#include "../src/core/wee-hdata.h"
|
||||
#include "src/core/wee-hdata.h"
|
||||
}
|
||||
|
||||
TEST_GROUP(Hdata)
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
|
||||
extern "C"
|
||||
{
|
||||
#include "../src/core/wee-infolist.h"
|
||||
#include "src/core/wee-infolist.h"
|
||||
}
|
||||
|
||||
TEST_GROUP(Infolist)
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
|
||||
extern "C"
|
||||
{
|
||||
#include "../src/core/wee-list.h"
|
||||
#include "src/core/wee-list.h"
|
||||
}
|
||||
|
||||
TEST_GROUP(List)
|
||||
|
||||
@@ -26,8 +26,8 @@ extern "C"
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include <regex.h>
|
||||
#include "../tests/tests.h"
|
||||
#include "../src/core/wee-string.h"
|
||||
#include "tests/tests.h"
|
||||
#include "src/core/wee-string.h"
|
||||
}
|
||||
|
||||
#define ONE_KB 1000ULL
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
|
||||
extern "C"
|
||||
{
|
||||
#include "../src/core/wee-url.h"
|
||||
#include "src/core/wee-url.h"
|
||||
}
|
||||
|
||||
TEST_GROUP(Url)
|
||||
|
||||
@@ -26,8 +26,8 @@ extern "C"
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include <wctype.h>
|
||||
#include "../tests/tests.h"
|
||||
#include "../src/core/wee-utf8.h"
|
||||
#include "tests/tests.h"
|
||||
#include "src/core/wee-utf8.h"
|
||||
}
|
||||
|
||||
const char *noel_valid = "no\xc3\xabl"; /* noël */
|
||||
|
||||
@@ -27,7 +27,7 @@ extern "C"
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include <sys/time.h>
|
||||
#include "../src/core/wee-util.h"
|
||||
#include "src/core/wee-util.h"
|
||||
}
|
||||
|
||||
TEST_GROUP(Util)
|
||||
|
||||
Reference in New Issue
Block a user