diff options
| author | Alex Dunn | 2016-01-17 17:01:19 -0800 |
|---|---|---|
| committer | Alex Dunn | 2016-01-20 11:42:36 -0800 |
| commit | 0cde5dd06048f00d17abf3c009c86eced3f68c09 (patch) | |
| tree | 803193f9762c36eeb86a53ce0745ea418c5e299c /Library | |
| parent | 37e61aed6266e57c55708774743f5ae802bd0aeb (diff) | |
| download | brew-0cde5dd06048f00d17abf3c009c86eced3f68c09.tar.bz2 | |
test: add metafiles to testball
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/test/lib/config.rb | 3 | ||||
| -rw-r--r-- | Library/Homebrew/test/tarballs/testball-0.1.tbz | bin | 1294 -> 1318 bytes | |||
| -rw-r--r-- | Library/Homebrew/test/test_checksum_verification.rb | 4 | ||||
| -rw-r--r-- | Library/Homebrew/test/test_formulary.rb | 2 | ||||
| -rw-r--r-- | Library/Homebrew/test/test_patching.rb | 2 | ||||
| -rw-r--r-- | Library/Homebrew/test/testball.rb | 2 | ||||
| -rw-r--r-- | Library/Homebrew/test/testball_bottle.rb | 2 |
7 files changed, 9 insertions, 6 deletions
diff --git a/Library/Homebrew/test/lib/config.rb b/Library/Homebrew/test/lib/config.rb index 8645a3d4b..3f72a5764 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 Binary files differindex 539cabad0..c7e1af1f4 100644 --- a/Library/Homebrew/test/tarballs/testball-0.1.tbz +++ b/Library/Homebrew/test/tarballs/testball-0.1.tbz diff --git a/Library/Homebrew/test/test_checksum_verification.rb b/Library/Homebrew/test/test_checksum_verification.rb index 4e3602f94..87d0fb536 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 935acd6c4..71575770d 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 0b6e3d941..3c307a43f 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 276296023..6329f6437 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 f980c9dd4..31e98364e 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" |
