<div dir="ltr">There are instructions here: <a href="https://github.com/erlang/otp/blob/maint/HOWTO/TESTING.md">https://github.com/erlang/otp/blob/maint/HOWTO/TESTING.md</a> on how to run the tests.<div><br></div><div>Looking at the log it seems like you are executing erl -s ts install ..... in the wrong directory. You should be in release/tests/test_server for erl to find all the correct OTP test libraries.</div><div><br></div><div>Lukas</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Jan 17, 2017 at 2:18 PM, REIX, Tony <span dir="ltr"><<a href="mailto:tony.reix@atos.net" target="_blank">tony.reix@atos.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#CCCCCC" text="#000000">
<p>Resending without the attachment.</p>
<p>Tony<br>
</p>
<br>
<div class="m_518531712001876984moz-cite-prefix">Le 17/01/2017 à 11:52, Tony REIX a écrit :<br>
</div>
<blockquote type="cite">
<p><font size="+1">Hi,</font></p>
<p><font size="+1">With :<br>
</font><font size="+1"><tt> </tt><tt>--disable-hipe --disable-threads --disable-smp-support --without-javac</tt></font><font size="+1"><br>
</font></p>
<p><font size="+1">I've been able to build Erlang and to launch the tests by: </font>
<font size="+1"><tt><font size="+1"><b>ct_run -suite ../compiler_test/andor_SUITE -case t_orelse</b></font></tt></font></p>
<p><font size="+1">However, it fails at beginning</font><font size="+1"><tt><font size="+1">: "Failed to start CTH"</font></tt>, and it talks about a file "</font><font size="+1"><font size="+1"><tt><font size="+1">see the CT Log for details"</font></tt></font>"
that I have no idea where it is.</font></p>
<p><font size="+1">I've only found at: otp_src_19.2/release/tests/<wbr>test_server :<br>
./ct_run.ct@hardy1.2017-01-17_<wbr>11.14.50/tests.compiler_test.<wbr>andor_SUITE.t_orelse.logs/run.<wbr>2017-01-17_11.14.50/suite.log<br>
but it does not help a lot<br>
</font></p>
<p><font size="+1">Any idea which document/file I should have a look at in order to understand the root cause of the failing testing ?<br>
Any idea about the root cause of the failure ?</font></p>
<p><font size="+1"><br>
</font></p>
<p><font size="+1">I've also tried with : </font><tt><font size="+1"><b>erl -s ts install -s ts run all_tests -s init stop</b> .<br>
</font></tt><font size="+1"><br>
But it crashes:</font><tt><font size="+1"> </font></tt><tt><font size="+1">init terminating in do_boot</font></tt></p>
<p><tt><font size="+1">Crash dump</font></tt></p>
<p><font size="+1">Looking at: erl_crash.dump , I see: </font><tt><font size="+1">Current Process CP: 0x00000000 (<b>invalid</b>)</font></tt><font size="+1"><br>
</font></p>
<p><i><font size="+1">erl_crash.dump file is attached to this email.</font></i><font size="+1"> REMOVED<br>
</font></p>
<p><font size="+1"><br>
</font></p>
<p><font size="+1">I guess that I have to learn a little bit ( ;) ) more about how Erlang works.</font></p>
<p><font size="+1">See below for details.</font></p>
<p><tt><font size="+1"><br>
</font></tt></p>
<p><font size="+1">Thanks</font></p>
<p><font size="+1">Tony<br>
</font></p>
<p><font size="+1"><br>
</font></p>
<p><font size="+1"><b>1) Launch tests :</b><br>
</font></p>
<p><tt><font size="+1">+ cd /opt/freeware/src/packages/<wbr>BUILD/otp_src_19.2/release/<wbr>tests//test_server<br>
+ /opt/freeware/src/packages/<wbr>BUILD/otp_src_19.2/<b>bin/ct_run -suite ../compiler_test/andor_SUITE -case t_orelse</b><br>
<br>
Common Test starting (cwd is /opt/freeware/src/packages/<wbr>BUILD/otp_src_19.2/release/<wbr>tests/test_server)<br>
<br>
Eshell V8.2 (abort with ^G)<br>
(ct@hardy1)1> <br>
Common Test: Running make in test directories...<br>
(ct@hardy1)1> Recompile: andor_SUITE<br>
(ct@hardy1)1> andor_SUITE.erl:83: Warning: this clause cannot match because of different types/sizes<br>
(ct@hardy1)1> andor_SUITE.erl:86: Warning: this clause cannot match because a previous clause always matches<br>
(ct@hardy1)1> andor_SUITE.erl:87: Warning: this clause cannot match because a previous clause always matches<br>
(ct@hardy1)1> andor_SUITE.erl:92: Warning: this clause cannot match because of different types/sizes<br>
(ct@hardy1)1> andor_SUITE.erl:169: Warning: the guard for this clause evaluates to 'false'<br>
(ct@hardy1)1> andor_SUITE.erl:170: Warning: the guard for this clause evaluates to 'false'<br>
(ct@hardy1)1> andor_SUITE.erl:170: Warning: the result of the expression is ignored (suppress the warning by assigning the expression to the _ variable)<br>
(ct@hardy1)1> andor_SUITE.erl:171: Warning: the guard for this clause evaluates to 'false'<br>
(ct@hardy1)1> andor_SUITE.erl:172: Warning: the guard for this clause evaluates to 'false'<br>
(ct@hardy1)1> andor_SUITE.erl:179: Warning: this expression will fail with a 'badarg' exception<br>
(ct@hardy1)1> andor_SUITE.erl:194: Warning: this clause cannot match because a previous clause at line 194 always matches<br>
(ct@hardy1)1> andor_SUITE.erl:195: Warning: the guard for this clause evaluates to 'false'<br>
(ct@hardy1)1> andor_SUITE.erl:196: Warning: the guard for this clause evaluates to 'false'<br>
(ct@hardy1)1> andor_SUITE.erl:197: Warning: the guard for this clause evaluates to 'false'<br>
(ct@hardy1)1> andor_SUITE.erl:227: Warning: this clause cannot match because a previous clause at line 227 always matches<br>
(ct@hardy1)1> andor_SUITE.erl:228: Warning: this clause cannot match because a previous clause at line 228 always matches<br>
(ct@hardy1)1> andor_SUITE.erl:229: Warning: this clause cannot match because a previous clause at line 229 always matches<br>
(ct@hardy1)1> andor_SUITE.erl:230: Warning: the guard for this clause evaluates to 'false'<br>
(ct@hardy1)1> Recompile: test_lib<br>
(ct@hardy1)1> <br>
CWD set to: <a class="m_518531712001876984moz-txt-link-rfc2396E" href="mailto:/opt/freeware/src/packages/BUILD/otp_src_19.2/release/tests/test_server/ct_run.ct@hardy1.2017-01-17_11.14.50" target="_blank">
"/opt/freeware/src/packages/<wbr>BUILD/otp_src_19.2/release/<wbr>tests/test_server/ct_run.ct@<wbr>hardy1.2017-01-17_11.14.50"</a><br>
(ct@hardy1)1> <br>
TEST INFO: 1 test(s), 1 case(s) in 1 suite(s)<br>
<br>
(ct@hardy1)1> Testing tests.compiler_test.andor_<wbr>SUITE.t_orelse: Starting test, 1 test cases<br>
(ct@hardy1)1> <br>
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -<br>
Error detected: "<b>Failed to start CTH</b>, see the <b>CT Log for details</b>"<br>
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -<br>
<br>
(ct@hardy1)1> Testing tests.compiler_test.andor_<wbr>SUITE.t_orelse: *** FAILED {andor_SUITE,init_per_suite} ***<br>
(ct@hardy1)1> Testing tests.compiler_test.andor_<wbr>SUITE.t_orelse: TEST COMPLETE, 0 ok, 0 failed, 1 skipped of 1 test cases</font></tt></p>
<p><tt><font size="+1"><br>
</font></tt></p>
<p><tt><font size="+1"><b>2)</b> </font></tt><font size="+1">./ct_run.ct@hardy1.2017-01-17_<wbr>11.14.50/tests.compiler_test.<wbr>andor_SUITE.t_orelse.logs/run.<wbr>2017-01-17_11.14.50/<b>suite.log</b></font></p>
<p><tt><font size="+1">=== Suite started at 2017-01-17 11:14:50<br>
=== Starting test, 1 test cases<br>
=cases 1<br>
=user root<br>
=host hardy1<br>
=hosts hardy1 <br>
=emulator_vsn 8.2<br>
=emulator beam<br>
=otp_release 19<br>
=started 2017-01-17 11:14:50<br>
=case andor_SUITE:init_per_suite<br>
=logfile andor_suite.init_per_suite.<wbr>html<br>
=started 2017-01-17 11:14:50<br>
=ended 2017-01-17 11:14:50<br>
=result failed: "Failed to start CTH, see the CT Log for details", [{andor_SUITE,<br>
<wbr> <wbr> init_per_suite}]<br>
=== *** FAILED {andor_SUITE,init_per_suite} ***<br>
=== <br>
=case andor_SUITE:t_orelse<br>
=started 2017-01-17 11:14:50<br>
=result auto_skipped: init_per_suite failed<br>
=== *** Skipping test case #1 {andor_SUITE,t_orelse} ***<br>
=== <br>
=case andor_SUITE:end_per_suite<br>
=started 2017-01-17 11:14:50<br>
=result auto_skipped: init_per_suite failed<br>
=== *** Skipping {andor_SUITE,end_per_suite} ***<br>
=== TEST COMPLETE, 0 ok, 0 failed, 1 skipped of 1 test cases<br>
<br>
=finished 2017-01-17 11:14:50<br>
=failed 0<br>
=successful 0<br>
=user_skipped 0<br>
=auto_skipped 1<br>
</font></tt></p>
<p><tt><font size="+1"><br>
</font></tt></p>
<p><b><tt><font size="+1">3)</font></tt></b><b><tt><font size="+1"> erl -s ts install -s ts run all_tests -s init stop</font></tt></b></p>
<p><tt><font size="+1"># erl -s ts install -s ts run all_tests -s init stop<br>
Erlang/OTP 19 [erts-8.2] [source]<br>
<br>
{"init terminating in do_boot",{undef,[{ts,install,[<wbr>],[]},{init,start_em,1,[]},{<wbr>init,do_boot,3,[]}]}}<br>
init terminating in do_boot ()<br>
<br>
Crash dump is being written to: erl_crash.dump...done<br>
</font></tt></p>
<p><tt><font size="+1"><br>
</font></tt></p>
<p><tt><font size="+1">=erl_crash_dump:0.3<br>
Tue Jan 17 11:41:15 2017<br>
Slogan: init terminating in do_boot ()<br>
System version: Erlang/OTP 19 [erts-8.2] [source]<br>
Compiled: Tue Jan 17 11:04:33 2017<br>
Taints: erl_tracer<br>
Atoms: 6506<br>
Calling Thread: scheduler:1<br>
=scheduler:1<br>
Scheduler Sleep Info Aux Work:<br>
Current Port:<br>
Run Queue Max Length: 0<br>
Run Queue High Length: 0<br>
Run Queue Normal Length: 1<br>
Run Queue Low Length: 0<br>
Run Queue Port Length: 0<br>
Run Queue Flags: NONEMPTY_NORMAL | OUT_OF_WORK | HALFTIME_OUT_OF_WORK | NONEMPTY | UNKNOWN(134217728)<br>
Current Process: <0.0.0><br>
Current Process State: Running<br>
Current Process Internal State: ACT_PRIO_NORMAL | USR_PRIO_NORMAL | PRQ_PRIO_NORMAL | ACTIVE | RUNNING | TRAP_EXIT | ON_HEAP_MSGQ<br>
Current Process Program counter: 0x202993d4 (init:boot_loop/2 + 28)<br>
<b>Current Process CP: 0x00000000 (invalid)</b><br>
Current Process Limited Stack Trace:<br>
0x20429544:SReturn addr 0x20088FDC (<terminate process normally>)<br>
...</font></tt></p>
<p><tt><font size="+1">15000 lines<br>
</font></tt></p><span class="">
<p><br>
</p>
<br>
<div class="m_518531712001876984moz-cite-prefix">Le 16/01/2017 à 22:25, Kostis Sagonas a écrit :<br>
</div>
</span><span class=""><blockquote type="cite">
On 01/16/2017 05:12 PM, REIX, Tony wrote: <br>
<blockquote type="cite"><br>
After building with Hipe, I've tried without Hipe. <br>
And I got the same result: an infinite loop, in read() from <br>
signal_dispatcher_thread_func(<wbr>). <br>
In: ERLC ../ebin/hipe_rtl.beam <wbr> with Hipe (--enable-hipe) <br>
In: ERLC ../ebin/hipe_consttab.beam without Hipe (--disable-hipe) <br>
. No idea why "hipe" appears here also. <br>
So, for now, I have a common issue, with or without hipe. <br>
</blockquote>
<br>
I can provide some info regarding the behavior you are experiencing: <br>
<br>
- Certain modules of the 'hipe' application, though not all. are compiled independently of whether HiPE is enabled or not because they are used by 'dialyzer'.
<br>
<br>
- It just so happens that 'hipe' is the first application that is compiled in the bootstrapping process, so the infinite loop you are getting is not related to HiPE but shows some deeper problem in the system you have built.
<br>
<br>
Bottomline: what you are experiencing is not HiPE-related. Your system is broken.
<br>
<br>
Kostis <br>
<br>
</blockquote>
<br>
</span></blockquote>
<br>
</div>
<br>______________________________<wbr>_________________<br>
erlang-questions mailing list<br>
<a href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</a><br>
<a href="http://erlang.org/mailman/listinfo/erlang-questions" rel="noreferrer" target="_blank">http://erlang.org/mailman/<wbr>listinfo/erlang-questions</a><br>
<br></blockquote></div><br></div>