Skip to content
Merged
Show file tree
Hide file tree
Changes from all 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
8 changes: 7 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -126,10 +126,16 @@ jobs:
run: |
cmake --build build --target test ARGS="-V --timeout 1700 -R 10_others"

- name: Module Base Unit Test
env:
GTEST_COLOR: 'yes'
OMP_NUM_THREADS: '2'
run: |
cmake --build build --target test ARGS="-V --timeout 1700 -R MODULE_BASE"

- name: Unit Test
env:
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|16_SDFT_GPU'"

88 changes: 44 additions & 44 deletions source/module_base/test/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,239 +1,239 @@
remove_definitions(-D__MPI)
install(DIRECTORY data DESTINATION ${CMAKE_CURRENT_BINARY_DIR})
AddTest(
TARGET base_blas_connector
TARGET MODULE_BASE_blas_connector
LIBS parameter ${math_libs} base device
SOURCES blas_connector_test.cpp
)
AddTest(
TARGET base_atom_in
TARGET MODULE_BASE_atom_in
LIBS parameter
SOURCES atom_in_test.cpp
)
AddTest(
TARGET base_timer
TARGET MODULE_BASE_timer
LIBS parameter
SOURCES timer_test.cpp ../timer.cpp ../global_variable.cpp
)
AddTest(
TARGET base_tool_quit
TARGET MODULE_BASE_tool_quit
LIBS parameter
SOURCES tool_quit_test.cpp ../tool_quit.cpp ../global_variable.cpp ../global_file.cpp ../global_function.cpp ../memory.cpp ../timer.cpp
)
AddTest(
TARGET base_tool_check
TARGET MODULE_BASE_tool_check
LIBS parameter
SOURCES tool_check_test.cpp ../tool_check.cpp ../tool_quit.cpp ../global_variable.cpp ../global_file.cpp ../global_function.cpp ../memory.cpp ../timer.cpp
)
AddTest(
TARGET base_memory
TARGET MODULE_BASE_memory
SOURCES memory_test.cpp ../memory.cpp ../parallel_reduce.cpp
)
ADDTest(
TARGET base_global_function
TARGET MODULE_BASE_global_function
LIBS parameter ${math_libs}
SOURCES global_function_test.cpp ../global_function.cpp ../tool_quit.cpp ../global_variable.cpp ../global_file.cpp ../memory.cpp ../timer.cpp
)
AddTest(
TARGET base_vector3
TARGET MODULE_BASE_vector3
LIBS parameter
SOURCES vector3_test.cpp
)
AddTest(
TARGET base_matrix3
TARGET MODULE_BASE_matrix3
LIBS parameter ${math_libs} base device
SOURCES matrix3_test.cpp
)
AddTest(
TARGET base_intarray
TARGET MODULE_BASE_intarray
LIBS parameter
SOURCES intarray_test.cpp ../intarray.cpp
)
AddTest(
TARGET base_realarray
TARGET MODULE_BASE_realarray
LIBS parameter
SOURCES realarray_test.cpp ../realarray.cpp
)
AddTest(
TARGET base_matrix
TARGET MODULE_BASE_matrix
LIBS parameter ${math_libs} base device
SOURCES matrix_test.cpp
)
AddTest(
TARGET base_complexarray
TARGET MODULE_BASE_complexarray
LIBS parameter
SOURCES complexarray_test.cpp ../complexarray.cpp ../tool_quit.cpp ../global_variable.cpp ../global_file.cpp ../global_function.cpp ../memory.cpp ../timer.cpp
)
AddTest(
TARGET base_complexmatrix
TARGET MODULE_BASE_complexmatrix
LIBS parameter ${math_libs} base device
SOURCES complexmatrix_test.cpp
)
AddTest(
TARGET base_integral
TARGET MODULE_BASE_integral
LIBS parameter
SOURCES math_integral_test.cpp ../math_integral.cpp
)
AddTest(
TARGET base_sph_bessel_recursive
TARGET MODULE_BASE_sph_bessel_recursive
LIBS parameter
SOURCES sph_bessel_recursive_test.cpp ../sph_bessel_recursive-d1.cpp ../sph_bessel_recursive-d2.cpp
)
AddTest(
TARGET base_ylmreal
TARGET MODULE_BASE_ylmreal
LIBS parameter ${math_libs} base device
SOURCES math_ylmreal_test.cpp ../libm/branred.cpp ../libm/sincos.cpp
)
AddTest(
TARGET base_math_sphbes
TARGET MODULE_BASE_math_sphbes
LIBS parameter
SOURCES math_sphbes_test.cpp ../math_sphbes.cpp ../timer.cpp
)
AddTest(
TARGET base_mathzone
TARGET MODULE_BASE_mathzone
LIBS parameter ${math_libs} base device
SOURCES mathzone_test.cpp
)
AddTest(
TARGET base_mathzone_add1
TARGET MODULE_BASE_mathzone_add1
LIBS parameter ${math_libs} base device
SOURCES mathzone_add1_test.cpp
)
AddTest(
TARGET base_math_polyint
TARGET MODULE_BASE_math_polyint
LIBS parameter
SOURCES math_polyint_test.cpp ../math_polyint.cpp ../realarray.cpp ../timer.cpp
)
AddTest(
TARGET base_gram_schmidt_orth
TARGET MODULE_BASE_gram_schmidt_orth
LIBS parameter ${math_libs} base device
SOURCES gram_schmidt_orth_test.cpp
)
AddTest(
TARGET base_math_bspline
TARGET MODULE_BASE_math_bspline
LIBS parameter
SOURCES math_bspline_test.cpp ../math_bspline.cpp
)
AddTest(
TARGET base_inverse_matrix
TARGET MODULE_BASE_inverse_matrix
LIBS parameter ${math_libs} base device
SOURCES inverse_matrix_test.cpp
)
AddTest(
TARGET base_mymath
TARGET MODULE_BASE_mymath
LIBS parameter
SOURCES mymath_test.cpp ../mymath.cpp ../timer.cpp
)
AddTest(
TARGET base_container
TARGET MODULE_BASE_container
LIBS parameter
SOURCES container_operator_test.cpp ../container_operator.h
)

