Changes in / [62293e5:e973e0e] in flexpart.git


Ignore:
Location:
tests/NILU
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • tests/NILU/run_test

    ra5ef7ec r1be76d8  
    66base_dir=$3  # base for the output
    77options_default=$4
    8 
    9 echo run test '>' input
    10 echo $1
    11 echo $2
    12 echo $3
    13 echo $4
    14 
    15 #  echo name= $name
    16 #  echo working dir= $path_tests/test_$name
    17 #  echo executable= $FP_exec
    18 #  echo default options from $options_default
    198 
    209#echo FP_exec=$FP_exec
    21 echo env var FLEXOUT_TMP=$FLEXOUT_TP
     10echo $FLEXOUT_TMP
    2211
    2312#suffix=$(date "+%y-%m-%d_%H%M%S")
     
    2918mkdir $test_tmp
    3019
    31 echo run test '>' copy default options to temp dir
    32 echo from  $options_default  to $test_tmp/options
     20echo copy default options $options_default  to temp dir $test_tmp/options
    3321cp -r $options_default $test_tmp/options
    3422#override default options
    35 echo copy test options files to temp dir
    36 echo ${test_dir}/options/* $test_tmp/options/
    37 cp   ${test_dir}/options/* $test_tmp/options/
    38 echo copy test options/SPECIES to temp dir if needed
    39 
    40 if [ -d "${test_dir}/options/SPECIES" ]; then
    41 echo from ${test_dir}/options/SPECIES/* to $test_tmp/options/SPECIES/
    42 cp        ${test_dir}/options/SPECIES/*    $test_tmp/options/SPECIES/
    43 fi
    44 
     23echo copy this test option files to temp dir
     24cp  ${test_dir}/options/* $test_tmp/options/
     25echo copy SPECIES from ${test_dir}/options/SPECIES/* to $test_tmp/options/SPECIES/
     26cp  ${test_dir}/options/SPECIES/* $test_tmp/options/SPECIES/
    4527# copy paths form repo source exec tmp dir
    46 echo copy test pathnames to temp dir
    4728cp ${test_dir}/pathnames $test_tmp
    48 echo create output dir ${test_tmp}/output
    4929mkdir ${test_tmp}/output
    5030
     
    5737#echo run $FP_exec   to  out.log #&
    5838#$FP_exec   &> out.log #&
    59 echo execute test
    6039$FP_exec > stdout.log 2> stderr.log #&
    61 echo flexpart terminated
    6240
    6341
  • tests/NILU/run_tests

    ra5ef7ec r17bfbe1  
    3737#declare -a test_names=('1' 'HelloWorld' 'Fwd1' 'Fwd2' 'Bwd1' 'Volc' '2')
    3838
     39#blabla
    3940#Print the Whole Bash Array
    4041s_test_names=${test_names[@]}
     
    4243n_tests=${#test_names[@]}
    4344#echo n_tests=$n_tests
    44 echo run $s_test_names
    45 echo total $n_tests tests
     45echo run $n_tests  tests:  $s_test_names
     46
    4647#test
    4748#tests_dir='tests_15-08-19_113139/'
     
    5657  let j=i+1
    5758  name=${test_names[i]};
    58   echo run test no. $j 
    59 #  echo name= $name
    60 #  echo working dir= $path_tests/test_$name
    61 #  echo executable= $FP_exec
    62 #  echo default options from $options_default
     59  echo test no. $j name= $name
     60  echo in $path_tests/test_$name
    6361  ./run_test test_$name  $FP_exec $path_tests $options_default
    64   echo test $name terminated
     62  echo terminated
    6563  success="$(cat $path_tests/test_$name/$outlog  | grep CONGRATULATIONS  | wc -l)"
    6664  echo success=$success
Note: See TracChangeset for help on using the changeset viewer.
hosted by ZAMG