X-Git-Url: http://git.kpe.io/?p=ctsim.git;a=blobdiff_plain;f=tests%2Fmake-single-openmp.sh;fp=tests%2Fmake-single-openmp.sh;h=b229cb17cdeb4cd566e2af56c77e5e6e13f99491;hp=5e9ead1f2756f88ed7de0ce72c8b8ddb3b1d38c3;hb=5ce201a490d372594ca6b109389d9b578d3791e8;hpb=0219ede69e1c3afc6e160b8f276bfd4617acbc08 diff --git a/tests/make-single-openmp.sh b/tests/make-single-openmp.sh index 5e9ead1..b229cb1 100755 --- a/tests/make-single-openmp.sh +++ b/tests/make-single-openmp.sh @@ -1,8 +1,11 @@ -#!/bin/sh +#!/bin/bash + +SCRIPT_DIR=`dirname $BASH_SOURCE` +BASE=${SCRIPT_DIR}/.. DIR=/tmp rm -rf $DIR/sng $DIR/omp mkdir $DIR/sng $DIR/omp -(cd ..; (make clean > /dev/null); (./configure --disable-openmp > /dev/null); grep HAVE_OPEN config.h; (make -j 20 > /dev/null); cp tools/ctsimtext src/ctsim $DIR/sng/.) -(cd ..; (make clean > /dev/null); (./configure --enable-openmp > /dev/null); grep HAVE_OPEN config.h; (make -j 20 > /dev/null); cp tools/ctsimtext src/ctsim $DIR/omp/.) +(cd $BASE; (make clean > /dev/null); (./configure --disable-openmp > /dev/null); grep HAVE_OPEN config.h; (make -j 20 > /dev/null); cp tools/ctsimtext src/ctsim $DIR/sng/.) +(cd $BASE; (make clean > /dev/null); (./configure --enable-openmp > /dev/null); grep HAVE_OPEN config.h; (make -j 20 > /dev/null); cp tools/ctsimtext src/ctsim $DIR/omp/.)