source: flexpart.git/tests/NILU/run_test @ 1be76d8

10.4.1_peseiGFS_025bugfixes+enhancementsdevrelease-10release-10.4.1scaling-bug
Last change on this file since 1be76d8 was 1be76d8, checked in by Ignacio Pisso <Ignacio.Pisso@…>, 9 years ago

add 7 basic tests

  • Property mode set to 100755
File size: 1.1 KB
RevLine 
[1333256]1#!/bin/bash
2
3#input FP exec
[1be76d8]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
[1333256]10echo $FLEXOUT_TMP
11
12#suffix=$(date "+%y-%m-%d_%H%M%S")
13test_tmp=${FLEXOUT_TMP}${base_dir}${test_dir}
14#_${suffix}
15
16current_dir=$(pwd)
[1be76d8]17#echo test_tmp=$test_tmp
[1333256]18mkdir $test_tmp
19
[1be76d8]20echo copy default options $options_default  to temp dir $test_tmp/options
21cp -r $options_default $test_tmp/options
[1333256]22#override default options
[1be76d8]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/
[1333256]27# copy paths form repo source exec tmp dir
28cp ${test_dir}/pathnames $test_tmp
29mkdir ${test_tmp}/output
30
31#cp test_1/run $test_tmp
32
33cd $test_tmp
[1be76d8]34#echo $(pwd)
35#echo $FP_exec
[1333256]36#  '&>' o is bash for both out and err
[1be76d8]37#echo run $FP_exec   to  out.log #&
38#$FP_exec   &> out.log #&
39$FP_exec > stdout.log 2> stderr.log #&
[1333256]40
41
42
Note: See TracBrowser for help on using the repository browser.
hosted by ZAMG