1997-08-22 00:57:35 +02:00
|
|
|
# This file is a shell script fragment that supplies the information
|
|
|
|
# necessary for a configure script to process the program in
|
|
|
|
# this directory. For more information, look at ../../configure.
|
|
|
|
|
|
|
|
configdirs=
|
|
|
|
srctrigger=tcomplex.cc
|
|
|
|
srcname="tests for ANSI C++ library"
|
|
|
|
package_makefile_frag=Make.pack
|
1998-01-28 10:29:07 +01:00
|
|
|
package_makefile_rules_frag=Make.pack.r
|
1997-08-22 00:57:35 +02:00
|
|
|
|
|
|
|
# per-host:
|
|
|
|
|
|
|
|
# per-target:
|
|
|
|
|
|
|
|
target_makefile_frag=../target-mkfrag
|
|
|
|
|
|
|
|
TO_TOPDIR=../../
|
|
|
|
ALL=' '
|
|
|
|
XCXXINCLUDES="-I${srcdir}/.. -I${srcdir}/../stl -I${TO_TOPDIR}libio -I${srcdir}/${TO_TOPDIR}libio"
|
|
|
|
SIMPLE_TESTS='tstring tlist tmap tvector'
|
|
|
|
TESTS="tcomplex ${SIMPLE_TESTS}"
|
|
|
|
MOSTLYCLEAN="*.o core ${TESTS} *.out"
|
1998-01-28 10:29:07 +01:00
|
|
|
(. ${srcdir}/${TO_TOPDIR}libio/config.shared) >${package_makefile_frag} 2>${package_makefile_rules_frag}
|
1997-08-22 00:57:35 +02:00
|
|
|
|
|
|
|
# post-target:
|
|
|
|
|
|
|
|
CHECK=""
|
|
|
|
|
|
|
|
for TEST in ${SIMPLE_TESTS} ; do
|
|
|
|
echo "${TEST}: ${TEST}.o" '$(DEPLIBS)
|
|
|
|
$(CXX) $(CXXFLAGS) -o' "${TEST} ${TEST}.o" '$(LDLIBS)
|
|
|
|
' >> Makefile
|
|
|
|
done
|
|
|
|
|
|
|
|
for TEST in ${TESTS} ; do
|
|
|
|
echo ".PHONY: check-${TEST}" >>Makefile
|
|
|
|
if [ -f ${srcdir}/${TEST}.inp ] ; then
|
|
|
|
echo "check-${TEST}: ${TEST}" '$(srcdir)'"/${TEST}.inp
|
|
|
|
./${TEST} < "'$(srcdir)'"/${TEST}.inp > ${TEST}.out 2>&1" >>Makefile
|
|
|
|
else
|
|
|
|
echo "check-${TEST}: ${TEST}
|
|
|
|
./${TEST} > ${TEST}.out 2>&1" >>Makefile
|
|
|
|
fi
|
|
|
|
echo ' diff -c $(srcdir)/'"${TEST}.exp ${TEST}.out" >>Makefile
|
|
|
|
CHECK="${CHECK} check-${TEST}"
|
|
|
|
done
|
1998-01-27 10:28:32 +01:00
|
|
|
|
|
|
|
if [ "${srcdir}" = "." ] ; then
|
|
|
|
if [ "${with_target_subdir}" != "." ] ; then
|
|
|
|
topsrcdir=${with_multisrctop}../../..
|
|
|
|
else
|
|
|
|
topsrcdir=${with_multisrctop}../..
|
|
|
|
fi
|
|
|
|
else
|
|
|
|
topsrcdir=${srcdir}/../..
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [ -d ${topsrcdir}/gcc ] ; then
|
1998-01-13 21:24:06 +01:00
|
|
|
echo "
|
1997-08-22 00:57:35 +02:00
|
|
|
check:
|
|
|
|
check-old: ${CHECK}" >>Makefile
|
1998-01-13 21:24:06 +01:00
|
|
|
else
|
|
|
|
echo "
|
|
|
|
check: ${CHECK}" >>Makefile
|
|
|
|
fi
|