summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Mollekopf <mollekopf@kolabsys.com>2013-02-21 09:18:52 (GMT)
committerChristian Mollekopf <mollekopf@kolabsys.com>2013-02-21 09:18:52 (GMT)
commit4f4fde60d75ac6c53f6f016a293196875b1f499b (patch)
tree4434c9695bbf0b9924140eb9d7307f99a10be9fe
parent32731c8ecc337ac6fa3c8952572e095e3948dab8 (diff)
downloadlibkolab-4f4fde60d75ac6c53f6f016a293196875b1f499b.tar.gz
enabled php tests for libkolab
-rw-r--r--tests/CMakeLists.txt7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt
index 1be65b2..023e1f9 100644
--- a/tests/CMakeLists.txt
+++ b/tests/CMakeLists.txt
@@ -23,3 +23,10 @@ addTest(kolabobjecttest)
addTest(timezonetest)
addTest(mimeobjecttest)
addTest(xmlobjecttest)
+
+if(PHP_BINDINGS)
+ find_path(PHP_KOLABFORMAT_PATH NAMES kolabformat.php PATHS /usr/local/lib/php/modules /usr/lib/php/modules)
+ message("php kolabformat include path for testing ${PHP_KOLABFORMAT_PATH}")
+ add_test(phptest php -d enable_dl=On -d include_path='.:/usr/share/pear:${CMAKE_BINARY_DIR}:${CMAKE_BINARY_DIR}/calendaring/php:${PHP_KOLABFORMAT_PATH}' -d extension=${CMAKE_BINARY_DIR}/lib/kolabcalendaring.so -d extension=${CMAKE_BINARY_DIR}/lib/kolabshared.so -d extension=${PHP_KOLABFORMAT_PATH}/kolabformat.so ${CMAKE_SOURCE_DIR}/calendaring/php/test.php --verbose)
+endif()
+