[erlang-questions] running tests with ct_run (cross target environment)

Devin Butterfield devin.butterfield@REDACTED
Thu Oct 24 18:55:26 CEST 2013


Hi,

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...

Thanks!
--
Regards, Devin

Using erlexec command:

######################
# using erlexec
######################

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

Common Test starting (cwd is /opt/myrel/tests/emulator_test)

CWD set to:
"/opt/myrel/tests/test_server/ct_run.test_server@REDACTED
"

TEST INFO: 1 test(s), 12 case(s) in 1 suite(s)

Testing tests.emulator_test.float_SUITE: Starting test, 12 test cases

- - - - - - - - - - - - - - - - - - - - - - - - - -
Error detected: "Failed to start CTH, see the CT Log for details"
- - - - - - - - - - - - - - - - - - - - - - - - - -

Testing tests.emulator_test.float_SUITE: *** FAILED *** init_per_suite
Testing tests.emulator_test.float_SUITE: TEST COMPLETE, 0 ok, 0 failed, 12
skipped of 12 test cases


Crash dump was written to: erl_crash.dump


###################
# USING c_run
###################


root:/opt/myrel/tests/test_server> ct_run -no_auto_compile -suite
../emulator_test/float_SUITE

=PROGRESS REPORT==== 24-Mar-2035::03:29:17 ===
          supervisor: {local,sasl_safe_sup}
             started: [{pid,<0.40.0>},
                       {name,alarm_handler},
                       {mfargs,{alarm_handler,start_link,[]}},
                       {restart_type,permanent},
                       {shutdown,2000},
                       {child_type,worker}]

=PROGRESS REPORT==== 24-Mar-2035::03:29:18 ===
          supervisor: {local,sasl_safe_sup}
             started: [{pid,<0.41.0>},
                       {name,overload},
                       {mfargs,{overload,start_link,[]}},
                       {restart_type,permanent},
                       {shutdown,2000},
                       {child_type,worker}]

=PROGRESS REPORT==== 24-Mar-2035::03:29:18 ===
          supervisor: {local,sasl_sup}
             started: [{pid,<0.39.0>},
                       {name,sasl_safe_sup},
                       {mfargs,
                           {supervisor,start_link,
                               [{local,sasl_safe_sup},sasl,safe]}},
                       {restart_type,permanent},
                       {shutdown,infinity},
                       {child_type,supervisor}]

=PROGRESS REPORT==== 24-Mar-2035::03:29:18 ===
          supervisor: {local,sasl_sup}
             started: [{pid,<0.42.0>},
                       {name,release_handler},
                       {mfargs,{release_handler,start_link,[]}},
                       {restart_type,permanent},
                       {shutdown,2000},
                       {child_type,worker}]

=PROGRESS REPORT==== 24-Mar-2035::03:29:18 ===
         application: sasl
          started_at: ct@REDACTED


Common Test v1.7.3 starting (cwd is /opt/myrel/tests/test_server)

Eshell V5.10.3  (abort with ^G)
(ct@REDACTED)1>
(ct@REDACTED)1>
CWD set to:
"/opt/myrel/tests/test_server/ct_run.ct@REDACTED"
(ct@REDACTED)1>
TEST INFO: 1 test(s), 12 case(s) in 1 suite(s)

(ct@REDACTED)1> Testing tests.emulator_test.float_SUITE: Starting test, 12
test cases
(ct@REDACTED)1>
- - - - - - - - - - - - - - - - - - - - - - - - - -
Error detected: "Failed to start CTH, see the CT Log for details"
- - - - - - - - - - - - - - - - - - - - - - - - - -

(ct@REDACTED)1> Testing tests.emulator_test.float_SUITE: *** FAILED ***
init_per_suite
(ct@REDACTED)1> Testing tests.emulator_test.float_SUITE: TEST COMPLETE, 0
ok, 0 failed, 12 skipped of 12 test cases

(ct@REDACTED)1>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20131024/93d23432/attachment.htm>


More information about the erlang-questions mailing list