home *** CD-ROM | disk | FTP | other *** search
/ Geek Gadgets 1 / ADE-1.bin / ade-dist / libg++-2.7.1-base.tgz / libg++-2.7.1-src.tar / fsf / libg++ / libstdc++ / tests / configure.in < prev    next >
Text File  |  1995-04-27  |  1KB  |  50 lines

  1. # This file is a shell script fragment that supplies the information
  2. # necessary for a configure script to process the program in
  3. # this directory.  For more information, look at ../../configure.
  4.  
  5. configdirs=
  6. srctrigger=tcomplex.cc
  7. srcname="tests for ANSI C++ library"
  8. package_makefile_frag=Make.pack
  9.  
  10. # per-host:
  11.  
  12. # per-target:
  13.  
  14. target_makefile_frag=../target-mkfrag
  15.  
  16. TO_TOPDIR=../../
  17. ALL=' '
  18. XCXXINCLUDES="-I${srcdir}/.. -I${srcdir}/../stl -I${TO_TOPDIR}libio -I${srcdir}/${TO_TOPDIR}libio"
  19. SIMPLE_TESTS='tstring tlist tmap tvector'
  20. TESTS="tcomplex ${SIMPLE_TESTS}"
  21. MOSTLYCLEAN="*.o core ${TESTS} *.out"
  22. (. ${srcdir}/${TO_TOPDIR}libio/config.shared) >${package_makefile_frag}
  23.  
  24. # post-target:
  25.  
  26. CHECK=""
  27.  
  28. for TEST in ${SIMPLE_TESTS} ; do
  29.   echo "${TEST}: ${TEST}.o" '$(DEPLIBS)
  30.     $(CXX) -o' "${TEST} ${TEST}.o" '$(LDLIBS)
  31. ' >> Makefile
  32. done
  33.  
  34. for TEST in ${TESTS} ; do
  35.   echo ".PHONY: check-${TEST}" >>Makefile
  36.   if [ -f ${srcdir}/${TEST}.inp ] ; then
  37.     echo "check-${TEST}: ${TEST}" '$(srcdir)'"/${TEST}.inp
  38.     ./${TEST} < "'$(srcdir)'"/${TEST}.inp > ${TEST}.out 2>&1" >>Makefile
  39.   else
  40.     echo "check-${TEST}: ${TEST}
  41.     ./${TEST} > ${TEST}.out 2>&1"  >>Makefile
  42.   fi
  43.   echo '    diff -c $(srcdir)/'"${TEST}.exp ${TEST}.out"  >>Makefile
  44.   CHECK="${CHECK} check-${TEST}"
  45. done
  46. echo "
  47. check: ${CHECK}" >>Makefile
  48.  
  49.  
  50.