a little cleanup

This commit is contained in:
Thomas Fussell 2014-05-14 18:48:18 -04:00
parent 2ae7286482
commit e516a3aa11
8 changed files with 17 additions and 40 deletions

4
.gitignore vendored
View File

@ -1,5 +1,5 @@
Debug/ bin/
Release/ lib/
*.obj *.obj
*.sdf *.sdf
*.suo *.suo

View File

@ -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" }

View File

@ -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()

View File

@ -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;

View File

@ -1 +0,0 @@
a.txt

View File

@ -1,4 +0,0 @@
<root>
<child attribute="attribute" />
<element>Text</element>
</root>