diff --git a/paddle/fluid/imperative/CMakeLists.txt b/paddle/fluid/imperative/CMakeLists.txt index 43c83a7237757556de6ba5c0461dd69d457bae8e..0628b15d98c2c01929aa71db3540bb57a9c82943 100644 --- a/paddle/fluid/imperative/CMakeLists.txt +++ b/paddle/fluid/imperative/CMakeLists.txt @@ -210,5 +210,3 @@ else() npu_op_runner phi_tensor) endif() - -add_subdirectory(tests) diff --git a/test/cpp/CMakeLists.txt b/test/cpp/CMakeLists.txt index fa39c41000d77fe7e4082b05800bbb3e1565b56f..193600b00dfdf795fc9bf777a1af51f9607051b5 100644 --- a/test/cpp/CMakeLists.txt +++ b/test/cpp/CMakeLists.txt @@ -1,3 +1,4 @@ add_subdirectory(phi) add_subdirectory(jit) add_subdirectory(new_executor) +add_subdirectory(imperative) diff --git a/paddle/fluid/imperative/tests/CMakeLists.txt b/test/cpp/imperative/CMakeLists.txt similarity index 100% rename from paddle/fluid/imperative/tests/CMakeLists.txt rename to test/cpp/imperative/CMakeLists.txt diff --git a/paddle/fluid/imperative/tests/bkcl_context_test.cc b/test/cpp/imperative/bkcl_context_test.cc similarity index 100% rename from paddle/fluid/imperative/tests/bkcl_context_test.cc rename to test/cpp/imperative/bkcl_context_test.cc diff --git a/paddle/fluid/imperative/tests/cncl_context_test.cc b/test/cpp/imperative/cncl_context_test.cc similarity index 100% rename from paddle/fluid/imperative/tests/cncl_context_test.cc rename to test/cpp/imperative/cncl_context_test.cc diff --git a/paddle/fluid/imperative/tests/heter_ccl_context_test.cc b/test/cpp/imperative/heter_ccl_context_test.cc similarity index 100% rename from paddle/fluid/imperative/tests/heter_ccl_context_test.cc rename to test/cpp/imperative/heter_ccl_context_test.cc diff --git a/paddle/fluid/imperative/tests/nccl_context_test.cc b/test/cpp/imperative/nccl_context_test.cc similarity index 100% rename from paddle/fluid/imperative/tests/nccl_context_test.cc rename to test/cpp/imperative/nccl_context_test.cc diff --git a/paddle/fluid/imperative/tests/test_eager.cc b/test/cpp/imperative/test_eager.cc similarity index 100% rename from paddle/fluid/imperative/tests/test_eager.cc rename to test/cpp/imperative/test_eager.cc diff --git a/paddle/fluid/imperative/tests/test_gradient_accmulator.cc b/test/cpp/imperative/test_gradient_accmulator.cc similarity index 100% rename from paddle/fluid/imperative/tests/test_gradient_accmulator.cc rename to test/cpp/imperative/test_gradient_accmulator.cc diff --git a/paddle/fluid/imperative/tests/test_group.cc b/test/cpp/imperative/test_group.cc similarity index 100% rename from paddle/fluid/imperative/tests/test_group.cc rename to test/cpp/imperative/test_group.cc diff --git a/paddle/fluid/imperative/tests/test_hooks.cc b/test/cpp/imperative/test_hooks.cc similarity index 100% rename from paddle/fluid/imperative/tests/test_hooks.cc rename to test/cpp/imperative/test_hooks.cc diff --git a/paddle/fluid/imperative/tests/test_layer.cc b/test/cpp/imperative/test_layer.cc similarity index 100% rename from paddle/fluid/imperative/tests/test_layer.cc rename to test/cpp/imperative/test_layer.cc diff --git a/paddle/fluid/imperative/tests/test_prepare_op.cc b/test/cpp/imperative/test_prepare_op.cc similarity index 100% rename from paddle/fluid/imperative/tests/test_prepare_op.cc rename to test/cpp/imperative/test_prepare_op.cc diff --git a/paddle/fluid/imperative/tests/test_tracer.cc b/test/cpp/imperative/test_tracer.cc similarity index 100% rename from paddle/fluid/imperative/tests/test_tracer.cc rename to test/cpp/imperative/test_tracer.cc