diff options
-rw-r--r-- | bitbake/lib/toaster/tests/eventreplay/README | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/bitbake/lib/toaster/tests/eventreplay/README b/bitbake/lib/toaster/tests/eventreplay/README new file mode 100644 index 0000000000..8c5bb64323 --- /dev/null +++ b/bitbake/lib/toaster/tests/eventreplay/README | |||
@@ -0,0 +1,22 @@ | |||
1 | # Running eventreplay tests | ||
2 | |||
3 | These tests use event log files produced by bitbake <target> -w <event log file> | ||
4 | You need to have event log files produced before running this tests. | ||
5 | |||
6 | At the moment of writing this document tests use 2 event log files: zlib.events | ||
7 | and core-image-minimal.events. They're not provided with the tests due to their | ||
8 | significant size. | ||
9 | |||
10 | Here is how to produce them: | ||
11 | |||
12 | $ . oe-init-build-env | ||
13 | $ rm -r tmp sstate-cache | ||
14 | $ bitbake core-image-minimal -w core-image-minimal.events | ||
15 | $ rm -rf tmp sstate-cache | ||
16 | $ bitbake zlib -w zlib.events | ||
17 | |||
18 | After that it should be possible to run eventreplay tests this way: | ||
19 | |||
20 | $ EVENTREPLAY_DIR=./ DJANGO_SETTINGS_MODULE=toastermain.settings_test ../bitbake/lib/toaster/manage.py test -v2 tests.eventreplay | ||
21 | |||
22 | Note that environment variable EVENTREPLAY_DIR should point to the directory with event log files. | ||