[Buildroot] [PATCH v3] support/testing: new test for root password

Thomas Petazzoni thomas.petazzoni at bootlin.com
Tue Aug 13 21:01:54 UTC 2019


On Tue, 13 Aug 2019 09:33:20 +0200
Victor Huesca <victor.huesca at bootlin.com> wrote:

> Add support to test that the root passowrd is working as expected.
> - Buildtime test: Check the hash present in the generated '/etc/shadow'.
> - Runtime test: Build an armv7 image and try to login with a password.
> 
> Signed-off-by: Victor Huesca <victor.huesca at bootlin.com>
> ---
> Changes:
>  v1 --> v2:
>    - Fix coding style to pass flake8 test
>  v2 --> v3:
>    - Add 'BR2_TARGET_ROOTFS_CPIO=y' to the .config
>    - Add myself as developer for this test
>    - Fix a typo 'has' --> 'hash'
>    - Use assertEqual(a, b) instead of assertTrue(a == b)
>    - Update .gitlab-ci.yml
> ---
>  .gitlab-ci.yml                                |  1 +
>  DEVELOPERS                                    |  3 ++
>  .../testing/tests/core/test_root_password.py  | 36 +++++++++++++++++++
>  3 files changed, 40 insertions(+)
>  create mode 100644 support/testing/tests/core/test_root_password.py

Applied to next, thanks.

Thomas
-- 
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com



More information about the buildroot mailing list