Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
When using yaws as an app dependency for another application built with rebar, I noticed that testing that application with "rebar eunit" would fail while testing yaws. It was easy to work around with "rebar eunit skip_deps=true" but yaws really should pass its tests when tested via rebar. Change rebar.config to add ibrowse as a dependency. It's used only for testing, but rebar doesn't support test-only dependencies, plus it's filtered out during release generation anyway. Modify some of the test files to be able to find ibrowse include files regardless of whether they're built via make or via rebar. Also rename all non-eunit test functions ending in "_test" so they don't confuse eunit. Also had to move the embedded_yaws_id_dir test from eunit to t2 because it fails under "rebar eunit" when yaws is a dependency for another app. It fails because it calls into the yaws_api:embedded_start_conf function which tries to call application:load(yaws), but paths aren't properly set up to allow that to work under these testing circumstances. Note that not all tests currently run under rebar; building with make and then running "make test" results in many more tests being executed. Fixing this will come later.
- Loading branch information
Showing
11 changed files
with
109 additions
and
97 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -72,3 +72,4 @@ yaws_logs | |
rel/yaws | ||
dialyzer_warnings | ||
deps/* | ||
.eunit/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.