1075 Commits

Author SHA1 Message Date
Martin Afanasjew
d59f0f77a7 tests: fix fluctuations in test coverage (#647)
This basically started once our integration tests caused the overall
test time to raise above 10 minutes, causing some coverage data to be
dropped because SimpleCov believed it to be stale.
2016-08-06 04:24:18 +02:00
Andrea Kao
38209aadbf tests: add cmd/migrate integration test 2016-08-04 11:44:39 +01:00
Martin Afanasjew
b77a695b7a python: tweak script linking in virtualenv (#613)
* python: tweak script linking in virtualenv

Instead of making the formula author use a slightly awkward block like

  venv.link_scripts(bin) { venv.pip_install buildpath }

avoid exposing this implementation detail and offer the more familiar:

  venv.pip_install buildpath, :link_scripts => bin

* Add non-block form and use instead of recursion

* Update 'pip_install' documentation

* Remove obsolete 'link_scripts'

* Add test for 'pip_install' with linking scripts

Also drop no longer relevant (and broken) `link_scripts` test, that
served as a template for the new test.

* Restore compatibility with Ruby 1.8.7

* Replace option hash with 'pip_install_and_link'

* Avoid confusing 'Object#tap' and fix silly bug

* Avoid side effects in mock object parameter check

* Simplify argument check (no need for a block)
2016-08-02 13:37:15 -07:00
Andrea Kao
762e56db72 tests: update cmd/analytics integration test 2016-08-02 11:00:42 +01:00
Dominyk Tiller
774eefa8ae
test_utils: add with_custom_locale test 2016-08-02 03:50:49 +01:00
Mike McQuaid
7a00f03c92 utils: tell people to report deprecations to tap.
This should hopefully avoid Homebrew/brew or Homebrew/homebrew-core
having these exceptions reported to us.
2016-07-31 19:22:12 +01:00
Dominyk Tiller
12e7a08b7a
test_cleaner: add perl removal tests
Closes #609.

Signed-off-by: Dominyk Tiller <dominyktiller@gmail.com>
2016-07-31 03:44:29 +01:00
Mike McQuaid
81b034a577 test_cmd_audit: don't print compat warnings. 2016-07-29 21:21:29 -06:00
Mike McQuaid
fa6377dc12 test_language_module_requirement: check for python. 2016-07-29 21:21:02 -06:00
Mike McQuaid
70a1ef5bdf testing_env: add needs_python method. 2016-07-29 21:21:02 -06:00
Mike McQuaid
b43e49a9b8 test_formula: fix sort order bugs. 2016-07-29 21:21:02 -06:00
Mike McQuaid
1aded31fec test_utils: remove unnecessary full paths. 2016-07-29 21:21:02 -06:00
Martin Afanasjew
12413cb760 tests: fix duplicate test case class name
Rename test case class to avoid two definitions of `BlacklistTests`.
2016-07-28 22:09:07 +02:00
Mike McQuaid
97b6a3069e test: add default Linux x86_64 bottle. 2016-07-27 21:44:35 -06:00
Andrea Kao
7836e0953c tests: add cmd/switch integration test 2016-07-27 17:24:17 -06:00
Mike McQuaid
536c42f7e6 test_version_subclasses: make OS X specific. 2016-07-27 15:05:42 -06:00
Mike McQuaid
08f68fc4dd test_x11_requirement: make OS X specific. 2016-07-27 15:05:42 -06:00
Mike McQuaid
ec9751670c test_mach: make OS X specific. 2016-07-27 15:05:42 -06:00
Mike McQuaid
51dd73dba8 test_keg: port to generic layer. 2016-07-27 15:05:42 -06:00
Mike McQuaid
7f2f602e44 test_formula: port to generic layer. 2016-07-27 15:05:42 -06:00
Mike McQuaid
1f6f832c00 test_dependency_collector: port to generic layer. 2016-07-27 15:05:42 -06:00
Mike McQuaid
541e8f28df bottles: more porting to generic layer. 2016-07-27 15:05:42 -06:00
Mike McQuaid
892a3239bc hardware: more porting to generic layer. 2016-07-27 15:05:42 -06:00
Mike McQuaid
9f74ca80af diagnostic: port to generic layer. 2016-07-27 15:05:42 -06:00
Mike McQuaid
c86c600bfd blacklist: port to generic layer. 2016-07-27 15:05:42 -06:00
Mike McQuaid
c186d39289 Rakefile: skip OS X-only tests on non-OS X. 2016-07-27 15:05:42 -06:00
Martin Afanasjew
54d1e99ffe tap: test fetch/validation of invalid tap names 2016-07-27 21:25:13 +02:00
Andrea Kao
39453691ba tests: extend cmd_fail to all non-zero exit codes (#595) 2016-07-27 21:10:46 +02:00
Tim D. Smith
134d0bb486 Test Language::Python::Virtualenv 2016-07-26 21:34:06 -07:00
Andrea Kao
e9c079e762 tests: add cmd/analytics integration test (#558) 2016-07-27 03:52:24 +02:00
Andrea Kao
0be204aab5 tests: add cmd/pull integration test (#525) 2016-07-26 17:08:01 +02:00
Andrea Kao
4f95f7ff84 tests: add cmd/irb integration test (#501) 2016-07-19 17:33:36 +02:00
Andrea Kao
4b40a87ca4 tests: nest HOMEBREW_TEMP inside TEST_TMPDIR (#554) 2016-07-19 17:23:44 +02:00
Martin Afanasjew
9cf508c6e0 tests: use SimpleCov 0.12.0 and Coveralls 0.8.14
SimpleCov 0.12.0 brings some moderate speed improvements and soon (sadly
not yet) can be switched back to a stable release. Update to matching
Coveralls release, fortunately with fewer dependencies than before.
2016-07-19 02:04:40 +02:00
Martin Afanasjew
c6983aade9 tests: strip Homebrew prefix from coverage report
Make `Library/Homebrew` the new root now that *all* implementation files
are in this directory. Update filters/groups accordingly.

Note that paths in filters/groups are not anchored at the root and are
always matched against the full path. Our rules are effectively anchored
because they always include the `/Homebrew/` path component.
2016-07-19 02:04:40 +02:00
Vlad Shablinsky
4b2c4ef258
Update and test eligible_kegs_for_cleanup
Closes #478.

Signed-off-by: Xu Cheng <xucheng@me.com>
2016-07-16 20:39:14 +08:00
Vlad Shablinsky
3fb5d70a72
Unify Version.create usage
Substitue each Version.new and HeadVersion.new with Version.create
to unify Version and HeadVersion instantiation among core code.

Note that this does not relate to Mac::OS::Version class.
2016-07-16 20:39:13 +08:00
Vlad Shablinsky
454003c4c1
test_formula: test new HEAD methods
* Test `Formula#update_head_version`
* Test `Formula#latest_head_prefix`
2016-07-16 20:39:13 +08:00
Vlad Shablinsky
458f9a008c
Apply tests to new HEAD format 2016-07-16 20:39:13 +08:00
Vlad Shablinsky
00cdd5f481
Add HeadVersion tests 2016-07-16 20:39:13 +08:00
Josh Hagins
4abdeb7b5e update: Don't report formulae that are moved within a tap but not renamed (#480) 2016-07-16 07:18:30 +02:00
Mike McQuaid
a07ab8bb92 brew.{rb,sh}: move to Library/Homebrew. (#506) 2016-07-15 19:33:30 +01:00
Mike McQuaid
a02be9eea2 ENV: move to new paths. (#507)
Move some stuff formerly in `Library/ENV` around:
- Move `Library/ENV/$XCODE_VERSION` to `Library/Homebrew/env/super` as they are
  all superenv wrappers and all symlinks to the same version. We never needed
  the "separate shims for separate versions" functionality and it just adds
  confusion.
- Move `Library/ENV/pkgconfig` to `Library/Homebrew/env/pkgconfig` to get more
  things under `Library/Homebrew`
- Move `Library/ENV/scm` to `Library/scm` as these wrappers are not actually
  used by or related to superenv (or stdenv) in any way.
2016-07-15 19:03:45 +01:00
Xu Cheng
b62a2c7e7f
add more test
Closes #514.

Signed-off-by: Xu Cheng <xucheng@me.com>
2016-07-15 19:57:23 +08:00
Mike McQuaid
f6dad377b6 test-bot: start running generic tests. (#505)
* test-bot: start running generic tests.

Start running the test suite in the "generic" mode i.e. a base layer for
non-OS X platforms to be able to use to ensure we don't break the generic code
for the parts of the code we've got running.

Currently this just runs the integration tests as that's the only useful suite
that's entirely passing but eventually this will be changed to run the full test
suite in generic mode.

* test_integration_cmds: fix tests on Linux.
2016-07-14 14:37:50 +01:00
Andrea Kao
c8812522a4 tests: add cmd/link, cmd/unlink integration tests (#398) 2016-07-13 00:22:06 +02:00
Mike McQuaid
ac229f95b5 test_integration_cmds: compile in install test. (#479)
Most of our formulae do compilation so let's do it here too.
2016-07-11 09:20:00 +01:00
Dominyk Tiller
64b1822bca
test_language_go: update for HOMEBREW_DEVELOPER odie
Closes #488.

Signed-off-by: Dominyk Tiller <dominyktiller@gmail.com>
2016-07-10 21:26:39 +01:00
Martin Afanasjew
ecc329e33f tests: clean up after bottle test
Fix minor regression in b55250c44eacd49646407b26a73753965d4d36d0. The
bottle is placed in the current working directory, is unaffected by the
the single teardown introduced in #475, and thus needs manual handling.

Closes #483.

Signed-off-by: Martin Afanasjew <martin@afanasjew.de>
2016-07-10 16:01:10 +02:00
Martin Afanasjew
942e1a726b tests: fuse broken/split --repository tests
The latter was replacing the former due to an identical method name.
2016-07-10 16:01:10 +02:00