diff options
author | Dimitri John Ledkov <xnox@ubuntu.com> | 2019-12-06 15:42:40 +0000 |
---|---|---|
committer | Martin Michlmayr <tbm@cyrius.com> | 2019-12-07 10:34:57 +0200 |
commit | b935b0ccf8503de8c087d748ebf298458128631f (patch) | |
tree | d4dde5fa42877f1598bcdcd21001c8de899fb1c4 /test/CMakeLists.txt | |
parent | 1fbb15c7d9f87ce1364ace669d44f747ded9333f (diff) | |
download | fork-ledger-b935b0ccf8503de8c087d748ebf298458128631f.tar.gz fork-ledger-b935b0ccf8503de8c087d748ebf298458128631f.tar.bz2 fork-ledger-b935b0ccf8503de8c087d748ebf298458128631f.zip |
test: split value_py.test into py2/py3 versions.
Diffstat (limited to 'test/CMakeLists.txt')
-rw-r--r-- | test/CMakeLists.txt | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index 2baa99ae..3e56d682 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -20,6 +20,14 @@ macro(add_ledger_harness_tests _class) foreach(TestFile ${${_class}_TESTS}) get_filename_component(TestFile_Name ${TestFile} NAME_WE) string(FIND ${TestFile_Name} "_py" TestFile_IsPythonTest) + if ((TestFile_IsPythonTest GREATER -1)) + get_filename_component(TestFile_FullName ${TestFile} NAME) + string(FIND ${TestFile_FullName} "_py.test" TestFile_IsAnyPythonTest) + string(FIND ${TestFile_FullName} "_py${Python_VERSION_MAJOR}.test" TestFile_IsThisPythonTest) + if ((TestFile_IsAnyPythonTest EQUAL -1) AND (TestFile_IsThisPythonTest EQUAL -1)) + continue() + endif() + endif() if ((TestFile_IsPythonTest EQUAL -1) OR HAVE_BOOST_PYTHON) add_test(NAME ${_class}Test_${TestFile_Name} COMMAND ${Python_EXECUTABLE} ${PROJECT_SOURCE_DIR}/test/RegressTests.py |