tests: cover frontend input-panel protocols
This commit is contained in:
@@ -12,13 +12,15 @@ IBUS_CFLAGS = $(shell pkg-config --cflags dbus-1 xkbcommon)
|
||||
IBUS_LIBS = $(shell pkg-config --libs dbus-1 xkbcommon)
|
||||
IBUS_CLIENT_CFLAGS = $(shell pkg-config --cflags ibus-1.0)
|
||||
IBUS_CLIENT_LIBS = $(shell pkg-config --libs ibus-1.0)
|
||||
X11_CFLAGS = $(shell pkg-config --cflags x11)
|
||||
X11_LIBS = $(shell pkg-config --libs x11)
|
||||
XIM_CFLAGS = $(shell pkg-config --cflags xcb-imdkit xkbcommon)
|
||||
XIM_LIBS = $(shell pkg-config --libs xcb-imdkit xkbcommon)
|
||||
LIBS = -lthread -lbio $(TEXT_LIBS) $(IBUS_LIBS) $(XIM_LIBS)
|
||||
|
||||
PROG = unit_test
|
||||
LIVE = ibus_live_test ibus_client_smoke gtk_live_test ipc_live_test \
|
||||
daemon_collision_test daemon_failure_test daemon_restart_test
|
||||
LIVE = ibus_live_test ibus_client_smoke gtk_live_test xim_live_test \
|
||||
ipc_live_test daemon_collision_test daemon_failure_test daemon_restart_test
|
||||
TESTSRC = unit_test.c test_util.c str_test.c hash_test.c trie_test.c \
|
||||
ko_test.c vi_test.c engine_test.c dict_test.c ipc_test.c \
|
||||
popup_test.c font_test.c ibus_test.c server_test.c xim_adapter_test.c
|
||||
@@ -35,6 +37,7 @@ check test: $(PROG) $(LIVE)
|
||||
./$(PROG) $(TESTARGS)
|
||||
./ibus_live_test ../strans ../map ./ibus_client_smoke
|
||||
./gtk_live_test ../gtk/im-strans.so
|
||||
./xim_live_test ../strans ../map
|
||||
./ipc_live_test ../strans ../map
|
||||
./daemon_collision_test ../strans ../map
|
||||
./daemon_failure_test ../strans
|
||||
@@ -54,6 +57,10 @@ gtk_live_test: gtk_live_test.c ../ipc.c ../ipc.h
|
||||
$(HOSTCC) -std=c99 -Wall -Wextra -O2 -g -I.. $(GTK_CFLAGS) -o $@ \
|
||||
gtk_live_test.c ../ipc.c $(GTK_LIBS) -pthread
|
||||
|
||||
xim_live_test: xim_live_test.c ../ipc.c ../ipc.h
|
||||
$(HOSTCC) -std=c99 -Wall -Wextra -O2 -g -I.. $(X11_CFLAGS) -o $@ \
|
||||
xim_live_test.c ../ipc.c $(X11_LIBS)
|
||||
|
||||
ipc_live_test: ipc_live_test.c ../ipc.c ../ipc.h
|
||||
$(HOSTCC) -std=c99 -Wall -Wextra -O2 -g -I.. -o $@ ipc_live_test.c ../ipc.c
|
||||
|
||||
|
||||
Reference in New Issue
Block a user