-
- Downloads
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
Showing
- configure 2 additions, 0 deletionsconfigure
- configure.in 1 addition, 0 deletionsconfigure.in
- src/Makefile.global.in 1 addition, 0 deletionssrc/Makefile.global.in
- src/bin/psql/.gitignore 1 addition, 1 deletionsrc/bin/psql/.gitignore
- src/bin/psql/Makefile 10 additions, 0 deletionssrc/bin/psql/Makefile
- src/bin/psql/t/010_tab_completion.pl 122 additions, 0 deletionssrc/bin/psql/t/010_tab_completion.pl
- src/test/perl/PostgresNode.pm 67 additions, 0 deletionssrc/test/perl/PostgresNode.pm
Loading
Please register or sign in to comment