Test fails on Debian
I am trying to build ktrip on Debian unstable with GCC 11. The build compiles fine. When the tests are run, they fail:
make[3]: Leaving directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
[100%] Built target ktrip
make[2]: Leaving directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
/usr/bin/cmake -E cmake_progress_start /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/CMakeFiles 0
make[1]: Leaving directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
dh_auto_test --buildsystem=kf5
cd obj-x86_64-linux-gnu && make -j5 test ARGS\+=--verbose ARGS\+=-j5
make[1]: Entering directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
Running tests...
/usr/bin/ctest --force-new-ctest-process --verbose -j5
UpdateCTestConfiguration from :/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/DartConfiguration.tcl
UpdateCTestConfiguration from :/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/DartConfiguration.tcl
Test project /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu
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: generate_spdx_bom
2: Test command: /usr/bin/reuse "spdx" "-o" "/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/spdx.txt"
2: Test timeout computed to be: 10000000
test 1
Start 1: appstreamtest
1: Test command: /usr/bin/cmake "-DAPPSTREAMCLI=/usr/bin/appstreamcli" "-DINSTALL_FILES=/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/install_manifest.txt" "-P" "/usr/share/ECM/kde-modules/appstreamtest.cmake"
1: Test timeout computed to be: 10000000
1: Not installed yet, skipping
1/4 Test #1: appstreamtest ................................................ Passed 0.01 sec
2: reuse.project - WARNING - could not find supported VCS
2: reuse.spdx - WARNING - '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/spdx.txt' does not end with .spdx
2/4 Test #2: generate_spdx_bom ............................................ Passed 0.35 sec
test 3
Start 3: licensecheck__build_ktrip_xbgweI_ktrip_21_12__GPL_2_0_only
3: Test command: /usr/bin/python3 "/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/check-outbound-license.py" "-l" "GPL-2.0-only" "-s" "/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/spdx.txt" "-i" "/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/licensecheck__build_ktrip_xbgweI_ktrip_21_12_.txt"
3: Test timeout computed to be: 10000000
test 4
Start 4: licensecheck__build_ktrip_xbgweI_ktrip_21_12__GPL_3_0_only
4: Test command: /usr/bin/python3 "/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/check-outbound-license.py" "-l" "GPL-3.0-only" "-s" "/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/spdx.txt" "-i" "/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/licensecheck__build_ktrip_xbgweI_ktrip_21_12_.txt"
4: Test timeout computed to be: 10000000
3: Parsing SPDX BOM file
3: Checking Target License: GPL-2.0-only
3: -- ./obj-x86_64-linux-gnu/CMakeFiles/3.23.0/CompilerIdCXX/CMakeCXXCompilerId.cpp : ( )
3: -- ./obj-x86_64-linux-gnu/version.h : ( )
3: OK ./src/androidutils.cpp : GPL-2.0-only
3: OK ./src/androidutils.h : GPL-2.0-only
3: OK ./src/controller.cpp : GPL-2.0-only
3: OK ./src/controller.h : GPL-2.0-only
3: OK ./src/formatter.cpp : GPL-2.0-only
3: OK ./src/formatter.h : GPL-2.0-only
3: OK ./src/localizer.cpp : LGPL-2.0-or-later
3: OK ./src/localizer.h : LGPL-2.0-or-later
3: OK ./src/locationcachemodel.cpp : GPL-2.0-only
3: OK ./src/locationcachemodel.h : GPL-2.0-only
3: OK ./src/main.cpp : GPL-2.0-only
3: OK ./src/qml/BackendPage.qml : LGPL-2.0-or-later
3: OK ./src/qml/ConnectionDetailsPage.qml : GPL-2.0-only
3: OK ./src/qml/ConnectionHeading.qml : GPL-2.0-only
3: OK ./src/qml/ConnectionsPage.qml : GPL-2.0-only
3: OK ./src/qml/DatePickerButton.qml : GPL-2.0-only
3: OK ./src/qml/DeparturesPage.qml : GPL-2.0-only
3: OK ./src/qml/LocationQueryPage.qml : GPL-2.0-only
3: OK ./src/qml/QueryPage.qml : GPL-2.0-only
3: OK ./src/qml/TimePickerButton.qml : GPL-2.0-only
3: OK ./src/qml/main.qml : GPL-2.0-only
4: Parsing SPDX BOM file
4: Checking Target License: GPL-3.0-only
4: -- ./obj-x86_64-linux-gnu/CMakeFiles/3.23.0/CompilerIdCXX/CMakeCXXCompilerId.cpp : ( )
4: -- ./obj-x86_64-linux-gnu/version.h : ( )
4: OK ./src/androidutils.cpp : GPL-3.0-only
4: OK ./src/androidutils.cpp : LicenseRef-KDE-Accepted-GPL
4: OK ./src/androidutils.h : GPL-3.0-only
4: OK ./src/androidutils.h : LicenseRef-KDE-Accepted-GPL
4: OK ./src/controller.cpp : GPL-3.0-only
4: OK ./src/controller.cpp : LicenseRef-KDE-Accepted-GPL
4: OK ./src/controller.h : GPL-3.0-only
4: OK ./src/controller.h : LicenseRef-KDE-Accepted-GPL
4: OK ./src/formatter.cpp : GPL-3.0-only
4: OK ./src/formatter.cpp : LicenseRef-KDE-Accepted-GPL
4: OK ./src/formatter.h : GPL-3.0-only
4: OK ./src/formatter.h : LicenseRef-KDE-Accepted-GPL
4: OK ./src/localizer.cpp : LGPL-2.0-or-later
4: OK ./src/localizer.h : LGPL-2.0-or-later
4: OK ./src/locationcachemodel.cpp : GPL-3.0-only
4: OK ./src/locationcachemodel.cpp : LicenseRef-KDE-Accepted-GPL
4: OK ./src/locationcachemodel.h : GPL-3.0-only
4: OK ./src/locationcachemodel.h : LicenseRef-KDE-Accepted-GPL
4: OK ./src/main.cpp : GPL-3.0-only
4: OK ./src/main.cpp : LicenseRef-KDE-Accepted-GPL
4: OK ./src/qml/BackendPage.qml : LGPL-2.0-or-later
4: OK ./src/qml/ConnectionDetailsPage.qml : GPL-3.0-only
4: OK ./src/qml/ConnectionDetailsPage.qml : LicenseRef-KDE-Accepted-GPL
4: OK ./src/qml/ConnectionHeading.qml : GPL-3.0-only
4: OK ./src/qml/ConnectionHeading.qml : LicenseRef-KDE-Accepted-GPL
4: OK ./src/qml/ConnectionsPage.qml : GPL-3.0-only
4: OK ./src/qml/ConnectionsPage.qml : LicenseRef-KDE-Accepted-GPL
4: OK ./src/qml/DatePickerButton.qml : GPL-3.0-only
4: OK ./src/qml/DatePickerButton.qml : LicenseRef-KDE-Accepted-GPL
4: OK ./src/qml/DeparturesPage.qml : GPL-3.0-only
4: OK ./src/qml/DeparturesPage.qml : LicenseRef-KDE-Accepted-GPL
4: OK ./src/qml/LocationQueryPage.qml : GPL-3.0-only
4: OK ./src/qml/LocationQueryPage.qml : LicenseRef-KDE-Accepted-GPL
4: OK ./src/qml/QueryPage.qml : GPL-3.0-only
4: OK ./src/qml/QueryPage.qml : LicenseRef-KDE-Accepted-GPL
4: OK ./src/qml/TimePickerButton.qml : GPL-3.0-only
4: OK ./src/qml/TimePickerButton.qml : LicenseRef-KDE-Accepted-GPL
4: OK ./src/qml/main.qml : GPL-3.0-only
4: OK ./src/qml/main.qml : LicenseRef-KDE-Accepted-GPL
3/4 Test #3: licensecheck__build_ktrip_xbgweI_ktrip_21_12__GPL_2_0_only ...***Failed 0.03 sec
Parsing SPDX BOM file
Checking Target License: GPL-2.0-only
-- ./obj-x86_64-linux-gnu/CMakeFiles/3.23.0/CompilerIdCXX/CMakeCXXCompilerId.cpp : ( )
-- ./obj-x86_64-linux-gnu/version.h : ( )
OK ./src/androidutils.cpp : GPL-2.0-only
OK ./src/androidutils.h : GPL-2.0-only
OK ./src/controller.cpp : GPL-2.0-only
OK ./src/controller.h : GPL-2.0-only
OK ./src/formatter.cpp : GPL-2.0-only
OK ./src/formatter.h : GPL-2.0-only
OK ./src/localizer.cpp : LGPL-2.0-or-later
OK ./src/localizer.h : LGPL-2.0-or-later
OK ./src/locationcachemodel.cpp : GPL-2.0-only
OK ./src/locationcachemodel.h : GPL-2.0-only
OK ./src/main.cpp : GPL-2.0-only
OK ./src/qml/BackendPage.qml : LGPL-2.0-or-later
OK ./src/qml/ConnectionDetailsPage.qml : GPL-2.0-only
OK ./src/qml/ConnectionHeading.qml : GPL-2.0-only
OK ./src/qml/ConnectionsPage.qml : GPL-2.0-only
OK ./src/qml/DatePickerButton.qml : GPL-2.0-only
OK ./src/qml/DeparturesPage.qml : GPL-2.0-only
OK ./src/qml/LocationQueryPage.qml : GPL-2.0-only
OK ./src/qml/QueryPage.qml : GPL-2.0-only
OK ./src/qml/TimePickerButton.qml : GPL-2.0-only
OK ./src/qml/main.qml : GPL-2.0-only
4/4 Test #4: licensecheck__build_ktrip_xbgweI_ktrip_21_12__GPL_3_0_only ...***Failed 0.03 sec
Parsing SPDX BOM file
Checking Target License: GPL-3.0-only
-- ./obj-x86_64-linux-gnu/CMakeFiles/3.23.0/CompilerIdCXX/CMakeCXXCompilerId.cpp : ( )
-- ./obj-x86_64-linux-gnu/version.h : ( )
OK ./src/androidutils.cpp : GPL-3.0-only
OK ./src/androidutils.cpp : LicenseRef-KDE-Accepted-GPL
OK ./src/androidutils.h : GPL-3.0-only
OK ./src/androidutils.h : LicenseRef-KDE-Accepted-GPL
OK ./src/controller.cpp : GPL-3.0-only
OK ./src/controller.cpp : LicenseRef-KDE-Accepted-GPL
OK ./src/controller.h : GPL-3.0-only
OK ./src/controller.h : LicenseRef-KDE-Accepted-GPL
OK ./src/formatter.cpp : GPL-3.0-only
OK ./src/formatter.cpp : LicenseRef-KDE-Accepted-GPL
OK ./src/formatter.h : GPL-3.0-only
OK ./src/formatter.h : LicenseRef-KDE-Accepted-GPL
OK ./src/localizer.cpp : LGPL-2.0-or-later
OK ./src/localizer.h : LGPL-2.0-or-later
OK ./src/locationcachemodel.cpp : GPL-3.0-only
OK ./src/locationcachemodel.cpp : LicenseRef-KDE-Accepted-GPL
OK ./src/locationcachemodel.h : GPL-3.0-only
OK ./src/locationcachemodel.h : LicenseRef-KDE-Accepted-GPL
OK ./src/main.cpp : GPL-3.0-only
OK ./src/main.cpp : LicenseRef-KDE-Accepted-GPL
OK ./src/qml/BackendPage.qml : LGPL-2.0-or-later
OK ./src/qml/ConnectionDetailsPage.qml : GPL-3.0-only
OK ./src/qml/ConnectionDetailsPage.qml : LicenseRef-KDE-Accepted-GPL
OK ./src/qml/ConnectionHeading.qml : GPL-3.0-only
OK ./src/qml/ConnectionHeading.qml : LicenseRef-KDE-Accepted-GPL
OK ./src/qml/ConnectionsPage.qml : GPL-3.0-only
OK ./src/qml/ConnectionsPage.qml : LicenseRef-KDE-Accepted-GPL
OK ./src/qml/DatePickerButton.qml : GPL-3.0-only
OK ./src/qml/DatePickerButton.qml : LicenseRef-KDE-Accepted-GPL
OK ./src/qml/DeparturesPage.qml : GPL-3.0-only
OK ./src/qml/DeparturesPage.qml : LicenseRef-KDE-Accepted-GPL
OK ./src/qml/LocationQueryPage.qml : GPL-3.0-only
OK ./src/qml/LocationQueryPage.qml : LicenseRef-KDE-Accepted-GPL
OK ./src/qml/QueryPage.qml : GPL-3.0-only
OK ./src/qml/QueryPage.qml : LicenseRef-KDE-Accepted-GPL
OK ./src/qml/TimePickerButton.qml : GPL-3.0-only
OK ./src/qml/TimePickerButton.qml : LicenseRef-KDE-Accepted-GPL
OK ./src/qml/main.qml : GPL-3.0-only
OK ./src/qml/main.qml : LicenseRef-KDE-Accepted-GPL
50% tests passed, 2 tests failed out of 4
Total Test time (real) = 0.38 sec
The following tests FAILED:
3 - licensecheck__build_ktrip_xbgweI_ktrip_21_12__GPL_2_0_only (Failed)
4 - licensecheck__build_ktrip_xbgweI_ktrip_21_12__GPL_3_0_only (Failed)
Errors while running CTest
make[1]: *** [Makefile:74: test] Error 8
Let me know if you need more logs/information.