Skip to content
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

test suite on windows? #84

Closed
agramfort opened this issue Mar 10, 2018 · 24 comments
Closed

test suite on windows? #84

agramfort opened this issue Mar 10, 2018 · 24 comments

Comments

@agramfort
Copy link

hi,

we've been trying with @massich to migrate our build system to the matio conda packages for the OpenMEEG project.

So far we build everything from source using CMake external project mechanism but it makes our CI really slow and makes us maintain a lot of code. Also we would like to make soon a conda package based on the matio one.

while we thought we were almost there as it was working on mac and linux, we hit test errors on windows that only appear when we allow support for matlab IO. So it's matio related. See CIs status at the bottom of : massich/findmkl_openmeeg#32

before digging into this we wanted to know if tests were run on windows by appveyor or some continuous integration? if someone tells us that all tests pass on windows then it's a bug in our code:
https://github.com/massich/findmkl_openmeeg/blob/master/OpenMEEGMaths/include/MatlabIO.H
that is specific to windows....

could there be any compiler definition / option that we may have missed on windows?

thanks a lot for any feedback or hint.

thanks

@tbeu
Copy link
Owner

tbeu commented Mar 10, 2018

I run the restsuite manually on my Win machine using MinGW (as it supports autotools). But it is not on Appveyor CI.

Sorry, I cannot see the error you are pointing to.

@tbeu tbeu added the question label Mar 10, 2018
@agramfort
Copy link
Author

so the tests are not run using visual studio?

let's see if we can provide with @massich a small example to replicate the windows pb we observed using the windows conda package.

@tbeu
Copy link
Owner

tbeu commented Mar 11, 2018

so the tests are not run using visual studio?

I do all the debugging and development on MSVC.

But you are right, before running the testsuite in MinGW I could replace the MinGW binaries by the MSVC binaries to check how it performs. Let's see.

@agramfort
Copy link
Author

agramfort commented Mar 11, 2018 via email

@tbeu
Copy link
Owner

tbeu commented Mar 11, 2018

another question: why is there no matio_test_cases_compressed_hdf_be.mat?

Because I have no BE machine with MATLAB application. See #25.

@tbeu
Copy link
Owner

tbeu commented Mar 11, 2018

Sorry, the compressed one is called matio_test_cases_hdf_be.mat and is there.

@agramfort
Copy link
Author

agramfort commented Mar 11, 2018 via email

@tbeu
Copy link
Owner

tbeu commented Mar 11, 2018

File matio_test_cases_hdf_be.mat corresponds to matio_test_cases_compressed_hdf_le.mat in BE mode. Uncompressed HDF5 was first available with MATLAB R2017a. See #62.

@agramfort
Copy link
Author

agramfort commented Mar 11, 2018 via email

@tbeu tbeu added invalid and removed question labels Mar 15, 2018
@tbeu
Copy link
Owner

tbeu commented Mar 15, 2018

Any success running the tests with visual studio binaries?

Yes, 100% test success running the MSVC binaries through the testsuite in a Cygwin64 environment.

I noticed a small configuration improvement though, similar as c7805c9 and will fix the test for the diff command later on:

matio/test/testsuite.at

Lines 55 to 62 in 5c2d85b

if test "$IS_WIN32" = "yes"; then
pwd () {
command pwd -W "$@"
}
diff () {
command diff --strip-trailing-cr "$@"
}

@tbeu tbeu closed this as completed Mar 15, 2018
@agramfort
Copy link
Author

agramfort commented Mar 15, 2018 via email

@massich
Copy link
Contributor

massich commented Mar 15, 2018

is there the possibility to add .appveyor.yml running the tests so that we can inspect and make sure we replicate properly?

We have created a cmake project to build matio without touching a single line of matio's codebase. But we don't seem to be able to include the testsuit without breaking the CI. (see this PR)

@tbeu
Copy link
Owner

tbeu commented Mar 15, 2018

I exported the appveyor.yml: appveyor.zip

@agramfort
Copy link
Author

agramfort commented Mar 15, 2018 via email

@tbeu
Copy link
Owner

tbeu commented Mar 15, 2018

I know. But I attached the exported config.

@massich
Copy link
Contributor

massich commented Mar 15, 2018

I see. If you upload this .appveyor.yml to my fork and do test: on won't work because you are testing using Cygwin64 in your local machine and to export the tests to MSVC is not feasible.

@papadop
Copy link
Contributor

papadop commented Mar 15, 2018

Alexandre and Joan, I'm working to integrate our OpenMEEG/matio cmake "fork" into the main matio repo. The new testsuite (when fully operational, which is not yet the case) will be able to run on windows. I hope to have a fully working prototype soon.
@tbeu: I'm working on the testsuite to complete the work. This is also why I did (and still polishing) the autoconf simplifications (my newest branch), to make this a little bit easier.... So in the end, no codebase change will not totally be true. But minimal code base change (and common codebase for autoconf and cmake versions) is true.

@tbeu
Copy link
Owner

tbeu commented Mar 18, 2018

If you upload this .appveyor.yml to my fork and do test: on won't work because you are testing using Cygwin64 in your local machine and to export the tests to MSVC is not feasible.

True. This was only a local test I run for you after you asked for it. It is not part of any CI.

tbeu added a commit that referenced this issue Mar 25, 2018
@tbeu tbeu removed the invalid label Mar 26, 2018
@tbeu
Copy link
Owner

tbeu commented Apr 17, 2018

is there the possibility to add .appveyor.yml running the tests so that we can inspect and make sure we replicate properly?

Check 7560022.

@agramfort
Copy link
Author

agramfort commented Apr 17, 2018 via email

@tbeu
Copy link
Owner

tbeu commented Apr 17, 2018

Yes. Neither I succeeded in running the 64-bit build nor the MinGW build. Sorry for that. If you are luckier than me I would be glad to update.

@agramfort
Copy link
Author

agramfort commented Apr 17, 2018 via email

@papadop
Copy link
Contributor

papadop commented Apr 17, 2018

The cmake branch will probably help here.... Some more patience is needed as I have some personal problems right now. Give some more weeks to polish things up......

@tbeu
Copy link
Owner

tbeu commented Dec 26, 2019

Yes. Neither I succeeded in running the 64-bit build nor the MinGW build. Sorry for that. If you are luckier than me I would be glad to update.

Finally, test suite on Windows is available for cygwin, cygwin64 and mingw-w64 by 809af56.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants