summaryrefslogtreecommitdiff
path: root/examples/msvc6
diff options
context:
space:
mode:
authorBaptiste Lepilleur <gaiacrtn@free.fr>2002-04-21 09:57:52 +0000
committerBaptiste Lepilleur <gaiacrtn@free.fr>2002-04-21 09:57:52 +0000
commitca5f94534beb3fb395a397a2fe991f4c64fb2f84 (patch)
tree1ab95c541266dc554500d201865f683616a11dbc /examples/msvc6
parentaa3e46e802dc5139e3e2c32e6a00526697e8a0aa (diff)
downloadcppunit-ca5f94534beb3fb395a397a2fe991f4c64fb2f84.tar.gz
Src/DllPlugInTester/makefile.
src/DllPlugInTester/makefile.am: removed ld.so from LDADD flags. * src/DllPlugInTester/CommandLineParser.h: * src/DllPlugInTester/CommandLineParser.cpp: rewrote, fixed problem with double quotes in command line... * src/DllPlugInTester/CommandLineParserTest.h: * src/DllPlugInTester/CommandLineParserTest.cpp: * src/DllPlugInTester/DllPlugInTesterTest.cpp: added, unit tests for CommandLineParser. * src/msvc6/TestPlugIn/*: removed.
Diffstat (limited to 'examples/msvc6')
-rw-r--r--examples/msvc6/TestPlugIn/ReadMe.txt37
-rw-r--r--examples/msvc6/TestPlugIn/StdAfx.cpp8
-rw-r--r--examples/msvc6/TestPlugIn/StdAfx.h24
-rw-r--r--examples/msvc6/TestPlugIn/TestPlugIn.cpp22
-rw-r--r--examples/msvc6/TestPlugIn/TestPlugIn.dsp157
-rw-r--r--examples/msvc6/TestPlugIn/TestPlugIn.dsw44
-rw-r--r--examples/msvc6/TestPlugIn/TestPlugIn.h12
-rw-r--r--examples/msvc6/TestPlugIn/TestPlugInInterfaceImpl.cpp35
-rw-r--r--examples/msvc6/TestPlugIn/TestPlugInInterfaceImpl.h41
9 files changed, 0 insertions, 380 deletions
diff --git a/examples/msvc6/TestPlugIn/ReadMe.txt b/examples/msvc6/TestPlugIn/ReadMe.txt
deleted file mode 100644
index d657e7d..0000000
--- a/examples/msvc6/TestPlugIn/ReadMe.txt
+++ /dev/null
@@ -1,37 +0,0 @@
-========================================================================
- DYNAMIC LINK LIBRARY : TestPlugIn
-========================================================================
-
-
-AppWizard has created this TestPlugIn DLL for you.
-
-This file contains a summary of what you will find in each of the files that
-make up your TestPlugIn application.
-
-TestPlugIn.dsp
- This file (the project file) contains information at the project level and
- is used to build a single project or subproject. Other users can share the
- project (.dsp) file, but they should export the makefiles locally.
-
-TestPlugIn.cpp
- This is the main DLL source file.
-
-TestPlugIn.h
- This file contains your DLL exports.
-
-/////////////////////////////////////////////////////////////////////////////
-Other standard files:
-
-StdAfx.h, StdAfx.cpp
- These files are used to build a precompiled header (PCH) file
- named TestPlugIn.pch and a precompiled types file named StdAfx.obj.
-
-
-/////////////////////////////////////////////////////////////////////////////
-Other notes:
-
-AppWizard uses "TODO:" to indicate parts of the source code you
-should add to or customize.
-
-
-/////////////////////////////////////////////////////////////////////////////
diff --git a/examples/msvc6/TestPlugIn/StdAfx.cpp b/examples/msvc6/TestPlugIn/StdAfx.cpp
deleted file mode 100644
index d7e8241..0000000
--- a/examples/msvc6/TestPlugIn/StdAfx.cpp
+++ /dev/null
@@ -1,8 +0,0 @@
-// stdafx.cpp : source file that includes just the standard includes
-// TestPlugIn.pch will be the pre-compiled header
-// stdafx.obj will contain the pre-compiled type information
-
-#include "stdafx.h"
-
-// TODO: reference any additional headers you need in STDAFX.H
-// and not in this file
diff --git a/examples/msvc6/TestPlugIn/StdAfx.h b/examples/msvc6/TestPlugIn/StdAfx.h
deleted file mode 100644
index 92400db..0000000
--- a/examples/msvc6/TestPlugIn/StdAfx.h
+++ /dev/null
@@ -1,24 +0,0 @@
-// stdafx.h : include file for standard system include files,
-// or project specific include files that are used frequently, but
-// are changed infrequently
-//
-
-#if !defined(AFX_STDAFX_H__0442C7FF_6045_4FE2_BF64_0889A800307A__INCLUDED_)
-#define AFX_STDAFX_H__0442C7FF_6045_4FE2_BF64_0889A800307A__INCLUDED_
-
-#if _MSC_VER > 1000
-#pragma once
-#endif // _MSC_VER > 1000
-
-
-// Insert your headers here
-#define WIN32_LEAN_AND_MEAN // Exclude rarely-used stuff from Windows headers
-
-#include <windows.h>
-
-// TODO: reference additional headers your program requires here
-
-//{{AFX_INSERT_LOCATION}}
-// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
-
-#endif // !defined(AFX_STDAFX_H__0442C7FF_6045_4FE2_BF64_0889A800307A__INCLUDED_)
diff --git a/examples/msvc6/TestPlugIn/TestPlugIn.cpp b/examples/msvc6/TestPlugIn/TestPlugIn.cpp
deleted file mode 100644
index e9de480..0000000
--- a/examples/msvc6/TestPlugIn/TestPlugIn.cpp
+++ /dev/null
@@ -1,22 +0,0 @@
-// TestPlugIn.cpp : Defines the entry point for the DLL application.
-//
-
-#include "stdafx.h"
-#include "TestPlugIn.h"
-
-BOOL APIENTRY DllMain( HANDLE hModule,
- DWORD ul_reason_for_call,
- LPVOID lpReserved
- )
-{
- switch (ul_reason_for_call)
- {
- case DLL_PROCESS_ATTACH:
- case DLL_THREAD_ATTACH:
- case DLL_THREAD_DETACH:
- case DLL_PROCESS_DETACH:
- break;
- }
- return TRUE;
-}
-
diff --git a/examples/msvc6/TestPlugIn/TestPlugIn.dsp b/examples/msvc6/TestPlugIn/TestPlugIn.dsp
deleted file mode 100644
index fe4db0f..0000000
--- a/examples/msvc6/TestPlugIn/TestPlugIn.dsp
+++ /dev/null
@@ -1,157 +0,0 @@
-# Microsoft Developer Studio Project File - Name="TestPlugIn" - Package Owner=<4>
-# Microsoft Developer Studio Generated Build File, Format Version 6.00
-# ** DO NOT EDIT **
-
-# TARGTYPE "Win32 (x86) Dynamic-Link Library" 0x0102
-
-CFG=TestPlugIn - Win32 Debug
-!MESSAGE This is not a valid makefile. To build this project using NMAKE,
-!MESSAGE use the Export Makefile command and run
-!MESSAGE
-!MESSAGE NMAKE /f "TestPlugIn.mak".
-!MESSAGE
-!MESSAGE You can specify a configuration when running NMAKE
-!MESSAGE by defining the macro CFG on the command line. For example:
-!MESSAGE
-!MESSAGE NMAKE /f "TestPlugIn.mak" CFG="TestPlugIn - Win32 Debug"
-!MESSAGE
-!MESSAGE Possible choices for configuration are:
-!MESSAGE
-!MESSAGE "TestPlugIn - Win32 Release" (based on "Win32 (x86) Dynamic-Link Library")
-!MESSAGE "TestPlugIn - Win32 Debug" (based on "Win32 (x86) Dynamic-Link Library")
-!MESSAGE
-
-# Begin Project
-# PROP AllowPerConfigDependencies 0
-# PROP Scc_ProjName ""
-# PROP Scc_LocalPath ""
-CPP=cl.exe
-MTL=midl.exe
-RSC=rc.exe
-
-!IF "$(CFG)" == "TestPlugIn - Win32 Release"
-
-# PROP BASE Use_MFC 0
-# PROP BASE Use_Debug_Libraries 0
-# PROP BASE Output_Dir "Release"
-# PROP BASE Intermediate_Dir "Release"
-# PROP BASE Target_Dir ""
-# PROP Use_MFC 0
-# PROP Use_Debug_Libraries 0
-# PROP Output_Dir "Release"
-# PROP Intermediate_Dir "Release"
-# PROP Ignore_Export_Lib 0
-# PROP Target_Dir ""
-# ADD BASE CPP /nologo /MT /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "TESTPLUGIN_EXPORTS" /Yu"stdafx.h" /FD /c
-# ADD CPP /nologo /MD /W3 /GR /GX /O2 /I "../../../../include" /I "../../../include" /D "NDEBUG" /D "WIN32" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "TESTPLUGIN_EXPORTS" /D "CPPUNIT_DLL" /Yu"stdafx.h" /FD /c
-# ADD BASE MTL /nologo /D "NDEBUG" /mktyplib203 /win32
-# ADD MTL /nologo /D "NDEBUG" /mktyplib203 /win32
-# ADD BASE RSC /l 0x40c /d "NDEBUG"
-# ADD RSC /l 0x40c /d "NDEBUG"
-BSC32=bscmake.exe
-# ADD BASE BSC32 /nologo
-# ADD BSC32 /nologo
-LINK32=link.exe
-# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /dll /machine:I386
-# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib ../../../lib/cppunit_dll.lib /nologo /dll /machine:I386
-# Begin Special Build Tool
-TargetPath=.\Release\TestPlugIn.dll
-SOURCE="$(InputPath)"
-PostBuild_Desc=Unit testing...
-PostBuild_Cmds=..\..\..\lib\DllPlugInTester_dll.exe $(TargetPath)
-# End Special Build Tool
-
-!ELSEIF "$(CFG)" == "TestPlugIn - Win32 Debug"
-
-# PROP BASE Use_MFC 0
-# PROP BASE Use_Debug_Libraries 1
-# PROP BASE Output_Dir "Debug"
-# PROP BASE Intermediate_Dir "Debug"
-# PROP BASE Target_Dir ""
-# PROP Use_MFC 0
-# PROP Use_Debug_Libraries 1
-# PROP Output_Dir "Debug"
-# PROP Intermediate_Dir "Debug"
-# PROP Ignore_Export_Lib 0
-# PROP Target_Dir ""
-# ADD BASE CPP /nologo /MTd /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "TESTPLUGIN_EXPORTS" /Yu"stdafx.h" /FD /GZ /c
-# ADD CPP /nologo /MDd /W3 /Gm /GR /GX /ZI /Od /I "../../../include" /D "_DEBUG" /D "WIN32" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "TESTPLUGIN_EXPORTS" /D "CPPUNIT_DLL" /Yu"stdafx.h" /FD /GZ /c
-# ADD BASE MTL /nologo /D "_DEBUG" /mktyplib203 /win32
-# ADD MTL /nologo /D "_DEBUG" /mktyplib203 /win32
-# ADD BASE RSC /l 0x40c /d "_DEBUG"
-# ADD RSC /l 0x40c /d "_DEBUG"
-BSC32=bscmake.exe
-# ADD BASE BSC32 /nologo
-# ADD BSC32 /nologo
-LINK32=link.exe
-# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /dll /debug /machine:I386 /pdbtype:sept
-# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib ../../../lib/cppunitd_dll.lib /nologo /dll /debug /machine:I386 /pdbtype:sept
-# Begin Special Build Tool
-TargetPath=.\Debug\TestPlugIn.dll
-SOURCE="$(InputPath)"
-PostBuild_Desc=Unit testing...
-PostBuild_Cmds=..\..\..\lib\DllPlugInTesterd_dll.exe $(TargetPath)
-# End Special Build Tool
-
-!ENDIF
-
-# Begin Target
-
-# Name "TestPlugIn - Win32 Release"
-# Name "TestPlugIn - Win32 Debug"
-# Begin Group "Source Files"
-
-# PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;idl;hpj;bat"
-# Begin Source File
-
-SOURCE=.\StdAfx.cpp
-# ADD CPP /Yc"stdafx.h"
-# End Source File
-# Begin Source File
-
-SOURCE=.\TestPlugIn.cpp
-# End Source File
-# Begin Source File
-
-SOURCE=.\TestPlugInInterfaceImpl.cpp
-# End Source File
-# End Group
-# Begin Group "Header Files"
-
-# PROP Default_Filter "h;hpp;hxx;hm;inl"
-# Begin Source File
-
-SOURCE=.\StdAfx.h
-# End Source File
-# Begin Source File
-
-SOURCE=.\TestPlugIn.h
-# End Source File
-# Begin Source File
-
-SOURCE=.\TestPlugInInterfaceImpl.h
-# End Source File
-# End Group
-# Begin Group "Resource Files"
-
-# PROP Default_Filter "ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe"
-# End Group
-# Begin Group "Tests"
-
-# PROP Default_Filter ""
-# Begin Source File
-
-SOURCE=..\HostApp\ExampleTestCase.cpp
-# SUBTRACT CPP /YX /Yc /Yu
-# End Source File
-# Begin Source File
-
-SOURCE=..\HostApp\ExampleTestCase.h
-# End Source File
-# End Group
-# Begin Source File
-
-SOURCE=.\ReadMe.txt
-# End Source File
-# End Target
-# End Project
diff --git a/examples/msvc6/TestPlugIn/TestPlugIn.dsw b/examples/msvc6/TestPlugIn/TestPlugIn.dsw
deleted file mode 100644
index 20d5fbf..0000000
--- a/examples/msvc6/TestPlugIn/TestPlugIn.dsw
+++ /dev/null
@@ -1,44 +0,0 @@
-Microsoft Developer Studio Workspace File, Format Version 6.00
-# WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE!
-
-###############################################################################
-
-Project: "TestPlugIn"=.\TestPlugIn.dsp - Package Owner=<4>
-
-Package=<5>
-{{{
-}}}
-
-Package=<4>
-{{{
- Begin Project Dependency
- Project_Dep_Name cppunit
- End Project Dependency
-}}}
-
-###############################################################################
-
-Project: "cppunit"=..\..\..\src\cppunit\cppunit.dsp - Package Owner=<4>
-
-Package=<5>
-{{{
-}}}
-
-Package=<4>
-{{{
-}}}
-
-###############################################################################
-
-Global:
-
-Package=<5>
-{{{
-}}}
-
-Package=<3>
-{{{
-}}}
-
-###############################################################################
-
diff --git a/examples/msvc6/TestPlugIn/TestPlugIn.h b/examples/msvc6/TestPlugIn/TestPlugIn.h
deleted file mode 100644
index 919ce9a..0000000
--- a/examples/msvc6/TestPlugIn/TestPlugIn.h
+++ /dev/null
@@ -1,12 +0,0 @@
-
-// The following ifdef block is the standard way of creating macros which make exporting
-// from a DLL simpler. All files within this DLL are compiled with the TESTPLUGIN_EXPORTS
-// symbol defined on the command line. this symbol should not be defined on any project
-// that uses this DLL. This way any other project whose source files include this file see
-// TESTPLUGIN_API functions as being imported from a DLL, wheras this DLL sees symbols
-// defined with this macro as being exported.
-#ifdef TESTPLUGIN_EXPORTS
-#define TESTPLUGIN_API __declspec(dllexport)
-#else
-#define TESTPLUGIN_API __declspec(dllimport)
-#endif
diff --git a/examples/msvc6/TestPlugIn/TestPlugInInterfaceImpl.cpp b/examples/msvc6/TestPlugIn/TestPlugInInterfaceImpl.cpp
deleted file mode 100644
index 0d19327..0000000
--- a/examples/msvc6/TestPlugIn/TestPlugInInterfaceImpl.cpp
+++ /dev/null
@@ -1,35 +0,0 @@
-// //////////////////////////////////////////////////////////////////////////
-// Implementation file TestPlugInInterfaceImpl.cpp for class TestPlugInInterfaceImpl
-// (c)Copyright 2000, Baptiste Lepilleur.
-// Created: 2001/06/27
-// //////////////////////////////////////////////////////////////////////////
-
-#include "StdAfx.h"
-#include "TestPlugInInterfaceImpl.h"
-#include <cppunit/extensions/TestFactoryRegistry.h>
-
-
-TestPlugInInterfaceImpl::TestPlugInInterfaceImpl()
-{
-}
-
-
-TestPlugInInterfaceImpl::~TestPlugInInterfaceImpl()
-{
-}
-
-
-CppUnit::Test *
-TestPlugInInterfaceImpl::makeTest()
-{
- return CppUnit::TestFactoryRegistry::getRegistry().makeTest();
-}
-
-
-TestPlugInInterface *
-GetTestPlugInInterface()
-{
- static TestPlugInInterfaceImpl runner;
- return &runner;
-}
-
diff --git a/examples/msvc6/TestPlugIn/TestPlugInInterfaceImpl.h b/examples/msvc6/TestPlugIn/TestPlugInInterfaceImpl.h
deleted file mode 100644
index 966fafc..0000000
--- a/examples/msvc6/TestPlugIn/TestPlugInInterfaceImpl.h
+++ /dev/null
@@ -1,41 +0,0 @@
-// //////////////////////////////////////////////////////////////////////////
-// Header file TestPlugInInterfaceImpl.h for class TestPlugInInterfaceImpl
-// (c)Copyright 2000, Baptiste Lepilleur.
-// Created: 2001/06/27
-// //////////////////////////////////////////////////////////////////////////
-#ifndef TESTPLUGININTERFACEIMPL_H
-#define TESTPLUGININTERFACEIMPL_H
-
-#include <msvc6/testrunner/TestPlugInInterface.h>
-
-
-/*! \class TestPlugInInterfaceImpl
- * \brief This class implements the test plug-in interface.
- */
-class TestPlugInInterfaceImpl : public TestPlugInInterface
-{
-public:
- /*! Constructs a TestPlugInInterfaceImpl object.
- */
- TestPlugInInterfaceImpl();
-
- /*! Destructor.
- */
- virtual ~TestPlugInInterfaceImpl();
-
-
- CppUnit::Test *makeTest();
-
-private:
- /// Prevents the use of the copy constructor.
- TestPlugInInterfaceImpl( const TestPlugInInterfaceImpl &copy );
-
- /// Prevents the use of the copy operator.
- void operator =( const TestPlugInInterfaceImpl &copy );
-
-private:
-};
-
-
-
-#endif // TESTPLUGININTERFACEIMPL_H