Page 1 of 1

Rpi create-deb.sh errors

Posted: Wed May 13, 2015 5:43 pm
by lcslouis
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

Re: Rpi create-deb.sh errors

Posted: Thu May 14, 2015 8:00 am
by mcallegari
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

Re: Rpi create-deb.sh errors

Posted: Sat May 16, 2015 2:56 pm
by lcslouis
Can't we just disable the tests that fail?

Re: Rpi create-deb.sh errors

Posted: Sun May 17, 2015 7:46 am
by mcallegari
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