Skip to content

Commit 5e8792c

Browse files
committed
ftools: Allow to Skip 'em all
Save build time by allowing to skip the build of `ftools`. In WarpX, we use our own checksums that do dot rely on silver files. Thus, we can save some CI time by not building the tools.
1 parent dcf8955 commit 5e8792c

File tree

3 files changed

+12
-1
lines changed

3 files changed

+12
-1
lines changed

example-tests.ini

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,12 +101,20 @@ slack_webhookfile = /home/zingale/.slack.webhook
101101
slack_channel = "#castro"
102102
slack_username = "bender"
103103

104+
# We build by default a few tools for output comparison.
105+
# The build time for those can be skipped if they are not needed.
106+
#ftools = fcompare fboxinfo fsnapshot
107+
104108
# some regression tests require tools from the AMReX library to extract the
105109
# relevant information.
106110
# Default compiled tools are: fcompare, fboxinfo, fsnapshot
107111
# should you need additional tools from AMReX, specify the following:
108112
extra_tools = fextract
109113

114+
# Control the build of the particle_compare tool.
115+
# Needed for test particle_tolerance option.
116+
#use_ctools = 1
117+
110118
# Next we specify the source code repositories. Each git repo is
111119
# given its own section.
112120

params.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,8 @@ def load_params(args):
8686
mysuite.reportCoverage = mysuite.reportCoverage or value
8787
elif opt == "emailTo":
8888
mysuite.emailTo = value.split(",")
89+
elif opt == "ftools":
90+
mysuite.ftools = value
8991
elif opt == "extra_tools":
9092
mysuite.extra_tools = value
9193

suite.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -424,6 +424,7 @@ def __init__(self, args):
424424

425425
self.COMP = "g++"
426426

427+
self.ftools = ["fcompare", "fboxinfo", "fsnapshot"]
427428
self.extra_tools = ""
428429

429430
self.add_to_c_make_command = ""
@@ -992,7 +993,7 @@ def build_tools(self, test_list):
992993

993994
self.make_realclean(repo="AMReX")
994995

995-
ftools = ["fcompare", "fboxinfo", "fsnapshot"]
996+
ftools = self.ftools
996997
if ("fextract" in self.extra_tools): ftools.append("fextract")
997998
if ("fextrema" in self.extra_tools): ftools.append("fextrema")
998999
if ("ftime" in self.extra_tools): ftools.append("ftime")

0 commit comments

Comments
 (0)