Skip to content
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

Enable tests on Linux, macOS and Windows #9

Merged
merged 6 commits into from
Apr 3, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
4 changes: 4 additions & 0 deletions recipe/bld.bat
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ cmake -G "Ninja" ^
-DCMAKE_PREFIX_PATH=%LIBRARY_PREFIX% ^
-DDART_MSVC_DEFAULT_OPTIONS=ON ^
-DDART_VERBOSE=ON ^
-DBUILD_TESTING:BOOL=ON ^
%SRC_DIR%

echo "Print CMakeOutput:"
Expand All @@ -19,3 +20,6 @@ if errorlevel 1 exit 1

ninja install
if errorlevel 1 exit 1

ctest --output-on-failure
if errorlevel 1 exit 1
24 changes: 20 additions & 4 deletions recipe/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,28 @@

mkdir build && cd build

if [ ${target_platform} == "linux-ppc64le" ]; then
# Disable tests
CMAKE_TEST_CMD=-DBUILD_TESTING:BOOL=OFF
NUM_PARALLEL=-j1
else
CMAKE_TEST_CMD=-DBUILD_TESTING:BOOL=ON
NUM_PARALLEL=-j${CPU_COUNT}
fi

cmake -DCMAKE_INSTALL_PREFIX=$PREFIX \


cmake $SRC_DIR \
-DCMAKE_INSTALL_PREFIX=$PREFIX \
-DCMAKE_PREFIX_PATH=$PREFIX \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_LIBDIR=lib \
$SRC_DIR
${CMAKE_TEST_CMD}

make ${NUM_PARALLEL}
make ${NUM_PARALLEL} install

make -j${CPU_COUNT}
make install
if [ ${target_platform} != "linux-ppc64le" ]; then
make ${NUM_PARALLEL} tests
ctest --output-on-failure -E "test_Collision"
fi
2 changes: 1 addition & 1 deletion recipe/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ source:
- ode-required.patch

build:
number: 4
number: 5
run_exports:
- {{ pin_subpackage(name, max_pin='x.x') }}

Expand Down