Commit Graph

11 Commits

Author SHA1 Message Date
Daniel Zaoui 9831560caf Use source codes stored in the unit as application
This can be useful if the application is not in an official repository
like elementary_test.
This feature allows compiling the source code and using it to run the
scenario on.
The command (e.g gcc...) must be stored in the unit as well. $SRC and
$DEST can be used to specify the source and destination files in the
command.
2018-08-29 12:08:22 +03:00
Daniel Zaoui 0e1f0cf1c5 Exactness: add fonts support
One of the biggest issue in Exactness is related to the system
configuration differences. Among them, the fonts can for example
impact on the height of the widgets.
The solution to not be dependent on the fonts consist in using embedded
fonts and to force their usage when playing the applications.

The -f option has been added to the player and the recorder so the user
can provide the path to a fonts directory. This option must be set in
order to force the fonts replacement. Since tests shots can use different
fonts, the exu file stores the version of fonts that have been used.
This is why it is needed to have in the provided directory different
directories, each pointing to a different version of the fonts. For
example, some old tests can use fonts of 2017 (e.g directory 20170101)
while new tests will use new fonts (20180601). Check the
exactness-elm-data repository (fonts branch) for a better understanding.

During recording, the -f option will apply the indicated fonts on the
launched application and will record the mouse events accordingly. The
fonts datestamp is stored in the exu output.
During playing, the fonts will be loaded by reading the exu fonts path,
and then the application is launched. If no information is provided in
the exu but -f is used, the tool will load the most recent fonts (by
comparing the datestamp directories).
2018-06-05 00:06:18 +03:00
Daniel Zaoui 4b5ced9b07 Fix potention buffer overflow 2018-06-04 13:35:18 +03:00
Daniel Zaoui 92457031ee Add first support for Windows and fix many other config stuff
Thanks to vtorri for this patch
2018-05-20 21:29:45 +03:00
Daniel Zaoui a1341ac74c Fix Valgrind issue
It was complaining of an invalid read size because it was accessing
bytes after the pixels buffer.
2018-05-18 17:21:13 +03:00
Daniel Zaoui f56ee0dfac Suite: replace the compare method
Instead of using ImageMagick, we now use an internal function.
2018-05-16 18:00:39 +03:00
Daniel Zaoui d049f0cc2c Player: make the screenshot retrieval asynchronous 2018-05-14 11:09:37 +03:00
Daniel Zaoui 8f9e553d20 Exactness: add the stabilize action to the scenario
This action is needed when the time for the frames to be stable is not
known.
2018-05-14 11:09:37 +03:00
Daniel Zaoui ca185b925a Support of EFL event invocations on named widgets
A new action has been added, permitting the invocation of EFL events on
named widgets.
The name must be set via efl_name_set.
2018-05-14 11:09:37 +03:00
Daniel Zaoui 2858adbd8d Store delays instead of timestamps in the scenario 2018-05-14 11:09:37 +03:00
Daniel Zaoui dc891a41e1 Refactor structures and make them public
The exu doesn't contain the old scenario entries (Variant_st) but the new
(Exactness_Action).
The recorder doesn't create old rec file but only exu.
The player/inspector support rec files by converting them to the new
format internally.
The structures have been tried to be simpler.
2018-05-14 11:09:37 +03:00