Skip to content
Snippets Groups Projects
Commit 068cb76a authored by Serge Lamikhov-Center's avatar Serge Lamikhov-Center
Browse files

Most of the tests are passing

parent 09044430
Branches
Tags
No related merge requests found
......@@ -8,13 +8,13 @@
"name": "Run ELFIO Tests",
"type": "cppdbg",
"request": "launch",
"program": "${workspaceFolder}/tests/ELFIOTest",
"program": "${workspaceFolder}/build/tests/ELFIOTest",
"args": [
"-r",
"short"
],
"stopAtEntry": false,
"cwd": "${workspaceFolder}/tests",
"cwd": "${workspaceFolder}/build/tests",
"environment": [],
"externalConsole": false,
"MIMode": "gdb",
......
......@@ -73,5 +73,29 @@
"typeinfo": "cpp",
"variant": "cpp"
},
"svn.ignoreMissingSvnWarning": true
"svn.ignoreMissingSvnWarning": true,
"editor.tokenColorCustomizations": {
"textMateRules": [
{
"scope": "googletest.failed",
"settings": {
"foreground": "#f00"
}
},
{
"scope": "googletest.passed",
"settings": {
"foreground": "#0f0"
}
},
{
"scope": "googletest.run",
"settings": {
"foreground": "#0f0"
}
}
]
},
"gtest-adapter.debugConfig": "Run ELFIO Tests",
"gtest-adapter.supportLocation": true
}
\ No newline at end of file
# Unit tests are written using the Boost unit test framework
find_package(Boost REQUIRED COMPONENTS unit_test_framework)
include(FetchContent)
FetchContent_Declare(
googletest
URL https://github.com/google/googletest/archive/9a32aee22d771387c494be2d8519fbdf46a713b2.zip
)
# For Windows: Prevent overriding the parent project's compiler/linker settings
set(gtest_force_shared_crt ON CACHE BOOL "" FORCE)
FetchContent_MakeAvailable(googletest)
enable_testing()
# Find all the binary files used for testing and copy them into the build
# directory. This allows the test to be run from the build directory
......@@ -33,7 +44,7 @@ target_link_libraries(
ELFIOTest
PRIVATE
elfio::elfio
Boost::unit_test_framework)
gtest_main)
add_test(
NAME
......@@ -44,3 +55,6 @@ add_test(
${CMAKE_CURRENT_BINARY_DIR})
add_dependencies(check ELFIOTest)
include(GoogleTest)
gtest_discover_tests(ELFIOTest)
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment