Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replaced ENABLE_LESS_TESTS by TEST_LEVEL #1413

Merged
merged 6 commits into from
Feb 20, 2025
Merged
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/add_release_documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ jobs:
&& echo CXXFLAGS_var="-Wall -pedantic -O3" >> $GITHUB_ENV
- name: build config variables
if: ${{ env.MINOR_RELEASE == 'true' }}
run: export CONFIG_OPTIONS="--without-blas ${LESS_TEST_OPTION}"
run: export CONFIG_OPTIONS="--without-blas ${TEST_LEVEL_FLAG}"
&& export CONFIG_SERIAL_DEBUG="$CONFIG_OPTIONS --enable-debug --with-sc=$SC_SERIAL_DEBUG/install --with-p4est=$P4EST_SERIAL_DEBUG/install"
- name: Check vars
if: ${{ env.MINOR_RELEASE == 'true' }}
Expand Down
18 changes: 9 additions & 9 deletions .github/workflows/build_cmake_tarball.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,10 @@ env:
on:
workflow_call:
inputs:
LESS_TESTS:
TEST_LEVEL:
required: true
type: boolean
description: 'Enable less tests option for configuring'
type: number
description: 'Test level used for configuring (0 for full tests, 1 for less thorough tests, 2 for minimal tests)'

jobs:
build:
Expand Down Expand Up @@ -75,7 +75,7 @@ jobs:
#
#
- name: build config variables
run: export CONFIG_OPTIONS="${LESS_TEST_OPTION} -GNinja -DCMAKE_C_FLAGS_DEBUG=$DEBUG_FLAGS -DCMAKE_CXX_FLAGS_DEBUG=$DEBUG_FLAGS -DT8CODE_USE_SYSTEM_SC=OFF -DT8CODE_USE_SYSTEM_P4EST=OFF -DT8CODE_BUILD_PEDANTIC=ON -DT8CODE_BUILD_WALL=ON -DT8CODE_BUILD_WERROR=ON -DT8CODE_ENABLE_MPI=$MPI -DCMAKE_BUILD_TYPE=$BUILD_TYPE"
run: export CONFIG_OPTIONS="${TEST_LEVEL_FLAG} -GNinja -DCMAKE_C_FLAGS_DEBUG=$DEBUG_FLAGS -DCMAKE_CXX_FLAGS_DEBUG=$DEBUG_FLAGS -DT8CODE_USE_SYSTEM_SC=OFF -DT8CODE_USE_SYSTEM_P4EST=OFF -DT8CODE_BUILD_PEDANTIC=ON -DT8CODE_BUILD_WALL=ON -DT8CODE_BUILD_WERROR=ON -DT8CODE_ENABLE_MPI=$MPI -DCMAKE_BUILD_TYPE=$BUILD_TYPE"
&& echo CONFIG_OPTIONS="$CONFIG_OPTIONS" >> $GITHUB_ENV
- name: cmake
run: mkdir build && cd build && cmake ../ $CONFIG_OPTIONS
Expand Down Expand Up @@ -118,12 +118,12 @@ jobs:
echo TAR_DIR="$TAR_DIR" >>$GITHUB_ENV

