-
-
Notifications
You must be signed in to change notification settings - Fork 5.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #15408 from traversaro/patch-9
Add robot-testing-framework recipe
- Loading branch information
Showing
3 changed files
with
79 additions
and
0 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
mkdir build | ||
cd build | ||
|
||
cmake ^ | ||
-G "Ninja" ^ | ||
-DCMAKE_INSTALL_PREFIX=%LIBRARY_PREFIX% ^ | ||
-DCMAKE_BUILD_TYPE=Release ^ | ||
-DBUILD_TESTING=ON ^ | ||
%SRC_DIR% | ||
if errorlevel 1 exit 1 | ||
|
||
:: Build. | ||
cmake --build . --config Release | ||
if errorlevel 1 exit 1 | ||
|
||
:: Install. | ||
cmake --build . --config Release --target install | ||
if errorlevel 1 exit 1 | ||
|
||
:: Test. | ||
ctest --output-on-failure -C Release -E "misc::check_license" | ||
if errorlevel 1 exit 1 |
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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#!/bin/sh | ||
|
||
mkdir build | ||
cd build | ||
|
||
cmake ${CMAKE_ARGS} -GNinja .. \ | ||
-DCMAKE_BUILD_TYPE=Release \ | ||
-DBUILD_TESTING=ON | ||
|
||
cmake --build . --config Release | ||
cmake --build . --config Release --target install | ||
ctest --output-on-failure -C Release -E "misc::check_license" |
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 |
---|---|---|
@@ -0,0 +1,45 @@ | ||
{% set name = "robot-testing-framework" %} | ||
{% set version = "2.0.1" %} | ||
|
||
package: | ||
name: {{ name }} | ||
version: {{ version }} | ||
|
||
source: | ||
url: https://github.com/robotology/robot-testing-framework/archive/refs/tags/v{{ version }}.tar.gz | ||
sha256: e7e5194823215246410dba6f2fe34b75e0197079924631aeb3e2ed3b8fd281ad | ||
|
||
build: | ||
number: 0 | ||
run_exports: | ||
- {{ pin_subpackage(name, max_pin='x.x.x') }} | ||
|
||
requirements: | ||
build: | ||
- cmake | ||
- {{ compiler('cxx') }} | ||
- {{ compiler('c') }} | ||
- ninja | ||
host: | ||
- tinyxml | ||
|
||
test: | ||
commands: | ||
- test -f ${PREFIX}/include/robottestingframework/TestCase.h # [not win] | ||
- test -f ${PREFIX}/lib/librobottestingframework-dll.so # [linux] | ||
- test -f ${PREFIX}/lib/librobottestingframework-dll.dylib # [osx] | ||
- test -f ${PREFIX}/lib/cmake/RobotTestingFramework/RobotTestingFrameworkConfig.cmake # [not win] | ||
- if not exist %PREFIX%\\Library\\include\\robottestingframework\\TestCase.h exit 1 # [win] | ||
- if not exist %PREFIX%\\Library\\lib\\robottestingframework-dll.lib exit 1 # [win] | ||
- if not exist %PREFIX%\\Library\\bin\\robottestingframework-dll.dll exit 1 # [win] | ||
- if not exist %PREFIX%\\Library\\CMake\\RobotTestingFrameworkConfig.cmake exit 1 # [win] | ||
|
||
about: | ||
home: https://github.com/robotology/robot-testing-framework | ||
license: LGPL-2.1-or-later | ||
license_file: LICENSE | ||
summary: Robot Testing Framework (RTF) . | ||
|
||
extra: | ||
recipe-maintainers: | ||
- traversaro |