From patchwork Mon Apr 23 09:46:30 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Myl=C3=A8ne_Josserand?= X-Patchwork-Id: 902847 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=2001:1418:10:5::2; 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=bootlin.com Received: from picard.linux.it (picard.linux.it [IPv6:2001:1418:10:5::2]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 40V1nm6mjcz9s06 for ; Mon, 23 Apr 2018 19:46:52 +1000 (AEST) Received: from picard.linux.it (localhost [IPv6:::1]) by picard.linux.it (Postfix) with ESMTP id D5E7E3E754E for ; Mon, 23 Apr 2018 11:46:49 +0200 (CEST) X-Original-To: ltp@lists.linux.it Delivered-To: ltp@picard.linux.it Received: from in-4.smtp.seeweb.it (in-4.smtp.seeweb.it [217.194.8.4]) by picard.linux.it (Postfix) with ESMTP id 8B2083E68D9 for ; Mon, 23 Apr 2018 11:46:48 +0200 (CEST) Received: from mail.bootlin.com (mail.bootlin.com [62.4.15.54]) by in-4.smtp.seeweb.it (Postfix) with ESMTP id 698321000B62 for ; Mon, 23 Apr 2018 11:46:47 +0200 (CEST) Received: by mail.bootlin.com (Postfix, from userid 110) id DE1892073C; Mon, 23 Apr 2018 11:46:45 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on in-4.smtp.seeweb.it X-Spam-Level: X-Spam-Status: No, score=-0.0 required=7.0 tests=SPF_PASS autolearn=disabled version=3.4.0 Received: from dell-desktop.home (LStLambert-657-1-97-87.w90-63.abo.wanadoo.fr [90.63.216.87]) by mail.bootlin.com (Postfix) with ESMTPSA id AD50E20703; Mon, 23 Apr 2018 11:46:45 +0200 (CEST) From: =?utf-8?q?Myl=C3=A8ne_Josserand?= To: ltp@lists.linux.it Date: Mon, 23 Apr 2018 11:46:30 +0200 Message-Id: <20180423094639.14612-1-mylene.josserand@bootlin.com> X-Mailer: git-send-email 2.11.0 MIME-Version: 1.0 X-Virus-Scanned: clamav-milter 0.99.2 at in-4.smtp.seeweb.it X-Virus-Status: Clean Cc: thomas.petazzoni@bootlin.com Subject: [LTP] [RFC PATCH 0/9] testcases: small improvements with TCONF 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: , Errors-To: ltp-bounces+incoming=patchwork.ozlabs.org@lists.linux.it Sender: "ltp" Hello everyone, I am currently trying LTP on an embededed device and while running some tests, I noticed that some of them are returning "FAIL" but most of the time, it is because some binaries (or options) are not available on my root filesystem. Instead of returning "FAIL", I think they should return "TCONF". This is what this series does. I haven't finished to run all the tests yet so I will send another bunch of patches with other improvements. As it is the first time I used this project and that I contributes to it, reviews or feedbacks on this first set of patches would be very appreciated. Thank you in advance! Best regards, Mylène Mylène Josserand (9): testcases: su: Fix userdel use testcases: ar: Add TST_NEEDS_CMDS on "ar" testcases: file: Add TST_NEEDS_CMDS on readelf testcases: tar: Add TST_NEEDS_CMDS on gzip and bzip testcases: logrotate: Check if "file" command exists testcases: wc: Add "unrecognized option" as TCONF testcases: df: Add "--printf" option as needed commands testcases: test.sh: Check if "getconf" is available testcases: cpuset: Check if "getconf" is available testcases/commands/ar/ar01 | 3 +++ testcases/commands/df/df01.sh | 2 ++ testcases/commands/file/file01.sh | 2 ++ testcases/commands/logrotate/logrotate_tests.sh | 3 ++- testcases/commands/su/su01 | 6 ++++-- testcases/commands/tar/tar_tests.sh | 2 ++ testcases/commands/wc/wc01.sh | 2 +- testcases/kernel/controllers/cpuset/cpuset_regression_test.sh | 2 ++ testcases/lib/test.sh | 2 ++ 9 files changed, 20 insertions(+), 4 deletions(-)