aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/test
AgeCommit message (Collapse)Author
2011-12-09Add support for xz-compressed tarballsJack Nagel
Rationale: some software (e.g. GNU Coreutils, GnuTLS 3.x), have started distributing _only_ xz-compressed tarballs. There is no system XZ utility provided by OS X, but it is necessary so that we can continue to provide formulae for this software. If XZUtils isn't installed, we abort and prompt the user to `brew install xz`. The `xz` command itself doesn't do any untarring, so we write the decompressed archive to stdout and pipe it to tar.
2011-09-21update: correct failing testsJack Nagel
Commit dec4b73aa0 ("Allow `brew update --rebase`") changed the format of the `git pull` command slightly, introducing an extra space (to allow for the --rebase option), so let's update the test expectations for this. We still need to write tests for '--rebase', but in the meantime they once again pass for the normal case. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2011-09-21Correctly parse ImageMagick bottle versionJack Nagel
Commit 2695821e98 ("Only use the bottle if its version is up-to-date") essentially broke the ImageMagick bottle, because the version parsing logic returns "1" as the bottle version. Fixing this requires only a slight modification to the bottle URL regex; includes a test. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2011-09-19mirror support: Add testCharlie Sharpsteen
2011-09-08Add :sandybridge to hardware_family testChris Ledet
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2011-09-02tests: actually use bzip for test tarballJack Nagel
I inadvertently gzipped it last night. That in itself doesn't cause any tests to fail because the download strategy code is robust, but it's fixed here anyway to be consistent. Basically, I'm dumb. I also took the opportunity to remove the other resource fork file, so the tarball is clean. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2011-09-02tests: fix failing test_a_basic_installJack Nagel
The test_a_basic_install was failing because it expected libexec.children.length to be 1, when in fact there were two files in the untarred libexec: NOOP, and the Mac OS X resource fork file ._NOOP. That file is now removed, and the test passes. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2011-09-02update: bring tests up-to-dateJack Nagel
The tests for update have been neglected during the last few rounds of changes, so fix them up. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2011-08-24`brew upgrade`Max Howell
Consequence: you can no longer install when something is already installed, you must upgrade it. This doesn't apply if the formula in question was unlinked. You can still --force installs though. Rationale: the old way of installing over the top would leave symlinks to multiple versions in /usr/local if the old version had a file the newer version didn't. The new upgrade command handles everything properly.
2011-08-24HOMEBREW_CURL_ARGS so that tests can be more silentMax Howell
2011-06-21Fix brew bottle versioning.Mike McQuaid
2011-06-14refactor `update` command to use git diff instead of parsing `pull` outputMislav Marohnić
This fixes reporting of which formulae changed in git versions where `pull` output is not compatible. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2011-06-14enable updater tests to be run on their ownMislav Marohnić
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2011-03-25Adding version detection to sf.net /download urlsAustin Ziegler
SourceForge links can end with /download which appears to be part of what is used to drive mirror selection. Modifying the version detection extension of pathname.rb to detect this case for both sourceforge.net and sf.net download selections. This is sufficient for version detection but may not be sufficient for other uses of /download links. I have not found any problems with links that use /download, though. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2011-03-12Some CleanupMax Howell
2011-03-12Move string extensionsAdam Vandenberg
2011-03-12Refactor the brew command into one file per commandMax Howell
The code was sucking. To the extent that maintenance was hard. It's a lot easier to work with code that is sensibly split at sensible boundaries. So now it is more like that. But the refactor is minimal. Because we don't want you to have more merge hell than absolutely necessary. If you merge you will need to pay attention to brew.h.rb (as it is deleted) and bin/brew (as command logic is gone). It will be painful, but you will just have to help git out by moving any changes around manually. Note compatibility.rb. It ensures that any function renames or removals don't break anything. We're pretty serious about backwards compatibility. And that's because we encourage you to hack around with the innards. And we couldn't do that if we would then just make stuff disappear behind your back.
2010-10-17extract undent test to test caseMichael Morgan
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2010-09-15test_updater: Make fixture internally consistentBo Borgerson
The update_git_pull_output_with_formulae_changes fixture (which consists of mocked-up `git pull` output) listed a few files as both updated and deleted. This caused the test_update_homebrew_with_formulae_changes test to fail. My guess is that this fixture was mocked-up before formula deletion handling was introduced, and became broken when it was. This revision just makes this fixture internally consistent, and allows the associated test to pass. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2010-08-27Fixed recognition of versions like 'foobar-4.50-beta' in Pathname#versionlukas
Sphinx currently has a download name 'http://sphinxsearch.com/downloads/sphinx-1.10-beta.tar.gz', which homebrew currently can't correctly identify - with a small change to the regex for 'foobar-4.5.0-beta1' (make that trailing number optional) - it works like a charm. Signed-off-by: David Höppner <0xffea@gmail.com>
2010-07-29Move testing tarballs into subfolderAdam Vandenberg
2010-07-29Fix brew info testAdam Vandenberg
2010-07-29Add name to brew info url and remove external scriptAdam Vandenberg
2010-07-20Clean up test script & use system ruby to run testsAdam Vandenberg
2010-07-19Remove "test/formula_test.rb"Adam Vandenberg
This diagnostic script has been replaced by the "brew audit" external command.
2010-07-08Move exceptions from global to utils; remove duplicate defintionsAdam Vandenberg
2010-07-06Add debian style names to version checker.Adam Vandenberg
2010-07-06Update version testsAdam Vandenberg
2010-06-10Fix: attr doesn't take a list.Adam Vandenberg
2010-06-10Failures during ./configure should mention config.log.Adam Vandenberg
2010-05-12Fix the update testsDavid Porter
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2010-04-09Support jruby external dependencies.Adam Vandenberg
* Add tests that run only if 'jruby' is installed. * Note that if your formula has :jruby deps, it should likely "depend_on 'jruby'" as well.
2010-04-06Move ENV tests to separate file.Adam Vandenberg
2010-04-06Split out some Formula tests.Adam Vandenberg
2010-04-06Switch test_bucket over to use testing_env.Adam Vandenberg
2010-04-06Move Pathename property tests to separate file.Adam Vandenberg
2010-04-06Move ARGV tests to separate file.Adam Vandenberg
2010-04-06Move utils tests to separate file.Adam Vandenberg
2010-04-06Tests for Pathname.install.Adam Vandenberg
2010-04-06Merge Formula class name testsAdam Vandenberg
2010-04-06Add external deps. tests.Adam Vandenberg
2010-04-06Move TestBall definition to separate file.Adam Vandenberg
2010-04-06Move checksum tests to separate file.Adam Vandenberg
2010-04-06Move version tests to separate file.Adam Vandenberg
2010-04-06Move inreplace tests to separate file.Adam Vandenberg
2010-04-06Tests - remove some unused includesAdam Vandenberg
2010-04-06Move hardware detection tests to separate file.Adam Vandenberg
2010-04-06Move install tests to separate file.Adam Vandenberg
2010-04-06Move updater tests to separate file.Adam Vandenberg
2010-04-06Add tests for patching.Adam Vandenberg