diff --git a/source/module_base/test_parallel/CMakeLists.txt b/source/module_base/test_parallel/CMakeLists.txt index 431a56b6fc..3ef9779fa6 100644 --- a/source/module_base/test_parallel/CMakeLists.txt +++ b/source/module_base/test_parallel/CMakeLists.txt @@ -20,6 +20,7 @@ install(FILES parallel_common_test.sh DESTINATION ${CMAKE_CURRENT_BINARY_DIR}) install(FILES parallel_global_test.sh DESTINATION ${CMAKE_CURRENT_BINARY_DIR}) install(FILES parallel_reduce_test.sh DESTINATION ${CMAKE_CURRENT_BINARY_DIR}) +find_program(BASH bash) add_test(NAME base_parallel_common_test COMMAND ${BASH} parallel_common_test.sh WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} diff --git a/source/module_base/test_parallel/parallel_common_test.sh b/source/module_base/test_parallel/parallel_common_test.sh old mode 100644 new mode 100755 diff --git a/source/module_base/test_parallel/parallel_global_test.sh b/source/module_base/test_parallel/parallel_global_test.sh old mode 100644 new mode 100755 diff --git a/source/module_base/test_parallel/parallel_reduce_test.sh b/source/module_base/test_parallel/parallel_reduce_test.sh old mode 100644 new mode 100755 diff --git a/source/module_cell/test/CMakeLists.txt b/source/module_cell/test/CMakeLists.txt index 0350bd8a35..149c290f15 100644 --- a/source/module_cell/test/CMakeLists.txt +++ b/source/module_cell/test/CMakeLists.txt @@ -3,6 +3,7 @@ remove_definitions(-D__CUDA) remove_definitions(-D__ROCM) remove_definitions(-D__EXX) +find_program(BASH bash) install(DIRECTORY support DESTINATION ${CMAKE_CURRENT_BINARY_DIR}) install(FILES bcast_atom_pseudo_test.sh DESTINATION ${CMAKE_CURRENT_BINARY_DIR}) install(FILES bcast_atom_spec_test.sh DESTINATION ${CMAKE_CURRENT_BINARY_DIR}) diff --git a/source/module_cell/test/bcast_atom_pseudo_test.sh b/source/module_cell/test/bcast_atom_pseudo_test.sh old mode 100644 new mode 100755 diff --git a/source/module_cell/test/bcast_atom_spec_test.sh b/source/module_cell/test/bcast_atom_spec_test.sh old mode 100644 new mode 100755 diff --git a/source/module_cell/test/klist_test_para.sh b/source/module_cell/test/klist_test_para.sh old mode 100644 new mode 100755 diff --git a/source/module_cell/test/parallel_kpoints_test.sh b/source/module_cell/test/parallel_kpoints_test.sh old mode 100644 new mode 100755 diff --git a/source/module_cell/test/unitcell_test_parallel.sh b/source/module_cell/test/unitcell_test_parallel.sh old mode 100644 new mode 100755 diff --git a/source/module_cell/test_pw/CMakeLists.txt b/source/module_cell/test_pw/CMakeLists.txt index f13039f470..8830721455 100644 --- a/source/module_cell/test_pw/CMakeLists.txt +++ b/source/module_cell/test_pw/CMakeLists.txt @@ -15,6 +15,7 @@ AddTest( ../read_pp_vwr.cpp ../read_pp_blps.cpp ../../module_io/output.cpp ) +find_program(BASH bash) add_test(NAME cell_unitcell_test_pw_para COMMAND ${BASH} unitcell_test_pw_para.sh WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} diff --git a/source/module_cell/test_pw/unitcell_test_pw_para.sh b/source/module_cell/test_pw/unitcell_test_pw_para.sh old mode 100644 new mode 100755