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: 4 additions & 4 deletions source/module_base/grid/test/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,28 +1,28 @@
remove_definitions(-D__MPI)

AddTest(
TARGET test_delley
TARGET MODULE_BASE_GRID_test_delley
SOURCES test_delley.cpp
../delley.cpp
../../ylm.cpp
)

AddTest(
TARGET test_radial
TARGET MODULE_BASE_GRID_test_radial
SOURCES test_radial.cpp
../radial.cpp
)

AddTest(
TARGET test_partition
TARGET MODULE_BASE_GRID_test_partition
SOURCES test_partition.cpp
../partition.cpp
../radial.cpp
../delley.cpp
)

AddTest(
TARGET test_batch
TARGET MODULE_BASE_GRID_test_batch
SOURCES test_batch.cpp
../batch.cpp
LIBS ${math_libs}
Expand Down
2 changes: 1 addition & 1 deletion source/module_base/kernels/test/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
remove_definitions(-D__MPI)

AddTest(
TARGET Base_Kernels_UTs
TARGET MODULE_BASE_KERNELS_Unittests
LIBS parameter ${math_libs} base device
SOURCES math_ylm_op_test.cpp math_kernel_test.cpp
)
2 changes: 1 addition & 1 deletion source/module_base/libm/test/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
remove_definitions(-D__MPI)

AddTest(
TARGET Base_Libm_UTs
TARGET MODULE_BASE_LIBM_UTs
SOURCES libm_test.cpp
../branred.cpp
../cexp.cpp
Expand Down
2 changes: 1 addition & 1 deletion source/module_base/module_container/test/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
remove_definitions(-D__MPI)

AddTest(
TARGET container_uts
TARGET MODULE_BASE_CONTAINER_Unittests
LIBS parameter container base device ${math_libs}
SOURCES tensor_test.cpp tensor_shape_test.cpp allocator_test.cpp
tensor_buffer_test.cpp tensor_map_test.cpp
Expand Down
2 changes: 1 addition & 1 deletion source/module_base/module_device/test/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
AddTest(
TARGET Module_Device_UTs
TARGET MODULE_BASE_DEVICE_Unittests
LIBS parameter ${math_libs} base device
SOURCES memory_test.cpp device_test.cpp
)
2 changes: 1 addition & 1 deletion source/module_base/module_mixing/test/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
remove_definitions(-D__MPI)
AddTest(
TARGET test_mixing
TARGET MODULE_BASE_MIXING_unittests
LIBS parameter base device ${math_libs}
SOURCES mixing_test.cpp
)
6 changes: 3 additions & 3 deletions source/module_cell/module_neighbor/test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,19 @@ remove_definitions(-D__ROCM)
remove_definitions(-D__EXX)

AddTest(
TARGET cell_neighbor_sltk_atom
TARGET MODULE_CELL_NEIGHBOR_sltk_atom
SOURCES sltk_atom_test.cpp ../sltk_atom.cpp
)

AddTest(
TARGET cell_neighbor_sltk_grid
TARGET MODULE_CELL_NEIGHBOR_sltk_grid
LIBS parameter ${math_libs} base device cell_info
SOURCES sltk_grid_test.cpp ../sltk_grid.cpp ../sltk_atom.cpp
../../../module_io/output.cpp
)

AddTest(
TARGET cell_neighbor_sltk_atom_arrange
TARGET MODULE_CELL_NEIGHBOR_sltk_atom_arrange
LIBS parameter ${math_libs} base device cell_info
SOURCES sltk_atom_arrange_test.cpp ../sltk_atom_arrange.cpp ../sltk_grid_driver.cpp ../sltk_grid.cpp
../sltk_atom.cpp
Expand Down
4 changes: 2 additions & 2 deletions source/module_cell/module_symmetry/test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@ remove_definitions(-D__DEEPKS)
remove_definitions(-D__CUDA)
remove_definitions(-D__ROCM)
AddTest(
TARGET symmetry_analysis
TARGET MODULE_CELL_SYMMETRY_analysis
LIBS parameter base ${math_libs} device symmetry
SOURCES symmetry_test.cpp symmetry_test_analysis.cpp
)
AddTest(
TARGET symmetry_symtrz
TARGET MODULE_CELL_SYMMETRY_symtrz
LIBS parameter base ${math_libs} device symmetry
SOURCES symmetry_test.cpp symmetry_test_symtrz.cpp
)
4 changes: 2 additions & 2 deletions source/module_hsolver/kernels/test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@ remove_definitions(-D__ROCM)

if(USE_CUDA OR USE_ROCM)
AddTest(
TARGET Hsolver_Kernels_UTs
TARGET MODULE_HSOLVER_KERNELS_Unittests
LIBS parameter ${math_libs} base device
SOURCES math_dngvd_test.cpp
)
endif()

if(ENABLE_GOOGLEBENCH)
AddTest(
TARGET Perf_Hsolver_Kernels
TARGET PERF_MODULE_HSOLVER_KERNELS
LIBS parameter ${math_libs} base device
SOURCES perf_math_kernel.cpp
)
Expand Down
2 changes: 1 addition & 1 deletion source/module_io/json_output/test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ remove_definitions(-D__ROCM)
remove_definitions(-D__EXX)

AddTest(
TARGET io_json_output_json
TARGET MODULE_IO_JSON_OUTPUT_TEST
LIBS parameter ${math_libs} base device cell_info
SOURCES para_json_test.cpp ../general_info.cpp ../init_info.cpp ../readin_info.cpp
../../para_json.cpp ../abacusjson.cpp ../../output.cpp
Expand Down
12 changes: 6 additions & 6 deletions source/module_io/test_serial/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -25,38 +25,38 @@ add_library(

install(DIRECTORY support DESTINATION ${CMAKE_CURRENT_BINARY_DIR})
AddTest(
TARGET io_read_input_serial
TARGET MODULE_IO_read_input_serial
LIBS parameter ${math_libs} io_input_serial
SOURCES read_input_test.cpp
../../module_base/test/tool_quit_no_exit.cpp
../../module_base/module_device/device.cpp
)

AddTest(
TARGET io_read_item_serial
TARGET MODULE_IO_read_item_serial
LIBS parameter ${math_libs} base device io_input_serial
SOURCES read_input_item_test.cpp
)

AddTest(
TARGET io_read_input_tool
TARGET MODULE_IO_read_input_tool
SOURCES read_input_tool_test.cpp
)

AddTest(
TARGET io_rho_io
TARGET MODULE_IO_rho_io
LIBS parameter ${math_libs} base device cell_info
SOURCES rho_io_test.cpp ../read_cube.cpp ../write_cube.cpp ../output.cpp
)

AddTest(
TARGET io_nscf_band
TARGET MODULE_IO_nscf_band
LIBS parameter ${math_libs} base device
SOURCES nscf_band_test.cpp ../nscf_band.cpp
)

AddTest(
TARGET io_system_variable_test
TARGET MODULE_IO_system_variable_test
LIBS parameter ${math_libs} base device io_input_serial
SOURCES io_system_variable_test.cpp
)
Loading