[Libreoffice-commits] core.git: include/test test/source
Vasily Melenchuk
vasily.melenchuk at cib.de
Fri Jun 17 11:20:37 UTC 2016
include/test/bootstrapfixture.hxx | 3 ++-
test/source/bootstrapfixture.cxx | 11 ++++++++++-
2 files changed, 12 insertions(+), 2 deletions(-)
New commits:
commit c3453ea24608123195588ea910b8db7b13922054
Author: Vasily Melenchuk <vasily.melenchuk at cib.de>
Date: Fri Jun 17 10:36:38 2016 +0300
Add MS binary format validator support in test fixture
bffvalidator (Microsoft Office Binary File Format Validator) can now be
used for verification of MS binary export tests
Change-Id: Ibc65e64726a454cdd33946006b36427b9cc6fbd2
Reviewed-on: https://gerrit.libreoffice.org/26405
Reviewed-by: Thorsten Behrens <Thorsten.Behrens at CIB.de>
Tested-by: Thorsten Behrens <Thorsten.Behrens at CIB.de>
diff --git a/include/test/bootstrapfixture.hxx b/include/test/bootstrapfixture.hxx
index 448605a..5e24753 100644
--- a/include/test/bootstrapfixture.hxx
+++ b/include/test/bootstrapfixture.hxx
@@ -30,7 +30,8 @@ namespace test {
enum ValidationFormat
{
OOXML,
- ODF
+ ODF,
+ MSBINARY
};
// Class to do lots of heavy-lifting UNO & environment
diff --git a/test/source/bootstrapfixture.cxx b/test/source/bootstrapfixture.cxx
index f274dbc..c28615d 100644
--- a/test/source/bootstrapfixture.cxx
+++ b/test/source/bootstrapfixture.cxx
@@ -173,10 +173,19 @@ void test::BootstrapFixture::validate(const OUString& rPath, test::ValidationFor
{
var = "OFFICEOTRON";
}
- else
+ else if ( eFormat == test::ODF )
{
var = "ODFVALIDATOR";
}
+ else if ( eFormat == test::MSBINARY )
+ {
+#if HAVE_BFFVALIDATOR
+ var = "BFFVALIDATOR";
+#else
+ // Binary Format Validator is disabled
+ return;
+#endif
+ }
OUString aValidator;
oslProcessError e = osl_getEnvironment(var.pData, &aValidator.pData);
CPPUNIT_ASSERT_EQUAL_MESSAGE(
More information about the Libreoffice-commits
mailing list