Skip to content

Commit

Permalink
Added Travis test script
Browse files Browse the repository at this point in the history
This builds Openlibm on the Travis build host (x86) and also
cross-compiles to ARM.

Note: the tests currently fail on ARM, as noted in
JuliaMath#18
  • Loading branch information
talex5 committed Jan 5, 2015
1 parent 4da9a3d commit a026a60
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .travis.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
#!/bin/sh
set -eux

case "$TARGET" in
host)
uname -a
export LOADER=
make ;;
arm32)
sudo apt-get -y install gcc-4.6-arm-linux-gnueabihf qemu binfmt-support
make CC="arm-linux-gnueabihf-gcc-4.6"
export LD_LIBRARY_PATH=/usr/arm-linux-gnueabihf/lib
export LOADER=/usr/arm-linux-gnueabihf/lib/ld-linux-armhf.so.3
;;
*)
echo 'Unknown TARGET!'
exit 1
;;
esac

$LOADER ./test/test-double
$LOADER ./test/test-float
5 changes: 5 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
language: c
script: ./.travis.sh
env:
- TARGET=host
- TARGET=arm32

0 comments on commit a026a60

Please sign in to comment.