4620 Commits

Author SHA1 Message Date
Jack Nagel
c10f19c838 Installation tests now use the actual installer 2015-04-29 19:15:11 -04:00
Jack Nagel
2ca8172fe9 Let the test environment inject its own load path 2015-04-29 19:15:11 -04:00
Jack Nagel
80403db9a1 Use Dir.tmpdir rather than /tmp in test environment 2015-04-29 19:15:11 -04:00
Jack Nagel
dc6af1a6ae Ensure HOMEBREW_TEMP is respected in all tests 2015-04-29 19:15:11 -04:00
Jack Nagel
44ca2043d0 Allow test tmpdir to be passed in 2015-04-29 19:15:11 -04:00
Jack Nagel
0397d68259 Extract runtime configuration from global.rb
This allows global.rb to be safely loaded in the test environment.
2015-04-29 19:15:11 -04:00
Jack Nagel
ba26567b03 Manage sandbox test resources in setup/teardown 2015-04-28 22:36:54 -04:00
Jack Nagel
bae31c0b9e Fix passed-in formula name to match the class name 2015-04-28 01:39:28 -04:00
Misty De Meo
f5d6d80d5b ENV.deparallelize: add block form for temporary change
Closes Homebrew/homebrew#39026.
2015-04-25 12:45:31 -07:00
enami tsugutomo
0b4379e049 hardware: correctly detect early 2015 MacBook Pro.
Closes Homebrew/homebrew#38996.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-04-24 18:26:42 +01:00
Xu Cheng
4db3e51c8e test_pkg_version: remove illegal testcase
`Version` will not end with /_\d+/.

Closes Homebrew/homebrew#38822.

Signed-off-by: Xu Cheng <xucheng@me.com>
2015-04-23 12:25:08 +08:00
Jack Nagel
39b890e255 Remove test that may alter the repository 2015-04-21 20:46:02 -04:00
Jack Nagel
f0eca11d6b Revert "Use real repo to run tests"
This reverts commit 5aaf13c6cf784cb4be62932b3e528e8f93580a65.
2015-04-20 22:33:25 -04:00
Jack Nagel
6278e08aec Use real repo to run tests 2015-04-20 21:00:26 -04:00
Jack Nagel
f9900a5dbf Remove assertion that is coupled to test prefix structure 2015-04-20 20:58:33 -04:00
Jack Nagel
11c513efbd Our internal directory structure is private 2015-04-20 20:25:13 -04:00
Xu Cheng
2f757ee5aa bottle_version: support openssl style 2015-04-19 15:18:12 +08:00
Xu Cheng
61a711f802 stop supporting 0_5_0 style bottle version
The original formula (disco) has been moved to use 0.5.0 style version
string. So actually no one is using such style.

Stop supporting such style, so it wouldn't be ambiguous with revision
part in `Formula#pkg_version`.

Closes Homebrew/homebrew#38750.

Signed-off-by: Xu Cheng <xucheng@me.com>
2015-04-19 14:21:50 +08:00
Jack Nagel
47aae82d33 Remove bad test 2015-04-18 15:20:58 -04:00
Jack Nagel
cc92f491c8 Fix test formula name so it matches the filename 2015-04-15 21:28:23 -04:00
Xu Cheng
a6be0b5bb8 sandbox: redesign API 2015-04-15 19:51:54 +08:00
Jack Nagel
0d6545363d Update test dependencies 2015-04-13 20:04:39 -04:00
Xu Cheng
2f529220e7 preliminary write control only sandbox
Closes Homebrew/homebrew#38361.

Signed-off-by: Xu Cheng <xucheng@me.com>
2015-04-09 17:42:54 +08:00
Dominyk Tiller
6de372d7fe gcc5: add regex
Fixes the bottle regex problem seen in
https://github.com/Homebrew/homebrew-versions/pull/678.

I don’t know whether it’s a good regex, or an awful regex, but it works
and passes `brew tests` and a bottled install. Open to improvements if
anyone has them.

Closes Homebrew/homebrew#38333.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-04-07 08:26:13 +01:00
Jack Nagel
27092cabc4 Switch PkgVersion to use composition
Comparing PkgVersion and Version objects can produce nonsensical
results. For example, equality is not symmetric:

irb(main):002:0> PkgVersion.new("1.0", 0) == Version.new("1.0")
=> false
irb(main):003:0> Version.new("1.0") == PkgVersion.new("1.0", 0)
=> true

