Skip to content

Commit 957d52e

Browse files
committed
Add tests in module_io, module_cell and module_hsolver's subdirectories
1 parent cad9f06 commit 957d52e

File tree

5 files changed

+14
-14
lines changed

5 files changed

+14
-14
lines changed

source/module_cell/module_neighbor/test/CMakeLists.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,19 +5,19 @@ remove_definitions(-D__ROCM)
55
remove_definitions(-D__EXX)
66

77
AddTest(
8-
TARGET cell_neighbor_sltk_atom
8+
TARGET MODULE_CELL_NEIGHBOR_sltk_atom
99
SOURCES sltk_atom_test.cpp ../sltk_atom.cpp
1010
)
1111

1212
AddTest(
13-
TARGET cell_neighbor_sltk_grid
13+
TARGET MODULE_CELL_NEIGHBOR_sltk_grid
1414
LIBS parameter ${math_libs} base device cell_info
1515
SOURCES sltk_grid_test.cpp ../sltk_grid.cpp ../sltk_atom.cpp
1616
../../../module_io/output.cpp
1717
)
1818

1919
AddTest(
20-
TARGET cell_neighbor_sltk_atom_arrange
20+
TARGET MODULE_CELL_NEIGHBOR_sltk_atom_arrange
2121
LIBS parameter ${math_libs} base device cell_info
2222
SOURCES sltk_atom_arrange_test.cpp ../sltk_atom_arrange.cpp ../sltk_grid_driver.cpp ../sltk_grid.cpp
2323
../sltk_atom.cpp

source/module_cell/module_symmetry/test/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@ remove_definitions(-D__DEEPKS)
33
remove_definitions(-D__CUDA)
44
remove_definitions(-D__ROCM)
55
AddTest(
6-
TARGET symmetry_analysis
6+
TARGET MODULE_CELL_SYMMETRY_analysis
77
LIBS parameter base ${math_libs} device symmetry
88
SOURCES symmetry_test.cpp symmetry_test_analysis.cpp
99
)
1010
AddTest(
11-
TARGET symmetry_symtrz
11+
TARGET MODULE_CELL_SYMMETRY_symtrz
1212
LIBS parameter base ${math_libs} device symmetry
1313
SOURCES symmetry_test.cpp symmetry_test_symtrz.cpp
1414
)

source/module_hsolver/kernels/test/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,15 @@ remove_definitions(-D__ROCM)
33

44
if(USE_CUDA OR USE_ROCM)
55
AddTest(
6-
TARGET Hsolver_Kernels_UTs
6+
TARGET MODULE_HSOLVER_KERNELS_Unittests
77
LIBS parameter ${math_libs} base device
88
SOURCES math_dngvd_test.cpp
99
)
1010
endif()
1111

1212
if(ENABLE_GOOGLEBENCH)
1313
AddTest(
14-
TARGET Perf_Hsolver_Kernels
14+
TARGET PERF_MODULE_HSOLVER_KERNELS
1515
LIBS parameter ${math_libs} base device
1616
SOURCES perf_math_kernel.cpp
1717
)

source/module_io/json_output/test/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ remove_definitions(-D__ROCM)
44
remove_definitions(-D__EXX)
55

66
AddTest(
7-
TARGET io_json_output_json
7+
TARGET MODULE_IO_JSON_OUTPUT_TEST
88
LIBS parameter ${math_libs} base device cell_info
99
SOURCES para_json_test.cpp ../general_info.cpp ../init_info.cpp ../readin_info.cpp
1010
../../para_json.cpp ../abacusjson.cpp ../../output.cpp

source/module_io/test_serial/CMakeLists.txt

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,38 +25,38 @@ add_library(
2525

2626
install(DIRECTORY support DESTINATION ${CMAKE_CURRENT_BINARY_DIR})
2727
AddTest(
28-
TARGET io_read_input_serial
28+
TARGET MODULE_IO_read_input_serial
2929
LIBS parameter ${math_libs} io_input_serial
3030
SOURCES read_input_test.cpp
3131
../../module_base/test/tool_quit_no_exit.cpp
3232
../../module_base/module_device/device.cpp
3333
)
3434

3535
AddTest(
36-
TARGET io_read_item_serial
36+
TARGET MODULE_IO_read_item_serial
3737
LIBS parameter ${math_libs} base device io_input_serial
3838
SOURCES read_input_item_test.cpp
3939
)
4040

4141
AddTest(
42-
TARGET io_read_input_tool
42+
TARGET MODULE_IO_read_input_tool
4343
SOURCES read_input_tool_test.cpp
4444
)
4545

4646
AddTest(
47-
TARGET io_rho_io
47+
TARGET MODULE_IO_rho_io
4848
LIBS parameter ${math_libs} base device cell_info
4949
SOURCES rho_io_test.cpp ../read_cube.cpp ../write_cube.cpp ../output.cpp
5050
)
5151

5252
AddTest(
53-
TARGET io_nscf_band
53+
TARGET MODULE_IO_nscf_band
5454
LIBS parameter ${math_libs} base device
5555
SOURCES nscf_band_test.cpp ../nscf_band.cpp
5656
)
5757

5858
AddTest(
59-
TARGET io_system_variable_test
59+
TARGET MODULE_IO_system_variable_test
6060
LIBS parameter ${math_libs} base device io_input_serial
6161
SOURCES io_system_variable_test.cpp
6262
)

0 commit comments

Comments
 (0)