postgresql: add ptest support
PATCH v2 1/1 postgresql: add ptest support
From: Guocai He <[email protected]>
Add ptest infrastructure to run the PostgreSQL standard regression test suite (pg_regress) on the target system.
Test logs:
root@qemux86-64:~# ptest-runner postgresql START: ptest-runner 2026-03-24T02:42 BEGIN: /usr/lib64/postgresql/ptest ..... **if all pass ** PASS: - event_trigger_login 1901 ms PASS: - fast_default 9459 ms PASS: - tablespace 16542 ms PASS: all tests passed
**if have fail**
FAIL: create_type 1763 ms
PASS: create_schema 2123 ms
PASS: - tablespace 23226 ms
FAIL: some tests failed
waiting for server to shut down.... done
server stopped
DURATION: 853
END: /usr/lib64/postgresql/ptest
2026-03-24T02:56
STOP: ptest-runner
TOTAL: 1 FAIL: 0
---
Changes in V2:
- Convert pg_regress TAP output (ok/not ok) to ptest-compatible PASS:/FAIL: format using sed
- Add summary line (PASS: all tests passed / FAIL: some tests failed) for autobuilder log parser
- Update RDEPENDS:${PN}-ptest
.../include/ptest-packagelists-meta-oe.inc | 1 + .../recipes-dbs/postgresql/files/run-ptest | 65 +++++++++++++++++++ meta-oe/recipes-dbs/postgresql/postgresql.inc | 42 +++++++++++- 3 files changed, 107 insertions(+), 1 deletion(-) create mode 100644 meta-oe/recipes-dbs/postgresql/files/run-ptest
meta-oe/conf/include/ptest-packagelists-meta-oe.inc +1 -0
@@ -76,6 +76,7 @@ PTESTS_SLOW_META_OE = "\ fftw \ libusb-compat \ mariadb \ + postgresql \ re2 \ rocksdb \ "
meta-oe/recipes-dbs/postgresql/files/run-ptest new file +65 -0
65 lines not on this page · raw message
meta-oe/recipes-dbs/postgresql/postgresql.inc +41 -1
60 lines not on this page · raw message
Signature · 1 line
2.34.1