summaryrefslogtreecommitdiffstats
path: root/conf.d
AgeCommit message (Collapse)AuthorFilesLines
2018-07-23Change the project name to aftestRomain Forlot2-1/+1
This change is made because of the config file search mechanism which is based on the middle binder name. Until a better solution is found with the prefix these are the only informations available to let you choose the correct config files. Change-Id: I416c6b8c71965bb6f38ef56ed78fc9e37b593c80 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2018-07-21Fix: events callback aren't correctly registeredRomain Forlot1-44/+145
They were stored in the mapis sections instead of the events one. Clean and handle raw events as well. Before that it could only process events coming from monitoring api. Now it could receive the event directly. Make sure that the event handle is valid before sends the request response. This prevent to subcribe or push an event while the event handle hasn't been correctly created. This could happens if the testVerb hasn't not been called from a session. In that case, the response will just be that tests has been launched. Format. Change-Id: I0aa522939162684f91dd426cc14919bb0ec3f69e Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2018-07-19Change the default xUnit result log file pathRomain Forlot1-1/+1
Typo. Change-Id: I3bb3639dfbeae1ffbf1f4912e8b30e9c8bc1cc49 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2018-07-19Search the conf file using env and static variablesRomain Forlot1-0/+0
This helps finding configuration in several locations by concatenating environment variables and hardcoded variables. Then it is possible for the apps to retrieve its files or values in any environment (native, board, sdk) more easily. Depends-On: I0ad19242612559d1f4b66b6f9af9e7032d4675a8 Depends-On: Ic448ff017e6158bec05895d63688b8968b5c6434 Change-Id: I26a725c368e8354cfc2531d58de6dc362f7d0618 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2018-07-17Change lua print function to write in a fileRomain Forlot1-8/+9
This lets you retrieve print messages done by the test binding in a file log in addition of binder runtime log messages. By default, the standard output is redirected to a file in the workdir of the binder. This is convenient when you have a heavy loaded binder output. It's more difficult to extract the test results. Change-Id: Ifae540652ae431d4d9703a19673e5bc69c2b315f Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2018-07-17Fix: wrong values in config.xml template fileRomain Forlot3-7/+4
Also set the same APIs name for all configurations Change-Id: If565418b552adaeaa767e9c37dd8a65d212ab093 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2018-07-17README + helloworld: New test functions + docCorentin Le Gall5-80/+88
Fixed, tested and documented setBefore and setAfter functions. Improved doc for updated functions in aft.lua. Change-Id: Idc7ffc06e98ef7f6af1e06d9e6cda0dcbd4f97b8 Signed-off-by: Corentin Le Gall <corentinlgs@gmail.com>
2018-07-10lockwait: loop and ev catcher also received eventClément Bénier1-0/+1
warning: it may be possible to do better than that but the ev catcher is called at the next loop Change-Id: I2d69322f4079ccda0c85968861b8a9d0c4457855 Signed-off-by: Clément Bénier <clement.benier@iot.bzh>
2018-07-10lockwait: add lua lockwait functionClément Bénier1-12/+21
this function handles to wait for one specific afb event Change-Id: Ief730b6b5f2109379ca0191d98b013d1c9e4225e Signed-off-by: Clément Bénier <clement.benier@iot.bzh>
2018-07-10Bump Submodules:Romain Forlot2-2/+2
Update config.cmake to follow app-templates update. Submodule afb-helpers 5811a53..ee8dd11: > Use binding version to handle dynapi Submodule app-controller-submodule e45d063..5137a2c: > Use binding version to set controller definitions > ctl-lua: typo fix > asynchronism for test: LockWait added > Fix: plugin api assignement order Submodule conf.d/app-templates eec9f07..332f377: > Be able to overwrite BUILD_TYPE using CLI > Use CACHE variable for other common CMAKE variable > Fix:: wrong wgt using RELEASE BUILD TYPE Change-Id: I098393e537e7bd635ddbbe300c023e239ad25cd2 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2018-07-10Add the helloworld lua example code to the READMERomain Forlot3-4/+103
Change-Id: I29565b8b879ccac9fd8dfcdd6862fdb91cd60119 Signed-off-by: Corentin Le Gall <Nyt@clg.lorient.iot> Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2018-07-102 ways for set up'before' and 'after' functionRomain Forlot2-37/+65
Either you specify the functions as a function argument either you use a specific _AFT functions meant to add the function to the test instance. Change-Id: I4ccd467c70d2181d12edb354f80db6c233b8769d Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2018-07-10Correctly set the install prefix using CMake.Romain Forlot1-1/+1
Change-Id: I9b3404c3639c2b8aa3f73cb639a10da2398c1a85 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2018-07-10Be able to overwrite CMAKE variables.Romain Forlot1-3/+3
Change-Id: Ibf04e6c091bf457d02658dafa555ea16bb657522 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2018-07-10Fix: non local variableRomain Forlot1-1/+1
Change-Id: I0098beeed06482ca08dc1e1ae235206f6b02032f Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2018-07-10Enhance pkgconfig file.Romain Forlot2-2/+4
Change-Id: I56c220dd9648c61c2e8667e42864958a4a2c96eb Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2018-07-10Adds before and after function to set contextRomain Forlot1-8/+18
3 Cases are done: - before and after all tests - before and after each tests - before and after specific tests Change-Id: Ie222e6a3809a14d71a822b084a27ed93ec7bb286 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2018-07-10Include pkg config file.Romain Forlot4-16/+39
afb-test is considered like a binding "system" which could be retrieved using pkgconfig file variable. Change-Id: Icc9a0186093c98817e1a421d7ddee8043a33efa1 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2018-07-10Added before and after functions.Romain Forlot1-0/+48
Add the ability to set a context before each and/or tests as well as unset it with the corresponding "after" function We now have the following function to define those functions: setBeforeEach setAfterEach setBeforeAll setAfterAll Change-Id: I12b3d4f187ee066d5051ca07c644c45de8886f82 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2018-07-10Make Built type overwritten by cli possible.Romain Forlot1-8/+2
Settings a CMAKE CACHE variable make the first definition to be not overwritten by a next assignement. Then a cli variable is then possible more without force. Change installation prefix to point the same than afb-daemon. Change-Id: Ia3cb60e9ea16897bbeee117d8b8170e4ed793edd Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2018-07-10Change function testCustom to describeRomain Forlot1-1/+1
testCustom isn't explicit and could confuse people "describe" is more the usage with test framework Change-Id: I270048640226e4be1355ed8b4e201ad81198d004 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2018-07-10Bump submodulesRomain Forlot1-0/+0
Submodule afb-helpers 9a1f7ea..5811a53: > At search, use the prefix parameter as a prefix > Remove deprecated use of cmake/Qt macro > Rename method to avoid conflict with Qt's one > Fix warnings due to json-c evolution Submodule app-controller-submodule 9622138..e45d063: > Execute ConfigExec only if section is existing > Always set the api member even if NULL. Submodule conf.d/app-templates aa68dbd..eec9f07: > Fix: SYSROOT location detection... Wrong test. > Change the default debug compilation options. > Clearer coverage compilation options configuration Change-Id: Iec276d139a70b425cab852a41802dc071c6ca3f2 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2018-07-10Added a pkgconfig file with the projectRomain Forlot2-0/+35
Goal is to provide a file to get binding installation path easily from other bindings and be able to use it Change-Id: I09025cfcc568b517da7e48b5a96dece64426f81f Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2018-07-10Files reorganization and rename project to AFTRomain Forlot17-470/+11
Change-Id: I2e4adc51bdf5fcb9001c68fb4fc71f4987da47e0 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2018-07-10Binding now talks to the client8000ff1-1/+8
- Resonding after a the test verb has been called - Sends the test results through an event Change-Id: Ifc52ca2fdd272777ba42c97c8d4424cf75c05553 Signed-off-by: 8000ff <clementmallejac@gmail.com> Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2018-07-10Continue Mapis works WIPRomain Forlot3-1/+8
Beginning work to handle events from a Mapi. Also rename old fapis file to mapis and some format Change-Id: I30bedcbe13cac9568e21cd3a0947516e74dde271 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2018-07-10Remove log monitoring capabilityRomain Forlot1-10/+1
Tests should not rely on binder logs messages. Change-Id: Ic274cb5600924100dde48fb7d3d31fc367b1c5cd Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2018-07-10Add an exit handler also in LUA.Romain Forlot1-0/+9
Needs to make it as a parameter tested at the end of afb request call "launch_all_test". Change-Id: I87b93aae67561e5aec0a138bfbdc0dabac3bdc21 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2018-07-10Update onload to testVerbRomain Forlot2-2/+2
Then tests are executed at verb call instead of at the binding launch Change-Id: I133c203c28f561dd6d4242bf8c78bfcf71f73209 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2018-07-10Update app-templatesRomain Forlot1-0/+0
Submodule conf.d/app-templates 1f2944e..aa68dbd: > Don't overwrite the autobuild script if it exists > Disable the in-tree build method. > Detect Yocto as OS distribution Change-Id: I646fcb5a1dae71e46e2044ae19a1b04be2e23f72 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2018-07-10First draft for mock apisRomain Forlot4-3/+97
An m(ock)api is a plugin with its action as verb. About now the event listener is the same then the main api Change-Id: Iadbbb60cfbe9d5ef85801c346e6565ccde92b0c4 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2018-07-10Began Mock API implementation WIPRomain Forlot1-0/+59
Change-Id: I30782e272cad5da75950d7983f9504dac6d24676 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2018-07-10Redirect print to a file in addition of standard outputRomain Forlot1-1/+13
Change-Id: I3cd556d8dba9b2d30d169da15a1f09de7ccc2b10 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2018-07-10Remove low-can testsRomain Forlot7-1672/+0
These tests should lies in the low-can git repo. Change-Id: I87c679fc2d3024c22191dc98bb99290f5fd19eca Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2018-07-10Rolling back pull request, that shouldn't be merged.Romain Forlot2-70/+15
Change-Id: I56f9c7446dd603f098010344dc661317d065518c Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2018-07-10Update helloworld.luaCorentinLGS1-22/+0
Change-Id: Icb1c56cc369fcc5f85cb71257b53c554287e63f5 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2018-07-10Added test exemplesCorentin Le Gall1-0/+78
Change-Id: Icf8eb2214c77575029de0a44916b8391a7f5102b Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2018-07-10Add relative etc, var directories to search pathRomain Forlot1-2/+2
The test would be stored in the tested binding and not the test binding so lua file and json configuration would have to be found in the tested binding root directory. Change-Id: I1c60ff7b31fd14ca7a88e1eaaaa4212428cbfca1 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2018-07-10Handle string or array arguments for "files" keyRomain Forlot2-3/+7
Change-Id: I16b6dedfa4c2fee866463c6df235505bc68a358c Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2018-07-10CleaningRomain Forlot1-84/+0
Change-Id: Id264b4b0a90cbb4684fc91db6e2e4103216483aa Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2018-07-10Added alias function to the READMERomain Forlot1-0/+2
To improve readability of tests we need a function to reset the receivedCount on event or log messages then we can assert in a same function that it has been received and not received. Change-Id: If08f24732c78797a0ef36b780e9620474d95f70d Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2018-07-10Extend and added dedicated coverage test fileRomain Forlot2-2/+63
Change-Id: If087d52db631e8accc3fa81f13c91554b150c7f9 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2018-07-10Added Not Received assert and test functionsRomain Forlot1-2/+25
Change-Id: Ic5bdbb9c57144acac2ca54c0c60ef202766c5704 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2018-07-10Adapt low-can test cases to the new test frameworkRomain Forlot1-73/+20
Change-Id: I6868b6bd5919dfc5d1e9c938febe2f29be99ddfd Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2018-07-10Execute Callback in assertion is more usefulRomain Forlot1-6/+6
Indeed we need to be able to execute a callback to improve the assertion so it has to lies in the assert and not the verb Change-Id: Id835d76c1984087fb815db207c89cfe650f6240c Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2018-07-10Fix: renamed key api to traceRomain Forlot1-1/+1
Change-Id: I7bae735e05e0fb753816bb555034936c60d33789 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2018-07-10Fix: infinite loop of event fired by test bindingRomain Forlot3-8/+19
Restrict which api are monitored to avoid daemon log messages to be infinitely generated. Change-Id: Ie527267985ca8035c3f410be1d775f3214feac2c Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2018-07-10Add the ability to assert daemon log messagesRomain Forlot2-32/+92
Change-Id: I392dc677061223d4990a12517606e9ef9142d515 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2018-07-10Simplify the writing of configuration.Romain Forlot1-14/+5
As resources and events are "static" hardcode them in the binding. Change-Id: I9dd600fa6cfe0d2f5f55cf605ce75d8c5446d78d Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2018-07-10Add possibility to create custom test functionRomain Forlot1-0/+6
Change-Id: I83de0cc0edce37cb0d512fce0cec560659f625a7 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>