[Nexus] More NAPI stuff
Koennecke Mark (PSI)
mark.koennecke at psi.ch
Mon Aug 17 13:40:13 BST 2015
Hi,
> Am 16.08.2015 um 13:23 schrieb Eugen Wintersberger <eugen.wintersberger at desy.de>:
>
> Hi folks,
> here comes a last update on the current status of NAPI and cmake.
> Let me start with apologizing for my sometimes harsh critics on the
> 'missing' test framework for NAPI. Actually I found that there is some
> testing when doing the build with autotools. However, it seems that
> Freddy never added all this functionality to the cmake build and until
> this weekend I never had a close look to the Makefile.am in the test
> source directory. And yes, there is quite some testing.
> So my critics was inappropriately hard (if not entirely wrong ;)), sorry
> for that.
>
> I've added ctest functionality to the build and the C++ and Fortran90
> stuff seems to pass all the tests. Unfortunately, the C-NAPI test fails.
> As the other tests are passing this seems to me like a technical problem
> which I have to sort out.
> Though I've starte with learing autotools (for some other projects) I
> have not reached the chapter about testing (it is the next to read on my
> schedule). So I have to do some more reading before I can continue with
> the testing stuff.
>
> @Tobias: as there is now ctest available and the tests run quite fine,
> can you maybe review the current NAPI test code. The build seems to me
> rather complex. It would be nice if we find a better solution for this.
>
> As I have to read some autotools stuff and go in Holiday end of next
> week, I will most probably not work on NAPI now for around two weeks.
> Expect the next updates in about 2-2.5 weeks.
>
I had another go after this weekends work. BTW: I removed the CMakeCache file, so I reran cmake
from scratch …
The C language test fails for two reasons:
* It derives the file format to test from the executable name, defaulting to HDF4. A dubious concept, I know.
I now pushed back modification where it tries to run the HDF5 test with Eugens choosen name for the test program,
* The next thing is that it refuses to run any test. This is because an entry in nxconfig.h or a compile time flag is
missing. The napi expects at compile time to have WITH_HDF5, WITH_HDF4, WITH_XML defined in
order to conditionally include the necessary code. I do not know enough about cmake to know where to fix this.
Regards,
Mark
> regards
> Eugen
>
> _______________________________________________
> NeXus mailing list
> NeXus at nexusformat.org
> http://lists.nexusformat.org/mailman/listinfo/nexus
More information about the NeXus
mailing list