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
|
Line | |
---|
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 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} |
---|
14 | #_${suffix} |
---|
15 | |
---|
16 | current_dir=$(pwd) |
---|
17 | #echo test_tmp=$test_tmp |
---|
18 | mkdir $test_tmp |
---|
19 | |
---|
20 | echo copy default options $options_default to temp dir $test_tmp/options |
---|
21 | cp -r $options_default $test_tmp/options |
---|
22 | #override default options |
---|
23 | echo copy this test option files to temp dir |
---|
24 | cp ${test_dir}/options/* $test_tmp/options/ |
---|
25 | echo copy SPECIES from ${test_dir}/options/SPECIES/* to $test_tmp/options/SPECIES/ |
---|
26 | cp ${test_dir}/options/SPECIES/* $test_tmp/options/SPECIES/ |
---|
27 | # copy paths form repo source exec tmp dir |
---|
28 | cp ${test_dir}/pathnames $test_tmp |
---|
29 | mkdir ${test_tmp}/output |
---|
30 | |
---|
31 | #cp test_1/run $test_tmp |
---|
32 | |
---|
33 | cd $test_tmp |
---|
34 | #echo $(pwd) |
---|
35 | #echo $FP_exec |
---|
36 | # '&>' o is bash for both out and err |
---|
37 | #echo run $FP_exec to out.log #& |
---|
38 | #$FP_exec &> out.log #& |
---|
39 | $FP_exec > stdout.log 2> stderr.log #& |
---|
40 | |
---|
41 | |
---|
42 | |
---|
Note: See
TracBrowser
for help on using the repository browser.