Alyssa Ross
41e25209f7
Save runtime dependencies in INSTALL_RECEIPT.json
...
Fixes #930
2016-09-19 20:53:39 +01:00
Mike McQuaid
c9d9e54de6
Fix brew style
from #971 .
2016-09-19 16:04:32 +01:00
Alyssa Ross
d89a696d83
Remove unused variable
...
This will make brew readall --syntax pass
2016-09-19 02:24:21 +01:00
Alyssa Ross
6ec14288aa
Formulae aren't outdated if replacement formula installed
2016-09-19 02:08:42 +01:00
Alyssa Ross
4abd48812b
alias tracking: add formula tests
2016-09-19 02:08:39 +01:00
Alyssa Ross
912b8d4776
formula tests: more consistent names
2016-09-18 21:43:54 +01:00
Alyssa Ross
7b85934f50
Update formula tests for #outdated_kegs
2016-09-18 19:58:12 +01:00
Alyssa Ross
3d559fa796
Add Formula#installed_alias_path
2016-09-18 19:45:52 +01:00
Mike McQuaid
3982950e61
rubocop --auto-correct all hash-rocket usage.
2016-09-17 16:14:13 +01:00
Mike McQuaid
72d10fff0b
Use constants for LinkedKegs/PinnedKegs/Locks.
...
These definitions are scattered throughout the codebase which makes it
hard to refactor them later (my goal is to move them outside of
HOMEBREW_LIBRARY). Unify their definitions for clearer code and easier
movement later.
2016-09-15 18:28:42 +01:00
Mike McQuaid
0f09674fe6
test/test_formula: fix Rubocop warnings.
2016-09-11 21:48:05 +01:00
Mike McQuaid
1d66cdd3ad
Merge pull request #863 from penman/preserve_alias
...
Save aliases in INSTALL_RECEIPT
2016-09-09 07:47:05 +01:00
Alyssa Ross
8bbcbfc020
More realistic alias_path test
2016-09-07 21:47:53 +01:00
Vlad Shablinsky
02a578d842
test_formula: eligible_kegs_for_cleanup_keg_pinned
2016-09-07 20:58:13 +03:00
Alyssa Ross
65ee5408c3
Replace install_name/install_ref with alias_path
2016-09-05 01:19:08 +01:00
Alyssa Ross
c17664b124
Switch to hash rockets
2016-09-05 01:19:08 +01:00
Alyssa Ross
0ef3e1e0dc
Preserve alias when installing formulae
...
Part of #567
2016-09-03 21:16:43 +01:00
Vlad Shablinsky
6a684f4199
test_formula: add epoch tests
2016-08-18 10:38:20 +02:00
Vlad Shablinsky
072e5df4ed
Cache outdated_versions for Formula
...
Closes #584 .
Signed-off-by: Xu Cheng <xucheng@me.com>
2016-08-06 21:25:57 +08:00
Vlad Shablinsky
04cb161ddb
test_formula: add outdated_versions tests
2016-08-06 21:25:56 +08:00
Andrea Kao
8ec59253df
tests: fix code style issues ( #587 )
2016-08-06 07:04:59 +02:00
Mike McQuaid
b43e49a9b8
test_formula: fix sort order bugs.
2016-07-29 21:21:02 -06:00
Mike McQuaid
7f2f602e44
test_formula: port to generic layer.
2016-07-27 15:05:42 -06: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
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
fbac41d95b
test_formula: improve test_migration_needed
...
Closes #432 .
Signed-off-by: Martin Afanasjew <martin@afanasjew.de>
2016-07-02 00:29:45 +02:00
Vlad Shablinsky
0d3b5f6849
test_formula: add migration_needed test
2016-06-29 21:04:27 +08:00
Vlad Shablinsky
d47df68cbd
test_formula: add outdated_versions tests
2016-06-29 21:04:27 +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
28b4923dad
fix tests for deprecating SHA1
...
Closes Homebrew/homebrew#50272 .
Signed-off-by: Xu Cheng <xucheng@me.com>
2016-03-20 14:55:58 +08:00
Mike McQuaid
26ec9f9ea0
formula: add new pour_bottle DSL with reason.
...
This allows there to be a user-visible description of why a bottle is
not being installed.
2016-02-18 10:21:20 +00:00
Baptiste Fontaine
9bdd6619e2
cleanup: move code away from cmd/
...
Closes Homebrew/homebrew#47484 .
Signed-off-by: Baptiste Fontaine <batifon@yahoo.fr>
2016-01-04 13:17:21 +01:00
Baptiste Fontaine
e224c2fc9e
more formula tests
...
Closes Homebrew/homebrew#47404 .
Signed-off-by: Baptiste Fontaine <batifon@yahoo.fr>
2015-12-27 02:20:41 +01:00
Martin Afanasjew
8091b33f85
ruby 1.8: address syntax warnings in Homebrew core
...
Closes Homebrew/homebrew#45849 .
Signed-off-by: Xu Cheng <xucheng@me.com>
2015-11-11 14:22:44 +08:00
Xu Cheng
ccc7a5f1bd
add test_formulary
...
Closes Homebrew/homebrew#43506 .
Signed-off-by: Xu Cheng <xucheng@me.com>
2015-09-06 20:47:40 +08: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
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
a9e71ca905
test_formula: add more test
2015-07-31 19:44:03 +08: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
3a3a49bd93
add Formulary.core_path method, deprecate Formula.path
2015-05-27 13:53:40 +08: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
47aae82d33
Remove bad test
2015-04-18 15:20:58 -04:00
Jack Nagel
cc92f491c8
Fix test formula name so it matches the filename
2015-04-15 21:28:23 -04:00
Jack Nagel
e651e7662a
Use formula helper in tests
2014-12-28 21:56:06 -05:00
Jack Nagel
7f29dc13b8
Drop pointless subclass in test
2014-12-28 00:03:16 -05:00
Jack Nagel
3c9bee268b
Preserve signature of #initialize in tests
2014-12-27 23:11:32 -05:00
Jack Nagel
1ee1e2ca3c
Stop testing accessor type
2014-12-27 16:31:38 -05:00
Jack Nagel
728a7c6259
Remove dead code
2014-12-27 16:31:32 -05:00