forked from 12to11/12to11
Add new buffer scale tests
* 12to11-test.xml (test_manager): <error>: New errors `scale_lock_exists' and `invalid_scale'. (test_manager): <get_test_surface>: Reword documentation. (test_manager): <get_scale_lock>: New request. (test_scale_lock): New interface. * compositor.h: Update prototypes. * output.c (HandleScaleSettingChange): New function. Ignore scale changes while scale is locked. (XLInitRROutputs): Initialize real output scale. * test.c (DestroyScaleLock, SetScale, GetScaleLock): New functions. (test_manager_impl): Add new implementation. * tests/Imakefile (SYSTEM_LIBRARIES): Add MathLibrary. (SRCS7, OBJS7): Add scale_test.c/.o. (PROGRAMS): Add scale_test. (scale_test): New program target. * tests/run_tests.sh (standard_tests): Add scale_test. * tests/svnignore.txt: Add scale_test. * tests/test_harness.c (exit_with_code): New function. (open_test_display): Initialize scale. (report_test_failure): Call it instead of just exit. (test_set_scale): New function. (test_complete): Call exit_with_code. * tests/test_harness.h (struct test_display): New field `scale_lock'.
This commit is contained in:
parent
fa29286c98
commit
21aa7494cd
9 changed files with 233 additions and 17 deletions
|
@ -2,6 +2,7 @@
|
|||
|
||||
12TO11ROOT = ..
|
||||
DEPLIBS = $(DEPXLIB)
|
||||
SYS_LIBRARIES = MathLibrary
|
||||
LOCAL_LIBRARIES = $(WAYLAND_CLIENT) $(XLIB) $(PNG)
|
||||
COMMONOBJS = test_harness.o
|
||||
COMMONSRCS = test_harness.c
|
||||
|
@ -35,7 +36,9 @@ ScannerTarget(viewporter)
|
|||
OBJS5 = $(COMMONSRCS) viewporter_test.o
|
||||
SRCS6 = $(COMMONSRCS) subsurface_test.c
|
||||
OBJS6 = $(COMMONSRCS) subsurface_test.o
|
||||
PROGRAMS = imgview simple_test damage_test transform_test viewporter_test subsurface_test
|
||||
SRCS7 = $(COMMONSRCS) scale_test.c
|
||||
OBJS7 = $(COMMONSRCS) scale_test.o
|
||||
PROGRAMS = imgview simple_test damage_test transform_test viewporter_test subsurface_test scale_test
|
||||
|
||||
/* Make all objects depend on HEADER. */
|
||||
$(OBJS1): $(HEADER)
|
||||
|
@ -49,7 +52,9 @@ NormalProgramTarget(damage_test,$(OBJS3),NullParameter,$(LOCAL_LIBRARIES),NullPa
|
|||
NormalProgramTarget(transform_test,$(OBJS4),NullParameter,$(LOCAL_LIBRARIES),NullParameter)
|
||||
NormalProgramTarget(viewporter_test,$(OBJS5),NullParameter,$(LOCAL_LIBRARIES),NullParameter)
|
||||
NormalProgramTarget(subsurface_test,$(OBJS6),NullParameter,$(LOCAL_LIBRARIES),NullParameter)
|
||||
NormalProgramTarget(scale_test,$(OBJS7),NullParameter,$(LOCAL_LIBRARIES),NullParameter)
|
||||
DependTarget3($(SRCS1),$(SRCS2),$(SRCS3))
|
||||
DependTarget3($(SRCS4),$(SRCS5),$(SRCS6))
|
||||
DependTarget3($(SRCS7),NullParameter,NullParameter)
|
||||
|
||||
all:: $(PROGRAMS)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue