cppunit-cvs Mailing List for CppUnit - C++ port of JUnit
Brought to you by:
blep
You can subscribe to this list here.
2004 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
(94) |
Dec
|
---|---|---|---|---|---|---|---|---|---|---|---|---|
2005 |
Jan
|
Feb
(114) |
Mar
(80) |
Apr
|
May
|
Jun
(36) |
Jul
(67) |
Aug
(37) |
Sep
(33) |
Oct
(28) |
Nov
(91) |
Dec
(16) |
2006 |
Jan
(1) |
Feb
(7) |
Mar
(45) |
Apr
|
May
|
Jun
(36) |
Jul
(7) |
Aug
|
Sep
(32) |
Oct
(3) |
Nov
|
Dec
|
2007 |
Jan
(29) |
Feb
(11) |
Mar
(5) |
Apr
|
May
|
Jun
|
Jul
|
Aug
(35) |
Sep
|
Oct
|
Nov
|
Dec
|
2008 |
Jan
|
Feb
(14) |
Mar
|
Apr
|
May
|
Jun
(5) |
Jul
(13) |
Aug
|
Sep
|
Oct
(3) |
Nov
|
Dec
(15) |
From: Andy D. <and...@us...> - 2008-12-16 06:26:47
|
Update of /cvsroot/cppunit/cppunit/examples/simple In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv27096/examples/simple Added Files: simple.vcproj simple_plugin.vcproj Log Message: Added updated project and instructions for building under Visual Studio.Net 2008 --- NEW FILE: simple.vcproj --- <?xml version="1.0" encoding="Windows-1252"?> <VisualStudioProject ProjectType="Visual C++" Version="9.00" Name="simple" ProjectGUID="{D1074F87-739A-4990-8D7A-29CE3D07E6EB}" TargetFrameworkVersion="0" > <Platforms> <Platform Name="Win32" /> </Platforms> <ToolFiles> </ToolFiles> <Configurations> <Configuration Name="Release|Win32" OutputDirectory=".\Release" IntermediateDirectory=".\Release" ConfigurationType="1" InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC60.vsprops" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="false" CharacterSet="2" > <Tool Name="VCPreBuildEventTool" /> <Tool Name="VCCustomBuildTool" /> <Tool Name="VCXMLDataGeneratorTool" /> <Tool Name="VCWebServiceProxyGeneratorTool" /> <Tool Name="VCMIDLTool" TypeLibraryName=".\Release/simple.tlb" HeaderFileName="" /> <Tool Name="VCCLCompilerTool" Optimization="2" InlineFunctionExpansion="1" AdditionalIncludeDirectories="../../include" PreprocessorDefinitions="WIN32;NDEBUG;_CONSOLE" StringPooling="true" RuntimeLibrary="2" EnableFunctionLevelLinking="true" RuntimeTypeInfo="true" PrecompiledHeaderFile=".\Release/simple.pch" AssemblerListingLocation=".\Release/" ObjectFile=".\Release/" ProgramDataBaseFileName=".\Release/" WarningLevel="3" SuppressStartupBanner="true" DebugInformationFormat="1" /> <Tool Name="VCManagedResourceCompilerTool" /> <Tool Name="VCResourceCompilerTool" PreprocessorDefinitions="NDEBUG" Culture="1036" /> <Tool Name="VCPreLinkEventTool" /> <Tool Name="VCLinkerTool" AdditionalDependencies="odbc32.lib odbccp32.lib cppunit.lib" OutputFile=".\Release/simple.exe" LinkIncremental="1" SuppressStartupBanner="true" AdditionalLibraryDirectories="../../lib/" ProgramDatabaseFile=".\Release/simple.pdb" SubSystem="1" RandomizedBaseAddress="1" DataExecutionPrevention="0" TargetMachine="1" /> <Tool Name="VCALinkTool" /> <Tool Name="VCManifestTool" /> <Tool Name="VCXDCMakeTool" /> <Tool Name="VCBscMakeTool" SuppressStartupBanner="true" OutputFile=".\Release/simple.bsc" /> <Tool Name="VCFxCopTool" /> <Tool Name="VCAppVerifierTool" /> <Tool Name="VCPostBuildEventTool" /> </Configuration> <Configuration Name="Debug|Win32" OutputDirectory=".\Debug" IntermediateDirectory=".\Debug" ConfigurationType="1" InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC60.vsprops" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="false" CharacterSet="2" > <Tool Name="VCPreBuildEventTool" /> <Tool Name="VCCustomBuildTool" /> <Tool Name="VCXMLDataGeneratorTool" /> <Tool Name="VCWebServiceProxyGeneratorTool" /> <Tool Name="VCMIDLTool" TypeLibraryName=".\Debug/simple.tlb" HeaderFileName="" /> <Tool Name="VCCLCompilerTool" Optimization="0" AdditionalIncludeDirectories="../../include" PreprocessorDefinitions="WIN32;_DEBUG;_CONSOLE" MinimalRebuild="true" BasicRuntimeChecks="3" RuntimeLibrary="3" RuntimeTypeInfo="true" PrecompiledHeaderFile=".\Debug/simple.pch" AssemblerListingLocation=".\Debug/" ObjectFile=".\Debug/" ProgramDataBaseFileName=".\Debug/" WarningLevel="3" SuppressStartupBanner="true" DebugInformationFormat="3" /> <Tool Name="VCManagedResourceCompilerTool" /> <Tool Name="VCResourceCompilerTool" PreprocessorDefinitions="_DEBUG" Culture="1036" /> <Tool Name="VCPreLinkEventTool" /> <Tool Name="VCLinkerTool" AdditionalDependencies="odbc32.lib odbccp32.lib cppunitd.lib" OutputFile=".\Debug/simple.exe" LinkIncremental="2" SuppressStartupBanner="true" AdditionalLibraryDirectories="../../lib/" GenerateDebugInformation="true" ProgramDatabaseFile=".\Debug/simple.pdb" SubSystem="1" RandomizedBaseAddress="1" DataExecutionPrevention="0" TargetMachine="1" /> <Tool Name="VCALinkTool" /> <Tool Name="VCManifestTool" /> <Tool Name="VCXDCMakeTool" /> <Tool Name="VCBscMakeTool" SuppressStartupBanner="true" OutputFile=".\Debug/simple.bsc" /> <Tool Name="VCFxCopTool" /> <Tool Name="VCAppVerifierTool" /> <Tool Name="VCPostBuildEventTool" /> </Configuration> </Configurations> <References> </References> <Files> <File RelativePath="ExampleTestCase.cpp" > <FileConfiguration Name="Release|Win32" > <Tool Name="VCCLCompilerTool" AdditionalIncludeDirectories="" PreprocessorDefinitions="" /> </FileConfiguration> <FileConfiguration Name="Debug|Win32" > <Tool Name="VCCLCompilerTool" AdditionalIncludeDirectories="" PreprocessorDefinitions="" /> </FileConfiguration> </File> <File RelativePath="ExampleTestCase.h" > </File> <File RelativePath="Main.cpp" > <FileConfiguration Name="Release|Win32" > <Tool Name="VCCLCompilerTool" AdditionalIncludeDirectories="" PreprocessorDefinitions="" /> </FileConfiguration> <FileConfiguration Name="Debug|Win32" > <Tool Name="VCCLCompilerTool" AdditionalIncludeDirectories="" PreprocessorDefinitions="" /> </FileConfiguration> </File> <File RelativePath="Makefile.am" > </File> </Files> <Globals> </Globals> </VisualStudioProject> --- NEW FILE: simple_plugin.vcproj --- <?xml version="1.0" encoding="Windows-1252"?> <VisualStudioProject ProjectType="Visual C++" Version="9.00" Name="simple_plugin" ProjectGUID="{71F48C20-FDD7-437F-983C-8C4606D14D59}" TargetFrameworkVersion="0" > <Platforms> <Platform Name="Win32" /> </Platforms> <ToolFiles> </ToolFiles> <Configurations> <Configuration Name="Release|Win32" OutputDirectory=".\ReleasePlugIn" IntermediateDirectory=".\ReleasePlugIn" ConfigurationType="2" InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC60.vsprops" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="false" CharacterSet="2" > <Tool Name="VCPreBuildEventTool" /> <Tool Name="VCCustomBuildTool" /> <Tool Name="VCXMLDataGeneratorTool" /> <Tool Name="VCWebServiceProxyGeneratorTool" /> <Tool Name="VCMIDLTool" PreprocessorDefinitions="NDEBUG" MkTypLibCompatible="true" SuppressStartupBanner="true" TargetEnvironment="1" TypeLibraryName=".\ReleasePlugIn/simple_plugin.tlb" HeaderFileName="" /> <Tool Name="VCCLCompilerTool" Optimization="2" InlineFunctionExpansion="1" AdditionalIncludeDirectories="../../include" PreprocessorDefinitions="NDEBUG;WIN32;_WINDOWS;_USRDLL;SIMPLE_PLUGIN_EXPORTS;CPPUNIT_DLL" StringPooling="true" RuntimeLibrary="2" EnableFunctionLevelLinking="true" RuntimeTypeInfo="true" PrecompiledHeaderFile=".\ReleasePlugIn/simple_plugin.pch" AssemblerListingLocation=".\ReleasePlugIn/" ObjectFile=".\ReleasePlugIn/" ProgramDataBaseFileName=".\ReleasePlugIn/" WarningLevel="3" SuppressStartupBanner="true" DebugInformationFormat="1" /> <Tool Name="VCManagedResourceCompilerTool" /> <Tool Name="VCResourceCompilerTool" PreprocessorDefinitions="NDEBUG" Culture="1036" /> <Tool Name="VCPreLinkEventTool" /> <Tool Name="VCLinkerTool" AdditionalDependencies="odbc32.lib odbccp32.lib cppunit_dll.lib" OutputFile=".\ReleasePlugIn/simple_plugin.dll" LinkIncremental="1" SuppressStartupBanner="true" AdditionalLibraryDirectories="../../lib/" ProgramDatabaseFile=".\ReleasePlugIn/simple_plugin.pdb" RandomizedBaseAddress="1" DataExecutionPrevention="0" ImportLibrary=".\ReleasePlugIn/simple_plugin.lib" TargetMachine="1" /> <Tool Name="VCALinkTool" /> <Tool Name="VCManifestTool" /> <Tool Name="VCXDCMakeTool" /> <Tool Name="VCBscMakeTool" SuppressStartupBanner="true" OutputFile=".\ReleasePlugIn/simple_plugin.bsc" /> <Tool Name="VCFxCopTool" /> <Tool Name="VCAppVerifierTool" /> <Tool Name="VCPostBuildEventTool" Description="Running tests..." CommandLine="..\..\lib\DllPlugInTester_dll.exe "$(TargetPath)"" /> </Configuration> <Configuration Name="Debug|Win32" OutputDirectory=".\DebugPlugIn" IntermediateDirectory=".\DebugPlugIn" ConfigurationType="2" InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC60.vsprops" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="false" CharacterSet="2" > <Tool Name="VCPreBuildEventTool" /> <Tool Name="VCCustomBuildTool" /> <Tool Name="VCXMLDataGeneratorTool" /> <Tool Name="VCWebServiceProxyGeneratorTool" /> <Tool Name="VCMIDLTool" PreprocessorDefinitions="_DEBUG" MkTypLibCompatible="true" SuppressStartupBanner="true" TargetEnvironment="1" TypeLibraryName=".\DebugPlugIn/simple_plugin.tlb" HeaderFileName="" /> <Tool Name="VCCLCompilerTool" Optimization="0" AdditionalIncludeDirectories="../../include" PreprocessorDefinitions="_DEBUG;WIN32;_WINDOWS;_USRDLL;SIMPLE_PLUGIN_EXPORTS;CPPUNIT_DLL" MinimalRebuild="true" BasicRuntimeChecks="3" RuntimeLibrary="3" RuntimeTypeInfo="true" PrecompiledHeaderFile=".\DebugPlugIn/simple_plugin.pch" AssemblerListingLocation=".\DebugPlugIn/" ObjectFile=".\DebugPlugIn/" ProgramDataBaseFileName=".\DebugPlugIn/" WarningLevel="3" SuppressStartupBanner="true" DebugInformationFormat="3" /> <Tool Name="VCManagedResourceCompilerTool" /> <Tool Name="VCResourceCompilerTool" PreprocessorDefinitions="_DEBUG" Culture="1036" /> <Tool Name="VCPreLinkEventTool" /> <Tool Name="VCLinkerTool" AdditionalDependencies="odbc32.lib odbccp32.lib cppunitd_dll.lib" OutputFile="DebugPlugIn/simple_plugind.dll" LinkIncremental="1" SuppressStartupBanner="true" AdditionalLibraryDirectories="../../lib/" GenerateDebugInformation="true" ProgramDatabaseFile=".\DebugPlugIn/simple_plugind.pdb" RandomizedBaseAddress="1" DataExecutionPrevention="0" ImportLibrary=".\DebugPlugIn/simple_plugind.lib" TargetMachine="1" /> <Tool Name="VCALinkTool" /> <Tool Name="VCManifestTool" /> <Tool Name="VCXDCMakeTool" /> <Tool Name="VCBscMakeTool" SuppressStartupBanner="true" OutputFile=".\DebugPlugIn/simple_plugin.bsc" /> <Tool Name="VCFxCopTool" /> <Tool Name="VCAppVerifierTool" /> <Tool Name="VCPostBuildEventTool" Description="Running tests..." CommandLine="..\..\lib\DllPlugInTesterd_dll.exe -b --xml tests.xml -c "$(TargetPath)"" /> </Configuration> </Configurations> <References> </References> <Files> <File RelativePath="ExampleTestCase.cpp" > <FileConfiguration Name="Release|Win32" > <Tool Name="VCCLCompilerTool" AdditionalIncludeDirectories="" PreprocessorDefinitions="" /> </FileConfiguration> <FileConfiguration Name="Debug|Win32" > <Tool Name="VCCLCompilerTool" AdditionalIncludeDirectories="" PreprocessorDefinitions="" /> </FileConfiguration> </File> <File RelativePath="ExampleTestCase.h" > </File> <File RelativePath="SimplePlugIn.cpp" > <FileConfiguration Name="Release|Win32" > <Tool Name="VCCLCompilerTool" AdditionalIncludeDirectories="" PreprocessorDefinitions="" /> </FileConfiguration> <FileConfiguration Name="Debug|Win32" > <Tool Name="VCCLCompilerTool" AdditionalIncludeDirectories="" PreprocessorDefinitions="" /> </FileConfiguration> </File> </Files> <Globals> </Globals> </VisualStudioProject> |
From: Andy D. <and...@us...> - 2008-12-16 06:26:47
|
Update of /cvsroot/cppunit/cppunit/examples/DumperPlugIn In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv27096/examples/DumperPlugIn Added Files: DumperPlugIn.vcproj Log Message: Added updated project and instructions for building under Visual Studio.Net 2008 --- NEW FILE: DumperPlugIn.vcproj --- <?xml version="1.0" encoding="Windows-1252"?> <VisualStudioProject ProjectType="Visual C++" Version="9.00" Name="DumperPlugIn" ProjectGUID="{D2A913B4-0257-453F-8519-75E1DF33F76B}" TargetFrameworkVersion="0" > <Platforms> <Platform Name="Win32" /> </Platforms> <ToolFiles> </ToolFiles> <Configurations> <Configuration Name="Debug|Win32" OutputDirectory=".\Debug" IntermediateDirectory=".\Debug" ConfigurationType="2" InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC60.vsprops" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="false" CharacterSet="2" > <Tool Name="VCPreBuildEventTool" /> <Tool Name="VCCustomBuildTool" /> <Tool Name="VCXMLDataGeneratorTool" /> <Tool Name="VCWebServiceProxyGeneratorTool" /> <Tool Name="VCMIDLTool" PreprocessorDefinitions="_DEBUG" MkTypLibCompatible="true" SuppressStartupBanner="true" TargetEnvironment="1" TypeLibraryName=".\Debug/DumperPlugIn.tlb" HeaderFileName="" /> <Tool Name="VCCLCompilerTool" Optimization="0" AdditionalIncludeDirectories="..\..\include" PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS;_USRDLL;DUMPERPLUGIN_EXPORTS" MinimalRebuild="true" BasicRuntimeChecks="3" RuntimeLibrary="3" RuntimeTypeInfo="true" PrecompiledHeaderFile=".\Debug/DumperPlugIn.pch" AssemblerListingLocation=".\Debug/" ObjectFile=".\Debug/" ProgramDataBaseFileName=".\Debug/" WarningLevel="3" SuppressStartupBanner="true" DebugInformationFormat="3" /> <Tool Name="VCManagedResourceCompilerTool" /> <Tool Name="VCResourceCompilerTool" PreprocessorDefinitions="_DEBUG" Culture="1036" /> <Tool Name="VCPreLinkEventTool" /> <Tool Name="VCLinkerTool" AdditionalDependencies="odbc32.lib odbccp32.lib cppunitd_dll.lib" OutputFile="../../lib/DumperPlugInd.dll" LinkIncremental="1" SuppressStartupBanner="true" AdditionalLibraryDirectories="../../lib/" GenerateDebugInformation="true" ProgramDatabaseFile=".\Debug/DumperPlugInd.pdb" RandomizedBaseAddress="1" DataExecutionPrevention="0" ImportLibrary=".\Debug/DumperPlugInd.lib" TargetMachine="1" /> <Tool Name="VCALinkTool" /> <Tool Name="VCManifestTool" /> <Tool Name="VCXDCMakeTool" /> <Tool Name="VCBscMakeTool" SuppressStartupBanner="true" OutputFile=".\Debug/DumperPlugIn.bsc" /> <Tool Name="VCFxCopTool" /> <Tool Name="VCAppVerifierTool" /> <Tool Name="VCPostBuildEventTool" /> </Configuration> <Configuration Name="Release|Win32" OutputDirectory=".\Release" IntermediateDirectory=".\Release" ConfigurationType="2" InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC60.vsprops" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="false" CharacterSet="2" > <Tool Name="VCPreBuildEventTool" /> <Tool Name="VCCustomBuildTool" /> <Tool Name="VCXMLDataGeneratorTool" /> <Tool Name="VCWebServiceProxyGeneratorTool" /> <Tool Name="VCMIDLTool" PreprocessorDefinitions="NDEBUG" MkTypLibCompatible="true" SuppressStartupBanner="true" TargetEnvironment="1" TypeLibraryName=".\Release/DumperPlugIn.tlb" HeaderFileName="" /> <Tool Name="VCCLCompilerTool" Optimization="2" InlineFunctionExpansion="1" AdditionalIncludeDirectories="..\..\include" PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_USRDLL;DUMPERPLUGIN_EXPORTS" StringPooling="true" RuntimeLibrary="2" EnableFunctionLevelLinking="true" RuntimeTypeInfo="true" PrecompiledHeaderFile=".\Release/DumperPlugIn.pch" AssemblerListingLocation=".\Release/" ObjectFile=".\Release/" ProgramDataBaseFileName=".\Release/" WarningLevel="3" SuppressStartupBanner="true" DebugInformationFormat="1" /> <Tool Name="VCManagedResourceCompilerTool" /> <Tool Name="VCResourceCompilerTool" PreprocessorDefinitions="NDEBUG" Culture="1036" /> <Tool Name="VCPreLinkEventTool" /> <Tool Name="VCLinkerTool" AdditionalDependencies="odbc32.lib odbccp32.lib cppunit_dll.lib" OutputFile="../../lib/DumperPlugIn.dll" LinkIncremental="1" SuppressStartupBanner="true" AdditionalLibraryDirectories="../../lib/" ProgramDatabaseFile=".\Release/DumperPlugIn.pdb" RandomizedBaseAddress="1" DataExecutionPrevention="0" ImportLibrary=".\Release/DumperPlugIn.lib" TargetMachine="1" /> <Tool Name="VCALinkTool" /> <Tool Name="VCManifestTool" /> <Tool Name="VCXDCMakeTool" /> <Tool Name="VCBscMakeTool" SuppressStartupBanner="true" OutputFile=".\Release/DumperPlugIn.bsc" /> <Tool Name="VCFxCopTool" /> <Tool Name="VCAppVerifierTool" /> <Tool Name="VCPostBuildEventTool" /> </Configuration> </Configurations> <References> </References> <Files> <File RelativePath="DumperListener.cpp" > <FileConfiguration Name="Debug|Win32" > <Tool Name="VCCLCompilerTool" AdditionalIncludeDirectories="" PreprocessorDefinitions="" /> </FileConfiguration> <FileConfiguration Name="Release|Win32" > <Tool Name="VCCLCompilerTool" AdditionalIncludeDirectories="" PreprocessorDefinitions="" /> </FileConfiguration> </File> <File RelativePath="DumperListener.h" > </File> <File RelativePath="DumperPlugIn.cpp" > <FileConfiguration Name="Debug|Win32" > <Tool Name="VCCLCompilerTool" AdditionalIncludeDirectories="" PreprocessorDefinitions="" /> </FileConfiguration> <FileConfiguration Name="Release|Win32" > <Tool Name="VCCLCompilerTool" AdditionalIncludeDirectories="" PreprocessorDefinitions="" /> </FileConfiguration> </File> <File RelativePath="Makefile.am" > </File> </Files> <Globals> </Globals> </VisualStudioProject> |
From: Andy D. <and...@us...> - 2008-12-16 06:26:47
|
Update of /cvsroot/cppunit/cppunit/examples/money In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv27096/examples/money Added Files: money.vcproj Log Message: Added updated project and instructions for building under Visual Studio.Net 2008 --- NEW FILE: money.vcproj --- <?xml version="1.0" encoding="Windows-1252"?> <VisualStudioProject ProjectType="Visual C++" Version="9.00" Name="money" ProjectGUID="{857ECDC1-47DF-40F5-AC08-53F936D1A3A3}" TargetFrameworkVersion="0" > <Platforms> <Platform Name="Win32" /> </Platforms> <ToolFiles> </ToolFiles> <Configurations> <Configuration Name="Debug|Win32" OutputDirectory=".\Debug" IntermediateDirectory=".\Debug" ConfigurationType="1" InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC60.vsprops" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="false" CharacterSet="2" > <Tool Name="VCPreBuildEventTool" /> <Tool Name="VCCustomBuildTool" /> <Tool Name="VCXMLDataGeneratorTool" /> <Tool Name="VCWebServiceProxyGeneratorTool" /> <Tool Name="VCMIDLTool" TypeLibraryName=".\Debug/money.tlb" HeaderFileName="" /> <Tool Name="VCCLCompilerTool" Optimization="0" AdditionalIncludeDirectories="../../include" PreprocessorDefinitions="WIN32;_DEBUG;_CONSOLE" MinimalRebuild="true" BasicRuntimeChecks="3" RuntimeLibrary="3" RuntimeTypeInfo="true" UsePrecompiledHeader="2" PrecompiledHeaderThrough="stdafx.h" PrecompiledHeaderFile=".\Debug/money.pch" AssemblerListingLocation=".\Debug/" ObjectFile=".\Debug/" ProgramDataBaseFileName=".\Debug/" WarningLevel="3" SuppressStartupBanner="true" DebugInformationFormat="3" /> <Tool Name="VCManagedResourceCompilerTool" /> <Tool Name="VCResourceCompilerTool" PreprocessorDefinitions="_DEBUG" Culture="1036" /> <Tool Name="VCPreLinkEventTool" /> <Tool Name="VCLinkerTool" AdditionalDependencies="odbc32.lib odbccp32.lib cppunitd.lib" OutputFile="Debug/moneyd.exe" LinkIncremental="1" SuppressStartupBanner="true" AdditionalLibraryDirectories="../../lib" GenerateDebugInformation="true" ProgramDatabaseFile=".\Debug/moneyd.pdb" SubSystem="1" RandomizedBaseAddress="1" DataExecutionPrevention="0" TargetMachine="1" /> <Tool Name="VCALinkTool" /> <Tool Name="VCManifestTool" /> <Tool Name="VCXDCMakeTool" /> <Tool Name="VCBscMakeTool" SuppressStartupBanner="true" OutputFile=".\Debug/money.bsc" /> <Tool Name="VCFxCopTool" /> <Tool Name="VCAppVerifierTool" /> <Tool Name="VCPostBuildEventTool" Description="Unit testing..." CommandLine="$(TargetPath)" /> </Configuration> <Configuration Name="Release|Win32" OutputDirectory=".\Release" IntermediateDirectory=".\Release" ConfigurationType="1" InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC60.vsprops" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="false" CharacterSet="2" > <Tool Name="VCPreBuildEventTool" /> <Tool Name="VCCustomBuildTool" /> <Tool Name="VCXMLDataGeneratorTool" /> <Tool Name="VCWebServiceProxyGeneratorTool" /> <Tool Name="VCMIDLTool" TypeLibraryName=".\Release/money.tlb" HeaderFileName="" /> <Tool Name="VCCLCompilerTool" Optimization="2" InlineFunctionExpansion="1" AdditionalIncludeDirectories="../../include" PreprocessorDefinitions="WIN32;NDEBUG;_CONSOLE" StringPooling="true" RuntimeLibrary="2" EnableFunctionLevelLinking="true" RuntimeTypeInfo="true" UsePrecompiledHeader="2" PrecompiledHeaderThrough="stdafx.h" PrecompiledHeaderFile=".\Release/money.pch" AssemblerListingLocation=".\Release/" ObjectFile=".\Release/" ProgramDataBaseFileName=".\Release/" WarningLevel="3" SuppressStartupBanner="true" DebugInformationFormat="1" /> <Tool Name="VCManagedResourceCompilerTool" /> <Tool Name="VCResourceCompilerTool" PreprocessorDefinitions="NDEBUG" Culture="1036" /> <Tool Name="VCPreLinkEventTool" /> <Tool Name="VCLinkerTool" AdditionalDependencies="odbc32.lib odbccp32.lib cppunit.lib" OutputFile=".\Release/money.exe" LinkIncremental="1" SuppressStartupBanner="true" AdditionalLibraryDirectories="../../lib" ProgramDatabaseFile=".\Release/money.pdb" SubSystem="1" RandomizedBaseAddress="1" DataExecutionPrevention="0" TargetMachine="1" /> <Tool Name="VCALinkTool" /> <Tool Name="VCManifestTool" /> <Tool Name="VCXDCMakeTool" /> <Tool Name="VCBscMakeTool" SuppressStartupBanner="true" OutputFile=".\Release/money.bsc" /> <Tool Name="VCFxCopTool" /> <Tool Name="VCAppVerifierTool" /> <Tool Name="VCPostBuildEventTool" Description="Unit testing..." CommandLine="$(TargetPath)" /> </Configuration> </Configurations> <References> </References> <Files> <Filter Name="Source Files" Filter="cpp;c;cxx;rc;def;r;odl;idl;hpj;bat" > <File RelativePath="MoneyApp.cpp" > <FileConfiguration Name="Debug|Win32" > <Tool Name="VCCLCompilerTool" AdditionalIncludeDirectories="" PreprocessorDefinitions="" /> </FileConfiguration> <FileConfiguration Name="Release|Win32" > <Tool Name="VCCLCompilerTool" AdditionalIncludeDirectories="" PreprocessorDefinitions="" /> </FileConfiguration> </File> <File RelativePath="MoneyTest.cpp" > <FileConfiguration Name="Debug|Win32" > <Tool Name="VCCLCompilerTool" AdditionalIncludeDirectories="" PreprocessorDefinitions="" /> </FileConfiguration> <FileConfiguration Name="Release|Win32" > <Tool Name="VCCLCompilerTool" AdditionalIncludeDirectories="" PreprocessorDefinitions="" /> </FileConfiguration> </File> <File RelativePath="StdAfx.cpp" > <FileConfiguration Name="Debug|Win32" > <Tool Name="VCCLCompilerTool" AdditionalIncludeDirectories="" PreprocessorDefinitions="" UsePrecompiledHeader="1" /> </FileConfiguration> <FileConfiguration Name="Release|Win32" > <Tool Name="VCCLCompilerTool" AdditionalIncludeDirectories="" PreprocessorDefinitions="" UsePrecompiledHeader="1" /> </FileConfiguration> </File> </Filter> <Filter Name="Header Files" Filter="h;hpp;hxx;hm;inl" > <File RelativePath="Money.h" > </File> <File RelativePath="MoneyTest.h" > </File> <File RelativePath="StdAfx.h" > </File> </Filter> <Filter Name="Resource Files" Filter="ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe" > </Filter> </Files> <Globals> </Globals> </VisualStudioProject> |
From: Andy D. <and...@us...> - 2008-12-16 06:26:47
|
Update of /cvsroot/cppunit/cppunit/src/DllPlugInTester In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv27096/src/DllPlugInTester Added Files: DllPlugInTester.vcproj DllPlugInTesterTest.vcproj Log Message: Added updated project and instructions for building under Visual Studio.Net 2008 --- NEW FILE: DllPlugInTester.vcproj --- <?xml version="1.0" encoding="Windows-1252"?> <VisualStudioProject ProjectType="Visual C++" Version="9.00" Name="DllPlugInTester" ProjectGUID="{831B69EA-539C-4DCC-A9E0-25D717636A16}" TargetFrameworkVersion="0" > <Platforms> <Platform Name="Win32" /> </Platforms> <ToolFiles> </ToolFiles> <Configurations> <Configuration Name="Release|Win32" OutputDirectory=".\ReleaseDll" IntermediateDirectory=".\ReleaseDll" ConfigurationType="1" InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC60.vsprops" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="false" CharacterSet="2" > <Tool Name="VCPreBuildEventTool" /> <Tool Name="VCCustomBuildTool" /> <Tool Name="VCXMLDataGeneratorTool" /> <Tool Name="VCWebServiceProxyGeneratorTool" /> <Tool Name="VCMIDLTool" TypeLibraryName=".\ReleaseDll/DllPlugInTester.tlb" HeaderFileName="" /> <Tool Name="VCCLCompilerTool" Optimization="1" InlineFunctionExpansion="1" AdditionalIncludeDirectories="..\..\include" PreprocessorDefinitions="WIN32;NDEBUG;_CONSOLE;CPPUNIT_DLL" StringPooling="true" RuntimeLibrary="2" EnableFunctionLevelLinking="true" RuntimeTypeInfo="true" PrecompiledHeaderFile=".\ReleaseDll/DllPlugInTester.pch" AssemblerListingLocation=".\ReleaseDll/" ObjectFile=".\ReleaseDll/" ProgramDataBaseFileName=".\ReleaseDll/" WarningLevel="3" SuppressStartupBanner="true" DebugInformationFormat="1" /> <Tool Name="VCManagedResourceCompilerTool" /> <Tool Name="VCResourceCompilerTool" PreprocessorDefinitions="NDEBUG" Culture="1036" /> <Tool Name="VCPreLinkEventTool" /> <Tool Name="VCLinkerTool" AdditionalDependencies="odbc32.lib odbccp32.lib cppunit_dll.lib" OutputFile="ReleaseDll\DllPlugInTester_dll.exe" LinkIncremental="1" SuppressStartupBanner="true" AdditionalLibraryDirectories="../../lib" ProgramDatabaseFile=".\ReleaseDll/DllPlugInTester_dll.pdb" SubSystem="1" RandomizedBaseAddress="1" DataExecutionPrevention="0" TargetMachine="1" /> <Tool Name="VCALinkTool" /> <Tool Name="VCManifestTool" /> <Tool Name="VCXDCMakeTool" /> <Tool Name="VCBscMakeTool" SuppressStartupBanner="true" OutputFile=".\ReleaseDll/DllPlugInTester.bsc" /> <Tool Name="VCFxCopTool" /> <Tool Name="VCAppVerifierTool" /> <Tool Name="VCPostBuildEventTool" Description="Copying target to lib/" CommandLine="copy "$(TargetPath)" ..\..\lib\$(TargetName).exe" /> </Configuration> <Configuration Name="Debug Static|Win32" OutputDirectory=".\Debug" IntermediateDirectory=".\Debug" ConfigurationType="1" InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC60.vsprops" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="false" CharacterSet="2" > <Tool Name="VCPreBuildEventTool" /> <Tool Name="VCCustomBuildTool" /> <Tool Name="VCXMLDataGeneratorTool" /> <Tool Name="VCWebServiceProxyGeneratorTool" /> <Tool Name="VCMIDLTool" TypeLibraryName=".\Debug/DllPlugInTester.tlb" HeaderFileName="" /> <Tool Name="VCCLCompilerTool" Optimization="0" AdditionalIncludeDirectories="..\..\include" PreprocessorDefinitions="WIN32;_DEBUG;_CONSOLE" MinimalRebuild="true" BasicRuntimeChecks="3" RuntimeLibrary="3" RuntimeTypeInfo="true" PrecompiledHeaderFile=".\Debug/DllPlugInTester.pch" AssemblerListingLocation=".\Debug/" ObjectFile=".\Debug/" ProgramDataBaseFileName=".\Debug/" WarningLevel="3" SuppressStartupBanner="true" DebugInformationFormat="3" /> <Tool Name="VCManagedResourceCompilerTool" /> <Tool Name="VCResourceCompilerTool" PreprocessorDefinitions="_DEBUG" Culture="1036" /> <Tool Name="VCPreLinkEventTool" /> <Tool Name="VCLinkerTool" AdditionalDependencies="odbc32.lib odbccp32.lib cppunitd.lib" OutputFile="Debug\DllPlugInTesterd.exe" LinkIncremental="1" SuppressStartupBanner="true" AdditionalLibraryDirectories="../../lib" GenerateDebugInformation="true" ProgramDatabaseFile=".\Debug/DllPlugInTesterd.pdb" SubSystem="1" RandomizedBaseAddress="1" DataExecutionPrevention="0" TargetMachine="1" /> <Tool Name="VCALinkTool" /> <Tool Name="VCManifestTool" /> <Tool Name="VCXDCMakeTool" /> <Tool Name="VCBscMakeTool" SuppressStartupBanner="true" OutputFile=".\Debug/DllPlugInTester.bsc" /> <Tool Name="VCFxCopTool" /> <Tool Name="VCAppVerifierTool" /> <Tool Name="VCPostBuildEventTool" Description="Copying target to lib/" CommandLine="copy $(TargetPath) ..\..\lib\$(TargetName).exe" /> </Configuration> <Configuration Name="Release Unicode|Win32" OutputDirectory=".\ReleaseUnicode" IntermediateDirectory=".\ReleaseUnicode" ConfigurationType="1" InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC60.vsprops" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="false" CharacterSet="2" > <Tool Name="VCPreBuildEventTool" /> <Tool Name="VCCustomBuildTool" /> <Tool Name="VCXMLDataGeneratorTool" /> <Tool Name="VCWebServiceProxyGeneratorTool" /> <Tool Name="VCMIDLTool" TypeLibraryName=".\ReleaseUnicode/DllPlugInTester.tlb" HeaderFileName="" /> <Tool Name="VCCLCompilerTool" Optimization="1" InlineFunctionExpansion="1" AdditionalIncludeDirectories="..\..\include" PreprocessorDefinitions="WIN32;NDEBUG;_CONSOLE" StringPooling="true" RuntimeLibrary="2" EnableFunctionLevelLinking="true" RuntimeTypeInfo="true" PrecompiledHeaderFile=".\ReleaseUnicode/DllPlugInTester.pch" AssemblerListingLocation=".\ReleaseUnicode/" ObjectFile=".\ReleaseUnicode/" ProgramDataBaseFileName=".\ReleaseUnicode/" WarningLevel="3" SuppressStartupBanner="true" DebugInformationFormat="1" /> <Tool Name="VCManagedResourceCompilerTool" /> <Tool Name="VCResourceCompilerTool" PreprocessorDefinitions="NDEBUG" Culture="1036" /> <Tool Name="VCPreLinkEventTool" /> <Tool Name="VCLinkerTool" AdditionalDependencies="odbc32.lib odbccp32.lib cppunit.lib" OutputFile="ReleaseUnicode\DllPlugInTesteru.exe" LinkIncremental="1" SuppressStartupBanner="true" AdditionalLibraryDirectories="../../lib" ProgramDatabaseFile=".\ReleaseUnicode/DllPlugInTesteru.pdb" SubSystem="1" RandomizedBaseAddress="1" DataExecutionPrevention="0" TargetMachine="1" /> <Tool Name="VCALinkTool" /> <Tool Name="VCManifestTool" /> <Tool Name="VCXDCMakeTool" /> <Tool Name="VCBscMakeTool" SuppressStartupBanner="true" OutputFile=".\ReleaseUnicode/DllPlugInTester.bsc" /> <Tool Name="VCFxCopTool" /> <Tool Name="VCAppVerifierTool" /> <Tool Name="VCPostBuildEventTool" Description="Copying target to lib/" CommandLine="copy "$(TargetPath)" ..\..\lib\$(TargetName).exe" /> </Configuration> <Configuration Name="Release Static|Win32" OutputDirectory=".\Release" IntermediateDirectory=".\Release" ConfigurationType="1" InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC60.vsprops" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="false" CharacterSet="2" > <Tool Name="VCPreBuildEventTool" /> <Tool Name="VCCustomBuildTool" /> <Tool Name="VCXMLDataGeneratorTool" /> <Tool Name="VCWebServiceProxyGeneratorTool" /> <Tool Name="VCMIDLTool" TypeLibraryName=".\Release/DllPlugInTester.tlb" HeaderFileName="" /> <Tool Name="VCCLCompilerTool" Optimization="1" InlineFunctionExpansion="1" AdditionalIncludeDirectories="..\..\include" PreprocessorDefinitions="WIN32;NDEBUG;_CONSOLE" StringPooling="true" RuntimeLibrary="2" EnableFunctionLevelLinking="true" RuntimeTypeInfo="true" PrecompiledHeaderFile=".\Release/DllPlugInTester.pch" AssemblerListingLocation=".\Release/" ObjectFile=".\Release/" ProgramDataBaseFileName=".\Release/" WarningLevel="3" SuppressStartupBanner="true" DebugInformationFormat="1" /> <Tool Name="VCManagedResourceCompilerTool" /> <Tool Name="VCResourceCompilerTool" PreprocessorDefinitions="NDEBUG" Culture="1036" /> <Tool Name="VCPreLinkEventTool" /> <Tool Name="VCLinkerTool" AdditionalDependencies="odbc32.lib odbccp32.lib cppunit.lib" OutputFile=".\Release/DllPlugInTester.exe" LinkIncremental="1" SuppressStartupBanner="true" AdditionalLibraryDirectories="../../lib" ProgramDatabaseFile=".\Release/DllPlugInTester.pdb" SubSystem="1" RandomizedBaseAddress="1" DataExecutionPrevention="0" TargetMachine="1" /> <Tool Name="VCALinkTool" /> <Tool Name="VCManifestTool" /> <Tool Name="VCXDCMakeTool" /> <Tool Name="VCBscMakeTool" SuppressStartupBanner="true" OutputFile=".\Release/DllPlugInTester.bsc" /> <Tool Name="VCFxCopTool" /> <Tool Name="VCAppVerifierTool" /> <Tool Name="VCPostBuildEventTool" Description="Copying target to lib/" CommandLine="copy $(TargetPath) ..\..\lib\$(TargetName).exe" /> </Configuration> <Configuration Name="Debug|Win32" OutputDirectory=".\DebugDll" IntermediateDirectory=".\DebugDll" ConfigurationType="1" InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC60.vsprops" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="false" CharacterSet="2" > <Tool Name="VCPreBuildEventTool" /> <Tool Name="VCCustomBuildTool" /> <Tool Name="VCXMLDataGeneratorTool" /> <Tool Name="VCWebServiceProxyGeneratorTool" /> <Tool Name="VCMIDLTool" TypeLibraryName=".\DebugDll/DllPlugInTester.tlb" HeaderFileName="" /> <Tool Name="VCCLCompilerTool" Optimization="0" AdditionalIncludeDirectories="..\..\include" PreprocessorDefinitions="WIN32;_DEBUG;_CONSOLE;CPPUNIT_DLL" MinimalRebuild="true" BasicRuntimeChecks="3" RuntimeLibrary="3" RuntimeTypeInfo="true" PrecompiledHeaderFile=".\DebugDll/DllPlugInTester.pch" AssemblerListingLocation=".\DebugDll/" ObjectFile=".\DebugDll/" ProgramDataBaseFileName=".\DebugDll/" WarningLevel="3" SuppressStartupBanner="true" DebugInformationFormat="3" /> <Tool Name="VCManagedResourceCompilerTool" /> <Tool Name="VCResourceCompilerTool" PreprocessorDefinitions="_DEBUG" Culture="1036" /> <Tool Name="VCPreLinkEventTool" /> <Tool Name="VCLinkerTool" AdditionalDependencies="odbc32.lib odbccp32.lib cppunitd_dll.lib" OutputFile="DebugDll\DllPlugInTesterd_dll.exe" LinkIncremental="1" SuppressStartupBanner="true" AdditionalLibraryDirectories="../../lib" GenerateDebugInformation="true" ProgramDatabaseFile=".\DebugDll/DllPlugInTesterd_dll.pdb" SubSystem="1" RandomizedBaseAddress="1" DataExecutionPrevention="0" TargetMachine="1" /> <Tool Name="VCALinkTool" /> <Tool Name="VCManifestTool" /> <Tool Name="VCXDCMakeTool" /> <Tool Name="VCBscMakeTool" SuppressStartupBanner="true" OutputFile=".\DebugDll/DllPlugInTester.bsc" /> <Tool Name="VCFxCopTool" /> <Tool Name="VCAppVerifierTool" /> <Tool Name="VCPostBuildEventTool" Description="Copying target to lib/" CommandLine="copy "$(TargetPath)" ..\..\lib\$(TargetName).exe" /> </Configuration> <Configuration Name="Debug Unicode|Win32" OutputDirectory=".\DebugUnicode" IntermediateDirectory=".\DebugUnicode" ConfigurationType="1" InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC60.vsprops" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="false" CharacterSet="2" > <Tool Name="VCPreBuildEventTool" /> <Tool Name="VCCustomBuildTool" /> <Tool Name="VCXMLDataGeneratorTool" /> <Tool Name="VCWebServiceProxyGeneratorTool" /> <Tool Name="VCMIDLTool" TypeLibraryName=".\DebugUnicode/DllPlugInTester.tlb" HeaderFileName="" /> <Tool Name="VCCLCompilerTool" Optimization="0" AdditionalIncludeDirectories="..\..\include" PreprocessorDefinitions="WIN32;_DEBUG;_CONSOLE" MinimalRebuild="true" BasicRuntimeChecks="3" RuntimeLibrary="3" RuntimeTypeInfo="true" PrecompiledHeaderFile=".\DebugUnicode/DllPlugInTester.pch" AssemblerListingLocation=".\DebugUnicode/" ObjectFile=".\DebugUnicode/" ProgramDataBaseFileName=".\DebugUnicode/" WarningLevel="3" SuppressStartupBanner="true" DebugInformationFormat="3" /> <Tool Name="VCManagedResourceCompilerTool" /> <Tool Name="VCResourceCompilerTool" PreprocessorDefinitions="_DEBUG" Culture="1036" /> <Tool Name="VCPreLinkEventTool" /> <Tool Name="VCLinkerTool" AdditionalDependencies="odbc32.lib odbccp32.lib cppunitd.lib" OutputFile="DebugUnicode\DllPlugInTesterud.exe" LinkIncremental="1" SuppressStartupBanner="true" AdditionalLibraryDirectories="../../lib" GenerateDebugInformation="true" ProgramDatabaseFile=".\DebugUnicode/DllPlugInTesterud.pdb" SubSystem="1" RandomizedBaseAddress="1" DataExecutionPrevention="0" TargetMachine="1" /> <Tool Name="VCALinkTool" /> <Tool Name="VCManifestTool" /> <Tool Name="VCXDCMakeTool" /> <Tool Name="VCBscMakeTool" SuppressStartupBanner="true" OutputFile=".\DebugUnicode/DllPlugInTester.bsc" /> <Tool Name="VCFxCopTool" /> <Tool Name="VCAppVerifierTool" /> <Tool Name="VCPostBuildEventTool" Description="Copying target to lib/" CommandLine="copy "$(TargetPath)" ..\..\lib\$(TargetName).exe" /> </Configuration> </Configurations> <References> </References> <Files> <File RelativePath="CommandLineParser.cpp" > <FileConfiguration Name="Release|Win32" > <Tool Name="VCCLCompilerTool" AdditionalIncludeDirectories="" PreprocessorDefinitions="" /> </FileConfiguration> <FileConfiguration Name="Debug Static|Win32" > <Tool Name="VCCLCompilerTool" AdditionalIncludeDirectories="" PreprocessorDefinitions="" /> </FileConfiguration> <FileConfiguration Name="Release Unicode|Win32" > <Tool Name="VCCLCompilerTool" AdditionalIncludeDirectories="" PreprocessorDefinitions="" /> </FileConfiguration> <FileConfiguration Name="Release Static|Win32" > <Tool Name="VCCLCompilerTool" AdditionalIncludeDirectories="" PreprocessorDefinitions="" /> </FileConfiguration> <FileConfiguration Name="Debug|Win32" > <Tool Name="VCCLCompilerTool" AdditionalIncludeDirectories="" PreprocessorDefinitions="" /> </FileConfiguration> <FileConfiguration Name="Debug Unicode|Win32" > <Tool Name="VCCLCompilerTool" AdditionalIncludeDirectories="" PreprocessorDefinitions="" /> </FileConfiguration> </File> <File RelativePath="CommandLineParser.h" > </File> <File RelativePath="DllPlugInTester.cpp" > <FileConfiguration Name="Release|Win32" > <Tool Name="VCCLCompilerTool" AdditionalIncludeDirectories="" PreprocessorDefinitions="" /> </FileConfiguration> <FileConfiguration Name="Debug Static|Win32" > <Tool Name="VCCLCompilerTool" AdditionalIncludeDirectories="" PreprocessorDefinitions="" /> </FileConfiguration> <FileConfiguration Name="Release Unicode|Win32" > <Tool Name="VCCLCompilerTool" AdditionalIncludeDirectories="" PreprocessorDefinitions="" /> </FileConfiguration> <FileConfiguration Name="Release Static|Win32" > <Tool Name="VCCLCompilerTool" AdditionalIncludeDirectories="" PreprocessorDefinitions="" /> </FileConfiguration> <FileConfiguration Name="Debug|Win32" > <Tool Name="VCCLCompilerTool" AdditionalIncludeDirectories="" PreprocessorDefinitions="" /> </FileConfiguration> <FileConfiguration Name="Debug Unicode|Win32" > <Tool Name="VCCLCompilerTool" AdditionalIncludeDirectories="" PreprocessorDefinitions="" /> </FileConfiguration> </File> <File RelativePath="Makefile.am" > </File> </Files> <Globals> </Globals> </VisualStudioProject> --- NEW FILE: DllPlugInTesterTest.vcproj --- <?xml version="1.0" encoding="Windows-1252"?> <VisualStudioProject ProjectType="Visual C++" Version="9.00" Name="DllPlugInTesterTest" ProjectGUID="{E05AAA6F-C45D-45E6-837A-01687A0C0903}" TargetFrameworkVersion="0" > <Platforms> <Platform Name="Win32" /> </Platforms> <ToolFiles> </ToolFiles> <Configurations> <Configuration Name="Debug|Win32" OutputDirectory=".\DebugTest" IntermediateDirectory=".\DebugTest" ConfigurationType="1" InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC60.vsprops" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="false" CharacterSet="2" > <Tool Name="VCPreBuildEventTool" /> <Tool Name="VCCustomBuildTool" /> <Tool Name="VCXMLDataGeneratorTool" /> <Tool Name="VCWebServiceProxyGeneratorTool" /> <Tool Name="VCMIDLTool" TypeLibraryName=".\DebugTest/DllPlugInTesterTest.tlb" HeaderFileName="" /> <Tool Name="VCCLCompilerTool" Optimization="0" AdditionalIncludeDirectories="..\..\include" PreprocessorDefinitions="_DEBUG;WIN32;_CONSOLE;CPPUNIT_DLL" MinimalRebuild="true" BasicRuntimeChecks="3" RuntimeLibrary="3" RuntimeTypeInfo="true" PrecompiledHeaderFile=".\DebugTest/DllPlugInTesterTest.pch" AssemblerListingLocation=".\DebugTest/" ObjectFile=".\DebugTest/" ProgramDataBaseFileName=".\DebugTest/" WarningLevel="3" SuppressStartupBanner="true" DebugInformationFormat="3" /> <Tool Name="VCManagedResourceCompilerTool" /> <Tool Name="VCResourceCompilerTool" PreprocessorDefinitions="_DEBUG" Culture="1036" /> <Tool Name="VCPreLinkEventTool" /> <Tool Name="VCLinkerTool" AdditionalDependencies="odbc32.lib odbccp32.lib cppunitd_dll.lib" OutputFile=".\DebugTest/DllPlugInTesterTest.exe" LinkIncremental="1" SuppressStartupBanner="true" AdditionalLibraryDirectories="../../lib" GenerateDebugInformation="true" ProgramDatabaseFile=".\DebugTest/DllPlugInTesterTest.pdb" SubSystem="1" RandomizedBaseAddress="1" DataExecutionPrevention="0" TargetMachine="1" /> <Tool Name="VCALinkTool" /> <Tool Name="VCManifestTool" /> <Tool Name="VCXDCMakeTool" /> <Tool Name="VCBscMakeTool" SuppressStartupBanner="true" OutputFile=".\DebugTest/DllPlugInTesterTest.bsc" /> <Tool Name="VCFxCopTool" /> <Tool Name="VCAppVerifierTool" /> <Tool Name="VCPostBuildEventTool" Description="Unit testing..." CommandLine="$(TargetPath)" /> </Configuration> <Configuration Name="Release|Win32" OutputDirectory=".\ReleaseTest" IntermediateDirectory=".\ReleaseTest" ConfigurationType="1" InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC60.vsprops" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="false" CharacterSet="2" > <Tool Name="VCPreBuildEventTool" /> <Tool Name="VCCustomBuildTool" /> <Tool Name="VCXMLDataGeneratorTool" /> <Tool Name="VCWebServiceProxyGeneratorTool" /> <Tool Name="VCMIDLTool" TypeLibraryName=".\ReleaseTest/DllPlugInTesterTest.tlb" HeaderFileName="" /> <Tool Name="VCCLCompilerTool" Optimization="2" InlineFunctionExpansion="0" EnableIntrinsicFunctions="true" FavorSizeOrSpeed="1" AdditionalIncludeDirectories="..\..\include" PreprocessorDefinitions="NDEBUG;WIN32;_CONSOLE;CPPUNIT_DLL" RuntimeLibrary="2" RuntimeTypeInfo="true" PrecompiledHeaderFile=".\ReleaseTest/DllPlugInTesterTest.pch" AssemblerListingLocation=".\ReleaseTest/" ObjectFile=".\ReleaseTest/" ProgramDataBaseFileName=".\ReleaseTest/" WarningLevel="3" SuppressStartupBanner="true" DebugInformationFormat="1" /> <Tool Name="VCManagedResourceCompilerTool" /> <Tool Name="VCResourceCompilerTool" PreprocessorDefinitions="NDEBUG" Culture="1036" /> <Tool Name="VCPreLinkEventTool" /> <Tool Name="VCLinkerTool" AdditionalDependencies="odbc32.lib odbccp32.lib cppunit_dll.lib" OutputFile=".\ReleaseTest/DllPlugInTesterTest.exe" LinkIncremental="1" SuppressStartupBanner="true" AdditionalLibraryDirectories="../../lib" ProgramDatabaseFile=".\ReleaseTest/DllPlugInTesterTest.pdb" SubSystem="1" RandomizedBaseAddress="1" DataExecutionPrevention="0" TargetMachine="1" /> <Tool Name="VCALinkTool" /> <Tool Name="VCManifestTool" /> <Tool Name="VCXDCMakeTool" /> <Tool Name="VCBscMakeTool" SuppressStartupBanner="true" OutputFile=".\ReleaseTest/DllPlugInTesterTest.bsc" /> <Tool Name="VCFxCopTool" /> <Tool Name="VCAppVerifierTool" /> <Tool Name="VCPostBuildEventTool" Description="Unit testing..." CommandLine="$(TargetPath)" /> </Configuration> </Configurations> <References> </References> <Files> <File RelativePath="CommandLineParser.cpp" > <FileConfiguration Name="Debug|Win32" > <Tool Name="VCCLCompilerTool" AdditionalIncludeDirectories="" PreprocessorDefinitions="" /> </FileConfiguration> <FileConfiguration Name="Release|Win32" > <Tool Name="VCCLCompilerTool" Optimization="2" AdditionalIncludeDirectories="" PreprocessorDefinitions="" /> </FileConfiguration> </File> <File RelativePath="CommandLineParser.h" > </File> <File RelativePath="CommandLineParserTest.cpp" > <FileConfiguration Name="Debug|Win32" > <Tool Name="VCCLCompilerTool" AdditionalIncludeDirectories="" PreprocessorDefinitions="" /> </FileConfiguration> <FileConfiguration Name="Release|Win32" > <Tool Name="VCCLCompilerTool" Optimization="2" AdditionalIncludeDirectories="" PreprocessorDefinitions="" /> </FileConfiguration> </File> <File RelativePath="CommandLineParserTest.h" > </File> <File RelativePath="..\..\lib\cppunit_dll.dll" > <FileConfiguration Name="Debug|Win32" > <Tool Name="VCCustomBuildTool" Description="Updating $(InputPath)" CommandLine="copy $(InputPath) $(IntDir)\$(InputName).dll
" Outputs="$(IntDir)\$(InputName).dll" /> </FileConfiguration> <FileConfiguration Name="Release|Win32" > <Tool Name="VCCustomBuildTool" Description="Updating $(InputPath)" CommandLine="copy $(InputPath) $(IntDir)\$(InputName).dll
" Outputs="$(IntDir)\$(InputName).dll" /> </FileConfiguration> </File> <File RelativePath="..\..\lib\cppunitd_dll.dll" > <FileConfiguration Name="Debug|Win32" > <Tool Name="VCCustomBuildTool" Description="Updating $(InputPath)" CommandLine="copy $(InputPath) $(IntDir)\$(InputName).dll
" Outputs="$(IntDir)\$(InputName).dll" /> </FileConfiguration> <FileConfiguration Name="Release|Win32" > <Tool Name="VCCustomBuildTool" Description="Updating $(InputPath)" CommandLine="copy $(InputPath) $(IntDir)\$(InputName).dll
" Outputs="$(IntDir)\$(InputName).dll" /> </FileConfiguration> </File> <File RelativePath="DllPlugInTesterTest.cpp" > <FileConfiguration Name="Debug|Win32" > <Tool Name="VCCLCompilerTool" AdditionalIncludeDirectories="" PreprocessorDefinitions="" /> </FileConfiguration> <FileConfiguration Name="Release|Win32" > <Tool Name="VCCLCompilerTool" Optimization="2" AdditionalIncludeDirectories="" PreprocessorDefinitions="" /> </FileConfiguration> </File> </Files> <Globals> </Globals> </VisualStudioProject> |
From: Andy D. <and...@us...> - 2008-12-16 06:26:47
|
Update of /cvsroot/cppunit/cppunit/examples/cppunittest In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv27096/examples/cppunittest Added Files: CppUnitTestMain.vcproj CppUnitTestPlugIn.vcproj Log Message: Added updated project and instructions for building under Visual Studio.Net 2008 --- NEW FILE: CppUnitTestMain.vcproj --- <?xml version="1.0" encoding="Windows-1252"?> <VisualStudioProject ProjectType="Visual C++" Version="9.00" Name="CppUnitTestMain" ProjectGUID="{9AE80CDE-809B-4D04-8E6E-8061843D748B}" TargetFrameworkVersion="0" > <Platforms> <Platform Name="Win32" /> </Platforms> <ToolFiles> </ToolFiles> <Configurations> <Configuration Name="Debug DLL|Win32" OutputDirectory=".\DebugDLL" [...1863 lines suppressed...] /> </FileConfiguration> <FileConfiguration Name="Release|Win32" > <Tool Name="VCCLCompilerTool" AdditionalIncludeDirectories="" PreprocessorDefinitions="" /> </FileConfiguration> </File> <File RelativePath="Makefile.am" > </File> </Files> <Globals> </Globals> </VisualStudioProject> --- NEW FILE: CppUnitTestPlugIn.vcproj --- <?xml version="1.0" encoding="Windows-1252"?> <VisualStudioProject ProjectType="Visual C++" Version="9.00" Name="CppUnitTestPlugIn" ProjectGUID="{4B7E48D0-5FB6-4587-8631-F157F2388DEA}" TargetFrameworkVersion="0" > <Platforms> <Platform Name="Win32" /> </Platforms> <ToolFiles> </ToolFiles> <Configurations> <Configuration Name="Release|Win32" OutputDirectory=".\ReleasePlugIn" [...1005 lines suppressed...] <Tool Name="VCCLCompilerTool" AdditionalIncludeDirectories="" PreprocessorDefinitions="" /> </FileConfiguration> <FileConfiguration Name="Debug|Win32" > <Tool Name="VCCLCompilerTool" AdditionalIncludeDirectories="" PreprocessorDefinitions="" /> </FileConfiguration> </File> </Files> <Globals> </Globals> </VisualStudioProject> |
From: Andy D. <and...@us...> - 2008-12-16 06:26:44
|
Update of /cvsroot/cppunit/cppunit/src/cppunit In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv27096/src/cppunit Added Files: cppunit.vcproj cppunit_dll.vcproj Log Message: Added updated project and instructions for building under Visual Studio.Net 2008 --- NEW FILE: cppunit_dll.vcproj --- <?xml version="1.0" encoding="Windows-1252"?> <VisualStudioProject ProjectType="Visual C++" Version="9.00" Name="cppunit_dll" ProjectGUID="{6407D1BA-0C4D-4903-8BE8-728547FE1BBE}" TargetFrameworkVersion="0" > <Platforms> <Platform Name="Win32" /> </Platforms> <ToolFiles> </ToolFiles> <Configurations> <Configuration Name="Release|Win32" OutputDirectory=".\ReleaseDll" [...1633 lines suppressed...] <File RelativePath="..\..\INSTALL-WIN32.txt" > </File> <File RelativePath="Makefile.am" > </File> <File RelativePath="..\..\include\cppunit\Makefile.am" > </File> <File RelativePath="..\..\include\cppunit\extensions\XmlInputHelper.h" > </File> </Files> <Globals> </Globals> </VisualStudioProject> --- NEW FILE: cppunit.vcproj --- <?xml version="1.0" encoding="Windows-1252"?> <VisualStudioProject ProjectType="Visual C++" Version="9.00" Name="cppunit" ProjectGUID="{9E6FC828-023C-4776-9EF1-6FEB45B88BF4}" TargetFrameworkVersion="0" > <Platforms> <Platform Name="Win32" /> </Platforms> <ToolFiles> </ToolFiles> <Configurations> <Configuration Name="Debug|Win32" OutputDirectory=".\Debug" [...1624 lines suppressed...] RelativePath="ProtectorContext.h" > </File> </Filter> <File RelativePath="..\..\configure.in" > </File> <File RelativePath="Makefile.am" > </File> <File RelativePath="..\..\include\cppunit\Makefile.am" > </File> </Files> <Globals> </Globals> </VisualStudioProject> |
From: Andy D. <and...@us...> - 2008-12-16 06:26:44
|
Update of /cvsroot/cppunit/cppunit/src/msvc6/testrunner In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv27096/src/msvc6/testrunner Modified Files: MsDevCallerListCtrl.cpp Added Files: TestRunner.vcproj Log Message: Added updated project and instructions for building under Visual Studio.Net 2008 --- NEW FILE: TestRunner.vcproj --- <?xml version="1.0" encoding="Windows-1252"?> <VisualStudioProject ProjectType="Visual C++" Version="9.00" Name="TestRunner" ProjectGUID="{914D0749-B9BA-40CD-9E84-41A68786848A}" Keyword="MFCProj" TargetFrameworkVersion="0" > <Platforms> <Platform Name="Win32" /> </Platforms> <ToolFiles> </ToolFiles> <Configurations> <Configuration Name="Release|Win32" [...1558 lines suppressed...] <FileConfiguration Name="Release Unicode|Win32" > <Tool Name="VCCLCompilerTool" AdditionalIncludeDirectories="" PreprocessorDefinitions="" UsePrecompiledHeader="0" /> </FileConfiguration> </File> </Filter> <File RelativePath="ReadMe.txt" > </File> </Files> <Globals> </Globals> </VisualStudioProject> Index: MsDevCallerListCtrl.cpp =================================================================== RCS file: /cvsroot/cppunit/cppunit/src/msvc6/testrunner/MsDevCallerListCtrl.cpp,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** MsDevCallerListCtrl.cpp 29 Jun 2006 19:53:40 -0000 1.6 --- MsDevCallerListCtrl.cpp 16 Dec 2008 06:26:35 -0000 1.7 *************** *** 65,69 **** --- 65,73 ---- #pragma warning( disable : 4278 ) #pragma warning( disable : 4146 ) + #if (_MSC_VER < 1500) #import "libid:80cc9f66-e7d8-4ddd-85b6-d9e6cd0e93e2" version("7.0") lcid("0") raw_interfaces_only named_guids + #else + #import "libid:80cc9f66-e7d8-4ddd-85b6-d9e6cd0e93e2" version("9.0") lcid("0") raw_interfaces_only named_guids + #endif #pragma warning( default : 4146 ) #pragma warning( default : 4278 ) |
From: Andy D. <and...@us...> - 2008-12-16 06:26:44
|
Update of /cvsroot/cppunit/cppunit/examples/msvc6/HostApp In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv27096/examples/msvc6/HostApp Added Files: HostApp.vcproj Log Message: Added updated project and instructions for building under Visual Studio.Net 2008 --- NEW FILE: HostApp.vcproj --- <?xml version="1.0" encoding="Windows-1252"?> <VisualStudioProject ProjectType="Visual C++" Version="9.00" Name="HostApp" ProjectGUID="{0A850126-8FDC-46A2-B977-16D296BA9363}" Keyword="MFCProj" TargetFrameworkVersion="0" > <Platforms> <Platform Name="Win32" /> </Platforms> <ToolFiles> </ToolFiles> <Configurations> <Configuration Name="Debug|Win32" [...1076 lines suppressed...] /> </FileConfiguration> <FileConfiguration Name="Debug No Type Info Name|Win32" ExcludedFromBuild="true" > <Tool Name="VCCustomBuildTool" /> </FileConfiguration> </File> </Filter> <File RelativePath="ReadMe.txt" > </File> </Files> <Globals> </Globals> </VisualStudioProject> |
From: Andy D. <and...@us...> - 2008-12-16 06:26:44
|
Update of /cvsroot/cppunit/cppunit/examples/hierarchy In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv27096/examples/hierarchy Added Files: hierarchy.vcproj Log Message: Added updated project and instructions for building under Visual Studio.Net 2008 --- NEW FILE: hierarchy.vcproj --- <?xml version="1.0" encoding="Windows-1252"?> <VisualStudioProject ProjectType="Visual C++" Version="9.00" Name="hierarchy" ProjectGUID="{41BD2F8C-3810-4C31-B7A5-6B33FFF3ED01}" TargetFrameworkVersion="0" > <Platforms> <Platform Name="Win32" /> </Platforms> <ToolFiles> </ToolFiles> <Configurations> <Configuration Name="Release|Win32" OutputDirectory=".\Release" IntermediateDirectory=".\Release" ConfigurationType="1" InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC60.vsprops" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="false" CharacterSet="2" > <Tool Name="VCPreBuildEventTool" /> <Tool Name="VCCustomBuildTool" /> <Tool Name="VCXMLDataGeneratorTool" /> <Tool Name="VCWebServiceProxyGeneratorTool" /> <Tool Name="VCMIDLTool" TypeLibraryName=".\Release/hierarchy.tlb" HeaderFileName="" /> <Tool Name="VCCLCompilerTool" Optimization="2" InlineFunctionExpansion="1" AdditionalIncludeDirectories="..\..\include" PreprocessorDefinitions="NDEBUG;WIN32;_CONSOLE;CPPUNIT_USE_TYPEINFO" StringPooling="true" RuntimeLibrary="2" EnableFunctionLevelLinking="true" RuntimeTypeInfo="true" PrecompiledHeaderFile=".\Release/hierarchy.pch" AssemblerListingLocation=".\Release/" ObjectFile=".\Release/" ProgramDataBaseFileName=".\Release/" WarningLevel="3" SuppressStartupBanner="true" DebugInformationFormat="1" /> <Tool Name="VCManagedResourceCompilerTool" /> <Tool Name="VCResourceCompilerTool" PreprocessorDefinitions="NDEBUG" Culture="1036" /> <Tool Name="VCPreLinkEventTool" /> <Tool Name="VCLinkerTool" AdditionalDependencies="odbc32.lib odbccp32.lib ..\..\lib\cppunit.lib" OutputFile=".\Release/hierarchy.exe" LinkIncremental="1" SuppressStartupBanner="true" ProgramDatabaseFile=".\Release/hierarchy.pdb" SubSystem="1" RandomizedBaseAddress="1" DataExecutionPrevention="0" TargetMachine="1" /> <Tool Name="VCALinkTool" /> <Tool Name="VCManifestTool" /> <Tool Name="VCXDCMakeTool" /> <Tool Name="VCBscMakeTool" SuppressStartupBanner="true" OutputFile=".\Release/hierarchy.bsc" /> <Tool Name="VCFxCopTool" /> <Tool Name="VCAppVerifierTool" /> <Tool Name="VCPostBuildEventTool" /> </Configuration> <Configuration Name="Debug|Win32" OutputDirectory=".\Debug" IntermediateDirectory=".\Debug" ConfigurationType="1" InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC60.vsprops" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="false" CharacterSet="2" > <Tool Name="VCPreBuildEventTool" /> <Tool Name="VCCustomBuildTool" /> <Tool Name="VCXMLDataGeneratorTool" /> <Tool Name="VCWebServiceProxyGeneratorTool" /> <Tool Name="VCMIDLTool" TypeLibraryName=".\Debug/hierarchy.tlb" HeaderFileName="" /> <Tool Name="VCCLCompilerTool" Optimization="0" AdditionalIncludeDirectories="..\..\include" PreprocessorDefinitions="_DEBUG;WIN32;_CONSOLE;CPPUNIT_USE_TYPEINFO" MinimalRebuild="true" BasicRuntimeChecks="3" RuntimeLibrary="3" RuntimeTypeInfo="true" PrecompiledHeaderFile=".\Debug/hierarchy.pch" AssemblerListingLocation=".\Debug/" ObjectFile=".\Debug/" ProgramDataBaseFileName=".\Debug/" WarningLevel="3" SuppressStartupBanner="true" DebugInformationFormat="3" /> <Tool Name="VCManagedResourceCompilerTool" /> <Tool Name="VCResourceCompilerTool" PreprocessorDefinitions="_DEBUG" Culture="1036" /> <Tool Name="VCPreLinkEventTool" /> <Tool Name="VCLinkerTool" AdditionalDependencies="odbc32.lib odbccp32.lib ..\..\lib\cppunitd.lib" OutputFile=".\Debug/hierarchy.exe" LinkIncremental="1" SuppressStartupBanner="true" GenerateDebugInformation="true" ProgramDatabaseFile=".\Debug/hierarchy.pdb" SubSystem="1" RandomizedBaseAddress="1" DataExecutionPrevention="0" TargetMachine="1" /> <Tool Name="VCALinkTool" /> <Tool Name="VCManifestTool" /> <Tool Name="VCXDCMakeTool" /> <Tool Name="VCBscMakeTool" SuppressStartupBanner="true" OutputFile=".\Debug/hierarchy.bsc" /> <Tool Name="VCFxCopTool" /> <Tool Name="VCAppVerifierTool" /> <Tool Name="VCPostBuildEventTool" /> </Configuration> </Configurations> <References> </References> <Files> <File RelativePath="BoardGame.cpp" > <FileConfiguration Name="Release|Win32" > <Tool Name="VCCLCompilerTool" AdditionalIncludeDirectories="" PreprocessorDefinitions="" /> </FileConfiguration> <FileConfiguration Name="Debug|Win32" > <Tool Name="VCCLCompilerTool" AdditionalIncludeDirectories="" PreprocessorDefinitions="" /> </FileConfiguration> </File> <File RelativePath="BoardGame.h" > </File> <File RelativePath="BoardGameTest.h" > </File> <File RelativePath="Chess.cpp" > <FileConfiguration Name="Release|Win32" > <Tool Name="VCCLCompilerTool" AdditionalIncludeDirectories="" PreprocessorDefinitions="" /> </FileConfiguration> <FileConfiguration Name="Debug|Win32" > <Tool Name="VCCLCompilerTool" AdditionalIncludeDirectories="" PreprocessorDefinitions="" /> </FileConfiguration> </File> <File RelativePath="Chess.h" > </File> <File RelativePath="ChessTest.h" > </File> <File RelativePath="main.cpp" > <FileConfiguration Name="Release|Win32" > <Tool Name="VCCLCompilerTool" AdditionalIncludeDirectories="" PreprocessorDefinitions="" /> </FileConfiguration> <FileConfiguration Name="Debug|Win32" > <Tool Name="VCCLCompilerTool" AdditionalIncludeDirectories="" PreprocessorDefinitions="" /> </FileConfiguration> </File> <File RelativePath="Makefile.am" > </File> </Files> <Globals> </Globals> </VisualStudioProject> |
From: Andy D. <and...@us...> - 2008-12-16 06:26:44
|
Update of /cvsroot/cppunit/cppunit/examples/ClockerPlugIn In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv27096/examples/ClockerPlugIn Added Files: ClockerPlugIn.vcproj Log Message: Added updated project and instructions for building under Visual Studio.Net 2008 --- NEW FILE: ClockerPlugIn.vcproj --- <?xml version="1.0" encoding="Windows-1252"?> <VisualStudioProject ProjectType="Visual C++" Version="9.00" Name="ClockerPlugIn" ProjectGUID="{DC2818FA-4B7B-4EE7-8E2B-31AA488B3EB5}" TargetFrameworkVersion="0" > <Platforms> <Platform Name="Win32" /> </Platforms> <ToolFiles> </ToolFiles> <Configurations> <Configuration Name="Debug|Win32" OutputDirectory=".\Debug" IntermediateDirectory=".\Debug" ConfigurationType="2" InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC60.vsprops" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="false" CharacterSet="2" > <Tool Name="VCPreBuildEventTool" /> <Tool Name="VCCustomBuildTool" /> <Tool Name="VCXMLDataGeneratorTool" /> <Tool Name="VCWebServiceProxyGeneratorTool" /> <Tool Name="VCMIDLTool" PreprocessorDefinitions="_DEBUG" MkTypLibCompatible="true" SuppressStartupBanner="true" TargetEnvironment="1" TypeLibraryName=".\Debug/ClockerPlugIn.tlb" HeaderFileName="" /> <Tool Name="VCCLCompilerTool" Optimization="0" AdditionalIncludeDirectories="..\..\include" PreprocessorDefinitions="_DEBUG;WIN32;_WINDOWS;_USRDLL;CPPUNIT_DLL" MinimalRebuild="true" BasicRuntimeChecks="3" RuntimeLibrary="3" RuntimeTypeInfo="true" PrecompiledHeaderFile=".\Debug/ClockerPlugIn.pch" AssemblerListingLocation=".\Debug/" ObjectFile=".\Debug/" ProgramDataBaseFileName=".\Debug/" WarningLevel="3" SuppressStartupBanner="true" DebugInformationFormat="3" /> <Tool Name="VCManagedResourceCompilerTool" /> <Tool Name="VCResourceCompilerTool" PreprocessorDefinitions="_DEBUG" Culture="1036" /> <Tool Name="VCPreLinkEventTool" /> <Tool Name="VCLinkerTool" AdditionalDependencies="odbc32.lib odbccp32.lib cppunitd_dll.lib" OutputFile="../../lib/ClockerPlugInd.dll" LinkIncremental="2" SuppressStartupBanner="true" AdditionalLibraryDirectories="../../lib/" GenerateDebugInformation="true" ProgramDatabaseFile=".\Debug/ClockerPlugInd.pdb" RandomizedBaseAddress="1" DataExecutionPrevention="0" ImportLibrary=".\Debug/ClockerPlugInd.lib" TargetMachine="1" /> <Tool Name="VCALinkTool" /> <Tool Name="VCManifestTool" /> <Tool Name="VCXDCMakeTool" /> <Tool Name="VCBscMakeTool" SuppressStartupBanner="true" OutputFile=".\Debug/ClockerPlugIn.bsc" /> <Tool Name="VCFxCopTool" /> <Tool Name="VCAppVerifierTool" /> <Tool Name="VCPostBuildEventTool" /> </Configuration> <Configuration Name="Release|Win32" OutputDirectory=".\Release" IntermediateDirectory=".\Release" ConfigurationType="2" InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC60.vsprops" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="false" CharacterSet="2" > <Tool Name="VCPreBuildEventTool" /> <Tool Name="VCCustomBuildTool" /> <Tool Name="VCXMLDataGeneratorTool" /> <Tool Name="VCWebServiceProxyGeneratorTool" /> <Tool Name="VCMIDLTool" PreprocessorDefinitions="NDEBUG" MkTypLibCompatible="true" SuppressStartupBanner="true" TargetEnvironment="1" TypeLibraryName=".\Release/ClockerPlugIn.tlb" HeaderFileName="" /> <Tool Name="VCCLCompilerTool" Optimization="2" InlineFunctionExpansion="1" AdditionalIncludeDirectories="..\..\include" PreprocessorDefinitions="NDEBUG;WIN32;_WINDOWS;_USRDLL;CPPUNIT_DLL" StringPooling="true" RuntimeLibrary="2" EnableFunctionLevelLinking="true" RuntimeTypeInfo="true" PrecompiledHeaderFile=".\Release/ClockerPlugIn.pch" AssemblerListingLocation=".\Release/" ObjectFile=".\Release/" ProgramDataBaseFileName=".\Release/" WarningLevel="3" SuppressStartupBanner="true" DebugInformationFormat="1" /> <Tool Name="VCManagedResourceCompilerTool" /> <Tool Name="VCResourceCompilerTool" PreprocessorDefinitions="NDEBUG" Culture="1036" /> <Tool Name="VCPreLinkEventTool" /> <Tool Name="VCLinkerTool" AdditionalDependencies="odbc32.lib odbccp32.lib cppunit_dll.lib" OutputFile="../../lib/ClockerPlugIn.dll" LinkIncremental="1" SuppressStartupBanner="true" AdditionalLibraryDirectories="../../lib/" ProgramDatabaseFile=".\Release/ClockerPlugIn.pdb" RandomizedBaseAddress="1" DataExecutionPrevention="0" ImportLibrary=".\Release/ClockerPlugIn.lib" TargetMachine="1" /> <Tool Name="VCALinkTool" /> <Tool Name="VCManifestTool" /> <Tool Name="VCXDCMakeTool" /> <Tool Name="VCBscMakeTool" SuppressStartupBanner="true" OutputFile=".\Release/ClockerPlugIn.bsc" /> <Tool Name="VCFxCopTool" /> <Tool Name="VCAppVerifierTool" /> <Tool Name="VCPostBuildEventTool" /> </Configuration> <Configuration Name="Debug NtTimer|Win32" OutputDirectory=".\DebugNtTimer" IntermediateDirectory=".\DebugNtTimer" ConfigurationType="2" InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC60.vsprops" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="false" CharacterSet="2" > <Tool Name="VCPreBuildEventTool" /> <Tool Name="VCCustomBuildTool" /> <Tool Name="VCXMLDataGeneratorTool" /> <Tool Name="VCWebServiceProxyGeneratorTool" /> <Tool Name="VCMIDLTool" PreprocessorDefinitions="_DEBUG" MkTypLibCompatible="true" SuppressStartupBanner="true" TargetEnvironment="1" TypeLibraryName=".\DebugNtTimer/ClockerPlugIn.tlb" HeaderFileName="" /> <Tool Name="VCCLCompilerTool" Optimization="0" AdditionalIncludeDirectories="..\..\include" PreprocessorDefinitions="_DEBUG;WIN32;_WINDOWS;_USRDLL;CPPUNIT_DLL;CLOCKER_USE_WINNTTIMER" MinimalRebuild="true" BasicRuntimeChecks="3" RuntimeLibrary="3" RuntimeTypeInfo="true" PrecompiledHeaderFile=".\DebugNtTimer/ClockerPlugIn.pch" AssemblerListingLocation=".\DebugNtTimer/" ObjectFile=".\DebugNtTimer/" ProgramDataBaseFileName=".\DebugNtTimer/" WarningLevel="3" SuppressStartupBanner="true" DebugInformationFormat="3" /> <Tool Name="VCManagedResourceCompilerTool" /> <Tool Name="VCResourceCompilerTool" PreprocessorDefinitions="_DEBUG" Culture="1036" /> <Tool Name="VCPreLinkEventTool" /> <Tool Name="VCLinkerTool" AdditionalDependencies="odbc32.lib odbccp32.lib cppunitd_dll.lib" OutputFile="../../lib/ClockerPlugInNtd.dll" LinkIncremental="2" SuppressStartupBanner="true" AdditionalLibraryDirectories="../../lib/" GenerateDebugInformation="true" ProgramDatabaseFile=".\DebugNtTimer/ClockerPlugInNtd.pdb" RandomizedBaseAddress="1" DataExecutionPrevention="0" ImportLibrary=".\DebugNtTimer/ClockerPlugInNtd.lib" TargetMachine="1" /> <Tool Name="VCALinkTool" /> <Tool Name="VCManifestTool" /> <Tool Name="VCXDCMakeTool" /> <Tool Name="VCBscMakeTool" SuppressStartupBanner="true" OutputFile=".\DebugNtTimer/ClockerPlugIn.bsc" /> <Tool Name="VCFxCopTool" /> <Tool Name="VCAppVerifierTool" /> <Tool Name="VCPostBuildEventTool" /> </Configuration> </Configurations> <References> </References> <Files> <File RelativePath="ClockerListener.cpp" > <FileConfiguration Name="Debug|Win32" > <Tool Name="VCCLCompilerTool" AdditionalIncludeDirectories="" PreprocessorDefinitions="" /> </FileConfiguration> <FileConfiguration Name="Release|Win32" > <Tool Name="VCCLCompilerTool" AdditionalIncludeDirectories="" PreprocessorDefinitions="" /> </FileConfiguration> <FileConfiguration Name="Debug NtTimer|Win32" > <Tool Name="VCCLCompilerTool" AdditionalIncludeDirectories="" PreprocessorDefinitions="" /> </FileConfiguration> </File> <File RelativePath="ClockerListener.h" > </File> <File RelativePath="ClockerModel.cpp" > <FileConfiguration Name="Debug|Win32" > <Tool Name="VCCLCompilerTool" AdditionalIncludeDirectories="" PreprocessorDefinitions="" /> </FileConfiguration> <FileConfiguration Name="Release|Win32" > <Tool Name="VCCLCompilerTool" AdditionalIncludeDirectories="" PreprocessorDefinitions="" /> </FileConfiguration> <FileConfiguration Name="Debug NtTimer|Win32" > <Tool Name="VCCLCompilerTool" AdditionalIncludeDirectories="" PreprocessorDefinitions="" /> </FileConfiguration> </File> <File RelativePath="ClockerModel.h" > </File> <File RelativePath="ClockerPlugIn.cpp" > <FileConfiguration Name="Debug|Win32" > <Tool Name="VCCLCompilerTool" AdditionalIncludeDirectories="" PreprocessorDefinitions="" /> </FileConfiguration> <FileConfiguration Name="Release|Win32" > <Tool Name="VCCLCompilerTool" AdditionalIncludeDirectories="" PreprocessorDefinitions="" /> </FileConfiguration> <FileConfiguration Name="Debug NtTimer|Win32" > <Tool Name="VCCLCompilerTool" AdditionalIncludeDirectories="" PreprocessorDefinitions="" /> </FileConfiguration> </File> <File RelativePath="ClockerXmlHook.cpp" > <FileConfiguration Name="Debug|Win32" > <Tool Name="VCCLCompilerTool" AdditionalIncludeDirectories="" PreprocessorDefinitions="" /> </FileConfiguration> <FileConfiguration Name="Release|Win32" > <Tool Name="VCCLCompilerTool" AdditionalIncludeDirectories="" PreprocessorDefinitions="" /> </FileConfiguration> <FileConfiguration Name="Debug NtTimer|Win32" > <Tool Name="VCCLCompilerTool" AdditionalIncludeDirectories="" PreprocessorDefinitions="" /> </FileConfiguration> </File> <File RelativePath="ClockerXmlHook.h" > </File> <File RelativePath="Makefile.am" > </File> <File RelativePath="ReadMe.txt" > </File> <File RelativePath="Timer.cpp" > <FileConfiguration Name="Debug|Win32" > <Tool Name="VCCLCompilerTool" AdditionalIncludeDirectories="" PreprocessorDefinitions="" /> </FileConfiguration> <FileConfiguration Name="Release|Win32" > <Tool Name="VCCLCompilerTool" AdditionalIncludeDirectories="" PreprocessorDefinitions="" /> </FileConfiguration> <FileConfiguration Name="Debug NtTimer|Win32" ExcludedFromBuild="true" > <Tool Name="VCCLCompilerTool" AdditionalIncludeDirectories="" PreprocessorDefinitions="" /> </FileConfiguration> </File> <File RelativePath="Timer.h" > <FileConfiguration Name="Debug NtTimer|Win32" ExcludedFromBuild="true" > <Tool Name="VCCustomBuildTool" /> </FileConfiguration> </File> <File RelativePath="WinNtTimer.cpp" > <FileConfiguration Name="Debug|Win32" ExcludedFromBuild="true" > <Tool Name="VCCLCompilerTool" AdditionalIncludeDirectories="" PreprocessorDefinitions="" /> </FileConfiguration> <FileConfiguration Name="Release|Win32" ExcludedFromBuild="true" > <Tool Name="VCCLCompilerTool" AdditionalIncludeDirectories="" PreprocessorDefinitions="" /> </FileConfiguration> <FileConfiguration Name="Debug NtTimer|Win32" > <Tool Name="VCCLCompilerTool" AdditionalIncludeDirectories="" PreprocessorDefinitions="" ObjectFile="DebugNtTimer/" ProgramDataBaseFileName="DebugNtTimer/" /> </FileConfiguration> </File> <File RelativePath="WinNtTimer.h" > <FileConfiguration Name="Debug|Win32" ExcludedFromBuild="true" > <Tool Name="VCCustomBuildTool" /> </FileConfiguration> <FileConfiguration Name="Release|Win32" ExcludedFromBuild="true" > <Tool Name="VCCustomBuildTool" /> </FileConfiguration> </File> </Files> <Globals> </Globals> </VisualStudioProject> |
From: Andy D. <and...@us...> - 2008-12-16 06:26:44
|
Update of /cvsroot/cppunit/cppunit/src In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv27096/src Modified Files: .cvsignore Log Message: Added updated project and instructions for building under Visual Studio.Net 2008 Index: .cvsignore =================================================================== RCS file: /cvsroot/cppunit/cppunit/src/.cvsignore,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** .cvsignore 7 May 2003 21:10:19 -0000 1.3 --- .cvsignore 16 Dec 2008 06:26:35 -0000 1.4 *************** *** 2,5 **** --- 2,8 ---- *.ncb *.opt + *.suo + *.ncb + *.user SunWS_cache |
From: Andy D. <and...@us...> - 2008-12-16 06:26:44
|
Update of /cvsroot/cppunit/cppunit/examples/msvc6/CppUnitTestApp In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv27096/examples/msvc6/CppUnitTestApp Added Files: CppUnitTestApp.vcproj Log Message: Added updated project and instructions for building under Visual Studio.Net 2008 --- NEW FILE: CppUnitTestApp.vcproj --- <?xml version="1.0" encoding="Windows-1252"?> <VisualStudioProject ProjectType="Visual C++" Version="9.00" Name="CppUnitTestApp" ProjectGUID="{9D36E4E1-3CC7-4218-B334-695A3DBFAD79}" Keyword="MFCProj" TargetFrameworkVersion="0" > <Platforms> <Platform Name="Win32" /> </Platforms> <ToolFiles> </ToolFiles> <Configurations> <Configuration Name="Release|Win32" [...1125 lines suppressed...] /> </FileConfiguration> </File> <File RelativePath="..\..\cppunittest\XmlUniformiserTest.h" > </File> </Filter> <File RelativePath="..\..\cppunittest\Makefile.am" > </File> <File RelativePath="ReadMe.txt" > </File> </Files> <Globals> </Globals> </VisualStudioProject> |
From: Andy D. <and...@us...> - 2008-12-16 06:26:44
|
Update of /cvsroot/cppunit/cppunit/src/msvc6/testpluginrunner In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv27096/src/msvc6/testpluginrunner Added Files: TestPlugInRunner.vcproj Log Message: Added updated project and instructions for building under Visual Studio.Net 2008 --- NEW FILE: TestPlugInRunner.vcproj --- <?xml version="1.0" encoding="Windows-1252"?> <VisualStudioProject ProjectType="Visual C++" Version="9.00" Name="TestPlugInRunner" ProjectGUID="{8982E220-3042-4D5F-AD17-02DB61FC90B7}" Keyword="MFCProj" TargetFrameworkVersion="0" > <Platforms> <Platform Name="Win32" /> </Platforms> <ToolFiles> </ToolFiles> <Configurations> <Configuration Name="Debug|Win32" [...1075 lines suppressed...] Name="Release|Win32" > <Tool Name="VCCLCompilerTool" AdditionalIncludeDirectories="" PreprocessorDefinitions="" UsePrecompiledHeader="0" /> </FileConfiguration> </File> </Filter> </Filter> <File RelativePath="ReadMe.txt" > </File> </Files> <Globals> </Globals> </VisualStudioProject> |
From: Andy D. <and...@us...> - 2008-12-16 06:26:44
|
Update of /cvsroot/cppunit/cppunit/examples In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv27096/examples Modified Files: .cvsignore Added Files: examples2008.sln Log Message: Added updated project and instructions for building under Visual Studio.Net 2008 --- NEW FILE: examples2008.sln --- (This appears to be a binary file; contents omitted.) Index: .cvsignore =================================================================== RCS file: /cvsroot/cppunit/cppunit/examples/.cvsignore,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** .cvsignore 19 Apr 2002 15:09:14 -0000 1.3 --- .cvsignore 16 Dec 2008 06:26:34 -0000 1.4 *************** *** 1,3 **** Makefile.in Makefile *.ncb ! --- 1,6 ---- Makefile.in Makefile *.ncb ! *.opt ! *.suo ! *.ncb ! *.user |
From: Andy D. <and...@us...> - 2008-12-16 06:26:44
|
Update of /cvsroot/cppunit/cppunit In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv27096 Modified Files: .cvsignore Added Files: INSTALL-VS.Net2008.txt Log Message: Added updated project and instructions for building under Visual Studio.Net 2008 Index: .cvsignore =================================================================== RCS file: /cvsroot/cppunit/cppunit/.cvsignore,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** .cvsignore 12 Jan 2007 04:37:33 -0000 1.8 --- .cvsignore 16 Dec 2008 06:26:34 -0000 1.9 *************** *** 12,13 **** --- 12,18 ---- ir.out cppunit.pc + *.ncb + *.opt + *.suo + *.ncb + *.user \ No newline at end of file --- NEW FILE: INSTALL-VS.Net2008.txt --- This version now builds and runs HostApp under Visual Studio.Net 2008 using the project examples/examples2008.sln Immediate blame/responsibility Andy Dent mailto:and...@so... It is not perfect - there is still a single build error 1>------ Build started: Project: DllPlugInTesterTest, Configuration: Debug Win32 ------ 1>Updating c:\Users\andy\OpenSourceDev\cppunit\lib\cppunit_dll.dll 1>The system cannot find the file specified. 1>Project : error PRJ0019: A tool returned an error code from "Updating c:\Users\andy\OpenSourceDev\cppunit\lib\cppunit_dll.dll" 1>Build log was saved at "file://c:\Users\andy\OpenSourceDev\cppunit\src\DllPlugInTester\DebugTest\BuildLog.htm" 1>DllPlugInTesterTest - 1 error(s), 0 warning(s) ========== Build: 0 succeeded, 1 failed, 15 up-to-date, 0 skipped ========== -------------- Porting the code to Visual Studio.Net 2008 based on starting with cppunit from CVS 16th Dec 2008 USEFUL NOTES ACKNOWLEDGED GRATEFULLY http://sarathc.wordpress.com/2007/12/25/cppunit-error-c3505-cannot-load-type-library-80cc9f66-e7d8-4ddd-85b6-d9e6cd0e93e2-whats-it/ CPPUnit: error C3505: cannot load type library {80CC9F66-E7D8-4DDD-85B6-D9E6CD0E93E2} - Whats it? Posted on December 25, 2007 by Sarath I just tried to compile CPP Unit Under Visual C++ 2008. Compiler. There was one problem When I tried to compile MFC Test Runner. MsDevCallerListCtrl.cpp .\MsDevCallerListCtrl.cpp(67) : error C3505: cannot load type library {80CC9F66-E7D8-4DDD-85B6-D9E6CD0E93E2} .\MsDevCallerListCtrl.cpp(67) : fatal error C1104: fatal error importing libid: 80cc9f66-e7d8-4ddd-85b6-d9e6cd0e93e2' CPP Unit using IDE Automation component to track the source lines in the MFCTest runner. Version cppunit-1.12.0 currently support till version 7 of IDE Automation. Ive only version 2008 of Visual Studio installed in my machine. So just correct the version number in MsDevCallerListCtrl.cpp file #if (_MSC_VER < 1500) #import "libid:80cc9f66-e7d8-4ddd-85b6-d9e6cd0e93e2" version("7.0") lcid("0") raw_interfaces_only named_guids #else #import "libid:80cc9f66-e7d8-4ddd-85b6-d9e6cd0e93e2" version("9.0") lcid("0") raw_interfaces_only named_guids #endif For more Information Check "How to: Add References to the EnvDTE and EnvDTE80 Namespaces" http://msdn.microsoft.com/en-us/library/yf86a8ts%28VS.80%29.aspx ------------------ Made HostApp the default target and tried a build Still getting errors Error 1 error PRJ0019: A tool returned an error code from ".\DebugNoTypeInfoName\testrunnerd.dll" HostApp HostApp When I looked in Build/Configuration manager, TestRunner was set to Debug Unicode. Changed that to Debug and was able to run. WOOO HOOO! |
From: Baptiste L. <bl...@us...> - 2008-10-12 16:30:40
|
Update of /cvsroot/cppunit/cppunit/doc In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv32621/doc Modified Files: cookbook.dox Log Message: * doc/cookbook.dox: fixed typos. Index: cookbook.dox =================================================================== RCS file: /cvsroot/cppunit/cppunit/doc/cookbook.dox,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** cookbook.dox 25 Feb 2007 09:21:45 -0000 1.9 --- cookbook.dox 12 Oct 2008 16:30:29 -0000 1.10 *************** *** 494,498 **** a boolean indicating if the run was successful. ! Updating our main programm, we obtains: \code #include <cppunit/extensions/TestFactoryRegistry.h> --- 494,498 ---- a boolean indicating if the run was successful. ! Updating our main programm, we obtain: \code #include <cppunit/extensions/TestFactoryRegistry.h> |
From: Baptiste L. <bl...@us...> - 2008-10-12 16:30:40
|
Update of /cvsroot/cppunit/cppunit In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv32621 Modified Files: ChangeLog Log Message: * doc/cookbook.dox: fixed typos. Index: ChangeLog =================================================================== RCS file: /cvsroot/cppunit/cppunit/ChangeLog,v retrieving revision 1.269 retrieving revision 1.270 diff -C2 -d -r1.269 -r1.270 *** ChangeLog 21 Feb 2008 03:48:05 -0000 1.269 --- ChangeLog 12 Oct 2008 16:30:28 -0000 1.270 *************** *** 1,2 **** --- 1,7 ---- + 2008-10-12 Baptiste Lepilleur <bl...@us...> + + * doc/cookbook.dox: fixed typos. + + 2008-02-20 Steve M. Robbins <sm...@su...> |
From: Steven R. <sm...@us...> - 2008-10-11 02:50:43
|
Update of /cvsroot/cppunit/cppunit/src/cppunit In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv22101/src/cppunit Modified Files: TextTestProgressListener.cpp Log Message: Bug 1649369: Flush stdCOut after startTest() and addFailure(). Fix from the supplied flush patch. Index: TextTestProgressListener.cpp =================================================================== RCS file: /cvsroot/cppunit/cppunit/src/cppunit/TextTestProgressListener.cpp,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** TextTestProgressListener.cpp 21 Feb 2008 03:10:06 -0000 1.8 --- TextTestProgressListener.cpp 11 Oct 2008 02:50:28 -0000 1.9 *************** *** 21,24 **** --- 21,25 ---- { stdCOut() << "."; + stdCOut().flush(); } *************** *** 28,31 **** --- 29,33 ---- { stdCOut() << ( failure.isError() ? "E" : "F" ); + stdCOut().flush(); } |
From: Baptiste L. <bl...@us...> - 2008-07-13 08:19:55
|
Update of /cvsroot/cppunit/cppunit2/doc In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv16552/doc Modified Files: cpput_todo.dox Log Message: - Added core framework for resource handling to test case, resource registry and test info. Not integrated with the test runner and no unit tests yet. Index: cpput_todo.dox =================================================================== RCS file: /cvsroot/cppunit/cppunit2/doc/cpput_todo.dox,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** cpput_todo.dox 8 Jul 2008 20:42:00 -0000 1.6 --- cpput_todo.dox 13 Jul 2008 08:19:18 -0000 1.7 *************** *** 6,10 **** Needs: provide testers with a way to add test cases without writing code. ! Existing practice: FIT acceptance testing (http://fitnesse.org/, http://fit.c2.com/) Input data are: --- 6,10 ---- Needs: provide testers with a way to add test cases without writing code. ! Existing practice: FIT acceptance testing http://fitnesse.org/, and http://fit.c2.com/. Input data are: *************** *** 213,217 **** Since test cases can be executed concurrently (either in multiple processes, or multiple threads), there is a need for some resources to ensure that they ! are used by a single test case at a given time. A exclusion scope is associated to each resource to allow this. --- 213,217 ---- Since test cases can be executed concurrently (either in multiple processes, or multiple threads), there is a need for some resources to ensure that they ! are used by a single test case at a given time. An exclusion scope is associated to each resource to allow this. |
From: Baptiste L. <bl...@us...> - 2008-07-13 08:19:54
|
Update of /cvsroot/cppunit/cppunit2/include/cpput In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv16552/include/cpput Modified Files: forwards.h resource.h testcase.h testinfo.h Log Message: - Added core framework for resource handling to test case, resource registry and test info. Not integrated with the test runner and no unit tests yet. Index: testinfo.h =================================================================== RCS file: /cvsroot/cppunit/cppunit2/include/cpput/testinfo.h,v retrieving revision 1.21 retrieving revision 1.22 diff -C2 -d -r1.21 -r1.22 *** testinfo.h 14 Aug 2007 17:30:52 -0000 1.21 --- testinfo.h 13 Jul 2008 08:19:18 -0000 1.22 *************** *** 12,15 **** --- 12,17 ---- /*! \brief Exception thrown when an aborting assertion fails. + * @todo It would probably be better for those exception not to subclass + * std::exception (avoid this exception beeing caught by the test). */ class CPPUT_API AbortingAssertionException : public std::runtime_error *************** *** 26,30 **** --- 28,35 ---- }; + /*! \brief Exception thrown to skip the current test. + * @todo It would probably be better for those exception not to subclass + * std::exception (avoid this exception beeing caught by the test). */ class CPPUT_API SkipTestException : public std::runtime_error *************** *** 41,44 **** --- 46,67 ---- }; + + /*! \brief Exception thrown when attempting to obtain an undeclared resource. + * @todo It would probably be better for those exception not to subclass + * std::exception (avoid this exception beeing caught by the test). + */ + class CPPUT_API UndeclaredResourceException : public std::runtime_error + { + public: + UndeclaredResourceException( const std::string &resourceName ) + : std::runtime_error( "UndeclaredResourceException: " + resourceName ) + { + } + + virtual ~UndeclaredResourceException() throw() + { + } + }; + /*! \brief Represents the location of an assertion in the source code. */ *************** *** 341,344 **** --- 364,368 ---- */ class TestInfo : public CppTL::IntrusiveCount + // @todo inherit CppTL::NonCopyable { public: *************** *** 375,378 **** --- 399,406 ---- + /*! Returns the TestInfo instance for the current thread. + * Notes: one TestInfo instance is created per thread to guaranty + * thread-safety. + */ static TestInfo &threadInstance(); *************** *** 382,387 **** --- 410,436 ---- void removeTestResultUpdater(); + /*! \brief Must be called at the beginning of each test case. + * Set test status to 'passed', and assertion type to abortingAssertion. + */ void startNewTest(); + /*! \brief Set a resource required by the test case. + * startNewTest() must have been called before this member function. + */ + void addResource( const AcquiredResourceHandlePtr &resource ); + + /*! \brief Must be called at the end of each test case. + * Releases resource acquired by the test case. + */ + void discardTestResources(); + + /*! \brief Obtains the instance of the resource required by the test case. + * \param name Name of the resource to obtains. This resource must have been + * declared in the list of resource required by the test case. + * \warning This function may only be called inside a test case (setUp, run or tearDown). + * \see AbstractTestCase::requireResource, ResourceHandlerRegistry. + */ + Resource &getResource( const ResourceName &name ); + TestStatus &testStatus(); *************** *** 398,408 **** private: ! TestResultUpdater *updater_; TestStatus testStatus_; Assertion currentAssertion_; AssertionType assertionType_; AbortingAssertionMode abortingAssertionMode_; }; /*! \brief Log an event. * \sa TestInfo --- 447,468 ---- private: ! typedef std::map<ResourceName,AcquiredResourceHandlePtr> Resources; ! Resources resources_; TestStatus testStatus_; Assertion currentAssertion_; AssertionType assertionType_; AbortingAssertionMode abortingAssertionMode_; + TestResultUpdater *updater_; }; + /*! \brief Obtains the instance of the resource required by the test case. + * + * \param name Name of the resource to obtains. This resource must have been + * declared in the list of resource required by the test case. + * \warning This function may only be called inside a test case (setUp, run or tearDown). + * \see AbstractTestCase::requireResource, ResourceHandlerRegistry. + */ + Resource &CPPUT_API getResource( const ResourceName &name ); + /*! \brief Log an event. * \sa TestInfo Index: testcase.h =================================================================== RCS file: /cvsroot/cppunit/cppunit2/include/cpput/testcase.h,v retrieving revision 1.15 retrieving revision 1.16 diff -C2 -d -r1.15 -r1.16 *** testcase.h 15 Aug 2007 11:20:57 -0000 1.15 --- testcase.h 13 Jul 2008 08:19:18 -0000 1.16 *************** *** 4,9 **** --- 4,12 ---- # include <cpput/forwards.h> # include <cpptl/functor.h> + # include <cpput/resource.h> # include <cpput/test.h> # include <string> + # include <set> + # include <vector> *************** *** 18,28 **** AbstractTestCase( const std::string &name ); bool runTest(); ! /*! \brief Run the test case. * Call TestInfo::startNewTest() before starting the test. * Then, setUp(), run() and finally tearDown() are called. run() is only called * if setUp() did not failed (no assertion or exception failed during setUp() * call). */ bool runTest( const ExceptionGuard &guardsChain ); --- 21,63 ---- AbstractTestCase( const std::string &name ); + /*! \brief Indicates that the test case requires the specified resource. + * + * The specified resource will be acquired before calling setUp() and + * will be at the earliest after calling tearDown(). + * + * \param resourceName Name of the resource to acquire. + * \see ResourceHandlerRegistry, getResource(). + */ + void requireResource( const std::string &resourceName ); + + /*! \brief Prepare the acquisition of resource at the beginning of the test run. + * + * This must be called at the beginning of the test run for each test case. + * It allows couting how many time a resource will be used and during + * the test run, determining when a resource is no longer needed to free it. + * + * A ResourceLazyPtr is obtained for each required resource via the + * ResourceHandlerRegistry. + */ + void prepareResourceAcquisition(); + + /*! \brief Run the test case using the default ExceptionGuard. + * + * The default exception guard only detect + * + */ bool runTest(); ! /*! \brief Run the test case using the specified ExceptionGuard. ! * * Call TestInfo::startNewTest() before starting the test. * Then, setUp(), run() and finally tearDown() are called. run() is only called * if setUp() did not failed (no assertion or exception failed during setUp() * call). + * + * \param guardsChain Call to setUp(), run() and tearDown() are made through the + * specified exception guard. This allow capturing and extracting + * information for failure report from exception + * that do not subclass std::exception. */ bool runTest( const ExceptionGuard &guardsChain ); *************** *** 34,37 **** --- 69,73 ---- bool isTestCase() const; + // Those member functions are public to allow decoration of setUp/run/tearDown public: virtual void setUp(); *************** *** 40,43 **** --- 76,100 ---- virtual void tearDown(); + + private: + /*! \brief Acquires and setup the resource required by the test case. + * Notes: If you decorate the test case, you must ensure + * that you also decorate call to acquireTestResource(). + * \return \c true if all resources were acquired, \c false otherwise. + */ + virtual void acquireTestResources( bool &allResourceAcquired ); + + /*! \brief + */ + void setUpTestResources(); + + void tearDownTestResources(); + + private: + typedef std::set<ResourceName> ResourceNames; + /// Required resource names + ResourceNames resourceNames_; + typedef std::vector<ResourceLazyPtr> RequiredResources; + RequiredResources requiredResources_; }; Index: resource.h =================================================================== RCS file: /cvsroot/cppunit/cppunit2/include/cpput/resource.h,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** resource.h 14 Aug 2007 17:30:52 -0000 1.4 --- resource.h 13 Jul 2008 08:19:18 -0000 1.5 *************** *** 2,7 **** # define CPPUT_RESOURCE_H_INCLUDED ! # include <cpptl/sharedptr.h> # include <cpptl/any.h> /* --- 2,12 ---- # define CPPUT_RESOURCE_H_INCLUDED ! # include <cpput/forwards.h> ! //# include <cpptl/sharedptr.h> ! # include <cpptl/intrusiveptr.h> # include <cpptl/any.h> + # include <cpptl/conststring.h> + # include <cpptl/thread.h> + # include <map> /* *************** *** 23,79 **** namespace CppUT { - typedef CppTL::Any Resource; ! enum ResourceScope ! { ! resourceScopeMultiThread = 1, // concurrently used by multiple test case ! resourceScopeProcess, // exclusively used by one test case at a time in a process ! resourceScopeSession, // exclusively used by one test case in test session (session can be distributed over multiple processes) ! resourceScopeGlobal // exclusively used by one test case in the whole world. ! }; - typedef CppTL::ConstString ResourceId; ! /// A factory for a given resource class CPPUT_API ResourceHandler : public CppTL::IntrusiveCount { public: virtual ~ResourceHandler() { } ! ResourceScope scope() const { ! return scope_; } ! /// Called once per test run ! /// @return New resource instance ! virtual Resource create( const ResourceId &id ) = 0; /// Called once at the end of the test run /// Used to destroy the resource ! virtual void destroy( const ResourceId &id, Resource &resource ) = 0; /// Called once before each test case execution ! virtual void setUp( const ResourceId &id, Resource &resource ) = 0; /// Called once after each test case execution ! virtual void tearDown( Resource &resource ) = 0; protected: ! explicit ResourceHandler( ResourceScope scope ) ! : scope_( scope ) { } private: ! ResourceScope scope_; }; - class ResourceHandler; - typedef CppTL::IntrusivePtr<ResourceHandler> ResourceHandlerPtr; class CPPUT_API ConstantResourceHandler : public ResourceHandler --- 28,183 ---- namespace CppUT { ! // ! //enum ResourceScope ! //{ ! // /** Indicates that the resource is thread-safe and can be used concurrently ! // * by multiple thread. ! // */ ! // resourceScopeMultiThread = 1, ! // /** Indicates that the resource is not thread-safe, but that one instance ! // * can be created by thread. ! // */ ! // resourceScopeThread, ! // /** Indicates that the resource is not thread-safe and ! // * only one instance of the resource can be created within a system process. ! // * This means that the execution of all tests using this ! // * resource will be serialized when executed within the same process. ! // */ ! // resourceScopeProcess, ! // /// @todo find a use case for this scope ??? ! // /// Intent: can only be used across different process by different test session ! // /// Example: each test session creates its test table in database, but ! // /// test use the same table inside the same session in conflicting way. ! // resourceScopeSession, ! // /** Indicates that the resource is not thread-safe and must not be used ! // * concurrently even within different system process. ! // * Typical example: a database accessed and modified by tests in conflicting ! // * way. ! // * \Warning CppUnit 2 does not implement this scope level, but an interface ! // * is provided to implement it. ! // */ ! // resourceScopeGlobal // exclusively used by one test case in the whole world. ! //}; ! ! /** Manage a resource creation/destruction. ! * ! * The resource scope determines when and how often it is created: ! * - resourceScopeMultiThread: only one instance of the resource will ! * exist at a given time in the system process. This instance may be ! * used by multiple test thread at the same time. ! * - create() is called just before executing the first test requiring this ! * resource. ! * - destroy() is called after executing the last test requiring this ! * resource. ! * - resourceScopeThread: one instance of the resource exist for each test ! * thread at a given time. ! * - create() is called once per test thread just before executing ! * the first test requiring this resource in a given thread. ! * - destroy() is called after executing the last test requiring this ! * resource in the test thread. ! * test requiring this resource. ! * - resourceScopeProcess: only one instance of the resource will ! * exist at a given time in the system process. Only one test ! * will be able to use the resource at any given time. ! * - create() is called just before executing the first test requiring this ! * resource. ! * - destroy() is called after executing the last test requiring this ! * resource. ! * ! * ! * NOTES: with resource scope, two things are being mixed up which ! * complexify thing a bit: ! * - how many instance of the resource can exist at a given time ! * (one per thread, a single one, one per session) ! * - how many test can access the resource at a given time ! * - serialize (processs/session, process, global/session, global) ! * - concurrently ! * resourceScopeMultiThread => unique instance, concurrent access ! * resourceScopeThread => one instance per thread, concurrently or serialize??? ! * resourceScopeProcess => unique instance, serialize ! * ! * ! * Implementation notes: only serialization impact test scheduling. The ! * only impact that instantiation may have is to attempt to limit creating ! * new resource. ! */ class CPPUT_API ResourceHandler : public CppTL::IntrusiveCount { public: + enum InstiationPolicy + { + /// A single instance can be created in the system process. + unique = 1, + /// One instance may be created per testing thread. + perThread + }; + + enum AccessPolicy + { + /// All tests can use the resource concurrently + concurrent = 1, + // For each running test session, only one test of each session can + // use the resource at the same time. + // @todo find a use case. Otherwise remove, complexify exclusion handling. + // processSessionSerialization, + /// Only one test can use the resource at a given time in the system process. + process, + /// Only one test of a session can use the resource, but if other session + /// are running in other process, then the can also use the resource. + globalSessionSerialization, + /// Only one test can use the resource at a given time, regarless of + /// the session or system process. + global + }; + virtual ~ResourceHandler() { } ! bool uniqueInstance() const { ! return instantiation_ == unique; } ! AccessPolicy accessPolicy() const ! { ! return access_; ! } ! ! /** Creates a new instance of the resource. ! * The resource scope determine when and how often it is called: ! * \return New resource instance. ! */ ! virtual Resource create( const ResourceName &name ) = 0; /// Called once at the end of the test run /// Used to destroy the resource ! virtual void destroy( const ResourceName &name, Resource &resource ) = 0; /// Called once before each test case execution ! virtual void setUp( const ResourceName &name, Resource &resource ) = 0; /// Called once after each test case execution ! virtual void tearDown( const ResourceName &name, ! Resource &resource ) = 0; protected: ! explicit ResourceHandler( InstiationPolicy instantiation, ! AccessPolicy access ) ! : instantiation_( instantiation ) ! , access_( access ) { } private: ! InstiationPolicy instantiation_; ! AccessPolicy access_; }; class CPPUT_API ConstantResourceHandler : public ResourceHandler *************** *** 81,86 **** public: ConstantResourceHandler( const CppTL::Any &resource, ! ResourceScope scope = resourceScopeMultiThread ) ! : ResourceHandler( scope ) , resource_( resource ) { --- 185,191 ---- public: ConstantResourceHandler( const CppTL::Any &resource, ! InstiationPolicy instantiation = unique, ! AccessPolicy access = concurrent ) ! : ResourceHandler( instantiation, access ) , resource_( resource ) { *************** *** 92,106 **** public: // overridden from ResourceHandler ! virtual Resource create( const ResourceId &id ) { return resource_; } ! virtual void destroy( const ResourceId &id, Resource &resource ) { } ! virtual void setUp( const ResourceId &id, Resource &resource ) { --- 197,211 ---- public: // overridden from ResourceHandler ! virtual Resource create( const ResourceName &name ) { return resource_; } ! virtual void destroy( const ResourceName &name, Resource &resource ) { } ! virtual void setUp( const ResourceName &name, Resource &resource ) { *************** *** 108,112 **** } ! virtual void tearDown( Resource &resource ) { } --- 213,218 ---- } ! virtual void tearDown( const ResourceName &name, ! Resource &resource ) { } *************** *** 117,143 **** ! class ResourceHandlerRegistry { public: ! static ResourceHandlerRegistry &instance(); ! void addConstant( const ResourceId &id, ! const Resource &constant ) { ! ResourceHandlerPtr handler( new ConstantResourceHandler( constant ) ); ! addFactory( id, handler ); } ! void add( const ResourceId &id, ! const ResourceHandlerPtr &handler ) { ! CppTL::Mutex::ScopedLockGuard guard( lock_ ); ! handlersById_[id] = handler; } private: CppTL::Mutex lock_; ! typedef std::map<ResourceId, ResourceHandlerPtr> HandlersById; ! HandlersById handlersById_; }; --- 223,416 ---- ! ! /*! \brief Represents an instance of a resource. ! * The life-time of the underlying resource is bound to this class life-time. ! * It encapsulate both the underlying resource and its handler. ! * It also manage the access policy in a single system process. ! */ ! class CPPUT_API ResourceInstance : public CppTL::IntrusiveCount ! , public CppTL::NonCopyable { + private: + friend class ResourceHandlerRegistry; + + // Resource instances are always created by ResourceHandlerRegistry::obtainResource. + explicit ResourceInstance( const ResourceName &name, + const ResourceHandlerPtr &handler ); + public: ! ~ResourceInstance(); ! void setUp(); ! ! void tearDown(); ! ! /*! \brief Acquires a lock on the resource according to the specified policy. ! * The lock is released once the last copy of the returned ScopedLock is destroyed. ! */ ! AcquiredResourceHandlePtr acquire( ResourceHandler::AccessPolicy access ); ! ! Resource &resource() { ! return resource_; } ! const ResourceName &name() const { ! return name_; } + private: + Resource resource_; + ResourceName name_; + ResourceHandlerPtr handler_; + CppTL::Mutex lock_; + }; + + + /*! \brief Represents an handle on an acquired resource. + * + * The acquired resource won't be destroyed as long as the handle or one of its copy + * is alive. The lock associated to the resource policy will also remain for the + * same life-time. + */ + class CPPUT_API AcquiredResourceHandle : public CppTL::IntrusiveCount + , public CppTL::NonCopyable + { + friend class ResourceInstance; + + // Instantiated by ResourceInstance::acquire(). + AcquiredResourceHandle( CppTL::Mutex &lock, + const ResourceInstancePtr &instance, + ResourceHandler::AccessPolicy access ); + + public: + ~AcquiredResourceHandle(); + + void setUp(); + + void tearDown(); + + Resource &resource() + { + return instance_->resource(); + } + + const ResourceName &name() const + { + return instance_->name(); + } + + private: + CppTL::Mutex &lock_; + ResourceInstancePtr instance_; + ResourceHandler::AccessPolicy access_; + }; + + + class CPPUT_API ResourceHandlerRegistry : public CppTL::NonCopyable + { + friend class ResourceLazyPtr; + public: + static ResourceHandlerRegistry &instance(); + + void addConstant( const ResourceName &name, + const Resource &constant ); + + ResourceId add( const ResourceName &name, + const ResourceHandlerPtr &handler ); + + void remove( ResourceId id ); + + /** Obtains a lazy reference on the resource. + * This will not create the resource but indicate the intent to create it + * later. Existing instance of ResourceLazyPtr on a given resource prevent it + * from being destroyed if it was created. + * + * Notes: for resource with one per thread instantiation policy, + * a list of allocated resource need to be tracker per thread. + * but the same future usage policy can be used to simplify the implementation. + * + * Issue: as we need to guaranty that the destructor is called in the + * thread the resource was created in, we either need to delay destruction + * until the thread terminate or track future usage on a per thread basis. + * Tracking future usage on a per thread basis would make scheduling more + * complex (it would not be possible to use multiple consumer test thread). + */ + ResourceLazyPtr getResource( const ResourceName &name ); private: + AcquiredResourceHandlePtr obtainResource( ResourceId id ); + + void increaseLazyRef( ResourceId id ); + + void decreaseLazyRef( ResourceId id ); + + + struct ResourceData + { + ResourceName name_; + ResourceHandlerPtr handler_; + ResourceInstancePtr instance_; + /// Number of known future reference on the resource + volatile unsigned int lazyCount_; + ResourceId id_; + }; + CppTL::Mutex lock_; ! typedef std::map<ResourceName, ResourceId> IdsByName; ! IdsByName idsByName_; ! typedef std::map<ResourceId,ResourceData> ResourceById; ! ResourceById resourceById_; ! ResourceId nextId_; ! }; ! ! ! class CPPUT_API ResourceLazyPtr ! { ! friend class ResourceHandlerRegistry; ! public: ! ResourceLazyPtr() ! : id_( 0 ) ! { ! } ! ! explicit ResourceLazyPtr( ResourceId id ) ! : id_( id ) ! { ! ResourceHandlerRegistry::instance().increaseLazyRef( id_ ); ! } ! ! ResourceLazyPtr( const ResourceLazyPtr &other ) ! : id_( other.id_ ) ! { ! ResourceHandlerRegistry::instance().increaseLazyRef( id_ ); ! } ! ! ResourceLazyPtr &operator =( const ResourceLazyPtr &other ); ! ! ~ResourceLazyPtr() ! { ! ResourceHandlerRegistry::instance().decreaseLazyRef( id_ ); ! } ! ! /** Obtains the resource. ! * Create the resource if required. The reference on the resource remains ! * valid until the last copy of ResourceInstancePtr is destroyed. ! * ! * Notes: may lock if the resource does not allow concurrent access and ! * is in use in another thread. ! * ! * \return Reference on the resource if it was instantiated successfully, ! * \c NULL otherwise. ! */ ! AcquiredResourceHandlePtr acquire(); ! ! bool isValid() const ! { ! return id_ != 0; ! } ! ! private: ! ResourceId id_; }; Index: forwards.h =================================================================== RCS file: /cvsroot/cppunit/cppunit2/include/cpput/forwards.h,v retrieving revision 1.21 retrieving revision 1.22 diff -C2 -d -r1.21 -r1.22 *** forwards.h 14 Aug 2007 17:30:52 -0000 1.21 --- forwards.h 13 Jul 2008 08:19:18 -0000 1.22 *************** *** 26,29 **** --- 26,40 ---- class TestResultUpdater; + // resource.h + typedef CppTL::Any Resource; + typedef unsigned int ResourceId; + class AcquiredResourceHandle; + class ResourceHandler; + class ResourceHandlerRegistry; + class ResourceInstance; + class ResourceLazyPtr; + typedef CppTL::ConstString ResourceName; + + // for ... typedef CppTL::IntrusivePtr<AbstractTestCase> AbstractTestCasePtr; typedef CppTL::IntrusivePtr<AbstractTestSuite> AbstractTestSuitePtr; *************** *** 34,37 **** --- 45,53 ---- typedef CppTL::IntrusivePtr<TestResultUpdater> TestResultUpdaterPtr; + // for resource.h + typedef CppTL::IntrusivePtr<ResourceHandler> ResourceHandlerPtr; + typedef CppTL::IntrusivePtr<ResourceInstance> ResourceInstancePtr; + typedef CppTL::IntrusivePtr<AcquiredResourceHandle> AcquiredResourceHandlePtr; + } // namespace CppUT |
From: Baptiste L. <bl...@us...> - 2008-07-13 08:19:54
|
Update of /cvsroot/cppunit/cppunit2 In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv16552 Modified Files: TODO Log Message: - Added core framework for resource handling to test case, resource registry and test info. Not integrated with the test runner and no unit tests yet. Index: TODO =================================================================== RCS file: /cvsroot/cppunit/cppunit2/TODO,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** TODO 19 Aug 2007 20:13:24 -0000 1.6 --- TODO 13 Jul 2008 08:19:18 -0000 1.7 *************** *** 10,12 **** --- 10,16 ---- - conversion between type (int, uint, const char *, std::string...) - type comparison + * arange for fixture based test case to create a new instance for each test run. + => solve requirement to implement setUp()/tearDown() + => ensure thread-safety when the same test is executed in multiple thread at the + same time (stress test) |
From: Baptiste L. <bl...@us...> - 2008-07-13 08:19:24
|
Update of /cvsroot/cppunit/cppunit2/src/cpput In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv16552/src/cpput Modified Files: SConscript testcase.cpp testinfo.cpp Log Message: - Added core framework for resource handling to test case, resource registry and test info. Not integrated with the test runner and no unit tests yet. Index: SConscript =================================================================== RCS file: /cvsroot/cppunit/cppunit2/src/cpput/SConscript,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -d -r1.11 -r1.12 *** SConscript 2 Sep 2006 11:24:53 -0000 1.11 --- SConscript 13 Jul 2008 08:19:20 -0000 1.12 *************** *** 9,12 **** --- 9,13 ---- message.cpp registry.cpp + resource.cpp testcase.cpp testinfo.cpp Index: testinfo.cpp =================================================================== RCS file: /cvsroot/cppunit/cppunit2/src/cpput/testinfo.cpp,v retrieving revision 1.22 retrieving revision 1.23 diff -C2 -d -r1.22 -r1.23 *** testinfo.cpp 14 Aug 2007 17:30:52 -0000 1.22 --- testinfo.cpp 13 Jul 2008 08:19:20 -0000 1.23 *************** *** 1,3 **** --- 1,4 ---- #include <cpput/testinfo.h> + #include <cpput/resource.h> #include <cpptl/stringtools.h> #include <cpptl/thread.h> *************** *** 299,302 **** --- 300,352 ---- testStatus_ = TestStatus( TestStatus::passed ); assertionType_ = abortingAssertion; + resources_.clear(); + } + + + void + TestInfo::addResource( const AcquiredResourceHandlePtr &resource ) + { + resources_.insert( Resources::value_type( resource->name(), resource ) ); + } + + void + TestInfo::discardTestResources() + { + Resources resources; + resources.swap( resources_ ); // releases resource once exiting this function + + // tear down each resource + Resources::iterator itEnd = resources.end(); + for ( Resources::iterator it = resources.begin(); it != itEnd; ++it ) + { + AcquiredResourceHandlePtr &resource = it->second; + try + { + // Assertions are allowed in tearDown Ignore them as they have + // already been handled. + resource->tearDown(); + } + catch ( const AbortingAssertionException & ) + { + } + catch ( const SkipTestException & ) + { + } + } + } + + + Resource & + TestInfo::getResource( const ResourceName &name ) + { + Resources::iterator it = resources_.find( name ); + if ( it == resources_.end() ) + { + // @todo check that resource name is correctly reported in failure message + testStatus_.setStatus( TestStatus::failed ); + throw UndeclaredResourceException( name.c_str() ); + } + AcquiredResourceHandlePtr &resource = it->second; + return resource->resource(); } *************** *** 442,445 **** --- 492,500 ---- // ////////////////////////////////////////////////////////////////// + Resource &getResource( const ResourceName &name ) + { + return TestInfo::threadInstance().getResource( name ); + } + void log( const Json::Value &log ) Index: testcase.cpp =================================================================== RCS file: /cvsroot/cppunit/cppunit2/src/cpput/testcase.cpp,v retrieving revision 1.16 retrieving revision 1.17 diff -C2 -d -r1.16 -r1.17 *** testcase.cpp 15 Aug 2007 11:20:57 -0000 1.16 --- testcase.cpp 13 Jul 2008 08:19:20 -0000 1.17 *************** *** 1,7 **** #include <cpput/testcase.h> #include <cpput/assertcommon.h> #include <cpptl/functor.h> #include <cpput/message.h> ! #include <cpput/exceptionguard.h> #include <cpput/testvisitor.h> --- 1,8 ---- #include <cpput/testcase.h> #include <cpput/assertcommon.h> + #include <cpput/exceptionguard.h> #include <cpptl/functor.h> #include <cpput/message.h> ! #include <cpput/resource.h> #include <cpput/testvisitor.h> *************** *** 42,58 **** } bool AbstractTestCase::runTest( const ExceptionGuard &guardsChain ) { ! TestInfo::threadInstance().startNewTest(); ! bool initialized = guardsChain.protect( CppTL::memfn0( this, ! &AbstractTestCase::setUp ) ); ! if ( initialized ) { ! guardsChain.protect( CppTL::memfn0( this, &AbstractTestCase::run ) ); ! guardsChain.protect( CppTL::memfn0( this, &AbstractTestCase::tearDown) ); } return !TestInfo::threadInstance().testStatus().hasFailed(); } --- 43,75 ---- } + bool AbstractTestCase::runTest( const ExceptionGuard &guardsChain ) { ! TestInfo &testInfo = TestInfo::threadInstance(); ! testInfo.startNewTest(); ! // Protect resource acquisition in the of a resource constructor ! // throw an exception. ! bool allResourceAcquired = false; ! bool resourceAcquired = guardsChain.protect( ! CppTL::bind( ! CppTL::memfn1( this, &AbstractTestCase::acquireTestResources ), ! CppTL::ref( allResourceAcquired ) ) ); ! if ( resourceAcquired ) { ! bool initialized = guardsChain.protect( ! CppTL::memfn0( this, &AbstractTestCase::setUp ) ); ! ! if ( initialized ) ! { ! guardsChain.protect( CppTL::memfn0( this, &AbstractTestCase::run ) ); ! guardsChain.protect( CppTL::memfn0( this, &AbstractTestCase::tearDown) ); ! } } + // Tear down and releases resources "allocated" for the test. + testInfo.discardTestResources(); + return !TestInfo::threadInstance().testStatus().hasFailed(); } *************** *** 71,74 **** --- 88,151 ---- + void + AbstractTestCase::requireResource( const std::string &resourceName ) + { + resourceNames_.insert( resourceName ); + } + + + void + AbstractTestCase::prepareResourceAcquisition() + { + requiredResources_.clear(); + requiredResources_.reserve( resourceNames_.size() ); + + // For each required resource, we obtain a lazy reference on the resource. + // This does not instantiate the resource but indicates future usage of the + // resource. This is used to allow destruction of the resource as soon as + // all tests requiring it have been executed. + ResourceHandlerRegistry ®istry = ResourceHandlerRegistry::instance(); + ResourceNames::iterator itEnd = resourceNames_.end(); + for ( ResourceNames::iterator it = resourceNames_.begin(); + it != itEnd; + ++it ) + { + const ResourceName &resourceName = *it; + ResourceLazyPtr resource = registry.getResource( resourceName ); + requiredResources_.push_back( resource ); + } + } + + + void + AbstractTestCase::acquireTestResources( bool &allResourceAcquired ) + { + // Notes that the resources are acquired in the order they are stored in the map, + // that is, in the order of the resource name. + // This is important to ensure that multiple resources acquisition is always done + // in the same order to avoid dead-lock when resources are acquired concurrently. + TestInfo &testInfo = TestInfo::threadInstance(); + RequiredResources::iterator itEnd = requiredResources_.end(); + for ( RequiredResources::iterator it = requiredResources_.begin(); + it != itEnd; + ++it ) + { + ResourceLazyPtr &resourceRef = *it; + // Obtains a reference on an actual instance of the resource. + // The resource is instantiated if required. + // Notes: resource constructor may throw an exception. + AcquiredResourceHandlePtr resource = resourceRef.acquire(); + if ( !resource ) + { + allResourceAcquired = false; + return; // No resource handler defined for the resource + } + testInfo.addResource( resource ); + resource->setUp(); + } + allResourceAcquired = true; + } + + // Class TestCase |
From: Baptiste L. <bl...@us...> - 2008-07-13 08:19:23
|
Update of /cvsroot/cppunit/cppunit2/makefiles/vs80 In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv16552/makefiles/vs80 Modified Files: cpput_lib.vcproj Log Message: - Added core framework for resource handling to test case, resource registry and test info. Not integrated with the test runner and no unit tests yet. Index: cpput_lib.vcproj =================================================================== RCS file: /cvsroot/cppunit/cppunit2/makefiles/vs80/cpput_lib.vcproj,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** cpput_lib.vcproj 16 Aug 2007 15:51:04 -0000 1.1 --- cpput_lib.vcproj 13 Jul 2008 08:19:20 -0000 1.2 *************** *** 338,341 **** --- 338,345 ---- </File> <File + RelativePath="..\..\src\cpput\resource.cpp" + > + </File> + <File RelativePath="..\..\include\cpput\resource.h" > |
From: Baptiste L. <bl...@us...> - 2008-07-13 08:16:08
|
Update of /cvsroot/cppunit/cppunit2/src/cpputtest In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv15347 Modified Files: valuetest.cpp Log Message: - Made min/max int initialization more portable. Index: valuetest.cpp =================================================================== RCS file: /cvsroot/cppunit/cppunit2/src/cpputtest/valuetest.cpp,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** valuetest.cpp 19 Aug 2007 20:13:24 -0000 1.1 --- valuetest.cpp 13 Jul 2008 08:16:05 -0000 1.2 *************** *** 4,9 **** ValueTest::ValueTest() ! : maxInt_( 0x7ffffff ) ! , minInt_( ~(unsigned int(-1)/2) ) { } --- 4,9 ---- ValueTest::ValueTest() ! : maxInt_( ((unsigned int)~0)/2 ) ! , minInt_( ~((unsigned int)(~0)/2) ) { } |
From: Baptiste L. <bl...@us...> - 2008-07-13 08:11:05
|
Update of /cvsroot/cppunit/cppunit2/include/cpput In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv12997 Modified Files: inputbasedtest.h Log Message: - Fixed compilation issue on MSVC6 (lack of argument dependent look-up) Index: inputbasedtest.h =================================================================== RCS file: /cvsroot/cppunit/cppunit2/include/cpput/inputbasedtest.h,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** inputbasedtest.h 16 Aug 2007 15:51:04 -0000 1.1 --- inputbasedtest.h 13 Jul 2008 08:10:59 -0000 1.2 *************** *** 119,123 **** bind234( const Functor &functor, A2 a2, A3 a3, A4 a4 ) { ! return fn1( Bind234<Functor>( functor, a2, a3, a4 ) ); } --- 119,123 ---- bind234( const Functor &functor, A2 a2, A3 a3, A4 a4 ) { ! return CppTL::fn1( Bind234<Functor>( functor, a2, a3, a4 ) ); } |