svn commit: [25674] trunk/uClibc/test: args assert build crypt ctype dlopen in etc...

carmelo at uclibc.org carmelo at uclibc.org
Mon Mar 16 13:36:40 UTC 2009


Author: carmelo
Date: 2009-03-16 13:36:39 +0000 (Mon, 16 Mar 2009)
New Revision: 25674

Log:
Fixed makefiles inclusion flow to pass actual configuration variable values.
Test build system modified to be similar to uClibc one: 
 * test custom logic moved from Makefile to a new Makefile.in (to be included 
   by Makefile). 
 * Makefile same for all tests and just used for including all other needed 
   makefiles. 

Signed-off-by: Salvatore Cro <salvatore.cro at st.com>
Signed-off-by: Carmelo Amoroso <carmelo.amoroso at st.com>


Added:
   trunk/uClibc/test/args/Makefile.in
   trunk/uClibc/test/assert/Makefile.in
   trunk/uClibc/test/crypt/Makefile.in
   trunk/uClibc/test/ctype/Makefile.in
   trunk/uClibc/test/dlopen/Makefile.in
   trunk/uClibc/test/locale-mbwc/Makefile.in
   trunk/uClibc/test/locale/Makefile.in
   trunk/uClibc/test/malloc/Makefile.in
   trunk/uClibc/test/math/Makefile.in
   trunk/uClibc/test/misc/Makefile.in
   trunk/uClibc/test/pthread/Makefile.in
   trunk/uClibc/test/pwd_grp/Makefile.in
   trunk/uClibc/test/rpc/Makefile.in
   trunk/uClibc/test/signal/Makefile.in
   trunk/uClibc/test/silly/Makefile.in
   trunk/uClibc/test/stat/Makefile.in
   trunk/uClibc/test/stdio/Makefile.in
   trunk/uClibc/test/stdlib/Makefile.in
   trunk/uClibc/test/string/Makefile.in
   trunk/uClibc/test/time/Makefile.in
   trunk/uClibc/test/unistd/Makefile.in

Modified:
   trunk/uClibc/test/Makefile
   trunk/uClibc/test/README
   trunk/uClibc/test/Test.mak
   trunk/uClibc/test/args/Makefile
   trunk/uClibc/test/assert/Makefile
   trunk/uClibc/test/build/Makefile
   trunk/uClibc/test/crypt/Makefile
   trunk/uClibc/test/ctype/Makefile
   trunk/uClibc/test/dlopen/Makefile
   trunk/uClibc/test/inet/Makefile
   trunk/uClibc/test/locale-mbwc/Makefile
   trunk/uClibc/test/locale/Makefile
   trunk/uClibc/test/malloc/Makefile
   trunk/uClibc/test/math/Makefile
   trunk/uClibc/test/misc/Makefile
   trunk/uClibc/test/mmap/Makefile
   trunk/uClibc/test/pthread/Makefile
   trunk/uClibc/test/pwd_grp/Makefile
   trunk/uClibc/test/regex/Makefile
   trunk/uClibc/test/rpc/Makefile
   trunk/uClibc/test/setjmp/Makefile
   trunk/uClibc/test/signal/Makefile
   trunk/uClibc/test/silly/Makefile
   trunk/uClibc/test/stat/Makefile
   trunk/uClibc/test/stdio/Makefile
   trunk/uClibc/test/stdlib/Makefile
   trunk/uClibc/test/string/Makefile
   trunk/uClibc/test/termios/Makefile
   trunk/uClibc/test/time/Makefile
   trunk/uClibc/test/unistd/Makefile


Changeset:
Modified: trunk/uClibc/test/Makefile
===================================================================
--- trunk/uClibc/test/Makefile	2009-03-16 13:33:27 UTC (rev 25673)
+++ trunk/uClibc/test/Makefile	2009-03-16 13:36:39 UTC (rev 25674)
@@ -32,7 +32,7 @@
 ifneq ($(UCLIBC_HAS_LOCALE),y)
 	DIRS := $(filter-out locale,$(DIRS))
 endif
-ifeq ($(UCLIBC_HAS_CRYPT_STUB),y)
+ifneq ($(UCLIBC_HAS_CRYPT),y)
 	DIRS := $(filter-out crypt,$(DIRS))
 endif
 ifeq ($(HAS_NO_THREADS),y)

Modified: trunk/uClibc/test/README
===================================================================
--- trunk/uClibc/test/README	2009-03-16 13:33:27 UTC (rev 25673)
+++ trunk/uClibc/test/README	2009-03-16 13:36:39 UTC (rev 25674)
@@ -36,19 +36,23 @@
 ----------------
 
 The structure of this test system is:
