Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
include pgxntool/base.mk

# Explicit rather than relying on auto-detect (which enables this whenever
# test/build/*.sql exists) so an accidental deletion of test/build/'s
# contents is a hard error instead of the check silently disappearing.
PGXNTOOL_ENABLE_TEST_BUILD = yes

testdeps: test_extension
test_extension: $(DESTDIR)$datadir)/extension/extension_drop_test.control $(wildcard $(TESTDIR)/*)
$(DESTDIR)$datadir)/extension/extension_drop_test.control:
Expand Down
25 changes: 25 additions & 0 deletions test/build/build.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
\set ECHO none
BEGIN;
\i test/pgxntool/psql.sql

/*
* Install dependencies via CREATE EXTENSION, not \i: this is a real,
* already-published dependency being installed normally, not the extension
* whose raw install script this file exists to test line-by-line below.
*/
CREATE EXTENSION IF NOT EXISTS cat_tools;

/*
* Suppress NOTICEs from the raw install script itself (e.g. "%TYPE converted
* to ..." with a version-specific source-file LOCATION line) so this file's
* expected output stays stable across PostgreSQL minor versions instead of
* capturing verbose, version-dependent messages.
*/
SET client_min_messages = WARNING;

\echo
\echo INSTALL
\t
\i sql/extension_drop.sql

\echo # TRANSACTION INTENTIONALLY LEFT OPEN
2 changes: 0 additions & 2 deletions test/expected/zzz_build.out → test/build/expected/build.out
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,4 @@ INSTALL





# TRANSACTION INTENTIONALLY LEFT OPEN
12 changes: 0 additions & 12 deletions test/sql/zzz_build.sql

This file was deleted.