a little cleanup

pull/3/head
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/
Release/
bin/
lib/
*.obj
*.sdf
*.suo

View File

@ -18,26 +18,18 @@ project "xlnt.test"
language "C++"
targetname "xlnt.test"
includedirs {
"$(opc_prefix)",
"$(opc_prefix)/config",
"$(opc_prefix)/third_party/libxml2-2.7.7/include",
"$(cxxtest_prefix)",
"../include",
"../third-party/pugixml/src"
"../third-party/pugixml/src",
"../third-party/zlib",
"../third-party/zlib/contrib/minizip"
}
defines { "WIN32" }
files {
"../source/tests/**.h",
"../source/tests/runner-autogen.cpp"
}
links {
"xlnt",
"mce",
"opc",
"plib",
"xml",
"zlib"
}
links { "xlnt" }
prebuildcommands { "cxxtestgen --runner=ErrorPrinter -o ../../source/tests/runner-autogen.cpp ../../source/tests/*.h" }
flags {
"Unicode",
@ -46,18 +38,13 @@ project "xlnt.test"
"NoPCH"
}
configuration "Debug"
targetdir "../bin/debug"
targetdir "../bin"
configuration "Release"
flags { "LinkTimeOptimization" }
targetdir "../bin/release"
targetdir "../bin"
configuration "windows"
includedirs { "$(opc_prefix)/plib/config/msvc/plib/include" }
defines { "WIN32" }
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"
kind "StaticLib"
@ -65,9 +52,6 @@ project "xlnt"
warnings "Extra"
targetdir "../lib/"
includedirs {
"$(opc_prefix)",
"$(opc_prefix)/config",
"$(opc_prefix)/third_party/libxml2-2.7.7/include",
"../include/xlnt",
"../third-party/pugixml/src",
"../source/",
@ -97,9 +81,6 @@ project "xlnt"
configuration "Debug"
flags { "FatalWarnings" }
configuration "windows"
includedirs { "$(opc_prefix)/plib/config/msvc/plib/include" }
defines { "WIN32" }
configuration "not windows"
includedirs { "$(opc_prefix)/build/plib/config/darwin-debug-gcc-i386/plib/include" }
configuration "**.c"
flags { "NoWarnings" }
configuration "../third-party/zlib/*.c"
warnings "Off"

View File

@ -10,12 +10,13 @@ class ZipFileTestSuite : public CxxTest::TestSuite
public:
ZipFileTestSuite()
{
/*
template_zip = "../../source/tests/test_data/packaging/test.zip";
test_zip = "../../source/tests/test_data/packaging/a.zip";
existing_xlsx = "../../source/tests/test_data/packaging/existing.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()

View File

@ -1524,31 +1524,31 @@ CxxTest::StaticSuiteDescription suiteDescription_ZipFileTestSuite( "../../source
static class TestDescription_suite_ZipFileTestSuite_test_existing_package : public CxxTest::RealTestDescription {
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(); }
} testDescription_suite_ZipFileTestSuite_test_existing_package;
static class TestDescription_suite_ZipFileTestSuite_test_new_package : public CxxTest::RealTestDescription {
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(); }
} testDescription_suite_ZipFileTestSuite_test_new_package;
static class TestDescription_suite_ZipFileTestSuite_test_read_text : public CxxTest::RealTestDescription {
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(); }
} testDescription_suite_ZipFileTestSuite_test_read_text;
static class TestDescription_suite_ZipFileTestSuite_test_write_text : public CxxTest::RealTestDescription {
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(); }
} testDescription_suite_ZipFileTestSuite_test_write_text;
static class TestDescription_suite_ZipFileTestSuite_test_read_xml : public CxxTest::RealTestDescription {
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(); }
} 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>