lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <0d518aea-63f4-507d-af4b-30536c156479@linuxfoundation.org>
Date:   Fri, 22 Nov 2019 21:46:50 -0700
From:   Shuah Khan <skhan@...uxfoundation.org>
To:     Linus Torvalds <torvalds@...ux-foundation.org>
Cc:     Shuah Khan <skhan@...uxfoundation.org>,
        Brendan Higgins <brendanhiggins@...gle.com>,
        linux-kselftest@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: [GIT PULL] kselftest kunit update for Linux 5.5-rc1

Hi Linus,

Please pull the following kselftest kunit update for Linux 5.5-rc1

This kselftest update for Linux 5.5-rc1 adds KUnit, a lightweight unit
testing and mocking framework for the Linux kernel from Brendan Higgins.

KUnit is not an end-to-end testing framework. It is currently supported
on UML and sub-systems can write unit tests and run them in UML env.
KUnit documentation is included in this update.

In addition, this Kunit update adds 3 new kunit tests:

- kunit test for proc sysctl from Iurii Zaikin
- kunit test for the 'list' doubly linked list from David Gow
- ext4 kunit test for decoding extended timestamps from Iurii Zaikin

In the future KUnit will be linked to Kselftest framework to provide
a way to trigger KUnit tests from user-space.

diff is attached.

thanks,
-- Shuah

----------------------------------------------------------------
The following changes since commit 54ecb8f7028c5eb3d740bb82b0f1d90f2df63c5c:

   Linux 5.4-rc1 (2019-09-30 10:35:40 -0700)

are available in the Git repository at:

   git://git.kernel.org/pub/scm/linux/kernel/git/shuah/linux-kselftest 
tags/linux-kselftest-5.5-rc1-kunit

for you to fetch changes up to ea2dd7c0875ed31955cda7b1b20612c8337192e5:

   lib/list-test: add a test for the 'list' doubly linked list 
(2019-11-01 11:13:48 -0600)

----------------------------------------------------------------
linux-kselftest-5.5-rc1-kunit

This kselftest update for Linux 5.5-rc1 adds KUnit, a lightweight unit
testing and mocking framework for the Linux kernel from Brendan Higgins.

KUnit is not an end-to-end testing framework. It is currently supported
on UML and sub-systems can write unit tests and run them in UML env.
KUnit documentation is included in this update.

In addition, this Kunit update adds 3 new kunit tests:

- kunit test for proc sysctl from Iurii Zaikin
- kunit test for the 'list' doubly linked list from David Gow
- ext4 kunit test for decoding extended timestamps from Iurii Zaikin

In the future KUnit will be linked to Kselftest framework to provide
a way to trigger KUnit tests from user-space.

----------------------------------------------------------------
Avinash Kondareddy (1):
       kunit: test: add tests for KUnit managed resources

Brendan Higgins (16):
       kunit: test: add KUnit test runner core
       kunit: test: add test resource management API
       kunit: test: add string_stream a std::stream like string builder
       kunit: test: add assertion printing library
       kunit: test: add the concept of expectations
       lib: enable building KUnit in lib/
       kunit: test: add initial tests
       objtool: add kunit_try_catch_throw to the noreturn list
       kunit: test: add support for test abort
       kunit: test: add tests for kunit test abort
       kunit: test: add the concept of assertions
       kunit: defconfig: add defconfigs for building KUnit tests
       Documentation: kunit: add documentation for KUnit
       MAINTAINERS: add entry for KUnit the unit testing framework
       MAINTAINERS: add proc sysctl KUnit test to PROC SYSCTL section
       kunit: fix failure to build without printk

David Gow (1):
       lib/list-test: add a test for the 'list' doubly linked list

Felix Guo (1):
       kunit: tool: add Python wrappers for running KUnit tests

Iurii Zaikin (2):
       kernel/sysctl-test: Add null pointer test for 
sysctl.c:proc_dointvec()
       ext4: add kunit test for decoding extended timestamps

SeongJae Park (2):
       kunit: Fix '--build_dir' option
       Documentation: kunit: Fix verification command

  Documentation/dev-tools/index.rst                  |    1 +
  Documentation/dev-tools/kunit/api/index.rst        |   16 +
  Documentation/dev-tools/kunit/api/test.rst         |   11 +
  Documentation/dev-tools/kunit/faq.rst              |   62 +
  Documentation/dev-tools/kunit/index.rst            |   79 ++
  Documentation/dev-tools/kunit/start.rst            |  180 +++
  Documentation/dev-tools/kunit/usage.rst            |  576 ++++++++
  MAINTAINERS                                        |   20 +
  arch/um/configs/kunit_defconfig                    |    3 +
  fs/ext4/Kconfig                                    |   17 +
  fs/ext4/Makefile                                   |    1 +
  fs/ext4/inode-test.c                               |  272 ++++
  include/kunit/assert.h                             |  356 +++++
  include/kunit/string-stream.h                      |   51 +
  include/kunit/test.h                               | 1490 
