From e51767ae5f64c87e2788da421309d46a03c0b709 Mon Sep 17 00:00:00 2001 From: Neal Gafter Date: Thu, 22 Sep 2022 22:02:36 -0700 Subject: [PATCH] minibmg: slightly reorganize tests so there is one directory for all minibmg tests. (#1699) Summary: Pull Request resolved: https://github.com/facebookresearch/beanmachine/pull/1699 Move all of minibmg's tests into a single test directory. Reviewed By: AishwaryaSivaraman Differential Revision: D39754217 fbshipit-source-id: 3e495dec6240bfdae334fefec02b7c6ce77eb361 --- minibmg/{ad/tests => tests/ad}/num2_test.cpp | 2 +- minibmg/{ad/tests => tests/ad}/num3_test.cpp | 2 +- minibmg/{ad/tests => tests/ad}/real_test.cpp | 0 minibmg/{ad/tests => tests/ad}/realperf_test.cpp | 0 minibmg/{ad/tests => tests/ad}/traced_test.cpp | 0 minibmg/tests/eval_test.cpp | 2 +- minibmg/tests/log_prob_test.cpp | 2 +- minibmg/{ad => }/tests/test_utils.cpp | 2 +- minibmg/{ad => }/tests/test_utils.h | 0 9 files changed, 5 insertions(+), 5 deletions(-) rename minibmg/{ad/tests => tests/ad}/num2_test.cpp (98%) rename minibmg/{ad/tests => tests/ad}/num3_test.cpp (98%) rename minibmg/{ad/tests => tests/ad}/real_test.cpp (100%) rename minibmg/{ad/tests => tests/ad}/realperf_test.cpp (100%) rename minibmg/{ad/tests => tests/ad}/traced_test.cpp (100%) rename minibmg/{ad => }/tests/test_utils.cpp (89%) rename minibmg/{ad => }/tests/test_utils.h (100%) diff --git a/minibmg/ad/tests/num2_test.cpp b/minibmg/tests/ad/num2_test.cpp similarity index 98% rename from minibmg/ad/tests/num2_test.cpp rename to minibmg/tests/ad/num2_test.cpp index c9416b3880..9864a205ce 100644 --- a/minibmg/ad/tests/num2_test.cpp +++ b/minibmg/tests/ad/num2_test.cpp @@ -9,7 +9,7 @@ #include #include "beanmachine/minibmg/ad/num2.h" #include "beanmachine/minibmg/ad/real.h" -#include "beanmachine/minibmg/ad/tests/test_utils.h" +#include "beanmachine/minibmg/tests/test_utils.h" using namespace ::testing; using namespace beanmachine::minibmg; diff --git a/minibmg/ad/tests/num3_test.cpp b/minibmg/tests/ad/num3_test.cpp similarity index 98% rename from minibmg/ad/tests/num3_test.cpp rename to minibmg/tests/ad/num3_test.cpp index 3d0ed75b50..23d28b2200 100644 --- a/minibmg/ad/tests/num3_test.cpp +++ b/minibmg/tests/ad/num3_test.cpp @@ -15,7 +15,7 @@ #include "beanmachine/minibmg/ad/num2.h" #include "beanmachine/minibmg/ad/num3.h" #include "beanmachine/minibmg/ad/real.h" -#include "beanmachine/minibmg/ad/tests/test_utils.h" +#include "beanmachine/minibmg/tests/test_utils.h" using namespace ::testing; using namespace beanmachine::minibmg; diff --git a/minibmg/ad/tests/real_test.cpp b/minibmg/tests/ad/real_test.cpp similarity index 100% rename from minibmg/ad/tests/real_test.cpp rename to minibmg/tests/ad/real_test.cpp diff --git a/minibmg/ad/tests/realperf_test.cpp b/minibmg/tests/ad/realperf_test.cpp similarity index 100% rename from minibmg/ad/tests/realperf_test.cpp rename to minibmg/tests/ad/realperf_test.cpp diff --git a/minibmg/ad/tests/traced_test.cpp b/minibmg/tests/ad/traced_test.cpp similarity index 100% rename from minibmg/ad/tests/traced_test.cpp rename to minibmg/tests/ad/traced_test.cpp diff --git a/minibmg/tests/eval_test.cpp b/minibmg/tests/eval_test.cpp index 423586eca4..21dad8a098 100644 --- a/minibmg/tests/eval_test.cpp +++ b/minibmg/tests/eval_test.cpp @@ -7,8 +7,8 @@ #include -#include #include +#include #include #include "beanmachine/minibmg/ad/num2.h" #include "beanmachine/minibmg/ad/num3.h" diff --git a/minibmg/tests/log_prob_test.cpp b/minibmg/tests/log_prob_test.cpp index 8b6659ef96..a4a06cc967 100644 --- a/minibmg/tests/log_prob_test.cpp +++ b/minibmg/tests/log_prob_test.cpp @@ -7,7 +7,7 @@ #include -#include +#include #include "beanmachine/minibmg/ad/num2.h" #include "beanmachine/minibmg/ad/num3.h" #include "beanmachine/minibmg/ad/real.h" diff --git a/minibmg/ad/tests/test_utils.cpp b/minibmg/tests/test_utils.cpp similarity index 89% rename from minibmg/ad/tests/test_utils.cpp rename to minibmg/tests/test_utils.cpp index d5b63d27d1..32fe4fcce0 100644 --- a/minibmg/ad/tests/test_utils.cpp +++ b/minibmg/tests/test_utils.cpp @@ -5,7 +5,7 @@ * LICENSE file in the root directory of this source tree. */ -#include "beanmachine/minibmg/ad/tests/test_utils.h" +#include "beanmachine/minibmg/tests/test_utils.h" #include using namespace std; diff --git a/minibmg/ad/tests/test_utils.h b/minibmg/tests/test_utils.h similarity index 100% rename from minibmg/ad/tests/test_utils.h rename to minibmg/tests/test_utils.h