source: flexpart.git/tests/create_test @ da6ad3f

flexpart-noresm
Last change on this file since da6ad3f was da6ad3f, checked in by Ignacio Pisso <Ignacio.Pisso@…>, 8 years ago

test existence of options dir in test 0 before copy to avoid error message

  • Property mode set to 100755
File size: 829 bytes
Line 
1#!/bin/bash
2
3#input FP exec
4test_dir=$1
5base_dir=$2
6FP_exec=$3
7options_default=../options
8
9#echo FP_exec=$FP_exec
10#echo $FLEXOUT_TMP
11
12#suffix=$(date "+%y-%m-%d_%H%M%S")
13#test_tmp=${FLEXOUT_TMP}${base_dir}${test_dir}
14test_tmp=${base_dir}${test_dir}
15#_${suffix}
16
17current_dir=$(pwd)
18echo test_tmp=$test_tmp
19mkdir $test_tmp
20
21#copy default optios
22cp -r $options_default $test_tmp/options
23#override default options
24if [ -d "$test_dir"  &&  "$(ls -A ${test_dir}/options)" ]; then
25  cp -r ${test_dir}/options/* $test_tmp/options/
26fi
27# copy paths form repo source exec tmp dir
28cp ${test_dir}/pathnames $test_tmp
29# make output dir locally
30mkdir ${test_tmp}/output
31ln -s $FP_exec ${test_tmp}/flexpartnoresm
32
33#cd $test_tmp
34#echo $(pwd)
35#echo $FP_exec
36#echo run $FP_exec '; stdout to  out.log'
37#$FP_exec   &> out.log # both out and err
38
39
40
Note: See TracBrowser for help on using the repository browser.
hosted by ZAMG