fix: test asserts 0.0.1 (binary version), not datestamped brew version
This commit is contained in:
@@ -1,11 +1,10 @@
|
|||||||
|
# mcpctl Homebrew formula. Self-contained bun-compiled binary (linux x86_64); runtime dep: jq.
|
||||||
class Mcpctl < Formula
|
class Mcpctl < Formula
|
||||||
desc "kubectl-like CLI for managing MCP servers"
|
desc "kubectl-like CLI for managing MCP servers"
|
||||||
homepage "https://mysources.co.uk/michal/mcpctl"
|
homepage "https://mysources.co.uk/michal/mcpctl"
|
||||||
version "0.0.1.20261009"
|
version "0.0.1.20261009"
|
||||||
license "MIT"
|
license "MIT"
|
||||||
|
|
||||||
# Self-contained bun-compiled binary; the only runtime dependency is jq.
|
|
||||||
# Linux x86_64 only (that is the compiled target); other platforms are not published.
|
|
||||||
depends_on "jq"
|
depends_on "jq"
|
||||||
depends_on :linux
|
depends_on :linux
|
||||||
|
|
||||||
@@ -24,6 +23,7 @@ class Mcpctl < Formula
|
|||||||
end
|
end
|
||||||
|
|
||||||
test do
|
test do
|
||||||
assert_match "0.0.1.20261009", shell_output("#{bin}/mcpctl --version")
|
# the binary reports the project version ("0.0.1"), not the datestamped brew version
|
||||||
|
assert_match "0.0.1", shell_output("#{bin}/mcpctl --version")
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
Reference in New Issue
Block a user