Skip to content

Commit

Permalink
doltgres 0.5.0
Browse files Browse the repository at this point in the history
doltgres: update test

Signed-off-by: Rui Chen <[email protected]>
  • Loading branch information
BrewTestBot authored and chenrui333 committed Mar 29, 2024
1 parent 7d90c65 commit c0c4be3
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions Formula/d/doltgres.rb
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
class Doltgres < Formula
desc "Dolt for Postgres"
homepage "https://github.com/dolthub/doltgresql"
url "https://github.com/dolthub/doltgresql/archive/refs/tags/v0.4.0.tar.gz"
sha256 "2a476034582e04bcccbdfa20ebb3de7817e5798db686053e760c21a7dda992c8"
url "https://github.com/dolthub/doltgresql/archive/refs/tags/v0.5.0.tar.gz"
sha256 "51f1ebdfb823b2846720d073c1f10aeb7ad503748f50002b87b8ce7a61115741"
license "Apache-2.0"

# Upstream creates releases that use a stable tag (e.g., `v1.2.3`) but are
Expand Down Expand Up @@ -36,7 +36,9 @@ def install
exec bin/"doltgres"
end
sleep 5
psql = "#{Formula["libpq"].opt_bin}/psql -h 127.0.0.1 -U doltgres -c 'SELECT DATABASE()'"
assert_match "doltgres", shell_output(psql)

psql = Formula["libpq"].opt_bin/"psql"
output = shell_output("#{psql} -h 127.0.0.1 -U doltgres -c 'SELECT DATABASE()' 2>&1", 2)
assert_match "database \"doltgres\" does not exist", output
end
end

0 comments on commit c0c4be3

Please sign in to comment.