Rather than attempt to deal with subclass-superclass equality, let's use
composition and punt on the problem altogether.
2015-04-02 20:22:12 -04:00
ojab
1db6a756c9 Fix test.pdf
test.pdf wasn't a valid PDF file:
>$ mutool info test.pdf
>test.pdf:
>error: cannot recognize xref format
>error: cannot read xref (ofs=406)
>error: cannot read xref at offset 406
>warning: trying to repair broken xref

Process it with `mutool clean` to fix errors, collapse newlines to reduce size

Closes Homebrew/homebrew#38194.

Signed-off-by: Xu Cheng <xucheng@me.com>
2015-03-31 19:04:58 +08:00
Ben Morgan
1795599d88 keg: explicitly create cmake dir under lib
Packages supporting CMake may install configuration files for use
with CMake's find_package command. A recommended location for these
is `<prefix>/lib/cmake` which is not unique across packages. This
may cause issues for Formula using this location when their Keg
is linked.

As with pkg-config, explicitly create the `lib/cmake` folder when
linking a Keg that has installed folders/files to this location.

Also add testcase.

Closes Homebrew/homebrew#38005.

Signed-off-by: Xu Cheng <xucheng@me.com>
2015-03-29 22:01:21 +08:00
Xu Cheng
8f8061e5f8 bottle_version: support apparix-11-062 2015-03-29 13:12:20 +08:00
Jack Nagel
522f7ea8c7 Add tests for cp_path_sub 2015-03-26 22:02:15 -04:00
Jack Nagel
8a8de3a296 Add test for InstallRenamed on directories 2015-03-26 22:02:15 -04:00
Jack Nagel
4c21ad30d8 Adjust variable in InstallRenamed test 2015-03-26 22:02:14 -04:00
Jack Nagel
23d9173cb1 Don't run pathname tests twice 2015-03-26 22:02:14 -04:00
Jack Nagel
038332d8d7 Get rid of setup_install_test method 2015-03-25 21:37:26 -04:00
Jack Nagel
148ebcb72e Eliminate chdir from pathname tests 2015-03-25 21:37:26 -04:00
Jack Nagel
b49d3bd0a9 Pull install tests into a separate class 2015-03-25 21:37:26 -04:00
Jack Nagel
53b7d45de8 Do less work inside chdir blocks 2015-03-25 21:11:51 -04:00
Jack Nagel
617544694c Parallelize the language module dependency tests 2015-03-25 21:11:50 -04:00
David Christenson
098ccfa9a8 fdk-aac 0.1.4
Update to latest stable release, install example AAC encoder, add test
with new WAV fixture, modernize.

Closes Homebrew/homebrew#37654.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-03-18 08:07:35 +00:00
Mike McQuaid
6b58107693 bottle_version: add erlang versions style regex. 2015-03-15 16:29:40 +00:00
Jack Nagel
abb0cb3aa0 Switch to a more useful serialization of tap info
Closes Homebrew/homebrew#37383.
2015-03-14 21:14:37 -04:00
Dominyk Tiller
12861686b8 checksums: switch to sha256 for bottles and new formulae
Closes Homebrew/homebrew#37164.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-03-05 14:45:39 +00:00
Xu Cheng
c8835afead move formula_specialties to compat
Closes Homebrew/homebrew#37365.

Signed-off-by: Xu Cheng <xucheng@me.com>
2015-03-04 23:20:13 +08:00
Jack Nagel
091ec41357 Update minitest 2015-02-27 22:06:10 -05:00
Mike McQuaid
17bfb0f804 Remove SourceForge references.
It was fun but we just love Bintray more than you.

Closes Homebrew/homebrew#37211.

Closes Homebrew/homebrew#37213.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-02-26 11:32:42 +00:00
Jack Nagel
35860ac60f Switch to string keys
The OpenStruct initializer accepts both symbols and strings, but any
nested hashes will only allow access via string keys, so let's always
construct the object with strings for consistency.
2015-02-21 18:44:04 -05:00
Jack Nagel
a6b16dfa18 Eliminate conditional 2015-02-21 12:26:14 -05:00
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
Jack Nagel
4b1028c9e5 Start recording the formula path in the install receipt
Later we can use this information to try and load the formula from the
correct source.
2015-02-18 21:29:17 -05:00
Jack Nagel
3f3b7746dd Fix another filesystem leak in updater tests 2015-02-15 12:54:03 -05: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