aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/test
AgeCommit message (Collapse)Author
2013-07-22Check deps of satisfied depsJack Nagel
2013-07-22Silence warningsJack Nagel
2013-07-09Remove duplication in updater testsJack Nagel
2013-07-09Properly define tapped formulae in updatephinze
A tapped formula is a ruby file present: - in the root of the tap - in directory of the tap called Formula - in a directory of the tap called HomebrewFormula And nowhere else. This corrects an overzealous definition of tapped formula in the updater. (the correct definition has been in Pathname since e613cbe5783cea2abb8100b56c22126a1ab6b9f2) Refs Homebrew/homebrew#19743. Closes Homebrew/homebrew#21087. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2013-07-01Add Haswell to CPU testsMisty De Meo
These tests need a lot of work...
2013-06-30Fixed several broken sourceforge.net download locationsVictor Martinez
Closes Homebrew/homebrew#20645. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2013-06-28Reject versions that aren't stringsJack Nagel
2013-06-28Detect versions in tag specsJack Nagel
Closes Homebrew/homebrew#18300. Closes Homebrew/homebrew#20891.
2013-06-27Fix some #eql? correctness issuesJack Nagel
The implementation of #eql? and #hash should ensure that if a.eql?(b), then a.hash == b.hash, but #eql? itself should not *depend* on #hash. For example, given class Thingy def eql? instance_of?(other.class) && hash == other.hash end def hash [name, *tags].hash end end if #hash produces a collision for different values of [name, *tags], two Thingy objects will appear to be eql?, even though this is not the case. Instead, #eql? should depend on the equality of name and tags directly.
2013-06-26Add syntax sugar for MPIDependencyJack Nagel
Closes Homebrew/homebrew#20797.
2013-06-26Skip test on Xcode only systemsAdam Vandenberg
2013-06-25Uniqify tags when merging dependenciesJack Nagel
2013-06-24Requirement: callers are responsible for invoking #satisfied?Jack Nagel
This hack was necessary since requirements were not checked again in the forked build process, but now they are, and calling it again after the build environment has been set up can produce incorrect results. In fact, if it happens to return false the second time, the env modification will be skipped altogether.
2013-06-24Actually make the assertion we care aboutJack Nagel
2013-06-24Copy env_proc when merging depsJack Nagel
2013-06-22Use OkJson directlyJack Nagel
2013-06-22Add Utils::JSON to wrap the JSON implementationJack Nagel
2013-06-22Homebrew has an actual license, remove stale commentJack Nagel
2013-06-22Don't use cats in bottle tag tests (thanks 10.9).Mike McQuaid
2013-06-20perforce: add version detection regex.Mike McQuaid
2013-06-15Avoid unnecessary float to string conversionJack Nagel
2013-06-14Run tests under actual OS versionJack Nagel
2013-06-14Use Hardware::CPU moduleJack Nagel
2013-06-12Remove unused variableJack Nagel
2013-06-11Check method existence rather than Ruby versionJack Nagel
2013-06-10Add failing test for a misdetected versionJack Nagel
2013-06-08Add :ld64 dependencyMisty De Meo
This allows formulae which won't build with Tiger's ld to conditionally request a dependency on the ld64 formula. This modifies the build environment appropriately, and will only be active on Tiger.
2013-06-08Merge repeated deps with differing optionsJack Nagel
When expanding dependencies, repeated deps are treated as equal and all but the first are discarded when #uniq is called on the resulting array. However, they may have different sets of options attached, so we cannot assume they are the same. After the initial expansion, we group them by name and then create a new Dependency object for each name, merging the options from each group. Fixes Homebrew/homebrew#20335.
2013-06-08Add Enumerable#group_byJack Nagel
2013-06-07test_dependency_expansion: dep names should always be stringsJack Nagel
2013-06-07Fix failing testJack Nagel
2013-06-06Decouple bottle tags from MacOS.catJack Nagel
2013-06-05Improve tokenization of version stringsJack Nagel
Tokens like "b4", "beta1", "p195", &c. are now treated as atoms rather than being broken down even further. Additionally, we enable support for padding in the middle of versions strings, so we can successfully compare something like "2.1-p195" with "2.1.0-p194" by inferring that "2.1" is really "2.1.0". This fixes the comparison "9.9.3-P1" > "9.9.3" which previously has not been handled correctly.
2013-06-05Add failing test for patchlevel version comparisonsJack Nagel
2013-06-04Extract attr_rw from Formula for reuseJack Nagel
Closes Homebrew/homebrew#20239.
2013-06-03Allow explicit conversion of requirements to depsJack Nagel
Fixes Homebrew/homebrew#19857.
2013-06-03Remove empty test fileJack Nagel
This breaks my test runner in weird ways.
2013-06-03Python 2.x and 3.x supportSamuel John
New `depends_on :python` Dependency. New `depends_on :python3` Dependency. To avoid having multiple formulae with endings -py2 and -py3, we will handle support for different pythons (2.x vs. 3.x) in the same formula. Further brewed vs. external python will be transparently supported. The formula also gets a new object `python`, which is false if no Python is available or the user has disabled it. Otherwise it is defined and provides several support methods: python.site_packages # the site-packages in the formula's Cellar python.global_site_packages python.binary # the full path to the python binary python.prefix python.version python.version.major python.version.minor python.xy # => e.g. "python2.7" python.incdir # includes of python python.libdir # the python dylib library python.pkg_config_path # used internally by brew python.from_osx? python.framework? python.universal? python.pypy? python.standard_caveats # Text to set PYTHONPATH for python.from_osx? python.if3then3 # => "" for 2.x and to "3" for 3.x. Further, to avoid code duplication, `python` takes an optional block that is run twice if the formula defines depends_on :python AND :python3. python do system python, 'setup.py', "--prefix=#{prefix}" end Read more in the Homebrew wiki.
2013-06-01test_mach: move helper method out of global namespaceJack Nagel
2013-06-01Require hardware where it is neededJack Nagel
2013-05-25Add tests for Formula#installed_prefixJack Nagel
2013-05-25tests: extract common formula helperJack Nagel
2013-05-21Fix CompilerSelector tests on systems that have gcc 4.0Jack Nagel
2013-05-20CompilerSelector: raise when no compatible compilerMisty De Meo
This replaces the old behaviour of falling back to the original compiler with no messaging. Fixes Homebrew/homebrew#19170. Fixes mistydemeo/tigerbrew#45.
2013-05-20Add test for ARGV.flag?Jack Nagel
2013-05-14test_keg: reduce noise by including FileUtilsJack Nagel
2013-05-14test_keg: make mode an ivarJack Nagel
2013-05-10Add type accessors to DependenciesJack Nagel
2013-05-10Refactor Dependency.expandJack Nagel
2013-05-10Reorganize compatJack Nagel