Skip to content

Commit c7d2034

Browse files
Alexander Antonovrdementi
authored andcommitted
Move utests to tests folder
1 parent c06b951 commit c7d2034

File tree

3 files changed

+25
-27
lines changed

3 files changed

+25
-27
lines changed

tests/utests/CMakeLists.txt

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# SPDX-License-Identifier: BSD-3-Clause
2+
# Copyright (c) 2009-2025, Intel Corporation
3+
4+
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin/tests/utests)
5+
6+
project(pcm_utests LANGUAGES CXX)
7+
8+
enable_testing()
9+
10+
include_directories(${CMAKE_SOURCE_DIR}/src/)
11+
include_directories("${GMOCK_DIR}/include")
12+
13+
file(GLOB LSPCI_TEST_FILES lspci-utest.cpp ${CMAKE_SOURCE_DIR}/src/lspci.cpp)
14+
set(LIBS PCM_STATIC)
15+
add_executable(lspci-utest ${LSPCI_TEST_FILES})
16+
17+
target_link_libraries(
18+
lspci-utest
19+
GTest::gtest_main
20+
GTest::gmock_main
21+
${LIBS}
22+
)
23+
24+
include(GoogleTest)
25+
gtest_discover_tests(lspci-utest)
File renamed without changes.

utests/CMakeLists.txt

Lines changed: 0 additions & 27 deletions
This file was deleted.

0 commit comments

Comments
 (0)