Create class for building rust unit test
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v4 Latest3 patches 0 repliesNew
- v33 patches 1 replySuperseded
- v23 patches 2 repliesSuperseded
Earlier versions · 1
| Version | Posted | Patches | Replies | Status |
|---|---|---|---|---|
| v1 | 3 patches | 7 replies | Superseded |
Patches in v4 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | ptest-cargo.bbclass: create classmeta/ | +130 | 0 replies | |
| 2/3 | python3-bcrypt: enable build of unit testsmeta/ | +3 | 0 replies | |
| 3/3 | zvariant: add ptest feature for zvariant test suitemeta-selftest/ meta/ | +9 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v4 yet.
Cover letter [PATCHV4 0/3] Create class for building rust unit test
From: Frederic Martinsons <[email protected]>
This brings the possibility to use this class to build and ship unit tests of rust projects, the class also create (or modified) standard run-ptest script to run the generated rust test suite.
It has been tested successfully with core-image-sato under qemu for zvariant-ptest and python3-bcrypt-ptest (though the last one didn't define any unit tests).
Note that I tried to do the same with python3-cryptography but fail to build the test suite and I don't know how to do it with the rust extension module build by python setuptools. There must be some kind of way for doing that so maybe someone will put some work in it ( because python3-cryptography rust extension do have unit tests).
Moreover, in the ptest-cargo class, I didn't manage to share data between do_compile_ptest_cargo and do_install_ptest_cargo cleanly (I tried to d.setVar in compile and d.getVar in install but it seems that the data store doens't recognize my new variable) so I used a file for that. I'm sure there is a clever way for doing that, so feel free to tell me.
The following changes since commit 45a8bb6e4676899d40525e7d5ad1c1ddefee3185:
apt-util: Fix ptest on musl (2023-04-20 11:56:03 +0100)
are available in the Git repository at:
https://gitlab.com/fmartinsons/openembedded-core cargo-add-ptest
Frederic Martinsons (3):
ptest-cargo.bbclass: create class
python3-bcrypt: enable build of unit tests
zvariant: add ptest feature for zvariant test suite
.../zvariant/zvariant_3.12.0.bb | 9 +- meta/classes-recipe/ptest-cargo.bbclass | 130 ++++++++++++++++++ meta/lib/oeqa/selftest/cases/devtool.py | 2 +- .../python/python3-bcrypt_4.0.1.bb | 4 +- 4 files changed, 142 insertions(+), 3 deletions(-) create mode 100644 meta/classes-recipe/ptest-cargo.bbclass
Signature · 1 line
2.34.1