[oe-commits] [bitbake] 18/20: toaster: add tests/eventreplay/README

git at git.openembedded.org git at git.openembedded.org
Fri Nov 4 12:55:58 UTC 2016


rpurdie pushed a commit to branch master
in repository bitbake.

commit 0e675547166acc8650498e153bd3482420342c32
Author: Ed Bartosh <ed.bartosh at linux.intel.com>
AuthorDate: Mon Oct 31 16:40:40 2016 +0000

    toaster: add tests/eventreplay/README
    
    Put instructions on how to prepare event log files
    and run eventreplay tests.
    
    Signed-off-by: Ed Bartosh <ed.bartosh at linux.intel.com>
    Signed-off-by: Michael Wood <michael.g.wood at intel.com>
    Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
 lib/toaster/tests/eventreplay/README | 22 ++++++++++++++++++++++
 1 file changed, 22 insertions(+)

diff --git a/lib/toaster/tests/eventreplay/README b/lib/toaster/tests/eventreplay/README
new file mode 100644
index 0000000..8c5bb64
--- /dev/null
+++ b/lib/toaster/tests/eventreplay/README
@@ -0,0 +1,22 @@
+# Running eventreplay tests
+
+These tests use event log files produced by bitbake <target> -w <event log file>
+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.

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list