mirror of
https://github.com/torvalds/linux.git
synced 2024-12-14 07:02:23 +00:00
44a8528c24
Use null terminated array of test cases rather than the previous sub test functions. Signed-off-by: Ian Rogers <irogers@google.com> Tested-by: Sohaib Mohamed <sohaib.amhmd@gmail.com> Acked-by: Jiri Olsa <jolsa@redhat.com> Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com> Cc: Brendan Higgins <brendanhiggins@google.com> Cc: Daniel Latypov <dlatypov@google.com> Cc: David Gow <davidgow@google.com> Cc: Ingo Molnar <mingo@redhat.com> Cc: Jin Yao <yao.jin@linux.intel.com> Cc: John Garry <john.garry@huawei.com> Cc: Mark Rutland <mark.rutland@arm.com> Cc: Namhyung Kim <namhyung@kernel.org> Cc: Paul Clarke <pc@us.ibm.com> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Stephane Eranian <eranian@google.com> Link: https://lore.kernel.org/r/20211104064208.3156807-13-irogers@google.com Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
34 lines
815 B
C
34 lines
815 B
C
// SPDX-License-Identifier: GPL-2.0
|
|
#include "tests.h"
|
|
#include "c++/clang-c.h"
|
|
#include <linux/kernel.h>
|
|
|
|
#ifndef HAVE_LIBCLANGLLVM_SUPPORT
|
|
static int test__clang_to_IR(struct test_suite *test __maybe_unused,
|
|
int subtest __maybe_unused)
|
|
{
|
|
return TEST_SKIP;
|
|
}
|
|
|
|
static int test__clang_to_obj(struct test_suite *test __maybe_unused,
|
|
int subtest __maybe_unused)
|
|
{
|
|
return TEST_SKIP;
|
|
}
|
|
#endif
|
|
|
|
static struct test_case clang_tests[] = {
|
|
TEST_CASE_REASON("builtin clang compile C source to IR", clang_to_IR,
|
|
"not compiled in"),
|
|
TEST_CASE_REASON("builtin clang compile C source to ELF object",
|
|
clang_to_obj,
|
|
"not compiled in"),
|
|
{ .name = NULL, }
|
|
};
|
|
|
|
struct test_suite suite__clang = {
|
|
.desc = "builtin clang support",
|
|
.test_cases = clang_tests,
|
|
.subtest = { .skip_if_fail = true, },
|
|
};
|