summaryrefslogtreecommitdiffstats
path: root/test/Makefile.am
blob: 94893669b19b9c46b058ec7ee3368cd5985d6468 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
##
# Rofi the program
##
bin_PROGRAMS=rofi_test textbox_test helper_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

textbox_test_SOURCES=\
    ../source/textbox.c\
    ../config/config.c\
    ../include/rofi.h\
    ../include/textbox.h\
	textbox-test.c

helper_test_SOURCES=\
    helper-test.c\
    ../config/config.c\
    ../include/rofi.h\
    ../source/helper.c\
    ../include/helper.h

.PHONY: test
test: ${bin_PROGRAMS} 
	./rofi_test
	./helper_test
	$(top_srcdir)/test/run_test.sh 123 $(top_builddir)/test/textbox_test $(top_builddir)
	$(top_srcdir)/test/run_test.sh 200 $(top_srcdir)/test/run_errormsg_test.sh $(top_builddir)
	$(top_srcdir)/test/run_test.sh 201 $(top_srcdir)/test/run_switchdialog_test.sh $(top_builddir)
	$(top_srcdir)/test/run_test.sh 202 $(top_srcdir)/test/run_dmenu_test.sh $(top_builddir)
	$(top_srcdir)/test/run_test.sh 203 $(top_srcdir)/test/run_dmenu_custom_test.sh $(top_builddir)
	$(top_srcdir)/test/run_test.sh 204 $(top_srcdir)/test/run_run_test.sh $(top_builddir)
	$(top_srcdir)/test/run_test.sh 205 $(top_srcdir)/test/run_script_test.sh $(top_builddir)