All of lore.kernel.org
 help / color / mirror / Atom feed
From: Petr Vorel <pvorel@suse.cz>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v2 1/6] kconfig: re-sync with Linux 4.17-rc4
Date: Sat, 12 May 2018 20:25:56 +0200	[thread overview]
Message-ID: <20180512182556.GA2025@x230> (raw)
In-Reply-To: <20180512171331.19693-1-erosca@de.adit-jv.com>

Hi Eugeniu,

> My testing was limited to:
> - make defconfig all
> - make ARCH=arm CROSS_COMPILE=aarch64-linux-gnu- r8a7795_ulcb_defconfig all
> - comparing .config before and after the re-sync
> - running the newly imported Kconfig unit tests as seen below:

I tested whole patch-set with the other options:
make config
make defconfig
make menuconfig
make xconfig
make gconfig
make oldconfig

> Reviewed-by: Masahiro Yamada <yamada.masahiro@socionext.com>
> Signed-off-by: Eugeniu Rosca <erosca@de.adit-jv.com>
Tested-by: Petr Vorel <petr.vorel@gmail.com>

> $ make testconfig

> ============================= test session starts =============================
> scripts/kconfig/tests/auto_submenu/__init__.py::test PASSED             [  7%]
> scripts/kconfig/tests/choice/__init__.py::test_oldask0 PASSED           [ 14%]
> scripts/kconfig/tests/choice/__init__.py::test_oldask1 PASSED           [ 21%]
> scripts/kconfig/tests/choice/__init__.py::test_allyes PASSED            [ 28%]
> scripts/kconfig/tests/choice/__init__.py::test_allmod PASSED            [ 35%]
> scripts/kconfig/tests/choice/__init__.py::test_allno PASSED             [ 42%]
> scripts/kconfig/tests/choice/__init__.py::test_alldef PASSED            [ 50%]
> scripts/kconfig/tests/choice_value_with_m_dep/__init__.py::test PASSED  [ 57%]
> scripts/kconfig/tests/err_recursive_inc/__init__.py::test PASSED        [ 64%]
> scripts/kconfig/tests/inter_choice/__init__.py::test PASSED             [ 71%]
> scripts/kconfig/tests/new_choice_with_dep/__init__.py::test PASSED      [ 78%]
> scripts/kconfig/tests/no_write_if_dep_unmet/__init__.py::test PASSED    [ 85%]
> scripts/kconfig/tests/rand_nested_choice/__init__.py::test PASSED       [ 92%]
> scripts/kconfig/tests/warn_recursive_dep/__init__.py::test PASSED       [100%]
> ========================== 14 passed in 0.34 seconds ==========================

When applied all 6 patches, I got several errors (see bellow).
I tested in on 2 distros (Debian unstable and openSUSE Tumbleweed).
The code I applied is here, did I make error when applying patches?
https://github.com/pevik/u-boot/tree/eugeniu/kconfig.v2


Kind regards,
Petr

$ make testconfig
python3 -B -m pytest ./scripts/kconfig/tests \
-o cache_dir=/home/pevik/install/src/u-boot.git/scripts/kconfig/tests/.cache \

============================= test session starts ==============================
platform linux -- Python 3.6.5, pytest-3.3.2, py-1.5.3, pluggy-0.6.0 -- /usr/bin/python3
cachedir: scripts/kconfig/tests/.cache
rootdir: /home/pevik/install/src/u-boot.git/scripts/kconfig/tests, inifile: pytest.ini
collecting ... collected 14 items

scripts/kconfig/tests/auto_submenu/__init__.py::test FAILED              [  7%]
scripts/kconfig/tests/choice/__init__.py::test_oldask0 FAILED            [ 14%]
scripts/kconfig/tests/choice/__init__.py::test_oldask1 FAILED            [ 21%]
scripts/kconfig/tests/choice/__init__.py::test_allyes PASSED             [ 28%]
scripts/kconfig/tests/choice/__init__.py::test_allmod PASSED             [ 35%]
scripts/kconfig/tests/choice/__init__.py::test_allno PASSED              [ 42%]
scripts/kconfig/tests/choice/__init__.py::test_alldef PASSED             [ 50%]
scripts/kconfig/tests/choice_value_with_m_dep/__init__.py::test PASSED   [ 57%]
scripts/kconfig/tests/err_recursive_inc/__init__.py::test PASSED         [ 64%]
scripts/kconfig/tests/inter_choice/__init__.py::test PASSED              [ 71%]
scripts/kconfig/tests/new_choice_with_dep/__init__.py::test FAILED       [ 78%]
scripts/kconfig/tests/no_write_if_dep_unmet/__init__.py::test PASSED     [ 85%]
scripts/kconfig/tests/rand_nested_choice/__init__.py::test PASSED        [ 92%]
scripts/kconfig/tests/warn_recursive_dep/__init__.py::test PASSED        [100%]