# build config vars
- name: less-test-option
if: ${{ inputs.LESS_TESTS }}
run: export LESS_TEST_OPTION="-DT8CODE_ENABLE_LESS_TESTS=ON"
&& echo LESS_TEST_OPTION="$LESS_TEST_OPTION" >> $GITHUB_ENV
- name: Set test level
if: ${{ inputs.TEST_LEVEL != 0 }}
run: export TEST_LEVEL_FLAG="-DT8CODE_TEST_LEVEL=${{ inputs.TEST_LEVEL }}"
&& echo TEST_LEVEL_FLAG="$TEST_LEVEL_FLAG" >> $GITHUB_ENV
- name: build config variables
run: export CONFIG_OPTIONS="${LESS_TEST_OPTION} -GNinja -DCMAKE_C_FLAGS_DEBUG=${DEBUG_CONFIG} -DCMAKE_CXX_FLAGS_DEBUG=${DEBUG_CONFIG} -DT8CODE_USE_SYSTEM_SC=OFF -DT8CODE_USE_SYSTEM_P4EST=OFF -DT8CODE_BUILD_PEDANTIC=ON -DT8CODE_BUILD_WALL=ON -DT8CODE_BUILD_WERROR=ON -DT8CODE_ENABLE_MPI=$MPI -DCMAKE_BUILD_TYPE=$BUILD_TYPE"
run: export CONFIG_OPTIONS="${TEST_LEVEL_FLAG} -GNinja -DCMAKE_C_FLAGS_DEBUG=${DEBUG_CONFIG} -DCMAKE_CXX_FLAGS_DEBUG=${DEBUG_CONFIG} -DT8CODE_USE_SYSTEM_SC=OFF -DT8CODE_USE_SYSTEM_P4EST=OFF -DT8CODE_BUILD_PEDANTIC=ON -DT8CODE_BUILD_WALL=ON -DT8CODE_BUILD_WERROR=ON -DT8CODE_ENABLE_MPI=$MPI -DCMAKE_BUILD_TYPE=$BUILD_TYPE"
&& echo CONFIG_OPTIONS="$CONFIG_OPTIONS" >> $GITHUB_ENV
- name: Check vars
run: echo "[$CONFIG_DEBUG]"
Expand Down
16 changes: 8 additions & 8 deletions .github/workflows/tests_cmake_t8code.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,10 @@ on:
required: true
type: string
description: 'Build type (Release/Debug)'
LESS_TESTS:
TEST_LEVEL:
required: true
type: boolean
description: 'Enable less tests option for configuring'
type: number
description: 'Test level used for configuring (0 for full tests, 1 for less thorough tests, 2 for minimal tests)'

jobs:
t8code_cmake_tests:
Expand Down Expand Up @@ -79,12 +79,12 @@ jobs:
# T8CODE
#
# build config vars
- name: less-test option
if: ${{ inputs.LESS_TESTS }}
run: export LESS_TEST_OPTION="-DT8CODE_ENABLE_LESS_TESTS=ON"
&& echo LESS_TEST_OPTION="$LESS_TEST_OPTION" >> $GITHUB_ENV
- name: Set test level
if: ${{ inputs.TEST_LEVEL != 0 }}
run: export TEST_LEVEL_FLAG="-DT8CODE_TEST_LEVEL=${{ inputs.TEST_LEVEL }}"
&& echo TEST_LEVEL_FLAG="$TEST_LEVEL_FLAG" >> $GITHUB_ENV
- name: build config variables
run: export CONFIG_OPTIONS="${LESS_TEST_OPTION} -GNinja -DCMAKE_C_FLAGS_DEBUG=${DEBUG_CONFIG} -DCMAKE_CXX_FLAGS_DEBUG=${DEBUG_CONFIG} -DT8CODE_USE_SYSTEM_SC=ON -DT8CODE_USE_SYSTEM_P4EST=ON -DT8CODE_BUILD_PEDANTIC=ON -DT8CODE_BUILD_WALL=ON -DT8CODE_BUILD_WERROR=ON -DT8CODE_ENABLE_MPI=$MPI -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DSC_DIR=$SC_PATH/install/cmake -DP4EST_DIR=$P4EST_PATH/install/cmake"
run: export CONFIG_OPTIONS="${TEST_LEVEL_FLAG} -GNinja -DCMAKE_C_FLAGS_DEBUG=${DEBUG_CONFIG} -DCMAKE_CXX_FLAGS_DEBUG=${DEBUG_CONFIG} -DT8CODE_USE_SYSTEM_SC=ON -DT8CODE_USE_SYSTEM_P4EST=ON -DT8CODE_BUILD_PEDANTIC=ON -DT8CODE_BUILD_WALL=ON -DT8CODE_BUILD_WERROR=ON -DT8CODE_ENABLE_MPI=$MPI -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DSC_DIR=$SC_PATH/install/cmake -DP4EST_DIR=$P4EST_PATH/install/cmake"
&& echo CONFIG_OPTIONS="$CONFIG_OPTIONS" >> $GITHUB_ENV
# cmake and test
- name: Printing MPI compiler info
Expand Down
16 changes: 8 additions & 8 deletions .github/workflows/tests_cmake_t8code_api.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,10 @@ on:
required: true
type: string
description: 'Build type (Release/Debug)'
LESS_TESTS:
TEST_LEVEL:
required: true
type: boolean
description: 'Enable less tests option for configuring'
type: number
description: 'Test level used for configuring (0 for full tests, 1 for less thorough tests, 2 for minimal tests)'

