114 Commits

Author SHA1 Message Date
Markus Reiter
77401b787f Reorder testing_env. 2017-02-03 17:27:36 +01:00
Markus Reiter
d0c5b98a62 Don’t require formulary in testing_env. 2017-02-03 17:27:36 +01:00
Markus Reiter
e40c63f77c Use array of constants to set up test directories. 2017-02-03 17:27:36 +01:00
Markus Reiter
9dc1f8f3cd Require integration_command_test_case in testing_env. 2016-11-16 23:52:38 +01:00
Markus Reiter
9d82acbf30 Separate Homebrew::TestCase from testing_env. 2016-11-16 23:52:38 +01:00
Markus Reiter
4db1317f38 Move all remaining fixtures to test/support/fixtures. 2016-11-16 23:52:38 +01:00
Markus Reiter
4efdbbde06 Rename fs_leak_log to fs_leak.log and move to tmp. 2016-11-16 23:52:37 +01:00
Misty De Meo
30fdbe089b Merge pull request #1435 from mistydemeo/dev_tools_version
Add "null version" class, and return compiler versions/build versions as Version objects
2016-11-14 13:44:03 -08:00
Mike McQuaid
b32fafa82c formulary: don't warn on old formula name from keg/rack.
If there’s an old installation of e.g. `apple-gcc42` from when it was
part of `homebrew/core` then the tab will say it was from the
`homebrew/core` tap and then we’ll complain at the user (see #1459 for
an example). Instead, we only want to complain when the user actually
types in `homebrew/core/apple-gcc42` into a `brew` command.

Closes #1459.
2016-11-11 16:42:29 +00:00
Misty De Meo
fbcf500a48 Version.parse: return Version::NULL for unparseable strings 2016-11-10 15:08:36 -08:00
Josh Hagins
fba00f2bbf testing_env: extract with_environment to helper module 2016-10-19 12:35:46 -04:00
Markus Reiter
58e36c7319 Fix Style/GuardClause. 2016-09-24 12:24:35 +02:00
Mike McQuaid
5cf3838f42 Merge pull request #1041 from penman/parallel_tests
Parallelise test suite
2016-09-23 07:57:35 +01:00
Alyssa Ross
1c4ae98823 tests, cask-tests: log test runtimes 2016-09-20 13:16:11 +01:00
Alyssa Ross
d3740ec34f tests: run in parallel 2016-09-19 23:00:58 +01:00
Alyssa Ross
28f707c907 tab: test tap runtime dependencies 2016-09-19 21:03:55 +01:00
Alyssa Ross
4abd48812b alias tracking: add formula tests 2016-09-19 02:08:39 +01:00
Mike McQuaid
3982950e61 rubocop --auto-correct all hash-rocket usage. 2016-09-17 16:14:13 +01:00
Alyssa Ross
4f1d47bc15 Test source.path on Tab.create and .for_formula 2016-09-07 22:52:29 +01:00
Markus Reiter
39e9506557 Refactor shutup. 2016-08-21 05:07:38 +02:00
Andrea Kao
8ec59253df tests: fix code style issues (#587) 2016-08-06 07:04:59 +02:00
Mike McQuaid
70a1ef5bdf testing_env: add needs_python method. 2016-07-29 21:21:02 -06:00
Andrea Kao
4b40a87ca4 tests: nest HOMEBREW_TEMP inside TEST_TMPDIR (#554) 2016-07-19 17:23:44 +02: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
00cdd5f481
Add HeadVersion tests 2016-07-16 20:39:13 +08:00
Tim D. Smith
f04ffb614d Move with_environment to testing_env 2016-06-29 21:16:50 -07:00
William Woodruff
cb3ad215b4 test: Add tests for Keg#mach_o_files link behavior.
Move dylib_path and bundle_path from test_mach to testing_env to
accommodate the new tests.

Closes #400.

Signed-off-by: Martin Afanasjew <martin@afanasjew.de>
2016-06-29 14:34:08 +02:00
Tim D. Smith
70ceb851a5 Revert "test: Add test for Keg#mach_o_files hardlink behavior."
This reverts commit 62d7079684cdb568600e22531c62888622a71ff1.
2016-06-27 23:25:10 -07:00
William Woodruff
62d7079684 test: Add test for Keg#mach_o_files hardlink behavior.
Move dylib_path and bundle_path from test_mach to testing_env to
accommodate the new test.

Closes #400.

Signed-off-by: Tim D. Smith <git@tim-smith.us>
2016-06-27 22:56:28 -07:00
Xu Cheng
8d64b6a02d introduce global lock directory (#337)
Since #292, HOMEBREW_CACHE was moved to a per-user directory. This makes
it unsuitable to store global lock files on multiple users environment.

Therefore, introducing a global lock directory `/Library/Lock.d` to
store lock files from formula lockers as well as `brew update`.
2016-06-08 17:29:03 +08:00
Xu Cheng
deea4c82a4 fix brew tests
Fix the `brew tests` problem caused by core/formula separation.
2016-04-02 21:51:36 +08:00
Xu Cheng
ce7b32cec8 add HOMEBREW_ENV_PATH internal variable
`Library/ENV` like `Library/Homebrew` is part of Homebrew basecode. It
should be able to be accessed during the `brew tests`.

By adding HOMEBREW_ENV_PATH variable, we allow test suit to locate these
codes.
2016-03-21 19:07:38 +08:00
Baptiste Fontaine
0386f33222 tests: Add missing version tests
Closes Homebrew/homebrew#49031.

Signed-off-by: Baptiste Fontaine <batifon@yahoo.fr>
2016-02-10 18:47:00 +01:00
Baptiste Fontaine
d0998a4907 testing_env: needs_compat utility added
Closes Homebrew/homebrew#48302.

Signed-off-by: Baptiste Fontaine <batifon@yahoo.fr>
2016-01-25 01:26:24 +01:00
Baptiste Fontaine
f0d1444980 tests: missing requires added
Closes Homebrew/homebrew#47866.
Closes Homebrew/homebrew#47861.

Signed-off-by: Baptiste Fontaine <batifon@yahoo.fr>
2016-01-09 10:37:40 +01:00
BrewTestBot
13d544e11e Core files style updates.
Closes Homebrew/homebrew#42354.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-08-03 13:22:35 +01:00
Mike McQuaid
95658a5beb Move simplecov configuration to dotfile. 2015-07-28 10:57:56 +01:00
Mike McQuaid
5256d406de testing_env: point to bundle install now. 2015-07-28 10:57:55 +01:00
Xu Cheng
0ad82a29f9 tests: always run fs leak check 2015-07-22 20:27:20 +08:00
Xu Cheng
5433203fb4 coverage: stop recording compat codes
Closes Homebrew/homebrew#41973.

Signed-off-by: Xu Cheng <xucheng@me.com>
2015-07-21 21:32:50 +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
Xu Cheng
3a3a49bd93 add Formulary.core_path method, deprecate Formula.path 2015-05-27 13:53:40 +08:00
Jack Nagel
43ce8b0791 Stop testing implementation 2015-05-04 20:43:08 -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
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
b4fd54ae92 Close duped output streams before returning 2014-07-06 15:03:38 -05:00
Jack Nagel
7d8a901f7a Add assert_eql to provide better failure messages for eql? tests 2014-07-03 16:55:13 -05:00