From c20b428a5be91b4d3a1229b9c040bf4cd1030e77 Mon Sep 17 00:00:00 2001 From: Critsium-xy Date: Fri, 27 Feb 2026 11:56:31 +0800 Subject: [PATCH 1/5] Update test for MODULE_HAMILT and MODULE_ESTATE --- source/source_estate/module_dm/test/CMakeLists.txt | 10 +++++----- .../source_hamilt/module_surchem/test/CMakeLists.txt | 10 +++++----- source/source_hamilt/module_vdw/test/CMakeLists.txt | 2 +- .../module_xc/kernels/test/CMakeLists.txt | 2 +- source/source_hamilt/module_xc/test/CMakeLists.txt | 12 ++++++------ source/source_hamilt/test/CMakeLists.txt | 2 +- 6 files changed, 19 insertions(+), 19 deletions(-) diff --git a/source/source_estate/module_dm/test/CMakeLists.txt b/source/source_estate/module_dm/test/CMakeLists.txt index 689804f54e..bb95272936 100644 --- a/source/source_estate/module_dm/test/CMakeLists.txt +++ b/source/source_estate/module_dm/test/CMakeLists.txt @@ -4,12 +4,12 @@ remove_definitions(-D__ROCM) install(DIRECTORY support DESTINATION ${CMAKE_CURRENT_BINARY_DIR}) -if(TARGET dm_io_test_serial) +if(TARGET MODULE_ESTATE_dm_io_test_serial) remove_definitions(-D__MPI) endif() AddTest( - TARGET dm_io_test_serial + TARGET MODULE_ESTATE_dm_io_test_serial LIBS parameter ${math_libs} base device cell_info SOURCES test_dm_io.cpp ../density_matrix.cpp ../density_matrix_io.cpp ${ABACUS_SOURCE_DIR}/source_lcao/module_hcontainer/base_matrix.cpp @@ -20,7 +20,7 @@ AddTest( ) AddTest( - TARGET dm_constructor_test + TARGET MODULE_ESTATE_dm_constructor_test LIBS parameter ${math_libs} base device SOURCES test_dm_constructor.cpp ../density_matrix.cpp ../density_matrix_io.cpp tmp_mocks.cpp ${ABACUS_SOURCE_DIR}/source_lcao/module_hcontainer/base_matrix.cpp @@ -30,7 +30,7 @@ AddTest( ) AddTest( - TARGET dm_init_test + TARGET MODULE_ESTATE_dm_init_test LIBS parameter ${math_libs} base device SOURCES test_dm_R_init.cpp ../density_matrix.cpp ../density_matrix_io.cpp tmp_mocks.cpp ${ABACUS_SOURCE_DIR}/source_lcao/module_hcontainer/base_matrix.cpp @@ -40,7 +40,7 @@ AddTest( ) AddTest( - TARGET dm_cal_DMR_test + TARGET MODULE_ESTATE_dm_cal_DMR_test LIBS parameter ${math_libs} base device SOURCES test_cal_dm_R.cpp ../density_matrix.cpp ../density_matrix_io.cpp tmp_mocks.cpp ${ABACUS_SOURCE_DIR}/source_lcao/module_hcontainer/base_matrix.cpp diff --git a/source/source_hamilt/module_surchem/test/CMakeLists.txt b/source/source_hamilt/module_surchem/test/CMakeLists.txt index f08e30f347..eb667b7c2a 100644 --- a/source/source_hamilt/module_surchem/test/CMakeLists.txt +++ b/source/source_hamilt/module_surchem/test/CMakeLists.txt @@ -7,13 +7,13 @@ list(APPEND depend_files ) AddTest( - TARGET surchem_cal_epsilon + TARGET MODULE_HAMILT_surchem_cal_epsilon LIBS parameter ${math_libs} planewave device base SOURCES cal_epsilon_test.cpp ../cal_epsilon.cpp ../surchem.cpp ) AddTest( - TARGET surchem_cal_pseudo + TARGET MODULE_HAMILT_surchem_cal_pseudo LIBS parameter ${math_libs} planewave device base psi SOURCES cal_pseudo_test.cpp ../cal_pseudo.cpp ../surchem.cpp ../cal_epsilon.cpp ../../../source_pw/module_pwdft/structure_factor.cpp ../../../source_pw/module_pwdft/parallel_grid.cpp @@ -21,13 +21,13 @@ AddTest( ) AddTest( - TARGET surchem_cal_totn + TARGET MODULE_HAMILT_surchem_cal_totn LIBS parameter ${math_libs} planewave device base SOURCES cal_totn_test.cpp ../cal_totn.cpp ../surchem.cpp ../../../source_pw/module_pwdft/parallel_grid.cpp ) AddTest( - TARGET surchem_cal_vcav + TARGET MODULE_HAMILT_surchem_cal_vcav LIBS parameter ${math_libs} planewave device base container SOURCES cal_vcav_test.cpp ../cal_vcav.cpp ../surchem.cpp ../../../source_pw/module_pwdft/parallel_grid.cpp ../../module_xc/xc_functional_gradcorr.cpp ../../module_xc/xc_functional.cpp @@ -42,7 +42,7 @@ AddTest( ) AddTest( - TARGET surchem_cal_vel + TARGET MODULE_HAMILT_surchem_cal_vel LIBS parameter ${math_libs} planewave device base container SOURCES cal_vel_test.cpp ../cal_vel.cpp ../surchem.cpp ../cal_epsilon.cpp ../minimize_cg.cpp ../../../source_pw/module_pwdft/parallel_grid.cpp ../../module_xc/xc_functional_gradcorr.cpp ../../module_xc/xc_functional.cpp diff --git a/source/source_hamilt/module_vdw/test/CMakeLists.txt b/source/source_hamilt/module_vdw/test/CMakeLists.txt index 504a0310ae..7e5c825128 100644 --- a/source/source_hamilt/module_vdw/test/CMakeLists.txt +++ b/source/source_hamilt/module_vdw/test/CMakeLists.txt @@ -6,7 +6,7 @@ install(FILES c6.txt DESTINATION ${CMAKE_CURRENT_BINARY_DIR}) install(FILES r0.txt DESTINATION ${CMAKE_CURRENT_BINARY_DIR}) AddTest( - TARGET vdwTest + TARGET MODULE_HAMILT_vdwTest LIBS parameter ${math_libs} base device vdw SOURCES vdw_test.cpp ) diff --git a/source/source_hamilt/module_xc/kernels/test/CMakeLists.txt b/source/source_hamilt/module_xc/kernels/test/CMakeLists.txt index 8d0426235c..37fd50ba87 100644 --- a/source/source_hamilt/module_xc/kernels/test/CMakeLists.txt +++ b/source/source_hamilt/module_xc/kernels/test/CMakeLists.txt @@ -1,5 +1,5 @@ AddTest( - TARGET XC_Functional_UTs + TARGET MODULE_HAMILT_XC_Functional_UTs LIBS parameter ${math_libs} device base container SOURCES xc_functional_op_test.cpp ) diff --git a/source/source_hamilt/module_xc/test/CMakeLists.txt b/source/source_hamilt/module_xc/test/CMakeLists.txt index f1ecb49d70..0b8bc888c2 100644 --- a/source/source_hamilt/module_xc/test/CMakeLists.txt +++ b/source/source_hamilt/module_xc/test/CMakeLists.txt @@ -1,19 +1,19 @@ AddTest( - TARGET XCTest_PBE + TARGET MODULE_HAMILT_XCTest_PBE LIBS parameter MPI::MPI_CXX Libxc::xc # required by global.h; for details, `remove_definitions(-D__MPI)`. SOURCES test_xc.cpp ../xc_functional.cpp ../xc_functional_wrapper_xc.cpp ../xc_functional_wrapper_gcxc.cpp ../xc_funct_corr_gga.cpp ../xc_funct_corr_lda.cpp ../xc_funct_exch_gga.cpp ../xc_funct_exch_lda.cpp ../xc_funct_hcth.cpp ../xc_functional_libxc_wrapper_gcxc.cpp ../xc_functional_libxc.cpp ) AddTest( - TARGET XCTest_HSE + TARGET MODULE_HAMILT_XCTest_HSE LIBS parameter MPI::MPI_CXX Libxc::xc # required by global.h; for details, `remove_definitions(-D__MPI)`. SOURCES test_xc1.cpp ../xc_functional.cpp ../xc_functional_libxc.cpp ) AddTest( - TARGET XCTest_PZ_SPN + TARGET MODULE_HAMILT_XCTest_PZ_SPN LIBS parameter MPI::MPI_CXX Libxc::xc # required by global.h; for details, `remove_definitions(-D__MPI)`. SOURCES test_xc2.cpp ../xc_functional.cpp ../xc_functional_wrapper_xc.cpp ../xc_functional_wrapper_gcxc.cpp ../xc_funct_corr_gga.cpp ../xc_funct_corr_lda.cpp ../xc_funct_exch_gga.cpp ../xc_funct_exch_lda.cpp ../xc_funct_hcth.cpp ../xc_functional_libxc_wrapper_gcxc.cpp ../xc_functional_libxc_wrapper_xc.cpp ../xc_functional_libxc.cpp @@ -26,7 +26,7 @@ if (USE_ROCM) list(APPEND FFT_SRC ../../../source_base/module_fft/fft_rocm.cpp) endif() AddTest( - TARGET XCTest_GRADCORR + TARGET MODULE_HAMILT_XCTest_GRADCORR LIBS parameter MPI::MPI_CXX Libxc::xc ${math_libs} psi device container SOURCES test_xc3.cpp ../xc_functional_gradcorr.cpp ../xc_functional.cpp ../xc_functional_wrapper_xc.cpp ../xc_functional_wrapper_gcxc.cpp @@ -47,7 +47,7 @@ AddTest( ) AddTest( - TARGET XCTest_SCAN + TARGET MODULE_HAMILT_XCTest_SCAN LIBS parameter MPI::MPI_CXX Libxc::xc SOURCES test_xc4.cpp ../xc_functional.cpp ../xc_functional_wrapper_xc.cpp ../xc_functional_wrapper_gcxc.cpp @@ -60,7 +60,7 @@ AddTest( ) AddTest( - TARGET XCTest_VXC + TARGET MODULE_HAMILT_XCTest_VXC LIBS parameter MPI::MPI_CXX Libxc::xc ${math_libs} psi device container SOURCES test_xc5.cpp ../xc_functional_gradcorr.cpp ../xc_functional.cpp ../xc_functional_wrapper_xc.cpp ../xc_functional_wrapper_gcxc.cpp diff --git a/source/source_hamilt/test/CMakeLists.txt b/source/source_hamilt/test/CMakeLists.txt index d3def4c86b..276c55963f 100644 --- a/source/source_hamilt/test/CMakeLists.txt +++ b/source/source_hamilt/test/CMakeLists.txt @@ -1,4 +1,4 @@ AddTest( - TARGET ewald_dnrm2 + TARGET MODULE_HAMILT_ewald_dnrm2 SOURCES dnrm2_test.cpp ../module_ewald/dnrm2.cpp ) From 78d823c0bff453c97613b1b429575b870156c147 Mon Sep 17 00:00:00 2001 From: Critsium-xy Date: Fri, 27 Feb 2026 12:09:57 +0800 Subject: [PATCH 2/5] Update tests for MODULE_LCAO and MODULE_PW --- .../module_deltaspin/test/CMakeLists.txt | 6 +++--- .../module_hcontainer/test/CMakeLists.txt | 14 +++++++------- .../test/parallel_hcontainer_tests.sh | 2 +- .../module_operator_lcao/test/CMakeLists.txt | 18 +++++++++--------- .../test/parallel_operator_tests.sh | 10 +++++----- .../source_lcao/module_rt/test/CMakeLists.txt | 10 +++++----- .../module_pwdft/kernels/test/CMakeLists.txt | 2 +- .../source_pw/module_pwdft/test/CMakeLists.txt | 6 +++--- .../module_stodft/test/CMakeLists.txt | 4 ++-- 9 files changed, 36 insertions(+), 36 deletions(-) diff --git a/source/source_lcao/module_deltaspin/test/CMakeLists.txt b/source/source_lcao/module_deltaspin/test/CMakeLists.txt index 2483403d3a..04a21d73d5 100644 --- a/source/source_lcao/module_deltaspin/test/CMakeLists.txt +++ b/source/source_lcao/module_deltaspin/test/CMakeLists.txt @@ -1,14 +1,14 @@ if(ENABLE_LCAO) AddTest( - TARGET deltaspin_basic_func_test + TARGET MODULE_LCAO_deltaspin_basic_func_test LIBS ${math_libs} base device parameter SOURCES basic_test.cpp ../basic_funcs.cpp ) AddTest( - TARGET deltaspin_spin_constrain_test + TARGET MODULE_LCAO_deltaspin_spin_constrain_test LIBS ${math_libs} base device parameter SOURCES spin_constrain_test.cpp ../spin_constrain.cpp @@ -16,7 +16,7 @@ AddTest( ) AddTest( - TARGET deltaspin_template_helpers + TARGET MODULE_LCAO_deltaspin_template_helpers LIBS ${math_libs} base device parameter SOURCES template_helpers_test.cpp ../spin_constrain.cpp diff --git a/source/source_lcao/module_hcontainer/test/CMakeLists.txt b/source/source_lcao/module_hcontainer/test/CMakeLists.txt index 6594b996f0..35d7eb5a7d 100644 --- a/source/source_lcao/module_hcontainer/test/CMakeLists.txt +++ b/source/source_lcao/module_hcontainer/test/CMakeLists.txt @@ -1,35 +1,35 @@ if(ENABLE_LCAO) AddTest( - TARGET hcontainer_test + TARGET MODULE_LCAO_hcontainer_test LIBS parameter ${math_libs} psi base device SOURCES test_hcontainer.cpp ../base_matrix.cpp ../hcontainer.cpp ../atom_pair.cpp ../../../source_basis/module_ao/parallel_orbitals.cpp tmp_mocks.cpp ) AddTest( - TARGET hcontainer_complex_test + TARGET MODULE_LCAO_hcontainer_complex_test LIBS parameter ${math_libs} psi base device SOURCES test_hcontainer_complex.cpp ../base_matrix.cpp ../hcontainer.cpp ../atom_pair.cpp ../../../source_basis/module_ao/parallel_orbitals.cpp tmp_mocks.cpp ) AddTest( - TARGET hcontainer_cost_test + TARGET MODULE_LCAO_hcontainer_cost_test LIBS parameter ${math_libs} psi base device SOURCES test_hcontainer_time.cpp ../base_matrix.cpp ../hcontainer.cpp ../atom_pair.cpp ../../../source_basis/module_ao/parallel_orbitals.cpp tmp_mocks.cpp ) AddTest( - TARGET hcontainer_folding_test + TARGET MODULE_LCAO_hcontainer_folding_test LIBS parameter ${math_libs} psi base device SOURCES test_func_folding.cpp ../base_matrix.cpp ../hcontainer.cpp ../atom_pair.cpp ../func_folding.cpp ../../../source_basis/module_ao/parallel_orbitals.cpp tmp_mocks.cpp ) AddTest( - TARGET hcontainer_transfer_test + TARGET MODULE_LCAO_hcontainer_transfer_test LIBS parameter ${math_libs} psi base device SOURCES test_transfer.cpp ../func_transfer.cpp ../base_matrix.cpp ../hcontainer.cpp ../atom_pair.cpp ../transfer.cpp ../../../source_basis/module_ao/parallel_orbitals.cpp tmp_mocks.cpp @@ -37,13 +37,13 @@ AddTest( install(FILES parallel_hcontainer_tests.sh DESTINATION ${CMAKE_CURRENT_BINARY_DIR}) find_program(BASH bash) -add_test(NAME hontainer_para_test +add_test(NAME MODULE_LCAO_hcontainer_para_test COMMAND ${BASH} parallel_hcontainer_tests.sh WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} ) AddTest( - TARGET hcontainer_output_test + TARGET MODULE_LCAO_hcontainer_output_test LIBS parameter base ${math_libs} device SOURCES test_hcontainer_output.cpp tmp_mocks.cpp diff --git a/source/source_lcao/module_hcontainer/test/parallel_hcontainer_tests.sh b/source/source_lcao/module_hcontainer/test/parallel_hcontainer_tests.sh index fdf3737cac..54f8244867 100644 --- a/source/source_lcao/module_hcontainer/test/parallel_hcontainer_tests.sh +++ b/source/source_lcao/module_hcontainer/test/parallel_hcontainer_tests.sh @@ -8,7 +8,7 @@ for i in 2 3 4; do continue fi echo "TEST in parallel, nprocs=$i" - mpirun -np $i ./hcontainer_transfer_test + mpirun -np $i ./MODULE_LCAO_hcontainer_transfer_test if [[ $? -ne 0 ]]; then echo -e "\e[1;33m [ FAILED ] \e[0m"\ "execute UT with $i cores error." diff --git a/source/source_lcao/module_operator_lcao/test/CMakeLists.txt b/source/source_lcao/module_operator_lcao/test/CMakeLists.txt index 39df2b9b90..a1c52935cf 100644 --- a/source/source_lcao/module_operator_lcao/test/CMakeLists.txt +++ b/source/source_lcao/module_operator_lcao/test/CMakeLists.txt @@ -2,7 +2,7 @@ if(ENABLE_LCAO) remove_definitions(-DUSE_NEW_TWO_CENTER) AddTest( - TARGET operator_overlap_test + TARGET MODULE_LCAO_operator_overlap_test LIBS parameter ${math_libs} psi base device container SOURCES test_overlap.cpp ../overlap.cpp ../operator_force_stress_utils.cpp ../../module_hcontainer/func_folding.cpp ../../module_hcontainer/base_matrix.cpp ../../module_hcontainer/hcontainer.cpp ../../module_hcontainer/atom_pair.cpp @@ -15,7 +15,7 @@ AddTest( ) AddTest( - TARGET operator_overlap_serial_test + TARGET MODULE_LCAO_operator_overlap_serial_test LIBS parameter ${math_libs} psi base device container SOURCES test_overlap_serial.cpp ../overlap.cpp ../operator_force_stress_utils.cpp ../../module_hcontainer/func_folding.cpp ../../module_hcontainer/base_matrix.cpp ../../module_hcontainer/hcontainer.cpp ../../module_hcontainer/atom_pair.cpp @@ -28,7 +28,7 @@ AddTest( ) AddTest( - TARGET operator_overlap_cd_test + TARGET MODULE_LCAO_operator_overlap_cd_test LIBS parameter ${math_libs} psi base device container SOURCES test_overlap_cd.cpp ../overlap.cpp ../operator_force_stress_utils.cpp ../../module_hcontainer/func_folding.cpp ../../module_hcontainer/base_matrix.cpp ../../module_hcontainer/hcontainer.cpp ../../module_hcontainer/atom_pair.cpp @@ -41,7 +41,7 @@ AddTest( ) AddTest( - TARGET operator_ekinetic_test + TARGET MODULE_LCAO_operator_ekinetic_test LIBS parameter ${math_libs} psi base device container SOURCES test_ekinetic.cpp ../ekinetic.cpp ../operator_force_stress_utils.cpp ../../module_hcontainer/func_folding.cpp ../../module_hcontainer/base_matrix.cpp ../../module_hcontainer/hcontainer.cpp ../../module_hcontainer/atom_pair.cpp @@ -51,7 +51,7 @@ AddTest( ) AddTest( - TARGET operator_ekinetic_serial_test + TARGET MODULE_LCAO_operator_ekinetic_serial_test LIBS parameter ${math_libs} psi base device container SOURCES test_ekinetic_serial.cpp ../ekinetic.cpp ../operator_force_stress_utils.cpp ../../module_hcontainer/func_folding.cpp ../../module_hcontainer/base_matrix.cpp ../../module_hcontainer/hcontainer.cpp ../../module_hcontainer/atom_pair.cpp @@ -61,7 +61,7 @@ AddTest( ) AddTest( - TARGET operator_nonlocal_test + TARGET MODULE_LCAO_operator_nonlocal_test LIBS parameter ${math_libs} psi base device container SOURCES test_nonlocal.cpp ../nonlocal.cpp ../operator_force_stress_utils.cpp ../../module_hcontainer/func_folding.cpp ../../module_hcontainer/base_matrix.cpp ../../module_hcontainer/hcontainer.cpp ../../module_hcontainer/atom_pair.cpp @@ -71,7 +71,7 @@ AddTest( ) AddTest( - TARGET operator_T_NL_cd_test + TARGET MODULE_LCAO_operator_T_NL_cd_test LIBS parameter ${math_libs} psi base device container SOURCES test_T_NL_cd.cpp ../nonlocal.cpp ../ekinetic.cpp ../operator_force_stress_utils.cpp ../../module_hcontainer/func_folding.cpp ../../module_hcontainer/base_matrix.cpp ../../module_hcontainer/hcontainer.cpp ../../module_hcontainer/atom_pair.cpp @@ -81,7 +81,7 @@ AddTest( ) AddTest( - TARGET operator_dftu_test + TARGET MODULE_LCAO_operator_dftu_test LIBS parameter ${math_libs} psi base device container SOURCES test_dftu.cpp ../dftu_lcao.cpp ../../module_hcontainer/func_folding.cpp ../../module_hcontainer/base_matrix.cpp ../../module_hcontainer/hcontainer.cpp ../../module_hcontainer/atom_pair.cpp @@ -92,7 +92,7 @@ AddTest( install(FILES parallel_operator_tests.sh DESTINATION ${CMAKE_CURRENT_BINARY_DIR}) find_program(BASH bash) -add_test(NAME operators_para_test +add_test(NAME MODULE_LCAO_operators_para_test COMMAND ${BASH} parallel_operator_tests.sh WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} ) diff --git a/source/source_lcao/module_operator_lcao/test/parallel_operator_tests.sh b/source/source_lcao/module_operator_lcao/test/parallel_operator_tests.sh index 2ca1f7e13d..b039a99285 100644 --- a/source/source_lcao/module_operator_lcao/test/parallel_operator_tests.sh +++ b/source/source_lcao/module_operator_lcao/test/parallel_operator_tests.sh @@ -8,15 +8,15 @@ for i in 2 3 4; do continue fi echo "TEST in parallel, nprocs=$i" - mpirun --allow-run-as-root -np $i ./operator_overlap_cd_test + mpirun --allow-run-as-root -np $i ./MODULE_LCAO_operator_overlap_cd_test e1=$? - mpirun --allow-run-as-root -np $i ./operator_overlap_test + mpirun --allow-run-as-root -np $i ./MODULE_LCAO_operator_overlap_test e2=$? - mpirun --allow-run-as-root -np $i ./operator_ekinetic_test + mpirun --allow-run-as-root -np $i ./MODULE_LCAO_operator_ekinetic_test e3=$? - mpirun --allow-run-as-root -np $i ./operator_nonlocal_test + mpirun --allow-run-as-root -np $i ./MODULE_LCAO_operator_nonlocal_test e4=$? - mpirun --allow-run-as-root -np $i ./operator_T_NL_cd_test + mpirun --allow-run-as-root -np $i ./MODULE_LCAO_operator_T_NL_cd_test e5=$? if [[ $e1 -ne 0 || $e2 -ne 0 || $e3 -ne 0 || $e4 -ne 0 || $e5 -ne 0 ]]; then echo -e "\e[1;33m [ FAILED ] \e[0m"\ diff --git a/source/source_lcao/module_rt/test/CMakeLists.txt b/source/source_lcao/module_rt/test/CMakeLists.txt index 96e005a1c4..cb24761d71 100644 --- a/source/source_lcao/module_rt/test/CMakeLists.txt +++ b/source/source_lcao/module_rt/test/CMakeLists.txt @@ -5,31 +5,31 @@ target_link_libraries(tddft_test_lib Threads::Threads GTest::gtest_main GTest::g #target_include_directories(tddft_test_lib PUBLIC $<$:${GTEST_INCLUDE_DIRS}>) AddTest( - TARGET tddft_middle_hamilt_test + TARGET MODULE_LCAO_tddft_middle_hamilt_test LIBS parameter ${math_libs} base device tddft_test_lib SOURCES middle_hamilt_test.cpp ../middle_hamilt.cpp ) AddTest( - TARGET tddft_band_energy_test + TARGET MODULE_LCAO_tddft_band_energy_test LIBS parameter ${math_libs} base device tddft_test_lib SOURCES band_energy_test.cpp ../band_energy.cpp ../../../source_basis/module_ao/parallel_orbitals.cpp ) AddTest( - TARGET tddft_norm_psi_test + TARGET MODULE_LCAO_tddft_norm_psi_test LIBS parameter ${math_libs} base device tddft_test_lib SOURCES norm_psi_test.cpp ../norm_psi.cpp ) AddTest( - TARGET tddft_upsi_test + TARGET MODULE_LCAO_tddft_upsi_test LIBS parameter ${math_libs} base device tddft_test_lib SOURCES upsi_test1.cpp upsi_test2.cpp upsi_test3.cpp ../upsi.cpp ) AddTest( - TARGET tddft_propagator_test + TARGET MODULE_LCAO_tddft_propagator_test LIBS parameter ${math_libs} base device tddft_test_lib SOURCES propagator_test1.cpp propagator_test2.cpp propagator_test3.cpp ../propagator.cpp ../propagator_cn2.cpp ../propagator_taylor.cpp ../propagator_etrs.cpp ) diff --git a/source/source_pw/module_pwdft/kernels/test/CMakeLists.txt b/source/source_pw/module_pwdft/kernels/test/CMakeLists.txt index dd54c85eee..bd97cff1a6 100644 --- a/source/source_pw/module_pwdft/kernels/test/CMakeLists.txt +++ b/source/source_pw/module_pwdft/kernels/test/CMakeLists.txt @@ -2,7 +2,7 @@ remove_definitions(-D__LCAO) remove_definitions(-D__MLALGO) AddTest( - TARGET Hamilt_Kernels_UTs + TARGET MODULE_PW_Hamilt_Kernels_UTs LIBS parameter ${math_libs} device base container SOURCES ekinetic_op_test.cpp nonlocal_op_test.cpp veff_op_test.cpp meta_op_test.cpp force_op_test.cpp stress_op_test.cpp wf_op_test.cpp vnl_op_test.cpp diff --git a/source/source_pw/module_pwdft/test/CMakeLists.txt b/source/source_pw/module_pwdft/test/CMakeLists.txt index e508bca485..2a588d1729 100644 --- a/source/source_pw/module_pwdft/test/CMakeLists.txt +++ b/source/source_pw/module_pwdft/test/CMakeLists.txt @@ -4,7 +4,7 @@ remove_definitions(-D__ROCM) remove_definitions(-D__EXX) AddTest( - TARGET pwdft_soc + TARGET MODULE_PW_pwdft_soc LIBS parameter ${math_libs} SOURCES soc_test.cpp ../soc.cpp ../../../source_base/global_variable.cpp @@ -23,13 +23,13 @@ AddTest( ) AddTest( - TARGET radial_proj_test + TARGET MODULE_PW_radial_proj_test LIBS parameter base device ${math_libs} SOURCES radial_proj_test.cpp ../radial_proj.cpp ) AddTest( - TARGET structure_factor_test + TARGET MODULE_PW_structure_factor_test LIBS parameter ${math_libs} base device planewave SOURCES structure_factor_test.cpp ../structure_factor.cpp ../parallel_grid.cpp ../../../source_cell/unitcell.cpp diff --git a/source/source_pw/module_stodft/test/CMakeLists.txt b/source/source_pw/module_stodft/test/CMakeLists.txt index e527af6b3b..7063ebf13a 100644 --- a/source/source_pw/module_stodft/test/CMakeLists.txt +++ b/source/source_pw/module_stodft/test/CMakeLists.txt @@ -1,13 +1,13 @@ remove_definitions(-D__MPI) AddTest( - TARGET Sto_Tool_UTs + TARGET MODULE_PW_Sto_Tool_UTs LIBS parameter ${math_libs} psi base device SOURCES ../sto_tool.cpp test_sto_tool.cpp ) AddTest( - TARGET Sto_Hamilt_UTs + TARGET MODULE_PW_Sto_Hamilt_UTs LIBS parameter ${math_libs} psi base device planewave_serial SOURCES ../hamilt_sdft_pw.cpp test_hamilt_sto.cpp ../../../source_hamilt/operator.cpp ) \ No newline at end of file From 43edf3e621af7e969c481e569600e4806c784166 Mon Sep 17 00:00:00 2001 From: Critsium-xy Date: Fri, 27 Feb 2026 12:20:55 +0800 Subject: [PATCH 3/5] Complete All --- .../module_ao/test/CMakeLists.txt | 12 +++++----- .../module_ao/test/parallel_orbitals_test.sh | 2 +- .../module_nao/test/CMakeLists.txt | 24 +++++++++---------- .../module_pw/kernels/test/CMakeLists.txt | 2 +- .../module_pw/test/CMakeLists.txt | 6 ++--- .../module_pw/test_serial/CMakeLists.txt | 4 ++-- source/source_esolver/test/CMakeLists.txt | 2 +- .../ao_to_mo_transformer/test/CMakeLists.txt | 2 +- .../module_lr/dm_trans/test/CMakeLists.txt | 2 +- .../ri_benchmark/test/CMakeLists.txt | 2 +- .../module_lr/utils/test/CMakeLists.txt | 4 ++-- source/source_lcao/test/CMakeLists.txt | 2 +- source/source_relax/test/CMakeLists.txt | 22 ++++++++--------- 13 files changed, 43 insertions(+), 43 deletions(-) diff --git a/source/source_basis/module_ao/test/CMakeLists.txt b/source/source_basis/module_ao/test/CMakeLists.txt index b7e1e31191..c280937b28 100644 --- a/source/source_basis/module_ao/test/CMakeLists.txt +++ b/source/source_basis/module_ao/test/CMakeLists.txt @@ -46,7 +46,7 @@ install(DIRECTORY GaAs DESTINATION ${CMAKE_CURRENT_BINARY_DIR}) AddTest( - TARGET ORB_nonlocal_test + TARGET MODULE_AO_ORB_nonlocal_test SOURCES ORB_nonlocal_test.cpp ../ORB_nonlocal.cpp ../ORB_nonlocal_lm.cpp @@ -54,21 +54,21 @@ AddTest( ) AddTest( - TARGET ORB_nonlocal_lm_test + TARGET MODULE_AO_ORB_nonlocal_lm_test SOURCES ORB_nonlocal_lm_test.cpp ../ORB_nonlocal_lm.cpp LIBS parameter ${math_libs} device base ) AddTest( - TARGET ORB_atomic_lm_test + TARGET MODULE_AO_ORB_atomic_lm_test SOURCES ORB_atomic_lm_test.cpp ../ORB_atomic_lm.cpp LIBS parameter ${math_libs} device base ) AddTest( - TARGET ORB_read_test + TARGET MODULE_AO_ORB_read_test SOURCES ORB_read_test.cpp ../ORB_read.cpp ../ORB_atomic.cpp @@ -78,14 +78,14 @@ AddTest( AddTest( - TARGET parallel_orbitals_test + TARGET MODULE_AO_parallel_orbitals_test SOURCES parallel_orbitals_test.cpp ../parallel_orbitals.cpp LIBS parameter ${math_libs} device base ) install(FILES parallel_orbitals_test.sh DESTINATION ${CMAKE_CURRENT_BINARY_DIR}) find_program(BASH bash) -add_test(NAME parallel_orbitals_test_para +add_test(NAME MODULE_AO_parallel_orbitals_test_para COMMAND ${BASH} parallel_orbitals_test.sh WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} ) diff --git a/source/source_basis/module_ao/test/parallel_orbitals_test.sh b/source/source_basis/module_ao/test/parallel_orbitals_test.sh index 54616474e8..acb7479138 100644 --- a/source/source_basis/module_ao/test/parallel_orbitals_test.sh +++ b/source/source_basis/module_ao/test/parallel_orbitals_test.sh @@ -8,7 +8,7 @@ for i in 2 3 4; do continue fi echo "TEST in parallel, nprocs=$i" - mpirun -np $i ./parallel_orbitals_test + mpirun -np $i ./MODULE_AO_parallel_orbitals_test if [[ $? -ne 0 ]]; then echo -e "\e[1;33m [ FAILED ] \e[0m"\ "execute UT with $i cores error." diff --git a/source/source_basis/module_nao/test/CMakeLists.txt b/source/source_basis/module_nao/test/CMakeLists.txt index 0ac6fab22c..2e4674eed8 100644 --- a/source/source_basis/module_nao/test/CMakeLists.txt +++ b/source/source_basis/module_nao/test/CMakeLists.txt @@ -1,5 +1,5 @@ AddTest( - TARGET numerical_radial + TARGET MODULE_NAO_numerical_radial SOURCES numerical_radial_test.cpp ../numerical_radial.cpp @@ -8,7 +8,7 @@ AddTest( ) AddTest( - TARGET atomic_radials + TARGET MODULE_NAO_atomic_radials SOURCES atomic_radials_test.cpp ../atomic_radials.cpp @@ -21,7 +21,7 @@ AddTest( ) AddTest( - TARGET beta_radials + TARGET MODULE_NAO_beta_radials SOURCES beta_radials_test.cpp ../beta_radials.cpp @@ -34,7 +34,7 @@ AddTest( ) AddTest( - TARGET hydrogen_radials + TARGET MODULE_NAO_hydrogen_radials SOURCES hydrogen_radials_test.cpp ../hydrogen_radials.cpp @@ -47,7 +47,7 @@ AddTest( ) AddTest( - TARGET pswfc_radials + TARGET MODULE_NAO_pswfc_radials SOURCES pswfc_radials_test.cpp ../pswfc_radials.cpp @@ -60,7 +60,7 @@ AddTest( ) AddTest( - TARGET sphbes_radials + TARGET MODULE_NAO_sphbes_radials SOURCES sphbes_radials_test.cpp ../sphbes_radials.cpp @@ -73,7 +73,7 @@ AddTest( ) AddTest( - TARGET radial_collection + TARGET MODULE_NAO_radial_collection SOURCES radial_collection_test.cpp ../radial_collection.cpp @@ -91,7 +91,7 @@ AddTest( ) AddTest( - TARGET two_center_table + TARGET MODULE_NAO_two_center_table SOURCES two_center_table_test.cpp ../two_center_table.cpp @@ -111,7 +111,7 @@ AddTest( ) AddTest( - TARGET real_gaunt_table + TARGET MODULE_NAO_real_gaunt_table SOURCES real_gaunt_table_test.cpp ../real_gaunt_table.cpp @@ -120,7 +120,7 @@ AddTest( ) AddTest( - TARGET two_center_integrator + TARGET MODULE_NAO_two_center_integrator SOURCES two_center_integrator_test.cpp ../two_center_integrator.cpp @@ -140,7 +140,7 @@ AddTest( ) AddTest( - TARGET two_center_bundle + TARGET MODULE_NAO_two_center_bundle SOURCES two_center_bundle_test.cpp ../two_center_bundle.cpp @@ -160,7 +160,7 @@ AddTest( ) AddTest( - TARGET generate_projection + TARGET MODULE_NAO_generate_projection SOURCES projgen_test.cpp ../two_center_bundle.cpp diff --git a/source/source_basis/module_pw/kernels/test/CMakeLists.txt b/source/source_basis/module_pw/kernels/test/CMakeLists.txt index 151010241b..7ee73e1df5 100644 --- a/source/source_basis/module_pw/kernels/test/CMakeLists.txt +++ b/source/source_basis/module_pw/kernels/test/CMakeLists.txt @@ -1,7 +1,7 @@ add_definitions(-D__NORMAL) AddTest( - TARGET PW_Kernels_UTs + TARGET MODULE_PW_PW_Kernels_UTs LIBS parameter ${math_libs} psi device SOURCES pw_op_test.cpp ../../../../source_base/tool_quit.cpp ../../../../source_base/global_variable.cpp diff --git a/source/source_basis/module_pw/test/CMakeLists.txt b/source/source_basis/module_pw/test/CMakeLists.txt index c73f5549fd..6da769ea2f 100644 --- a/source/source_basis/module_pw/test/CMakeLists.txt +++ b/source/source_basis/module_pw/test/CMakeLists.txt @@ -1,6 +1,6 @@ add_definitions(-D__NORMAL) AddTest( - TARGET pw_test + TARGET MODULE_PW_pw_test LIBS parameter ${math_libs} planewave device SOURCES ../../../source_base/matrix.cpp ../../../source_base/complexmatrix.cpp ../../../source_base/matrix3.cpp ../../../source_base/tool_quit.cpp ../../../source_base/mymath.cpp ../../../source_base/timer.cpp ../../../source_base/memory.cpp @@ -18,7 +18,7 @@ AddTest( test_tool.cpp test-big.cpp test-other.cpp test_sup.cpp ) -add_test(NAME pw_test_parallel - COMMAND mpirun -np 3 ./pw_test; mpirun -np 4 ./pw_test +add_test(NAME MODULE_PW_pw_test_parallel + COMMAND mpirun -np 3 ./MODULE_PW_pw_test; mpirun -np 4 ./MODULE_PW_pw_test WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} ) diff --git a/source/source_basis/module_pw/test_serial/CMakeLists.txt b/source/source_basis/module_pw/test_serial/CMakeLists.txt index 79b7fbf3e8..52e594afb9 100644 --- a/source/source_basis/module_pw/test_serial/CMakeLists.txt +++ b/source/source_basis/module_pw/test_serial/CMakeLists.txt @@ -24,13 +24,13 @@ add_library( ) AddTest( - TARGET basis_pw_serial + TARGET MODULE_PW_basis_pw_serial LIBS parameter ${math_libs} planewave_serial device base SOURCES pw_basis_test.cpp ) AddTest( - TARGET basis_pw_k_serial + TARGET MODULE_PW_basis_pw_k_serial LIBS parameter ${math_libs} planewave_serial device base SOURCES pw_basis_k_test.cpp ) diff --git a/source/source_esolver/test/CMakeLists.txt b/source/source_esolver/test/CMakeLists.txt index f297fc7378..38506e2ea0 100644 --- a/source/source_esolver/test/CMakeLists.txt +++ b/source/source_esolver/test/CMakeLists.txt @@ -4,7 +4,7 @@ remove_definitions(-D__LCAO) install(DIRECTORY support DESTINATION ${CMAKE_CURRENT_BINARY_DIR}) AddTest( - TARGET esolver_dp_test + TARGET MODULE_ESOLVER_esolver_dp_test LIBS parameter ${math_libs} base device SOURCES esolver_dp_test.cpp ../esolver_dp.cpp ../../source_io/module_output/cif_io.cpp ../../source_io/module_output/output_log.cpp ) diff --git a/source/source_lcao/module_lr/ao_to_mo_transformer/test/CMakeLists.txt b/source/source_lcao/module_lr/ao_to_mo_transformer/test/CMakeLists.txt index e8e6c4b2f4..a9999731bc 100644 --- a/source/source_lcao/module_lr/ao_to_mo_transformer/test/CMakeLists.txt +++ b/source/source_lcao/module_lr/ao_to_mo_transformer/test/CMakeLists.txt @@ -1,6 +1,6 @@ remove_definitions(-DUSE_LIBXC) AddTest( - TARGET ao_to_mo_test + TARGET MODULE_LR_ao_to_mo_test LIBS parameter base ${math_libs} container device psi SOURCES ao_to_mo_test.cpp ../../utils/lr_util.cpp ../ao_to_mo_parallel.cpp ../ao_to_mo_serial.cpp ) \ No newline at end of file diff --git a/source/source_lcao/module_lr/dm_trans/test/CMakeLists.txt b/source/source_lcao/module_lr/dm_trans/test/CMakeLists.txt index 87c0e7c870..034e8e3fed 100644 --- a/source/source_lcao/module_lr/dm_trans/test/CMakeLists.txt +++ b/source/source_lcao/module_lr/dm_trans/test/CMakeLists.txt @@ -1,6 +1,6 @@ remove_definitions(-DUSE_LIBXC) AddTest( - TARGET dm_trans_test + TARGET MODULE_LR_dm_trans_test LIBS parameter psi base ${math_libs} device container SOURCES dm_trans_test.cpp ../../utils/lr_util.cpp ../dm_trans_parallel.cpp ../dm_trans_serial.cpp # ../../../source_base/module_container/ATen/core/tensor.cpp diff --git a/source/source_lcao/module_lr/ri_benchmark/test/CMakeLists.txt b/source/source_lcao/module_lr/ri_benchmark/test/CMakeLists.txt index d842b3e7ec..51ccc5b397 100644 --- a/source/source_lcao/module_lr/ri_benchmark/test/CMakeLists.txt +++ b/source/source_lcao/module_lr/ri_benchmark/test/CMakeLists.txt @@ -1,6 +1,6 @@ if (ENABLE_LIBRI) AddTest( - TARGET ri_benchmark_test + TARGET MODULE_LR_ri_benchmark_test LIBS psi base ${math_libs} device container parameter SOURCES ri_benchmark_test.cpp ) diff --git a/source/source_lcao/module_lr/utils/test/CMakeLists.txt b/source/source_lcao/module_lr/utils/test/CMakeLists.txt index 2ecf21011d..b0c2e4dbfb 100644 --- a/source/source_lcao/module_lr/utils/test/CMakeLists.txt +++ b/source/source_lcao/module_lr/utils/test/CMakeLists.txt @@ -1,13 +1,13 @@ remove_definitions(-DUSE_LIBXC) AddTest( - TARGET lr_util_phys_test + TARGET MODULE_LR_lr_util_phys_test LIBS parameter base ${math_libs} device container planewave #for FFT SOURCES lr_util_physics_test.cpp ../lr_util.cpp ../../../../source_io/module_output/orb_io.cpp ) AddTest( - TARGET lr_util_algo_test + TARGET MODULE_LR_lr_util_algo_test LIBS parameter base ${math_libs} device psi container planewave #for FFT SOURCES lr_util_algorithms_test.cpp ../lr_util.cpp ) \ No newline at end of file diff --git a/source/source_lcao/test/CMakeLists.txt b/source/source_lcao/test/CMakeLists.txt index b754878d6e..2afd797400 100644 --- a/source/source_lcao/test/CMakeLists.txt +++ b/source/source_lcao/test/CMakeLists.txt @@ -4,7 +4,7 @@ remove_definitions(-D__ROCM) if(ENABLE_LCAO) AddTest( - TARGET init_dm_from_file_test + TARGET MODULE_LCAO_init_dm_from_file_test LIBS parameter ${math_libs} base device SOURCES test_init_dm_from_file.cpp tmp_mocks.cpp ${ABACUS_SOURCE_DIR}/source_estate/module_dm/density_matrix.cpp diff --git a/source/source_relax/test/CMakeLists.txt b/source/source_relax/test/CMakeLists.txt index c3e0d235a8..5bb86f60e6 100644 --- a/source/source_relax/test/CMakeLists.txt +++ b/source/source_relax/test/CMakeLists.txt @@ -7,13 +7,13 @@ remove_definitions(-D__ROCM) install(DIRECTORY support DESTINATION ${CMAKE_CURRENT_BINARY_DIR}) AddTest( - TARGET relax_new_line_search + TARGET MODULE_RELAX_relax_new_line_search LIBS parameter SOURCES line_search_test.cpp ../line_search.cpp ../../source_base/global_variable.cpp ../../source_base/global_file.cpp ../../source_base/global_function.cpp ../../source_base/memory.cpp ../../source_base/timer.cpp ../../source_base/tool_quit.cpp ) AddTest( - TARGET relax_new_relax + TARGET MODULE_RELAX_relax_new_relax SOURCES relax_test.cpp ../relax_sync.cpp ../line_search.cpp ../../source_base/tool_quit.cpp ../../source_base/global_variable.cpp ../../source_base/global_file.cpp ../../source_base/memory.cpp ../../source_base/timer.cpp ../../source_base/matrix3.cpp ../../source_base/intarray.cpp ../../source_base/tool_title.cpp ../../source_base/global_function.cpp ../../source_base/complexmatrix.cpp ../../source_base/matrix.cpp @@ -30,19 +30,19 @@ list(APPEND cell_source_files ../../source_io/module_output/output.cpp ) AddTest( - TARGET lattice_change_methods_test + TARGET MODULE_RELAX_lattice_change_methods_test LIBS parameter ${math_libs} base device SOURCES lattice_change_methods_test.cpp ../lattice_change_methods.cpp ../lattice_change_basic.cpp mock_remake_cell.cpp ) AddTest( - TARGET lattice_change_basic_test + TARGET MODULE_RELAX_lattice_change_basic_test LIBS parameter ${math_libs} base device SOURCES lattice_change_basic_test.cpp ../lattice_change_basic.cpp mock_remake_cell.cpp ) AddTest( - TARGET lattice_change_cg_test + TARGET MODULE_RELAX_lattice_change_cg_test LIBS parameter ${math_libs} base device SOURCES lattice_change_cg_test.cpp ../lattice_change_cg.cpp @@ -52,26 +52,26 @@ AddTest( ) AddTest( - TARGET bfgs_basic_test + TARGET MODULE_RELAX_bfgs_basic_test LIBS parameter ${math_libs} base device SOURCES bfgs_basic_test.cpp ../bfgs_basic.cpp ) AddTest( - TARGET bfgs_test + TARGET MODULE_RELAX_bfgs_test LIBS parameter ${math_libs} base device SOURCES bfgs_test.cpp ../bfgs.cpp ../ions_move_basic.cpp ../matrix_methods.cpp ${cell_source_files} ) AddTest( - TARGET ions_move_basic_test + TARGET MODULE_RELAX_ions_move_basic_test LIBS parameter ${math_libs} base device SOURCES ions_move_basic_test.cpp ../ions_move_basic.cpp ${cell_source_files} ) AddTest( - TARGET ions_move_bfgs_test + TARGET MODULE_RELAX_ions_move_bfgs_test LIBS parameter ${math_libs} base device SOURCES ions_move_bfgs_test.cpp ../ions_move_bfgs.cpp @@ -82,7 +82,7 @@ AddTest( ) AddTest( - TARGET ions_move_cg_test + TARGET MODULE_RELAX_ions_move_cg_test LIBS parameter ${math_libs} base device SOURCES ions_move_cg_test.cpp ../ions_move_cg.cpp @@ -92,7 +92,7 @@ AddTest( ) AddTest( - TARGET ions_move_sd_test + TARGET MODULE_RELAX_ions_move_sd_test LIBS parameter ${math_libs} base device SOURCES ions_move_sd_test.cpp ../ions_move_sd.cpp ../ions_move_basic.cpp ${cell_source_files} ) \ No newline at end of file From 738df2a7b706cefc2b806482bc11b312d315249f Mon Sep 17 00:00:00 2001 From: Critsium-xy Date: Fri, 27 Feb 2026 12:57:51 +0800 Subject: [PATCH 4/5] Update github workflow --- .github/workflows/test.yml | 51 +++++++++++++++++++++++++++++++++++++- 1 file changed, 50 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 1dd109d45d..f76b17b6c9 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -117,6 +117,55 @@ jobs: OMP_NUM_THREADS: '2' run: | ctest --test-dir build -V --timeout 1700 -R MODULE_ESTATE + + - name: Module_Hamilt Unittests + env: + GTEST_COLOR: 'yes' + OMP_NUM_THREADS: '2' + run: | + ctest --test-dir build -V --timeout 1700 -R MODULE_HAMILT + + - name: Module_PW Unittests + env: + GTEST_COLOR: 'yes' + OMP_NUM_THREADS: '2' + run: | + ctest --test-dir build -V --timeout 1700 -R MODULE_PW + + - name: Module_LCAO Unittests + env: + GTEST_COLOR: 'yes' + OMP_NUM_THREADS: '2' + run: | + ctest --test-dir build -V --timeout 1700 -R MODULE_LCAO + + - name: Module_AO Unittests + env: + GTEST_COLOR: 'yes' + OMP_NUM_THREADS: '2' + run: | + ctest --test-dir build -V --timeout 1700 -R MODULE_AO + + - name: Module_NAO Unittests + env: + GTEST_COLOR: 'yes' + OMP_NUM_THREADS: '2' + run: | + ctest --test-dir build -V --timeout 1700 -R MODULE_NAO + + - name: Module_RELAX Unittests + env: + GTEST_COLOR: 'yes' + OMP_NUM_THREADS: '2' + run: | + ctest --test-dir build -V --timeout 1700 -R MODULE_RELAX + + - name: Module_LR Unittests + env: + GTEST_COLOR: 'yes' + OMP_NUM_THREADS: '2' + run: | + ctest --test-dir build -V --timeout 1700 -R MODULE_LR - name: 01_PW Test env: @@ -193,4 +242,4 @@ jobs: GTEST_COLOR: 'yes' OMP_NUM_THREADS: '2' run: | - ctest --test-dir build -V --timeout 1700 -E 'integrate_test|01_PW|02_NAO_Gamma|03_NAO_multik|04_FF|05_rtTDDFT|06_SDFT|07_OFDFT|08_EXX|09_DeePKS|10_others|11_PW_GPU|12_NAO_Gamma_GPU|13_NAO_multik_GPU|15_rtTDDFT_GPU|16_SDFT_GPU|MODULE_BASE|MODULE_IO|MODULE_HSOLVER|MODULE_CELL|MODULE_MD|MODULE_PSI|MODULE_ESTATE|MODULE_RI' + ctest --test-dir build -V --timeout 1700 -E 'integrate_test|01_PW|02_NAO_Gamma|03_NAO_multik|04_FF|05_rtTDDFT|06_SDFT|07_OFDFT|08_EXX|09_DeePKS|10_others|11_PW_GPU|12_NAO_Gamma_GPU|13_NAO_multik_GPU|15_rtTDDFT_GPU|16_SDFT_GPU|MODULE_BASE|MODULE_IO|MODULE_HSOLVER|MODULE_CELL|MODULE_MD|MODULE_PSI|MODULE_ESTATE|MODULE_RI|MODULE_HAMILT|MODULE_PW|MODULE_LCAO|MODULE_AO|MODULE_NAO|MODULE_RELAX|Module_LR' From f6b86f33111317700816fc1d21431107cccc49d7 Mon Sep 17 00:00:00 2001 From: Critsium-xy Date: Fri, 27 Feb 2026 13:45:18 +0800 Subject: [PATCH 5/5] Fix MODULE_LR --- .github/workflows/test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index f76b17b6c9..a21d54b2a8 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -242,4 +242,4 @@ jobs: GTEST_COLOR: 'yes' OMP_NUM_THREADS: '2' run: | - ctest --test-dir build -V --timeout 1700 -E 'integrate_test|01_PW|02_NAO_Gamma|03_NAO_multik|04_FF|05_rtTDDFT|06_SDFT|07_OFDFT|08_EXX|09_DeePKS|10_others|11_PW_GPU|12_NAO_Gamma_GPU|13_NAO_multik_GPU|15_rtTDDFT_GPU|16_SDFT_GPU|MODULE_BASE|MODULE_IO|MODULE_HSOLVER|MODULE_CELL|MODULE_MD|MODULE_PSI|MODULE_ESTATE|MODULE_RI|MODULE_HAMILT|MODULE_PW|MODULE_LCAO|MODULE_AO|MODULE_NAO|MODULE_RELAX|Module_LR' + ctest --test-dir build -V --timeout 1700 -E 'integrate_test|01_PW|02_NAO_Gamma|03_NAO_multik|04_FF|05_rtTDDFT|06_SDFT|07_OFDFT|08_EXX|09_DeePKS|10_others|11_PW_GPU|12_NAO_Gamma_GPU|13_NAO_multik_GPU|15_rtTDDFT_GPU|16_SDFT_GPU|MODULE_BASE|MODULE_IO|MODULE_HSOLVER|MODULE_CELL|MODULE_MD|MODULE_PSI|MODULE_ESTATE|MODULE_RI|MODULE_HAMILT|MODULE_PW|MODULE_LCAO|MODULE_AO|MODULE_NAO|MODULE_RELAX|MODULE_LR'