diff options
| author | Frederic Martinsons <frederic.martinsons@gmail.com> | 2023-04-27 17:12:49 +0200 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2023-05-05 11:07:26 +0100 |
| commit | eb1cc1e319ef69419af2223d4bde2761ff202c5d (patch) | |
| tree | 5558b30af6835325f608969dcba1c3c67268ebb5 | |
| parent | e6b18a4ced27e1a9a9f9403132732a19ef15c497 (diff) | |
| download | poky-eb1cc1e319ef69419af2223d4bde2761ff202c5d.tar.gz | |
python3-bcrypt: enable build of unit tests
The source code of bcrypt extension doesn't define any tests
but it is to show the ptest-cargo usage
Below is the updated test suite output for the recipe (cut):
PASS: tests/test_bcrypt.py:test_invalid_params[password-$2b$04$cVWp4XaNU8a4v1uMRum2SO-513-10-ValueError]
PASS: tests/test_bcrypt.py:test_invalid_params[password-$2b$04$cVWp4XaNU8a4v1uMRum2SO-20-0-ValueError]
PASS: tests/test_bcrypt.py:test_2a_wraparound_bug
============================================================================
Testsuite summary
running 0 tests
test result: ok$<2>. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.01s
root@qemux86-64:/usr/lib/python3-bcrypt/ptest#
(From OE-Core rev: 7388fec005b94d8e3827afcdf0de1e5b05ea1346)
Signed-off-by: Frederic Martinsons <frederic.martinsons@gmail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
| -rw-r--r-- | meta/recipes-devtools/python/python3-bcrypt_4.0.1.bb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/meta/recipes-devtools/python/python3-bcrypt_4.0.1.bb b/meta/recipes-devtools/python/python3-bcrypt_4.0.1.bb index 21f2eb6ba4..b4f245530d 100644 --- a/meta/recipes-devtools/python/python3-bcrypt_4.0.1.bb +++ b/meta/recipes-devtools/python/python3-bcrypt_4.0.1.bb | |||
| @@ -7,12 +7,14 @@ DEPENDS += "${PYTHON_PN}-cffi-native" | |||
| 7 | 7 | ||
| 8 | SRC_URI[sha256sum] = "27d375903ac8261cfe4047f6709d16f7d18d39b1ec92aaf72af989552a650ebd" | 8 | SRC_URI[sha256sum] = "27d375903ac8261cfe4047f6709d16f7d18d39b1ec92aaf72af989552a650ebd" |
| 9 | 9 | ||
| 10 | inherit pypi python_setuptools3_rust ptest cargo-update-recipe-crates | 10 | inherit pypi python_setuptools3_rust ptest-cargo cargo-update-recipe-crates |
| 11 | 11 | ||
| 12 | SRC_URI += " \ | 12 | SRC_URI += " \ |
| 13 | file://run-ptest \ | 13 | file://run-ptest \ |
| 14 | " | 14 | " |
| 15 | 15 | ||
| 16 | CARGO_SRC_DIR = "src/_bcrypt" | ||
| 17 | |||
| 16 | require ${BPN}-crates.inc | 18 | require ${BPN}-crates.inc |
| 17 | 19 | ||
| 18 | RDEPENDS:${PN}-ptest += " \ | 20 | RDEPENDS:${PN}-ptest += " \ |
