libc-test
10 years agofix local makefiles to make it possible to rebuild binaries
Szabolcs Nagy [Thu, 1 Aug 2013 23:36:58 +0000 (23:36 +0000)]
fix local makefiles to make it possible to rebuild binaries

10 years agostring tests (memcpy, memset)
Szabolcs Nagy [Thu, 1 Aug 2013 22:29:14 +0000 (22:29 +0000)]
string tests (memcpy, memset)

10 years agoadd crypt tests for md5crypt, bcrypt and shacrypt
Szabolcs Nagy [Thu, 1 Aug 2013 22:25:44 +0000 (22:25 +0000)]
add crypt tests for md5crypt, bcrypt and shacrypt

10 years agomath/scalb* max scale test cases
Szabolcs Nagy [Mon, 29 Jul 2013 17:51:43 +0000 (17:51 +0000)]
math/scalb* max scale test cases

10 years agoRUN_WRAP can be used to run tests in qemu
Szabolcs Nagy [Sun, 28 Jul 2013 15:08:47 +0000 (15:08 +0000)]
RUN_WRAP can be used to run tests in qemu

10 years agoupdate api tests with options
Szabolcs Nagy [Fri, 26 Jul 2013 23:34:07 +0000 (23:34 +0000)]
update api tests with options
so far ifdefs were only added for options that musl does not support

10 years agoadd options.h.in to generate posix option group defines
Szabolcs Nagy [Fri, 26 Jul 2013 18:05:41 +0000 (18:05 +0000)]
add options.h.in to generate posix option group defines

10 years agomake Makefile debugging less painful (turn off some builtin implicit rules)
Szabolcs Nagy [Fri, 26 Jul 2013 17:45:16 +0000 (17:45 +0000)]
make Makefile debugging less painful (turn off some builtin implicit rules)

10 years agoregression: rewind should clear error flag
Szabolcs Nagy [Fri, 26 Jul 2013 16:47:03 +0000 (16:47 +0000)]
regression: rewind should clear error flag

10 years agorename run to runtest so src/common/run make target does not collide
Szabolcs Nagy [Fri, 26 Jul 2013 16:45:35 +0000 (16:45 +0000)]
rename run to runtest so src/common/run make target does not collide

10 years agoMakefile fix: define RANLIB in makefile, more robust DIRS definition
Szabolcs Nagy [Fri, 26 Jul 2013 13:37:46 +0000 (13:37 +0000)]
Makefile fix: define RANLIB in makefile, more robust DIRS definition

10 years agoMakefile workaround for wildcard not doing glob properly
Szabolcs Nagy [Thu, 25 Jul 2013 06:45:14 +0000 (06:45 +0000)]
Makefile workaround for wildcard not doing glob properly

10 years agomakefile change: B variable is the build directory
Szabolcs Nagy [Wed, 24 Jul 2013 19:17:55 +0000 (19:17 +0000)]
makefile change: B variable is the build directory
(REPORT is created under $(B) so under src by default not at top level)

10 years agouse t_setrlim in the run command
Szabolcs Nagy [Wed, 24 Jul 2013 02:47:29 +0000 (02:47 +0000)]
use t_setrlim in the run command

10 years agomore comment to the malloc(0) test
Szabolcs Nagy [Wed, 24 Jul 2013 02:46:12 +0000 (02:46 +0000)]
more comment to the malloc(0) test

10 years agoMakefile changes, run target only reruns dynamic tests
Szabolcs Nagy [Wed, 24 Jul 2013 02:41:25 +0000 (02:41 +0000)]
Makefile changes, run target only reruns dynamic tests

10 years agomove config.mak to config.mak.def (so user can freely change it)
Szabolcs Nagy [Sun, 21 Jul 2013 21:50:16 +0000 (21:50 +0000)]
move config.mak to config.mak.def (so user can freely change it)

10 years agoadd run wrapper, move t_printf and t_status into separate translation unit
Szabolcs Nagy [Sun, 21 Jul 2013 21:44:41 +0000 (21:44 +0000)]
add run wrapper, move t_printf and t_status into separate translation unit

10 years agoadd some CFLAGS to prevent false warnings
Szabolcs Nagy [Sat, 20 Jul 2013 22:19:14 +0000 (22:19 +0000)]
add some CFLAGS to prevent false warnings
(config.mak should not be under version control it will be fixed
when the build system stabilizes)

