Skip to content

Commit c66542b

Browse files
authored
Issue #1303: Restore running the true cpp_unit tests, cpp_system tests remain excluded (#1361)
1 parent cfc8b4c commit c66542b

34 files changed

+95
-23
lines changed

tests/CMakeLists.txt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -241,8 +241,7 @@ install(DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/config-2
241241
install(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/ssl_certs
242242
DESTINATION ${QPID_DISPATCH_HOME_INSTALLED}/tests)
243243

244-
add_subdirectory(cpp-stub)
245-
add_subdirectory(c_unittests)
244+
add_subdirectory(cpp)
246245

247246
if(BUILD_BENCHMARKS)
248247
add_subdirectory(c_benchmarks)

tests/c_benchmarks/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ find_package(benchmark REQUIRED)
2929
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${CXX_STANDARD_FLAGS} ${SANITIZE_FLAGS} -Wno-pedantic -Wno-unused-function")
3030

3131
add_executable(c-benchmarks
32-
../c_unittests/helpers.cpp
32+
../cpp/helpers/helpers.cpp
3333
c_benchmarks_main.cpp
3434
bm_router_initialization.cpp
3535
bm_parse_tree.cpp

tests/c_benchmarks/bm_parse_tree.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
*
2020
*/
2121

22-
#include "../c_unittests/helpers.hpp"
22+
#include "../cpp/helpers/helpers.hpp"
2323

2424
#include <benchmark/benchmark.h>
2525

tests/c_benchmarks/bm_router_initialization.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
*
2020
*/
2121

22-
#include "../c_unittests/helpers.hpp"
22+
#include "../cpp/helpers/helpers.hpp"
2323

2424
#include <benchmark/benchmark.h>
2525

tests/c_benchmarks/bm_tcp_adapter.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
*
2020
*/
2121

22-
#include "../c_unittests/helpers.hpp"
22+
#include "../cpp/helpers/helpers.hpp"
2323
#include "SocketException.hpp"
2424
#include "TCPSocket.hpp"
2525
#include "echo_server.hpp"

tests/c_benchmarks/echo_server.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
#ifndef QPID_DISPATCH_ECHO_SERVER_HPP
2323
#define QPID_DISPATCH_ECHO_SERVER_HPP
2424

25-
#include "../c_unittests/helpers.hpp"
25+
#include "../cpp/helpers/helpers.hpp"
2626
#include "SocketException.hpp"
2727
#include "TCPServerSocket.hpp"
2828

tests/cpp/CMakeLists.txt

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
##
2+
## Licensed to the Apache Software Foundation (ASF) under one
3+
## or more contributor license agreements. See the NOTICE file
4+
## distributed with this work for additional information
5+
## regarding copyright ownership. The ASF licenses this file
6+
## to you under the Apache License, Version 2.0 (the
7+
## "License"); you may not use this file except in compliance
8+
## with the License. You may obtain a copy of the License at
9+
##
10+
## http://www.apache.org/licenses/LICENSE-2.0
11+
##
12+
## Unless required by applicable law or agreed to in writing,
13+
## software distributed under the License is distributed on an
14+
## "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15+
## KIND, either express or implied. See the License for the
16+
## specific language governing permissions and limitations
17+
## under the License.
18+
##
19+
20+
add_subdirectory(cpp-stub)
21+
22+
include_directories(helpers)
23+
24+
add_subdirectory(cpp_unit)
25+
add_subdirectory(cpp_system)
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)