Hi, I'm trying to get the automated testcases in nut/tests/ working. But I just cant get a binary out of the build system. The nut/tests/ folder looks good% ls cpputest.cpp example.cpp Makefile Makefile.am Makefile.in and I also tried "autoreconf -i" which gave me an: autoreconf: 'configure.ac' or 'configure.in' is required Any ideas? Best
Charles Lepple
2015-Apr-26 22:35 UTC
[Nut-upsdev] make environment for automated testcases
On Apr 26, 2015, at 5:05 PM, "Nick Ma." <nick.mayerhofer at enchant.at> wrote:> and I also tried "autoreconf -i" which gave me an: > autoreconf: 'configure.ac' or 'configure.in' is requiredautoreconf has to be run from the top level directory. (Not related to this issue, but you might want to use the autogen.sh script to catch any other dependencies, then add --enable-maintainer-mode to the configure parameters so you don't need to manually re-run the auto-tools.) Do you have cppunit installed?
On 27/04/15 00:35, Charles Lepple wrote:> autoreconf has to be run from the top level directory.I did that too.> (Not related to this issue, but you might want to use the autogen.sh > script to catch any other dependencies, then add > --enable-maintainer-mode to the configure parameters so you don't need > to manually re-run the auto-tools.) Do you have cppunit installed?I tried now: %apt-get install libcppunit-dev ~/nut% ./autogen.sh ~/nut% ./configure --with-usb --with-dev --enable-maintainer-mode ~/nut% autoreconf -i ~/nut/tests% make clean;make rm -f cppunittest rm -rf .libs _libs rm -f *.o test -z "cppunittest.log" || rm -f cppunittest.log test -z "cppunittest.trs" || rm -f cppunittest.trs test -z "test-suite.log" || rm -f test-suite.log rm -f *.lo make: Nothing to be done for `all'. But it still doesn't compile any executable: ~/nut/tests% ls cpputest.cpp example.cpp Makefile Makefile.am Makefile.in Best