enhance CMakeMake easyblock to run ctest command if runtest is True#2838
Conversation
|
@Flamefire At first glance, this will cause trouble with the There may be other easyblocks with a similar problem. |
runtest = True for CMakeMakeCMakeMake easyblock to run ctest command if runtest is True
I'm very sure there cannot be a problem. I introduced True which IMO is safe to assume to be an error.
|
|
Anything missing here? |
@Flamefire A battery of tests with existing easyconfigs that either use Thanks for clarifying why this shouldn't cause trouble, that helps. |
|
Test report by @Flamefire Overview of tested easyconfigs (in order)
Build succeeded for 24 out of 27 (17 easyconfigs in total) |
|
I don't have the Amber sources so they failed, rest looks good though. |
|
running Amber with this eb now... |
Note that this PR requires #2837 too although I expect for Amber it doesn't make a difference. |
|
Test report by @akesandgren Overview of tested easyconfigs (in order)
Build succeeded for 1 out of 1 (1 easyconfigs in total) |
|
Test report by @akesandgren Overview of tested easyconfigs (in order)
Build succeeded for 1 out of 1 (1 easyconfigs in total) |
|
Going in, thanks @Flamefire! |
(created using
eb --new-pr)When using the
CMakeMakeeasyblock or a child of it likeCMakeNinjayou can useruntest = 'test'to run the tests which is however not user friendly and forCMakeNinjait does not work because it runsmake test, so you needtest_cmdSome EasyBlocks already allow
runtest = Trueto enable running tests, this PR introduces that for CMakeMake and defaults thetest_cmdin that case toctestand (if supported by recent CMake) appends--no-tests=errorso thatruntest = Truewill not silently succeed when no tests are found.Requires #2837 as setting
test_cmdwas not enough (error when concatenating theNoneofruntest) and it needs a default ofNonefortest_cmdso it is able to detect if the user set it or wants the default.Written with backward compatibility in mind.
requires:
test_cmdwithoutruntestforConfigureMake#2837