From patchwork Wed Mar 25 14:41:25 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thomas Wood X-Patchwork-Id: 6092431 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.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 7918BBF90F for ; Wed, 25 Mar 2015 14:41:32 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 8CFC820357 for ; Wed, 25 Mar 2015 14:41:31 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id A56D42010C for ; Wed, 25 Mar 2015 14:41:30 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 134EC6E879; Wed, 25 Mar 2015 07:41:30 -0700 (PDT) X-Original-To: intel-gfx@lists.freedesktop.org Delivered-To: intel-gfx@lists.freedesktop.org Received: from mail-wg0-f44.google.com (mail-wg0-f44.google.com [74.125.82.44]) by gabe.freedesktop.org (Postfix) with ESMTP id 3E78B6E879 for ; Wed, 25 Mar 2015 07:41:28 -0700 (PDT) Received: by wgra20 with SMTP id a20so29992261wgr.3 for ; Wed, 25 Mar 2015 07:41:27 -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=w2p6B60M73tyg6JsMK48XiXRIYvIP1mrDiLgS5uomsI=; b=Hf9FXbvMe1s+ETmFekKbEF7wJywmf2qG6RTtv5SxiCKBNPDI2x4zNwp23yvNS9OZbz yh6sVemMp/HChb/+uXTD1bxXAhdS4ba54aYkxLNE6kBv5/0DYD7o94G9EUlqgPW31Pnj QTqztUXVIpZengl20YSp/Emi4YrGCqN7dxb0kkVemMZPQzrY+dl61ahswQT7aN8aRTxT dcjnfNoltZluh0rEsRE+j7QrAH2pxklkCp5ty1Hjyc6+dLcvmbzGT1DDKY1dBvKUlCos AhrpMk8R7CtLPqlBraZz2LX6F0Ytg4n37XuWYsno5pZqrAQZPEvu4Nxtaf0C2QZGMvGk MlHw== X-Gm-Message-State: ALoCoQlYNHuQ+rCQA0zE0eeCmZb8EcFhjVJjUMuIXYfq8SeZkiNs0NGwOLIKn/4j9qU72LnUpgO2 X-Received: by 10.194.59.112 with SMTP id y16mr19448162wjq.36.1427294487326; Wed, 25 Mar 2015 07:41:27 -0700 (PDT) Received: from pistachio.icx.intel.com ([83.217.123.106]) by mx.google.com with ESMTPSA id u16sm4035633wjr.5.2015.03.25.07.41.26 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 25 Mar 2015 07:41:26 -0700 (PDT) From: Thomas Wood To: intel-gfx@lists.freedesktop.org Date: Wed, 25 Mar 2015 14:41:25 +0000 Message-Id: <1427294485-21221-1-git-send-email-thomas.wood@intel.com> X-Mailer: git-send-email 2.1.0 Subject: [Intel-gfx] [PATCH i-g-t] docs: limit the number of subtests listed 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.2 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, T_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 Avoid producing longs lists of subtests in the documentation and instead provide instructions on how to obtain the full list. Signed-off-by: Thomas Wood --- docs/reference/intel-gpu-tools/Makefile.am | 22 +++++++++++++++------- 1 file changed, 15 insertions(+), 7 deletions(-) diff --git a/docs/reference/intel-gpu-tools/Makefile.am b/docs/reference/intel-gpu-tools/Makefile.am index 0f10eaa..fa19701 100644 --- a/docs/reference/intel-gpu-tools/Makefile.am +++ b/docs/reference/intel-gpu-tools/Makefile.am @@ -46,13 +46,21 @@ xml/igt_test_programs_%_description.xml: $(TESTLISTS) echo "]]>" >> $@; \ if ./$$testprog --list-subtests > /dev/null ; then \ echo "Subtests" >> $@; \ - echo "" >> $@; \ - for subtest in `./$$testprog --list-subtests`; do \ - echo "" >> $@; \ - echo "$$subtest" | perl -pe 's/\b$(KEYWORDS)\b/\1<\/acronym>/g' >> $@; \ - echo "" >> $@; \ - done; \ - echo "" >> $@; \ + subtest_list=`./$$testprog --list-subtests`; \ + subtest_count=`echo $$subtest_list | wc -w`; \ + if [ $$subtest_count -gt 100 ]; then \ + echo "This test has over 100 subtests. " >> $@; \ + echo "Run $$test to list them." >> $@; \ + else \ + echo "" >> $@; \ + for subtest in $$subtest_list; do \ + echo "" >> $@; \ + echo "$$subtest" | perl -pe 's/\b$(KEYWORDS)\b/\1<\/acronym>/g' >> $@; \ + echo "" >> $@; \ + done; \ + echo "" >> $@; \ + fi; \ + echo "" >> $@; \ fi; \ echo "" >> $@; \ done;