jobs:
t8code_cmake_tests:
Expand Down Expand Up @@ -80,12 +80,12 @@ jobs:
#
#
# build config vars
- name: less-test option
if: ${{ inputs.LESS_TESTS }}
run: export LESS_TEST_OPTION="-DT8CODE_ENABLE_LESS_TESTS=ON"
&& echo LESS_TEST_OPTION="$LESS_TEST_OPTION" >> $GITHUB_ENV
- name: Set test level
if: ${{ inputs.TEST_LEVEL != 0 }}
run: export TEST_LEVEL_FLAG="-DT8CODE_TEST_LEVEL=${{ inputs.TEST_LEVEL }}"
&& echo TEST_LEVEL_FLAG="$TEST_LEVEL_FLAG" >> $GITHUB_ENV
- name: build config variables
run: export CONFIG_OPTIONS="${LESS_TEST_OPTION} -GNinja -DCMAKE_C_FLAGS_DEBUG=${DEBUG_CONFIG} -DCMAKE_CXX_FLAGS_DEBUG=${DEBUG_CONFIG} -DT8CODE_BUILD_FORTRAN_INTERFACE=ON -DT8CODE_USE_SYSTEM_SC=ON -DT8CODE_USE_SYSTEM_P4EST=ON -DT8CODE_BUILD_PEDANTIC=ON -DT8CODE_BUILD_WALL=ON -DT8CODE_BUILD_WERROR=ON -DT8CODE_ENABLE_MPI=$MPI -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DSC_DIR=$SC_PATH/install/cmake -DP4EST_DIR=$P4EST_PATH/install/cmake"
run: export CONFIG_OPTIONS="${TEST_LEVEL_FLAG} -GNinja -DCMAKE_C_FLAGS_DEBUG=${DEBUG_CONFIG} -DCMAKE_CXX_FLAGS_DEBUG=${DEBUG_CONFIG} -DT8CODE_BUILD_FORTRAN_INTERFACE=ON -DT8CODE_USE_SYSTEM_SC=ON -DT8CODE_USE_SYSTEM_P4EST=ON -DT8CODE_BUILD_PEDANTIC=ON -DT8CODE_BUILD_WALL=ON -DT8CODE_BUILD_WERROR=ON -DT8CODE_ENABLE_MPI=$MPI -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DSC_DIR=$SC_PATH/install/cmake -DP4EST_DIR=$P4EST_PATH/install/cmake"
&& echo CONFIG_OPTIONS="$CONFIG_OPTIONS" >> $GITHUB_ENV
# cmake and test with fortran
- name: check fortran
Expand Down
16 changes: 8 additions & 8 deletions .github/workflows/tests_cmake_t8code_linkage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,10 @@ on:
required: true
type: string
description: 'Build type (Release/Debug)'
LESS_TESTS:
TEST_LEVEL:
required: true
type: boolean
description: 'Enable less tests option for configuring'
type: number
description: 'Test level used for configuring (0 for full tests, 1 for less thorough tests, 2 for minimal tests)'

