boost.test - post build event in Visual Studio 7.1 is not redirecting output?
Hi, I am a newbie at this, and I've been wrestling with boost auto test for a while now in Visual Studio 2003. Using boost_1_33_1. I am using the auto_unit_test_test_mult1.cpp, auto_unit_test_test_mult2.cpp for testing. They compile fine. I put in the post build event into my project: "$(TargetDir)\$(TargetName).exe" --result_code=no --report_level=no However, when I click 'Debug', VS still pops the output into a cmd window, and that disappears at the end of execution. The output window inside VS reads: Debug 'testhivm.exe': Loaded 'C:\workspace\hivm\trunk\src\test\Debug\testhivm.exe', Symbols loaded. 'testhivm.exe': Loaded 'C:\WINDOWS\system32\ntdll.dll', No symbols loaded. 'testhivm.exe': Loaded 'C:\WINDOWS\system32\kernel32.dll', No symbols loaded. The program '[5848] testhivm.exe: Native' has exited with code 0 (0x0). I've attached my BuildLog below. Thanks in advance for any help, Ed Build Log ------- Build started: Project: testhivm, Configuration: Debug|Win32 ------- Environment Space ALLUSERSPROFILE=C:\Documents and Settings\All Users ANT_HOME=C:\ant APPDATA=C:\Documents and Settings\Administrator\Application Data ArmServerInfo=00010556 CLASSPATH=C:\workspace\EclipseVscb\VCB\libraries\jars\core\vscb-framework.jar;C:\Program Files\Java\jre1.5.0_06\lib\ext\QTJava.zip CommonProgramFiles=C:\Program Files\Common Files COMPUTERNAME=SFJK39 ComSpec=C:\WINDOWS\system32\cmd.exe FP_NO_HOST_CHECK=NO HOMEDRIVE=C: HOMEPATH=\Documents and Settings\Administrator INCLUDE=C:\cppunit-1.11.4\include;C:\Boost\include\boost-1_33_1;C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include;C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\atlmfc\include;C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\include\prerelease;C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\include;C:\Program Files\Microsoft Visual Studio .NET 2003\SDK\v1.1\include JAVA_HOME=C:\Sun\AppServer\jdk LIB=C:\Boost\lib;C:\cppunit-1.11.4\lib;C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\lib;C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\atlmfc\lib;C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\lib\prerelease;C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\lib;C:\Program Files\Microsoft Visual Studio .NET 2003\SDK\v1.1\lib LIBPATH=C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322 LOGONSERVER=\\SFJK39 NB_HOME=C:\Documents and Settings\Administrator\.netbeans NUMBER_OF_PROCESSORS=1 OS=Windows_NT Path=C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\bin;C:\Program Files\Microsoft Visual Studio .NET 2003\Common7\Tools\bin\prerelease;C:\Program Files\Microsoft Visual Studio .NET 2003\Common7\Tools\bin;C:\Program Files\Microsoft Visual Studio .NET 2003\Common7\tools;C:\Program Files\Microsoft Visual Studio .NET 2003\Common7\ide;C:\Program Files\HTML Help Workshop\;C:\Program Files\Microsoft Visual Studio .NET 2003\SDK\v1.1\bin;C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322;C:\Perl\bin\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\PROGRA~1\ULTRAE~1;C:\Sun\AppServer\jdk\bin;C:\cygwin\bin;C:\mico\idl;C:\mico\libs;C:\Program Files\Common Files\GTK\2.0\bin PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.PL;.pyo;.pyc;.pyw;.py PROCESSOR_ARCHITECTURE=x86 PROCESSOR_IDENTIFIER=x86 Family 6 Model 9 Stepping 5, GenuineIntel PROCESSOR_LEVEL=6 PROCESSOR_REVISION=0905 ProgramFiles=C:\Program Files QTJAVA=C:\Program Files\Java\jre1.5.0_06\lib\ext\QTJava.zip SESSIONNAME=Console SystemDrive=C: SystemRoot=C:\WINDOWS TEMP=C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp TMP=C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp USERDOMAIN=SFJK39 USERNAME=Administrator USERPROFILE=C:\Documents and Settings\Administrator VS71COMNTOOLS=C:\Program Files\Microsoft Visual Studio .NET 2003\Common7\Tools\ windir=C:\WINDOWS _ACP_ATLPROV=C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\bin\ATLPROV.DLL _ACP_INCLUDE=C:\Boost\include\boost-1_33_1;C:\cppunit-1.11.4\include;C:\Boost\include\boost-1_33_1;C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include;C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\atlmfc\include;C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\include\prerelease;C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\include;C:\Program Files\Microsoft Visual Studio .NET 2003\SDK\v1.1\include _ACP_LIB=C:\Boost\lib;C:\cppunit-1.11.4\lib;C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\lib;C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\atlmfc\lib;C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\lib\prerelease;C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\lib;C:\Program Files\Microsoft Visual Studio .NET 2003\SDK\v1.1\lib;C:\Boost\include\boost-1_33_1;C:\cppunit-1.11.4\include;C:\Boost\include\boost-1_33_1;C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include;C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\atlmfc\include;C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\include\prerelease;C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\include;C:\Program Files\Microsoft Visual Studio .NET 2003\SDK\v1.1\include _ACP_PATH=C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\bin;C:\Program Files\Microsoft Visual Studio .NET 2003\Common7\Tools\bin\prerelease;C:\Program Files\Microsoft Visual Studio .NET 2003\Common7\Tools\bin;C:\Program Files\Microsoft Visual Studio .NET 2003\Common7\tools;C:\Program Files\Microsoft Visual Studio .NET 2003\Common7\ide;C:\Program Files\HTML Help Workshop\;C:\Program Files\Microsoft Visual Studio .NET 2003\SDK\v1.1\bin;C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322;C:\Perl\bin\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\PROGRA~1\ULTRAE~1;C:\Sun\AppServer\jdk\bin;C:\cygwin\bin;C:\mico\idl;C:\mico\libs;C:\Program Files\Common Files\GTK\2.0\bin Command Lines Creating temporary file "c:\workspace\hivm\trunk\src\test\Debug\RSP0002A8.rsp" with contents [ /Od /I "C:\Boost\include\boost-1_33_1" /D "TESTING" /D "_MBCS" /Gm /EHsc /RTC1 /MTd /GR /Fo"Debug/" /Fd"Debug/vc70.pdb" /W3 /c /Wp64 /ZI /Gd .\auto_unit_test_test_mult1.cpp .\auto_unit_test_test_mult2.cpp ] Creating command line "cl.exe @c:\workspace\hivm\trunk\src\test\Debug\RSP0002A8.rsp /nologo" Creating temporary file "c:\workspace\hivm\trunk\src\test\Debug\RSP0002A9.rsp" with contents [ /OUT:"Debug/testhivm.exe" /INCREMENTAL /NOLOGO /LIBPATH:"C:\Boost\lib" /TLBID:1 /DEBUG /PDB:"Debug/testhivm.pdb" /SUBSYSTEM:CONSOLE /MACHINE:X86 libboost_unit_test_framework-vc71-mt-sgd.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 "\Boost\lib\libboost_unit_test_framework-vc71-mt-sgd.lib" .\Debug\auto_unit_test_test_mult2.obj .\Debug\auto_unit_test_test_mult1.obj ] Creating command line "link.exe @c:\workspace\hivm\trunk\src\test\Debug\RSP0002A9.rsp" Creating temporary file "c:\workspace\hivm\trunk\src\test\Debug\BAT0002AA.bat" with contents [ @echo off "c:\workspace\hivm\trunk\src\test\Debug\\testhivm.exe" --result_code=no --report_level=no if errorlevel 1 goto VCReportError goto VCEnd :VCReportError echo Project : error PRJ0019: A tool returned an error code from "Auto Run Test" exit 1 :VCEnd ] Creating command line "c:\workspace\hivm\trunk\src\test\Debug\BAT0002AA.bat" Output Window Compiling... auto_unit_test_test_mult1.cpp auto_unit_test_test_mult2.cpp Generating Code... Linking... Auto Run Test Running 2 test cases... Results Build log was saved at "file://c:\workspace\hivm\trunk\src\test\Debug\BuildLog.htm" testhivm - 0 error(s), 0 warning(s)
Ed Johnson wrote:
Hi,
I am a newbie at this, and I've been wrestling with boost auto test for a while now in Visual Studio 2003. Using boost_1_33_1.
I am using the auto_unit_test_test_mult1.cpp, auto_unit_test_test_mult2.cpp for testing. They compile fine.
I put in the post build event into my project: "$(TargetDir)\$(TargetName).exe" --result_code=no --report_level=no
However, when I click 'Debug', VS still pops the output into a cmd window, and that disappears at the end of execution.
The output window inside VS reads:
Debug
'testhivm.exe': Loaded 'C:\workspace\hivm\trunk\src\test\Debug\testhivm.exe', Symbols loaded. 'testhivm.exe': Loaded 'C:\WINDOWS\system32\ntdll.dll', No symbols loaded. 'testhivm.exe': Loaded 'C:\WINDOWS\system32\kernel32.dll', No symbols loaded. The program '[5848] testhivm.exe: Native' has exited with code 0 (0x0).
I've attached my BuildLog below.
Thanks in advance for any help,
Ed
Build Log
------- Build started: Project: testhivm, Configuration: Debug|Win32 -------
Environment Space
ALLUSERSPROFILE=C:\Documents and Settings\All Users ANT_HOME=C:\ant APPDATA=C:\Documents and Settings\Administrator\Application Data ArmServerInfo=00010556
CLASSPATH=C:\workspace\EclipseVscb\VCB\libraries\jars\core\vscb-framework.jar;C:\Program Files\Java\jre1.5.0_06\lib\ext\QTJava.zip CommonProgramFiles=C:\Program Files\Common Files COMPUTERNAME=SFJK39 ComSpec=C:\WINDOWS\system32\cmd.exe FP_NO_HOST_CHECK=NO HOMEDRIVE=C: HOMEPATH=\Documents and Settings\Administrator
INCLUDE=C:\cppunit-1.11.4\include;C:\Boost\include\boost-1_33_1;C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include;C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\atlmfc\include;C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\include\prerelease;C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\include;C:\Program Files\Microsoft Visual Studio .NET 2003\SDK\v1.1\include JAVA_HOME=C:\Sun\AppServer\jdk LIB=C:\Boost\lib;C:\cppunit-1.11.4\lib;C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\lib;C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\atlmfc\lib;C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\lib\prerelease;C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\lib;C:\Program Files\Microsoft Visual Studio .NET 2003\SDK\v1.1\lib LIBPATH=C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322 LOGONSERVER=\\SFJK39 NB_HOME=C:\Documents and Settings\Administrator\.netbeans NUMBER_OF_PROCESSORS=1 OS=Windows_NT Path=C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\bin;C:\Program Files\Microsoft Visual Studio .NET 2003\Common7\Tools\bin\prerelease;C:\Program Files\Microsoft Visual Studio .NET 2003\Common7\Tools\bin;C:\Program Files\Microsoft Visual Studio .NET 2003\Common7\tools;C:\Program Files\Microsoft Visual Studio .NET 2003\Common7\ide;C:\Program Files\HTML Help Workshop\;C:\Program Files\Microsoft Visual Studio .NET 2003\SDK\v1.1\bin;C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322;C:\Perl\bin\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\PROGRA~1\ULTRAE~1;C:\Sun\AppServer\jdk\bin;C:\cygwin\bin;C:\mico\idl;C:\mico\libs;C:\Program Files\Common Files\GTK\2.0\bin
PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.PL;.pyo;.pyc;.pyw;.py PROCESSOR_ARCHITECTURE=x86 PROCESSOR_IDENTIFIER=x86 Family 6 Model 9 Stepping 5, GenuineIntel PROCESSOR_LEVEL=6 PROCESSOR_REVISION=0905 ProgramFiles=C:\Program Files QTJAVA=C:\Program Files\Java\jre1.5.0_06\lib\ext\QTJava.zip SESSIONNAME=Console SystemDrive=C: SystemRoot=C:\WINDOWS TEMP=C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp TMP=C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp USERDOMAIN=SFJK39 USERNAME=Administrator USERPROFILE=C:\Documents and Settings\Administrator VS71COMNTOOLS=C:\Program Files\Microsoft Visual Studio .NET 2003\Common7\Tools\ windir=C:\WINDOWS _ACP_ATLPROV=C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\bin\ATLPROV.DLL
_ACP_INCLUDE=C:\Boost\include\boost-1_33_1;C:\cppunit-1.11.4\include;C:\Boost\include\boost-1_33_1;C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include;C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\atlmfc\include;C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\include\prerelease;C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\include;C:\Program Files\Microsoft Visual Studio .NET 2003\SDK\v1.1\include _ACP_LIB=C:\Boost\lib;C:\cppunit-1.11.4\lib;C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\lib;C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\atlmfc\lib;C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\lib\prerelease;C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\lib;C:\Program Files\Microsoft Visual Studio .NET 2003\SDK\v1.1\lib;C:\Boost\include\boost-1_33_1;C:\cppunit-1.11.4\include;C:\Boost\include\boost-1_33_1;C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include;C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\atlmfc\include;C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\include\prerelease;C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\include;C:\Program Files\Microsoft Visual Studio .NET 2003\SDK\v1.1\include _ACP_PATH=C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\bin;C:\Program Files\Microsoft Visual Studio .NET 2003\Common7\Tools\bin\prerelease;C:\Program Files\Microsoft Visual Studio .NET 2003\Common7\Tools\bin;C:\Program Files\Microsoft Visual Studio .NET 2003\Common7\tools;C:\Program Files\Microsoft Visual Studio .NET 2003\Common7\ide;C:\Program Files\HTML Help Workshop\;C:\Program Files\Microsoft Visual Studio .NET 2003\SDK\v1.1\bin;C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322;C:\Perl\bin\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\PROGRA~1\ULTRAE~1;C:\Sun\AppServer\jdk\bin;C:\cygwin\bin;C:\mico\idl;C:\mico\libs;C:\Program Files\Common Files\GTK\2.0\bin
Command Lines
Creating temporary file "c:\workspace\hivm\trunk\src\test\Debug\RSP0002A8.rsp" with contents [ /Od /I "C:\Boost\include\boost-1_33_1" /D "TESTING" /D "_MBCS" /Gm /EHsc /RTC1 /MTd /GR /Fo"Debug/" /Fd"Debug/vc70.pdb" /W3 /c /Wp64 /ZI /Gd .\auto_unit_test_test_mult1.cpp .\auto_unit_test_test_mult2.cpp ] Creating command line "cl.exe @c:\workspace\hivm\trunk\src\test\Debug\RSP0002A8.rsp /nologo" Creating temporary file "c:\workspace\hivm\trunk\src\test\Debug\RSP0002A9.rsp" with contents [ /OUT:"Debug/testhivm.exe" /INCREMENTAL /NOLOGO /LIBPATH:"C:\Boost\lib" /TLBID:1 /DEBUG /PDB:"Debug/testhivm.pdb" /SUBSYSTEM:CONSOLE /MACHINE:X86 libboost_unit_test_framework-vc71-mt-sgd.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 "\Boost\lib\libboost_unit_test_framework-vc71-mt-sgd.lib" .\Debug\auto_unit_test_test_mult2.obj .\Debug\auto_unit_test_test_mult1.obj ] Creating command line "link.exe @c:\workspace\hivm\trunk\src\test\Debug\RSP0002A9.rsp" Creating temporary file "c:\workspace\hivm\trunk\src\test\Debug\BAT0002AA.bat" with contents [ @echo off "c:\workspace\hivm\trunk\src\test\Debug\\testhivm.exe" --result_code=no --report_level=no if errorlevel 1 goto VCReportError goto VCEnd :VCReportError echo Project : error PRJ0019: A tool returned an error code from "Auto Run Test" exit 1 :VCEnd ] Creating command line "c:\workspace\hivm\trunk\src\test\Debug\BAT0002AA.bat"
Output Window
Compiling... auto_unit_test_test_mult1.cpp auto_unit_test_test_mult2.cpp Generating Code... Linking... Auto Run Test Running 2 test cases...
Results
Build log was saved at "file://c:\workspace\hivm\trunk\src\test\Debug\BuildLog.htm" testhivm - 0 error(s), 0 warning(s)
<embarrassed> It's times like these that I wish I could delete my previous post.</embarrassed>
participants (1)
-
Ed Johnson