summaryrefslogtreecommitdiffstats
path: root/bitbake
diff options
context:
space:
mode:
authorFrank de Brabander <debrabander@gmail.com>2022-12-05 19:13:08 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2022-12-05 22:36:55 +0000
commit241c7b023f8e0365fd48036d7b392514c0258113 (patch)
treebb86f7572df3ce6f729823a66a82860da54d659b /bitbake
parentbfa318a8a95bff5f0fa46b3fc23bba54294956b1 (diff)
downloadpoky-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/README13
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
37Testing: 37Testing
38-------
38 39
39Bitbake has a testsuite located in lib/bb/tests/ whichs aim to try and prevent regressions. 40Bitbake has a testsuite located in lib/bb/tests/ whichs aim to try and prevent regressions.
40You can run this with "bitbake-selftest". In particular the fetcher is well covered since 41You can run this with "bitbake-selftest". In particular the fetcher is well covered since
41it has so many corner cases. The datastore has many tests too. Testing with the testsuite is 42it has so many corner cases. The datastore has many tests too. Testing with the testsuite is
42recommended before submitting patches, particularly to the fetcher and datastore. We also 43recommended before submitting patches, particularly to the fetcher and datastore. We also
43appreciate new test cases and may require them for more obscure issues. 44appreciate new test cases and may require them for more obscure issues.
45
46To run the tests "zstd" and "git" must be installed. Git must be correctly configured, in
47particular the user.email and user.name values must be set.
48
49The assumption is made that this testsuite is run from an initialized OpenEmbedded build
50environment (i.e. `source oe-init-build-env` is used). If this is not the case, run the
51testsuite as follows:
52
53 export PATH=$(pwd)/bin:$PATH
54 bin/bitbake-selftest