Skip to content

Commit

Permalink
Merge all unit tests into a single source file (#103)
Browse files Browse the repository at this point in the history
No changes to the moved code (that's why I wanted to do this
as a separate PR).

Contributes to #25

Signed-off-by: Kévin Petit <kpet@free.fr>
  • Loading branch information
kpet committed Jun 10, 2020
1 parent 432b551 commit 524f5ca
Show file tree
Hide file tree
Showing 3 changed files with 1,795 additions and 1,891 deletions.
9 changes: 3 additions & 6 deletions tests/CMakeLists.txt
Expand Up @@ -49,16 +49,13 @@ set(TEST_CL2HPP_HEADERS
${CLCPP_SOURCE_DIR}/include/CL/cl2.hpp
mocks/Mockcl.h)

set(TEST_CLHPP_SOURCES_COMMON
set(TEST_CL2HPP_SOURCES
${CMAKE_CURRENT_BINARY_DIR}/test_cl2hpp_Runner.c
test_cl2hpp.cpp
${CMAKE_CURRENT_BINARY_DIR}/mocks/Mockcl.c
${CMOCK_DIR}/src/cmock.c
${UNITY_DIR}/src/unity.c)

set(TEST_CL2HPP_SOURCES
${TEST_CLHPP_SOURCES_COMMON}
${CMAKE_CURRENT_BINARY_DIR}/test_cl2hpp_Runner.c
test_cl2hpp.cpp)

# TODO enable testing for OpenCL 1.0 and 1.1
foreach(VERSION 120 200 210 220 300)
set(TEST_EXE test_cl2hpp_${VERSION})
Expand Down

0 comments on commit 524f5ca

Please sign in to comment.