From patchwork Fri May 25 21:57:20 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Petr Vorel X-Patchwork-Id: 920793 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=lists.linux.it (client-ip=213.254.12.146; helo=picard.linux.it; envelope-from=ltp-bounces+incoming=patchwork.ozlabs.org@lists.linux.it; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=suse.cz Received: from picard.linux.it (picard.linux.it [213.254.12.146]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 40t0Vl02P9z9s0x for ; Sat, 26 May 2018 07:58:06 +1000 (AEST) Received: from picard.linux.it (localhost [IPv6:::1]) by picard.linux.it (Postfix) with ESMTP id 4FFED3E6F69 for ; Fri, 25 May 2018 23:58:04 +0200 (CEST) X-Original-To: ltp@lists.linux.it Delivered-To: ltp@picard.linux.it Received: from in-5.smtp.seeweb.it (in-5.smtp.seeweb.it [IPv6:2001:4b78:1:20::5]) by picard.linux.it (Postfix) with ESMTP id DFFC73E6497 for ; Fri, 25 May 2018 23:57:47 +0200 (CEST) Received: from mx2.suse.de (mx2.suse.de [195.135.220.15]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by in-5.smtp.seeweb.it (Postfix) with ESMTPS id 90CE061218F for ; Fri, 25 May 2018 23:57:43 +0200 (CEST) Received: from relay1.suse.de (charybdis-ext-too.suse.de [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id D928FABDB for ; Fri, 25 May 2018 21:57:40 +0000 (UTC) From: Petr Vorel To: ltp@lists.linux.it Date: Fri, 25 May 2018 23:57:20 +0200 Message-Id: <20180525215725.7218-1-pvorel@suse.cz> X-Mailer: git-send-email 2.16.3 X-Virus-Scanned: clamav-milter 0.99.2 at in-5.smtp.seeweb.it X-Virus-Status: Clean X-Spam-Status: No, score=-0.0 required=7.0 tests=SPF_PASS autolearn=disabled version=3.4.0 X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on in-5.smtp.seeweb.it Subject: [LTP] [RFC PATCH v5 0/5] tst_test.sh: Add TST_TEST_DATA and TST_TEST_DATA_IFS + cleanup X-BeenThere: ltp@lists.linux.it X-Mailman-Version: 2.1.18 Precedence: list List-Id: Linux Test Project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: ltp-bounces+incoming=patchwork.ozlabs.org@lists.linux.it Sender: "ltp" Hi, hope I replaced all variables, which are needed and updated all places in docs. changes v4->v5: * Loop in TST_TEST_DATA with for loop instead of while. It's needed to allow having empty parameter (needed for IPsec network tests). This brought dependencies to: cut tr wc. * Updated docs correctly. * Added commit "tst_test.sh: Filter out commented out lines from warnings" * Added commit "tst_test.sh: s/resm/res/" Kind regards, Petr Petr Vorel (5): tst_test.sh: Hide "private" variables with "_tst_" prefix tst_test.sh: Warn about using "private" variable or function tst_test.sh: Filter out commented out lines from warnings tst_test.sh: s/resm/res/ tst_test.sh: Add TST_TEST_DATA and TST_TEST_DATA_IFS doc/test-writing-guidelines.txt | 80 ++++++++++++++++++++++++++--- testcases/lib/tst_test.sh | 111 +++++++++++++++++++++++++--------------- 2 files changed, 143 insertions(+), 48 deletions(-)