AddTest(
TARGET base_math_chebyshev
TARGET MODULE_BASE_math_chebyshev
LIBS parameter ${math_libs} base device container
SOURCES math_chebyshev_test.cpp
)

AddTest(
TARGET base_lapack_connector
TARGET MODULE_BASE_lapack_connector
LIBS parameter ${math_libs} base device
SOURCES lapack_connector_test.cpp
)

AddTest(
TARGET base_opt_CG
TARGET MODULE_BASE_opt_CG
LIBS parameter ${math_libs} base device
SOURCES opt_CG_test.cpp opt_test_tools.cpp
)

AddTest(
TARGET base_opt_TN
TARGET MODULE_BASE_opt_TN
LIBS parameter ${math_libs} base device
SOURCES opt_TN_test.cpp opt_test_tools.cpp
)

AddTest(
TARGET base_ylm
TARGET MODULE_BASE_ylm
LIBS parameter
SOURCES ylm_test.cpp ../ylm.cpp ../timer.cpp ../tool_quit.cpp ../global_variable.cpp ../global_file.cpp ../global_function.cpp ../memory.cpp
)

AddTest(
TARGET base_abfs-vector3_order
TARGET MODULE_BASE_abfs-vector3_order
LIBS parameter
SOURCES abfs-vector3_order_test.cpp ../abfs-vector3_order.cpp
)

AddTest(
TARGET base_global_file
TARGET MODULE_BASE_global_file
LIBS parameter
SOURCES global_file_test.cpp ../global_file.cpp ../global_function.cpp ../tool_quit.cpp ../global_variable.cpp ../memory.cpp ../timer.cpp
)

AddTest(
TARGET base_tool_title
TARGET MODULE_BASE_tool_title
LIBS parameter
SOURCES tool_title_test.cpp ../tool_title.cpp ../global_variable.cpp ../global_function.cpp ../timer.cpp ../tool_quit.cpp ../global_file.cpp ../memory.cpp
)

AddTest(
TARGET base_element_basis_index
TARGET MODULE_BASE_element_basis_index
LIBS parameter
SOURCES element_basis_index_test.cpp ../element_basis_index.cpp
)

AddTest(
TARGET base_tool_threading
TARGET MODULE_BASE_tool_threading
LIBS parameter
SOURCES tool_threading_test.cpp ../tool_threading.h
)

AddTest(
TARGET spherical_bessel_transformer
TARGET MODULE_BASE_spherical_bessel_transformer
SOURCES spherical_bessel_transformer_test.cpp
LIBS parameter ${math_libs} base device
)

AddTest(
TARGET cubic_spline
TARGET MODULE_BASE_cubic_spline
SOURCES cubic_spline_test.cpp
LIBS parameter ${math_libs} base device
)

AddTest(
TARGET clebsch_gordan_coeff_test
TARGET MODULE_BASE_clebsch_gordan_coeff_test
SOURCES clebsch_gordan_coeff_test.cpp
LIBS parameter ${math_libs} base device
)

AddTest(
TARGET assoc_laguerre_test
TARGET MODULE_BASE_assoc_laguerre_test
SOURCES assoc_laguerre_test.cpp
LIBS parameter ${math_libs} base device
)

AddTest(
TARGET ndarray_test
TARGET MODULE_BASE_ndarray_test
LIBS parameter
SOURCES ndarray_test.cpp
)

AddTest(
TARGET formatter_test
TARGET MODULE_BASE_formatter_test
LIBS parameter
SOURCES formatter_test.cpp
)

AddTest(
TARGET lebedev_laikov
TARGET MODULE_BASE_lebedev_laikov
SOURCES test_lebedev_laikov.cpp ../ylm.cpp ../math_lebedev_laikov.cpp
)

if(ENABLE_GOOGLEBENCH)
AddTest(
TARGET perf_sphbes
TARGET MODULE_BASE_perf_sphbes
LIBS parameter
SOURCES perf_sphbes_test.cpp ../math_sphbes.cpp ../timer.cpp
)
Expand Down
Loading