Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
R
rapidjson
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
rapidjson
Commits
bff9625e
Commit
bff9625e
authored
Nov 11, 2014
by
Andriy Senkovych
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add travis tests to be run from CTest
parent
40648f16
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
2 deletions
+15
-2
CMakeLists.txt
test/perftest/CMakeLists.txt
+2
-0
CMakeLists.txt
test/unittest/CMakeLists.txt
+13
-2
No files found.
test/perftest/CMakeLists.txt
View file @
bff9625e
...
...
@@ -9,6 +9,8 @@ target_link_libraries(perftest ${TEST_LIBRARIES})
add_dependencies
(
tests perftest
)
IF
(
NOT
(
CMAKE_BUILD_TYPE STREQUAL
"Debug"
))
add_test
(
NAME perftest
COMMAND
${
CMAKE_RUNTIME_OUTPUT_DIRECTORY
}
/perftest
WORKING_DIRECTORY
${
CMAKE_SOURCE_DIR
}
/bin
)
ENDIF
()
test/unittest/CMakeLists.txt
View file @
bff9625e
...
...
@@ -4,18 +4,29 @@ set(UNITTEST_SOURCES
encodingstest.cpp
filestreamtest.cpp
jsoncheckertest.cpp
namespacetest.cpp
readertest.cpp
unittest.cpp
unittest.h
valuetest.cpp
writertest.cpp
)
add_library
(
namespacetest STATIC namespacetest.cpp
)
add_executable
(
unittest
${
UNITTEST_SOURCES
}
)
target_link_libraries
(
unittest
${
TEST_LIBRARIES
}
)
target_link_libraries
(
unittest
${
TEST_LIBRARIES
}
namespacetest
)
add_dependencies
(
tests unittest
)
add_test
(
NAME unittest
COMMAND
${
CMAKE_RUNTIME_OUTPUT_DIRECTORY
}
/unittest
WORKING_DIRECTORY
${
CMAKE_SOURCE_DIR
}
/bin
)
add_test
(
NAME valgrind_unittest
COMMAND valgrind --leak-check=full --error-exitcode=1
${
CMAKE_RUNTIME_OUTPUT_DIRECTORY
}
/unittest
WORKING_DIRECTORY
${
CMAKE_SOURCE_DIR
}
/bin
)
IF
((
NOT MSVC
)
AND
(
CMAKE_BUILD_TYPE STREQUAL
"Debug"
))
add_test
(
NAME symbol_check
COMMAND sh -c
"objdump -t -C libnamespacetest.a | grep rapidjson ; test $? -ne 0"
WORKING_DIRECTORY
${
CMAKE_CURRENT_BINARY_DIR
}
)
ENDIF
()
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment