From patchwork Thu May 12 19:45:49 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Petr Vorel X-Patchwork-Id: 1630401 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: bilbo.ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=suse.cz header.i=@suse.cz header.a=rsa-sha256 header.s=susede2_rsa header.b=ewDMIuAs; dkim=fail reason="signature verification failed" header.d=suse.cz header.i=@suse.cz header.a=ed25519-sha256 header.s=susede2_ed25519 header.b=n1gIoQVW; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) 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=) Received: from picard.linux.it (picard.linux.it [213.254.12.146]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4Kzj2P5d3hz9sG3 for ; Fri, 13 May 2022 05:46:21 +1000 (AEST) Received: from picard.linux.it (localhost [IPv6:::1]) by picard.linux.it (Postfix) with ESMTP id 941D23CA9E2 for ; Thu, 12 May 2022 21:46:19 +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 [IPv6:2001:4b78:1:20::4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384)) (No client certificate requested) by picard.linux.it (Postfix) with ESMTPS id 1A42D3C8CC3 for ; Thu, 12 May 2022 21:46:05 +0200 (CEST) Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.220.29]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by in-4.smtp.seeweb.it (Postfix) with ESMTPS id 3316510000C6 for ; Thu, 12 May 2022 21:46:04 +0200 (CEST) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id BDA501F8F8; Thu, 12 May 2022 19:46:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1652384763; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=myawdEglr+7fIMhHUEww5MnyznaZlwkZQ4QO/08x8lk=; b=ewDMIuAs2Fno5cTQ3xGxJFMA1MNKsS3yhtmGSbmkm07Rt3fGzInv7GTBKrpzkszrkPH8SX B675ZSiZW9y1OTH6RxwFlV+1q8Pnoj1Um19s4jaBRf7+FRtNLlBI54F244797K1w7CZ7zF dAIJW8sm0g8qghLJU4aQytdFudW/jSQ= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1652384763; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=myawdEglr+7fIMhHUEww5MnyznaZlwkZQ4QO/08x8lk=; b=n1gIoQVWkgSYYdOaVrefKeMcFr8hbvHciztsF3xkwdRnNzi/TwcwPYj44Kb1hC/X3VoJD2 ppXs+jdN8M8Nx1Dw== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id 1A9FE13ABE; Thu, 12 May 2022 19:46:03 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id Dl6YBPtjfWIkVwAAMHmgww (envelope-from ); Thu, 12 May 2022 19:46:03 +0000 From: Petr Vorel To: ltp@lists.linux.it Date: Thu, 12 May 2022 21:45:49 +0200 Message-Id: <20220512194557.30911-1-pvorel@suse.cz> X-Mailer: git-send-email 2.36.0 MIME-Version: 1.0 X-Virus-Scanned: clamav-milter 0.102.4 at in-4.smtp.seeweb.it X-Virus-Status: Clean X-Spam-Status: No, score=0.1 required=7.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=disabled version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on in-4.smtp.seeweb.it Subject: [LTP] [PATCH 0/8] shell: $TST_ALL_FILESYSTEMS (.all_filesystems) X-BeenThere: ltp@lists.linux.it X-Mailman-Version: 2.1.29 Precedence: list List-Id: Linux Test Project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Martin Doucha Errors-To: ltp-bounces+incoming=patchwork.ozlabs.org@lists.linux.it Sender: "ltp" Hi, .all_filesystems implementation for shell. Motivation is to add .all_filesystems for shell NFS tests. Now added to nfs07.sh (fast test). It required to export tst_clear_device() for shell via tst_clear_device.c. TODO: doc NOTE: df01.sh and mkfs01.sh should probably be converted to use it. Kind regards, Petr Petr Vorel (8): tst_test.sh: Add $TST_MOUNT_DEVICE df01.sh: Use TST_MOUNT_DEVICE=1 tst_test.sh: Improve pattern for allowed variables shell: Add test for TST_MOUNT_DEVICE=1 shell: Add tst_clear_device tst_test.sh: Add $TST_ALL_FILESYSTEMS shell: Add test for TST_ALL_FILESYSTEMS=1 nfs07.sh: Use TST_ALL_FILESYSTEMS=1 doc/shell-test-api.txt | 3 + lib/newlib_tests/shell/tst_all_filesystems.sh | 27 +++++ lib/newlib_tests/shell/tst_mount_device.sh | 21 ++++ testcases/commands/df/df01.sh | 5 +- testcases/lib/.gitignore | 1 + testcases/lib/Makefile | 2 +- testcases/lib/tst_clear_device.c | 47 ++++++++ testcases/lib/tst_test.sh | 104 ++++++++++++------ testcases/network/nfs/nfs_stress/nfs07.sh | 2 + 9 files changed, 176 insertions(+), 36 deletions(-) create mode 100755 lib/newlib_tests/shell/tst_all_filesystems.sh create mode 100755 lib/newlib_tests/shell/tst_mount_device.sh create mode 100644 testcases/lib/tst_clear_device.c