Skip to content
Merged
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
9 changes: 9 additions & 0 deletions test/standard/test-test-install.bats
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
# - Schedule generation with ../install/ relative paths
# - Core contract: install state persists into main test suite
# - Disabling via PGXNTOOL_ENABLE_TEST_INSTALL
# - PGXNTOOL_ENABLE_TEST_INSTALL=yes erroring when test/install/ is empty
# - Cleanup via make clean

load ../lib/helpers
Expand Down Expand Up @@ -111,4 +112,12 @@ setup() {
assert_file_not_exists "test/install/schedule"
}

@test "PGXNTOOL_ENABLE_TEST_INSTALL=yes errors when test/install/ has no SQL files" {
# test/install/*.sql still removed by the previous test
run make test/install/schedule PGXNTOOL_ENABLE_TEST_INSTALL=yes
assert_failure
echo "$output" | grep -q "no .sql files found in test/install/"
assert_file_not_exists "test/install/schedule"
}

# vi: expandtab sw=2 ts=2
Loading