=================================== FAILURES ===================================
_____________________________________ test _____________________________________

conf = <conftest.Conf object@0x7f7eeeaa6d30>

    def test(conf):
        assert conf.oldaskconfig() == 0
>       assert conf.stdout_contains('expected_stdout')
E       AssertionError

scripts/kconfig/tests/auto_submenu/__init__.py:12: AssertionError
----------------------------- Captured stdout call -----------------------------
[command]
/home/pevik/install/src/u-boot.git/scripts/kconfig/conf --oldaskconfig Kconfig

[retcode]
0

[stdout]
*
* Linux Kernel Configuration
*
A (A) [Y/n/?] (NEW) 
  A0 (A0) [Y/n/?] (NEW) 
    A1_0 (A0_0) [N/y/?] (NEW) 
  A1 (A1) [Y/n/?] (NEW) 
    choice
    > 1. A1_0 (A1_0) (NEW)
      2. A1_1 (A1_1) (NEW)
    choice[1-2?]: 
B (B) [N/y/?] (NEW) 
C (C) [N/y/?] (NEW) 
#
# configuration written to .config
#

[stderr]

[output for '.config']
#
# Automatically generated file; DO NOT EDIT.
# Linux Kernel Configuration
#
CONFIG_A=y
CONFIG_A0=y
# CONFIG_A0_0 is not set
CONFIG_A1=y
CONFIG_A1_0=y
# CONFIG_A1_1 is not set
# CONFIG_B is not set
# CONFIG_C is not set

_________________________________ test_oldask0 _________________________________

conf = <conftest.Conf object@0x7f7ef0e167b8>

    def test_oldask0(conf):
        assert conf.oldaskconfig() == 0
>       assert conf.stdout_contains('oldask0_expected_stdout')
E       AssertionError

scripts/kconfig/tests/choice/__init__.py:15: AssertionError
----------------------------- Captured stdout call -----------------------------
[command]
/home/pevik/install/src/u-boot.git/scripts/kconfig/conf --oldaskconfig Kconfig

[retcode]
0

[stdout]
*
* Linux Kernel Configuration
*
Enable loadable module support (MODULES) [Y/n/?] (NEW) 
boolean choice
  1. choice 0 (BOOL_CHOICE0) (NEW)
> 2. choice 1 (BOOL_CHOICE1) (NEW)
choice[1-2?]: 
optional boolean choice [N/y/?] (NEW) 
tristate choice [M/y/?] (NEW) 
  choice 0 (TRI_CHOICE0) [N/m/?] (NEW) 
  choice 1 (TRI_CHOICE1) [N/m/?] (NEW) 
optional tristate choice [N/m/y/?] (NEW) 
#
# configuration written to .config
#

[stderr]

[output for '.config']
#
# Automatically generated file; DO NOT EDIT.
# Linux Kernel Configuration
#
CONFIG_MODULES=y
# CONFIG_BOOL_CHOICE0 is not set
CONFIG_BOOL_CHOICE1=y
# CONFIG_TRI_CHOICE0 is not set
# CONFIG_TRI_CHOICE1 is not set

_________________________________ test_oldask1 _________________________________

conf = <conftest.Conf object@0x7f7ef0e167b8>

    def test_oldask1(conf):
        assert conf.oldaskconfig('oldask1_config') == 0
>       assert conf.stdout_contains('oldask1_expected_stdout')
E       AssertionError

scripts/kconfig/tests/choice/__init__.py:20: AssertionError
----------------------------- Captured stdout call -----------------------------
[command]
/home/pevik/install/src/u-boot.git/scripts/kconfig/conf --oldaskconfig Kconfig

[retcode]
0

[stdout]
*
* Linux Kernel Configuration
*
Enable loadable module support (MODULES) [N/y/?] 
boolean choice
  1. choice 0 (BOOL_CHOICE0) (NEW)
> 2. choice 1 (BOOL_CHOICE1) (NEW)
choice[1-2?]: 
optional boolean choice [Y/n/?] (NEW) 
optional boolean choice
> 1. choice 0 (OPT_BOOL_CHOICE0)
  2. choice 1 (OPT_BOOL_CHOICE1) (NEW)
choice[1-2?]: 
tristate choice
  1. choice 0 (TRI_CHOICE0) (NEW)
> 2. choice 1 (TRI_CHOICE1) (NEW)
choice[1-2?]: 
optional tristate choice [N/y/?] 
#
# configuration written to .config
#

[stderr]

