=== Suite started at 2012-09-23 17:22:24
=== Starting test, 1 test cases
=cases 1
=user roberto
=host robertos-MacBook-Pro.local
=hosts robertos-MacBook-Pro.local
=emulator_vsn 5.9.1
=emulator beam
=otp_release R15B01
=started 2012-09-23 17:22:24
=case ct_framework:init_per_suite
=logfile ct_framework.init_per_suite.html
=group_props [{suite,mymodule_SUITE}]
=started 2012-09-23 17:22:44
=ended 2012-09-23 17:22:44
=result ok
=elapsed 1.0e-6
=case mymodule_SUITE:greetings_test
=logfile mymodule_suite.greetings_test.html
=started 2012-09-23 17:22:44
=ended 2012-09-23 17:22:44
=result ok
=elapsed 3.1e-4
=case ct_framework:end_per_suite
=logfile ct_framework.end_per_suite.html
=group_props [{suite,mymodule_SUITE}]
=started 2012-09-23 17:22:44
=ended 2012-09-23 17:22:44
=result ok
=elapsed 1.0e-6
=group_time 0.054s
=== TEST COMPLETE, 1 ok, 0 failed of 1 test cases
=finished 2012-09-23 17:22:44
=failed 0
=successful 1
=user_skipped 0
=auto_skipped 0_______________________________________________
erlang-questions mailing list
erlang-q...@erlang.org
http://erlang.org/mailman/listinfo/erlang-questions
I find common test very slow to start as well, so I'd be interested to find out why. Have you tried running this via ct:run_test/1 with profiling turned on?
Hi,
adding the list.
Please do
$TRACE_F rebar ct_suites=mymodule
and replace $TRACE_F with Max OS C equivalent of "strace -f". Then see
what it does just before the 20 second pause.
--
Motiejus Jakštys
Make that
$TRACE_F rebar suites=mymodule
and also consider running rebar with fprof:
$TRACE_F rebar -p suites=mymodule
or
$TRACE_F rebar --profile suites=mymodule
, but make sure you update rebar first to avoid a faulty
call to fprof:apply/2.
If it's caused by name lookup, you can try a custom ERL_INETRC file:
http://www.erlang.org/doc/apps/erts/inet_cfg.html
> and replace $TRACE_F with Max OS C equivalent of "strace -f".
> Then see what it does just before the 20 second pause.
Whoa, this is fascinating Roberto. Did you try running common test from the shell by hand and see if it still happens, i.e., by running something like this:
ct:run_test([{logdir, LogDir},
{label, Label},
{auto_compile, true},
{suite, Suites}]).
Does the same thing happen?
Is anything in PATH or ERL_LIBS & similar environment vars referringto a non-existent mountpoint?
A+
Dave