From b64d990bf2d40bb55d456fa6e614a576a51a3fda Mon Sep 17 00:00:00 2001
From: Christoph Berg <myon@debian.org>
Date: Tue, 18 Jul 2023 13:45:06 +0200
Subject: [PATCH] Give up on playing whack-a-mole with upstream regression
 tests

... and mark them as flaky; add a simple superficial "create extension" test.
---
 debian/changelog              | 2 ++
 debian/tests/control          | 6 +++++-
 debian/tests/create-extension | 3 +++
 3 files changed, 10 insertions(+), 1 deletion(-)
 create mode 100755 debian/tests/create-extension

diff --git a/debian/changelog b/debian/changelog
index 3ca4f19..191a72e 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -5,6 +5,8 @@ postgresql-mysql-fdw (2.9.1-1) unstable; urgency=medium
     mariadb now.)
   * Adjust tests for changed mysql error messages. (Closes: #1033836)
   * Remove pushdown test with varying output on PG11.
+  * Give up on playing whack-a-mole with upstream regression tests and mark
+    them as flaky; add a simple superficial "create extension" test.
 
  -- Christoph Berg <myon@debian.org>  Tue, 18 Jul 2023 12:59:44 +0200
 
diff --git a/debian/tests/control b/debian/tests/control
index 4d50f7c..b723fb2 100644
--- a/debian/tests/control
+++ b/debian/tests/control
@@ -1,3 +1,7 @@
 Depends: @, default-mysql-server | mysql-server, locales-all, make
 Tests: installcheck
-Restrictions: needs-root, allow-stderr, skippable
+Restrictions: needs-root, allow-stderr, flaky, skippable
+
+Depends: @
+Tests: create-extension
+Restrictions: allow-stderr, superficial
diff --git a/debian/tests/create-extension b/debian/tests/create-extension
new file mode 100755
index 0000000..496d2d1
--- /dev/null
+++ b/debian/tests/create-extension
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+echo 'create extension mysql_fdw' | pg_buildext psql
-- 
GitLab