Skip to content

Commit

Permalink
Remove googletest from testing utility (#255)
Browse files Browse the repository at this point in the history
* remove google test from testing utility

* remove googletest install script
  • Loading branch information
alifahrri authored Oct 28, 2023
1 parent 1147a10 commit 7ffe45d
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 69 deletions.
4 changes: 0 additions & 4 deletions docker/base.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,6 @@ RUN update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-9 10000 && \
update-alternatives --install /usr/bin/gcov gcov /usr/bin/gcov-9 10000
RUN pip3 install -U gcovr

## install gtest
COPY scripts/install_gtest.sh install_gtest.sh
RUN bash install_gtest.sh

## install benchmark
COPY scripts/install_benchmark.sh install_benchmark.sh
RUN bash install_benchmark.sh
Expand Down
22 changes: 0 additions & 22 deletions include/nmtools/testing/testing.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,28 +35,6 @@ nmtools::utils::to_string(array)

#define NMTOOLS_TESTING_OUTPUT_PRECISION 1e-6

/**
* @brief implementation of gtest assert macro
*
*/
#define NMTOOLS_ASSERT_CLOSE_GTEST(result,expect) \
EXPECT_TRUE(isclose(result,expect,NMTOOLS_TESTING_OUTPUT_PRECISION)) \
<< "Actual :\n" \
<< STRINGIFY(result) \
<< "\nExpected:\n" \
<< STRINGIFY(expect) \

/**
* @brief implementation of gtest assert macro
*
*/
#define NMTOOLS_ASSERT_EQUAL_GTEST(result,expect) \
EXPECT_TRUE(isequal(result,expect)) \
<< "Actual :\n" \
<< STRINGIFY(result) \
<< "\nExpected:\n" \
<< STRINGIFY(expect) \

/**
* @brief implementation of typeinfo logging for doctest,
* may be used by `NMTOOLS_TESTING_LOG_TYPEINFO` macro
Expand Down
43 changes: 0 additions & 43 deletions scripts/install_gtest.sh

This file was deleted.

0 comments on commit 7ffe45d

Please sign in to comment.