diff options
author | Lu Guanqun <guanqun.lu@intel.com> | 2013-08-20 15:01:22 +0800 |
---|---|---|
committer | Zhigang Gong <zhigang.gong@linux.intel.com> | 2013-08-21 14:52:40 +0800 |
commit | dd641098a8d4173f99141740806ab9a52a7dd810 (patch) | |
tree | 8c1d93db346fd0c1e8cd5066f9e86d24c4309080 /utests/utest_run.cpp | |
parent | b961e99442ce7de6a1498946a47baa4a732b870b (diff) | |
download | beignet-dd641098a8d4173f99141740806ab9a52a7dd810.tar.gz |
list all available utests' names
Signed-off-by: Lu Guanqun <guanqun.lu@intel.com>
Reviewed-by: Zhigang Gong <zhigang.gong@linux.intel.com>
Diffstat (limited to 'utests/utest_run.cpp')
-rw-r--r-- | utests/utest_run.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/utests/utest_run.cpp b/utests/utest_run.cpp index e577b7be..86536d74 100644 --- a/utests/utest_run.cpp +++ b/utests/utest_run.cpp @@ -25,11 +25,17 @@ */ #include "utest_helper.hpp" #include "utest_exception.hpp" +#include <string.h> #include <iostream> int main(int argc, char *argv[]) { try { + if (argc == 2 && !strcmp(argv[1], "--list")) { + UTest::listAll(); + return 0; + } + cl_ocl_init(); if (argc >= 2) for (int i = 1; i < argc; ++i) |