Skip to content

Commit 0402234

Browse files
author
Andrea Ruzzenenti
committed
Merge branch 'devel'
2 parents 518970b + 4c8eb13 commit 0402234

File tree

118 files changed

+1891
-2127
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

118 files changed

+1891
-2127
lines changed

.appveyor.yml

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
version: 1.2.{build}
1+
version: 1.4.{build}
22

33
platform:
44
- Win32
@@ -14,7 +14,17 @@ configuration:
1414
- Debug
1515

1616
environment:
17-
CTEST_OUTPUT_ON_FAILURE: 1
17+
global:
18+
CTEST_OUTPUT_ON_FAILURE: 1
19+
20+
matrix:
21+
- BUILD_SHARED_LIBS: ON
22+
- BUILD_SHARED_LIBS: OFF
23+
24+
matrix:
25+
exclude:
26+
- image: Visual Studio 2013
27+
BUILD_SHARED_LIBS: OFF
1828

1929
clone_folder: c:\dev\RTF
2030

@@ -30,8 +40,8 @@ build_script:
3040
- cd c:\dev\RTF
3141
- md build
3242
- cd build
33-
- cmake -G"%CMAKE_GENERATOR%" ..
43+
- cmake -G"%CMAKE_GENERATOR%" -DBUILD_SHARED_LIBS=%BUILD_SHARED_LIBS% ..
3444
- msbuild /m /p:Configuration="%CONFIGURATION%" /p:Platform="%platform%" RTF.sln
3545

3646
test_script:
37-
- cmd: cmake --build %APPVEYOR_BUILD_FOLDER%\build --target RUN_TESTS --config %CONFIGURATION%
47+
- cmd: ctest --output-on-failure --build-config %CONFIGURATION%

.travis.yml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,11 @@ os:
1212
- osx
1313

1414
env:
15-
- TRAVIS_BUILD_TYPE=Debug
16-
- TRAVIS_BUILD_TYPE=Release
15+
global:
16+
- CTEST_OUTPUT_ON_FAILURE=1
17+
matrix:
18+
- TRAVIS_BUILD_TYPE=Debug
19+
- TRAVIS_BUILD_TYPE=Release
1720

1821
before_install:
1922
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then sudo apt-get update -qq; fi
@@ -24,12 +27,12 @@ install:
2427
- if [ "$TRAVIS_OS_NAME" == "osx" ]; then brew outdated cmake || brew upgrade cmake; fi
2528
- if [ "$TRAVIS_OS_NAME" == "osx" ]; then if ! brew ls --versions python > /dev/null; then brew install python; fi; fi
2629
- if [ "$TRAVIS_OS_NAME" == "osx" ]; then brew install tinyxml lua51; fi
27-
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then sudo apt-get install -y cmake libtinyxml-dev liblua5.1-dev python-dev lcov; fi
30+
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then sudo apt-get install -y cmake3 libtinyxml-dev liblua5.1-dev python-dev lcov; fi
2831
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then sudo gem install coveralls-lcov; fi
2932

3033
before_script:
3134
- python --version
32-
- ruby --version
35+
- ruby --version
3336

3437
script:
3538
# configure robot-testing framework
@@ -39,10 +42,10 @@ script:
3942
- if [ "$TRAVIS_OS_NAME" == "osx" ]; then cmake -DCMAKE_BUILD_TYPE=${TRAVIS_BUILD_TYPE} -DENABLE_LUA_PLUGIN:BOOL=ON -DENABLE_PYTHON_PLUGIN:BOOL=ON -DENABLE_WEB_LISTENER:BOOL=ON ..; fi
4043
- make
4144
- ctest --output-on-failure --build . -C ${TRAVIS_BUILD_TYPE}
42-
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then make RTF_coverage ; fi
45+
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then make RTF_coverage ; fi
4346
- sudo make install
4447

45-
after_success:
48+
after_success:
4649
- coveralls-lcov --repo-token Gcfb0Rzm9kFpzrwyT5NiQQivi2oWvvjdm coverage.info.cleaned
4750
# - bash <(curl -s https://codecov.io/bash)
4851

CMakeLists.txt

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,13 @@
55
# Copy Policy: Released under the terms of the LGPLv2.1 or later, see LGPL.TXT
66
#
77

8-
cmake_minimum_required(VERSION 3.0)
8+
cmake_minimum_required(VERSION 3.5)
99
project(RTF)
1010

11+
# enforce the use of C++11
12+
set(CMAKE_CXX_EXTENSIONS OFF)
13+
set(CMAKE_CXX_STANDARD 11)
14+
set(CMAKE_CXX_STANDARD_REQUIRED ON)
1115