10 years agofix fwscanf test (don't use wide and byte io in the same FILE)
Szabolcs Nagy [Sat, 20 Jul 2013 22:17:26 +0000 (22:17 +0000)]
fix fwscanf test (don't use wide and byte io in the same FILE)

10 years agofix parallel build of ipc tests (for make -jN)
Szabolcs Nagy [Sat, 20 Jul 2013 21:11:08 +0000 (21:11 +0000)]
fix parallel build of ipc tests (for make -jN)

10 years agofix t_fdfill so it does not use much kernel side resources
Szabolcs Nagy [Sat, 20 Jul 2013 21:05:07 +0000 (21:05 +0000)]
fix t_fdfill so it does not use much kernel side resources

10 years agofix: LIBS have libtest.a dependency as well
Szabolcs Nagy [Sat, 20 Jul 2013 18:11:09 +0000 (18:11 +0000)]
fix: LIBS have libtest.a dependency as well

10 years agoadd feature test macros to non-c99 math tests
Szabolcs Nagy [Sat, 20 Jul 2013 18:00:42 +0000 (18:00 +0000)]
add feature test macros to non-c99 math tests

10 years agoremove old functional/test.h
Szabolcs Nagy [Sat, 20 Jul 2013 16:15:40 +0000 (16:15 +0000)]
remove old functional/test.h

10 years agoremove old math/util code (already moved to common/)
Szabolcs Nagy [Sat, 20 Jul 2013 16:07:06 +0000 (16:07 +0000)]
remove old math/util code (already moved to common/)

10 years agonew test system
Szabolcs Nagy [Sat, 20 Jul 2013 15:02:37 +0000 (15:02 +0000)]
new test system

10 years agoadd the BUILD variable to the makefiles to control the build root
Szabolcs Nagy [Mon, 8 Jul 2013 13:05:12 +0000 (13:05 +0000)]
add the BUILD variable to the makefiles to control the build root

10 years agoreadme update
Szabolcs Nagy [Mon, 8 Jul 2013 13:04:50 +0000 (13:04 +0000)]
readme update

10 years agosetjmp clean up
Szabolcs Nagy [Mon, 8 Jul 2013 10:34:14 +0000 (10:34 +0000)]
setjmp clean up

10 years agosplit pthread test into several files
Szabolcs Nagy [Mon, 8 Jul 2013 09:50:16 +0000 (09:50 +0000)]
split pthread test into several files

10 years agosimplify test.h
Szabolcs Nagy [Sat, 6 Jul 2013 16:23:34 +0000 (16:23 +0000)]
simplify test.h

10 years agofix parens in test macros
Szabolcs Nagy [Sat, 6 Jul 2013 10:47:10 +0000 (10:47 +0000)]
fix parens in test macros

10 years agoadd new tests from libc-testsuit (fcntl, f[w]scanf, setjmp, socket, stat)
Szabolcs Nagy [Fri, 5 Jul 2013 22:12:13 +0000 (22:12 +0000)]
add new tests from libc-testsuit (fcntl, f[w]scanf, setjmp, socket, stat)

10 years agoMakefile comment about the LDLIBS+= workaround
Szabolcs Nagy [Fri, 5 Jul 2013 20:32:02 +0000 (20:32 +0000)]
Makefile comment about the LDLIBS+= workaround

10 years agoMakefile clean up and static linking support
Szabolcs Nagy [Fri, 5 Jul 2013 20:20:54 +0000 (20:20 +0000)]
Makefile clean up and static linking support

10 years agoqsort: add extensive tests for short arrays
Szabolcs Nagy [Fri, 5 Jul 2013 14:53:57 +0000 (14:53 +0000)]
qsort: add extensive tests for short arrays

10 years agofix warnings, no stdio buffering in test error messages
Szabolcs Nagy [Fri, 5 Jul 2013 13:30:19 +0000 (13:30 +0000)]
fix warnings, no stdio buffering in test error messages

10 years agorename
Szabolcs Nagy [Fri, 5 Jul 2013 07:39:28 +0000 (07:39 +0000)]
rename

10 years agomath: add readme about ulp check tool
Szabolcs Nagy [Wed, 3 Jul 2013 20:08:26 +0000 (20:08 +0000)]
math: add readme about ulp check tool

10 years agomath: cleaner makefile for the test case generator
Szabolcs Nagy [Wed, 3 Jul 2013 20:06:38 +0000 (20:06 +0000)]
math: cleaner makefile for the test case generator

10 years agoremove obsolete README comment
Szabolcs Nagy [Wed, 3 Jul 2013 19:20:35 +0000 (19:20 +0000)]
remove obsolete README comment

10 years agomath: fix cr check, stricter except check
Szabolcs Nagy [Wed, 3 Jul 2013 19:04:08 +0000 (19:04 +0000)]
math: fix cr check, stricter except check

10 years agoapi: use SS and PS options properly in sched.c
Szabolcs Nagy [Sat, 29 Jun 2013 07:30:06 +0000 (07:30 +0000)]
api: use SS and PS options properly in sched.c

10 years agominor cleanups
Szabolcs Nagy [Fri, 28 Jun 2013 20:23:26 +0000 (20:23 +0000)]
minor cleanups
* timer_t is not necessarily a numeric type
* pthread_cleanup_* may not be defined as function
* use #ifdef instead of #if when possible

10 years agogen tools: add tox
Szabolcs Nagy [Fri, 24 May 2013 15:31:25 +0000 (15:31 +0000)]
gen tools: add tox

10 years agomath tests: fma underflow cases
Szabolcs Nagy [Sun, 19 May 2013 17:28:21 +0000 (17:28 +0000)]
math tests: fma underflow cases

10 years agofix broken fma tests (due to mpfr bugs)
Szabolcs Nagy [Sun, 19 May 2013 00:56:01 +0000 (00:56 +0000)]
fix broken fma tests (due to mpfr bugs)

10 years agoadding fma tests and various hard cases for bessel and erfc
Szabolcs Nagy [Sat, 18 May 2013 16:16:58 +0000 (16:16 +0000)]
adding fma tests and various hard cases for bessel and erfc

11 years agogeneral: simple tgmath test
Szabolcs Nagy [Sat, 15 Dec 2012 09:52:15 +0000 (10:52 +0100)]
general: simple tgmath test

11 years agomath: fix long double ulperror calculation
Szabolcs Nagy [Fri, 14 Dec 2012 17:40:44 +0000 (18:40 +0100)]
math: fix long double ulperror calculation

11 years agomath: add random float generator to gen, make check work for ulp tests
Szabolcs Nagy [Fri, 14 Dec 2012 17:39:30 +0000 (18:39 +0100)]
math: add random float generator to gen, make check work for ulp tests

11 years agomath: new testcases (acos, asin, atan, expl, lgamma, tgamma)
Szabolcs Nagy [Fri, 14 Dec 2012 17:38:05 +0000 (18:38 +0100)]
math: new testcases (acos, asin, atan, expl, lgamma, tgamma)

11 years agomath: logb needs to be correctly rounded
Szabolcs Nagy [Sat, 8 Dec 2012 21:04:44 +0000 (22:04 +0100)]
math: logb needs to be correctly rounded

11 years agomath: regenerate all math tests
Szabolcs Nagy [Sat, 24 Nov 2012 14:58:55 +0000 (15:58 +0100)]
math: regenerate all math tests

gen used exp range limitation to get ieee semantics but
mpfr seems to have problems with it (eg gamma(next(-180))
incorrectly underflows) so different strategy is used:
use full exp range and only narrow it before converting
the result

now the error term uses nearest rounding and sign difference
is treated as inf ulp error during tests

added helper tools to convert between float formats

11 years agomath: add fenv test and new 'add' function in gen
Szabolcs Nagy [Sun, 18 Nov 2012 21:33:27 +0000 (22:33 +0100)]
math: add fenv test and new 'add' function in gen

11 years agomath: fix makefile so .o files are kept
Szabolcs Nagy [Sun, 18 Nov 2012 21:32:45 +0000 (22:32 +0100)]
math: fix makefile so .o files are kept

11 years agomath: add test vectors for exp functions
Szabolcs Nagy [Sun, 18 Nov 2012 21:31:17 +0000 (22:31 +0100)]
math: add test vectors for exp functions

11 years agomath: remove float-store flag, add exp2 and asinhl tests
Szabolcs Nagy [Sat, 17 Nov 2012 11:17:45 +0000 (12:17 +0100)]
math: remove float-store flag, add exp2 and asinhl tests

11 years agomath: fix nexttoward and nexttowardf tests
Szabolcs Nagy [Tue, 13 Nov 2012 10:02:55 +0000 (11:02 +0100)]
math: fix nexttoward and nexttowardf tests

11 years agomath: fix the type of the return value
Szabolcs Nagy [Tue, 13 Nov 2012 09:16:00 +0000 (10:16 +0100)]
math: fix the type of the return value

11 years agomath: fix frexp (don't check iptr when it's not specified)
Szabolcs Nagy [Mon, 12 Nov 2012 21:36:54 +0000 (22:36 +0100)]
math: fix frexp (don't check iptr when it's not specified)

11 years agomath: fix some invalid checks (remquo, lrint, lround, y0, y1, yn)
Szabolcs Nagy [Mon, 12 Nov 2012 21:00:52 +0000 (22:00 +0100)]
math: fix some invalid checks (remquo, lrint, lround, y0, y1, yn)

11 years agomath: in lgamma* only check signgam when it's specified
Szabolcs Nagy [Mon, 12 Nov 2012 20:06:43 +0000 (21:06 +0100)]
math: in lgamma* only check signgam when it's specified

11 years agomath/gen: fix fma fenv flags on nan
Szabolcs Nagy [Mon, 12 Nov 2012 19:49:27 +0000 (20:49 +0100)]
math/gen: fix fma fenv flags on nan

11 years agomath: add special case test vectors
Szabolcs Nagy [Mon, 12 Nov 2012 18:46:40 +0000 (19:46 +0100)]
math: add special case test vectors

11 years agomath/gen: fix ilogb, logb and modf in mp, change integer print fmt
Szabolcs Nagy [Sun, 11 Nov 2012 21:53:47 +0000 (22:53 +0100)]
math/gen: fix ilogb, logb and modf in mp, change integer print fmt

11 years agoapi: add stdbool and stddef
Szabolcs Nagy [Sat, 3 Nov 2012 20:51:05 +0000 (21:51 +0100)]
api: add stdbool and stddef

11 years agomath: ldexp, modf, nearbyint, scalb are correctly rounded
Szabolcs Nagy [Thu, 1 Nov 2012 13:59:36 +0000 (14:59 +0100)]
math: ldexp, modf, nearbyint, scalb are correctly rounded

11 years agomath: fdim is correctly rounded
Szabolcs Nagy [Thu, 1 Nov 2012 13:52:04 +0000 (14:52 +0100)]
math: fdim is correctly rounded

11 years agomath: brief readme
Szabolcs Nagy [Thu, 1 Nov 2012 13:34:44 +0000 (14:34 +0100)]
math: brief readme

11 years agomath: fpclassify test
Szabolcs Nagy [Thu, 1 Nov 2012 13:32:30 +0000 (14:32 +0100)]
math: fpclassify test

11 years agogeneral: add sysv ipc shm test, fix ipc_msg and update sem test
Szabolcs Nagy [Sun, 28 Oct 2012 18:20:59 +0000 (19:20 +0100)]
general: add sysv ipc shm test, fix ipc_msg and update sem test

11 years agogeneral: update the semaphore test
Szabolcs Nagy [Sun, 28 Oct 2012 02:00:01 +0000 (03:00 +0100)]
general: update the semaphore test

11 years agogeneral: fix snprintf and swprintf format tests
Szabolcs Nagy [Fri, 26 Oct 2012 23:32:16 +0000 (01:32 +0200)]
general: fix snprintf and swprintf format tests

11 years agomath: do correctly rounded checks where it's appropriate
Szabolcs Nagy [Thu, 25 Oct 2012 20:56:48 +0000 (22:56 +0200)]
math: do correctly rounded checks where it's appropriate

11 years agogeneral: simple sysv ipc sem test
Szabolcs Nagy [Wed, 24 Oct 2012 00:11:03 +0000 (02:11 +0200)]
general: simple sysv ipc sem test

11 years agoapi: add run target
nsz [Mon, 22 Oct 2012 19:13:19 +0000 (21:13 +0200)]
api: add run target

11 years agofix a printf format in ipc_msg
nsz [Mon, 22 Oct 2012 19:11:10 +0000 (21:11 +0200)]
fix a printf format in ipc_msg

11 years agogeneral: add memmem and strstr tests
nsz [Mon, 22 Oct 2012 19:03:55 +0000 (21:03 +0200)]
general: add memmem and strstr tests

11 years agocleanup in ipc_msg test, update some string tests
nsz [Mon, 22 Oct 2012 18:25:17 +0000 (20:25 +0200)]
cleanup in ipc_msg test, update some string tests

11 years agogeneral: don't stop on build failure
nsz [Mon, 22 Oct 2012 18:17:07 +0000 (20:17 +0200)]
general: don't stop on build failure

11 years agogeneral: add ipc_msg test
nsz [Mon, 22 Oct 2012 18:08:10 +0000 (20:08 +0200)]
general: add ipc_msg test

11 years agoapi: use macro for fmtmsg and ndbm ifdef
nsz [Mon, 22 Oct 2012 17:06:33 +0000 (19:06 +0200)]
api: use macro for fmtmsg and ndbm ifdef

11 years agoapi: declarative makefile
nsz [Mon, 22 Oct 2012 17:00:00 +0000 (19:00 +0200)]
api: declarative makefile

11 years agoreorganize makefile
nsz [Mon, 22 Oct 2012 16:31:00 +0000 (18:31 +0200)]
reorganize makefile

11 years agoapi: redirect make errors to stdout
nsz [Mon, 22 Oct 2012 16:28:50 +0000 (18:28 +0200)]
api: redirect make errors to stdout

11 years agoapi: ifdef out fmtmsg.c and ndbm.c, fix stupid gcc messages
nsz [Mon, 22 Oct 2012 16:26:45 +0000 (18:26 +0200)]
api: ifdef out fmtmsg.c and ndbm.c, fix stupid gcc messages

11 years agoput everything back to one directory
nsz [Sun, 21 Oct 2012 20:03:11 +0000 (22:03 +0200)]
put everything back to one directory

11 years agoapi: ifdef out some posix options
nsz [Sun, 21 Oct 2012 12:22:15 +0000 (14:22 +0200)]
api: ifdef out some posix options

11 years agoapi: fix unistd.h
nsz [Sat, 20 Oct 2012 21:36:53 +0000 (23:36 +0200)]
api: fix unistd.h

11 years agoapi: fix some prototype checks
nsz [Sat, 20 Oct 2012 21:23:24 +0000 (23:23 +0200)]
api: fix some prototype checks

11 years agoapi: shorten function checks (and put each into a different scope)
nsz [Sat, 20 Oct 2012 21:20:02 +0000 (23:20 +0200)]
api: shorten function checks (and put each into a different scope)

11 years agoapi: add remaining functions
nsz [Sat, 20 Oct 2012 20:57:06 +0000 (22:57 +0200)]
api: add remaining functions

11 years agoapi: add stdarg .. sys/uio
nsz [Fri, 19 Oct 2012 22:18:26 +0000 (00:18 +0200)]
api: add stdarg .. sys/uio

11 years agoapi: add spawn, don't include headers into function scope
nsz [Tue, 16 Oct 2012 22:27:02 +0000 (00:27 +0200)]
api: add spawn, don't include headers into function scope

11 years agoapi: fix limits.c
nsz [Sun, 14 Oct 2012 22:57:17 +0000 (00:57 +0200)]
api: fix limits.c

11 years agoapi: remove obsolete xsi functions from ctype, fix typo in netinet_in
nsz [Sun, 14 Oct 2012 21:01:25 +0000 (23:01 +0200)]
api: remove obsolete xsi functions from ctype, fix typo in netinet_in

11 years agoapi: add sched.c .. signal.c
nsz [Sun, 14 Oct 2012 20:49:47 +0000 (22:49 +0200)]
api: add sched.c .. signal.c

11 years agoapi: add monetary.c .. regex.c
nsz [Sun, 14 Oct 2012 19:27:03 +0000 (21:27 +0200)]
api: add monetary.c .. regex.c