<div dir="ltr"><div><div><div><div>Hi,<br><br></div>I am porting OTP to an embedded platform and trying to run standard OTP tests on target. I am new to erlang, so apologies is this a FAQ, though I have not found any explanation on the web. I've tried running directly using ct_run and also erlexec, but the results are the same: "Error detected: "Failed to start CTH, see the CT Log for details"". Looking at the log reveal *no* details about this failure. What am I missing? See below for output...<br>
<br></div><div>Thanks!<br>--<br></div><div>Regards, Devin<br></div><div><br></div>Using erlexec command: <br><br>######################<br># using erlexec<br>######################<br><br>root:/opt/myrel/tests/test_server> erlexec -sname test_server -rsh rsh -env PATH "/opt/myrel/tests/emulator_test:/sbin:/usr/sbin:/bin:/usr/bin:/opt/myrel/bin:/opt/myrel/erts-5.10.3/bin" -boot start_sasl -sasl errlog_type error -pz "/opt/ myrel/tests/test_server" -ct_test_vars "{net_dir,\"\"}" -eval "ts_run:ct_run_test(\"/opt/myrel/tests/emulator_test\", [{suite,float_SUITE},{logdir,\"../test_server\"},{auto_compile, false},{config,[\"../test_server/ts.config\",\"../test_server/ts.unix.config\"]},{vars,[{verbose,0}]},batch,{scale_timetraps,true}])" -noinput -s erlang halt<br>
<br></div>Common Test starting (cwd is /opt/myrel/tests/emulator_test)<br><br>CWD set to: "/opt/myrel/tests/test_server/ct_run.test_server@buildroot.2035-03-24_03.20.17"<br><br>TEST INFO: 1 test(s), 12 case(s) in 1 suite(s)<br>
<br>Testing tests.emulator_test.float_SUITE: Starting test, 12 test cases<br><br>- - - - - - - - - - - - - - - - - - - - - - - - - -<br>Error detected: "Failed to start CTH, see the CT Log for details"<br>- - - - - - - - - - - - - - - - - - - - - - - - - -<br>
<br>Testing tests.emulator_test.float_SUITE: *** FAILED *** init_per_suite<br>Testing tests.emulator_test.float_SUITE: TEST COMPLETE, 0 ok, 0 failed, 12 skipped of 12 test cases<br><br><br>Crash dump was written to: erl_crash.dump<br>
<br><br>###################<br></div><div><div># USING c_run<br>###################<br></div><div><br><br>root:/opt/myrel/tests/test_server> ct_run -no_auto_compile -suite ../emulator_test/float_SUITE<br><br>=PROGRESS REPORT==== 24-Mar-2035::03:29:17 ===<br>
supervisor: {local,sasl_safe_sup}<br> started: [{pid,<0.40.0>},<br> {name,alarm_handler},<br> {mfargs,{alarm_handler,start_link,[]}},<br> {restart_type,permanent},<br>
{shutdown,2000},<br> {child_type,worker}]<br><br>=PROGRESS REPORT==== 24-Mar-2035::03:29:18 ===<br> supervisor: {local,sasl_safe_sup}<br> started: [{pid,<0.41.0>},<br>
{name,overload},<br> {mfargs,{overload,start_link,[]}},<br> {restart_type,permanent},<br> {shutdown,2000},<br> {child_type,worker}]<br>
<br>=PROGRESS REPORT==== 24-Mar-2035::03:29:18 ===<br> supervisor: {local,sasl_sup}<br> started: [{pid,<0.39.0>},<br> {name,sasl_safe_sup},<br> {mfargs,<br>
{supervisor,start_link,<br> [{local,sasl_safe_sup},sasl,safe]}},<br> {restart_type,permanent},<br> {shutdown,infinity},<br>
{child_type,supervisor}]<br><br>=PROGRESS REPORT==== 24-Mar-2035::03:29:18 ===<br> supervisor: {local,sasl_sup}<br> started: [{pid,<0.42.0>},<br> {name,release_handler},<br>
{mfargs,{release_handler,start_link,[]}},<br> {restart_type,permanent},<br> {shutdown,2000},<br> {child_type,worker}]<br><br>=PROGRESS REPORT==== 24-Mar-2035::03:29:18 ===<br>
application: sasl<br> started_at: ct@buildroot<br><br><br>Common Test v1.7.3 starting (cwd is /opt/myrel/tests/test_server)<br><br>Eshell V5.10.3 (abort with ^G)<br>(ct@buildroot)1> <br>(ct@buildroot)1> <br>
CWD set to: "/opt/myrel/tests/test_server/ct_run.ct@buildroot.2035-03-24_03.29.20"<br>(ct@buildroot)1> <br>TEST INFO: 1 test(s), 12 case(s) in 1 suite(s)<br><br>(ct@buildroot)1> Testing tests.emulator_test.float_SUITE: Starting test, 12 test cases<br>
(ct@buildroot)1> <br>- - - - - - - - - - - - - - - - - - - - - - - - - -<br>Error detected: "Failed to start CTH, see the CT Log for details"<br>- - - - - - - - - - - - - - - - - - - - - - - - - -<br><br>(ct@buildroot)1> Testing tests.emulator_test.float_SUITE: *** FAILED *** init_per_suite<br>
(ct@buildroot)1> Testing tests.emulator_test.float_SUITE: TEST COMPLETE, 0 ok, 0 failed, 12 skipped of 12 test cases<br><br>(ct@buildroot)1> <br><br></div></div></div>