-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve init_test #54
Comments
I'm not sure what the intention was. If you do remove it, would |
@esabol There is the difference between test and installcheck rules. gmake installcheck runs tests on the existing installation. gmake test creates a local installation, runs postgresql instance and executes tests on it. These rules play different roles. What I think is to support gmake check to make consistent with the postgresql project tree. |
Yes, I knew that, or I thought so anyway. What I meant was the intention of |
I think, the init_test goal is to find problems in pgs_xxx.sql files that are used to initialize the extension. This test creates a single file pg_sphere.test.sql from the contents of pgs_xxx.sql files with some changes (MODULE_PATH is replaced with the absolute path to local pg_sphere.so) and then runs the file as a regular test. If a problem exists, it can be detected by the test output difference after test execution. I think this test is reasonable because it may help developers to detect some problems with newly created functionality as well as when migrating to newer versions of Postgresql. Anyway, it should be improved to avoid expected/init_test.out conflicts when touching independent pgs_xxx.sql files. |
I think this issue has already been addressed by #79. |
Close this issue, @vitcpp ? |
@esabol Yes, thank you. I will close the issue. |
Closed as completed in #79. |
Dear All,
What is the purpose of init_test? Do we really need it? This test introduces some difficulties when working with PRs. It is executed when executing gmake test, but gmake installcheck doesn't execute this test.
I propose to remove it.
The text was updated successfully, but these errors were encountered: