tigl
tigl copied to clipboard
outdated pythonwrapper-tests
Seems to me that the pythonwrapper-tests.py is outdated. I build TiGL with the TIGL_BUILD_TEST activate. Then, when I try to run the "runtests.sh" script in folder "./build/tests/unittests/", I get the error "tiglwrapper" not present. So I make sure that the variable PYTHONPATH and LD_LIBRARY_PATH was correctly set, but there was still the same error. I realize that the generate wrapper was named "tigl3wrapper", but "tiglwrapper is used in "pythonwrapper-test.py. So I update the pythonwrapper-test.py file to use tigl3wrapper instead of tiglwrapper . I do the same for tixiwrapper. (see the file attached to this issue) Now most of the tests are running, but there is still some errors.
Also, it does not work with python 3. "unicode()" is no longer part of python. Used in file nsiqcppstyle.py in def ModulePath(): It does work with python2.
Also, it seems the unit tests will not run on windwows? There is only a runtests.sh but no bat. Running with the VS2019 Test explorer only results in a syntaxheck. Using RUN_TESTS produces an error - see https://gist.github.com/spirritus/0467e9498d81de966a1aea1243aa9812