Bug #1032
make test error
100%
Description
[trifoglio@ciws02 PacketLib]$ make tests
gcc -fexceptions -Wall -I ./include -O2 -O0 -m64 -fPIC -g -c test/InputPacketStreamFileTest.cpp -o test/InputPacketStreamFileTest.o -I /usr/include/cppunit
test/InputPacketStreamFileTest.cpp:16:32: error: cppunit/TestCaller.h: No such file or directory
test/InputPacketStreamFileTest.cpp:17:31: error: cppunit/TestSuite.h: No such file or directory
In file included from test/InputPacketStreamFileTest.cpp:18:
test/InputPacketStreamFileTest.h:19:33: error: cppunit/TestFixture.h: No such file or directory
test/InputPacketStreamFileTest.h:20:45: error: cppunit/extensions/HelperMacros.h: No such file or directory
In file included from test/InputPacketStreamFileTest.cpp:18:
test/InputPacketStreamFileTest.h:23: error: âCppUnitâ has not been declared
test/InputPacketStreamFileTest.h:23: error: expected â{â before âTestFixtureâ
test/InputPacketStreamFileTest.h:23: error: invalid type in declaration before â{â token
test/InputPacketStreamFileTest.h:23: warning: extended initializer lists only available with -std=c++0x or -std=gnu++0x
test/InputPacketStreamFileTest.h:25: error: expected primary-expression before â)â token
test/InputPacketStreamFileTest.h:25: error: âCPPUNIT_TEST_SUITEâ was not declared in this scope
test/InputPacketStreamFileTest.h:25: error: expected â}â before â;â token
test/InputPacketStreamFileTest.h:26: error: expected constructor, destructor, or type conversion before â(â token
test/InputPacketStreamFileTest.h:27: error: expected constructor, destructor, or type conversion before â;â token
test/InputPacketStreamFileTest.h:29: error: expected unqualified-id before âpublicâ
test/InputPacketStreamFileTest.h:33: error: expected unqualified-id before âprotectedâ
test/InputPacketStreamFileTest.h:36: error: expected unqualified-id before âprivateâ
test/InputPacketStreamFileTest.h:38: error: expected declaration before â}â token
make: *** [test/InputPacketStreamFileTest.o] Error 1
Updated by Andrea Bulgarelli about 11 years ago
- Assignee changed from Andrea Bulgarelli to Fulvio Gianotti
Ciao Fulvio
bisogna installare CppUnit su ciws0x, ed è installata su /usr/include/cppunit.
Grazie
Updated by Fulvio Gianotti about 11 years ago
cppunit sembra far parte del sistema Centos6.x¶
Ho provato a cercarla su astriprod e l'ho installata nella versione a 64bit
Sotto Illustrati tutti i passi e copia dei log
[root@astriprod ~]# yum search cppunit Loaded plugins: fastestmirror, refresh-packagekit, security Loading mirror speeds from cached hostfile * base: centos.mirror.range-id.it * contrib: centos.mirror.range-id.it * epel: mirror.switch.ch * extras: centos.mirror.range-id.it * updates: centos.mirror.range-id.it epel/pkgtags | 609 kB 00:00 ====================================================== N/S Matched: cppunit ======================================================= cppunit-devel.i686 : Libraries and headers for cppunit development cppunit-devel.x86_64 : Libraries and headers for cppunit development cppunit-doc.x86_64 : HTML formatted API documention for cppunit cppunit.i686 : C++ unit testing framework cppunit.x86_64 : C++ unit testing framework Name and summary matches only, use "search all" for everything.
Installo la cppunit:
root@astriprod ~]# yum install cppunit.x86_64
Installo la devel e la documentazione
[root@astriprod ~]# yum install cppunit-devel.x86_64 [root@astriprod ~]# yum install cppunit-doc.x86_64
Qui sotto tutti i log di installazione
[root@astriprod ~]# yum install cppunit.x86_64 Loaded plugins: fastestmirror, refresh-packagekit, security Loading mirror speeds from cached hostfile * base: centos.mirror.range-id.it * contrib: centos.mirror.range-id.it * epel: mirror.switch.ch * extras: centos.mirror.range-id.it * updates: centos.mirror.range-id.it Setting up Install Process Resolving Dependencies --> Running transaction check ---> Package cppunit.x86_64 0:1.12.1-3.1.el6 will be installed --> Finished Dependency Resolution Dependencies Resolved =================================================================================================================================== Package Arch Version Repository Size =================================================================================================================================== Installing: cppunit x86_64 1.12.1-3.1.el6 base 153 k Transaction Summary =================================================================================================================================== Install 1 Package(s) Total download size: 153 k Installed size: 498 k Is this ok [y/N]: y Downloading Packages: cppunit-1.12.1-3.1.el6.x86_64.rpm | 153 kB 00:01 Running rpm_check_debug Running Transaction Test Transaction Test Succeeded Running Transaction Installing : cppunit-1.12.1-3.1.el6.x86_64 1/1 Verifying : cppunit-1.12.1-3.1.el6.x86_64 1/1 Installed: cppunit.x86_64 0:1.12.1-3.1.el6 Complete! [root@astriprod ~]# yum install cppunit-devel.x86_64 Loaded plugins: fastestmirror, refresh-packagekit, security Loading mirror speeds from cached hostfile * base: centos.mirror.range-id.it * contrib: centos.mirror.range-id.it * epel: mirror.switch.ch * extras: centos.mirror.range-id.it * updates: centos.mirror.range-id.it Setting up Install Process Resolving Dependencies --> Running transaction check ---> Package cppunit-devel.x86_64 0:1.12.1-3.1.el6 will be installed --> Finished Dependency Resolution Dependencies Resolved =================================================================================================================================== Package Arch Version Repository Size =================================================================================================================================== Installing: cppunit-devel x86_64 1.12.1-3.1.el6 base 63 k Transaction Summary =================================================================================================================================== Install 1 Package(s) Total download size: 63 k Installed size: 209 k Is this ok [y/N]: y Downloading Packages: cppunit-devel-1.12.1-3.1.el6.x86_64.rpm | 63 kB 00:00 Running rpm_check_debug Running Transaction Test Transaction Test Succeeded Running Transaction Installing : cppunit-devel-1.12.1-3.1.el6.x86_64 1/1 Verifying : cppunit-devel-1.12.1-3.1.el6.x86_64 1/1 Installed: cppunit-devel.x86_64 0:1.12.1-3.1.el6 Complete! [root@astriprod ~]# yum install cppunit-doc.x86_64 Loaded plugins: fastestmirror, refresh-packagekit, security Loading mirror speeds from cached hostfile * base: centos.mirror.range-id.it * contrib: centos.mirror.range-id.it * epel: mirror.switch.ch * extras: centos.mirror.range-id.it * updates: centos.mirror.range-id.it Setting up Install Process Resolving Dependencies --> Running transaction check ---> Package cppunit-doc.x86_64 0:1.12.1-3.1.el6 will be installed --> Finished Dependency Resolution Dependencies Resolved =================================================================================================================================== Package Arch Version Repository Size =================================================================================================================================== Installing: cppunit-doc x86_64 1.12.1-3.1.el6 base 7.4 M Transaction Summary =================================================================================================================================== Install 1 Package(s) Total download size: 7.4 M Installed size: 12 M Is this ok [y/N]: y Downloading Packages: cppunit-doc-1.12.1-3.1.el6.x86_64.rpm | 7.4 MB 00:37 Running rpm_check_debug Running Transaction Test Transaction Test Succeeded Running Transaction Installing : cppunit-doc-1.12.1-3.1.el6.x86_64 1/1 Verifying : cppunit-doc-1.12.1-3.1.el6.x86_64 1/1 Installed: cppunit-doc.x86_64 0:1.12.1-3.1.el6 Complete! [root@astriprod ~]#
Updated by Massimo Trifoglio about 11 years ago
- Due date set to 10/09/2013
- Status changed from New to Closed
- Assignee changed from Fulvio Gianotti to Andrea Bulgarelli
- % Done changed from 0 to 100
- Estimated time set to 1.00 h
Provato con esito positivo su astriprod.iasfbo.inaf.it
git clone git://ciws.iasfbo.inaf.it/CIWS/DPS/PacketLib.git
cd PacketLib
make
make tests
cd test
./runtests
Che ha terminato con:
: OK
OK (1)
e ha generato il file per Jenkis:
cppTestBasicMathResults.xml