Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

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

1.1.Prepare

...

basic IMAS environment

Code Block
linenumberstrue
module$> loadsetenv imasenv
install_kepler.sh [options] [kepler_name]
switch_to_kepler [kepler_name]

1.2. Using installed IMAS 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

Code Block
languagebash
> module av imas-fc2k

------------------------------------------------------------------------------------ /gw/swimas/etc/modulefiles ------------------------------------------------------------------------------------
imas-fc2k/4.0.0       imas-fc2k/4.1.0.fix   imas-fc2k/4.2.3B      imas-fc2k/4.2.6       imas-fc2k/4.5.0       imas-fc2k/alpha
imas-fc2k/4.0.2       imas-fc2k/4.2.2       imas-fc2k/4.2.3B_mfix imas-fc2k/4.3.0       imas-fc2k/4.6.1       imas-fc2k/beta
imas-fc2k/4.1.0       imas-fc2k/4.2.3       imas-fc2k/4.2.5       imas-fc2k/4.4.0       imas-fc2k/4.6.4

> module switch imas-fc2k/{version} 
OR
> module switch imas-fc2k

...

KEPLER_DIR <keplers dir e.g. $ITMWORK/imas-keplers>
$> module load imasenv
IMAS environment loaded.

1.2. Install or load Kepler

Code Block
linenumberstrue
$> kepler_install <version>
OR
$> kepler_load <version>

1.3. Prepare environment for IMAS FC2K Testing Framework

Code Block
linenumberstrue
$> module load imas-pyal
$> imasdb test


2. Checking out IMAS FC2K Testing Framework

...

Code Block
languagebash
status_code   - this function takes two arguments: name of the test and boolean argument
                - name is used to show the name of the test next to execution status
                - boolean flag is used to determine whether logs should be removed or not
                - this function uses lats exit code ($?) to determine whether test passed or failed
 
init_test     - this function takes no arguments. It simply runs: 
                  make clean
                  make
                  recreates directory "redirect"
 
start_kepler  - takes one parameter - workflow name
                  starts workflow


Info
title Acknowledgement

This work has been carried out within the framework of the EUROfusion Consortium and has received funding from the Euratom research and training programme 2014-2018 under grant agreement No 633053.The scientific work is published for the realization of the international project co-financed by Polish Ministry of Science and Higher Education in 2019 and 2020 from financial resources of the program entitled "PMW"; Agreement No. 5040/H2020/Euratom/2019/2 and 5142/H2020-Euratom/2020/2”.