From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S971701AbdDTSQS (ORCPT ); Thu, 20 Apr 2017 14:16:18 -0400 Received: from mail.kernel.org ([198.145.29.136]:47148 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S971644AbdDTSQP (ORCPT ); Thu, 20 Apr 2017 14:16:15 -0400 Date: Thu, 20 Apr 2017 14:16:05 -0400 From: Steven Rostedt To: LKML Cc: Shuah Khan , Masami Hiramatsu , Namhyung Kim Subject: Re: [RFC][PATCH] selftests: ftrace: Allow some tests to be run in a tracing instance Message-ID: <20170420141605.083fd934@gandalf.local.home> In-Reply-To: <20170420133034.0746d5c1@gandalf.local.home> References: <20170420133034.0746d5c1@gandalf.local.home> X-Mailer: Claws Mail 3.14.0 (GTK+ 2.24.31; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 20 Apr 2017 13:30:34 -0400 Steven Rostedt wrote: > An tracing instance has several of the same capabilities as the top level > instance, but may be implemented slightly different. Instead of just writing > tests that duplicat the same test cases of the top level instance, allow a > test to be written for both the top level as well as for an instance. > > If a test case can be run in both the top level as well as in an tracing > instance directory, then it should have a ".itc" extension instead of just > the ".tc" extension. > > Cc: Shuah Khan > Cc: Masami Hiramatsu > Cc: Namhyung Kim > Signed-off-by: Steven Rostedt (VMware) > --- Updated with: diff --git a/tools/testing/selftests/ftrace/ftracetest b/tools/testing/selftests/ftrace/ftracetest index 889ec67..5e04f53 100755 --- a/tools/testing/selftests/ftrace/ftracetest +++ b/tools/testing/selftests/ftrace/ftracetest @@ -295,7 +295,7 @@ for t in $TEST_CASES; do done if [ $RUN_INSTANCES -eq 1 ]; then - echo "Running tests in an tracing instance:" + echo "Running tests in a tracing instance:" for t in $TEST_CASES; do if [ "${t/*./}" != "itc" ]; then continue -- Steve