Skip to content

Commit

Permalink
Split tests into samples & tests.
Browse files Browse the repository at this point in the history
Signed-off-by: FrancisANDRE <[email protected]>
  • Loading branch information
zosrothko committed Dec 19, 2015
1 parent 1c89dc5 commit 6e97a9f
Show file tree
Hide file tree
Showing 17 changed files with 52 additions and 18 deletions.
2 changes: 1 addition & 1 deletion ApacheConnector/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,6 @@ target_include_directories( "${LIBNAME}"
PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/src
)

if (ENABLE_TESTS)
if (ENABLE_SAMPLES)
add_subdirectory(samples)
endif ()
8 changes: 6 additions & 2 deletions Crypto/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,18 @@ target_include_directories( "${LIBNAME}"
PUBLIC
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
$<INSTALL_INTERFACE:include>
PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/src
PRIVATE
${CMAKE_CURRENT_SOURCE_DIR}/src
${OPENSSL_INCLUDE_DIR}
)
target_compile_definitions("${LIBNAME}" PUBLIC ${LIB_MODE_DEFINITIONS})

POCO_INSTALL("${LIBNAME}")
POCO_GENERATE_PACKAGE("${LIBNAME}")

if (ENABLE_TESTS)
add_subdirectory(samples)
add_subdirectory(testsuite)
endif ()
if (ENABLE_SAMPLES)
add_subdirectory(samples)
endif ()
4 changes: 3 additions & 1 deletion Data/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,8 @@ if(ENABLE_DATA_ODBC)
endif(ENABLE_DATA_ODBC)

if (ENABLE_TESTS)
add_subdirectory(samples)
add_subdirectory(testsuite)
endif ()
if (ENABLE_SAMPLES)
add_subdirectory(samples)
endif ()
4 changes: 3 additions & 1 deletion Foundation/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,9 @@ POCO_INSTALL("${LIBNAME}")
POCO_GENERATE_PACKAGE("${LIBNAME}")

if (ENABLE_TESTS)
add_subdirectory( samples )
add_subdirectory( testsuite )
endif ()
if (ENABLE_SAMPLES)
add_subdirectory( samples )
endif ()

4 changes: 3 additions & 1 deletion JSON/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,9 @@ POCO_INSTALL("${LIBNAME}")
POCO_GENERATE_PACKAGE("${LIBNAME}")

if (ENABLE_TESTS)
add_subdirectory(samples)
add_subdirectory(testsuite)
endif ()
if (ENABLE_SAMPLES)
add_subdirectory(samples)
endif ()

4 changes: 3 additions & 1 deletion MongoDB/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,9 @@ POCO_INSTALL("${LIBNAME}")
POCO_GENERATE_PACKAGE("${LIBNAME}")

if (ENABLE_TESTS)
add_subdirectory(samples)
add_subdirectory(testsuite)
endif ()
if (ENABLE_SAMPLES)
add_subdirectory(samples)
endif ()

4 changes: 3 additions & 1 deletion Net/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ POCO_GENERATE_PACKAGE("${LIBNAME}")

if (ENABLE_TESTS)
add_subdirectory(samples)
add_subdirectory(testsuite)
endif ()
if (ENABLE_SAMPLES)
add_subdirectory(samples)
endif ()

4 changes: 3 additions & 1 deletion NetSSL_OpenSSL/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,9 @@ POCO_INSTALL("${LIBNAME}")
POCO_GENERATE_PACKAGE("${LIBNAME}")

if (ENABLE_TESTS)
add_subdirectory(samples)
add_subdirectory(testsuite)
endif ()
if (ENABLE_SAMPLES)
add_subdirectory(samples)
endif ()

5 changes: 4 additions & 1 deletion NetSSL_Win/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,11 @@ POCO_INSTALL("${LIBNAME}")
POCO_GENERATE_PACKAGE("${LIBNAME}")

if (ENABLE_TESTS)
#TODO:
# add_subdirectory(testsuite)
endif ()
if (ENABLE_SAMPLES)
#TODO: Looks like the samples use crypto somehow?
#add_subdirectory(samples)
#add_subdirectory(testsuite)
endif ()

4 changes: 3 additions & 1 deletion PDF/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,9 @@ POCO_INSTALL("${LIBNAME}")
POCO_GENERATE_PACKAGE("${LIBNAME}")

if (ENABLE_TESTS)
add_subdirectory(samples)
add_subdirectory(testsuite)
endif ()
if (ENABLE_SAMPLES)
add_subdirectory(samples)
endif ()

4 changes: 4 additions & 0 deletions PageCompiler/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,7 @@ install(
RUNTIME DESTINATION bin
INCLUDES DESTINATION include
)
if (ENABLE_SAMPLES)
# add_subdirectory(samples)
endif ()

4 changes: 3 additions & 1 deletion Redis/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,9 @@ POCO_INSTALL("${LIBNAME}")
POCO_GENERATE_PACKAGE("${LIBNAME}")

if (ENABLE_TESTS)
# add_subdirectory(samples)
add_subdirectory(testsuite)
endif ()
if (ENABLE_SAMPLES)
# add_subdirectory(samples)
endif ()

4 changes: 3 additions & 1 deletion SevenZip/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,10 @@ POCO_INSTALL("${LIBNAME}")
POCO_GENERATE_PACKAGE("${LIBNAME}")

if (ENABLE_TESTS)
add_subdirectory(samples)
# TODO: Add tests
#add_subdirectory(testsuite)
endif ()
if (ENABLE_SAMPLES)
add_subdirectory(samples)
endif ()

4 changes: 3 additions & 1 deletion Util/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ POCO_INSTALL("${LIBNAME}")
POCO_GENERATE_PACKAGE("${LIBNAME}")

if (ENABLE_TESTS)
add_subdirectory(samples)
add_subdirectory(testsuite)
endif ()
if (ENABLE_SAMPLES)
add_subdirectory(samples)
endif ()
4 changes: 3 additions & 1 deletion XML/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,9 @@ POCO_INSTALL("${LIBNAME}")
POCO_GENERATE_PACKAGE("${LIBNAME}")

if (ENABLE_TESTS)
add_subdirectory(samples)
add_subdirectory(testsuite)
endif ()
if (ENABLE_SAMPLES)
add_subdirectory(samples)
endif ()

4 changes: 3 additions & 1 deletion Zip/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,9 @@ POCO_INSTALL("${LIBNAME}")
POCO_GENERATE_PACKAGE("${LIBNAME}")

if (ENABLE_TESTS)
add_subdirectory(samples)
add_subdirectory(testsuite)
endif ()
if (ENABLE_SAMPLES)
add_subdirectory(samples)
endif ()

3 changes: 1 addition & 2 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -175,9 +175,8 @@ build_script:
{
mkdir cmake-build | out-null;cd cmake-build;
cmake ../. -G"NMake Makefiles JOM" -DENABLE_TESTS=ON -DENABLE_NETSSL=OFF -DENABLE_NETSSL_WIN=ON -DENABLE_DATA_MYSQL=OFF -DENABLE_REDIS=OFF;
jom
cmake --build . --config $env:configuration -- /nologo;
}
# cmake --build . --config $env:configuration -- /nologo;
Expand Down

0 comments on commit 6e97a9f

Please sign in to comment.