Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cannot run unit tests #41

Closed
drufat opened this issue May 16, 2015 · 1 comment
Closed

cannot run unit tests #41

drufat opened this issue May 16, 2015 · 1 comment

Comments

@drufat
Copy link
Contributor

drufat commented May 16, 2015

I cannot run the unit tests that come with glumpy. The steps to replicate

pip install PyOpenGL PyOpenGL-accelerate #install prerequisites
python setup.py build_ext --inplace
PYTHONPATH=. nosetests --with-doctest glumpy

I get a lot of failures and errors:

Failure: NameError (name 'event' is not defined) ... ERROR
Doctest: glumpy.app.window.key.KeyStateHandler ... FAIL
Doctest: glumpy.app.window.key.modifiers_string ... ok
Doctest: glumpy.app.window.key.motion_string ... FAIL
Doctest: glumpy.app.window.key.symbol_string ... ok
Doctest: glumpy.app.window.mouse.buttons_string ... ok
Doctest: glumpy.ext.ffmpeg_tools.cvsecs ... FAIL
Doctest: glumpy.ext.ffmpeg_tools.deprecated_version_of ... FAIL
Failure: ImportError (cannot import name DataBuffer) ... ERROR
test_init_default (test_globject.GLObjectTest) ... ok
test_attach (test_program.ProgramTest) ... ERROR
test_attributes (test_program.ProgramTest) ... ok
test_delete_no_context (test_program.ProgramTest) ... ERROR
test_detach (test_program.ProgramTest) ... ERROR
test_failed_build (test_program.ProgramTest) ... ERROR
test_init (test_program.ProgramTest) ... ERROR
test_init_from_shader (test_program.ProgramTest) ... ERROR
test_init_from_string (test_program.ProgramTest) ... ERROR
test_setitem (test_program.ProgramTest) ... ERROR
test_uniform (test_program.ProgramTest) ... ok
test_unique_shader (test_program.ProgramTest) ... ERROR
test_init (test_shader.FragmentShaderTest) ... ERROR
test_attribute_float (test_shader.ShaderTest) ... ok
test_attribute_vec4 (test_shader.ShaderTest) ... ok
test_delete_no_context (test_shader.ShaderTest) ... ERROR
test_empty_build (test_shader.ShaderTest) ... ERROR
test_init (test_shader.ShaderTest) ... ERROR
test_sourcecode (test_shader.ShaderTest) ... FAIL
test_uniform_array (test_shader.ShaderTest) ... ok
test_uniform_float (test_shader.ShaderTest) ... ok
test_uniform_vec4 (test_shader.ShaderTest) ... ok
test_init (test_shader.VertexShaderTest) ... ERROR
test_init (test_texture.Texture1DTest) ... ERROR
test_set_misshaped_data_1D (test_texture.Texture1DTest) ... ERROR
test_width (test_texture.Texture1DTest) ... ERROR
test_init (test_texture.Texture2DTest) ... ERROR
test_invalid_views (test_texture.Texture2DTest) ... ERROR
test_reset_data_shape (test_texture.Texture2DTest) ... ERROR
test_reset_data_type (test_texture.Texture2DTest) ... ERROR
test_resize (test_texture.Texture2DTest) ... ERROR
test_resize_bad_shape (test_texture.Texture2DTest) ... ERROR
test_resize_unresizeable (test_texture.Texture2DTest) ... ERROR
test_resize_view (test_texture.Texture2DTest) ... ERROR
test_set_misplaced_data (test_texture.Texture2DTest) ... ERROR
test_set_misshaped_data_2D (test_texture.Texture2DTest) ... ERROR
test_set_oversized_data (test_texture.Texture2DTest) ... ERROR
test_set_undersized_data (test_texture.Texture2DTest) ... ERROR
test_set_whole_data (test_texture.Texture2DTest) ... ERROR
test_width_height (test_texture.Texture2DTest) ... ERROR
test_getitem_ellipsis (test_texture.TextureTest) ... ERROR
test_getitem_ellipsis_end (test_texture.TextureTest) ... ERROR
test_getitem_ellipsis_start (test_texture.TextureTest) ... ERROR
test_getitem_non_contiguous (test_texture.TextureTest) ... ERROR
test_getitem_partial (test_texture.TextureTest) ... ERROR
test_getitem_setitem (test_texture.TextureTest) ... ERROR
test_getitem_single (test_texture.TextureTest) ... ERROR
test_init_data (test_texture.TextureTest) ... ERROR
test_init_data_dtype (test_texture.TextureTest) ... ERROR
test_init_data_store (test_texture.TextureTest) ... ERROR
test_init_data_store_copy (test_texture.TextureTest) ... ERROR
test_init_dtype (test_texture.TextureTest) ... ERROR
test_init_dtype_shape (test_texture.TextureTest) ... ERROR
test_init_non_contiguous_data (test_texture.TextureTest) ... ERROR
test_init_none (test_texture.TextureTest) ... ERROR
test_setitem_all (test_texture.TextureTest) ... ERROR
test_setitem_all_no_store (test_texture.TextureTest) ... ERROR
test_setitem_partial (test_texture.TextureTest) ... ERROR
test_setitem_single (test_texture.TextureTest) ... ERROR
test_setitem_wrong (test_texture.TextureTest) ... ERROR
test_init (test_variable.AttributeTest) ... ok
test_set_generic (test_variable.AttributeTest) ... ok
test_float (test_variable.UniformTest) ... ok
test_init (test_variable.UniformTest) ... ERROR
test_int (test_variable.UniformTest) ... ok
test_mat2 (test_variable.UniformTest) ... ok
test_mat3 (test_variable.UniformTest) ... ok
test_mat4 (test_variable.UniformTest) ... ok
test_set (test_variable.UniformTest) ... ok
test_set_exception (test_variable.UniformTest) ... ok
test_vec2 (test_variable.UniformTest) ... ok
test_vec3 (test_variable.UniformTest) ... ok
test_vec4 (test_variable.UniformTest) ... ok
test_init (test_variable.VariableTest) ... ok
test_init_wrong_type (test_variable.VariableTest) ... ok
Doctest: glumpy.graphics.collections.array_list ... ok
test_append_1 (glumpy.graphics.collections.test_array_list.ArrayListDefault) ... ok
test_append_2 (glumpy.graphics.collections.test_array_list.ArrayListDefault) ... ok
test_append_3 (glumpy.graphics.collections.test_array_list.ArrayListDefault) ... ok
test_data (glumpy.graphics.collections.test_array_list.ArrayListDefault) ... ok
test_datasize (glumpy.graphics.collections.test_array_list.ArrayListDefault) ... ok
test_delitem_all_items (glumpy.graphics.collections.test_array_list.ArrayListDefault) ... ok
test_delitem_all_items_2 (glumpy.graphics.collections.test_array_list.ArrayListDefault) ... ok
test_delitem_last_item (glumpy.graphics.collections.test_array_list.ArrayListDefault) ... ok
test_delitem_many_items (glumpy.graphics.collections.test_array_list.ArrayListDefault) ... ok
test_delitem_single_item (glumpy.graphics.collections.test_array_list.ArrayListDefault) ... ok
test_detitem_exception (glumpy.graphics.collections.test_array_list.ArrayListDefault) ... ok
test_getitem_ellipsis (glumpy.graphics.collections.test_array_list.ArrayListDefault) ... ok
test_getitem_empty (glumpy.graphics.collections.test_array_list.ArrayListDefault) ... ok
test_getitem_exception (glumpy.graphics.collections.test_array_list.ArrayListDefault) ... ok
test_getitem_key (glumpy.graphics.collections.test_array_list.ArrayListDefault) ... ok
test_getitem_negative (glumpy.graphics.collections.test_array_list.ArrayListDefault) ... ok
test_getitem_reverse (glumpy.graphics.collections.test_array_list.ArrayListDefault) ... ok
test_init (glumpy.graphics.collections.test_array_list.ArrayListDefault) ... ok
test_init_exception (glumpy.graphics.collections.test_array_list.ArrayListDefault) ... ok
test_init_from_list (glumpy.graphics.collections.test_array_list.ArrayListDefault) ... ok
test_insert_1 (glumpy.graphics.collections.test_array_list.ArrayListDefault) ... ok
test_insert_2 (glumpy.graphics.collections.test_array_list.ArrayListDefault) ... ok
test_insert_3 (glumpy.graphics.collections.test_array_list.ArrayListDefault) ... ok
test_insert_4 (glumpy.graphics.collections.test_array_list.ArrayListDefault) ... ok
test_itemsize (glumpy.graphics.collections.test_array_list.ArrayListDefault) ... ok
test_setitem (glumpy.graphics.collections.test_array_list.ArrayListDefault) ... ok
test_setitem_ellipsis (glumpy.graphics.collections.test_array_list.ArrayListDefault) ... ok
test_setitem_empty_range (glumpy.graphics.collections.test_array_list.ArrayListDefault) ... ok
test_setitem_exception (glumpy.graphics.collections.test_array_list.ArrayListDefault) ... ok
test_setitem_key (glumpy.graphics.collections.test_array_list.ArrayListDefault) ... ok
test_setitem_negative (glumpy.graphics.collections.test_array_list.ArrayListDefault) ... ok
test_setitem_range (glumpy.graphics.collections.test_array_list.ArrayListDefault) ... ok
test_setitem_reversed_range (glumpy.graphics.collections.test_array_list.ArrayListDefault) ... ok
test_sizeable (glumpy.graphics.collections.test_array_list.ArrayListDefault) ... ok
test_str (glumpy.graphics.collections.test_array_list.ArrayListDefault) ... ok
test_writeable (glumpy.graphics.collections.test_array_list.ArrayListDefault) ... ok
test_append_one_item (glumpy.graphics.collections.test_collection.BaseCollectionDefault) ... ok
test_append_several_item_1 (glumpy.graphics.collections.test_collection.BaseCollectionDefault) ... ERROR
test_append_several_item_2 (glumpy.graphics.collections.test_collection.BaseCollectionDefault) ... ERROR
test_delete_one_item (glumpy.graphics.collections.test_collection.BaseCollectionDefault) ... ERROR
test_delete_several_item (glumpy.graphics.collections.test_collection.BaseCollectionDefault) ... ERROR
test_init (glumpy.graphics.collections.test_collection.BaseCollectionDefault) ... ok
Failure: AttributeError ('module' object has no attribute 'ceil') ... ERROR
Failure: ImportError (No module named transforms) ... ERROR

Any ideas what I am doing wrong?

Thanks for this great library by the way. The code samples in examples directory are really amazing.

@rougier
Copy link
Member

rougier commented May 16, 2015

Nothing wrong. There are no real unit tests yet in glumpy.

@rougier rougier closed this as completed Jun 23, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants