Changeset 1be76d8 in flexpart.git for tests/NILU/run_test


Ignore:
Timestamp:
Oct 1, 2015, 3:29:19 PM (9 years ago)
Author:
Ignacio Pisso <Ignacio.Pisso@…>
Branches:
master, 10.4.1_pesei, GFS_025, bugfixes+enhancements, dev, release-10, release-10.4.1, scaling-bug
Children:
ac5b22b
Parents:
1333256
Message:

add 7 basic tests

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tests/NILU/run_test

    r1333256 r1be76d8  
    22
    33#input FP exec
    4 test_dir=$1
    5 FP_exec=$2
    6 base_dir=$3
    7 
    8 echo FP_exec=$FP_exec
     4test_dir=$1  # name of dir with pathname and options to be used
     5FP_exec=$2   # path to executable to be run
     6base_dir=$3  # base for the output
     7options_default=$4
     8 
     9#echo FP_exec=$FP_exec
    910echo $FLEXOUT_TMP
    1011
     
    1415
    1516current_dir=$(pwd)
    16 echo test_tmp=$test_tmp
     17#echo test_tmp=$test_tmp
    1718mkdir $test_tmp
    1819
    19 #copy default optios
    20 cp -r options_default $test_tmp/options
     20echo copy default options $options_default  to temp dir $test_tmp/options
     21cp -r $options_default $test_tmp/options
    2122#override default options
    22 cp -r ${test_dir}/options/* $test_tmp/options/
     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/
    2327# copy paths form repo source exec tmp dir
    2428cp ${test_dir}/pathnames $test_tmp
     
    2832
    2933cd $test_tmp
    30 echo $(pwd)
    31 echo $FP_exec
     34#echo $(pwd)
     35#echo $FP_exec
    3236#  '&>' o is bash for both out and err
    33 echo run $FP_exec   to  out.log #&
    34 $FP_exec   &> out.log #&
     37#echo run $FP_exec   to  out.log #&
     38#$FP_exec   &> out.log #&
     39$FP_exec > stdout.log 2> stderr.log #&
    3540
    3641
Note: See TracChangeset for help on using the changeset viewer.
hosted by ZAMG