Skip to content

Replace CppUnit with GoogleTest in AX tests #1919

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 23 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
3ed5f6e
Add GoogleTest to AX test; run cppunit and gtest in tandem for gradua…
tstraubinger Sep 27, 2024
29a17e3
Revert deliberate test failure used for testing
tstraubinger Oct 3, 2024
40a3ef4
Convert TestScanners.cc from cppunit to gtest
tstraubinger Oct 3, 2024
9bb34df
Convert TestAttributeBindings.cc from cppunit to gtest
tstraubinger Oct 3, 2024
5c2f8e8
Convert TestCodecs.cc from cppunit to gtest
tstraubinger Oct 3, 2024
a065b5e
Convert TestComputeGeneratorFailures.cc from cppunit to gtest
tstraubinger Oct 3, 2024
efa5176
Convert TestFunctionGroup.cc from cppunit to gtest
tstraubinger Oct 3, 2024
7aa4136
Convert TestFunctionRegistry.cc from cppunit to gtest
tstraubinger Oct 3, 2024
26ada31
Convert TestFunctionTypes.cc from cppunit to gtest
tstraubinger Oct 4, 2024
f25319e
Convert TestLogger.cc from cppunit to gtest; add gtest friend declara…
tstraubinger Oct 5, 2024
b44248b
Convert TestStringIR.cc from cppunit to gtest
tstraubinger Oct 5, 2024
5beb2c5
Convert TestSymbolTable.cc from cppunit to gtest
tstraubinger Oct 5, 2024
18c2c3a
Convert TestTypes.cc from cppunit to gtest
tstraubinger Oct 5, 2024
5e6a0d2
Convert TestAXRun.cc from cppunit to gtest
tstraubinger Oct 5, 2024
ecb6e7b
Convert TestPointExecutable.cc from cppunit to gtest; add gtest frien…
tstraubinger Oct 5, 2024
8a13cb2
Convert TestVolumeExecutable.cc from cppunit to gtest; add gtest frie…
tstraubinger Oct 5, 2024
748ace4
Convert TestArrayPack.cc to use gtest; add temporary support for both…
tstraubinger Oct 18, 2024
5df8871
Convert all of AX frontend test suite to use gtest; remove temporary …
tstraubinger Oct 18, 2024
dcd6744
Convert all of AX integration test suite to use gtest
tstraubinger Oct 28, 2024
68d9753
Remove cppunit utilities from main AX test runner
tstraubinger Oct 29, 2024
ac56c24
Remove CppUnit from AX test CMake requirements
tstraubinger Oct 29, 2024
109c3f2
Remove all mentions of CppUnit from build dependencies and instructions
tstraubinger Oct 31, 2024
692d63e
Remove whitespace
tstraubinger Jan 7, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions ci/install_macos.sh
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,7 @@ LLVM_VERSION=$1
if [ ! -z "$LLVM_VERSION" ]; then
if [ "$LLVM_VERSION" == "latest" ]; then
brew install llvm
brew install cppunit
else
brew install llvm@$LLVM_VERSION
brew install cppunit
fi
fi
320 changes: 0 additions & 320 deletions cmake/FindCppUnit.cmake

This file was deleted.

2 changes: 0 additions & 2 deletions doc/build.txt
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,6 @@ CMake | Cross-platform family of tools designed to help build software
C++17 Compiler | Matching Houdini compiler and version | All |
Boost | Components: iostreams | All |
GoogleTest | A unit testing framework module for C++ | Unit Tests |
CppUnit | A unit testing framework module for C++ | Unit Tests (AX) |
GLFW | Simple API for OpenGL development | OpenVDB View |
Doxygen | Documentation generation from C++ | Documentation |
Log4cplus | An optional dependency for improved OpenVDB Logging | Optional (All) |
Expand Down Expand Up @@ -349,7 +348,6 @@ Boost | Components: iostreams
ZLIB | Compression library for disk serialization compression | All |
Blosc | Recommended dependency for improved disk compression | All* |
GoogleTest | A unit testing framework module for C++ | Unit Tests |
CppUnit | A unit testing framework module for C++ | Unit Tests (AX) |
GLFW | Simple API for OpenGL development | OpenVDB View |
Doxygen | Documentation generation from C++ | Documentation |
OpenEXR | EXR serialization support | OpenVDB Render |
Expand Down
6 changes: 1 addition & 5 deletions doc/dependencies.txt
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,10 @@ OpenVDB View | Core Library dependencies, OpenGL, GLFW3, GLEW* | -
OpenVDB Python | Core Library dependencies, Python, nanobind | NumPy
OpenVDB AX | Core Library dependencies, LLVM | Bison, Flex
NanoVDB | - | Core Library, CUDA, TBB, Blosc, ZLib
OpenVDB UnitTests | Core Library dependencies, GoogleTest | CppUnit**
OpenVDB UnitTests | Core Library dependencies, GoogleTest | -
OpenVDB Documentation | Doxygen | -

- @b * GLEW is only required for building the vdb_view binary on Windows.
- @b ** CppUnit is only required for building the AX unit tests.
- @b Note - Bison and Flex are only required for re-generation of the AX
grammar which is not typically necessary for the majority of users.

Expand All @@ -73,7 +72,6 @@ Python | 3.10 | 3.11 | The python interpreter and libraries
nanobind | 2.0.0 | 2.1.0 | C++/python bindings | Y | Y | https://nanobind.readthedocs.io
NumPy | 1.23.0 | 1.26.0 | Scientific computing with Python | Y | Y | http://www.numpy.org
GoogleTest | 1.10 | Latest | A unit testing framework module for C++ | Y | Y | https://github.com/google/googletest
CppUnit | 1.10 | Latest | A unit testing framework module for C++ | N | Y | https://freedesktop.org/wiki/Software/cppunit
Blosc | 1.17.0* | 1.17.0 | Recommended dependency for improved disk compression | Y | Y | https://github.com/Blosc/c-blosc/releases
Log4cplus | 1.1.2 | Latest | An optional dependency for improved OpenVDB Logging | Y | Y | https://github.com/log4cplus/log4cplus
libpng | - | Latest | Library for manipulating PNG images | Y | Y | http://www.libpng.org/pub/png/libpng.html
Expand Down Expand Up @@ -155,7 +153,6 @@ apt-get install libpng-dev # libpng
apt-get install libopenexr-dev # OpenEXR
apt-get install liblog4cplus-dev # Log4cplus
apt-get install googletest # GoogleTest
apt-get install libcppunit-dev # CppUnit
# vdb_view
apt-get install libglfw3-dev # GLFW
# Documentation
Expand Down Expand Up @@ -185,7 +182,6 @@ brew install numpy # NumPy
brew install nanobind # nanobind
# Unit Tests
brew install gtest # GoogleTest
brew install cppunit # CppUnit
# vdb_view
brew install glfw # GLFW
# vdb_render
Expand Down
Loading
Loading