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 1sHMnN-006axt-5B for pgsql-hackers@arkaria.postgresql.org; Wed, 12 Jun 2024 12:09:41 +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 1sHMnK-00HFJG-BT for pgsql-hackers@arkaria.postgresql.org; Wed, 12 Jun 2024 12:09:39 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1sHMnK-00HFJ0-1P for pgsql-hackers@lists.postgresql.org; Wed, 12 Jun 2024 12:09:38 +0000 Received: from mail-yb1-f175.google.com ([209.85.219.175]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1sHMnH-000x25-SH for pgsql-hackers@postgresql.org; Wed, 12 Jun 2024 12:09:37 +0000 Received: by mail-yb1-f175.google.com with SMTP id 3f1490d57ef6-dfda9ec1917so1643161276.2 for ; Wed, 12 Jun 2024 05:09:35 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718194175; x=1718798975; h=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=e9RBnKtPRm8GR2pgCazCRBQ7gAnoDrS2s5HueGmrluQ=; b=W2BHTK0m1ffPdt5ihyYgvp/f5k88xQkeoXpw4dlk73z1qZwjxvV6gMrhOte8n+hrfx 3bA9M8bvV9Q8IpgtSc6Sr1GbGZc/ltwj5NWx2AKIH/B0HTh3FWPO+GknU22Mlqd3T/jr iMBMmvxsrcHfUrTjkz0PBec/uI0a+78ZWGhbQvUvsJ81IwQtPuKxZVotgsuqgWPYPDoe 0U/+L4PH/rNNUaw2owzAzaWtw4o1hKy5R/W523/p//YNId8jr9pL+9diSJTN1dizbfF9 mV6jEOB84M/GIGZ1KuBtKn2L1S7vCsmIS+Mx9IPMtfAdkb+mSAVsm2EHGDZTb4EGJEqi O5sA== X-Forwarded-Encrypted: i=1; AJvYcCVVRy4N1xCpaN5NdnArcqgPvU5tk8FwMK7cWGadcOOCkohGH8n91ghrimXFbnIPOZWWpOqeP2djls7qCIBEviPVJu0A9Lv3kUTu5rrE X-Gm-Message-State: AOJu0YwaF/T3oplsHj+uqKkflbCN9T3YXYjBe5ZsmQmgyO+lObU/UB75 EPqBwF6qTp3WwZG3EmGOvy8LYcdo502SzshIsqHmpCzIeh4M3AMwLCDvVhhjoRC+bw8NB2yDVzM 6X+UvchA5p8rs4uywIBUf3c9N9dLZdrsHGRdBmg== X-Google-Smtp-Source: AGHT+IEqdDMFguDA6FF4liDE3YQUzDVBBO0AUQjRDdqqKHiJ0zOriUMzBshuS9Nc50YUSFuYRzlgbHe6XOuo+Sr0hzc= X-Received: by 2002:a25:d511:0:b0:dfa:4fe4:1b4f with SMTP id 3f1490d57ef6-dfe66e6dc65mr1528940276.30.1718194175173; Wed, 12 Jun 2024 05:09:35 -0700 (PDT) MIME-Version: 1.0 References: <20240610200411.byj6sv2vpgol6wcf@awork3.anarazel.de> <00c5efe6-1abb-42f8-a9a7-ed3a055c4b92@dunslane.net> <20240611014911.khxuai5fy2ssbmiw@awork3.anarazel.de> <20240611234829.9d@rfd.leadboat.com> In-Reply-To: <20240611234829.9d@rfd.leadboat.com> From: Jelte Fennema-Nio Date: Wed, 12 Jun 2024 14:09:21 +0200 Message-ID: Subject: Re: RFC: adding pytest as a supported test framework To: Noah Misch Cc: Andres Freund , Andrew Dunstan , Jacob Champion , PostgreSQL Hackers Content-Type: text/plain; charset="UTF-8" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Wed, 12 Jun 2024 at 01:48, Noah Misch wrote: > If we're going to test in a non-Perl language, I'd pick C over Python. > > We'd need a library like today's Perl > PostgreSQL::Test to make C-language tests nice, but the same would apply to > any new language. P.P.S. We already write tests in C, we use it for testing libpq[1]. I'd personally definitely welcome a C library to make those tests nicer to write, because I've written a fair bit of those in the past and currently it's not very fun to do. [1]: https://github.com/postgres/postgres/blob/master/src/test/modules/libpq_pipeline/libpq_pipeline.c