Skip to content

Commit

Permalink
Merge pull request #15408 from traversaro/patch-9
Browse files Browse the repository at this point in the history
Add robot-testing-framework recipe
  • Loading branch information
xhochy authored Jun 26, 2021
2 parents 565f597 + 13f031f commit 18caf9b
Show file tree
Hide file tree
Showing 3 changed files with 79 additions and 0 deletions.
22 changes: 22 additions & 0 deletions recipes/robot-testing-framework/bld.bat
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
12 changes: 12 additions & 0 deletions recipes/robot-testing-framework/build.sh
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"
45 changes: 45 additions & 0 deletions recipes/robot-testing-framework/meta.yaml
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

0 comments on commit 18caf9b

Please sign in to comment.