-
Notifications
You must be signed in to change notification settings - Fork 52
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 ta_test not built on "make" #26
Comments
Yes, the build instruction in INSTALL are very out of date. It is on my list of things to do. The errors you see are real, and have since been in the main branch. I will back port the change and update the release. |
I have finished back porting changes. All unit tests should be passing now. Please use v0.4.4-alpha. Fixed in commit e6edd8b. |
I looked at the INSTALL file again. The part that you thought was referring to autotools, is actually referring to the configure script that wraps cmake. The dependencies on autoconf and automake are for MADNESS, because we assume a non-release version of MADNESS. This is necessary because I have made many changes to the MADNESS parallel runtime (e.g. bug fixes, new features, interface improvements, etc.) and TA only works with specific, non-release versions of MADNESS. For your purposes, TiledArray v0.4.4-alpha and MADNESS v0.10 should work correctly. |
Thanks for the release! This is getting rapidly off-topic for this issue, but I still get an error with 0.4.4:
I'm not quite sure whether that means all 393 tests failed or just one of them, the summary is not very clear. Also note that I had to include commit 73de0b0 to make 0.4.4 build with the current 0.10 release of MADNESS, as well as the MADNESS-related hunk for type_traits.h in a593684 in order to get it to compile, maybe this is related. |
The error looks like an assertion in the Boost unit test. Since the error occurred before MADNESS runtime initialization, I do not think this is a TA related error (though it could be misuse of Boost.Test). Which MPI are you using? If it is OpenMPI you may need to run the unit test, found in the tests directory, with mpiexec.
I also recommend running with If everything works well you should see the following output.
For I will look at the commits you referenced and see if they should go in the 0.4 branch. |
I do not see a reference to the second commit you indicated (a593684). Can you verify this or give me the date and time stamp of the commit? |
I pushed a new commit on the 0.4 branch which includes the changes necessary for MADNES 0.10. The commit you cherry-picked included some code that should not be in the 0.4 branch. This also includes the change for type_traits.h. |
Sorry, that was a copy-paste error, I meant 4a59368 . Its last hunk is needed because madness/world/enable_if.h got removed from MADNESS it seems. Though maybe it is the wrong fix? |
You selected the correct change. My last commit to 0.4 should be up to date then. I suggest pulling that commit because it omits some code from 73de0b0 that should not be in the release. |
mpiexec works, thanks! However, the main topic of this issue is still open, i.e. running "make test" just fails with "Unable to find executable: ta_test" and after building ta_test manually, it fails with "Exception: Other", while running it via mpiexec directly works. So there are work-around avaiable, but it should be easier to discover and run the test-suite at some point in the future. |
- CTest now generates the unit test executable. Fixes #26
The new tests I just pushed to the master branch fixes the original issue. CTest should do the right thing now. However, I am not going to back port this change to the 0.4 branch. The solution there, to run |
The installation instructions are not very clear on that (INSTALL only seems to reference an older autotools-based installation?), but I did the following:
This resulted in no output.
If I run "make test" instead, I get:
What seems to be required is "cd tests; make ta_test", which builds the test suite. However, I think this should be hardwired into the top-level make at least if the user passes -DTA_BUILD_UNITTEST=ON to cmake.
Finally, I get the following errors running the testsuite:
Is this currently expected, am I doing something else wrong or should I open a separate issue for that?
The text was updated successfully, but these errors were encountered: