cppunit-devel Mailing List for CppUnit - C++ port of JUnit (Page 36)
Brought to you by:
blep
You can subscribe to this list here.
2001 |
Jan
|
Feb
|
Mar
|
Apr
(21) |
May
(96) |
Jun
(109) |
Jul
(42) |
Aug
(6) |
Sep
(106) |
Oct
(60) |
Nov
(20) |
Dec
(6) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2002 |
Jan
(7) |
Feb
(11) |
Mar
(49) |
Apr
(124) |
May
(30) |
Jun
(37) |
Jul
(53) |
Aug
(33) |
Sep
(21) |
Oct
(22) |
Nov
(19) |
Dec
(15) |
2003 |
Jan
(34) |
Feb
(25) |
Mar
(11) |
Apr
(12) |
May
(16) |
Jun
(24) |
Jul
(23) |
Aug
(23) |
Sep
(42) |
Oct
(7) |
Nov
(32) |
Dec
(33) |
2004 |
Jan
(41) |
Feb
(41) |
Mar
(24) |
Apr
(25) |
May
(18) |
Jun
(13) |
Jul
(11) |
Aug
(15) |
Sep
(22) |
Oct
(10) |
Nov
(15) |
Dec
(9) |
2005 |
Jan
(4) |
Feb
(15) |
Mar
(11) |
Apr
(16) |
May
(29) |
Jun
(17) |
Jul
(27) |
Aug
(12) |
Sep
(9) |
Oct
(10) |
Nov
(5) |
Dec
(6) |
2006 |
Jan
(2) |
Feb
(6) |
Mar
(7) |
Apr
(2) |
May
(1) |
Jun
(5) |
Jul
(8) |
Aug
(6) |
Sep
(10) |
Oct
(11) |
Nov
(15) |
Dec
(2) |
2007 |
Jan
(12) |
Feb
(22) |
Mar
(10) |
Apr
(7) |
May
(1) |
Jun
(8) |
Jul
(4) |
Aug
(1) |
Sep
(2) |
Oct
(1) |
Nov
|
Dec
|
2008 |
Jan
|
Feb
(7) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2009 |
Jan
|
Feb
|
Mar
(1) |
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
(7) |
Dec
|
2010 |
Jan
(1) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2012 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
(1) |
Sep
|
Oct
|
Nov
|
Dec
|
2014 |
Jan
|
Feb
(1) |
Mar
(1) |
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: Magne B. <bo...@it...> - 2002-05-24 16:08:19
|
Thank you all for the helpful information. I was able to build cppunit for Sun 6.0 by adding the -pta and -instances=static options. However, when I do a "make check" it starts printing "Output line too long." and I have to kill it after a while. But after doing a "make install" I am able to use the cppunit library, so it seems like it was able to build fine. Cppunit will not work with Sun 5.0 because Sun 5.0 doesn't support member templates. Thanks, Magne -----Original Message----- From: Lavoie Philippe [mailto:la...@yu...] Sent: Friday, May 24, 2002 7:54 AM To: David Marcombes Cc: bo...@it...; cpp...@li... Subject: Re: [Cppunit-devel] Building cppunit for Sun 5.0 and 6.0 compilers David Marcombes wrote: Magne, I do think 6.0 supports templates You might want to try use different options for CC, I've seen this kind of problem before. There is on option -instances ( extern static global ) Give it a try it might help. In a project I also had to use -pta ( equivalent to -template=wholeclass ). I do remember what was the exact combination, hopefully it will trigger some memories here. Hope it Helps David M. I concur with David, I checked my old configuration files and I have something like the following inside the configure.in if test "$CXX" = CC; then case "$target_os" in solaris*) CXXFLAGS=$CXXFLAGS" -pta" complex_lib="-lcomplex" clean_list="-r Templates.DB" ;; irix*) CXXFLAGS=$CXXFLAGS" -pta -n32 -64" complex_lib="-lcomplex" clean_list="-r Templates.DB ii_files" ;; esac The -pta is pretty much required when you generate a library. Phil |
From: Lavoie P. <la...@yu...> - 2002-05-24 14:55:34
|
David Marcombes wrote: > Magne, > > I do think 6.0 supports templates > > You might want to try use different options for CC, I've seen this > kind of problem before. There is on option -instances ( extern static > global ) Give it a try it might help. In a project I also had to use > -pta ( equivalent to -template=wholeclass ). > I do remember what was the exact combination, hopefully it will > trigger some memories here. > > Hope it Helps > > David M. > I concur with David, I checked my old configuration files and I have something like the following inside the configure.in if test "$CXX" = CC; then case "$target_os" in solaris*) CXXFLAGS=$CXXFLAGS" -pta" complex_lib="-lcomplex" clean_list="-r Templates.DB" ;; irix*) CXXFLAGS=$CXXFLAGS" -pta -n32 -64" complex_lib="-lcomplex" clean_list="-r Templates.DB ii_files" ;; esac The -pta is pretty much required when you generate a library. Phil |
From: David M. <dma...@ga...> - 2002-05-23 16:38:45
|
Magne, I do think 6.0 supports templates You might want to try use different options for CC, I've seen this kind of problem before. There is on option -instances ( extern static global ) Give it a try it might help. In a project I also had to use -pta ( equivalent to -template=wholeclass ). I do remember what was the exact combination, hopefully it will trigger some memories here. Hope it Helps David M. At 03:32 PM 5/22/2002 -0700, Magne Borg wrote: >Hi there, > >I have some problems building/configure cppunit for the Sun 5.0 and 6.0 >compilers. >Is cppunit compatible with these compilers? >If it is compatible, can you specify which macros I should set? > >Here is what my command line looks like when I start configure for th eSun >5.0 compiler: > >./configure --prefix=/home/CppUnit/1.8.0 >CC=/home/SPARCworks/WS5.0/SUNWspro/SC5.0/bin/cc >CXX=/home/SPARCworks/WS5.0/SUNWspro/SC5.0/bin/CC >CXXFLAGS=-I/home/SPARCworks/WS5.0/SUNWspro/SC5.0/include/CC >LDFLAGS=-L/home/SPARCworks/WS5.0/SUNWspro/SC5.0/lib LIBS='-lCstd' >CFLAGS=-I/home/SPARCworks/WS5.0/SUNWspro/SC5.0/include/cc > >It configures and the make runs fine, but make check failes: >% make check >Making check in src >Making check in cppunit >Making check in include >Making check in cppunit >Making check in extensions >Making check in ui >Making check in text >Making check in mfc >Making check in qt >Making check in examples >Making check in hierarchy >make hierarchy >source='BoardGame.cpp' object='BoardGame.o' libtool=no \ >depfile='.deps/BoardGame.Po' tmpdepfile='.deps/BoardGame.TPo' \ >depmode=none /bin/sh ../../config/depcomp \ >/home/SPARCworks/WS5.0/SUNWspro/SC5.0/bin/CC -DHAVE_CONFIG_H -I. -I. >-I../../config -I../../include >-I../../include -I/home/SPARCworks/WS5.0/SUNWspro/SC5.0/include/CC -c >-o BoardGame.o `test -f BoardGame.cpp || echo './'`BoardGame.cpp >source='Chess.cpp' object='Chess.o' libtool=no \ >depfile='.deps/Chess.Po' tmpdepfile='.deps/Chess.TPo' \ >depmode=none /bin/sh ../../config/depcomp \ >/home/SPARCworks/WS5.0/SUNWspro/SC5.0/bin/CC -DHAVE_CONFIG_H -I. -I. >-I../../config -I../../include >-I../../include -I/home/SPARCworks/WS5.0/SUNWspro/SC5.0/include/CC -c >-o Chess.o `test -f Chess.cpp || echo './'`Chess.cpp >source='main.cpp' object='main.o' libtool=no \ >depfile='.deps/main.Po' tmpdepfile='.deps/main.TPo' \ >depmode=none /bin/sh ../../config/depcomp \ >/home/SPARCworks/WS5.0/SUNWspro/SC5.0/bin/CC -DHAVE_CONFIG_H -I. -I. >-I../../config -I../../include >-I../../include -I/home/SPARCworks/WS5.0/SUNWspro/SC5.0/include/CC -c >-o main.o `test -f main.cpp || echo './'`main.cpp >"../../include/cppunit/TextTestResult.h", line 46: Warning: >CppUnit::TextTestResult::addFailure hides the virtual function >CppUnit::TestResult::addFailure(CppUnit::Test*, CppUnit::Exception*). >"../../include/cppunit/extensions/TestSuiteBuilder.h", line 80: Error: >Member templates not implemented. >"BoardGameTest.h", line 12: Where: While specializing >"CppUnit::TestSuiteBuilder<BoardGameTest<BoardGame>>". >"BoardGameTest.h", line 12: Where: Instantiated from static >BoardGameTest<BoardGame>::suite(). >"main.cpp", line 21: Where: Instantiated from non-template code. >1 Error(s) and 1 Warning(s) detected. >*** Error code 1 >make: Fatal error: Command failed for target `main.o' >Current working directory /home/CppUnit/cppunit-1.8.0/examples/hierarchy >*** Error code 1 >make: Fatal error: Command failed for target `check-am' >Current working directory /home/CppUnit/cppunit-1.8.0/examples/hierarchy >*** Error code 1 >make: Fatal error: Command failed for target `check-recursive' >Current working directory /home/CppUnit/cppunit-1.8.0/examples >*** Error code 1 >make: Fatal error: Command failed for target `check-recursive' >I appreciate any comments/help. > >Thank you, >Magne > >e-mail: <mailto:bo...@it...>bo...@it... > David Marcombes - Project Engineer WesternGeco - LTeC::MAP dma...@ga... |
From: Baptiste L. <gai...@fr...> - 2002-05-23 14:39:54
|
It seems that your compiler does not support template methods. You can get around this by commenting out the method addTestCallerForException() in TestSuiteBuilder.h. This means that you will not be able to use CPPUNIT_TEST_EXCEPTION and CPPUNIT_TEST_FAIL macros. I'll fix that issue at a later time (I have the refactoring on paper, just need to get it done). Baptiste. ----- Original Message ----- From: Magne Borg To: cpp...@li... Sent: Thursday, May 23, 2002 12:32 AM Subject: [Cppunit-devel] Building cppunit for Sun 5.0 and 6.0 compilers Hi there, I have some problems building/configure cppunit for the Sun 5.0 and 6.0 compilers. Is cppunit compatible with these compilers? If it is compatible, can you specify which macros I should set? Here is what my command line looks like when I start configure for th eSun 5.0 compiler: ./configure --prefix=/home/CppUnit/1.8.0 CC=/home/SPARCworks/WS5.0/SUNWspro/SC5.0/bin/cc CXX=/home/SPARCworks/WS5.0/SUNWspro/SC5.0/bin/CC CXXFLAGS=-I/home/SPARCworks/WS5.0/SUNWspro/SC5.0/include/CC LDFLAGS=-L/home/SPARCworks/WS5.0/SUNWspro/SC5.0/lib LIBS='-lCstd' CFLAGS=-I/home/SPARCworks/WS5.0/SUNWspro/SC5.0/include/cc It configures and the make runs fine, but make check failes: % make check Making check in src Making check in cppunit Making check in include Making check in cppunit Making check in extensions Making check in ui Making check in text Making check in mfc Making check in qt Making check in examples Making check in hierarchy make hierarchy source='BoardGame.cpp' object='BoardGame.o' libtool=no \ depfile='.deps/BoardGame.Po' tmpdepfile='.deps/BoardGame.TPo' \ depmode=none /bin/sh ../../config/depcomp \ /home/SPARCworks/WS5.0/SUNWspro/SC5.0/bin/CC -DHAVE_CONFIG_H -I. -I. -I../.. /config -I../../include -I../../include -I/home/SPARCworks/WS5.0/SUNWspr o/SC5.0/include/CC -c -o BoardGame.o `test -f BoardGame.cpp || echo './'`BoardGame.cpp source='Chess.cpp' object='Chess.o' libtool=no \ depfile='.deps/Chess.Po' tmpdepfile='.deps/Chess.TPo' \ depmode=none /bin/sh ../../config/depcomp \ /home/SPARCworks/WS5.0/SUNWspro/SC5.0/bin/CC -DHAVE_CONFIG_H -I. -I. -I../.. /config -I../../include -I../../include -I/home/SPARCworks/WS5.0/SUNWspr o/SC5.0/include/CC -c -o Chess.o `test -f Chess.cpp || echo './'`Chess.cpp source='main.cpp' object='main.o' libtool=no \ depfile='.deps/main.Po' tmpdepfile='.deps/main.TPo' \ depmode=none /bin/sh ../../config/depcomp \ /home/SPARCworks/WS5.0/SUNWspro/SC5.0/bin/CC -DHAVE_CONFIG_H -I. -I. -I../.. /config -I../../include -I../../include -I/home/SPARCworks/WS5.0/SUNWspr o/SC5.0/include/CC -c -o main.o `test -f main.cpp || echo './'`main.cpp "../../include/cppunit/TextTestResult.h", line 46: Warning: CppUnit::TextTestResult::addFailure hides the virtual function CppUnit::TestResult::addFailure(CppUnit::Test*, CppUnit::Exception*). "../../include/cppunit/extensions/TestSuiteBuilder.h", line 80: Error: Member templates not implemented. "BoardGameTest.h", line 12: Where: While specializing "CppUnit::TestSuiteBuilder<BoardGameTest<BoardGame>>". "BoardGameTest.h", line 12: Where: Instantiated from static BoardGameTest<BoardGame>::suite(). "main.cpp", line 21: Where: Instantiated from non-template code. 1 Error(s) and 1 Warning(s) detected. *** Error code 1 make: Fatal error: Command failed for target `main.o' Current working directory /home/CppUnit/cppunit-1.8.0/examples/hierarchy *** Error code 1 make: Fatal error: Command failed for target `check-am' Current working directory /home/CppUnit/cppunit-1.8.0/examples/hierarchy *** Error code 1 make: Fatal error: Command failed for target `check-recursive' Current working directory /home/CppUnit/cppunit-1.8.0/examples *** Error code 1 make: Fatal error: Command failed for target `check-recursive' I appreciate any comments/help. Thank you, Magne e-mail: bo...@it... |
From: Magne B. <bo...@it...> - 2002-05-22 22:33:26
|
Hi there, I have some problems building/configure cppunit for the Sun 5.0 and 6.0 compilers. Is cppunit compatible with these compilers? If it is compatible, can you specify which macros I should set? Here is what my command line looks like when I start configure for th eSun 5.0 compiler: ./configure --prefix=/home/CppUnit/1.8.0 CC=/home/SPARCworks/WS5.0/SUNWspro/SC5.0/bin/cc CXX=/home/SPARCworks/WS5.0/SUNWspro/SC5.0/bin/CC CXXFLAGS=-I/home/SPARCworks/WS5.0/SUNWspro/SC5.0/include/CC LDFLAGS=-L/home/SPARCworks/WS5.0/SUNWspro/SC5.0/lib LIBS='-lCstd' CFLAGS=-I/home/SPARCworks/WS5.0/SUNWspro/SC5.0/include/cc It configures and the make runs fine, but make check failes: % make check Making check in src Making check in cppunit Making check in include Making check in cppunit Making check in extensions Making check in ui Making check in text Making check in mfc Making check in qt Making check in examples Making check in hierarchy make hierarchy source='BoardGame.cpp' object='BoardGame.o' libtool=no \ depfile='.deps/BoardGame.Po' tmpdepfile='.deps/BoardGame.TPo' \ depmode=none /bin/sh ../../config/depcomp \ /home/SPARCworks/WS5.0/SUNWspro/SC5.0/bin/CC -DHAVE_CONFIG_H -I. -I. -I../.. /config -I../../include -I../../include -I/home/SPARCworks/WS5.0/SUNWspr o/SC5.0/include/CC -c -o BoardGame.o `test -f BoardGame.cpp || echo './'`BoardGame.cpp source='Chess.cpp' object='Chess.o' libtool=no \ depfile='.deps/Chess.Po' tmpdepfile='.deps/Chess.TPo' \ depmode=none /bin/sh ../../config/depcomp \ /home/SPARCworks/WS5.0/SUNWspro/SC5.0/bin/CC -DHAVE_CONFIG_H -I. -I. -I../.. /config -I../../include -I../../include -I/home/SPARCworks/WS5.0/SUNWspr o/SC5.0/include/CC -c -o Chess.o `test -f Chess.cpp || echo './'`Chess.cpp source='main.cpp' object='main.o' libtool=no \ depfile='.deps/main.Po' tmpdepfile='.deps/main.TPo' \ depmode=none /bin/sh ../../config/depcomp \ /home/SPARCworks/WS5.0/SUNWspro/SC5.0/bin/CC -DHAVE_CONFIG_H -I. -I. -I../.. /config -I../../include -I../../include -I/home/SPARCworks/WS5.0/SUNWspr o/SC5.0/include/CC -c -o main.o `test -f main.cpp || echo './'`main.cpp "../../include/cppunit/TextTestResult.h", line 46: Warning: CppUnit::TextTestResult::addFailure hides the virtual function CppUnit::TestResult::addFailure(CppUnit::Test*, CppUnit::Exception*). "../../include/cppunit/extensions/TestSuiteBuilder.h", line 80: Error: Member templates not implemented. "BoardGameTest.h", line 12: Where: While specializing "CppUnit::TestSuiteBuilder<BoardGameTest<BoardGame>>". "BoardGameTest.h", line 12: Where: Instantiated from static BoardGameTest<BoardGame>::suite(). "main.cpp", line 21: Where: Instantiated from non-template code. 1 Error(s) and 1 Warning(s) detected. *** Error code 1 make: Fatal error: Command failed for target `main.o' Current working directory /home/CppUnit/cppunit-1.8.0/examples/hierarchy *** Error code 1 make: Fatal error: Command failed for target `check-am' Current working directory /home/CppUnit/cppunit-1.8.0/examples/hierarchy *** Error code 1 make: Fatal error: Command failed for target `check-recursive' Current working directory /home/CppUnit/cppunit-1.8.0/examples *** Error code 1 make: Fatal error: Command failed for target `check-recursive' I appreciate any comments/help. Thank you, Magne e-mail: bo...@it... |
From: Baptiste L. <gai...@fr...> - 2002-05-22 17:55:46
|
As usal, the snapshop can be found at: http://cppunit.sourceforge.net/snapshot/ http://cppunit.sourceforge.net/snapshot/cppunit-1.9.6.tar.gz http://cppunit.sourceforge.net/snapshot/cppunit-docs-1.9.6.tar.gz See below... ----- Original Message ----- From: "Luis Joaquim" <ljo...@cr...> To: "Baptiste Lepilleur" <gai...@fr...> Cc: <cpp...@li...> Sent: Wednesday, May 22, 2002 7:36 PM Subject: Re[2]: [Cppunit-devel] XML Log Report > Hello, > > Thanks for your URL. > > "JUnit format" is not a good expression. What I meant is XML format > similiar to JUnit - in order to use the same XSL. > > But, let me explain my problem: thoses logs (even the ones in the URL > you sent) don't show the SUITE of the tests! :( > > For instance, if I have two classes (suites), each one has two methods (a, b, > c, d), I don't want to simply know: test d failed. How are you creating your test suite? The helper macros include the test fixture name in the test name (to solve the problem indicated above). Baptiste. --- Baptiste Lepilleur <gai...@fr...> http://gaiacrtn.free.fr/ |
From: Luis J. <ljo...@cr...> - 2002-05-22 17:37:17
|
Hello, Thanks for your URL. "JUnit format" is not a good expression. What I meant is XML format similiar to JUnit - in order to use the same XSL. But, let me explain my problem: thoses logs (even the ones in the URL you sent) don't show the SUITE of the tests! :( For instance, if I have two classes (suites), each one has two methods (a, b, c, d), I don't want to simply know: test d failed. I want to know in which suite the test is. (you can see this in a JUnit report). --another question: WHERE is the cppunit 1.9 ?!? I will wait for you anwser. Thanks again, Luis Joaquim Wednesday, May 22, 2002, 6:18:19 PM, you wrote: BL> In the contrib directory you can find some XSL scripts to convert the XML BL> output to HTML. You can find a few other at: BL> http://www.trickpalace.net/cppll/cuppa/work/ BL> (thanks to 'cuppa' project team). BL> What is JUnit format ? Could the conversion be done with a simple XSL script BL> ? BL> Baptiste. BL> ----- Original Message ----- BL> From: "Luis Joaquim" <ljo...@cr...> BL> To: <cpp...@li...> BL> Sent: Monday, May 20, 2002 5:18 PM BL> Subject: [Cppunit-devel] XML Log Report >> Hello, >> >> Cppunit is a great tool! >> >> The defined Macros help a lot, simplifying the code. >> >> My question is: does anyone has produced a XML output similar to >> JUnit's ? >> >> It would be very helpful to use the same XSL. >> >> Waiting for an answer, >> >> thanks in advance, >> >> Luis Joaquim >> >> >> _______________________________________________________________ >> Hundreds of nodes, one monster rendering program. >> Now that's a super model! Visit http://clustering.foundries.sf.net/ >> >> _______________________________________________ >> Cppunit-devel mailing list >> Cpp...@li... >> https://lists.sourceforge.net/lists/listinfo/cppunit-devel >> --- Luis Joaquim Critical Software, S.A. R. Pedro Nunes, IPN 3030-199 Coimbra - Portugal Tel: +351.239.700.945 - Fax +351.239.700.905 http://www.criticalsoftware.com ljo...@cr... |
From: Baptiste L. <gai...@fr...> - 2002-05-22 17:26:34
|
Those issues have already been reported and fixed in 1.9.6. There is also a new example that come with source files and an article (still need clean-up but should help a lot). Thanks for reporting, Baptiste. ----- Original Message ----- From: "Christoph Späth" <chr...@sy...> To: <cpp...@li...> Sent: Wednesday, May 15, 2002 11:10 AM Subject: [Cppunit-devel] Error in the CppUnit Cookbook > Hi! > Yesterday I wrote to the list that I had a problem with the protected > functions setUp() and tearDown(). > > Now a member of the list told me, that these two functions have to be > public. > So please fix the error in the CppUnit Cookbook. > > In the paragraph titled Test Case the methods setUp() and taerDown() are > declared as protected. According to the mail I received from Michel > Armin this is false. > > I think it would be a good idea to offer complete sources of the > cookbook and not only a few parts. (As I mentiones in the other mail > sometimes I didn't know if an identifier is provided from the framework > or c++ or if I have to implement it) > > Regards > Chris > > > _______________________________________________________________ > > Have big pipes? SourceForge.net is looking for download mirrors. We supply > the hardware. You get the recognition. Email Us: ban...@so... > _______________________________________________ > Cppunit-devel mailing list > Cpp...@li... > https://lists.sourceforge.net/lists/listinfo/cppunit-devel > |
From: Baptiste L. <gai...@fr...> - 2002-05-22 17:26:32
|
In the contrib directory you can find some XSL scripts to convert the XML output to HTML. You can find a few other at: http://www.trickpalace.net/cppll/cuppa/work/ (thanks to 'cuppa' project team). What is JUnit format ? Could the conversion be done with a simple XSL script ? Baptiste. ----- Original Message ----- From: "Luis Joaquim" <ljo...@cr...> To: <cpp...@li...> Sent: Monday, May 20, 2002 5:18 PM Subject: [Cppunit-devel] XML Log Report > Hello, > > Cppunit is a great tool! > > The defined Macros help a lot, simplifying the code. > > My question is: does anyone has produced a XML output similar to > JUnit's ? > > It would be very helpful to use the same XSL. > > Waiting for an answer, > > thanks in advance, > > Luis Joaquim > > > _______________________________________________________________ > Hundreds of nodes, one monster rendering program. > Now that's a super model! Visit http://clustering.foundries.sf.net/ > > _______________________________________________ > Cppunit-devel mailing list > Cpp...@li... > https://lists.sourceforge.net/lists/listinfo/cppunit-devel > |
From: Luis J. <ljo...@cr...> - 2002-05-20 15:19:12
|
Hello, Cppunit is a great tool! The defined Macros help a lot, simplifying the code. My question is: does anyone has produced a XML output similar to JUnit's ? It would be very helpful to use the same XSL. Waiting for an answer, thanks in advance, Luis Joaquim |
From: Christophe C. <cab...@wa...> - 2002-05-15 14:20:10
|
Hi, I have some testing dlls which support MFC. I use an old version of TestPlugInRunner qnd I would like to update my dlls to work with the cppunit 1.9.6. I manage to create simple dll but when I create a dll that support MFC I can't load it with Testrunner. I have an error message which say that the symbol cppunitPlugIn is not in my dll. I can't access to this project which is not in the zip file. Somebody can help me ?? If it's possible I would like to join the delepoment team . I already work with cppunit from 6 months and all I had done all the new developpement which appear in the lastest version so maybe we can join our effort!!! thanks christophe |
From: Steve M. R. <ste...@vi...> - 2002-05-15 13:13:54
|
On Wed, May 15, 2002 at 11:10:24AM +0200, Christoph Späth wrote: > Hi! > Yesterday I wrote to the list that I had a problem with the protected > functions setUp() and tearDown(). > > Now a member of the list told me, that these two functions have to be > public. > So please fix the error in the CppUnit Cookbook. Patches are always welcomed! > In the paragraph titled Test Case the methods setUp() and taerDown() are > declared as protected. According to the mail I received from Michel > Armin this is false. > > I think it would be a good idea to offer complete sources of the > cookbook and not only a few parts. I agree. What is needed is someone to type it all up, debug it, and post the files on the list. [Or send them to me and I will check them in.] Thanks, -Steve -- by Rocket to the Moon, by Airplane to the Rocket, by Taxi to the Airport, by Frontdoor to the Taxi, by throwing back the blanket and laying down the legs ... - They Might Be Giants |
From:
<chr...@sy...> - 2002-05-15 09:10:40
|
Hi! Yesterday I wrote to the list that I had a problem with the protected functions setUp() and tearDown(). Now a member of the list told me, that these two functions have to be public. So please fix the error in the CppUnit Cookbook. In the paragraph titled Test Case the methods setUp() and taerDown() are declared as protected. According to the mail I received from Michel Armin this is false. I think it would be a good idea to offer complete sources of the cookbook and not only a few parts. (As I mentiones in the other mail sometimes I didn't know if an identifier is provided from the framework or c++ or if I have to implement it) Regards Chris |
From:
<chr...@sy...> - 2002-05-14 14:34:20
|
Hi! I'm just starting with CppUnit (and to tell the truth, my c++ could be much better...). Sometimes I had problems to figure out what is to be done from me that is not noticed in the Cookbook (e.g. the MathException. After a long time of searching and trying I figured out that this is something that has to be done by me). With the Testing Suite I had a problem with protected. In your manual the functions setUp(), tearDown(), testEquality(), ... are declared as protected. my g++ doesn't compile it until I set it to public. As I told you, my c++ is not so good, so I cannout figure out if it's just an error in the manual or if I didn't see where I made errors in the code. Regards Chris P.S. sorry for my bad English. I'm not a native speaker. |
From: Lavoie P. <la...@yu...> - 2002-05-09 15:12:38
|
Hi, I'm wondering if anyone else has the same problem. I'm stepping through a cppunit program (based on the simple example) and when I reach a CPPUNIT_ASSERT_EQUAL statement which fails. The program exits. Now so far so good as it's the desired behavior, however I did something like this template <class T> class TestMatrix : public TestCase { ... testBob(); .... }; class TestMatrixInt : public TestMatrix<int> { // define the tests here with the tester macros }; class TestMatrixFloat : public TestMatrix<float> { // define the tests here with the tester macros }; The problem is that testBob fails inside the TestMatrixInt class and the break point I've set inside the testBob function is never d for the TestMatrixFloat function. Perhaps it's more to do with gdb and how to set breakpoints inside template codes. Anyway, any help is appreciated. Thanks Phil |
From: Baptiste L. <gai...@fr...> - 2002-05-07 21:43:57
|
Would you mind sending me your test programm (how do you detect the leaks ?). I have a good idea on how to chase it. Thanks in advance, Baptiste. ----- Original Message ----- From: "Doug Sauder" <do...@hu...> To: <cpp...@li...> Sent: Saturday, May 04, 2002 9:29 PM Subject: [Cppunit-devel] Having a memory leak problem > Hi, developers! > > First of all, cppunit is a wonderful tool. I very big "thank you" to all > who have worked to develop it! > > I am using CPPUNIT_ASSERT() in a loop that executes 256**3 times. I am > seeing a memory leak that happens only when I use CPPUNIT_ASSERT() -- I > don't see the memory leak when I use the assert() macro from the standard C > library. The evaluation of the boolean expressions don't create any > objects, nor do they allocate any memory. (At first, I thought that the > expressions weren't being evaluated with the assert() macro because of > NDEBUG, so I verified that they were evaulated.) The memory leak consumes > a lot of memory because of the number of assertions that are evaluated, > making the CCPUNIT_ASSERT() macro unusable. > > I use Visual C++ 6 and version 1.8.0 of cppunit. I used the included > project file to build it (no changes), and I'm using cppunit.lib. I use > the TextUi. > > I spent some time looking at the cppunit source code, but I couldn't find > anything that looked like a memory leak. The assert condition never fails, > so (I believe that implies) the exception isn't being thrown. > > Does anyone have any idea where there might be a memory leak? > > I can also try to run the same code on Solaris with Forte C++ and GCC and > on Linux with GCC. That could help to verify if this is just a Visual C++ > problem. > > > ------------------------------------------- > Doug Sauder > Software Architect > Hunny Software, Inc > Email: do...@hu... > Phone: 301-948-6999 > > > _______________________________________________________________ > > Have big pipes? SourceForge.net is looking for download mirrors. We supply > the hardware. You get the recognition. Email Us: ban...@so... > _______________________________________________ > Cppunit-devel mailing list > Cpp...@li... > https://lists.sourceforge.net/lists/listinfo/cppunit-devel > |
From: Baptiste L. <gai...@fr...> - 2002-05-07 21:43:54
|
I fixed that problem. Thanks, Baptiste. ----- Original Message ----- From: "Lavoie Philippe" <la...@yu...> To: <cpp...@li...> Sent: Tuesday, May 07, 2002 6:21 PM Subject: [Cppunit-devel] patch for Linux > Hi, > > here is a small patch under linux (and I suspect Windows too) > > > Index: src/DllPlugInTester/DllPlugInTester.cpp > =================================================================== > RCS file: /cvsroot/cppunit/cppunit/src/DllPlugInTester/DllPlugInTester.cpp,v > retrieving revision 1.6 > diff -r1.6 DllPlugInTester.cpp > 232c232 > < if ( parser.askBeforeExit() ) > --- > > if ( parser.waitBeforeExit() ) > > > Have fun > > Phil > > > > > _______________________________________________________________ > > Have big pipes? SourceForge.net is looking for download mirrors. We supply > the hardware. You get the recognition. Email Us: ban...@so... > _______________________________________________ > Cppunit-devel mailing list > Cpp...@li... > https://lists.sourceforge.net/lists/listinfo/cppunit-devel > |
From: Lavoie P. <la...@yu...> - 2002-05-07 16:22:23
|
Hi, here is a small patch under linux (and I suspect Windows too) Index: src/DllPlugInTester/DllPlugInTester.cpp =================================================================== RCS file: /cvsroot/cppunit/cppunit/src/DllPlugInTester/DllPlugInTester.cpp,v retrieving revision 1.6 diff -r1.6 DllPlugInTester.cpp 232c232 < if ( parser.askBeforeExit() ) --- > if ( parser.waitBeforeExit() ) Have fun Phil |
From: Baptiste L. <gai...@fr...> - 2002-05-05 10:32:57
|
In version 1.8.0, you needed to grab the instance of the test case you want to test, then pass it to the test runner. Test hierarchy exploration can not be done without dynamic cast (to know if a test is a TestSuite or a TestCase). Version 1.9.? removed that needed by introducing a composite interface in Test. The generic test runner (CppUnit::TestRunner) accept a test path as parameter. You can just give the name of the test you want to run, which in your case is of the form: FixtureName.TestCaseName Single test case name are prefixed by the fixture name to provide a unique name and raised ambiguities that would otherwise be raised in test report (you often have the same test case name in different fixture, such as testConstructor() for example). See TestPath documentation for further details. Baptiste. ----- Original Message ----- From: "Jordan" <jor...@eu...> To: <gai...@fr...> Sent: Friday, May 03, 2002 5:01 PM Subject: Testing individual test cases in a suite > Hi, > > Using 1.8.0 on Linux. > > I have been trying CppUnit of late and have taken the > recommendation of the CookBook to use the Helper macros. > This works great if you want to run all tests or all the > fixtures in a named register. However, what if you only want > to run one test case defined inside a fixture which has been > assigned to a named registry? > > I have looked at the 1.9.6 snapshot and you seem to be > attempting something like this with TestPath but I do not > know how to go about using it. > > So, > > a) Is there a way to to what I want in 1.8.0 > b) Can I do this in 1.9.6 and if so how? > > If the answer is in the documentation point me in the right > direction as I cannot find it there. > > Many thanks, > > J. > > > > |
From: Doug S. <do...@hu...> - 2002-05-04 19:30:19
|
Hi, developers! First of all, cppunit is a wonderful tool. I very big "thank you" to all who have worked to develop it! I am using CPPUNIT_ASSERT() in a loop that executes 256**3 times. I am seeing a memory leak that happens only when I use CPPUNIT_ASSERT() -- I don't see the memory leak when I use the assert() macro from the standard C library. The evaluation of the boolean expressions don't create any objects, nor do they allocate any memory. (At first, I thought that the expressions weren't being evaluated with the assert() macro because of NDEBUG, so I verified that they were evaulated.) The memory leak consumes a lot of memory because of the number of assertions that are evaluated, making the CCPUNIT_ASSERT() macro unusable. I use Visual C++ 6 and version 1.8.0 of cppunit. I used the included project file to build it (no changes), and I'm using cppunit.lib. I use the TextUi. I spent some time looking at the cppunit source code, but I couldn't find anything that looked like a memory leak. The assert condition never fails, so (I believe that implies) the exception isn't being thrown. Does anyone have any idea where there might be a memory leak? I can also try to run the same code on Solaris with Forte C++ and GCC and on Linux with GCC. That could help to verify if this is just a Visual C++ problem. ------------------------------------------- Doug Sauder Software Architect Hunny Software, Inc Email: do...@hu... Phone: 301-948-6999 |
From: Baptiste L. <gai...@fr...> - 2002-05-03 22:27:28
|
QuestionDid you enable RTTI as indicated in the FAQ ? Notes that it is = no longer required in version 1.9.6. Baptiste. ----- Original Message -----=20 From: Nikiforov, Andrei=20 To: 'cpp...@li...'=20 Sent: Thursday, May 02, 2002 5:25 PM Subject: [Cppunit-devel] Question Hi everybody,=20 I tried for the first time to use Cpptest framework ver 1.8.0.=20 1. The application like HostApp was created.=20 2. No compilation errors.=20 3.When I tried to "Browse" I have exception.=20 I found that if I do not register a fixture the Tree is OK (you can = see the test case root)=20 and there is no exception.=20 CPPUNIT_TEST_SUITE( MasterTestCase );=20 // CPPUNIT_TEST( example );=20 CPPUNIT_TEST_SUITE_END();=20 What did I do wrong?=20 Thank you in advance,=20 Andrei Nikiforov=20 |
From: Steve M. R. <ste...@vi...> - 2002-05-03 12:05:04
|
On Fri, May 03, 2002 at 09:37:38AM +0200, Franz Häring wrote: > Hi, > > I've set up my first test program with cppunit and I like it. Thanks to > all who worked on it! > > There is one thing I miss: I would like to display CppUnit's version > along with my app's version on each run of the test. Is there a > getVersion() method or something like that? There's a preprocessor symbol CPPUNIT_VERSION that expands to the version number. Unfortunately, it looks like the manually-configured systems [anyone who does NOT run ./configure] don't have this updated regularly. :-( -S -- by Rocket to the Moon, by Airplane to the Rocket, by Taxi to the Airport, by Frontdoor to the Taxi, by throwing back the blanket and laying down the legs ... - They Might Be Giants |
From: <fh...@it...> - 2002-05-03 07:37:38
|
Hi, I've set up my first test program with cppunit and I like it. Thanks to all who worked on it! There is one thing I miss: I would like to display CppUnit's version along with my app's version on each run of the test. Is there a getVersion() method or something like that? TIA Franz (Please send a copy directly to me - I'm not yet in the mailing list) |
From: Nikiforov, A. <And...@AC...> - 2002-05-02 15:27:43
|
Hi everybody, I tried for the first time to use Cpptest framework ver 1.8.0. 1. The application like HostApp was created. 2. No compilation errors. 3.When I tried to "Browse" I have exception. I found that if I do not register a fixture the Tree is OK (you can see the test case root) and there is no exception. CPPUNIT_TEST_SUITE( MasterTestCase ); // CPPUNIT_TEST( example ); CPPUNIT_TEST_SUITE_END(); What did I do wrong? Thank you in advance, Andrei Nikiforov |
From: Chris N. <mst...@ya...> - 2002-04-30 10:39:31
|
<html> <body aLink=#000000 bgColor=#336699 leftMargin=0 link=#000000 text=#000000 topMargin=0 vLink=#000000 marginheight="0" marginwidth="0"> <center> <br> <table border="0" cellpadding="2" cellspacing="0" width="650" height="400"> <tr> <td bgcolor="#ffffff" align="center"> <img src="http://www.mstcorporation.com/body.jpg"><br> <font face="arial,helvetica" size="2"> <a href="http://www.mstcorporation.com">www.mstcorporation.com</a><br> <a href="mailto:in...@ms...">in...@ms...</a><br> </font> </td> </tr> <tr> <td valign="top" align="center"> <img src="http://www.mstcorporation.com/logo.gif"><br> </td> </tr> </table> <font size="1" face="arial,helvetica" color="white"> To be removed from our list please reply with "remove" in the subject line. We will immediately update our list accordingly. </font> </center> </body> </html> |