uwiger/setup — pull request #6 by norton (2012-08-22 13:14:43+00:00)
Title: Make rebar dep friendly

The setup application when used as a dependency of another application doesn't mix well with rebar's default behaviour to compile and to copy test module beams to the .eunit directory.

I couldn't think of any other way to work around this issue without renaming the test directory to xtest directory. I thought about renaming the modules to testapp1 and testapp2 respectively but this might defeat the purpose of your test. You might have another suggestion or idea.

thanks,

$ ./rebar -D QC -D QC_EQC eunit compile_only=true
:
:

==> setup (eunit)
NOTICE: Using experimental option 'compile_only'
ERROR: eunit failed while processing /home/norton/foobar/deps/setup: {'EXIT',{{badmatch,{error,{1,
"cp: will not overwrite just-created `.eunit/testapp_app.erl' with `test/testapp-1/src/testapp_app.erl'\ncp: will not overwrite just-created `.eunit/testapp_sup.erl' with `test/testapp-1/src/testapp_sup.erl'\n"}}},
[{rebar_file_utils,cp_r,2,
[{file,"src/rebar_file_utils.erl"},{line,68}]},
{rebar_erlc_compiler,test_compile,3,
[{file,"src/rebar_erlc_compiler.erl"},
{line,155}]},
{rebar_eunit,eunit,2,[{file,"src/rebar_eunit.erl"},{line,86}]},
{rebar_core,run_modules,4,[{file,"src/rebar_core.erl"},{line,404}]},
{rebar_core,execute,5,[{file,"src/rebar_core.erl"},{line,333}]},
{rebar_core,process_dir0,6,[{file,"src/rebar_core.erl"},{line,195}]},
{rebar_core,process_each,5,[{file,"src/rebar_core.erl"},{line,266}]},
{rebar_core,process_dir0,6,
[{file,"src/rebar_core.erl"},{line,171}]}]}}
make: *** [eqc-compile] Error 1