-
Notifications
You must be signed in to change notification settings - Fork 12
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
Move tests from doctest to Catch2 #301
Merged
Alex-PLACET
merged 36 commits into
man-group:main
from
Gulin7:move-tests-from-doctest-to-catch2
Dec 18, 2024
Merged
Changes from all commits
Commits
Show all changes
36 commits
Select commit
Hold shift + click to select a range
37e125c
Modified dependencies to add Catch2
Gulin7 fcbdb8e
Modified CMake to use Catch2 lib and added new Catch2 target
Gulin7 77beaf2
Modified the CI github action files
Gulin7 afa5943
Port test_algorithm.cpp from Doctest to Catch2
Gulin7 3f06a72
Fixed according to comments
Gulin7 1aaf166
Fix build
Gulin7 661ee39
Change target_link_libraries for Catch2
Gulin7 882391f
Remove target_compile_definitions
Gulin7 39981ff
Fix MSCV compiler issue
Gulin7 d9fd4a8
Force build type to release
Gulin7 14d1739
Modified test CMakeList
Gulin7 727bfd4
Enforce Catch2 version and apply ITERATOR_DEBUG_LEVEL
Gulin7 fd56cf7
Add builtin-baseline to vcpkg.json
Gulin7 211ccef
Fetch catch2 repository for exotic architectures
Alex-PLACET 6566ae7
Reformat conda environment-dev.yml
Alex-PLACET 268d2f0
Try fix vcpkg
Alex-PLACET a60d50c
Try fix vcpkg
Alex-PLACET 3065411
Try fix
Alex-PLACET 83cc0c1
Fix
Alex-PLACET 22a7e78
Try fix
Alex-PLACET 8b44df8
Try fix
Alex-PLACET 11c48c8
WIP
Alex-PLACET 9d63af9
Fix
Alex-PLACET ba97333
Fix test report paths for upload
Alex-PLACET 2989f09
Fix
Alex-PLACET 440154c
Fix
Alex-PLACET b3a1827
Add CMake option to get dependencies
Alex-PLACET 45d0765
Try fix
Alex-PLACET b883e4d
Try fix install
Alex-PLACET 9968218
Try fix
Alex-PLACET 1230b91
Try fix
Alex-PLACET 2016b86
Try fix
Alex-PLACET c6558b8
Fix
Alex-PLACET 1a71f39
Improvements
Alex-PLACET aff8303
Move FETCH_DEPENDENCIES_WITH_CMAKE option to test CmakeLists.txt
Alex-PLACET 2683b29
Fix
Alex-PLACET File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -38,12 +38,6 @@ jobs: | |
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Checkout nanoarrow | ||
uses: actions/checkout@v4 | ||
with: | ||
repository: apache/arrow-nanoarrow | ||
path: dependencies/tests/nanoarrow | ||
|
||
- name: ccache | ||
uses: hendrikmuhs/[email protected] | ||
with: | ||
|
@@ -74,14 +68,6 @@ jobs: | |
echo "CXX=/usr/bin/clang++" >> $GITHUB_ENV | ||
echo "CMAKE_CXX_COMPILER=/usr/bin/clang++" >> $GITHUB_ENV | ||
|
||
- name: Configure nanoarrow | ||
working-directory: dependencies/tests/nanoarrow | ||
run: cmake -Bbuild -DCMAKE_BUILD_TYPE:STRING=${{matrix.config.name}} -DCMAKE_INSTALL_PREFIX=$CONDA_PREFIX | ||
|
||
- name: Build nanoarrow | ||
working-directory: dependencies/tests/nanoarrow/build | ||
run: cmake --build . --config ${{matrix.config.name}} --target install | ||
|
||
- name: Configure using CMake | ||
run: | | ||
cmake -Bbuild \ | ||
|
@@ -91,7 +77,7 @@ jobs: | |
-DBUILD_EXAMPLES=ON \ | ||
-DCMAKE_C_COMPILER_LAUNCHER=ccache \ | ||
-DCMAKE_CXX_COMPILER_LAUNCHER=ccache \ | ||
-Dnanoarrow_DIR=dependencies/tests/nanoarrow/build | ||
-DFETCH_DEPENDENCIES_WITH_CMAKE=MISSING | ||
|
||
- name: Build | ||
working-directory: build | ||
|
@@ -114,7 +100,10 @@ jobs: | |
if: success() || failure() | ||
with: | ||
name: test_sparrow_lib_report_OSX_${{ matrix.os }}_${{ matrix.config.name }}_${{ matrix.compiler }} | ||
path: '**/test_sparrow_lib_report.xml' | ||
path: | | ||
build/test/test_sparrow_lib_report_doctest.xml | ||
build/test/test_sparrow_lib_report_catch2.xml | ||
if-no-files-found: error | ||
|
||
- name: Run all examples | ||
working-directory: build | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -92,12 +92,6 @@ jobs: | |
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Checkout nanoarrow | ||
uses: actions/checkout@v4 | ||
with: | ||
repository: apache/arrow-nanoarrow | ||
path: dependencies/tests/nanoarrow | ||
|
||
- name: ccache | ||
uses: hendrikmuhs/[email protected] | ||
with: | ||
|
@@ -124,7 +118,7 @@ jobs: | |
run: | | ||
echo "SPARROW_DEPS_PREFIX=$CONDA_PREFIX" >> $GITHUB_ENV | ||
echo "SPARROW_INSTALL_PREFIX=$CONDA_PREFIX" >> $GITHUB_ENV | ||
echo "SPARROW_ADDITIONAL_OPTIONS=-DSPARROW_TARGET_32BIT=OFF" >> $GITHUB_ENV | ||
echo "SPARROW_ADDITIONAL_OPTIONS=-DSPARROW_TARGET_32BIT=OFF -DCMAKE_MSVC_RUNTIME_LIBRARY=MultiThreadedDLL" >> $GITHUB_ENV | ||
|
||
|
||
- name: Set dependencies install prefix dir for 32bit | ||
|
@@ -133,6 +127,7 @@ jobs: | |
echo "SPARROW_DEPS_PREFIX=$VCPKG_INSTALLED_DIR" >> $GITHUB_ENV | ||
echo "SPARROW_INSTALL_PREFIX=${{ github.workspace }}/install" >> $GITHUB_ENV | ||
echo "VCPKG_TARGET_TRIPLET='x86-windows'" >> $GITHUB_ENV | ||
echo "VCPKG_BUILD_TYPE='Release'" >> $GITHUB_ENV | ||
echo "CMAKE_TOOLCHAIN_FILE=$VCPKG_INSTALLATION_ROOT/scripts/buildsystems/vcpkg.cmake" >> $GITHUB_ENV | ||
echo "SPARROW_ADDITIONAL_OPTIONS=-DSPARROW_TARGET_32BIT=ON" >> $GITHUB_ENV | ||
choco install ninja | ||
|
@@ -150,23 +145,6 @@ jobs: | |
run: | | ||
echo "CMAKE_GENERATOR=${{ matrix.build-system.name }}" >> $GITHUB_ENV | ||
|
||
- name: Configure nanoarrow | ||
working-directory: dependencies/tests/nanoarrow | ||
run: | | ||
cmake -S ./ \ | ||
-B ./build \ | ||
$GENERATOR_EXTRA_FLAGS \ | ||
-DCMAKE_C_COMPILER_LAUNCHER=ccache \ | ||
-DCMAKE_CXX_COMPILER_LAUNCHER=ccache \ | ||
-DCMAKE_BUILD_TYPE:STRING=Release \ | ||
-DCMAKE_PREFIX_PATH=$SPARROW_DEPS_PREFIX \ | ||
-DCMAKE_INSTALL_PREFIX=$SPARROW_INSTALL_PREFIX \ | ||
-DCMAKE_COMPILE_WARNING_AS_ERROR=FALSE | ||
|
||
- name: Build nanoarrow | ||
working-directory: dependencies/tests/nanoarrow/build | ||
run: cmake --build . --config Release --target install | ||
|
||
- name: Configure using CMake | ||
run: | | ||
cmake -S ./ -B ./build \ | ||
|
@@ -182,7 +160,7 @@ jobs: | |
$SPARROW_ADDITIONAL_OPTIONS \ | ||
-DCMAKE_C_COMPILER_LAUNCHER=ccache \ | ||
-DCMAKE_CXX_COMPILER_LAUNCHER=ccache \ | ||
-DCMAKE_MSVC_RUNTIME_LIBRARY=MultiThreadedDLL | ||
-DFETCH_DEPENDENCIES_WITH_CMAKE=MISSING | ||
|
||
- name: Build library | ||
working-directory: build | ||
|
@@ -205,7 +183,10 @@ jobs: | |
if: success() || failure() | ||
with: | ||
name: test_sparrow_lib_report_Windows_${{ matrix.toolchain.compiler }}_${{ matrix.build-system.name }}_${{ matrix.config.name }}_${{ matrix.target-arch.name }}_date-polyfill_${{ matrix.toolchain.date-polyfill}} | ||
path: '**/test_sparrow_lib_report.xml' | ||
path: | | ||
build/test/test_sparrow_lib_report_doctest.xml | ||
build/test/test_sparrow_lib_report_catch2.xml | ||
if-no-files-found: error | ||
|
||
- name: Run all examples | ||
working-directory: build | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To remove