[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: EUnit failure?
From: |
Ralf Wildenhues |
Subject: |
Re: EUnit failure? |
Date: |
Wed, 19 Aug 2009 20:41:39 +0200 |
User-agent: |
Mutt/1.5.20 (2009-08-09) |
Hello Romain,
thanks for your work on this!
* Romain Lenglet wrote on Wed, Aug 19, 2009 at 02:37:39PM CEST:
>
> Here is that patch.
> I have tested only with Erlang/OTP R13B, but it should also work with R12B.
Sorry, still fails, see below.
> Subject: [PATCH] Fix AT_CHECK_EUNIT macro for version of Erlang/OTP which
> don't have function init:stop/1.
>
> * lib/autotest/specific.m4 (AT_CHECK_EUNIT): Support older
> versions of Erlang/OTP which erlang:stop() function doesn't take
> arguments.
Cheers,
Ralf
## ------------------------ ##
## Summary of the failures. ##
## ------------------------ ##
Failed tests:
GNU Autoconf 2.64.11-d4f9-dirty test suite test groups:
NUM: FILE-NAME:LINE TEST-GROUP-NAME
KEYWORDS
186: autotest.at:1438 Erlang Eunit unit tests
erlang autotest
## ---------------------- ##
## Detailed failed tests. ##
## ---------------------- ##
# -*- compilation -*-
186. autotest.at:1438: testing ...
../../autoconf/tests/autotest.at:1490: autom4te --language=autotest -o suite
suite.at
../../autoconf/tests/autotest.at:1498: autoconf --force
../../autoconf/tests/autotest.at:1498: /bin/sh -n configure
../../autoconf/tests/autotest.at:1499: ./configure $configure_options
stdout:
checking for erl... /usr/bin/erl
checking for erlc... /usr/bin/erlc
checking for Erlang/OTP 'eunit' library subdirectory... not found
checking for Erlang/OTP 'eunit' library version... not found
configure: creating ./config.status
config.status: creating s/compile
config.status: creating erlang.conf
config.status: executing t/atconfig commands
../../autoconf/tests/autotest.at:1502: grep '^ERL='\''.*'\' t/atconfig
stdout:
ERL='/usr/bin/erl'
../../autoconf/tests/autotest.at:1503: grep '^ERLC='\''.*'\' t/atconfig
stdout:
ERLC='/usr/bin/erlc'
../../autoconf/tests/autotest.at:1504: grep '^ERLCFLAGS='\''.*'\' t/atconfig
stdout:
ERLCFLAGS=''
../../autoconf/tests/autotest.at:1510: cd t && $CONFIG_SHELL ./suite
--- /dev/null 2008-04-28 20:08:22.000000000 +0200
+++ /tmp/build/tests/testsuite.dir/at-groups/186/stderr 2009-08-19
14:43:38.000000000 +0200
@@ -0,0 +1,2 @@
+ERROR: 1 test was run,
+1 failed unexpectedly.
stdout:
## -------------------------------------------------------------- ##
## GNU Nonsense 1.0 test suite: suite to check EUnit integration. ##
## -------------------------------------------------------------- ##
1: my only test FAILED (suite.at:3)
## ------------- ##
## Test results. ##
## ------------- ##
## ---------------------- ##
## suite.log was created. ##
## ---------------------- ##
Please send `t/suite.log' and all information you think might help:
To: <address@hidden>
Subject: [GNU Nonsense 1.0] suite: 1 failed
You may investigate any problem if you feel able to do so, in which
case the test suite provides a good starting point. Its output may
be found below `t/suite.dir'.
../../autoconf/tests/autotest.at:1510: exit code was 1, expected 0
t/suite.log:
> ## -------------------------------------------------------------- ##
> ## GNU Nonsense 1.0 test suite: suite to check EUnit integration. ##
> ## -------------------------------------------------------------- ##
>
> suite: command line was:
> $ ./suite
> | AUTOTEST_PATH='t'
> |
> | SHELL=${CONFIG_SHELL-'/bin/sh'}
> |
> | ERL='/usr/bin/erl'
> |
> | ERLC='/usr/bin/erlc'
> | ERLCFLAGS=''
> ## ------------------------ ##
> ## Summary of the failures. ##
> ## ------------------------ ##
> Failed tests:
> GNU Nonsense 1.0 test suite: suite to check EUnit integration test groups:
>
> NUM: FILE-NAME:LINE TEST-GROUP-NAME
> KEYWORDS
>
> 1: suite.at:2 my only test
>
> ## ---------------------- ##
> ## Detailed failed tests. ##
> ## ---------------------- ##
>
> # -*- compilation -*-
> 1. suite.at:2: testing ...
> ./suite.at:3: "$ERLC" $ERLCFLAGS -b beam my_testsuite.erl
> ./suite.at:3: "$ERL" -pa "${abs_top_builddir}/s" -s my_testsuite test
> $at_eunit_options -noshell
> --- /dev/null 2008-04-28 20:08:22.000000000 +0200
> +++ /tmp/build/tests/testsuite.dir/186/t/suite.dir/at-groups/1/stderr
> 2009-08-19 14:43:38.000000000 +0200
> @@ -0,0 +1,3 @@
> +
> +Crash dump was written to: erl_crash.dump
> +init terminating in do_boot ()
> stdout:
> {"init terminating in
> do_boot",{undef,[{init,stop,"M"},{init,start_it,1},{init,start_em,1}]}}
> ./suite.at:3: exit code was 1, expected 0
> 1. suite.at:2: 1. my only test (suite.at:2): FAILED (suite.at:3)
>
>
> ## ------------- ##
> ## ../config.log ##
> ## ------------- ##
> | This file contains any messages produced by compilers while
> | running configure, to aid debugging if configure makes a mistake.
[...]
> | configure:1745: checking for erl
> | configure:1763: found /usr/bin/erl
> | configure:1775: result: /usr/bin/erl
> | configure:1850: checking for erlc
> | configure:1868: found /usr/bin/erlc
> | configure:1880: result: /usr/bin/erlc
> | configure:1910: checking for Erlang/OTP 'eunit' library subdirectory
> | configure:1941: $ERLC $ERLCFLAGS -b beam conftest.$ac_ext >&5 && echo
> "#!/bin/sh" > conftest$ac_exeext && $as_echo "\"$ERL\" -run conftest start
> -run init stop -noshell" >> conftest$ac_exeext && chmod +x conftest$ac_exeext
> | configure:1941: $? = 0
> | configure:1941: ./conftest
> | configure:1941: $? = 1
> | configure: program exited with status 1
> | configure: failed program was:
> | | -module(conftest).
> | | -export([start/0]).
> | |
> | | start() ->
> | | ReturnValue = case code:lib_dir("eunit") of
> | | {error, bad_name} ->
> | | file:write_file("conftest.out", "not found\n"),
> | | 1;
> | | LibDir ->
> | | file:write_file("conftest.out", LibDir),
> | | 0
> | | end,
> | | halt(ReturnValue)
> | | .
> | |
> | configure:1966: result: not found
> | configure:1968: checking for Erlang/OTP 'eunit' library version
> | configure:1979: result: not found
> | configure:2139: creating ./config.status
> | ac_cv_env_ERLCFLAGS_set=
> | ac_cv_env_ERLCFLAGS_value=
> | ac_cv_env_ERLC_set=
> | ac_cv_env_ERLC_value=
> | ac_cv_env_ERL_set=
> | ac_cv_env_ERL_value=
> | ac_cv_env_build_alias_set=
> | ac_cv_env_build_alias_value=
> | ac_cv_env_host_alias_set=
> | ac_cv_env_host_alias_value=
> | ac_cv_env_target_alias_set=
> | ac_cv_env_target_alias_value=
> | ac_cv_erlang_lib_dir_eunit='not found'
> | ac_cv_erlang_lib_ver_eunit='not found'
> | ac_cv_path_ac_pt_ERL=/usr/bin/erl
> | ac_cv_path_ac_pt_ERLC=/usr/bin/erlc
> |
> | ## ----------------- ##
> | ## Output variables. ##
> | ## ----------------- ##
> |
> | DEFS='-DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\"
> -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\"'
> | ECHO_C=''
> | ECHO_N='-n'
> | ECHO_T=''
> | ERL='/usr/bin/erl'
> | ERLANG_LIB_DIR_eunit='not found'
> | ERLANG_LIB_VER_eunit='not found'
> | ERLC='/usr/bin/erlc'
> | ERLCFLAGS=''
> | HAVE_ERLANG='yes'
> | HAVE_EUNIT='no'
[...]
> configure: exit 0
186. autotest.at:1438: 186. Erlang Eunit unit tests (autotest.at:1438): FAILED
(autotest.at:1510)
- Re: EUnit failure?, (continued)
- Re: EUnit failure?, Ralf Wildenhues, 2009/08/11
- Re: EUnit failure?, Paolo Bonzini, 2009/08/11
- Re: EUnit failure?, Ralf Wildenhues, 2009/08/11
- Re: EUnit failure?, Romain Lenglet, 2009/08/11
- Re: EUnit failure?, Ralf Wildenhues, 2009/08/13
- Re: EUnit failure?, Romain Lenglet, 2009/08/18
- Re: EUnit failure?, Ralf Wildenhues, 2009/08/18
- Re: EUnit failure?, Romain Lenglet, 2009/08/18
- Re: EUnit failure?, Paolo Bonzini, 2009/08/19
- Re: EUnit failure?, Romain Lenglet, 2009/08/19
- Re: EUnit failure?,
Ralf Wildenhues <=
- Re: EUnit failure?, Romain Lenglet, 2009/08/19
- Re: EUnit failure?, Ralf Wildenhues, 2009/08/22