<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'><font style="" color="#000000" face="Courier New,sans-serif">An update: I found that there were two dependencies needed that were not clear in the guide at <a href="https://github.com/openstack/congress." target="_blank">https://github.com/openstack/congress.</a> 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.<br><br>$ sudo apt-get install libffi-dev libssl-dev<br>$ cd ~/git<br>$ git clone https://github.com/openstack/tempest/<br>$ cd tempest<br>$ ~/git/congress/bin/pip install -r requirements.txt<br>$ ~/git/congress/bin/pip install .<br><br>(not sure if both pip commands are needed - I'm not an expert on pip install)<br><br>After that, "tox -epy27" ran thru fine:<br><br>------------------------------------------------------------------------------------------------------- -----------<br>congress.tests.policy_engines.test_vmplacement.TestComputeVmAssignment.test_set_policy_with_dashes 27.623<br>congress.tests.policy_engines.test_vmplacement.TestComputeVmAssignment.test_set_policy 27.212<br>congress.tests.policy_engines.test_agnostic_performance.TestRuntimePerformance.test_simulate_latency 1.325<br>congress.tests.dse.test_dse.TestDSE.test_policy_tables 1.229<br>congress.tests.policy_engines.test_agnostic_performance.TestRuntimePerformance.test_select_100matches 1.184<br>congress.tests.test_congress.TestCongress.test_policy_execute 1.127<br>congress.tests.test_congress.TestCongress.test_datasource_api_model_execute 1.067<br>congress.tests.policy_engines.test_agnostic_performance.TestRuntimePerformance.test_update_nonrecursive 0.967<br>congress.tests.dse.test_dse.TestDSE.test_policy_table_publish 0.681<br>congress.tests.datasources.test_neutron_driver.TestDataSourceDriver.test_poll_subscribe 0.671<br>______________________________________________________________ summary _______________________________________________________________<br> py27: commands succeeded<br> congratulations :)<br><br id="FontBreak"></font><br><br>Thanks,<br>Bryan Sullivan<br><br><div><hr id="stopSpelling">From: blsaws@hotmail.com<br>To: openstack-dev@lists.openstack.org<br>Date: Thu, 7 Apr 2016 11:16:48 -0700<br>Subject: [openstack-dev] [Congress] Issues with Tox testing<br><br>
<style><!--
.ExternalClass .ecxhmmessage P {
padding:0px;
}
.ExternalClass body.ecxhmmessage {
font-size:12pt;
font-family:Calibri;
}
--></style>
<div dir="ltr"><font style="" color="#000000" face="Courier New,sans-serif">Hi Congress team, <br><br>A question for tox testing expert on the Congress team. I'm trying to run the tox tests as described at <a href="https://github.com/openstack/congress" target="_blank">https://github.com/openstack/congress</a>, specifically the two commands:<br><br></font>$ sudo pip install 'tox<1.7'
$ tox -epy27 <br><br><br><br>Due to conflicts with the OS-owned python config, I run these under my virtualenv created in the congress repo as:<br>$ cd ~/git/congress<br>$ bin/pip install 'tox<1.7'<br>$ bin/tox -epy27<br><br><br>But in any event (whether I try to run the tox within the virtualenv or not), I get errors such as:<br> c/_cffi_backend.c:15:17: fatal error: ffi.h: No such file or directory<br><br><br><br>What's missing in the setup for running these tests? <br><br><br><br>Note that I have all the config needed to run bash/CLI-based test scripts such as <a href="https://git.opnfv.org/cgit/copper/tree/tests/adhoc/dmz01.sh" target="_blank">https://git.opnfv.org/cgit/copper/tree/tests/adhoc/dmz01.sh</a> <br><br><br><br>Thanks,<br>Bryan Sullivan </div>
<br>__________________________________________________________________________
OpenStack Development Mailing List (not for usage questions)
Unsubscribe: OpenStack-dev-request@lists.openstack.org?subject:unsubscribe
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</div> </div></body>
</html>