From f1f5d9fd92e536a3a35476fc013b1a4db4c7a0f9 Mon Sep 17 00:00:00 2001 From: Ignacio Pisso <Ignacio.Pisso@nilu.no> Date: Tue, 9 Jun 2015 16:31:58 +0200 Subject: [PATCH] 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 --- tests/NILU/run_test_0 | 27 +++++++++++++++++++++++++++ tests/NILU/run_test_1 | 24 ++++++++++++++++++++++++ tests/NILU/test_1/run | 16 ++++++++++++++++ 3 files changed, 67 insertions(+) create mode 100755 tests/NILU/run_test_0 create mode 100755 tests/NILU/run_test_1 create mode 100755 tests/NILU/test_1/run diff --git a/tests/NILU/run_test_0 b/tests/NILU/run_test_0 new file mode 100755 index 00000000..93af9fb1 --- /dev/null +++ b/tests/NILU/run_test_0 @@ -0,0 +1,27 @@ +#!/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 + + diff --git a/tests/NILU/run_test_1 b/tests/NILU/run_test_1 new file mode 100755 index 00000000..e6bdc84c --- /dev/null +++ b/tests/NILU/run_test_1 @@ -0,0 +1,24 @@ +#!/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 #& + + + diff --git a/tests/NILU/test_1/run b/tests/NILU/test_1/run new file mode 100755 index 00000000..4594b540 --- /dev/null +++ b/tests/NILU/test_1/run @@ -0,0 +1,16 @@ +#!/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 -- GitLab