From patchwork Wed Nov 2 23:22:24 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Luc Van Oostenryck X-Patchwork-Id: 9410011 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 9C47160721 for ; Wed, 2 Nov 2016 23:24:35 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8E8982A60B for ; Wed, 2 Nov 2016 23:24:35 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 837322A613; Wed, 2 Nov 2016 23:24:35 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.3 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2C6972A60B for ; Wed, 2 Nov 2016 23:24:35 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756859AbcKBXYe (ORCPT ); Wed, 2 Nov 2016 19:24:34 -0400 Received: from mail-wm0-f65.google.com ([74.125.82.65]:33582 "EHLO mail-wm0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756412AbcKBXYe (ORCPT ); Wed, 2 Nov 2016 19:24:34 -0400 Received: by mail-wm0-f65.google.com with SMTP id u144so5295112wmu.0 for ; Wed, 02 Nov 2016 16:24:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=7b+csGFhLmhN7PEQRbDt59xdHGntZD3FbIbWW/3c3v0=; b=vJ/OoxAW9HGF97uSGy1Esk/vxL9YcnDuapWZ/9kBWKdfTB1c9NO6DuQCs8eknm312j +brUJ1uXDfh3ymfODdpdRb9Vdm56w8OrHwwk5rP7+xFL0fLa2EXcYJBsYbbRYUmWfRJz CoTy3IuA6dtpbUenptXIIZMCgznyGnhDSsP8ENyOOBL4fnJUVCMHMc12UBTeH6ZhTlfL CmSAIkHz1YPPVhBVZc3Mv57RZlPRIRL6tptoXULQTOWBL4+ueG0+8U0A7mURzxgxZLIY Sgo/MpgiYZrp278xjLBZw5cFvH23r1t8da2cXaYe6bUQ5DP4X6lIJ7FtSNxKGr9/jalu 1+lQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=7b+csGFhLmhN7PEQRbDt59xdHGntZD3FbIbWW/3c3v0=; b=Pe+d9UmfM2AWYk9izZepKSzKXaUqJvGxX1sfpwOXnPu3+KM8Nsk5Frur9YVB+ocWf9 JlaYoQ+t23Lr95DnFriYgyr/4LInzDe2xhUN/i4OvRSNaee75kuu80xS7n9xfikQpwDw YEhnYuUiLTzA5ni7nVdUlPA8F2a3uZhdZQS/9UESuoivSsK7eY2QhGYUd5sf5nXd17fp sYW6jog0ypN0SdQO1s/UZNKHORWHZowQyBmQJERFwVnVt5Qx42W2hrAPjQGzUzLnJxNa 6YkF6NuPxasLqphFiHSI//9s8xNl4U13/4Vqx/Xs3rIs+OnXu10Pg/HAQ9orPpGcSAcJ aFag== X-Gm-Message-State: ABUngvc7dPFgV00e8KIsBhh3XwIB2o5tCjX4sdBgwW3cGpQC+bJtFbHs1SSzT7kMiWybAA== X-Received: by 10.28.72.198 with SMTP id v189mr5603293wma.13.1478129072805; Wed, 02 Nov 2016 16:24:32 -0700 (PDT) Received: from localhost.localdomain ([2a02:a03f:88e:a00:2d6d:8fb2:833f:e082]) by smtp.gmail.com with ESMTPSA id s204sm5818383wmd.1.2016.11.02.16.24.31 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 02 Nov 2016 16:24:32 -0700 (PDT) From: Luc Van Oostenryck To: linux-sparse@vger.kernel.org Cc: Christopher Li , Luc Van Oostenryck Subject: [PATCH] allow to launch the test suite from the project root dir Date: Thu, 3 Nov 2016 00:22:24 +0100 Message-Id: <20161102232224.74747-1-luc.vanoostenryck@gmail.com> X-Mailer: git-send-email 2.10.1 Sender: linux-sparse-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-sparse@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The test suite must be run from the validation/ dir which is sometimes slightly annoying. Change that by letting the script to first do a cd to the validation dir. Signed-off-by: Luc Van Oostenryck --- validation/test-suite | 2 ++ 1 file changed, 2 insertions(+) diff --git a/validation/test-suite b/validation/test-suite index 03421a24..9a033439 100755 --- a/validation/test-suite +++ b/validation/test-suite @@ -2,6 +2,8 @@ #set -x +cd $(dirname "$0") + default_path=".." default_cmd="sparse \$file" tests_list=`find . -name '*.c' | sed -e 's#^\./\(.*\)#\1#' | sort`