summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2010-04-13 16:14:14 +0200
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2010-04-13 16:35:41 +0200
commitd61066fcfe7f00843c4660182ea38ba3a5e41803 (patch)
tree1150d6abdf8943d3da6b3b8afcd8f7affb5a109d /test
parente90c33f951efc032ca23f48326343a83c0b54b10 (diff)
test: add API test
part1; Needs improvement: Think about a sensible way to map feature sets to the mandated syms. Our LEGACY stuff maps to OB, OBXSI for example. A "normal" config should satisfy the BASE (i.e. $foo.SUSv4.syms) Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Diffstat (limited to 'test')
-rw-r--r--test/API/Makefile7
-rw-r--r--test/API/Makefile.in26
-rw-r--r--test/API/aio.SUSv4.syms8
-rw-r--r--test/API/arpa_inet.SUSv4.syms8
-rw-r--r--test/API/complex.SUSv4.syms66
-rw-r--r--test/API/ctype-CX.SUSv4.syms14
-rw-r--r--test/API/ctype-OBXSI.SUSv4.syms2
-rw-r--r--test/API/ctype.SUSv4.syms14
-rw-r--r--test/API/dirent-XSI.SUSv4.syms2
-rw-r--r--test/API/dirent.SUSv4.syms9
-rw-r--r--test/API/dlfcn.SUSv4.syms4
-rw-r--r--test/API/fcntl-ADV.SUSv4.syms2
-rw-r--r--test/API/fcntl.SUSv4.syms4
-rw-r--r--test/API/fenv.SUSv4.syms11
-rw-r--r--test/API/ftw-OB.SUSv4.syms1
-rw-r--r--test/API/ftw.SUSv4.syms1
-rw-r--r--test/API/glob.SUSv4.syms2
-rw-r--r--test/API/grp-XSI.SUSv4.syms1
-rw-r--r--test/API/grp.SUSv4.syms6
-rwxr-xr-xtest/API/html2input.sh119
-rw-r--r--test/API/iconv.SUSv4.syms3
-rw-r--r--test/API/inttypes.SUSv4.syms6
-rw-r--r--test/API/libgen.SUSv4.syms2
-rw-r--r--test/API/locale-CX.SUSv4.syms4
-rw-r--r--test/API/locale.SUSv4.syms2
-rw-r--r--test/API/math-XSI.SUSv4.syms6
-rw-r--r--test/API/math.SUSv4.syms171
-rw-r--r--test/API/monetary.SUSv4.syms2
-rw-r--r--test/API/mqueue.SUSv4.syms10
-rw-r--r--test/API/ndbm.SUSv4.syms9
-rw-r--r--test/API/net_if.SUSv4.syms4
-rw-r--r--test/API/netdb.SUSv4.syms22
-rw-r--r--test/API/nl_types.SUSv4.syms3
-rw-r--r--test/API/pthread-MC1.SUSv4.syms2
-rw-r--r--test/API/pthread-OBXSI.SUSv4.syms2
-rw-r--r--test/API/pthread-RPP|TPP.SUSv4.syms4
-rw-r--r--test/API/pthread-TCT.SUSv4.syms1
-rw-r--r--test/API/pthread-TPS.SUSv4.syms9
-rw-r--r--test/API/pthread-TSATSS.SUSv4.syms2
-rw-r--r--test/API/pthread-TSH.SUSv4.syms8
-rw-r--r--test/API/pthread-TSS.SUSv4.syms2
-rw-r--r--test/API/pthread.SUSv4.syms70
-rw-r--r--test/API/pwd-XSI.SUSv4.syms3
-rw-r--r--test/API/pwd.SUSv4.syms4
-rw-r--r--test/API/regex.SUSv4.syms4
-rw-r--r--test/API/sched-PS.SUSv4.syms4
-rw-r--r--test/API/sched-PS|TPS.SUSv4.syms3
-rw-r--r--test/API/sched.SUSv4.syms1
-rw-r--r--test/API/search.SUSv4.syms11
-rw-r--r--test/API/semaphore.SUSv4.syms10
-rw-r--r--test/API/separate.awk48
-rw-r--r--test/API/setjmp-CX.SUSv4.syms1
-rw-r--r--test/API/setjmp-OBXSI.SUSv4.syms1
-rw-r--r--test/API/setjmp.SUSv4.syms1
-rw-r--r--test/API/signal-CX.SUSv4.syms18
-rw-r--r--test/API/signal-OBXSI.SUSv4.syms6
-rw-r--r--test/API/signal-XSI.SUSv4.syms2
-rw-r--r--test/API/signal.SUSv4.syms2
-rw-r--r--test/API/spawn-PS.SUSv4.syms4
-rw-r--r--test/API/spawn.SUSv4.syms17
-rw-r--r--test/API/stdio-CX.SUSv4.syms20
-rw-r--r--test/API/stdio-OB.SUSv4.syms2
-rw-r--r--test/API/stdio-OBXSI.SUSv4.syms1
-rw-r--r--test/API/stdio.SUSv4.syms44
-rw-r--r--test/API/stdlib-ADV.SUSv4.syms1
-rw-r--r--test/API/stdlib-CX.SUSv4.syms4
-rw-r--r--test/API/stdlib-OBCX.SUSv4.syms1
-rw-r--r--test/API/stdlib-XSI.SUSv4.syms22
-rw-r--r--test/API/stdlib.SUSv4.syms37
-rw-r--r--test/API/string-CX.SUSv4.syms11
-rw-r--r--test/API/string-XSI.SUSv4.syms1
-rw-r--r--test/API/string.SUSv4.syms22
-rw-r--r--test/API/strings-XSI.SUSv4.syms1
-rw-r--r--test/API/strings.SUSv4.syms4
-rw-r--r--test/API/stropts.SUSv4.syms8
-rw-r--r--test/API/sys_mman-ADV.SUSv4.syms1
-rw-r--r--test/API/sys_mman-ML.SUSv4.syms2
-rw-r--r--test/API/sys_mman-MLR.SUSv4.syms2
-rw-r--r--test/API/sys_mman-SHM.SUSv4.syms2
-rw-r--r--test/API/sys_mman-TYM.SUSv4.syms3
-rw-r--r--test/API/sys_mman-XSI|SIO.SUSv4.syms1
-rw-r--r--test/API/sys_mman.SUSv4.syms3
-rw-r--r--test/API/sys_msg.SUSv4.syms4
-rw-r--r--test/API/sys_resource.SUSv4.syms5
-rw-r--r--test/API/sys_select.SUSv4.syms6
-rw-r--r--test/API/sys_sem.SUSv4.syms3
-rw-r--r--test/API/sys_shm.SUSv4.syms4
-rw-r--r--test/API/sys_socket.SUSv4.syms18
-rw-r--r--test/API/sys_stat-XSI.SUSv4.syms2
-rw-r--r--test/API/sys_stat.SUSv4.syms14
-rw-r--r--test/API/sys_statvfs.SUSv4.syms2
-rw-r--r--test/API/sys_time-OB.SUSv4.syms3
-rw-r--r--test/API/sys_time.SUSv4.syms2
-rw-r--r--test/API/sys_uio.SUSv4.syms2
-rw-r--r--test/API/sys_wait.SUSv4.syms3
-rw-r--r--test/API/syslog.SUSv4.syms4
-rw-r--r--test/API/termios.SUSv4.syms11
-rw-r--r--test/API/time-CPT.SUSv4.syms1
-rw-r--r--test/API/time-CX.SUSv4.syms15
-rw-r--r--test/API/time-OB.SUSv4.syms2
-rw-r--r--test/API/time-OBCX.SUSv4.syms2
-rw-r--r--test/API/time-XSI.SUSv4.syms4
-rw-r--r--test/API/time.SUSv4.syms7
-rw-r--r--test/API/trace-TEF.SUSv4.syms8
-rw-r--r--test/API/trace-TRI.SUSv4.syms2
-rw-r--r--test/API/trace-TRL.SUSv4.syms9
-rw-r--r--test/API/trace.SUSv4.syms31
-rw-r--r--test/API/tst-API.sh16
-rw-r--r--test/API/unistd-CX.SUSv4.syms1
-rw-r--r--test/API/unistd-FSC.SUSv4.syms1
-rw-r--r--test/API/unistd-OBXSI.SUSv4.syms1
-rw-r--r--test/API/unistd-SIO.SUSv4.syms1
-rw-r--r--test/API/unistd-XSI.SUSv4.syms9
-rw-r--r--test/API/unistd.SUSv4.syms74
-rw-r--r--test/API/utmpx.SUSv4.syms6
-rw-r--r--test/API/wchar-CX.SUSv4.syms13
-rw-r--r--test/API/wchar-OBXSI.SUSv4.syms15
-rw-r--r--test/API/wchar-XSI.SUSv4.syms2
-rw-r--r--test/API/wchar.SUSv4.syms59
-rw-r--r--test/API/wctype-CX.SUSv4.syms18
-rw-r--r--test/API/wctype.SUSv4.syms18
-rw-r--r--test/API/wordexp.SUSv4.syms2
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
+cco