X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=tests%2Fforeign.test.sh;h=039d1210f576fc49d74d437b78c2fc4dbc0a0d5a;hb=6a0601ab48635465ad3400c290e5cfbca28e5367;hp=2f1f40587689f3efb1c6a66d0ff6d1bad8351818;hpb=874586929c175a28728a632d4b2123365bd63851;p=sbcl.git diff --git a/tests/foreign.test.sh b/tests/foreign.test.sh index 2f1f405..039d121 100644 --- a/tests/foreign.test.sh +++ b/tests/foreign.test.sh @@ -21,13 +21,16 @@ echo //entering foreign.test.sh # and non-linkage-table platforms fail this PUNT=104 -testfilestem=${TMPDIR:-/tmp}/sbcl-foreign-test-$$ +testfiledir=sbcl-foreign-test-$$ +testfilestem=`pwd`/$testfiledir/sbcl-foreign-test +mkdir $testfiledir ## Make some shared object files to test with. build_so() { echo building $1.so - if [ "`uname -m`" = x86_64 -o "`uname -m`" = amd64 ]; then + if [ "`uname -m`" = x86_64 -o "`uname -m`" = amd64 -o \ + "`uname -m`" = mips -o "`uname -m`" = mips64 ]; then CFLAGS="$CFLAGS -fPIC" fi if [ "`uname`" = Darwin ]; then @@ -326,7 +329,7 @@ fi echo missing .so ok -rm -f $testfilestem.* $testfilestem-* +rm -r $testfiledir # success convention for script exit 104