[sword-devel] cmake python
cricketc at gmail.com
cricketc at gmail.com
Wed Dec 19 18:59:34 MST 2012
On Tue, Dec 18, 2012 at 9:27 PM, <cricketc at gmail.com> wrote:
> On Tue, Dec 18, 2012 at 10:47 AM, Greg Hellings <greg.hellings at gmail.com> wrote:
>> If you configure with SWORD_BUILD_TESTS="Yes" CMake will configure the tests.
>>
>> You can then issue 'make tests' from the top build directory and it
>> will build _and_ attempt to run all the tests. Now it fails for me on
>> the first one because of a missing directory "../../osistest". I have
>> a feeling this is because I force the build to be out-of-stream? I
>> don't really know, as I have never run our test suite. But if you want
>> to compile and run the tests manually, all you need to do is specify
>> 'make tests' and they'll be built in the tests/ subdirectory of your
>> build dir.
Here's a patch that helps some with osistest. I still get the
following error when I run osistest, though:
UTF8Transliterator: ICU: no resource index to load
UTF8Transliterator: ICU: status U_MISSING_RESOURCE_ERROR
$ svn diff
Index: tests/CMakeLists.txt
===================================================================
--- tests/CMakeLists.txt (revision 2751)
+++ tests/CMakeLists.txt (working copy)
@@ -30,6 +30,7 @@
localetest
mgrtest
modtest
+ osistest
parsekey
rawldidxtest
romantest
Index: tests/testsuite/CMakeLists.txt
===================================================================
--- tests/testsuite/CMakeLists.txt (revision 2751)
+++ tests/testsuite/CMakeLists.txt (working copy)
@@ -6,6 +6,7 @@
tests_configure
COMMAND cp ${CMAKE_CURRENT_SOURCE_DIR}/*.sh ${CMAKE_CURRENT_BINARY_DIR}
COMMAND cp ${CMAKE_CURRENT_SOURCE_DIR}/*.good
${CMAKE_CURRENT_BINARY_DIR}
+ COMMAND cp ${CMAKE_CURRENT_SOURCE_DIR}/osisReference.xml
${CMAKE_CURRENT_BINARY_DIR}
COMMAND echo
\"[Install]\\nLocalePath=${CMAKE_CURRENT_SOURCE_DIR}/../../\" >
${CMAKE_CURRENT_BINARY_DIR}/sword.conf
DEPENDS ${test_PROGRAMS}
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
-Ben
More information about the sword-devel
mailing list