[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] tests/vpci: install test


  • To: Roger Pau Monné <roger.pau@xxxxxxxxxx>
  • From: Jan Beulich <jbeulich@xxxxxxxx>
  • Date: Mon, 13 Mar 2023 12:38:55 +0100
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=suse.com; dmarc=pass action=none header.from=suse.com; dkim=pass header.d=suse.com; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=di2gzvbSBReX9UVKYsx0Xdku77bc9j1xXErYlUinvTM=; b=eEa1ugIJwqnCNwK8i214Bgl2zFCM6FVlM8ogTSTCrTyYGM+/W/s/JFfn8nFVTn7WIxqqbhDWx5r1jAtAs7q31gC/E2V7KvoT+6VuSHq61c+VMD0dGkLRoLWXh9AJt0lMuffPi3VbfFuh7/EdwJhoP7whSQxb/St35I2nHeW+/LS97R9dzEFeojO+WRkmLRR0i1hGMDEWtoGnPUj9Ik182I9uSwpD9frDwQBBcnA6t0+C2OOoBUBrKaaHUZMenEYqGNiJFv6VeX7raHwCKJrO2ziP5dbc7peT2gzqNIO3d4ApaoGsthBJCKy4UUhHwtteLToCJAePajnq0qSvrmF4pQ==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Fn5T/IJEElAG6DOLX+0+W0j7Xl6rzs7nHcz9qWFFhehizUipiij4od7gvAYr6fMwKBkL0JkUZnZagWYwgI2vEEPqTc+DH0ZP0iD67MVtu6MSOCMLlZa0/LP+Q0cINDD0D6CYFTSrUz2m64u1K0s5mkSCyE/Uh3qOYMJ6X2c6kWiG6LTxDptvDXl0Gmu/L9MxwLpUQKr/QTSJ5ZbK5c61psyx2BftiVVMPW6cUT85i+l7PnHT0OOt9yv863hXz/6NpX3Wfc7T367XZdl5dshoEUU5on3H0U/g/RnYgyi3M1PGZpECEm2Rs8gBpkzRF5nAu29bOX6QDcAqUpks/R7BMA==
  • Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=suse.com;
  • Cc: andrew.cooper3@xxxxxxxxxx, Wei Liu <wl@xxxxxxx>, Anthony PERARD <anthony.perard@xxxxxxxxxx>, xen-devel@xxxxxxxxxxxxxxxxxxxx
  • Delivery-date: Mon, 13 Mar 2023 11:39:15 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

On 13.03.2023 12:15, Roger Pau Monné wrote:
> On Mon, Mar 13, 2023 at 11:43:43AM +0100, Jan Beulich wrote:
>> On 13.03.2023 11:31, Roger Pau Monné wrote:
>>> On Fri, Mar 10, 2023 at 03:32:41PM +0100, Jan Beulich wrote:
>>>> On 10.03.2023 14:38, Roger Pau Monné wrote:
>>>>> On Fri, Mar 10, 2023 at 12:06:29PM +0100, Jan Beulich wrote:
>>>>>> On 09.03.2023 17:58, Roger Pau Monne wrote:
>>>>>>> Introduce an install target, like it's used by other tests.  This
>>>>>>> allows running the test on the installed systems, which is easier than
>>>>>>> running it during the build phase when dealing with automated testing.
>>>>>>> Strictly speaking the vpci test doesn't require to be run on a Xen
>>>>>>> host currently, but that allows easier integration with logic that
>>>>>>> runs the rest of the tests.
>>>>>>
>>>>>> I accept that as a possible way of looking at things, but personally I
>>>>>> remain unconvinced of this model. To me what is installed should be of
>>>>>> value to users. If there was a properly separated directory where all
>>>>>> (and only) tests were put, I might agree with installing. (Nevertheless
>>>>>> this isn't an objection, merely a remark.)
>>>>>>
>>>>>>> While there also adjust the makefile to use $(RM), and rename the
>>>>>>> resulting binary to use a dash instead of an underscore (again to
>>>>>>> match the rest of the tests).
>>>>>>>
>>>>>>> Since the resulting test binary is now part of the distribution CC
>>>>>>> must be used instead of HOSTCC.
>>>>>>
>>>>>> This breaks the run: goal, doesn't it? If the new mode is wanted, I
>>>>>> think the two kinds of binaries (and rules) need separating (maybe a
>>>>>> way can be found to avoid duplicating the rules, which would seem
>>>>>> desirable).
>>>>>
>>>>> The run rule is not hooked up in any of the upper level makefile logic,
>>>>
>>>> What about the run-tests-% goal in the top level Makefile?
>>>
>>> Urg, I wasn't aware of that target.  I assume just removing the `run`
>>> target from the vpci makefile would be an acceptable solution then.
>>
>> I'm afraid I wouldn't view this as acceptable. I would very much like
>> to retain these run: goals, as I view it as important that such tests
>> be possible to run easily and right from the build area. What might be
>> acceptable to me is if ...
>>
>>> It's still the user that needs to explicitly call run-tests-vpci, so
>>> it would better know that HOSTCC == CC before attempting that.
>>
>> ... the run: rune would be enclosed in "ifeq ($(CC),$(HOSTCC))". Yet
>> even that is fragile. For tests like this I view it as secondary to
>> be runnable on the destination architecture, and hence I continue to
>> think that if installing such tests is really wanted, binaries for
>> host and target should be properly separated.
> 
> vpci test is special in this regard when compared to the rest of the
> tests that do make use of the hypercall interface to a degree, and
> hence are not expected to be run from the build host as they require
> to be run from a Xen domain.

Right, which is why I said "for tests like this" (which includes in
particular also the x86 emulator harness).

> I think the benefit of having the test run part of XenRT is greater
> than the downfall of installing a test as part of the distribution.
> 
> I've added a guard to the `run` target in order to check that HOSTCC
> == CC, hope that is enough.

With that at least I won't further object to the change.

Jan



 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.