Skip to content
  1. Jan 14, 2021
  2. Jan 10, 2021
    • Chen Yi's avatar
      selftests: netfilter: Pass family parameter "-f" to conntrack tool · fab336b4
      Chen Yi authored
      
      
      Fix nft_conntrack_helper.sh false fail report:
      
      1) Conntrack tool need "-f ipv6" parameter to show out ipv6 traffic items.
      
      2) Sleep 1 second after background nc send packet, to make sure check
      is after this statement executed.
      
      False report:
      FAIL: ns1-lkjUemYw did not show attached helper ip set via ruleset
      PASS: ns1-lkjUemYw connection on port 2121 has ftp helper attached
      ...
      
      After fix:
      PASS: ns1-2hUniwU2 connection on port 2121 has ftp helper attached
      PASS: ns2-2hUniwU2 connection on port 2121 has ftp helper attached
      ...
      
      Fixes: 619ae8e0 ("selftests: netfilter: add test case for conntrack helper assignment")
      Signed-off-by: default avatarChen Yi <yiche@redhat.com>
      Signed-off-by: default avatarPablo Neira Ayuso <pablo@netfilter.org>
      fab336b4
  3. Jan 09, 2021
  4. Jan 08, 2021
  5. Jan 07, 2021
  6. Jan 06, 2021
  7. Jan 04, 2021
    • Ido Schimmel's avatar
      selftests: mlxsw: Set headroom size of correct port · 2ff2c7e2
      Ido Schimmel authored
      
      
      The test was setting the headroom size of the wrong port. This was not
      visible because of a firmware bug that canceled this bug.
      
      Set the headroom size of the correct port, so that the test will pass
      with both old and new firmware versions.
      
      Fixes: bfa80478 ("selftests: mlxsw: Add a PFC test")
      Signed-off-by: default avatarIdo Schimmel <idosch@nvidia.com>
      Reviewed-by: default avatarPetr Machata <petrm@nvidia.com>
      Link: https://lore.kernel.org/r/20201230114251.394009-1-idosch@idosch.org
      
      
      Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
      2ff2c7e2
    • Mark Brown's avatar
      selftests: Skip BPF seftests by default · 7a6eb7c3
      Mark Brown authored
      
      
      The BPF selftests have build time dependencies on cutting edge versions
      of tools in the BPF ecosystem including LLVM which are more involved
      to satisfy than more typical requirements like installing a package from
      your distribution.  This causes issues for users looking at kselftest in
      as a whole who find that a default build of kselftest fails and that
      resolving this is time consuming and adds administrative overhead.  The
      fast pace of BPF development and the need for a full BPF stack to do
      substantial development or validation work on the code mean that people
      working directly on it don't see a reasonable way to keep supporting
      older environments without causing problems with the usability of the
      BPF tests in BPF development so these requirements are unlikely to be
      relaxed in the immediate future.
      
      There is already support for skipping targets so in order to reduce the
      barrier to entry for people interested in kselftest as a whole let's use
      that to skip the BPF tests by default when people work with the top
      level kselftest build system.  Users can still build the BPF selftests
      as part of the wider kselftest build by specifying SKIP_TARGETS,
      including setting an empty SKIP_TARGETS to build everything.  They can
      also continue to build the BPF selftests individually in cases where
      they are specifically focused on BPF.
      
      This isn't ideal since it means people will need to take special steps
      to build the BPF tests but the dependencies mean that realistically this
      is already the case to some extent and it makes it easier for people to
      pick up and work with the other selftests which is hopefully a net win.
      
      Signed-off-by: default avatarMark Brown <broonie@kernel.org>
      Signed-off-by: default avatarShuah Khan <skhan@linuxfoundation.org>
      7a6eb7c3
    • Tobias Klauser's avatar
      selftests/vDSO: fix -Wformat warning in vdso_test_correctness · df00d029
      Tobias Klauser authored
      
      
      Fix the following -Wformat warnings in vdso_test_correctness.c:
      
      vdso_test_correctness.c: In function ‘test_one_clock_gettime64’:
      vdso_test_correctness.c:352:21: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 3 has type ‘long long int’ [-Wformat=]
        352 |  printf("\t%llu.%09ld %llu.%09ld %llu.%09ld\n",
            |                 ~~~~^
            |                     |
            |                     long int
            |                 %09lld
        353 |         (unsigned long long)start.tv_sec, start.tv_nsec,
            |                                           ~~~~~~~~~~~~~
            |                                                |
            |                                                long long int
      vdso_test_correctness.c:352:32: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 5 has type ‘long long int’ [-Wformat=]
        352 |  printf("\t%llu.%09ld %llu.%09ld %llu.%09ld\n",
            |                            ~~~~^
            |                                |
            |                                long int
            |                            %09lld
        353 |         (unsigned long long)start.tv_sec, start.tv_nsec,
        354 |         (unsigned long long)vdso.tv_sec, vdso.tv_nsec,
            |                                          ~~~~~~~~~~~~
            |                                              |
            |                                              long long int
      vdso_test_correctness.c:352:43: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 7 has type ‘long long int’ [-Wformat=]
      
      The tv_sec member of __kernel_timespec is long long, both in
      uapi/linux/time_types.h and locally in vdso_test_correctness.c.
      
      Signed-off-by: default avatarTobias Klauser <tklauser@distanz.ch>
      Signed-off-by: default avatarShuah Khan <skhan@linuxfoundation.org>
      df00d029
    • Tobias Klauser's avatar
      selftests/vDSO: add additional binaries to .gitignore · 3b4cf848
      Tobias Klauser authored
      
      
      Add the test binaries introduced by commit 693f5ca0 ("kselftest:
      Extend vDSO selftest"), commit 03f55c79 ("kselftest: Extend vDSO
      selftest to clock_getres") and commit c7e5789b ("kselftest: Move
      test_vdso to the vDSO test suite") to .gitignore.
      
      Signed-off-by: default avatarTobias Klauser <tklauser@distanz.ch>
      Signed-off-by: default avatarShuah Khan <skhan@linuxfoundation.org>
      3b4cf848
    • David Gow's avatar
      kunit: tool: Force the use of the 'tty' console for UML · 65a4e529
      David Gow authored
      kunit_tool relies on the UML console outputting printk() output to the
      tty in order to get results. Since the default console driver could
      change, pass 'console=tty' to the kernel.
      
      This is triggered by a change[1] to use ttynull as a fallback console
      driver which -- by chance or by design -- seems to have changed the
      default console output on UML, breaking kunit_tool. While this may be
      fixed, we should be less fragile to such changes in the default.
      
      [1]:
      https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=757055ae8dedf5333af17b3b5b4b70ba9bc9da4e
      
      
      
      Signed-off-by: default avatarDavid Gow <davidgow@google.com>
      Fixes: 757055ae ("init/console: Use ttynull as a fallback when there is no console")
      Reported-by: default avatarAndy Shevchenko <andriy.shevchenko@linux.intel.com>
      Tested-by: default avatarAndy Shevchenko <andriy.shevchenko@linux.intel.com>
      Acked-by: default avatarBrendan Higgins <brendanhiggins@google.com>
      Signed-off-by: default avatarShuah Khan <skhan@linuxfoundation.org>
      65a4e529
  8. Dec 29, 2020
  9. Dec 24, 2020
Loading