Also verified in a local lxd container, since that was the test case I described:
Package: cmake
Version: 3.22.1-1ubuntu1.22.04.2
ubuntu@cmake-extras:~/cmake-extras-1.6$ ./debian/tests/copyrighttest
-- The C compiler identification is GNU 11.4.0
-- The CXX compiler identification is GNU 11.4.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Configuring done
-- Generating done
-- Build files have been written to: /tmp/tmp.5907bUALIK
+ status=0
+ ctest -V -R must_fail_1
UpdateCTestConfiguration from :/tmp/tmp.5907bUALIK/DartConfiguration.tcl
Parse Config file:/tmp/tmp.5907bUALIK/DartConfiguration.tcl
UpdateCTestConfiguration from :/tmp/tmp.5907bUALIK/DartConfiguration.tcl
Parse Config file:/tmp/tmp.5907bUALIK/DartConfiguration.tcl
Test project /tmp/tmp.5907bUALIK
Constructing a list of tests
Done constructing a list of tests
Updating test list for fixtures
Added 0 tests to meet fixture requirements
Checking test dependency graph...
Checking test dependency graph end
test 1
Start 1: must_fail_1
The following tests FAILED:
1 - must_fail_1 (Failed)
Errors while running CTest
Output from these tests are in: /tmp/tmp.5907bUALIK/Testing/Temporary/LastTest.log
Use "--rerun-failed --output-on-failure" to re-run the failed cases verbosely.
+ ctest -V -R must_fail_4
UpdateCTestConfiguration from :/tmp/tmp.5907bUALIK/DartConfiguration.tcl
Parse Config file:/tmp/tmp.5907bUALIK/DartConfiguration.tcl
UpdateCTestConfiguration from :/tmp/tmp.5907bUALIK/DartConfiguration.tcl
Parse Config file:/tmp/tmp.5907bUALIK/DartConfiguration.tcl
Test project /tmp/tmp.5907bUALIK
Constructing a list of tests
Done constructing a list of tests
Updating test list for fixtures
Added 0 tests to meet fixture requirements
Checking test dependency graph...
Checking test dependency graph end
test 2
Start 2: must_fail_4
The following tests FAILED:
2 - must_fail_4 (Failed)
Errors while running CTest
Output from these tests are in: /tmp/tmp.5907bUALIK/Testing/Temporary/LastTest.log
Use "--rerun-failed --output-on-failure" to re-run the failed cases verbosely.
+ ctest -V -R must_succeed_1
UpdateCTestConfiguration from :/tmp/tmp.5907bUALIK/DartConfiguration.tcl
Parse Config file:/tmp/tmp.5907bUALIK/DartConfiguration.tcl
UpdateCTestConfiguration from :/tmp/tmp.5907bUALIK/DartConfiguration.tcl
Parse Config file:/tmp/tmp.5907bUALIK/DartConfiguration.tcl
Test project /tmp/tmp.5907bUALIK
Constructing a list of tests
Done constructing a list of tests
Updating test list for fixtures
Added 0 tests to meet fixture requirements
Checking test dependency graph...
Checking test dependency graph end
test 3
Start 3: must_succeed_1
3: Test command: /usr/bin/gmake "must_succeed_1_test"
3: Test timeout computed to be: 1500
3: [100%] Generating run_always_must_succeed_1, must_succeed_1.log, must_succeed_1_filtered.log
3: [100%] Built target must_succeed_1_test
1/1 Test #3: must_succeed_1 ................... Passed 5.87 sec
The following tests passed:
must_succeed_1
100% tests passed, 0 tests failed out of 1
Total Test time (real) = 5.87 sec
+ ctest -V -R must_succeed_3
UpdateCTestConfiguration from :/tmp/tmp.5907bUALIK/DartConfiguration.tcl
Parse Config file:/tmp/tmp.5907bUALIK/DartConfiguration.tcl
UpdateCTestConfiguration from :/tmp/tmp.5907bUALIK/DartConfiguration.tcl
Parse Config file:/tmp/tmp.5907bUALIK/DartConfiguration.tcl
Test project /tmp/tmp.5907bUALIK
Constructing a list of tests
Done constructing a list of tests
Updating test list for fixtures
Added 0 tests to meet fixture requirements
Checking test dependency graph...
Checking test dependency graph end
test 4
Start 4: must_succeed_3
4: Test command: /usr/bin/gmake "must_succeed_3_test"
4: Test timeout computed to be: 1500
4: [100%] Generating run_always_must_succeed_3, must_succeed_3.log, must_succeed_3_filtered.log
4: [100%] Built target must_succeed_3_test
1/1 Test #4: must_succeed_3 ................... Passed 5.94 sec
The following tests passed:
must_succeed_3
100% tests passed, 0 tests failed out of 1
Total Test time (real) = 5.94 sec
+ exit 0
+ rm -rf /tmp/tmp.5907bUALIK
Also verified in a local lxd container, since that was the test case I described:
Package: cmake 1ubuntu1. 22.04.2
Version: 3.22.1-
ubuntu@ cmake-extras: ~/cmake- extras- 1.6$ ./debian/ tests/copyright test iguration from :/tmp/tmp. 5907bUALIK/ DartConfigurati on.tcl tmp.5907bUALIK/ DartConfigurati on.tcl iguration from :/tmp/tmp. 5907bUALIK/ DartConfigurati on.tcl tmp.5907bUALIK/ DartConfigurati on.tcl
-- The C compiler identification is GNU 11.4.0
-- The CXX compiler identification is GNU 11.4.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Configuring done
-- Generating done
-- Build files have been written to: /tmp/tmp.5907bUALIK
+ status=0
+ ctest -V -R must_fail_1
UpdateCTestConf
Parse Config file:/tmp/
UpdateCTestConf
Parse Config file:/tmp/
Test project /tmp/tmp.5907bUALIK
Constructing a list of tests
Done constructing a list of tests
Updating test list for fixtures
Added 0 tests to meet fixture requirements
Checking test dependency graph...
Checking test dependency graph end
test 1
Start 1: must_fail_1
1: Test command: /usr/bin/gmake "must_fail_1_test" must_fail_ 1, must_fail_1.log, must_fail_ 1_filtered. log cmake-extras- 1.6/examples/ copyrighttest- demo/no_ copyright. cpp: *No copyright* UNKNOWN cmake-extras- 1.6/examples/ copyrighttest- demo/no_ copyright. h: *No copyright* UNKNOWN must_fail_ 1_test. dir/build. make:73: run_always_ must_fail_ 1] Error 1 Makefile2: 842: CMakeFiles/ must_fail_ 1_test. dir/all] Error 2 Makefile2: 849: CMakeFiles/ must_fail_ 1_test. dir/rule] Error 2 ....... ....... .***Failed 5.52 sec
1: Test timeout computed to be: 1500
1: [100%] Generating run_always_
1: /home/ubuntu/
1: /home/ubuntu/
1: gmake[3]: *** [CMakeFiles/
1: gmake[2]: *** [CMakeFiles/
1: gmake[1]: *** [CMakeFiles/
1: gmake: *** [Makefile:498: must_fail_1_test] Error 2
1/1 Test #1: must_fail_1 .......
0% tests passed, 1 tests failed out of 1
Total Test time (real) = 5.52 sec
The following tests FAILED: 5907bUALIK/ Testing/ Temporary/ LastTest. log on-failure" to re-run the failed cases verbosely. iguration from :/tmp/tmp. 5907bUALIK/ DartConfigurati on.tcl tmp.5907bUALIK/ DartConfigurati on.tcl iguration from :/tmp/tmp. 5907bUALIK/ DartConfigurati on.tcl tmp.5907bUALIK/ DartConfigurati on.tcl
1 - must_fail_1 (Failed)
Errors while running CTest
Output from these tests are in: /tmp/tmp.
Use "--rerun-failed --output-
+ ctest -V -R must_fail_4
UpdateCTestConf
Parse Config file:/tmp/
UpdateCTestConf
Parse Config file:/tmp/
Test project /tmp/tmp.5907bUALIK
Constructing a list of tests
Done constructing a list of tests
Updating test list for fixtures
Added 0 tests to meet fixture requirements
Checking test dependency graph...
Checking test dependency graph end
test 2
Start 2: must_fail_4
2: Test command: /usr/bin/gmake "must_fail_4_test" must_fail_ 4, must_fail_4.log, must_fail_ 4_filtered. log cmake-extras- 1.6/examples/ copyrighttest- demo/no_ copyright. cpp: *No copyright* UNKNOWN must_fail_ 4_test. dir/build. make:73: run_always_ must_fail_ 4] Error 1 Makefile2: 868: CMakeFiles/ must_fail_ 4_test. dir/all] Error 2 Makefile2: 875: CMakeFiles/ must_fail_ 4_test. dir/rule] Error 2 ....... ....... .***Failed 5.52 sec
2: Test timeout computed to be: 1500
2: [100%] Generating run_always_
2: /home/ubuntu/
2: gmake[3]: *** [CMakeFiles/
2: gmake[2]: *** [CMakeFiles/
2: gmake[1]: *** [CMakeFiles/
2: gmake: *** [Makefile:511: must_fail_4_test] Error 2
1/1 Test #2: must_fail_4 .......
0% tests passed, 1 tests failed out of 1
Total Test time (real) = 5.53 sec
The following tests FAILED: 5907bUALIK/ Testing/ Temporary/ LastTest. log on-failure" to re-run the failed cases verbosely. iguration from :/tmp/tmp. 5907bUALIK/ DartConfigurati on.tcl tmp.5907bUALIK/ DartConfigurati on.tcl iguration from :/tmp/tmp. 5907bUALIK/ DartConfigurati on.tcl tmp.5907bUALIK/ DartConfigurati on.tcl
2 - must_fail_4 (Failed)
Errors while running CTest
Output from these tests are in: /tmp/tmp.
Use "--rerun-failed --output-
+ ctest -V -R must_succeed_1
UpdateCTestConf
Parse Config file:/tmp/
UpdateCTestConf
Parse Config file:/tmp/
Test project /tmp/tmp.5907bUALIK
Constructing a list of tests
Done constructing a list of tests
Updating test list for fixtures
Added 0 tests to meet fixture requirements
Checking test dependency graph...
Checking test dependency graph end
test 3
Start 3: must_succeed_1
3: Test command: /usr/bin/gmake "must_succeed_ 1_test" must_succeed_ 1, must_succeed_1.log, must_succeed_ 1_filtered. log
3: Test timeout computed to be: 1500
3: [100%] Generating run_always_
3: [100%] Built target must_succeed_1_test
1/1 Test #3: must_succeed_1 ................... Passed 5.87 sec
The following tests passed:
must_succeed_1
100% tests passed, 0 tests failed out of 1
Total Test time (real) = 5.87 sec iguration from :/tmp/tmp. 5907bUALIK/ DartConfigurati on.tcl tmp.5907bUALIK/ DartConfigurati on.tcl iguration from :/tmp/tmp. 5907bUALIK/ DartConfigurati on.tcl tmp.5907bUALIK/ DartConfigurati on.tcl
+ ctest -V -R must_succeed_3
UpdateCTestConf
Parse Config file:/tmp/
UpdateCTestConf
Parse Config file:/tmp/
Test project /tmp/tmp.5907bUALIK
Constructing a list of tests
Done constructing a list of tests
Updating test list for fixtures
Added 0 tests to meet fixture requirements
Checking test dependency graph...
Checking test dependency graph end
test 4
Start 4: must_succeed_3
4: Test command: /usr/bin/gmake "must_succeed_ 3_test" must_succeed_ 3, must_succeed_3.log, must_succeed_ 3_filtered. log
4: Test timeout computed to be: 1500
4: [100%] Generating run_always_
4: [100%] Built target must_succeed_3_test
1/1 Test #4: must_succeed_3 ................... Passed 5.94 sec
The following tests passed:
must_succeed_3
100% tests passed, 0 tests failed out of 1
Total Test time (real) = 5.94 sec
+ exit 0
+ rm -rf /tmp/tmp.5907bUALIK