mirror of
https://git.planet-casio.com/Lephenixnoir/OpenLibm.git
synced 2024-12-28 20:43:41 +01:00
Merge pull request #139 from petercolberg/travis
Test Linux amd64/i686/arm64
This commit is contained in:
commit
705cbaea30
5 changed files with 36 additions and 39 deletions
26
.travis.sh
26
.travis.sh
|
@ -1,26 +0,0 @@
|
||||||
#!/bin/sh
|
|
||||||
set -eux
|
|
||||||
|
|
||||||
case "$TARGET" in
|
|
||||||
host)
|
|
||||||
uname -a
|
|
||||||
export LOADER=
|
|
||||||
make ;;
|
|
||||||
arm32)
|
|
||||||
sudo bash -c 'echo >> /etc/apt/sources.list "deb http://archive.ubuntu.com/ubuntu/ trusty main restricted universe"'
|
|
||||||
sudo apt-get update
|
|
||||||
sudo apt-get -y install gcc-4.7-arm-linux-gnueabihf qemu binfmt-support
|
|
||||||
make CC="arm-linux-gnueabihf-gcc-4.7"
|
|
||||||
export LD_LIBRARY_PATH=/usr/arm-linux-gnueabihf/lib
|
|
||||||
#export LOADER=/usr/arm-linux-gnueabihf/lib/ld-linux-armhf.so.3
|
|
||||||
export LOADER="echo TESTS DISABLED ON ARM"
|
|
||||||
;;
|
|
||||||
*)
|
|
||||||
echo 'Unknown TARGET!'
|
|
||||||
exit 1
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
|
|
||||||
$LOADER make check
|
|
||||||
|
|
||||||
make clean && git status --ignored --porcelain && test -z "$(git status --ignored --porcelain)"
|
|
41
.travis.yml
41
.travis.yml
|
@ -1,13 +1,36 @@
|
||||||
|
# We require a full (virtual) machine to load the kernel module for
|
||||||
|
# binfmt support, which is needed to test other architectures besides
|
||||||
|
# x86 using qemu user emulation. (This will not work in a container.)
|
||||||
|
sudo: required
|
||||||
|
dist: trusty
|
||||||
language: c
|
language: c
|
||||||
script: ./.travis.sh
|
|
||||||
os:
|
script:
|
||||||
- linux
|
- make $FLAGS
|
||||||
env:
|
- make check $FLAGS $TEST_FLAGS
|
||||||
- TARGET=host
|
- make clean && git status --ignored --porcelain && test -z "$(git status --ignored --porcelain)"
|
||||||
- TARGET=arm32
|
|
||||||
matrix:
|
matrix:
|
||||||
exclude:
|
include:
|
||||||
- os: osx
|
- os: linux
|
||||||
env: TARGET=arm32
|
env: FLAGS="CC=gcc"
|
||||||
|
|
||||||
|
- os: linux
|
||||||
|
env: FLAGS="CC=gcc ARCH=i686" # implies -m32 -march=i686
|
||||||
|
addons:
|
||||||
|
apt:
|
||||||
|
packages:
|
||||||
|
- gcc-multilib
|
||||||
|
|
||||||
|
- os: linux
|
||||||
|
env: FLAGS="CC=aarch64-linux-gnu-gcc" TEST_FLAGS="LDFLAGS=-static"
|
||||||
|
addons:
|
||||||
|
apt:
|
||||||
|
packages:
|
||||||
|
- gcc-aarch64-linux-gnu
|
||||||
|
- libc6-dev-arm64-cross
|
||||||
|
- qemu-user-static
|
||||||
|
- binfmt-support
|
||||||
|
|
||||||
notifications:
|
notifications:
|
||||||
email: false
|
email: false
|
||||||
|
|
4
Make.inc
4
Make.inc
|
@ -111,7 +111,7 @@ endif
|
||||||
ifeq ($(OS), WINNT)
|
ifeq ($(OS), WINNT)
|
||||||
SHLIB_EXT = dll
|
SHLIB_EXT = dll
|
||||||
SONAME_FLAG = -soname
|
SONAME_FLAG = -soname
|
||||||
override CFLAGS_add += -nodefaultlibs
|
CFLAGS_add += -nodefaultlibs
|
||||||
shlibdir = $(bindir)
|
shlibdir = $(bindir)
|
||||||
else
|
else
|
||||||
ifeq ($(OS), Darwin)
|
ifeq ($(OS), Darwin)
|
||||||
|
@ -121,7 +121,7 @@ else
|
||||||
SHLIB_EXT = so
|
SHLIB_EXT = so
|
||||||
SONAME_FLAG = -soname
|
SONAME_FLAG = -soname
|
||||||
endif
|
endif
|
||||||
override CFLAGS_add += -fPIC
|
CFLAGS_add += -fPIC
|
||||||
shlibdir = $(libdir)
|
shlibdir = $(libdir)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|
|
@ -40,7 +40,7 @@
|
||||||
#include "../i387/osx_asm.h"
|
#include "../i387/osx_asm.h"
|
||||||
#define CNAME(x) EXT(x)
|
#define CNAME(x) EXT(x)
|
||||||
#else
|
#else
|
||||||
#include "cdefs-compat.h"
|
#include "bsd_cdefs.h"
|
||||||
|
|
||||||
#ifdef PIC
|
#ifdef PIC
|
||||||
#define PIC_PLT(x) x@PLT
|
#define PIC_PLT(x) x@PLT
|
||||||
|
|
|
@ -30,7 +30,7 @@
|
||||||
#include <float.h>
|
#include <float.h>
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
|
||||||
#include "cdefs-compat.h"
|
#include "bsd_cdefs.h"
|
||||||
#include "amd64/bsd_ieeefp.h"
|
#include "amd64/bsd_ieeefp.h"
|
||||||
|
|
||||||
#include <openlibm_math.h>
|
#include <openlibm_math.h>
|
||||||
|
|
Loading…
Reference in a new issue