diff options
author | Bram Moolenaar <Bram@vim.org> | 2018-12-15 15:59:32 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2018-12-15 15:59:32 +0100 |
commit | a9659e0da41388f2c7aedccf016c2fe2eeec6a82 (patch) | |
tree | b7e901e27b461420cab1d62de998f4b1efbc4c6b | |
parent | 8b321d6a521e76c5cbe640272574e4fbd42cba9b (diff) | |
download | vim-git-a9659e0da41388f2c7aedccf016c2fe2eeec6a82.tar.gz |
patch 8.1.0595: libvterm tests are not run with coveragev8.1.0595
Problem: Libvterm tests are not run with coverage.
Solution: Adjust the Travis config. Show the actually run commands.
-rw-r--r-- | .travis.yml | 8 | ||||
-rw-r--r-- | src/libvterm/Makefile | 18 | ||||
-rw-r--r-- | src/version.c | 2 |
3 files changed, 12 insertions, 16 deletions
diff --git a/.travis.yml b/.travis.yml index 4ad23bb1a..14957a09e 100644 --- a/.travis.yml +++ b/.travis.yml @@ -15,7 +15,7 @@ env: - BUILD=yes TEST=test SANITIZER_CFLAGS="-g -O1 -DABORT_ON_INTERNAL_ERROR -DEXITFREE -fsanitize=address -fno-omit-frame-pointer" FEATURES=huge SRCDIR=./src CHECK_AUTOCONF=no ASAN_OPTIONS="print_stacktrace=1 log_path=asan" LSAN_OPTIONS="suppressions=$TRAVIS_BUILD_DIR/src/testdir/lsan-suppress.txt" "CONFOPT='--enable-perlinterp --enable-pythoninterp --enable-rubyinterp --enable-luainterp --enable-tclinterp'" - - BUILD=yes TEST=scripttests COVERAGE=yes CFLAGS=--coverage LDFLAGS=--coverage FEATURES=huge SHADOWOPT= SRCDIR=./src CHECK_AUTOCONF=no + - BUILD=yes TEST="scripttests test_libvterm" COVERAGE=yes CFLAGS=--coverage LDFLAGS=--coverage FEATURES=huge SHADOWOPT= SRCDIR=./src CHECK_AUTOCONF=no "CONFOPT='--enable-perlinterp --enable-pythoninterp --enable-python3interp --enable-rubyinterp --enable-luainterp --enable-tclinterp'" - BUILD=no TEST=unittests COVERAGE=yes CFLAGS=--coverage LDFLAGS=--coverage FEATURES=huge SHADOWOPT= SRCDIR=./src CHECK_AUTOCONF=yes - BUILD=yes TEST=test COVERAGE=no FEATURES=normal CONFOPT= SHADOWOPT="-C src/shadow" SRCDIR=./src/shadow CHECK_AUTOCONF=no @@ -26,7 +26,7 @@ env: sudo: false -# instead of a 2*2*8 matrix (2*os + 2*compiler + 8*env), +# instead of a 2*2*7 matrix (2*os + 2*compiler + 7*env), # exclude some builds on mac os x and linux # linux: 2*compiler + 5*env + mac: 2*compiler + 2*env matrix: @@ -38,7 +38,7 @@ matrix: - os: osx env: BUILD=yes TEST=test COVERAGE=no FEATURES=small CONFOPT= SHADOWOPT= SRCDIR=./src CHECK_AUTOCONF=no - os: osx - env: BUILD=yes TEST=scripttests COVERAGE=yes CFLAGS=--coverage LDFLAGS=--coverage FEATURES=huge SHADOWOPT= SRCDIR=./src CHECK_AUTOCONF=no + env: BUILD=yes TEST="scripttests test_libvterm" COVERAGE=yes CFLAGS=--coverage LDFLAGS=--coverage FEATURES=huge SHADOWOPT= SRCDIR=./src CHECK_AUTOCONF=no "CONFOPT='--enable-perlinterp --enable-pythoninterp --enable-python3interp --enable-rubyinterp --enable-luainterp --enable-tclinterp'" - os: osx env: BUILD=yes TEST=test SANITIZER_CFLAGS="-g -O1 -DABORT_ON_INTERNAL_ERROR -DEXITFREE -fsanitize=address -fno-omit-frame-pointer" @@ -109,7 +109,7 @@ script: - if [ -n "$err" ]; then exit 1; fi after_success: - - if [ "$COVERAGE" = "yes" ]; then ~/.local/bin/coveralls -b ${SRCDIR} -x .xs -e ${SRCDIR}/xxd -e ${SRCDIR}/if_perl.c --encodings utf-8 latin-1 EUC-KR; fi + - if [ "$COVERAGE" = "yes" ]; then ~/.local/bin/coveralls -b ${SRCDIR} -x .xs -e ${SRCDIR}/if_perl.c -e ${SRCDIR}/xxd -e ${SRCDIR}/libvterm/src --encodings utf-8 latin-1 EUC-KR; fi - if [ "$COVERAGE" = "yes" ]; then cd ${SRCDIR} && bash <(curl -s https://codecov.io/bash) ; fi # vim:set sts=2 sw=2 tw=0 et: diff --git a/src/libvterm/Makefile b/src/libvterm/Makefile index 179ee10d7..2fca6ad18 100644 --- a/src/libvterm/Makefile +++ b/src/libvterm/Makefile @@ -58,30 +58,24 @@ MAN3DIR=$(MANDIR)/man3 all: $(LIBRARY) $(BINFILES) $(LIBRARY): $(OBJECTS) - @echo LINK $@ - @$(LIBTOOL) --mode=link --tag=CC $(CC) -rpath $(LIBDIR) -version-info $(VERSION_CURRENT):$(VERSION_REVISION):$(VERSION_AGE) -o $@ $^ $(LDFLAGS) + $(LIBTOOL) --mode=link --tag=CC $(CC) -rpath $(LIBDIR) -version-info $(VERSION_CURRENT):$(VERSION_REVISION):$(VERSION_AGE) -o $@ $^ $(LDFLAGS) src/%.lo: src/%.c $(HFILES_INT) - @echo CC $< - @$(LIBTOOL) --mode=compile --tag=CC $(CC) $(CFLAGS) -o $@ -c $< + $(LIBTOOL) --mode=compile --tag=CC $(CC) $(CFLAGS) -o $@ -c $< src/encoding/%.inc: src/encoding/%.tbl - @echo TBL $< - @perl -CSD tbl2inc_c.pl $< >$@ + perl -CSD tbl2inc_c.pl $< >$@ src/encoding.lo: $(INCFILES) bin/%: bin/%.c $(LIBRARY) - @echo CC $< - @$(LIBTOOL) --mode=link --tag=CC $(CC) $(CFLAGS) -o $@ $< -lvterm $(LDFLAGS) + $(LIBTOOL) --mode=link --tag=CC $(CC) $(CFLAGS) -o $@ $< -lvterm $(LDFLAGS) t/harness.lo: t/harness.c $(HFILES) - @echo CC $< - @$(LIBTOOL) --mode=compile --tag=CC $(CC) $(CFLAGS) -o $@ -c $< + $(LIBTOOL) --mode=compile --tag=CC $(CC) $(CFLAGS) -o $@ -c $< t/harness: t/harness.lo $(LIBRARY) - @echo LINK $@ - @$(LIBTOOL) --mode=link --tag=CC $(CC) $(CFLAGS) -o $@ $^ $(LDFLAGS) + $(LIBTOOL) --mode=link --tag=CC $(CC) $(CFLAGS) -o $@ $^ $(LDFLAGS) .PHONY: test test: $(LIBRARY) t/harness diff --git a/src/version.c b/src/version.c index 0a94f3101..83026baee 100644 --- a/src/version.c +++ b/src/version.c @@ -800,6 +800,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 595, +/**/ 594, /**/ 593, |