diff options
author | Caolán McNamara <caolanm@redhat.com> | 2011-04-15 15:54:38 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2011-04-15 15:54:38 +0100 |
commit | 93813f421f51f2925cc321aaeadf3407e96a5e3f (patch) | |
tree | 1c2ba4951ae017e004f4f031fc40851199e8ace8 | |
parent | if using gbuild component_getFactory needs to be SAL_DLLPUBLIC_EXPORT (diff) | |
download | core-93813f421f51f2925cc321aaeadf3407e96a5e3f.tar.gz core-93813f421f51f2925cc321aaeadf3407e96a5e3f.zip |
port unit test to gbuild after fixing filter
-rw-r--r-- | lotuswordpro/Module_lotuswordpro.mk | 5 | ||||
-rw-r--r-- | lotuswordpro/qa/cppunit/test_lotuswordpro.cxx | 9 |
2 files changed, 8 insertions, 6 deletions
diff --git a/lotuswordpro/Module_lotuswordpro.mk b/lotuswordpro/Module_lotuswordpro.mk index 4286ab852e57..9a0e632a864c 100644 --- a/lotuswordpro/Module_lotuswordpro.mk +++ b/lotuswordpro/Module_lotuswordpro.mk @@ -31,4 +31,9 @@ $(eval $(call gb_Module_add_targets,lotuswordpro,\ Library_lwpft \ )) +$(eval $(call gb_Module_add_check_targets,lotuswordpro,\ + CppunitTest_lotuswordpro_test_lotuswordpro \ + Package_qa_cppunit \ +)) + # vim: set noet ts=4 sw=4: diff --git a/lotuswordpro/qa/cppunit/test_lotuswordpro.cxx b/lotuswordpro/qa/cppunit/test_lotuswordpro.cxx index c721fa1bb1ce..681265e932af 100644 --- a/lotuswordpro/qa/cppunit/test_lotuswordpro.cxx +++ b/lotuswordpro/qa/cppunit/test_lotuswordpro.cxx @@ -26,10 +26,7 @@ * instead of those above. */ -#include <cppunit/TestAssert.h> -#include <cppunit/TestFixture.h> -#include <cppunit/plugin/TestPlugIn.h> -#include <cppunit/extensions/HelperMacros.h> +#include <sal/cppunit.h> #include <cppuhelper/bootstrap.hxx> #include <comphelper/processfactory.hxx> @@ -138,8 +135,8 @@ namespace void LotusWordProTest::test() { - recursiveScan(m_aPWDURL + rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("/data/pass/")), true); - recursiveScan(m_aPWDURL + rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("/data/fail/")), false); + recursiveScan(m_aPWDURL + rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("/qa/cppunit/data/pass")), true); + recursiveScan(m_aPWDURL + rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("/qa/cppunit/data/fail/")), false); printf("LotusWordPro: tested %d files\n", m_nLoadedDocs); } |