jobs:
t8code_cmake_tests:
Expand Down Expand Up @@ -80,12 +80,12 @@ jobs:
#
#
# build config vars
- name: less-test option
if: ${{ inputs.LESS_TESTS }}
run: export LESS_TEST_OPTION="-DT8CODE_ENABLE_LESS_TESTS=ON"
&& echo LESS_TEST_OPTION="$LESS_TEST_OPTION" >> $GITHUB_ENV
- name: Set test level
if: ${{ inputs.TEST_LEVEL != 0 }}
run: export TEST_LEVEL_FLAG="-DT8CODE_TEST_LEVEL=${{ inputs.TEST_LEVEL }}"
&& echo TEST_LEVEL_FLAG="$TEST_LEVEL_FLAG" >> $GITHUB_ENV
- name: build config variables
run: export CONFIG_OPTIONS="${LESS_TEST_OPTION} -GNinja -DCMAKE_C_FLAGS_DEBUG=${DEBUG_CONFIG} -DCMAKE_CXX_FLAGS_DEBUG=${DEBUG_CONFIG} -DT8CODE_USE_SYSTEM_SC=ON -DT8CODE_USE_SYSTEM_P4EST=ON -DT8CODE_BUILD_PEDANTIC=ON -DT8CODE_BUILD_WALL=ON -DT8CODE_BUILD_WERROR=ON -DT8CODE_ENABLE_MPI=$MPI -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DSC_DIR=$SC_PATH/install/cmake -DP4EST_DIR=$P4EST_PATH/install/cmake"
run: export CONFIG_OPTIONS="${TEST_LEVEL_FLAG} -GNinja -DCMAKE_C_FLAGS_DEBUG=${DEBUG_CONFIG} -DCMAKE_CXX_FLAGS_DEBUG=${DEBUG_CONFIG} -DT8CODE_USE_SYSTEM_SC=ON -DT8CODE_USE_SYSTEM_P4EST=ON -DT8CODE_BUILD_PEDANTIC=ON -DT8CODE_BUILD_WALL=ON -DT8CODE_BUILD_WERROR=ON -DT8CODE_ENABLE_MPI=$MPI -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DSC_DIR=$SC_PATH/install/cmake -DP4EST_DIR=$P4EST_PATH/install/cmake"
&& echo CONFIG_OPTIONS="$CONFIG_OPTIONS" >> $GITHUB_ENV
# cmake and test with netcdf
- name: check NetCDF
Expand Down
16 changes: 8 additions & 8 deletions .github/workflows/tests_cmake_t8code_w_shipped_submodules.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,10 @@ on:
required: true
type: string
description: 'Build type (Release/Debug)'
LESS_TESTS:
TEST_LEVEL:
required: true
type: boolean
description: 'Enable less tests option for configuring'
type: number
description: 'Test level used for configuring (0 for full tests, 1 for less thorough tests, 2 for minimal tests)'

