Commit 34f648ed authored by Jeremy Reizenstein's avatar Jeremy Reizenstein Committed by Facebook GitHub Bot
Browse files

move targets

Summary: Move testing targets from pytorch3d/tests/TARGETS to pytorch3d/TARGETS.

Reviewed By: shapovalov

Differential Revision: D36186940

fbshipit-source-id: a4c52c4d99351f885e2b0bf870532d530324039b
parent f625fe1f
......@@ -10,7 +10,7 @@
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
DIR=$(dirname "${DIR}")
if [[ -f "${DIR}/tests/TARGETS" ]]
if [[ -f "${DIR}/TARGETS" ]]
then
pyfmt "${DIR}"
else
......@@ -30,7 +30,7 @@ clangformat=$(command -v clang-format-8 || echo clang-format)
find "${DIR}" -regex ".*\.\(cpp\|c\|cc\|cu\|cuh\|cxx\|h\|hh\|hpp\|hxx\|tcc\|mm\|m\)" -print0 | xargs -0 "${clangformat}" -i
# Run arc and pyre internally only.
if [[ -f "${DIR}/tests/TARGETS" ]]
if [[ -f "${DIR}/TARGETS" ]]
then
(cd "${DIR}"; command -v arc > /dev/null && arc lint) || true
......
......@@ -51,7 +51,7 @@ def tests_from_file(path: Path, base: str) -> List[str]:
def main() -> None:
files = get_test_files()
test_root = Path(__file__).parent.parent / "tests"
test_root = Path(__file__).parent.parent
all_tests = []
for f in files:
file_base = str(f.relative_to(test_root))[:-3].replace("/", ".")
......
......@@ -5,7 +5,7 @@
# LICENSE file in the root directory of this source tree.
from fvcore.common.benchmark import benchmark
from test_acos_linear_extrapolation import TestAcosLinearExtrapolation
from tests.test_acos_linear_extrapolation import TestAcosLinearExtrapolation
def bm_acos_linear_extrapolation() -> None:
......
......@@ -7,7 +7,7 @@
from itertools import product
from fvcore.common.benchmark import benchmark
from test_ball_query import TestBallQuery
from tests.test_ball_query import TestBallQuery
def bm_ball_query() -> None:
......
......@@ -8,7 +8,7 @@
from itertools import product
from fvcore.common.benchmark import benchmark
from test_blending import TestBlending
from tests.test_blending import TestBlending
def bm_blending() -> None:
......
......@@ -7,7 +7,7 @@
import itertools
from fvcore.common.benchmark import benchmark
from test_cameras_alignment import TestCamerasAlignment
from tests.test_cameras_alignment import TestCamerasAlignment
def bm_cameras_alignment() -> None:
......
......@@ -8,7 +8,7 @@ from itertools import product
import torch
from fvcore.common.benchmark import benchmark
from test_chamfer import TestChamfer
from tests.test_chamfer import TestChamfer
def bm_chamfer() -> None:
......
......@@ -5,7 +5,7 @@
# LICENSE file in the root directory of this source tree.
from fvcore.common.benchmark import benchmark
from test_cubify import TestCubify
from tests.test_cubify import TestCubify
def bm_cubify() -> None:
......
......@@ -9,7 +9,7 @@ from itertools import product
import torch
from fvcore.common.benchmark import benchmark
from test_face_areas_normals import TestFaceAreasNormals
from tests.test_face_areas_normals import TestFaceAreasNormals
def bm_face_areas_normals() -> None:
......
......@@ -9,7 +9,7 @@ from itertools import product
import torch
from fvcore.common.benchmark import benchmark
from test_graph_conv import TestGraphConv
from tests.test_graph_conv import TestGraphConv
def bm_graph_conv() -> None:
......
......@@ -7,7 +7,7 @@
from itertools import product
from fvcore.common.benchmark import benchmark
from test_iou_box3d import TestIoU3D
from tests.test_iou_box3d import TestIoU3D
def bm_iou_box3d() -> None:
......
......@@ -7,7 +7,7 @@
from itertools import product
from fvcore.common.benchmark import benchmark
from test_knn import TestKNN
from tests.test_knn import TestKNN
def bm_knn() -> None:
......
......@@ -5,7 +5,7 @@
# LICENSE file in the root directory of this source tree.
from fvcore.common.benchmark import benchmark
from test_marching_cubes import TestMarchingCubes
from tests.test_marching_cubes import TestMarchingCubes
def bm_marching_cubes() -> None:
......
......@@ -8,7 +8,7 @@
from itertools import product
from fvcore.common.benchmark import benchmark
from test_mesh_edge_loss import TestMeshEdgeLoss
from tests.test_mesh_edge_loss import TestMeshEdgeLoss
def bm_mesh_edge_loss() -> None:
......
......@@ -7,8 +7,8 @@
from itertools import product
from fvcore.common.benchmark import benchmark
from test_io_obj import TestMeshObjIO
from test_io_ply import TestMeshPlyIO
from tests.test_io_obj import TestMeshObjIO
from tests.test_io_ply import TestMeshPlyIO
def bm_save_load() -> None:
......
......@@ -9,7 +9,7 @@ from itertools import product
import torch
from fvcore.common.benchmark import benchmark
from test_mesh_laplacian_smoothing import TestLaplacianSmoothing
from tests.test_mesh_laplacian_smoothing import TestLaplacianSmoothing
def bm_mesh_laplacian_smoothing() -> None:
......
......@@ -9,7 +9,7 @@ from itertools import product
import torch
from fvcore.common.benchmark import benchmark
from test_mesh_normal_consistency import TestMeshNormalConsistency
from tests.test_mesh_normal_consistency import TestMeshNormalConsistency
def bm_mesh_normal_consistency() -> None:
......
......@@ -9,7 +9,7 @@ from itertools import product
import torch
from fvcore.common.benchmark import benchmark
from test_meshes import TestMeshes
from tests.test_meshes import TestMeshes
def bm_compute_packed_padded_meshes() -> None:
......
......@@ -9,7 +9,7 @@ from itertools import product
import torch
from fvcore.common.benchmark import benchmark
from test_packed_to_padded import TestPackedToPadded
from tests.test_packed_to_padded import TestPackedToPadded
def bm_packed_to_padded() -> None:
......
......@@ -7,7 +7,7 @@
import itertools
from fvcore.common.benchmark import benchmark
from test_perspective_n_points import TestPerspectiveNPoints
from tests.test_perspective_n_points import TestPerspectiveNPoints
def bm_perspective_n_points() -> None:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment