* [PATCH i-g-t 1/2] build: fix distcheck
@ 2014-10-29 17:30 Thomas Wood
2014-10-29 17:30 ` [PATCH i-g-t 2/2] lib/tests: use the "check_" prefix for tests Thomas Wood
0 siblings, 1 reply; 3+ messages in thread
From: Thomas Wood @ 2014-10-29 17:30 UTC (permalink / raw)
To: intel-gfx; +Cc: Daniel Vetter
Fix distcheck issues introduced by commit 685e577 (Move library
selftests to lib/tests).
Cc: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Thomas Wood <thomas.wood@intel.com>
---
lib/tests/Makefile.am | 2 +-
tests/Makefile.sources | 1 -
2 files changed, 1 insertion(+), 2 deletions(-)
diff --git a/lib/tests/Makefile.am b/lib/tests/Makefile.am
index 808d31f..765e3e5 100644
--- a/lib/tests/Makefile.am
+++ b/lib/tests/Makefile.am
@@ -1,7 +1,7 @@
include Makefile.sources
EXTRA_PROGRAMS = $(TESTS_testsuite)
-EXTRA_DIST = $(TESTS_scripts)
+EXTRA_DIST = $(TESTS_testsuite_scripts)
CLEANFILES = $(EXTRA_PROGRAMS)
diff --git a/tests/Makefile.sources b/tests/Makefile.sources
index fed71c2..8debfec 100644
--- a/tests/Makefile.sources
+++ b/tests/Makefile.sources
@@ -214,7 +214,6 @@ scripts = \
ddx_intel_after_fbdev \
debugfs_wedged \
drm_lib.sh \
- igt_command_line.sh \
$(NULL)
IMAGES = pass.png 1080p-left.png 1080p-right.png
--
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] 3+ messages in thread
* [PATCH i-g-t 2/2] lib/tests: use the "check_" prefix for tests
2014-10-29 17:30 [PATCH i-g-t 1/2] build: fix distcheck Thomas Wood
@ 2014-10-29 17:30 ` Thomas Wood
2014-11-03 12:39 ` Daniel Vetter
0 siblings, 1 reply; 3+ messages in thread
From: Thomas Wood @ 2014-10-29 17:30 UTC (permalink / raw)
To: intel-gfx
The "check_" prefix ensures the test programs are not installed and are
only built when "make check" is run.
Signed-off-by: Thomas Wood <thomas.wood@intel.com>
---
lib/tests/Makefile.am | 5 +----
lib/tests/Makefile.sources | 12 ++++--------
2 files changed, 5 insertions(+), 12 deletions(-)
diff --git a/lib/tests/Makefile.am b/lib/tests/Makefile.am
index 765e3e5..78279fb 100644
--- a/lib/tests/Makefile.am
+++ b/lib/tests/Makefile.am
@@ -1,9 +1,6 @@
include Makefile.sources
-EXTRA_PROGRAMS = $(TESTS_testsuite)
-EXTRA_DIST = $(TESTS_testsuite_scripts)
-
-CLEANFILES = $(EXTRA_PROGRAMS)
+EXTRA_DIST = $(check_SCRIPTS)
AM_CFLAGS = $(DRM_CFLAGS) $(CWARNFLAGS) \
-I$(srcdir)/../.. \
diff --git a/lib/tests/Makefile.sources b/lib/tests/Makefile.sources
index b13314d..d64c89c 100644
--- a/lib/tests/Makefile.sources
+++ b/lib/tests/Makefile.sources
@@ -1,8 +1,4 @@
-noinst_PROGRAMS = \
- $(TESTS_testsuite) \
- $(NULL)
-
-TESTS_testsuite = \
+check_PROGRAMS = \
igt_no_exit \
igt_no_exit_list_only \
igt_fork_helper \
@@ -11,13 +7,13 @@ TESTS_testsuite = \
igt_simulation \
$(NULL)
-TESTS_testsuite_scripts = \
+check_SCRIPTS = \
igt_command_line.sh \
$(NULL)
TESTS = \
- $(TESTS_testsuite) \
- $(TESTS_testsuite_scripts) \
+ $(check_PROGRAMS) \
+ $(check_SCRIPTS) \
$(NULL)
# Test that exercise specific asserts in the test framework library and are
--
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] 3+ messages in thread
* Re: [PATCH i-g-t 2/2] lib/tests: use the "check_" prefix for tests
2014-10-29 17:30 ` [PATCH i-g-t 2/2] lib/tests: use the "check_" prefix for tests Thomas Wood
@ 2014-11-03 12:39 ` Daniel Vetter
0 siblings, 0 replies; 3+ messages in thread
From: Daniel Vetter @ 2014-11-03 12:39 UTC (permalink / raw)
To: Thomas Wood; +Cc: intel-gfx
On Wed, Oct 29, 2014 at 05:30:52PM +0000, Thomas Wood wrote:
> The "check_" prefix ensures the test programs are not installed and are
> only built when "make check" is run.
>
> Signed-off-by: Thomas Wood <thomas.wood@intel.com>
This was actually fairly intentional since when developing I always forget
to hit make check. And if I do I get pissed that make check _always_ runs
all the tests, which is annoying when developing/testing a specific
testcase.
So imo it's better to always build them, but not install them. Ok if I
revert this, or would that break distcheck again?
-Daniel
--
Daniel Vetter
Software Engineer, Intel Corporation
+41 (0) 79 365 57 48 - http://blog.ffwll.ch
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/intel-gfx
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2014-11-03 12:39 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-10-29 17:30 [PATCH i-g-t 1/2] build: fix distcheck Thomas Wood
2014-10-29 17:30 ` [PATCH i-g-t 2/2] lib/tests: use the "check_" prefix for tests Thomas Wood
2014-11-03 12:39 ` Daniel Vetter
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox