10.4.1_peseiGFS_025bugfixes+enhancementsdevrelease-10release-10.4.1scaling-bugunivie
Last change
on this file since 7216707 was
ca350ba,
checked in by Espen Sollum ATMOS <eso@…>, 9 years ago
|
Add tests from master branch (9.2) to dev (10.0)
|
-
Property mode set to
100755
|
File size:
1.6 KB
|
Rev | Line | |
---|
[ca350ba] | 1 | #!/bin/bash |
---|
| 2 | |
---|
| 3 | #input FP exec |
---|
| 4 | test_dir=$1 # name of dir with pathname and options to be used |
---|
| 5 | FP_exec=$2 # path to executable to be run |
---|
| 6 | base_dir=$3 # base for the output |
---|
| 7 | options_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 |
---|
| 19 | |
---|
| 20 | #echo FP_exec=$FP_exec |
---|
| 21 | echo env var FLEXOUT_TMP=$FLEXOUT_TP |
---|
| 22 | |
---|
| 23 | #suffix=$(date "+%y-%m-%d_%H%M%S") |
---|
| 24 | test_tmp=${FLEXOUT_TMP}${base_dir}${test_dir} |
---|
| 25 | #_${suffix} |
---|
| 26 | |
---|
| 27 | current_dir=$(pwd) |
---|
| 28 | #echo test_tmp=$test_tmp |
---|
| 29 | mkdir $test_tmp |
---|
| 30 | |
---|
| 31 | echo run test '>' copy default options to temp dir |
---|
| 32 | echo from $options_default to $test_tmp/options |
---|
| 33 | cp -r $options_default $test_tmp/options |
---|
| 34 | #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 | |
---|
| 45 | # copy paths form repo source exec tmp dir |
---|
| 46 | echo copy test pathnames to temp dir |
---|
| 47 | cp ${test_dir}/pathnames $test_tmp |
---|
| 48 | echo create output dir ${test_tmp}/output |
---|
| 49 | mkdir ${test_tmp}/output |
---|
| 50 | |
---|
| 51 | #cp test_1/run $test_tmp |
---|
| 52 | |
---|
| 53 | cd $test_tmp |
---|
| 54 | #echo $(pwd) |
---|
| 55 | #echo $FP_exec |
---|
| 56 | # '&>' o is bash for both out and err |
---|
| 57 | #echo run $FP_exec to out.log #& |
---|
| 58 | #$FP_exec &> out.log #& |
---|
| 59 | echo execute test |
---|
| 60 | $FP_exec > stdout.log 2> stderr.log #& |
---|
| 61 | echo flexpart terminated |
---|
| 62 | |
---|
| 63 | |
---|
| 64 | |
---|
Note: See
TracBrowser
for help on using the repository browser.