Message ID | 20210308003517.1574569-9-sjg@chromium.org |
---|---|
State | Accepted |
Commit | 4bc639ee1181dc25df733da5de76ce4ea4b3f406 |
Delegated to: | Tom Rini |
Headers | show
Return-Path: <u-boot-bounces@lists.denx.de> 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=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=<UNKNOWN>) 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=JooTVdok; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (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 4Dtztk28Lfz9sSC for <incoming@patchwork.ozlabs.org>; Mon, 8 Mar 2021 11:37:02 +1100 (AEDT) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 1D8D48288B; Mon, 8 Mar 2021 01:36:12 +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="JooTVdok"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 3F80B8289C; Mon, 8 Mar 2021 01:35:42 +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.2 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,SPF_HELO_NONE autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-oi1-x22b.google.com (mail-oi1-x22b.google.com [IPv6:2607:f8b0:4864:20::22b]) (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 1FF5D825F4 for <u-boot@lists.denx.de>; Mon, 8 Mar 2021 01:35:30 +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-oi1-x22b.google.com with SMTP id x78so9308757oix.1 for <u-boot@lists.denx.de>; Sun, 07 Mar 2021 16:35:30 -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=r7bEH01GBPrgi5oTnLorSJgA0dmZciBpD9w6eFLIwyA=; b=JooTVdoks1JTT7V+E4Wbak2C1f+1AoexuyQ8owlBUodVYeDVHowarOqHohyNDEglDy Gx5mbeDBHIzwIJVEqV4nFpNrpOd9Y0YId7hhoH7uFxbYZBIephqQmZwo03/D1MQ5eq1U iwnefi8zkNG64+0F7Z5Wt1Z/wX/D+nLcU/dwE= 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=r7bEH01GBPrgi5oTnLorSJgA0dmZciBpD9w6eFLIwyA=; b=mO/LaGQ4ViWm1A3z1S06FGmjgTItLq/3FYHHvYJ/1uQaYqfNVSCcZ7i7V4pw1tAKAG Mq25doMqdoLwcHBNVfbGJjBLHmlSwkrKBxZbtFaRUF+FlgC+UhP+RY9m/+2biQcnWEqL UHb1q0YELrNoF8ccvIFqWa5MAU9WlWNFcV1Hx2JUtWAsDwCuKiQiil4/EOslREweopu+ IpNirBERx3feSfDcOPlDJZj5ufeiGxAgRNxmChqv2016jkb7ZNLUZVFSQiQzn/3U4xLa gzeFMaVPtulNmw6nqCR5/Jf2mzTJEb/WDjh/lBdDLBPKzAxXkjLIVFGOeimXJepAzuOx Sq7A== X-Gm-Message-State: AOAM533nEaoBNv120/5EKlus8iYXhS5PA0fmCPpJehxlrydTCBLBxuUS CUJP9n2P6b5ldL8Te3E/P+bgzP54ufc7tO86 X-Google-Smtp-Source: ABdhPJwz2rtMf/4f9PvzoNw0q0AJgVc71nnxRhAnmlTW5T70zRl3w1eHp5AL4o865PfzxzlRwPeJEA== X-Received: by 2002:a05:6808:bc3:: with SMTP id o3mr15540669oik.134.1615163728779; Sun, 07 Mar 2021 16:35:28 -0800 (PST) Received: from kiwi.bld.corp.google.com (c-67-190-101-114.hsd1.co.comcast.net. [67.190.101.114]) by smtp.gmail.com with ESMTPSA id a7sm2078112oon.8.2021.03.07.16.35.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 07 Mar 2021 16:35:28 -0800 (PST) From: Simon Glass <sjg@chromium.org> To: U-Boot Mailing List <u-boot@lists.denx.de> Cc: Heinrich Schuchardt <xypron.glpk@gmx.de>, Tom Rini <trini@konsulko.com>, Stephen Warren <swarren@wwwdotorg.org>, Stephen Warren <swarren@nvidia.com>, Simon Glass <sjg@chromium.org> Subject: [PATCH v5 09/41] test: Mark all driver model tests with a flag Date: Sun, 7 Mar 2021 17:34:45 -0700 Message-Id: <20210308003517.1574569-9-sjg@chromium.org> X-Mailer: git-send-email 2.30.1.766.gb4fecdf3b7-goog In-Reply-To: <20210308003517.1574569-1-sjg@chromium.org> References: <20210308003517.1574569-1-sjg@chromium.org> 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 <u-boot.lists.denx.de> List-Unsubscribe: <https://lists.denx.de/options/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=unsubscribe> List-Archive: <https://lists.denx.de/pipermail/u-boot/> List-Post: <mailto:u-boot@lists.denx.de> List-Help: <mailto:u-boot-request@lists.denx.de?subject=help> List-Subscribe: <https://lists.denx.de/listinfo/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=subscribe> Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" <u-boot-bounces@lists.denx.de> X-Virus-Scanned: clamav-milter 0.102.4 at phobos.denx.de X-Virus-Status: Clean |
Series |
test: Refactor tests to have a single test runner
|
expand
|
diff --git a/include/dm/test.h b/include/dm/test.h index 6ac6672cd6f..dfbc82c756d 100644 --- a/include/dm/test.h +++ b/include/dm/test.h @@ -143,7 +143,8 @@ struct dm_test_state { }; /* Declare a new driver model test */ -#define DM_TEST(_name, _flags) UNIT_TEST(_name, _flags, dm_test) +#define DM_TEST(_name, _flags) \ + UNIT_TEST(_name, UT_TESTF_DM | (_flags), dm_test) /* * struct sandbox_sdl_plat - Platform data for the SDL video driver diff --git a/include/test/test.h b/include/test/test.h index 3fdaa2b5e51..27585507d8c 100644 --- a/include/test/test.h +++ b/include/test/test.h @@ -36,6 +36,8 @@ enum { UT_TESTF_FLAT_TREE = BIT(3), /* test needs flat DT */ UT_TESTF_LIVE_TREE = BIT(4), /* needs live device tree */ UT_TESTF_CONSOLE_REC = BIT(5), /* needs console recording */ + /* do extra driver model init and uninit */ + UT_TESTF_DM = BIT(6), }; /**
Add a flag for driver model tests, so we can do special processing for them. Signed-off-by: Simon Glass <sjg@chromium.org> --- (no changes since v1) include/dm/test.h | 3 ++- include/test/test.h | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-)