[openstack-dev] [Congress] Issues with Tox testing
Eric K
ekcs.openstack at gmail.com
Fri Apr 8 00:11:36 UTC 2016
Thanks for the feedback, Bryan. Glad you got things working!
1. The instructions asking to install those packages are missing from kilo
(we¹ll fix that), but they have been there since liberty. Was it perhaps
unclear because the line is too long?
* Additionally:
* $ sudo apt-get install git gcc python-dev libxml2 libxslt1-dev libzip-dev
mysql-server python-mysqldb build-essential libssl-dev libffi-dev
2. Tempest should not be required by the tox tests.
Thanks!
From: Bryan Sullivan <blsaws at hotmail.com>
Reply-To: "OpenStack Development Mailing List (not for usage questions)"
<openstack-dev at lists.openstack.org>
Date: Thursday, April 7, 2016 at 4:29 PM
To: "openstack-dev at lists.openstack.org" <openstack-dev at lists.openstack.org>
Subject: Re: [openstack-dev] [Congress] Issues with Tox testing
> An update: I found that there were two dependencies needed that were not clear
> in the guide at https://github.com/openstack/congress. I also installed
> Tempest which was not referenced before. If these additions are correct (they
> worked for me), they should be added to
> https://github.com/openstack/congress/blob/master/README.rst.
>
> $ sudo apt-get install libffi-dev libssl-dev
> $ cd ~/git
> $ git clone https://github.com/openstack/tempest/
> $ cd tempest
> $ ~/git/congress/bin/pip install -r requirements.txt
> $ ~/git/congress/bin/pip install .
>
> (not sure if both pip commands are needed - I'm not an expert on pip install)
>
> After that, "tox -epy27" ran thru fine:
>
> ------------------------------------------------------------------------------
> ------------------------- -----------
> congress.tests.policy_engines.test_vmplacement.TestComputeVmAssignment.test_se
> t_policy_with_dashes 27.623
> congress.tests.policy_engines.test_vmplacement.TestComputeVmAssignment.test_se
> t_policy 27.212
> congress.tests.policy_engines.test_agnostic_performance.TestRuntimePerformance
> .test_simulate_latency 1.325
> congress.tests.dse.test_dse.TestDSE.test_policy_tables
> 1.229
> congress.tests.policy_engines.test_agnostic_performance.TestRuntimePerformance
> .test_select_100matches 1.184
> congress.tests.test_congress.TestCongress.test_policy_execute
> 1.127
> congress.tests.test_congress.TestCongress.test_datasource_api_model_execute
> 1.067
> congress.tests.policy_engines.test_agnostic_performance.TestRuntimePerformance
> .test_update_nonrecursive 0.967
> congress.tests.dse.test_dse.TestDSE.test_policy_table_publish
> 0.681
> congress.tests.datasources.test_neutron_driver.TestDataSourceDriver.test_poll_
> subscribe 0.671
> ______________________________________________________________ summary
> _______________________________________________________________
> py27: commands succeeded
> congratulations :)
>
>
>
> Thanks,
> Bryan Sullivan
>
>
> From: blsaws at hotmail.com
> To: openstack-dev at lists.openstack.org
> Date: Thu, 7 Apr 2016 11:16:48 -0700
> Subject: [openstack-dev] [Congress] Issues with Tox testing
>
> Hi Congress team,
>
> A question for tox testing expert on the Congress team. I'm trying to run the
> tox tests as described at https://github.com/openstack/congress, specifically
> the two commands:
>
> $ sudo pip install 'tox<1.7' $ tox -epy27
>
>
>
> Due to conflicts with the OS-owned python config, I run these under my
> virtualenv created in the congress repo as:
> $ cd ~/git/congress
> $ bin/pip install 'tox<1.7'
> $ bin/tox -epy27
>
>
> But in any event (whether I try to run the tox within the virtualenv or not),
> I get errors such as:
> c/_cffi_backend.c:15:17: fatal error: ffi.h: No such file or directory
>
>
>
> What's missing in the setup for running these tests?
>
>
>
> Note that I have all the config needed to run bash/CLI-based test scripts such
> as https://git.opnfv.org/cgit/copper/tree/tests/adhoc/dmz01.sh
>
>
>
> Thanks,
> Bryan Sullivan
>
> __________________________________________________________________________
> OpenStack Development Mailing List (not for usage questions) Unsubscribe:
> OpenStack-dev-request at lists.openstack.org?subject:unsubscribe
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
>
> __________________________________________________________________________
> OpenStack Development Mailing List (not for usage questions) Unsubscribe:
> OpenStack-dev-request at lists.openstack.org?subject:unsubscribe
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20160407/7a35efb6/attachment.html>
More information about the OpenStack-dev
mailing list