summaryrefslogtreecommitdiff
path: root/test/API/Makefile.in
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/API/Makefile.in
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/API/Makefile.in')
-rw-r--r--test/API/Makefile.in26
1 files changed, 26 insertions, 0 deletions
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)"