From 316590d60a7262b17e0d37be1940ed45cc182f00 Mon Sep 17 00:00:00 2001 From: Feiyu Chan Date: Wed, 8 Sep 2021 16:16:01 +0800 Subject: [PATCH] add placeholder for unittests (#24) --- .../paddle/fluid/tests/unittests/fft/CMakeLists.txt | 10 ++++++++++ python/paddle/fluid/tests/unittests/fft/test_fft.py | 13 +++++++++++++ .../fluid/tests/unittests/fft/test_spectral_op.py | 13 +++++++++++++ 3 files changed, 36 insertions(+) create mode 100644 python/paddle/fluid/tests/unittests/fft/CMakeLists.txt create mode 100644 python/paddle/fluid/tests/unittests/fft/test_fft.py create mode 100644 python/paddle/fluid/tests/unittests/fft/test_spectral_op.py diff --git a/python/paddle/fluid/tests/unittests/fft/CMakeLists.txt b/python/paddle/fluid/tests/unittests/fft/CMakeLists.txt new file mode 100644 index 0000000000000..ffc78d33347b7 --- /dev/null +++ b/python/paddle/fluid/tests/unittests/fft/CMakeLists.txt @@ -0,0 +1,10 @@ +file(GLOB TEST_OPS RELATIVE "${CMAKE_CURRENT_SOURCE_DIR}" "test_*.py") +string(REPLACE ".py" "" TEST_OPS "${TEST_OPS}") + +foreach(TEST_OP ${TEST_OPS}) + py_test_modules(${TEST_OP} MODULES ${TEST_OP}) +endforeach(TEST_OP) +if(NOT WIN32) + set_tests_properties(test_rnn_nets_static PROPERTIES TIMEOUT 120) + set_tests_properties(test_rnn_nets PROPERTIES TIMEOUT 120) +endif() diff --git a/python/paddle/fluid/tests/unittests/fft/test_fft.py b/python/paddle/fluid/tests/unittests/fft/test_fft.py new file mode 100644 index 0000000000000..b9a7651e44909 --- /dev/null +++ b/python/paddle/fluid/tests/unittests/fft/test_fft.py @@ -0,0 +1,13 @@ +# Copyright (c) 2021 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. diff --git a/python/paddle/fluid/tests/unittests/fft/test_spectral_op.py b/python/paddle/fluid/tests/unittests/fft/test_spectral_op.py new file mode 100644 index 0000000000000..b9a7651e44909 --- /dev/null +++ b/python/paddle/fluid/tests/unittests/fft/test_spectral_op.py @@ -0,0 +1,13 @@ +# Copyright (c) 2021 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.