1216
# Pick up our CMake scripts - they are all in the conf subdirectory.
1317
set(RTF_MODULE_PATH ${PROJECT_SOURCE_DIR}/conf)
@@ -56,7 +60,8 @@ set(INSTALL_RTF_RUBY_INCLUDEDIR ${CMAKE_INSTALL_PREFIX}/include)
5660
install_basic_package_files(${PROJECT_NAME}
5761
VERSION ${RTF_VERSION}
5862
COMPATIBILITY AnyNewerVersion
59-
TARGETS_PROPERTY RTF_LIBS
63+
TARGETS_PROPERTIES RTF_LIBS
64+
RTF_TOOLS
6065
EXTRA_PATH_VARS_SUFFIX DLL_INCLUDEDIR
6166
LUA_INCLUDEDIR
6267
PYTHON_INCLUDEDIR

README.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,15 @@ test cases are developed as independent plug-ins (i.e., using scripting language
2020
loaded and executed by an automated test runner. Moreover, a fixture manager prepares the setup (e.g., running robot interfaces,
2121
simulator) and actively monitors that all the requirements for running the tests are satisfied during the execution of the tests.
2222
These functionalities along with other facilities such as the test result collector, result formatter and remote interface allow
23-
for rapid development of test units to cover different levels of system testing (see the block diagram).
23+
for rapid development of test units to cover different levels of system testing (see the block diagram).
2424

2525
![rtf-arch](/doc/rtf_arch.png)
2626

2727

2828
Installation
2929
------------
3030
RTF library does not depend on any external library. The RTF framework has a testrunner utility (see Running test case plug-ins
31-
using testrunner) to easily run the test cases which are built as plug-ins. Test cases can be organized in test suits using simple XML files. The testrunner uses TinyXml library for parsing the suit XML files. RTF build system check for the installation
31+
using testrunner) to easily run the test cases which are built as plug-ins. Test cases can be organized in test suites using simple XML files. The testrunner uses TinyXml library for parsing the suite XML files. RTF build system check for the installation
3232
of TinyXml and, in case, it cannot find any installed version of TinyXml library, it uses the internal version which is delivered
3333
with the RTF.
3434

@@ -41,7 +41,7 @@ with the RTF.
4141
$ make install # Optional!
4242
```
4343

44-
- **On Windows:** The installation is easy, straightforward and uses the CMake build system. Get [Cmake for windows](https://cmake.org/download/) if you have not yet installed. Then simply run the Cmake and, set the project (robot-testing) root folder and the desired build folder. Configure and generate project solution for your favorite IDE (e.g. Visual Studio 13). Then open the solution from your IDE and build the project.
44+
- **On Windows:** The installation is easy, straightforward and uses the CMake build system. Get [Cmake for windows](https://cmake.org/download/) if you have not yet installed. Then simply run the Cmake and, set the project (robot-testing) root folder and the desired build folder. Configure and generate project solution for your favorite IDE (e.g. Visual Studio 13). Then open the solution from your IDE and build the project.
4545

4646
Configuration
4747
-------------
@@ -59,16 +59,16 @@ The only thing you need to configure is the RTF_DIR environment variable so that
5959
C:\> setx.exe PATH "%PATH%;%RTF_DIR%/<Release/Debug>/bin"
6060
```
6161

62-
*Notice:* If you have **not** installed RTF in the statndard system path (e.g., on Linx without `make install`) then You need to exapnd your system `PATH` environment variable.
62+
*Notice:* If you have **not** installed RTF in the statndard system path (e.g., on Linx without `make install`) then You need to exapnd your system `PATH` environment variable.
6363

6464

65-
Enabling Python, Ruby, Lua, ... Plugins
65+
Enabling Python, Ruby, Lua, ... Plugins
6666
----------------------------------------
67-
To use RTF with other languages,
68-
- first you need to install their development packages (e.g. for Python on Linux you need `python-dev`, for Ruby: `ruby-dev` or for Lua: `liblua5.x-dev`).
67+
To use RTF with other languages,
68+
- first you need to install their development packages (e.g. for Python on Linux you need `python-dev`, for Ruby: `ruby-dev` or for Lua: `liblua5.x-dev`).
6969
- then you can enable the desired language into RTF Cmake (e.g. ENABLE_PYTHON_PLUGIN=ON for enabling python)
70-
- compile and build RTF
71-
70+
- compile and build RTF
71+
7272

7373
Tutorials and Examples
7474
-----------------------

0 commit comments

Comments
 (0)