[erlang-questions] rebar3 and ct
alisdair s
alisdairsullivan@REDACTED
Mon Mar 28 14:58:36 CEST 2016
what os are you using? osx? this looks like a bug handling files with quotes in the name, i will investigate and open an issue
Sent from my iPad
> On Mar 28, 2016, at 2:15 AM, Alexander Petrovsky <askjuise@REDACTED> wrote:
>
> Unfortunately it's doesn't work:
>
>> -{ct_opts, [{alias, myapp, "./test/"}, {logdir, "./logs/"}, {suites, myapp, all}]}.
>> +{ct_opts, [{dir, "./test"}]}.
>
>
> I have the same problem:
>
>> ===> sh(cp -Rp /Users/juise/Documents/myapp/test/myapp_shaper_SUITE.beam /Users/juise/Documents/myapp/test/myapp_shaper_SUITE.erl /Users/juise/Documents/myapp/test/TEST-file_"myapp.app".xml "/Users/juise/Documents/myapp/_build/test/lib/myapp/test")
>> failed with return code 1 and the following output:
>> cp: /Users/juise/Documents/myapp/test/TEST-file_myapp.app.xml: No such file or directory
>
>
> and looks like it becasu the file TEST-file_myapp.app.xml have name TEST-file_"myapp.app".xml
>
> 2016-03-24 17:37 GMT+03:00 alisdair sullivan <alisdairsullivan@REDACTED>:
>> rebar3 doesn’t currently support the setting on test configuration via `ct_opts` like that. changing your `ct_opts` section to: `[{dir, “test”}, {logdir, “logs”}]` should work
>>
>>> On Mar 24, 2016, at 2:34 AM, Alexander Petrovsky <askjuise@REDACTED> wrote:
>>>
>>> Hi!
>>>
>>> I have the follow ct section in rebar.config:
>>>
>>>> {ct_opts, [{alias, myapp, "./test/"}, {logdir, "./logs/"}, {suites, myapp, all}]}.
>>>> {ct_compile_opts, [{i, "./include/"}]}.
>>>
>>> On the "rebar 3.0.0-beta.3+build.327.ref97ae8d6 on Erlang/OTP 18 Erts 7.0" it's work perfectly, but on the "rebar 3.0.0+build.273.refd2de55d on Erlang/OTP 18 Erts 7.0" it says:
>>>
>>>> ===> sh(cp -Rp /Users/juise/Documents/myapp/test/myapp_shaper_SUITE.beam /Users/juise/Documents/myapp/test/myapp_shaper_SUITE.erl /Users/juise/Documents/myapp/test/TEST-file_"myapp.app".xml "/Users/juise/Documents/myapp/_build/test/lib/myapp/test")
>>>> failed with return code 1 and the following output:
>>>> cp: /Users/juise/Documents/myapp/test/TEST-file_myapp.app.xml: No such file or directory
>>>
>>>
>>> and after "rm -rf ./test/TEST*.xml" it says:
>>>
>>>> ./rebar3 ct skip_deps=true verbose=3
>>>> ===> Verifying dependencies...
>>>> ===> Member `{alias,myapp,"./test/"}' of option `ct_opts' must be a 2-tuple
>>>> make: *** [test] Error 1
>>>
>>>
>>> How can I fix it?
>>>
>>> --
>>> Петровский Александр / Alexander Petrovsky,
>>>
>>> Skype: askjuise
>>> Phone: +7 914 8 820 815
>>>
>>> _______________________________________________
>>> erlang-questions mailing list
>>> erlang-questions@REDACTED
>>> http://erlang.org/mailman/listinfo/erlang-questions
>
>
>
> --
> Петровский Александр / Alexander Petrovsky,
>
> Skype: askjuise
> Phone: +7 914 8 820 815
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20160328/bbd50b82/attachment.htm>
More information about the erlang-questions
mailing list