Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
B
brew
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to JiHu GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
KMSCAKKSCFKA AKFACAMADCAS
brew
Commits
26fb38a7
Commit
26fb38a7
authored
8 years ago
by
Andrea Kao
Committed by
Mike McQuaid
8 years ago
Browse files
Options
Downloads
Patches
Plain Diff
tests: add cmd/test integration test
parent
a67c6f6c
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Library/Homebrew/test/test_integration_cmds.rb
+27
-0
27 additions, 0 deletions
Library/Homebrew/test/test_integration_cmds.rb
with
27 additions
and
0 deletions
Library/Homebrew/test/test_integration_cmds.rb
+
27
−
0
View file @
26fb38a7
...
...
@@ -817,4 +817,31 @@ class IntegrationCommandTests < Homebrew::TestCase
assert_match
"testball does not have a version
\"
0.3
\"
"
,
cmd_fail
(
"switch"
,
"testball"
,
"0.3"
)
end
def
test_test_formula
assert_match
"This command requires a formula argument"
,
cmd_fail
(
"test"
)
assert_match
"Testing requires the latest version of testball"
,
cmd_fail
(
"test"
,
testball
)
cmd
(
"install"
,
testball
)
assert_match
"testball defines no test"
,
cmd_fail
(
"test"
,
testball
)
setup_test_formula
"testball_copy"
,
<<-
EOS
.
undent
head "https://github.com/example/testball2.git"
devel do
url "file://
#{
File
.
expand_path
(
".."
,
__FILE__
)
}
/tarballs/testball-0.1.tbz"
sha256 "
#{
TESTBALL_SHA256
}
"
end
keg_only "just because"
test do
end
EOS
cmd
(
"install"
,
"testball_copy"
)
assert_match
"Testing testball_copy"
,
cmd
(
"test"
,
"--HEAD"
,
"testball_copy"
)
assert_match
"Testing testball_copy"
,
cmd
(
"test"
,
"--devel"
,
"testball_copy"
)
end
end
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment