mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2025-07-02 12:16:13 +00:00
Install the test programs by default so that they can be packaged. Tested with the testdisplay test so that it still runs after the modifications as it depends on a data file to be present. Need to pass -r option to enable QR code display on success (PNG data file). Packaging is useful when building a complete software stack for a DUT from scratch. This should bring us closer to achieving a built-from-scratch testing workflow. Package maintainers can always decide to ignore the installed files. v2: - Install more tests including scripts and their data v3: - Add clarification to commit message about why we do this. (Chris Wilson & Thomas Wood) - Change libexec into pkglibexec to comply to standard (Thomas Wood) - Do not install $(common_files). (Thomas Wood) - Make it really obvious the installed files are tests by using tests directory name to avoid any confusion with packagers. v4: - Fixed commit message. v5: - Add file locator helper to retain backwards compatibility. (Thomas Wood) - Test with testdisplay -r option that draws the .png file. Cc: Chris Wilson <chris@chris-wilson.co.uk> Cc: Thomas Wood <thomas.wood@intel.com> Signed-off-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com> Signed-off-by: Thomas Wood <thomas.wood@intel.com>
106 lines
3.2 KiB
Makefile
106 lines
3.2 KiB
Makefile
include Makefile.sources
|
|
|
|
if HAVE_NOUVEAU
|
|
TESTS_progs_M += $(NOUVEAU_TESTS_M)
|
|
endif
|
|
|
|
if BUILD_TESTS
|
|
all-local: single-tests.txt multi-tests.txt
|
|
|
|
list-single-tests:
|
|
@echo TESTLIST
|
|
@echo ${single_kernel_tests}
|
|
@echo END TESTLIST
|
|
|
|
list-multi-tests:
|
|
@echo TESTLIST
|
|
@echo ${multi_kernel_tests}
|
|
@echo END TESTLIST
|
|
|
|
single-tests.txt: Makefile.sources
|
|
@echo TESTLIST > $@
|
|
@echo ${single_kernel_tests} >> $@
|
|
@echo END TESTLIST >> $@
|
|
|
|
multi-tests.txt: Makefile.sources
|
|
@echo TESTLIST > $@
|
|
@echo ${multi_kernel_tests} >> $@
|
|
@echo END TESTLIST >> $@
|
|
|
|
igt_tests_bin_PROGRAMS += \
|
|
$(TESTS_progs) \
|
|
$(TESTS_progs_M) \
|
|
$(NULL)
|
|
|
|
igt_tests_bin_SCRIPTS += \
|
|
$(TESTS_scripts) \
|
|
$(TESTS_scripts_M) \
|
|
$(scripts) \
|
|
$(NULL)
|
|
|
|
igt_tests_data_DATA += \
|
|
$(IMAGES) \
|
|
$(NULL)
|
|
|
|
EXTRA_PROGRAMS = $(HANG)
|
|
EXTRA_DIST = $(common_files)
|
|
|
|
CLEANFILES = $(EXTRA_PROGRAMS) single-tests.txt multi-tests.txt
|
|
|
|
AM_CFLAGS = $(DRM_CFLAGS) $(CWARNFLAGS) $(DEBUG_CFLAGS)\
|
|
-I$(srcdir)/.. \
|
|
-I$(srcdir)/../lib \
|
|
-include "$(srcdir)/../lib/check-ndebug.h" \
|
|
-DIGT_SRCDIR=\""$(abs_srcdir)"\" \
|
|
-DIGT_DATADIR=\""$(igt_tests_datadir)"\" \
|
|
$(LIBUNWIND_CFLAGS) \
|
|
$(NULL)
|
|
|
|
LDADD = ../lib/libintel_tools.la $(PCIACCESS_LIBS) $(DRM_LIBS) $(LIBUNWIND_LIBS)
|
|
|
|
LDADD += $(CAIRO_LIBS) $(LIBUDEV_LIBS) $(GLIB_LIBS)
|
|
AM_CFLAGS += $(CAIRO_CFLAGS) $(LIBUDEV_CFLAGS) $(GLIB_CFLAGS)
|
|
|
|
drm_import_export_CFLAGS = $(AM_CFLAGS) $(THREAD_CFLAGS)
|
|
drm_import_export_LDADD = $(LDADD) -lpthread
|
|
gem_close_race_CFLAGS = $(AM_CFLAGS) $(THREAD_CFLAGS)
|
|
gem_close_race_LDADD = $(LDADD) -lpthread
|
|
gem_ctx_basic_CFLAGS = $(AM_CFLAGS) $(THREAD_CFLAGS)
|
|
gem_ctx_basic_LDADD = $(LDADD) -lpthread
|
|
gem_ctx_thrash_CFLAGS = $(AM_CFLAGS) $(THREAD_CFLAGS)
|
|
gem_ctx_thrash_LDADD = $(LDADD) -lpthread
|
|
gem_concurrent_all_SOURCES = gem_concurrent.c
|
|
gem_concurrent_blit_SOURCES = gem_concurrent.c
|
|
gem_fence_thrash_CFLAGS = $(AM_CFLAGS) $(THREAD_CFLAGS)
|
|
gem_fence_thrash_LDADD = $(LDADD) -lpthread
|
|
gem_fence_upload_CFLAGS = $(AM_CFLAGS) $(THREAD_CFLAGS)
|
|
gem_fence_upload_LDADD = $(LDADD) -lpthread
|
|
gem_flink_race_CFLAGS = $(AM_CFLAGS) $(THREAD_CFLAGS)
|
|
gem_flink_race_LDADD = $(LDADD) -lpthread
|
|
gem_mmap_gtt_CFLAGS = $(AM_CFLAGS) $(THREAD_CFLAGS)
|
|
gem_mmap_gtt_LDADD = $(LDADD) -lpthread
|
|
gem_mmap_wc_CFLAGS = $(AM_CFLAGS) $(THREAD_CFLAGS)
|
|
gem_mmap_wc_LDADD = $(LDADD) -lpthread
|
|
gem_threaded_access_tiled_CFLAGS = $(AM_CFLAGS) $(THREAD_CFLAGS)
|
|
gem_threaded_access_tiled_LDADD = $(LDADD) -lpthread
|
|
gem_tiled_swapping_CFLAGS = $(AM_CFLAGS) $(THREAD_CFLAGS)
|
|
gem_tiled_swapping_LDADD = $(LDADD) -lpthread
|
|
prime_self_import_CFLAGS = $(AM_CFLAGS) $(THREAD_CFLAGS)
|
|
prime_self_import_LDADD = $(LDADD) -lpthread
|
|
gen7_forcewake_mt_CFLAGS = $(AM_CFLAGS) $(THREAD_CFLAGS)
|
|
gen7_forcewake_mt_LDADD = $(LDADD) -lpthread
|
|
gem_userptr_blits_CFLAGS = $(AM_CFLAGS) $(THREAD_CFLAGS)
|
|
gem_userptr_blits_LDADD = $(LDADD) -lpthread
|
|
|
|
gem_wait_LDADD = $(LDADD) -lrt
|
|
kms_flip_LDADD = $(LDADD) -lrt -lpthread
|
|
|
|
prime_nv_test_CFLAGS = $(AM_CFLAGS) $(DRM_NOUVEAU_CFLAGS)
|
|
prime_nv_test_LDADD = $(LDADD) $(DRM_NOUVEAU_LIBS)
|
|
prime_nv_api_CFLAGS = $(AM_CFLAGS) $(DRM_NOUVEAU_CFLAGS)
|
|
prime_nv_api_LDADD = $(LDADD) $(DRM_NOUVEAU_LIBS)
|
|
prime_nv_pcopy_CFLAGS = $(AM_CFLAGS) $(DRM_NOUVEAU_CFLAGS)
|
|
prime_nv_pcopy_LDADD = $(LDADD) $(DRM_NOUVEAU_LIBS)
|
|
endif
|
|
|