From patchwork Wed Feb 3 12:44:07 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 1435260 X-Patchwork-Delegate: trini@ti.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=85.214.62.61; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.a=rsa-sha256 header.s=google header.b=QonZ+HWs; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4DW1dP36tCz9tlJ for ; Wed, 3 Feb 2021 23:46:15 +1100 (AEDT) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 2D481827D2; Wed, 3 Feb 2021 13:46:00 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.b="QonZ+HWs"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id BCE71827D0; Wed, 3 Feb 2021 13:45:54 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-qk1-x72b.google.com (mail-qk1-x72b.google.com [IPv6:2607:f8b0:4864:20::72b]) (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 5BE05827D0 for ; Wed, 3 Feb 2021 13:45:51 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=sjg@chromium.org Received: by mail-qk1-x72b.google.com with SMTP id l27so23136762qki.9 for ; Wed, 03 Feb 2021 04:45:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=pg0aayZ/f/NsOxqWVBTUMiE+vMDSHAfPV1YTc2yUfQY=; b=QonZ+HWsNXyejhO+TU+uFeLZib8/QJSqciH2+BImyjaKr5MPkgdzM/6mMRg8NENcKI M3eDliAnqsXcIjwbc8nEfq+ePjEDQWn5LaAc1vE4VoMUqKPu1AXxKIML2m/q58vBg9X9 ERjO3qEF9vEcrVBBW6jrS7hYT7sIWoVWk/c/4= 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=pg0aayZ/f/NsOxqWVBTUMiE+vMDSHAfPV1YTc2yUfQY=; b=Hkc7v3ZSBxHVJhDo4CagNUwB1l9Nad4h7dOyGgVW6cqfDQAnk15wI5wEbwze8V1Lri 78WaqWvcWJPv39EddHalYOBw/xBnp+33ZmKzyvK3scM0/lAgyKYJAJSBnt4RHaoriOgO AnBV/7REMhE4+SfTLQXOOQltirMehX00j6CS5lnUsDP1oZA3A3aXvrmM+qPLDEQFfjAs zSAyY/c2Zy0sYp5N4qMLYAH6SLNVecT1fWtxg69BrhegrZH30wLD87GIr63l/2tXpdCs JBfV3RB9PFgkBz6Qiwa8+tN9NkSMUbYhKZf06GXZx2kWfVqgnDmilYS2L5reerBYY0Ht 1+LQ== X-Gm-Message-State: AOAM532Tpcgp0qJV0eiC4bYYFMxf3QlKanq4Q8qycNUUpb7nlCFeHbJ6 Am3EETRa5Nj7Gd8ygCA0GhhOoGb1ruo92zca X-Google-Smtp-Source: ABdhPJyOVkaiN1CmUp24t21ROQQfuXqHJlTF9CFziMR9NfP6NhSL19RO03wEL98dqEMYz4tMqR0/Tg== X-Received: by 2002:a37:9a4a:: with SMTP id c71mr2176954qke.414.1612356350080; Wed, 03 Feb 2021 04:45:50 -0800 (PST) Received: from sjg1.roam.corp.google.com ([50.225.158.38]) by smtp.gmail.com with ESMTPSA id p26sm1560903qkk.6.2021.02.03.04.45.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Feb 2021 04:45:49 -0800 (PST) From: Simon Glass To: U-Boot Mailing List Cc: Stephen Warren , Stephen Warren , Heinrich Schuchardt , Tom Rini , Simon Glass Subject: [PATCH v3 01/41] doc: Tidy up testing section Date: Wed, 3 Feb 2021 05:44:07 -0700 Message-Id: <20210203124447.2458527-2-sjg@chromium.org> X-Mailer: git-send-email 2.30.0.365.g02bc693789-goog In-Reply-To: <20210203124447.2458527-1-sjg@chromium.org> References: <20210203124447.2458527-1-sjg@chromium.org> MIME-Version: 1.0 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.3 at phobos.denx.de X-Virus-Status: Clean Tweak this so the output looks a little better. Signed-off-by: Simon Glass --- (no changes since v2) Changes in v2: - Use correct rst format for 'Ad-hoc tests' section doc/develop/testing.rst | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/doc/develop/testing.rst b/doc/develop/testing.rst index 4bc9ca3a6ae..bc74eb53e35 100644 --- a/doc/develop/testing.rst +++ b/doc/develop/testing.rst @@ -8,14 +8,14 @@ tested and what tests you should write when adding a new feature. Running tests ------------- -To run most tests on sandbox, type this: +To run most tests on sandbox, type this:: make check in the U-Boot directory. Note that only the pytest suite is run using this command. -Some tests take ages to run. To run just the quick ones, type this: +Some tests take ages to run. To run just the quick ones, type this:: make qcheck @@ -35,9 +35,9 @@ either on sandbox or on real hardware. It relies on the U-Boot console to inject test commands and check the result. It is slower to run than C code, but provides the ability to unify lots of tests and summarise their results. -You can run the tests on sandbox with: +You can run the tests on sandbox with:: - ./test/py/test.py --bd sandbox --build + ./test/py/test.py --bd sandbox --build This will produce HTML output in build-sandbox/test-log.html @@ -58,10 +58,14 @@ Ad-hoc tests There are several ad-hoc tests which run outside the pytest environment: - test/fs - File system test (shell script) - test/image - FIT and legacy image tests (shell script and Python) - test/stdint - A test that stdint.h can be used in U-Boot (shell script) - trace - Test for the tracing feature (shell script) +test/fs + File system test (shell script) +test/image + FIT and legacy image tests (shell script and Python) +test/stdint + A test that stdint.h can be used in U-Boot (shell script) +trace + Test for the tracing feature (shell script) TODO: Move these into pytest.