From: Ben Widawsky Subject: Re: [PATCH 2/8] lib: Introduce drmtest_skip_on_simulation() Date: Thu, 18 Jul 2013 09:31:15 -0700 Message-ID: <20130718163115.GB6696@bwidawsk.net> References: <1374160753-21781-1-git-send-email-damien.lespiau@intel.com> <1374160753-21781-3-git-send-email-damien.lespiau@intel.com> <20130718091834.547d863c@jbarnes-desktop> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from shiva.localdomain (unknown [209.20.75.48]) by gabe.freedesktop.org (Postfix) with ESMTP id A6CAEE5DC5 for ; Thu, 18 Jul 2013 09:31:22 -0700 (PDT) Content-Disposition: inline In-Reply-To: <20130718091834.547d863c@jbarnes-desktop> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: intel-gfx-bounces+gcfxdi-intel-gfx=m.gmane.org@lists.freedesktop.org Errors-To: intel-gfx-bounces+gcfxdi-intel-gfx=m.gmane.org@lists.freedesktop.org To: Jesse Barnes Cc: intel-gfx@lists.freedesktop.org List-Id: intel-gfx@lists.freedesktop.org On Thu, Jul 18, 2013 at 09:18:34AM -0700, Jesse Barnes wrote: > On Thu, 18 Jul 2013 16:19:07 +0100 > Damien Lespiau wrote: > > > This will allow us to explicitely blacklist tests we don't want to run > > on simulation. I agree with Jesse on this. Mostly what I've wanted is an "opt-in" approach as opposed to an "opt-out" one. Such a thing is better controlled via a Makefile target, or separate script. Generally I loathe the idea of a separate script, but in a case like simulation where I'm thinking we may want to impose higher level timeouts via kill... maybe it's not so bad. > > So FWIW I'll reiterate that I'd prefer to manage this in either the > Makefile target for the tests (e.g. have a single_kernel_sim_tests or > somesuch), or separate scripts altogether for running the different > types of tests, with specific subsets for running on simulation. > > Having to sprinkle skip_on_simulation into the actual tests seems like > duplicated effort across every test. More importantly, it's too easy to forget to add, or not know when it's relevant to add. "Doesn't scale" as Daniel likes to say. > > For the cases where the args or iterations differ, it might be better > to simply take an argv for the values, and have the sim vs. full > scripts pass different values. Time to develop our own programming language with for_each semantics :D I'm okay with what we ended up on the iterators. It's somewhat ugly, but I couldn't come up with anything less ugly, and the argv thing I think just won't work well for some of the weirder tests. > > -- > Jesse Barnes, Intel Open Source Technology Center > _______________________________________________ > Intel-gfx mailing list > Intel-gfx@lists.freedesktop.org > http://lists.freedesktop.org/mailman/listinfo/intel-gfx -- Ben Widawsky, Intel Open Source Technology Center