1. 25 Aug, 2017 5 commits
    • Shuah Khan's avatar
      selftests: lib.mk: change RUN_TESTS to print messages in TAP13 format · 1f87c7c1
      Shuah Khan authored
      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: default avatarShuah Khan <shuahkh@osg.samsung.com>
      1f87c7c1
    • Shuah Khan's avatar
      selftests: change lib.mk RUN_TESTS to take test list as an argument · 77d802e2
      Shuah Khan authored
      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: default avatarShuah Khan <shuahkh@osg.samsung.com>
      77d802e2
    • Shuah Khan's avatar
      selftests: lib.mk: suppress "cd" output from run_tests target · 49b73645
      Shuah Khan authored
      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: default avatarShuah Khan <shuahkh@osg.samsung.com>
      49b73645
    • Shuah Khan's avatar
      selftests: kselftest framework: change skip exit code to 0 · 11867a77
      Shuah Khan authored
      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: default avatarShuah Khan <shuahkh@osg.samsung.com>
      11867a77
    • Benjamin Gaignard's avatar
      selftests/timers: make loop consistent with array size · 8f14e26b
      Benjamin Gaignard authored
      clocksource_list array is defined as char [10][30] so
      to initialise it we only have to iterate 10 times.
      Signed-off-by: default avatarBenjamin Gaignard <benjamin.gaignard@linaro.org>
      Signed-off-by: default avatarShuah Khan <shuahkh@osg.samsung.com>
      8f14e26b
  2. 23 Aug, 2017 1 commit
  3. 22 Aug, 2017 3 commits
  4. 16 Aug, 2017 4 commits
  5. 14 Aug, 2017 1 commit
  6. 11 Aug, 2017 1 commit
  7. 09 Aug, 2017 2 commits
  8. 02 Aug, 2017 6 commits
  9. 28 Jul, 2017 3 commits
  10. 26 Jul, 2017 6 commits
  11. 24 Jul, 2017 8 commits