Skip to content
Snippets Groups Projects
Commit 2b203102 authored by Sergey Kosukhin's avatar Sergey Kosukhin
Browse files

adds a script to maintain MPI test dependencies

parent f1080350
No related branches found
No related tags found
No related merge requests found
#!/bin/bash
# Copyright (c) 2024 The YAC Authors
#
# SPDX-License-Identifier: BSD-3-Clause
prev_log_name=
for template_name in \
$(find . -maxdepth 1 -type f -a -name '*.sh.in' -exec grep -l '@MPI_LAUNCH@' {} \; | sort -r); do
template_name="${template_name#'./'}"
log_name="${template_name%'.sh.in'}.log"
if test -n "${prev_log_name}"; then
echo "${prev_log_name}: ${log_name}"
fi
prev_log_name=${log_name}
done
......@@ -5,6 +5,7 @@
TEST_EXTENSIONS = .sh
TESTS = \
test_coroutines.sh \
test_interface.sh \
test_multithreading.sh \
test_nc2plot.sh \
......@@ -12,23 +13,26 @@ TESTS = \
test_noise2nc.sh \
test_noise2nc_parallel.sh \
test_noise2plot.sh \
test_noise2plot_parallel.sh \
test_coroutines.sh
test_noise2plot_parallel.sh
test_nc2plot.log: test_noise2nc.log
if TEST_MPI
# Some tests require output files of the others:
test_nc2plot.log: test_noise2nc.log
test_nc2plot_parallel.log: test_noise2nc_parallel.log
if !ENABLE_CONCURRENT_MPI_TESTS
# Run MPI tests one by one:
test_interface.log: test_noise2plot_parallel.log
test_noise2plot_parallel.log: test_nc2plot_parallel.log
test_noise2nc_parallel.log: test_multithreading.log
test_noise2plot_parallel.log: test_noise2plot.log
test_noise2plot.log: test_nc2plot_parallel.log
test_noise2nc_parallel.log: test_nc2plot.log
test_noise2nc.log: test_multithreading.log
test_multithreading.log: test_interface.log
test_interface.log: test_coroutines.log
endif
endif
EXTRA_DIST = \
test_interface.py \
test_coroutines.py
test_coroutines.py \
test_interface.py
clean-local:
-rm -rf *.nc *.plots
......@@ -67,6 +67,8 @@ XFAIL_TESTS = \
if TEST_MPI
if !ENABLE_CONCURRENT_MPI_TESTS
# Run MPI tests one by one:
# The following dependencies are generated with
# $(top_srcdir)/config/mpi_test_deps.sh.
test_read_scrip_parallel.log: test_read_icon_parallel.log
test_read_icon_parallel.log: test_duplicate_stencils_parallel.log
endif
......
......@@ -115,6 +115,8 @@ XFAIL_TESTS = \
if TEST_MPI
if !ENABLE_CONCURRENT_MPI_TESTS
# Run MPI tests one by one:
# The following dependencies are generated with
# $(top_srcdir)/config/mpi_test_deps.sh.
test_proc_sphere_part_parallel.log: test_mpi_error.log
test_mpi_error.log: test_io_config.log
test_io_config.log: test_interpolation_parallel6.log
......
......@@ -136,6 +136,8 @@ XFAIL_TESTS = \
if TEST_MPI
if !ENABLE_CONCURRENT_MPI_TESTS
# Run MPI tests one by one:
# The following dependencies are generated with
# $(top_srcdir)/config/mpi_test_deps.sh.
test_restart2.log: test_restart.log
test_restart.log: test_query_routines_c.log
test_query_routines_c.log: test_query_routines.log
......
......@@ -35,7 +35,8 @@ XFAIL_TESTS = \
if !ENABLE_CONCURRENT_MPI_TESTS
# Run MPI tests one by one:
# The following dependencies are generated with
# $(top_srcdir)/config/mpi_test_deps.sh.
endif
AM_CPPFLAGS = \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment