cmake scripts for all tests
This commit is contained in:
Родитель
fa1658b23a
Коммит
ac01609444
|
@ -30,3 +30,4 @@ install(
|
|||
)
|
||||
|
||||
add_subdirectory(samples)
|
||||
add_subdirectory(testsuite)
|
||||
|
|
|
@ -0,0 +1,19 @@
|
|||
set( TEST_SRCS
|
||||
src/CryptoTest.cpp
|
||||
src/CryptoTestSuite.cpp
|
||||
src/Driver.cpp
|
||||
src/RSATest.cpp
|
||||
)
|
||||
|
||||
#include_directories()
|
||||
|
||||
set( WIN_TEST_SRCS
|
||||
src/WinDriver.cpp
|
||||
)
|
||||
|
||||
set(TESTUNIT "${LIBNAME}-testrunner")
|
||||
|
||||
add_executable( ${TESTUNIT} ${TEST_SRCS} )
|
||||
set_target_properties( ${TESTUNIT} PROPERTIES COMPILE_FLAGS ${RELEASE_CXX_FLAGS} )
|
||||
target_link_libraries( ${TESTUNIT} PocoCrypto PocoXML PocoUtil PocoFoundation CppUnit pthread)
|
||||
|
|
@ -37,4 +37,4 @@ if(ODBC_CONFIG)
|
|||
endif(ODBC_CONFIG)
|
||||
|
||||
add_subdirectory( samples )
|
||||
#add_subdirectory( testsuite )
|
||||
add_subdirectory( testsuite )
|
||||
|
|
|
@ -33,4 +33,4 @@ install(
|
|||
DESTINATION lib
|
||||
)
|
||||
|
||||
#add_subdirectory( testsuite )
|
||||
add_subdirectory( testsuite )
|
||||
|
|
|
@ -0,0 +1,19 @@
|
|||
set( TEST_SRCS
|
||||
src/Driver.cpp
|
||||
src/MySQLTest.cpp
|
||||
src/MySQLTestSuite.cpp
|
||||
src/SQLExecutor.cpp
|
||||
)
|
||||
|
||||
#include_directories()
|
||||
|
||||
set( WIN_TEST_SRCS
|
||||
src/WinDriver.cpp
|
||||
)
|
||||
|
||||
set(TESTUNIT "${LIBNAME}-testrunner")
|
||||
|
||||
add_executable( ${TESTUNIT} ${TEST_SRCS} )
|
||||
set_target_properties( ${TESTUNIT} PROPERTIES COMPILE_FLAGS ${RELEASE_CXX_FLAGS} )
|
||||
target_link_libraries( ${TESTUNIT} PocoMySQL PocoData PocoFoundation CppUnit pthread)
|
||||
|
|
@ -32,4 +32,4 @@ install(
|
|||
DESTINATION lib
|
||||
)
|
||||
|
||||
#add_subdirectory( testsuite )
|
||||
add_subdirectory( testsuite )
|
||||
|
|
|
@ -0,0 +1,18 @@
|
|||
set( TEST_SRCS
|
||||
src/Driver.cpp
|
||||
src/SQLiteTest.cpp
|
||||
src/SQLiteTestSuite.cpp
|
||||
)
|
||||
|
||||
#include_directories()
|
||||
|
||||
set( WIN_TEST_SRCS
|
||||
src/WinDriver.cpp
|
||||
)
|
||||
|
||||
set(TESTUNIT "${LIBNAME}-testrunner")
|
||||
|
||||
add_executable( ${TESTUNIT} ${TEST_SRCS} )
|
||||
set_target_properties( ${TESTUNIT} PROPERTIES COMPILE_FLAGS ${RELEASE_CXX_FLAGS} )
|
||||
target_link_libraries( ${TESTUNIT} PocoSQLite PocoData PocoFoundation CppUnit pthread)
|
||||
|
|
@ -0,0 +1,25 @@
|
|||
set( TEST_SRCS
|
||||
src/Binder.cpp
|
||||
src/Connector.cpp
|
||||
src/DataTest.cpp
|
||||
src/Driver.cpp
|
||||
src/DataTestSuite.cpp
|
||||
src/Extractor.cpp
|
||||
src/Preparator.cpp
|
||||
src/SessionImpl.cpp
|
||||
src/SessionPoolTest.cpp
|
||||
src/TestStatementImpl.cpp
|
||||
)
|
||||
|
||||
#include_directories()
|
||||
|
||||
set( WIN_TEST_SRCS
|
||||
src/WinDriver.cpp
|
||||
)
|
||||
|
||||
set(TESTUNIT "${LIBNAME}-testrunner")
|
||||
|
||||
add_executable( ${TESTUNIT} ${TEST_SRCS} )
|
||||
set_target_properties( ${TESTUNIT} PROPERTIES COMPILE_FLAGS ${RELEASE_CXX_FLAGS} )
|
||||
target_link_libraries( ${TESTUNIT} PocoData PocoFoundation CppUnit pthread)
|
||||
|
|
@ -40,7 +40,7 @@
|
|||
#include "Poco/SharedPtr.h"
|
||||
#include "Binder.h"
|
||||
#include "Extractor.h"
|
||||
#include "Preparation.h"
|
||||
#include "Preparator.h"
|
||||
|
||||
|
||||
struct sqlite3;
|
||||
|
|
|
@ -114,6 +114,7 @@ set( BASE_SRCS
|
|||
src/TextEncoding.cpp
|
||||
src/TextIterator.cpp
|
||||
src/Thread.cpp
|
||||
src/ThreadTarget.cpp
|
||||
src/ThreadLocal.cpp
|
||||
src/ThreadPool.cpp
|
||||
src/Timer.cpp
|
||||
|
@ -210,4 +211,4 @@ install(
|
|||
)
|
||||
|
||||
add_subdirectory( samples )
|
||||
#add_subdirectory( testsuite )
|
||||
add_subdirectory( testsuite )
|
||||
|
|
|
@ -0,0 +1,146 @@
|
|||
set( TEST_SRCS
|
||||
src/ActiveDispatcherTest.cpp
|
||||
src/ActiveMethodTest.cpp
|
||||
src/ActivityTest.cpp
|
||||
src/AnyTest.cpp
|
||||
src/ArrayTest.cpp
|
||||
src/AutoPtrTest.cpp
|
||||
src/AutoReleasePoolTest.cpp
|
||||
src/Base64Test.cpp
|
||||
src/BasicEventTest.cpp
|
||||
src/BinaryReaderWriterTest.cpp
|
||||
src/ByteOrderTest.cpp
|
||||
src/CacheTestSuite.cpp
|
||||
src/ChannelTest.cpp
|
||||
src/ClassLoaderTest.cpp
|
||||
src/ConditionTest.cpp
|
||||
src/CoreTest.cpp
|
||||
src/CoreTestSuite.cpp
|
||||
src/CountingStreamTest.cpp
|
||||
src/CryptTestSuite.cpp
|
||||
src/DateTimeFormatterTest.cpp
|
||||
src/DateTimeParserTest.cpp
|
||||
src/DateTimeTest.cpp
|
||||
src/DateTimeTestSuite.cpp
|
||||
src/DigestStreamTest.cpp
|
||||
src/Driver.cpp
|
||||
src/DummyDelegate.cpp
|
||||
src/DynamicFactoryTest.cpp
|
||||
src/DynamicTestSuite.cpp
|
||||
src/EventTestSuite.cpp
|
||||
src/ExpireCacheTest.cpp
|
||||
src/ExpireLRUCacheTest.cpp
|
||||
src/FIFOEventTest.cpp
|
||||
src/FPETest.cpp
|
||||
src/FileChannelTest.cpp
|
||||
src/FileStreamTest.cpp
|
||||
src/FileTest.cpp
|
||||
src/FilesystemTestSuite.cpp
|
||||
src/FormatTest.cpp
|
||||
src/FoundationTestSuite.cpp
|
||||
src/GlobTest.cpp
|
||||
src/HMACEngineTest.cpp
|
||||
src/HashMapTest.cpp
|
||||
src/HashSetTest.cpp
|
||||
src/HashTableTest.cpp
|
||||
src/HashingTestSuite.cpp
|
||||
src/HexBinaryTest.cpp
|
||||
src/LRUCacheTest.cpp
|
||||
src/LineEndingConverterTest.cpp
|
||||
src/LinearHashTableTest.cpp
|
||||
src/LocalDateTimeTest.cpp
|
||||
src/LogStreamTest.cpp
|
||||
src/LoggerTest.cpp
|
||||
src/LoggingFactoryTest.cpp
|
||||
src/LoggingRegistryTest.cpp
|
||||
src/LoggingTestSuite.cpp
|
||||
src/MD2EngineTest.cpp
|
||||
src/MD4EngineTest.cpp
|
||||
src/MD5EngineTest.cpp
|
||||
src/ManifestTest.cpp
|
||||
src/MemoryPoolTest.cpp
|
||||
src/NDCTest.cpp
|
||||
src/NamedEventTest.cpp
|
||||
src/NamedMutexTest.cpp
|
||||
src/NamedTuplesTest.cpp
|
||||
src/NotificationCenterTest.cpp
|
||||
src/NotificationQueueTest.cpp
|
||||
src/NotificationsTestSuite.cpp
|
||||
src/NullStreamTest.cpp
|
||||
src/NumberFormatterTest.cpp
|
||||
src/NumberParserTest.cpp
|
||||
src/PathTest.cpp
|
||||
src/PatternFormatterTest.cpp
|
||||
src/PriorityEventTest.cpp
|
||||
src/ProcessTest.cpp
|
||||
src/ProcessesTestSuite.cpp
|
||||
src/RWLockTest.cpp
|
||||
src/RandomStreamTest.cpp
|
||||
src/RandomTest.cpp
|
||||
src/RegularExpressionTest.cpp
|
||||
src/SHA1EngineTest.cpp
|
||||
src/SemaphoreTest.cpp
|
||||
src/SharedLibraryTest.cpp
|
||||
src/SharedLibraryTestSuite.cpp
|
||||
src/SharedMemoryTest.cpp
|
||||
src/SharedPtrTest.cpp
|
||||
src/SimpleFileChannelTest.cpp
|
||||
src/SimpleHashTableTest.cpp
|
||||
src/StopwatchTest.cpp
|
||||
src/StreamConverterTest.cpp
|
||||
src/StreamCopierTest.cpp
|
||||
src/StreamTokenizerTest.cpp
|
||||
src/StreamsTestSuite.cpp
|
||||
src/StringTest.cpp
|
||||
src/StringTokenizerTest.cpp
|
||||
src/TaskManagerTest.cpp
|
||||
src/TaskTest.cpp
|
||||
src/TaskTestSuite.cpp
|
||||
src/TeeStreamTest.cpp
|
||||
src/TestChannel.cpp
|
||||
src/TestPlugin.cpp
|
||||
src/TextConverterTest.cpp
|
||||
src/TextEncodingTest.cpp
|
||||
src/TextIteratorTest.cpp
|
||||
src/TextTestSuite.cpp
|
||||
src/ThreadLocalTest.cpp
|
||||
src/ThreadPoolTest.cpp
|
||||
src/ThreadTest.cpp
|
||||
src/ThreadingTestSuite.cpp
|
||||
src/TimerTest.cpp
|
||||
src/TimespanTest.cpp
|
||||
src/TimestampTest.cpp
|
||||
src/TimezoneTest.cpp
|
||||
src/TuplesTest.cpp
|
||||
src/TypeListTest.cpp
|
||||
src/URIStreamOpenerTest.cpp
|
||||
src/URITest.cpp
|
||||
src/URITestSuite.cpp
|
||||
src/UTF8StringTest.cpp
|
||||
src/UUIDGeneratorTest.cpp
|
||||
src/UUIDTest.cpp
|
||||
src/UUIDTestSuite.cpp
|
||||
src/UniqueExpireCacheTest.cpp
|
||||
src/UniqueExpireLRUCacheTest.cpp
|
||||
src/VarTest.cpp
|
||||
src/ZLibTest.cpp
|
||||
)
|
||||
|
||||
set( WIN_TEST_SRCS
|
||||
src/WinDriver.cpp
|
||||
)
|
||||
|
||||
set(TESTUNIT "${LIBNAME}-testrunner")
|
||||
|
||||
add_executable( ${TESTUNIT} ${TEST_SRCS} )
|
||||
set_target_properties( ${TESTUNIT} PROPERTIES COMPILE_FLAGS ${RELEASE_CXX_FLAGS} )
|
||||
target_link_libraries( ${TESTUNIT} PocoFoundation CppUnit pthread)
|
||||
|
||||
add_executable( TestApp src/TestApp.cpp )
|
||||
set_target_properties( TestApp PROPERTIES COMPILE_FLAGS ${RELEASE_CXX_FLAGS} )
|
||||
target_link_libraries( TestApp PocoFoundation )
|
||||
|
||||
add_library( TestLibrary SHARED src/TestApp.cpp )
|
||||
set_target_properties( TestLibrary PROPERTIES COMPILE_FLAGS ${RELEASE_CXX_FLAGS} )
|
||||
target_link_libraries( TestLibrary PocoFoundation )
|
||||
|
|
@ -44,4 +44,4 @@ install(
|
|||
)
|
||||
|
||||
add_subdirectory( samples )
|
||||
#add_subdirectory( testsuite )
|
||||
add_subdirectory( testsuite )
|
||||
|
|
|
@ -0,0 +1,69 @@
|
|||
set( TEST_SRCS
|
||||
src/DNSTest.cpp
|
||||
src/DatagramSocketTest.cpp
|
||||
src/DialogServer.cpp
|
||||
src/DialogSocketTest.cpp
|
||||
src/Driver.cpp
|
||||
src/EchoServer.cpp
|
||||
src/FTPClientSessionTest.cpp
|
||||
src/FTPClientTestSuite.cpp
|
||||
src/FTPStreamFactoryTest.cpp
|
||||
src/HTMLFormTest.cpp
|
||||
src/HTMLTestSuite.cpp
|
||||
src/HTTPClientSessionTest.cpp
|
||||
src/HTTPClientTestSuite.cpp
|
||||
src/HTTPCookieTest.cpp
|
||||
src/HTTPCredentialsTest.cpp
|
||||
src/HTTPRequestTest.cpp
|
||||
src/HTTPResponseTest.cpp
|
||||
src/HTTPServerTest.cpp
|
||||
src/HTTPServerTestSuite.cpp
|
||||
src/HTTPStreamFactoryTest.cpp
|
||||
src/HTTPTestServer.cpp
|
||||
src/HTTPTestSuite.cpp
|
||||
src/ICMPClientTest.cpp
|
||||
src/ICMPClientTestSuite.cpp
|
||||
src/ICMPSocketTest.cpp
|
||||
src/IPAddressTest.cpp
|
||||
src/MailMessageTest.cpp
|
||||
src/MailStreamTest.cpp
|
||||
src/MailTestSuite.cpp
|
||||
src/MediaTypeTest.cpp
|
||||
src/MessageHeaderTest.cpp
|
||||
src/MessagesTestSuite.cpp
|
||||
src/MulticastEchoServer.cpp
|
||||
src/MulticastSocketTest.cpp
|
||||
src/MultipartReaderTest.cpp
|
||||
src/MultipartWriterTest.cpp
|
||||
src/NameValueCollectionTest.cpp
|
||||
src/NetCoreTestSuite.cpp
|
||||
src/NetTestSuite.cpp
|
||||
src/NetworkInterfaceTest.cpp
|
||||
src/POP3ClientSessionTest.cpp
|
||||
src/QuotedPrintableTest.cpp
|
||||
src/RawSocketTest.cpp
|
||||
src/ReactorTestSuite.cpp
|
||||
src/SMTPClientSessionTest.cpp
|
||||
src/SocketAddressTest.cpp
|
||||
src/SocketReactorTest.cpp
|
||||
src/SocketStreamTest.cpp
|
||||
src/SocketTest.cpp
|
||||
src/SocketsTestSuite.cpp
|
||||
src/SyslogTest.cpp
|
||||
src/TCPServerTest.cpp
|
||||
src/TCPServerTestSuite.cpp
|
||||
src/UDPEchoServer.cpp
|
||||
)
|
||||
|
||||
#include_directories()
|
||||
|
||||
set( WIN_TEST_SRCS
|
||||
src/WinDriver.cpp
|
||||
)
|
||||
|
||||
set(TESTUNIT "${LIBNAME}-testrunner")
|
||||
|
||||
add_executable( ${TESTUNIT} ${TEST_SRCS} )
|
||||
set_target_properties( ${TESTUNIT} PROPERTIES COMPILE_FLAGS ${RELEASE_CXX_FLAGS} )
|
||||
target_link_libraries( ${TESTUNIT} PocoNet PocoUtil PocoXML PocoFoundation CppUnit pthread)
|
||||
|
|
@ -27,4 +27,5 @@ install(
|
|||
DESTINATION lib
|
||||
)
|
||||
|
||||
add_subdirectory( samples )
|
||||
add_subdirectory( samples )
|
||||
add_subdirectory( testsuite )
|
||||
|
|
|
@ -0,0 +1,25 @@
|
|||
set( TEST_SRCS
|
||||
src/Driver.cpp
|
||||
src/HTTPSClientSessionTest.cpp
|
||||
src/HTTPSClientTestSuite.cpp
|
||||
src/HTTPSServerTest.cpp
|
||||
src/HTTPSServerTestSuite.cpp
|
||||
src/HTTPSStreamFactoryTest.cpp
|
||||
src/HTTPSTestServer.cpp
|
||||
src/NetSSLTestSuite.cpp
|
||||
src/TCPServerTest.cpp
|
||||
src/TCPServerTestSuite.cpp
|
||||
)
|
||||
|
||||
#include_directories()
|
||||
|
||||
set( WIN_TEST_SRCS
|
||||
src/WinDriver.cpp
|
||||
)
|
||||
|
||||
set(TESTUNIT "${LIBNAME}-testrunner")
|
||||
|
||||
add_executable( ${TESTUNIT} ${TEST_SRCS} )
|
||||
set_target_properties( ${TESTUNIT} PROPERTIES COMPILE_FLAGS ${RELEASE_CXX_FLAGS} )
|
||||
target_link_libraries( ${TESTUNIT} PocoNetSSL PocoNet PocoUtil PocoXML PocoFoundation CppUnit pthread)
|
||||
|
|
@ -30,4 +30,4 @@ install(
|
|||
|
||||
add_subdirectory( ExtJS )
|
||||
|
||||
#add_subdirectory( testsuite )
|
||||
add_subdirectory( testsuite )
|
||||
|
|
|
@ -0,0 +1,18 @@
|
|||
set( TEST_SRCS
|
||||
src/Driver.cpp
|
||||
src/WebWidgetsTest.cpp
|
||||
src/WebWidgetsTestSuite.cpp
|
||||
)
|
||||
|
||||
#include_directories()
|
||||
|
||||
set( WIN_TEST_SRCS
|
||||
src/WinDriver.cpp
|
||||
)
|
||||
|
||||
set(TESTUNIT "${LIBNAME}-testrunner")
|
||||
|
||||
add_executable( ${TESTUNIT} ${TEST_SRCS} )
|
||||
set_target_properties( ${TESTUNIT} PROPERTIES COMPILE_FLAGS ${RELEASE_CXX_FLAGS} )
|
||||
target_link_libraries( ${TESTUNIT} PocoWebWidgets PocoNet PocoUtil PocoXML PocoFoundation CppUnit pthread)
|
||||
|
|
@ -30,4 +30,4 @@ install(
|
|||
)
|
||||
|
||||
add_subdirectory( samples )
|
||||
#add_subdirectory( testsuite )
|
||||
add_subdirectory( testsuite )
|
||||
|
|
|
@ -0,0 +1,36 @@
|
|||
set( TEST_SRCS
|
||||
src/AttributesImplTest.cpp
|
||||
src/ChildNodesTest.cpp
|
||||
src/DOMTestSuite.cpp
|
||||
src/DocumentTest.cpp
|
||||
src/DocumentTypeTest.cpp
|
||||
src/Driver.cpp
|
||||
src/ElementTest.cpp
|
||||
src/EventTest.cpp
|
||||
src/NamePoolTest.cpp
|
||||
src/NameTest.cpp
|
||||
src/NamespaceSupportTest.cpp
|
||||
src/NodeAppenderTest.cpp
|
||||
src/NodeIteratorTest.cpp
|
||||
src/NodeTest.cpp
|
||||
src/ParserWriterTest.cpp
|
||||
src/SAXParserTest.cpp
|
||||
src/SAXTestSuite.cpp
|
||||
src/TextTest.cpp
|
||||
src/TreeWalkerTest.cpp
|
||||
src/XMLTestSuite.cpp
|
||||
src/XMLWriterTest.cpp
|
||||
)
|
||||
|
||||
#include_directories()
|
||||
|
||||
set( WIN_TEST_SRCS
|
||||
src/WinDriver.cpp
|
||||
)
|
||||
|
||||
set(TESTUNIT "${LIBNAME}-testrunner")
|
||||
|
||||
add_executable( ${TESTUNIT} ${TEST_SRCS} )
|
||||
set_target_properties( ${TESTUNIT} PROPERTIES COMPILE_FLAGS ${RELEASE_CXX_FLAGS} )
|
||||
target_link_libraries( ${TESTUNIT} PocoXML PocoFoundation CppUnit pthread)
|
||||
|
|
@ -28,3 +28,4 @@ install(
|
|||
)
|
||||
|
||||
add_subdirectory(samples)
|
||||
add_subdirectory(testsuite)
|
||||
|
|
|
@ -0,0 +1,20 @@
|
|||
set( TEST_SRCS
|
||||
src/CompressTest.cpp
|
||||
src/Driver.cpp
|
||||
src/PartialStreamTest.cpp
|
||||
src/ZipTest.cpp
|
||||
src/ZipTestSuite.cpp
|
||||
)
|
||||
|
||||
#include_directories()
|
||||
|
||||
set( WIN_TEST_SRCS
|
||||
src/WinDriver.cpp
|
||||
)
|
||||
|
||||
set(TESTUNIT "${LIBNAME}-testrunner")
|
||||
|
||||
add_executable( ${TESTUNIT} ${TEST_SRCS} )
|
||||
set_target_properties( ${TESTUNIT} PROPERTIES COMPILE_FLAGS ${RELEASE_CXX_FLAGS} )
|
||||
target_link_libraries( ${TESTUNIT} PocoZip PocoNet PocoFoundation CppUnit pthread)
|
||||
|
Загрузка…
Ссылка в новой задаче