1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-28 23:42:10 +03:00

Add basic TAP tests for psql's tab-completion logic.

Up to now, psql's tab-complete.c has had exactly no regression test
coverage.  This patch is an experimental attempt to add some.

This needs Perl's IO::Pty module, which isn't installed everywhere,
so the test script just skips all tests if that's not present.
There may be other portability gotchas too, so I await buildfarm
results with interest.

So far this just covers a few very basic keyword-completion and
query-driven-completion scenarios, which should be enough to let us
get a feel for whether this is practical at all from a portability
standpoint.  If it is, there's lots more that can be done.

Discussion: https://postgr.es/m/10967.1577562752@sss.pgh.pa.us
This commit is contained in:
Tom Lane
2020-01-02 15:02:21 -05:00
parent 915c04f091
commit 7c015045b9
7 changed files with 204 additions and 1 deletions

2
configure vendored
View File

@ -706,6 +706,7 @@ with_libxml
XML2_CONFIG
UUID_EXTRA_OBJS
with_uuid
with_readline
with_systemd
with_selinux
with_openssl
@ -8000,6 +8001,7 @@ $as_echo "$as_me: WARNING: *** Readline does not work on MinGW --- disabling" >&
fi
#
# Prefer libedit
#