Skip to content

Commit

Permalink
pybindings test (pytorch#3934)
Browse files Browse the repository at this point in the history
Summary:
add to pytest.ini

Pull Request resolved: pytorch#3934

Reviewed By: kirklandsign

Differential Revision: D58421576

Pulled By: JacobSzwejbka

fbshipit-source-id: 900df7a697020acb621448af9d82165b71bd461b
  • Loading branch information
JacobSzwejbka authored and facebook-github-bot committed Jun 12, 2024
1 parent 1593756 commit 34d3172
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 0 deletions.
28 changes: 28 additions & 0 deletions extension/pytree/test/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# Copyright (c) Meta Platforms, Inc. and affiliates.
# All rights reserved.
#
# This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree.

# @generated by test/utils/generate_gtest_cmakelists.py
#
# This file should be formatted with
# ~~~
# cmake-format -i CMakeLists.txt
# ~~~
# It should also be cmake-lint clean.
#

cmake_minimum_required(VERSION 3.19)
project(extension_pytree_test)

# Use C++17 for test.
set(CMAKE_CXX_STANDARD 17)

set(EXECUTORCH_ROOT ${CMAKE_CURRENT_SOURCE_DIR}/../../..)

include(${EXECUTORCH_ROOT}/build/Test.cmake)

set(_test_srcs function_ref_test.cpp test_pytree.cpp)

et_cxx_test(extension_pytree_test SOURCES ${_test_srcs} EXTRA_LIBS)
2 changes: 2 additions & 0 deletions pytest.ini
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ addopts =
kernels/test/test_case_gen.py
# backends/xnnpack
backends/xnnpack/test
# extension/
extension/pybindings/test
# test
test/end2end/test_end2end.py
--ignore=backends/xnnpack/test/ops/linear.py
Expand Down
Binary file added schema/default.profraw
Binary file not shown.
7 changes: 7 additions & 0 deletions test/utils/OSSTestConfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,13 @@
"portable_ops_lib"
]
},
{
"directory": "extension/pytree/test",
"sources": [
"function_ref_test.cpp",
"test_pytree.cpp"
]
},
{
"directory": "extension/runner_util/test",
"sources": [
Expand Down

0 comments on commit 34d3172

Please sign in to comment.