All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ilias Apalodimas <ilias.apalodimas@linaro.org>
To: jassisinghbrar@gmail.com
Cc: u-boot@lists.denx.de, sughosh.ganu@linaro.org,
	etienne.carriere@linaro.org, trini@konsulko.com,
	sjg@chromium.org, xypron.glpk@gmx.de,
	patrick.delaunay@foss.st.com, patrice.chotard@foss.st.com,
	Jassi Brar <jaswinder.singh@linaro.org>
Subject: Re: [PATCH v6 7/7] test: dm: fwu: fix for the updated api
Date: Wed, 15 Mar 2023 11:28:04 +0200	[thread overview]
Message-ID: <ZBGPpGGRWiy9mxci@hera> (raw)
In-Reply-To: <20230306231858.1888643-1-jassisinghbrar@gmail.com>

On Mon, Mar 06, 2023 at 05:18:58PM -0600, jassisinghbrar@gmail.com wrote:
> From: Jassi Brar <jaswinder.singh@linaro.org>
>
> fwu_get_mdata() no more requires 'dev' argument and
> fwu_check_mdata_validity() has been rendered useless and dropped.
> Fix the test cases to work with aforementioned changes.
>
> Signed-off-by: Jassi Brar <jaswinder.singh@linaro.org>
> ---
>  test/dm/fwu_mdata.c | 22 +++-------------------
>  1 file changed, 3 insertions(+), 19 deletions(-)
>
> diff --git a/test/dm/fwu_mdata.c b/test/dm/fwu_mdata.c
> index b179a65c15..8b5c83ef4e 100644
> --- a/test/dm/fwu_mdata.c
> +++ b/test/dm/fwu_mdata.c
> @@ -98,7 +98,7 @@ static int dm_test_fwu_mdata_read(struct unit_test_state *uts)
>  	ut_assertok(populate_mmc_disk_image(uts));
>  	ut_assertok(write_mmc_blk_device(uts));
>
> -	ut_assertok(fwu_get_mdata(dev, &mdata));
> +	ut_assertok(fwu_get_mdata(&mdata));
>
>  	ut_asserteq(mdata.version, 0x1);
>
> @@ -118,30 +118,14 @@ static int dm_test_fwu_mdata_write(struct unit_test_state *uts)
>
>  	ut_assertok(uclass_first_device_err(UCLASS_FWU_MDATA, &dev));
>
> -	ut_assertok(fwu_get_mdata(dev, &mdata));
> +	ut_assertok(fwu_get_mdata(&mdata));
>
>  	active_idx = (mdata.active_index + 1) % CONFIG_FWU_NUM_BANKS;
>  	ut_assertok(fwu_set_active_index(active_idx));
>
> -	ut_assertok(fwu_get_mdata(dev, &mdata));
> +	ut_assertok(fwu_get_mdata(&mdata));
>  	ut_asserteq(mdata.active_index, active_idx);
>
>  	return 0;
>  }
>  DM_TEST(dm_test_fwu_mdata_write, UT_TESTF_SCAN_FDT);
> -
> -static int dm_test_fwu_mdata_check(struct unit_test_state *uts)
> -{
> -	struct udevice *dev;
> -
> -	ut_assertok(setup_blk_device(uts));
> -	ut_assertok(populate_mmc_disk_image(uts));
> -	ut_assertok(write_mmc_blk_device(uts));
> -
> -	ut_assertok(uclass_first_device_err(UCLASS_FWU_MDATA, &dev));
> -
> -	ut_assertok(fwu_check_mdata_validity());
> -
> -	return 0;
> -}
> -DM_TEST(dm_test_fwu_mdata_check, UT_TESTF_SCAN_FDT);
> --
> 2.34.1
>

Acked-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>


  reply	other threads:[~2023-03-15  9:28 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-03-06 23:17 [PATCH v6 0/7] fwu: gpt: implement read_mdata and write_mdata callbacks jassisinghbrar
2023-03-06 23:18 ` [PATCH v6 1/7] dt/bindings: fwu-mdata-mtd: drop changes outside FWU jassisinghbrar
2023-06-09  7:42   ` Ilias Apalodimas
2023-03-06 23:18 ` [PATCH v6 2/7] fwu: gpt: use cached meta-data partition numbers jassisinghbrar
2023-03-06 23:18 ` [PATCH v6 3/7] fwu: move meta-data management in core jassisinghbrar
2023-03-16  8:25   ` Ilias Apalodimas
2023-03-06 23:18 ` [PATCH v6 4/7] fwu: gpt: implement read_mdata and write_mdata callbacks jassisinghbrar
2023-03-06 23:18 ` [PATCH v6 5/7] fwu: meta-data: switch to management by common code jassisinghbrar
2023-03-16  8:26   ` Ilias Apalodimas
2023-03-16  8:47     ` Sughosh Ganu
2023-03-06 23:18 ` [PATCH v6 6/7] fwu: rename fwu_get_verified_mdata to fwu_get_mdata jassisinghbrar
2023-03-06 23:18 ` [PATCH v6 7/7] test: dm: fwu: fix for the updated api jassisinghbrar
2023-03-15  9:28   ` Ilias Apalodimas [this message]
2023-03-24 12:05 ` [PATCH v6 0/7] fwu: gpt: implement read_mdata and write_mdata callbacks Sughosh Ganu
2023-06-10  0:37 ` Tom Rini

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=ZBGPpGGRWiy9mxci@hera \
    --to=ilias.apalodimas@linaro.org \
    --cc=etienne.carriere@linaro.org \
    --cc=jassisinghbrar@gmail.com \
    --cc=jaswinder.singh@linaro.org \
    --cc=patrice.chotard@foss.st.com \
    --cc=patrick.delaunay@foss.st.com \
    --cc=sjg@chromium.org \
    --cc=sughosh.ganu@linaro.org \
    --cc=trini@konsulko.com \
    --cc=u-boot@lists.denx.de \
    --cc=xypron.glpk@gmx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.