1*4882a593Smuzhiyun# Running eventreplay tests 2*4882a593Smuzhiyun 3*4882a593SmuzhiyunThese tests use event log files produced by bitbake <target> -w <event log file> 4*4882a593SmuzhiyunYou need to have event log files produced before running this tests. 5*4882a593Smuzhiyun 6*4882a593SmuzhiyunAt the moment of writing this document tests use 2 event log files: zlib.events 7*4882a593Smuzhiyunand core-image-minimal.events. They're not provided with the tests due to their 8*4882a593Smuzhiyunsignificant size. 9*4882a593Smuzhiyun 10*4882a593SmuzhiyunHere is how to produce them: 11*4882a593Smuzhiyun 12*4882a593Smuzhiyun$ . oe-init-build-env 13*4882a593Smuzhiyun$ rm -r tmp sstate-cache 14*4882a593Smuzhiyun$ bitbake core-image-minimal -w core-image-minimal.events 15*4882a593Smuzhiyun$ rm -rf tmp sstate-cache 16*4882a593Smuzhiyun$ bitbake zlib -w zlib.events 17*4882a593Smuzhiyun 18*4882a593SmuzhiyunAfter that it should be possible to run eventreplay tests this way: 19*4882a593Smuzhiyun 20*4882a593Smuzhiyun$ EVENTREPLAY_DIR=./ DJANGO_SETTINGS_MODULE=toastermain.settings_test ../bitbake/lib/toaster/manage.py test -v2 tests.eventreplay 21*4882a593Smuzhiyun 22*4882a593SmuzhiyunNote that environment variable EVENTREPLAY_DIR should point to the directory with event log files. 23