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

Add robot-testing-framework recipe #15408

Merged
merged 9 commits into from
Jun 26, 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
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