diff --git a/Library/Homebrew/test/lib/config.rb b/Library/Homebrew/test/lib/config.rb index 8645a3d4b5..3f72a57642 100644 --- a/Library/Homebrew/test/lib/config.rb +++ b/Library/Homebrew/test/lib/config.rb @@ -18,3 +18,6 @@ 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" + +TESTBALL_SHA1 = "be478fd8a80fe7f29196d6400326ac91dad68c37" +TESTBALL_SHA256 = "91e3f7930c98d7ccfb288e115ed52d06b0e5bc16fec7dce8bdda86530027067b" diff --git a/Library/Homebrew/test/tarballs/testball-0.1.tbz b/Library/Homebrew/test/tarballs/testball-0.1.tbz index 539cabad0f..c7e1af1f4e 100644 Binary files a/Library/Homebrew/test/tarballs/testball-0.1.tbz and b/Library/Homebrew/test/tarballs/testball-0.1.tbz differ diff --git a/Library/Homebrew/test/test_checksum_verification.rb b/Library/Homebrew/test/test_checksum_verification.rb index 4e3602f94f..87d0fb5363 100644 --- a/Library/Homebrew/test/test_checksum_verification.rb +++ b/Library/Homebrew/test/test_checksum_verification.rb @@ -23,7 +23,7 @@ class ChecksumVerificationTests < Homebrew::TestCase def test_good_sha1 formula do - sha1 "482e737739d946b7c8cbaf127d9ee9c148b999f5" + sha1 TESTBALL_SHA1 end assert_checksum_good @@ -39,7 +39,7 @@ class ChecksumVerificationTests < Homebrew::TestCase def test_good_sha256 formula do - sha256 "1dfb13ce0f6143fe675b525fc9e168adb2215c5d5965c9f57306bb993170914f" + sha256 TESTBALL_SHA256 end assert_checksum_good diff --git a/Library/Homebrew/test/test_formulary.rb b/Library/Homebrew/test/test_formulary.rb index 935acd6c40..71575770db 100644 --- a/Library/Homebrew/test/test_formulary.rb +++ b/Library/Homebrew/test/test_formulary.rb @@ -22,7 +22,7 @@ class FormularyFactoryTest < Homebrew::TestCase @path.write <<-EOS.undent class #{Formulary.class_s(@name)} < Formula url "file://#{File.expand_path("..", __FILE__)}/tarballs/testball-0.1.tbz" - sha256 "1dfb13ce0f6143fe675b525fc9e168adb2215c5d5965c9f57306bb993170914f" + sha256 TESTBALL_SHA256 bottle do cellar :any_skip_relocation diff --git a/Library/Homebrew/test/test_patching.rb b/Library/Homebrew/test/test_patching.rb index 0b6e3d9417..3c307a43f2 100644 --- a/Library/Homebrew/test/test_patching.rb +++ b/Library/Homebrew/test/test_patching.rb @@ -10,7 +10,7 @@ class PatchingTests < Homebrew::TestCase def formula(*args, &block) super do url "file://#{TEST_DIRECTORY}/tarballs/testball-0.1.tbz" - sha1 "482e737739d946b7c8cbaf127d9ee9c148b999f5" + sha1 TESTBALL_SHA1 class_eval(&block) end end diff --git a/Library/Homebrew/test/testball.rb b/Library/Homebrew/test/testball.rb index 2762960236..6329f64370 100644 --- a/Library/Homebrew/test/testball.rb +++ b/Library/Homebrew/test/testball.rb @@ -2,7 +2,7 @@ class Testball < Formula def initialize(name = "testball", path = Pathname.new(__FILE__).expand_path, spec = :stable) self.class.instance_eval do stable.url "file://#{File.expand_path("..", __FILE__)}/tarballs/testball-0.1.tbz" - stable.sha256 "1dfb13ce0f6143fe675b525fc9e168adb2215c5d5965c9f57306bb993170914f" + stable.sha256 TESTBALL_SHA256 end super end diff --git a/Library/Homebrew/test/testball_bottle.rb b/Library/Homebrew/test/testball_bottle.rb index f980c9dd4d..31e98364e9 100644 --- a/Library/Homebrew/test/testball_bottle.rb +++ b/Library/Homebrew/test/testball_bottle.rb @@ -2,7 +2,7 @@ class TestballBottle < Formula def initialize(name = "testball_bottle", path = Pathname.new(__FILE__).expand_path, spec = :stable) self.class.instance_eval do stable.url "file://#{File.expand_path("..", __FILE__)}/tarballs/testball-0.1.tbz" - stable.sha256 "1dfb13ce0f6143fe675b525fc9e168adb2215c5d5965c9f57306bb993170914f" + stable.sha256 TESTBALL_SHA256 stable.bottle do cellar :any_skip_relocation root_url "file://#{File.expand_path("..", __FILE__)}/bottles"