diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index cd2bc1c233..2c6fd98b9d 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -83,6 +83,27 @@ jobs: OMP_NUM_THREADS: '2' run: | cmake --build build --target test ARGS="-V --timeout 1700 -R MODULE_CELL" + + - name: Module_MD Unittests + env: + GTEST_COLOR: 'yes' + OMP_NUM_THREADS: '2' + run: | + cmake --build build --target test ARGS="-V --timeout 1700 -R MODULE_MD" + + - name: Module_Psi Unittests + env: + GTEST_COLOR: 'yes' + OMP_NUM_THREADS: '2' + run: | + cmake --build build --target test ARGS="-V --timeout 1700 -R MODULE_PSI" + + - name: Module_RI Unittests + env: + GTEST_COLOR: 'yes' + OMP_NUM_THREADS: '2' + run: | + cmake --build build --target test ARGS="-V --timeout 1700 -R MODULE_RI" - name: 01_PW Test env: @@ -159,4 +180,4 @@ jobs: GTEST_COLOR: 'yes' OMP_NUM_THREADS: '2' run: | - cmake --build build --target test ARGS="-V --timeout 1700 -E 'integrate_test|01_PW|02_NAO_Gamma|03_NAO_multik|04_LJ_DP|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'" + cmake --build build --target test ARGS="-V --timeout 1700 -E 'integrate_test|01_PW|02_NAO_Gamma|03_NAO_multik|04_LJ_DP|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_RI'" diff --git a/source/module_md/test/CMakeLists.txt b/source/module_md/test/CMakeLists.txt index 47d68d217b..b9197b33fd 100644 --- a/source/module_md/test/CMakeLists.txt +++ b/source/module_md/test/CMakeLists.txt @@ -59,21 +59,21 @@ list(APPEND depend_files ) AddTest( - TARGET md_LJ_pot + TARGET MODULE_MD_LJ_pot LIBS parameter ${math_libs} psi device SOURCES lj_pot_test.cpp ${depend_files} ) AddTest( - TARGET md_func + TARGET MODULE_MD_func LIBS parameter ${math_libs} psi device SOURCES md_func_test.cpp ${depend_files} ) AddTest( - TARGET md_fire + TARGET MODULE_MD_fire LIBS parameter ${math_libs} psi device SOURCES fire_test.cpp ../md_base.cpp @@ -82,7 +82,7 @@ AddTest( ) AddTest( - TARGET md_verlet + TARGET MODULE_MD_verlet LIBS parameter ${math_libs} psi device SOURCES verlet_test.cpp ../md_base.cpp @@ -91,7 +91,7 @@ AddTest( ) AddTest( - TARGET md_nhc + TARGET MODULE_MD_nhc LIBS parameter ${math_libs} psi device SOURCES nhchain_test.cpp ../md_base.cpp @@ -101,7 +101,7 @@ AddTest( ) AddTest( - TARGET md_msst + TARGET MODULE_MD_msst LIBS parameter ${math_libs} psi device SOURCES msst_test.cpp ../md_base.cpp @@ -112,7 +112,7 @@ AddTest( ) AddTest( - TARGET md_lgv + TARGET MODULE_MD_lgv LIBS parameter ${math_libs} psi device SOURCES langevin_test.cpp ../md_base.cpp diff --git a/source/module_psi/test/CMakeLists.txt b/source/module_psi/test/CMakeLists.txt index cc79151284..234d0783a6 100644 --- a/source/module_psi/test/CMakeLists.txt +++ b/source/module_psi/test/CMakeLists.txt @@ -1,5 +1,5 @@ AddTest( - TARGET psi_UT + TARGET MODULE_PSI_Unittests LIBS parameter ${math_libs} base device SOURCES psi_test.cpp @@ -8,7 +8,7 @@ AddTest( if(ENABLE_LCAO) AddTest( - TARGET psi_initializer_unit_test + TARGET MODULE_PSI_initializer_unit_test LIBS parameter ${math_libs} base device psi psi_initializer planewave SOURCES psi_initializer_unit_test.cpp diff --git a/source/module_ri/module_exx_symmetry/test/CMakeLists.txt b/source/module_ri/module_exx_symmetry/test/CMakeLists.txt index 8cce5f6fdd..8ecd5a00e3 100644 --- a/source/module_ri/module_exx_symmetry/test/CMakeLists.txt +++ b/source/module_ri/module_exx_symmetry/test/CMakeLists.txt @@ -2,7 +2,7 @@ remove_definitions(-D__DEEPKS) remove_definitions(-D__CUDA) remove_definitions(-D__ROCM) AddTest( - TARGET symmetry_rotation + TARGET MODULE_RI_EXX_SYMMETRY_rotation LIBS base ${math_libs} device symmetry neighbor parameter SOURCES symmetry_rotation_test.cpp ../symmetry_rotation.cpp ../irreducible_sector.cpp ../irreducible_sector_bvk.cpp ../../../module_basis/module_ao/parallel_orbitals.cpp diff --git a/source/module_ri/test/CMakeLists.txt b/source/module_ri/test/CMakeLists.txt index 9573a3827e..2aefb884c8 100644 --- a/source/module_ri/test/CMakeLists.txt +++ b/source/module_ri/test/CMakeLists.txt @@ -2,12 +2,12 @@ remove_definitions(-D__DEEPKS) remove_definitions(-D__CUDA) remove_definitions(-D__ROCM) AddTest( - TARGET dm_mixing_test + TARGET MODULE_RI_dm_mixing_test LIBS parameter base ${math_libs} device SOURCES dm_mixing_test.cpp ../Mix_DMk_2D.cpp ../Mix_Matrix.cpp ) AddTest( - TARGET ri_cv_io_test + TARGET MODULE_RI_ri_cv_io_test LIBS base ${math_libs} device parameter SOURCES ri_cv_io_test.cpp )