Xpra: Ticket #177: how to run tests?

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>
  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.

Mon, 13 Aug 2012 10:10:54 GMT - Antoine Martin: status, version, milestone changed

These tests have not been used in years...

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

Mon, 13 Aug 2012 11:55:47 GMT - onlyjob:

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. :)

Sun, 24 Aug 2014 04:41:42 GMT - Antoine Martin: milestone changed

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

Thu, 18 Sep 2014 09:57:08 GMT - Antoine Martin:

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!)

Wed, 01 Oct 2014 05:25:49 GMT - Antoine Martin:

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

Wed, 08 Oct 2014 16:19:52 GMT - Antoine Martin:

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

Mon, 20 Apr 2015 18:01:10 GMT - Antoine Martin:

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

Wed, 29 Apr 2015 07:31:11 GMT - Antoine Martin: status changed

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).

Wed, 29 Apr 2015 07:31:17 GMT - Antoine Martin: status changed; resolution set

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.

Sat, 02 May 2015 09:11:46 GMT - Antoine Martin:

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

Tue, 05 May 2015 05:40:09 GMT - Antoine Martin:

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

Sat, 23 Jan 2021 04:47:37 GMT - migration script:

this ticket has been moved to: https://github.com/Xpra-org/xpra/issues/177