#!/bin/bash12# This file is part of t8code.3# t8code is a C library to manage a collection (a forest) of multiple4# connected adaptive space-trees of general element classes in parallel.5#6# Copyright (C) 2025 the developers7#8# t8code is free software; you can redistribute it and/or modify9# it under the terms of the GNU General Public License as published by10# the Free Software Foundation; either version 2 of the License, or11# (at your option) any later version.12#13# t8code is distributed in the hope that it will be useful,14# but WITHOUT ANY WARRANTY; without even the implied warranty of15# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the16# GNU General Public License for more details.17#18# You should have received a copy of the GNU General Public License19# along with t8code; if not, write to the Free Software Foundation, Inc.,20# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.2122#23# This file lists all paths to test binaries that exist in the build/test directory.24# The script can be used to run the check_valgrind script for every test binary.25# The paths are relative paths assuming an execution from the test/ folder in the build directory.26#2728build_test_directory="../build/test/"2930# Check that path to test folder in build directory is correct.31if [ ! -d "$build_test_directory" ]; then32echo "Directory build/test/ not found!"33exit 134fi3536# Find all executables in the build/test/ directory (that do not have a .so file ending)37# and store the relative paths to the build_test_directory with leading "./".38test_bin_paths=$(find "$build_test_directory" -type f -executable -not -name "*.so" -exec realpath --relative-to="$build_test_directory" {} \; | sed 's|^|./|')3940echo $test_bin_paths414243