Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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: 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-6-irogers@google.com

authored by

Ian Rogers and committed by
Namhyung Kim
d5bcade9 1a562c0d

+7 -3
+1 -1
tools/perf/tests/Build
··· 1 1 # SPDX-License-Identifier: GPL-2.0 2 2 3 3 perf-y += builtin-test.o 4 - perf-y += builtin-test-list.o 4 + perf-y += tests-scripts.o 5 5 perf-y += parse-events.o 6 6 perf-y += dso-data.o 7 7 perf-y += attr.o
+1 -1
tools/perf/tests/builtin-test-list.c tools/perf/tests/tests-scripts.c
··· 15 15 #include <sys/wait.h> 16 16 #include <sys/stat.h> 17 17 #include "builtin.h" 18 - #include "builtin-test-list.h" 18 + #include "tests-scripts.h" 19 19 #include "color.h" 20 20 #include "debug.h" 21 21 #include "hist.h"
+4
tools/perf/tests/builtin-test-list.h tools/perf/tests/tests-scripts.h
··· 1 1 /* SPDX-License-Identifier: GPL-2.0 */ 2 + #ifndef TESTS_SCRIPTS_H 3 + #define TESTS_SCRIPTS_H 2 4 3 5 struct script_file { 4 6 char *dir; ··· 12 10 const struct script_file *list_script_files(void); 13 11 /* Get maximum width of description string */ 14 12 int list_script_max_width(void); 13 + 14 + #endif /* TESTS_SCRIPTS_H */
+1 -1
tools/perf/tests/builtin-test.c
··· 29 29 #include <subcmd/exec-cmd.h> 30 30 #include <linux/zalloc.h> 31 31 32 - #include "builtin-test-list.h" 32 + #include "tests-scripts.h" 33 33 34 34 static bool dont_fork; 35 35 const char *dso_to_test;