Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
Paddle
提交
227245d3
P
Paddle
项目概览
PaddlePaddle
/
Paddle
大约 1 年 前同步成功
通知
2299
Star
20931
Fork
5422
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
1423
列表
看板
标记
里程碑
合并请求
543
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
P
Paddle
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
1,423
Issue
1,423
列表
看板
标记
里程碑
合并请求
543
合并请求
543
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
未验证
提交
227245d3
编写于
3月 23, 2023
作者:
Z
Zheng-Bicheng
提交者:
GitHub
3月 23, 2023
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[Test Mv] reader to legacy_test (#51943)
上级
1550348e
变更
6
显示空白变更内容
内联
并排
Showing
6 changed file
with
73 addition
and
88 deletion
+73
-88
python/CMakeLists.txt
python/CMakeLists.txt
+0
-1
python/paddle/reader/tests/CMakeLists.txt
python/paddle/reader/tests/CMakeLists.txt
+0
-2
python/paddle/reader/tests/__init__.py
python/paddle/reader/tests/__init__.py
+0
-13
test/CMakeLists.txt
test/CMakeLists.txt
+4
-2
test/legacy_test/CMakeLists.txt
test/legacy_test/CMakeLists.txt
+69
-70
test/legacy_test/test_decorator.py
test/legacy_test/test_decorator.py
+0
-0
未找到文件。
python/CMakeLists.txt
浏览文件 @
227245d3
...
...
@@ -149,7 +149,6 @@ add_custom_target(paddle_python ALL
set
(
PADDLE_PYTHON_PACKAGE_DIR
${
CMAKE_CURRENT_BINARY_DIR
}
/dist/
)
if
(
WITH_TESTING
)
add_subdirectory
(
paddle/reader/tests
)
add_subdirectory
(
paddle/dataset/tests
)
add_subdirectory
(
paddle/tests
)
add_subdirectory
(
paddle/fluid/tests
)
...
...
python/paddle/reader/tests/CMakeLists.txt
已删除
100644 → 0
浏览文件 @
1550348e
py_test
(
decorator_test SRCS decorator_test.py
)
set_tests_properties
(
decorator_test PROPERTIES TIMEOUT 120
)
python/paddle/reader/tests/__init__.py
已删除
100644 → 0
浏览文件 @
1550348e
# Copyright (c) 2018 PaddlePaddle Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
test/CMakeLists.txt
浏览文件 @
227245d3
...
...
@@ -5,8 +5,10 @@ set(PYTHON_TESTS_DIR
${
PADDLE_BINARY_DIR
}
/test
CACHE INTERNAL
"python tests directory"
)
add_subdirectory
(
cpp
)
add_subdirectory
(
legacy_test
)
if
(
WITH_TESTING
)
add_subdirectory
(
cpp
)
add_subdirectory
(
legacy_test
)
endif
()
get_property
(
test_srcs GLOBAL PROPERTY TEST_SRCS
)
get_property
(
test_names GLOBAL PROPERTY TEST_NAMES
)
...
...
test/legacy_test/CMakeLists.txt
浏览文件 @
227245d3
if
(
WITH_TESTING
)
file
(
file
(
GLOB TEST_OPS
RELATIVE
"
${
CMAKE_CURRENT_SOURCE_DIR
}
"
"test_*.py"
)
string
(
REPLACE
".py"
""
TEST_OPS
"
${
TEST_OPS
}
"
)
string
(
REPLACE
".py"
""
TEST_OPS
"
${
TEST_OPS
}
"
)
file
(
file
(
GLOB DIST_TEST_OPS
RELATIVE
"
${
CMAKE_CURRENT_SOURCE_DIR
}
"
"test_dist_*.py"
)
string
(
REPLACE
".py"
""
DIST_TEST_OPS
"
${
DIST_TEST_OPS
}
"
)
string
(
REPLACE
".py"
""
DIST_TEST_OPS
"
${
DIST_TEST_OPS
}
"
)
foreach
(
TEST_OP
${
DIST_TEST_OPS
}
)
foreach
(
TEST_OP
${
DIST_TEST_OPS
}
)
list
(
REMOVE_ITEM TEST_OPS
${
TEST_OP
}
)
endforeach
()
endforeach
()
if
(
NOT WITH_COVERAGE
)
if
(
NOT WITH_COVERAGE
)
list
(
REMOVE_ITEM TEST_OPS test_hapi_hub
)
endif
()
endif
()
foreach
(
src
${
TEST_OPS
}
)
foreach
(
src
${
TEST_OPS
}
)
py_test
(
${
src
}
SRCS
${
src
}
.py
)
endforeach
()
endforeach
()
function
(
py_dist_test TARGET_NAME
)
function
(
py_dist_test TARGET_NAME
)
if
(
WITH_TESTING
)
set
(
options
""
)
set
(
oneValueArgs
""
)
...
...
@@ -51,31 +50,31 @@ if(WITH_TESTING)
endif
()
endif
()
endfunction
()
endfunction
()
foreach
(
src
${
DIST_TEST_OPS
}
)
foreach
(
src
${
DIST_TEST_OPS
}
)
message
(
STATUS
${
src
}
)
py_dist_test
(
${
src
}
SRCS
${
src
}
.py
)
endforeach
()
set_tests_properties
(
test_dataset_cifar PROPERTIES TIMEOUT 120
)
set_tests_properties
(
test_pretrained_model PROPERTIES TIMEOUT 120
)
set_tests_properties
(
test_model PROPERTIES TIMEOUT 300
)
set_tests_properties
(
test_dataset_movielens PROPERTIES TIMEOUT 120
)
set_tests_properties
(
test_datasets PROPERTIES TIMEOUT 300
)
set_tests_properties
(
test_dataset_wmt PROPERTIES TIMEOUT 120
)
set_tests_properties
(
test_vision_models PROPERTIES TIMEOUT 120
)
set_tests_properties
(
test_dataset_uci_housing PROPERTIES TIMEOUT 120
)
set_tests_properties
(
test_dataset_imdb PROPERTIES TIMEOUT 300
)
set_tests_properties
(
test_pretrained_model PROPERTIES TIMEOUT 600
)
set_tests_properties
(
test_callback_wandb PROPERTIES TIMEOUT 60
)
if
(
WITH_COVERAGE
)
endforeach
()
set_tests_properties
(
test_dataset_cifar PROPERTIES TIMEOUT 120
)
set_tests_properties
(
test_pretrained_model PROPERTIES TIMEOUT 120
)
set_tests_properties
(
test_model PROPERTIES TIMEOUT 300
)
set_tests_properties
(
test_dataset_movielens PROPERTIES TIMEOUT 120
)
set_tests_properties
(
test_datasets PROPERTIES TIMEOUT 300
)
set_tests_properties
(
test_dataset_wmt PROPERTIES TIMEOUT 120
)
set_tests_properties
(
test_vision_models PROPERTIES TIMEOUT 120
)
set_tests_properties
(
test_dataset_uci_housing PROPERTIES TIMEOUT 120
)
set_tests_properties
(
test_dataset_imdb PROPERTIES TIMEOUT 300
)
set_tests_properties
(
test_pretrained_model PROPERTIES TIMEOUT 600
)
set_tests_properties
(
test_callback_wandb PROPERTIES TIMEOUT 60
)
if
(
WITH_COVERAGE
)
set_tests_properties
(
test_hapi_hub PROPERTIES TIMEOUT 300
)
endif
()
endif
()
if
(
APPLE
)
if
(
APPLE
)
set_tests_properties
(
test_callback_early_stop PROPERTIES TIMEOUT 300
)
set_tests_properties
(
test_callback_reduce_lr_on_plateau PROPERTIES TIMEOUT
300
)
set_tests_properties
(
test_vision_models PROPERTIES TIMEOUT 300
)
endif
()
endif
()
set_tests_properties
(
test_decorator PROPERTIES TIMEOUT 120
)
python/paddle/reader/tests/decorator_test
.py
→
test/legacy_test/test_decorator
.py
浏览文件 @
227245d3
文件已移动
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录