Hello.

Thank you very much. You helped me a lot.

I have one more question: Is possible to set python version for tests 
run or without virtual environment it always use system python version?

I run tests as you sent me in virtualenv with Python 3.5.1 bud without 
tinyrpc installed. Everything looks ok and only one test was skipped. 
Reason for skip isn't missing tinyrpc but newer eventlet than is 
supported for this test.

test_4_call_large_binary (ryu.tests.unit.lib.test_rpc.Test_rpc)SKIP: 
doesn't work with eventlet 0.18 and later

I think that we could enable tests in RPM package and remove tinyrpc as 
missing dependency (tinyrpc is not ported to Py3 yet).

Thank you again and have a nice day.
Lumir


On 07/11/2016 03:14 AM, Iwase Yusuke wrote:
> Hi,
>
> Which Ryu package are you using?
> (Sorry, I don't know about the Ryu package on Fedora...)
>
> To execute the tests of Ryu, the following python packages are required.
>   https://github.com/osrg/ryu/blob/master/tools/test-requires
>
> If you have installed pip, you can install them as following:
>
>   e.g.)
>     # Install all requirements
>     $ sudo dnf install gcc libffi-devel python-devel openssl-devel  # 
> required for building "cryptography"
>     $ sudo dnf install redhat-rpm-config  # might be required, if you 
> are using Fedora 23+
>     $ sudo pip install -r tools/pip-requires -r tools/test-requires
>
>     # Then, re-install Ryu
>     $ python setup.py install
>
>     # Execute the tests
>     $ ./run_tests.sh -N
>
>
> Thanks,
> Iwase
>
> On 2016年07月08日 20:02, Lumir Balhar wrote:
>> Hello.
>>
>> Please, what is a preferred way to run tests in Ryu package?
>>
>> We have package in Fedora with python2 and python3 subpackages, but with
>> disabled tests. Package author wrote in comments that tests is disabled
>> because one dependency (tinyrpc) isn't packaged in fedora. I am trying
>> to find where is tinyrpc used.
>>
>> I cannot use run_tests.sh because some scripts in tools/ folder aren't
>> python3 compatible.
>>
>> If I use "python3 setup.py test" then tests ends with following error:
>>
>> TypeError: dist must be a Distribution instance
>>
>> Could you please help me how to run tests and better how to run it
>> without tinyrpc dependency?
>>
>> Thank you and have a nice day.
>> Lumir
>>
>>
>> ------------------------------------------------------------------------------
>>  
>>
>> Attend Shape: An AT&T Tech Expo July 15-16. Meet us at AT&T Park in San
>> Francisco, CA to explore cutting-edge tech and listen to tech luminaries
>> present their vision of the future. This family event has something for
>> everyone, including kids. Get more information and register today.
>> http://sdm.link/attshape
>> _______________________________________________
>> Ryu-devel mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/ryu-devel
>>


------------------------------------------------------------------------------
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are 
consuming the most bandwidth. Provides multi-vendor support for NetFlow, 
J-Flow, sFlow and other flows. Make informed decisions using capacity planning
reports.http://sdm.link/zohodev2dev
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel

Reply via email to