From: Jeuk Kim <jeuk20.kim@gmail.com>
To: Thomas Huth <thuth@redhat.com>
Cc: fam@euphon.net, hreitz@redhat.com, k.jensen@samsung.com,
kwolf@redhat.com, pbonzini@redhat.com, qemu-block@nongnu.org,
stefanha@redhat.com, berrange@redhat.com, qemu-devel@nongnu.org,
marcandre.lureau@redhat.com, marcel.apfelbaum@gmail.com,
mst@redhat.com, philmd@linaro.org, lvivier@redhat.com,
jeuk20.kim@samsung.com
Subject: Re: [PATCH v7 4/4] tests/qtest: Introduce tests for UFS
Date: Wed, 26 Jul 2023 17:15:54 +0900 [thread overview]
Message-ID: <756b6d6a-9e51-500f-8458-9ddb393ff802@gmail.com> (raw)
In-Reply-To: <e4484ab4-30bb-71ae-147e-8e2f9f9bbb12@redhat.com>
On 7/26/2023 4:21 PM, Thomas Huth wrote:
> Hi!
>
> On 26/07/2023 07.30, Jeuk Kim wrote:
>> This patch includes the following tests
>> Test mmio read
>> Test ufs device initialization and ufs-lu recognition
>> Test I/O (Performs a write followed by a read to verify)
>>
>> Signed-off-by: Jeuk Kim <jeuk20.kim@samsung.com>
>> ---
> ...
>> diff --git a/tests/qtest/ufs-test.c b/tests/qtest/ufs-test.c
>> new file mode 100644
>> index 0000000000..5104a0a56a
>> --- /dev/null
>> +++ b/tests/qtest/ufs-test.c
>> @@ -0,0 +1,575 @@
>> +/*
>> + * QTest testcase for UFS
>> + *
>> + * Copyright (c) 2023 Samsung Electronics Co., Ltd. All rights reserved.
>> + *
>> + * SPDX-License-Identifier: GPL-2.0-or-later
>> + */
>> +
>> +#include "qemu/osdep.h"
>> +#include "qemu/module.h"
>> +#include "qemu/units.h"
>> +#include "libqtest.h"
>> +#include "libqos/qgraph.h"
>> +#include "libqos/pci.h"
>> +#include "scsi/constants.h"
>> +#include "include/block/ufs.h"
>> +
>> +/* Test images sizes in Bytes */
>> +#define TEST_IMAGE_SIZE (64 * 1024 * 1024)
>> +/* Timeout for various operations, in seconds. */
>> +#define TIMEOUT_SECONDS 5
>
> From what I've seen in the past, it's possible that a process gets
> paused for 3 - 4 seconds on a very loaded CI machine, so 5 seconds is
> already close ... I'd suggest to use 8 - 10 seconds for a timeout
> instead, just to be on the safe side.
>
>> +static char *drive_create(void)
>> +{
>> + int fd, ret;
>> + char *t_path;
>> +
>> + /* Create a temporary raw image */
>> + fd = g_file_open_tmp("qtest.XXXXXX", &t_path, NULL);
>
> Could you maybe use "qtest-ufs.XXXXXX" or something more prominent
> instead? ... in case the files don't get deleted correctly, it's easier
> to know at which test to look at later.
>
> With that change:
> Acked-by: Thomas Huth <thuth@redhat.com>
>
Okay, I'm going to change the timeout to 10 and rename the file to
"qtest-ufs.XXXXXX".
Thank you for your comment!!
next prev parent reply other threads:[~2023-07-26 8:16 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-07-26 5:30 [PATCH v7 0/4] hw/ufs: Add Universal Flash Storage (UFS) support Jeuk Kim
2023-07-26 5:30 ` [PATCH v7 1/4] hw/ufs: Initial commit for emulated Universal-Flash-Storage Jeuk Kim
2023-07-26 5:30 ` [PATCH v7 2/4] hw/ufs: Support for Query Transfer Requests Jeuk Kim
2023-07-26 5:30 ` [PATCH v7 3/4] hw/ufs: Support for UFS logical unit Jeuk Kim
2023-07-26 5:30 ` [PATCH v7 4/4] tests/qtest: Introduce tests for UFS Jeuk Kim
2023-07-26 7:21 ` Thomas Huth
2023-07-26 8:15 ` Jeuk Kim [this message]
2023-07-26 19:35 ` Stefan Hajnoczi
2023-07-26 19:36 ` [PATCH v7 0/4] hw/ufs: Add Universal Flash Storage (UFS) support Stefan Hajnoczi
2023-07-27 0:56 ` Jeuk Kim
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=756b6d6a-9e51-500f-8458-9ddb393ff802@gmail.com \
--to=jeuk20.kim@gmail.com \
--cc=berrange@redhat.com \
--cc=fam@euphon.net \
--cc=hreitz@redhat.com \
--cc=jeuk20.kim@samsung.com \
--cc=k.jensen@samsung.com \
--cc=kwolf@redhat.com \
--cc=lvivier@redhat.com \
--cc=marcandre.lureau@redhat.com \
--cc=marcel.apfelbaum@gmail.com \
--cc=mst@redhat.com \
--cc=pbonzini@redhat.com \
--cc=philmd@linaro.org \
--cc=qemu-block@nongnu.org \
--cc=qemu-devel@nongnu.org \
--cc=stefanha@redhat.com \
--cc=thuth@redhat.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).