diff options
author | Wang Nan <wangnan0@huawei.com> | 2016-01-11 08:48:01 -0500 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2016-01-11 17:22:21 -0500 |
commit | 0c4d40d580752dd7d639208782f71e317b16be67 (patch) | |
tree | a45a9918010ed2b1fcd6c9ce33e1a0a293489f6f | |
parent | d5ef3140351450d240f864208317f5665e7bbd1c (diff) |
tools build: Add BPF feature check to test-all
The test-all.c file doesn't check BPF related features. For an
environment with all other features enabled, BPF would be considered
enabled without doing real feature check.
This patch adds test-bpf.c into test-all.c.
Signed-off-by: Wang Nan <wangnan0@huawei.com>
Acked-by: Jiri Olsa <jolsa@redhat.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Zefan Li <lizefan@huawei.com>
Cc: pi3orama@163.com
Link: http://lkml.kernel.org/r/1452520124-2073-11-git-send-email-wangnan0@huawei.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
-rw-r--r-- | tools/build/feature/test-all.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/build/feature/test-all.c b/tools/build/feature/test-all.c index 33cf6f20bd4e..81025cade45f 100644 --- a/tools/build/feature/test-all.c +++ b/tools/build/feature/test-all.c | |||
@@ -125,6 +125,10 @@ | |||
125 | # include "test-get_cpuid.c" | 125 | # include "test-get_cpuid.c" |
126 | #undef main | 126 | #undef main |
127 | 127 | ||
128 | #define main main_test_bpf | ||
129 | # include "test-bpf.c" | ||
130 | #undef main | ||
131 | |||
128 | int main(int argc, char *argv[]) | 132 | int main(int argc, char *argv[]) |
129 | { | 133 | { |
130 | main_test_libpython(); | 134 | main_test_libpython(); |
@@ -153,6 +157,7 @@ int main(int argc, char *argv[]) | |||
153 | main_test_pthread_attr_setaffinity_np(); | 157 | main_test_pthread_attr_setaffinity_np(); |
154 | main_test_lzma(); | 158 | main_test_lzma(); |
155 | main_test_get_cpuid(); | 159 | main_test_get_cpuid(); |
160 | main_test_bpf(); | ||
156 | 161 | ||
157 | return 0; | 162 | return 0; |
158 | } | 163 | } |