SoarGroup / Soar

Soar, a general cognitive architecture for systems that exhibit intelligent behavior.
http://soar.eecs.umich.edu
Other
322 stars 70 forks source link

Have cibuildwheel use `TestPythonSML.py` for test command #460

Closed ShadowJonathan closed 1 month ago

ShadowJonathan commented 1 month ago

After #448

Currently this following python code is executed to test:

import soar_sml

k = soar_sml.Kernel.CreateKernelInNewThread()
a = k.CreateAgent('soar')

assert(a.ExecuteCommandLine('echo hello world').strip() == 'hello world')

This makes sure the library at least imports, and the kernel can start, but it doesn't do a deeper test of the library itself.

We could (re)use TestPythonSML.py for this, and run it for every single wheel. This'll increase build times, but it could be a more thorough check of what we send to pypi.


Currently there are two lines / chunks which need to be properly converted before we can change the test command to python TestPythonSML.py;