Unit test fails on building latest version 4

Post Reply
simosuurla
Posts: 4
Joined: Wed Sep 16, 2020 2:06 am
Real Name: Simo Suurla

Trying to build version 4.12.3 on Ubuntu 20.04, but I'm getting error on unit test and user directory. Any idea why is this issue. If I just make and install without tests. The QLC+ works, but there is issue that user defined fixtures isn't loading. Please.

Code: Select all

********* Start testing of QLCFixtureDefCache_Test *********
Config: Using QtTest library 5.12.8, Qt 5.12.8 (x86_64-little_endian-lp64 shared (dynamic) release build; by GCC 9.3.0)
PASS   : QLCFixtureDefCache_Test::initTestCase()
PASS   : QLCFixtureDefCache_Test::duplicates()
QWARN  : QLCFixtureDefCache_Test::add() bool QLCFixtureDefCache::addFixtureDef(QLCFixtureDef*) Cache already contains "Martin MAC250"
PASS   : QLCFixtureDefCache_Test::add()
QWARN  : QLCFixtureDefCache_Test::fixtureDef() void QLCFixtureDef::checkLoaded(QString) Empty file path provided ! This is a trouble.
QWARN  : QLCFixtureDefCache_Test::fixtureDef() void QLCFixtureDef::checkLoaded(QString) Empty file path provided ! This is a trouble.
QWARN  : QLCFixtureDefCache_Test::fixtureDef() void QLCFixtureDef::checkLoaded(QString) Empty file path provided ! This is a trouble.
QWARN  : QLCFixtureDefCache_Test::fixtureDef() void QLCFixtureDef::checkLoaded(QString) Empty file path provided ! This is a trouble.
PASS   : QLCFixtureDefCache_Test::fixtureDef()
QWARN  : QLCFixtureDefCache_Test::load() bool QLCFixtureDefCache::addFixtureDef(QLCFixtureDef*) Cache already contains "Futurelight CY-200"
QWARN  : QLCFixtureDefCache_Test::load() static QXmlStreamReader* QLCFile::getXMLReader(const QString&) Unable to open file: "Foo/Baz.qxf"
QWARN  : QLCFixtureDefCache_Test::load() QFileDevice::FileError QLCFixtureDef::loadXML(const QString&) Unable to read from "Foo/Baz.qxf"
QWARN  : QLCFixtureDefCache_Test::load() bool QLCFixtureDefCache::loadQXF(const QString&) Fixture definition loading from "Foo/Baz.qxf" failed: "An error occurred when reading from the file."
QWARN  : QLCFixtureDefCache_Test::load() static QXmlStreamReader* QLCFile::getXMLReader(const QString&) Unable to open file: "QLC/Plus.d4"
QWARN  : QLCFixtureDefCache_Test::load() bool QLCFixtureDefCache::loadD4(const QString&) Unable to load D4 fixture from "QLC/Plus.d4" : "Unable to read from QLC/Plus.d4"
PASS   : QLCFixtureDefCache_Test::load()
FAIL!  : QLCFixtureDefCache_Test::defDirectories() 'dir.absolutePath().contains(USERFIXTUREDIR)' returned FALSE. ()
   Loc: [qlcfixturedefcache_test.cpp(211)]
PASS   : QLCFixtureDefCache_Test::cleanupTestCase()
Totals: 6 passed, 1 failed, 0 skipped, 0 blacklisted, 599ms
********* Finished testing of QLCFixtureDefCache_Test *********
User avatar
mcallegari
Posts: 4710
Joined: Sun Apr 12, 2015 9:09 am
Location: Italy
Real Name: Massimo Callegari
Contact:

Moved to software development.

I think I've already heard of this, and if I remember correctly, it happened on a "dirty" build tree.
Try again from scracth (from git clone), following the build instructions online.

[EDIT] this is where I saw it https://github.com/mcallegari/qlcplus/issues/1235
Also, I have just ran the test unit on a Ubuntu 20.04 and it passes.
simosuurla
Posts: 4
Joined: Wed Sep 16, 2020 2:06 am
Real Name: Simo Suurla

Hi,

thank you for your replay. It seemed that issue was somehow related that I was running the build as root. After building as normal user it worked!
Post Reply