From: David Hildenbrand Subject: Re: [kvm-unit-tests PATCH RFC] s390x: factor out running of tests into common code Date: Tue, 12 Sep 2017 18:39:14 +0200 Message-ID: <165f345d-522c-b662-eaa2-0c5b1e5d5b5b@redhat.com> References: <20170912141658.8146-1-david@redhat.com> <9fe98be8-6014-6fe3-c5f8-635e84b09ab5@redhat.com> <4dfe9fca-6c7e-84fc-3d9b-eced786d4df0@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Cc: =?UTF-8?B?UmFkaW0gS3LEjW3DocWZ?= , Drew Jones , Laurent Vivier , Thomas Huth To: Paolo Bonzini , kvm@vger.kernel.org Return-path: Received: from mx1.redhat.com ([209.132.183.28]:43994 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751054AbdILQjR (ORCPT ); Tue, 12 Sep 2017 12:39:17 -0400 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 3AC4CC04B317 for ; Tue, 12 Sep 2017 16:39:17 +0000 (UTC) In-Reply-To: <4dfe9fca-6c7e-84fc-3d9b-eced786d4df0@redhat.com> Content-Language: en-US Sender: kvm-owner@vger.kernel.org List-ID: >> Hmm.... probably have too look into the details of the malloc discussion... > > It's really less work than it sounds. I'm not wed to GTest, but I think > the ability to define test cases programmatically is useful (vmexit.c > for example has a case where the testcase list is actually in QEMU!) and > it pretty much requires malloc. Btw, by "has a case where the testcase list is actually in QEMU" you mean simply selecting the list of tests to run via -apend? This is already supported in this current RFC, and the way Thomas implemented it doesn't require malloc - see "run_it". (it's not 100% clean but for our purpose just ok). > > Paolo > -- Thanks, David