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

how to run tests? #177

Closed
totaam opened this issue Aug 11, 2012 · 18 comments
Closed

how to run tests? #177

totaam opened this issue Aug 11, 2012 · 18 comments

Comments

@totaam
Copy link
Collaborator

totaam commented Aug 11, 2012

Issue migrated from trac ticket # 177

component: core | priority: trivial | resolution: fixed

2012-08-11 11:06:18: onlyjob created the issue


Sorry for troubles, this is basically just a question.

Could you please kindly advise how to run tests?

I get error:

  File "tests/yatest.py", line 356, in <module>
    YaTest().main()
  File "tests/yatest.py", line 99, in main
    magic_invoke = py.magic.invoke
  File "/usr/lib/python2.6/dist-packages/py/_apipkg.py", line 112, in __makeattr
    raise AttributeError(name)
AttributeError: magic

What command do you use?

Thank you.

@totaam
Copy link
Collaborator Author

totaam commented Aug 13, 2012

2012-08-13 11:10:54: antoine changed status from new to accepted

@totaam
Copy link
Collaborator Author

totaam commented Aug 13, 2012

2012-08-13 11:10:54: antoine

@totaam
Copy link
Collaborator Author

totaam commented Aug 13, 2012

2012-08-13 11:10:54: antoine commented


These tests have not been used in years...

I may try to do something about it one day, don't hold your breath.

@totaam
Copy link
Collaborator Author

totaam commented Aug 13, 2012

2012-08-13 12:55:47: onlyjob commented


I see, thank you for your comment.
I thought I just couldn't run them due to my ignorance in python so I feel much better now. :)

@totaam
Copy link
Collaborator Author

totaam commented Aug 24, 2014

2014-08-24 05:41:43: totaam

@totaam
Copy link
Collaborator Author

totaam commented Aug 24, 2014

2014-08-24 05:41:43: totaam commented


As part of #660, let's try to at least have basic regression tests and unit tests for the next release.

@totaam
Copy link
Collaborator Author

totaam commented Sep 18, 2014

2014-09-18 10:57:08: totaam commented


As of r7683, we have some simple unit tests and we run them as part of the %check step of the rpmbuild process.
I will continue to add more there, and re-work at least some of the other tests into another new test tree. (this one for tests that require spawning a server and interacting with it, much more tricky to get right!)

@totaam
Copy link
Collaborator Author

totaam commented Oct 1, 2014

2014-10-01 06:25:50: totaam commented


Tests needed fixes in r7854 after some tests were added which required server components (and those are not built with python3).

@totaam
Copy link
Collaborator Author

totaam commented Oct 8, 2014

2014-10-08 17:19:52: totaam commented


Had to disable tests on centos6 (r7915) to be able to build rpms..

@totaam
Copy link
Collaborator Author

totaam commented Apr 20, 2015

2015-04-20 19:01:10: antoine commented


Had to disable the new xor test in r9087 (not sure why - maybe we can't test cython modules?)

@totaam
Copy link
Collaborator Author

totaam commented Apr 20, 2015

2015-04-20 19:01:10: antoine

@totaam
Copy link
Collaborator Author

totaam commented Apr 29, 2015

2015-04-29 08:31:11: antoine changed status from accepted to new

@totaam
Copy link
Collaborator Author

totaam commented Apr 29, 2015

2015-04-29 08:31:11: antoine commented


The cython tests were failing because we were testing with the wrong python interpreter when spawning a subprocess, r9187 fixes that amongst other things.
Many other small fixes and tests added in r9186, r9191 (and minor issues fixed along the way).

@totaam
Copy link
Collaborator Author

totaam commented Apr 29, 2015

2015-04-29 08:31:17: antoine changed status from new to closed

@totaam
Copy link
Collaborator Author

totaam commented Apr 29, 2015

2015-04-29 08:31:17: antoine set resolution to fixed

@totaam
Copy link
Collaborator Author

totaam commented Apr 29, 2015

2015-04-29 08:31:17: antoine commented


This will do for now, all the unit tests are being run as part of the rpmbuild check stage, and we can schedule some more thorough tests for the next release, see #847.

@totaam totaam closed this as completed Apr 29, 2015
@totaam
Copy link
Collaborator Author

totaam commented May 2, 2015

2015-05-02 10:11:47: antoine commented


Minor build fixes for Fedora r9210: verify the python3 libs required are installed using BuildRequires statements.

@totaam
Copy link
Collaborator Author

totaam commented May 5, 2015

2015-05-05 06:40:09: antoine commented


Many more tests added to trunk, see r9246, r9247, r9248, r9249, r9253, r9255

This was referenced Jan 22, 2021
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

1 participant