linux-test-project / ltp

Linux Test Project (mailing list: https://lists.linux.it/listinfo/ltp)
https://linux-test-project.readthedocs.io/
GNU General Public License v2.0
2.27k stars 1k forks source link

Move tests variants from runtest files into tests #1133

Open metan-ucw opened 4 months ago

metan-ucw commented 4 months ago

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 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: https://github.com/linux-test-project/kirk/issues/13

metan-ucw commented 4 months ago

@tbird20d FYI