mirror of
https://github.com/tfussell/xlnt.git
synced 2024-03-22 13:11:17 +08:00
a little cleanup
This commit is contained in:
parent
2ae7286482
commit
e516a3aa11
4
.gitignore
vendored
4
.gitignore
vendored
@ -1,5 +1,5 @@
|
|||||||
Debug/
|
bin/
|
||||||
Release/
|
lib/
|
||||||
*.obj
|
*.obj
|
||||||
*.sdf
|
*.sdf
|
||||||
*.suo
|
*.suo
|
||||||
|
@ -18,26 +18,18 @@ project "xlnt.test"
|
|||||||
language "C++"
|
language "C++"
|
||||||
targetname "xlnt.test"
|
targetname "xlnt.test"
|
||||||
includedirs {
|
includedirs {
|
||||||
"$(opc_prefix)",
|
|
||||||
"$(opc_prefix)/config",
|
|
||||||
"$(opc_prefix)/third_party/libxml2-2.7.7/include",
|
|
||||||
"$(cxxtest_prefix)",
|
"$(cxxtest_prefix)",
|
||||||
"../include",
|
"../include",
|
||||||
"../third-party/pugixml/src"
|
"../third-party/pugixml/src",
|
||||||
|
"../third-party/zlib",
|
||||||
|
"../third-party/zlib/contrib/minizip"
|
||||||
}
|
}
|
||||||
defines { "WIN32" }
|
defines { "WIN32" }
|
||||||
files {
|
files {
|
||||||
"../source/tests/**.h",
|
"../source/tests/**.h",
|
||||||
"../source/tests/runner-autogen.cpp"
|
"../source/tests/runner-autogen.cpp"
|
||||||
}
|
}
|
||||||
links {
|
links { "xlnt" }
|
||||||
"xlnt",
|
|
||||||
"mce",
|
|
||||||
"opc",
|
|
||||||
"plib",
|
|
||||||
"xml",
|
|
||||||
"zlib"
|
|
||||||
}
|
|
||||||
prebuildcommands { "cxxtestgen --runner=ErrorPrinter -o ../../source/tests/runner-autogen.cpp ../../source/tests/*.h" }
|
prebuildcommands { "cxxtestgen --runner=ErrorPrinter -o ../../source/tests/runner-autogen.cpp ../../source/tests/*.h" }
|
||||||
flags {
|
flags {
|
||||||
"Unicode",
|
"Unicode",
|
||||||
@ -46,18 +38,13 @@ project "xlnt.test"
|
|||||||
"NoPCH"
|
"NoPCH"
|
||||||
}
|
}
|
||||||
configuration "Debug"
|
configuration "Debug"
|
||||||
targetdir "../bin/debug"
|
targetdir "../bin"
|
||||||
configuration "Release"
|
configuration "Release"
|
||||||
flags { "LinkTimeOptimization" }
|
flags { "LinkTimeOptimization" }
|
||||||
targetdir "../bin/release"
|
targetdir "../bin"
|
||||||
configuration "windows"
|
configuration "windows"
|
||||||
includedirs { "$(opc_prefix)/plib/config/msvc/plib/include" }
|
|
||||||
defines { "WIN32" }
|
defines { "WIN32" }
|
||||||
links { "Shlwapi" }
|
links { "Shlwapi" }
|
||||||
libdirs { "$(opc_prefix)/win32/x64/Debug" }
|
|
||||||
configuration "not windows"
|
|
||||||
includedirs { "$(opc_prefix)/build/plib/config/darwin-debug-gcc-i386/plib/include" }
|
|
||||||
libdirs { "$(opc_prefix)/build/darwin-debug-gcc-i386/static" }
|
|
||||||
|
|
||||||
project "xlnt"
|
project "xlnt"
|
||||||
kind "StaticLib"
|
kind "StaticLib"
|
||||||
@ -65,9 +52,6 @@ project "xlnt"
|
|||||||
warnings "Extra"
|
warnings "Extra"
|
||||||
targetdir "../lib/"
|
targetdir "../lib/"
|
||||||
includedirs {
|
includedirs {
|
||||||
"$(opc_prefix)",
|
|
||||||
"$(opc_prefix)/config",
|
|
||||||
"$(opc_prefix)/third_party/libxml2-2.7.7/include",
|
|
||||||
"../include/xlnt",
|
"../include/xlnt",
|
||||||
"../third-party/pugixml/src",
|
"../third-party/pugixml/src",
|
||||||
"../source/",
|
"../source/",
|
||||||
@ -97,9 +81,6 @@ project "xlnt"
|
|||||||
configuration "Debug"
|
configuration "Debug"
|
||||||
flags { "FatalWarnings" }
|
flags { "FatalWarnings" }
|
||||||
configuration "windows"
|
configuration "windows"
|
||||||
includedirs { "$(opc_prefix)/plib/config/msvc/plib/include" }
|
|
||||||
defines { "WIN32" }
|
defines { "WIN32" }
|
||||||
configuration "not windows"
|
configuration "../third-party/zlib/*.c"
|
||||||
includedirs { "$(opc_prefix)/build/plib/config/darwin-debug-gcc-i386/plib/include" }
|
warnings "Off"
|
||||||
configuration "**.c"
|
|
||||||
flags { "NoWarnings" }
|
|
||||||
|
@ -10,12 +10,13 @@ class ZipFileTestSuite : public CxxTest::TestSuite
|
|||||||
public:
|
public:
|
||||||
ZipFileTestSuite()
|
ZipFileTestSuite()
|
||||||
{
|
{
|
||||||
|
/*
|
||||||
template_zip = "../../source/tests/test_data/packaging/test.zip";
|
template_zip = "../../source/tests/test_data/packaging/test.zip";
|
||||||
test_zip = "../../source/tests/test_data/packaging/a.zip";
|
test_zip = "../../source/tests/test_data/packaging/a.zip";
|
||||||
existing_xlsx = "../../source/tests/test_data/packaging/existing.xlsx";
|
existing_xlsx = "../../source/tests/test_data/packaging/existing.xlsx";
|
||||||
new_xlsx = "../../source/tests/test_data/packaging/new.xlsx";
|
new_xlsx = "../../source/tests/test_data/packaging/new.xlsx";
|
||||||
|
|
||||||
xlnt::file::copy(template_zip, test_zip, true);
|
xlnt::file::copy(template_zip, test_zip, true);*/
|
||||||
}
|
}
|
||||||
|
|
||||||
void test_existing_package()
|
void test_existing_package()
|
||||||
|
@ -1524,31 +1524,31 @@ CxxTest::StaticSuiteDescription suiteDescription_ZipFileTestSuite( "../../source
|
|||||||
|
|
||||||
static class TestDescription_suite_ZipFileTestSuite_test_existing_package : public CxxTest::RealTestDescription {
|
static class TestDescription_suite_ZipFileTestSuite_test_existing_package : public CxxTest::RealTestDescription {
|
||||||
public:
|
public:
|
||||||
TestDescription_suite_ZipFileTestSuite_test_existing_package() : CxxTest::RealTestDescription( Tests_ZipFileTestSuite, suiteDescription_ZipFileTestSuite, 21, "test_existing_package" ) {}
|
TestDescription_suite_ZipFileTestSuite_test_existing_package() : CxxTest::RealTestDescription( Tests_ZipFileTestSuite, suiteDescription_ZipFileTestSuite, 22, "test_existing_package" ) {}
|
||||||
void runTest() { suite_ZipFileTestSuite.test_existing_package(); }
|
void runTest() { suite_ZipFileTestSuite.test_existing_package(); }
|
||||||
} testDescription_suite_ZipFileTestSuite_test_existing_package;
|
} testDescription_suite_ZipFileTestSuite_test_existing_package;
|
||||||
|
|
||||||
static class TestDescription_suite_ZipFileTestSuite_test_new_package : public CxxTest::RealTestDescription {
|
static class TestDescription_suite_ZipFileTestSuite_test_new_package : public CxxTest::RealTestDescription {
|
||||||
public:
|
public:
|
||||||
TestDescription_suite_ZipFileTestSuite_test_new_package() : CxxTest::RealTestDescription( Tests_ZipFileTestSuite, suiteDescription_ZipFileTestSuite, 27, "test_new_package" ) {}
|
TestDescription_suite_ZipFileTestSuite_test_new_package() : CxxTest::RealTestDescription( Tests_ZipFileTestSuite, suiteDescription_ZipFileTestSuite, 28, "test_new_package" ) {}
|
||||||
void runTest() { suite_ZipFileTestSuite.test_new_package(); }
|
void runTest() { suite_ZipFileTestSuite.test_new_package(); }
|
||||||
} testDescription_suite_ZipFileTestSuite_test_new_package;
|
} testDescription_suite_ZipFileTestSuite_test_new_package;
|
||||||
|
|
||||||
static class TestDescription_suite_ZipFileTestSuite_test_read_text : public CxxTest::RealTestDescription {
|
static class TestDescription_suite_ZipFileTestSuite_test_read_text : public CxxTest::RealTestDescription {
|
||||||
public:
|
public:
|
||||||
TestDescription_suite_ZipFileTestSuite_test_read_text() : CxxTest::RealTestDescription( Tests_ZipFileTestSuite, suiteDescription_ZipFileTestSuite, 37, "test_read_text" ) {}
|
TestDescription_suite_ZipFileTestSuite_test_read_text() : CxxTest::RealTestDescription( Tests_ZipFileTestSuite, suiteDescription_ZipFileTestSuite, 38, "test_read_text" ) {}
|
||||||
void runTest() { suite_ZipFileTestSuite.test_read_text(); }
|
void runTest() { suite_ZipFileTestSuite.test_read_text(); }
|
||||||
} testDescription_suite_ZipFileTestSuite_test_read_text;
|
} testDescription_suite_ZipFileTestSuite_test_read_text;
|
||||||
|
|
||||||
static class TestDescription_suite_ZipFileTestSuite_test_write_text : public CxxTest::RealTestDescription {
|
static class TestDescription_suite_ZipFileTestSuite_test_write_text : public CxxTest::RealTestDescription {
|
||||||
public:
|
public:
|
||||||
TestDescription_suite_ZipFileTestSuite_test_write_text() : CxxTest::RealTestDescription( Tests_ZipFileTestSuite, suiteDescription_ZipFileTestSuite, 44, "test_write_text" ) {}
|
TestDescription_suite_ZipFileTestSuite_test_write_text() : CxxTest::RealTestDescription( Tests_ZipFileTestSuite, suiteDescription_ZipFileTestSuite, 45, "test_write_text" ) {}
|
||||||
void runTest() { suite_ZipFileTestSuite.test_write_text(); }
|
void runTest() { suite_ZipFileTestSuite.test_write_text(); }
|
||||||
} testDescription_suite_ZipFileTestSuite_test_write_text;
|
} testDescription_suite_ZipFileTestSuite_test_write_text;
|
||||||
|
|
||||||
static class TestDescription_suite_ZipFileTestSuite_test_read_xml : public CxxTest::RealTestDescription {
|
static class TestDescription_suite_ZipFileTestSuite_test_read_xml : public CxxTest::RealTestDescription {
|
||||||
public:
|
public:
|
||||||
TestDescription_suite_ZipFileTestSuite_test_read_xml() : CxxTest::RealTestDescription( Tests_ZipFileTestSuite, suiteDescription_ZipFileTestSuite, 58, "test_read_xml" ) {}
|
TestDescription_suite_ZipFileTestSuite_test_read_xml() : CxxTest::RealTestDescription( Tests_ZipFileTestSuite, suiteDescription_ZipFileTestSuite, 59, "test_read_xml" ) {}
|
||||||
void runTest() { suite_ZipFileTestSuite.test_read_xml(); }
|
void runTest() { suite_ZipFileTestSuite.test_read_xml(); }
|
||||||
} testDescription_suite_ZipFileTestSuite_test_read_xml;
|
} testDescription_suite_ZipFileTestSuite_test_read_xml;
|
||||||
|
|
||||||
|
@ -1 +0,0 @@
|
|||||||
a.txt
|
|
@ -1,4 +0,0 @@
|
|||||||
<root>
|
|
||||||
<child attribute="attribute" />
|
|
||||||
<element>Text</element>
|
|
||||||
</root>
|
|
Binary file not shown.
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user