|
|
Subscribe / Log in / New account

dependencies between tests

dependencies between tests

Posted Apr 29, 2025 16:14 UTC (Tue) by tzafrir (subscriber, #11501)
Parent article: Barnes: Parallel ./configure

Can you test anything that depends on a previous test? I guess you mostly work around it by having a separate stage for checking compiler flags.

BTW: for something far uglier I recently happened to post: https://github.com/openucx/xpmem/pull/80


to post comments

dependencies between tests

Posted Apr 29, 2025 17:04 UTC (Tue) by jepler (subscriber, #105975) [Link]

probably yes but the Makefile might need the dependencies made explicit so it doesn't run the depending test before its dependent header has been generated.

dependencies between tests

Posted Apr 29, 2025 18:36 UTC (Tue) by ballombe (subscriber, #9523) [Link] (1 responses)

autoconf already has a cache feature , see --config-cache, --cache-file, etc.
One can also use ccache.

dependencies between tests

Posted May 7, 2025 2:14 UTC (Wed) by zougloub (guest, #46163) [Link]

Well, ccache skips caching of autoconf ("conftest") checks.

dependencies between tests

Posted Apr 29, 2025 20:21 UTC (Tue) by iabervon (subscriber, #722) [Link]

Make's core functionality is generating files that depend on other generated files, so that would just naturally work. However, it's a bit trickier to get it to figure out by itself that a test uses the compiler flags and therefore depends on checking the compiler flags (as opposed to the developer indicating the dependency).


Copyright © 2025, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds