All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH i-g-t v2 1/2] tests: create a single combined test list
@ 2015-04-09 16:13 Thomas Wood
  2015-04-09 16:13 ` [PATCH i-g-t 2/2] tests: install the " Thomas Wood
  0 siblings, 1 reply; 2+ messages in thread
From: Thomas Wood @ 2015-04-09 16:13 UTC (permalink / raw)
  To: intel-gfx

All tests now respond in a consistent way such that separate lists for
tests with and without subtests are no longer necessary.

v2: fix other references to the test list

Signed-off-by: Thomas Wood <thomas.wood@intel.com>
---
 docs/reference/intel-gpu-tools/Makefile.am |  2 +-
 lib/tests/igt_command_line.sh              |  2 +-
 tests/Makefile.am                          | 23 ++++-------------------
 3 files changed, 6 insertions(+), 21 deletions(-)

diff --git a/docs/reference/intel-gpu-tools/Makefile.am b/docs/reference/intel-gpu-tools/Makefile.am
index fa19701..0033295 100644
--- a/docs/reference/intel-gpu-tools/Makefile.am
+++ b/docs/reference/intel-gpu-tools/Makefile.am
@@ -1,6 +1,6 @@
 ## Process this file with automake to produce Makefile.in
 
-TESTLISTS = $(top_builddir)/tests/single-tests.txt $(top_builddir)/tests/multi-tests.txt
+TESTLISTS = $(top_builddir)/tests/test-list.txt
 KEYWORDS = (invalid|hang|swap|thrash|crc|tiled|tiling|rte|ctx|render|blt|bsd|vebox|exec|rpm)
 
 xml/igt_test_programs_%_programs.xml: $(TESTLISTS)
diff --git a/lib/tests/igt_command_line.sh b/lib/tests/igt_command_line.sh
index a057943..e83a548 100755
--- a/lib/tests/igt_command_line.sh
+++ b/lib/tests/igt_command_line.sh
@@ -25,7 +25,7 @@
 # Check that command line handling works consistently across all tests
 #
 
-TESTLIST=`cat $top_builddir/tests/single-tests.txt $top_builddir/tests/multi-tests.txt`
+TESTLIST=`cat $top_builddir/tests/test-list.txt`
 if [ $? -ne 0 ]; then
 	echo "Error: Could not read test lists"
 	exit 99
diff --git a/tests/Makefile.am b/tests/Makefile.am
index dc864f4..11f7f96 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -5,26 +5,11 @@ if HAVE_NOUVEAU
 endif
 
 if BUILD_TESTS
-all-local: single-tests.txt multi-tests.txt
+all-local: test-list.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
+test-list.txt: Makefile.sources
 	@echo TESTLIST > $@
-	@echo ${multi_kernel_tests} >> $@
+	@echo ${single_kernel_tests} ${multi_kernel_tests} >> $@
 	@echo END TESTLIST >> $@
 
 noinst_PROGRAMS = \
@@ -52,7 +37,7 @@ dist_pkgdata_DATA = \
 EXTRA_PROGRAMS = $(HANG)
 EXTRA_DIST = $(common_files)
 
-CLEANFILES = $(EXTRA_PROGRAMS) single-tests.txt multi-tests.txt
+CLEANFILES = $(EXTRA_PROGRAMS) test-list.txt
 
 AM_CFLAGS = $(DRM_CFLAGS) $(CWARNFLAGS) $(DEBUG_CFLAGS)\
 	-I$(srcdir)/.. \
-- 
2.1.0

_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/intel-gfx

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [PATCH i-g-t 2/2] tests: install the test list
  2015-04-09 16:13 [PATCH i-g-t v2 1/2] tests: create a single combined test list Thomas Wood
@ 2015-04-09 16:13 ` Thomas Wood
  0 siblings, 0 replies; 2+ messages in thread
From: Thomas Wood @ 2015-04-09 16:13 UTC (permalink / raw)
  To: intel-gfx

Cc: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Signed-off-by: Thomas Wood <thomas.wood@intel.com>
---
 tests/Makefile.am | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tests/Makefile.am b/tests/Makefile.am
index 11f7f96..d5fb4fd 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -5,8 +5,6 @@ if HAVE_NOUVEAU
 endif
 
 if BUILD_TESTS
-all-local: test-list.txt
-
 test-list.txt: Makefile.sources
 	@echo TESTLIST > $@
 	@echo ${single_kernel_tests} ${multi_kernel_tests} >> $@
@@ -34,6 +32,8 @@ dist_pkgdata_DATA = \
 	$(IMAGES) \
 	$(NULL)
 
+pkgdata_DATA = test-list.txt
+
 EXTRA_PROGRAMS = $(HANG)
 EXTRA_DIST = $(common_files)
 
-- 
2.1.0

_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/intel-gfx

^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-04-09 16:14 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-04-09 16:13 [PATCH i-g-t v2 1/2] tests: create a single combined test list Thomas Wood
2015-04-09 16:13 ` [PATCH i-g-t 2/2] tests: install the " Thomas Wood

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.