tests: set newly-visible global constants
The changes to error ouput and logging require a few more things to be visible during installation tests. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
This commit is contained in:
parent
64927a45ef
commit
1027093eae
@ -171,14 +171,14 @@ class FormulaTests < Test::Unit::TestCase
|
||||
assert_instance_of Bottle, f.bottle
|
||||
assert_equal CurlBottleDownloadStrategy, f.bottle.download_strategy
|
||||
assert_nil f.bottle.specs
|
||||
assert_nil f.bottle.mirrors
|
||||
assert f.bottle.mirrors.empty?
|
||||
|
||||
assert_equal 'file:///foo.com/testball-0.1-bottle.tar.gz', f.bottle.url
|
||||
|
||||
assert_instance_of Checksum, f.bottle.checksum
|
||||
assert_equal :sha1, f.bottle.checksum.hash_type
|
||||
assert !f.bottle.checksum.empty?
|
||||
assert_equal 'baadf00dbaadf00dbaadf00dbaadf00dbaadf00d', f.bottle.sha1.hexdigest
|
||||
assert_equal 'deadbeefdeadbeefdeadbeefdeadbeefdeadbeef', f.bottle.sha1.hexdigest
|
||||
assert_nil f.bottle.md5
|
||||
assert_nil f.bottle.sha256
|
||||
|
||||
|
||||
@ -20,10 +20,15 @@ HOMEBREW_REPOSITORY=HOMEBREW_PREFIX
|
||||
HOMEBREW_CACHE=HOMEBREW_PREFIX.parent+"cache"
|
||||
HOMEBREW_CACHE_FORMULA=HOMEBREW_PREFIX.parent+"formula_cache"
|
||||
HOMEBREW_CELLAR=HOMEBREW_PREFIX.parent+"cellar"
|
||||
HOMEBREW_LOGS = HOMEBREW_PREFIX.parent+"logs"
|
||||
HOMEBREW_USER_AGENT="Homebrew"
|
||||
HOMEBREW_WWW='http://example.com'
|
||||
HOMEBREW_CURL_ARGS = '-fsLA'
|
||||
MACOS_VERSION=10.6
|
||||
HOMEBREW_VERSION = '0.9-test'
|
||||
|
||||
MACOS = true
|
||||
MACOS_VERSION = 10.6
|
||||
MACOS_FULL_VERSION = '10.6.8'
|
||||
|
||||
(HOMEBREW_PREFIX+'Library/Formula').mkpath
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user