aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/test/test_patching.rb
AgeCommit message (Collapse)Author
2016-02-01DSL method "apply" to specify patch filesilovezfs
The "apply" DSL method can be called from patch-do blocks to specify the paths within an archive of the desired patch files, which will be applied in the order in which they were supplied to the "apply" calls. If "apply" isn't used, raise an error whenever the extracted directory doesn't contain exactly one file. The "apply" method can be called zero or more times within a patch-do block with the following syntaxes supported: apply "single_apply" apply "multiple_apply_1", "multiple_apply_2" apply [array_of_apply] If apply must be used, a single call using the second syntax above is usually best practice. Each apply leaf should be the relative path to a specific patch file in the extracted directory. For example, if extracting this-v123-patches.tar.gz gives you this-123 this-123/.DS_Store this-123/LICENSE.txt this-123/patches this-123/patches/A.diff this-123/patches/B.diff this-123/patches/C.diff this-123/README.txt and you want to apply only B.diff and C.diff, then you need to use "patches/B.diff" and "patches/C.diff" for the lowest-level apply leaves. The code was provided by Xu Cheng. Any mistakes are mine.
2016-01-20test: add metafiles to testballAlex Dunn
2015-08-18unnecessary calls to .select simplifiedBaptiste Fontaine
These are minor perf optimizations. Closes Homebrew/homebrew#43028. Signed-off-by: Baptiste Fontaine <batifon@yahoo.fr>
2015-08-03fix ruby syntax warningsXu Cheng
Closes Homebrew/homebrew#42409. Signed-off-by: Xu Cheng <xucheng@me.com>
2015-08-03Core files style updates.BrewTestBot
Closes Homebrew/homebrew#42354. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-07-22tests: fix patching test for no-compat modeXu Cheng
Closes Homebrew/homebrew#41977. Signed-off-by: Xu Cheng <xucheng@me.com>
2014-12-28Drop unnecessary requiresJack Nagel
2014-12-26Refactor patching testsJack Nagel
2014-12-26Commit test updates that were supposed to be part of ↵Jack Nagel
b76e26c9cf1fc805663d86b6d6d081f91f73ea18
2014-10-26Fix filename caseJack Nagel
2014-07-29Decouple DATA patches from the executing scriptJack Nagel
2014-07-29Store test patches in constantsJack Nagel
2014-06-23Clear cache after patching testsJack Nagel
2014-06-18Use assert_includesJack Nagel
2014-06-18Use a custom test class so we can avoid monkeypatchingJack Nagel
2014-06-12Remove an extra slash in file:// URLs in testsJack Nagel
2014-06-10Rename TEST_FOLDER to TEST_DIRECTORYJack Nagel
2014-06-10Extract constant stringsJack Nagel
2014-03-13Enable new patch implementation with compatibility layerJack Nagel
2013-04-07test_patching: inline test classesJack Nagel
2012-07-04tests: clean up whitespaceJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-07-04Prune some requires from test filesJack Nagel
testing_env already requires utils; set up the ARGV and ENV extensions there as well. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-04-18tests: add utility method to quell outputJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2010-04-06Move TestBall definition to separate file.Adam Vandenberg
2010-04-06Add tests for patching.Adam Vandenberg