Commit Graph
56 Commits
Author SHA1 Message Date
Michael Morgan 447fb2f640 extract undent test to test case
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2010-10-17 21:13:16 -07:00
Bo Borgerson 86b202337b test_updater: Make fixture internally consistent
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-09-15 09:36:27 -07:00
lukas bdd131a6a5 Fixed recognition of versions like 'foobar-4.50-beta' in Pathname#version
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-08-27 17:53:06 +02:00
Adam Vandenberg 45183495c1 Move testing tarballs into subfolder 2010-07-29 12:03:23 -07:00
Adam Vandenberg ba008498ca Fix brew info test 2010-07-29 09:33:32 -07:00
Adam Vandenberg d458df709d Add name to brew info url and remove external script 2010-07-29 08:40:22 -07:00
Adam Vandenberg 8603e3b23d Clean up test script & use system ruby to run tests 2010-07-20 21:16:33 -07:00
Adam Vandenberg bd52060fca Remove "test/formula_test.rb"
This diagnostic script has been replaced by the "brew audit" external command.
2010-07-19 20:15:04 -07:00
Adam Vandenberg 8deec24d87 Move exceptions from global to utils; remove duplicate defintions 2010-07-08 22:41:51 -07:00
Adam Vandenberg eab7053dda Add debian style names to version checker. 2010-07-06 13:17:50 -07:00
Adam Vandenberg fe2014feb7 Update version tests 2010-07-06 13:17:43 -07:00
Adam Vandenberg a05a0d85ad Fix: attr doesn't take a list. 2010-06-10 19:39:15 -07:00
Adam Vandenberg 7a12e2c398 Failures during ./configure should mention config.log. 2010-06-10 12:57:51 -07:00
David Porter 3a7a3619f7 Fix the update tests
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2010-05-12 09:20:15 -07:00
Adam Vandenberg bada8fe2e6 Support jruby external dependencies.
* 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-09 11:21:35 -07:00
Adam Vandenberg e48b73f21f Move ENV tests to separate file. 2010-04-06 08:27:12 -07:00
Adam Vandenberg 2926d9a8b2 Split out some Formula tests. 2010-04-06 08:27:12 -07:00
Adam Vandenberg c6dc5f8661 Switch test_bucket over to use testing_env. 2010-04-06 08:27:12 -07:00
Adam Vandenberg fd823136f6 Move Pathename property tests to separate file. 2010-04-06 08:27:11 -07:00
Adam Vandenberg 09be718d31 Move ARGV tests to separate file. 2010-04-06 08:27:11 -07:00
Adam Vandenberg 3473320bc0 Move utils tests to separate file. 2010-04-06 08:27:11 -07:00
Adam Vandenberg 6bb6c16184 Tests for Pathname.install. 2010-04-06 08:27:11 -07:00
Adam Vandenberg 48980c06c1 Merge Formula class name tests 2010-04-06 08:27:11 -07:00
Adam Vandenberg 5dd30cbf39 Add external deps. tests. 2010-04-06 08:27:11 -07:00
Adam Vandenberg 9c4623c427 Move TestBall definition to separate file. 2010-04-06 08:27:11 -07:00
Adam Vandenberg 13f63b18a8 Move checksum tests to separate file. 2010-04-06 08:27:11 -07:00
Adam Vandenberg c550e83613 Move version tests to separate file. 2010-04-06 08:27:11 -07:00
Adam Vandenberg a4e3dcf514 Move inreplace tests to separate file. 2010-04-06 08:27:11 -07:00
Adam Vandenberg 61d35f06ca Tests - remove some unused includes 2010-04-06 08:27:11 -07:00
Adam Vandenberg 5f9067262f Move hardware detection tests to separate file. 2010-04-06 08:27:10 -07:00
Adam Vandenberg 0e549bd8e0 Move install tests to separate file. 2010-04-06 08:27:10 -07:00
Adam Vandenberg 68e81b5a6a Move updater tests to separate file. 2010-04-06 08:27:10 -07:00
Adam Vandenberg 2efd382e3a Add tests for patching. 2010-04-06 08:27:10 -07:00
Adam Vandenberg 8c448ca360 Add new "testing environment" include. 2010-04-06 08:27:10 -07:00
Adam Vandenberg bf56c82c84 Add shell script 'tests' to run ruby test suites. 2010-04-06 08:27:10 -07:00
Adam Vandenberg 46bbea89d0 Remove silly concatenation. 2010-04-06 08:27:10 -07:00
Adam Vandenberg e609640610 Add test script to extract version from URL/path. 2010-04-04 11:49:09 -07:00
Joshua Peek 74ec7a12fa fix github version parser with multidigit number
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2010-03-27 14:01:19 -07:00
Adam Vandenberg 068c3aced5 Use tab/space when finding vars (and not newlines). 2010-03-16 12:00:00 -07:00
Martin Kühl f82f7f9a2c Fix change_make_var! for empty variables.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2010-03-16 11:54:09 -07:00
Adam Vandenberg 88beb21b72 remove_make_var! should not leave an empty assignment 2010-02-09 09:21:25 -08:00
Adam Vandenberg 85c8c5c630 Add formula check for crufy SourceForge URLs. 2010-02-04 17:29:47 -08:00
Adam Vandenberg 8d02ae7431 Update test suite.
* Break single test case class into several test cases.
* Fix broken arch test.
* Make update tests optional (seem to only work for mxcl).
* Add more tests.
* Move fixtures to separate folder.
2010-02-02 09:08:10 -08:00
Joshua Peek 8585a7598e Unit test for brew cleanup 2010-01-18 08:27:55 +00:00
Adam Vandenberg 6060088521 Add unittest for issue #127 2009-12-20 12:56:49 +00:00
Adam Vandenberg 075727251d Refactor formula_test. 2009-11-19 14:13:31 -08:00
Adam Vandenberg 944751f36a Refactor formula_test. 2009-11-18 15:50:01 -08:00
Adam Vandenberg 32da375fc6 Add test for legacy prefix quoting. 2009-11-18 15:43:00 -08:00
Max Howell 70bed07247 More tweaking of main exception handler output 2009-11-12 01:37:02 +00:00
Max Howell 0618d3c576 Ignore stdout during GitDownloadStrategy.stage 2009-11-09 18:24:36 +00:00