Build: document and disentangle dependencies

A long-standing unnecessary mutual dependency caused rebuild
of most tests in the standard target, because the ''valgrind suppression''
executable was classified as »tool«, while also depending on the libraies
with the test code.
This commit is contained in:
Fischlurch 2025-11-15 19:08:23 +01:00
parent 75ffb060c7
commit 741b8fe573
2 changed files with 3 additions and 2 deletions

View file

@ -42,7 +42,9 @@ installUIRes = '#$DESTDIR/share/lumiera/'
installConf = '#$DESTDIR/lib/lumiera/config'
#-------------------------------------------------------Configuration
buildSetup = Record(locals())
# passed to LumieraEnvironment() -> env.path.xxxx

View file

@ -97,7 +97,6 @@ Export('testsuite')
# for creating a Valgrind-Suppression file
vgsuppression = envSuite.Program('vgsuppression',['tool/vgsuppression.c']+list(testLibs)+list(core_lib)) ## for suppressing false valgrind alarms
tools += [vgsuppression]
#
@ -144,7 +143,7 @@ Depends(runTests,vgsuppression)
# - 'scons testcode' triggers building of the Testsuite
# - 'scons check' triggers building and running
#
env.Alias('testcode', testsuite )
env.Alias('testcode', testsuite + vgsuppression)
env.Alias('check', runTests )
# allow tempfiles of test.sh to be cleaned