diff options
author | Austin Foxley <austinf@cetoncorp.com> | 2010-04-14 11:08:37 -0700 |
---|---|---|
committer | Austin Foxley <austinf@cetoncorp.com> | 2010-04-14 11:08:44 -0700 |
commit | e035abf89fbe11a88a26372f1695c768aff7d9e1 (patch) | |
tree | 5ea3b4a66e223ede91ad4073bab7081afbfd560e /test | |
parent | 9ed510ad034f9327e7e032d2c6550bfb1f750eb9 (diff) | |
parent | 718dcdc32bc831b2c141b020124501515afb9adc (diff) |
Merge commit 'origin/master' into nptl
Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
Diffstat (limited to 'test')
122 files changed, 1384 insertions, 0 deletions
diff --git a/test/API/Makefile b/test/API/Makefile new file mode 100644 index 000000000..458d6c53f --- /dev/null +++ b/test/API/Makefile @@ -0,0 +1,7 @@ +# uClibc API tests +# Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball. + +top_builddir=../../ +include ../Rules.mak +-include Makefile.in +include ../Test.mak diff --git a/test/API/Makefile.in b/test/API/Makefile.in new file mode 100644 index 000000000..9e7cfdf57 --- /dev/null +++ b/test/API/Makefile.in @@ -0,0 +1,26 @@ +# uClibc API tests +# Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball. + +SHELL_TESTS := shell_tst-API +run: $(SHELL_TESTS) + +define get_codes + $(subst .,,$(sort $(suffix $(subst -,.,$(foreach x,$(1),$(if $(findstring -,$(x)),$(x),)))))) +endef +sym_files = $(patsubst %.syms,%,$(wildcard *.syms)) +stds = $(patsubst .%,%,$(sort $(suffix $(sym_files)))) +tests=$(foreach s,$(stds),$(patsubst %.$(s),%,$(sym_files))) +codes=$(call get_codes,$(tests)) + +shell_tst-API: uclibc_out=$(patsubst shell_%,%,$@).out +shell_tst-API: glibc_out=$(patsubst shell_%,%_glibc,$@).out +shell_tst-API: + @exec echo "DISABLED for now, needs improvement" +shell_tst-API_DISABLED: + $(showtest) + $(Q)top_builddir=$(top_builddir) AWK=$(AWK) \ + uclibc_out=$(uclibc_out) glibc_out=$(glibc_out) \ + $(SHELL) \ + $(patsubst shell_%,%.sh,$@) $(stds) "$(tests)" + $(do_showdiff) $(glibc_out) $(uclibc_out) ; \ + exec diff -u "$(glibc_out)" "$(uclibc_out)" diff --git a/test/API/aio.SUSv4.syms b/test/API/aio.SUSv4.syms new file mode 100644 index 000000000..c7d13e09c --- /dev/null +++ b/test/API/aio.SUSv4.syms @@ -0,0 +1,8 @@ +aio_cancel +aio_error +aio_fsync +aio_read +aio_return +aio_suspend +aio_write +lio_listio diff --git a/test/API/arpa_inet.SUSv4.syms b/test/API/arpa_inet.SUSv4.syms new file mode 100644 index 000000000..e61cc9f76 --- /dev/null +++ b/test/API/arpa_inet.SUSv4.syms @@ -0,0 +1,8 @@ +htonl +htons +ntohl +ntohs +inet_addr +inet_ntoa +inet_ntop +inet_pton diff --git a/test/API/complex.SUSv4.syms b/test/API/complex.SUSv4.syms new file mode 100644 index 000000000..ce7be69c8 --- /dev/null +++ b/test/API/complex.SUSv4.syms @@ -0,0 +1,66 @@ +cabs +cabsf +cabsl +cacos +cacosf +cacosh +cacoshf +cacoshl +cacosl +carg +cargf +cargl +casin +casinf +casinh +casinhf +casinhl +casinl +catan +catanf +catanh +catanhf +catanhl +catanl +ccos +ccosf +ccosh +ccos |