diff options
author | David Krause <david@cvs.openbsd.org> | 2004-12-29 06:02:15 +0000 |
---|---|---|
committer | David Krause <david@cvs.openbsd.org> | 2004-12-29 06:02:15 +0000 |
commit | 3b262e8278e5eabd913d41d02b4963e62938ec8f (patch) | |
tree | 0b6f9428d21282a3d0040e86964d0c52f62aaa1c /regress/gnu/egcs/gcc/Makefile | |
parent | dbd223a1d1501c91534f24abd186b99d90f9a8f5 (diff) |
use bsd.regress.mk framework and update dejagnu detection
Diffstat (limited to 'regress/gnu/egcs/gcc/Makefile')
-rw-r--r-- | regress/gnu/egcs/gcc/Makefile | 40 |
1 files changed, 22 insertions, 18 deletions
diff --git a/regress/gnu/egcs/gcc/Makefile b/regress/gnu/egcs/gcc/Makefile index d6a3e85334a..91c8e3edb58 100644 --- a/regress/gnu/egcs/gcc/Makefile +++ b/regress/gnu/egcs/gcc/Makefile @@ -1,32 +1,36 @@ -# $OpenBSD: Makefile,v 1.4 2004/07/21 04:28:49 david Exp $ +# $OpenBSD: Makefile,v 1.5 2004/12/29 06:02:14 david Exp $ .include <bsd.own.mk> NOMAN= NOPROG= +HAVE_DEJAGNU!=pkg_info dejagnu + .if ${USE_GCC3:L:Myes} TESTDIR=${BSDSRCDIR}/gnu/usr.bin/gcc .else TESTDIR=${BSDSRCDIR}/gnu/egcs/gcc .endif -regress: - @if ${RUNTEST} --help >/dev/null; then \ - if ${RUNTEST} --version|grep 'Framework version is.*1.3$$' >/dev/null; then \ - echo "Error: you must have a dejagnu more recent than 1.3"; \ - echo "For instance: ${PORTSDIR}/devel/dejagnu."; \ - else \ - cd ${TESTDIR} && ${MAKE} -f Makefile.bsd-wrapper && \ - ${MAKE} check RUNTEST=${RUNTEST}; \ - fi; \ - else \ - echo "Error: you must have a dejagnu more recent than 1.3 to run this test."; \ - echo " You can install the package from the ftp site or recompile it"; \ - echo " from the ports tree (${PORTSDIR}/devel/dejagnu)."; \ - fi - - -.include <bsd.prog.mk> +REGRESS_TARGETS=do-gcc + +.if !defined(DO_DEJATESTS) +REGRESS_SKIP_TARGETS=do-gcc +.endif + +.if empty(HAVE_DEJAGNU) +do-gcc: + @echo "Error: DejaGnu is required to run this test."; + @echo " You can install the package from the ftp site or compile it"; + @echo " from the ports tree (${PORTSDIR}/devel/dejagnu)."; + @exit 1 +.else +do-gcc: + @cd ${TESTDIR} && ${MAKE} -f Makefile.bsd-wrapper && \ + ${MAKE} check RUNTEST=${RUNTEST}; +.endif + +.include <bsd.regress.mk> PORTSDIR?=/usr/ports |