~ubuntu-branches/ubuntu/trusty/xorg-server-lts-xenial/trusty-updates

« back to all changes in this revision

Viewing changes to test/xi1/Makefile.am

  • Committer: Package Import Robot
  • Author(s): Timo Aaltonen
  • Date: 2016-05-03 14:02:21 UTC
  • Revision ID: package-import@ubuntu.com-20160503140221-722b5oen8it4o8h1
Tags: upstream-1.18.3
ImportĀ upstreamĀ versionĀ 1.18.3

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
if ENABLE_UNIT_TESTS
 
2
if HAVE_LD_WRAP
 
3
noinst_PROGRAMS =  \
 
4
        protocol-xchangedevicecontrol
 
5
 
 
6
TESTS=$(noinst_PROGRAMS)
 
7
TESTS_ENVIRONMENT = $(XORG_MALLOC_DEBUG_ENV)
 
8
 
 
9
AM_CFLAGS = $(DIX_CFLAGS) @XORG_CFLAGS@
 
10
AM_CPPFLAGS = @XORG_INCS@ -I$(srcdir)/../xi2
 
11
TEST_LDADD=../libxservertest.la $(XORG_SYS_LIBS) $(XSERVER_SYS_LIBS) $(GLX_SYS_LIBS)
 
12
COMMON_SOURCES=$(srcdir)/../xi2/protocol-common.c
 
13
 
 
14
if SPECIAL_DTRACE_OBJECTS
 
15
TEST_LDADD += $(OS_LIB) $(DIX_LIB)
 
16
endif
 
17
 
 
18
protocol_xchangedevicecontrol_LDADD=$(TEST_LDADD)
 
19
 
 
20
protocol_xchangedevicecontrol_LDFLAGS=$(AM_LDFLAGS) -Wl,-wrap,WriteToClient
 
21
 
 
22
protocol_xchangedevicecontrol_SOURCES=$(COMMON_SOURCES) protocol-xchangedevicecontrol.c
 
23
 
 
24
else
 
25
# Print that xi1-tests were skipped (exit code 77 for automake test harness)
 
26
TESTS = xi1-tests
 
27
CLEANFILES = $(TESTS)
 
28
 
 
29
xi1-tests:
 
30
        @echo 'echo "ld -wrap support required for xi1 unit tests, skipping"' > $@
 
31
        @echo 'exit 77' >> $@
 
32
        $(AM_V_GEN)chmod +x $@
 
33
endif
 
34
endif