summary refs log tree commit diff
path: root/iconv
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2004-12-19 23:44:07 +0000
committerRoland McGrath <roland@gnu.org>2004-12-19 23:44:07 +0000
commitff06ca8d203955505886309f5da257a64f5407e4 (patch)
treea03d69a62fd533c1c068f3601b94625eefd3f4ce /iconv
parent6a361b2e92b4a8de5df3f9c3b8dae8a2b73f60b2 (diff)
downloadglibc-ff06ca8d203955505886309f5da257a64f5407e4.tar.gz
glibc-ff06ca8d203955505886309f5da257a64f5407e4.tar.xz
glibc-ff06ca8d203955505886309f5da257a64f5407e4.zip
* iconv/Makefile (test-iconvconfig): New target. cvs/fedora-glibc-20041219T2331
	[$(cross-compiling) != yes] (xtests): Depend on it.
Diffstat (limited to 'iconv')
-rw-r--r--iconv/Makefile12
1 files changed, 12 insertions, 0 deletions
diff --git a/iconv/Makefile b/iconv/Makefile
index fe0c453e7b..40c7cbcdd3 100644
--- a/iconv/Makefile
+++ b/iconv/Makefile
@@ -78,3 +78,15 @@ $(inst_bindir)/iconv: $(objpfx)iconv_prog $(+force)
 
 $(objpfx)iconv_prog: $(iconv_prog-modules:%=$(objpfx)%.o)
 $(objpfx)iconvconfig: $(iconvconfig-modules:%=$(objpfx)%.o)
+
+ifneq ($(cross-compiling),yes)
+xtests: test-iconvconfig
+endif
+
+.PHONY: test-iconvconfig
+test-iconvconfig: /dev/null $(objpfx)iconvconfig
+	tmp=$(objpfx)gconv-modules.cache.$$$$; \
+	rm -f $$tmp; \
+	$(make-test-out) --output=$$tmp --nostdlib $(inst_gconvdir) && \
+	cmp $$tmp $(inst_gconvdir)/gconv-modules.cache && \
+	rm -f $$tmp