Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tsjlA-0058Kh-KX for pgsql-hackers@arkaria.postgresql.org; Thu, 13 Mar 2025 14:42:08 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1tsjl8-00FKgP-KF for pgsql-hackers@arkaria.postgresql.org; Thu, 13 Mar 2025 14:42:06 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tsjl8-00FKgH-9a for pgsql-hackers@lists.postgresql.org; Thu, 13 Mar 2025 14:42:06 +0000 Received: from mail-yw1-x112e.google.com ([2607:f8b0:4864:20::112e]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1tsjl4-002fGd-0o for pgsql-hackers@postgresql.org; Thu, 13 Mar 2025 14:42:05 +0000 Received: by mail-yw1-x112e.google.com with SMTP id 00721157ae682-6fee50bfea5so10426077b3.1 for ; Thu, 13 Mar 2025 07:42:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1741876922; x=1742481722; darn=postgresql.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=etrFcQgty0LEHtqH1zFjfpprguAsWZyI4wP64PeeFGM=; b=EfiTVWYnBOni24OYwUgnHoF9affgqhrldk5cgFG7/Kek1rqjq/+yL4LykWtJGnclKZ TkJ0bjH9fdNBp2omaSxBDQ22mC58YJM7nZ7E1EYJeT/9TVbkhPlRhVjLuY+oLWCbA7iy GbR5O/E8KcHuNPGIf3ISAqTHTxwAfLC866Kub7TdSejAmx5ifEyN+lc35Q9+JEwquizD TaHs41qiTmosW+Th7JEtSeZwWwDz0sjCc3J2vI19lsi7YWf5catvVLXf/pV0aZEZzMsL zGVhXs+wuvvlHJbHp5Jnfmj6sSQmBPwOyaS/pp2MInmN5oL030j3ly8nZ+mJtGNLZ9Oq 7KPw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1741876922; x=1742481722; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=etrFcQgty0LEHtqH1zFjfpprguAsWZyI4wP64PeeFGM=; b=WlTQKKNlddt2Yccx+zVT00y3SEsBGSwwSf08PkmW950/WFpe4bnUE2wPuFY3ZhD/0G HR09RbAN5cwbSMjp+iDHypd7enEvbXbnOTuEgxUJ9jDE6QnQrn9J4X+fsgvwTH11IFiS UtgIbkaR0G/+ewI/JjhZAFd5CKunZFmGCR0FjYlIWFJWYNDeun0mmto+MM+GaurBxubK hBlhLfdnzpQz1SiTr4ukIQvF8v6i5UkRwrefrzIY2sVVDlIKpJMm0IPUMGz7mYCnl7Zv 7FDRwB4bb8BiGYnlZKhslZJ8C1LSVeIc+t0aF9zXTyovWhaJZrSKvolJvtO/AHOcdDTN ORZw== X-Forwarded-Encrypted: i=1; AJvYcCXmmNSz3+JEbT7jOWhwKB0MrruA866EomUaVa0UgraVhBaIrT7nrqElZD0m5IhV87ac01qK1qhRlDYA9Efo@postgresql.org X-Gm-Message-State: AOJu0YyjR0FKwBHzN97qiBtcRoWn3c7SoUdbsuRp2ubfy2GGy6jbJ+V1 vDanondKVpP8k7bY3FG08ximZoe+7yaABms7SK/qVBtH1SUbwWpUdGhUdDXECQ191idK7wHlYgM OCdx+kvKyZiBFWVkhSiYiMLsGX7ETBtZaQiY= X-Gm-Gg: ASbGnctXmM7/R3IfckaXPrdcfaVPX00LWEnX1SIsDOjEKf9X7fLhlhGt+r5x9+ygWG8 SwpwwdORzYp27jpAuqjtOtq/w+4+0hcZoMiAs/6HSunLcMwhcOQkTrpJZT6dhEkQxRkjVS4zRse ALlKHe8L8UVKpVXc5sUFre6gFH X-Google-Smtp-Source: AGHT+IFK7vyOUqvrFXqE4SVH07q8ev3S/woY31/OT5PwmIxlMnsNdxrncyVuz/bzjrIqMwCBbKQ3v8Oj6Na5dRLcWv8= X-Received: by 2002:a05:690c:6e0a:b0:6fe:aa66:5d82 with SMTP id 00721157ae682-6febf305df3mr380063967b3.19.1741876921626; Thu, 13 Mar 2025 07:42:01 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: vignesh C Date: Thu, 13 Mar 2025 20:11:49 +0530 X-Gm-Features: AQ5f1JpRsMv2y5uHqYRAOZ2WjRQ6G-PMPlnKwy9jb0WeE1pI1jcwcmkQ9tilA9g Message-ID: Subject: Re: Add support for EXTRA_REGRESS_OPTS for meson To: Andres Freund Cc: Andreas Karlsson , pgsql-hackers Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Thu, 27 Feb 2025 at 18:51, Andres Freund wrote: > > Hi, > > On 2025-02-27 13:53:17 +0100, Andreas Karlsson wrote: > > We use EXTRA_REGRESS_OPTS to make sure the whole test suite passes with= our > > extension loaded and since I prefer develop in meson over using autotoo= ls > > and make the lack of support for EXTRA_REGRESS_OPTS in meson > > has bugged me for a while. > > Yep, we should add support for that. TEMP_CONFIG probably too. > > > > Question: Would it make sense to rename it to PG_REGRESS_EXTRA_OPTS or > > something similar while we already touch touch this code to make the va= rious > > options easier to remember? > > I'd not tackle that at the same time personally. > > > > @@ -51,7 +52,12 @@ env_dict =3D {**os.environ, > > if "PG_TEST_EXTRA" not in env_dict and args.pg_test_extra: > > env_dict["PG_TEST_EXTRA"] =3D args.pg_test_extra > > > > -sp =3D subprocess.Popen(args.test_command, env=3Denv_dict, stdout=3Dsu= bprocess.PIPE) > > +if args.testname in ['regress', 'isolation', 'ecpg'] and 'EXTRA_REGRES= S_OPTS' in env_dict: > > + test_command =3D args.test_command + shlex.split(env_dict['EXTRA_R= EGRESS_OPTS']) > > +else: > > + test_command =3D args.test_command > > + > > +sp =3D subprocess.Popen(test_command, env=3Denv_dict, stdout=3Dsubproc= ess.PIPE) > > # Meson categorizes a passing TODO test point as bad > > # (https://github.com/mesonbuild/meson/issues/13183). Remove the TODO > > # directive, so Meson computes the file result like Perl does. This c= ould > > I hacked up something similar before, for TEMP_CONFIG, and found that I n= eeded > to do something like this: > > +if 'TEMP_CONFIG' in os.environ and \ > + args.testname in ['regress', 'isolation', 'ecpg']: > + # be careful to insert before non-option args, otherwise it'll f= ail > + # e.g. on windows > + args.test_command.insert(1, '--temp-config=3D'+os.environ['TEMP_= CONFIG']) Could you please upload a v2 to address this? In the meantime, I=E2=80=99ve updated the commitfest entry status to 'Waiting on Author.' Kindly update the status once the new version is posted. Regards, Vignesh