mirror of
https://gitlab.freedesktop.org/mesa/drm.git
synced 2026-01-06 06:10:18 +01:00
This adds some basic unit tests for the new amdgpu driver.
v2: use common util_math.h
v3: implement suggestions from Emil
replace malloc/memset with calloc
make header guards all caps
use posix_memalign rather than mem_align
replace malloc with calloc for pm4 allocations
make CU_SuiteInfo static
fix Makefile.am
fix fd numbering
use drmGetVersion/drmFreeVersion rather than open coding it
close fd, clean up CU registry on error
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
26 lines
443 B
Makefile
26 lines
443 B
Makefile
AM_CFLAGS = \
|
|
-I $(top_srcdir)/include/drm \
|
|
-I $(top_srcdir)/amdgpu \
|
|
-I $(top_srcdir)
|
|
|
|
LDADD = $(top_builddir)/libdrm.la \
|
|
$(top_builddir)/amdgpu/libdrm_amdgpu.la \
|
|
$(CUNIT_LIBS)
|
|
|
|
if HAVE_INSTALL_TESTS
|
|
bin_PROGRAMS = \
|
|
amdgpu_test
|
|
else
|
|
noinst_PROGRAMS = \
|
|
amdgpu_test
|
|
endif
|
|
|
|
amdgpu_test_CPPFLAGS = $(CUNIT_CFLAGS)
|
|
|
|
amdgpu_test_SOURCES = \
|
|
amdgpu_test.c \
|
|
amdgpu_test.h \
|
|
basic_tests.c \
|
|
bo_tests.c \
|
|
cs_tests.c \
|
|
uvd_messages.h
|