From c729e902dff501c8c3e441d49c6d0fe1ad28eede Mon Sep 17 00:00:00 2001 From: Frederic Marec Date: Tue, 28 Aug 2018 17:01:48 +0200 Subject: Add tests for iiodevice binding Add test for accelerometer, compass and gyroscope Add script beforeAll.sh to initiate iio dummy devices Add Readme.md to describe how to use test Fix BUILD_TYPE in cmake.config Change-Id: I39edfce6a43b519c0ff6bc0a7d2f1d2477098cff Signed-off-by: Frederic Marec --- .../etc/aft-agl-service-iiodevices-test.json | 22 ++++++++++++++++++++++ test/afb-test/etc/aft-iiodevices_config.json | 22 ---------------------- 2 files changed, 22 insertions(+), 22 deletions(-) create mode 100644 test/afb-test/etc/aft-agl-service-iiodevices-test.json delete mode 100644 test/afb-test/etc/aft-iiodevices_config.json (limited to 'test/afb-test/etc') diff --git a/test/afb-test/etc/aft-agl-service-iiodevices-test.json b/test/afb-test/etc/aft-agl-service-iiodevices-test.json new file mode 100644 index 0000000..84698b6 --- /dev/null +++ b/test/afb-test/etc/aft-agl-service-iiodevices-test.json @@ -0,0 +1,22 @@ +{ + "id": "http://iot.bzh/download/public/schema/json/ctl-schema.json#", + "$schema": "http://iot.bzh/download/public/schema/json/ctl-schema.json#", + "metadata": { + "uid": "Test", + "version": "1.0", + "api": "aft-iiodevices", + "info": "AFB-test binding configuration file to test iiodevices api.", + "require": [ + "iiodevices" + ] + }, + "testVerb": { + "uid": "launch_all_tests", + "info": "Launch all the tests", + "action": "lua://AFT#_launch_test", + "args": { + "trace": "iiodevices", + "files": ["iiodevices_BasicAPITest-devices.lua", "iiodevices_BasicAPITest.lua"] + } + } +} \ No newline at end of file diff --git a/test/afb-test/etc/aft-iiodevices_config.json b/test/afb-test/etc/aft-iiodevices_config.json deleted file mode 100644 index 33bd7f7..0000000 --- a/test/afb-test/etc/aft-iiodevices_config.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "id": "http://iot.bzh/download/public/schema/json/ctl-schema.json#", - "$schema": "http://iot.bzh/download/public/schema/json/ctl-schema.json#", - "metadata": { - "uid": "Test", - "version": "1.0", - "api": "aft-iiodevices", - "info": "AFB-test binding configuration file to test iiodevices api.", - "require": [ - "iiodevices" - ] - }, - "testVerb": { - "uid": "launch_all_tests", - "info": "Launch all the tests", - "action": "lua://AFT#_launch_test", - "args": { - "trace": "iiodevices", - "files": ["iiodevices_BasicAPITest.lua"] - } - } -} -- cgit 1.2.3-korg