From: Daniel Vetter Subject: [PATCH] NEWS: Mention igt.cocci Date: Fri, 13 Jun 2014 16:24:07 +0200 Message-ID: <1402669447-3297-1-git-send-email-daniel.vetter@ffwll.ch> References: <1402667255-15770-1-git-send-email-daniel.vetter@ffwll.ch> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail-we0-f180.google.com (mail-we0-f180.google.com [74.125.82.180]) by gabe.freedesktop.org (Postfix) with ESMTP id B21126E2DB for ; Fri, 13 Jun 2014 07:24:17 -0700 (PDT) Received: by mail-we0-f180.google.com with SMTP id x48so2872802wes.11 for ; Fri, 13 Jun 2014 07:24:16 -0700 (PDT) In-Reply-To: <1402667255-15770-1-git-send-email-daniel.vetter@ffwll.ch> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" To: Intel Graphics Development Cc: Daniel Vetter List-Id: intel-gfx@lists.freedesktop.org And also pimp the spatch file itself with usage hints. Signed-off-by: Daniel Vetter --- NEWS | 3 +++ lib/igt.cocci | 8 ++++++++ 2 files changed, 11 insertions(+) diff --git a/NEWS b/NEWS index ee920744f4c4..33354f9d5360 100644 --- a/NEWS +++ b/NEWS @@ -1,6 +1,9 @@ Release 1.8 (xxxx-xx-xx) ------------------------ +- Added lib/igt.cocci semantic patch to catch often-seen patterns and convert + them to igt macros/infrastructure. + Release 1.7 (2014-06-09) ------------------------ diff --git a/lib/igt.cocci b/lib/igt.cocci index ff0de31c9c48..e8dbdb0421cf 100644 --- a/lib/igt.cocci +++ b/lib/igt.cocci @@ -1,3 +1,11 @@ +// Semantic patch for common patters and their replacement by igt infrastructure +// and macros. Please run with +// +// spatch --sp-file lib/igt.cocci --in-place tests/*.c +// +// on your new testcase. + + // Replace open-coded augmented igt_assert/skip/require with macro versions @@ expression Ec; -- 2.0.0