jobs:
t8code_cmake_tests:
Expand Down Expand Up @@ -76,12 +76,12 @@ jobs:
# T8CODE
#
# build config vars
- name: less-test option
if: ${{ inputs.LESS_TESTS }}
run: export LESS_TEST_OPTION="-DT8CODE_ENABLE_LESS_TESTS=ON"
&& echo LESS_TEST_OPTION="$LESS_TEST_OPTION" >> $GITHUB_ENV
- name: Set test level
if: ${{ inputs.TEST_LEVEL != 0 }}
run: export TEST_LEVEL_FLAG="-DT8CODE_TEST_LEVEL=${{ inputs.TEST_LEVEL }}"
&& echo TEST_LEVEL_FLAG="$TEST_LEVEL_FLAG" >> $GITHUB_ENV
- name: build config variables
run: export CONFIG_OPTIONS="${LESS_TEST_OPTION} -GNinja -DCMAKE_C_FLAGS_DEBUG=${DEBUG_CONFIG} -DCMAKE_CXX_FLAGS_DEBUG=${DEBUG_CONFIG} -DT8CODE_BUILD_PEDANTIC=ON -DT8CODE_BUILD_WALL=ON -DT8CODE_BUILD_WERROR=ON -DT8CODE_ENABLE_MPI=$MPI -DCMAKE_BUILD_TYPE=$BUILD_TYPE"
run: export CONFIG_OPTIONS="${TEST_LEVEL_FLAG} -GNinja -DCMAKE_C_FLAGS_DEBUG=${DEBUG_CONFIG} -DCMAKE_CXX_FLAGS_DEBUG=${DEBUG_CONFIG} -DT8CODE_BUILD_PEDANTIC=ON -DT8CODE_BUILD_WALL=ON -DT8CODE_BUILD_WERROR=ON -DT8CODE_ENABLE_MPI=$MPI -DCMAKE_BUILD_TYPE=$BUILD_TYPE"
&& echo CONFIG_OPTIONS="$CONFIG_OPTIONS" >> $GITHUB_ENV
# cmake and test
- name: Printing MPI compiler info
Expand Down
11 changes: 5 additions & 6 deletions .github/workflows/tests_cmake_testsuite.yml
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,7 @@ jobs:
MAKEFLAGS: ${{ matrix.MAKEFLAGS }}
MPI: ${{ matrix.MPI }}
BUILD_TYPE: ${{ matrix.BUILD_TYPE }}
LESS_TESTS: ${{ github.event_name == 'pull_request' }}

TEST_LEVEL: ${{ github.event_name == 'pull_request' && 1 || 0 }} # Set TEST_LEVEL to 1 if the event is a PR, otherwise 0.

# Run t8code linkage tests with and without MPI and in serial and debug mode
t8code_linkage_tests:
Expand All @@ -107,7 +106,7 @@ jobs:
MAKEFLAGS: ${{ matrix.MAKEFLAGS }}
MPI: ${{ matrix.MPI }}
BUILD_TYPE: ${{ matrix.BUILD_TYPE }}
LESS_TESTS: ${{ github.event_name == 'pull_request' }}
TEST_LEVEL: ${{ github.event_name == 'pull_request' && 1 || 0 }} # Set TEST_LEVEL to 1 if the event is a PR, otherwise 0.

# Run t8code linkage tests with and without MPI and in serial and debug mode
t8code_api_tests:
Expand All @@ -125,7 +124,7 @@ jobs:
MAKEFLAGS: ${{ matrix.MAKEFLAGS }}
MPI: ${{ matrix.MPI }}
BUILD_TYPE: ${{ matrix.BUILD_TYPE }}
LESS_TESTS: ${{ github.event_name == 'pull_request' }}
TEST_LEVEL: ${{ github.event_name == 'pull_request' && 1 || 0 }} # Set TEST_LEVEL to 1 if the event is a PR, otherwise 0.

# Run t8code tests with shipped submodules. This test is only for the build system, so only one config is tested.
t8code_w_shipped_submodules_tests:
Expand All @@ -135,11 +134,11 @@ jobs:
MAKEFLAGS: -j4
MPI: ON
BUILD_TYPE: Debug
LESS_TESTS: ${{ github.event_name == 'pull_request' }}
TEST_LEVEL: ${{ github.event_name == 'pull_request' && 1 || 0 }} # Set TEST_LEVEL to 1 if the event is a PR, otherwise 0.

