From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-10.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id D569AC47082 for ; Mon, 24 May 2021 02:31:54 +0000 (UTC) Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id D00E861139 for ; Mon, 24 May 2021 02:31:53 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org D00E861139 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 48F6282E81; Mon, 24 May 2021 04:31:51 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="O4ZIHlhd"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 43DB182E81; Mon, 24 May 2021 04:31:48 +0200 (CEST) Received: from mail-qk1-x735.google.com (mail-qk1-x735.google.com [IPv6:2607:f8b0:4864:20::735]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id C122E82AD8 for ; Mon, 24 May 2021 04:31:44 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=jmcosta944@gmail.com Received: by mail-qk1-x735.google.com with SMTP id 82so14357104qki.8 for ; Sun, 23 May 2021 19:31:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=D8vAy/Cod3/K158/7HuGlXnRiQsyJvfTdcuFw55H9Y4=; b=O4ZIHlhdr0qIGHJiNvil8gkqrUnIwY9MlXDdfjVIp6BlOjUY6i99NG/6BmMMDWPc83 1TK8uWi/oT+arZntS4XgwGocq50kX05+MBU3DPBVDXVkQoXfFZju65Hiiflw2K1kPGkB RHVh7ndetbWBoPgngrOKTFHLUGxcQUl1IFVUBT2J3oAIiX2n1Hud2Vtl+NZApkz692JC tbY+vgpkGjdJ3JY/WiFinYeDf0KuGy9k1iLMagX91rAlcy0VTOw2huKSsZiARZmcNlF8 WN1Xq7UNxsbZkPRAT6Dbw+P6J7ymvbFI8+muG9dU1S6MHPX3i2sPx8Rctk6Zqp/qxyuT L0uA== 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:mime-version :content-transfer-encoding; bh=D8vAy/Cod3/K158/7HuGlXnRiQsyJvfTdcuFw55H9Y4=; b=OQB4HybAPBf0UYvGkCnrkxgE18N02B84tHyUC7MumQJgbbPq/TFP3wMkDpfTuD9Enp HBIydvLUlI347VeYVK6tUUToqvIp6gotZHPZQqqQqG617zd6qSM3k036lE4PS0+vRdSo Un31G3d1idzWpBv60RZbLYMIMg4ISoSVCZOGSSHupEovlO59SzOUx9+Yv0L9b57csN2Z +ID8AlylRPE+bE9TZ/EtEoJZWGT7iz9AvTMD7rka2//M6QwwWqnqkztN4RQo/wxkN2IL MaxWxJnwNW3KhvxWDl4ZeoH6JnSkDFwwL0jf94ifxt9KDUxIPfmtnTRcnSsWWTOwADVU Hryw== X-Gm-Message-State: AOAM533CdFu8LyRHFnUVOZCQ270JiONJRbCJKXZww+boljDRegNNETOm J3nptMXmmhIO+bY9+cEW6NCedbslUqkQlnxu X-Google-Smtp-Source: ABdhPJwtwnOdMo+K9H8r7fqdhu8nKXLfytHGJrkvb8AWYOR9BvHvIAmfwj/ofY8/9sGU3M3SadyMIg== X-Received: by 2002:a37:7405:: with SMTP id p5mr25607007qkc.272.1621823503471; Sun, 23 May 2021 19:31:43 -0700 (PDT) Received: from localhost.localdomain ([177.194.32.83]) by smtp.googlemail.com with ESMTPSA id h5sm10385647qkg.122.2021.05.23.19.31.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 23 May 2021 19:31:42 -0700 (PDT) From: Joao Marcos Costa To: u-boot@lists.denx.de Cc: thomas.petazzoni@bootlin.com, miquel.raynal@bootlin.com, richard.genoud@posteo.net, sjg@chromium.org, Joao Marcos Costa Subject: [PATCH 0/3] test/py: Rewrite SquashFS commands test suite Date: Sun, 23 May 2021 23:31:30 -0300 Message-Id: <20210524023133.22100-1-jmcosta944@gmail.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.102.4 at phobos.denx.de X-Virus-Status: Clean Hello, This patch series fixes the following issues: - poor strategy to check if files were properly loaded - wrong quoting style for strings - tests failing at the second run because of a wrong clean-up strategy Finally, it improves: - code overall documentation level, with more comments and better naming for functions and variables - code readability by adding more helper functions - completeness: more test cases were added for both sqfsls and sqfsload commands The sqfsload new test suite may fail when testing images with fragmented files if the patch I previously sent (fs/squashfs: fix reading of fragmented files) is not applied, so this patch series depends on it. Best regards, Joao Joao Marcos Costa (3): test/py: rewrite common tools for SquashFS tests test/py: rewrite sqfsload command test suite test/py: rewrite sqfsls command test suite .../test_fs/test_squashfs/sqfs_common.py | 198 ++++++++++++------ .../test_fs/test_squashfs/test_sqfs_load.py | 99 ++++++--- .../test_fs/test_squashfs/test_sqfs_ls.py | 80 +++++-- 3 files changed, 264 insertions(+), 113 deletions(-) -- 2.25.1