$Id: TEST.xml,v 1.3 2007/01/24 16:43:00 badino Exp $
Table of Contents
Abstract
This document describes the procedures that should be followed to execute the unit tests for the gLite Data SRM Util CPP module
The gLite Data SRM Util CPP module provides a set of cases for testing the SRM 1.1 and 2.2 client versus stub implementations of the SRM interfaces
In order to execute these tests, the following preconditions should be met:
You need to have a valid proxy. This proxy is used by the SRM server stubs as well as the client.
In order to perform the tests, you should invoke:
ant test-all
Due to the fact that the build server cannot met the preconditions, the target "unittest" has not been used.
All of the tests use CppUnit, so the result will be displayied using the format common to all the xUnit frameworks.
Before executing each unit test, the corresponding ant target will install all the required files into the WORKSPACE/stage/test/glite-data-srm-util-cpp folder. Those files are:
Test application use ServiceConfiguration and the requested files are installed under the etc folder.
In order to execute the test, the test application would then set the environment variable GLITE_LOCATION to WORKSPACE/stage/test/glite-data-srm-util-cpp, so the program can correctly locate the configuration, as well as the log destination folder.
Once the setup is completed, the test application is executed with the command:
glite_data_agents_common_test_NAME -l WORKSPACE/stage/test/glite-data-srm-util-cpp -s where -l specify the location that will be used as GLITE_LOCATION and -s will enbable the CompilerOutputFormatter
Depending of the type of the unit test, additional parameters may be required. In order to get these details, you can run the test application with the -h option