mirror of
https://github.com/lbonn/rofi
synced 2024-11-10 14:24:27 +00:00
Update the test to integrate in build.
* TODO: fix make distcheck.
This commit is contained in:
parent
b7f6799af9
commit
79e729bd37
5 changed files with 35 additions and 15 deletions
|
@ -8,6 +8,6 @@ before_install:
|
|||
- sudo apt-get install -y libxinerama-dev autoconf automake make libxft-dev libx11-dev libpango1.0-dev
|
||||
- sudo pip install cpp-coveralls
|
||||
|
||||
script: autoreconf -i && ./configure && make && make -C test/ test
|
||||
script: autoreconf -i && ./configure --enable-gcov && make && make -C test/ test
|
||||
after_success:
|
||||
- coveralls --exclude lib --gcov-options '\-lp'
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
SUBDIRS=test
|
||||
|
||||
##
|
||||
# Rofi the program
|
||||
##
|
||||
|
|
|
@ -44,5 +44,5 @@ PKG_CHECK_MODULES([xinerama], [xinerama])
|
|||
PKG_CHECK_MODULES([pango], [pango pangoxft])
|
||||
|
||||
|
||||
AC_CONFIG_FILES([Makefile])
|
||||
AC_CONFIG_FILES([Makefile test/Makefile])
|
||||
AC_OUTPUT
|
||||
|
|
|
@ -1,13 +0,0 @@
|
|||
CC=gcc
|
||||
CFLAGS=-I../include/ -I../ -std=c99 -fprofile-arcs -ftest-coverage -g3
|
||||
SOURCES=\
|
||||
history-test.c\
|
||||
../config/config.c\
|
||||
../source/history.c
|
||||
|
||||
history-test: $(SOURCES)
|
||||
$(CC) -o $@ $^ `pkg-config --libs --cflags glib-2.0` $(CFLAGS)
|
||||
|
||||
|
||||
test: history-test
|
||||
./$^
|
31
test/Makefile.am
Normal file
31
test/Makefile.am
Normal file
|
@ -0,0 +1,31 @@
|
|||
##
|
||||
# Rofi the program
|
||||
##
|
||||
bin_PROGRAMS=rofi_test
|
||||
|
||||
LIBS=\
|
||||
@xft_LIBS@\
|
||||
@x11_LIBS@\
|
||||
@xinerama_LIBS@\
|
||||
@pango_LIBS@
|
||||
|
||||
AM_CFLAGS=\
|
||||
@xft_CFLAGS@\
|
||||
@x11_CFLAGS@\
|
||||
@xinerama_CFLAGS@\
|
||||
@pango_CFLAGS@\
|
||||
-DMANPAGE_PATH="\"$(mandir)/man1/rofi.1\""\
|
||||
-I$(top_srcdir)/include/\
|
||||
-I$(top_srcdir)/config/\
|
||||
-I$(top_builddir)/
|
||||
|
||||
rofi_test_SOURCES=\
|
||||
../source/history.c\
|
||||
../config/config.c\
|
||||
../include/rofi.h\
|
||||
../include/history.h\
|
||||
history-test.c
|
||||
|
||||
.PHONY: test
|
||||
test: rofi_test
|
||||
./$^
|
Loading…
Reference in a new issue