Commit cbdb8c5b authored by Constantin Pohl's avatar Constantin Pohl
Browse files

Only one test main; Json update

parent d3f69916
......@@ -27,13 +27,17 @@ download_project(PROJ json
UPDATE_DISCONNECTED 1
QUIET
)
add_custom_command(
OUTPUT ${THIRD_PARTY_DIR}/json
COMMAND ${CMAKE_COMMAND} -E make_directory ${THIRD_PARTY_DIR}/json
COMMAND ${CMAKE_COMMAND} -E copy
${json_SOURCE_DIR}/src/json.hpp
${THIRD_PARTY_DIR}/json)
COMMAND ${CMAKE_COMMAND} -E copy_directory
${json_SOURCE_DIR}/src/
${THIRD_PARTY_DIR}/json/)
include_directories("${THIRD_PARTY_DIR}/json")
#--------------------------------------------------------------------------------
# the format library
download_project(PROJ Format
GIT_REPOSITORY https://github.com/fmtlib/fmt.git
......@@ -41,6 +45,7 @@ download_project(PROJ Format
UPDATE_DISCONNECTED 1
QUIET
)
add_custom_command(
OUTPUT ${THIRD_PARTY_DIR}/fmt
COMMAND ${CMAKE_COMMAND} -E make_directory ${THIRD_PARTY_DIR}/fmt
......@@ -54,6 +59,7 @@ add_custom_command(
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DFMT_HEADER_ONLY=1")
include_directories("${THIRD_PARTY_DIR}/fmt")
#--------------------------------------------------------------------------------
# the SimpleWeb library
download_project(PROJ SimpleWeb
GIT_REPOSITORY https://github.com/eidheim/Simple-Web-Server.git
......@@ -61,6 +67,7 @@ download_project(PROJ SimpleWeb
UPDATE_DISCONNECTED 1
QUIET
)
add_custom_command(
OUTPUT ${THIRD_PARTY_DIR}/SimpleWeb
COMMAND ${CMAKE_COMMAND} -E make_directory ${THIRD_PARTY_DIR}/SimpleWeb
......
......@@ -3,9 +3,9 @@
# Define a macro to simplify building and linking test executables
#
#=============================================
macro( build_executable arg )
macro(build_executable arg)
include_directories("${PROJECT_SOURCE_DIR}/test")
add_executable( ${arg} "${arg}.cpp" )
add_executable( ${arg} "${arg}.cpp")
target_link_libraries( ${arg}
pfabric_core
${Boost_SYSTEM_LIBRARY}
......@@ -14,7 +14,20 @@ macro( build_executable arg )
${BENCHMARK_LIB}
${MALLOC_LIB}
)
endmacro( build_executable )
endmacro(build_executable)
macro(build_catch_test arg)
include_directories("${PROJECT_SOURCE_DIR}/test")
add_executable( ${arg} "${arg}.cpp" $<TARGET_OBJECTS:TestMain>)
target_link_libraries( ${arg}
pfabric_core
${Boost_SYSTEM_LIBRARY}
${ROCKSDB_LIB}
${NVML_LIBRARIES}
${BENCHMARK_LIB}
${MALLOC_LIB}
)
endmacro(build_catch_test)
#=============================================
#
......@@ -26,9 +39,17 @@ macro (do_test arg)
NAME ${arg}
COMMAND "${CMAKE_CURRENT_BINARY_DIR}/${arg}"
)
build_executable( ${arg} )
build_catch_test( ${arg} )
endmacro(do_test)
macro (do_bench arg)
add_test(
NAME ${arg}
COMMAND "${CMAKE_CURRENT_BINARY_DIR}/${arg}"
)
build_executable( ${arg} )
endmacro(do_bench)
set (CTEST_ENVIRONMENT
"DYLD_FALLBACK_LIBRARY_PATH=${DYLD_LIBRARY_PATH}"
)
This diff is collapsed.
include(../../cmake/Testing.cmake.in)
if (BUILD_BENCHMARKS)
do_test(TopologyBenchmarks)
endif()
......@@ -26,6 +26,7 @@
#include <unordered_map>
#include <type_traits>
#include <cassert>
namespace pfabric {
......
#define CATCH_CONFIG_MAIN // This tells Catch to provide a main() - only do this in one cpp file
/*
* Copyright (c) 2014-18 The PipeFabric team,
* All Rights Reserved.
*
* This file is part of the PipeFabric package.
*
* PipeFabric is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License (GPL) as
* published by the Free Software Foundation; either version 2 of
* the License, or (at your option) any later version.
*
* This package is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; see the file LICENSE.
* If not you can find the GPL at http://www.gnu.org/copyleft/gpl.html
*/
#include "catch.hpp"
......
#define CATCH_CONFIG_MAIN // This tells Catch to provide a main() - only do this in one cpp file
/*
* Copyright (c) 2014-18 The PipeFabric team,
* All Rights Reserved.
*
* This file is part of the PipeFabric package.
*
* PipeFabric is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License (GPL) as
* published by the Free Software Foundation; either version 2 of
* the License, or (at your option) any later version.
*
* This package is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; see the file LICENSE.
* If not you can find the GPL at http://www.gnu.org/copyleft/gpl.html
*/
#include "catch.hpp"
......
#define CATCH_CONFIG_MAIN // This tells Catch to provide a main() - only do
// this in one cpp file
/*
* Copyright (c) 2014-18 The PipeFabric team,
* All Rights Reserved.
*
* This file is part of the PipeFabric package.
*
* PipeFabric is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License (GPL) as
* published by the Free Software Foundation; either version 2 of
* the License, or (at your option) any later version.
*
* This package is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; see the file LICENSE.
* If not you can find the GPL at http://www.gnu.org/copyleft/gpl.html
*/
#include "catch.hpp"
......
#define CATCH_CONFIG_MAIN // This tells Catch to provide a main() - only do this in one cpp file
/*
* Copyright (c) 2014-18 The PipeFabric team,
* All Rights Reserved.
*
* This file is part of the PipeFabric package.
*
* PipeFabric is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License (GPL) as
* published by the Free Software Foundation; either version 2 of
* the License, or (at your option) any later version.
*
* This package is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; see the file LICENSE.
* If not you can find the GPL at http://www.gnu.org/copyleft/gpl.html
*/
#include "catch.hpp"
......
......@@ -5,6 +5,7 @@ include(../../cmake/Testing.cmake.in)
add_definitions( -DTEST_DATA_DIRECTORY="${CMAKE_CURRENT_SOURCE_DIR}/test_data/")
if (BUILD_TEST_CASES)
add_library(TestMain OBJECT TestMain.cpp)
do_test(FlowTest)
do_test(TupleTest)
do_test(TimestampHelperTest)
......@@ -29,20 +30,20 @@ if (BUILD_TEST_CASES)
do_test(TopologyJoinTest)
do_test(TopologyAggregationTest)
do_test(TopologyGroupByTest)
do_test(AggregateFuncTest)
do_test(AggregationTest)
do_test(GroupedAggregationTest)
do_test(ZMQSourceTest)
do_test(SeqCEPTest)
do_test(ToTableTest)
do_test(FromTableTest)
do_test(ContextTest)
do_test(CEPDSLTest)
do_test(ZMQPubSubTest)
do_test(PartitionTest)
do_test(BarrierTest)
do_test(StreamGeneratorTest)
do_test(TuplifierTest)
do_test(AggregateFuncTest)
do_test(AggregationTest)
do_test(GroupedAggregationTest)
do_test(ZMQSourceTest)
do_test(SeqCEPTest)
do_test(ToTableTest)
do_test(FromTableTest)
do_test(ContextTest)
do_test(CEPDSLTest)
do_test(ZMQPubSubTest)
do_test(PartitionTest)
do_test(BarrierTest)
do_test(StreamGeneratorTest)
do_test(TuplifierTest)
#do_test(BPTreeTest)
if (USE_ROCKSDB_TABLE)
......@@ -72,8 +73,14 @@ if (BUILD_TEST_CASES)
do_test(MQTTSourceTest)
endif()
add_test(
NAME Python_Test
COMMAND ${PYTHON_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/PyTest.py
)
if(BUILD_PYTHON)
add_test(
NAME Python_Test
COMMAND ${PYTHON_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/PyTest.py
)
endif()
if(BUILD_BENCHMARKS)
do_bench(TopologyBenchmarks)
endif()
endif()
/*
v * ChannelGroupTest.cpp
* Copyright (c) 2014-18 The PipeFabric team,
* All Rights Reserved.
*
* Created on: Feb 2, 2015
* Author: fbeier
* This file is part of the PipeFabric package.
*
* PipeFabric is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License (GPL) as
* published by the Free Software Foundation; either version 2 of
* the License, or (at your option) any later version.
*
* This package is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; see the file LICENSE.
* If not you can find the GPL at http://www.gnu.org/copyleft/gpl.html
*/
#define CATCH_CONFIG_MAIN // This tells Catch to provide a main() - only do this in one cpp file
#include "catch.hpp"
#include <boost/type_traits/is_same.hpp>
......
#define CATCH_CONFIG_MAIN // This tells Catch to provide a main() - only do
// this in one cpp file
/*
* Copyright (c) 2014-18 The PipeFabric team,
* All Rights Reserved.
*
* This file is part of the PipeFabric package.
*
* PipeFabric is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License (GPL) as
* published by the Free Software Foundation; either version 2 of
* the License, or (at your option) any later version.
*
* This package is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; see the file LICENSE.
* If not you can find the GPL at http://www.gnu.org/copyleft/gpl.html
*/
#include "catch.hpp"
......
/*
* FlowTest.cpp
* Copyright (c) 2014-18 The PipeFabric team,
* All Rights Reserved.
*
* Created on: Feb 11, 2015
* Author: fbeier
* This file is part of the PipeFabric package.
*
* PipeFabric is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License (GPL) as
* published by the Free Software Foundation; either version 2 of
* the License, or (at your option) any later version.
*
* This package is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; see the file LICENSE.
* If not you can find the GPL at http://www.gnu.org/copyleft/gpl.html
*/
#define CATCH_CONFIG_MAIN // This tells Catch to provide a main() - only do this in one cpp file
#include "catch.hpp"
......
#define CATCH_CONFIG_MAIN
/*
* Copyright (c) 2014-18 The PipeFabric team,
* All Rights Reserved.
*
* This file is part of the PipeFabric package.
*
* PipeFabric is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License (GPL) as
* published by the Free Software Foundation; either version 2 of
* the License, or (at your option) any later version.
*
* This package is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; see the file LICENSE.
* If not you can find the GPL at http://www.gnu.org/copyleft/gpl.html
*/
#include "catch.hpp"
#include "pfabric.hpp"
......
#define CATCH_CONFIG_MAIN // This tells Catch to provide a main() - only do this in one cpp file
/*
* Copyright (c) 2014-18 The PipeFabric team,
* All Rights Reserved.
*
* This file is part of the PipeFabric package.
*
* PipeFabric is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License (GPL) as
* published by the Free Software Foundation; either version 2 of
* the License, or (at your option) any later version.
*
* This package is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; see the file LICENSE.
* If not you can find the GPL at http://www.gnu.org/copyleft/gpl.html
*/
#include "catch.hpp"
......
#define CATCH_CONFIG_MAIN // This tells Catch to provide a main() - only do this in one cpp file
/*
* Copyright (c) 2014-18 The PipeFabric team,
* All Rights Reserved.
*
* This file is part of the PipeFabric package.
*
* PipeFabric is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License (GPL) as
* published by the Free Software Foundation; either version 2 of
* the License, or (at your option) any later version.
*
* This package is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; see the file LICENSE.
* If not you can find the GPL at http://www.gnu.org/copyleft/gpl.html
*/
#include "catch.hpp"
......
#define CATCH_CONFIG_MAIN // This tells Catch to provide a main() - only do this in one cpp file
/*
* Copyright (c) 2014-18 The PipeFabric team,
* All Rights Reserved.
*
* This file is part of the PipeFabric package.
*
* PipeFabric is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License (GPL) as
* published by the Free Software Foundation; either version 2 of
* the License, or (at your option) any later version.
*
* This package is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; see the file LICENSE.
* If not you can find the GPL at http://www.gnu.org/copyleft/gpl.html
*/
#include "catch.hpp"
......
/*
* Copyright (c) 2014-17 The PipeFabric team,
* Copyright (c) 2014-18 The PipeFabric team,
* All Rights Reserved.
*
* This file is part of the PipeFabric package.
......@@ -19,8 +19,6 @@
* If not you can find the GPL at http://www.gnu.org/copyleft/gpl.html
*/
#define CATCH_CONFIG_MAIN // This tells Catch to provide a main() - only do this in one cpp file
#include "catch.hpp"
#include <cppkafka/producer.h>
......
/*
* Copyright (c) 2014-17 The PipeFabric team,
* Copyright (c) 2014-18 The PipeFabric team,
* All Rights Reserved.
*
* This file is part of the PipeFabric package.
......@@ -19,8 +19,6 @@
* If not you can find the GPL at http://www.gnu.org/copyleft/gpl.html
*/
#define CATCH_CONFIG_MAIN // This tells Catch to provide a main() - only do this in one cpp file
#include "catch.hpp"
#include <string>
......
#define CATCH_CONFIG_MAIN // This tells Catch to provide a main() - only do this in one cpp file
/*
* Copyright (c) 2014-18 The PipeFabric team,
* All Rights Reserved.
*
* This file is part of the PipeFabric package.
*
* PipeFabric is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License (GPL) as
* published by the Free Software Foundation; either version 2 of
* the License, or (at your option) any later version.
*
* This package is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; see the file LICENSE.
* If not you can find the GPL at http://www.gnu.org/copyleft/gpl.html
*/
#include "catch.hpp"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment