-
Notifications
You must be signed in to change notification settings - Fork 77
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
tests: make tests run in CI on windows #500
Conversation
If you can get some of the tests to run but not all, feel free to add some back to the exclusion list. Any step forward would be helpful! |
Yes the goal of this pr is just to make test passed that are related to missing all. I removed all the filter for now to see what is working and what is not. |
39e27c7
to
08b463d
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is awesome, thanks so much. Just a few minor comments
Maybe we can revive #243 after merging this 🤔 |
d4d46d4
to
0c13a84
Compare
I've force push a slight modification that also make valgrind test work with ninja multi config. So that every test can pass when using the CMakePresets.json from my other PR. |
0c13a84
to
83ddaf8
Compare
They were failing due to missing dll. This commit - inject the location of Qt dll in the PATH - Qt plugin directory in QT_PLUGIN_PATH - Qml import path in QML_IMPORT_PATH & QML2_IMPORT_PATH They are not necessary to every tests, but at least they should be robust for the future when more tests will be added. This commit use `ENVIRONMENT_MODIFICATION` instead of `ENVIRONMENT`, since adding a value to the PATH in windows is a mess otherwise with CMake, because `;` is used as a list separator. I took the liberty to refactor some boilerplate code, to make it working more easily. More refactoring is needed to remove boilerplate code. fixup!
…d by cmake project
83ddaf8
to
620ca02
Compare
They were failing due to missing dll. This commit
They are not necessary to every tests, but at least they should be robust for the future when more tests will be added.
This commit use
ENVIRONMENT_MODIFICATION
instead ofENVIRONMENT
, since adding a value to the PATH in windows is a mess otherwise with CMake, because;
is used as a list separator.It also move
add_subdirectory
of book and example at the end of main CMakeLists.txt file, in order not to duplicate code to setRUNTIME_ENV
.Next step is to refactor all the
add_test
function in some helper functionadd_cxxqt_test
or something like that.fix #111