From: Thomas Wood <thomas.wood@intel.com>
To: intel-gfx@lists.freedesktop.org
Subject: [PATCH i-g-t 2/2] lib/tests: use the "check_" prefix for tests
Date: Wed, 29 Oct 2014 17:30:52 +0000 [thread overview]
Message-ID: <1414603852-5024-2-git-send-email-thomas.wood@intel.com> (raw)
In-Reply-To: <1414603852-5024-1-git-send-email-thomas.wood@intel.com>
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
next prev parent reply other threads:[~2014-10-29 17:30 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-10-29 17:30 [PATCH i-g-t 1/2] build: fix distcheck Thomas Wood
2014-10-29 17:30 ` Thomas Wood [this message]
2014-11-03 12:39 ` [PATCH i-g-t 2/2] lib/tests: use the "check_" prefix for tests Daniel Vetter
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1414603852-5024-2-git-send-email-thomas.wood@intel.com \
--to=thomas.wood@intel.com \
--cc=intel-gfx@lists.freedesktop.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox