forked from 12to11/12to11
Add seat testing mechanism and tests for seats
* 12to11-test.xml (test_manager): <error>: Add `invalid_button', `value_exists', `bad_seat_version' and `invalid_valuator'. (test_manager): <get_test_seat>: New request. (test_XIButtonState, test_XIModifierState, test_XIValuatorState) (test_seat_controller): New interfaces. * Imakefile: (seat.o): Depend on test_seat.c. * compositor.h: Update prototypes. * run.c (XLRunCompositor): Get rid of stdbool constant. * seat.c (HandleBind1): Move binding logic to this new function. (HandleBind): Call HandleBind1. (InitSeatCommon): Add list initialization to this function. (MakeSeatForDevicePair): Call InitSeatCommon instead. (HandleRawKey, UpdateModifiersForSeats, DispatchFocusIn) (DispatchMotion, DispatchBarrierHit, DispatchGesturePinch) (DispatchGestureSwipe): Do not update user time from send_event events. Include test_seat.c. * test.c (GetTestSeat): New function. (test_manager_impl): Add new proc function. (XLLookUpTestSurface): New function. * tests/Imakefile (OBJS8, SRCS8): New program. (PROGRAMS): Add seat_test. (seat_test): New function. * tests/run_tests.sh (standard_tests): Add seat_test. * tests/svnignore.txt: Add seat_test. * tests/test_harness.c (report_test_internal_error, test_init_seat): New functions. * tests/test_harness.h (struct test_seat): New struct. (struct test_display): New field `seat'.
This commit is contained in:
parent
ef456e4d24
commit
686f71c3b4
11 changed files with 455 additions and 31 deletions
|
@ -40,7 +40,9 @@ ScannerTarget(viewporter)
|
|||
OBJS6 = $(COMMONSRCS) subsurface_test.o
|
||||
SRCS7 = $(COMMONSRCS) scale_test.c
|
||||
OBJS7 = $(COMMONSRCS) scale_test.o
|
||||
PROGRAMS = imgview simple_test damage_test transform_test viewporter_test subsurface_test scale_test
|
||||
SRCS8 = $(COMMONSRCS) seat_test.c
|
||||
OBJS8 = $(COMMONSRCS) seat_test.o
|
||||
PROGRAMS = imgview simple_test damage_test transform_test viewporter_test subsurface_test scale_test seat_test
|
||||
|
||||
/* Make all objects depend on HEADER. */
|
||||
$(OBJS1): $(HEADER)
|
||||
|
@ -55,9 +57,10 @@ NormalProgramTarget(transform_test,$(OBJS4),NullParameter,$(LOCAL_LIBRARIES),Nul
|
|||
NormalProgramTarget(viewporter_test,$(OBJS5),NullParameter,$(LOCAL_LIBRARIES),NullParameter)
|
||||
NormalProgramTarget(subsurface_test,$(OBJS6),NullParameter,$(LOCAL_LIBRARIES),NullParameter)
|
||||
NormalProgramTarget(scale_test,$(OBJS7),NullParameter,$(LOCAL_LIBRARIES),NullParameter)
|
||||
NormalProgramTarget(seat_test,$(OBJS8),NullParameter,$(LOCAL_LIBRARIES),NullParameter)
|
||||
DependTarget3($(SRCS1),$(SRCS2),$(SRCS3))
|
||||
DependTarget3($(SRCS4),$(SRCS5),$(SRCS6))
|
||||
DependTarget3($(SRCS7),NullParameter,NullParameter)
|
||||
DependTarget3($(SRCS7),$(SRCS8),NullParameter)
|
||||
|
||||
all:: $(PROGRAMS)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue