Xu Cheng
8054161153
test_tab: add test for Tab#spec
...
Fixes Homebrew/homebrew#42147 .
Closes Homebrew/homebrew#42205 .
Signed-off-by: Xu Cheng <xucheng@me.com>
2015-07-31 19:44:07 +08:00
Xu Cheng
a9e71ca905
test_formula: add more test
2015-07-31 19:44:03 +08:00
Baptiste Fontaine
ea08e4fb16
KegOnlyReason: print only the explanation if there’s one
...
Closes Homebrew/homebrew#42073 .
Signed-off-by: Baptiste Fontaine <batifon@yahoo.fr>
2015-07-28 20:40:28 +02:00
Mike McQuaid
0c47c8f864
test_integration_cmds: basic integration tests.
...
Closes Homebrew/homebrew#41945 .
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-07-28 10:57:56 +01:00
Mike McQuaid
09acae83a6
.simplecov: use lower root directory.
2015-07-28 10:57:56 +01:00
Mike McQuaid
95658a5beb
Move simplecov configuration to dotfile.
2015-07-28 10:57:56 +01:00
Mike McQuaid
76a0b1d494
test/lib/config: HOMEBREW_LIBRARY_PATH is normally a Pathname.
2015-07-28 10:57:55 +01:00
Mike McQuaid
00a9c61b43
testball: use sha256.
2015-07-28 10:57:55 +01:00
Mike McQuaid
5256d406de
testing_env: point to bundle install
now.
2015-07-28 10:57:55 +01:00
Baptiste Fontaine
ca1f5dc713
more unit tests
...
Closes Homebrew/homebrew#42096 .
Signed-off-by: Baptiste Fontaine <batifon@yahoo.fr>
2015-07-25 00:00:30 +02:00
Xu Cheng
0ad82a29f9
tests: always run fs leak check
2015-07-22 20:27:20 +08:00
Xu Cheng
c39b0ef000
test_formula_installer: fix log file leak
2015-07-22 20:27:20 +08:00
Xu Cheng
33befcf312
tests: fix patching test for no-compat mode
...
Closes Homebrew/homebrew#41977 .
Signed-off-by: Xu Cheng <xucheng@me.com>
2015-07-22 15:12:31 +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
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