From patchwork Wed Oct 29 17:30:52 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thomas Wood X-Patchwork-Id: 5189741 Return-Path: X-Original-To: patchwork-intel-gfx@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 2EF3BC11AC for ; Wed, 29 Oct 2014 17:31:02 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 3CD9B201DD for ; Wed, 29 Oct 2014 17:31:01 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id 65E9F2024F for ; Wed, 29 Oct 2014 17:31:00 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id E6C476E824; Wed, 29 Oct 2014 10:30:59 -0700 (PDT) X-Original-To: intel-gfx@lists.freedesktop.org Delivered-To: intel-gfx@lists.freedesktop.org Received: from mail-wi0-f169.google.com (mail-wi0-f169.google.com [209.85.212.169]) by gabe.freedesktop.org (Postfix) with ESMTP id 399856E820 for ; Wed, 29 Oct 2014 10:30:57 -0700 (PDT) Received: by mail-wi0-f169.google.com with SMTP id n3so2161456wiv.0 for ; Wed, 29 Oct 2014 10:30:56 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references; bh=LEN7LShg7bq7fJ3J2lnhOnY6YCRX860XOCwvMYOcqYw=; b=C2V6AH7kZE07UOWPzxBY+x+peOuEBRV67n/O7Pk57HIn/QLzeo5XGzYcYHQvSInAj8 lpXD799vNKztwxfWAw/c1xcWcS8vLlRLLDyOx465L+YzQD0ImnsVRGDr7RXlU2O7vMEv WfCgmkiI2/zqh58Bgt5yK+d5YiDkBBKLgVm25+cKAhO6OiMtNvYnGZseG02GxXWxPB0+ NG1QKAZtoofFEZTc9yuJkvoxi8aWA/htgY8uPoKU20dc/hDdgZSr1DjM/YfFT8qdsXzG M1ensHrf/rIeOgQ0irve7oeB7zCfTC791qBisk0/weCqT3ShrJ8u6TtznOPH1mPsBItA l1vg== X-Gm-Message-State: ALoCoQl5x7HqpAAD6x15j6p6BxiMzWs1UUIRX6gnC56N3FcwsaqJSEmHTa9Bl/g2RrbeBwkW8mqx X-Received: by 10.194.201.198 with SMTP id kc6mr13789014wjc.77.1414603856280; Wed, 29 Oct 2014 10:30:56 -0700 (PDT) Received: from pistachio.icx.intel.com ([83.217.123.106]) by mx.google.com with ESMTPSA id au3sm5880295wjc.15.2014.10.29.10.30.55 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 29 Oct 2014 10:30:55 -0700 (PDT) From: Thomas Wood To: intel-gfx@lists.freedesktop.org Date: Wed, 29 Oct 2014 17:30:52 +0000 Message-Id: <1414603852-5024-2-git-send-email-thomas.wood@intel.com> X-Mailer: git-send-email 2.1.0 In-Reply-To: <1414603852-5024-1-git-send-email-thomas.wood@intel.com> References: <1414603852-5024-1-git-send-email-thomas.wood@intel.com> Subject: [Intel-gfx] [PATCH i-g-t 2/2] lib/tests: use the "check_" prefix for tests X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Intel graphics driver community testing & development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" X-Spam-Status: No, score=-4.8 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The "check_" prefix ensures the test programs are not installed and are only built when "make check" is run. Signed-off-by: Thomas Wood --- 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