poky/bitbake/lib/toaster/tests/eventreplay
Robert Yang 1337766521 bitbake: bitbake: toaster:tests: python -> python3
(Bitbake rev: 683c24788d96176699a585055eb62d8a71830a12)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-28 13:29:04 +01:00
..
__init__.py bitbake: bitbake: toaster:tests: python -> python3 2019-06-28 13:29:04 +01:00
README bitbake: toaster: add tests/eventreplay/README 2016-11-04 12:50:56 +00:00

Running eventreplay tests

These tests use event log files produced by bitbake -w You need to have event log files produced before running this tests.

At the moment of writing this document tests use 2 event log files: zlib.events and core-image-minimal.events. They're not provided with the tests due to their significant size.

Here is how to produce them:

$ . oe-init-build-env $ rm -r tmp sstate-cache $ bitbake core-image-minimal -w core-image-minimal.events $ rm -rf tmp sstate-cache $ bitbake zlib -w zlib.events

After that it should be possible to run eventreplay tests this way:

$ EVENTREPLAY_DIR=./ DJANGO_SETTINGS_MODULE=toastermain.settings_test ../bitbake/lib/toaster/manage.py test -v2 tests.eventreplay

Note that environment variable EVENTREPLAY_DIR should point to the directory with event log files.