8c7ec47a40
In r266650, we made libatf-c and libatf-c++ private libraries so that no components outside of the source tree could unintendedly depend on them. This change does the same for the "atf-sh library" by moving the atf-sh interpreter from its public location in /usr/bin/ to the private location in /usr/libexec/. Our build system will ensure that our own test programs use the right binary, but users won't be able to depend on atf-sh by "mistake". Committing this now to ride the UPDATING notice added with r267172 today.
29 lines
690 B
Makefile
29 lines
690 B
Makefile
# $FreeBSD$
|
|
|
|
.include <bsd.init.mk>
|
|
|
|
TESTSDIR= ${TESTSBASE}/libexec/atf/atf-sh
|
|
|
|
ATF= ${.CURDIR:H:H:H:H}/contrib/atf
|
|
.PATH: ${ATF}/atf-sh
|
|
|
|
ATF_TESTS_SH+= atf_check_test
|
|
ATF_TESTS_SH+= config_test
|
|
ATF_TESTS_SH+= integration_test
|
|
ATF_TESTS_SH_SED_integration_test= \
|
|
-e 's,/usr/bin/env *atf-sh,/usr/libexec/atf-sh,g'
|
|
ATF_TESTS_SH+= normalize_test
|
|
ATF_TESTS_SH+= tc_test
|
|
ATF_TESTS_SH+= tp_test
|
|
|
|
SCRIPTS+= misc_helpers
|
|
SCRIPTSDIR_misc_helpers=${TESTSDIR}
|
|
CLEANFILES+= misc_helpers misc_helpers.tmp
|
|
misc_helpers: misc_helpers.sh
|
|
echo '#! /usr/libexec/atf-sh' >${.TARGET}.tmp
|
|
cat ${.ALLSRC} >>${.TARGET}.tmp
|
|
chmod +x ${.TARGET}.tmp
|
|
mv ${.TARGET}.tmp ${.TARGET}
|
|
|
|
.include <bsd.test.mk>
|