Initial commit
This commit is contained in:
93
test/cxxtest/sample/msvc/CxxTest_1_Run.dsp
Normal file
93
test/cxxtest/sample/msvc/CxxTest_1_Run.dsp
Normal file
@@ -0,0 +1,93 @@
|
||||
# Microsoft Developer Studio Project File - Name="CxxTest_1_Run" - Package Owner=<4>
|
||||
# Microsoft Developer Studio Generated Build File, Format Version 6.00
|
||||
# ** DO NOT EDIT **
|
||||
|
||||
# TARGTYPE "Win32 (x86) External Target" 0x0106
|
||||
|
||||
CFG=CxxTest_1_Run - 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 "CxxTest_1_Run.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 "CxxTest_1_Run.mak" CFG="CxxTest_1_Run - Win32 Debug"
|
||||
!MESSAGE
|
||||
!MESSAGE Possible choices for configuration are:
|
||||
!MESSAGE
|
||||
!MESSAGE "CxxTest_1_Run - Win32 Release" (based on "Win32 (x86) External Target")
|
||||
!MESSAGE "CxxTest_1_Run - Win32 Debug" (based on "Win32 (x86) External Target")
|
||||
!MESSAGE
|
||||
|
||||
# Begin Project
|
||||
# PROP AllowPerConfigDependencies 0
|
||||
# PROP Scc_ProjName ""
|
||||
# PROP Scc_LocalPath ""
|
||||
|
||||
!IF "$(CFG)" == "CxxTest_1_Run - 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 Cmd_Line "NMAKE /f CxxTest_1_Run.mak"
|
||||
# PROP BASE Rebuild_Opt "/a"
|
||||
# PROP BASE Target_File "CxxTest_1_Run.exe"
|
||||
# PROP BASE Bsc_Name "CxxTest_1_Run.bsc"
|
||||
# PROP BASE Target_Dir ""
|
||||
# PROP Use_MFC 0
|
||||
# PROP Use_Debug_Libraries 0
|
||||
# PROP Output_Dir "Release"
|
||||
# PROP Intermediate_Dir "Release"
|
||||
# PROP Cmd_Line "nmake DIR=Release run"
|
||||
# PROP Rebuild_Opt "/a"
|
||||
# PROP Target_File "Release\run.log"
|
||||
# PROP Bsc_Name ""
|
||||
# PROP Target_Dir ""
|
||||
|
||||
!ELSEIF "$(CFG)" == "CxxTest_1_Run - 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 Cmd_Line "NMAKE /f CxxTest_1_Run.mak"
|
||||
# PROP BASE Rebuild_Opt "/a"
|
||||
# PROP BASE Target_File "CxxTest_1_Run.exe"
|
||||
# PROP BASE Bsc_Name "CxxTest_1_Run.bsc"
|
||||
# PROP BASE Target_Dir ""
|
||||
# PROP Use_MFC 0
|
||||
# PROP Use_Debug_Libraries 1
|
||||
# PROP Output_Dir "Debug"
|
||||
# PROP Intermediate_Dir "Debug"
|
||||
# PROP Cmd_Line "nmake DIR=Debug run"
|
||||
# PROP Rebuild_Opt "/a"
|
||||
# PROP Target_File "Debug\run.log"
|
||||
# PROP Bsc_Name ""
|
||||
# PROP Target_Dir ""
|
||||
|
||||
!ENDIF
|
||||
|
||||
# Begin Target
|
||||
|
||||
# Name "CxxTest_1_Run - Win32 Release"
|
||||
# Name "CxxTest_1_Run - Win32 Debug"
|
||||
|
||||
!IF "$(CFG)" == "CxxTest_1_Run - Win32 Release"
|
||||
|
||||
!ELSEIF "$(CFG)" == "CxxTest_1_Run - Win32 Debug"
|
||||
|
||||
!ENDIF
|
||||
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\Makefile
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\ReadMe.txt
|
||||
# End Source File
|
||||
# End Target
|
||||
# End Project
|
||||
94
test/cxxtest/sample/msvc/CxxTest_2_Build.dsp
Normal file
94
test/cxxtest/sample/msvc/CxxTest_2_Build.dsp
Normal file
@@ -0,0 +1,94 @@
|
||||
# Microsoft Developer Studio Project File - Name="CxxTest_2_Build" - Package Owner=<4>
|
||||
# Microsoft Developer Studio Generated Build File, Format Version 6.00
|
||||
# ** DO NOT EDIT **
|
||||
|
||||
# TARGTYPE "Win32 (x86) Console Application" 0x0103
|
||||
|
||||
CFG=CxxTest_2_Build - 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 "CxxTest_2_Build.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 "CxxTest_2_Build.mak" CFG="CxxTest_2_Build - Win32 Debug"
|
||||
!MESSAGE
|
||||
!MESSAGE Possible choices for configuration are:
|
||||
!MESSAGE
|
||||
!MESSAGE "CxxTest_2_Build - Win32 Release" (based on "Win32 (x86) Console Application")
|
||||
!MESSAGE "CxxTest_2_Build - Win32 Debug" (based on "Win32 (x86) Console Application")
|
||||
!MESSAGE
|
||||
|
||||
# Begin Project
|
||||
# PROP AllowPerConfigDependencies 0
|
||||
# PROP Scc_ProjName ""
|
||||
# PROP Scc_LocalPath ""
|
||||
CPP=cl.exe
|
||||
RSC=rc.exe
|
||||
|
||||
!IF "$(CFG)" == "CxxTest_2_Build - 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 /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /c
|
||||
# ADD CPP /nologo /W3 /GX /O2 /I "..\.." /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /c
|
||||
# ADD BASE RSC /l 0x40d /d "NDEBUG"
|
||||
# ADD RSC /l 0x40d /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 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 /subsystem:console /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 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 /subsystem:console /machine:I386 /out:"Release/runner.exe"
|
||||
|
||||
!ELSEIF "$(CFG)" == "CxxTest_2_Build - 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 /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /GZ /c
|
||||
# ADD CPP /nologo /W3 /Gm /GX /ZI /Od /I "..\.." /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /GZ /c
|
||||
# ADD BASE RSC /l 0x40d /d "_DEBUG"
|
||||
# ADD RSC /l 0x40d /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 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 /subsystem:console /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 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 /subsystem:console /debug /machine:I386 /out:"Debug/runner.exe" /pdbtype:sept
|
||||
|
||||
!ENDIF
|
||||
|
||||
# Begin Target
|
||||
|
||||
# Name "CxxTest_2_Build - Win32 Release"
|
||||
# Name "CxxTest_2_Build - Win32 Debug"
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\ReadMe.txt
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\runner.cpp
|
||||
# End Source File
|
||||
# End Target
|
||||
# End Project
|
||||
93
test/cxxtest/sample/msvc/CxxTest_3_Generate.dsp
Normal file
93
test/cxxtest/sample/msvc/CxxTest_3_Generate.dsp
Normal file
@@ -0,0 +1,93 @@
|
||||
# Microsoft Developer Studio Project File - Name="CxxTest_3_Generate" - Package Owner=<4>
|
||||
# Microsoft Developer Studio Generated Build File, Format Version 6.00
|
||||
# ** DO NOT EDIT **
|
||||
|
||||
# TARGTYPE "Win32 (x86) External Target" 0x0106
|
||||
|
||||
CFG=CxxTest_3_Generate - 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 "CxxTest_3_Generate.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 "CxxTest_3_Generate.mak" CFG="CxxTest_3_Generate - Win32 Debug"
|
||||
!MESSAGE
|
||||
!MESSAGE Possible choices for configuration are:
|
||||
!MESSAGE
|
||||
!MESSAGE "CxxTest_3_Generate - Win32 Release" (based on "Win32 (x86) External Target")
|
||||
!MESSAGE "CxxTest_3_Generate - Win32 Debug" (based on "Win32 (x86) External Target")
|
||||
!MESSAGE
|
||||
|
||||
# Begin Project
|
||||
# PROP AllowPerConfigDependencies 0
|
||||
# PROP Scc_ProjName ""
|
||||
# PROP Scc_LocalPath ""
|
||||
|
||||
!IF "$(CFG)" == "CxxTest_3_Generate - 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 Cmd_Line "NMAKE /f CxxTest_3_Generate.mak"
|
||||
# PROP BASE Rebuild_Opt "/a"
|
||||
# PROP BASE Target_File "CxxTest_3_Generate.exe"
|
||||
# PROP BASE Bsc_Name "CxxTest_3_Generate.bsc"
|
||||
# PROP BASE Target_Dir ""
|
||||
# PROP Use_MFC 0
|
||||
# PROP Use_Debug_Libraries 0
|
||||
# PROP Output_Dir "Release"
|
||||
# PROP Intermediate_Dir "Release"
|
||||
# PROP Cmd_Line "nmake runner.cpp"
|
||||
# PROP Rebuild_Opt "/a"
|
||||
# PROP Target_File "runner.cpp"
|
||||
# PROP Bsc_Name ""
|
||||
# PROP Target_Dir ""
|
||||
|
||||
!ELSEIF "$(CFG)" == "CxxTest_3_Generate - 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 Cmd_Line "NMAKE /f CxxTest_3_Generate.mak"
|
||||
# PROP BASE Rebuild_Opt "/a"
|
||||
# PROP BASE Target_File "CxxTest_3_Generate.exe"
|
||||
# PROP BASE Bsc_Name "CxxTest_3_Generate.bsc"
|
||||
# PROP BASE Target_Dir ""
|
||||
# PROP Use_MFC 0
|
||||
# PROP Use_Debug_Libraries 1
|
||||
# PROP Output_Dir "Debug"
|
||||
# PROP Intermediate_Dir "Debug"
|
||||
# PROP Cmd_Line "nmake runner.cpp"
|
||||
# PROP Rebuild_Opt "/a"
|
||||
# PROP Target_File "runner.cpp"
|
||||
# PROP Bsc_Name ""
|
||||
# PROP Target_Dir ""
|
||||
|
||||
!ENDIF
|
||||
|
||||
# Begin Target
|
||||
|
||||
# Name "CxxTest_3_Generate - Win32 Release"
|
||||
# Name "CxxTest_3_Generate - Win32 Debug"
|
||||
|
||||
!IF "$(CFG)" == "CxxTest_3_Generate - Win32 Release"
|
||||
|
||||
!ELSEIF "$(CFG)" == "CxxTest_3_Generate - Win32 Debug"
|
||||
|
||||
!ENDIF
|
||||
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\Makefile
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\ReadMe.txt
|
||||
# End Source File
|
||||
# End Target
|
||||
# End Project
|
||||
58
test/cxxtest/sample/msvc/CxxTest_Workspace.dsw
Normal file
58
test/cxxtest/sample/msvc/CxxTest_Workspace.dsw
Normal file
@@ -0,0 +1,58 @@
|
||||
Microsoft Developer Studio Workspace File, Format Version 6.00
|
||||
# WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE!
|
||||
|
||||
###############################################################################
|
||||
|
||||
Project: "CxxTest_1_Run"=.\CxxTest_1_Run.dsp - Package Owner=<4>
|
||||
|
||||
Package=<5>
|
||||
{{{
|
||||
}}}
|
||||
|
||||
Package=<4>
|
||||
{{{
|
||||
Begin Project Dependency
|
||||
Project_Dep_Name CxxTest_2_Build
|
||||
End Project Dependency
|
||||
}}}
|
||||
|
||||
###############################################################################
|
||||
|
||||
Project: "CxxTest_2_Build"=.\CxxTest_2_Build.dsp - Package Owner=<4>
|
||||
|
||||
Package=<5>
|
||||
{{{
|
||||
}}}
|
||||
|
||||
Package=<4>
|
||||
{{{
|
||||
Begin Project Dependency
|
||||
Project_Dep_Name CxxTest_3_Generate
|
||||
End Project Dependency
|
||||
}}}
|
||||
|
||||
###############################################################################
|
||||
|
||||
Project: "CxxTest_3_Generate"=.\CxxTest_3_Generate.dsp - Package Owner=<4>
|
||||
|
||||
Package=<5>
|
||||
{{{
|
||||
}}}
|
||||
|
||||
Package=<4>
|
||||
{{{
|
||||
}}}
|
||||
|
||||
###############################################################################
|
||||
|
||||
Global:
|
||||
|
||||
Package=<5>
|
||||
{{{
|
||||
}}}
|
||||
|
||||
Package=<3>
|
||||
{{{
|
||||
}}}
|
||||
|
||||
###############################################################################
|
||||
36
test/cxxtest/sample/msvc/Makefile
Normal file
36
test/cxxtest/sample/msvc/Makefile
Normal file
@@ -0,0 +1,36 @@
|
||||
# Where to look for the tests
|
||||
TESTS = ..\gui\*.h ..\*.h
|
||||
|
||||
# Where the CxxTest distribution is unpacked
|
||||
CXXTESTDIR = ..\..
|
||||
|
||||
# Check CXXTESTDIR
|
||||
!if !exist($(CXXTESTDIR)\cxxtestgen.pl)
|
||||
!error Please fix CXXTESTDIR
|
||||
!endif
|
||||
|
||||
# cxxtestgen needs Perl or Python
|
||||
!if defined(PERL)
|
||||
CXXTESTGEN = $(PERL) $(CXXTESTDIR)/cxxtestgen.pl
|
||||
!elseif defined(PYTHON)
|
||||
CXXTESTGEN = $(PYTHON) $(CXXTESTDIR)/cxxtestgen.py
|
||||
!else
|
||||
!error You must define PERL or PYTHON
|
||||
!endif
|
||||
|
||||
# The arguments to pass to cxxtestgen
|
||||
# - ParenPrinter is the way MSVC likes its compilation errors
|
||||
# - --have-eh/--abort-on-fail are nice when you have them
|
||||
CXXTESTGEN_FLAGS = \
|
||||
--gui=Win32Gui \
|
||||
--runner=ParenPrinter \
|
||||
--have-eh \
|
||||
--abort-on-fail
|
||||
|
||||
# How to generate the test runner, `runner.cpp'
|
||||
runner.cpp: $(TESTS)
|
||||
$(CXXTESTGEN) $(CXXTESTGEN_FLAGS) -o $@ $(TESTS)
|
||||
|
||||
# How to run the tests, which should be in DIR\runner.exe
|
||||
run: $(DIR)\runner.exe
|
||||
$(DIR)\runner.exe
|
||||
30
test/cxxtest/sample/msvc/ReadMe.txt
Normal file
30
test/cxxtest/sample/msvc/ReadMe.txt
Normal file
@@ -0,0 +1,30 @@
|
||||
Sample files for Visual Studio
|
||||
==============================
|
||||
|
||||
There are three projects in this workspace:
|
||||
|
||||
- CxxTest_3_Generate runs cxxtestgen to create runner.cpp
|
||||
- CxxTest_2_Build compiles the generated file
|
||||
- CxxTest_1_Run runs the compiled binary
|
||||
|
||||
Whenever you build this workspace, the tests are run, and any failed assertions
|
||||
are displayed as compilation errors (you can browse them using F4).
|
||||
|
||||
Note that to run this sample, you need first to create an environment
|
||||
variable PERL or PYTHON, e.g. PERL=c:\perl\bin\perl.exe
|
||||
|
||||
|
||||
To use these .dsp and .dsw files in your own project, run FixFiles.bat
|
||||
to adjust them to where you've placed CxxTest and your own tests.
|
||||
|
||||
If you want to use just the .dsp files in your own workspace, don't
|
||||
forget to:
|
||||
|
||||
- Set up the dependencies (CxxTest_3_Generate depends on
|
||||
CxxTest_2_Build which depends on CxxTest_1_Run)
|
||||
|
||||
- Add your own include paths, libraries etc. to the CxxTest_2_Build project
|
||||
|
||||
|
||||
NOTE: I haven't used "Post-Build Step" to run the tests because I
|
||||
wanted the tests to be executed even if nothing has changed.
|
||||
Reference in New Issue
Block a user