Quantcast

Erlang Common Test: {shuffle {seed}} not working

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Erlang Common Test: {shuffle {seed}} not working

Walter Weinmann
OS version:     Ubuntu 16.10
Erlang version: Erlang/OTP 19 [erts-8.2] [source-ac2de40] [64-bit] [smp:2:2] [async-threads:10] [hipe] [kernel-poll:false]

Attached a small example file, the result in raw.log is: 

--- Test run on 2017/02/02 17:23:30 ---
Converting "/home/wwe/SoftDevelopment/kvs_stress_idea/kvs_stress/." to "/home/wwe/SoftDevelopment/kvs_stress_idea/kvs_stress" and re-inserting with add_patha/1


Common Test v1.13 starting (cwd is /home/wwe/SoftDevelopment/kvs_stress_idea/kvs_stress)


Common Test: Running make in test directories...
Including the following directories:
"/home/wwe/SoftDevelopment/kvs_stress_idea/kvs_stress/include"
Recompile: my_shuffle_SUITE

CWD set to: "/home/wwe/SoftDevelopment/kvs_stress_idea/kvs_stress/logs/ct_run.test@wwe-VirtualBox.2017-02-02_17.23.31"

TEST INFO: 1 test(s), 1 suite(s)

Cover compiling 2 modules - this may take some time... done

Testing kvs_stress_idea.kvs_stress.my_shuffle_SUITE: Starting test (with repeated test cases)
EXIT, reason {function_clause,
                 [{rand,uniform_s,[1,{4711}],[{file,"rand.erl"},{line,145}]},
                  {test_server_ctrl,shuffle_cases,3,
                      [{file,"test_server_ctrl.erl"},{line,3175}]},
                  {test_server_ctrl,run_test_cases_loop,5,
                      [{file,"test_server_ctrl.erl"},{line,2591}]},
                  {test_server_ctrl,run_test_cases,3,
                      [{file,"test_server_ctrl.erl"},{line,2150}]},
                  {test_server_ctrl,ts_tc,3,
                      [{file,"test_server_ctrl.erl"},{line,1209}]},
                  {test_server_ctrl,init_tester,10,
                      [{file,"test_server_ctrl.erl"},{line,1163}]}]}Cover analysing... done

Updating /home/wwe/SoftDevelopment/kvs_stress_idea/kvs_stress/logs/index.html ... done
Updating /home/wwe/SoftDevelopment/kvs_stress_idea/kvs_stress/logs/all_runs.html ... done


Test run failed! Reason:
{'EXIT',
    {function_clause,
        [{rand,uniform_s,[1,{4711}],[{file,"rand.erl"},{line,145}]},
         {test_server_ctrl,shuffle_cases,3,
             [{file,"test_server_ctrl.erl"},{line,3175}]},
         {test_server_ctrl,run_test_cases_loop,5,
             [{file,"test_server_ctrl.erl"},{line,2591}]},
         {test_server_ctrl,run_test_cases,3,
             [{file,"test_server_ctrl.erl"},{line,2150}]},
         {test_server_ctrl,ts_tc,3,
             [{file,"test_server_ctrl.erl"},{line,1209}]},
         {test_server_ctrl,init_tester,10,
             [{file,"test_server_ctrl.erl"},{line,1163}]}]}}


_______________________________________________
erlang-bugs mailing list
[hidden email]
http://erlang.org/mailman/listinfo/erlang-bugs

