perf test: Do not be case sensitive when searching for matching tests
authorArnaldo Carvalho de Melo <acme@redhat.com>
Fri, 6 Nov 2015 20:03:38 +0000 (17:03 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Fri, 6 Nov 2015 20:50:04 +0000 (17:50 -0300)
Before:

  # perf test llvm
  # perf test LLVM
  35: Test LLVM searching and compiling                        : Ok
  #

After

  # perf test llvm
  35: Test LLVM searching and compiling                        : Ok
  #

Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Wang Nan <wangnan0@huawei.com>
Link: http://lkml.kernel.org/n/tip-c1u05npqbf6epse17ovfejoj@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/tests/builtin-test.c

index 7b0120abc137db8137fb0d35a00793ab4652b8d5..80c442eab767d0c333408c8daecbc32d3a120d0e 100644 (file)
@@ -196,7 +196,7 @@ static bool perf_test__matches(struct test *test, int curr, int argc, const char
                        continue;
                }
 
-               if (strstr(test->desc, argv[i]))
+               if (strcasestr(test->desc, argv[i]))
                        return true;
        }