From dd641098a8d4173f99141740806ab9a52a7dd810 Mon Sep 17 00:00:00 2001 From: Lu Guanqun Date: Tue, 20 Aug 2013 15:01:22 +0800 Subject: list all available utests' names Signed-off-by: Lu Guanqun Reviewed-by: Zhigang Gong --- utests/utest_run.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'utests/utest_run.cpp') 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 #include 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) -- cgit v1.2.1