From 8a583b68618d73a29717fd0dfa51523712cf7754 Mon Sep 17 00:00:00 2001 From: Zanthoxylum <105619360+Zanthoxylum@users.noreply.github.com> Date: Wed, 25 Nov 2026 20:42:30 +0800 Subject: [PATCH] chore(dfpt): consolidate module_dfpt tests into unittests/ Migrate the legacy test_serial/ (serial, __MPI-off ABI) and test/ (MPI) directories into a single unittests/ directory, following the unittests/ layout rule and the module_stodft precedent in #8334. - All 10 addtest targets keep their names (MODULE_DFPT_pert_serial, rho_serial, phon_serial, q0_serial, write_dyn_serial, xc_analytic_serial, pw_data_test, kq_basis_test, stern_test, pw_run_test), so the CTest labels and the CI matrix are unchanged. - The MPI targets opt back into __MPI via KEEP_FEATURE_DEFINITIONS while the directory disables it for the serial ABI (the AddTest mechanism documented in cmake/Testing.cmake); they stay wrapped in ENABLE_MPI as before. - Test sources are renamed to the test_.cpp convention (dfpt_kq_basis_test.cpp -> test_dfpt_kq_basis.cpp etc.); the shared fixtures keep their header names and gain test_-prefixed sources (test_dfpt_fixture.cpp, test_dfpt_stru_fixture.cpp, test_dfpt_mocks.cpp). - No test content changes: case counts are identical to the baseline (phon_serial 20, rho_serial 11, pert_serial 7), and all binaries relink against the same source lists. No documentation update required: internal test-layout consolidation with no user-facing behavior change. Verification: - ctest -R MODULE_DFPT: 10/10 passed after full reconfiguration - agent_governance_check.py --staged: no ERROR findings - gtest case counts match the develop baseline per target --- source/source_pw/module_dfpt/CMakeLists.txt | 7 +- .../source_pw/module_dfpt/test/CMakeLists.txt | 63 --------- .../{test_serial => unittests}/CMakeLists.txt | 131 ++++++++++++++---- .../{test => unittests}/dfpt_stru_tool.h | 0 .../dfpt_test_tool.h | 0 .../test_dfpt_fixture.cpp} | 0 .../test_dfpt_kq_basis.cpp} | 0 .../test_dfpt_mocks.cpp} | 0 .../test_dfpt_pert.cpp} | 0 .../test_dfpt_phon.cpp | 0 .../test_dfpt_phon_asr.cpp | 0 .../test_dfpt_phon_elec.cpp | 0 .../test_dfpt_phon_ewald.cpp | 0 .../test_dfpt_pw_data.cpp} | 0 .../test_dfpt_pw_run.cpp} | 0 .../test_dfpt_q0.cpp | 0 .../test_dfpt_q0_pos.cpp | 0 .../test_dfpt_rho.cpp | 0 .../test_dfpt_rho_mix.cpp | 0 .../test_dfpt_stern.cpp} | 0 .../test_dfpt_stru_fixture.cpp} | 0 .../test_dfpt_write_dyn.cpp | 0 22 files changed, 109 insertions(+), 92 deletions(-) delete mode 100644 source/source_pw/module_dfpt/test/CMakeLists.txt rename source/source_pw/module_dfpt/{test_serial => unittests}/CMakeLists.txt (55%) rename source/source_pw/module_dfpt/{test => unittests}/dfpt_stru_tool.h (100%) rename source/source_pw/module_dfpt/{test_serial => unittests}/dfpt_test_tool.h (100%) rename source/source_pw/module_dfpt/{test_serial/dfpt_test_tool.cpp => unittests/test_dfpt_fixture.cpp} (100%) rename source/source_pw/module_dfpt/{test/dfpt_kq_basis_test.cpp => unittests/test_dfpt_kq_basis.cpp} (100%) rename source/source_pw/module_dfpt/{test/dfpt_test_mocks.cpp => unittests/test_dfpt_mocks.cpp} (100%) rename source/source_pw/module_dfpt/{test_serial/dfpt_pert_serial_test.cpp => unittests/test_dfpt_pert.cpp} (100%) rename source/source_pw/module_dfpt/{test_serial => unittests}/test_dfpt_phon.cpp (100%) rename source/source_pw/module_dfpt/{test_serial => unittests}/test_dfpt_phon_asr.cpp (100%) rename source/source_pw/module_dfpt/{test_serial => unittests}/test_dfpt_phon_elec.cpp (100%) rename source/source_pw/module_dfpt/{test_serial => unittests}/test_dfpt_phon_ewald.cpp (100%) rename source/source_pw/module_dfpt/{test/dfpt_pw_data_test.cpp => unittests/test_dfpt_pw_data.cpp} (100%) rename source/source_pw/module_dfpt/{test/dfpt_pw_run_test.cpp => unittests/test_dfpt_pw_run.cpp} (100%) rename source/source_pw/module_dfpt/{test_serial => unittests}/test_dfpt_q0.cpp (100%) rename source/source_pw/module_dfpt/{test_serial => unittests}/test_dfpt_q0_pos.cpp (100%) rename source/source_pw/module_dfpt/{test_serial => unittests}/test_dfpt_rho.cpp (100%) rename source/source_pw/module_dfpt/{test_serial => unittests}/test_dfpt_rho_mix.cpp (100%) rename source/source_pw/module_dfpt/{test/dfpt_stern_test.cpp => unittests/test_dfpt_stern.cpp} (100%) rename source/source_pw/module_dfpt/{test/dfpt_stru_tool.cpp => unittests/test_dfpt_stru_fixture.cpp} (100%) rename source/source_pw/module_dfpt/{test_serial => unittests}/test_dfpt_write_dyn.cpp (100%) diff --git a/source/source_pw/module_dfpt/CMakeLists.txt b/source/source_pw/module_dfpt/CMakeLists.txt index 354aec78f28..531ac9319eb 100644 --- a/source/source_pw/module_dfpt/CMakeLists.txt +++ b/source/source_pw/module_dfpt/CMakeLists.txt @@ -55,9 +55,8 @@ target_link_libraries(${MODULE_NAME} PUBLIC base cell psi elecstate if(BUILD_TESTING) if(ENABLE_MPI) - add_subdirectory(test) - # serial (__MPI-off) tests for the FFT-driving kernels; must be built - # inside ENABLE_MPI so the shared prebuilt test libs stay available - add_subdirectory(test_serial) + # All targets (serial and MPI) live in unittests/; the serial ones are + # built inside ENABLE_MPI so the shared prebuilt test libs stay available + add_subdirectory(unittests) endif() endif() diff --git a/source/source_pw/module_dfpt/test/CMakeLists.txt b/source/source_pw/module_dfpt/test/CMakeLists.txt deleted file mode 100644 index cc41960d975..00000000000 --- a/source/source_pw/module_dfpt/test/CMakeLists.txt +++ /dev/null @@ -1,63 +0,0 @@ -abacus_disable_feature_definitions(__MLALGO) -abacus_disable_feature_definitions(__CUDA) -abacus_disable_feature_definitions(__ROCM) -abacus_disable_feature_definitions(__EXX) - -addtest( - TARGET MODULE_DFPT_pw_data_test - LIBS parameter base device symmetry - SOURCES dfpt_pw_data_test.cpp - ../dfpt_pw_data.cpp - ../dfpt_pw_data_resp.cpp - ../../../source_cell/qlist.cpp - ../../../source_cell/reciprocal_grid.cpp - ../../../source_psi/psi.cpp - # Shared ctor/dtor stubs for the cell/spepot/Plus_U link closures. - dfpt_test_mocks.cpp - # Shared cubic-cell / stru_lib fixture. - dfpt_stru_tool.cpp) - -addtest( - TARGET MODULE_DFPT_kq_basis_test - LIBS parameter base device symmetry planewave - SOURCES dfpt_kq_basis_test.cpp ../dfpt_kq_basis.cpp dfpt_test_mocks.cpp) - -addtest( - TARGET MODULE_DFPT_stern_test - LIBS parameter base device symmetry - SOURCES dfpt_stern_test.cpp ../dfpt_stern.cpp dfpt_test_mocks.cpp) - -addtest( - TARGET MODULE_DFPT_pw_run_test - LIBS parameter base device symmetry planewave - SOURCES dfpt_pw_run_test.cpp - ../dfpt_pw.cpp - ../dfpt_pw_init.cpp - ../dfpt_pw_run.cpp - ../dfpt_pw_solve.cpp - ../dfpt_pw_q0.cpp - ../dfpt_pw_data.cpp - ../dfpt_pw_data_resp.cpp - ../dfpt_pert.cpp - ../dfpt_pert_vkb.cpp - ../dfpt_pert_nl.cpp - ../dfpt_kq_basis.cpp - ../dfpt_stern.cpp - ../dfpt_rho.cpp - ../dfpt_rho_mix.cpp - ../../../source_estate/module_charge/chg_tools.cpp - ../dfpt_phon.cpp - ../dfpt_phon_asr.cpp - ../dfpt_phon_ewald.cpp - ../dfpt_phon_elec.cpp - ../dfpt_q0.cpp - ../dfpt_q0_pos.cpp - ../dfpt_metal.cpp - ../dfpt_hamilt_shift.cpp - ../../../source_cell/qlist.cpp - ../../../source_cell/reciprocal_grid.cpp - ../../../source_psi/psi.cpp - # Shared ctor/dtor stubs for the cell/spepot/charge/Plus_U closures. - dfpt_test_mocks.cpp - # Shared cubic-cell / stru_lib fixture. - dfpt_stru_tool.cpp) diff --git a/source/source_pw/module_dfpt/test_serial/CMakeLists.txt b/source/source_pw/module_dfpt/unittests/CMakeLists.txt similarity index 55% rename from source/source_pw/module_dfpt/test_serial/CMakeLists.txt rename to source/source_pw/module_dfpt/unittests/CMakeLists.txt index 3024c15e40e..71016a183d9 100644 --- a/source/source_pw/module_dfpt/test_serial/CMakeLists.txt +++ b/source/source_pw/module_dfpt/unittests/CMakeLists.txt @@ -1,3 +1,12 @@ +# Consolidated DFPT unit tests (the legacy test_serial/ and test/ directories +# were migrated here per the unittests/ layout rule; the module_stodft move in +# #8334 is the precedent). Target and CTest names are unchanged from the +# legacy layout, so the CI test matrix is unaffected. +# +# Serial targets drive the plane-wave FFT machinery directly (recip2real / +# real2recip on the shared rho/wfc grid). PW_Basis changes its member layout +# under __MPI, so the pw sources linked here must be compiled without __MPI +# in the same translation-unit ABI as the dfpt sources. abacus_disable_feature_definitions(__MPI) abacus_disable_feature_definitions(__EXX) abacus_disable_feature_definitions(__CUDA) @@ -6,11 +15,6 @@ abacus_disable_feature_definitions(__ROCM) abacus_disable_feature_definitions(__UT_USE_ROCM) abacus_disable_feature_definitions(__MLALGO) -# The DFPT first-order potential kernels (dfpt_pert.cpp) drive the plane-wave -# FFT machinery directly (recip2real / real2recip on the shared rho/wfc grid). -# PW_Basis changes its member layout under __MPI, so the pw sources linked -# here must be compiled without __MPI in the same translation-unit ABI as the -# dfpt sources (mirrors module_pw/test_serial). add_library( dfpt_planewave_serial OBJECT ../../../source_base/module_fft/fft_bundle.cpp @@ -29,7 +33,7 @@ add_library( addtest( TARGET MODULE_DFPT_pert_serial LIBS parameter dfpt_planewave_serial device base symmetry - SOURCES dfpt_pert_serial_test.cpp + SOURCES test_dfpt_pert.cpp ../dfpt_pert.cpp ../dfpt_pert_vkb.cpp ../dfpt_pert_nl.cpp @@ -40,10 +44,10 @@ addtest( ../../../source_cell/reciprocal_grid.cpp ../../../source_psi/psi.cpp # Shared ctor/dtor stubs for the cell/spepot/Plus_U link closures - # (see test/dfpt_test_mocks.cpp). - ../test/dfpt_test_mocks.cpp + # (see test_dfpt_mocks.cpp). + test_dfpt_mocks.cpp # Shared serial-side cell/basis/data fixture. - dfpt_test_tool.cpp) + test_dfpt_fixture.cpp) addtest( TARGET MODULE_DFPT_rho_serial @@ -60,10 +64,10 @@ addtest( ../../../source_cell/reciprocal_grid.cpp ../../../source_psi/psi.cpp # Shared ctor/dtor stubs for the cell/spepot/Plus_U link closures - # (see test/dfpt_test_mocks.cpp). - ../test/dfpt_test_mocks.cpp + # (see test_dfpt_mocks.cpp). + test_dfpt_mocks.cpp # Shared serial-side cell/basis/data fixture. - dfpt_test_tool.cpp) + test_dfpt_fixture.cpp) addtest( TARGET MODULE_DFPT_phon_serial @@ -88,11 +92,15 @@ addtest( ../../../source_cell/qlist.cpp ../../../source_cell/reciprocal_grid.cpp ../../../source_psi/psi.cpp + # Shared Ewald neighbor-shell generator (ion_ion real-space sum); + # raw sources because hamilt_general is an MPI-ABI object library + ../../../source_hamilt/module_ewald/h_ewald_pw.cpp + ../../../source_hamilt/module_ewald/dnrm2.cpp # Shared ctor/dtor stubs for the cell/spepot/Plus_U link closures - # (see test/dfpt_test_mocks.cpp). - ../test/dfpt_test_mocks.cpp + # (see test_dfpt_mocks.cpp). + test_dfpt_mocks.cpp # Shared serial-side cell/basis/data fixture. - dfpt_test_tool.cpp) + test_dfpt_fixture.cpp) addtest( TARGET MODULE_DFPT_q0_serial @@ -111,10 +119,10 @@ addtest( ../../../source_cell/reciprocal_grid.cpp ../../../source_psi/psi.cpp # Shared ctor/dtor stubs for the cell/spepot/Plus_U link closures - # (see test/dfpt_test_mocks.cpp). - ../test/dfpt_test_mocks.cpp + # (see test_dfpt_mocks.cpp). + test_dfpt_mocks.cpp # Shared serial-side cell/basis/data fixture. - dfpt_test_tool.cpp) + test_dfpt_fixture.cpp) # QE-format dyn writer + the Gamma-first q-ordering validation consumed by # the DFPT driver (test_dfpt_write_dyn.cpp matches dfpt_write_dyn.cpp, @@ -130,10 +138,10 @@ addtest( ../../../source_cell/reciprocal_grid.cpp ../../../source_psi/psi.cpp # Shared ctor/dtor stubs for the cell/spepot/Plus_U link closures - # (see test/dfpt_test_mocks.cpp). - ../test/dfpt_test_mocks.cpp + # (see test_dfpt_mocks.cpp). + test_dfpt_mocks.cpp # Shared serial-side cell/basis/data fixture. - dfpt_test_tool.cpp) + test_dfpt_fixture.cpp) # Analytic libxc first-order XC kernel (empty TU without libxc, so the test # only exists when the feature is compiled in) @@ -141,7 +149,7 @@ if(ENABLE_LIBXC) addtest( TARGET MODULE_DFPT_xc_analytic_serial LIBS parameter dfpt_planewave_serial device base symmetry Libxc::xc - SOURCES ../unittests/test_dfpt_xc_analytic.cpp + SOURCES test_dfpt_xc_analytic.cpp ../dfpt_xc_analytic.cpp ../dfpt_rho.cpp ../dfpt_rho_mix.cpp @@ -153,8 +161,81 @@ if(ENABLE_LIBXC) ../../../source_cell/reciprocal_grid.cpp ../../../source_psi/psi.cpp # Shared ctor/dtor stubs for the cell/spepot/Plus_U link closures - # (see test/dfpt_test_mocks.cpp). - ../test/dfpt_test_mocks.cpp + # (see test_dfpt_mocks.cpp). + test_dfpt_mocks.cpp # Shared serial-side cell/basis/data fixture. - dfpt_test_tool.cpp) + test_dfpt_fixture.cpp) +endif() + +# MPI-build targets. The directory disables __MPI for the serial ABI above; +# these targets genuinely exercise the MPI feature, so they opt back in via +# KEEP_FEATURE_DEFINITIONS (see AddTest in cmake/Testing.cmake). +if(ENABLE_MPI) + abacus_disable_feature_definitions(__MLALGO) + abacus_disable_feature_definitions(__CUDA) + abacus_disable_feature_definitions(__ROCM) + abacus_disable_feature_definitions(__EXX) + + addtest( + TARGET MODULE_DFPT_pw_data_test + KEEP_FEATURE_DEFINITIONS __MPI + LIBS parameter base device symmetry + SOURCES test_dfpt_pw_data.cpp + ../dfpt_pw_data.cpp + ../dfpt_pw_data_resp.cpp + ../../../source_cell/qlist.cpp + ../../../source_cell/reciprocal_grid.cpp + ../../../source_psi/psi.cpp + # Shared ctor/dtor stubs for the cell/spepot/Plus_U link closures. + test_dfpt_mocks.cpp + # Shared cubic-cell / stru_lib fixture. + test_dfpt_stru_fixture.cpp) + + addtest( + TARGET MODULE_DFPT_kq_basis_test + KEEP_FEATURE_DEFINITIONS __MPI + LIBS parameter base device symmetry planewave + SOURCES test_dfpt_kq_basis.cpp ../dfpt_kq_basis.cpp test_dfpt_mocks.cpp) + + addtest( + TARGET MODULE_DFPT_stern_test + KEEP_FEATURE_DEFINITIONS __MPI + LIBS parameter base device symmetry + SOURCES test_dfpt_stern.cpp ../dfpt_stern.cpp test_dfpt_mocks.cpp) + + addtest( + TARGET MODULE_DFPT_pw_run_test + KEEP_FEATURE_DEFINITIONS __MPI + LIBS parameter base device symmetry planewave + SOURCES test_dfpt_pw_run.cpp + ../dfpt_pw.cpp + ../dfpt_pw_init.cpp + ../dfpt_pw_run.cpp + ../dfpt_pw_solve.cpp + ../dfpt_pw_q0.cpp + ../dfpt_pw_data.cpp + ../dfpt_pw_data_resp.cpp + ../dfpt_pert.cpp + ../dfpt_pert_vkb.cpp + ../dfpt_pert_nl.cpp + ../dfpt_kq_basis.cpp + ../dfpt_stern.cpp + ../dfpt_rho.cpp + ../dfpt_rho_mix.cpp + ../../../source_estate/module_charge/chg_tools.cpp + ../dfpt_phon.cpp + ../dfpt_phon_asr.cpp + ../dfpt_phon_ewald.cpp + ../dfpt_phon_elec.cpp + ../dfpt_q0.cpp + ../dfpt_q0_pos.cpp + ../dfpt_metal.cpp + ../dfpt_hamilt_shift.cpp + ../../../source_cell/qlist.cpp + ../../../source_cell/reciprocal_grid.cpp + ../../../source_psi/psi.cpp + # Shared ctor/dtor stubs for the cell/spepot/charge/Plus_U closures. + test_dfpt_mocks.cpp + # Shared cubic-cell / stru_lib fixture. + test_dfpt_stru_fixture.cpp) endif() diff --git a/source/source_pw/module_dfpt/test/dfpt_stru_tool.h b/source/source_pw/module_dfpt/unittests/dfpt_stru_tool.h similarity index 100% rename from source/source_pw/module_dfpt/test/dfpt_stru_tool.h rename to source/source_pw/module_dfpt/unittests/dfpt_stru_tool.h diff --git a/source/source_pw/module_dfpt/test_serial/dfpt_test_tool.h b/source/source_pw/module_dfpt/unittests/dfpt_test_tool.h similarity index 100% rename from source/source_pw/module_dfpt/test_serial/dfpt_test_tool.h rename to source/source_pw/module_dfpt/unittests/dfpt_test_tool.h diff --git a/source/source_pw/module_dfpt/test_serial/dfpt_test_tool.cpp b/source/source_pw/module_dfpt/unittests/test_dfpt_fixture.cpp similarity index 100% rename from source/source_pw/module_dfpt/test_serial/dfpt_test_tool.cpp rename to source/source_pw/module_dfpt/unittests/test_dfpt_fixture.cpp diff --git a/source/source_pw/module_dfpt/test/dfpt_kq_basis_test.cpp b/source/source_pw/module_dfpt/unittests/test_dfpt_kq_basis.cpp similarity index 100% rename from source/source_pw/module_dfpt/test/dfpt_kq_basis_test.cpp rename to source/source_pw/module_dfpt/unittests/test_dfpt_kq_basis.cpp diff --git a/source/source_pw/module_dfpt/test/dfpt_test_mocks.cpp b/source/source_pw/module_dfpt/unittests/test_dfpt_mocks.cpp similarity index 100% rename from source/source_pw/module_dfpt/test/dfpt_test_mocks.cpp rename to source/source_pw/module_dfpt/unittests/test_dfpt_mocks.cpp diff --git a/source/source_pw/module_dfpt/test_serial/dfpt_pert_serial_test.cpp b/source/source_pw/module_dfpt/unittests/test_dfpt_pert.cpp similarity index 100% rename from source/source_pw/module_dfpt/test_serial/dfpt_pert_serial_test.cpp rename to source/source_pw/module_dfpt/unittests/test_dfpt_pert.cpp diff --git a/source/source_pw/module_dfpt/test_serial/test_dfpt_phon.cpp b/source/source_pw/module_dfpt/unittests/test_dfpt_phon.cpp similarity index 100% rename from source/source_pw/module_dfpt/test_serial/test_dfpt_phon.cpp rename to source/source_pw/module_dfpt/unittests/test_dfpt_phon.cpp diff --git a/source/source_pw/module_dfpt/test_serial/test_dfpt_phon_asr.cpp b/source/source_pw/module_dfpt/unittests/test_dfpt_phon_asr.cpp similarity index 100% rename from source/source_pw/module_dfpt/test_serial/test_dfpt_phon_asr.cpp rename to source/source_pw/module_dfpt/unittests/test_dfpt_phon_asr.cpp diff --git a/source/source_pw/module_dfpt/test_serial/test_dfpt_phon_elec.cpp b/source/source_pw/module_dfpt/unittests/test_dfpt_phon_elec.cpp similarity index 100% rename from source/source_pw/module_dfpt/test_serial/test_dfpt_phon_elec.cpp rename to source/source_pw/module_dfpt/unittests/test_dfpt_phon_elec.cpp diff --git a/source/source_pw/module_dfpt/test_serial/test_dfpt_phon_ewald.cpp b/source/source_pw/module_dfpt/unittests/test_dfpt_phon_ewald.cpp similarity index 100% rename from source/source_pw/module_dfpt/test_serial/test_dfpt_phon_ewald.cpp rename to source/source_pw/module_dfpt/unittests/test_dfpt_phon_ewald.cpp diff --git a/source/source_pw/module_dfpt/test/dfpt_pw_data_test.cpp b/source/source_pw/module_dfpt/unittests/test_dfpt_pw_data.cpp similarity index 100% rename from source/source_pw/module_dfpt/test/dfpt_pw_data_test.cpp rename to source/source_pw/module_dfpt/unittests/test_dfpt_pw_data.cpp diff --git a/source/source_pw/module_dfpt/test/dfpt_pw_run_test.cpp b/source/source_pw/module_dfpt/unittests/test_dfpt_pw_run.cpp similarity index 100% rename from source/source_pw/module_dfpt/test/dfpt_pw_run_test.cpp rename to source/source_pw/module_dfpt/unittests/test_dfpt_pw_run.cpp diff --git a/source/source_pw/module_dfpt/test_serial/test_dfpt_q0.cpp b/source/source_pw/module_dfpt/unittests/test_dfpt_q0.cpp similarity index 100% rename from source/source_pw/module_dfpt/test_serial/test_dfpt_q0.cpp rename to source/source_pw/module_dfpt/unittests/test_dfpt_q0.cpp diff --git a/source/source_pw/module_dfpt/test_serial/test_dfpt_q0_pos.cpp b/source/source_pw/module_dfpt/unittests/test_dfpt_q0_pos.cpp similarity index 100% rename from source/source_pw/module_dfpt/test_serial/test_dfpt_q0_pos.cpp rename to source/source_pw/module_dfpt/unittests/test_dfpt_q0_pos.cpp diff --git a/source/source_pw/module_dfpt/test_serial/test_dfpt_rho.cpp b/source/source_pw/module_dfpt/unittests/test_dfpt_rho.cpp similarity index 100% rename from source/source_pw/module_dfpt/test_serial/test_dfpt_rho.cpp rename to source/source_pw/module_dfpt/unittests/test_dfpt_rho.cpp diff --git a/source/source_pw/module_dfpt/test_serial/test_dfpt_rho_mix.cpp b/source/source_pw/module_dfpt/unittests/test_dfpt_rho_mix.cpp similarity index 100% rename from source/source_pw/module_dfpt/test_serial/test_dfpt_rho_mix.cpp rename to source/source_pw/module_dfpt/unittests/test_dfpt_rho_mix.cpp diff --git a/source/source_pw/module_dfpt/test/dfpt_stern_test.cpp b/source/source_pw/module_dfpt/unittests/test_dfpt_stern.cpp similarity index 100% rename from source/source_pw/module_dfpt/test/dfpt_stern_test.cpp rename to source/source_pw/module_dfpt/unittests/test_dfpt_stern.cpp diff --git a/source/source_pw/module_dfpt/test/dfpt_stru_tool.cpp b/source/source_pw/module_dfpt/unittests/test_dfpt_stru_fixture.cpp similarity index 100% rename from source/source_pw/module_dfpt/test/dfpt_stru_tool.cpp rename to source/source_pw/module_dfpt/unittests/test_dfpt_stru_fixture.cpp diff --git a/source/source_pw/module_dfpt/test_serial/test_dfpt_write_dyn.cpp b/source/source_pw/module_dfpt/unittests/test_dfpt_write_dyn.cpp similarity index 100% rename from source/source_pw/module_dfpt/test_serial/test_dfpt_write_dyn.cpp rename to source/source_pw/module_dfpt/unittests/test_dfpt_write_dyn.cpp