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
14 target_makefile_frag=../target-mkfrag
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}
28 for TEST in ${SIMPLE_TESTS} ; do
29 echo "${TEST}: ${TEST}.o" '$(DEPLIBS)
30 $(CXX) $(CXXFLAGS) -o' "${TEST} ${TEST}.o" '$(LDLIBS)
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
40 echo "check-${TEST}: ${TEST}
41 ./${TEST} > ${TEST}.out 2>&1" >>Makefile
43 echo ' diff -c $(srcdir)/'"${TEST}.exp ${TEST}.out" >>Makefile
44 CHECK="${CHECK} check-${TEST}"
48 check-old: ${CHECK}" >>Makefile