ports/java/jna/files/test.sh

13 lines
321 B
Bash
Raw Normal View History

2023-08-16 22:26:55 +00:00
#!/bin/sh
# Simple JNA tests to ensure Clojure can still call native library functions
expected=`mktemp`
results=`mktemp`
echo "Hello, World\n-> 42\nint: 42\nfloat: 42.00\n# ignore statvfs" > $expected
cd files && /usr/local/bin/clojure -M jna.clj > $results
cmp $expected $results || exit 1
rm -f $expected $results