Vlad Shablinsky
a29832484c
fix style problems in migrator
...
Closes Homebrew/homebrew#43473 .
Signed-off-by: Xu Cheng <xucheng@me.com>
2015-09-03 13:58:25 +08:00
William Woodruff
b0d5e17906
tweak String#undent so that only leading whitespace up to the first indentation level is gsubbed, change test_undent to reflect change and add test_undent_nested to test new behavior
2015-08-28 18:02:04 +08:00
Martin Afanasjew
1288e3110d
update: always report changes to branch 'master'
...
If the user's working copy is *not* on the 'master' branch, the revision
recorded after the update to the 'master' branch is not the one of the
updated 'master' branch but that of whatever the user's current branch
is. This tends to be not very helpful.
This change records the revision *after* the update to the 'master'
branch, but *before* switching back to the user's current branch prior
to the update, effectively causing the report to show changes to the
'master' branch.
Closes Homebrew/homebrew#42074 .
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-08-27 13:53:28 +01:00
Tim D. Smith
143709e679
include git sha1 in --version output
...
HOMEBREW_VERSION doesn't change very often; the repository state is more
interesting.
Closes Homebrew/homebrew#41886 .
2015-08-25 00:13:53 -07:00
Xu Cheng
a88c40b8c8
core file style update
2015-08-22 13:15:33 +08:00
Misty De Meo
727239e12f
Merge bottle install without Xcode branch
...
Merge branch 'bottle_hooks'
2015-08-21 11:04:22 -07:00
William Woodruff
f108d204f7
Add tests for pouring bottle without Xcode
...
add testball_bottle formula for upcoming bottle unit testing, as well
as bottles directory containing test bottle (and symlinks)
2015-08-21 11:02:33 -07:00
Xu Cheng
72a11b7d11
test_migrator: fix lock file leak
...
Closes Homebrew/homebrew#43025 .
Signed-off-by: Xu Cheng <xucheng@me.com>
2015-08-20 15:47:42 +08:00
Baptiste Fontaine
8ba0fb9fcf
unnecessary calls to .select simplified
...
These are minor perf optimizations.
Closes Homebrew/homebrew#43028 .
Signed-off-by: Baptiste Fontaine <batifon@yahoo.fr>
2015-08-18 00:18:22 +02:00
Vlad Shablinsky
dc4feaf56b
test_keg: add tests for oldname optlink
...
Closes Homebrew/homebrew#42998 .
Signed-off-by: Xu Cheng <xucheng@me.com>
2015-08-17 01:53:58 +08:00
Baptiste Fontaine
ccb613df69
which: tests added
...
Closes Homebrew/homebrew#42954 .
Signed-off-by: Baptiste Fontaine <batifon@yahoo.fr>
2015-08-16 17:03:05 +02:00
Tim D. Smith
f5642cb105
let tests pass on Xcode-only systems
...
Closes Homebrew/homebrew#42976 .
2015-08-15 20:24:20 -07:00
Vlad Shablinsky
7079a00aa7
add test/test_migrator
2015-08-10 13:57:59 +01:00
Xu Cheng
4e5227fd4e
test_formula: add test_facotry_with_fully_qualified_name
...
Closes Homebrew/homebrew#42550 .
Signed-off-by: Xu Cheng <xucheng@me.com>
2015-08-06 22:28:44 +08:00
Xu Cheng
8f20ea92b3
test_inreplace: temporary disable rubocop string replacement rule
2015-08-06 17:23:56 +08:00
Xu Cheng
b121e5fd7b
more core file style updated by rubocop
2015-08-06 17:23:56 +08:00
Xu Cheng
a5a1cc9865
fix ruby syntax warnings
...
Closes Homebrew/homebrew#42409 .
Signed-off-by: Xu Cheng <xucheng@me.com>
2015-08-03 21:27:40 +08: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
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