I was not sure which suite has a single tastcase, so I experimented forThe reason was to replicate the existing "perf test" behavior before
libpfm4 by deleting a testcase so it has only 1x remaining, I get:
before your change:
john@localhost:~/acme/tools/perf> sudo ./perf test 63
63: Test libpfm4 support : Skip
after:
john@localhost:~/acme/tools/perf> sudo ./perf test 63
63: Test libpfm4 support : Skip (not compiled in)
Although it is odd to have a single sub-test, is there a reason for
which we don't print its name? We print the name when there are multiple
sub-tests.
the kunit style transition. The main place we get tests with a single
sub-test is from the DEFINE_SUITE macro:
https://git.kernel.org/pub/scm/linux/kernel/git/acme/linux.git/tree/tools/perf/tests/tests.h?h=perf/core#n67
I agree it looks kind of weird and was inheriting the data structures
from kunit and the format of the output from perf test.