Skip to content

Autodetect catch tests

This makes tests show individually while execution instead of one line for test_all, according to catch documentaion 1.

Before:

ninja: Entering directory `build'
[0/1] Running tests...
Test project /build/corectrl/src/build
    Start 1: test_all
1/1 Test #1: test_all .........................   Passed    0.05 sec

100% tests passed, 0 tests failed out of 1

Total Test time (real) =   0.05 sec

After:

ninja -C cmake-build-debug test
ninja: Entering directory `cmake-build-debug'
[0/1] Running tests...
Test project /home/inglor/workspace/junk/corectrl/cmake-build-debug
      Start  1: AMD FanAuto tests
 1/63 Test  #1: AMD FanAuto tests ................   Passed    0.01 sec
      Start  2: AMD FanCurve tests
 2/63 Test  #2: AMD FanCurve tests ...............   Passed    0.01 sec
      Start  3: AMD FanFixed tests
 3/63 Test  #3: AMD FanFixed tests ...............   Passed    0.01 sec
      Start  4: AMD FanMode tests
 4/63 Test  #4: AMD FanMode tests ................   Passed    0.01 sec
 [..]
 62/63 Test #62: SWInfoMesa tests .................   Passed    0.01 sec
      Start 63: SysModel tests
 63/63 Test #63: SysModel tests ...................   Passed    0.01 sec

100% tests passed, 0 tests failed out of 63

Total Test time (real) =   0.71 sec
Edited by Leonidas Spyropoulos

Merge request reports