summaryrefslogtreecommitdiff
path: root/tests/CMakeLists.txt
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2017-10-07 16:51:25 +0200
committerSébastien Helleu <flashcode@flashtux.org>2017-10-07 16:51:25 +0200
commite8af8536246bbda3289e70637f40dcba3c87977f (patch)
treee111538e2b5d8effd0db0bc7ca618743a73bbe02 /tests/CMakeLists.txt
parentf6fe6be7a4998ded6b6b4a7dbb9d1d12f3e8f65a (diff)
downloadweechat-e8af8536246bbda3289e70637f40dcba3c87977f.zip
tests: add scripting API tests (issue #104)
Automatic tests of scripting API are made with Python scripts: - unparse.py: convert Python code to other languages - testapigen.py: generate scripts in all languages to test the API - testapi.py scripting API tests
Diffstat (limited to 'tests/CMakeLists.txt')
-rw-r--r--tests/CMakeLists.txt4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt
index bc1449048..84fbfeb13 100644
--- a/tests/CMakeLists.txt
+++ b/tests/CMakeLists.txt
@@ -39,6 +39,7 @@ set(LIB_WEECHAT_UNIT_TESTS_SRC
unit/core/test-url.cpp
unit/core/test-utf8.cpp
unit/core/test-util.cpp
+ scripts/test-scripts.cpp
)
add_library(weechat_unit_tests STATIC ${LIB_WEECHAT_UNIT_TESTS_SRC})
@@ -77,4 +78,5 @@ add_test(NAME unit
COMMAND tests -v)
set_property(TEST unit PROPERTY
ENVIRONMENT "WEECHAT_TESTS_ARGS=-p;"
- "WEECHAT_EXTRA_LIBDIR=${PROJECT_BINARY_DIR}/src")
+ "WEECHAT_EXTRA_LIBDIR=${PROJECT_BINARY_DIR}/src;"
+ "WEECHAT_TESTS_SCRIPTS_DIR=${CMAKE_CURRENT_SOURCE_DIR}/scripts/python")