[output for '.config']
#
# Automatically generated file; DO NOT EDIT.
# Linux Kernel Configuration
#
# CONFIG_MODULES is not set
# CONFIG_BOOL_CHOICE0 is not set
CONFIG_BOOL_CHOICE1=y
CONFIG_OPT_BOOL_CHOICE0=y
# CONFIG_OPT_BOOL_CHOICE1 is not set
# CONFIG_TRI_CHOICE0 is not set
CONFIG_TRI_CHOICE1=y

_____________________________________ test _____________________________________

conf = <conftest.Conf object@0x7f7eee858400>

    def test(conf):
        assert conf.oldconfig('config', 'y') == 0
>       assert conf.stdout_contains('expected_stdout')
E       AssertionError

scripts/kconfig/tests/new_choice_with_dep/__init__.py:14: AssertionError
----------------------------- Captured stdout call -----------------------------
[command]
/home/pevik/install/src/u-boot.git/scripts/kconfig/conf --oldconfig Kconfig

[retcode]
0

[stdout]
*
* Restart config...
*
*
* Linux Kernel Configuration
*
A (A) [N/y/?] (NEW) y
  Choice ?
  > 1. Choice B (CHOICE_B)
    2. Choice C (CHOICE_C) (NEW)
  choice[1-2?]: 
Choice2 ?
  1. Choice D (CHOICE_D)
> 2. Choice E (CHOICE_E)
  3. Choice F (CHOICE_F) (NEW)
choice[1-3?]: 
#
# configuration written to .config
#

[stderr]

[output for '.config']
#
# Automatically generated file; DO NOT EDIT.
# Linux Kernel Configuration
#
CONFIG_A=y
CONFIG_CHOICE_B=y
# CONFIG_CHOICE_C is not set
# CONFIG_CHOICE_D is not set
CONFIG_CHOICE_E=y
# CONFIG_CHOICE_F is not set

===================== 4 failed, 10 passed in 0.21 seconds ======================
make[1]: *** [scripts/kconfig/Makefile:156: testconfig] Error 1
make: *** [Makefile:482: testconfig] Error 2

  parent reply	other threads:[~2018-05-12 18:25 UTC|newest]

Thread overview: 31+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-05-12 17:13 [U-Boot] [PATCH v2 1/6] kconfig: re-sync with Linux 4.17-rc4 Eugeniu Rosca
2018-05-12 17:13 ` [U-Boot] [PATCH v2 2/6] board: eets: pdu001: Fix wrong default value in Kconfig Eugeniu Rosca
2018-05-12 17:13 ` [U-Boot] [PATCH v2 3/6] scripts/dtc: Update to upstream version v1.4.5-6-gc1e55a5513e9 Eugeniu Rosca
2018-05-13 22:00   ` Simon Glass
2018-05-16  1:54   ` Masahiro Yamada
2018-05-16 11:51     ` Eugeniu Rosca
2018-05-12 17:13 ` [U-Boot] [PATCH v2 4/6] scripts/dtc: Update to upstream version v1.4.6-9-gaadd0b65c987 Eugeniu Rosca
2018-05-13 22:00   ` Simon Glass
2018-05-13 22:45     ` Eugeniu Rosca
2018-05-14 19:52       ` Simon Glass
2018-05-15 13:46         ` Eugeniu Rosca
2018-05-15 16:05           ` Simon Glass
2018-05-16  1:49   ` Masahiro Yamada
2018-05-12 17:13 ` [U-Boot] [PATCH v2 5/6] scripts/dtc: Re-sync with Linux 4.17-rc4 Eugeniu Rosca
2018-05-15 14:06   ` Eugeniu Rosca
2018-05-15 16:05     ` Simon Glass
2018-05-16  1:48     ` Masahiro Yamada
2018-05-12 17:13 ` [U-Boot] [PATCH v2 6/6] sandbox: dts: test: Fix wrong aliases property names Eugeniu Rosca
2018-05-13 22:00   ` Simon Glass
2018-05-12 18:25 ` Petr Vorel [this message]
2018-05-12 19:17   ` [U-Boot] [PATCH v2 1/6] kconfig: re-sync with Linux 4.17-rc4 Eugeniu Rosca
2018-05-12 19:31     ` Petr Vorel
2018-05-12 21:17       ` Eugeniu Rosca
2018-05-13 13:52     ` Masahiro Yamada
2018-05-13 20:43       ` Eugeniu Rosca
2018-05-14 19:35       ` Petr Vorel
2018-05-16  1:59 ` Masahiro Yamada
2018-05-16  5:09   ` Petr Vorel
2018-05-16  8:24     ` Eugeniu Rosca
2018-05-16 11:27       ` Eugeniu Rosca
2018-05-19 12:21         ` Eugeniu Rosca

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=20180512182556.GA2025@x230 \
    --to=pvorel@suse.cz \
    --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.