aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/test
AgeCommit message (Collapse)Author
2013-12-14Add HOMEBREW_TEMP to testing environmentJack Nagel
2013-12-12Combine superenv testsJack Nagel
2013-12-12Add another fails_with testJack Nagel
2013-12-11Simplify prefix testJack Nagel
2013-12-09Implement hash equality for VersionJack Nagel
2013-12-09Extract constants for checkums in testsJack Nagel
2013-12-09Pass deps collection to be expanded as a parameterJack Nagel
2013-12-05Use BottleCollector in Bottle SoftwareSpecMisty De Meo
2013-12-05Add BottleCollectorMisty De Meo
The BottleCollector collects bottle tags and sha1s, and allows tags to be fetched using more advanced logic than just fetching identical tags. Closes #23434.
2013-12-03Adjust fails_with syntax for non-Apple compilersMisty De Meo
The old version worked like this: fails_with :gcc => '4.8.1' That wasn't really flexible enough, and made it harder to distinguish different releases in the same GCC series. Since no one was really using it yet, this adjusts the syntax to be more similar to the Apple compilers: fails_with :gcc => '4.8' do release '4.8.1' end Like with Apple compilers, omitting `release` blacklists the entire series. This also unifies the `build` and `version` attributes and accessors, and exposes them under both names.
2013-12-03Adjust tests for ac1fd380759ebe9aa3fe42465cd5d38b209c32b5Jack Nagel
2013-11-26Add test for 5c1ee9c1aeee00e512919f37d3fa66fcf637e070Jack Nagel
2013-11-14Add some missing test cases for `brew update`Jack Nagel
2013-11-13Prevent deps of build-time deps from leaking into the build environmentJack Nagel
When decided what dependencies should be part of the build environment (and have appropriate entries added to variables like PKG_CONFIG_PATH), we select the entire dependency tree except for (1) inactive optional and recommended deps (2) indirect build-time deps (i.e., build-time deps of other deps) There is a third category that sould be excluded: dependencies of direct build-time deps. These are irrelevant to the build, and including them can cause unexpected linkages.
2013-10-31Remove duplicate testJack Nagel
2013-10-30Cleanup use of some global constants.Mike McQuaid
2013-10-30Resource: push conditional down into #verify_download_integrityJack Nagel
2013-10-25Disallow initializing Versions with non-stringsJack Nagel
Closes #23553.
2013-10-25Stop coercing MACOS_VERSION to a floatJack Nagel
2013-10-23test_utils: fix Mavericks arch test.Mike McQuaid
2013-10-23test_formula: add Mavericks bottles.Mike McQuaid
2013-10-23test_formula: use different/consistent SHA-1.Mike McQuaid
2013-10-22Bottle tag tests: fix Tiger Intel 64Misty De Meo
2013-10-22Eagerly initialize formula specsJack Nagel
Declarations of dependencies, options, and resources in the DSL only apply to specs that have already been initialized. For example, given this snippet: url ... sha1 ... depends_on 'foo' devel do url ... sha1 ... end The dependency 'foo' will be recorded for the stable spec, but not the devel spec, since it was not initialized prior to the call to depends_on. While it is considered best practice to declare all specs (stable, devel, head, and bottle) prior to other declarations, there is nothing that enforces this ordering, so when it happens it can be confusing and hard to debug. To prevent this, we can initialize all specs up front. This comes with a performance penalty for commands that load all formulae into memory, but that is probably outweighed by what we gain in correctness. Fixes #23425.
2013-10-21Fix bottle_tag testsMisty De Meo
2013-10-18Add OS.mac? and OS.linux?Jack Nagel
2013-10-14Remove pointless assertionJack Nagel
2013-10-14Assert on state, not something that didn't happenJack Nagel
2013-10-11Resource: do not mutate passed-in specs hashJack Nagel
2013-10-11CurlDownloadStrategy: dup mirror list before mutating itJack Nagel
2013-10-11icu4c: add bottle regex.Mike McQuaid
2013-10-11VCSDownloadStrategy: rename checkout_name to cache_filenameJack Nagel
2013-10-10git_etc: update based on bottle etc/var changes.Mike McQuaid
2013-10-09Extract a new superclass for VCS-based download strategiesJack Nagel
2013-10-07Fix test failure for C++ stdlib.Xiyue Deng
2013-10-06CxxStdlib: allow for nil stdlibsMisty De Meo
A nil stdlib value represents non-C++ code.
2013-10-04Check types in Formula#==Jack Nagel
Comparing two objects should not raise an exception, even if they have different types. The semantics of #== are now the same as #eql?, so make one an alias.
2013-09-30Handle invalid names in download strategiesJack Nagel
When subformulae are initialized without a name parameter, Homebrew assigns the name "__UNKNOWN__". This may cause collisions in the cache. Currently CurlDownloadStrategy and its descendants handles this by extracting the basename form the URL and using that as the cached filename. However, other strategies simply raise an exception. We can improve the other strategies by URL-encoding the URL string and using that as the cached directory name. Note that this happens very rarely, especially now that resources (which always have a name) are preferred to subformulae. The most common case is a subformula that specifies a head download. Closes #22949.
2013-09-28Infer dependencies from download strategies and URLsJack Nagel
Closes #20849. Closes #22871.
2013-09-26Raise when given an invalid download strategy specJack Nagel
When DownloadStrategyDetector.detect is given a second argument, and that argument is not a symbol or an AbstractDownloadStrategy subclass, it is silently ignored, and we fall back to guessing the strategy based on the URL. This means I can do url 'http://foo.com/bar.tar.gz', :using => Class.new and things will appear to work, even though I have clearly passed an invalid value for :using. A more useful behavior is to raise an exception for unknown strategy specifications.
2013-09-23Set owner of resources to SoftwareSpec objectJack Nagel
2013-09-21Move dependencies to SoftwareSpecJack Nagel
2013-09-21Move options to SoftwareSpecJack Nagel
2013-09-20Add tests to ensure ENV.compiler is correctJack Nagel
2013-09-20At some point this started working againJack Nagel
2013-09-17Make spec-scoped resources override top-level resourcesJack Nagel
2013-09-17SoftwareSpec tests are now Resource testsJack Nagel
2013-09-14Copies of BuildOptions should not share underlying collectionsJack Nagel
2013-09-14Tear down the cache after installation testsJack Nagel
2013-09-14Move SoftwareSpec to a separate fileJack Nagel