24 Commits

Author SHA1 Message Date
Xu Cheng
bd408fa51c fixtures: add ps and eps files
Closes Homebrew/homebrew#37001

Signed-off-by: Xu Cheng <xucheng@me.com>
2015-02-21 01:52:22 +08:00
David Christenson
fb246b0f4e Minimize test JPEG and PNG
Losslessly compress with jpegoptim and optipng.

Closes Homebrew/homebrew#36606.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-02-08 12:23:39 +00:00
David Christenson
46aa40c067 Add test PDF and SVG. 2015-02-08 12:23:31 +00:00
Xu Cheng
8ab4b9ae55 fixtures add test.ico
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2015-01-03 22:37:59 -05:00
Xu Cheng
fae84e5031 replace fixture png to 8x8 in size and rgb scale color
Closes Homebrew/homebrew#35456.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-01-03 20:50:01 +00:00
Baptiste Fontaine
8fcfa08c43 ID3 tags stripped from MP3 test fixture
Closes Homebrew/homebrew#35427.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-01-01 21:34:12 +00:00
Baptiste Fontaine
b7ca3e33d6 minimal MP3 test file added
Closes Homebrew/homebrew#35417.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-01-01 15:02:08 +00:00
Stian Eikeland
91ec31cdd4 gifsicle 1.86
Closes Homebrew/homebrew#33307.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2014-10-19 01:59:09 -05:00
J. Brandt Buckley
f2fa551291 Use pcap fixture with complete packets
The existing `test.pcap` consists of just one Ethernet frame, so it's missing TCP/IP headers.

This updated file is a full HTTP GET request and reply.

Relates to Homebrew/homebrew#32852

Closes Homebrew/homebrew#32869.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2014-10-02 11:02:30 -07:00
Mike McQuaid
f4d87d41be test.pcap: add pcap fixture. 2014-09-08 09:05:23 +01:00
Jack Nagel
b160cc9bb6 Handle tap file renames that remove a file from the formula directory 2014-07-31 15:58:03 -05:00
Mike McQuaid
2013d153e5 Add test 1x1 images for formula test fixtures.
images
2014-07-28 19:36:08 +02:00
Jack Nagel
5b8e564d70 Add test for reporting tap updates 2014-07-26 20:11:53 -05:00
Jack Nagel
2b90995c3e Only populate the report with formula paths 2014-07-26 20:11:53 -05:00
Jack Nagel
6baf357f8c update: remove unused rename detection
Right now this code only produces false positives. When we have real
support for renames, we can implement it more carefully.

Closes Homebrew/homebrew#31126.
2014-07-25 12:28:05 -05:00
Jack Nagel
2cf116464d update: simplify diff parsing 2014-07-25 12:25:58 -05:00
Jack Nagel
e2e5839a9a Get the Tab class under test 2014-06-29 00:55:56 -05:00
Tsukasa OMOTO
54004a4759 Make the on-disk representation of taps unambiguous
This commit supports "-" and "_" in names of user and repository.

Closes Homebrew/homebrew#28203.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2014-04-24 17:10:41 -05:00
Jack Nagel
07b7abdc7a Add some missing test cases for brew update 2013-11-14 11:10:43 -06:00
phinze
9a94a77fa3 Properly define tapped formulae in update
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-09 20:52:51 -05:00
Jack Nagel
5d84df0210 tests: bring brew update tests up to date
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-04-14 00:00:04 -05:00
Mislav Marohnić
8c521ca3d0 refactor update command to use git diff instead of parsing pull output
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-14 14:47:39 -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
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