source: flexpart.git/tests/NILU/run_test @ ca350ba

10.4.1_peseiGFS_025bugfixes+enhancementsdevrelease-10release-10.4.1scaling-bugunivie
Last change on this file since ca350ba 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
Line 
1#!/bin/bash
2
3#input 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
9echo run test '>' input
10echo $1
11echo $2
12echo $3
13echo $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
21echo env var FLEXOUT_TMP=$FLEXOUT_TP
22
23#suffix=$(date "+%y-%m-%d_%H%M%S")
24test_tmp=${FLEXOUT_TMP}${base_dir}${test_dir}
25#_${suffix}
26
27current_dir=$(pwd)
28#echo test_tmp=$test_tmp
29mkdir $test_tmp
30
31echo run test '>' copy default options to temp dir
32echo from  $options_default  to $test_tmp/options
33cp -r $options_default $test_tmp/options
34#override default options
35echo copy test options files to temp dir
36echo ${test_dir}/options/* $test_tmp/options/
37cp   ${test_dir}/options/* $test_tmp/options/
38echo copy test options/SPECIES to temp dir if needed
39
40if [ -d "${test_dir}/options/SPECIES" ]; then
41echo from ${test_dir}/options/SPECIES/* to $test_tmp/options/SPECIES/
42cp        ${test_dir}/options/SPECIES/*    $test_tmp/options/SPECIES/
43fi
44
45# copy paths form repo source exec tmp dir
46echo copy test pathnames to temp dir
47cp ${test_dir}/pathnames $test_tmp
48echo create output dir ${test_tmp}/output
49mkdir ${test_tmp}/output
50
51#cp test_1/run $test_tmp
52
53cd $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 #&
59echo execute test
60$FP_exec > stdout.log 2> stderr.log #&
61echo flexpart terminated
62
63
64
Note: See TracBrowser for help on using the repository browser.
hosted by ZAMG