rebar/inttest
Tuncer Ayaz 99fe270e59 Fix #267 (code path regression)
Since the introduction of -r/--recursive, deps were not properly added
to the code path when running ct, eunit, etc.

To fix that, pass a flag down to process_dir1 and conditionalize
execution of the command. This moves the decision into process_dir1
where we can decide to invoke preprocess/2 and postprocess/2 but not
execute the command.

Without this fix, you'd have to, for example, invoke 'rebar -r ct
skip_deps=true', if you wanted to run base_dir's ct suites with deps on
the code path (while skipping all non-base_dir ct suites).

So, with this patch applied, if you run
$ rebar ct
deps will be on the code path, and only base_dir's ct suites will be
tested.

If you want to test ct suites in base_dir and sub_dirs, you have to run
$ rebar -r ct skip_deps=true

If you want to test ct suites in all dirs, you have to run
$ rebar -r ct

The fix is not specific to ct and applies to all commands.

To be able to add inttest/code_path_no_recurse/deps, I had to fix
.gitignore. While at it, I've updated and fixed all entries.
2014-04-23 22:17:23 +02:00
..
code_path_no_recurse Fix #267 (code path regression) 2014-04-23 22:17:23 +02:00
ct1 inttest: fix whitespace errors 2012-08-18 19:29:29 +02:00
ct2 Fix inttest/ct2 ct spec file location (Thanks Peter Andersson) 2012-09-03 11:48:36 +02:00
depplugins Keep compile recursive and update the tests to not pass -r to compile 2014-03-11 21:24:19 +00:00
logging Change default log level to 'warn' and introduce -q/--quiet 2013-12-06 19:05:45 +01:00
rgen1 inttest/rgen_1: double the timeout a second time 2013-12-17 14:27:10 +01:00
t_custom_config Change default log level to 'warn' and introduce -q/--quiet 2013-12-06 19:05:45 +01:00
tdeps1 Keep compile recursive and update the tests to not pass -r to compile 2014-03-11 21:24:19 +00:00
tdeps2 Keep compile recursive and update the tests to not pass -r to compile 2014-03-11 21:24:19 +00:00
tdeps3 Don't over-aggressively clean the code path in the presence of lib_dir directives 2013-10-16 19:58:02 -04:00
tdeps_update Keep compile recursive and update the tests to not pass -r to compile 2014-03-11 21:24:19 +00:00
thooks Add pre and post script support for all commands 2011-03-12 16:31:41 +01:00
tplugins Fix warning in inttest/tplugins/tplugins_rt.erl 2012-07-01 22:29:37 +02:00
bug_5_rt.erl Updating integration tests 2010-06-09 13:17:48 -06:00