From patchwork Wed Jan 28 16:56:51 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Thomas Wood X-Patchwork-Id: 5728781 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.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id A22AA9F399 for ; Wed, 28 Jan 2015 16:57:00 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id D3F4E202EB for ; Wed, 28 Jan 2015 16:56:59 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id F1410202FE for ; Wed, 28 Jan 2015 16:56:58 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 797606E748; Wed, 28 Jan 2015 08:56:58 -0800 (PST) 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 2E2736E738 for ; Wed, 28 Jan 2015 08:56:56 -0800 (PST) Received: by mail-we0-f180.google.com with SMTP id m14so21987978wev.11 for ; Wed, 28 Jan 2015 08:56:55 -0800 (PST) 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:mime-version:content-type:content-transfer-encoding; bh=eUXgf6/mKenvB9RultPIEd/fbPaKYi/dTo6XEw3hB4U=; b=IQNWdlkTASdNQAOFrM9LkaEIT0GzbBD7/sS6gBi4kLc2sV/EOkBAq3G+HMYUA5Jrd4 3Qf+uIgs2tYTOE8wugvUqKKSmvnQEOJXTxnTx3wqYsNPoG6snMzHATeyb4qJAyETIHet 0tTyWvcR0lc0IXJeXSg33Np3OxT1yAJbcfyV7hZDaPqombAKUfBLyYrAbHnf51/iRE+7 PB1ueU/gk5CbbnVvrLtjk/YM2HTSgMxlZDVIbi2dV7CE+AdPav7rfYFmlzAS8HFM2y/+ ceNcQImed/6BXTbLtW7cO9YJeXp9GqQLDs0oNuUdsA4hXI9nUrVZS3eMFY8ksty/pBmh 0O0w== X-Gm-Message-State: ALoCoQkjL0rVkWG/4vEf52+SlPcgUH2+GecAsdZV8LkptyGynNgraLCMu2EssRodTC+gq5bCXkck X-Received: by 10.180.103.40 with SMTP id ft8mr8800053wib.68.1422464215501; Wed, 28 Jan 2015 08:56:55 -0800 (PST) Received: from pistachio.icx.intel.com ([83.217.123.106]) by mx.google.com with ESMTPSA id 7sm6860479wjq.29.2015.01.28.08.56.54 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 28 Jan 2015 08:56:54 -0800 (PST) From: Thomas Wood To: intel-gfx@lists.freedesktop.org Date: Wed, 28 Jan 2015 16:56:51 +0000 Message-Id: <1422464211-26043-2-git-send-email-thomas.wood@intel.com> X-Mailer: git-send-email 2.1.0 In-Reply-To: <1422464211-26043-1-git-send-email-thomas.wood@intel.com> References: <1422464211-26043-1-git-send-email-thomas.wood@intel.com> MIME-Version: 1.0 Subject: [Intel-gfx] [PATCH i-g-t 2/2] lib/tests: check that invalid subtest names are rejected 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: , 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 Signed-off-by: Thomas Wood --- lib/tests/Makefile.sources | 2 ++ lib/tests/igt_invalid_subtest_name.c | 31 +++++++++++++++++++++++++++++++ 2 files changed, 33 insertions(+) create mode 100644 lib/tests/igt_invalid_subtest_name.c diff --git a/lib/tests/Makefile.sources b/lib/tests/Makefile.sources index 828baa4..ecd73ae 100644 --- a/lib/tests/Makefile.sources +++ b/lib/tests/Makefile.sources @@ -7,6 +7,7 @@ check_PROGRAMS = \ igt_simulation \ igt_simple_test_subtests \ igt_timeout \ + igt_invalid_subtest_name \ $(NULL) check_SCRIPTS = \ @@ -26,4 +27,5 @@ XFAIL_TESTS = \ igt_no_subtest \ igt_simple_test_subtests \ igt_timeout \ + igt_invalid_subtest_name \ $(NULL) diff --git a/lib/tests/igt_invalid_subtest_name.c b/lib/tests/igt_invalid_subtest_name.c new file mode 100644 index 0000000..418071d --- /dev/null +++ b/lib/tests/igt_invalid_subtest_name.c @@ -0,0 +1,31 @@ +/* + * Copyright © 2015 Intel Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a + * copy of this software and associated documentation files (the "Software"), + * to deal in the Software without restriction, including without limitation + * the rights to use, copy, modify, merge, publish, distribute, sublicense, + * and/or sell copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice (including the next + * paragraph) shall be included in all copies or substantial portions of the + * Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL + * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS + * IN THE SOFTWARE. + */ + +#include "igt_core.h" + +igt_main +{ + igt_subtest("# invalid name !") { + igt_info("Invalid subtest name test\n"); + } +}