diff options
| author | Frank de Brabander <debrabander@gmail.com> | 2022-12-05 19:13:08 +0100 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-12-05 22:36:55 +0000 |
| commit | 241c7b023f8e0365fd48036d7b392514c0258113 (patch) | |
| tree | bb86f7572df3ce6f729823a66a82860da54d659b /bitbake | |
| parent | bfa318a8a95bff5f0fa46b3fc23bba54294956b1 (diff) | |
| download | poky-241c7b023f8e0365fd48036d7b392514c0258113.tar.gz | |
bitbake: README: Improve explanation about running the testsuite
Explain how to run the testsuite clear enough so no external
documentation is required.
(Bitbake rev: 51cf7cf12d23b757aa49f428a256fb3d3c865f6d)
Signed-off-by: Frank de Brabander <debrabander@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake')
| -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 | ||
