X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=tests%2Fforeign.test.sh;h=10bc61378ea11b8520052ea48a794a10ce48e661;hb=fb8533122551bbb7aea669f40bc91c1211809b58;hp=3fa04e8e2dfd1a42d0f0bb60355be33c01d132b1;hpb=63fcb94b875a97e468d9add229e220ecceec2352;p=sbcl.git diff --git a/tests/foreign.test.sh b/tests/foreign.test.sh index 3fa04e8..10bc613 100644 --- a/tests/foreign.test.sh +++ b/tests/foreign.test.sh @@ -1,6 +1,7 @@ #!/bin/sh -# tests related to foreign function interface and LOAD-FOREIGN +# tests related to foreign function interface and loading of shared +# libraries # This software is part of the SBCL system. See the README file for # more information. @@ -13,17 +14,33 @@ # absolutely no warranty. See the COPYING and CREDITS files for # more information. -testfilestem=$TMPDIR/sbcl-foreign-test-$$ +echo //entering foreign.test.sh +testfilestem=${TMPDIR:-/tmp}/sbcl-foreign-test-$$ + +# Make a little shared object file to test with. echo 'int summish(int x, int y) { return 1 + x + y; }' > $testfilestem.c -make $testfilestem.o +cc -c $testfilestem.c -o $testfilestem.o ld -shared -o $testfilestem.so $testfilestem.o +# Test interaction with the shared object file. ${SBCL:-sbcl} <