From patchwork Wed Apr 2 10:41:43 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thomas Wood X-Patchwork-Id: 3928001 Return-Path: X-Original-To: patchwork-intel-gfx@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 827779F334 for ; Wed, 2 Apr 2014 10:41:51 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 9708B2026F for ; Wed, 2 Apr 2014 10:41:50 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id 7856C2024D for ; Wed, 2 Apr 2014 10:41:49 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id A28BF6EA4C; Wed, 2 Apr 2014 03:41:48 -0700 (PDT) X-Original-To: intel-gfx@lists.freedesktop.org Delivered-To: intel-gfx@lists.freedesktop.org Received: from mail-we0-f180.google.com (mail-we0-f180.google.com [74.125.82.180]) by gabe.freedesktop.org (Postfix) with ESMTP id 5FD6C6EA4C for ; Wed, 2 Apr 2014 03:41:46 -0700 (PDT) Received: by mail-we0-f180.google.com with SMTP id p61so7452429wes.25 for ; Wed, 02 Apr 2014 03:41:45 -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; bh=oZR52CeGBfCYuZLqi7P6lQINlhAgJZdvxJzoKYBcufY=; b=S1xkn5Ii3aVbm+FBMDV/64AnyzxUuv+vjG9FUNcc3iXlSX3TE8cPot7QQvMTmCUGJz dQjzjjkHHf4hwzjLCg0367yT8+7sx7UkRo6TidMDvvx+MFbjS+Kio/Sx93E2N5jybkdQ YXaGo4tC+LGaBAZiB03nXmnXtnSrL8Afui54DSdZqq4A11PzT3Tvq4E94cs5HPfyoFZp atiKwN1S0GEH8qcJ0V3MlKkL38oXzyce6D6fqk/rSux+njV8lF/wL62PJARXsahpL7vQ pUq9ELS0i3lP1jBE8CafFTBytFGUeoWmAMZFu6XbXbi6lPPj4re8xLvIwwHgvlhr4N3R REcA== X-Gm-Message-State: ALoCoQlsTLQkoEFR+A2rzkLef3l0hRlIlsurJUerXRTRlV3pRd8nZzQsGSWY133pSjtEuNwsFuSQ X-Received: by 10.180.108.199 with SMTP id hm7mr27437425wib.1.1396435305539; Wed, 02 Apr 2014 03:41:45 -0700 (PDT) Received: from pistachio.icx.intel.com ([83.217.123.106]) by mx.google.com with ESMTPSA id km2sm2335939wjb.13.2014.04.02.03.41.44 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 02 Apr 2014 03:41:44 -0700 (PDT) From: Thomas Wood To: intel-gfx@lists.freedesktop.org Date: Wed, 2 Apr 2014 11:41:43 +0100 Message-Id: <1396435303-30553-1-git-send-email-thomas.wood@intel.com> X-Mailer: git-send-email 1.9.0 Subject: [Intel-gfx] [PATCH i-g-t] tests: create files that list the available tests X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.15 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 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 --- 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)/.. \