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.
7 srcname="tests for ANSI C++ library"
8 package_makefile_frag=Make.pack
9 package_makefile_rules_frag=Make.pack.r
15 target_makefile_frag=../target-mkfrag
19 XCXXINCLUDES="-I${srcdir}/.. -I${srcdir}/../stl -I${TO_TOPDIR}libio -I${srcdir}/${TO_TOPDIR}libio"
20 SIMPLE_TESTS='tstring tlist tmap tvector'
21 TESTS="tcomplex ${SIMPLE_TESTS}"
22 MOSTLYCLEAN="*.o core ${TESTS} *.out"
23 (. ${srcdir}/${TO_TOPDIR}libio/config.shared) >${package_makefile_frag} 2>${package_makefile_rules_frag}
29 for TEST in ${SIMPLE_TESTS} ; do
30 echo "${TEST}: ${TEST}.o" '$(DEPLIBS)
31 $(CXX) $(CXXFLAGS) -o' "${TEST} ${TEST}.o" '$(LDLIBS)
35 for TEST in ${TESTS} ; do
36 echo ".PHONY: check-${TEST}" >>Makefile
37 if [ -f ${srcdir}/${TEST}.inp ] ; then
38 echo "check-${TEST}: ${TEST}" '$(srcdir)'"/${TEST}.inp
39 ./${TEST} < "'$(srcdir)'"/${TEST}.inp > ${TEST}.out 2>&1" >>Makefile
41 echo "check-${TEST}: ${TEST}
42 ./${TEST} > ${TEST}.out 2>&1" >>Makefile
44 echo ' diff -c $(srcdir)/'"${TEST}.exp ${TEST}.out" >>Makefile
45 CHECK="${CHECK} check-${TEST}"
48 if [ "${srcdir}" = "." ] ; then
49 if [ "${with_target_subdir}" != "." ] ; then
50 topsrcdir=${with_multisrctop}../../..
52 topsrcdir=${with_multisrctop}../..
55 topsrcdir=${srcdir}/../..
58 if [ -d ${topsrcdir}/gcc ] ; then
61 check-old: ${CHECK}" >>Makefile
64 check: ${CHECK}" >>Makefile