Martin Afanasjew
dba1958bd7
Revert "Test officially supported cmd taps. ( #390 )"
...
This reverts commit 252c701c59227c385ef6178fe99523cca8c843bb.
Taps installed prior to running the test suite are not visible to the
test suite as most Homebrew paths are redefined as to not mess up the
local installation.
2016-07-04 17:41:14 +02:00
Mike McQuaid
252c701c59
Test officially supported cmd taps. ( #390 )
...
All of these taps use Homebrew internal APIs (or will shortly) and we
autoinstall them all from `brew $CMD`. We should adjust our CI to ensure
that we never accidentally break these taps when making changes to core
code so that these taps can rely more on this core code rather than
having to e.g. vendor equivalent code that never changes on our end.
2016-07-04 16:08:53 +01:00
Andrea Kao
8b31167a43
tests: refactor formula file creation ( #370 )
2016-06-22 13:37:17 +01:00
Andrea Kao
cad85754cf
tests: add cmd/search integration test ( #356 )
2016-06-19 22:20:20 +01:00
Martin Afanasjew
8a70b000e5
tests: fix problems in 'log with formula' test ( #350 )
...
Problems fixed:
- Broken and leaking test if run as part of `brew tests --coverage` due
to the `cmd` call being nested in the `Pathname#cd` block.
- Output during `git clone` operation because of a missing `shutup do`.
- Still incomplete coverage for `cmd/log.rb` because `brew log` is
invoked on the formula in the origin instead of the shallow clone.
- Minor stylistic fixes:
- Superfluous parentheses around `core_tap.path.dirname`.
- Overly long lines.
2016-06-14 14:58:11 +02:00
Andrea Kao
3f7fffe17d
tests: extend cmd/log integration test ( #333 )
2016-06-12 13:50:34 +01:00
Andrea Kao
5ac6eb434e
tests: extend cmd/desc integration test ( #314 )
2016-06-03 13:10:38 +01:00
Martin Afanasjew
d2cdbcbb18
tests: add missing require
...
Amends e4d0187120e61bc80d31ebecc3b38f0740b20bb5. The `require` was
accidentally omitted causing the tests to fail very sporadically (or
always, when invoked as `brew tests --only=integration_cmds`).
2016-06-02 09:36:51 +02:00
Andrea Kao
e4d0187120
tests: extend cmd/home integration test ( #305 )
2016-06-02 01:26:32 +02:00
Mike McQuaid
f12932cf31
test_integration_cmds: fix when not a developer.
2016-05-30 21:44:59 +01:00
Mike McQuaid
0158fc6da8
test_integration_cmds: print output on failure. ( #213 )
...
Makes it easy to debug what’s gone wrong.
2016-05-08 17:12:31 +01:00
Mike McQuaid
61614d3529
test_integration_cmds: add cleanup test.
2016-05-08 17:11:57 +01:00
Martin Afanasjew
02289fce42
Update Homebrew/homebrew references in code
...
Replace `homebrew` with `brew`, `homebrew-core`, or `legacy-homebrew`
depending on context.
2016-05-02 21:19:09 +02:00
Martin Afanasjew
8600b9edf1
Update Homebrew/homebrew references in comments
...
Replace `homebrew` with `brew`, `homebrew-core`, or `legacy-homebrew`
depending on context.
2016-05-02 21:19:09 +02:00
Martin Afanasjew
b53f0c5ada
tests: expand help and help-related tests
...
Closes #114 .
Signed-off-by: Martin Afanasjew <martin@afanasjew.de>
2016-04-20 13:46:10 +02:00
Martin Afanasjew
d183ff8065
tests: fix Ruby 1.8 syntax warnings
...
In `Library/Homebrew/test/`:
test_integration_cmds.rb:431: warning: (...) interpreted as grouped expression
test_integration_cmds.rb:502: warning: (...) interpreted as grouped expression
test_integration_cmds.rb:507: warning: (...) interpreted as grouped expression
test_integration_cmds.rb:585: warning: (...) interpreted as grouped expression
test_integration_cmds.rb:709: warning: (...) interpreted as grouped expression
test_integration_cmds.rb:710: warning: (...) interpreted as grouped expression
test_integration_cmds.rb:711: warning: (...) interpreted as grouped expression
2016-04-20 01:42:14 +02:00
Martin Afanasjew
7771f3af81
tests: update prune --verbose test
...
Closes #15 .
Signed-off-by: Martin Afanasjew <martin@afanasjew.de>
2016-04-06 10:31:54 +02:00
Martin Afanasjew
f2245adaa7
tests: update linkapps/unlinkapps tests
2016-04-06 10:31:54 +02: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
b8a4677de0
--repository: support to show tap path
...
This can become handy when we separate core code and formulae. For
example, we could use `cd $(brew --repo homebrew/core)` to go to core
tap path.
Closes Homebrew/homebrew#50346 .
Signed-off-by: Xu Cheng <xucheng@me.com>
2016-03-24 14:52:13 +08:00
Xu Cheng
28f3dae8cd
rename CoreFormulaRepository to CoreTap
...
Core tap will be separated from core code in the near future.
It makes sense to rename it to CoreTap.
2016-03-07 19:43:46 +08:00
Xu Cheng
eb6f970b90
tap: support --quieter flag
...
Closes Homebrew/homebrew#49551 .
Signed-off-by: Xu Cheng <xucheng@me.com>
2016-02-26 18:42:36 +08:00
Xu Cheng
e5b6f79b22
bottle: do not follow symlink when setting mtime
...
Also set atime to mtime, which seems to be a more common practice.
Fixes Homebrew/homebrew#49007
Closes Homebrew/homebrew#49027 .
Signed-off-by: Xu Cheng <xucheng@me.com>
2016-02-10 21:01:12 +08:00
Baptiste Fontaine
eba429d947
tests: add leaves & prune integration tests
...
Closes Homebrew/homebrew#48943 .
Signed-off-by: Baptiste Fontaine <batifon@yahoo.fr>
2016-02-07 13:30:40 +01:00
Baptiste Fontaine
570345d1a0
tests: cleanup test bottle
2016-02-07 13:30:40 +01:00
Baptiste Fontaine
115e6b49bc
tests: monkey-patch exec to get coverage reports
...
Closes Homebrew/homebrew#48923 .
Signed-off-by: Baptiste Fontaine <batifon@yahoo.fr>
2016-02-07 11:52:26 +01:00
Baptiste Fontaine
4ce99fa010
tests: remove unnecessary cd
2016-02-07 11:52:25 +01:00
Baptiste Fontaine
268fa841de
tests: fix simplecov handling in integration tests
...
Closes Homebrew/homebrew#48250 .
Signed-off-by: Baptiste Fontaine <batifon@yahoo.fr>
2016-02-06 14:20:58 +01:00
ilovezfs
fb9818ae8c
HOMEBREW_BREW_FILE was unset for the tests
...
This fixes a regression introduced by 3f6a355, which caused
HOMEBREW_BREW_FILE to be unset while running the tests.
Patch provided by Xu Cheng.
2016-02-05 21:52:11 +08:00
ilovezfs
051cd36046
test_integration_cmds: fix warning.
...
Closes Homebrew/homebrew#48772 .
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2016-02-03 21:09:12 +00:00
Baptiste Fontaine
bdf0e0ef4d
tests: remove the problematic test-bot test
...
It makes Travis checks fail on the master.
2016-02-03 18:11:29 +01:00
Baptiste Fontaine
299419a881
tests: more integration tests
...
Closes Homebrew/homebrew#48785 .
Signed-off-by: Baptiste Fontaine <batifon@yahoo.fr>
2016-02-03 16:28:28 +01:00
Baptiste Fontaine
6cccc2d0fe
tests: remove unnecessary code
2016-02-03 16:28:28 +01:00
Baptiste Fontaine
a173196e32
tests: more integration tests
...
Closes Homebrew/homebrew#48674 .
Signed-off-by: Baptiste Fontaine <batifon@yahoo.fr>
2016-01-31 16:03:36 +01:00
Baptiste Fontaine
86eb44c96c
tests: more integration tests
...
Closes Homebrew/homebrew#48635 .
Signed-off-by: Baptiste Fontaine <batifon@yahoo.fr>
2016-01-31 00:46:35 +01:00
Baptiste Fontaine
47aa71e633
tests: don't try to rm an unexisting file
...
This line is necessary if the test fails. If it passes the file won't
exist anymore and shouldn't be removed.
2016-01-27 23:03:44 +01:00
Baptiste Fontaine
c25e11563c
tests: fix a file leak
2016-01-27 22:38:24 +01:00
Martin Afanasjew
274640c97a
tests: use unique identifiers w/ integration tests
...
Commands executed during integration testing are executed in a separate
process and thus generate a new result set for each command. To avoid
that these results override each other, they need to have a unique
`command_name`. Derive this name from the test class/name and the index
of the command inside that test, resulting in identifiers like
`IntegrationCommandTests#test_prefix.1 brew --prefix`.
Also replaces `TEST_TMPDIR` in the arguments with `"@TMPDIR@"` to get a
cleaner command identifier that is independent of the temporary
directory that changes with every run.
2016-01-21 05:42:23 +01:00
Baptiste Fontaine
4ba4812d1d
tests: tap-readme integration test added
2016-01-20 20:15:34 +01:00
Baptiste Fontaine
36c734b392
tests: cmd/edit & cmd/info tests added
2016-01-20 20:15:34 +01:00
Baptiste Fontaine
861910b85f
sh: flush stdout before executing the shell
...
Closes Homebrew/homebrew#48268 .
Signed-off-by: Baptiste Fontaine <batifon@yahoo.fr>
2016-01-20 11:37:42 +01:00
Misty De Meo
066dd63a87
test_edit: HOMEBREW_EDITOR takes precedence over EDITOR
2016-01-17 13:07:46 -08:00
Baptiste Fontaine
f41e0a6e64
tests: more integration tests
...
Closes Homebrew/homebrew#48124 .
Signed-off-by: Baptiste Fontaine <batifon@yahoo.fr>
2016-01-16 15:46:01 +01:00
Xu Cheng
f0b22c4ce3
fix test_missing test
2016-01-09 19:11:34 +08:00
Baptiste Fontaine
c8401b8243
a few more integration tests
...
Closes Homebrew/homebrew#47714 .
Signed-off-by: Baptiste Fontaine <batifon@yahoo.fr>
2016-01-06 12:22:58 +01:00
Baptiste Fontaine
9f1442db14
doctor: move code away from cmd/
...
Closes Homebrew/homebrew#47665 .
Signed-off-by: Baptiste Fontaine <batifon@yahoo.fr>
2016-01-05 14:33:06 +01:00
Baptiste Fontaine
5d8a6e368f
integration tests: allow env overriding
2016-01-05 14:33:06 +01:00
Baptiste Fontaine
8f8c3cc1b1
integration tests: fix failing test
...
If the test fails above `formula_file`’s definition this line fails
because `formula_file` is `nil`.
Closes Homebrew/homebrew#47663 .
Signed-off-by: Baptiste Fontaine <batifon@yahoo.fr>
2016-01-04 15:12:32 +01:00
Dominyk Tiller
cff0c63d03
test_intergration_cmds: fix minor typo
2016-01-03 19:06:26 +00:00
Dominyk Tiller
49f7c8d6a9
test_intergration_cmds: paren-wrap regex
...
Fixes this `brew readall` warning:
test_integration_cmds.rb:116: warning: ambiguous first argument; put parentheses or even spaces
2016-01-03 19:06:26 +00:00