diff --git a/test/standard/test-test-install.bats b/test/standard/test-test-install.bats index cf57d23..a627bd8 100644 --- a/test/standard/test-test-install.bats +++ b/test/standard/test-test-install.bats @@ -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 @@ -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