From patchwork Thu Aug 23 07:25:19 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: AKASHI Takahiro X-Patchwork-Id: 144893 Delivered-To: patch@linaro.org Received: by 2002:a2e:164a:0:0:0:0:0 with SMTP id 10-v6csp778878ljw; Thu, 23 Aug 2018 00:25:43 -0700 (PDT) X-Google-Smtp-Source: AA+uWPwhOpHV6vsWnYbjl0nlxr4AHOXOLv9mccdz39vvem2Yz/96q7Vv+R3YgsCGUIbTbT2RFQ8S X-Received: by 2002:a50:b266:: with SMTP id o93-v6mr69707074edd.173.1535009143300; Thu, 23 Aug 2018 00:25:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535009143; cv=none; d=google.com; s=arc-20160816; b=es6sbZcxzYsihYO2P9wIEnElJb+XWc7x5R07kyA0S57QmYxWjJBXixDjAaPjjak+Hj WO0FBQakLbPyUSySDNiIshoYI+JAJey/PlQwH81TZ4a6VHnZLUy8++5xQrdDGgOk+29J 4vZqDX31zKz9r5WpmVEAu+vNUawL9bOSwJ1O10ibhXJzMbIE1DJj8RjLA9XKWPbkFcGp c+UurQrOTzyZite29vMMcu9eGapjET4Sh64l0uLtkuN6f7N38K6ttawLcBrWYxGeUC0P mmSpnGQLTWsDZHZix5HwB86Uk4Y/dxSz+QoSdLzcJsapFMm9U8Jz2T7CzpsWwDSVijCN PZOw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:cc:message-id:date:to:from :dkim-signature:arc-authentication-results; bh=YK67UGhVn40EEffiLOvbEqpGmnON5pxLRaDIEunYCFQ=; b=cljbdvu9+39aXhfxuqCDcxOJDppcwF92tYVQnxmm+h/X7H/4y4scQqHGNC9xLsdT3M 0j+b/175mZWNVx2CnbAG2j/u4vNzSUSZBOn4BmigZOxWaNEuxiLOZXHKVbK32od/iPqt wqI+ooS8PZszhnfMVg0roCgcOagIid1MmGrnwyCjJJzXpREMF3//kUzCO5kgw4R25Nf4 xvx3aTDFS1/O1gFf3b7AlHVRwljuvREqZ0+jPr2PHlptvO+Sxb169ALqxbelVDzaCHqs rupuUlD0EN7Ly0c8BrVigZ1/585Rhwcz/tHe1RxxVar3Kb0qrkDRpVTIMXwsCGbXQ8hs maLA== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=e8xJK20e; spf=pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.denx.de (dione.denx.de. [81.169.180.215]) by mx.google.com with ESMTP id d39-v6si1261667ede.334.2018.08.23.00.25.42; Thu, 23 Aug 2018 00:25:43 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) client-ip=81.169.180.215; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=e8xJK20e; spf=pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: by lists.denx.de (Postfix, from userid 105) id 9E0C1C21E7D; Thu, 23 Aug 2018 07:25:41 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id E6DA8C21DA6; Thu, 23 Aug 2018 07:25:38 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 414CDC21DA6; Thu, 23 Aug 2018 07:25:38 +0000 (UTC) Received: from mail-pg1-f175.google.com (mail-pg1-f175.google.com [209.85.215.175]) by lists.denx.de (Postfix) with ESMTPS id 8CAD9C21D8A for ; Thu, 23 Aug 2018 07:25:37 +0000 (UTC) Received: by mail-pg1-f175.google.com with SMTP id t14-v6so2151391pgf.0 for ; Thu, 23 Aug 2018 00:25:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=gQj3VwiPili0v6A4DBTh1vB3rYe9B0BqCvHqAY2G//o=; b=e8xJK20ei82EAk4tJpe1IaU+7zHL/iU//N0IZqXgv/yWEOPhEeG40ffkQLZuE6/CG1 2lMGsuzH8/gAX+7iy/fbR1xVQbDKgVKmlt0mRHWsHhVuFJYtcoL5PNBqRS14vHqTRhy0 jAySoSrG//vHaew1SX8GcYQaza89FClbZAytw= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=gQj3VwiPili0v6A4DBTh1vB3rYe9B0BqCvHqAY2G//o=; b=WHKG2x6AVOfQv6GHLkcQpUofhzpM77bm2LL1b9athZEpBQ3ZE4CrmkbcyHqoP6n/Bi 3mvN5apxK+bhCIZ3uN0Jfr3zpKh+OJDAjRPFadcKzIAqW2yeHGMKEV6+3oh4LJsnV8Zk 8pSYOcghIdL/RRx4if4mqBIDKT5U9tvHoNEucQOQM6z8vlFAqf/m7RT4skSdK5qJGrnA 8V6fgOa9dj0o6/XCIRrzKHzg+mmeP2VRJgT79U5NCV7/kARwF+QvEgnkYkZHyv5gsyHw y4AjK2zE7wJ/bPpS2dz59jKwlQ8ZQ7Fxk+dlJJsTohel/Qe9JxjHfozi0yPtcvu/Zbdz vVEQ== X-Gm-Message-State: AOUpUlHXb2uR/IknmAF87xnQ0UqzLSWUpSjZUF8Q4WIScJ5EAucUMqyy MTgTJQJ5xTNb7v8CoC0FF3/D6w== X-Received: by 2002:a63:e647:: with SMTP id p7-v6mr53436694pgj.218.1535009136002; Thu, 23 Aug 2018 00:25:36 -0700 (PDT) Received: from linaro.org ([121.95.100.191]) by smtp.googlemail.com with ESMTPSA id u184-v6sm4881966pgd.46.2018.08.23.00.25.35 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 23 Aug 2018 00:25:35 -0700 (PDT) From: AKASHI Takahiro To: trini@konsulko.com Date: Thu, 23 Aug 2018 16:25:19 +0900 Message-Id: <20180823072522.15735-1-takahiro.akashi@linaro.org> X-Mailer: git-send-email 2.18.0 Cc: u-boot@lists.denx.de, xypron.glpk@gmx.de, agraf@suse.de Subject: [U-Boot] [RFC 0/3] test/py: add filesystem test scripts X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" This patch series is an attempt to add tests scripts for filesystem functionality to U-boot pytest suite. Currently, we have a bit old-fashioned shell-script, fs-test.sh, under test/fs for this purpose, which is obviously not an integrated part of the suite. So my aim here is: * first, convert fs-test.sh to python script using pytest * then add more test cases for exntensive test coverage, including added functions to be introduced by my patch set, "fs: fat: extend FAT write operations"[1] The current code is a bit rough-edged yet and any comments or feedbacks are very much welcomed. The code itself was tested on v2018.09-rc with my patch set above. [1] https://lists.denx.de/pipermail/u-boot/2018-July/335415.html Thanks, -Takahiro AKASHI AKASHI Takahiro (3): test/py: convert fs-test.sh to pytest test/py: fs: add extended write operation test test/py: fs: add fstest/mkdir test test/py/tests/test_fs/conftest.py | 289 +++++++++++++++++++++++++++ test/py/tests/test_fs/fstest_defs.py | 13 ++ test/py/tests/test_fs/test_basic.py | 246 +++++++++++++++++++++++ test/py/tests/test_fs/test_ext.py | 197 ++++++++++++++++++ test/py/tests/test_fs/test_mkdir.py | 77 +++++++ 5 files changed, 822 insertions(+) create mode 100644 test/py/tests/test_fs/conftest.py create mode 100644 test/py/tests/test_fs/fstest_defs.py create mode 100644 test/py/tests/test_fs/test_basic.py create mode 100644 test/py/tests/test_fs/test_ext.py create mode 100644 test/py/tests/test_fs/test_mkdir.py