diff options
author | Fred Hebert <mononcqc@ferd.ca> | 2014-12-23 22:55:25 -0500 |
---|---|---|
committer | Fred Hebert <mononcqc@ferd.ca> | 2014-12-23 22:55:25 -0500 |
commit | 18e50b0fa314660b24f33518621f0da898f88362 (patch) | |
tree | b549adaea827ff6c454e480fdf54fefc184e3966 /test/rebar_compile_SUITE.erl | |
parent | cd6281043111ed9fd189dd1af1f9f8a756eb3093 (diff) | |
parent | c3a2725fc71c1c90af512499f8b277af0bb0f3cc (diff) |
Merge pull request #74 from rebar/add-compile-tests
Add release-structured compiling tests
Diffstat (limited to 'test/rebar_compile_SUITE.erl')
-rw-r--r-- | test/rebar_compile_SUITE.erl | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/test/rebar_compile_SUITE.erl b/test/rebar_compile_SUITE.erl index 03f9c1f..d67be77 100644 --- a/test/rebar_compile_SUITE.erl +++ b/test/rebar_compile_SUITE.erl @@ -5,7 +5,8 @@ end_per_suite/1, init_per_testcase/2, all/0, - build_basic_app/1]). + build_basic_app/1, + build_release_apps/1]). -include_lib("common_test/include/ct.hrl"). -include_lib("eunit/include/eunit.hrl"). @@ -24,7 +25,7 @@ init_per_testcase(_, Config) -> rebar_test_utils:init_rebar_state(Config). all() -> - [build_basic_app]. + [build_basic_app, build_release_apps]. build_basic_app(Config) -> AppDir = ?config(apps, Config), @@ -35,3 +36,17 @@ build_basic_app(Config) -> rebar_test_utils:run_and_check(Config, [], ["compile"], {ok, [{app, Name}]}). +build_release_apps(Config) -> + AppDir = ?config(apps, Config), + + Name1 = rebar_test_utils:create_random_name("app1_"), + Vsn1 = rebar_test_utils:create_random_vsn(), + rebar_test_utils:create_app(filename:join([AppDir,Name1]), Name1, Vsn1, [kernel, stdlib]), + Name2 = rebar_test_utils:create_random_name("app2_"), + Vsn2 = rebar_test_utils:create_random_vsn(), + rebar_test_utils:create_app(filename:join([AppDir,Name2]), Name2, Vsn2, [kernel, stdlib]), + + rebar_test_utils:run_and_check( + Config, [], ["compile"], + {ok, [{app, Name1}, {app, Name2}]} + ). |