aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/test
AgeCommit message (Collapse)Author
2016-02-10tests: Add missing version testsBaptiste Fontaine
Closes Homebrew/homebrew#49031. Signed-off-by: Baptiste Fontaine <batifon@yahoo.fr>
2016-02-10bottle: do not follow symlink when setting mtimeXu Cheng
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-09Audit: Regexp.escape formula namesMisty De Meo
We allow certain special regex characters in formula names, and if those aren't escaped when interpolating them into a regex, they'll be interpreted as special regex characters. This can cause regex compile errors on Ruby 1.8 (for example, with "libxml++3", which has nested match characters), and more subtle matching bugs in general. Refs an issue surfaced in Homebrew/homebrew#48744. Closes Homebrew/homebrew#49005. Signed-off-by: Misty De Meo <mistydemeo@gmail.com>
2016-02-07tests: add leaves & prune integration testsBaptiste Fontaine
Closes Homebrew/homebrew#48943. Signed-off-by: Baptiste Fontaine <batifon@yahoo.fr>
2016-02-07tests: cleanup test bottleBaptiste Fontaine
2016-02-07tests: monkey-patch exec to get coverage reportsBaptiste Fontaine
Closes Homebrew/homebrew#48923. Signed-off-by: Baptiste Fontaine <batifon@yahoo.fr>
2016-02-07tests: remove unnecessary cdBaptiste Fontaine
2016-02-07more test for dependency_expansionXu Cheng
Closes Homebrew/homebrew#48904. Signed-off-by: Xu Cheng <xucheng@me.com>
2016-02-06tests: fix simplecov handling in integration testsBaptiste Fontaine
Closes Homebrew/homebrew#48250. Signed-off-by: Baptiste Fontaine <batifon@yahoo.fr>
2016-02-06tests: track all filesBaptiste Fontaine
2016-02-06tests: use our patched simplecov, bump coverallsBaptiste Fontaine
We must bump coveralls otherwise we get a conflicting dependency: we use a patched simplecov v0.11.1 but coveralls 0.8.9 needs simplecov 0.10.x.
2016-02-06tests: enforce min. 40% coverageBaptiste Fontaine
2016-02-06tests: don't use Coveralls outside of CIBaptiste Fontaine
2016-02-06make HOMEBREW_BREW_FILE a Pathname objectXu Cheng
Currently HOMEBREW_BREW_FILE is a String, while other of HOMEBREW_* variables are all Pathname. This commit unifies them all as Pathname, so it will not cause any confusion. Closes Homebrew/homebrew#48872. Signed-off-by: Xu Cheng <xucheng@me.com>
2016-02-05HOMEBREW_BREW_FILE was unset for the testsilovezfs
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-03os/mac/hardware: add Skylake CPU.ilovezfs
Closes Homebrew/homebrew#48781. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2016-02-03test_integration_cmds: fix warning.ilovezfs
Closes Homebrew/homebrew#48772. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2016-02-03tests: remove the problematic test-bot testBaptiste Fontaine
It makes Travis checks fail on the master.
2016-02-03tests: more integration testsBaptiste Fontaine
Closes Homebrew/homebrew#48785. Signed-off-by: Baptiste Fontaine <batifon@yahoo.fr>
2016-02-03tests: remove unnecessary codeBaptiste Fontaine
2016-02-03tests: add audit regression test for Homebrew/homebrew#48744Baptiste Fontaine
Closes Homebrew/homebrew#48748. Signed-off-by: Baptiste Fontaine <batifon@yahoo.fr>
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-31tests: more integration testsBaptiste Fontaine
Closes Homebrew/homebrew#48674. Signed-off-by: Baptiste Fontaine <batifon@yahoo.fr>
2016-01-31test_cmd_audit: add resource placement testDominyk Tiller
2016-01-31tests: more integration testsBaptiste Fontaine
Closes Homebrew/homebrew#48635. Signed-off-by: Baptiste Fontaine <batifon@yahoo.fr>
2016-01-27tests: don't try to rm an unexisting fileBaptiste Fontaine
This line is necessary if the test fails. If it passes the file won't exist anymore and shouldn't be removed.
2016-01-27tests: fix a file leakBaptiste Fontaine
2016-01-26tests: validate developer bash commandsMartin Afanasjew
Also change the logic a bit to iterate over the individual files per directory, as having a directory without bash commands will otherwise pass a literal `*.sh` to `bash -n`, causing it to fail. Closes Homebrew/homebrew#48323. Signed-off-by: Martin Afanasjew <martin@afanasjew.de>
2016-01-25tests: add pkgshare audit testsBaptiste Fontaine
Closes Homebrew/homebrew#48435. Signed-off-by: Baptiste Fontaine <batifon@yahoo.fr>
2016-01-25testing_env: needs_compat utility addedBaptiste Fontaine
Closes Homebrew/homebrew#48302. Signed-off-by: Baptiste Fontaine <batifon@yahoo.fr>
2016-01-25tests: cmd/audit tests addedBaptiste Fontaine
2016-01-21tests: speed up integration test runsMartin Afanasjew
While running a command from the integration tests, invoke `.result` to trigger a save of the result set, but don't call `.format!` to avoid (re)generating the HTML output with every run. The final output will still be written once the main unit test run completes. This significantly speeds up the integration tests, that take about 1/3 less time to complete when not generating the intermediate output. Closes Homebrew/homebrew#48280. Signed-off-by: Martin Afanasjew <martin@afanasjew.de>
2016-01-21tests: use unique identifiers w/ integration testsMartin Afanasjew
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-21tests: remove useless filter for coverage testsMartin Afanasjew
The filter for `vendor/bundle/` is useless because this directory is located in `Homebrew/test/` and that one is already filtered. Moreover, SimpleCov already loads the `bundler_filter` profile (that installs basically the same filter) in its default configuration.
2016-01-20command: support .sh commandsBaptiste Fontaine
Closes Homebrew/homebrew#48192. Signed-off-by: Baptiste Fontaine <batifon@yahoo.fr>
2016-01-20commands: support .sh commandsBaptiste Fontaine
2016-01-20update test for Homebrew/homebrew-emacs#158Alex Dunn
Closes Homebrew/homebrew#48131. Signed-off-by: Alex Dunn <dunn.alex@gmail.com>
2016-01-20test: add metafiles to testballAlex Dunn
2016-01-20tests: ExternalPatch test addedBaptiste Fontaine
2016-01-20tests: exceptions tests addedBaptiste Fontaine
2016-01-20tests: tap-readme integration test addedBaptiste Fontaine
2016-01-20tests: cmd/edit & cmd/info tests addedBaptiste Fontaine
2016-01-20sh: flush stdout before executing the shellBaptiste Fontaine
Closes Homebrew/homebrew#48268. Signed-off-by: Baptiste Fontaine <batifon@yahoo.fr>
2016-01-20diagnostic: fix autoconf checkMartin Afanasjew
Xcode can only provide autotools if it is installed, thus check that first. Skipping this check will try to compare a `nil` Xcode version to 4.3, the first version of Xcode to not provide autotools. Fixes Homebrew/homebrew#48208. Closes Homebrew/homebrew#48278. Signed-off-by: Martin Afanasjew <martin@afanasjew.de>
2016-01-18Revert "Revert "dependency: don't recurse infinitely.""Mike McQuaid
This reverts commit fa43883dd1cd82f234b79c4a322339f03b9c098d. Closes Homebrew/homebrew#48187.
2016-01-17test_edit: HOMEBREW_EDITOR takes precedence over EDITORMisty De Meo
2016-01-17test_bash: tests to assert Bash syntax is valid.Mike McQuaid
Closes Homebrew/homebrew#47380.
2016-01-17Add new update-bash command for testing.Mike McQuaid
This will become the default updater at a later point in the future.
2016-01-16tests: bump the min. coverage to 60Baptiste Fontaine
2016-01-16tests: more integration testsBaptiste Fontaine
Closes Homebrew/homebrew#48124. Signed-off-by: Baptiste Fontaine <batifon@yahoo.fr>