From 79c3bfde8a57cda3e523cca3135e375446852ae2 Mon Sep 17 00:00:00 2001 From: Dan Nicholson Date: Wed, 17 Jun 2009 07:18:23 -0700 Subject: xts5: Add tests for Xlib Chapter 12 - Event Handling Functions --- configure.ac | 1 + xts5/tset/Makefile.am | 33 ++++++++++++++++++++++++++++++-- xts5/tset/Xlib12/.gitignore | 28 +++++++++++++++++++++++++++ xts5/tset/Xlib12/Makefile.am | 41 ++++++++++++++++++++++++++++++++++++++++ xts5/tset/Xlib12/dsplynm/Test1.c | 4 ++-- 5 files changed, 103 insertions(+), 4 deletions(-) create mode 100644 xts5/tset/Xlib12/.gitignore create mode 100644 xts5/tset/Xlib12/Makefile.am diff --git a/configure.ac b/configure.ac index dcb2c3a5..02f37332 100644 --- a/configure.ac +++ b/configure.ac @@ -120,6 +120,7 @@ xts5/tset/Xlib8/Makefile xts5/tset/Xlib9/Makefile xts5/tset/Xlib10/Makefile xts5/tset/Xlib11/Makefile +xts5/tset/Xlib12/Makefile ]) AC_OUTPUT diff --git a/xts5/tset/Makefile.am b/xts5/tset/Makefile.am index e250167d..cc02569d 100644 --- a/xts5/tset/Makefile.am +++ b/xts5/tset/Makefile.am @@ -1,7 +1,7 @@ include ../common.mk SUBDIRS = Xproto Xopen Xlib3 Xlib4 Xlib5 Xlib6 Xlib7 Xlib8 Xlib9 Xlib10 \ - Xlib11 + Xlib11 Xlib12 CLEANFILES = */*/tet_lock DISTCLEANFILES = */*/*.log */*/*.log.tmp @@ -9,7 +9,7 @@ DISTCLEANFILES = */*/*.log */*/*.log.tmp .PHONY: $(TESTS) TESTS = $(Xproto_TESTS) $(Xopen_TESTS) $(Xlib3_TESTS) $(Xlib4_TESTS) \ $(Xlib5_TESTS) $(Xlib6_TESTS) $(Xlib7_TESTS) $(Xlib8_TESTS) \ - $(Xlib9_TESTS) $(Xlib10_TESTS) $(Xlib11_TESTS) + $(Xlib9_TESTS) $(Xlib10_TESTS) $(Xlib11_TESTS) $(Xlib12_TESTS) # Helpful pattern target for testing subsets (test-Xopen, etc.) test-%: @@ -516,3 +516,32 @@ Xlib11_TESTS = \ SelectionRequest \ UnmapNotify \ VisibilityNotify + +Xlib12_TESTS = \ + XCheckIfEvent \ + XCheckMaskEvent \ + XCheckTypedEvent \ + XCheckTypedWindowEvent \ + XCheckWindowEvent \ + XDisplayMotionBufferSize \ + XDisplayName \ + XEventsQueued \ + XFlush \ + XGetErrorDatabaseText \ + XGetErrorText \ + XGetMotionEvents \ + XIfEvent \ + XMaskEvent \ + XNextEvent \ + XPeekEvent \ + XPeekIfEvent \ + XPending \ + XPutBackEvent \ + XSelectInput \ + XSendEvent \ + XSetAfterFunction \ + XSetErrorHandler \ + XSetIOErrorHandler \ + XSync \ + XSynchronize \ + XWindowEvent diff --git a/xts5/tset/Xlib12/.gitignore b/xts5/tset/Xlib12/.gitignore new file mode 100644 index 00000000..4d1aeb22 --- /dev/null +++ b/xts5/tset/Xlib12/.gitignore @@ -0,0 +1,28 @@ +chckifevnt/chckifevnt +chckmskevn/chckmskevn +chcktypdev/chcktypdev +chcktypdwd/chcktypdwd +chckwdwevn/chckwdwevn +dsplymtnbf/dsplymtnbf +dsplynm/dsplynm +dsplynm/Test1 +evntsqd/evntsqd +flsh/flsh +gterrrdtbs/gterrrdtbs +gterrrtxt/gterrrtxt +gtmtnevnts/gtmtnevnts +ifevnt/ifevnt +mskevnt/mskevnt +nxtevnt/nxtevnt +pkevnt/pkevnt +pkifevnt/pkifevnt +pndng/pndng +ptbckevnt/ptbckevnt +slctinpt/slctinpt +sndevnt/sndevnt +staftrfnct/staftrfnct +sterrrhndl/sterrrhndl +stioerrrhn/stioerrrhn +sync/sync +synchrnz/synchrnz +wdwevnt/wdwevnt diff --git a/xts5/tset/Xlib12/Makefile.am b/xts5/tset/Xlib12/Makefile.am new file mode 100644 index 00000000..6080b1d3 --- /dev/null +++ b/xts5/tset/Xlib12/Makefile.am @@ -0,0 +1,41 @@ +include ../../common.mk + +AM_CFLAGS = $(XTS_LCFLAGS) $(XTS_CFLAGS) +LDADD = $(TCM) $(XTS_LLIBS) $(XTS_LIBS) + +check_PROGRAMS = $(tprogs) +BUILT_SOURCES = $(tprogs:$(EXEEXT)=.c) +CLEANFILES = $(BUILT_SOURCES) + +tprogs = \ + chckifevnt/chckifevnt \ + chckmskevn/chckmskevn \ + chcktypdev/chcktypdev \ + chcktypdwd/chcktypdwd \ + chckwdwevn/chckwdwevn \ + dsplymtnbf/dsplymtnbf \ + dsplynm/dsplynm \ + evntsqd/evntsqd \ + flsh/flsh \ + gterrrdtbs/gterrrdtbs \ + gterrrtxt/gterrrtxt \ + gtmtnevnts/gtmtnevnts \ + ifevnt/ifevnt \ + mskevnt/mskevnt \ + nxtevnt/nxtevnt \ + pkevnt/pkevnt \ + pkifevnt/pkifevnt \ + pndng/pndng \ + ptbckevnt/ptbckevnt \ + slctinpt/slctinpt \ + sndevnt/sndevnt \ + staftrfnct/staftrfnct \ + sterrrhndl/sterrrhndl \ + stioerrrhn/stioerrrhn \ + sync/sync \ + synchrnz/synchrnz \ + wdwevnt/wdwevnt + +# Auxiliary programs run from tests +check_PROGRAMS += dsplynm/Test1 +dsplynm_Test1_LDADD = $(TCMCHILD) $(XTS_LLIBS) $(XTS_LIBS) diff --git a/xts5/tset/Xlib12/dsplynm/Test1.c b/xts5/tset/Xlib12/dsplynm/Test1.c index 1abdd820..32424a79 100644 --- a/xts5/tset/Xlib12/dsplynm/Test1.c +++ b/xts5/tset/Xlib12/dsplynm/Test1.c @@ -108,8 +108,8 @@ purpose. It is provided "as is" without express or implied warranty. #include #include "xtest.h" -#include "Xlib.h" -#include "Xutil.h" +#include +#include #include "tet_api.h" #include "xtestlib.h" #include "pixval.h" -- cgit v1.2.3