mirror of
https://git.yoctoproject.org/poky
synced 2026-09-15 06:49:33 +02:00
bitbake: toaster: tests Add a BuildTest helper class
Add a helper class for running build tests. Subclass this and call the build method to get setup for running tests on the resulting data from a build. (Bitbake rev: d1882371cae6b9a8296ea739e6e46ca6a6dc9da8) Signed-off-by: Michael Wood <michael.g.wood@intel.com> Signed-off-by: Elliot Smith <elliot.smith@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
5ce1adb177
commit
085688c8ed
14
bitbake/lib/toaster/tests/builds/README
Normal file
14
bitbake/lib/toaster/tests/builds/README
Normal file
@@ -0,0 +1,14 @@
|
||||
# Running build tests
|
||||
|
||||
These tests are to test the running of builds and the data produced by the builds.
|
||||
Your oe build environment must be sourced/initialised for these tests to run.
|
||||
|
||||
The simplest way to run the tests are the following commands:
|
||||
|
||||
$ . oe-init-build-env
|
||||
$ cd lib/toaster/ # path my vary but this is into toaster's directory
|
||||
$ DJANGO_SETTINGS_MODULE='toastermain.settings-test' ./manage.py test tests.builds
|
||||
|
||||
Optional environment variables:
|
||||
- TOASTER_DIR (where toaster keeps it's artifacts)
|
||||
- TOASTER_CONF a path to the toasterconf.json file. This will need to be set if you don't execute the tests from toaster's own directory.
|
||||
Reference in New Issue
Block a user