Skip to content

Commit 0ebfee5

Browse files
committed
[Draft] Regression testing: CMake
1 parent c5983eb commit 0ebfee5

File tree

4 files changed

+13
-41
lines changed

4 files changed

+13
-41
lines changed

Regression/WarpX-tests.ini

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,14 @@ sourceTree = C_Src
1111
# suiteName is the name prepended to all output directories
1212
suiteName = WarpX
1313

14-
COMP = g++
15-
add_to_c_make_command = TEST=TRUE USE_ASSERTION=TRUE WarpxBinDir=
14+
#COMP = g++
1615

1716
purge_output = 1
1817

18+
useCmake = 1
19+
isSuperbuild = 1
1920
MAKE = make
20-
numMakeJobs = 8
21+
numMakeJobs = 2
2122

2223
# MPIcommand should use the placeholders:
2324
# @host@ to indicate where to put the hostname to run on
@@ -53,10 +54,11 @@ branch = 798240684d9696fb00392688e3c216e21596b921
5354
[source]
5455
dir = /home/regtester/AMReX_RegTesting/warpx
5556
branch = development
57+
cmakeSetupOpts = -DAMReX_ASSERTIONS=ON
5658

57-
[extra-PICSAR]
58-
dir = /home/regtester/AMReX_RegTesting/picsar/
59-
branch = a78be127f66adc1558f527edc8964e37e3a055ff
59+
#[extra-PICSAR]
60+
#dir = /home/regtester/AMReX_RegTesting/picsar/
61+
#branch = a78be127f66adc1558f527edc8964e37e3a055ff
6062

6163
# individual problems follow
6264

@@ -317,6 +319,7 @@ inputFile = Examples/Tests/Langmuir/inputs_3d_multi_rt
317319
runtime_params = warpx.do_dynamic_scheduling=0
318320
dim = 3
319321
addToCompileString =
322+
cmakeSetupOpts = -DWarpX_PRECISION=DOUBLE -DWarpX_DIMS=3
320323
restartTest = 0
321324
useMPI = 1
322325
numprocs = 2

Tools/Release/updateAMReX.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@
102102

103103
# Updates #####################################################################
104104

105-
# run_test.sh (used also for Azure Pipelines)
105+
# run_test.sh (used also for Azure Pipelines) TODO: could maybe be short-cut now
106106
run_test_path = str(REPO_DIR.joinpath("run_test.sh"))
107107
with open(run_test_path, encoding='utf-8') as f:
108108
run_test_content = f.read()

Tools/Release/updatePICSAR.py

Lines changed: 0 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -102,37 +102,6 @@
102102

103103
# Updates #####################################################################
104104

105-
# run_test.sh (used also for Azure Pipelines)
106-
run_test_path = str(REPO_DIR.joinpath("run_test.sh"))
107-
with open(run_test_path, encoding='utf-8') as f:
108-
run_test_content = f.read()
109-
# branch/commit/tag (git fetcher) version
110-
# cd picsar && git checkout COMMIT_TAG_OR_BRANCH && cd -
111-
run_test_content = re.sub(
112-
r'(.*cd\s+picsar.+git checkout\s+--detach\s+)(.+)(\s+&&\s.*)',
113-
r'\g<1>{}\g<3>'.format(PICSAR_new_branch),
114-
run_test_content, flags = re.MULTILINE)
115-
116-
with open(run_test_path, "w", encoding='utf-8') as f:
117-
f.write(run_test_content)
118-
119-
if ConfigUpdater is not None:
120-
# WarpX-tests.ini
121-
tests_ini_path = str(REPO_DIR.joinpath("Regression/WarpX-tests.ini"))
122-
cp = ConfigUpdater()
123-
cp.optionxform = str
124-
cp.read(tests_ini_path)
125-
cp['extra-PICSAR']['branch'].value = PICSAR_new_branch
126-
cp.update_file()
127-
128-
# WarpX-GPU-tests.ini
129-
tests_gpu_ini_path = str(REPO_DIR.joinpath("Regression/WarpX-GPU-tests.ini"))
130-
cp = ConfigUpdater()
131-
cp.optionxform = str
132-
cp.read(tests_gpu_ini_path)
133-
cp['extra-PICSAR']['branch'].value = PICSAR_new_branch
134-
cp.update_file()
135-
136105
# WarpX references to PICSAR: cmake/dependencies/PICSAR.cmake
137106
with open(PICSAR_cmake_path, encoding='utf-8') as f:
138107
PICSAR_cmake_content = f.read()

run_test.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,13 +53,13 @@ echo "cd $PWD"
5353
git clone https://github.com/AMReX-Codes/amrex.git
5454
cd amrex && git checkout --detach 798240684d9696fb00392688e3c216e21596b921 && cd -
5555
# Use QED brach for QED tests
56-
git clone https://github.com/ECP-WarpX/picsar.git
57-
cd picsar && git checkout --detach a78be127f66adc1558f527edc8964e37e3a055ff && cd -
56+
#git clone https://github.com/ECP-WarpX/picsar.git
57+
#cd picsar && git checkout --detach a78be127f66adc1558f527edc8964e37e3a055ff && cd -
5858
# warpx-data contains various required data sets
5959
git clone --depth 1 https://github.com/ECP-WarpX/warpx-data.git
6060

6161
# Clone the AMReX regression test utility
62-
git clone https://github.com/AMReX-Codes/regression_testing.git
62+
git clone --branch cmake-extraConfig https://github.com/ax3l/regression_testing.git
6363

6464
# Prepare regression tests
6565
mkdir -p rt-WarpX/WarpX-benchmarks

0 commit comments

Comments
 (0)