++++++++++++++++++++
  include/kunit/try-catch.h                          |   75 +
  kernel/Makefile                                    |    2 +
  kernel/sysctl-test.c                               |  392 +++++
  lib/Kconfig.debug                                  |   31 +
  lib/Makefile                                       |    5 +
  lib/kunit/Kconfig                                  |   36 +
  lib/kunit/Makefile                                 |    9 +
  lib/kunit/assert.c                                 |  141 ++
  lib/kunit/example-test.c                           |   88 ++
  lib/kunit/string-stream-test.c                     |   52 +
  lib/kunit/string-stream.c                          |  217 +++
  lib/kunit/test-test.c                              |  331 +++++
  lib/kunit/test.c                                   |  478 +++++++
  lib/kunit/try-catch.c                              |  118 ++
  lib/list-test.c                                    |  746 ++++++++++
  tools/objtool/check.c                              |    1 +
  tools/testing/kunit/.gitignore                     |    3 +
  tools/testing/kunit/configs/all_tests.config       |    3 +
  tools/testing/kunit/kunit.py                       |  138 ++
  tools/testing/kunit/kunit_config.py                |   66 +
  tools/testing/kunit/kunit_kernel.py                |  149 ++
  tools/testing/kunit/kunit_parser.py                |  310 ++++
  tools/testing/kunit/kunit_tool_test.py             |  206 +++
  .../test_data/test_is_test_passed-all_passed.log   |   32 +
  .../kunit/test_data/test_is_test_passed-crash.log  |   69 +
  .../test_data/test_is_test_passed-failure.log      |   36 +
  .../test_data/test_is_test_passed-no_tests_run.log |   75 +
  .../test_data/test_output_isolated_correctly.log   |  106 ++
  .../kunit/test_data/test_read_from_file.kconfig    |   17 +
  44 files changed, 7067 insertions(+)
  create mode 100644 Documentation/dev-tools/kunit/api/index.rst
  create mode 100644 Documentation/dev-tools/kunit/api/test.rst
  create mode 100644 Documentation/dev-tools/kunit/faq.rst
  create mode 100644 Documentation/dev-tools/kunit/index.rst
  create mode 100644 Documentation/dev-tools/kunit/start.rst
create mode 100644 Documentation/dev-tools/kunit/usage.rst
  create mode 100644 arch/um/configs/kunit_defconfig
  create mode 100644 fs/ext4/inode-test.c
  create mode 100644 include/kunit/assert.h
  create mode 100644 include/kunit/string-stream.h
  create mode 100644 include/kunit/test.h
  create mode 100644 include/kunit/try-catch.h
  create mode 100644 kernel/sysctl-test.c
  create mode 100644 lib/kunit/Kconfig
  create mode 100644 lib/kunit/Makefile
  create mode 100644 lib/kunit/assert.c
  create mode 100644 lib/kunit/example-test.c
  create mode 100644 lib/kunit/string-stream-test.c
  create mode 100644 lib/kunit/string-stream.c
  create mode 100644 lib/kunit/test-test.c
  create mode 100644 lib/kunit/test.c
  create mode 100644 lib/kunit/try-catch.c
  create mode 100644 lib/list-test.c
  create mode 100644 tools/testing/kunit/.gitignore
  create mode 100644 tools/testing/kunit/configs/all_tests.config
  create mode 100755 tools/testing/kunit/kunit.py
  create mode 100644 tools/testing/kunit/kunit_config.py
  create mode 100644 tools/testing/kunit/kunit_kernel.py
  create mode 100644 tools/testing/kunit/kunit_parser.py
  create mode 100755 tools/testing/kunit/kunit_tool_test.py
  create mode 100644 
tools/testing/kunit/test_data/test_is_test_passed-all_passed.log
  create mode 100644 
tools/testing/kunit/test_data/test_is_test_passed-crash.log
  create mode 100644 
tools/testing/kunit/test_data/test_is_test_passed-failure.log
  create mode 100644 
tools/testing/kunit/test_data/test_is_test_passed-no_tests_run.log
  create mode 100644 
tools/testing/kunit/test_data/test_output_isolated_correctly.log
  create mode 100644 
tools/testing/kunit/test_data/test_read_from_file.kconfig
----------------------------------------------------------------

View attachment "linux-kselftest-5.5-rc1-kunit.diff" of type "text/x-patch" (238116 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