I installed python-dev and added greenlet, sqlalchemy to the
pip-requires, and ./run_tests.sh -f again.

And it ran the tests again. Should they all PASS with OK?

Here's a snip of the results,

APITest

    test_create_network_badrequest_json                         OK

    test_create_network_badreqyest_xml                          OK

    test_create_network_json                                    OK

    test_create_network_xml                                     OK

    test_create_port_badrequest_json                            FAIL

    test_create_port_badrequest_xml                             FAIL

    test_create_port_json                                       OK

    test_create_port_networknotfound_json                       ERROR

    test_create_port_networknotfound_xml                        OK

    test_create_port_xml                                        OK

    test_delete_attachment_json                                 OK

    test_delete_attachment_networknotfound_json                 OK

    test_delete_attachment_networknotfound_xml                  OK

    test_delete_attachment_portnotfound_json                    OK

    test_delete_attachment_portnotfound_xml                     OK

    test_delete_attachment_xml                                  OK

    test_delete_network_in_use_json                             ERROR

    test_delete_network_in_use_xml                              OK

    test_delete_network_json                                    OK

    test_delete_network_xml                                     OK

    test_delete_port_in_use_json                                ERROR

    test_delete_port_in_use_xml                                 OK

    test_delete_port_json                                       OK

    test_delete_port_networknotfound_json                       ERROR

    test_delete_port_networknotfound_xml                        OK

    test_delete_port_with_bad_id_json                           ERROR

    test_delete_port_with_bad_id_xml                            OK

    test_delete_port_xml                                        OK

    test_list_networks_json                                     OK

    test_list_networks_xml                                      FAIL

    test_list_ports_json                                        OK

    test_list_ports_xml                                         FAIL

    test_put_attachment_json                                    OK

    test_put_attachment_networknotfound_json                    ERROR

    test_put_attachment_networknotfound_xml                     OK

    test_put_attachment_portnotfound_json                       ERROR

    test_put_attachment_portnotfound_xml                        OK

    test_put_attachment_xml                                     OK

    test_rename_network_badrequest_json                         OK

    test_rename_network_badrequest_xml                          OK

    test_rename_network_json                                    OK

    test_rename_network_not_found_json                          ERROR

 

 

Dan Moore
Datacenter System Engineer

Systems Development Organization

Core Technology Group

danie...@cisco.com, RTP10S-2E0702

 

From: netstack-bounces+danielmo=cisco....@lists.launchpad.net
[mailto:netstack-bounces+danielmo=cisco....@lists.launchpad.net] On
Behalf Of Dan Moore (danielmo)
Sent: Monday, August 01, 2011 11:42 AM
To: netstack@lists.launchpad.net
Subject: [Netstack] quantum unit-test rampup

 

All,

I'm new to this harness and OpenStack in general, I've started with
Quantum (being from Cisco) and will start with unit-tests.

So branching this branch,
https://code.launchpad.net/~netstack/quantum/quantum-unit-tests,  as my
"trunk", I try simply running "./run_tests.sh" to make sure it's working
as-is before I start hacking.

 

But I don't have a module called "greenlet", so I tried the following
and failed. Does this have something to do with the virtual environment
that I'm running run_tests.sh from?

danielmo@ubuntu:~/src/quantum-unit-tests/trunk$ pip install greenlet

Downloading/unpacking greenlet

  Downloading greenlet-0.3.1.tar.gz

  Running setup.py egg_info for package greenlet

    /usr/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown
distribution option: 'repository'

      warnings.warn(msg)

    

Installing collected packages: greenlet

  Running setup.py install for greenlet

    /usr/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown
distribution option: 'repository'

      warnings.warn(msg)

    building 'greenlet' extension

    gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall
-Wstrict-prototypes -fPIC -I/usr/include/python2.7 -c greenlet.c -o
build/temp.linux-x86_64-2.7/greenlet.o

    In file included from greenlet.c:5:0:

    greenlet.h:11:20: fatal error: Python.h: No such file or directory

    compilation terminated.

    error: command 'gcc' failed with exit status 1

    Complete output from command /usr/bin/python -c "import
setuptools;__file__='/home/danielmo/src/quantum-unit-tests/trunk/build/g
reenlet/setup.py';execfile(__file__)" install
--single-version-externally-managed --record
/tmp/pip-95ZPZ4-record/install-record.txt:

    /usr/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown
distribution option: 'repository'

 

  warnings.warn(msg)

 

running install

 

running build

 

running build_ext

 

building 'greenlet' extension

 

creating build

 

creating build/temp.linux-x86_64-2.7

 

gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall
-Wstrict-prototypes -fPIC -I/usr/include/python2.7 -c greenlet.c -o
build/temp.linux-x86_64-2.7/greenlet.o

 

In file included from greenlet.c:5:0:

 

greenlet.h:11:20: fatal error: Python.h: No such file or directory

 

compilation terminated.

 

error: command 'gcc' failed with exit status 1

 

----------------------------------------

Command /usr/bin/python -c "import
setuptools;__file__='/home/danielmo/src/quantum-unit-tests/trunk/build/g
reenlet/setup.py';execfile(__file__)" install
--single-version-externally-managed --record
/tmp/pip-95ZPZ4-record/install-record.txt failed with error code 1

Storing complete log in /home/danielmo/.pip/pip.log

 

Thanks,

Dan Moore
Datacenter System Engineer

Systems Development Organization

Core Technology Group

danie...@cisco.com, RTP10S-2E0702

 

-- 
Mailing list: https://launchpad.net/~netstack
Post to     : netstack@lists.launchpad.net
Unsubscribe : https://launchpad.net/~netstack
More help   : https://help.launchpad.net/ListHelp

Reply via email to