From 8cc48b2edee7b650dd304524d5c9be73752f95ad Mon Sep 17 00:00:00 2001 From: Zheng-Bicheng <58363586+Zheng-Bicheng@users.noreply.github.com> Date: Wed, 29 Mar 2023 11:25:48 +0800 Subject: [PATCH] [Move Test] Move imperative (#52170) * update * update --- paddle/fluid/imperative/CMakeLists.txt | 2 -- test/cpp/CMakeLists.txt | 1 + .../imperative/tests => test/cpp/imperative}/CMakeLists.txt | 0 .../tests => test/cpp/imperative}/bkcl_context_test.cc | 0 .../tests => test/cpp/imperative}/cncl_context_test.cc | 0 .../tests => test/cpp/imperative}/heter_ccl_context_test.cc | 0 .../tests => test/cpp/imperative}/nccl_context_test.cc | 0 .../imperative/tests => test/cpp/imperative}/test_eager.cc | 0 .../tests => test/cpp/imperative}/test_gradient_accmulator.cc | 0 .../imperative/tests => test/cpp/imperative}/test_group.cc | 0 .../imperative/tests => test/cpp/imperative}/test_hooks.cc | 0 .../imperative/tests => test/cpp/imperative}/test_layer.cc | 0 .../imperative/tests => test/cpp/imperative}/test_prepare_op.cc | 0 .../imperative/tests => test/cpp/imperative}/test_tracer.cc | 0 14 files changed, 1 insertion(+), 2 deletions(-) rename {paddle/fluid/imperative/tests => test/cpp/imperative}/CMakeLists.txt (100%) rename {paddle/fluid/imperative/tests => test/cpp/imperative}/bkcl_context_test.cc (100%) rename {paddle/fluid/imperative/tests => test/cpp/imperative}/cncl_context_test.cc (100%) rename {paddle/fluid/imperative/tests => test/cpp/imperative}/heter_ccl_context_test.cc (100%) rename {paddle/fluid/imperative/tests => test/cpp/imperative}/nccl_context_test.cc (100%) rename {paddle/fluid/imperative/tests => test/cpp/imperative}/test_eager.cc (100%) rename {paddle/fluid/imperative/tests => test/cpp/imperative}/test_gradient_accmulator.cc (100%) rename {paddle/fluid/imperative/tests => test/cpp/imperative}/test_group.cc (100%) rename {paddle/fluid/imperative/tests => test/cpp/imperative}/test_hooks.cc (100%) rename {paddle/fluid/imperative/tests => test/cpp/imperative}/test_layer.cc (100%) rename {paddle/fluid/imperative/tests => test/cpp/imperative}/test_prepare_op.cc (100%) rename {paddle/fluid/imperative/tests => test/cpp/imperative}/test_tracer.cc (100%) diff --git a/paddle/fluid/imperative/CMakeLists.txt b/paddle/fluid/imperative/CMakeLists.txt index 43c83a72377..0628b15d98c 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 fa39c41000d..193600b00df 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 -- GitLab