my_shuffle_SUITE.erl (508 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Erlang Common Test: {shuffle {seed}} not working

Lars Hesel Christensen-2
Hi Walter,

According to the ct docs (http://erlang.org/doc/man/common_test.html)
the shuffle seed should be on the form '{integer(),integer(),integer()}'.

Cheers,
Lars

On 02/02/2017 05:30 PM, Walter Weinmann wrote:

> OS version:     Ubuntu 16.10
> Erlang version: Erlang/OTP 19 [erts-8.2] [source-ac2de40] [64-bit]
> [smp:2:2] [async-threads:10] [hipe] [kernel-poll:false]
>
> Attached a small example file, the result in raw.log is:
>
> --- Test run on 2017/02/02 17:23:30 ---
> Converting "/home/wwe/SoftDevelopment/kvs_stress_idea/kvs_stress/." to
> "/home/wwe/SoftDevelopment/kvs_stress_idea/kvs_stress" and re-inserting
> with add_patha/1
>
>
> Common Test v1.13 starting (cwd is
> /home/wwe/SoftDevelopment/kvs_stress_idea/kvs_stress)
>
>
> Common Test: Running make in test directories...
> Including the following directories:
> "/home/wwe/SoftDevelopment/kvs_stress_idea/kvs_stress/include"
> Recompile: my_shuffle_SUITE
>
> CWD set to:
> "/home/wwe/SoftDevelopment/kvs_stress_idea/kvs_stress/logs/ct_run.test@wwe-VirtualBox.2017-02-02_17.23.31"
>
> TEST INFO: 1 test(s), 1 suite(s)
>
> Cover compiling 2 modules - this may take some time... done
>
> Testing kvs_stress_idea.kvs_stress.my_shuffle_SUITE: Starting test (with
> repeated test cases)
> EXIT, reason {function_clause,
>                
>  [{rand,uniform_s,[1,{4711}],[{file,"rand.erl"},{line,145}]},
>                   {test_server_ctrl,shuffle_cases,3,
>                       [{file,"test_server_ctrl.erl"},{line,3175}]},
>                   {test_server_ctrl,run_test_cases_loop,5,
>                       [{file,"test_server_ctrl.erl"},{line,2591}]},
>                   {test_server_ctrl,run_test_cases,3,
>                       [{file,"test_server_ctrl.erl"},{line,2150}]},
>                   {test_server_ctrl,ts_tc,3,
>                       [{file,"test_server_ctrl.erl"},{line,1209}]},
>                   {test_server_ctrl,init_tester,10,
>                      
> [{file,"test_server_ctrl.erl"},{line,1163}]}]}Cover analysing... done
>
> Updating
> /home/wwe/SoftDevelopment/kvs_stress_idea/kvs_stress/logs/index.html ...
> done
> Updating
> /home/wwe/SoftDevelopment/kvs_stress_idea/kvs_stress/logs/all_runs.html
> ... done
>
>
> Test run failed! Reason:
> {'EXIT',
>     {function_clause,
>         [{rand,uniform_s,[1,{4711}],[{file,"rand.erl"},{line,145}]},
>          {test_server_ctrl,shuffle_cases,3,
>              [{file,"test_server_ctrl.erl"},{line,3175}]},
>          {test_server_ctrl,run_test_cases_loop,5,
>              [{file,"test_server_ctrl.erl"},{line,2591}]},
>          {test_server_ctrl,run_test_cases,3,
>              [{file,"test_server_ctrl.erl"},{line,2150}]},
>          {test_server_ctrl,ts_tc,3,
>              [{file,"test_server_ctrl.erl"},{line,1209}]},
>          {test_server_ctrl,init_tester,10,
>              [{file,"test_server_ctrl.erl"},{line,1163}]}]}}
>
>
>
> _______________________________________________
> erlang-bugs mailing list
> [hidden email]
> http://erlang.org/mailman/listinfo/erlang-bugs
>

_______________________________________________
erlang-bugs mailing list
[hidden email]
http://erlang.org/mailman/listinfo/erlang-bugs

signature.asc (849 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Erlang Common Test: {shuffle {seed}} not working

Walter Weinmann
Thanks Lars - got it wrong with the docs. But question, what is the meaning of these three integers?

On 3 February 2017 at 13:07, Lars Hesel Christensen <[hidden email]> wrote:
Hi Walter,

According to the ct docs (http://erlang.org/doc/man/common_test.html)
the shuffle seed should be on the form '{integer(),integer(),integer()}'.

Cheers,
Lars

On 02/02/2017 05:30 PM, Walter Weinmann wrote:
> OS version:     Ubuntu 16.10
> Erlang version: Erlang/OTP 19 [erts-8.2] [source-ac2de40] [64-bit]
> [smp:2:2] [async-threads:10] [hipe] [kernel-poll:false]
>
> Attached a small example file, the result in raw.log is:
>
> --- Test run on 2017/02/02 17:23:30 ---
> Converting "/home/wwe/SoftDevelopment/kvs_stress_idea/kvs_stress/." to
> "/home/wwe/SoftDevelopment/kvs_stress_idea/kvs_stress" and re-inserting
> with add_patha/1
>
>
> Common Test v1.13 starting (cwd is
> /home/wwe/SoftDevelopment/kvs_stress_idea/kvs_stress)
>
>
> Common Test: Running make in test directories...
> Including the following directories:
> "/home/wwe/SoftDevelopment/kvs_stress_idea/kvs_stress/include"
> Recompile: my_shuffle_SUITE
>
> CWD set to:
> "/home/wwe/SoftDevelopment/kvs_stress_idea/kvs_stress/logs/ct_run.test@wwe-VirtualBox.2017-02-02_17.23.31"
>
> TEST INFO: 1 test(s), 1 suite(s)
>
> Cover compiling 2 modules - this may take some time... done
>
> Testing kvs_stress_idea.kvs_stress.my_shuffle_SUITE: Starting test (with
> repeated test cases)
> EXIT, reason {function_clause,
>
>  [{rand,uniform_s,[1,{4711}],[{file,"rand.erl"},{line,145}]},
>                   {test_server_ctrl,shuffle_cases,3,
>                       [{file,"test_server_ctrl.erl"},{line,3175}]},
>                   {test_server_ctrl,run_test_cases_loop,5,
>                       [{file,"test_server_ctrl.erl"},{line,2591}]},
>                   {test_server_ctrl,run_test_cases,3,
>                       [{file,"test_server_ctrl.erl"},{line,2150}]},
>                   {test_server_ctrl,ts_tc,3,
>                       [{file,"test_server_ctrl.erl"},{line,1209}]},
>                   {test_server_ctrl,init_tester,10,
>
> [{file,"test_server_ctrl.erl"},{line,1163}]}]}Cover analysing... done
>
> Updating
> /home/wwe/SoftDevelopment/kvs_stress_idea/kvs_stress/logs/index.html ...
> done
> Updating
> /home/wwe/SoftDevelopment/kvs_stress_idea/kvs_stress/logs/all_runs.html
> ... done
>
>
> Test run failed! Reason:
> {'EXIT',
>     {function_clause,
>         [{rand,uniform_s,[1,{4711}],[{file,"rand.erl"},{line,145}]},
>          {test_server_ctrl,shuffle_cases,3,
>              [{file,"test_server_ctrl.erl"},{line,3175}]},
>          {test_server_ctrl,run_test_cases_loop,5,
>              [{file,"test_server_ctrl.erl"},{line,2591}]},
>          {test_server_ctrl,run_test_cases,3,
>              [{file,"test_server_ctrl.erl"},{line,2150}]},
>          {test_server_ctrl,ts_tc,3,
>              [{file,"test_server_ctrl.erl"},{line,1209}]},
>          {test_server_ctrl,init_tester,10,
>              [{file,"test_server_ctrl.erl"},{line,1163}]}]}}
>
>
>
> _______________________________________________
> erlang-bugs mailing list
> [hidden email]
> http://erlang.org/mailman/listinfo/erlang-bugs
>




_______________________________________________
erlang-bugs mailing list
[hidden email]
http://erlang.org/mailman/listinfo/erlang-bugs
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Erlang Common Test: {shuffle {seed}} not working

Walter Weinmann
Peter thanks for the help - I agree with the documentation issue.

Best regards
Walter


On 3 February 2017 at 13:51, Peter Andersson E <[hidden email]> wrote:

Hi Walter,

 

Please see the documentation for function random:seed/1. (http://erlang.org/doc/man/random.html#seed-1)

 

The CT User’s Guide really should refer to this page to avoid confusion.

 

Best regards,

Peter

 

Ericsson AB, Erlang/OTP

 

From: [hidden email] [mailto:[hidden email]] On Behalf Of Walter Weinmann
Sent: den 3 februari 2017 13:38
To: Lars Hesel Christensen <[hidden email]>
Cc: erlang-bugs <[hidden email]>
Subject: Re: [erlang-bugs] Erlang Common Test: {shuffle {seed}} not working

 

Thanks Lars - got it wrong with the docs. But question, what is the meaning of these three integers?

 

On 3 February 2017 at 13:07, Lars Hesel Christensen <[hidden email]> wrote:

Hi Walter,

According to the ct docs (http://erlang.org/doc/man/common_test.html)
the shuffle seed should be on the form '{integer(),integer(),integer()}'.

Cheers,
Lars


On 02/02/2017 05:30 PM, Walter Weinmann wrote:
> OS version:     Ubuntu 16.10
> Erlang version: Erlang/OTP 19 [erts-8.2] [source-ac2de40] [64-bit]
> [smp:2:2] [async-threads:10] [hipe] [kernel-poll:false]
>
> Attached a small example file, the result in raw.log is:
>
> --- Test run on 2017/02/02 17:23:30 ---
> Converting "/home/wwe/SoftDevelopment/kvs_stress_idea/kvs_stress/." to
> "/home/wwe/SoftDevelopment/kvs_stress_idea/kvs_stress" and re-inserting
> with add_patha/1
>
>
> Common Test v1.13 starting (cwd is
> /home/wwe/SoftDevelopment/kvs_stress_idea/kvs_stress)
>
>
> Common Test: Running make in test directories...
> Including the following directories:
> "/home/wwe/SoftDevelopment/kvs_stress_idea/kvs_stress/include"
> Recompile: my_shuffle_SUITE
>
> CWD set to:
> "
[hidden email]"
>
> TEST INFO: 1 test(s), 1 suite(s)
>
> Cover compiling 2 modules - this may take some time... done
>
> Testing kvs_stress_idea.kvs_stress.my_shuffle_SUITE: Starting test (with
> repeated test cases)
> EXIT, reason {function_clause,
>
>  [{rand,uniform_s,[1,{4711}],[{file,"rand.erl"},{line,145}]},
>                   {test_server_ctrl,shuffle_cases,3,
>                       [{file,"test_server_ctrl.erl"},{line,3175}]},
>                   {test_server_ctrl,run_test_cases_loop,5,
>                       [{file,"test_server_ctrl.erl"},{line,2591}]},
>                   {test_server_ctrl,run_test_cases,3,
>                       [{file,"test_server_ctrl.erl"},{line,2150}]},
>                   {test_server_ctrl,ts_tc,3,
>                       [{file,"test_server_ctrl.erl"},{line,1209}]},
>                   {test_server_ctrl,init_tester,10,
>
> [{file,"test_server_ctrl.erl"},{line,1163}]}]}Cover analysing... done
>
> Updating
> /home/wwe/SoftDevelopment/kvs_stress_idea/kvs_stress/logs/index.html ...
> done
> Updating
> /home/wwe/SoftDevelopment/kvs_stress_idea/kvs_stress/logs/all_runs.html
> ... done
>
>
> Test run failed! Reason:
> {'EXIT',
>     {function_clause,
>         [{rand,uniform_s,[1,{4711}],[{file,"rand.erl"},{line,145}]},
>          {test_server_ctrl,shuffle_cases,3,
>              [{file,"test_server_ctrl.erl"},{line,3175}]},
>          {test_server_ctrl,run_test_cases_loop,5,
>              [{file,"test_server_ctrl.erl"},{line,2591}]},
>          {test_server_ctrl,run_test_cases,3,
>              [{file,"test_server_ctrl.erl"},{line,2150}]},
>          {test_server_ctrl,ts_tc,3,
>              [{file,"test_server_ctrl.erl"},{line,1209}]},
>          {test_server_ctrl,init_tester,10,
>              [{file,"test_server_ctrl.erl"},{line,1163}]}]}}
>
>
>

> _______________________________________________
> erlang-bugs mailing list
> [hidden email]
> http://erlang.org/mailman/listinfo/erlang-bugs
>

 

 




_______________________________________________
erlang-bugs mailing list
[hidden email]
http://erlang.org/mailman/listinfo/erlang-bugs
Loading...