]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
selftests: Add futex functional tests
authorDarren Hart <dvhart@linux.intel.com>
Wed, 13 May 2015 04:07:52 +0000 (21:07 -0700)
committerShuah Khan <shuahkh@osg.samsung.com>
Tue, 26 May 2015 21:58:07 +0000 (15:58 -0600)
commit2aa8470f02a9b9e6a410d1264fe6c8fa6c402eff
tree378e6144e0c81175e26258630f1eae0bd663db85
parent61171d0407b537eff299aea2388773b6c760e6eb
selftests: Add futex functional tests

The futextest testsuite [1] provides functional, stress, and
performance tests for the various futex op codes. Those tests will be of
more use to futex developers if they are included with the kernel
source.

Copy the core infrastructure and the functional tests into selftests,
but adapt them for inclusion in the kernel:

- Update the Makefile to include the run_tests target, remove reference
  to the performance and stress tests from the contributed sources.
- Replace my dead IBM email address with my current Intel email address.
- Remove the warrantee and write-to paragraphs from the license blurbs.
- Remove the NAME section as the filename is easily determined. ;-)
- Make the whitespace usage consistent in a couple of places.
- Cleanup various CodingStyle violations.

A future effort will explore moving the performance and stress tests
into the kernel.

1. http://git.kernel.org/cgit/linux/kernel/git/dvhart/futextest.git

Cc: Shuah Khan <shuahkh@osg.samsung.com>
Cc: linux-api@vger.kernel.org
Cc: Ingo Molnar <mingo@elte.hu>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Davidlohr Bueso <dave@stgolabs.net>
Cc: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>
Signed-off-by: Darren Hart <dvhart@linux.intel.com>
Signed-off-by: Shuah Khan <shuahkh@osg.samsung.com>
15 files changed:
tools/testing/selftests/futex/Makefile [new file with mode: 0644]
tools/testing/selftests/futex/README [new file with mode: 0644]
tools/testing/selftests/futex/functional/Makefile [new file with mode: 0644]
tools/testing/selftests/futex/functional/futex_requeue_pi.c [new file with mode: 0644]
tools/testing/selftests/futex/functional/futex_requeue_pi_mismatched_ops.c [new file with mode: 0644]
tools/testing/selftests/futex/functional/futex_requeue_pi_signal_restart.c [new file with mode: 0644]
tools/testing/selftests/futex/functional/futex_wait_private_mapped_file.c [new file with mode: 0644]
tools/testing/selftests/futex/functional/futex_wait_timeout.c [new file with mode: 0644]
tools/testing/selftests/futex/functional/futex_wait_uninitialized_heap.c [new file with mode: 0644]
tools/testing/selftests/futex/functional/futex_wait_wouldblock.c [new file with mode: 0644]
tools/testing/selftests/futex/functional/run.sh [new file with mode: 0755]
tools/testing/selftests/futex/include/atomic.h [new file with mode: 0644]
tools/testing/selftests/futex/include/futextest.h [new file with mode: 0644]
tools/testing/selftests/futex/include/logging.h [new file with mode: 0644]
tools/testing/selftests/futex/run.sh [new file with mode: 0755]