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
1 change: 1 addition & 0 deletions template-multi-extension/test/expected/base.out
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
\set ECHO none

multi_ext_ok
3 changes: 3 additions & 0 deletions template-multi-extension/test/sql/base.sql
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
\set ECHO none
-- DO NOT REMOVE: pg_regress runs psql with echo-all, so without this the SQL
-- input is echoed into the output and never matches expected/base.out.
\a
\t
SELECT pg_sleep(.1);
Expand Down
2 changes: 1 addition & 1 deletion test/lib/foundation.bats
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
#
# All other tests depend on this foundation:
# - Sequential tests (01-meta, 02-dist, 03-setup-final) build on this base
# - Independent tests (doc, make-results) copy this base to their own environment
# - Independent tests (doc, make-test) copy this base to their own environment
#
# The foundation is created once in .envs/foundation/ and then copied to other
# test environments for speed. Run `make foundation` to rebuild from scratch.
Expand Down
8 changes: 4 additions & 4 deletions test/sequential/00-validate-tests.bats
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ teardown_file() {
done
}

@test "only make-results tests call make results" {
@test "only make-test tests call make results" {
# make results overwrites expected output files, so it should only be used
# in tests specifically designed to test that functionality.
local test_root="$BATS_TEST_DIRNAME/.."
Expand All @@ -205,8 +205,8 @@ teardown_file() {
fi
assert_success # Any status other than 0 or 1 is a real grep error

# Filter out the tests that are allowed to call make results
run grep -v -e 'make-results\.bats$' -e 'test-verify-results\.bats$' <<< "$output"
# Filter out the test that is allowed to call make results
run grep -v -e 'make-test\.bats$' <<< "$output"

# grep returns 1 when all lines are filtered out -- that's the success case
if [ "$status" -eq 1 ]; then
Expand All @@ -217,7 +217,7 @@ teardown_file() {
# If we get here, there are violations (grep returned 0, meaning matches remain)
echo "FAIL: The following tests call 'make results' but should not:" >&2
echo "$output" >&2
echo "Only make-results.bats and test-verify-results.bats may call 'make results'" >&2
echo "Only make-test.bats may call 'make results'" >&2
return 1
}

Expand Down
99 changes: 0 additions & 99 deletions test/standard/make-results.bats

This file was deleted.

Loading
Loading