diff options
-rw-r--r-- | bitbake/README | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/bitbake/README b/bitbake/README index 80a97118b9..b689c38baa 100644 --- a/bitbake/README +++ b/bitbake/README | |||
@@ -34,10 +34,21 @@ Source code: | |||
34 | 34 | ||
35 | https://git.openembedded.org/bitbake/ | 35 | https://git.openembedded.org/bitbake/ |
36 | 36 | ||
37 | Testing: | 37 | Testing |
38 | ------- | ||
38 | 39 | ||
39 | Bitbake has a testsuite located in lib/bb/tests/ whichs aim to try and prevent regressions. | 40 | Bitbake has a testsuite located in lib/bb/tests/ whichs aim to try and prevent regressions. |
40 | You can run this with "bitbake-selftest". In particular the fetcher is well covered since | 41 | You can run this with "bitbake-selftest". In particular the fetcher is well covered since |
41 | it has so many corner cases. The datastore has many tests too. Testing with the testsuite is | 42 | it has so many corner cases. The datastore has many tests too. Testing with the testsuite is |
42 | recommended before submitting patches, particularly to the fetcher and datastore. We also | 43 | recommended before submitting patches, particularly to the fetcher and datastore. We also |
43 | appreciate new test cases and may require them for more obscure issues. | 44 | appreciate new test cases and may require them for more obscure issues. |
45 | |||
46 | To run the tests "zstd" and "git" must be installed. Git must be correctly configured, in | ||
47 | particular the user.email and user.name values must be set. | ||
48 | |||
49 | The assumption is made that this testsuite is run from an initialized OpenEmbedded build | ||
50 | environment (i.e. `source oe-init-build-env` is used). If this is not the case, run the | ||
51 | testsuite as follows: | ||
52 | |||
53 | export PATH=$(pwd)/bin:$PATH | ||
54 | bin/bitbake-selftest | ||