[sword-svn] r129 - trunk/source/test/hdrtst
chrislit at www.crosswire.org
chrislit at www.crosswire.org
Thu Dec 21 04:11:22 MST 2006
Author: chrislit
Date: 2006-12-21 04:11:22 -0700 (Thu, 21 Dec 2006)
New Revision: 129
Modified:
trunk/source/test/hdrtst/Makefile.in
trunk/source/test/hdrtst/cxxfiles.txt
trunk/source/test/hdrtst/dfiles.txt
trunk/source/test/hdrtst/pfiles.txt
Log:
corrected eol properties for *nix builds
Modified: trunk/source/test/hdrtst/Makefile.in
===================================================================
--- trunk/source/test/hdrtst/Makefile.in 2006-12-21 11:10:34 UTC (rev 128)
+++ trunk/source/test/hdrtst/Makefile.in 2006-12-21 11:11:22 UTC (rev 129)
@@ -1,188 +1,188 @@
-##
-## Copyright (c) 1999-2006, International Business Machines Corporation and
-## others. All Rights Reserved.
-##
-##
-## THE PURPOSE OF THIS TEST
-##
-## This tests all public header files (
-##
-## To run it simply type 'make check'. You SHOULD see:
-##
-## unicode/uchar.h - 0
-## unicode/uchriter.h - 0
-## unicode/ucnv.h - 0
-##
-## .. etc. Anything other than zero is an error. (except for the deprecation tests, where '1' is the correct value)
-##
-##
-## If a header fails the C compile because it's a C++ header, add it to the
-## file named 'cxxfiles.txt' in this directory.
-##
-## If a header fails because it is deprecated, add it to the 'dfiles.txt'
-##
-##
-
-
-include $(shell icu-config --incfile)
-srcdir=@srcdir@
-DIRS=$(prefix)/include/unicode
-LDIRS=$(prefix)/include/layout
-
-all:
- @echo Please read this Makefile for more information.
- @echo run \'$(MAKE) check\' to run the test
-
-check: dtest ctest cpptest lotest doclean drafttest deprtest internaltest obsoletetest
- @echo "All header tests have finished. If deprecation #errors appeared, "
- @echo " add files to hdrtst/dfiles.txt"
- @echo "#################################################################"
- @echo
-
-# break dependency
-doclean:
- make clean
-
-cpptest:
- @echo "C++ test #######################################################"
- @rm -f Makefile.sub
- @echo 'Testing all header files under C++'
- @echo 'the number after the hyphen (-) refers to the exit code - should be zero!'
- @for file in `ls $(prefix)/include/unicode/*.h | fgrep -v -f $(srcdir)/pfiles.txt`; do \
- incfile=`basename $$file .h` ; \
- echo -n "C++ unicode/$$incfile.h - " ; \
- echo '#include "'unicode/$$incfile'.h"' > ht_$$incfile.cpp ; \
- echo 'void junk(){}' >> ht_$$incfile.cpp ; \
- $(COMPILE.cc) -c $(cppflags) ht_$$incfile.cpp ; \
- echo $$? ; \
- done
-
-lotest:
- @echo "Layout test #######################################################"
- @rm -f Makefile.sub
- @echo 'Testing all layout files under C++'
- @echo 'the number after the hyphen (-) refers to the exit code - should be zero!'
- @for file in $(prefix)/include/layout/*.h; do \
- incfile=`basename $$file .h` ; \
- echo -n "C++ layout/$$incfile.h - " ; \
- echo '#include "'layout/$$incfile'.h"' > ht_$$incfile.cpp ; \
- echo 'void junk(){}' >> ht_$$incfile.cpp ; \
- $(COMPILE.cc) -c $(cppflags) -I$(prefix)/include/layout ht_$$incfile.cpp ; \
- echo $$? ; \
- done
-
-dtest:
- @rm -f Makefile.sub
- @echo "Deprecation #######################################################"
- @echo 'Should be 1 in each case if file is properly obsoleted.'
- @for stub in `cat $(srcdir)/dfiles.txt | grep -v '^#'` ; do \
- file=unicode/$$stub \
- incfile=`basename $$file .h` ; \
- echo -n "C++ unicode/$$incfile.h - " ; \
- echo '#include "'unicode/$$incfile'.h"' > ht_$$incfile.cpp ; \
- echo 'void junk(){}' >> ht_$$incfile.cpp ; \
- echo > ht_dep.junk ; \
- $(COMPILE.cc) -c $(cppflags) ht_$$incfile.cpp 2>&1 | sed -e 's/^.*#error[^"]*"//' | fgrep -v ht_ | tee ht_dep.junk | fgrep -v "$$incfile.h header is obsolete" ; \
- RES=$$? ; \
- echo $$RES ; \
- fgrep -q "$$incfile.h header is obsolete" ht_dep.junk || echo "** FAIL Header unicode/$$incfile.h is not obsoleted properly" ; \
- rm -f unicode/$$stub ; \
- done
-
-# < ht_dep.junk && ; \
-
-
-ctest:
- @echo "C Test #######################################################"
- @echo " (if any C++ files show up here, stop the test and add them to hdrtst/cxxfiles.txt) "
- @rm -f Makefile.sub
- @echo Building test harness for header files in ../../common and ../../i18n
- @echo 'the number after the hyphen (-) refers to the exit code - should be zero!'
- @for file in `ls $(prefix)/include/unicode/*.h | fgrep -v -f $(srcdir)/cxxfiles.txt | tee cfiles.txt`; do \
- incfile=`basename $$file .h` ; \
- echo -n "C unicode/$$incfile.h - " ; \
- echo '#include "'unicode/$$incfile'.h"' > ht_$$incfile.c ; \
- echo 'void junk(void);' >> ht_$$incfile.c ; \
- echo 'void junk(){}' >> ht_$$incfile.c ; \
- $(COMPILE.c) -c $(cppflags) ht_$$incfile.c ; \
- RES=$$? ; \
- echo $$RES ; \
- done
-
-drafttest:
- @echo "U_HIDE_DRAFT_API Test #######################################################"
- @rm -f Makefile.sub
- @echo Building test harness for header files in ../../common and ../../i18n
- @echo 'the number after the hyphen (-) refers to the exit code - should be zero!'
- @for file in `ls $(prefix)/include/unicode/*.h | fgrep -v -f $(srcdir)/pfiles.txt`; do \
- incfile=`basename $$file .h` ; \
- echo -n " unicode/$$incfile.h - " ; \
- echo '#define U_HIDE_DRAFT_API' > hd_$$incfile.c; \
- echo '#include "'unicode/$$incfile'.h"' >> ht_$$incfile.c ; \
- echo 'void junk(void);' >> hd_$$incfile.c ; \
- echo 'void junk(){}' >> hd_$$incfile.c ; \
- $(COMPILE.cc) -c $(cppflags) hd_$$incfile.c ; \
- RES=$$? ; \
- echo $$RES ; \
- done
-
-deprtest:
- @echo "U_HIDE_DEPRECATED_API Test #######################################################"
- @rm -f Makefile.sub
- @echo Building test harness for header files in ../../common and ../../i18n
- @echo 'the number after the hyphen (-) refers to the exit code - should be zero!'
- @for file in `ls $(prefix)/include/unicode/*.h | fgrep -v -f $(srcdir)/pfiles.txt`; do \
- incfile=`basename $$file .h` ; \
- echo -n " unicode/$$incfile.h - " ; \
- echo '#define U_HIDE_DEPRECATED_API' > hdp_$$incfile.c; \
- echo '#include "'unicode/$$incfile'.h"' >> hdp_$$incfile.c ; \
- echo 'void junk(void);' >> hdp_$$incfile.c ; \
- echo 'void junk(){}' >> hdp_$$incfile.c ; \
- $(COMPILE.cc) -c $(cppflags) hdp_$$incfile.c ; \
- RES=$$? ; \
- echo $$RES ; \
- done
-
-internaltest:
- @echo "U_HIDE_INTERNAL_API Test #######################################################"
- @rm -f Makefile.sub
- @echo Building test harness for header files in ../../common and ../../i18n
- @echo 'the number after the hyphen (-) refers to the exit code - should be zero!'
- @for file in `ls $(prefix)/include/unicode/*.h | fgrep -v -f $(srcdir)/pfiles.txt`; do \
- incfile=`basename $$file .h` ; \
- echo -n " unicode/$$incfile.h - " ; \
- echo '#define U_HIDE_INTERNAL_API' > hin_$$incfile.c; \
- echo '#include "'unicode/$$incfile'.h"' >> hin_$$incfile.c ; \
- echo 'void junk(void);' >> hin_$$incfile.c ; \
- echo 'void junk(){}' >> hin_$$incfile.c ; \
- $(COMPILE.cc) -c $(cppflags) hin_$$incfile.c ; \
- RES=$$? ; \
- echo $$RES ; \
- done
-
-obsoletetest:
- @echo "U_HIDE_OBSOLETE_API Test #######################################################"
- @rm -f Makefile.sub
- @echo Building test harness for header files in ../../common and ../../i18n
- @echo 'the number after the hyphen (-) refers to the exit code - should be zero!'
- @for file in `ls $(prefix)/include/unicode/*.h | fgrep -v -f $(srcdir)/pfiles.txt`; do \
- incfile=`basename $$file .h` ; \
- echo -n " unicode/$$incfile.h - " ; \
- echo '#define U_HIDE_OBSOLETE_API' > hob_$$incfile.c; \
- echo '#include "'unicode/$$incfile'.h"' >> hob_$$incfile.c ; \
- echo 'void junk(void);' >> hob_$$incfile.c ; \
- echo 'void junk(){}' >> hob_$$incfile.c ; \
- $(COMPILE.cc) -c $(cppflags) hob_$$incfile.c ; \
- RES=$$? ; \
- echo $$RES ; \
- done
-
-clean:
- - at rm -f *.h *.c *.cpp *.o *.junk
-
-distclean: clean
- - at rm -f Makefile
-
-
-.PHONY: doclean check all cpptest lotest dtest ctest clean distclean
-
+##
+## Copyright (c) 1999-2006, International Business Machines Corporation and
+## others. All Rights Reserved.
+##
+##
+## THE PURPOSE OF THIS TEST
+##
+## This tests all public header files (
+##
+## To run it simply type 'make check'. You SHOULD see:
+##
+## unicode/uchar.h - 0
+## unicode/uchriter.h - 0
+## unicode/ucnv.h - 0
+##
+## .. etc. Anything other than zero is an error. (except for the deprecation tests, where '1' is the correct value)
+##
+##
+## If a header fails the C compile because it's a C++ header, add it to the
+## file named 'cxxfiles.txt' in this directory.
+##
+## If a header fails because it is deprecated, add it to the 'dfiles.txt'
+##
+##
+
+
+include $(shell icu-config --incfile)
+srcdir=@srcdir@
+DIRS=$(prefix)/include/unicode
+LDIRS=$(prefix)/include/layout
+
+all:
+ @echo Please read this Makefile for more information.
+ @echo run \'$(MAKE) check\' to run the test
+
+check: dtest ctest cpptest lotest doclean drafttest deprtest internaltest obsoletetest
+ @echo "All header tests have finished. If deprecation #errors appeared, "
+ @echo " add files to hdrtst/dfiles.txt"
+ @echo "#################################################################"
+ @echo
+
+# break dependency
+doclean:
+ make clean
+
+cpptest:
+ @echo "C++ test #######################################################"
+ @rm -f Makefile.sub
+ @echo 'Testing all header files under C++'
+ @echo 'the number after the hyphen (-) refers to the exit code - should be zero!'
+ @for file in `ls $(prefix)/include/unicode/*.h | fgrep -v -f $(srcdir)/pfiles.txt`; do \
+ incfile=`basename $$file .h` ; \
+ echo -n "C++ unicode/$$incfile.h - " ; \
+ echo '#include "'unicode/$$incfile'.h"' > ht_$$incfile.cpp ; \
+ echo 'void junk(){}' >> ht_$$incfile.cpp ; \
+ $(COMPILE.cc) -c $(cppflags) ht_$$incfile.cpp ; \
+ echo $$? ; \
+ done
+
+lotest:
+ @echo "Layout test #######################################################"
+ @rm -f Makefile.sub
+ @echo 'Testing all layout files under C++'
+ @echo 'the number after the hyphen (-) refers to the exit code - should be zero!'
+ @for file in $(prefix)/include/layout/*.h; do \
+ incfile=`basename $$file .h` ; \
+ echo -n "C++ layout/$$incfile.h - " ; \
+ echo '#include "'layout/$$incfile'.h"' > ht_$$incfile.cpp ; \
+ echo 'void junk(){}' >> ht_$$incfile.cpp ; \
+ $(COMPILE.cc) -c $(cppflags) -I$(prefix)/include/layout ht_$$incfile.cpp ; \
+ echo $$? ; \
+ done
+
+dtest:
+ @rm -f Makefile.sub
+ @echo "Deprecation #######################################################"
+ @echo 'Should be 1 in each case if file is properly obsoleted.'
+ @for stub in `cat $(srcdir)/dfiles.txt | grep -v '^#'` ; do \
+ file=unicode/$$stub \
+ incfile=`basename $$file .h` ; \
+ echo -n "C++ unicode/$$incfile.h - " ; \
+ echo '#include "'unicode/$$incfile'.h"' > ht_$$incfile.cpp ; \
+ echo 'void junk(){}' >> ht_$$incfile.cpp ; \
+ echo > ht_dep.junk ; \
+ $(COMPILE.cc) -c $(cppflags) ht_$$incfile.cpp 2>&1 | sed -e 's/^.*#error[^"]*"//' | fgrep -v ht_ | tee ht_dep.junk | fgrep -v "$$incfile.h header is obsolete" ; \
+ RES=$$? ; \
+ echo $$RES ; \
+ fgrep -q "$$incfile.h header is obsolete" ht_dep.junk || echo "** FAIL Header unicode/$$incfile.h is not obsoleted properly" ; \
+ rm -f unicode/$$stub ; \
+ done
+
+# < ht_dep.junk && ; \
+
+
+ctest:
+ @echo "C Test #######################################################"
+ @echo " (if any C++ files show up here, stop the test and add them to hdrtst/cxxfiles.txt) "
+ @rm -f Makefile.sub
+ @echo Building test harness for header files in ../../common and ../../i18n
+ @echo 'the number after the hyphen (-) refers to the exit code - should be zero!'
+ @for file in `ls $(prefix)/include/unicode/*.h | fgrep -v -f $(srcdir)/cxxfiles.txt | tee cfiles.txt`; do \
+ incfile=`basename $$file .h` ; \
+ echo -n "C unicode/$$incfile.h - " ; \
+ echo '#include "'unicode/$$incfile'.h"' > ht_$$incfile.c ; \
+ echo 'void junk(void);' >> ht_$$incfile.c ; \
+ echo 'void junk(){}' >> ht_$$incfile.c ; \
+ $(COMPILE.c) -c $(cppflags) ht_$$incfile.c ; \
+ RES=$$? ; \
+ echo $$RES ; \
+ done
+
+drafttest:
+ @echo "U_HIDE_DRAFT_API Test #######################################################"
+ @rm -f Makefile.sub
+ @echo Building test harness for header files in ../../common and ../../i18n
+ @echo 'the number after the hyphen (-) refers to the exit code - should be zero!'
+ @for file in `ls $(prefix)/include/unicode/*.h | fgrep -v -f $(srcdir)/pfiles.txt`; do \
+ incfile=`basename $$file .h` ; \
+ echo -n " unicode/$$incfile.h - " ; \
+ echo '#define U_HIDE_DRAFT_API' > hd_$$incfile.c; \
+ echo '#include "'unicode/$$incfile'.h"' >> ht_$$incfile.c ; \
+ echo 'void junk(void);' >> hd_$$incfile.c ; \
+ echo 'void junk(){}' >> hd_$$incfile.c ; \
+ $(COMPILE.cc) -c $(cppflags) hd_$$incfile.c ; \
+ RES=$$? ; \
+ echo $$RES ; \
+ done
+
+deprtest:
+ @echo "U_HIDE_DEPRECATED_API Test #######################################################"
+ @rm -f Makefile.sub
+ @echo Building test harness for header files in ../../common and ../../i18n
+ @echo 'the number after the hyphen (-) refers to the exit code - should be zero!'
+ @for file in `ls $(prefix)/include/unicode/*.h | fgrep -v -f $(srcdir)/pfiles.txt`; do \
+ incfile=`basename $$file .h` ; \
+ echo -n " unicode/$$incfile.h - " ; \
+ echo '#define U_HIDE_DEPRECATED_API' > hdp_$$incfile.c; \
+ echo '#include "'unicode/$$incfile'.h"' >> hdp_$$incfile.c ; \
+ echo 'void junk(void);' >> hdp_$$incfile.c ; \
+ echo 'void junk(){}' >> hdp_$$incfile.c ; \
+ $(COMPILE.cc) -c $(cppflags) hdp_$$incfile.c ; \
+ RES=$$? ; \
+ echo $$RES ; \
+ done
+
+internaltest:
+ @echo "U_HIDE_INTERNAL_API Test #######################################################"
+ @rm -f Makefile.sub
+ @echo Building test harness for header files in ../../common and ../../i18n
+ @echo 'the number after the hyphen (-) refers to the exit code - should be zero!'
+ @for file in `ls $(prefix)/include/unicode/*.h | fgrep -v -f $(srcdir)/pfiles.txt`; do \
+ incfile=`basename $$file .h` ; \
+ echo -n " unicode/$$incfile.h - " ; \
+ echo '#define U_HIDE_INTERNAL_API' > hin_$$incfile.c; \
+ echo '#include "'unicode/$$incfile'.h"' >> hin_$$incfile.c ; \
+ echo 'void junk(void);' >> hin_$$incfile.c ; \
+ echo 'void junk(){}' >> hin_$$incfile.c ; \
+ $(COMPILE.cc) -c $(cppflags) hin_$$incfile.c ; \
+ RES=$$? ; \
+ echo $$RES ; \
+ done
+
+obsoletetest:
+ @echo "U_HIDE_OBSOLETE_API Test #######################################################"
+ @rm -f Makefile.sub
+ @echo Building test harness for header files in ../../common and ../../i18n
+ @echo 'the number after the hyphen (-) refers to the exit code - should be zero!'
+ @for file in `ls $(prefix)/include/unicode/*.h | fgrep -v -f $(srcdir)/pfiles.txt`; do \
+ incfile=`basename $$file .h` ; \
+ echo -n " unicode/$$incfile.h - " ; \
+ echo '#define U_HIDE_OBSOLETE_API' > hob_$$incfile.c; \
+ echo '#include "'unicode/$$incfile'.h"' >> hob_$$incfile.c ; \
+ echo 'void junk(void);' >> hob_$$incfile.c ; \
+ echo 'void junk(){}' >> hob_$$incfile.c ; \
+ $(COMPILE.cc) -c $(cppflags) hob_$$incfile.c ; \
+ RES=$$? ; \
+ echo $$RES ; \
+ done
+
+clean:
+ - at rm -f *.h *.c *.cpp *.o *.junk
+
+distclean: clean
+ - at rm -f Makefile
+
+
+.PHONY: doclean check all cpptest lotest dtest ctest clean distclean
+
Property changes on: trunk/source/test/hdrtst/Makefile.in
___________________________________________________________________
Name: svn:eol-style
+ native
Modified: trunk/source/test/hdrtst/cxxfiles.txt
===================================================================
--- trunk/source/test/hdrtst/cxxfiles.txt 2006-12-21 11:10:34 UTC (rev 128)
+++ trunk/source/test/hdrtst/cxxfiles.txt 2006-12-21 11:11:22 UTC (rev 129)
@@ -1,81 +1,81 @@
-# Copyright (c) 2001-2004 International Business Machines
-# Corporation and others. All Rights Reserved.
-bidi.h
-brkiter.h
-calendar.h
-caniter.h
-chariter.h
-choicfmt.h
-coleitr.h
-coll.h
-convert.h
-cpdtrans.h
-datefmt.h
-dbbi.h
-dcfmtsym.h
-decimfmt.h
-dtfmtsym.h
-fieldpos.h
-fmtable.h
-format.h
-gregocal.h
-hextouni.h
-locid.h
-msgfmt.h
-normlzr.h
-nultrans.h
-numfmt.h
-parsepos.h
-rbbi.h
-rbnf.h
-rbt.h
-regex.h
-rep.h
-resbund.h
-schriter.h
-search.h
-simpletz.h
-smpdtfmt.h
-sortkey.h
-strenum.h
-stsearch.h
-tblcoll.h
-timezone.h
-translit.h
-uchriter.h
-unicode.h
-unifilt.h
-unifltlg.h
-unifunct.h
-unimatch.h
-unirepl.h
-uniset.h
-unistr.h
-unitohex.h
-uobject.h
-usetiter.h
-#added
-loengine.h
-#the following are C++ also
-ustream.h
-symtable.h
-#layout, layoutex are C++ only
-LayoutEngine.h
-LEFontInstance.h
-LEGlyphFilter.h
-LELanguages.h
-LEScripts.h
-LESwaps.h
-LETypes.h
-ParagraphLayout.h
-RunArrays.h
-# currency...
-curramt.h
-currunit.h
-measfmt.h
-measunit.h
-measure.h
-# platform specific
-pmacos.h
-pos400.h
-pwin32.h
+# Copyright (c) 2001-2004 International Business Machines
+# Corporation and others. All Rights Reserved.
+bidi.h
+brkiter.h
+calendar.h
+caniter.h
+chariter.h
+choicfmt.h
+coleitr.h
+coll.h
+convert.h
+cpdtrans.h
+datefmt.h
+dbbi.h
+dcfmtsym.h
+decimfmt.h
+dtfmtsym.h
+fieldpos.h
+fmtable.h
+format.h
+gregocal.h
+hextouni.h
+locid.h
+msgfmt.h
+normlzr.h
+nultrans.h
+numfmt.h
+parsepos.h
+rbbi.h
+rbnf.h
+rbt.h
+regex.h
+rep.h
+resbund.h
+schriter.h
+search.h
+simpletz.h
+smpdtfmt.h
+sortkey.h
+strenum.h
+stsearch.h
+tblcoll.h
+timezone.h
+translit.h
+uchriter.h
+unicode.h
+unifilt.h
+unifltlg.h
+unifunct.h
+unimatch.h
+unirepl.h
+uniset.h
+unistr.h
+unitohex.h
+uobject.h
+usetiter.h
+#added
+loengine.h
+#the following are C++ also
+ustream.h
+symtable.h
+#layout, layoutex are C++ only
+LayoutEngine.h
+LEFontInstance.h
+LEGlyphFilter.h
+LELanguages.h
+LEScripts.h
+LESwaps.h
+LETypes.h
+ParagraphLayout.h
+RunArrays.h
+# currency...
+curramt.h
+currunit.h
+measfmt.h
+measunit.h
+measure.h
+# platform specific
+pmacos.h
+pos400.h
+pwin32.h
Property changes on: trunk/source/test/hdrtst/cxxfiles.txt
___________________________________________________________________
Name: svn:eol-style
+ native
Modified: trunk/source/test/hdrtst/dfiles.txt
===================================================================
--- trunk/source/test/hdrtst/dfiles.txt 2006-12-21 11:10:34 UTC (rev 128)
+++ trunk/source/test/hdrtst/dfiles.txt 2006-12-21 11:11:22 UTC (rev 129)
@@ -1,4 +1,4 @@
-# Copyright (c) 2001-2003 International Business Machines
-# Corporation and others. All Rights Reserved.
-#
-# in 2.6 - no deprecated headers.
+# Copyright (c) 2001-2003 International Business Machines
+# Corporation and others. All Rights Reserved.
+#
+# in 2.6 - no deprecated headers.
Property changes on: trunk/source/test/hdrtst/dfiles.txt
___________________________________________________________________
Name: svn:eol-style
+ native
Modified: trunk/source/test/hdrtst/pfiles.txt
===================================================================
--- trunk/source/test/hdrtst/pfiles.txt 2006-12-21 11:10:34 UTC (rev 128)
+++ trunk/source/test/hdrtst/pfiles.txt 2006-12-21 11:11:22 UTC (rev 129)
@@ -1,3 +1,3 @@
-# Copyright (c) 2001-2004 International Business Machines
-# Corporation and others. All Rights Reserved.
-pwin32.h
+# Copyright (c) 2001-2004 International Business Machines
+# Corporation and others. All Rights Reserved.
+pwin32.h
Property changes on: trunk/source/test/hdrtst/pfiles.txt
___________________________________________________________________
Name: svn:eol-style
+ native
More information about the sword-cvs
mailing list