Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move tests variants from runtest files into tests #1133

Open
metan-ucw opened this issue Feb 21, 2024 · 1 comment
Open

Move tests variants from runtest files into tests #1133

metan-ucw opened this issue Feb 21, 2024 · 1 comment

Comments

@metan-ucw
Copy link
Member

In order to eventually phase out runtest files the test variants (i.e. the different test parameters) have to be moved from rutnest files somewhere, I guest the most logical plan would be to move them into the tst_test structure.

Apart from having all the information in a single place that would mean:

  • the test variants would be exported into metadata and could be used by the test runner
  • the test can list all test variants (e.g. with -t parameter)
  • specific test variant could be executed by a shortcut (e.g. -t 2)

The open question is how to encode these. Easiest solution would be strings with a list of command line parameters, something as:

static struct tst_test tst_test = {
...
         .test_variants = [
                "-s 1024 -p 2",
                "-s 2048 -p 4",
                ...
                NULL
         ];
...
};

The corresponding kirk issue: linux-test-project/kirk#13

@metan-ucw
Copy link
Member Author

@tbird20d FYI

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant