mirror of git://sourceware.org/git/glibc.git
Add wcsmbs IFUNC tests
This commit is contained in:
parent
69f07e5fd1
commit
228cfb018a
|
@ -1,5 +1,14 @@
|
||||||
2012-10-20 H.J. Lu <hongjiu.lu@intel.com>
|
2012-10-20 H.J. Lu <hongjiu.lu@intel.com>
|
||||||
|
|
||||||
|
* wcsmbs/Makefile (tests-ifunc): New variable.
|
||||||
|
(tests): Add $(tests-ifunc).
|
||||||
|
* wcsmbs/test-wcschr-ifunc.c: New file.
|
||||||
|
* wcsmbs/test-wcscmp-ifunc.c: Likewise.
|
||||||
|
* wcsmbs/test-wcscpy-ifunc.c: Likewise.
|
||||||
|
* wcsmbs/test-wcslen-ifunc.c: Likewise.
|
||||||
|
* wcsmbs/test-wcsrchr-ifunc.c: Likewise.
|
||||||
|
* wcsmbs/test-wmemcmp-ifunc.c: Likewise.
|
||||||
|
|
||||||
* string/Makefile (tests-ifunc): New variable.
|
* string/Makefile (tests-ifunc): New variable.
|
||||||
(tests): Add $(tests-ifunc).
|
(tests): Add $(tests-ifunc).
|
||||||
* string/test-memccpy.c (TEST_NAME): New macro.
|
* string/test-memccpy.c (TEST_NAME): New macro.
|
||||||
|
|
|
@ -45,6 +45,8 @@ strop-tests := wcscmp wmemcmp wcslen wcschr wcsrchr wcscpy
|
||||||
tests := tst-wcstof wcsmbs-tst1 tst-wcsnlen tst-btowc tst-mbrtowc \
|
tests := tst-wcstof wcsmbs-tst1 tst-wcsnlen tst-btowc tst-mbrtowc \
|
||||||
tst-wcrtomb tst-wcpncpy tst-mbsrtowcs tst-wchar-h tst-mbrtowc2 \
|
tst-wcrtomb tst-wcpncpy tst-mbsrtowcs tst-wchar-h tst-mbrtowc2 \
|
||||||
tst-c16c32-1 wcsatcliff $(addprefix test-,$(strop-tests))
|
tst-c16c32-1 wcsatcliff $(addprefix test-,$(strop-tests))
|
||||||
|
tests-ifunc := $(strop-tests:%=test-%-ifunc)
|
||||||
|
tests += $(tests-ifunc)
|
||||||
|
|
||||||
include ../Rules
|
include ../Rules
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,20 @@
|
||||||
|
/* Test and measure IFUNC implementations of wcschr function.
|
||||||
|
Copyright (C) 2012 Free Software Foundation, Inc.
|
||||||
|
This file is part of the GNU C Library.
|
||||||
|
|
||||||
|
The GNU C Library is free software; you can redistribute it and/or
|
||||||
|
modify it under the terms of the GNU Lesser General Public
|
||||||
|
License as published by the Free Software Foundation; either
|
||||||
|
version 2.1 of the License, or (at your option) any later version.
|
||||||
|
|
||||||
|
The GNU C Library is distributed in the hope that it will be useful,
|
||||||
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
|
Lesser General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU Lesser General Public
|
||||||
|
License along with the GNU C Library; if not, see
|
||||||
|
<http://www.gnu.org/licenses/>. */
|
||||||
|
|
||||||
|
#define TEST_IFUNC 1
|
||||||
|
#include "test-wcschr.c"
|
|
@ -0,0 +1,20 @@
|
||||||
|
/* Test and measure IFUNC implementations of wcscmp function.
|
||||||
|
Copyright (C) 2012 Free Software Foundation, Inc.
|
||||||
|
This file is part of the GNU C Library.
|
||||||
|
|
||||||
|
The GNU C Library is free software; you can redistribute it and/or
|
||||||
|
modify it under the terms of the GNU Lesser General Public
|
||||||
|
License as published by the Free Software Foundation; either
|
||||||
|
version 2.1 of the License, or (at your option) any later version.
|
||||||
|
|
||||||
|
The GNU C Library is distributed in the hope that it will be useful,
|
||||||
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
|
Lesser General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU Lesser General Public
|
||||||
|
License along with the GNU C Library; if not, see
|
||||||
|
<http://www.gnu.org/licenses/>. */
|
||||||
|
|
||||||
|
#define TEST_IFUNC 1
|
||||||
|
#include "test-wcscmp.c"
|
|
@ -0,0 +1,20 @@
|
||||||
|
/* Test and measure IFUNC implementations of wcscpy function.
|
||||||
|
Copyright (C) 2012 Free Software Foundation, Inc.
|
||||||
|
This file is part of the GNU C Library.
|
||||||
|
|
||||||
|
The GNU C Library is free software; you can redistribute it and/or
|
||||||
|
modify it under the terms of the GNU Lesser General Public
|
||||||
|
License as published by the Free Software Foundation; either
|
||||||
|
version 2.1 of the License, or (at your option) any later version.
|
||||||
|
|
||||||
|
The GNU C Library is distributed in the hope that it will be useful,
|
||||||
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
|
Lesser General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU Lesser General Public
|
||||||
|
License along with the GNU C Library; if not, see
|
||||||
|
<http://www.gnu.org/licenses/>. */
|
||||||
|
|
||||||
|
#define TEST_IFUNC 1
|
||||||
|
#include "test-wcscpy.c"
|
|
@ -0,0 +1,20 @@
|
||||||
|
/* Test and measure IFUNC implementations of wcslen function.
|
||||||
|
Copyright (C) 2012 Free Software Foundation, Inc.
|
||||||
|
This file is part of the GNU C Library.
|
||||||
|
|
||||||
|
The GNU C Library is free software; you can redistribute it and/or
|
||||||
|
modify it under the terms of the GNU Lesser General Public
|
||||||
|
License as published by the Free Software Foundation; either
|
||||||
|
version 2.1 of the License, or (at your option) any later version.
|
||||||
|
|
||||||
|
The GNU C Library is distributed in the hope that it will be useful,
|
||||||
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
|
Lesser General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU Lesser General Public
|
||||||
|
License along with the GNU C Library; if not, see
|
||||||
|
<http://www.gnu.org/licenses/>. */
|
||||||
|
|
||||||
|
#define TEST_IFUNC 1
|
||||||
|
#include "test-wcslen.c"
|
|
@ -0,0 +1,20 @@
|
||||||
|
/* Test and measure IFUNC implementations of wcsrchr function.
|
||||||
|
Copyright (C) 2012 Free Software Foundation, Inc.
|
||||||
|
This file is part of the GNU C Library.
|
||||||
|
|
||||||
|
The GNU C Library is free software; you can redistribute it and/or
|
||||||
|
modify it under the terms of the GNU Lesser General Public
|
||||||
|
License as published by the Free Software Foundation; either
|
||||||
|
version 2.1 of the License, or (at your option) any later version.
|
||||||
|
|
||||||
|
The GNU C Library is distributed in the hope that it will be useful,
|
||||||
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
|
Lesser General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU Lesser General Public
|
||||||
|
License along with the GNU C Library; if not, see
|
||||||
|
<http://www.gnu.org/licenses/>. */
|
||||||
|
|
||||||
|
#define TEST_IFUNC 1
|
||||||
|
#include "test-wcsrchr.c"
|
|
@ -0,0 +1,20 @@
|
||||||
|
/* Test and measure IFUNC implementations of wmemcmp function.
|
||||||
|
Copyright (C) 2012 Free Software Foundation, Inc.
|
||||||
|
This file is part of the GNU C Library.
|
||||||
|
|
||||||
|
The GNU C Library is free software; you can redistribute it and/or
|
||||||
|
modify it under the terms of the GNU Lesser General Public
|
||||||
|
License as published by the Free Software Foundation; either
|
||||||
|
version 2.1 of the License, or (at your option) any later version.
|
||||||
|
|
||||||
|
The GNU C Library is distributed in the hope that it will be useful,
|
||||||
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
|
Lesser General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU Lesser General Public
|
||||||
|
License along with the GNU C Library; if not, see
|
||||||
|
<http://www.gnu.org/licenses/>. */
|
||||||
|
|
||||||
|
#define TEST_IFUNC 1
|
||||||
|
#include "test-wmemcmp.c"
|
Loading…
Reference in New Issue