From patchwork Thu Oct 30 16:49:00 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thomas Wood X-Patchwork-Id: 5198921 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 6B2249F30B for ; Thu, 30 Oct 2014 16:49:14 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 9E03E201CD for ; Thu, 30 Oct 2014 16:49:13 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id D294F2015D for ; Thu, 30 Oct 2014 16:49:12 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 562866E0B3; Thu, 30 Oct 2014 09:49:12 -0700 (PDT) X-Original-To: intel-gfx@lists.freedesktop.org Delivered-To: intel-gfx@lists.freedesktop.org Received: from mail-wg0-f45.google.com (mail-wg0-f45.google.com [74.125.82.45]) by gabe.freedesktop.org (Postfix) with ESMTP id EFCDF6E0B3 for ; Thu, 30 Oct 2014 09:49:10 -0700 (PDT) Received: by mail-wg0-f45.google.com with SMTP id x12so4759663wgg.18 for ; Thu, 30 Oct 2014 09:49:10 -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=gnI5Vq6XRpwhyJCBlDd/0ZZfSxli3f5b+0u1iNyz1og=; b=Yf0Wi9LlX4QuGMU8vUeXuB12zrEB7IDVVyHqmMTGos8X4spglGZkZO3covYY5qVK44 1o6+p/EkiK43u9fe+Wqmts/wJJofwKAwwM9ICXJQt8C/KJs0QgEodEHlK/GOhHMIa/kC 9R5T7gMg+GDmWPUm52YalkTeaXsuozB8MpRJqwyFoinsdVG0Ixcy6zigwV0y47vm3kD5 6b02Keo/eq14zGDb8CoH5lTnVQhPFcJRCdGltGOzztdssFveD3Cxe+eNxqhs7U+LJg47 4CeQlwq71cNgpltqxVSvBD2WEG66y7/nRkEibKmlp1MOcEQpp86pPwTog7m7aVtDJt0J H9zg== X-Gm-Message-State: ALoCoQl4CcwIJTt9ot/ZW70HmKf5aCEfAxCOE4WmkFWtsj0W+kCFwzuFWfbNiF3zf3eN6T5wkHeL X-Received: by 10.180.83.37 with SMTP id n5mr45035610wiy.7.1414687750276; Thu, 30 Oct 2014 09:49:10 -0700 (PDT) Received: from pistachio.icx.intel.com ([83.217.123.106]) by mx.google.com with ESMTPSA id k10sm9264702wjb.28.2014.10.30.09.49.09 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 30 Oct 2014 09:49:09 -0700 (PDT) From: Thomas Wood To: intel-gfx@lists.freedesktop.org Date: Thu, 30 Oct 2014 16:49:00 +0000 Message-Id: <1414687741-7830-6-git-send-email-thomas.wood@intel.com> X-Mailer: git-send-email 2.1.0 In-Reply-To: <1414687741-7830-1-git-send-email-thomas.wood@intel.com> References: <1414687741-7830-1-git-send-email-thomas.wood@intel.com> Subject: [Intel-gfx] [PATCH i-g-t v2 5/6] testdisplay: add a test description 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 Signed-off-by: Thomas Wood --- tests/testdisplay.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/testdisplay.c b/tests/testdisplay.c index 09e07f0..d00d64a 100644 --- a/tests/testdisplay.c +++ b/tests/testdisplay.c @@ -72,6 +72,7 @@ #include #define SUBTEST_OPTS 1 +#define HELP_DESCRIPTION 2 static int tio_fd; struct termios saved_tio; @@ -642,6 +643,7 @@ int main(int argc, char **argv) struct option long_opts[] = { {"list-subtests", 0, 0, SUBTEST_OPTS}, {"run-subtest", 1, 0, SUBTEST_OPTS}, + {"help-description", 0, 0, HELP_DESCRIPTION}, { 0, 0, 0, 0 } }; @@ -704,6 +706,10 @@ int main(int argc, char **argv) /* invalid subtest options */ exit(IGT_EXIT_INVALID); break; + case HELP_DESCRIPTION: + printf("Tests display functionality."); + exit(0); + break; default: /* fall through */ case 'h':