Changeset fa1548b in flexpart.git
- Timestamp:
- Mar 18, 2016, 10:01:05 AM (8 years ago)
- Branches:
- flexpart-noresm
- Children:
- 9a7b372
- Parents:
- da6ad3f
- Location:
- tests
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
tests/create_test
rda6ad3f rfa1548b 15 15 #_${suffix} 16 16 17 current_dir=$(pwd) 18 echo test_tmp=$test_tmp 19 mkdir $test_tmp 17 #current_dir=$(pwd) 18 if [[ -d "$test_tmp" ]] ; then 19 echo $test_tmp already exists 20 else 21 echo create test in $test_tmp 22 mkdir $test_tmp 23 fi 20 24 21 25 #copy default optios 26 echo copy default options from $options_default 22 27 cp -r $options_default $test_tmp/options 28 23 29 #override default options 24 if [ -d "$test_dir" && "$(ls -A ${test_dir}/options)"]; then30 if [[ -d "$test_dir/options" ]] && [[ "$(ls -A ${test_dir}/options)" ]]; then 25 31 cp -r ${test_dir}/options/* $test_tmp/options/ 32 echo copy specific options for this test from ${test_dir}/options 26 33 fi 34 27 35 # copy paths form repo source exec tmp dir 36 echo copy ${test_dir}/pathnames 28 37 cp ${test_dir}/pathnames $test_tmp 38 29 39 # make output dir locally 30 mkdir ${test_tmp}/output 40 if [[ -d "$test_tmp/output" ]]; then 41 echo $test_tmp/output already exists 42 else 43 mkdir ${test_tmp}/output 44 echo create ${test_tmp}/output 45 fi 46 47 if [[ -L "${test_tmp}/flexpartnoresm" ]]; then 48 rm ${test_tmp}/flexpartnoresm 49 echo remove existing link ${test_tmp}/flexpartnoresm 50 fi 31 51 ln -s $FP_exec ${test_tmp}/flexpartnoresm 52 echo link $FP_exec to ${test_tmp}/flexpartnoresm 32 53 54 echo $test_dir is ready to run 55 echo 33 56 #cd $test_tmp 34 57 #echo $(pwd) -
tests/create_tests
r988b0bd rfa1548b 14 14 fi 15 15 16 echo $tmp_dir16 echo create tests in $tmp_dir 17 17 #exit 18 18 ./create_test test_0 $tmp_dir ../../src/flexpartnoresm
Note: See TracChangeset
for help on using the changeset viewer.