Hello community, here is the log from the commit of package erlang-rebar for openSUSE:Factory checked in at 2018-09-07 15:41:03 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/erlang-rebar (Old) and /work/SRC/openSUSE:Factory/.erlang-rebar.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "erlang-rebar" Fri Sep 7 15:41:03 2018 rev:7 rq:633562 version:2.6.4+git20180201.b6d3094 Changes: -------- --- /work/SRC/openSUSE:Factory/erlang-rebar/erlang-rebar-testsuite.changes 2018-04-01 17:27:16.825882277 +0200 +++ /work/SRC/openSUSE:Factory/.erlang-rebar.new/erlang-rebar-testsuite.changes 2018-09-07 15:41:19.582412500 +0200 @@ -1,0 +2,26 @@ +Thu Aug 16 15:18:50 UTC 2018 - opensuse-packag...@opensuse.org + +- Update to version 2.6.4+git20180201.b6d3094: + * travis-ci: allow Dialyzer job to fail + * travis-ci: update otp versions + * travis-ci: enable 20.1 + * rebar_xref: ignore opaque type match Dialyzer warning + * rebar_cover: ignore opaque type match Dialyzer warning + * rebar_utils: fix Dialyzer warning + * Run Dialyzer on Travis-CI + * Log out success message with newlines + * travis-ci: otp 20.0.2 -> 20.0.4 + * Revert "Drop crypto app reliance" + * Remove profiler note + * inttest/*: do not export_all + * Fix ctsuite template + * Improve pseudo-unique ct_run node name + * Drop crypto app reliance + * rebar.config: access retest repo via https + * Fix Erlang 20 export_all warnings + * Fix #634 + * travis-ci: test with Erlang 20.0.2 + * Properly skip apps with a .app.src.script file + * Fix typo in eunit help. + +------------------------------------------------------------------- erlang-rebar.changes: same change Old: ---- rebar-2.6.4+git20160922.576e121.tar.bz2 New: ---- rebar-2.6.4+git20180201.b6d3094.tar.bz2 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ erlang-rebar-testsuite.spec ++++++ --- /var/tmp/diff_new_pack.fIZwtk/_old 2018-09-07 15:41:21.882410037 +0200 +++ /var/tmp/diff_new_pack.fIZwtk/_new 2018-09-07 15:41:21.886410032 +0200 @@ -19,7 +19,7 @@ Name: erlang-rebar-testsuite %define normal_build ("%{name}" == "erlang-rebar") %define testsuite_build ("%{name}" == "erlang-rebar-testsuite") -Version: 2.6.4+git20160922.576e121 +Version: 2.6.4+git20180201.b6d3094 Release: 0 %define mod_ver %(echo "%{version}" | cut -d "+" -f1) Summary: A sophisticated build-tool for Erlang projects that follows OTP principles ++++++ erlang-rebar.spec ++++++ --- /var/tmp/diff_new_pack.fIZwtk/_old 2018-09-07 15:41:21.910410007 +0200 +++ /var/tmp/diff_new_pack.fIZwtk/_new 2018-09-07 15:41:21.910410007 +0200 @@ -19,7 +19,7 @@ Name: erlang-rebar %define normal_build ("%{name}" == "erlang-rebar") %define testsuite_build ("%{name}" == "erlang-rebar-testsuite") -Version: 2.6.4+git20160922.576e121 +Version: 2.6.4+git20180201.b6d3094 Release: 0 %define mod_ver %(echo "%{version}" | cut -d "+" -f1) Summary: A sophisticated build-tool for Erlang projects that follows OTP principles ++++++ _servicedata ++++++ --- /var/tmp/diff_new_pack.fIZwtk/_old 2018-09-07 15:41:21.958409955 +0200 +++ /var/tmp/diff_new_pack.fIZwtk/_new 2018-09-07 15:41:21.958409955 +0200 @@ -1,4 +1,4 @@ <servicedata> <service name="tar_scm"> <param name="url">git://github.com/rebar/rebar.git</param> - <param name="changesrevision">a8d17f9c15cb08402dd8638b4a1d174ee9b68892</param></service></servicedata> \ No newline at end of file + <param name="changesrevision">8a2aca081780338330cd2145ab6cb86acde7c783</param></service></servicedata> \ No newline at end of file ++++++ rebar-2.6.4+git20160922.576e121.tar.bz2 -> rebar-2.6.4+git20180201.b6d3094.tar.bz2 ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/rebar-2.6.4+git20160922.576e121/.travis.yml new/rebar-2.6.4+git20180201.b6d3094/.travis.yml --- old/rebar-2.6.4+git20160922.576e121/.travis.yml 2016-09-22 13:01:52.000000000 +0200 +++ new/rebar-2.6.4+git20180201.b6d3094/.travis.yml 2018-02-01 10:34:04.000000000 +0100 @@ -11,8 +11,27 @@ - 17.0 - 18.0 - 19.1 + - 20.0.5 + - 20.1.5 +env: MAKE_TARGET=ci before_script: - hostname -f - cc -v - ld -v -script: "make travis" + - find .rebar +after_script: + - find .rebar +matrix: + include: + - otp_release: 20.1.5 + env: MAKE_TARGET=ci-dialyze + allow_failures: + - otp_release: 20.1.5 + env: MAKE_TARGET=ci-dialyze +script: make $MAKE_TARGET +cache: + directories: + - .rebar +before_cache: + - rm -fv .rebar/erlcinfo + - rm -fv $HOME/.cache/.rebar/erlcinfo diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/rebar-2.6.4+git20160922.576e121/Makefile new/rebar-2.6.4+git20180201.b6d3094/Makefile --- old/rebar-2.6.4+git20160922.576e121/Makefile 2016-09-22 13:01:52.000000000 +0200 +++ new/rebar-2.6.4+git20180201.b6d3094/Makefile 2018-02-01 10:34:04.000000000 +0100 @@ -22,11 +22,11 @@ xref: @./rebar xref -build_plt: - @./rebar build-plt +maybe_build_plt: + @./rebar -vv check-plt || ./rebar -vv build-plt -dialyzer: - @./rebar dialyze +dialyze: maybe_build_plt + @./rebar -vv dialyze binary: VSN = $(shell ./rebar -V) binary: clean all @@ -45,4 +45,6 @@ test_inttest: all deps @$(RETEST) -l $(LOG_LEVEL) $(RT_TARGETS) -travis: clean debug xref clean all deps test +ci: clean debug xref clean all deps test + +ci-dialyze: clean debug dialyze diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/rebar-2.6.4+git20160922.576e121/THANKS new/rebar-2.6.4+git20180201.b6d3094/THANKS --- old/rebar-2.6.4+git20160922.576e121/THANKS 2016-09-22 13:01:52.000000000 +0200 +++ new/rebar-2.6.4+git20180201.b6d3094/THANKS 2018-02-01 10:34:04.000000000 +0100 @@ -150,3 +150,4 @@ Yury Gargay Frank Hunleth Matwey Kornilov +Julius Andrikonis diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/rebar-2.6.4+git20160922.576e121/inttest/app_src/app_src.erl new/rebar-2.6.4+git20180201.b6d3094/inttest/app_src/app_src.erl --- old/rebar-2.6.4+git20160922.576e121/inttest/app_src/app_src.erl 2016-09-22 13:01:52.000000000 +0200 +++ new/rebar-2.6.4+git20180201.b6d3094/inttest/app_src/app_src.erl 2018-02-01 10:34:04.000000000 +0100 @@ -1,6 +1,6 @@ -module(app_src). --compile(export_all). +-export([test/0]). test() -> ok. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/rebar-2.6.4+git20160922.576e121/inttest/app_src/app_src_rt.erl new/rebar-2.6.4+git20180201.b6d3094/inttest/app_src/app_src_rt.erl --- old/rebar-2.6.4+git20160922.576e121/inttest/app_src/app_src_rt.erl 2016-09-22 13:01:52.000000000 +0200 +++ new/rebar-2.6.4+git20180201.b6d3094/inttest/app_src/app_src_rt.erl 2018-02-01 10:34:04.000000000 +0100 @@ -26,7 +26,7 @@ %% ------------------------------------------------------------------- -module(app_src_rt). --compile(export_all). +-export([setup/1, files/0, run/1]). -include_lib("eunit/include/eunit.hrl"). diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/rebar-2.6.4+git20160922.576e121/inttest/app_src_script/app_src_script.erl new/rebar-2.6.4+git20180201.b6d3094/inttest/app_src_script/app_src_script.erl --- old/rebar-2.6.4+git20160922.576e121/inttest/app_src_script/app_src_script.erl 2016-09-22 13:01:52.000000000 +0200 +++ new/rebar-2.6.4+git20180201.b6d3094/inttest/app_src_script/app_src_script.erl 2018-02-01 10:34:04.000000000 +0100 @@ -1,6 +1,6 @@ -module(app_src_script). --compile(export_all). +-export([test/0]). test() -> ok. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/rebar-2.6.4+git20160922.576e121/inttest/app_src_script/app_src_script_rt.erl new/rebar-2.6.4+git20180201.b6d3094/inttest/app_src_script/app_src_script_rt.erl --- old/rebar-2.6.4+git20160922.576e121/inttest/app_src_script/app_src_script_rt.erl 2016-09-22 13:01:52.000000000 +0200 +++ new/rebar-2.6.4+git20180201.b6d3094/inttest/app_src_script/app_src_script_rt.erl 2018-02-01 10:34:04.000000000 +0100 @@ -26,7 +26,7 @@ %% ------------------------------------------------------------------- -module(app_src_script_rt). --compile(export_all). +-export([setup/1, files/0, run/1]). -include_lib("eunit/include/eunit.hrl"). diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/rebar-2.6.4+git20160922.576e121/inttest/app_src_script_2/app_src_script_2.erl new/rebar-2.6.4+git20180201.b6d3094/inttest/app_src_script_2/app_src_script_2.erl --- old/rebar-2.6.4+git20160922.576e121/inttest/app_src_script_2/app_src_script_2.erl 2016-09-22 13:01:52.000000000 +0200 +++ new/rebar-2.6.4+git20180201.b6d3094/inttest/app_src_script_2/app_src_script_2.erl 2018-02-01 10:34:04.000000000 +0100 @@ -1,6 +1,6 @@ -module(app_src_script_2). --compile(export_all). +-export([test/0]). test() -> ok. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/rebar-2.6.4+git20160922.576e121/inttest/app_src_script_2/app_src_script_2_rt.erl new/rebar-2.6.4+git20180201.b6d3094/inttest/app_src_script_2/app_src_script_2_rt.erl --- old/rebar-2.6.4+git20160922.576e121/inttest/app_src_script_2/app_src_script_2_rt.erl 2016-09-22 13:01:52.000000000 +0200 +++ new/rebar-2.6.4+git20180201.b6d3094/inttest/app_src_script_2/app_src_script_2_rt.erl 2018-02-01 10:34:04.000000000 +0100 @@ -26,7 +26,7 @@ %% ------------------------------------------------------------------- -module(app_src_script_2_rt). --compile(export_all). +-export([setup/1, files/0, run/1]). -include_lib("eunit/include/eunit.hrl"). diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/rebar-2.6.4+git20160922.576e121/inttest/appup_src/appup_src_rt.erl new/rebar-2.6.4+git20180201.b6d3094/inttest/appup_src/appup_src_rt.erl --- old/rebar-2.6.4+git20160922.576e121/inttest/appup_src/appup_src_rt.erl 2016-09-22 13:01:52.000000000 +0200 +++ new/rebar-2.6.4+git20180201.b6d3094/inttest/appup_src/appup_src_rt.erl 2018-02-01 10:34:04.000000000 +0100 @@ -26,7 +26,7 @@ %% ------------------------------------------------------------------- -module(appup_src_rt). --compile(export_all). +-export([setup/1, files/0, run/1]). -include_lib("eunit/include/eunit.hrl"). diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/rebar-2.6.4+git20160922.576e121/inttest/appup_src/src/appup_src.erl new/rebar-2.6.4+git20180201.b6d3094/inttest/appup_src/src/appup_src.erl --- old/rebar-2.6.4+git20160922.576e121/inttest/appup_src/src/appup_src.erl 2016-09-22 13:01:52.000000000 +0200 +++ new/rebar-2.6.4+git20180201.b6d3094/inttest/appup_src/src/appup_src.erl 2018-02-01 10:34:04.000000000 +0100 @@ -1,6 +1,6 @@ -module(appup_src). --compile(export_all). +-export([test/0]). test() -> ok. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/rebar-2.6.4+git20160922.576e121/inttest/appup_src_2/appup_src_2_rt.erl new/rebar-2.6.4+git20180201.b6d3094/inttest/appup_src_2/appup_src_2_rt.erl --- old/rebar-2.6.4+git20160922.576e121/inttest/appup_src_2/appup_src_2_rt.erl 2016-09-22 13:01:52.000000000 +0200 +++ new/rebar-2.6.4+git20180201.b6d3094/inttest/appup_src_2/appup_src_2_rt.erl 2018-02-01 10:34:04.000000000 +0100 @@ -26,7 +26,7 @@ %% ------------------------------------------------------------------- -module(appup_src_2_rt). --compile(export_all). +-export([setup/1, files/0, run/1]). -include_lib("eunit/include/eunit.hrl"). diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/rebar-2.6.4+git20160922.576e121/inttest/appup_src_2/appup_src_rt_2.erl new/rebar-2.6.4+git20180201.b6d3094/inttest/appup_src_2/appup_src_rt_2.erl --- old/rebar-2.6.4+git20160922.576e121/inttest/appup_src_2/appup_src_rt_2.erl 2016-09-22 13:01:52.000000000 +0200 +++ new/rebar-2.6.4+git20180201.b6d3094/inttest/appup_src_2/appup_src_rt_2.erl 2018-02-01 10:34:04.000000000 +0100 @@ -26,7 +26,7 @@ %% ------------------------------------------------------------------- -module(appup_src_rt_2). --compile(export_all). +-export([setup/1, files/0, run/1]). -include_lib("eunit/include/eunit.hrl"). diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/rebar-2.6.4+git20160922.576e121/inttest/appup_src_2/src/appup_src.erl new/rebar-2.6.4+git20180201.b6d3094/inttest/appup_src_2/src/appup_src.erl --- old/rebar-2.6.4+git20160922.576e121/inttest/appup_src_2/src/appup_src.erl 2016-09-22 13:01:52.000000000 +0200 +++ new/rebar-2.6.4+git20180201.b6d3094/inttest/appup_src_2/src/appup_src.erl 2018-02-01 10:34:04.000000000 +0100 @@ -1,6 +1,6 @@ -module(appup_src). --compile(export_all). +-export([test/0]). test() -> ok. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/rebar-2.6.4+git20160922.576e121/inttest/appup_src_script/appup_src_script_rt.erl new/rebar-2.6.4+git20180201.b6d3094/inttest/appup_src_script/appup_src_script_rt.erl --- old/rebar-2.6.4+git20160922.576e121/inttest/appup_src_script/appup_src_script_rt.erl 2016-09-22 13:01:52.000000000 +0200 +++ new/rebar-2.6.4+git20180201.b6d3094/inttest/appup_src_script/appup_src_script_rt.erl 2018-02-01 10:34:04.000000000 +0100 @@ -26,7 +26,7 @@ %% ------------------------------------------------------------------- -module(appup_src_script_rt). --compile(export_all). +-export([setup/1, files/0, run/1]). -include_lib("eunit/include/eunit.hrl"). diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/rebar-2.6.4+git20160922.576e121/inttest/appup_src_script/src/appup_src.erl new/rebar-2.6.4+git20180201.b6d3094/inttest/appup_src_script/src/appup_src.erl --- old/rebar-2.6.4+git20160922.576e121/inttest/appup_src_script/src/appup_src.erl 2016-09-22 13:01:52.000000000 +0200 +++ new/rebar-2.6.4+git20180201.b6d3094/inttest/appup_src_script/src/appup_src.erl 2018-02-01 10:34:04.000000000 +0100 @@ -1,6 +1,6 @@ -module(appup_src). --compile(export_all). +-export([test/0]). test() -> ok. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/rebar-2.6.4+git20160922.576e121/inttest/bug_5_rt.erl new/rebar-2.6.4+git20180201.b6d3094/inttest/bug_5_rt.erl --- old/rebar-2.6.4+git20160922.576e121/inttest/bug_5_rt.erl 2016-09-22 13:01:52.000000000 +0200 +++ new/rebar-2.6.4+git20180201.b6d3094/inttest/bug_5_rt.erl 2018-02-01 10:34:04.000000000 +0100 @@ -2,7 +2,7 @@ %% ex: ts=4 sw=4 et -module(bug_5_rt). --compile(export_all). +-export([setup/1, files/0, run/1]). setup([Target]) -> retest_utils:load_module(filename:join(Target, "inttest_utils.erl")), diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/rebar-2.6.4+git20160922.576e121/inttest/ct1/ct1_rt.erl new/rebar-2.6.4+git20180201.b6d3094/inttest/ct1/ct1_rt.erl --- old/rebar-2.6.4+git20160922.576e121/inttest/ct1/ct1_rt.erl 2016-09-22 13:01:52.000000000 +0200 +++ new/rebar-2.6.4+git20180201.b6d3094/inttest/ct1/ct1_rt.erl 2018-02-01 10:34:04.000000000 +0100 @@ -2,7 +2,7 @@ %% ex: ts=4 sw=4 et -module(ct1_rt). --compile(export_all). +-export([setup/1, files/0, run/1]). setup([Target]) -> retest_utils:load_module(filename:join(Target, "inttest_utils.erl")), diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/rebar-2.6.4+git20160922.576e121/inttest/ct1/test_SUITE.erl new/rebar-2.6.4+git20180201.b6d3094/inttest/ct1/test_SUITE.erl --- old/rebar-2.6.4+git20160922.576e121/inttest/ct1/test_SUITE.erl 2016-09-22 13:01:52.000000000 +0200 +++ new/rebar-2.6.4+git20180201.b6d3094/inttest/ct1/test_SUITE.erl 2018-02-01 10:34:04.000000000 +0100 @@ -1,6 +1,6 @@ -module(test_SUITE). --compile(export_all). +-export([all/0, simple_test/1, app_config_file_test/1]). -include_lib("ct.hrl"). diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/rebar-2.6.4+git20160922.576e121/inttest/ct2/ct2_rt.erl new/rebar-2.6.4+git20180201.b6d3094/inttest/ct2/ct2_rt.erl --- old/rebar-2.6.4+git20160922.576e121/inttest/ct2/ct2_rt.erl 2016-09-22 13:01:52.000000000 +0200 +++ new/rebar-2.6.4+git20180201.b6d3094/inttest/ct2/ct2_rt.erl 2018-02-01 10:34:04.000000000 +0100 @@ -2,7 +2,7 @@ %% ex: ts=4 sw=4 et -module(ct2_rt). --compile(export_all). +-export([setup/1, files/0, run/1]). setup([Target]) -> retest_utils:load_module(filename:join(Target, "inttest_utils.erl")), diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/rebar-2.6.4+git20160922.576e121/inttest/ct2/foo_SUITE.erl new/rebar-2.6.4+git20180201.b6d3094/inttest/ct2/foo_SUITE.erl --- old/rebar-2.6.4+git20160922.576e121/inttest/ct2/foo_SUITE.erl 2016-09-22 13:01:52.000000000 +0200 +++ new/rebar-2.6.4+git20180201.b6d3094/inttest/ct2/foo_SUITE.erl 2018-02-01 10:34:04.000000000 +0100 @@ -2,7 +2,7 @@ -include_lib("common_test/include/ct.hrl"). --compile(export_all). +-export([all/0, foo/1]). all() -> [foo]. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/rebar-2.6.4+git20160922.576e121/inttest/ct3/ct3_rt.erl new/rebar-2.6.4+git20180201.b6d3094/inttest/ct3/ct3_rt.erl --- old/rebar-2.6.4+git20160922.576e121/inttest/ct3/ct3_rt.erl 2016-09-22 13:01:52.000000000 +0200 +++ new/rebar-2.6.4+git20180201.b6d3094/inttest/ct3/ct3_rt.erl 2018-02-01 10:34:04.000000000 +0100 @@ -26,7 +26,7 @@ %% ------------------------------------------------------------------- -module(ct3_rt). --compile(export_all). +-export([setup/1, files/0, run/1]). setup([Target]) -> retest_utils:load_module(filename:join(Target, "inttest_utils.erl")), diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/rebar-2.6.4+git20160922.576e121/inttest/ct3/test_SUITE.erl new/rebar-2.6.4+git20180201.b6d3094/inttest/ct3/test_SUITE.erl --- old/rebar-2.6.4+git20160922.576e121/inttest/ct3/test_SUITE.erl 2016-09-22 13:01:52.000000000 +0200 +++ new/rebar-2.6.4+git20180201.b6d3094/inttest/ct3/test_SUITE.erl 2018-02-01 10:34:04.000000000 +0100 @@ -26,7 +26,7 @@ %% ------------------------------------------------------------------- -module(test_SUITE). --compile(export_all). +-export([all/0, simple_test/1, app_config_file_test/1, check_path/1]). -include_lib("ct.hrl"). diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/rebar-2.6.4+git20160922.576e121/inttest/ct4/ct4_rt.erl new/rebar-2.6.4+git20180201.b6d3094/inttest/ct4/ct4_rt.erl --- old/rebar-2.6.4+git20160922.576e121/inttest/ct4/ct4_rt.erl 2016-09-22 13:01:52.000000000 +0200 +++ new/rebar-2.6.4+git20180201.b6d3094/inttest/ct4/ct4_rt.erl 2018-02-01 10:34:04.000000000 +0100 @@ -2,7 +2,7 @@ %% ex: ts=4 sw=4 et -module(ct4_rt). --compile(export_all). +-export([setup/1, files/0, run/1]). setup([Target]) -> retest_utils:load_module(filename:join(Target, "inttest_utils.erl")), diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/rebar-2.6.4+git20160922.576e121/inttest/ct4/foo_SUITE.erl new/rebar-2.6.4+git20180201.b6d3094/inttest/ct4/foo_SUITE.erl --- old/rebar-2.6.4+git20160922.576e121/inttest/ct4/foo_SUITE.erl 2016-09-22 13:01:52.000000000 +0200 +++ new/rebar-2.6.4+git20180201.b6d3094/inttest/ct4/foo_SUITE.erl 2018-02-01 10:34:04.000000000 +0100 @@ -2,7 +2,7 @@ -include_lib("common_test/include/ct.hrl"). --compile(export_all). +-export([all/0, simple/1]). all() -> [simple]. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/rebar-2.6.4+git20160922.576e121/inttest/ct_cover/ct_cover_rt.erl new/rebar-2.6.4+git20180201.b6d3094/inttest/ct_cover/ct_cover_rt.erl --- old/rebar-2.6.4+git20160922.576e121/inttest/ct_cover/ct_cover_rt.erl 2016-09-22 13:01:52.000000000 +0200 +++ new/rebar-2.6.4+git20180201.b6d3094/inttest/ct_cover/ct_cover_rt.erl 2018-02-01 10:34:04.000000000 +0100 @@ -2,7 +2,7 @@ %% ex: ts=4 sw=4 et -module(ct_cover_rt). --compile(export_all). +-export([setup/1, files/0, run/1]). setup([Target]) -> retest_utils:load_module(filename:join(Target, "inttest_utils.erl")), diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/rebar-2.6.4+git20160922.576e121/inttest/ct_cover/mock/dummy/itest/test_SUITE.erl new/rebar-2.6.4+git20180201.b6d3094/inttest/ct_cover/mock/dummy/itest/test_SUITE.erl --- old/rebar-2.6.4+git20160922.576e121/inttest/ct_cover/mock/dummy/itest/test_SUITE.erl 2016-09-22 13:01:52.000000000 +0200 +++ new/rebar-2.6.4+git20180201.b6d3094/inttest/ct_cover/mock/dummy/itest/test_SUITE.erl 2018-02-01 10:34:04.000000000 +0100 @@ -1,6 +1,6 @@ -module(test_SUITE). --compile(export_all). +-export([all/0, simple_test/1, app_config_file_test/1]). -include_lib("ct.hrl"). diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/rebar-2.6.4+git20160922.576e121/inttest/ct_cover/test_SUITE.erl new/rebar-2.6.4+git20180201.b6d3094/inttest/ct_cover/test_SUITE.erl --- old/rebar-2.6.4+git20160922.576e121/inttest/ct_cover/test_SUITE.erl 2016-09-22 13:01:52.000000000 +0200 +++ new/rebar-2.6.4+git20180201.b6d3094/inttest/ct_cover/test_SUITE.erl 2018-02-01 10:34:04.000000000 +0100 @@ -1,6 +1,6 @@ -module(test_SUITE). --compile(export_all). +-export([all/0, simple_test/1, app_config_file_test/1]). -include_lib("ct.hrl"). diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/rebar-2.6.4+git20160922.576e121/inttest/ct_make_fails/ct_make_fails_rt.erl new/rebar-2.6.4+git20180201.b6d3094/inttest/ct_make_fails/ct_make_fails_rt.erl --- old/rebar-2.6.4+git20160922.576e121/inttest/ct_make_fails/ct_make_fails_rt.erl 2016-09-22 13:01:52.000000000 +0200 +++ new/rebar-2.6.4+git20180201.b6d3094/inttest/ct_make_fails/ct_make_fails_rt.erl 2018-02-01 10:34:04.000000000 +0100 @@ -2,7 +2,7 @@ %% ex: ts=4 sw=4 et -module(ct_make_fails_rt). --compile(export_all). +-export([files/0, run/1]). files() -> diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/rebar-2.6.4+git20160922.576e121/inttest/ct_make_fails/test_SUITE.erl new/rebar-2.6.4+git20180201.b6d3094/inttest/ct_make_fails/test_SUITE.erl --- old/rebar-2.6.4+git20160922.576e121/inttest/ct_make_fails/test_SUITE.erl 2016-09-22 13:01:52.000000000 +0200 +++ new/rebar-2.6.4+git20180201.b6d3094/inttest/ct_make_fails/test_SUITE.erl 2018-02-01 10:34:04.000000000 +0100 @@ -1,6 +1,6 @@ -module(test_SUITE). --compile(export_all). +-export([all/0, simple_test/1, app_config_file_test/1]). -include_lib("ct.hrl"). diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/rebar-2.6.4+git20160922.576e121/inttest/ct_test_fails/ct_test_fails_rt.erl new/rebar-2.6.4+git20180201.b6d3094/inttest/ct_test_fails/ct_test_fails_rt.erl --- old/rebar-2.6.4+git20160922.576e121/inttest/ct_test_fails/ct_test_fails_rt.erl 2016-09-22 13:01:52.000000000 +0200 +++ new/rebar-2.6.4+git20180201.b6d3094/inttest/ct_test_fails/ct_test_fails_rt.erl 2018-02-01 10:34:04.000000000 +0100 @@ -2,8 +2,7 @@ %% ex: ts=4 sw=4 et -module(ct_test_fails_rt). --compile(export_all). - +-export([files/0, run/1]). files() -> [{create, "ebin/a1.app", app(a1)}, @@ -14,11 +13,11 @@ {copy, "test_SUITE.erl", "itest/test_SUITE.erl"}, {copy, "test2_SUITE.erl", "itest/test2_SUITE.erl"}]. -run(Dir) -> +run(_Dir) -> ok = case catch retest:sh("./rebar compile ct -v 3") of - {error, {stopped, _}} -> ok; - _ -> expected_to_fail - end. + {error, {stopped, _}} -> ok; + _ -> expected_to_fail + end. %% %% Generate the contents of a simple .app file diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/rebar-2.6.4+git20160922.576e121/inttest/ct_test_fails/test2_SUITE.erl new/rebar-2.6.4+git20180201.b6d3094/inttest/ct_test_fails/test2_SUITE.erl --- old/rebar-2.6.4+git20160922.576e121/inttest/ct_test_fails/test2_SUITE.erl 2016-09-22 13:01:52.000000000 +0200 +++ new/rebar-2.6.4+git20180201.b6d3094/inttest/ct_test_fails/test2_SUITE.erl 2018-02-01 10:34:04.000000000 +0100 @@ -1,6 +1,6 @@ -module(test2_SUITE). --compile(export_all). +-export([all/0, simple_test/1]). all() -> [simple_test]. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/rebar-2.6.4+git20160922.576e121/inttest/ct_test_fails/test_SUITE.erl new/rebar-2.6.4+git20180201.b6d3094/inttest/ct_test_fails/test_SUITE.erl --- old/rebar-2.6.4+git20160922.576e121/inttest/ct_test_fails/test_SUITE.erl 2016-09-22 13:01:52.000000000 +0200 +++ new/rebar-2.6.4+git20180201.b6d3094/inttest/ct_test_fails/test_SUITE.erl 2018-02-01 10:34:04.000000000 +0100 @@ -1,6 +1,6 @@ -module(test_SUITE). --compile(export_all). +-export([all/0, simple_test/1]). all() -> [simple_test]. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/rebar-2.6.4+git20160922.576e121/inttest/depplugins/depplugins_rt.erl new/rebar-2.6.4+git20180201.b6d3094/inttest/depplugins/depplugins_rt.erl --- old/rebar-2.6.4+git20160922.576e121/inttest/depplugins/depplugins_rt.erl 2016-09-22 13:01:52.000000000 +0200 +++ new/rebar-2.6.4+git20180201.b6d3094/inttest/depplugins/depplugins_rt.erl 2018-02-01 10:34:04.000000000 +0100 @@ -17,7 +17,7 @@ %%% </ol> -module(depplugins_rt). --compile(export_all). +-export([setup/1, files/0, run/1]). -include_lib("eunit/include/eunit.hrl"). diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/rebar-2.6.4+git20160922.576e121/inttest/inttest_utils.erl new/rebar-2.6.4+git20180201.b6d3094/inttest/inttest_utils.erl --- old/rebar-2.6.4+git20160922.576e121/inttest/inttest_utils.erl 2016-09-22 13:01:52.000000000 +0200 +++ new/rebar-2.6.4+git20180201.b6d3094/inttest/inttest_utils.erl 2018-02-01 10:34:04.000000000 +0100 @@ -2,7 +2,10 @@ %% ex: ts=4 sw=4 et -module(inttest_utils). --compile(export_all). +-export([ rebar_setup/1 + , rebar_setup/2 + , rebar_setup/0 + ]). rebar_setup({win32, nt}, Dir) -> [{copy, filename:join(Dir, "rebar.cmd"), "rebar.cmd"}]; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/rebar-2.6.4+git20160922.576e121/inttest/neotoma1/neotoma_src_rt.erl new/rebar-2.6.4+git20180201.b6d3094/inttest/neotoma1/neotoma_src_rt.erl --- old/rebar-2.6.4+git20160922.576e121/inttest/neotoma1/neotoma_src_rt.erl 2016-09-22 13:01:52.000000000 +0200 +++ new/rebar-2.6.4+git20180201.b6d3094/inttest/neotoma1/neotoma_src_rt.erl 2018-02-01 10:34:04.000000000 +0100 @@ -26,7 +26,7 @@ %% ------------------------------------------------------------------- -module(neotoma_src_rt). --compile(export_all). +-export([files/0, run/1]). -include_lib("eunit/include/eunit.hrl"). -include_lib("deps/retest/include/retest.hrl"). diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/rebar-2.6.4+git20160922.576e121/inttest/rebar3_deps1/a.erl new/rebar-2.6.4+git20180201.b6d3094/inttest/rebar3_deps1/a.erl --- old/rebar-2.6.4+git20160922.576e121/inttest/rebar3_deps1/a.erl 2016-09-22 13:01:52.000000000 +0200 +++ new/rebar-2.6.4+git20180201.b6d3094/inttest/rebar3_deps1/a.erl 2018-02-01 10:34:04.000000000 +0100 @@ -1,6 +1,6 @@ -module(a). --compile(export_all). +-export([hello/0]). -include_lib("b/include/b.hrl"). diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/rebar-2.6.4+git20160922.576e121/inttest/rebar3_deps1/rebar3_deps1_rt.erl new/rebar-2.6.4+git20180201.b6d3094/inttest/rebar3_deps1/rebar3_deps1_rt.erl --- old/rebar-2.6.4+git20160922.576e121/inttest/rebar3_deps1/rebar3_deps1_rt.erl 2016-09-22 13:01:52.000000000 +0200 +++ new/rebar-2.6.4+git20180201.b6d3094/inttest/rebar3_deps1/rebar3_deps1_rt.erl 2018-02-01 10:34:04.000000000 +0100 @@ -2,7 +2,7 @@ %% ex: ts=4 sw=4 et -module(rebar3_deps1_rt). --compile(export_all). +-export([setup/1, files/0, run/1]). setup([Target]) -> retest_utils:load_module(filename:join(Target, "inttest_utils.erl")), diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/rebar-2.6.4+git20160922.576e121/inttest/rgen1/rgen1_rt.erl new/rebar-2.6.4+git20180201.b6d3094/inttest/rgen1/rgen1_rt.erl --- old/rebar-2.6.4+git20160922.576e121/inttest/rgen1/rgen1_rt.erl 2016-09-22 13:01:52.000000000 +0200 +++ new/rebar-2.6.4+git20180201.b6d3094/inttest/rgen1/rgen1_rt.erl 2018-02-01 10:34:04.000000000 +0100 @@ -2,7 +2,7 @@ %% ex: ts=4 sw=4 et -module(rgen1_rt). --compile(export_all). +-export([setup/1, files/0, run/1]). %% Exercise release generation w/ templating diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/rebar-2.6.4+git20160922.576e121/inttest/t_custom_config/custom_config.erl new/rebar-2.6.4+git20180201.b6d3094/inttest/t_custom_config/custom_config.erl --- old/rebar-2.6.4+git20160922.576e121/inttest/t_custom_config/custom_config.erl 2016-09-22 13:01:52.000000000 +0200 +++ new/rebar-2.6.4+git20180201.b6d3094/inttest/t_custom_config/custom_config.erl 2018-02-01 10:34:04.000000000 +0100 @@ -1,6 +1,6 @@ -module(custom_config). --compile(export_all). +-export([test/0]). test() -> ok. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/rebar-2.6.4+git20160922.576e121/inttest/t_custom_config/t_custom_config_rt.erl new/rebar-2.6.4+git20180201.b6d3094/inttest/t_custom_config/t_custom_config_rt.erl --- old/rebar-2.6.4+git20160922.576e121/inttest/t_custom_config/t_custom_config_rt.erl 2016-09-22 13:01:52.000000000 +0200 +++ new/rebar-2.6.4+git20180201.b6d3094/inttest/t_custom_config/t_custom_config_rt.erl 2018-02-01 10:34:04.000000000 +0100 @@ -2,7 +2,7 @@ %% ex: ts=4 sw=4 et -module(t_custom_config_rt). --compile(export_all). +-export([setup/1, files/0, run/1]). -include_lib("eunit/include/eunit.hrl"). diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/rebar-2.6.4+git20160922.576e121/inttest/tdeps1/a.erl new/rebar-2.6.4+git20180201.b6d3094/inttest/tdeps1/a.erl --- old/rebar-2.6.4+git20160922.576e121/inttest/tdeps1/a.erl 2016-09-22 13:01:52.000000000 +0200 +++ new/rebar-2.6.4+git20180201.b6d3094/inttest/tdeps1/a.erl 2018-02-01 10:34:04.000000000 +0100 @@ -1,6 +1,6 @@ -module(a). --compile(export_all). +-export([hello/0]). -include_lib("b/include/b.hrl"). diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/rebar-2.6.4+git20160922.576e121/inttest/tdeps1/tdeps1_rt.erl new/rebar-2.6.4+git20180201.b6d3094/inttest/tdeps1/tdeps1_rt.erl --- old/rebar-2.6.4+git20160922.576e121/inttest/tdeps1/tdeps1_rt.erl 2016-09-22 13:01:52.000000000 +0200 +++ new/rebar-2.6.4+git20180201.b6d3094/inttest/tdeps1/tdeps1_rt.erl 2018-02-01 10:34:04.000000000 +0100 @@ -2,7 +2,7 @@ %% ex: ts=4 sw=4 et -module(tdeps1_rt). --compile(export_all). +-export([setup/1, files/0, run/1]). setup([Target]) -> retest_utils:load_module(filename:join(Target, "inttest_utils.erl")), diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/rebar-2.6.4+git20160922.576e121/inttest/tdeps2/tdeps2_rt.erl new/rebar-2.6.4+git20180201.b6d3094/inttest/tdeps2/tdeps2_rt.erl --- old/rebar-2.6.4+git20160922.576e121/inttest/tdeps2/tdeps2_rt.erl 2016-09-22 13:01:52.000000000 +0200 +++ new/rebar-2.6.4+git20180201.b6d3094/inttest/tdeps2/tdeps2_rt.erl 2018-02-01 10:34:04.000000000 +0100 @@ -2,7 +2,7 @@ %% ex: ts=4 sw=4 et -module(tdeps2_rt). --compile(export_all). +-export([setup/1, files/0, run/1]). setup([Target]) -> retest_utils:load_module(filename:join(Target, "inttest_utils.erl")), diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/rebar-2.6.4+git20160922.576e121/inttest/tdeps3/tdeps3_rt.erl new/rebar-2.6.4+git20180201.b6d3094/inttest/tdeps3/tdeps3_rt.erl --- old/rebar-2.6.4+git20160922.576e121/inttest/tdeps3/tdeps3_rt.erl 2016-09-22 13:01:52.000000000 +0200 +++ new/rebar-2.6.4+git20180201.b6d3094/inttest/tdeps3/tdeps3_rt.erl 2018-02-01 10:34:04.000000000 +0100 @@ -2,7 +2,7 @@ %% ex: ts=4 sw=4 et -module(tdeps3_rt). --compile(export_all). +-export([setup/1, files/0, run/1]). setup([Target]) -> retest_utils:load_module(filename:join(Target, "inttest_utils.erl")), diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/rebar-2.6.4+git20160922.576e121/inttest/tdeps_prefer/tdeps_prefer_rt.erl new/rebar-2.6.4+git20180201.b6d3094/inttest/tdeps_prefer/tdeps_prefer_rt.erl --- old/rebar-2.6.4+git20160922.576e121/inttest/tdeps_prefer/tdeps_prefer_rt.erl 2016-09-22 13:01:52.000000000 +0200 +++ new/rebar-2.6.4+git20180201.b6d3094/inttest/tdeps_prefer/tdeps_prefer_rt.erl 2018-02-01 10:34:04.000000000 +0100 @@ -2,7 +2,7 @@ %% ex: ts=4 sw=4 et -module(tdeps_prefer_rt). --compile(export_all). +-export([setup/1, files/0, run/1]). setup([Target]) -> retest_utils:load_module(filename:join(Target, "inttest_utils.erl")), diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/rebar-2.6.4+git20160922.576e121/inttest/tdeps_update/tdeps_update_rt.erl new/rebar-2.6.4+git20180201.b6d3094/inttest/tdeps_update/tdeps_update_rt.erl --- old/rebar-2.6.4+git20160922.576e121/inttest/tdeps_update/tdeps_update_rt.erl 2016-09-22 13:01:52.000000000 +0200 +++ new/rebar-2.6.4+git20180201.b6d3094/inttest/tdeps_update/tdeps_update_rt.erl 2018-02-01 10:34:04.000000000 +0100 @@ -2,7 +2,7 @@ %% ex: ts=4 sw=4 et -module(tdeps_update_rt). --compile(export_all). +-export([setup/1, files/0, run/1]). setup([Target]) -> retest_utils:load_module(filename:join(Target, "inttest_utils.erl")), diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/rebar-2.6.4+git20160922.576e121/inttest/thooks/fish.erl new/rebar-2.6.4+git20180201.b6d3094/inttest/thooks/fish.erl --- old/rebar-2.6.4+git20160922.576e121/inttest/thooks/fish.erl 2016-09-22 13:01:52.000000000 +0200 +++ new/rebar-2.6.4+git20180201.b6d3094/inttest/thooks/fish.erl 2018-02-01 10:34:04.000000000 +0100 @@ -1,5 +1,5 @@ -module(fish). --compile(export_all). +-export([fish/0]). fish() -> fish. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/rebar-2.6.4+git20160922.576e121/inttest/thooks/thooks_rt.erl new/rebar-2.6.4+git20180201.b6d3094/inttest/thooks/thooks_rt.erl --- old/rebar-2.6.4+git20160922.576e121/inttest/thooks/thooks_rt.erl 2016-09-22 13:01:52.000000000 +0200 +++ new/rebar-2.6.4+git20180201.b6d3094/inttest/thooks/thooks_rt.erl 2018-02-01 10:34:04.000000000 +0100 @@ -3,7 +3,7 @@ -module(thooks_rt). -include_lib("eunit/include/eunit.hrl"). --compile(export_all). +-export([setup/1, files/0, run/1]). setup([Target]) -> retest_utils:load_module(filename:join(Target, "inttest_utils.erl")), diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/rebar-2.6.4+git20160922.576e121/inttest/tplugins/bad_plugin.erl new/rebar-2.6.4+git20180201.b6d3094/inttest/tplugins/bad_plugin.erl --- old/rebar-2.6.4+git20160922.576e121/inttest/tplugins/bad_plugin.erl 2016-09-22 13:01:52.000000000 +0200 +++ new/rebar-2.6.4+git20180201.b6d3094/inttest/tplugins/bad_plugin.erl 2018-02-01 10:34:04.000000000 +0100 @@ -1,5 +1,6 @@ -module(bad_plugin). --compile(export_all). + +-export([fwibble/2]). %% this plugin contains numerous DELIBERATE syntax errors diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/rebar-2.6.4+git20160922.576e121/inttest/tplugins/fish.erl new/rebar-2.6.4+git20180201.b6d3094/inttest/tplugins/fish.erl --- old/rebar-2.6.4+git20160922.576e121/inttest/tplugins/fish.erl 2016-09-22 13:01:52.000000000 +0200 +++ new/rebar-2.6.4+git20180201.b6d3094/inttest/tplugins/fish.erl 2018-02-01 10:34:04.000000000 +0100 @@ -1,5 +1,5 @@ -module(fish). --compile(export_all). +-expoort([fish/0]). fish() -> fish. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/rebar-2.6.4+git20160922.576e121/inttest/tplugins/test_plugin.erl new/rebar-2.6.4+git20180201.b6d3094/inttest/tplugins/test_plugin.erl --- old/rebar-2.6.4+git20160922.576e121/inttest/tplugins/test_plugin.erl 2016-09-22 13:01:52.000000000 +0200 +++ new/rebar-2.6.4+git20180201.b6d3094/inttest/tplugins/test_plugin.erl 2018-02-01 10:34:04.000000000 +0100 @@ -1,5 +1,6 @@ -module(test_plugin). --compile(export_all). + +-export([fwibble/2]). fwibble(Config, _) -> Pwd = rebar_utils:get_cwd(), diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/rebar-2.6.4+git20160922.576e121/inttest/tplugins/tplugins_rt.erl new/rebar-2.6.4+git20180201.b6d3094/inttest/tplugins/tplugins_rt.erl --- old/rebar-2.6.4+git20160922.576e121/inttest/tplugins/tplugins_rt.erl 2016-09-22 13:01:52.000000000 +0200 +++ new/rebar-2.6.4+git20180201.b6d3094/inttest/tplugins/tplugins_rt.erl 2018-02-01 10:34:04.000000000 +0100 @@ -1,7 +1,7 @@ %% -*- erlang-indent-level: 4;indent-tabs-mode: nil -*- %% ex: ts=4 sw=4 et -module(tplugins_rt). --compile(export_all). +-export([setup/1, files/0, run/1]). -include_lib("eunit/include/eunit.hrl"). diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/rebar-2.6.4+git20160922.576e121/inttest/vsn_cache/vsn_cache_rt.erl new/rebar-2.6.4+git20180201.b6d3094/inttest/vsn_cache/vsn_cache_rt.erl --- old/rebar-2.6.4+git20160922.576e121/inttest/vsn_cache/vsn_cache_rt.erl 2016-09-22 13:01:52.000000000 +0200 +++ new/rebar-2.6.4+git20180201.b6d3094/inttest/vsn_cache/vsn_cache_rt.erl 2018-02-01 10:34:04.000000000 +0100 @@ -2,7 +2,7 @@ %% ex: ts=4 sw=4 et -module(vsn_cache_rt). --compile(export_all). +-export([setup/1, files/0, run/1]). setup([Target]) -> retest_utils:load_module(filename:join(Target, "inttest_utils.erl")), diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/rebar-2.6.4+git20160922.576e121/priv/templates/ctsuite.erl new/rebar-2.6.4+git20180201.b6d3094/priv/templates/ctsuite.erl --- old/rebar-2.6.4+git20160922.576e121/priv/templates/ctsuite.erl 2016-09-22 13:01:52.000000000 +0200 +++ new/rebar-2.6.4+git20180201.b6d3094/priv/templates/ctsuite.erl 2018-02-01 10:34:04.000000000 +0100 @@ -3,7 +3,20 @@ -module({{testmod}}_SUITE). -include_lib("common_test/include/ct.hrl"). --compile(export_all). +-export([ suite/0 + , groups/0 + , all/0 + , init_per_suite/1 + , end_per_suite/1 + , init_per_group/2 + , end_per_group/2 + , init_per_testcase/2 + , end_per_testcase/2 + ]). + +-export([ test_{{testmod}}/0 + , test_{{testmod}}/1 + ]). %%-------------------------------------------------------------------- %% Function: suite() -> Info @@ -57,12 +70,16 @@ %% NB: By default, we export all 1-arity user defined functions %%-------------------------------------------------------------------- all() -> - [ {exports, Functions} | _ ] = ?MODULE:module_info(), + { exports, Functions } = lists:keyfind(exports, 1, ?MODULE:module_info()), [ FName || {FName, _} <- lists:filter( fun ({module_info,_}) -> false; ({all,_}) -> false; ({init_per_suite,1}) -> false; ({end_per_suite,1}) -> false; + ({init_per_group,2}) -> false; + ({end_per_group,2}) -> false; + ({init_per_testcase,2}) -> false; + ({end_per_testcase,2}) -> false; ({_,1}) -> true; ({_,_}) -> false end, Functions)]. @@ -108,7 +125,7 @@ %% %% Description: Initialization before each test case group. %%-------------------------------------------------------------------- -init_per_group(_group, Config) -> +init_per_group(_GroupName, Config) -> Config. %%-------------------------------------------------------------------- @@ -122,7 +139,7 @@ %% %% Description: Cleanup after each test case group. %%-------------------------------------------------------------------- -end_per_group(_group, Config) -> +end_per_group(_GroupName, Config) -> Config. %%-------------------------------------------------------------------- @@ -141,7 +158,7 @@ %% Note: This function is free to add any key/value pairs to the Config %% variable, but should NOT alter/remove any existing entries. %%-------------------------------------------------------------------- -init_per_testcase(TestCase, Config) -> +init_per_testcase(_TestCase, Config) -> Config. %%-------------------------------------------------------------------- @@ -157,7 +174,7 @@ %% %% Description: Cleanup after each test case. %%-------------------------------------------------------------------- -end_per_testcase(TestCase, Config) -> +end_per_testcase(_TestCase, Config) -> Config. test_{{testmod}}() -> diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/rebar-2.6.4+git20160922.576e121/rebar.config.script new/rebar-2.6.4+git20180201.b6d3094/rebar.config.script --- old/rebar-2.6.4+git20160922.576e121/rebar.config.script 2016-09-22 13:01:52.000000000 +0200 +++ new/rebar-2.6.4+git20180201.b6d3094/rebar.config.script 2018-02-01 10:34:04.000000000 +0100 @@ -1,7 +1,7 @@ %% -*- mode: erlang;erlang-indent-level: 4;indent-tabs-mode: nil -*- %% ex: ts=4 sw=4 ft=erlang et -ExtraDeps = [{retest, ".*", {git, "git://github.com/rebar/retest.git", +ExtraDeps = [{retest, ".*", {git, "https://github.com/rebar/retest", {tag, "1.1.0"}}}], case os:getenv("REBAR_EXTRA_DEPS") of diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/rebar-2.6.4+git20160922.576e121/src/rebar.erl new/rebar-2.6.4+git20180201.b6d3094/src/rebar.erl --- old/rebar-2.6.4+git20160922.576e121/src/rebar.erl 2016-09-22 13:01:52.000000000 +0200 +++ new/rebar-2.6.4+git20180201.b6d3094/src/rebar.erl 2018-02-01 10:34:04.000000000 +0100 @@ -156,9 +156,6 @@ rebar_config:set_xconf(BaseConfig1, base_dir, AbsCwd). profile(BaseConfig1, Commands) -> - ?CONSOLE("Please take note that profiler=[fprof|eflame] is preliminary" - " and will be~nreplaced with a different command line flag" - " in the next release.~n", []), Profiler = rebar_config:get_global(BaseConfig1, profiler, "fprof"), profile(BaseConfig1, Commands, list_to_atom(Profiler)). diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/rebar-2.6.4+git20160922.576e121/src/rebar_core.erl new/rebar-2.6.4+git20180201.b6d3094/src/rebar_core.erl --- old/rebar-2.6.4+git20160922.576e121/src/rebar_core.erl 2016-09-22 13:01:52.000000000 +0200 +++ new/rebar-2.6.4+git20180201.b6d3094/src/rebar_core.erl 2018-02-01 10:34:04.000000000 +0100 @@ -190,8 +190,8 @@ WouldCd); skip_or_process_dir(Dir, Command, Config, DirSet, CurrentCodePath, {_, File}=ModuleSet, WouldCd) -> - case lists:suffix(".app.src", File) - orelse lists:suffix(".app", File) of + case lists:suffix(".app", File) + orelse rebar_app_utils:is_app_src(File) of true -> %% .app or .app.src file, check if is_skipped_app skip_or_process_dir1(Dir, Command, Config, DirSet, CurrentCodePath, diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/rebar-2.6.4+git20160922.576e121/src/rebar_cover_utils.erl new/rebar-2.6.4+git20180201.b6d3094/src/rebar_cover_utils.erl --- old/rebar-2.6.4+git20160922.576e121/src/rebar_cover_utils.erl 2016-09-22 13:01:52.000000000 +0200 +++ new/rebar-2.6.4+git20180201.b6d3094/src/rebar_cover_utils.erl 2018-02-01 10:34:04.000000000 +0100 @@ -35,6 +35,8 @@ -include("rebar.hrl"). +-dialyzer({no_opaque, has_header/2}). + %% ==================================================================== %% Internal functions %% ==================================================================== diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/rebar-2.6.4+git20160922.576e121/src/rebar_ct.erl new/rebar-2.6.4+git20180201.b6d3094/src/rebar_ct.erl --- old/rebar-2.6.4+git20160922.576e121/src/rebar_ct.erl 2016-09-22 13:01:52.000000000 +0200 +++ new/rebar-2.6.4+git20180201.b6d3094/src/rebar_ct.erl 2018-02-01 10:34:04.000000000 +0100 @@ -193,7 +193,7 @@ ?FAIL; true -> - Fun(Msg) + Fun(string:join(Msg, "\n")) end. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/rebar-2.6.4+git20160922.576e121/src/rebar_eunit.erl new/rebar-2.6.4+git20180201.b6d3094/src/rebar_eunit.erl --- old/rebar-2.6.4+git20160922.576e121/src/rebar_eunit.erl 2016-09-22 13:01:52.000000000 +0200 +++ new/rebar-2.6.4+git20180201.b6d3094/src/rebar_eunit.erl 2018-02-01 10:34:04.000000000 +0100 @@ -54,8 +54,8 @@ %% </li> %% <li> %% tests="baz"- For every existing suite, run the first test whose -%% name starts with bar and, if no such test exists, run the test -%% whose name starts with bar in the suite's _tests module +%% name starts with baz and, if no such test exists, run the test +%% whose name starts with baz in the suite's _tests module %% </li> %% </ul> %% Additionally, for projects that have separate folders for the core diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/rebar-2.6.4+git20160922.576e121/src/rebar_neotoma_compiler.erl new/rebar-2.6.4+git20180201.b6d3094/src/rebar_neotoma_compiler.erl --- old/rebar-2.6.4+git20160922.576e121/src/rebar_neotoma_compiler.erl 2016-09-22 13:01:52.000000000 +0200 +++ new/rebar-2.6.4+git20180201.b6d3094/src/rebar_neotoma_compiler.erl 2018-02-01 10:34:04.000000000 +0100 @@ -78,12 +78,18 @@ %% ============================================================================ info(help, compile) -> + info_help("Build Neotoma (*.peg) sources.~n"); +info(help, clean) -> + info_help("Delete *.peg build results"). + +info_help(Description) -> ?CONSOLE( - "Build Neotoma (*.peg) sources.~n" + "~s.~n" "~n" "Valid rebar.config options:~n" " ~p~n", [ + Description, {neotoma_opts, [{doc_root, "src"}, {out_dir, "src"}, {source_ext, ".peg"}, diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/rebar-2.6.4+git20160922.576e121/src/rebar_utils.erl new/rebar-2.6.4+git20180201.b6d3094/src/rebar_utils.erl --- old/rebar-2.6.4+git20160922.576e121/src/rebar_utils.erl 2016-09-22 13:01:52.000000000 +0200 +++ new/rebar-2.6.4+git20180201.b6d3094/src/rebar_utils.erl 2018-02-01 10:34:04.000000000 +0100 @@ -296,7 +296,7 @@ VsnString = vcs_vsn_1(Vsn, Dir), Cache1 = dict:store(Key, VsnString, Cache), Config1 = rebar_config:set_xconf(Config, vsn_cache, Cache1), - save_vsn_cache(Config1), + _ = save_vsn_cache(Config1), {Config1, VsnString}; {ok, VsnString} -> {Config, VsnString} diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/rebar-2.6.4+git20160922.576e121/src/rebar_xref.erl new/rebar-2.6.4+git20180201.b6d3094/src/rebar_xref.erl --- old/rebar-2.6.4+git20160922.576e121/src/rebar_xref.erl 2016-09-22 13:01:52.000000000 +0200 +++ new/rebar-2.6.4+git20180201.b6d3094/src/rebar_xref.erl 2018-02-01 10:34:04.000000000 +0100 @@ -40,6 +40,8 @@ %% for internal use only -export([info/2]). +-dialyzer({no_opaque, find_function_source/4}). + %% =================================================================== %% Public API %% =================================================================== diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/rebar-2.6.4+git20160922.576e121/test/rebar_compiler_tests.erl new/rebar-2.6.4+git20180201.b6d3094/test/rebar_compiler_tests.erl --- old/rebar-2.6.4+git20160922.576e121/test/rebar_compiler_tests.erl 2016-09-22 13:01:52.000000000 +0200 +++ new/rebar-2.6.4+git20180201.b6d3094/test/rebar_compiler_tests.erl 2018-02-01 10:34:04.000000000 +0100 @@ -30,8 +30,6 @@ %% ------------------------------------------------------------------- -module(rebar_compiler_tests). --compile(export_all). - -include_lib("eunit/include/eunit.hrl"). %% Assuming this test is run inside the rebar 'eunit' @@ -167,19 +165,11 @@ ?TMP_DIR ++ "rebar.cmd") end. -rebar() -> - rebar([]). - rebar(Args) when is_list(Args) -> Out = os:cmd(filename:nativename("./rebar") ++ " " ++ Args), %% ?debugMsg("**** Begin"), ?debugMsg(Out), ?debugMsg("**** End"), Out. -assert_dirs_in(Name, [Dir|T]) -> - [{Name ++ " has directory: " ++ Dir, ?_assert(filelib:is_dir(Dir))} | - assert_dirs_in(Name, T)]; -assert_dirs_in(_, []) -> []. - assert_files_in(Name, [File|T]) -> [{Name ++ " has file: " ++ File, ?_assert(filelib:is_regular(File))} | assert_files_in(Name, T)]; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/rebar-2.6.4+git20160922.576e121/test/rebar_dia_tests.erl new/rebar-2.6.4+git20180201.b6d3094/test/rebar_dia_tests.erl --- old/rebar-2.6.4+git20160922.576e121/test/rebar_dia_tests.erl 2016-09-22 13:01:52.000000000 +0200 +++ new/rebar-2.6.4+git20180201.b6d3094/test/rebar_dia_tests.erl 2018-02-01 10:34:04.000000000 +0100 @@ -2,8 +2,6 @@ %% ex: ts=4 sw=4 et -module(rebar_dia_tests). --compile([export_all]). - -include_lib("eunit/include/eunit.hrl"). -define(REBAR_SCRIPT, "../rebar"). @@ -12,7 +10,7 @@ dia_test_() -> case supported_otp_version() of - true -> + true -> {"Test the dia compiler", setup, fun() -> setup_project(), rebar("compile") end, fun teardown/1, @@ -22,7 +20,7 @@ {"Check include is created", ?_assert(filelib:is_dir("include") =:= true)}, - + {"Check dia/a.dia is compiled", ?_assert(string:str(RebarOut, "Compiled dia/a.dia") /= 0)}, @@ -62,7 +60,7 @@ supported_otp_version() -> Min = rebar_require_vsn:version_tuple(keep_going, "15", "configured"), - Otp = rebar_require_vsn:version_tuple(keep_going, + Otp = rebar_require_vsn:version_tuple(keep_going, erlang:system_info(otp_release), "OTP Release"), Otp >= Min. @@ -108,9 +106,5 @@ ?TMP_DIR ++ "rebar.cmd") end. -rebar() -> - rebar([]). - rebar(Args) when is_list(Args) -> - Out = os:cmd(filename:nativename("./rebar") ++ " " ++ Args), - Out. + os:cmd(filename:nativename("./rebar") ++ " " ++ Args). diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/rebar-2.6.4+git20160922.576e121/test/rebar_eunit_tests.erl new/rebar-2.6.4+git20180201.b6d3094/test/rebar_eunit_tests.erl --- old/rebar-2.6.4+git20160922.576e121/test/rebar_eunit_tests.erl 2016-09-22 13:01:52.000000000 +0200 +++ new/rebar-2.6.4+git20180201.b6d3094/test/rebar_eunit_tests.erl 2018-02-01 10:34:04.000000000 +0100 @@ -30,8 +30,6 @@ %% ------------------------------------------------------------------- -module(rebar_eunit_tests). --compile(export_all). - -include_lib("eunit/include/eunit.hrl"). %% Assuming this test is run inside the rebar 'eunit' @@ -412,7 +410,6 @@ -define(myapp_mymod_tests, ["-module(myapp_mymod_tests).\n", - "-compile([export_all]).\n", "-include_lib(\"eunit/include/eunit.hrl\").\n", "myfunc_test() -> ?assertMatch(ok, myapp_mymod:myfunc()).\n"]). @@ -426,7 +423,6 @@ -define(myapp_mymod2_tests, ["-module(myapp_mymod2_tests).\n", - "-compile([export_all]).\n", "-include_lib(\"eunit/include/eunit.hrl\").\n", "myfunc2_test() -> ?assertMatch(ok, myapp_mymod2:myfunc2()).\n", "common_name_test() -> ?assert(true).\n"]). @@ -459,7 +455,6 @@ -define(myapp_mymod_defined_in_mysuite_tests, ["-module(myapp_mymod_defined_in_mysuite_tests).\n", - "-compile([export_all]).\n", "-include_lib(\"eunit/include/eunit.hrl\").\n", "myfunc_test() -> ?assertMatch(ok, myapp_mymod:myfunc()).\n"]). @@ -537,9 +532,6 @@ ?TMP_DIR ++ "rebar.cmd") end. -rebar() -> - rebar([]). - rebar(Args) when is_list(Args) -> Out = os:cmd(filename:nativename("./rebar") ++ " " ++ Args), %% ?debugMsg("**** Begin"), ?debugMsg(Out), ?debugMsg("**** End"), diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/rebar-2.6.4+git20160922.576e121/test/rebar_file_utils_tests.erl new/rebar-2.6.4+git20180201.b6d3094/test/rebar_file_utils_tests.erl --- old/rebar-2.6.4+git20160922.576e121/test/rebar_file_utils_tests.erl 2016-09-22 13:01:52.000000000 +0200 +++ new/rebar-2.6.4+git20180201.b6d3094/test/rebar_file_utils_tests.erl 2018-02-01 10:34:04.000000000 +0100 @@ -30,8 +30,6 @@ %% ------------------------------------------------------------------- -module(rebar_file_utils_tests). --compile(export_all). - -include_lib("eunit/include/eunit.hrl"). -define(TMP_DIR, "tmp_file_utils"). diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/rebar-2.6.4+git20160922.576e121/test/rebar_require_vsn_tests.erl new/rebar-2.6.4+git20180201.b6d3094/test/rebar_require_vsn_tests.erl --- old/rebar-2.6.4+git20160922.576e121/test/rebar_require_vsn_tests.erl 2016-09-22 13:01:52.000000000 +0200 +++ new/rebar-2.6.4+git20180201.b6d3094/test/rebar_require_vsn_tests.erl 2018-02-01 10:34:04.000000000 +0100 @@ -2,8 +2,6 @@ %% ex: ts=4 sw=4 et -module(rebar_require_vsn_tests). --compile(export_all). - -include_lib("eunit/include/eunit.hrl"). version_tuple_test_() -> diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/rebar-2.6.4+git20160922.576e121/test/rebar_utils_tests.erl new/rebar-2.6.4+git20180201.b6d3094/test/rebar_utils_tests.erl --- old/rebar-2.6.4+git20160922.576e121/test/rebar_utils_tests.erl 2016-09-22 13:01:52.000000000 +0200 +++ new/rebar-2.6.4+git20180201.b6d3094/test/rebar_utils_tests.erl 2018-02-01 10:34:04.000000000 +0100 @@ -30,8 +30,6 @@ %% ------------------------------------------------------------------- -module(rebar_utils_tests). --compile(export_all). - -include_lib("eunit/include/eunit.hrl"). expand_env_variable_test_() -> diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/rebar-2.6.4+git20160922.576e121/test/rebar_xref_eunit.erl new/rebar-2.6.4+git20180201.b6d3094/test/rebar_xref_eunit.erl --- old/rebar-2.6.4+git20160922.576e121/test/rebar_xref_eunit.erl 2016-09-22 13:01:52.000000000 +0200 +++ new/rebar-2.6.4+git20180201.b6d3094/test/rebar_xref_eunit.erl 2018-02-01 10:34:04.000000000 +0100 @@ -2,8 +2,6 @@ %% ex: ts=4 sw=4 et -module(rebar_xref_eunit). --compile(export_all). - -include_lib("eunit/include/eunit.hrl"). -define(REBAR_SCRIPT, "../rebar"). @@ -16,31 +14,31 @@ fun teardown/1, fun(RebarOut) -> [ - {"Undefined function", ?_assert(string:str(RebarOut, + {"Undefined function", ?_assert(string:str(RebarOut, "myapp_somemod:notavailable/1 is undefined function") =/= 0)}, - {"Undefined function call", ?_assert(string:str(RebarOut, + {"Undefined function call", ?_assert(string:str(RebarOut, "myapp_othermod:somefunc/0 calls undefined function myapp_somemod:notavailable/1") =/= 0)}, - {"Deprecated function", ?_assert(string:str(RebarOut, + {"Deprecated function", ?_assert(string:str(RebarOut, "myapp_mymod:fdeprecated/0 is deprecated function") =/= 0)}, - {"Deprecated function call", ?_assert(string:str(RebarOut, + {"Deprecated function call", ?_assert(string:str(RebarOut, "myapp_othermod:somefunc/0 calls deprecated function myapp_mymod:fdeprecated/0") =/= 0)}, - {"Unused local", ?_assert(string:str(RebarOut, + {"Unused local", ?_assert(string:str(RebarOut, "myapp_mymod:localfunc2/0 is unused local function") =/= 0)}, - {"Unused export 1", ?_assert(string:str(RebarOut, + {"Unused export 1", ?_assert(string:str(RebarOut, "myapp_behaviour1:behaviour_info/1 is unused export") =/= 0)}, - {"Unused export 2", ?_assert(string:str(RebarOut, + {"Unused export 2", ?_assert(string:str(RebarOut, "myapp_behaviour2:behaviour_info/1 is unused export") =/= 0)}, - {"Unused export 3", ?_assert(string:str(RebarOut, + {"Unused export 3", ?_assert(string:str(RebarOut, "myapp_mymod:other2/1 is unused export") =/= 0)}, - {"Unused export 4", ?_assert(string:str(RebarOut, + {"Unused export 4", ?_assert(string:str(RebarOut, "myapp_othermod:somefunc/0 is unused export") =/= 0)}, - {"Suppressed behaviour export 1", ?_assert(string:str(RebarOut, + {"Suppressed behaviour export 1", ?_assert(string:str(RebarOut, "myapp_mymod:bh1_a/1 is unused export") =:= 0)}, - {"Suppressed behaviour export 2", ?_assert(string:str(RebarOut, + {"Suppressed behaviour export 2", ?_assert(string:str(RebarOut, "myapp_mymod:bh1_b/1 is unused export") =:= 0)}, - {"Suppressed behaviour export 3", ?_assert(string:str(RebarOut, + {"Suppressed behaviour export 3", ?_assert(string:str(RebarOut, "myapp_mymod:bh2_a/1 is unused export") =:= 0)}, - {"Suppressed behaviour export 4", ?_assert(string:str(RebarOut, + {"Suppressed behaviour export 4", ?_assert(string:str(RebarOut, "myapp_mymod:bh2_b/1 is unused export") =:= 0)} ] end}. @@ -51,31 +49,31 @@ fun teardown/1, fun(RebarOut) -> [ - {"Undefined function can not be suppressed.", ?_assert(string:str(RebarOut, + {"Undefined function can not be suppressed.", ?_assert(string:str(RebarOut, "myapp_somemod:notavailable/1 is undefined function") =/= 0)}, - {"Supppressed undefined function call", ?_assert(string:str(RebarOut, + {"Supppressed undefined function call", ?_assert(string:str(RebarOut, "myapp_othermod:somefunc/0 calls undefined function myapp_somemod:notavailable/1") =:= 0)}, - {"Supppressed deprecated function", ?_assert(string:str(RebarOut, + {"Supppressed deprecated function", ?_assert(string:str(RebarOut, "myapp_mymod:fdeprecated/0 is deprecated function") =:= 0)}, - {"Supppressed deprecated function call", ?_assert(string:str(RebarOut, + {"Supppressed deprecated function call", ?_assert(string:str(RebarOut, "myapp_othermod:somefunc/0 calls deprecated function myapp_mymod:fdeprecated/0") =:= 0)}, - {"Supppressed unused local", ?_assert(string:str(RebarOut, + {"Supppressed unused local", ?_assert(string:str(RebarOut, "myapp_mymod:localfunc2/0 is unused local function") =:= 0)}, - {"Supppressed unused export 1", ?_assert(string:str(RebarOut, + {"Supppressed unused export 1", ?_assert(string:str(RebarOut, "myapp_behaviour1:behaviour_info/1 is unused export") =:= 0)}, - {"Supppressed unused export 2", ?_assert(string:str(RebarOut, + {"Supppressed unused export 2", ?_assert(string:str(RebarOut, "myapp_behaviour2:behaviour_info/1 is unused export") =:= 0)}, - {"Supppressed unused export 3", ?_assert(string:str(RebarOut, + {"Supppressed unused export 3", ?_assert(string:str(RebarOut, "myapp_mymod:other2/1 is unused export") =:= 0)}, - {"Supppressed unused export 4", ?_assert(string:str(RebarOut, + {"Supppressed unused export 4", ?_assert(string:str(RebarOut, "myapp_othermod:somefunc/0 is unused export") =:= 0)}, - {"Suppressed behaviour export 1", ?_assert(string:str(RebarOut, + {"Suppressed behaviour export 1", ?_assert(string:str(RebarOut, "myapp_mymod:bh1_a/1 is unused export") =:= 0)}, - {"Suppressed behaviour export 2", ?_assert(string:str(RebarOut, + {"Suppressed behaviour export 2", ?_assert(string:str(RebarOut, "myapp_mymod:bh1_b/1 is unused export") =:= 0)}, - {"Suppressed behaviour export 3", ?_assert(string:str(RebarOut, + {"Suppressed behaviour export 3", ?_assert(string:str(RebarOut, "myapp_mymod:bh2_a/1 is unused export") =:= 0)}, - {"Suppressed behaviour export 4", ?_assert(string:str(RebarOut, + {"Suppressed behaviour export 4", ?_assert(string:str(RebarOut, "myapp_mymod:bh2_b/1 is unused export") =:= 0)} ] @@ -116,7 +114,7 @@ "bh2_a(A) -> localfunc1(bh2_a, A).\n", "bh2_b(A) -> localfunc1(bh2_b, A).\n", "other1(A) -> localfunc1(other1, A).\n", % regular exported functions - "other2(A) -> localfunc1(other2, A).\n", + "other2(A) -> localfunc1(other2, A).\n", "localfunc1(A, B) -> {A, B}.\n", % used local "localfunc2() -> ok.\n", % unused local "fdeprecated() -> ok.\n" % deprecated function @@ -155,7 +153,7 @@ prepare_project() -> setup_environment(), rebar("create-app appid=myapp"), - ok = file:make_dir("ebin"). + ok = file:make_dir("ebin"). setup_project(ignore_xref) -> prepare_project(), @@ -196,9 +194,6 @@ ?TMP_DIR ++ "rebar.cmd") end. -rebar() -> - rebar([]). - rebar(Args) when is_list(Args) -> Out = os:cmd(filename:nativename("./rebar") ++ " " ++ Args), %% ?debugMsg("**** Begin"), ?debugMsg(Out), ?debugMsg("**** End"),