perf tests: Run time generate shell test suites

Rather than special shell test logic, do a single pass to create an
array of test suites. Hold the shell test file name in the test suite
priv field. This makes the special shell test logic in builtin-test.c
redundant so remove it.

Signed-off-by: Ian Rogers <irogers@google.com>
Cc: James Clark <james.clark@arm.com>
Cc: Justin Stitt <justinstitt@google.com>
Cc: Bill Wendling <morbo@google.com>
Cc: Nick Desaulniers <ndesaulniers@google.com>
Cc: Yang Jihong <yangjihong1@huawei.com>
Cc: Nathan Chancellor <nathan@kernel.org>
Cc: Kan Liang <kan.liang@linux.intel.com>
Cc: Athira Jajeev <atrajeev@linux.vnet.ibm.com>
Cc: llvm@lists.linux.dev
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Link: https://lore.kernel.org/r/20240221034155.1500118-8-irogers@google.com
This commit is contained in:
Ian Rogers
2024-02-20 19:41:54 -08:00
committed by Namhyung Kim
parent f3295f5b06
commit 964461ee37
3 changed files with 80 additions and 149 deletions

View File

@@ -2,14 +2,8 @@
#ifndef TESTS_SCRIPTS_H
#define TESTS_SCRIPTS_H
struct script_file {
char *file;
char *desc;
};
#include "tests.h"
/* List available script tests to run - singleton - never freed */
const struct script_file *list_script_files(void);
/* Get maximum width of description string */
int list_script_max_width(void);
struct test_suite **create_script_test_suites(void);
#endif /* TESTS_SCRIPTS_H */