* [PATCH i-g-t] tests: create files that list the available tests
@ 2014-04-02 10:41 Thomas Wood
2014-04-02 11:51 ` Daniel Vetter
0 siblings, 1 reply; 2+ messages in thread
From: Thomas Wood @ 2014-04-02 10:41 UTC (permalink / raw)
To: intel-gfx
Add Makefile targets to create two text files containing the list of
available single and multi-test programs. This enables the tests to be
enumerated without requiring the build system.
Signed-off-by: Thomas Wood <thomas.wood@intel.com>
---
tests/.gitignore | 2 ++
tests/Makefile.am | 14 +++++++++++++-
2 files changed, 15 insertions(+), 1 deletion(-)
diff --git a/tests/.gitignore b/tests/.gitignore
index 8b94613..146bab0 100644
--- a/tests/.gitignore
+++ b/tests/.gitignore
@@ -117,6 +117,7 @@ kms_pipe_crc_basic
kms_plane
kms_render
kms_setmode
+multi-tests.txt
pm_lpsp
pm_pc8
pm_psr
@@ -127,5 +128,6 @@ prime_nv_pcopy
prime_nv_test
prime_self_import
prime_udl
+single-tests.txt
template
testdisplay
diff --git a/tests/Makefile.am b/tests/Makefile.am
index ba05eac..c26a3d0 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -5,6 +5,8 @@ if HAVE_NOUVEAU
endif
if BUILD_TESTS
+all-local: single-tests.txt multi-tests.txt
+
list-single-tests:
@echo TESTLIST
@echo ${single_kernel_tests}
@@ -15,10 +17,20 @@ list-multi-tests:
@echo ${multi_kernel_tests}
@echo END TESTLIST
+single-tests.txt:
+ @echo TESTLIST > $@
+ @echo ${single_kernel_tests} >> $@
+ @echo END TESTLIST >> $@
+
+multi-tests.txt:
+ @echo TESTLIST > $@
+ @echo ${multi_kernel_tests} >> $@
+ @echo END TESTLIST >> $@
+
EXTRA_PROGRAMS = $(TESTS_progs) $(TESTS_progs_M) $(HANG) $(TESTS_testsuite)
EXTRA_DIST = $(TESTS_scripts) $(TESTS_scripts_M) $(scripts) $(IMAGES) $(common_files)
-CLEANFILES = $(EXTRA_PROGRAMS)
+CLEANFILES = $(EXTRA_PROGRAMS) single-tests.txt multi-tests.txt
AM_CFLAGS = $(DRM_CFLAGS) $(CWARNFLAGS) \
-I$(srcdir)/.. \
--
1.9.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH i-g-t] tests: create files that list the available tests
2014-04-02 10:41 [PATCH i-g-t] tests: create files that list the available tests Thomas Wood
@ 2014-04-02 11:51 ` Daniel Vetter
0 siblings, 0 replies; 2+ messages in thread
From: Daniel Vetter @ 2014-04-02 11:51 UTC (permalink / raw)
To: Thomas Wood; +Cc: intel-gfx
On Wed, Apr 02, 2014 at 11:41:43AM +0100, Thomas Wood wrote:
> Add Makefile targets to create two text files containing the list of
> available single and multi-test programs. This enables the tests to be
> enumerated without requiring the build system.
>
> Signed-off-by: Thomas Wood <thomas.wood@intel.com>
Yay! Now once the piglit part is in I can finally stop breaking my igt
builds with root files ;-)
Thanks, patch merged.
-Daniel
> ---
> tests/.gitignore | 2 ++
> tests/Makefile.am | 14 +++++++++++++-
> 2 files changed, 15 insertions(+), 1 deletion(-)
>
> diff --git a/tests/.gitignore b/tests/.gitignore
> index 8b94613..146bab0 100644
> --- a/tests/.gitignore
> +++ b/tests/.gitignore
> @@ -117,6 +117,7 @@ kms_pipe_crc_basic
> kms_plane
> kms_render
> kms_setmode
> +multi-tests.txt
> pm_lpsp
> pm_pc8
> pm_psr
> @@ -127,5 +128,6 @@ prime_nv_pcopy
> prime_nv_test
> prime_self_import
> prime_udl
> +single-tests.txt
> template
> testdisplay
> diff --git a/tests/Makefile.am b/tests/Makefile.am
> index ba05eac..c26a3d0 100644
> --- a/tests/Makefile.am
> +++ b/tests/Makefile.am
> @@ -5,6 +5,8 @@ if HAVE_NOUVEAU
> endif
>
> if BUILD_TESTS
> +all-local: single-tests.txt multi-tests.txt
> +
> list-single-tests:
> @echo TESTLIST
> @echo ${single_kernel_tests}
> @@ -15,10 +17,20 @@ list-multi-tests:
> @echo ${multi_kernel_tests}
> @echo END TESTLIST
>
> +single-tests.txt:
> + @echo TESTLIST > $@
> + @echo ${single_kernel_tests} >> $@
> + @echo END TESTLIST >> $@
> +
> +multi-tests.txt:
> + @echo TESTLIST > $@
> + @echo ${multi_kernel_tests} >> $@
> + @echo END TESTLIST >> $@
> +
> EXTRA_PROGRAMS = $(TESTS_progs) $(TESTS_progs_M) $(HANG) $(TESTS_testsuite)
> EXTRA_DIST = $(TESTS_scripts) $(TESTS_scripts_M) $(scripts) $(IMAGES) $(common_files)
>
> -CLEANFILES = $(EXTRA_PROGRAMS)
> +CLEANFILES = $(EXTRA_PROGRAMS) single-tests.txt multi-tests.txt
>
> AM_CFLAGS = $(DRM_CFLAGS) $(CWARNFLAGS) \
> -I$(srcdir)/.. \
> --
> 1.9.0
>
> _______________________________________________
> Intel-gfx mailing list
> Intel-gfx@lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/intel-gfx
--
Daniel Vetter
Software Engineer, Intel Corporation
+41 (0) 79 365 57 48 - http://blog.ffwll.ch
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-04-02 11:51 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-04-02 10:41 [PATCH i-g-t] tests: create files that list the available tests Thomas Wood
2014-04-02 11:51 ` Daniel Vetter
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox