Commit d5bcade9 authored by Ian Rogers's avatar Ian Rogers Committed by Namhyung Kim

perf test: Rename builtin-test-list and add missed header guard

builtin-test-list is primarily concerned with shell script
tests. Rename the file to better reflect this and add a missed header
guard.
Signed-off-by: default avatarIan 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: default avatarNamhyung Kim <namhyung@kernel.org>
Link: https://lore.kernel.org/r/20240221034155.1500118-6-irogers@google.com
parent 1a562c0d
# SPDX-License-Identifier: GPL-2.0 # SPDX-License-Identifier: GPL-2.0
perf-y += builtin-test.o perf-y += builtin-test.o
perf-y += builtin-test-list.o perf-y += tests-scripts.o
perf-y += parse-events.o perf-y += parse-events.o
perf-y += dso-data.o perf-y += dso-data.o
perf-y += attr.o perf-y += attr.o
......
...@@ -29,7 +29,7 @@ ...@@ -29,7 +29,7 @@
#include <subcmd/exec-cmd.h> #include <subcmd/exec-cmd.h>
#include <linux/zalloc.h> #include <linux/zalloc.h>
#include "builtin-test-list.h" #include "tests-scripts.h"
static bool dont_fork; static bool dont_fork;
const char *dso_to_test; const char *dso_to_test;
......
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
#include <sys/wait.h> #include <sys/wait.h>
#include <sys/stat.h> #include <sys/stat.h>
#include "builtin.h" #include "builtin.h"
#include "builtin-test-list.h" #include "tests-scripts.h"
#include "color.h" #include "color.h"
#include "debug.h" #include "debug.h"
#include "hist.h" #include "hist.h"
......
/* SPDX-License-Identifier: GPL-2.0 */ /* SPDX-License-Identifier: GPL-2.0 */
#ifndef TESTS_SCRIPTS_H
#define TESTS_SCRIPTS_H
struct script_file { struct script_file {
char *dir; char *dir;
...@@ -10,3 +12,5 @@ struct script_file { ...@@ -10,3 +12,5 @@ struct script_file {
const struct script_file *list_script_files(void); const struct script_file *list_script_files(void);
/* Get maximum width of description string */ /* Get maximum width of description string */
int list_script_max_width(void); int list_script_max_width(void);
#endif /* TESTS_SCRIPTS_H */
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment