1*4882a593Smuzhiyun# Running build tests 2*4882a593Smuzhiyun 3*4882a593SmuzhiyunThese tests are to test the running of builds and the data produced by the builds. 4*4882a593SmuzhiyunYour oe build environment must be sourced/initialised for these tests to run. 5*4882a593Smuzhiyun 6*4882a593SmuzhiyunThe simplest way to run the tests are the following commands: 7*4882a593Smuzhiyun 8*4882a593Smuzhiyun$ . oe-init-build-env 9*4882a593Smuzhiyun$ cd bitbake/lib/toaster/ # path my vary but this is into toaster's directory 10*4882a593Smuzhiyun$ DJANGO_SETTINGS_MODULE='toastermain.settings_test' ./manage.py test tests.builds 11*4882a593Smuzhiyun 12*4882a593SmuzhiyunOptional environment variables: 13*4882a593Smuzhiyun - TOASTER_DIR (where toaster keeps it's artifacts) 14*4882a593Smuzhiyun - 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. 15