projects
/
ctsim.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
0219ede
)
Make tests even if pwd outside test dir
author
Kevin M. Rosenberg
<kevin@rosenberg.net>
Thu, 22 Mar 2018 19:06:57 +0000
(13:06 -0600)
committer
Kevin M. Rosenberg
<kevin@rosenberg.net>
Thu, 22 Mar 2018 19:06:57 +0000
(13:06 -0600)
tests/make-single-openmp.sh
patch
|
blob
|
history
diff --git
a/tests/make-single-openmp.sh
b/tests/make-single-openmp.sh
index 5e9ead1f2756f88ed7de0ce72c8b8ddb3b1d38c3..b229cb17cdeb4cd566e2af56c77e5e6e13f99491 100755
(executable)
--- 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
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/.)