diff options
author | QC <qball@gmpclient.org> | 2014-08-29 13:06:40 +0200 |
---|---|---|
committer | QC <qball@gmpclient.org> | 2014-08-29 13:06:40 +0200 |
commit | 79e729bd370528547dfe9c06cf7cb0bca9f0339d (patch) | |
tree | 17581bf95b1473d2654b0f8fa482b0bae4daf8d9 /test | |
parent | b7f6799af998bd9c27df9489e3ca23769df89cae (diff) |
Update the test to integrate in build.
* TODO: fix make distcheck.
Diffstat (limited to 'test')
-rw-r--r-- | test/Makefile | 13 | ||||
-rw-r--r-- | test/Makefile.am | 31 |
2 files changed, 31 insertions, 13 deletions
diff --git a/test/Makefile b/test/Makefile deleted file mode 100644 index 26bb0aea..00000000 --- a/test/Makefile +++ /dev/null @@ -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 - ./$^ diff --git a/test/Makefile.am b/test/Makefile.am new file mode 100644 index 00000000..0b4be914 --- /dev/null +++ b/test/Makefile.am @@ -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 + ./$^ |