Commit f1f5d9fd authored by Ignacio Pisso's avatar Ignacio Pisso
Browse files

add test scripts for tests 0 and 1 under the NILU subdir. These tests are set...

add test scripts for tests 0 and 1 under the NILU subdir. These tests are set for the interactive machines. As more developers contribute their tests based on these templates they will be used for the CI setup
parent 2c56f686
#!/bin/bash
#input FP exec
FP_exec=$1
echo FP_exec=$FP_exec
suffix=$(date "+%y-%m-%d_%H%M%S")
#test_tmp=$FLEXOUT_TMP/test_1_$suffix
test_tmp=test_0_$suffix
echo test_tmp=$test_tmp
mkdir $test_tmp
#cp -r test_1/options $test_tmp
cp -r /home/ignacio/repos/flexpart/options $test_tmp
cp test_1/pathnames $test_tmp
cp test_1/run $test_tmp
echo exit
#exit
cd $test_tmp
./run $FP_exec
#!/bin/bash
#input FP exec
FP_exec=$1
echo FP_exec=$FP_exec
echo $FLEXOUT_TMP
suffix=$(date "+%y-%m-%d_%H%M%S")
test_tmp=${FLEXOUT_TMP}test_1_$suffix
current_dir=$(pwd)
echo test_tmp=$test_tmp
mkdir $test_tmp
cp -r test_1/options $test_tmp
cp test_1/pathnames $test_tmp
cp test_1/run $test_tmp
cd $test_tmp
./run $FP_exec &> $test_tmp.log #&
#!/bin/bash
suffix=$(date "+%y-%m-%d_%H%M%S")
FP_exec=$1
output_tmp=output_$suffix
mkdir $output_tmp
rm output
ln -s $output_tmp output
echo exec $FP_exec
$FP_exec
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment