Autotests support
Hi, I've prepared koko package to be included in Debian, but haven't been able to get autotests to work and package reviewer asked to give this point at least a try... (longer reference at Debian MR)
I'm stuck especially on reversegeocodertest
********* Start testing of ReverseGeoCoderTest *********
Config: Using QtTest library 5.15.10, Qt 5.15.10 (x86_64-little_endian-lp64 shared (dynamic) release build; by GCC 13.1.0), debian unknown
PASS : ReverseGeoCoderTest::initTestCase()
QFATAL : ReverseGeoCoderTest::testSimple() ASSERT: "!citiesPath.isEmpty()" in file ./src/reversegeocoder.cpp, line 26
FAIL! : ReverseGeoCoderTest::testSimple() Received a fatal error.
Loc: [Unknown file(0)]
Totals: 1 passed, 1 failed, 0 skipped, 0 blacklisted, 0ms
********* Finished testing of ReverseGeoCoderTest *********
which, as far as I've understood, fails at src/reversegeocoder.cpp#L25 because QStandardPaths::locate(QStandardPaths::AppDataLocation, "cities1000.txt")
cannot find the text file. For this, Qt reference explains that on Linux systems QStandardPaths::AppDataLocation
is expected to be one of the following "~/.local/share/<APPNAME>", "/usr/local/share/<APPNAME>", "/usr/share/<APPNAME>"
but I haven't been able to configure that for the test environment.
Any hint on this? Thank you!