Age | Commit message (Collapse) | Author | Files | Lines |
|
Remove useless directory creation
Remove useless move
Fix tree installation
Bug-AGL: SPEC-2363
Change-Id: I683dd0a7844863c99a02295f80ff3585b17e3e66
Signed-off-by: Frederic Marec <frederic.marec@iot.bzh>
|
|
Remove version variable
Remove afm/application from tree to fix packaging on guppy
Bug-AGL: SPEC-2363
Change-Id: I8475d69b21f5c789faac85f7b71126623438cef0
Signed-off-by: Frederic Marec <frederic.marec@iot.bzh>
|
|
Bug-AGL: SPEC-2363
Change-Id: I597eafa97b1c4fe7f9803061b811552e02a95d23
Signed-off-by: Frederic Marec <frederic.marec@iot.bzh>
|
|
Change-Id: I86f8fd1de855c289d2d3eb9de38e44c7165b4573
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
|
|
Following the migration, packaging rules need to be updated with new
dependencies on the libraries appcontroller and afb-helpers.
Change-Id: I0f9454953659af1280fbf5edecf7fcdd00b4dd5f
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
|
|
Prefers to handle the events reception by the binding, in C, rather than using
the LUA interpreter to avoid race condition on the LUA context. Because we are
waiting events in LUA context using binder call sync, when the event is received
then 2 threads operate simultaneously on LUA context, the waiting event thread and
the receiving event thread.
Bug-AGL: SPEC-2135
Change-Id: Ied0a78a61263b8fd41305969c636a491c6bb0295
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
|
|
Migrate submodule to use the afb-helpers and controller libraries.
Find them as packages not only link against them like before.
- Remove the submodules
- Remote the target link on target
- Add dependencies to afb-helpers and appcontroller packages.
Bug-AGL: SPEC-2139
Change-Id: I79da3a84bc1ee020924bb51f0eaed85a99ba7288
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
|
|
This link is already specified "aft" target and should not
be at a project level.
Change-Id: I24fa930a92d450e9f488894863cccf2a01e5cbdd
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
|
|
Calling an api's verb may require to use other things than a JSON
object, so this add the possibility to use the other JSON types: string,
number or boolean.
Change-Id: If95aa35241ea3b11e88e82e7dbdd3e462b4f9eff
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
|
|
Modify the way to wait for an event. Here we call synchronously a verb of the
test api that will end when a timeout expires or when the reception of the event
ends the request
Useless set up of verbosity to debug for the monitoring API.
"push_after" messages could be caught without setting up this.
Bug-AGL: SPEC-2003
Depends-On: https://gerrit.automotivelinux.org/gerrit/#/c/18583/
Change-Id: I24af6bae6a9aa0f70f3b78304134a65e09f12a58
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
|
|
Improve the accuracy of the monitoring trace filtering,
spying the requests isn't needed anymore.
Change-Id: I0177346c27914df99027cb0324e20ee43e702e8d
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
|
|
Add assertIsTrue verb who allow table and string argument
Bug-AGL: SPEC-1983
Change-Id: I8a13b7cdd8d4b841c37e732ffa225b4b9822fad8
Signed-off-by: Frederic Marec <frederic.marec@iot.bzh>
|
|
Bug-AGL: SPEC-495
Change-Id: I584b5fb287bef3bb6a466000d5c8aeb167fb7690
Signed-off-by: Frederic Marec <frederic.marec@iot.bzh>
|
|
When packaging, the build environment doesn't clone the git repository but instead
use an archive and so we lose the git repository's information. This is a workaround
to set the project version using the packaging system.
Change-Id: I3e8edc197a12f455f4f1cc24bc452feb146bab6c
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
|
|
Change rules to be more sustainable and maintainable.
Remove the patch that isn't needed anymore since the app-templates
has been migrated to a cmake module.
Fix also wrong descriptions
Change-Id: I789b18d8238015bd9e0350ae39136002b10bed51
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
|
|
- *.pc file must have ascii charset
- remove gcc dependency for deb package
- Fix *.pc file packaging for deb package
- set CMAKE_INSTALL_LIBDIR in debian.rules
Change-Id: I448aedcdb6fd21d662416ac72148d98da5e05ac3
Signed-off-by: Ronan Le Martret <ronan.lemartret@iot.bzh>
|
|
Bug-AGL SPEC-1682
Change-Id: Icf7eb9765483e1cf1c74a9d64cdb0178f773936d
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
|
|
This ensure that the project build under debian like distro and
also rpm based distributions.
Change-Id: I1c0b49163253f5c9ad06a2cdbc6c7b1b8b739f84
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
|
|
Files used by an OBS server to be able to build deb and rpm packages. The
afb-test binding could be then used in a native environment.
Change-Id: Ifd5ab363c90269bed949ff63315d228017de7d05
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
|
|
Fix wrong test case markers order... Result has to be after the test case ending.
Change-Id: Iebd604a5d25ef5e12aae7c6be7aaff4daad3d0b9
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
|
|
The launch scripts now allow you to select a verb from the test api
to only launch that verb instead of all.
Also using the verb's argument {'lavaOutput':true}, the test framework
adds specific Lava markers.
Reformat the script to accept options instead of only positionnal arguments
Change-Id: I181407ebb192eb67e06d2ed95ee239d6f1a523f3
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
|
|
Submodule app-controller-submodule d6eb01e..ce07538:
> Abort if one required API is missing
> Correct an error when no plugins are defined
> Decrease print level when no onload action
> Add a 'params' fields for controller plugins
> Call wasn't done correctly in 'CtlConfigExec'
> Add ctlPlugins array to the ctlConfig structure
> Add an Init step to the plugins load
Submodule conf.d/app-templates 52ae181..e7fd1da:
> Select the test set to run
> Always use wgt when talking about widget
> Minor fixes
> Improved test widget launcher script
> Set default link flags to the target property
> Use a custom test-config.xml file for test widget
> cmake: coverage: disable compiler optimization for COVERAGE build
> Adding warning message to migrate on CMake module
> common.cmake: fixed erroneous search path for os-release
> Fix: missing gcov symbol in compiled binaries
> app-templates doc: Changed doc to fit new format.
> Update Docs
Change-Id: I7b21414e465a8377c031cfd54f6170051d4312de
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Submodule conf.d/app-templates 0f25ab2..:
Change-Id: Ief3ca4ba2e7a4ccf5a3d730a0f1656454e2853df
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
|
|
Copy/paste error...
Change-Id: Iac3a96fed518171cd5a6963145296429368782fa
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
|
|
Clean the base afb-test binding's dependencies on external
apis. This will be needed to run it as a stand-alone service in the future.
Change-Id: Ia708c4bfd6c674279b62df2c8fc38464567f23e8
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
|
|
On a target, the binder process name is taken from the widget "id",
now the native launcher script also launches the binder using the widget "id".
As the controller searches its configuration file using the binder process middle name
we need to differentiate between both "id" otherwise the wrong configuration file is used.
The commit renames configuration file according to the new "id".
Change-Id: Icd01abe21ddee562518c7f822baca8b098bbb55e
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
|
|
Without that separation you need to specify a nil argument
before your setUp and tearDown functions in your test definition.
Change-Id: Ic9ef9c1928fa658b15eceb43a464243d246f9b79
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
|
|
Using aftest and aft-aftest api name to self test was
difficult because of searching file using the binder process
name which could be the same although api name were diffirent.
Change-Id: I20ef554d54ddc1cb5bd169d462558d78f2769668
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
|
|
Change-Id: Icc1bef7f87f55a377cacfb590e1d371d9f6a1511
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
|
|
Use one output file by test suite executed with the according extension
depending upon the output type chosen.
Change-Id: I1804287fc56e4ee2b6df9f672d94553a3d947d49
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
|
|
This reset the contextual functions that trigger before and after
tests between each files loaded. Then context is set by file and not
by the API's verb of the test binding. This is more an intuitive
behavior.
Change-Id: I76716dd19d23b715690b74d9b67253dffd01c12d
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
|
|
This protect the file read to avoid crashing if no file has
been found and display an error.
Protect with double-quote the path to avoid 'find' error
if space are part of the path.
Change-Id: I3a27ca9d2566edd5f1b9cd301153e0ab735a177a
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
|
|
Submodule conf.d/app-templates f0b24b0..52ae181:
> Fix: typo
Change-Id: I0a233b64eb592d3b9254b3bdb13046d8ce41f866
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
|
|
Also separate helloWorld example binding test from self aft tests
Change-Id: I5b7c48b38cc6629c3edc97d280d7f9228451b337
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
|
|
- Fix: expected data table structure in callbackEvent
- Testing event received with a timeout is meaningless since
the event are pushed on afb-test request. So They are already
received at the assertion moment.
- Wrong test waiting for a verb error.
Change-Id: I1cec211f7fe4c37d4c238439e8a9a633121a6cf0
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
|
|
Cleaning, there is no point to test if we do not receive events
Change-Id: I28bc46d7b933c851f716466ad0d97b56cca3d95b
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
|
|
As it is the most common used in AGL environment. Ptest is almost
the same and only need a little sed script to be compatible and
Jenkins have a TAP plugin that also handle TAP test results.
Change-Id: I9f367a01417121aad35753536adece27b3ca0f7d
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
|
|
This is made to have all tests results in 1 place else they
will lie in the binder log journal.
Change-Id: I60293230bbd8252d1ed947bba7c9583f5957e01e
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
|
|
This lets the test lua scripts use this variable to be able
to retrieve fixtures files which lie in the 'var' directory
Change-Id: Iad321706bd05dfb8e5f0423a15d710fdc540c154
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
|
|
For compatibility between different binding versions
Submodule app-controller-submodule e3f2c45...4386ec5:
> Migration to v3
> Adds v3 function to get binding settings
> New function returning the binding root directory
> Change the default GLOB pattern
> Fix wrong computed length
> Add path to the installed widget path.
> Controller: Converted README to a gitbook version.
Submodule conf.d/app-templates 9c1a0fb..f0b24b0:
> Rollback about TEST build type
> Adding a TEST build type
> Change default compilation options.
> Test widget only if there are test materials
> Handles more test LABELS.
> Missing flag for COVERAGE build type
> Create a test widget
Change-Id: I4f96cc6773ec4da7eba96f243d6bf06170ef0cb0
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
|
|
Fix: getrootdir function usage that needs the context to be passed.
This closes file handle before going to the next one. This was
causing a segfault on the second file reading.
Change-Id: I1d7459e29f9b8725dcbce1a277a10d3adcd4c856
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
|
|
Change-Id: I09f174c99488ff104aaa7995e1575a5e5aa3a0c0
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
|
|
Use new AppFw feature to find a library location.
This will help to find the library that hold a binding which could create several different APIs.
Depends-On: I70aad7d523ece7a2ae0058b79708a02ef81144e2
Change-Id: I1454eb8ea661d4d3854b344cb989fc05e2704a77
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
|
|
Version is handled by the app-templates if PROJECT_VERSION
is not set.
Adjusts pattern to match lua files location
Change-Id: I40052e86d5f55ef2c43f9f1266e1ac3fe14db0c8
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
|
|
- Tested changed assertEvtGrpReceived functions
- Updated doc about it
Change-Id: I91725152e54ebba9d65e501da54a72801699c760
Signed-off-by: Corentin Le Gall <corentinlgs@gmail.com>
|
|
This adding is to find LUA plugins that aren't located to the same
directory than C plugins. It uses 2 variables INSTALL_PREFIX and
CMAKE_INSTALL_PREFIX because of CMake's files inclusion order in the
current app-templates. This will be needed until app-templates migrate
as a CMake module.
Change-Id: I06bffbc60f132c08eca0cf0793d7c3f25f0524ad
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
|
|
Submodule afb-helpers 764c355..f0ce5b6:
> wrap-json: Fix duplicated lines in header file
Submodule app-controller-submodule b79a761..4e30eb1:
> New defaults useful functions on lua table
> More precise log message when loading a Lua file
> Fix: wrong legacy function signature
Submodule conf.d/app-templates f94e45e..9c1a0fb:
> Fix: interpreted '&' character
> More accurate comment about widget template file.
Change-Id: I5d18b1005e797f2297c6766266abcbdbc65816e4
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
|
|
This make table_size function accessible by default in all
lua scripts.
Depends-On: Ia549315e305dd7d02b975a3e8a1278c4ab709eec
Change-Id: I312c79581ab3eaef72c1b5725982a70515c62a2a
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
|
|
Change the way to assert the reception of a group of event. To be able
to know the attended event count it is better to define it directly when you
pass the table of event group. The event name as the key and the number
of event that you are waiting for. Also returning the total of received events
instead of 1 then it could be asserted to the expected total count.
Fix: segfault when manipulating data history values:
There was a segfault and random unexpected behavior when attempting
to access old event's data. Only the last one was available and trying
to access older values lead to memory access violation as the JSON
representing the old data has been released since. So it completely
mess up the memory and causes unexpected situations.
This is simply fix by deep copying the data into another memory space
which could be safely accessed afterwards.
Changes the way to receive events from monitor api:
The old method isn't accurate because it tolds monitor
to trace all api request and all push_after event from that
api. But we only want event from the api not the others messages
coming from the binder which aren't event.
Change-Id: Id5aa4a0c79d2adba050ef03d58c45a3db72ec2a2
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
|
|
Processing both event coming from the wanted api and from
monitor (which gave the same event but with more informations)
leads to unexpected behavior since you can't know which event's
data has been registered so data structure changes and can't be
asserted.
Change-Id: Ifb32c9fdb3b6cc061d0fe5e8d1e5481d51e8d886
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
|
|
Fix: No events defined in the mock apis
Fix: new_api function has changed in binder
Using the dynapi new_api function returned 0 in case of success
and -1 on failure. New function since v3 returned NULL in case of
failure or the api struct in case of success.
Fix: wrong install_prefix variable used in CMake config file
Fix: wrong variable used
Typo after a copy/paste from event group handling.
- Wrong use of table.insert
- Wrong variable name used
- only pass the data table, which is embed in another data
table...
- Fix aftereach and beforeeach function's call
Change-Id: I9523ae50c170a3cdb9e5c3bc2b9e923c30f6ba39
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
|