t8code_tarball:
if: (github.event_name == 'schedule' && github.repository == 'DLR-AMR/t8code') || (github.event_name != 'schedule')
uses: ./.github/workflows/build_cmake_tarball.yml
needs: [preparation, sc_p4est_tests, t8code_tests, t8code_linkage_tests, t8code_api_tests, t8code_w_shipped_submodules_tests]
with:
LESS_TESTS: ${{ github.event_name == 'pull_request' }}
TEST_LEVEL: ${{ github.event_name == 'pull_request' && 1 || 0 }} # Set TEST_LEVEL to 1 if the event is a PR, otherwise 0.
2 changes: 1 addition & 1 deletion .github/workflows/update_documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ jobs:
run: echo CFLAGS_var="-Wall -pedantic -O3" >> $GITHUB_ENV
&& echo CXXFLAGS_var="-Wall -pedantic -O3" >> $GITHUB_ENV
- name: build config variables
run: export CONFIG_OPTIONS="--without-blas ${LESS_TEST_OPTION}"
run: export CONFIG_OPTIONS="--without-blas ${TEST_LEVEL_FLAG}"
&& export CONFIG_SERIAL_DEBUG="$CONFIG_OPTIONS --enable-debug --with-sc=$SC_SERIAL_DEBUG/install --with-p4est=$P4EST_SERIAL_DEBUG/install"
- name: Check vars
run: echo "[$CONFIG_SERIAL_DEBUG]"
Expand Down
3 changes: 2 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ option( T8CODE_EXPORT_COMPILE_COMMANDS "Export the compile commands as json. Can

option( T8CODE_BUILD_TESTS "Build t8code's automated tests" ON )
cmake_dependent_option( T8CODE_BUILD_TPL_TESTS "Build the tests from libsc and p4est" ON "T8CODE_BUILD_TESTS" OFF )
cmake_dependent_option( T8CODE_ENABLE_LESS_TESTS "Tests not as thoroughly to speed up the test suite. Tests the same functionality. (WARNING: Use with care.)" OFF "T8CODE_BUILD_TESTS" OFF )

option( T8CODE_BUILD_EXAMPLES "Build t8code's examples" ON )
cmake_dependent_option( T8CODE_BUILD_TPL_EXAMPLES "Build the examples from libsc and p4est" OFF "T8CODE_BUILD_EXAMPLES" OFF )
Expand All @@ -41,6 +40,8 @@ option( T8CODE_USE_SYSTEM_P4EST "Use system-installed p4est library" OFF )
option( T8CODE_BUILD_DOCUMENTATION "Build t8code's documentation" OFF )
cmake_dependent_option( T8CODE_BUILD_DOCUMENTATION_SPHINX "Build t8code's documentation using sphinx" OFF "T8CODE_BUILD_DOCUMENTATION" OFF )

set(T8CODE_TEST_LEVEL 0 CACHE STRING "Test level: 0 for full tests, 1 for less thorough tests, 2 for minimal tests.")
add_definitions(-DT8CODE_TEST_LEVEL=${T8CODE_TEST_LEVEL})
set(T8CODE_CUSTOM_PARALLEL_TEST_COMMAND "" CACHE STRING "Define a custom command for parallel tests , e.g.: mpirun -np 8 (overwrites standard mpirun -np 4 if build with mpi)")
set(T8CODE_CUSTOM_SERIAL_TEST_COMMAND "" CACHE STRING "Define a custom command for serial tests.")

Expand Down
4 changes: 0 additions & 4 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,6 @@ if( T8CODE_ENABLE_OCC )
target_link_libraries( T8 PUBLIC ${OpenCASCADE_LIBRARIES} )
endif()

if( T8CODE_ENABLE_LESS_TESTS )
target_compile_definitions( T8 PUBLIC T8_ENABLE_LESS_TESTS=1 )
endif()

if( T8CODE_BUILD_PEDANTIC )
target_compile_options( T8 PUBLIC -pedantic )
set (T8_CXXFLAGS "${T8_CXXFLAGS} -Wpedantic")
Expand Down
2 changes: 1 addition & 1 deletion test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ add_t8_test( NAME t8_gtest_vtk_writer_parallel SOURCES t8_gtest_main.cxx t8_IO/
add_t8_test( NAME t8_gtest_nca_serial SOURCES t8_gtest_main.cxx t8_schemes/t8_gtest_nca.cxx )
add_t8_test( NAME t8_gtest_pyra_connectivity_serial SOURCES t8_gtest_main.cxx t8_schemes/t8_gtest_pyra_connectivity.cxx )
add_t8_test( NAME t8_gtest_face_neigh_serial SOURCES t8_gtest_main.cxx t8_schemes/t8_gtest_face_neigh.cxx )
add_t8_test( NAME t8_gtest_get_linear_id_serial SOURCES t8_gtest_main.cxx t8_schemes/t8_gtest_get_linear_id.cxx )
add_t8_test( NAME t8_gtest_get_linear_id_serial SOURCES t8_gtest_main.cxx t8_schemes/t8_gtest_get_linear_id.cxx )
add_t8_test( NAME t8_gtest_ancestor_serial SOURCES t8_gtest_main.cxx t8_schemes/t8_gtest_ancestor.cxx )
add_t8_test( NAME t8_gtest_ancestor_id_serial SOURCES t8_gtest_main.cxx t8_schemes/t8_gtest_ancestor_id.cxx )
add_t8_test( NAME t8_gtest_element_count_leaves_serial SOURCES t8_gtest_main.cxx t8_schemes/t8_gtest_element_count_leaves.cxx )
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
#define T8_CMESH_BINARY 2
#define T8_CMESH_DIM_RANGE 4 /* this is the dim range for hypercube hybrid and empty cmesh */
#define T8_CMESH_MAX_TEST_DIMS 3
#ifdef T8_ENABLE_LESS_TESTS
#if T8CODE_TEST_LEVEL == 1
#define T8_CMESH_MAX_NUM_OF_TREES 5
#define T8_CMESH_MAX_NUM_OF_PRISMS 5
#define T8_CMESH_MAX_NUM_XYZ_TREES 2
Expand Down
2 changes: 1 addition & 1 deletion test/t8_forest/t8_gtest_balance.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ TEST_P (gtest_balance, balance_consistency_test)
t8_forest_unref (&already_balanced_forest);
}

#ifdef T8_ENABLE_LESS_TESTS
#if T8CODE_TEST_LEVEL == 1
const int maxlvl = 4;
#else
const int maxlvl = 5;
Expand Down
2 changes: 1 addition & 1 deletion test/t8_forest/t8_gtest_element_is_leaf.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@

/* Maximum uniform level for forest. */

#ifdef T8_ENABLE_LESS_TESTS
#if T8CODE_TEST_LEVEL == 1
#define T8_IS_LEAF_MAX_LVL 3
#else
#define T8_IS_LEAF_MAX_LVL 4
Expand Down
2 changes: 1 addition & 1 deletion test/t8_forest_incomplete/t8_gtest_iterate_replace.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ t8_adapt_forest (t8_forest_t forest_from, t8_forest_adapt_t adapt_fn, int do_ada

TEST_P (forest_iterate, test_iterate_replace)
{
#if T8_ENABLE_LESS_TESTS
#if T8CODE_TEST_LEVEL == 1
const int runs = 1;
#else
const int runs = 2;
Expand Down
2 changes: 1 addition & 1 deletion test/t8_forest_incomplete/t8_gtest_permute_hole.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ class forest_permute: public testing::TestWithParam<t8_eclass_t> {
SetUp () override
{
eclass = GetParam ();
#if T8_ENABLE_LESS_TESTS
#if T8CODE_TEST_LEVEL == 1
level = 1;
#else
level = eclass < 4 ? 2 : 1;
Expand Down
2 changes: 1 addition & 1 deletion test/t8_geometry/t8_gtest_point_inside.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@ auto print_test = [] (const testing::TestParamInfo<std::tuple<t8_eclass, int, in
return name;
};

#if T8_ENABLE_LESS_TESTS
#if T8CODE_TEST_LEVEL == 1
INSTANTIATE_TEST_SUITE_P (t8_gtest_point_inside, geometry_point_inside,
testing::Combine (testing::Range (T8_ECLASS_LINE, T8_ECLASS_QUAD), testing::Range (0, 4),
testing::Range (0, 2)),
Expand Down
2 changes: 1 addition & 1 deletion test/t8_gtest_macros.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ auto print_eclass = [] (const testing::TestParamInfo<t8_eclass> &info) { return
* Number of points to use in tests
*
*/
#ifdef T8_ENABLE_LESS_TESTS
#if T8CODE_TEST_LEVEL == 1
#define T8_NUM_SAMPLE_POINTS 1000
#else
#define T8_NUM_SAMPLE_POINTS 10000
Expand Down
2 changes: 1 addition & 1 deletion test/t8_schemes/t8_gtest_ancestor_id.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ class class_ancestor_id: public TestDFS {

TEST_P (class_ancestor_id, t8_recursive_dfs_ancestor_id)
{
#ifdef T8_ENABLE_LESS_TESTS
#if T8CODE_TEST_LEVEL == 1
const int maxlvl = 4;
#else
const int maxlvl = 6;
Expand Down
2 changes: 1 addition & 1 deletion test/t8_schemes/t8_gtest_boundary_extrude.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ class class_test_boundary_extrude: public TestDFS {

TEST_P (class_test_boundary_extrude, test_boundary_extrude_dfs)
{
#ifdef T8_ENABLE_LESS_TESTS
#if T8CODE_TEST_LEVEL == 1
const int maxlvl = 4;
#else
const int maxlvl = 6;
Expand Down
2 changes: 1 addition & 1 deletion test/t8_schemes/t8_gtest_child_parent_face.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ class class_child_parent_face: public TestDFS {

TEST_P (class_child_parent_face, t8_recursive_dfs_child_parent_face)
{
#ifdef T8_ENABLE_LESS_TESTS
#if T8CODE_TEST_LEVEL == 1
const int maxlvl = 4;
#else
const int maxlvl = 6;
Expand Down
2 changes: 1 addition & 1 deletion test/t8_schemes/t8_gtest_element_ref_coords.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
#include <t8_cmesh/t8_cmesh_examples.h>
#include <test/t8_gtest_macros.hxx>

#if T8_ENABLE_LESS_TESTS
#if T8CODE_TEST_LEVEL == 1
#define MAX_LEVEL_REF_COORD_TEST 3
#else
#define MAX_LEVEL_REF_COORD_TEST 4
Expand Down
2 changes: 1 addition & 1 deletion test/t8_schemes/t8_gtest_equal.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ class class_test_equal: public TestDFS {

TEST_P (class_test_equal, test_equal_dfs)
{
#ifdef T8_ENABLE_LESS_TESTS
#if T8CODE_TEST_LEVEL == 1
const int maxlvl = 3;
#else
const int maxlvl = 5;
Expand Down
2 changes: 1 addition & 1 deletion test/t8_schemes/t8_gtest_face_descendant.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ class class_descendant: public TestDFS {
TEST_P (class_descendant, t8_check_face_desc)
{

#ifdef T8_ENABLE_LESS_TESTS
#if T8CODE_TEST_LEVEL == 1
const int maxlvl = 3;
#else
const int maxlvl = 5;
Expand Down
2 changes: 1 addition & 1 deletion test/t8_schemes/t8_gtest_face_neigh.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ class face_neigh: public testing::TestWithParam<std::tuple<int, t8_eclass_t>> {
const t8_scheme *scheme;
t8_eclass_t eclass;

#ifdef T8_ENABLE_LESS_TESTS
#if T8CODE_TEST_LEVEL == 1
const int maxlvl = 3;
#else
const int maxlvl = 4;
Expand Down
Loading