mockpp-commits Mailing List for Mock Objects for C++ (Page 39)
Brought to you by:
ewald-arnold
You can subscribe to this list here.
2005 |
Jan
|
Feb
(17) |
Mar
(178) |
Apr
(119) |
May
(60) |
Jun
(3) |
Jul
(60) |
Aug
(16) |
Sep
(55) |
Oct
(156) |
Nov
(136) |
Dec
(255) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2006 |
Jan
(98) |
Feb
(8) |
Mar
(57) |
Apr
(43) |
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: Ewald A. <ewa...@us...> - 2005-04-30 21:14:50
|
Update of /cvsroot/mockpp/mockpp/mockpp/docs/en In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv32364/mockpp/docs/en Modified Files: Makefile.am dev_helper.docbook index.docbook Added Files: dev_production.docbook Log Message: time server classes Index: dev_helper.docbook =================================================================== RCS file: /cvsroot/mockpp/mockpp/mockpp/docs/en/dev_helper.docbook,v retrieving revision 1.7 retrieving revision 1.8 diff -u -d -r1.7 -r1.8 --- dev_helper.docbook 4 Mar 2005 23:37:00 -0000 1.7 +++ dev_helper.docbook 30 Apr 2005 21:14:41 -0000 1.8 @@ -186,7 +186,7 @@ <para> Throwing arbitrary exceptions is a bit of a problem since the type of the exception is determined at compile time. So if you want to store an exception and throw it -some time later at a maybe unknown position in your code you must must wrap it in an +some time later at a maybe unknown position in your code you must wrap it in an envelope and delegate the process of throwing to this wrapper.</para> <para>Similar to the according Java classes they are called Index: index.docbook =================================================================== RCS file: /cvsroot/mockpp/mockpp/mockpp/docs/en/index.docbook,v retrieving revision 1.26 retrieving revision 1.27 diff -u -d -r1.26 -r1.27 --- index.docbook 23 Apr 2005 18:12:02 -0000 1.26 +++ index.docbook 30 Apr 2005 21:14:41 -0000 1.27 @@ -10,8 +10,8 @@ <!ENTITY cppunit '<application>cppunit</application>' > <!ENTITY copyyears '2002-2005' > <!ENTITY mockpp_email 'mockpp at ewald-arnold dot de' > - <!ENTITY release_date '<date>2005-04-23</date>' > - <!ENTITY release_info '<releaseinfo>1.07.02</releaseinfo>' > + <!ENTITY release_date '<date>2005-05-01</date>' > + <!ENTITY release_info '<releaseinfo>1.08.00</releaseinfo>' > <!ENTITY chap_bookinfo SYSTEM 'bookinfo.docbook' > <!ENTITY chap_intro SYSTEM 'intro.docbook' > @@ -24,6 +24,7 @@ <!ENTITY sect_dev_advanced_jmock SYSTEM 'dev_advanced_jmock.docbook' > <!ENTITY sect_dev_advanced_poor_man SYSTEM 'dev_poor_mans_mock.docbook' > <!ENTITY sect_dev_helper SYSTEM 'dev_helper.docbook' > + <!ENTITY sect_dev_production SYSTEM 'dev_production.docbook' > <!ENTITY chap_faq SYSTEM 'faq.docbook' > <!ENTITY chap_credits SYSTEM 'credits.docbook' > <!ENTITY chap_appendix SYSTEM 'appendix.docbook' > @@ -44,6 +45,8 @@ §_dev_helper; + §_dev_production; + </chapter> &chap_faq; Index: Makefile.am =================================================================== RCS file: /cvsroot/mockpp/mockpp/mockpp/docs/en/Makefile.am,v retrieving revision 1.19 retrieving revision 1.20 diff -u -d -r1.19 -r1.20 --- Makefile.am 30 Jan 2005 12:09:18 -0000 1.19 +++ Makefile.am 30 Apr 2005 21:14:41 -0000 1.20 @@ -44,7 +44,7 @@ .PHONY: html-files pdf-files doc-dist remote-install -EXTRA_DIST=appendix.docbook bookinfo.docbook credits.docbook customize.xsl\ - dev_advanced.docbook dev_advanced_easymock.docbook\ - dev_advanced_intro.docbook dev_poor_mans_mock.docbook dev_advanced_jmock.docbook dev_basic.docbook\ - dev_helper.docbook dev_intro.docbook faq.docbook index.docbook +EXTRA_DIST=appendix.docbook bookinfo.docbook credits.docbook customize.xsl \ + dev_advanced.docbook dev_advanced_easymock.docbook \ + dev_advanced_intro.docbook dev_poor_mans_mock.docbook dev_advanced_jmock.docbook dev_basic.docbook \ + dev_helper.docbook dev_intro.docbook faq.docbook index.docbook dev_production.docbook --- NEW FILE: dev_production.docbook --- <!-- Support for Production Code $Id: dev_production.docbook,v 1.1 2005/04/30 21:14:41 ewald-arnold Exp $ --> <sect1 id="production"> <title>Support for Production Code</title> <para>To effectively benefit from unit tests it is frequently necessary to optimize production code. The following sections show some of the possibilities. The common pattern is as usual to delegate the detailed work to a helper class which is approriately instantiated. </para> <sect2> <title>Reproducible Time Values</title> <para>Sometimes you need defined time values. Either you want to reduce timeouts or times to wait </para> </sect2> </sect1> |
From: Ewald A. <ewa...@us...> - 2005-04-30 15:06:15
|
Update of /cvsroot/mockpp/mockpp/mockpp/examples/tutorial In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv18839/mockpp/examples/tutorial Modified Files: consumer.h Log Message: time server classes Index: consumer.h =================================================================== RCS file: /cvsroot/mockpp/mockpp/mockpp/examples/tutorial/consumer.h,v retrieving revision 1.3 retrieving revision 1.4 diff -u -d -r1.3 -r1.4 --- consumer.h 24 Apr 2005 11:35:17 -0000 1.3 +++ consumer.h 30 Apr 2005 15:06:05 -0000 1.4 @@ -21,6 +21,7 @@ public: /** Constructs the consumer class. + * @param intf pointer to interface object */ Consumer(Interface *intf); |
From: Ewald A. <ewa...@us...> - 2005-04-30 15:06:15
|
Update of /cvsroot/mockpp/mockpp/mockpp In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv18839/mockpp Modified Files: Makefile.am ThrowableList.h mockpp.h Added Files: MockTimeServer.cpp MockTimeServer.h Log Message: time server classes Index: mockpp.h =================================================================== RCS file: /cvsroot/mockpp/mockpp/mockpp/mockpp.h,v retrieving revision 1.53 retrieving revision 1.54 diff -u -d -r1.53 -r1.54 --- mockpp.h 10 Apr 2005 13:46:28 -0000 1.53 +++ mockpp.h 30 Apr 2005 15:06:05 -0000 1.54 @@ -75,6 +75,8 @@ - \ref grp_constraint - \ref grp_constraint_abbrev - \ref grp_helper + - More about production code + - \ref grp_production */ Index: Makefile.am =================================================================== RCS file: /cvsroot/mockpp/mockpp/mockpp/Makefile.am,v retrieving revision 1.79 retrieving revision 1.80 diff -u -d -r1.79 -r1.80 --- Makefile.am 24 Apr 2005 11:35:16 -0000 1.79 +++ Makefile.am 30 Apr 2005 15:06:04 -0000 1.80 @@ -1,6 +1,7 @@ INCLUDES = -I/usr/local/include $(all_includes) -I$(top_srcdir) -SUBDIRS = chaining compat util builder constraint matcher stub . docs tests po examples +SUBDIRS = chaining compat util builder constraint matcher stub production . docs tests po \ + examples lib_LTLIBRARIES = libmockpp.la @@ -9,15 +10,16 @@ libmockpp_la_LDFLAGS = -no-undefined \ -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) -libmockpp_la_LIBADD = $(top_builddir)/mockpp/util/libutil.la \ - $(top_builddir)/mockpp/stub/libstub.la $(top_builddir)/mockpp/matcher/libmatcher.la \ - $(top_builddir)/mockpp/constraint/libconstraint.la $(top_builddir)/mockpp/compat/libcompat.la \ - $(top_builddir)/mockpp/chaining/libchaining.la $(top_builddir)/mockpp/builder/libbuilder.la +libmockpp_la_LIBADD = $(top_builddir)/mockpp/production/libmockpp_production.la \ + $(top_builddir)/mockpp/util/libutil.la $(top_builddir)/mockpp/stub/libstub.la \ + $(top_builddir)/mockpp/matcher/libmatcher.la $(top_builddir)/mockpp/constraint/libconstraint.la \ + $(top_builddir)/mockpp/compat/libcompat.la $(top_builddir)/mockpp/chaining/libchaining.la \ + $(top_builddir)/mockpp/builder/libbuilder.la libmockpp_la_SOURCES = ExpectationCounter.cpp mockpp.cpp Throwable.cpp \ - ThrowableList.cpp MockObject.cpp VisitableMockObject.cpp VerifiableList.cpp \ - Verifiable.cpp VerifyingTestCase.cpp SelfDescribing.cpp ChainableMockObject.cpp \ - VerifyingTestCaller.cpp TrackingCounter.cpp MixedMockObject.cpp + ThrowableList.cpp MockObject.cpp VisitableMockObject.cpp VerifiableList.cpp \ + Verifiable.cpp VerifyingTestCase.cpp SelfDescribing.cpp ChainableMockObject.cpp \ + VerifyingTestCaller.cpp TrackingCounter.cpp MixedMockObject.cpp MockTimeServer.cpp pkginclude_HEADERS = mockpp_config.h ReturnObjectList.h Expectation.h \ AbstractExpectation.h ExpectationValue.h ExpectationSegment.h ExpectationList.h \ Index: ThrowableList.h =================================================================== RCS file: /cvsroot/mockpp/mockpp/mockpp/ThrowableList.h,v retrieving revision 1.18 retrieving revision 1.19 diff -u -d -r1.18 -r1.19 --- ThrowableList.h 21 Apr 2005 20:35:41 -0000 1.18 +++ ThrowableList.h 30 Apr 2005 15:06:05 -0000 1.19 @@ -50,7 +50,7 @@ public: /** Construct a new empty list - * @param aName Label used to identify list + * @param aName Label used to identify list * @param parent parent verifiable */ ThrowableList(const String &aName, VerifiableList *parent); --- NEW FILE: MockTimeServer.h --- /** @file @brief Time dependent objects $Id: MockTimeServer.h,v 1.1 2005/04/30 15:06:05 ewald-arnold Exp $ **************************************************************************/ /************************************************************************** begin : Sat Apr 30 2005 copyright : (C) 2002-2005 by Ewald Arnold email : mockpp at ewald-arnold dot de This program is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. **/ #ifndef MOCKPP_TimeServerMock_H #define MOCKPP_TimeServerMock_H #include <mockpp/mockpp.h> // always first #include <mockpp/production/TimeServer.h> #include <mockpp/ReturnObjectList.h> namespace mockpp { /** Mock object to return defined time points. * Some unix times: * @li 2005-02-02T10:52:19 ==> 1107337939L (0x4200A2D3) */ class MockTimeServer : public TimeServer { public: /** Construct a mock time server * @param name object name * @param parent parent verifiable */ MockTimeServer(const String &name = MOCKPP_PCHAR("") , mockpp::VerifiableList *parent = 0); /** Returns the "current" unix time * @return unix time */ virtual std::time_t getUnixTime(); /** Adds another "current" unix time * @param time unix time */ void addUnixTime(std::time_t time); private: mockpp::ReturnObjectList<std::time_t> mocktimes; }; } // namespace mockpp #endif // MOCKPP_TimeServerMock_H --- NEW FILE: MockTimeServer.cpp --- /** @file @brief Mock time dependent objects $Id: MockTimeServer.cpp,v 1.1 2005/04/30 15:06:05 ewald-arnold Exp $ **************************************************************************/ /************************************************************************** begin : Sat Apr 30 2005 copyright : (C) 2002-2005 by Ewald Arnold email : mockpp at ewald-arnold dot de This program is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. **/ #include <mockpp/mockpp.h> // always first #include <mockpp/MockTimeServer.h> namespace mockpp { MOCKPP_EXPORT MockTimeServer::MockTimeServer(const String &name, VerifiableList *parent) : mocktimes(name + MOCKPP_PCHAR("/MockTimeServer"), parent) { } std::time_t MOCKPP_EXPORT MockTimeServer::getUnixTime() { return mocktimes.nextReturnObject(); } void MOCKPP_EXPORT MockTimeServer::addUnixTime(std::time_t time) { mocktimes.addObjectToReturn(time); } } // namespace mockpp |
From: Ewald A. <ewa...@us...> - 2005-04-30 15:06:15
|
Update of /cvsroot/mockpp/mockpp/mockpp/production In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv18839/mockpp/production Added Files: .cvsignore Makefile.am TimeServer.cpp TimeServer.h mockpp_production.h Log Message: time server classes --- NEW FILE: .cvsignore --- *.xmi Makefile .directory Makefile.in *.~* .libs .deps *.lo *.la *.loT *.old --- NEW FILE: Makefile.am --- INCLUDES = $(all_includes) -I$(top_srcdir) lib_LTLIBRARIES = libmockpp_production.la libmockpp_production_la_LDFLAGS = -no-undefined -version-info \ $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) libmockpp_production_la_SOURCES = TimeServer.cpp pkginclude_HEADERS = mockpp_production.h --- NEW FILE: TimeServer.h --- /** @file @brief Time dependent objects $Id: TimeServer.h,v 1.1 2005/04/30 15:06:05 ewald-arnold Exp $ **************************************************************************/ /************************************************************************** begin : Sat Apr 30 2005 copyright : (C) 2002-2005 by Ewald Arnold email : mockpp at ewald-arnold dot de This program is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. **/ #ifndef MOCKPP_TimeServer_H #define MOCKPP_TimeServer_H #include <mockpp/mockpp.h> // always first #include <ctime> namespace mockpp { /** Base class for time serving purposes * \ingroup grp_production */ class TimeServer { public: /** Destroys the time server. */ virtual ~TimeServer(); /** Returns the current unix time * @return unix time */ virtual std::time_t getUnixTime() = 0; }; /** Real time serving. */ class RealTimeServer : public TimeServer { public: /** Returns the current unix time * @return unix time */ virtual std::time_t getUnixTime(); }; } // namespace mockpp #endif // MOCKPP_TimeServer_H --- NEW FILE: mockpp_production.h --- /** @file @brief Time dependent objects $Id: mockpp_production.h,v 1.1 2005/04/30 15:06:05 ewald-arnold Exp $ **************************************************************************/ /************************************************************************** begin : Dat Apr 30 2005 copyright : (C) 2002-2005 by Ewald Arnold email : mockpp at ewald-arnold dot de This program is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. **/ #ifndef MOCKPP_PRODUCTION_H #define MOCKPP_PRODUCTION_H #include <mockpp/mockpp.h> // always first /** @defgroup grp_production Support in Production Code * This module contains classes that helps to prepare production code * for testing with mock objects. This code is placed in a library * of it's own. So it is still possible to run production code * without the bloat of the testing environment. */ namespace mockpp { } // namespace mockpp #endif // MOCKPP_PRODUCTION_H --- NEW FILE: TimeServer.cpp --- /** @file @brief Time dependent objects $Id: TimeServer.cpp,v 1.1 2005/04/30 15:06:05 ewald-arnold Exp $ **************************************************************************/ /************************************************************************** begin : Sat Apr 30 2005 copyright : (C) 2002-2005 by Ewald Arnold email : mockpp at ewald-arnold dot de This program is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. **/ #include <mockpp/mockpp.h> // always first #include <mockpp/production/TimeServer.h> namespace mockpp { MOCKPP_EXPORT TimeServer::~TimeServer() { } /////////////////////////////////////////////////////////////// std::time_t MOCKPP_EXPORT RealTimeServer::getUnixTime() { return std::time(NULL); } } // namespace mockpp |
From: Ewald A. <ewa...@us...> - 2005-04-30 15:06:13
|
Update of /cvsroot/mockpp/mockpp In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv18839 Modified Files: ChangeLog TODO configure.in Log Message: time server classes Index: ChangeLog =================================================================== RCS file: /cvsroot/mockpp/mockpp/ChangeLog,v retrieving revision 1.47 retrieving revision 1.48 diff -u -d -r1.47 -r1.48 --- ChangeLog 24 Apr 2005 11:35:16 -0000 1.47 +++ ChangeLog 30 Apr 2005 15:06:04 -0000 1.48 @@ -3,12 +3,13 @@ mockpp history -------------- -2005-04-10 1.7.2: +2005-04-10 1.8.0: - included missing project file for bcb5 - fix for msvc7.1 - cleanup ThrowableList - - basic support for "Desgin By Contract" + - basic support for "Design By Contract" + - time server classes 2005-04-10 1.7.1: Index: TODO =================================================================== RCS file: /cvsroot/mockpp/mockpp/TODO,v retrieving revision 1.42 retrieving revision 1.43 diff -u -d -r1.42 -r1.43 --- TODO 6 Apr 2005 20:16:12 -0000 1.42 +++ TODO 30 Apr 2005 15:06:04 -0000 1.43 @@ -1,16 +1,16 @@ + Tests timeserver + DOC: ---- -I have the following getter method in an interface : -virtual const int& GetValue() const = 0; - + TimeServer - Problem Exception-Transformation?? + Trick: methoden von protected nach public mit wrapper klasse - VC partial templates: http://www.developer.com/net/csharp/article.php/2217451 + trick: virtuelle methoden injizieren Testcode -Controller addController aufl�en, verify direkt + Tests: { ctr } + Problem Exception-Transformation?? Tests Index: configure.in =================================================================== RCS file: /cvsroot/mockpp/mockpp/configure.in,v retrieving revision 1.75 retrieving revision 1.76 diff -u -d -r1.75 -r1.76 --- configure.in 24 Apr 2005 11:35:16 -0000 1.75 +++ configure.in 30 Apr 2005 15:06:04 -0000 1.76 @@ -432,6 +432,8 @@ mockpp/util/Makefile \ mockpp/compat/Makefile \ \ + mockpp/production/Makefile \ + \ mockpp/chaining/Makefile \ mockpp/builder/Makefile \ mockpp/constraint/Makefile \ |
From: Ewald A. <ewa...@us...> - 2005-04-30 15:06:12
|
Update of /cvsroot/mockpp/mockpp/bcb5 In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv18839/bcb5 Modified Files: mockpp.bpg Log Message: time server classes Index: mockpp.bpg =================================================================== RCS file: /cvsroot/mockpp/mockpp/bcb5/mockpp.bpg,v retrieving revision 1.18 retrieving revision 1.19 diff -u -d -r1.18 -r1.19 --- mockpp.bpg 10 Apr 2005 12:30:33 -0000 1.18 +++ mockpp.bpg 30 Apr 2005 15:06:04 -0000 1.19 @@ -10,7 +10,7 @@ BRCC = $(ROOT)\bin\brcc32.exe $** #------------------------------------------------------------------------------ PROJECTS = mockpp_25.dll jmock_test_20.exe mock_test_20.exe mock_greeter_20.exe \ - basicmock_20.exe visitmock_20.exe chainmock_20.exe poormock_20.exe \ + basicmock_20.exe visitmock_20.exe chainmock_20.exe poormock_20.exe mockpp_production_25.dll \ poormock_se_20.exe verifying_20.exe cppunit_20.exe readability_test_25.exe #------------------------------------------------------------------------------ default: $(PROJECTS) @@ -20,6 +20,10 @@ $(ROOT)\bin\bpr2mak $** $(ROOT)\bin\make -$(MAKEFLAGS) -f$*.mak +mockpp_production_25.dll: mockpp_production.bpr + $(ROOT)\bin\bpr2mak $** + $(ROOT)\bin\make -$(MAKEFLAGS) -f$*.mak + mock_greeter_20.exe: mock_greeter.bpr $(ROOT)\bin\bpr2mak $** $(ROOT)\bin\make -$(MAKEFLAGS) -f$*.mak |
From: Ewald A. <ewa...@us...> - 2005-04-30 14:54:38
|
Update of /cvsroot/mockpp/mockpp/mockpp/production In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv12199/mockpp/production Log Message: Directory /cvsroot/mockpp/mockpp/mockpp/production added to the repository |
From: Ewald A. <ewa...@us...> - 2005-04-24 11:35:25
|
Update of /cvsroot/mockpp/mockpp/mockpp/examples/tutorial In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6520/mockpp/examples/tutorial Modified Files: consumer.cpp consumer.h tutorial.doxygen.in Log Message: started dbc support Index: consumer.h =================================================================== RCS file: /cvsroot/mockpp/mockpp/mockpp/examples/tutorial/consumer.h,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- consumer.h 2 Jan 2005 17:56:46 -0000 1.2 +++ consumer.h 24 Apr 2005 11:35:17 -0000 1.3 @@ -20,8 +20,7 @@ { public: - /** Constructs the consumer class - * @param intf pointer to object for file access + /** Constructs the consumer class. */ Consumer(Interface *intf); Index: tutorial.doxygen.in =================================================================== RCS file: /cvsroot/mockpp/mockpp/mockpp/examples/tutorial/tutorial.doxygen.in,v retrieving revision 1.5 retrieving revision 1.6 diff -u -d -r1.5 -r1.6 --- tutorial.doxygen.in 7 Apr 2005 20:38:06 -0000 1.5 +++ tutorial.doxygen.in 24 Apr 2005 11:35:17 -0000 1.6 @@ -30,7 +30,7 @@ INHERIT_DOCS = NO INLINE_INFO = YES SORT_MEMBER_DOCS = YES -DISTRIBUTE_GROUP_DOC = NO +DISTRIBUTE_GROUP_DOC = YES TAB_SIZE = 4 GENERATE_TODOLIST = NO GENERATE_TESTLIST = NO @@ -144,10 +144,18 @@ SEARCH_INCLUDES = YES INCLUDE_PATH = INCLUDE_FILE_PATTERNS = *.h -PREDEFINED = HAVE_ICONV_H \ +PREDEFINED = \ + DOXYGEN \ + HAVE_ICONV_H \ HAVE_LIMITS \ + MOCKPP_BOUNDARY_DELTA \ DOXYGEN_SHOULD_SKIP_THIS \ - MOCKPP_BOUNDARY_DELTA + "MOCKPP_PRE(a) = /*! \pre a */" \ + "MOCKPP_PRE_MSG(a,b) = /*! \pre a \code b \endcode */" \ + "MOCKPP_POST(a) = /*! \post a */" \ + "MOCKPP_POST_MSG(a,b) = /*! \post a \code b \endcode */" \ + "MOCKPP_INVARIANT(a) = /*! \invariant a */" \ + "MOCKPP_INVARIANT_MSG(a,b) = /*! \invariant a \code b \endcode */" EXPAND_AS_DEFINED = SKIP_FUNCTION_MACROS = YES #--------------------------------------------------------------------------- Index: consumer.cpp =================================================================== RCS file: /cvsroot/mockpp/mockpp/mockpp/examples/tutorial/consumer.cpp,v retrieving revision 1.3 retrieving revision 1.4 diff -u -d -r1.3 -r1.4 --- consumer.cpp 4 Mar 2005 21:10:02 -0000 1.3 +++ consumer.cpp 24 Apr 2005 11:35:17 -0000 1.4 @@ -13,10 +13,12 @@ #include "interface.h" #include "consumer.h" +#include <mockpp/mockpp_dbc.h> -Consumer::Consumer(Interface *config) - : configfile(config) +Consumer::Consumer(Interface *intf) + : configfile(intf) { + MOCKPP_PRE(intf != 0); } void Consumer::load() |
From: Ewald A. <ewa...@us...> - 2005-04-24 11:35:25
|
Update of /cvsroot/mockpp/mockpp/mockpp In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6520/mockpp Modified Files: Makefile.am Added Files: mockpp_dbc.h Log Message: started dbc support --- NEW FILE: mockpp_dbc.h --- /** @file @brief Basic support for "Design By Contract" If you want to use the DBC statements within you sources in your doxygen documentation you have to add something similar to this into your doxygen configuration file: @verbatim PREDEFINED = \ DOXYGEN_SHOULD_SKIP_THIS \ "MOCKPP_PRE(a) = /*! \pre a * /" \ "MOCKPP_PRE_MSG(a,b) = /*! \pre a \code b \endcode * /" \ "MOCKPP_POST(a) = /*! \post a * /" \ "MOCKPP_POST_MSG(a,b) = /*! \post a \code b \endcode * /" \ "MOCKPP_INVARIANT(a) = /*! \invariant a * /" \ "MOCKPP_INVARIANT_MSG(a,b) = /*! \invariant a \code b \endcode * /" $Id: mockpp_dbc.h,v 1.1 2005/04/24 11:35:16 ewald-arnold Exp $ ***************************************************************************/ /************************************************************************** begin : Sun Apr 23 2005 copyright : (C) 2002-2005 by Ewald Arnold email : mockpp at ewald-arnold dot de This program is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. **/ #ifndef MOCKPP_DBC_H #define MOCKPP_DBC_H #include <mockpp/mockpp.h> // always first #ifndef DOXYGEN_SHOULD_SKIP_THIS #ifdef MOCK_ENABLE_DBC # define MOCKPP_PRE(a) mockpp::assertTrue(__LINE__, __FILE__, #a, a) # define MOCKPP_PRE_MSG(a, b) mockpp::assertTrue(__LINE__, __FILE__, b, a) # define MOCKPP_POST(a) mockpp::assertTrue(__LINE__, __FILE__, #a, a) # define MOCKPP_POST_MSG(a, b) mockpp::assertTrue(__LINE__, __FILE__, b, a) # define MOCKPP_INVARIANT(a) mockpp::assertTrue(__LINE__, __FILE__, #a, a) # define MOCKPP_INVARIANT_MSG(a, b) mockpp::assertTrue(__LINE__, __FILE__, b, a) #else // MOCK_ENABLE_DBC # define MOCKPP_PRE(a) # define MOCKPP_PRE_MSG(a, b) # define MOCKPP_POST(a) # define MOCKPP_POST_MSG(a, b) # define MOCKPP_INVARIANT(a) # define MOCKPP_INVARIANT_MSG(a, b) #endif // MOCK_ENABLE_DBC /** @def MOCKPP_PRE(a) * @brief Checks a precondition of the method. If the condition evaluates to \c false * an AssertionFailedError is thrown. * @param a the condition to check */ /** @def MOCKPP_PRE(a,b) * @brief Checks a precondition of the method. If the condition evaluates to \c false * an AssertionFailedError is thrown. * @param a the condition to check * @param b An explanation for the condition */ /** @def MOCKPP_POST(a) * @brief Checks a postcondition of the method. If the condition evaluates to \c false * an AssertionFailedError is thrown. * @param a the condition to check */ /** @def MOCKPP_POST(a,b) * @brief Checks a postcondition of the method. If the condition evaluates to \c false * an AssertionFailedError is thrown. * @param a the condition to check * @param b An explanation for the condition */ /** @def MOCKPP_INVARIANT(a) * @brief Checks an invariant of the method. If the condition evaluates to \c false * an AssertionFailedError is thrown. * @param a the condition to check */ /** @def MOCKPP_INVARIANT(a,b) * @brief Checks an invariant of the method. If the condition evaluates to \c false * an AssertionFailedError is thrown. * @param a the condition to check * @param b An explanation for the condition */ #endif #endif // MOCKPP_DBC_H Index: Makefile.am =================================================================== RCS file: /cvsroot/mockpp/mockpp/mockpp/Makefile.am,v retrieving revision 1.78 retrieving revision 1.79 diff -u -d -r1.78 -r1.79 --- Makefile.am 3 Apr 2005 18:32:43 -0000 1.78 +++ Makefile.am 24 Apr 2005 11:35:16 -0000 1.79 @@ -20,12 +20,12 @@ VerifyingTestCaller.cpp TrackingCounter.cpp MixedMockObject.cpp pkginclude_HEADERS = mockpp_config.h ReturnObjectList.h Expectation.h \ - AbstractExpectation.h ExpectationValue.h ExpectationSegment.h ExpectationList.h \ - ExpectationSet.h ExpectationMap.h ExpectationBoundary.h AbstractExpectationCollection.h \ - VisitableMockObject_macro.h VisitableMockObject_template.h ExpectationConglomeration.h \ - ExpectationCounter.h mockpp.h Throwable.h ThrowableList.h MockObject.h VisitableMockObject.h \ - VerifiableList.h Verifiable.h VerifyingTestCase.h SelfDescribing.h ChainableMockObject.h\ - VerifyingTestCaller.h TrackingCounter.h MixedMockObject.h + AbstractExpectation.h ExpectationValue.h ExpectationSegment.h ExpectationList.h \ + ExpectationSet.h ExpectationMap.h ExpectationBoundary.h AbstractExpectationCollection.h \ + VisitableMockObject_macro.h VisitableMockObject_template.h ExpectationConglomeration.h \ + ExpectationCounter.h mockpp.h Throwable.h ThrowableList.h MockObject.h VisitableMockObject.h \ + VerifiableList.h Verifiable.h VerifyingTestCase.h SelfDescribing.h ChainableMockObject.h \ + VerifyingTestCaller.h TrackingCounter.h MixedMockObject.h mockpp_dbc.h EXTRA_DIST = \ mockpp_config-bcb5.h \ |
From: Ewald A. <ewa...@us...> - 2005-04-24 11:35:25
|
Update of /cvsroot/mockpp/mockpp In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6520 Modified Files: ChangeLog configure.in mockpp.doxygen.in Log Message: started dbc support Index: mockpp.doxygen.in =================================================================== RCS file: /cvsroot/mockpp/mockpp/mockpp.doxygen.in,v retrieving revision 1.10 retrieving revision 1.11 diff -u -d -r1.10 -r1.11 --- mockpp.doxygen.in 22 Mar 2005 22:02:55 -0000 1.10 +++ mockpp.doxygen.in 24 Apr 2005 11:35:16 -0000 1.11 @@ -16,7 +16,7 @@ # The PROJECT_NAME tag is a single word (or a sequence of words surrounded # by quotes) that should identify the project. - +DBC_PRE(a,b) =\pre b \code a \endcode" PROJECT_NAME = mockpp # The PROJECT_NUMBER tag can be used to enter a project or revision number. @@ -1020,11 +1020,20 @@ # undefined via #undef or recursively expanded use the := operator # instead of the = operator. -PREDEFINED = HAVE_ICONV_H \ - HAVE_LIMITS \ +PREDEFINED = \ + DOXYGEN \ + HAVE_ICONV_H \ + HAVE_LIMITS \ HAVE_CPPUNIT \ + MOCKPP_BOUNDARY_DELTA \ DOXYGEN_SHOULD_SKIP_THIS \ - MOCKPP_BOUNDARY_DELTA + DOXYGEN_SHOULD_SKIP_THIS \ + "MOCKPP_PRE(a) = /*! \pre a */" \ + "MOCKPP_PRE_MSG(a,b) = /*! \pre a \code b \endcode */" \ + "MOCKPP_POST(a) = /*! \post a */" \ + "MOCKPP_POST_MSG(a,b) = /*! \post a \code b \endcode */" \ + "MOCKPP_INVARIANT(a) = /*! \invariant a */" \ + "MOCKPP_INVARIANT_MSG(a,b) = /*! \invariant a \code b \endcode */" # If the MACRO_EXPANSION and EXPAND_ONLY_PREDEF tags are set to YES then # this tag can be used to specify a list of macro names that should be expanded. Index: ChangeLog =================================================================== RCS file: /cvsroot/mockpp/mockpp/ChangeLog,v retrieving revision 1.46 retrieving revision 1.47 diff -u -d -r1.46 -r1.47 --- ChangeLog 21 Apr 2005 20:35:56 -0000 1.46 +++ ChangeLog 24 Apr 2005 11:35:16 -0000 1.47 @@ -8,6 +8,7 @@ - included missing project file for bcb5 - fix for msvc7.1 - cleanup ThrowableList + - basic support for "Desgin By Contract" 2005-04-10 1.7.1: Index: configure.in =================================================================== RCS file: /cvsroot/mockpp/mockpp/configure.in,v retrieving revision 1.74 retrieving revision 1.75 diff -u -d -r1.74 -r1.75 --- configure.in 7 Apr 2005 20:40:16 -0000 1.74 +++ configure.in 24 Apr 2005 11:35:16 -0000 1.75 @@ -17,11 +17,11 @@ # MOCKPP_MAJOR_VERSION=1 MOCKPP_MINOR_VERSION=7 -MOCKPP_PATCH_VERSION=1 +MOCKPP_PATCH_VERSION=2 -MOCKPP_MICRO_VERSION=26 -MOCKPP_INTERFACE_AGE=1 -MOCKPP_BINARY_AGE=4 +MOCKPP_MICRO_VERSION=27 +MOCKPP_INTERFACE_AGE=2 +MOCKPP_BINARY_AGE=5 MOCKPP_VERSION=$MOCKPP_MAJOR_VERSION.$MOCKPP_MINOR_VERSION.$MOCKPP_PATCH_VERSION |
From: Ewald A. <ewa...@us...> - 2005-04-23 18:22:47
|
Update of /cvsroot/mockpp/mockpp/mockpp/docs/en In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv21897/mockpp/docs/en Modified Files: faq.docbook Log Message: new faq item Index: faq.docbook =================================================================== RCS file: /cvsroot/mockpp/mockpp/mockpp/docs/en/faq.docbook,v retrieving revision 1.5 retrieving revision 1.6 diff -u -d -r1.5 -r1.6 --- faq.docbook 23 Apr 2005 18:12:01 -0000 1.5 +++ faq.docbook 23 Apr 2005 18:22:28 -0000 1.6 @@ -68,6 +68,22 @@ the test files form a libary or an executable. Upon execution the above libray with the production code is linked dynamically.</listitem> </itemizedlist> + + So the layout of your project tree might look like this: + + <programlisting> + + projectroot + \_ main() + | + \_ subproject1 + | \_ tests + | + \_ subproject2 + \_ tests + + </programlisting> + </para> </answer> |
From: Ewald A. <ewa...@us...> - 2005-04-23 18:12:10
|
Update of /cvsroot/mockpp/mockpp/mockpp/docs/en In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv15618/mockpp/docs/en Modified Files: faq.docbook index.docbook Log Message: new faq item Index: faq.docbook =================================================================== RCS file: /cvsroot/mockpp/mockpp/mockpp/docs/en/faq.docbook,v retrieving revision 1.4 retrieving revision 1.5 diff -u -d -r1.4 -r1.5 --- faq.docbook 9 Apr 2005 18:13:57 -0000 1.4 +++ faq.docbook 23 Apr 2005 18:12:01 -0000 1.5 @@ -45,6 +45,37 @@ <!-- --> <qandaentry> + <question> + <para>How should one organise production code and test code?</para> + </question> + + <answer> + <para>There is no general solution how to organise the sources to both run the tests + and create a releasable binary without debugging and test code.</para> + + <para>A flexible and clean approach is the one used within mockpp: + <itemizedlist> + <listitem>Place all the classes and funcions of your production code into + appropriate libraries. All the source code for the according library + is in a separate subdirectory.</listitem> + + <listitem>Create a minimalistic application source file with your + <methodname>main()</methodname> in a top-level directory. + This application uses the former libraries.</listitem> + + <listitem>Create a subdirectory <filename>tests</filename> within each sub-project + which contains all the test files needed. Depending on your test framework + the test files form a libary or an executable. Upon execution the above libray + with the production code is linked dynamically.</listitem> + </itemizedlist> + </para> + </answer> + + </qandaentry> + + <!-- --> + + <qandaentry> <question> <para>Where can I ask a question regarding &mockpp;?</para> Index: index.docbook =================================================================== RCS file: /cvsroot/mockpp/mockpp/mockpp/docs/en/index.docbook,v retrieving revision 1.25 retrieving revision 1.26 diff -u -d -r1.25 -r1.26 --- index.docbook 9 Apr 2005 18:13:57 -0000 1.25 +++ index.docbook 23 Apr 2005 18:12:02 -0000 1.26 @@ -10,8 +10,8 @@ <!ENTITY cppunit '<application>cppunit</application>' > <!ENTITY copyyears '2002-2005' > <!ENTITY mockpp_email 'mockpp at ewald-arnold dot de' > - <!ENTITY release_date '<date>2005-04-10</date>' > - <!ENTITY release_info '<releaseinfo>1.07.01</releaseinfo>' > + <!ENTITY release_date '<date>2005-04-23</date>' > + <!ENTITY release_info '<releaseinfo>1.07.02</releaseinfo>' > <!ENTITY chap_bookinfo SYSTEM 'bookinfo.docbook' > <!ENTITY chap_intro SYSTEM 'intro.docbook' > |
From: Ewald A. <ewa...@us...> - 2005-04-21 20:36:08
|
Update of /cvsroot/mockpp/mockpp In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv19516 Modified Files: ChangeLog mockpp.kdevelop Log Message: update Index: mockpp.kdevelop =================================================================== RCS file: /cvsroot/mockpp/mockpp/mockpp.kdevelop,v retrieving revision 1.71 retrieving revision 1.72 diff -u -d -r1.71 -r1.72 --- mockpp.kdevelop 10 Apr 2005 13:48:10 -0000 1.71 +++ mockpp.kdevelop 21 Apr 2005 20:35:56 -0000 1.72 @@ -9,7 +9,7 @@ <ignoreparts/> <projectdirectory>.</projectdirectory> <absoluteprojectpath>false</absoluteprojectpath> - <description></description> + <description/> <secondaryLanguages> <language>Perl</language> <language>Bash</language> @@ -54,18 +54,18 @@ <envvars/> <configargs>--enable-unicode</configargs> <builddir>/home/compile/mockpp/u</builddir> - <topsourcedir></topsourcedir> - <cppflags></cppflags> - <ldflags></ldflags> + <topsourcedir/> + <cppflags/> + <ldflags/> <ccompiler>kdevgccoptions</ccompiler> <cxxcompiler>kdevgppoptions</cxxcompiler> <f77compiler>kdevg77options</f77compiler> - <ccompilerbinary></ccompilerbinary> + <ccompilerbinary/> <cxxcompilerbinary>"ccache g++ "</cxxcompilerbinary> - <f77compilerbinary></f77compilerbinary> - <cflags></cflags> - <cxxflags></cxxflags> - <f77flags></f77flags> + <f77compilerbinary/> + <cflags/> + <cxxflags/> + <f77flags/> </unicode> <ascii> <envvars/> @@ -140,14 +140,14 @@ <kdevdebugger> <general> <dbgshell>libtool</dbgshell> - <programargs></programargs> - <gdbpath></gdbpath> + <programargs/> + <gdbpath/> <breakonloadinglibs>true</breakonloadinglibs> <separatetty>false</separatetty> <floatingtoolbar>true</floatingtoolbar> - <configGdbScript></configGdbScript> - <runShellScript></runShellScript> - <runGdbScript></runGdbScript> + <configGdbScript/> + <runShellScript/> + <runGdbScript/> </general> <display> <staticmembers>true</staticmembers> @@ -241,7 +241,7 @@ <headerCompletionDelay>250</headerCompletionDelay> </codecompletion> <creategettersetter> - <prefixGet></prefixGet> + <prefixGet/> <prefixSet>set</prefixSet> <prefixVariable>m_,_</prefixVariable> <parameterName>theValue</parameterName> Index: ChangeLog =================================================================== RCS file: /cvsroot/mockpp/mockpp/ChangeLog,v retrieving revision 1.45 retrieving revision 1.46 diff -u -d -r1.45 -r1.46 --- ChangeLog 9 Apr 2005 16:43:54 -0000 1.45 +++ ChangeLog 21 Apr 2005 20:35:56 -0000 1.46 @@ -3,6 +3,12 @@ mockpp history -------------- +2005-04-10 1.7.2: + + - included missing project file for bcb5 + - fix for msvc7.1 + - cleanup ThrowableList + 2005-04-10 1.7.1: - fix for unicode on some cygwin platforms |
From: Ewald A. <ewa...@us...> - 2005-04-21 20:35:52
|
Update of /cvsroot/mockpp/mockpp/mockpp In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv19366/mockpp Modified Files: ThrowableList.cpp ThrowableList.h Log Message: consistent naming Index: ThrowableList.cpp =================================================================== RCS file: /cvsroot/mockpp/mockpp/mockpp/ThrowableList.cpp,v retrieving revision 1.19 retrieving revision 1.20 diff -u -d -r1.19 -r1.20 --- ThrowableList.cpp 27 Feb 2005 11:48:14 -0000 1.19 +++ ThrowableList.cpp 21 Apr 2005 20:35:40 -0000 1.20 @@ -33,7 +33,6 @@ #include <mockpp/compat/Formatter.h> #include <mockpp/ThrowableList.h> -#include <mockpp/Throwable.h> namespace mockpp { @@ -50,7 +49,13 @@ } -void MOCKPP_EXPORT ThrowableList::push_back(Throwable *t) +void MOCKPP_EXPORT ThrowableList::push_back(Throwable* t) +{ + addObjectToThrow(t); +} + + +void MOCKPP_EXPORT ThrowableList::addObjectToThrow(Throwable* t) { // MOCKPP_ASSERT_TRUE(t != 0); Tricky: ResonseVector uses 0 to distinguish // between values and throwables Index: ThrowableList.h =================================================================== RCS file: /cvsroot/mockpp/mockpp/mockpp/ThrowableList.h,v retrieving revision 1.17 retrieving revision 1.18 diff -u -d -r1.17 -r1.18 --- ThrowableList.h 6 Apr 2005 20:15:19 -0000 1.17 +++ ThrowableList.h 21 Apr 2005 20:35:41 -0000 1.18 @@ -35,11 +35,11 @@ #include <deque> #include <mockpp/Verifiable.h> +#include <mockpp/Throwable.h> namespace mockpp { -class Throwable; /** A list of throwable objects. The objects are completely managed which also includes * the destruction of the objects by the destructor of this list. @@ -64,19 +64,42 @@ * the list itself is destroyed! This is valid even for objects taken via * nextThrowableObject()! * Don't add the same object (the same pointer!) more than once via this method. + * @deprecated * @param t pointer to object to be added to the list */ - void push_back(Throwable *t); + void push_back(Throwable* t); + + /** Add a next object to the end of the list. + * The objects remains from now on in the responsibiliy of this list until + * the list itself is destroyed! This is valid even for objects taken via + * nextThrowableObject()! + * Don't add the same object (the same pointer!) more than once via this method. + * @param t pointer to object to be added to the list + */ + void addObjectToThrow(Throwable* t); /** Add a next object to the end of the list. * The objects remains from now on in the responsibiliy of this list until * the list itself is destroyed! This is valid even for objects taken via * nextThrowableObject()! + * @deprecated * @param w object to be added to the list */ template <class T> void push_back(const T &w) { + addObjectToThrow(w); + } + + /** Add a next object to the end of the list. + * The objects remains from now on in the responsibiliy of this list until + * the list itself is destroyed! This is valid even for objects taken via + * nextThrowableObject()! + * @param w object to be added to the list + */ + template <class T> + void addObjectToThrow(const T &w) + { push_back(make_throwable(w)); } |
From: Ewald A. <ewa...@us...> - 2005-04-21 20:35:50
|
Update of /cvsroot/mockpp/mockpp/mockpp/tests In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv19366/mockpp/tests Modified Files: ThrowableList_test.cpp Log Message: consistent naming Index: ThrowableList_test.cpp =================================================================== RCS file: /cvsroot/mockpp/mockpp/mockpp/tests/ThrowableList_test.cpp,v retrieving revision 1.11 retrieving revision 1.12 diff -u -d -r1.11 -r1.12 --- ThrowableList_test.cpp 27 Feb 2005 11:48:16 -0000 1.11 +++ ThrowableList_test.cpp 21 Apr 2005 20:35:40 -0000 1.12 @@ -72,7 +72,7 @@ { mockpp::ThrowableList tl(MOCKPP_PCHAR("tl"), 0); tl.push_back(mockpp::make_throwable(std::string("my-item 1"))); - tl.push_back(std::string("my-item 2")); + tl.addObjectToThrow(std::string("my-item 2")); try { @@ -116,8 +116,8 @@ mockpp::Throwable *tt4 = mockpp::make_throwable(std::string("my-item 4")); tl.push_back(tt1); tl.push_back(tt2); - tl.push_back(tt3); - tl.push_back(tt4); + tl.addObjectToThrow(tt3); + tl.addObjectToThrow(tt4); CPPUNIT_ASSERT(tl.hasMoreObjects() == true); tl.reset(); CPPUNIT_ASSERT(tl.hasMoreObjects() == false); @@ -136,8 +136,8 @@ tl.push_back(tt1); tl.push_back(tt2); - tl.push_back(tt3); - tl.push_back(tt4); + tl.addObjectToThrow(tt3); + tl.addObjectToThrow(tt4); CPPUNIT_ASSERT(tl.at(0) == tt1); CPPUNIT_ASSERT(tl.at(1) == tt2); @@ -172,8 +172,8 @@ tl.push_back(tt1); CPPUNIT_ASSERT(tl.hasMoreObjects() == true); tl.push_back(mockpp::make_throwable(std::string("my-item 2"))); - tl.push_back(std::string("my-item 3")); - tl.push_back(std::string("my-item 4")); + tl.addObjectToThrow(std::string("my-item 3")); + tl.addObjectToThrow(std::string("my-item 4")); CPPUNIT_ASSERT(tl.hasMoreObjects() == true); |
From: Ewald A. <ewa...@us...> - 2005-04-21 20:35:14
|
Update of /cvsroot/mockpp/mockpp/mockpp/chaining In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv19198/mockpp/chaining Modified Files: AbstractDynamicChainingMock.h Log Message: fix msvc Index: AbstractDynamicChainingMock.h =================================================================== RCS file: /cvsroot/mockpp/mockpp/mockpp/chaining/AbstractDynamicChainingMock.h,v retrieving revision 1.31 retrieving revision 1.32 diff -u -d -r1.31 -r1.32 --- AbstractDynamicChainingMock.h 7 Apr 2005 20:45:10 -0000 1.31 +++ AbstractDynamicChainingMock.h 21 Apr 2005 20:35:05 -0000 1.32 @@ -99,9 +99,9 @@ return result; } -#ifdef __BORLANDC__ +#if defined( __BORLANDC__ ) || defined( _MSC_VER ) - // prevent internal compiler error + // also prevent internal compiler error for BCB5 /** Appends the description of this object to the buffer. * @param result the buffer that the description is appended to. |
From: Ewald A. <ewa...@us...> - 2005-04-21 20:34:25
|
Update of /cvsroot/mockpp/mockpp/bcb5 In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv18491/bcb5 Modified Files: Makefile.am gen-mak.bat Log Message: added project file Index: Makefile.am =================================================================== RCS file: /cvsroot/mockpp/mockpp/bcb5/Makefile.am,v retrieving revision 1.9 retrieving revision 1.10 diff -u -d -r1.9 -r1.10 --- Makefile.am 10 Apr 2005 12:30:33 -0000 1.9 +++ Makefile.am 21 Apr 2005 20:34:15 -0000 1.10 @@ -6,6 +6,7 @@ gen-mak.bat \ mockpp.bpg \ readability.bpf \ + readability.bpr \ mock_greeter.bpf \ mock_greeter.bpr \ basicmock.bpf \ Index: gen-mak.bat =================================================================== RCS file: /cvsroot/mockpp/mockpp/bcb5/gen-mak.bat,v retrieving revision 1.10 retrieving revision 1.11 diff -u -d -r1.10 -r1.11 --- gen-mak.bat 22 Mar 2005 22:02:56 -0000 1.10 +++ gen-mak.bat 21 Apr 2005 20:34:16 -0000 1.11 @@ -11,6 +11,7 @@ %BCB_BIN%\bpr2mak mockpp.bpr %BCB_BIN%\bpr2mak mock_test.bpr +%BCB_BIN%\bpr2mak readability.bpr %BCB_BIN%\bpr2mak jmock_test.bpr %BCB_BIN%\bpr2mak mock_greeter.bpr %BCB_BIN%\bpr2mak basicmock.bpr |
From: Ewald A. <ewa...@us...> - 2005-04-10 14:01:05
|
Update of /cvsroot/mockpp/homepage In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25483 Modified Files: install-en.gtml Log Message: update Index: install-en.gtml =================================================================== RCS file: /cvsroot/mockpp/homepage/install-en.gtml,v retrieving revision 1.4 retrieving revision 1.5 diff -u -d -r1.4 -r1.5 --- install-en.gtml 9 Apr 2005 18:17:33 -0000 1.4 +++ install-en.gtml 10 Apr 2005 14:00:39 -0000 1.5 @@ -115,7 +115,10 @@ <ul> <li>Linux (SuSE 8.2) + gcc 3.4</li> <li>Linux (SuSE 9.2) + gcc 3.3</li> - <li>OpenBsd 3.1 + gcc 2.95.3</li> + <li>OpenBsd 3.1 + gcc 2.95.3. Unfortunately the state of this + compiler version is a bit fragile regarding mockpp. It crashes + with internal compiler errors on certain source code without + identifiable reason.</li> <li>Windows (ME, NT) + Borland CBuilder 5</li> </ul> Since OpenBSD is a working platform I assume that other *BSD @@ -126,10 +129,11 @@ From reports and little personal experience I know that the following combinations work more or less fine, too: <ul> - <li>Windows + MSVC6 up to mockpp 1.1.16.</li> + <li>Windows + MSVC6/MSVC7 <b>up to mockpp 1.1.16</b>.</li> <li>Windows + MSVC7.1. Please note that MSVC6.0 compiles the library itself but fails on a lot of test files. This is - due to its weak support for templates. The state of MSVC7.0 seems similar. + (among other problems) due to its weak support for templates. + The state of MSVC7.0 seems similar. </li> <li>Windows + Borland CBuilder6. Use the project files under bcb5 and tweak them a bit (e.g. add stlport.lib or similar).</li> |
From: Ewald A. <ewa...@us...> - 2005-04-10 13:48:35
|
Update of /cvsroot/mockpp/mockpp In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv19067 Modified Files: mockpp.kdevelop Log Message: update Index: mockpp.kdevelop =================================================================== RCS file: /cvsroot/mockpp/mockpp/mockpp.kdevelop,v retrieving revision 1.70 retrieving revision 1.71 diff -u -d -r1.70 -r1.71 --- mockpp.kdevelop 9 Apr 2005 18:15:08 -0000 1.70 +++ mockpp.kdevelop 10 Apr 2005 13:48:10 -0000 1.71 @@ -9,7 +9,7 @@ <ignoreparts/> <projectdirectory>.</projectdirectory> <absoluteprojectpath>false</absoluteprojectpath> - <description/> + <description></description> <secondaryLanguages> <language>Perl</language> <language>Bash</language> @@ -20,7 +20,7 @@ <kdevautoproject> <general> <activetarget>mockpp/tests/jmock_test</activetarget> - <useconfiguration>intel_unicode_debug</useconfiguration> + <useconfiguration>unicode</useconfiguration> </general> <run> <mainprogram/> @@ -35,7 +35,7 @@ <jmock_test/> <compilecheck/> <mock_greeter/> - <readability></readability> + <readability/> </runarguments> </run> <make> @@ -54,18 +54,18 @@ <envvars/> <configargs>--enable-unicode</configargs> <builddir>/home/compile/mockpp/u</builddir> - <topsourcedir/> - <cppflags/> - <ldflags/> + <topsourcedir></topsourcedir> + <cppflags></cppflags> + <ldflags></ldflags> <ccompiler>kdevgccoptions</ccompiler> <cxxcompiler>kdevgppoptions</cxxcompiler> <f77compiler>kdevg77options</f77compiler> - <ccompilerbinary/> - <cxxcompilerbinary/> - <f77compilerbinary/> - <cflags/> - <cxxflags/> - <f77flags/> + <ccompilerbinary></ccompilerbinary> + <cxxcompilerbinary>"ccache g++ "</cxxcompilerbinary> + <f77compilerbinary></f77compilerbinary> + <cflags></cflags> + <cxxflags></cxxflags> + <f77flags></f77flags> </unicode> <ascii> <envvars/> @@ -140,14 +140,14 @@ <kdevdebugger> <general> <dbgshell>libtool</dbgshell> - <programargs/> - <gdbpath/> + <programargs></programargs> + <gdbpath></gdbpath> <breakonloadinglibs>true</breakonloadinglibs> <separatetty>false</separatetty> <floatingtoolbar>true</floatingtoolbar> - <configGdbScript/> - <runShellScript/> - <runGdbScript/> + <configGdbScript></configGdbScript> + <runShellScript></runShellScript> + <runGdbScript></runGdbScript> </general> <display> <staticmembers>true</staticmembers> @@ -241,7 +241,7 @@ <headerCompletionDelay>250</headerCompletionDelay> </codecompletion> <creategettersetter> - <prefixGet/> + <prefixGet></prefixGet> <prefixSet>set</prefixSet> <prefixVariable>m_,_</prefixVariable> <parameterName>theValue</parameterName> |
From: Ewald A. <ewa...@us...> - 2005-04-10 13:46:41
|
Update of /cvsroot/mockpp/mockpp/mockpp In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv18161/mockpp Modified Files: mockpp.h Log Message: doc Index: mockpp.h =================================================================== RCS file: /cvsroot/mockpp/mockpp/mockpp/mockpp.h,v retrieving revision 1.52 retrieving revision 1.53 diff -u -d -r1.52 -r1.53 --- mockpp.h 9 Apr 2005 15:32:45 -0000 1.52 +++ mockpp.h 10 Apr 2005 13:46:28 -0000 1.53 @@ -104,6 +104,9 @@ # endif // _MSC_VER +// msvc60 is 1200? +// msvc70 is 1300 +// msvc71 is 1310 #ifdef _MSC_VER # if _MSC_VER <= 1300 # define _MSC_VER_60_70 |
From: Ewald A. <ewa...@us...> - 2005-04-10 12:34:01
|
Update of /cvsroot/mockpp/mockpp/mockpp/tests In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv10006/tests Modified Files: Formatter_test.cpp VisitableMockObject_5_test.cpp Log Message: fixes bcb5/g++ 2.95 Index: VisitableMockObject_5_test.cpp =================================================================== RCS file: /cvsroot/mockpp/mockpp/mockpp/tests/VisitableMockObject_5_test.cpp,v retrieving revision 1.24 retrieving revision 1.25 diff -u -d -r1.24 -r1.25 --- VisitableMockObject_5_test.cpp 24 Mar 2005 21:43:07 -0000 1.24 +++ VisitableMockObject_5_test.cpp 10 Apr 2005 12:33:53 -0000 1.25 @@ -50,6 +50,7 @@ #include <cppunit/extensions/HelperMacros.h> + class VisitableMockObject_5_test : public CppUnit::TestFixture { public: @@ -114,6 +115,7 @@ CPPUNIT_TEST_SUITE_REGISTRATION(VisitableMockObject_5_test); + class MyVisitableMockObject_5_Interface { public: Index: Formatter_test.cpp =================================================================== RCS file: /cvsroot/mockpp/mockpp/mockpp/tests/Formatter_test.cpp,v retrieving revision 1.23 retrieving revision 1.24 diff -u -d -r1.23 -r1.24 --- Formatter_test.cpp 9 Apr 2005 15:32:45 -0000 1.23 +++ Formatter_test.cpp 10 Apr 2005 12:33:53 -0000 1.24 @@ -404,7 +404,11 @@ #ifndef MOCKPP_MAKE_CHAR_READABLE MOCKPP_ASSERT_EQUALS(fmt, MOCKPP_PCSTRING("9876543210")); #else +# ifdef __BORLANDC__ + MOCKPP_ASSERT_EQUALS(fmt, MOCKPP_PCSTRING("{" "\x22" "9" "\x22" ", 0x39}{" "\x22" "8" "\x22" ", 0x38}{" "\x22" "7" "\x22" ", 0x37}{" "\x22" "6" "\x22" ", 0x36}{" "\x22" "5" "\x22" ", 0x35}{" "\x22" "4" "\x22" ", 0x34}{" "\x22" "3" "\x22" ", 0x33}{" "\x22" "2" "\x22" ", 0x32}{" "\x22" "1" "\x22" ", 0x31}{" "\x22" "0" "\x22" ", 0x30}")); +# else MOCKPP_ASSERT_EQUALS(fmt, MOCKPP_PCSTRING("{\"9\", 0x39}{\"8\", 0x38}{\"7\", 0x37}{\"6\", 0x36}{\"5\", 0x35}{\"4\", 0x34}{\"3\", 0x33}{\"2\", 0x32}{\"1\", 0x31}{\"0\", 0x30}")); +# endif #endif fmt = MOCKPP_PCHAR("%9%8%7%6%5%4%3%2%1%0"); @@ -421,7 +425,11 @@ #ifndef MOCKPP_MAKE_CHAR_READABLE MOCKPP_ASSERT_EQUALS(fmt, MOCKPP_PCSTRING("9876543210")); #else +# ifdef __BORLANDC__ + MOCKPP_ASSERT_EQUALS(fmt, MOCKPP_PCSTRING("{" "\x22" "9" "\x22" ", 0x39}{" "\x22" "8" "\x22" ", 0x38}{" "\x22" "7" "\x22" ", 0x37}{" "\x22" "6" "\x22" ", 0x36}{" "\x22" "5" "\x22" ", 0x35}{" "\x22" "4" "\x22" ", 0x34}{" "\x22" "3" "\x22" ", 0x33}{" "\x22" "2" "\x22" ", 0x32}{" "\x22" "1" "\x22" ", 0x31}{" "\x22" "0" "\x22" ", 0x30}")); +# else MOCKPP_ASSERT_EQUALS(fmt, MOCKPP_PCSTRING("{\"9\", 0x39}{\"8\", 0x38}{\"7\", 0x37}{\"6\", 0x36}{\"5\", 0x35}{\"4\", 0x34}{\"3\", 0x33}{\"2\", 0x32}{\"1\", 0x31}{\"0\", 0x30}")); +# endif #endif fmt = MOCKPP_PCHAR("%9%8%7%6%5%4%3%2%1%0"); @@ -438,7 +446,11 @@ #ifndef MOCKPP_MAKE_CHAR_READABLE MOCKPP_ASSERT_EQUALS(fmt, MOCKPP_PCSTRING("9876543210")); #else +# ifdef __BORLANDC__ + MOCKPP_ASSERT_EQUALS(fmt, MOCKPP_PCSTRING("{" "\x22" "9" "\x22" ", 0x39}{" "\x22" "8" "\x22" ", 0x38}{" "\x22" "7" "\x22" ", 0x37}{" "\x22" "6" "\x22" ", 0x36}{" "\x22" "5" "\x22" ", 0x35}{" "\x22" "4" "\x22" ", 0x34}{" "\x22" "3" "\x22" ", 0x33}{" "\x22" "2" "\x22" ", 0x32}{" "\x22" "1" "\x22" ", 0x31}{" "\x22" "0" "\x22" ", 0x30}")); +# else MOCKPP_ASSERT_EQUALS(fmt, MOCKPP_PCSTRING("{\"9\", 0x39}{\"8\", 0x38}{\"7\", 0x37}{\"6\", 0x36}{\"5\", 0x35}{\"4\", 0x34}{\"3\", 0x33}{\"2\", 0x32}{\"1\", 0x31}{\"0\", 0x30}")); +# endif #endif fmt = MOCKPP_PCHAR("%9%8%7%6%5%4%3%2%1%0"); @@ -455,7 +467,11 @@ #ifndef MOCKPP_MAKE_CHAR_READABLE MOCKPP_ASSERT_EQUALS(fmt, MOCKPP_PCSTRING("9876543210")); #else +# ifdef __BORLANDC__ + MOCKPP_ASSERT_EQUALS(fmt, MOCKPP_PCSTRING("{" "\x22" "9" "\x22" ", 0x39}{" "\x22" "8" "\x22" ", 0x38}{" "\x22" "7" "\x22" ", 0x37}{" "\x22" "6" "\x22" ", 0x36}{" "\x22" "5" "\x22" ", 0x35}{" "\x22" "4" "\x22" ", 0x34}{" "\x22" "3" "\x22" ", 0x33}{" "\x22" "2" "\x22" ", 0x32}{" "\x22" "1" "\x22" ", 0x31}{" "\x22" "0" "\x22" ", 0x30}")); +# else MOCKPP_ASSERT_EQUALS(fmt, MOCKPP_PCSTRING("{\"9\", 0x39}{\"8\", 0x38}{\"7\", 0x37}{\"6\", 0x36}{\"5\", 0x35}{\"4\", 0x34}{\"3\", 0x33}{\"2\", 0x32}{\"1\", 0x31}{\"0\", 0x30}")); +# endif #endif } |
From: Ewald A. <ewa...@us...> - 2005-04-10 12:34:01
|
Update of /cvsroot/mockpp/mockpp/mockpp/compat In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv10006/compat Modified Files: Formatter.cpp Log Message: fixes bcb5/g++ 2.95 Index: Formatter.cpp =================================================================== RCS file: /cvsroot/mockpp/mockpp/mockpp/compat/Formatter.cpp,v retrieving revision 1.38 retrieving revision 1.39 diff -u -d -r1.38 -r1.39 --- Formatter.cpp 9 Apr 2005 15:32:44 -0000 1.38 +++ Formatter.cpp 10 Apr 2005 12:33:52 -0000 1.39 @@ -30,6 +30,7 @@ #include <mockpp/mockpp.h> // always first header #include <cstdio> +#include <cctype> #include <mockpp/compat/Formatter.h> #include <mockpp/compat/AssertionFailedError.h> @@ -211,7 +212,11 @@ #ifndef MOCKPP_MAKE_CHAR_READABLE text += x; #else - if (!std::isalnum(x)) +#if (defined (_MSC_VER) && (_MSC_VER <= 1300)) || (defined (__GNUC__) && (__GNUC__ < 3)) + if (!isalnum(x)) +#else + if (!std::isalnum(x)) +#endif { text += MOCKPP_PCHAR("0x") + number((unsigned long)x, 16); } |
From: Ewald A. <ewa...@us...> - 2005-04-10 12:33:36
|
Update of /cvsroot/mockpp/mockpp/msvc6/mockpp In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv9819/mockpp Modified Files: mockpp.dsw Log Message: update project file Index: mockpp.dsw =================================================================== RCS file: /cvsroot/mockpp/mockpp/msvc6/mockpp/mockpp.dsw,v retrieving revision 1.6 retrieving revision 1.7 diff -u -d -r1.6 -r1.7 --- mockpp.dsw 6 Apr 2005 19:24:08 -0000 1.6 +++ mockpp.dsw 10 Apr 2005 12:33:11 -0000 1.7 @@ -117,6 +117,18 @@ ############################################################################### +Project: "poormock_se"=.\examples\tutorial\poormock_se.dsp - Package Owner=<4> + +Package=<5> +{{{ +}}} + +Package=<4> +{{{ +}}} + +############################################################################### + Project: "visitmock"=.\examples\tutorial\visitmock.dsp - Package Owner=<4> Package=<5> |
From: Ewald A. <ewa...@us...> - 2005-04-10 12:31:03
|
Update of /cvsroot/mockpp/mockpp/bcb5 In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv8372 Modified Files: Makefile.am mockpp.bpg Added Files: readability.bpf readability.bpr Log Message: new project file Index: mockpp.bpg =================================================================== RCS file: /cvsroot/mockpp/mockpp/bcb5/mockpp.bpg,v retrieving revision 1.17 retrieving revision 1.18 diff -u -d -r1.17 -r1.18 --- mockpp.bpg 22 Mar 2005 22:02:58 -0000 1.17 +++ mockpp.bpg 10 Apr 2005 12:30:33 -0000 1.18 @@ -11,7 +11,7 @@ #------------------------------------------------------------------------------ PROJECTS = mockpp_25.dll jmock_test_20.exe mock_test_20.exe mock_greeter_20.exe \ basicmock_20.exe visitmock_20.exe chainmock_20.exe poormock_20.exe \ - poormock_se_20.exe verifying_20.exe cppunit_20.exe + poormock_se_20.exe verifying_20.exe cppunit_20.exe readability_test_25.exe #------------------------------------------------------------------------------ default: $(PROJECTS) #------------------------------------------------------------------------------ @@ -60,4 +60,8 @@ $(ROOT)\bin\bpr2mak $** $(ROOT)\bin\make -$(MAKEFLAGS) -f$*.mak +readability_test_25.exe: readability.bpr + $(ROOT)\bin\bpr2mak $** + $(ROOT)\bin\make -$(MAKEFLAGS) -f$*.mak + --- NEW FILE: readability.bpr --- <?xml version='1.0' encoding='utf-8' ?> <!-- C++Builder XML Project --> <PROJECT> <MACROS> <VERSION value="BCB.05.03"/> <PROJECT value="c:\tmp\compile\readability_test_25.exe"/> <OBJFILES value="c:\tmp\compile\mockpp_25\\readability_test.obj c:\tmp\compile\mockpp_25\\classes_ABCDE.obj"/> <RESFILES value=""/> <DEFFILE value=""/> <RESDEPEN value="$(RESFILES)"/> <LIBFILES value="c:\tmp\compile\mockpp_25.lib c:\tmp\compile\cppunit_1_10.lib"/> <LIBRARIES value=""/> <SPARELIBS value=""/> <PACKAGES value="VCL50.bpi VCLX50.bpi bcbsmp50.bpi QRPT50.bpi VCLDB50.bpi VCLBDE50.bpi ibsmp50.bpi VCLDBX50.bpi TEEUI50.bpi TEEDB50.bpi TEE50.bpi TEEQR50.bpi VCLIB50.bpi bcbie50.bpi VCLIE50.bpi INETDB50.bpi INET50.bpi NMFAST50.bpi dclocx50.bpi bcb2kaxserver50.bpi"/> <PATHCPP value=".;..\mockpp\tests"/> <PATHPAS value=".;"/> <PATHRC value=".;"/> <PATHASM value=".;"/> <DEBUGLIBPATH value="$(BCB)\lib\debug"/> <RELEASELIBPATH value="$(BCB)\lib\release"/> <LINKER value="tlink32"/> <USERDEFINES value="__DLL___"/> <SYSDEFINES value="NO_STRICT;_NO_VCL;_RTLDLL;USEPACKAGES"/> <MAINSOURCE value="readability.bpf"/> <INCLUDEPATH value="mockpp\tests;\\SONNE\HOMES\Documents\src\mockpp\mockpp\mockpp\tests;..\mockpp\tests;..\mockpp\examples\tutorial;..\mockpp_25\examples\tutorial;..\mockpp_25\examples;..\mockpp_25\tests;..\..\mockpp;$(BCB)\include;..\..\..\cppunit-1.10.2\include;..\..\cppunit-1.10\include"/> <LIBPATH value="mockpp\tests;\\SONNE\HOMES\Documents\src\mockpp\mockpp\mockpp\tests;..\mockpp\tests;..\mockpp\examples\tutorial;..\mockpp_25\examples\tutorial;$(BCB)\lib\obj;$(BCB)\lib"/> <WARNINGS value="-w-par"/> </MACROS> <OPTIONS> <CFLAG1 value="-vGc -vGt -vGd -Od -Vx -Ve -X- -r- -a8 -b- -k -y -v -vi- -tWC -tWM -c"/> <PFLAGS value="-N2"c:\tmp\compile\mockpp_25\" -N0"c:\tmp\compile\mockpp_25\" -$YD -$W -$O- -v -JPHNE -M"/> <RFLAGS value=""/> <AFLAGS value="/mx /w2 /zd"/> <LFLAGS value="-l"c:\tmp\compile\" -I"c:\tmp\compile\mockpp_25\" -D"" -ap -Tpe -x -Gn -v"/> </OPTIONS> <LINKER> <ALLOBJ value="c0x32.obj $(PACKAGES) $(OBJFILES)"/> <ALLRES value="$(RESFILES)"/> <ALLLIB value="cg32.lib $(LIBFILES) $(LIBRARIES) import32.lib cw32mti.lib"/> </LINKER> <IDEOPTIONS> [Version Info] IncludeVerInfo=0 AutoIncBuild=0 MajorVer=1 MinorVer=0 Release=0 Build=0 Debug=0 PreRelease=0 Special=0 Private=0 DLL=0 Locale=1031 CodePage=1252 [Version Info Keys] CompanyName= FileDescription= FileVersion=1.0.0.0 InternalName= LegalCopyright= LegalTrademarks= OriginalFilename= ProductName= ProductVersion=1.0.0.0 Comments= [HistoryLists\hlIncludePath] Count=30 Item0=..\mockpp\examples\tutorial;..\mockpp_25\examples\tutorial;..\mockpp_25\examples;..\mockpp_25\tests;..\..\mockpp;$(BCB)\include;..\..\..\cppunit-1.10.2\include;..\..\cppunit-1.10\include Item1=..\mockpp\examples\tutorial;..\mockpp_25\examples\tutorial;..\mockpp_25\examples;..\mockpp_25\tests;..\..\mockpp;$(BCB)\include;..\..\..\cppunit-1.10.2\include Item2=..\mockpp_25\examples\tutorial;..\mockpp_25\examples;..\mockpp_25\tests;..;$(BCB)\include;..\..\..\cppunit.ups\include Item3=..\mockpp_25\examples\tutorial;..\mockpp_25\examples;..\mockpp_25\tests;..;$(BCB)\include;..\..\cppunit\include;..\..\..\cppunit-1.8.0\include Item4=..\mockpp_25\examples;..\mockpp_25\tests;..\..\mockpp;$(BCB)\include;..\..\cppunit\include;..\..\..\cppunit-1.8.0\include Item5=..\mockpp_25\tests;..;$(BCB)\include;..\..\cppunit\include;X:\src\cppunit-1.8.0\include Item6=..\mockpp_25\tests;..;$(BCB)\include;..\..\cppunit\include Item7=..\mockpp_25\tests;..;$(BCB)\include;B:\cvs\ups\src\3party\cppunit\include Item8=..\mockpp_25\tests;..;$(BCB)\include;..\..\..\cppunit-1.8.0\include Item9=..;$(BCB)\include;..\..\..\cppunit-1.8.0\include Item10=..\mockpp_25\tests;\\SONNE\HOMES\src\mockpp_25\mockpp\mockpp_25\tests;..\..\mockpp;$(BCB)\include;..\..\..\cppunit-1.8.0\include Item11=..;$(BCB)\include;X:\src\cppunit-1.8.0\include Item12=\\SONNE\HOMES\src\mockpp_25\mockpp\mockpp_25\tests;..\..\mockpp;..\mockpp_25\tests;..\mockpp;..\expat;$(BCB)\include Item13=..;..\mockpp_25\tests;..\mockpp;..\expat;$(BCB)\include Item14=..\..\mockpp;..\mockpp_25\tests;..\mockpp;..\expat;$(BCB)\include Item15=..\..\mockpp;..\mockpp_25\tests;..\mockpp;..\expat;$(BCB)\include;$(BCB)\include\vcl;C:\wx2\include\ Item16=.. ;..\mockpp_25\tests;..\mockpp;..\expat;$(BCB)\include;$(BCB)\include\vcl;C:\wx2\include\ Item17=.. ;..\mockpp_25\tests;..\expat;..\mockpp;$(BCB)\include;$(BCB)\include\vcl;C:\wx2\include Item18=..\mockpp_25\tests;..\expat;..\mockpp;$(BCB)\include;$(BCB)\include\vcl Item19=..\mockpp_25\tests;..\mockpp;$(BCB)\include;$(BCB)\include\vcl;expat Item20=..\mockpp;$(BCB)\include;$(BCB)\include\vcl;expat Item21=..\mockpp_25\tests;..\mockpp;$(BCB)\include;$(BCB)\include\vcl Item22=..\mockpp_25\tests;..\mockpp;$(BCB)\include Item23=..\mockpp_25\tests;..\mockpp;$(BCB)/include Item24=..\mockpp_25\tests;..\mockpp Item25=..\mockpp Item26=..\mockpp_25\tests;..\mockpp_25\mockpp Item27=..\mockpp_25\mockpp Item28=..\mockpp_25\tests;..\mockpp_25\mockpp;$(BCB)\include;$(BCB)\include\vcl Item29=..\mockpp_25\tests;E:\Eigene Dateien\c++\mockpp_25\mockpp;$(BCB)\include;$(BCB)\include\vcl [HistoryLists\hlLibraryPath] Count=19 Item0=..\mockpp\examples\tutorial;..\mockpp_25\examples\tutorial;$(BCB)\lib\obj;$(BCB)\lib Item1=$(BCB)\lib\obj;$(BCB)\lib Item2=..\mockpp_25\examples\tutorial;..\mockpp_25\examples;..\mockpp_25\tests;..\expat;$(BCB)\lib\obj;$(BCB)\lib Item3=..\mockpp_25\examples;..\mockpp_25\tests;..\expat;$(BCB)\lib\obj;$(BCB)\lib Item4=..\mockpp_25\examples;\\SONNE\HOMES\src\mockpp_25\mockpp\mockpp_25\tests;..\mockpp_25\tests;..\expat;$(BCB)\lib\obj;$(BCB)\lib Item5=\\SONNE\HOMES\src\mockpp_25\mockpp\mockpp_25\tests;..\mockpp_25\tests;..\expat;$(BCB)\lib\obj;$(BCB)\lib Item6=..\mockpp_25\tests;..\expat;$(BCB)\lib\obj;$(BCB)\lib Item7=..\mockpp_25\tests;$(BCB)\lib\obj;$(BCB)\lib;output;expat Item8=..\mockpp_25\tests;$(BCB)\lib\obj;$(BCB)\lib;output;bin Item9=..\mockpp_25\apps;$(BCB)\lib\obj;$(BCB)\lib;output;bin Item10=..\mockpp_25\apps;$(BCB)\lib\obj;$(BCB)\lib;output Item11=..\mockpp_25\apps;$(BCB)\lib\obj;$(BCB)\lib;E:\Eigene Dateien\c++\mockpp_25\bcb5\output Item12=..\mockpp_25\apps;$(BCB)\lib\obj;$(BCB)\lib;..\output Item13=..\mockpp_25\apps;$(BCB)\lib\obj;$(BCB)\lib Item14=..\mockpp_25\apps;D:\CBuilder5\mockpp_25\;$(BCB)\lib\obj;$(BCB)\lib Item15=e:\Eigene Dateien\c++\mockpp_25\mockpp\apps\;..\mockpp;$(BCB)\lib\obj;$(BCB)\lib Item16=e:\Eigene Dateien\c++\mockpp_25\mockpp\apps;..\mockpp;$(BCB)\lib\obj;$(BCB)\lib Item17=..\mockpp;$(BCB)\lib\obj;$(BCB)\lib Item18=e:\Eigene Dateien\c++\mockpp_25\mockpp\apps;$(BCB)\lib\obj;$(BCB)\lib [HistoryLists\hlDebugSourcePath] Count=1 Item0=$(BCB)\source\vcl [HistoryLists\hlConditionals] Count=3 Item0=__DLL___ Item1=_DEBUG;ULXR_SHOW_CONTENT;ULXR_SHOW_HTTP;ULXR_SHOW_WRTIE;ULXR_SHOW_READ;ULXR_SHOW_XML;DEBUG;__DLL___ Item2=_DEBUG [HistoryLists\hlIntOutputDir] Count=7 Item0=c:\tmp\compile\mockpp_25\ Item1=c:\tmp\compile\mockpp_25\ulxr_bcb5\ Item2=c:\temp Item3=output Item4=E:\Eigene Dateien\c++\mockpp_25\bcb5\output\ Item5=E:\Eigene Dateien\c++\mockpp_25\bcb5\output Item6=D:\CBuilder5\Projects\output\ [HistoryLists\hlFinalOutputDir] Count=8 Item0=c:\tmp\compile\ Item1=c:\tmp\compile Item2=c:\tmp\compile\mockpp_25\ Item3=c:\temp Item4=output\ Item5=E:\Eigene Dateien\c++\mockpp_25\bcb5\output\ Item6=E:\Eigene Dateien\c++\mockpp_25\bcb5\output Item7=output [HistoryLists\hIBPIOutputDir] Count=10 Item0=c:\tmp\compile\ Item1=c:\tmp\compile Item2=c:\tmp\compile\mockpp_25\ Item3=c:\tmp\compile\mockpp_25\ulxr_bcb5\ Item4=c:\temp Item5=e:\Eigene Dateien\c++\mockpp_25\bcb5\output\ Item6=output\ Item7=E:\Eigene Dateien\c++\mockpp_25\bcb5\output Item8=D:\CBuilder5\Projects\output\ Item9=output [Debugging] DebugSourceDirs=$(BCB)\source\vcl [Parameters] RunParams=localhost/rpc2 HostApplication= RemoteHost= RemotePath= RemoteDebug=0 [Compiler] ShowInfoMsgs=0 LinkDebugVcl=0 LinkCGLIB=1 [Language] ActiveLang= ProjectLang= RootDir= </IDEOPTIONS> </PROJECT> Index: Makefile.am =================================================================== RCS file: /cvsroot/mockpp/mockpp/bcb5/Makefile.am,v retrieving revision 1.8 retrieving revision 1.9 diff -u -d -r1.8 -r1.9 --- Makefile.am 19 Feb 2005 14:06:31 -0000 1.8 +++ Makefile.am 10 Apr 2005 12:30:33 -0000 1.9 @@ -5,6 +5,7 @@ EXTRA_DIST = \ gen-mak.bat \ mockpp.bpg \ + readability.bpf \ mock_greeter.bpf \ mock_greeter.bpr \ basicmock.bpf \ --- NEW FILE: readability.bpf --- USELIB("c:\tmp\compile\mockpp_25.lib"); USELIB("c:\tmp\compile\cppunit_1_10.lib"); USEUNIT("..\mockpp\tests\readability_test.cpp"); USEUNIT("..\mockpp\tests\classes_ABCDE.cpp"); //--------------------------------------------------------------------------- This file is used by the project manager only and should be treated like the project file main |
From: Ewald A. <ewa...@us...> - 2005-04-09 20:16:10
|
Update of /cvsroot/mockpp/mockpp/msvc6/mockpp/examples/tutorial In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv22878/msvc6/mockpp/examples/tutorial Modified Files: Makefile.am Log Message: updated project files Index: Makefile.am =================================================================== RCS file: /cvsroot/mockpp/mockpp/msvc6/mockpp/examples/tutorial/Makefile.am,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- Makefile.am 16 Jan 2005 16:20:37 -0000 1.2 +++ Makefile.am 9 Apr 2005 20:16:02 -0000 1.3 @@ -1,6 +1,6 @@ all: - -EXTRA_DIST = basicmock.dsp visitmock.dsp chainmock.dsp poormock.dsp cppunit.dsp + +EXTRA_DIST = basicmock.dsp visitmock.dsp chainmock.dsp poormock.dsp poormock_se.dsp cppunit.dsp CLEAN_FILES = *.plg *.opt *.ncb *.dep *.~* *.~~* *~ *SD*.EA |