Skip to content

Commit b60f936

Browse files
committed
iox-eclipse-iceoryx#2044 Run 'dust' tests in CI
1 parent b7cad77 commit b60f936

File tree

3 files changed

+41
-1
lines changed

3 files changed

+41
-1
lines changed

iceoryx_dust/test/CMakeLists.txt

+9
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ find_package(iceoryx_hoofs_testing REQUIRED)
2525
set(PROJECT_PREFIX "dust")
2626

2727
file(GLOB_RECURSE MODULETESTS_SRC "${CMAKE_CURRENT_SOURCE_DIR}/moduletests/*.cpp")
28+
file(GLOB_RECURSE INTEGRATIONTESTS_SRC "${CMAKE_CURRENT_SOURCE_DIR}/integrationtests/*.cpp")
2829

2930
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/${PROJECT_PREFIX}/test)
3031

@@ -44,4 +45,12 @@ iox_add_executable( TARGET ${PROJECT_PREFIX}_moduletests
4445
FILES ${MODULETESTS_SRC}
4546
)
4647

48+
iox_add_executable( TARGET ${PROJECT_PREFIX}_integrationtests
49+
INCLUDE_DIRECTORIES .
50+
LIBS ${TEST_LINK_LIBS}
51+
LIBS_LINUX acl dl rt
52+
FILES ${INTEGRATIONTESTS_SRC}
53+
)
54+
4755
target_compile_options(${PROJECT_PREFIX}_moduletests PRIVATE ${TEST_CXX_FLAGS})
56+
target_compile_options(${PROJECT_PREFIX}_integrationtests PRIVATE ${TEST_CXX_FLAGS})
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
// Copyright (c) 2019 by Robert Bosch GmbH. All rights reserved.
2+
// Copyright (c) 2021 - 2022 by Apex.AI inc. All rights reserved.
3+
//
4+
// Licensed under the Apache License, Version 2.0 (the "License");
5+
// you may not use this file except in compliance with the License.
6+
// You may obtain a copy of the License at
7+
//
8+
// http://www.apache.org/licenses/LICENSE-2.0
9+
//
10+
// Unless required by applicable law or agreed to in writing, software
11+
// distributed under the License is distributed on an "AS IS" BASIS,
12+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
// See the License for the specific language governing permissions and
14+
// limitations under the License.
15+
//
16+
// SPDX-License-Identifier: Apache-2.0
17+
18+
#include "iceoryx_hoofs/testing/testing_logger.hpp"
19+
20+
#include "test.hpp"
21+
22+
using namespace ::testing;
23+
24+
int main(int argc, char* argv[])
25+
{
26+
::testing::InitGoogleTest(&argc, argv);
27+
28+
iox::testing::TestingLogger::init();
29+
30+
return RUN_ALL_TESTS();
31+
}

iceoryx_meta/tests.cmake

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ if (BUILD_TEST)
1919
add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/../cmake/googletest ${CMAKE_BINARY_DIR}/dependencies/googletest/prebuild)
2020

2121
### create component list
22-
set(COMPONENTS "hoofs" "posh")
22+
set(COMPONENTS "hoofs" "dust" "posh")
2323

2424
### possible place for more extensions
2525
if (BINDING_C)

0 commit comments

Comments
 (0)