ctest Questions
2
Solved
I have found that generic ctest command doesn't give much information about the tests, so I would like to add ctest --output-on-failure but not have the users to worry about the flag. I want them j...
1
I use Ctest to run a bunch of google tests that I have registered using add_test(). Currently, these tests do not take any arguments. However, I want to give them all arguments (common to all, spec...
Betweentimes asked 6/7, 2016 at 21:13
1
I am trying to use googletest with CMake/Ctest. I have several sources files for my tests (each one containing many TEST/TEST_F/... commands) which are located in several directories. I want that t...
Afloat asked 14/6, 2018 at 16:0
1
Solved
I want to use ctest from the command line to run my tests with memcheck and pass in arguments for the memcheck command.
I can run ctest -R my_test to run my test, and I can even run ctest -R my_te...
Palla asked 10/10, 2018 at 0:25
2
Solved
I've written some convenience wrappers around standard CMake commands and want to unit-test this CMake script code to ensure its functionality.
I've made some progress, but there are two things I ...
Echopraxia asked 23/4, 2015 at 9:8
1
Solved
I have a CMake-based project that consists of several sub-components, which can all be independently compiled and tested. The directory layout looks like this:
.
├── CMakeLists.txt
├── comp1
│ ├...
1
The application of interest is a compiler which returns a non-zero exit code when it encounters an error in the source. The unit tests for the compiler are composed of small snippets which intentio...
Ammoniate asked 11/7, 2018 at 15:38
2
Solved
I have a project with the following structure:
linalg
├── build
├── CMakeLists.txt
├── docs
│ └── Doxyfile
├── include
│ └── linalg
│ └── vector3.hpp
├── src
│ ├── CMakeLists.txt
│ └── l...
Gilbertogilbertson asked 25/11, 2012 at 10:29
2
Solved
Suppose in CMakeLists.txt I have
add_executable(mytarget main.cpp)
enable_testing()
add_test(mytarget_test0 mytarget -option0)
Is there any easy way how can I run mytarget in GDB with all comma...
2
Solved
In my CMakeLists.txt I have something like this:
set_property(TEST testX APPEND PROPERTY DEPENDS testY)
set_property(TEST testX APPEND PROPERTY DEPENDS testZ)
And I want some way to run testX ...
1
Solved
I just switched to the last version of QtCreator (4.3.1) and the project explorer now shows many targets like ContinuousBuild, ContinuousConfigure, NightlyBuild, ExperimentalCoverage etc.
How can ...
Rickettsia asked 18/7, 2017 at 14:35
1
Solved
My CMakeLists.txt includes the lines
include(CTest)
enable_testing()
set(CTEST_TEST_TIMEOUT 3)
add_test(...)
ctest works, but ignores my attempt to set the timeout. Rather, it runs with the defa...
2
Solved
I'm looking for successful example of Catch CatchLib integration with CMake test (Ctest) . as I understand this is additional cmake script which has to parse application ouput?
Did someone already...
Drumm asked 20/1, 2016 at 10:1
1
When you do include(CTest) in CMake it includes this line:
option(BUILD_TESTING "Build the testing tree." ON)
I want tests to be not built by default (but overridable on the command line). How c...
3
Solved
I have a directory main, which has the following subdirectories:
A, B, C, D, Test.
In Test, I have a CMakeLists file with the following content:
cmake_minimum_required(VERSION 2.8)
enable_testing...
0
Is there a way to color the ctest output.
For example is it possible to have something similar to the last line being green in case of 100% success
100% tests passed, 0 test failed out of x
or r...
Eirene asked 30/9, 2016 at 17:38
1
I would like to be able in a similar manner as I can run cmake like
cmake --build <bld_directory>
to run ctest like
ctest --build <bld_directory>
Obviously running ctest from the &...
3
I've searched all the docs but can't seem to find a single example of using CTEST_CUSTOM_PRE_TEST.
Basically I need to start and run some commands on the server before the test runs. So I need to a...
2
Solved
Is there a way, ideally from CMakeLists.txt, to setup ctest as to
print a header before running the individual tests,
print a footer after running the individual tests,
make the footer dependent ...
3
Solved
I'm using CTest to launch the tests of my project. I would like to launch only the tests that have failed at the last execution.
Is there a simple way to do that with CTest ?
Vespasian asked 25/11, 2012 at 0:37
2
When I use the ctest interface to cmake (add_test(...)), and run the make target make test, several of my tests fail. When I run each test directly at the command line from the binary build folder,...
Slither asked 23/3, 2016 at 21:55
1
Solved
I work on a large code base that has close to 400 test executables, with run times varying between 0.001 second and 1800 seconds. When some bit of code changes CMake will rebuild intelligently only...
Ene asked 11/1, 2016 at 19:4
2
Solved
Directory prj/test contains some test scripts t01.exe, t02.exe etc. Some of them need input data d01.dat etc, also provided in prj/test. The names of these data files are hard-coded in the tests, a...
3
Solved
The context
I wrote a logger printing messages for the user. Messages with level "debug", "info" or "warning" are printed in std::cout and messages with level "error" or "system_error" are printed...
Torment asked 2/6, 2015 at 10:17
1
Solved
I have a project with a structure
├── CMakeLists.txt
├── mzl.c
├── mzl.h
└── tests
├── CMakeLists.txt
├── mzl-communication-test.c
├── mzl-setup-test.c
├── mzl-test-errors.c
└── mzl-test-erro...
© 2022 - 2024 — McMap. All rights reserved.