All of lore.kernel.org
 help / color / mirror / Atom feed
From: Masahiro Yamada <masahiroy@kernel.org>
To: u-boot@lists.denx.de
Subject: [PATCH 5/7] Azure / GitLab / Travis: Add Kconfig unit tests to a job
Date: Wed, 26 Feb 2020 11:44:33 +0900	[thread overview]
Message-ID: <CAK7LNARXikLji=f8j3Yxg-00iPkuSe=pZhiMY2dWXF1i+Np0_Q@mail.gmail.com> (raw)
In-Reply-To: <20200224180541.3654-5-trini@konsulko.com>

On Tue, Feb 25, 2020 at 3:06 AM Tom Rini <trini@konsulko.com> wrote:
>
> The Kconfig language provides a unit test that can be run.  As these
> require pytest to be installed and run very quickly, bundle them in to
> an existing CI job.
>
> Signed-off-by: Tom Rini <trini@konsulko.com>


Reviewed-by: Masahiro Yamada <masahiroy@kernel.org>


> ---
>  .azure-pipelines.yml | 5 +++--
>  .gitlab-ci.yml       | 7 ++++---
>  .travis.yml          | 3 ++-
>  3 files changed, 9 insertions(+), 6 deletions(-)
>
> diff --git a/.azure-pipelines.yml b/.azure-pipelines.yml
> index c22095830c0c..89aa5e46e298 100644
> --- a/.azure-pipelines.yml
> +++ b/.azure-pipelines.yml
> @@ -110,7 +110,7 @@ jobs:
>            make tools-only_config envtools -j$(nproc)
>
>    - job: utils
> -    displayName: 'Run binman, buildman, dtoc and patman testsuites'
> +    displayName: 'Run binman, buildman, dtoc, Kconfig and patman testsuites'
>      pool:
>        vmImage: $(ubuntu_vm)
>      steps:
> @@ -125,7 +125,7 @@ jobs:
>            export USER=azure
>            virtualenv -p /usr/bin/python3 /tmp/venv
>            . /tmp/venv/bin/activate
> -          pip install pyelftools
> +          pip install pyelftools pytest
>            export UBOOT_TRAVIS_BUILD_DIR=/tmp/.bm-work/sandbox_spl
>            export PYTHONPATH=${UBOOT_TRAVIS_BUILD_DIR}/scripts/dtc/pylibfdt
>            export PATH=${UBOOT_TRAVIS_BUILD_DIR}/scripts/dtc:${PATH}
> @@ -134,6 +134,7 @@ jobs:
>            ./tools/buildman/buildman -t
>            ./tools/dtoc/dtoc -t
>            ./tools/patman/patman --test
> +          make testconfig
>            EOF
>            cat build.sh
>            # We cannot use "container" like other jobs above, as buildman
> diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
> index d486e72042fb..87231a039b48 100644
> --- a/.gitlab-ci.yml
> +++ b/.gitlab-ci.yml
> @@ -150,7 +150,7 @@ Build envtools:
>    script:
>      - make tools-only_config envtools -j$(nproc)
>
> -Run binman, buildman, dtoc and patman testsuites:
> +Run binman, buildman, dtoc, Kconfig and patman testsuites:
>    tags: [ 'all' ]
>    stage: testsuites
>    script:
> @@ -159,7 +159,7 @@ Run binman, buildman, dtoc and patman testsuites:
>        export USER=gitlab;
>        virtualenv -p /usr/bin/python3 /tmp/venv;
>        . /tmp/venv/bin/activate;
> -      pip install pyelftools;
> +      pip install pyelftools pytest;
>        export UBOOT_TRAVIS_BUILD_DIR=/tmp/.bm-work/sandbox_spl;
>        export PYTHONPATH="${UBOOT_TRAVIS_BUILD_DIR}/scripts/dtc/pylibfdt";
>        export PATH="${UBOOT_TRAVIS_BUILD_DIR}/scripts/dtc:${PATH}";
> @@ -167,7 +167,8 @@ Run binman, buildman, dtoc and patman testsuites:
>        ./tools/binman/binman --toolpath ${UBOOT_TRAVIS_BUILD_DIR}/tools test;
>        ./tools/buildman/buildman -t;
>        ./tools/dtoc/dtoc -t;
> -      ./tools/patman/patman --test
> +      ./tools/patman/patman --test;
> +      make testconfig
>
>  # Test sandbox with test.py
>  sandbox test.py:
> diff --git a/.travis.yml b/.travis.yml
> index e6db9d6a721a..53e4c2c12671 100644
> --- a/.travis.yml
> +++ b/.travis.yml
> @@ -150,7 +150,8 @@ script:
>         ./tools/binman/binman --toolpath ${UBOOT_TRAVIS_BUILD_DIR}/tools test &&
>         ./tools/patman/patman --test &&
>         ./tools/buildman/buildman -t &&
> -       ./tools/dtoc/dtoc -t;
> +       ./tools/dtoc/dtoc -t &&
> +       make testconfig;
>       fi;
>     fi
>
> --
> 2.17.1
>


-- 
Best Regards
Masahiro Yamada

  reply	other threads:[~2020-02-26  2:44 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-02-24 18:05 [PATCH 1/7] misc: Add more -I$(objtree)/$(obj) lines Tom Rini
2020-02-24 18:05 ` [PATCH 2/7] mx31pdk: Move CONFIG_SPL_LDSCRIPT to defconfig Tom Rini
2020-02-24 19:22   ` Magnus Lilja
2020-03-17 15:30   ` Tom Rini
2020-02-24 18:05 ` [PATCH 3/7] Kconfig: Escape variables to make in default strings Tom Rini
2020-02-26  2:35   ` Masahiro Yamada
2020-02-26 15:22     ` Tom Rini
2020-02-24 18:05 ` [PATCH 4/7] Kconfig: Remove redundant variable sets Tom Rini
2020-02-26  2:41   ` Masahiro Yamada
2020-02-26 15:23     ` Tom Rini
2020-02-24 18:05 ` [PATCH 5/7] Azure / GitLab / Travis: Add Kconfig unit tests to a job Tom Rini
2020-02-26  2:44   ` Masahiro Yamada [this message]
2020-02-24 18:05 ` [PATCH 6/7] scripts/dtc: Update to upstream version v1.4.6-21-g84e414b0b5bc Tom Rini
2020-02-24 18:05 ` [PATCH 7/7] kconfig / kbuild: re-sync with Linux 4.18 Tom Rini
2020-02-26  1:04   ` Masahiro Yamada
2020-02-26  3:32     ` Tom Rini

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAK7LNARXikLji=f8j3Yxg-00iPkuSe=pZhiMY2dWXF1i+Np0_Q@mail.gmail.com' \
    --to=masahiroy@kernel.org \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.