tools build: Add BPF feature check to test-all
authorWang Nan <wangnan0@huawei.com>
Mon, 11 Jan 2016 13:48:01 +0000 (13:48 +0000)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Mon, 11 Jan 2016 22:22:21 +0000 (19:22 -0300)
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>
tools/build/feature/test-all.c

index 33cf6f20bd4ec6812ac6b53cfe1b301053d8c940..81025cade45fa9a3fcc6f8f0aacc8f403e6d9211 100644 (file)
 # include "test-get_cpuid.c"
 #undef main
 
+#define main main_test_bpf
+# include "test-bpf.c"
+#undef main
+
 int main(int argc, char *argv[])
 {
        main_test_libpython();
@@ -153,6 +157,7 @@ int main(int argc, char *argv[])
        main_test_pthread_attr_setaffinity_np();
        main_test_lzma();
        main_test_get_cpuid();
+       main_test_bpf();
 
        return 0;
 }