1. 06 1月, 2017 1 次提交
    • B
      selftests: remove duplicated all and clean target · 88baa78d
      bamvor.zhangjian@huawei.com 提交于
      Currently, kselftest use TEST_PROGS, TEST_PROGS_EXTENDED, TEST_FILES to
      indicate the test program, extended test program and test files. It is
      easy to understand the purpose of these files. But mix of compiled and
      uncompiled files lead to duplicated "all" and "clean" targets.
      
      In order to remove the duplicated targets, introduce TEST_GEN_PROGS,
      TEST_GEN_PROGS_EXTENDED, TEST_GEN_FILES to indicate the compiled
      objects.
      
      Also, the later patch will make use of TEST_GEN_XXX to redirect these
      files to output directory indicated by KBUILD_OUTPUT or O.
      
      And add this changes to "Contributing new tests(details)" of
      Documentation/kselftest.txt.
      Signed-off-by: NBamvor Jian Zhang <bamvor.zhangjian@linaro.org>
      Signed-off-by: NShuah Khan <shuahkh@osg.samsung.com>
      88baa78d
  2. 19 11月, 2016 1 次提交
    • P
      selftests: arm64: add test for unaligned/inexact watchpoint handling · f43365ee
      Pratyush Anand 提交于
      ARM64 hardware expects 64bit aligned address for watchpoint invocation.
      However, it provides byte selection method to select any number of
      consecutive byte set within the range of 1-8.
      
      This patch adds support to test all such byte selection option for
      different memory write sizes.
      
      Patch also adds a test for handling the case when the cpu does not
      report an address which exactly matches one of the regions we have
      been watching (which is a situation permitted by the spec if an
      instruction accesses both watched and unwatched regions). The test
      was failing on a MSM8996pro before this patch series and is
      passing now.
      Signed-off-by: NPavel Labath <labath@google.com>
      Signed-off-by: NPratyush Anand <panand@redhat.com>
      Signed-off-by: NWill Deacon <will.deacon@arm.com>
      f43365ee
  3. 26 2月, 2016 1 次提交
  4. 04 11月, 2015 1 次提交
  5. 28 8月, 2015 1 次提交
  6. 14 3月, 2015 1 次提交
    • M
      selftests: Introduce minimal shared logic for running tests · 5e29a910
      Michael Ellerman 提交于
      This adds a Make include file which most selftests can then include to
      get the run_tests logic.
      
      On its own this has the advantage of some reduction in repetition, and
      also means the pass/fail message is defined in fewer places.
      
      However the key advantage is it will allow us to implement install very
      simply in a subsequent patch.
      
      The default implementation just executes each program in $(TEST_PROGS).
      
      We use a variable to hold the default implementation of $(RUN_TESTS)
      because that gives us a clean way to override it if necessary, ie. using
      override. The mount, memory-hotplug and mqueue tests use that to provide
      a different implementation.
      
      Tests are not run via /bin/bash, so if they are scripts they must be
      executable, we add a+x to several.
      Signed-off-by: NMichael Ellerman <mpe@ellerman.id.au>
      Signed-off-by: NShuah Khan <shuahkh@osg.samsung.com>
      5e29a910
  7. 18 12月, 2012 1 次提交
  8. 29 3月, 2012 1 次提交
  9. 13 1月, 2012 1 次提交
    • F
      selftests: new x86 breakpoints selftest · 85bbddc3
      Frederic Weisbecker 提交于
      Bring a first selftest in the relevant directory.  This tests several
      combinations of breakpoints and watchpoints in x86, as well as icebp traps
      and int3 traps.  Given the amount of breakpoint regressions we raised
      after we merged the generic breakpoint infrastructure, such selftest
      became necessary and can still serve today as a basis for new patches that
      touch the do_debug() path.
      Signed-off-by: NFrederic Weisbecker <fweisbec@gmail.com>
      Cc: Thomas Gleixner <tglx@linutronix.de>
      Cc: Ingo Molnar <mingo@elte.hu>
      Cc: H. Peter Anvin <hpa@zytor.com>
      Cc: Jason Wessel <jason.wessel@windriver.com>
      Cc: Will Deacon <will.deacon@arm.com>
      Cc: Michal Marek <mmarek@suse.cz>
      Cc: Sam Ravnborg <sam@ravnborg.org>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      85bbddc3