aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/test
AgeCommit message (Collapse)Author
2012-07-04tests: clean up whitespaceJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-07-04Demonstrate that bottles are selected correctlyJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-07-04Prune some requires from test filesJack Nagel
testing_env already requires utils; set up the ARGV and ENV extensions there as well. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-07-04Refactor checksummingJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-07-04Introduce new formula specsJack Nagel
2012-06-16Teach Mach-O machinery about bundlesJack Nagel
c.f. Homebrew/homebrew#12810. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-06-15Improve Pathname#text_executable? regexpJack Nagel
file(1) does not allow leading whitespace on shebang lines, and there appears to be no restrictions on what characters follow '#!', either. While at it, fix an erroneous shebang test. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-05-30cleaner: use new Mach-O pathname methods in clean_fileJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-05-30archs_for_command: use new Mach-O Pathname methodsJack Nagel
- Reimplement archs_for_command on top of the new Mach-O methods - Move ArchitectureListExtension to mach.rb - Add a test for the ArchitectureListExtension Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-05-30Pathname: add Mach-O moduleJack Nagel
The MachO module contains methods for learning about Mach-O binaries, and can be used where one might normally shell out to file(1). Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-04-24Change versioned bottle syntax and fix issues.Mike McQuaid
Fixed Homebrew/homebrew#11562.
2012-04-24Revert "Change versioned bottle syntax and fix issues."Mike McQuaid
This reverts commit f80908bead8b620ebcc5cdde9de65e70598002b6.
2012-04-24Change versioned bottle syntax and fix issues.Mike McQuaid
Fixed Homebrew/homebrew#11562.
2012-04-22Fix compiler selection tests on Xcode 4.2+Misty De Meo
MacOS.gcc_42_build_version is nil when not available, not 0
2012-04-20Hardware test: add :arrandaleMisty De Meo
For some reason :arrandale was missing from the list of hardware in the Intel family in the hardware test.
2012-04-18tests: add utility method to quell outputJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-04-16tests: silence `zip` output in test_bucketJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-04-16tests: silence test_detect_failed_configureJack Nagel
The standard `nostdout` method doesn't work here because Formula#system does some redirection of its own; both stdout and stderr have to be of the same type, so just do it manually here. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-04-16tests: replace tests script with rake-based runnerJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-04-16tests: setup and teardown cleanupsJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-04-14tests: reorganize compiler selection testsJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-04-14tests: bring `brew update` tests up to dateJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-04-14tests: remove special-casing @path in TestBallJack Nagel
Tests that expect Formula#path to resolve to a real path should use TestBallWithRealPath; TestBall gets its original behavior back, fixing a failing test in test_formula_install. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-04-09tests: fix no-op fails_with testJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-04-07Clean up fails_with test classesJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-04-06info: output correct URL for tapped dupesJack Nagel
Tapped formulae that dupe those in core now display the correct URL when invoked like `brew info homebrew/dupes/openssl`. This also fixes the broken `brew info` test. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-04-06tests: silence mirror testJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-04-06Fix protection against overriding Formula#brewJack Nagel
The test for this previously passed, but only because the constructor for SoftwareSpecification was raising an exception. method_added needs to be a class method because methods are being defined on the class, not the object, and to test it properly we have to eval the class in the test itself. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-04-06Add test for ghc version styleJack Nagel
the ghc formula had an explicit version because we had trouble parsing the version from the 64-bit URL. It is working now, so add a test to ensure it isn't broken in the future. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-04-01Reset compiler when testing fails_withJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-04-01New fails_with infrastructureJack Nagel
- Formulae can now declare failures on any compiler. - FailsWithLLVM and associated formula elements have been moved to compat. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-03-21ENV: reset LD when switching compilersJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-03-20Allow a different package and import name for language deps.Adam Vandenberg
Some times the module to import is different than the module to install when dealing with external dependencies. This change allows an optional import name to be specififed when it is different from the module name. Closes Homebrew/homebrew#11078.
2012-03-20Add tests for patches.rbAdam Vandenberg
2012-03-11Update external deps testsJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-03-11Remove redundant versions and update version testsJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-03-10Support bottles for non-Lion OSX versions.Mike McQuaid
2012-03-09Fix typo in test_arch_for_commandJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-03-09Run tests from anywhere and provide an exit code.Mike McQuaid
2012-03-09Fix test_ENV on 10.7/Xcode 4.Mike McQuaid
2012-03-09Fix test_arch_for_command on 10.7.Mike McQuaid
2012-03-06Proper single character switch handlingMax Howell
Includes a test. So now you can do `brew cleanup -ns` and it will work.
2012-03-05Adjust updater tests for `git config` callsJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-02-25Add more external dep optionsSecond Planet
* Chicken Scheme * Node.js * Rubinius Closes Homebrew/homebrew#8466. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2012-02-17Update return values of install and install_symlinkAdam Vandenberg
These now return an Array of all the target destinations. Previously, if a single argument was passed a single non- Array was returned. This behavior has been changed so that an Array is always returned even for a single argument. Updated the test. Hopefully this won't break any custom code out there.
2012-02-04Adjust ARGV testsJack Nagel
ARGV.kegs and ARGV.formulae no longer raise exceptions. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-01-25Fix failing ENV testsJack Nagel
We need the ARGV extension now that we call ARGV.build_bottle? in set_cpu_cflags. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-01-14Fix libinet version detectionMax Howell
2012-01-12pathname: recognize ".cpio.*" double extensionsJack Nagel
Just a cosmetic nicety. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-01-01tests: add missing require to test_ENVJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>