Roman Yakovenko wrote:
>> What additional configuration is required to run the unit tests? I
>> always get an error 'include path "" should exists or to be a valid
>> directory name.' whenever I run a test.
>
> There are 3 files you should add you settings in:
> pygccxml:
> unittests/autoconfig.py
> Py++:
> pyplusplus_dev/ environment.py
> pyplusplus_dev/unittests/autoconfig.py
All right, I didn't notice the file environment.py. I added my paths to
that file and now it seems to work.
Here are a few comments on the setup:
- I made a small change to autoconfig.py so that the paths in
environment.py can use native backslashes on Windows.
- Shouldn't the name of the Boost.Python lib also be in environment.py?
I take it this file contains all the user/platform dependent setting
whereas autoconfig.py is a fixed file. In my case, I had to change the
name in autoconfig.py.
- I think the test for gccxml.executable is too strict. The script
aborts when it cannot find a file that is specified in this variable.
This forced me to specify an absolute path which wouldn't have been
necessary because I have gccxml in my PATH.
- When I run test_all.py I get 4 failures:
[I don't see the first failure as the buffer of the DOS box is too small]
ERROR: test (operators_tester.tester_t)
ERROR: test (indexing_suites2_tester.tester_t)
ERROR: test (no_init_tester.tester_t)
Is that ok? (well, I know it's not ok, but I mean, do you get those,
too?) Do the tests run on Windows properly anyway? (I already had
problems with gccxml on Windows before)
- Matthias -
|