You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 10 Next »

1. 1.How to set environment to use FC2K Testing Framework

1.1. 1.1. Prepare Kepler 

install_kepler.sh [target dir] [local source Kepler] [description]
switch_to_kepler [kepler_name]

1.2. 1.2. Prepare FC2K

If you want to work with most recent codes of FC2K (not released yet), you should either get it from trunk or from development branch

svn checkout http://gforge6.eufus.eu/svn/fc2k
cd fc2k/trunk
make
source ./setup

If you want to work with development branch (it might have new features but, at the same time, it might be little bit behind current developments inside trunk) you can checkout a particular branch of FC2K.

svn checkout http://gforge6.eufus.eu/svn/fc2k
cd fc2k/branches/new_feature
make
source ./setup

1.3. 1.3. Using installed FC2K release

In case you want to test your actor, and you are not interested in most recent developments inside FC2K, you can always use already installed version of FC2K

> module avail fc2k
--------------- /gw/modules/itm --------------
fc2k/R3.0.11 fc2k/R3.0.14 fc2k/R3.0.5  fc2k/rc
> module switch fc2k/R3.0.14

In this case, you will run FC2K Testing Framework with a released version of FC2K.

2. 2. Checking out FC2K Testing Framework

FC2K Testing Framework is a set of components that allow to test whole chain of execution. From native code compilation to workflow execution.

$> svn co http://gforge6.eufus.eu/svn/fc2ktf
$> cd fc2ktf/trunk/TestingFramework
$> ./run_test.sh
--- Starting test for: eq2eq ---
Actor: eq2eq - OK
Skipping log removal
--- Finished test for: eq2eq ---
--- Starting test for: eq2eqmpi ---
Actor: eq2eqmpi - OK
Skipping log removal
--- Finished test for: eq2eqmpi ---
--- Starting test for: mpi ---
Actor: mpi - OK
Skipping log removal
--- Finished test for: mpi ---
--- Starting test for: nocpo ---
Actor: nocpo - OK
Skipping log removal
--- Finished test for: nocpo ---
--- Starting test for: nocpo_param ---
Actor: nocpo_param - OK
Skipping log removal
--- Finished test for: nocpo_param ---
--- Starting test for: stringinout ---
Actor: stringinout - OK
Skipping log removal
--- Finished test for: stringinout ---

then a test report will appear inside each directory:

./eq2eqmpi/test.log
./mpi/test.log
./eq2eq/test.log
./stringinout/test.log
./nocpo/test.log
./nocpo_param/test.log

3. 3. Integrating new actor with Testing Framework

It is possible to integrate new actor with FC2K Testing Framework, however, it requires following a convention. Basically, the most simple test can provide only one script

run_test.sh

This test is responsible for running and reporting status of test execution.

Default set of tests, provides testing of common cases based on FC2K and Kepler.

  • No labels