56 Commits

Author SHA1 Message Date
Michael Morgan
3ea550100f extract undent test to test case
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2010-10-17 21:13:16 -07:00
Bo Borgerson
80e17cde57 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
bd6fb10361 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
5c3a96ae68 Move testing tarballs into subfolder 2010-07-29 12:03:23 -07:00
Adam Vandenberg
e0d936da5a Fix brew info test 2010-07-29 09:33:32 -07:00
Adam Vandenberg
2e881238de Add name to brew info url and remove external script 2010-07-29 08:40:22 -07:00
Adam Vandenberg
f17a92ff40 Clean up test script & use system ruby to run tests 2010-07-20 21:16:33 -07:00
Adam Vandenberg
14f0556d1c 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
696e49e87a Move exceptions from global to utils; remove duplicate defintions 2010-07-08 22:41:51 -07:00
Adam Vandenberg
375f8094d3 Add debian style names to version checker. 2010-07-06 13:17:50 -07:00
Adam Vandenberg
4ae8029557 Update version tests 2010-07-06 13:17:43 -07:00
Adam Vandenberg
eb058c0958 Fix: attr doesn't take a list. 2010-06-10 19:39:15 -07:00
Adam Vandenberg
1761ba66bf Failures during ./configure should mention config.log. 2010-06-10 12:57:51 -07:00
David Porter
4da905b7fb Fix the update tests
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2010-05-12 09:20:15 -07:00
Adam Vandenberg
cfc8fca74d 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
cacb057b91 Move ENV tests to separate file. 2010-04-06 08:27:12 -07:00
Adam Vandenberg
31ebf6a293 Split out some Formula tests. 2010-04-06 08:27:12 -07:00
Adam Vandenberg
5cbab370e4 Switch test_bucket over to use testing_env. 2010-04-06 08:27:12 -07:00
Adam Vandenberg
e4766639dc Move Pathename property tests to separate file. 2010-04-06 08:27:11 -07:00
Adam Vandenberg
a7d74df430 Move ARGV tests to separate file. 2010-04-06 08:27:11 -07:00
Adam Vandenberg
551d42c6a9 Move utils tests to separate file. 2010-04-06 08:27:11 -07:00
Adam Vandenberg
5a6d6fd168 Tests for Pathname.install. 2010-04-06 08:27:11 -07:00
Adam Vandenberg
62de8aa663 Merge Formula class name tests 2010-04-06 08:27:11 -07:00
Adam Vandenberg
ccdffb2c31 Add external deps. tests. 2010-04-06 08:27:11 -07:00
Adam Vandenberg
1f82fe4dc7 Move TestBall definition to separate file. 2010-04-06 08:27:11 -07:00
Adam Vandenberg
259ae27cc4 Move checksum tests to separate file. 2010-04-06 08:27:11 -07:00
Adam Vandenberg
4c2a8a7f1c Move version tests to separate file. 2010-04-06 08:27:11 -07:00
Adam Vandenberg
d49230733f Move inreplace tests to separate file. 2010-04-06 08:27:11 -07:00
Adam Vandenberg
bcb1f61f37 Tests - remove some unused includes 2010-04-06 08:27:11 -07:00
Adam Vandenberg
a5cbf94596 Move hardware detection tests to separate file. 2010-04-06 08:27:10 -07:00
Adam Vandenberg
3123720608 Move install tests to separate file. 2010-04-06 08:27:10 -07:00
Adam Vandenberg
9d127ac3d5 Move updater tests to separate file. 2010-04-06 08:27:10 -07:00
Adam Vandenberg
fd453107c6 Add tests for patching. 2010-04-06 08:27:10 -07:00
Adam Vandenberg
298c74d147 Add new "testing environment" include. 2010-04-06 08:27:10 -07:00
Adam Vandenberg
277e40bc7b Add shell script 'tests' to run ruby test suites. 2010-04-06 08:27:10 -07:00
Adam Vandenberg
1d46991637 Remove silly concatenation. 2010-04-06 08:27:10 -07:00
Adam Vandenberg
d2b2ecbd0b Add test script to extract version from URL/path. 2010-04-04 11:49:09 -07:00
Joshua Peek
04855ddd48 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
098b97801b Use tab/space when finding vars (and not newlines). 2010-03-16 12:00:00 -07:00
Martin Kühl
d03411775f 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
6671d6275d remove_make_var! should not leave an empty assignment 2010-02-09 09:21:25 -08:00
Adam Vandenberg
3c47f7918b Add formula check for crufy SourceForge URLs. 2010-02-04 17:29:47 -08:00
Adam Vandenberg
a309403d8a 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
248bc890f8 Unit test for brew cleanup 2010-01-18 08:27:55 +00:00
Adam Vandenberg
d3fe4a8acc Add unittest for issue Homebrew/homebrew#127 2009-12-20 12:56:49 +00:00
Adam Vandenberg
224beabdd5 Refactor formula_test. 2009-11-19 14:13:31 -08:00
Adam Vandenberg
83fc432eab Refactor formula_test. 2009-11-18 15:50:01 -08:00
Adam Vandenberg
6e7731aeff Add test for legacy prefix quoting. 2009-11-18 15:43:00 -08:00
Max Howell
00e227ac46 More tweaking of main exception handler output 2009-11-12 01:37:02 +00:00
Max Howell
04f3ddeac0 Ignore stdout during GitDownloadStrategy.stage 2009-11-09 18:24:36 +00:00