summaryrefslogtreecommitdiff
path: root/tests/Makefile.am
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2020-05-17 15:29:06 +0200
committerSébastien Helleu <flashcode@flashtux.org>2020-05-17 15:29:06 +0200
commit62ccee950528e4388c7fcf5418cbbcdd2d264f11 (patch)
tree43f801592b6583362699cad470d2b17fffc1b67f /tests/Makefile.am
parenta489fa6eb4ac2f62537a4cdbdf42b9fc3381071e (diff)
downloadweechat-62ccee950528e4388c7fcf5418cbbcdd2d264f11.zip
tests: run tests on plugins only if the plugins are enabled and compiled
Diffstat (limited to 'tests/Makefile.am')
-rw-r--r--tests/Makefile.am28
1 files changed, 18 insertions, 10 deletions
diff --git a/tests/Makefile.am b/tests/Makefile.am
index 8bed45056..2f4b214f7 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -21,8 +21,7 @@ AM_CPPFLAGS = -DLOCALEDIR=\"$(datadir)/locale\" $(CPPUTEST_CFLAGS) -I$(abs_top_s
noinst_LIBRARIES = lib_weechat_unit_tests_core.a
-lib_weechat_unit_tests_core_a_SOURCES = unit/test-plugins.cpp \
- unit/core/test-core-arraylist.cpp \
+lib_weechat_unit_tests_core_a_SOURCES = unit/core/test-core-arraylist.cpp \
unit/core/test-core-calc.cpp \
unit/core/test-core-crypto.cpp \
unit/core/test-core-eval.cpp \
@@ -65,14 +64,23 @@ tests_SOURCES = tests.cpp \
lib_LTLIBRARIES = lib_weechat_unit_tests_plugins.la
-lib_weechat_unit_tests_plugins_la_SOURCES = unit/plugins/irc/test-irc-color.cpp \
- unit/plugins/irc/test-irc-config.cpp \
- unit/plugins/irc/test-irc-ignore.cpp \
- unit/plugins/irc/test-irc-message.cpp \
- unit/plugins/irc/test-irc-mode.cpp \
- unit/plugins/irc/test-irc-nick.cpp \
- unit/plugins/irc/test-irc-protocol.cpp \
- unit/plugins/relay/test-relay-auth.cpp
+if PLUGIN_IRC
+tests_irc = unit/plugins/irc/test-irc-color.cpp \
+ unit/plugins/irc/test-irc-config.cpp \
+ unit/plugins/irc/test-irc-ignore.cpp \
+ unit/plugins/irc/test-irc-message.cpp \
+ unit/plugins/irc/test-irc-mode.cpp \
+ unit/plugins/irc/test-irc-nick.cpp \
+ unit/plugins/irc/test-irc-protocol.cpp
+endif
+
+if PLUGIN_RELAY
+tests_relay = unit/plugins/relay/test-relay-auth.cpp
+endif
+
+lib_weechat_unit_tests_plugins_la_SOURCES = unit/plugins/test-plugins.cpp \
+ $(tests_irc) \
+ $(tests_relay)
lib_weechat_unit_tests_plugins_la_LDFLAGS = -module -no-undefined