Merge branch '2.4.5' of ssh://git.tasktools.org/tm/task into 2.4.5
This commit is contained in:
@@ -12,7 +12,14 @@ set (HAVE_CMAKE true)
|
|||||||
project (task)
|
project (task)
|
||||||
set (PROJECT_VERSION "2.4.5")
|
set (PROJECT_VERSION "2.4.5")
|
||||||
|
|
||||||
OPTION(USE_GNUTLS "Build gnutls support." ON)
|
OPTION (ENABLE_SYNC "Enable 'task sync' support" ON)
|
||||||
|
|
||||||
|
if (ENABLE_SYNC)
|
||||||
|
set (USE_GNUTLS ON CACHE BOOL "Build gnutls support." FORCE)
|
||||||
|
else (ENABLE_SYNC)
|
||||||
|
set (USE_GNUTLS OFF CACHE BOOL "Build gnutls support." FORCE)
|
||||||
|
message (WARNING "ENABLE_SYNC=OFF. Not building sync support.")
|
||||||
|
endif (ENABLE_SYNC)
|
||||||
|
|
||||||
message ("CMAKE_SYSTEM_NAME ${CMAKE_SYSTEM_NAME}")
|
message ("CMAKE_SYSTEM_NAME ${CMAKE_SYSTEM_NAME}")
|
||||||
|
|
||||||
@@ -116,6 +123,10 @@ if (USE_GNUTLS)
|
|||||||
endif (GNUTLS_FOUND)
|
endif (GNUTLS_FOUND)
|
||||||
endif (USE_GNUTLS)
|
endif (USE_GNUTLS)
|
||||||
|
|
||||||
|
if (ENABLE_SYNC AND NOT GNUTLS_FOUND)
|
||||||
|
message (FATAL_ERROR "Cannot find GnuTLS. Use -DENABLE_SYNC=OFF to build Taskwarrior without sync support. See INSTALL for more information.")
|
||||||
|
endif (ENABLE_SYNC AND NOT GNUTLS_FOUND)
|
||||||
|
|
||||||
check_function_exists (timegm HAVE_TIMEGM)
|
check_function_exists (timegm HAVE_TIMEGM)
|
||||||
check_function_exists (get_current_dir_name HAVE_GET_CURRENT_DIR_NAME)
|
check_function_exists (get_current_dir_name HAVE_GET_CURRENT_DIR_NAME)
|
||||||
check_function_exists (wordexp HAVE_WORDEXP)
|
check_function_exists (wordexp HAVE_WORDEXP)
|
||||||
|
|||||||
@@ -22,6 +22,9 @@ Babej).
|
|||||||
enabled.
|
enabled.
|
||||||
- Internal plumbing: Use variadic templates for format(), reducing code bloat
|
- Internal plumbing: Use variadic templates for format(), reducing code bloat
|
||||||
and enabling more flexible use of the function.
|
and enabling more flexible use of the function.
|
||||||
|
- Enable "task sync" support by default. "cmake -DENABLE_SYNC=OFF" allows
|
||||||
|
disabling it and building Taskwarrior without libgnutls available.
|
||||||
|
|
||||||
|
|
||||||
------ current release ---------------------------
|
------ current release ---------------------------
|
||||||
|
|
||||||
|
|||||||
19
INSTALL
19
INSTALL
@@ -91,6 +91,25 @@ get absolute installation directories:
|
|||||||
CMAKE_INSTALL_PREFIX/TASK_MAN5DIR /usr/local/share/man/man5
|
CMAKE_INSTALL_PREFIX/TASK_MAN5DIR /usr/local/share/man/man5
|
||||||
|
|
||||||
|
|
||||||
|
"sync" command
|
||||||
|
--------------
|
||||||
|
|
||||||
|
In order to enable the "sync" command, you will need to have GnuTLS available.
|
||||||
|
|
||||||
|
cmake may fail with the following error message:
|
||||||
|
"Cannot find GnuTLS. Use -DENABLE_SYNC=OFF to build Taskwarrior without
|
||||||
|
sync support. See INSTALL for more information."
|
||||||
|
|
||||||
|
This means that it cannot find your GnuTLS installation, and you will need to
|
||||||
|
install GnuTLS as well as its header files. For Debian based distributions,
|
||||||
|
installing "libgnutls-dev" is usually sufficient.
|
||||||
|
|
||||||
|
In order to build Taskwarrior without "sync" support, call cmake with the
|
||||||
|
"-DENABLE_SYNC=OFF" flag:
|
||||||
|
$ cmake . -DENABLE_SYNC=OFF
|
||||||
|
and proceed as described in "Basic Installation".
|
||||||
|
|
||||||
|
|
||||||
Localizations
|
Localizations
|
||||||
-------------
|
-------------
|
||||||
|
|
||||||
|
|||||||
@@ -198,6 +198,10 @@ class TAPTestResult(unittest.result.TestResult):
|
|||||||
super(TAPTestResult, self).addExpectedFailure(test, err)
|
super(TAPTestResult, self).addExpectedFailure(test, err)
|
||||||
self.report(test, "EXPECTED_FAILURE", err)
|
self.report(test, "EXPECTED_FAILURE", err)
|
||||||
|
|
||||||
|
def addUnexpectedSuccess(self, test):
|
||||||
|
super(TAPTestResult, self).addUnexpectedSuccess(test)
|
||||||
|
self.report(test, "UNEXPECTED_SUCCESS", str(test))
|
||||||
|
|
||||||
|
|
||||||
class TAPTestRunner(unittest.runner.TextTestRunner):
|
class TAPTestRunner(unittest.runner.TextTestRunner):
|
||||||
"""A test runner that displays results using the Test Anything Protocol
|
"""A test runner that displays results using the Test Anything Protocol
|
||||||
|
|||||||
Reference in New Issue
Block a user