Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
flexpart
flexpart-noresm
Commits
0a27fd20
Commit
0a27fd20
authored
Oct 01, 2015
by
Ignacio Pisso
Browse files
1st commit of the test suite
parent
6455f6d1
Changes
3
Hide whitespace changes
Inline
Side-by-side
tests/run_test
0 → 100755
View file @
0a27fd20
#!/bin/bash
#input FP exec
test_dir
=
$1
FP_exec
=
$2
base_dir
=
$3
options_default
=
/home/ignacio/repos/flexpart_noresm/flexpart_NorESM/options
echo
FP_exec
=
$FP_exec
echo
$FLEXOUT_TMP
#suffix=$(date "+%y-%m-%d_%H%M%S")
test_tmp
=
${
FLEXOUT_TMP
}${
base_dir
}${
test_dir
}
#_${suffix}
current_dir
=
$(
pwd
)
echo
test_tmp
=
$test_tmp
mkdir
$test_tmp
#copy default optios
cp
-r
$options_default
$test_tmp
/options
#override default options
cp
-r
${
test_dir
}
/options/
*
$test_tmp
/options/
# copy paths form repo source exec tmp dir
cp
${
test_dir
}
/pathnames
$test_tmp
mkdir
${
test_tmp
}
/output
#cp test_1/run $test_tmp
cd
$test_tmp
echo
$(
pwd
)
echo
$FP_exec
# '&>' o is bash for both out and err
echo
run
$FP_exec
to out.log
#&
$FP_exec
&> out.log
#&
tests/run_test_1
0 → 100755
View file @
0a27fd20
#input FP exec
#test_dir=$1
#FP_exec=$2
#base_dir=$3
./run_test test_1 /home/ignacio/repos/flexpart_noresm/flexpart_NorESM/src/flexpartnoresm /home/ignacio/repos/flexpart_noresm_test/
tests/test_1/pathnames
0 → 100644
View file @
0a27fd20
./options/
./output/
/home/ignacio/repos/flexpart_noresm/flexpart_NorESM/flexin/AVAILABLE_testdirk
/home/ignacio/repos/flexpart_noresm/flexpart_NorESM/flexin/grid_atm.nc
========================================================
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment