1. 09 11月, 2017 1 次提交
  2. 13 10月, 2017 1 次提交
  3. 06 10月, 2017 1 次提交
  4. 16 9月, 2017 1 次提交
  5. 09 9月, 2017 2 次提交
  6. 07 9月, 2017 5 次提交
  7. 06 9月, 2017 1 次提交
  8. 02 9月, 2017 1 次提交
  9. 31 8月, 2017 3 次提交
  10. 30 8月, 2017 2 次提交
  11. 29 8月, 2017 6 次提交
  12. 26 8月, 2017 5 次提交
    • S
      selftests: lib.mk: change RUN_TESTS to print messages in TAP13 format · 1f87c7c1
      Shuah Khan 提交于
      Change common RUN_TESTS to print messages in user friendly TAP13 format.
      This change add TAP13 header at the start of RUN_TESTS target run, and
      prints the resulting pass/fail messages with test number information in
      the TAP 13 format for each test in the run tests list.
      
      This change covers test scripts as well as test programs. Test programs
      have an option to use ksft_ API, however test scripts won't be able to.
      With this change, test scripts can print TAP13 format output without any
      changes to individual scripts.
      
      Test programs can provide TAP13 format output as needed as some tests
      already do. Tests that haven't been converted will benefit from this
      change. Tests that are converted benefit from the test counts for all
      the tests in each test directory.
      
      Running firmware tests:
      make --silent -C tools/testing/selftests/firmware/ run_tests
      
      Before the change:
      
      modprobe: ERROR: could not insert 'test_firmware': Operation not
      permitted
      ./fw_filesystem.sh: /sys/devices/virtual/misc/test_firmware not present
      You must have the following enabled in your kernel:
      CONFIG_TEST_FIRMWARE=y
      selftests:  fw_filesystem.sh [FAIL]
      modprobe: ERROR: could not insert 'test_firmware': Operation not
      permitted
      selftests:  fw_fallback.sh [FAIL]
      
      After the change:
      
      TAP version 13
      selftests: fw_filesystem.sh
      ========================================
      modprobe: ERROR: could not insert 'test_firmware': Operation not
      permitted
      ./fw_filesystem.sh: /sys/devices/virtual/misc/test_firmware not present
      You must have the following enabled in your kernel:
      CONFIG_TEST_FIRMWARE=y
      not ok 1..1 selftests:  fw_filesystem.sh [FAIL]
      selftests: fw_fallback.sh
      ========================================
      modprobe: ERROR: could not insert 'test_firmware': Operation not
      permitted
      not ok 1..2 selftests:  fw_fallback.sh [FAIL]
      Signed-off-by: NShuah Khan <shuahkh@osg.samsung.com>
      1f87c7c1
    • S
      selftests: change lib.mk RUN_TESTS to take test list as an argument · 77d802e2
      Shuah Khan 提交于
      Change lib.mk RUN_TESTS to take test list as an argument. This will
      allow it to be called from individual test makefiles to run additional
      tests that aren't suitable for a default kselftest run. As an example,
      timers test includes destructive tests that aren't included in the
      common run_tests target.
      
      Change times/Makefile to use RUN_TESTS call with destructive test list
      as an argument instead of using its own RUN_TESTS target.
      Signed-off-by: NShuah Khan <shuahkh@osg.samsung.com>
      77d802e2
    • S
      selftests: lib.mk: suppress "cd" output from run_tests target · 49b73645
      Shuah Khan 提交于
      Suppress "cd" output from run_tests while running tests to declutter the
      test results.
      
      Running efivarfs test:
      make --silent -C tools/testing/selftests/efivarfs/ run_tests
      
      Before the change:
      
      skip all tests: must be run as root
      selftests: efivarfs.sh [PASS]
      /lkml/linux-kselftest/tools/testing/selftests/efivarfs
      
      After the change:
      
      skip all tests: must be run as root
      selftests: efivarfs.sh [PASS]
      Signed-off-by: NShuah Khan <shuahkh@osg.samsung.com>
      49b73645
    • S
      selftests: kselftest framework: change skip exit code to 0 · 11867a77
      Shuah Khan 提交于
      When a test is skipped, instead of using a special exit code of 4, treat
      it as pass condition and use exit code of 0. It makes sense to treat skip
      as pass since the test couldn't be run as opposed to a failed test.
      Signed-off-by: NShuah Khan <shuahkh@osg.samsung.com>
      11867a77
    • B
      selftests/timers: make loop consistent with array size · 8f14e26b
      Benjamin Gaignard 提交于
      clocksource_list array is defined as char [10][30] so
      to initialise it we only have to iterate 10 times.
      Signed-off-by: NBenjamin Gaignard <benjamin.gaignard@linaro.org>
      Signed-off-by: NShuah Khan <shuahkh@osg.samsung.com>
      8f14e26b
  13. 24 8月, 2017 3 次提交
  14. 23 8月, 2017 4 次提交
  15. 20 8月, 2017 1 次提交
  16. 19 8月, 2017 1 次提交
  17. 18 8月, 2017 2 次提交
    • G
      kselftests: timers: set-timer-lat: Add one-shot timer test cases · 28be3f8f
      Greg Hackmann 提交于
      These testcases are motivated by a recent alarmtimer regression, which
      caused one-shot CLOCK_{BOOTTIME,REALTIME}_ALARM timers to become
      periodic timers.
      
      The new testcases are very similar to the existing testcases for
      repeating timers.  But rather than waiting for 5 alarms, they wait for 5
      seconds and verify that the alarm fired exactly once.
      
      Cc: Thomas Gleixner <tglx@linutronix.de>
      Cc: Ingo Molnar <mingo@kernel.org>
      Cc: Miroslav Lichvar <mlichvar@redhat.com>
      Cc: Richard Cochran <richardcochran@gmail.com>
      Cc: Prarit Bhargava <prarit@redhat.com>
      Cc: Stephen Boyd <stephen.boyd@linaro.org>
      Cc: Shuah Khan <shuah@kernel.org>
      Cc: linux-kselftest@vger.kernel.org
      Signed-off-by: NGreg Hackmann <ghackmann@google.com>
      Signed-off-by: NJohn Stultz <john.stultz@linaro.org>
      28be3f8f
    • G
      kselftests: timers: set-timer-lat: Tweak reporting when timer fires early · a524b118
      Greg Hackmann 提交于
      Rather than printing an error inside the alarm signal handler, set a
      flag that we check later.  This keeps the test from spamming the console
      every time the alarm fires early.  It also fixes the test exiting with
      error code 0 if this was the only test failure.
      
      Cc: Thomas Gleixner <tglx@linutronix.de>
      Cc: Ingo Molnar <mingo@kernel.org>
      Cc: Miroslav Lichvar <mlichvar@redhat.com>
      Cc: Richard Cochran <richardcochran@gmail.com>
      Cc: Prarit Bhargava <prarit@redhat.com>
      Cc: Stephen Boyd <stephen.boyd@linaro.org>
      Cc: Shuah Khan <shuah@kernel.org>
      Cc: linux-kselftest@vger.kernel.org
      Signed-off-by: NGreg Hackmann <ghackmann@google.com>
      Signed-off-by: NJohn Stultz <john.stultz@linaro.org>
      a524b118