I have installed the Hudson CI system, and at the moment it is used to create a project and perform some unit tests. My next step is to integrate Purify's memory leak detector into the build cycle. Now I want to start unit tests also inside cleaning, and for this I created a new batch task, which is launched with the following command:
purify.exe / SaveTextData MyExecutable.exe --test TestLibrary.dll --output xml
As I read in the Purify documentation, the / SaveTextData option is used to start cleaning not in GUI mode. If I run this command on my local workstation on the command line, it works fine. But in case it is launched by Hudson, nothing happens. Sorry, no cleanup logs ...
Has anyone tried to start cleaning either Hudson or any other CI system?
Thanks in advance.
Regards
Martin
EDIT: I forgot to tell you that I have Hudson working as a master and slave on different computers. On the main, I configured a task that should run unit tests within the cleanup on the slave. I am running a slave through JNLP.
EDIT 03/18/2010:
Okay, so finally I'm a little closer the source of the problem.
I found that running my unit tests while locally clearing the EngineCmdLine.log log file contains three commands.
I start cleaning with the following command:
purify.exe / SaveTextData TestRunnerConsoleWD.exe --test TestDemoWD.dll
The output of EngineCmdLine.log at startup to clear manually:
File: D: \ workspace \ hudson \ workspace \ Purify_TestFW_CommonsCoreTest_Cpp_msvs9 \ TestRunnerConsoleWD.exe
: C:\WINDOWS\system32\ws2_32.dll
: D:\workspace\hudson\workspace\Purify_TestFW_CommonsCoreTest_Cpp_msvs9\TestDemoWD.dll
Hudson:
: D:\workspace\hudson\workspace\Purify_TestFW_CommonsCoreTest_Cpp_msvs9\TestRunnerConsoleWD.exe : C:\WINDOWS\system32\ws2_32.dll
: D:\workspace\hudson\workspace\Purify_TestFW_CommonsCoreTest_Cpp_msvs9\TestDemoWD.dll
: D:\workspace\hudson\workspace\Purify_TestFW_CommonsCoreTest_Cpp_msvs9\TestDemoWD.dll
:
: BtcTestDemoWD.dll 313856
: a > D:\workspace\hudson\workspace\Purify_TestFW_CommonsCoreTest_Cpp_msvs9\TESTFWWD.DLL:
: c:\Program\IBM\RationalPurifyPlus\PurifyPlus\cache\BTCTESTFWWD $Purify_D_workspace_hudson_workspace_Purify__TestFW__CommonsCoreTest__Cpp__msvs9.DLL.
?
TESTFWWD.DLL 505344
D:\workspace\hudson\workspace\Purify_TestFW_CommonsCoreTest_Cpp_msvs9\TestDemoWD.dll(0x1)
, TestDemoWD.dll?