From: Yann E. MORIN <yann.morin.1998@free.fr>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 2/2] support/testing: test_uboot_tools: Add a test building a binary that include fw_env.h
Date: Tue, 26 May 2020 22:59:04 +0200 [thread overview]
Message-ID: <20200526205904.GI8737@scaer> (raw)
In-Reply-To: <20200511214744.2749796-2-romain.naour@gmail.com>
Romain, Nicolas,
On 2020-05-11 23:47 +0200, Romain Naour spake thusly:
> From: Nicolas Carrier <nicolas.carrier@orolia.com>
>
> Nicolas Carrier proposed a package to reproduce the uboot-tools issue
> he reported [1] with uboot 2020.01 packaged in the Buildroot 2020.02
> release.
>
> Add this package to the Buildroot testsuite in order to ckeck in gitlab
> if fw_env.h doesn't contain any header that require building uboot
> with a board configuration for the target.
Thanks for this test.
However, our runtime infra is there to test that the integration of a
package in Buildroot is working as expected, not as a build-test or
regression test-suite ofr the upstream packages.
So I've marked that patch as rejected.
Regards,
Yann E. MORIN.
> [1] http://lists.busybox.net/pipermail/buildroot/2020-April/280307.html
>
> Signed-off-by: Romain Naour <romain.naour@gmail.com>
> Cc: Nicolas Carrier <nicolas.carrier@orolia.com>
> ---
> .../tests/boot/br2-external/uboot-tools/Config.in | 1 +
> .../boot/br2-external/uboot-tools/external.desc | 1 +
> .../boot/br2-external/uboot-tools/external.mk | 1 +
> .../package/uboot-tools-test/Config.in | 6 ++++++
> .../package/uboot-tools-test/uboot-env-test.c | 14 ++++++++++++++
> .../package/uboot-tools-test/uboot-tools-test.mk | 14 ++++++++++++++
> support/testing/tests/boot/test_uboot_tools.py | 15 +++++++++++++++
> 7 files changed, 52 insertions(+)
> create mode 100644 support/testing/tests/boot/br2-external/uboot-tools/Config.in
> create mode 100644 support/testing/tests/boot/br2-external/uboot-tools/external.desc
> create mode 100644 support/testing/tests/boot/br2-external/uboot-tools/external.mk
> create mode 100644 support/testing/tests/boot/br2-external/uboot-tools/package/uboot-tools-test/Config.in
> create mode 100644 support/testing/tests/boot/br2-external/uboot-tools/package/uboot-tools-test/uboot-env-test.c
> create mode 100644 support/testing/tests/boot/br2-external/uboot-tools/package/uboot-tools-test/uboot-tools-test.mk
> create mode 100644 support/testing/tests/boot/test_uboot_tools.py
>
> diff --git a/support/testing/tests/boot/br2-external/uboot-tools/Config.in b/support/testing/tests/boot/br2-external/uboot-tools/Config.in
> new file mode 100644
> index 0000000000..3cd7c06bb8
> --- /dev/null
> +++ b/support/testing/tests/boot/br2-external/uboot-tools/Config.in
> @@ -0,0 +1 @@
> +source "$BR2_EXTERNAL_UBOOT_TOOLS_TEST_PATH/package/uboot-tools-test/Config.in"
> diff --git a/support/testing/tests/boot/br2-external/uboot-tools/external.desc b/support/testing/tests/boot/br2-external/uboot-tools/external.desc
> new file mode 100644
> index 0000000000..2f8477edaf
> --- /dev/null
> +++ b/support/testing/tests/boot/br2-external/uboot-tools/external.desc
> @@ -0,0 +1 @@
> +name: UBOOT_TOOLS_TEST
> diff --git a/support/testing/tests/boot/br2-external/uboot-tools/external.mk b/support/testing/tests/boot/br2-external/uboot-tools/external.mk
> new file mode 100644
> index 0000000000..61cfd5878f
> --- /dev/null
> +++ b/support/testing/tests/boot/br2-external/uboot-tools/external.mk
> @@ -0,0 +1 @@
> +include $(sort $(wildcard $(BR2_EXTERNAL_UBOOT_TOOLS_TEST_PATH)/package/*/*.mk))
> diff --git a/support/testing/tests/boot/br2-external/uboot-tools/package/uboot-tools-test/Config.in b/support/testing/tests/boot/br2-external/uboot-tools/package/uboot-tools-test/Config.in
> new file mode 100644
> index 0000000000..1bdc09a731
> --- /dev/null
> +++ b/support/testing/tests/boot/br2-external/uboot-tools/package/uboot-tools-test/Config.in
> @@ -0,0 +1,6 @@
> +config BR2_PACKAGE_UBOOT_TOOLS_TEST
> + bool "uboot-tools-test"
> + select BR2_PACKAGE_UBOOT_TOOLS
> + help
> + Test code for fw_env.h inclusion.
> +
> diff --git a/support/testing/tests/boot/br2-external/uboot-tools/package/uboot-tools-test/uboot-env-test.c b/support/testing/tests/boot/br2-external/uboot-tools/package/uboot-tools-test/uboot-env-test.c
> new file mode 100644
> index 0000000000..0bd7c9993f
> --- /dev/null
> +++ b/support/testing/tests/boot/br2-external/uboot-tools/package/uboot-tools-test/uboot-env-test.c
> @@ -0,0 +1,14 @@
> +/*
> + * Based on http://lists.busybox.net/pipermail/buildroot/2020-April/280307.html
> + */
> +
> +#include <stdlib.h>
> +#include <fw_env.h>
> +#include <stdio.h>
> +
> +int main(void)
> +{
> + puts("Hello world!");
> +
> + return EXIT_SUCCESS;
> +}
> diff --git a/support/testing/tests/boot/br2-external/uboot-tools/package/uboot-tools-test/uboot-tools-test.mk b/support/testing/tests/boot/br2-external/uboot-tools/package/uboot-tools-test/uboot-tools-test.mk
> new file mode 100644
> index 0000000000..93937aa879
> --- /dev/null
> +++ b/support/testing/tests/boot/br2-external/uboot-tools/package/uboot-tools-test/uboot-tools-test.mk
> @@ -0,0 +1,14 @@
> +################################################################################
> +#
> +# uboot-tools-test
> +#
> +################################################################################
> +
> +UBOOT_TOOLS_TEST_DEPENDENCIES = uboot-tools
> +
> +define UBOOT_TOOLS_TEST_BUILD_CMDS
> + $(TARGET_CC) $(TARGET_CFLAGS) $(TARGET_LDFLAGS) -lubootenv \
> + $(UBOOT_TOOLS_TEST_PKGDIR)/uboot-env-test.c -o $(@D)/uboot-env-test
> +endef
> +
> +$(eval $(generic-package))
> diff --git a/support/testing/tests/boot/test_uboot_tools.py b/support/testing/tests/boot/test_uboot_tools.py
> new file mode 100644
> index 0000000000..55a5fba3c6
> --- /dev/null
> +++ b/support/testing/tests/boot/test_uboot_tools.py
> @@ -0,0 +1,15 @@
> +
> +import infra.basetest
> +
> +
> +class TestUbootToolsEnv(infra.basetest.BRTest):
> + br2_external = [infra.filepath("tests/boot/br2-external/uboot-tools")]
> + config = \
> + """
> + BR2_aarch64=y
> + BR2_TOOLCHAIN_EXTERNAL=y
> + BR2_PACKAGE_UBOOT_TOOLS_TEST=y
> + """
> +
> + def test_run(self):
> + pass
> --
> 2.25.4
>
> _______________________________________________
> buildroot mailing list
> buildroot at busybox.net
> http://lists.busybox.net/mailman/listinfo/buildroot
--
.-----------------.--------------------.------------------.--------------------.
| Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ |
| +33 561 099 427 `------------.-------: X AGAINST | \e/ There is no |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. |
'------------------------------^-------^------------------^--------------------'
next prev parent reply other threads:[~2020-05-26 20:59 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-05-11 21:47 [Buildroot] [PATCH 1/2] package/uboot-tools: tools/env/fw_env.h: remove env.h Romain Naour
2020-05-11 21:47 ` [Buildroot] [PATCH 2/2] support/testing: test_uboot_tools: Add a test building a binary that include fw_env.h Romain Naour
2020-05-26 20:59 ` Yann E. MORIN [this message]
2020-05-26 21:19 ` Romain Naour
2020-05-26 21:25 ` Yann E. MORIN
2020-05-25 21:17 ` [Buildroot] [PATCH 1/2] package/uboot-tools: tools/env/fw_env.h: remove env.h Romain Naour
2020-05-26 20:55 ` Yann E. MORIN
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=20200526205904.GI8737@scaer \
--to=yann.morin.1998@free.fr \
--cc=buildroot@busybox.net \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox