linux/tools/testing/selftests/powerpc
Christophe Leroy f0abbfd89f selftests/powerpc: Add test for strlen()
This patch adds a test for strlen()

string.c contains a copy of strlen() from lib/string.c

The test first tests the correctness of strlen() by comparing
the result with libc strlen(). It tests all cases of alignment.

It them tests the duration of an aligned strlen() on a 4 bytes string,
on a 16 bytes string and on a 256 bytes string.

Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr>
[mpe: Drop change log from copy of string.c]
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
2018-08-07 21:49:30 +10:00
..
alignment selftests/powerpc: Consolidate copy/paste test logic 2018-07-20 12:50:52 +10:00
benchmarks selftests/powerpc: Give some tests longer to run 2018-08-07 21:49:26 +10:00
cache_shape License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
copyloops powerpc: clean inclusions of asm/feature-fixups.h 2018-07-30 22:48:17 +10:00
dscr selftests/powerpc: Fix typos 2018-07-02 23:59:44 +10:00
include selftests/powerpc: Add a helper for checking if we're on ppc64le 2018-08-07 21:49:25 +10:00
lib
math License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
mm selftests/powerpc: Skip the subpage_prot tests if the syscall is unavailable 2018-03-02 11:37:04 +11:00
pmu selftests/powerpc: Give some tests longer to run 2018-08-07 21:49:26 +10:00
primitives powerpc: clean inclusions of asm/feature-fixups.h 2018-07-30 22:48:17 +10:00
ptrace selftests/powerpc: Fix ptrace-pkey for default execute permission change 2018-07-24 22:03:14 +10:00
scripts
signal License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
stringloops selftests/powerpc: Add test for strlen() 2018-08-07 21:49:30 +10:00
switch_endian License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
syscalls License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
tm selftests/powerpc: Only run some tests on ppc64le 2018-08-07 21:49:25 +10:00
vphn License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
harness.c selftest/powerpc: Fix false failures for skipped tests 2017-03-03 11:24:50 +11:00
Makefile selftests/powerpc: Remove redundant cp_abort test 2018-05-21 14:48:02 +10:00
utils.c selftests/powerpc: Add a helper for checking if we're on ppc64le 2018-08-07 21:49:25 +10:00