]>
git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blob - tools/perf/tests/python-use.c
fa79509da535403888c41cfa33a3ca3ff89033fd
2 * Just test if we can load the python binding.
7 #include <linux/compiler.h>
12 int test__python_use(int subtest __maybe_unused
)
17 if (asprintf(&cmd
, "echo \"import sys ; sys.path.append('%s'); import perf\" | %s %s",
18 PYTHONPATH
, PYTHON
, verbose
> 0 ? "" : "2> /dev/null") < 0)
21 ret
= system(cmd
) ? -1 : 0;