Open WilkAndy opened 4 years ago
I'm not in the loop anymore but I still get alerted for civet issues, and since I have nothing better to do with my life, I took a look. :)
This doesn't seem to be a civet issue though. Just building the geochemistry unit test executable and running it manually shows that no tests are run. In fact, it appears that the lib/libgeochemistry-unit-opt.so (where all the tests are) is not even linked to the executable (as verified by ldd) even though it definitely is on the link line. This might be due to nothing actually referencing the symbols in libgeochemistry-unit-opt.so so the linker just silently drops it. Forcing the linkage by, for example, putting a dummy function in one of the unit test source files and calling it from main(), gets the unit tests running again. So it seems it is a moose build issue and no way am I going to try to figure that out :)
By the way, moose/unit
is not affected by this because it does reference functions in libmoose-unit-opt.so when main() calls
registerApp(MooseUnitApp)
. The modules don't have separate unit test apps, so they just call registerApp(<Module>App)
Thanks for this detective work, @brianmoose . I'm now doing some of my own - will report here if i find anything which is very unlikely since i'm not experienced in this sort of thing.
I can't replicate what i think you're reporting:
moose/modules/geochemistry/unit/> METHOD=dbg make -j 2
moose/modules/geochemistry/unit/> ./geochemistry-unit-dbg
runs my unit tests
What OS are you running? Might just be a linux thing...
MacOS
I'm pretty sure i've written a similar idaholab/moose issue in the past few months, but couldn't find it, so sorry for the duplicate if there is one!
CIVET isn't running any of the modules unit tests. For instance:
and similar for all the other modules. In the
geochemistry
module there are ~200 tests that really need to be run for every PR.