Fix / Improve with-foreign-pointer-as-string in manual
[cffi.git] / tests / test-static-link.sh
blobce8d9fa47adc8f8145912eb3023a05dd106347e3
1 #!/bin/sh -eux
3 for l in sbcl ; do # mkcl ecl clisp sbcl
4 EX="$(cl-launch -l $l -sp cffi-toolchain -ip "(output-file :static-program-op :cffi-tests/example)")"
5 rm -f $EX ; :
6 cl-launch -l $l -sp cffi-toolchain -i "(operate :static-program-op :cffi-tests/example)"
7 [ -f $EX ]
8 [ "$($EX)" = "hello, world!" ]
9 done