projects
/
sbcl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
0.pre8.6:
[sbcl.git]
/
tests
/
foreign.test.sh
diff --git
a/tests/foreign.test.sh
b/tests/foreign.test.sh
index
47f4344
..
ee78f51
100644
(file)
--- a/
tests/foreign.test.sh
+++ b/
tests/foreign.test.sh
@@
-13,12
+13,16
@@
# absolutely no warranty. See the COPYING and CREDITS files for
# more information.
# absolutely no warranty. See the COPYING and CREDITS files for
# more information.
+echo //entering foreign.test.sh
+
testfilestem=${TMPDIR:-/tmp}/sbcl-foreign-test-$$
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
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
ld -shared -o $testfilestem.so $testfilestem.o
+# Test interaction with the shared object file.
${SBCL:-sbcl} <<EOF
(handler-case
(load-foreign '("$testfilestem.so"))
${SBCL:-sbcl} <<EOF
(handler-case
(load-foreign '("$testfilestem.so"))
@@
-42,7
+46,8
@@
fi
# rolling over in his grave.:-) It would be good to make a test case
# for it..
# rolling over in his grave.:-) It would be good to make a test case
# for it..
+echo //cleanup: removing $testfilestem.*
rm $testfilestem.*
# success convention for script
rm $testfilestem.*
# success convention for script
-exit 104
+exit 104