From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id A2344159C9B for ; Fri, 9 Aug 2024 16:05:37 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 0C8EAE2A56; Fri, 9 Aug 2024 16:05:32 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id B268FE2A4F for ; Fri, 9 Aug 2024 16:05:31 +0000 (UTC) Message-ID: <2149262c-83f5-4853-b0cb-dc23fc172a1d@gentoo.org> Date: Fri, 9 Aug 2024 12:05:28 -0400 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@lists.gentoo.org Reply-to: gentoo-dev@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [gentoo-dev] Handling installed tests To: =?UTF-8?Q?Maciej_Bar=C4=87?= , gentoo-dev@lists.gentoo.org, Sam James Cc: =?UTF-8?Q?Arsen_Arsenovi=C4=87?= , python@gentoo.org References: <87ttftr9ay.fsf@gentoo.org> <5be446de-361c-4d60-bf25-e9276b1520a0@gentoo.org> Content-Language: en-US From: Eli Schwartz Autocrypt: addr=eschwartz@gentoo.org; keydata= xjMEZmeRNBYJKwYBBAHaRw8BAQdAYNZ7pUDWhx1i2f3p6L2ZLu4FcY18UoeGC04Gq/khqwfN I0VsaSBTY2h3YXJ0eiA8ZXNjaHdhcnR6QGdlbnRvby5vcmc+wpYEExYKAD4WIQTvUdMIsc4j CIi+DYTqQj6ToWND8QUCZoRL+gIbAwUJBKKGAAULCQgHAwUVCgkICwUWAgMBAAIeBQIXgAAK CRDqQj6ToWND8aB5AP9r4kB691nNtNwKkdRiOdl7/k6WYzokvHvDamXxRJ0I+gEAjZqR5V8y mfR3fy2Z+r2Joeqdt3CIv5IwPs64spBvigLOOARmZ5E0EgorBgEEAZdVAQUBAQdATT46Z06b 1X9xjXFCYFxmq/Tj3tSEKZInDWTpoHQp4l8DAQgHwn4EGBYKACYWIQTvUdMIsc4jCIi+DYTq Qj6ToWND8QUCZmeRNAIbDAUJBKKGAAAKCRDqQj6ToWND8a2RAP40KPfbfoiZAJW5boFmFJ3G TUBDJRh9CWHyaPqq2PN+0wD/R07oLzfnJUN209mzi9TuTuHjeZybysyqXSw4MAxkMAY= In-Reply-To: <5be446de-361c-4d60-bf25-e9276b1520a0@gentoo.org> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="------------GpkOiEmz0ZAsmxGtv0u8wbdh" X-Archives-Salt: 8da44c91-898d-449c-a0f4-da6a310b5755 X-Archives-Hash: ebe4f91e6e0b7d9661255cc075efbcf4 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --------------GpkOiEmz0ZAsmxGtv0u8wbdh Content-Type: multipart/mixed; boundary="------------eT8N82E4p62B9AoYCYA0nSyg"; protected-headers="v1" From: Eli Schwartz To: =?UTF-8?Q?Maciej_Bar=C4=87?= , gentoo-dev@lists.gentoo.org, Sam James Cc: =?UTF-8?Q?Arsen_Arsenovi=C4=87?= , python@gentoo.org Message-ID: <2149262c-83f5-4853-b0cb-dc23fc172a1d@gentoo.org> Subject: Re: [gentoo-dev] Handling installed tests References: <87ttftr9ay.fsf@gentoo.org> <5be446de-361c-4d60-bf25-e9276b1520a0@gentoo.org> In-Reply-To: <5be446de-361c-4d60-bf25-e9276b1520a0@gentoo.org> --------------eT8N82E4p62B9AoYCYA0nSyg Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On 8/9/24 11:59 AM, Maciej Bar=C4=87 wrote: > Hi Sam, >=20 > We have a "source" flag so maybe we could either use that or have > "test-source" BUT we also have FEATURES=3D"installsources" ...so (if I > understand that feature correctly) we can just run test from > /usr/src/debug/${CATEGORY}/${PF} >=20 > But IMO I'd rather clone the project and run test from the clone. >=20 > Of source the drawback of installsources & git cloning is that emerge > does not run any modifications on the tests nor applies patches to them= > nor buildsystem/testrunner used. installsources is not the same thing at all. That parses ELF files to extract .c / .cpp etc source filenames from debuginfo to save them. This thread is asking about the idea of compiling test programs and installing the test executables so that you can run them later. You absolutely cannot do that with a directory of .c files, for numerous reasons including the fact that it only saves sources for files which get installed anyway, but also because it does not install build system files (meson.build, Makefile, CMakeLists.txt, etc). P.S. See my gnome documentation link, it talks about git cloning too. --=20 Eli Schwartz --------------eT8N82E4p62B9AoYCYA0nSyg-- --------------GpkOiEmz0ZAsmxGtv0u8wbdh Content-Type: application/pgp-signature; name="OpenPGP_signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="OpenPGP_signature.asc" -----BEGIN PGP SIGNATURE----- wnsEABYIACMWIQTnFNnmK0TPZHnXm3qEp9ErcA0vVwUCZrY+SAUDAAAAAAAKCRCEp9ErcA0vVx8b AP91nworiXzI5o2+2WjTg0S40Q+XAh1iq1+IAT3mUqhrggEArhpGTMtfX9tzMcioCApWGHgQiE1E ti/BRUF20RuXTw0= =m/6G -----END PGP SIGNATURE----- --------------GpkOiEmz0ZAsmxGtv0u8wbdh--