diff options
author | ngie <ngie@FreeBSD.org> | 2015-10-11 20:02:10 +0000 |
---|---|---|
committer | ngie <ngie@FreeBSD.org> | 2015-10-11 20:02:10 +0000 |
commit | 4ef871775610ae76e44a2ca5400b050d2915884c (patch) | |
tree | e6f35314bc31f0a51ed366a2017e0e95b1bb1d5e | |
parent | 6976026b48b8551e5dd6e09e504941ca5bb9b008 (diff) | |
download | FreeBSD-src-4ef871775610ae76e44a2ca5400b050d2915884c.zip FreeBSD-src-4ef871775610ae76e44a2ca5400b050d2915884c.tar.gz |
Simplify netbsd-tests.test.mk
- projects/bmake and subsequent commits provide SRCTOP; there's no need to
manually specify it now.
- Compute a sane default for OBJTOP based on .OBJDIR and RELDIR. Manually
specifying this is probably no longer needed, but it persists just in case
(supporting commits will need to be made to move it out of some of the meta
.mk files).
- Compute a sane default for TESTSRC. Error out if the path cannot be found.
MFC after: 2 weeks
Sponsored by: EMC / Isilon Storage Division
-rw-r--r-- | share/mk/netbsd-tests.test.mk | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/share/mk/netbsd-tests.test.mk b/share/mk/netbsd-tests.test.mk index 5c31d77..92a401b 100644 --- a/share/mk/netbsd-tests.test.mk +++ b/share/mk/netbsd-tests.test.mk @@ -3,16 +3,12 @@ .if !target(__netbsd_tests.test.mk__) __netbsd_tests.test.mk__: -.if !defined(OBJTOP) -.error "Please define OBJTOP to the absolute path of the top of the object tree" -.endif +OBJTOP?= ${.OBJDIR:S/${RELDIR}//} -.if !defined(SRCTOP) -.error "Please define SRCTOP to the absolute path of the top of the source tree" -.endif +TESTSRC?= ${SRCTOP}/contrib/netbsd-tests/${RELDIR:H} -.if !defined(TESTSRC) -.error "Please define TESTSRC to the absolute path of the test sources, e.g. contrib/netbsd-tests/lib/libc/stdio" +.if !exists(${TESTSRC}/) +.error "Please define TESTSRC to the absolute path of the test sources, e.g. $${SRCTOP}/contrib/netbsd-tests/lib/libc/stdio" .endif .PATH: ${TESTSRC} |