From: Richard Palethorpe <rpalethorpe@suse.de>
To: ltp@lists.linux.it
Subject: [LTP] [PATCH 0/4] Introduce a concept of test runtime cap
Date: Wed, 09 Jun 2021 15:54:54 +0100 [thread overview]
Message-ID: <87zgvz3x6p.fsf@suse.de> (raw)
In-Reply-To: <20210609114659.2445-1-chrubis@suse.cz>
Hello Cyril,
Cyril Hrubis <chrubis@suse.cz> writes:
> Recently we had a problem with tests that use .all_filesystems and
> tst_timeout_remaining().
>
> The problem is that the tst_timeout_remaining() function wasn't aware of
> the loop over fork_testrun() that executes a testrun for each supported
> filesystem, which caused such test, e.g. writev03, to run for
> unpredictable and long periods.
>
> This is an attempt how to solve this properly by uncoupling timeouts
> from test runtime so that test never runs for longer than its timeout.
>
> Cyril Hrubis (4):
> lib: tst_supported_fs_types: Add tst_fs_max_types()
> lib: tst_test: Move timeout scaling out of fork_testrun()
> lib: Introduce concept of max_test_runtime
> syscalls/writev03: Adjust test runtime
>
> include/tst_fs.h | 5 ++
> include/tst_fuzzy_sync.h | 4 +-
> include/tst_test.h | 7 +-
> lib/newlib_tests/.gitignore | 3 +-
> .../{test18.c => test_runtime01.c} | 7 +-
> lib/newlib_tests/test_runtime02.c | 31 +++++++
> lib/tst_supported_fs_types.c | 5 ++
> lib/tst_test.c | 87 ++++++++++++++++---
> testcases/kernel/crypto/af_alg02.c | 2 +-
> testcases/kernel/crypto/pcrypt_aead01.c | 2 +-
> testcases/kernel/mem/mtest01/mtest01.c | 6 +-
> testcases/kernel/mem/mtest06/mmap1.c | 13 ++-
> .../kernel/syscalls/move_pages/move_pages12.c | 4 +-
> testcases/kernel/syscalls/writev/writev03.c | 1 +
> 14 files changed, 141 insertions(+), 36 deletions(-)
> rename lib/newlib_tests/{test18.c => test_runtime01.c} (59%)
> create mode 100644 lib/newlib_tests/test_runtime02.c
>
> --
> 2.31.1
The changes generally look good. I think the new environment variable
needs documenting in the user guide though.
--
Thank you,
Richard.
prev parent reply other threads:[~2021-06-09 14:54 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-06-09 11:46 [LTP] [PATCH 0/4] Introduce a concept of test runtime cap Cyril Hrubis
2021-06-09 11:46 ` [LTP] [PATCH 1/4] lib: tst_supported_fs_types: Add tst_fs_max_types() Cyril Hrubis
2021-06-09 11:46 ` [LTP] [PATCH 2/4] lib: tst_test: Move timeout scaling out of fork_testrun() Cyril Hrubis
2021-06-09 11:46 ` [LTP] [PATCH 3/4] lib: Introduce concept of max_test_runtime Cyril Hrubis
2021-06-09 13:24 ` [LTP] [Automated-testing] " Petr Vorel
2021-06-09 13:32 ` Cyril Hrubis
2021-06-09 14:05 ` Petr Vorel
2021-06-09 13:43 ` Cyril Hrubis
2021-06-11 15:07 ` Martin Doucha
2021-06-13 19:44 ` Petr Vorel
2021-06-14 8:02 ` Richard Palethorpe
2021-06-09 14:44 ` [LTP] " Richard Palethorpe
2021-06-09 11:46 ` [LTP] [PATCH 4/4] syscalls/writev03: Adjust test runtime Cyril Hrubis
2021-06-09 14:54 ` Richard Palethorpe [this message]
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=87zgvz3x6p.fsf@suse.de \
--to=rpalethorpe@suse.de \
--cc=ltp@lists.linux.it \
/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