| От | Peter Eisentraut |
|---|---|
| Тема | tests for client programs |
| Дата | |
| Msg-id | 1389763831.28160.6.camel@vanquo.pezone.net обсуждение |
| Ответы |
Re: tests for client programs
Re: tests for client programs |
| Список | pgsql-hackers |
As we all know, the client programs (src/bin/) don't have any real test suites. Some pieces are tested as part of the backend regression tests, some as part of the pg_upgrade test script, but nothing is specifically targeted, and pg_basebackup for example is not tested at all. So I wrote something. I chose to use Perl-based tools, prove and Test::More, because those are available in a standard Perl installation, and we already require that. I put together three handfuls of tests to show what it would look like. For extra fun, I added a "todo" test in pg_basebackup for a feature that's currently being proposed in the commit fest. A significant near-future project would be adding tests for pg_dump and pg_upgrade. Lots of things to argue about here: tools, file layout, naming, Perl code, test quality, etc. To try it out, apply the attached patch and run make -C src/bin check (or installcheck, after installation).
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера