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
551d42c6
Commit
551d42c6
authored
15 years ago
by
Adam Vandenberg
Browse files
Options
Downloads
Patches
Plain Diff
Move utils tests to separate file.
parent
5a6d6fd1
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
Library/Homebrew/test/test_bucket.rb
+0
-19
0 additions, 19 deletions
Library/Homebrew/test/test_bucket.rb
Library/Homebrew/test/test_utils.rb
+30
-0
30 additions, 0 deletions
Library/Homebrew/test/test_utils.rb
Library/Homebrew/test/tests
+3
-0
3 additions, 0 deletions
Library/Homebrew/test/tests
with
33 additions
and
19 deletions
Library/Homebrew/test/test_bucket.rb
+
0
−
19
View file @
551d42c6
...
...
@@ -2,13 +2,6 @@
# separate TestCase classes.
class
BeerTasting
<
Test
::
Unit
::
TestCase
def
test_put_columns_empty
assert_nothing_raised
do
# Issue #217 put columns with new results fails.
puts_columns
[]
end
end
def
test_supported_compressed_types
assert_nothing_raised
do
MockFormula
.
new
'test-0.1.tar.gz'
...
...
@@ -143,18 +136,6 @@ class BeerTasting < Test::Unit::TestCase
assert_equal
10.7
,
f
+
0.1
end
def
test_arch_for_command
arches
=
archs_for_command
'/usr/bin/svn'
if
`sw_vers -productVersion`
=~
/10\.(\d+)/
and
$1
.
to_i
>=
6
assert_equal
3
,
arches
.
length
assert
arches
.
include?
(
:x86_64
)
else
assert_equal
2
,
arches
.
length
end
assert
arches
.
include?
(
:i386
)
assert
arches
.
include?
(
:ppc7400
)
end
def
test_pathname_version
d
=
HOMEBREW_CELLAR
+
'foo-0.1.9'
d
.
mkpath
...
...
This diff is collapsed.
Click to expand it.
Library/Homebrew/test/test_utils.rb
0 → 100644
+
30
−
0
View file @
551d42c6
require
'testing_env'
require
'extend/ARGV'
# needs to be after test/unit to avoid conflict with OptionsParser
ARGV
.
extend
(
HomebrewArgvExtension
)
require
'utils'
class
UtilTests
<
Test
::
Unit
::
TestCase
def
test_put_columns_empty
assert_nothing_raised
do
# Issue #217 put columns with new results fails.
puts_columns
[]
end
end
def
test_arch_for_command
arches
=
archs_for_command
'/usr/bin/svn'
if
`sw_vers -productVersion`
=~
/10\.(\d+)/
and
$1
.
to_i
>=
6
assert_equal
3
,
arches
.
length
assert
arches
.
include?
(
:x86_64
)
else
assert_equal
2
,
arches
.
length
end
assert
arches
.
include?
(
:i386
)
assert
arches
.
include?
(
:ppc7400
)
end
end
This diff is collapsed.
Click to expand it.
Library/Homebrew/test/tests
+
3
−
0
View file @
551d42c6
...
...
@@ -32,3 +32,6 @@ ruby test_external_deps.rb $*
# Test Pathname.install
ruby test_pathname_install.rb
$*
# Test utility functions
ruby test_utils.rb
$*
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