diff --git a/tests/compilations/1.configure.parallel_make.sh b/tests/compilations/1.configure.parallel_make.sh index 329baffc1..77bc4bfcf 100755 --- a/tests/compilations/1.configure.parallel_make.sh +++ b/tests/compilations/1.configure.parallel_make.sh @@ -2,7 +2,7 @@ ################################################### # test name -NAME="configure.0.parallel_make" +NAME="configure.1.parallel_make" # configuration parameters CONF_PARAM="--with-mpi" diff --git a/tests/compilations/2.configure.openmp_make.sh b/tests/compilations/2.configure.openmp_make.sh new file mode 100755 index 000000000..790aa8da2 --- /dev/null +++ b/tests/compilations/2.configure.openmp_make.sh @@ -0,0 +1,64 @@ +#!/bin/bash +################################################### + +# test name +NAME="configure.2.openmp_make" + +# configuration parameters +CONF_PARAM="--with-mpi --enable-openmp --enable-debug" + +################################################### + + +testdir=`pwd` + +# sets source directory +cd $ROOT/ +srcdir=`pwd` + +cd $testdir/ + +# title +echo >> $testdir/results.log +echo "$NAME in: $testdir" >> $testdir/results.log +echo >> $testdir/results.log + +#cleanup +rm -rf config.log config.status +rm -rf ./bin ./obj ./setup ./OUTPUT_FILES ./DATA + +# default configuration for serial version (without MPI) +# (out-of-source compilation) +echo "configuration: $srcdir/configure ${CONF_PARAM}" >> $testdir/results.log +$srcdir/configure ${CONF_PARAM} >> $testdir/results.log 2>&1 + +# checks exit code +if [[ $? -ne 0 ]]; then + echo >> $testdir/results.log + echo "configuration failed, please check..." >> $testdir/results.log + exit 1 +fi + +# default all compilation +make clean >> $testdir/results.log 2>&1 + +# checks exit code +if [[ $? -ne 0 ]]; then + echo >> $testdir/results.log + echo "compilation failed, please check..." >> $testdir/results.log + exit 1 +fi + +# parallel make +make -j 4 all >> $testdir/results.log 2>&1 + +# checks exit code +if [[ $? -ne 0 ]]; then + echo >> $testdir/results.log + echo "compilation failed, please check..." >> $testdir/results.log + exit 1 +fi + +echo "" >> $testdir/results.log +echo "successful compilation" >> $testdir/results.log + diff --git a/tests/compilations/3.configure.vectorization_make.sh b/tests/compilations/3.configure.vectorization_make.sh new file mode 100755 index 000000000..8deef570f --- /dev/null +++ b/tests/compilations/3.configure.vectorization_make.sh @@ -0,0 +1,64 @@ +#!/bin/bash +################################################### + +# test name +NAME="configure.3.vectorization_make" + +# configuration parameters +CONF_PARAM="--enable-openmp --enable-vectorization" + +################################################### + + +testdir=`pwd` + +# sets source directory +cd $ROOT/ +srcdir=`pwd` + +cd $testdir/ + +# title +echo >> $testdir/results.log +echo "$NAME in: $testdir" >> $testdir/results.log +echo >> $testdir/results.log + +#cleanup +rm -rf config.log config.status +rm -rf ./bin ./obj ./setup ./OUTPUT_FILES ./DATA + +# default configuration for serial version (without MPI) +# (out-of-source compilation) +echo "configuration: $srcdir/configure ${CONF_PARAM}" >> $testdir/results.log +$srcdir/configure ${CONF_PARAM} >> $testdir/results.log 2>&1 + +# checks exit code +if [[ $? -ne 0 ]]; then + echo >> $testdir/results.log + echo "configuration failed, please check..." >> $testdir/results.log + exit 1 +fi + +# default all compilation +make clean >> $testdir/results.log 2>&1 + +# checks exit code +if [[ $? -ne 0 ]]; then + echo >> $testdir/results.log + echo "compilation failed, please check..." >> $testdir/results.log + exit 1 +fi + +# parallel make +make -j 4 all >> $testdir/results.log 2>&1 + +# checks exit code +if [[ $? -ne 0 ]]; then + echo >> $testdir/results.log + echo "compilation failed, please check..." >> $testdir/results.log + exit 1 +fi + +echo "" >> $testdir/results.log +echo "successful compilation" >> $testdir/results.log +