- test/                 toplevel dir containing common test code
- test/Rules.mak        Common build code
- test/Test.mak         Runtime test make code
- test/subdir/          code specific to a subsystem is stored in a subdir
- test/subdir/Makefile  describe the tests to run
- test/subdir/*.c       the tests
+ test/                    toplevel dir containing common test code
+ test/Rules.mak           Common build code
+ test/Test.mak            Runtime test make code
+ test/subdir/             code specific to a subsystem is stored in a subdir
+ test/subdir/Makefile.in  describe the tests to run
+ test/subdir/Makefile     test entry point, includes needed upper-level
+                          makefiles plus Makefile.in
+ test/subdir/*.c          the tests
 
-Each subdir Makefile must include the toplevel Test.mak file.  Before doing so,
-you may define the TESTS and TESTS_DISABLED variables.  If you do not, TESTS
+Each subdir has a Makefile (same for any subdir) that must include in strict order :
+  - the upper-level Rules.mak file.
+  - the Makefile.in .
+  - the upper-level Test.mak file.
+Makefile.in may be used to define the TESTS and TESTS_DISABLED variables.  If you do not, TESTS
 is built automatically based upon all the .c files in the subdir.
 TESTS := foo
 TESTS_DISABLED := bar
-include ../Test.mak
 Each test must use a similar .c name; so the "foo" test needs a "foo.c".
 
 Additionally, the following options further control specific test behavior:

Modified: trunk/uClibc/test/Test.mak
===================================================================
--- trunk/uClibc/test/Test.mak	2009-03-16 13:33:27 UTC (rev 25673)
+++ trunk/uClibc/test/Test.mak	2009-03-16 13:36:39 UTC (rev 25674)
@@ -18,9 +18,6 @@
 $(error Sanity check: cannot have a test named "test.c")
 endif
 
-top_builddir = ../../
-include ../Rules.mak
-
 U_TARGETS := $(TESTS)
 G_TARGETS := $(patsubst %,%_glibc,$(U_TARGETS))
 

Modified: trunk/uClibc/test/args/Makefile
===================================================================
--- trunk/uClibc/test/args/Makefile	2009-03-16 13:33:27 UTC (rev 25673)
+++ trunk/uClibc/test/args/Makefile	2009-03-16 13:36:39 UTC (rev 25674)
@@ -1,11 +1,7 @@
 # uClibc args 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
-
-OPTS_arg_test = a b c d e f g h
-WRAPPER_arg_test = \
-	env -i \
-	ENVVAR=123 \
-	SOMETHING=sldajfasdf \
-	BLAHBLAH=" hi hi "

Added: trunk/uClibc/test/args/Makefile.in
===================================================================
--- trunk/uClibc/test/args/Makefile.in	                        (rev 0)
+++ trunk/uClibc/test/args/Makefile.in	2009-03-16 13:36:39 UTC (rev 25674)
@@ -0,0 +1,9 @@
+# uClibc args tests
+# Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+
+OPTS_arg_test = a b c d e f g h
+WRAPPER_arg_test = \
+	env -i \
+	ENVVAR=123 \
+	SOMETHING=sldajfasdf \
+	BLAHBLAH=" hi hi "

Modified: trunk/uClibc/test/assert/Makefile
===================================================================
--- trunk/uClibc/test/assert/Makefile	2009-03-16 13:33:27 UTC (rev 25673)
+++ trunk/uClibc/test/assert/Makefile	2009-03-16 13:36:39 UTC (rev 25674)
@@ -1,7 +1,7 @@
 # uClibc assert 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
-
-RET_assert     := 134
-WRAPPER_assert := trap ":" ABRT ;

Added: trunk/uClibc/test/assert/Makefile.in
===================================================================
--- trunk/uClibc/test/assert/Makefile.in	                        (rev 0)
+++ trunk/uClibc/test/assert/Makefile.in	2009-03-16 13:36:39 UTC (rev 25674)
@@ -0,0 +1,5 @@
+# uClibc assert tests
+# Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+
+RET_assert     := 134
+WRAPPER_assert := trap ":" ABRT ;

Modified: trunk/uClibc/test/build/Makefile
===================================================================
--- trunk/uClibc/test/build/Makefile	2009-03-16 13:33:27 UTC (rev 25673)
+++ trunk/uClibc/test/build/Makefile	2009-03-16 13:36:39 UTC (rev 25674)
@@ -1,4 +1,7 @@
 # uClibc build 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

Modified: trunk/uClibc/test/crypt/Makefile
===================================================================
--- trunk/uClibc/test/crypt/Makefile	2009-03-16 13:33:27 UTC (rev 25673)
+++ trunk/uClibc/test/crypt/Makefile	2009-03-16 13:36:39 UTC (rev 25674)
@@ -1,14 +1,7 @@
 # uClibc crypt tests
 # Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
 
-include ../../.config
-
-ifneq ($(UCLIBC_HAS_CRYPT),y)
-TESTS_DISABLED := $(patsubst %.c,%,$(wildcard *.c))
-endif
-
+top_builddir=../../
+include ../Rules.mak
+-include Makefile.in
 include ../Test.mak
-
-EXTRA_LDFLAGS := -lcrypt
-
-OPTS_crypt = < crypt.input

Added: trunk/uClibc/test/crypt/Makefile.in
===================================================================
--- trunk/uClibc/test/crypt/Makefile.in	                        (rev 0)
+++ trunk/uClibc/test/crypt/Makefile.in	2009-03-16 13:36:39 UTC (rev 25674)
@@ -0,0 +1,6 @@
+# uClibc crypt tests
+# Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+
+EXTRA_LDFLAGS := -lcrypt
+
+OPTS_crypt = < crypt.input

Modified: trunk/uClibc/test/ctype/Makefile
===================================================================
--- trunk/uClibc/test/ctype/Makefile	2009-03-16 13:33:27 UTC (rev 25673)
+++ trunk/uClibc/test/ctype/Makefile	2009-03-16 13:36:39 UTC (rev 25674)
@@ -1,6 +1,7 @@
 # uClibc ctype tests
 # Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
 
-TESTS := ctype
-
+top_builddir=../../
+include ../Rules.mak
+-include Makefile.in
 include ../Test.mak

Added: trunk/uClibc/test/ctype/Makefile.in
===================================================================
--- trunk/uClibc/test/ctype/Makefile.in	                        (rev 0)
+++ trunk/uClibc/test/ctype/Makefile.in	2009-03-16 13:36:39 UTC (rev 25674)
@@ -0,0 +1,4 @@
+# uClibc ctype tests
+# Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+
+TESTS := ctype

Modified: trunk/uClibc/test/dlopen/Makefile
===================================================================
--- trunk/uClibc/test/dlopen/Makefile	2009-03-16 13:33:27 UTC (rev 25673)
+++ trunk/uClibc/test/dlopen/Makefile	2009-03-16 13:36:39 UTC (rev 25674)
@@ -1,40 +1,7 @@
 # uClibc dlopen tests
 # Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
 
-# rules need a little love to work with glibc ...
-export UCLIBC_ONLY := 1
-
-TESTS := dltest dltest2 dlstatic test1 test2 test3 dlundef dlafk dladdr
-
+top_builddir=../../
+include ../Rules.mak
+-include Makefile.in
 include ../Test.mak
-
-CFLAGS_dltest    := -DLIBNAME="\"./libtest.so\""
-CFLAGS_dltest2   := -DLIBNAME="\"./libtest3.so\""
-
-LDFLAGS_dlstatic := -ldl
-LDFLAGS_dltest   := -ldl -lpthread
-LDFLAGS_dltest2  := -ldl -lpthread
-LDFLAGS_dlundef  := -ldl
-LDFLAGS_dlafk    := -ldl ./libafk.so -Wl,-rpath,.
-LDFLAGS_test1    := -ldl
-LDFLAGS_test2    := -ldl
-LDFLAGS_test3    := -ldl ./libtest1.so ./libtest2.so -Wl,-rpath,.
-LDFLAGS_dladdr   := -ldl
-
-DEBUG_LIBS := X
-WRAPPER := env $(DEBUG_LIBS)=all LD_LIBRARY_PATH="$$PWD:.:$(LD_LIBRARY_PATH)"
-
-dltest: libtest.so
-dltest2: libtest3.so
-dlstatic: libstatic.so
-dlundef: libundef.so
-dlafk: libafk.so
-libafk.so: libafk-temp.so
-LDFLAGS_libafk.so := ./libafk-temp.so -Wl,-rpath,.
-test1: libtest1.so
-test2: libtest1.so libtest2.so
-test3: libtest1.so libtest2.so
-libtest1.so: libtest2.so
-LDFLAGS_libtest1.so := ./libtest2.so -Wl,-rpath,.
-LDFLAGS_libtest2.so := -Wl,-rpath,.
-LDFLAGS_libtest3.so := -lpthread -Wl,-rpath,.

Added: trunk/uClibc/test/dlopen/Makefile.in
===================================================================
--- trunk/uClibc/test/dlopen/Makefile.in	                        (rev 0)
+++ trunk/uClibc/test/dlopen/Makefile.in	2009-03-16 13:36:39 UTC (rev 25674)
@@ -0,0 +1,38 @@
+# uClibc dlopen tests
+# Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+
+# rules need a little love to work with glibc ...
+export UCLIBC_ONLY := 1
+
+TESTS := dltest dltest2 dlstatic test1 test2 test3 dlundef dlafk dladdr
+
+CFLAGS_dltest    := -DLIBNAME="\"./libtest.so\""
+CFLAGS_dltest2   := -DLIBNAME="\"./libtest3.so\""
+
+LDFLAGS_dlstatic := -ldl
+LDFLAGS_dltest   := -ldl -lpthread
+LDFLAGS_dltest2  := -ldl -lpthread
+LDFLAGS_dlundef  := -ldl
+LDFLAGS_dlafk    := -ldl ./libafk.so -Wl,-rpath,.
+LDFLAGS_test1    := -ldl
+LDFLAGS_test2    := -ldl
+LDFLAGS_test3    := -ldl ./libtest1.so ./libtest2.so -Wl,-rpath,.
+LDFLAGS_dladdr   := -ldl
+
+DEBUG_LIBS := X
+WRAPPER := env $(DEBUG_LIBS)=all LD_LIBRARY_PATH="$$PWD:.:$(LD_LIBRARY_PATH)"
+
+dltest: libtest.so
+dltest2: libtest3.so
+dlstatic: libstatic.so
+dlundef: libundef.so
+dlafk: libafk.so
+libafk.so: libafk-temp.so
+LDFLAGS_libafk.so := ./libafk-temp.so -Wl,-rpath,.
+test1: libtest1.so
+test2: libtest1.so libtest2.so
+test3: libtest1.so libtest2.so
+libtest1.so: libtest2.so
+LDFLAGS_libtest1.so := ./libtest2.so -Wl,-rpath,.
+LDFLAGS_libtest2.so := -Wl,-rpath,.
+LDFLAGS_libtest3.so := -lpthread -Wl,-rpath,.

Modified: trunk/uClibc/test/inet/Makefile
===================================================================
--- trunk/uClibc/test/inet/Makefile	2009-03-16 13:33:27 UTC (rev 25673)
+++ trunk/uClibc/test/inet/Makefile	2009-03-16 13:36:39 UTC (rev 25674)
@@ -1,4 +1,7 @@
 # uClibc inet 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

Modified: trunk/uClibc/test/locale/Makefile
===================================================================
--- trunk/uClibc/test/locale/Makefile	2009-03-16 13:33:27 UTC (rev 25673)
+++ trunk/uClibc/test/locale/Makefile	2009-03-16 13:36:39 UTC (rev 25674)
@@ -1,31 +1,7 @@
 # uClibc locale tests
 # Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
-#	 tst_mbtowc tst_strcoll tst_strfmon tst_strxfrm    \
 
-TESTS := bug-iconv-trans bug-usesetlocale collate-test dump-ctype \
-	 gen-unicode-ctype show-ucs-data tst-ctype \
-	 tst-digits tst-fmon tst-langinfo tst-leaks tst-mbswcs1 \
-	 tst-mbswcs2 tst-mbswcs3 tst-mbswcs4 tst-mbswcs5 tst-mbswcs6 \
-	 tst_nl_langinfo tst-numeric tst-rpmatch tst-setlocale \
-	 tst-sscanf tst-strfmon1 tst-trans tst-wctype tst-xlocale1 \
-	 tst-xlocale2 xfrm-test
-
-
-# NOTE: For now disabled some tests that are known not build
-TESTS_DISABLED := tst-ctype tst-fmon tst-leaks tst-rpmatch tst-strfmon1
-
-ifneq ($(UCLIBC_HAS_XLOCALE),y)
-TESTS_DISABLED += bug-usesetlocale tst-xlocale1 tst-xlocale2 xfrm-test tst-C-locale
-endif
-
+top_builddir=../../
+include ../Rules.mak
+-include Makefile.in
 include ../Test.mak
-
-DODIFF_rint     := 1
-
-EXTRA_CFLAGS    := -D__USE_GNU -fno-builtin
-
-OPTS_dump-ctype = C
-OPTS_tst-ctype = < tst-ctype-de_DE.ISO-8859-1.in
-OPTS_tst-langinfo = < tst-langinfo.input
-
-EXTRA_DIRS := C

Added: trunk/uClibc/test/locale/Makefile.in
===================================================================
--- trunk/uClibc/test/locale/Makefile.in	                        (rev 0)
+++ trunk/uClibc/test/locale/Makefile.in	2009-03-16 13:36:39 UTC (rev 25674)
@@ -0,0 +1,29 @@
+# uClibc locale tests
+# Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+#	 tst_mbtowc tst_strcoll tst_strfmon tst_strxfrm    \
+
+TESTS := bug-iconv-trans bug-usesetlocale collate-test dump-ctype \
+	 gen-unicode-ctype show-ucs-data tst-ctype \
+	 tst-digits tst-fmon tst-langinfo tst-leaks tst-mbswcs1 \
+	 tst-mbswcs2 tst-mbswcs3 tst-mbswcs4 tst-mbswcs5 tst-mbswcs6 \
+	 tst_nl_langinfo tst-numeric tst-rpmatch tst-setlocale \
+	 tst-sscanf tst-strfmon1 tst-trans tst-wctype tst-xlocale1 \
+	 tst-xlocale2 xfrm-test
+
+
+# NOTE: For now disabled some tests that are known not build
+TESTS_DISABLED := tst-ctype tst-fmon tst-leaks tst-rpmatch tst-strfmon1
+
+ifneq ($(UCLIBC_HAS_XLOCALE),y)
+TESTS_DISABLED += bug-usesetlocale tst-xlocale1 tst-xlocale2 xfrm-test tst-C-locale
+endif
+
+DODIFF_rint     := 1
+
+EXTRA_CFLAGS    := -D__USE_GNU -fno-builtin
+
+OPTS_dump-ctype = C
+OPTS_tst-ctype = < tst-ctype-de_DE.ISO-8859-1.in
+OPTS_tst-langinfo = < tst-langinfo.input
+
+EXTRA_DIRS := C

Modified: trunk/uClibc/test/locale-mbwc/Makefile
===================================================================
--- trunk/uClibc/test/locale-mbwc/Makefile	2009-03-16 13:33:27 UTC (rev 25673)
+++ trunk/uClibc/test/locale-mbwc/Makefile	2009-03-16 13:36:39 UTC (rev 25674)
@@ -1,29 +1,7 @@
 # uClibc locale tests
 # Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
-#	 tst_mbtowc tst_strcoll tst_strfmon tst_strxfrm    \
 
-TESTS := tst_iswalnum tst_iswalpha tst_iswcntrl          \
-	 tst_iswctype tst_iswdigit tst_iswgraph          \
-	 tst_iswlower tst_iswprint tst_iswpunct          \
-	 tst_iswspace tst_iswupper tst_iswxdigit         \
-	 tst_mblen tst_mbrlen tst_mbrtowc tst_mbsrtowcs  \
-	 tst_mbstowcs tst_mbtowc tst_strcoll tst_strxfrm \
-	 tst_swscanf tst_towctrans tst_towlower          \
-	 tst_towupper tst_wcrtomb tst_wcscat tst_wcschr  \
-	 tst_wcscmp tst_wcscoll tst_wcscpy tst_wcscspn   \
-	 tst_wcslen tst_wcsncat tst_wcsncmp tst_wcsncpy  \
-	 tst_wcspbrk tst_wcsrtombs tst_wcsspn tst_wcsstr \
-	 tst_wcstod tst_wcstok tst_wcstombs tst_wcswidth \
-	 tst_wcsxfrm tst_wctob tst_wctomb tst_wctrans    \
-	 tst_wctype tst_wcwidth tst_strfmon
-
-
-# NOTE: For now disabled tst_strfmon to avoid build failure.
-TESTS_DISABLED := tst_strfmon
-
+top_builddir=../../
+include ../Rules.mak
+-include Makefile.in
 include ../Test.mak
-
-DODIFF_rint     := 1
-
-EXTRA_CFLAGS    := -D__USE_GNU -fno-builtin
-

Added: trunk/uClibc/test/locale-mbwc/Makefile.in
===================================================================
--- trunk/uClibc/test/locale-mbwc/Makefile.in	                        (rev 0)
+++ trunk/uClibc/test/locale-mbwc/Makefile.in	2009-03-16 13:36:39 UTC (rev 25674)
@@ -0,0 +1,27 @@
+# uClibc locale tests
+# Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+#	 tst_mbtowc tst_strcoll tst_strfmon tst_strxfrm    \
+
+TESTS := tst_iswalnum tst_iswalpha tst_iswcntrl          \
+	 tst_iswctype tst_iswdigit tst_iswgraph          \
+	 tst_iswlower tst_iswprint tst_iswpunct          \
+	 tst_iswspace tst_iswupper tst_iswxdigit         \
+	 tst_mblen tst_mbrlen tst_mbrtowc tst_mbsrtowcs  \
+	 tst_mbstowcs tst_mbtowc tst_strcoll tst_strxfrm \
+	 tst_swscanf tst_towctrans tst_towlower          \
+	 tst_towupper tst_wcrtomb tst_wcscat tst_wcschr  \
+	 tst_wcscmp tst_wcscoll tst_wcscpy tst_wcscspn   \
+	 tst_wcslen tst_wcsncat tst_wcsncmp tst_wcsncpy  \
+	 tst_wcspbrk tst_wcsrtombs tst_wcsspn tst_wcsstr \
+	 tst_wcstod tst_wcstok tst_wcstombs tst_wcswidth \
+	 tst_wcsxfrm tst_wctob tst_wctomb tst_wctrans    \
+	 tst_wctype tst_wcwidth tst_strfmon
+
+
+# NOTE: For now disabled tst_strfmon to avoid build failure.
+TESTS_DISABLED := tst_strfmon
+
+DODIFF_rint     := 1
+
+EXTRA_CFLAGS    := -D__USE_GNU -fno-builtin
+

Modified: trunk/uClibc/test/malloc/Makefile
===================================================================
--- trunk/uClibc/test/malloc/Makefile	2009-03-16 13:33:27 UTC (rev 25673)
+++ trunk/uClibc/test/malloc/Makefile	2009-03-16 13:36:39 UTC (rev 25674)
@@ -1,6 +1,7 @@
 # uClibc malloc tests
 # Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
 
-TESTS_DISABLED := time_malloc
-
+top_builddir=../../
+include ../Rules.mak
+-include Makefile.in
 include ../Test.mak

Added: trunk/uClibc/test/malloc/Makefile.in
===================================================================
--- trunk/uClibc/test/malloc/Makefile.in	                        (rev 0)
+++ trunk/uClibc/test/malloc/Makefile.in	2009-03-16 13:36:39 UTC (rev 25674)
@@ -0,0 +1,4 @@
+# uClibc malloc tests
+# Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+
+TESTS_DISABLED := time_malloc

Modified: trunk/uClibc/test/math/Makefile
===================================================================
--- trunk/uClibc/test/math/Makefile	2009-03-16 13:33:27 UTC (rev 25673)
+++ trunk/uClibc/test/math/Makefile	2009-03-16 13:36:39 UTC (rev 25674)
@@ -1,30 +1,7 @@
 # uClibc math tests
 # Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
 
-include ../../.config
-
-TESTS := basic-test rint tst-definitions test-fpucw test-float test-ifloat test-double test-idouble
-ifeq ($(UCLIBC_HAS_LONG_DOUBLE_MATH),y)
-TESTS += test-ldouble test-ildoubl compile_test
-else
-CFLAGS_basic-test := -DNO_LONG_DOUBLE
-endif
-
+top_builddir=../../
+include ../Rules.mak
+-include Makefile.in
 include ../Test.mak
-
-DODIFF_rint     := 1
-
-# NOTE: For basic-test we must disable the floating point optimization.
-#       Only for sh architecture because in the other architecture are disabled.
-ifeq ($(TARGET_ARCH),sh)
-CFLAGS_basic-test += -mieee
-endif
-EXTRA_CFLAGS    := -fno-builtin
-EXTRA_LDFLAGS   := -lm
-
-PERL := /usr/bin/perl
-ulps-file := $(firstword $(wildcard $(config-sysdirs:%=$(..)%/libm-test-ulps)))
-libm-test.c: $(ulps-file) libm-test.inc gen-libm-test.pl
-	$(Q)$(PERL) ./gen-libm-test.pl -u $< ./libm-test.inc -o "." 2>&1 > /dev/null
-EXTRA_CLEAN := libm-test.c libm-test-ulps.h
-$(TARGETS): libm-test.c

Added: trunk/uClibc/test/math/Makefile.in
===================================================================
--- trunk/uClibc/test/math/Makefile.in	                        (rev 0)
+++ trunk/uClibc/test/math/Makefile.in	2009-03-16 13:36:39 UTC (rev 25674)
@@ -0,0 +1,27 @@
+# uClibc math tests
+# Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+
+TESTS := basic-test rint tst-definitions test-fpucw test-float test-ifloat test-double test-idouble
+ifeq ($(UCLIBC_HAS_LONG_DOUBLE_MATH),y)
+TESTS += test-ldouble test-ildoubl compile_test
+else
+CFLAGS_basic-test := -DNO_LONG_DOUBLE
+endif
+
+DODIFF_rint     := 1
+
+# NOTE: For basic-test we must disable the floating point optimization.
+#       Only for sh architecture because in the other architecture are disabled.
+ifeq ($(TARGET_ARCH),sh)
+CFLAGS_basic-test += -mieee
+endif
+EXTRA_CFLAGS    := -fno-builtin
+EXTRA_LDFLAGS   := -lm
+
+PERL := /usr/bin/perl
+ulps-file := $(firstword $(wildcard $(config-sysdirs:%=$(..)%/libm-test-ulps)))
+libm-test.c: $(ulps-file) libm-test.inc gen-libm-test.pl
+	$(Q)$(PERL) ./gen-libm-test.pl -u $< ./libm-test.inc -o "." 2>&1 > /dev/null
+EXTRA_CLEAN := libm-test.c libm-test-ulps.h
+TARGETS=libm-test.c
+

Modified: trunk/uClibc/test/misc/Makefile
===================================================================
--- trunk/uClibc/test/misc/Makefile	2009-03-16 13:33:27 UTC (rev 25673)
+++ trunk/uClibc/test/misc/Makefile	2009-03-16 13:36:39 UTC (rev 25674)
@@ -1,14 +1,7 @@
 # uClibc misc tests
 # Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
 
-TESTS_DISABLED := outb tst-fnmatch bug-glob1 tst-gnuglob
-
+top_builddir=../../
+include ../Rules.mak
+-include Makefile.in
 include ../Test.mak
-
-CFLAGS_dirent64 := -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64
-
-DODIFF_dirent    := 1
-DODIFF_dirent64  := 1
-
-OPTS_bug-glob1   := $(PWD)
-OPTS_tst-fnmatch := < tst-fnmatch.input

Added: trunk/uClibc/test/misc/Makefile.in
===================================================================
--- trunk/uClibc/test/misc/Makefile.in	                        (rev 0)
+++ trunk/uClibc/test/misc/Makefile.in	2009-03-16 13:36:39 UTC (rev 25674)
@@ -0,0 +1,12 @@
+# uClibc misc tests
+# Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+
+TESTS_DISABLED := outb tst-fnmatch bug-glob1 tst-gnuglob
+
+CFLAGS_dirent64 := -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64
+
+DODIFF_dirent    := 1
+DODIFF_dirent64  := 1
+
+OPTS_bug-glob1   := $(PWD)
+OPTS_tst-fnmatch := < tst-fnmatch.input

Modified: trunk/uClibc/test/mmap/Makefile
===================================================================
--- trunk/uClibc/test/mmap/Makefile	2009-03-16 13:33:27 UTC (rev 25673)
+++ trunk/uClibc/test/mmap/Makefile	2009-03-16 13:36:39 UTC (rev 25674)
@@ -1,4 +1,7 @@
 # uClibc mmap 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

Modified: trunk/uClibc/test/pthread/Makefile
===================================================================
--- trunk/uClibc/test/pthread/Makefile	2009-03-16 13:33:27 UTC (rev 25673)
+++ trunk/uClibc/test/pthread/Makefile	2009-03-16 13:36:39 UTC (rev 25674)
@@ -1,8 +1,7 @@
 # uClibc pthread 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
-
-EXTRA_LDFLAGS := -lpthread
-
-LDFLAGS_cancellation-points := -lrt

Added: trunk/uClibc/test/pthread/Makefile.in
===================================================================
--- trunk/uClibc/test/pthread/Makefile.in	                        (rev 0)
+++ trunk/uClibc/test/pthread/Makefile.in	2009-03-16 13:36:39 UTC (rev 25674)
@@ -0,0 +1,7 @@
+# uClibc pthread tests
+# Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+
+
+EXTRA_LDFLAGS := -lpthread
+
+LDFLAGS_cancellation-points := -lrt

Modified: trunk/uClibc/test/pwd_grp/Makefile
===================================================================
--- trunk/uClibc/test/pwd_grp/Makefile	2009-03-16 13:33:27 UTC (rev 25673)
+++ trunk/uClibc/test/pwd_grp/Makefile	2009-03-16 13:36:39 UTC (rev 25674)
@@ -1,10 +1,7 @@
 # uClibc pwd_grp 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
-
-DODIFF_test_pwd  := 1
-DODIFF_test_grp  := 1
-DODIFF_pwcat     := 1
-DODIFF_grcat     := 1
-DODIFF_getgroups := 1

Added: trunk/uClibc/test/pwd_grp/Makefile.in
===================================================================
--- trunk/uClibc/test/pwd_grp/Makefile.in	                        (rev 0)
+++ trunk/uClibc/test/pwd_grp/Makefile.in	2009-03-16 13:36:39 UTC (rev 25674)
@@ -0,0 +1,8 @@
+# uClibc pwd_grp tests
+# Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+
+DODIFF_test_pwd  := 1
+DODIFF_test_grp  := 1
+DODIFF_pwcat     := 1
+DODIFF_grcat     := 1
+DODIFF_getgroups := 1

Modified: trunk/uClibc/test/regex/Makefile
===================================================================
--- trunk/uClibc/test/regex/Makefile	2009-03-16 13:33:27 UTC (rev 25673)
+++ trunk/uClibc/test/regex/Makefile	2009-03-16 13:36:39 UTC (rev 25674)
@@ -1,4 +1,7 @@
 # uClibc regex 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

Modified: trunk/uClibc/test/rpc/Makefile
===================================================================
--- trunk/uClibc/test/rpc/Makefile	2009-03-16 13:33:27 UTC (rev 25673)
+++ trunk/uClibc/test/rpc/Makefile	2009-03-16 13:36:39 UTC (rev 25674)
@@ -1,12 +1,7 @@
 # uClibc rpc tests
 # Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
 
-TESTS := getrpcent
-
-ifeq ($(UCLIBC_HAS_REENTRANT_RPC),y)
-TESTS += getrpcent_r
-endif
-
+top_builddir=../../
+include ../Rules.mak
+-include Makefile.in
 include ../Test.mak
-
-DODIFF_getrpcent := 1

Added: trunk/uClibc/test/rpc/Makefile.in
===================================================================
--- trunk/uClibc/test/rpc/Makefile.in	                        (rev 0)
+++ trunk/uClibc/test/rpc/Makefile.in	2009-03-16 13:36:39 UTC (rev 25674)
@@ -0,0 +1,11 @@
+# uClibc rpc tests
+# Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+
+TESTS := getrpcent
+
+ifeq ($(UCLIBC_HAS_REENTRANT_RPC),y)
+TESTS += getrpcent_r
+endif
+
+DODIFF_getrpcent := 1
+

Modified: trunk/uClibc/test/setjmp/Makefile
===================================================================
--- trunk/uClibc/test/setjmp/Makefile	2009-03-16 13:33:27 UTC (rev 25673)
+++ trunk/uClibc/test/setjmp/Makefile	2009-03-16 13:36:39 UTC (rev 25674)
@@ -1,4 +1,7 @@
 # uClibc setjmp 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

Modified: trunk/uClibc/test/signal/Makefile
===================================================================
--- trunk/uClibc/test/signal/Makefile	2009-03-16 13:33:27 UTC (rev 25673)
+++ trunk/uClibc/test/signal/Makefile	2009-03-16 13:36:39 UTC (rev 25674)
@@ -1,8 +1,7 @@
 # uClibc signal tests
 # Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
 
-ifeq ($(UCLIBC_HAS_OBSOLETE_BSD_SIGNAL),)
-TESTS_DISABLED := tst-sigsimple
-endif
-
+top_builddir=../../
+include ../Rules.mak
+-include Makefile.in
 include ../Test.mak

Added: trunk/uClibc/test/signal/Makefile.in
===================================================================
--- trunk/uClibc/test/signal/Makefile.in	                        (rev 0)
+++ trunk/uClibc/test/signal/Makefile.in	2009-03-16 13:36:39 UTC (rev 25674)
@@ -0,0 +1,6 @@
+# uClibc signal tests
+# Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+
+ifeq ($(UCLIBC_HAS_OBSOLETE_BSD_SIGNAL),)
+TESTS_DISABLED := tst-sigsimple
+endif

Modified: trunk/uClibc/test/silly/Makefile
===================================================================
--- trunk/uClibc/test/silly/Makefile	2009-03-16 13:33:27 UTC (rev 25673)
+++ trunk/uClibc/test/silly/Makefile	2009-03-16 13:36:39 UTC (rev 25674)
@@ -1,7 +1,7 @@
 # uClibc silly 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
-
-RET_hello := 42
-RET_tiny  := 42

Added: trunk/uClibc/test/silly/Makefile.in
===================================================================
--- trunk/uClibc/test/silly/Makefile.in	                        (rev 0)
+++ trunk/uClibc/test/silly/Makefile.in	2009-03-16 13:36:39 UTC (rev 25674)
@@ -0,0 +1,5 @@
+# uClibc silly tests
+# Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+
+RET_hello := 42
+RET_tiny  := 42

Modified: trunk/uClibc/test/stat/Makefile
===================================================================
--- trunk/uClibc/test/stat/Makefile	2009-03-16 13:33:27 UTC (rev 25673)
+++ trunk/uClibc/test/stat/Makefile	2009-03-16 13:36:39 UTC (rev 25674)
@@ -1,12 +1,7 @@
 # uClibc stat 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
-
-CFLAGS_stat64 := -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64
-
-DODIFF_stat   := 1
-DODIFF_stat64 := 1
-
-OPTS_stat   := Makefile
-OPTS_stat64 := Makefile

Added: trunk/uClibc/test/stat/Makefile.in
===================================================================
--- trunk/uClibc/test/stat/Makefile.in	                        (rev 0)
+++ trunk/uClibc/test/stat/Makefile.in	2009-03-16 13:36:39 UTC (rev 25674)
@@ -0,0 +1,10 @@
+# uClibc stat tests
+# Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+
+CFLAGS_stat64 := -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64
+
+DODIFF_stat   := 1
+DODIFF_stat64 := 1
+
+OPTS_stat   := Makefile
+OPTS_stat64 := Makefile

Modified: trunk/uClibc/test/stdio/Makefile
===================================================================
--- trunk/uClibc/test/stdio/Makefile	2009-03-16 13:33:27 UTC (rev 25673)
+++ trunk/uClibc/test/stdio/Makefile	2009-03-16 13:36:39 UTC (rev 25674)
@@ -1,6 +1,7 @@
-# uClibc assert tests
+# uClibc stdio 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
-
-DODIFF_64bit := 1

Added: trunk/uClibc/test/stdio/Makefile.in
===================================================================
--- trunk/uClibc/test/stdio/Makefile.in	                        (rev 0)
+++ trunk/uClibc/test/stdio/Makefile.in	2009-03-16 13:36:39 UTC (rev 25674)
@@ -0,0 +1,4 @@
+# uClibc stdio tests
+# Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+
+DODIFF_64bit := 1

Modified: trunk/uClibc/test/stdlib/Makefile
===================================================================
--- trunk/uClibc/test/stdlib/Makefile	2009-03-16 13:33:27 UTC (rev 25673)
+++ trunk/uClibc/test/stdlib/Makefile	2009-03-16 13:36:39 UTC (rev 25674)
@@ -1,9 +1,7 @@
 # uClibc stdlib 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
-
-DODIFF_qsort       := 1
-DODIFF_testatexit  := 1
-DODIFF_teston_exit := 1
-DODIFF_teststrtol  := 1

Added: trunk/uClibc/test/stdlib/Makefile.in
===================================================================
--- trunk/uClibc/test/stdlib/Makefile.in	                        (rev 0)
+++ trunk/uClibc/test/stdlib/Makefile.in	2009-03-16 13:36:39 UTC (rev 25674)
@@ -0,0 +1,7 @@
+# uClibc stdlib tests
+# Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+
+DODIFF_qsort       := 1
+DODIFF_testatexit  := 1
+DODIFF_teston_exit := 1
+DODIFF_teststrtol  := 1

Modified: trunk/uClibc/test/string/Makefile
===================================================================
--- trunk/uClibc/test/string/Makefile	2009-03-16 13:33:27 UTC (rev 25673)
+++ trunk/uClibc/test/string/Makefile	2009-03-16 13:36:39 UTC (rev 25674)
@@ -1,6 +1,7 @@
 # uClibc string 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
-
-EXTRA_CFLAGS := -fno-builtin

Added: trunk/uClibc/test/string/Makefile.in
===================================================================
--- trunk/uClibc/test/string/Makefile.in	                        (rev 0)
+++ trunk/uClibc/test/string/Makefile.in	2009-03-16 13:36:39 UTC (rev 25674)
@@ -0,0 +1,4 @@
+# uClibc string tests
+# Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+
+EXTRA_CFLAGS := -fno-builtin

Modified: trunk/uClibc/test/termios/Makefile
===================================================================
--- trunk/uClibc/test/termios/Makefile	2009-03-16 13:33:27 UTC (rev 25673)
+++ trunk/uClibc/test/termios/Makefile	2009-03-16 13:36:39 UTC (rev 25674)
@@ -1,4 +1,7 @@
 # uClibc termios 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

Modified: trunk/uClibc/test/time/Makefile
===================================================================
--- trunk/uClibc/test/time/Makefile	2009-03-16 13:33:27 UTC (rev 25673)
+++ trunk/uClibc/test/time/Makefile	2009-03-16 13:36:39 UTC (rev 25674)
@@ -1,13 +1,7 @@
 # uClibc time tests
 # Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
 
-TESTS_DISABLED := bug-asctime bug-asctime_r time tst-mktime2 tst-posixtz \
-	tst-strftime tst-strptime tst-timezone
-
-ifneq ($(UCLIBC_HAS_XLOCALE),y)
-TESTS_DISABLED += tst-ftime_l
-endif
-
+top_builddir=../../
+include ../Rules.mak
+-include Makefile.in
 include ../Test.mak
-
-CFLAGS_tst-strptime2 := -std=c99

Added: trunk/uClibc/test/time/Makefile.in
===================================================================
--- trunk/uClibc/test/time/Makefile.in	                        (rev 0)
+++ trunk/uClibc/test/time/Makefile.in	2009-03-16 13:36:39 UTC (rev 25674)
@@ -0,0 +1,11 @@
+# uClibc time tests
+# Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+
+TESTS_DISABLED := bug-asctime bug-asctime_r time tst-mktime2 tst-posixtz \
+	tst-strftime tst-strptime tst-timezone
+
+ifneq ($(UCLIBC_HAS_XLOCALE),y)
+TESTS_DISABLED += tst-ftime_l
+endif
+
+CFLAGS_tst-strptime2 := -std=c99

Modified: trunk/uClibc/test/unistd/Makefile
===================================================================
--- trunk/uClibc/test/unistd/Makefile	2009-03-16 13:33:27 UTC (rev 25673)
+++ trunk/uClibc/test/unistd/Makefile	2009-03-16 13:36:39 UTC (rev 25674)
@@ -1,13 +1,7 @@
 # uClibc unistd 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
-
-OPTS_getopt      := -abcXXX -9
-OPTS_getopt_long := --add XXX --delete YYY --verbose
-ifeq ($(UCLIBC_HAS_GNU_GETOPT),y)
-OPTS_tstgetopt   := -a -b -cfoobar --required foobar --optional=bazbug --none random --col --color --colour
-else
-# reordering is not supported, behaves as if POSIXLY_CORRECT would be set
-OPTS_tstgetopt   := -a -b -cfoobar --required foobar --optional=bazbug --none --colou --color --colour random
-endif

Added: trunk/uClibc/test/unistd/Makefile.in
===================================================================
--- trunk/uClibc/test/unistd/Makefile.in	                        (rev 0)
+++ trunk/uClibc/test/unistd/Makefile.in	2009-03-16 13:36:39 UTC (rev 25674)
@@ -0,0 +1,11 @@
+# uClibc unistd tests
+# Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+
+OPTS_getopt      := -abcXXX -9
+OPTS_getopt_long := --add XXX --delete YYY --verbose
+ifeq ($(UCLIBC_HAS_GNU_GETOPT),y)
+OPTS_tstgetopt   := -a -b -cfoobar --required foobar --optional=bazbug --none random --col --color --colour
+else
+# reordering is not supported, behaves as if POSIXLY_CORRECT would be set
+OPTS_tstgetopt   := -a -b -cfoobar --required foobar --optional=bazbug --none --colou --color --colour random
+endif



More information about the uClibc-cvs mailing list