From 2985c7bed515bd1664313d696f45fe50b4574640 Mon Sep 17 00:00:00 2001 From: Fred Hebert Date: Tue, 16 Dec 2014 14:43:38 +0000 Subject: Adding pkg deps tests and refactorings - Adding tests for package deps - Adding conflict/override warnings for package deps - Adding cycle detection for packages - Adding cycle detection for mixed packages+source - Fixing internal dependency format of package resources when converted to rebar_app_info - normalizing level-order prioritization to be based on lexicographical sort of app names rather than traversal order (which is undefined for package deps) - Fixing tests for source deps for deep cycle detection - Fixing bugs with source deps - Relaxed version format checks for test utils A lot of fixes are combined in there because I didn't want to commit non-passing code, and many bugs were found when adding the second batch of tests as part of the original effort. --- test/rebar_test_utils.erl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'test/rebar_test_utils.erl') diff --git a/test/rebar_test_utils.erl b/test/rebar_test_utils.erl index ed494a5..eb11280 100644 --- a/test/rebar_test_utils.erl +++ b/test/rebar_test_utils.erl @@ -113,7 +113,8 @@ check_results(AppDir, Expected) -> false -> error({app_not_found, Name}); {Name, App} -> - ?assertEqual(Vsn, rebar_app_info:original_vsn(App)) + ?assertEqual(iolist_to_binary(Vsn), + iolist_to_binary(rebar_app_info:original_vsn(App))) end end, Expected). -- cgit v1.1