Travis CI : added ARM compilation tests
This commit is contained in:
parent
ee28a0def4
commit
7083b8a54a
@ -3,6 +3,7 @@ compiler: gcc
|
|||||||
script: make test-travis
|
script: make test-travis
|
||||||
before_install:
|
before_install:
|
||||||
- sudo apt-get update -qq
|
- sudo apt-get update -qq
|
||||||
|
- sudo apt-get install -qq gcc-arm-linux-gnueabi
|
||||||
- sudo apt-get install -qq clang
|
- sudo apt-get install -qq clang
|
||||||
- sudo apt-get install -qq g++-multilib
|
- sudo apt-get install -qq g++-multilib
|
||||||
- sudo apt-get install -qq gcc-multilib
|
- sudo apt-get install -qq gcc-multilib
|
||||||
@ -13,6 +14,7 @@ env:
|
|||||||
- ZSTD_TRAVIS_CI_ENV=test-all
|
- ZSTD_TRAVIS_CI_ENV=test-all
|
||||||
- ZSTD_TRAVIS_CI_ENV=clangtest
|
- ZSTD_TRAVIS_CI_ENV=clangtest
|
||||||
- ZSTD_TRAVIS_CI_ENV=gpptest
|
- ZSTD_TRAVIS_CI_ENV=gpptest
|
||||||
|
- ZSTD_TRAVIS_CI_ENV=armtest
|
||||||
|
|
||||||
matrix:
|
matrix:
|
||||||
fast_finish: true
|
fast_finish: true
|
||||||
|
6
Makefile
6
Makefile
@ -98,5 +98,11 @@ clangtest: clean
|
|||||||
gpptest: clean
|
gpptest: clean
|
||||||
$(MAKE) all CC=g++ CFLAGS="-O3 -Wall -Wextra -Wundef -Wshadow -Wcast-align -Werror"
|
$(MAKE) all CC=g++ CFLAGS="-O3 -Wall -Wextra -Wundef -Wshadow -Wcast-align -Werror"
|
||||||
|
|
||||||
|
armtest: clean
|
||||||
|
cd $(ZSTDDIR); $(MAKE) -e all CC=arm-linux-gnueabi-gcc MOREFLAGS="-Werror"
|
||||||
|
cd $(PRGDIR); $(MAKE) -e CC=arm-linux-gnueabi-gcc CPPFLAGS="-Werror"
|
||||||
|
|
||||||
|
sanitize: clean
|
||||||
|
$(MAKE) test CC=clang CPPFLAGS="-g -fsanitize=undefined" FUZZER_TIME="-T1mn" NB_LOOPS=-i1
|
||||||
|
|
||||||
endif
|
endif
|
||||||
|
@ -41,7 +41,9 @@ LIBVER = $(LIBVER_MAJOR).$(LIBVER_MINOR).$(LIBVER_PATCH)
|
|||||||
DESTDIR?=
|
DESTDIR?=
|
||||||
PREFIX ?= /usr
|
PREFIX ?= /usr
|
||||||
CFLAGS ?= -O3
|
CFLAGS ?= -O3
|
||||||
CFLAGS += -I. -std=c99 -Wall -Wextra -Wundef -Wshadow -Wcast-align -Wstrict-prototypes
|
CFLAGS += -std=c99 -Wall -Wextra -Wundef -Wshadow -Wcast-align -Wstrict-prototypes
|
||||||
|
LDFLAGS = -I.
|
||||||
|
FLAGS = $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) $(MOREFLAGS)
|
||||||
|
|
||||||
LIBDIR ?= $(PREFIX)/lib
|
LIBDIR ?= $(PREFIX)/lib
|
||||||
INCLUDEDIR=$(PREFIX)/include
|
INCLUDEDIR=$(PREFIX)/include
|
||||||
@ -67,10 +69,10 @@ all: libzstd
|
|||||||
|
|
||||||
libzstd: zstd.c
|
libzstd: zstd.c
|
||||||
@echo compiling static library
|
@echo compiling static library
|
||||||
@$(CC) $(CPPFLAGS) $(CFLAGS) -c $^
|
@$(CC) $(FLAGS) -c $^
|
||||||
@$(AR) rcs libzstd.a zstd.o
|
@$(AR) rcs libzstd.a zstd.o
|
||||||
@echo compiling dynamic library $(LIBVER)
|
@echo compiling dynamic library $(LIBVER)
|
||||||
@$(CC) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) -shared $^ -fPIC $(SONAME_FLAGS) -o $@.$(SHARED_EXT_VER)
|
@$(CC) $(FLAGS) -shared $^ -fPIC $(SONAME_FLAGS) -o $@.$(SHARED_EXT_VER)
|
||||||
@echo creating versioned links
|
@echo creating versioned links
|
||||||
@ln -sf $@.$(SHARED_EXT_VER) $@.$(SHARED_EXT_MAJOR)
|
@ln -sf $@.$(SHARED_EXT_VER) $@.$(SHARED_EXT_MAJOR)
|
||||||
@ln -sf $@.$(SHARED_EXT_VER) $@.$(SHARED_EXT)
|
@ln -sf $@.$(SHARED_EXT_VER) $@.$(SHARED_EXT)
|
||||||
|
@ -122,14 +122,14 @@ test32: test-zstd32 test-fullbench32 test-fuzzer32
|
|||||||
test-all: test test32
|
test-all: test test32
|
||||||
|
|
||||||
test-zstd: zstd datagen
|
test-zstd: zstd datagen
|
||||||
./datagen | ./zstd -v | ./zstd -d > $(VOID)
|
./datagen | ./zstd -v | ./zstd -d > $(VOID)
|
||||||
./datagen -g256MB | ./zstd -v | ./zstd -d > $(VOID)
|
./datagen -g256MB | ./zstd -v | ./zstd -d > $(VOID)
|
||||||
./datagen -g6GB | ./zstd -vq | ./zstd -d > $(VOID)
|
./datagen -g6GB -P99 | ./zstd -vq | ./zstd -d > $(VOID)
|
||||||
|
|
||||||
test-zstd32: zstd32 datagen
|
test-zstd32: zstd32 datagen
|
||||||
./datagen | ./zstd32 -v | ./zstd32 -d > $(VOID)
|
./datagen | ./zstd32 -v | ./zstd32 -d > $(VOID)
|
||||||
./datagen -g256MB | ./zstd32 -v | ./zstd32 -d > $(VOID)
|
./datagen -g256MB | ./zstd32 -v | ./zstd32 -d > $(VOID)
|
||||||
./datagen -g6GB | ./zstd32 -vq | ./zstd32 -d > $(VOID)
|
./datagen -g6GB -P99 | ./zstd32 -vq | ./zstd32 -d > $(VOID)
|
||||||
|
|
||||||
test-fullbench: fullbench datagen
|
test-fullbench: fullbench datagen
|
||||||
./fullbench -i1
|
./fullbench -i1
|
||||||
|
Loading…
Reference in New Issue
Block a user