blob: ef9bbad261f220dfc57d8732a4f78628766d85c2 [file] [log] [blame]
Daniel Vetterafa940c2011-04-09 20:15:10 +02001if HAVE_DRM
Daniel Vettera6751ba2011-03-31 23:29:25 +02002noinst_PROGRAMS = \
Daniel Vetter08cf5372011-03-19 21:34:55 +01003 gem_stress \
Daniel Vetterf3616642011-10-30 20:51:03 +01004 $(TESTS_progs) \
Daniel Vetterba2255a2011-09-14 14:58:55 +02005 $(HANG) \
Daniel Vetter08cf5372011-03-19 21:34:55 +01006 $(NULL)
7
Daniel Vettera6751ba2011-03-31 23:29:25 +02008gem_stress_SOURCES = \
9 gem_stress.c \
10 gem_stress.h \
Daniel Vetter4fcfc9f2011-03-31 23:30:17 +020011 gem_stress_i915.c \
Chris Wilson719ffef2011-05-22 10:34:12 +010012 gem_stress_i830.c \
13 gen6_render.h \
14 gem_stress_gen6.c \
15 $(NULL)
Daniel Vettera6751ba2011-03-31 23:29:25 +020016
Daniel Vetterf3616642011-10-30 20:51:03 +010017TESTS_progs = \
18 getversion \
Eric Anholt8c641832009-03-26 17:15:11 -070019 getclient \
20 getstats \
Eric Anholt8c641832009-03-26 17:15:11 -070021 gem_basic \
Chris Wilson07d59b32011-01-20 22:10:10 +000022 gem_exec_nop \
Chris Wilson5fc09c82011-01-21 00:43:11 +000023 gem_exec_blt \
Eric Anholt8c641832009-03-26 17:15:11 -070024 gem_flink \
25 gem_readwrite \
Eric Anholt302d15f2009-04-27 09:35:40 -070026 gem_ringfill \
Eric Anholt3b301df2009-04-03 14:23:06 -070027 gem_mmap \
Chris Wilson9de433a2011-06-20 13:53:12 +010028 gem_mmap_gtt \
Chris Wilson5fc09c82011-01-21 00:43:11 +000029 gem_pwrite \
Eric Anholtcd9ba0a2009-04-07 16:18:11 -070030 gem_pread_after_blit \
Eric Anholt548a6a72009-04-07 16:21:16 -070031 gem_tiled_pread \
Chris Wilson9fd7e352011-02-01 19:22:32 +000032 gem_linear_blits \
Chris Wilsona0a0b6a2011-07-08 14:54:32 +010033 gem_vmap_blits \
Jesse Barnes433e1c82009-05-14 14:39:48 -070034 gem_tiled_blits \
Chris Wilson371f87f2011-02-01 10:53:57 +000035 gem_tiled_fence_blits \
Jesse Barnesbbafc3d2009-06-18 18:07:47 -070036 gem_largeobject \
Chris Wilson89080552011-06-23 14:04:35 +010037 gem_bad_length \
Chris Wilsonf19a1942010-12-23 12:44:51 +000038 gem_fence_thrash \
Chris Wilson3ca054c2011-06-04 21:41:11 +010039 gem_fenced_exec_thrash \
Chris Wilsonf19a1942010-12-23 12:44:51 +000040 gem_gtt_speed \
Chris Wilson20b69032011-06-05 11:20:34 +010041 gen3_render_linear_blits \
42 gen3_render_tiledx_blits \
43 gen3_render_tiledy_blits \
Chris Wilsonf5e63b12011-06-05 17:23:09 +010044 gen3_render_mixed_blits \
45 gen3_mixed_blits \
Daniel Vetter32f49c72011-09-08 10:50:37 +020046 gem_storedw_loop_render \
47 gem_storedw_loop_blt \
48 gem_storedw_loop_bsd \
Jesse Barnes922214f2011-08-12 12:51:34 -070049 gem_storedw_batches_loop \
Daniel Vetter61b98062011-09-09 20:44:27 +020050 gem_dummy_reloc_loop \
Daniel Vetterb8245e12011-09-12 20:45:06 +020051 gem_double_irq_loop \
Daniel Vetter61b98062011-09-09 20:44:27 +020052 gem_ring_sync_loop \
Daniel Vetterfbf89502011-09-07 09:31:00 +020053 gem_pipe_control_store_loop \
Daniel Vetter1c6511f2011-10-16 21:13:34 +020054 gem_hangcheck_forcewake \
Daniel Vetter5ef806b2011-10-28 17:39:14 +020055 gem_unref_active_buffers \
Chris Wilsonf19a1942010-12-23 12:44:51 +000056 $(NULL)
Eric Anholt8c641832009-03-26 17:15:11 -070057
Daniel Vetter91b3c7f2011-10-30 21:24:12 +010058TESTS_scripts = \
59 debugfs_reader \
60 $(NULL)
61
Daniel Vetter20ff3832011-10-30 22:27:19 +010062kernel_tests = \
63 $(TESTS_progs) \
Daniel Vetter91b3c7f2011-10-30 21:24:12 +010064 $(TESTS_scripts) \
65 $(NULL)
Daniel Vetterf3616642011-10-30 20:51:03 +010066
Daniel Vetter20ff3832011-10-30 22:27:19 +010067TESTS = \
68 $(NULL)
69
70test:
Daniel Vetterd4cc95b2011-10-31 16:04:34 +010071 whoami | grep root || ( echo ERROR: not running as root; exit 1 )
72 ./check_drm_clients
Daniel Vetter20ff3832011-10-30 22:27:19 +010073 make TESTS="${kernel_tests}" check
74
Chris Wilsond4127e02011-02-09 10:24:39 +000075HANG = \
Chris Wilson84c32bd2011-03-05 09:01:01 +000076 gem_bad_batch \
Chris Wilsond4127e02011-02-09 10:24:39 +000077 gem_hang \
Daniel Vetter2c380c22011-09-14 11:06:03 +020078 gem_bad_blit \
Daniel Vetter32910232011-10-31 23:19:08 +010079 gem_bad_address \
Chris Wilsond4127e02011-02-09 10:24:39 +000080 $(NULL)
81
Daniel Vetterf3616642011-10-30 20:51:03 +010082EXTRA_PROGRAMS = $(TESTS_progs) $(HANG)
Daniel Vetterd4cc95b2011-10-31 16:04:34 +010083EXTRA_DIST = $(TESTS_scripts) check_drm_clients
Eric Anholt895a4152009-03-26 18:47:42 -070084CLEANFILES = $(EXTRA_PROGRAMS)
85
86AM_CFLAGS = $(DRM_CFLAGS) $(WARN_CFLAGS) \
87 -I$(srcdir)/.. \
88 -I$(srcdir)/../lib
Eric Anholt3b301df2009-04-03 14:23:06 -070089LDADD = ../lib/libintel_tools.la $(PCIACCESS_LIBS) $(DRM_LIBS)
Chris Wilson8f3f8622009-09-01 10:09:55 +010090
Jesse Barnes5406c632010-12-21 09:38:23 -080091if HAVE_CAIRO
92if HAVE_LIBUDEV
93if HAVE_GLIB
Daniel Vetterf3616642011-10-30 20:51:03 +010094TESTS_progs += testdisplay
Jesse Barnes5406c632010-12-21 09:38:23 -080095LDADD += $(CAIRO_LIBS) $(LIBUDEV_LIBS) $(GLIB_LIBS)
96AM_CFLAGS += $(CAIRO_CFLAGS) $(LIBUDEV_CFLAGS) $(GLIB_CFLAGS)
97endif
98endif
99endif
100
Chris Wilson8f3f8622009-09-01 10:09:55 +0100101gem_fence_thrash_CFLAGS = $(AM_CFLAGS) -pthread
102gem_fence_thrash_LDADD = $(LDADD) -lpthread
Daniel Vetterafa940c2011-04-09 20:15:10 +0200103endif