1238 Commits

Author SHA1 Message Date
Xu Cheng
bc650a4f0d test_formula_installer: remove ScriptFileFormula test
It's deprecated and breaks `brew tests` in no-compat mode.
2015-07-21 21:32:38 +08:00
Baptiste Fontaine
44a8ebdc7e 'brew tests' optional coverage measure added
Closes Homebrew/homebrew#41890.

Signed-off-by: Baptiste Fontaine <batifon@yahoo.fr>
2015-07-20 20:44:12 +02:00
Alex Dunn
da2e4d417d fetch/build formula from source when modified
closes Homebrew/homebrew#36068

Closes Homebrew/homebrew#41397.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-07-18 19:30:30 -07:00
Mike McQuaid
9011060c00 Merge test gitignore into root version.
libgit2 clients struggle at parsing these otherwise because of how we
set up our ignore rules.

And remove now unneeded formula ignore rule.

Closes Homebrew/homebrew#41593.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-07-13 08:11:04 -07:00
Mike McQuaid
6bbbd2481a test_updater: fix pull argument ordering. 2015-07-10 00:20:19 +01:00
Mike McQuaid
b11ae2abdc update: stash save/pop uncommitted changes.
Also:
- return to your previous branch after `brew update`.

Closes Homebrew/homebrew#38568.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-07-09 12:33:31 +01:00
Xu Cheng
024c2d508b auto resolve bottle root_url based on tap 2015-07-06 18:04:59 +08:00
Xu Cheng
b78cbb7314 fix error message in test_updater
Closes Homebrew/homebrew#41372.

Signed-off-by: Xu Cheng <xucheng@me.com>
2015-07-06 11:26:00 +08:00
Misty De Meo
6c4000d07a Language module requirement: fix perl test
The name of the module is "Env", not "ENV"; this test would fail on a
case-sensitive filesystem.
2015-06-29 14:01:55 -07:00
Jack Nagel
38974ed6b5 Run tests for both build environments 2015-06-17 20:04:21 -04:00
Mike McQuaid
1e86730289 Rename requirements named *Dependency.
Dependency is another similar, related class and it's super confusing
to have some Requirements that are named *Dependency.

Closes Homebrew/homebrew#38891.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-06-16 08:12:01 +01:00
Jack Nagel
552755b3de Update minitest 2015-06-13 21:11:32 -04:00
Xu Cheng
129f780bba remove bottle_version 2015-06-02 16:45:43 +08:00
Xu Cheng
473512e10f test_software_spec: add full_name 2015-05-29 17:02:23 +08:00
Jack Nagel
efd52da101 Remove dead code 2015-05-27 21:57:41 -04:00
Xu Cheng
3a3a49bd93 add Formulary.core_path method, deprecate Formula.path 2015-05-27 13:53:40 +08:00
Jack Nagel
e398e4519d Add test demonstrating installing a relative symlink 2015-05-21 20:43:38 -04:00
Jack Nagel
43ce8b0791 Stop testing implementation 2015-05-04 20:43:08 -04:00
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