From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753252AbaIXQWQ (ORCPT ); Wed, 24 Sep 2014 12:22:16 -0400 Received: from lists.s-osg.org ([54.187.51.154]:37482 "EHLO lists.s-osg.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751321AbaIXQWP (ORCPT ); Wed, 24 Sep 2014 12:22:15 -0400 Message-ID: <5422EFB4.2050104@osg.samsung.com> Date: Wed, 24 Sep 2014 10:22:12 -0600 From: Shuah Khan Organization: Samsung Open Source Group User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.1.1 MIME-Version: 1.0 To: Steven Rostedt CC: Masami Hiramatsu , LKML , Namhyung Kim , Shuah Khan , Tom Zanussi , Oleg Nesterov , Fengguang Wu , Ingo Molnar , Shuah Khan Subject: Re: [RFC][PATCH] ftracetest: Add a couple of ftrace test cases References: <20140923173846.603cb49c@gandalf.local.home> <5422336A.6030304@hitachi.com> <20140924114235.4287f4a1@gandalf.local.home> <20140924115811.6eeeab8c@gandalf.local.home> <5422EAE2.6080005@osg.samsung.com> <20140924120853.0a717b7e@gandalf.local.home> In-Reply-To: <20140924120853.0a717b7e@gandalf.local.home> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 09/24/2014 10:08 AM, Steven Rostedt wrote: > On Wed, 24 Sep 2014 10:01:38 -0600 > Shuah Khan wrote: > >> I am working on adding the framework for c tests. We will have >> to get this evolved for shell scripts. Please see the following >> thread: >> >> https://lkml.org/lkml/2014/9/23/926 >> > > Thanks, > > Also, what's the rules for a test that requires other tools. Some of my > tests require trace-cmd to be installed as well as perf. My stress test > runs perf against trace-cmd running hackbench (another required tool), > but I believe that perf has hackbench built in so I could replace > hackbench with the perf version. > One simple approach is to have the user install the required tools for the test. Indicate what is needed and fail the test with appropriate message with xskip. This is what I have in mind for tests that can't be run because of a missing config. The same can be extended to external tools that the test depends on. thanks, -- Shuah -- Shuah Khan Sr. Linux Kernel Developer Samsung Research America (Silicon Valley) shuahkh@osg.samsung.com | (970) 217-8978