Rpi create-deb.sh errors

All the topics related to QLC+ on the Raspberry Pi
Post Reply
lcslouis
Posts: 42
Joined: Wed Apr 15, 2015 10:08 pm
Real Name: Louis Gutenschwager

I am trying to make a install package for 4.8.5 for my collection of pi's i get build errors with tests

Code: Select all

FAIL!  : QLCInputProfile_Test::save() 'ip.saveXML(path) == false' returned FALSE. ()
   Loc: [qlcinputprofile_test.cpp(393)]
PASS   : QLCInputProfile_Test::cleanupTestCase()
Totals: 16 passed, 1 failed, 0 skipped
********* Finished testing of QLCInputProfile_Test *********
/usr/src/qlcplus
1 Engine unit tests failed. Please fix before commit.
Makefile:435: recipe for target 'check' failed
make[1]: *** [check] Error 1
make[1]: Leaving directory '/usr/src/qlcplus'
dh_auto_test: make -j1 check returned exit code 2
debian/rules:8: recipe for target 'build' failed
make: *** [build] Error 29
dpkg-buildpackage: error: debian/rules build gave error exit status 2
User avatar
mcallegari
Posts: 4807
Joined: Sun Apr 12, 2015 9:09 am
Location: Italy
Real Name: Massimo Callegari
Contact:

I don't think you will be able to create a deb file on the RPi.
I've already attempted it and lot of test units fail.
Mostly because the code uses qreal in various places and on an ARM architecture they behave differently than on a desktop.
The test failure in your case is different, but even if we solve it, you won't reach the end in any case.
Sorry
lcslouis
Posts: 42
Joined: Wed Apr 15, 2015 10:08 pm
Real Name: Louis Gutenschwager

Can't we just disable the tests that fail?
User avatar
mcallegari
Posts: 4807
Joined: Sun Apr 12, 2015 9:09 am
Location: Italy
Real Name: Massimo Callegari
Contact:

Nope !
Tests are there to validate the code. If we disable it, they become meaningless.

You can try to comment the tests in the .pro files, but just for your own purposes.
Place a "#" at the beginning of these lines:

Code: Select all

engine/engine.pro
	SUBDIRS += test
ui/ui.pro
	SUBDIRS += test
See if that goes to the end of the deb
Post Reply