Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/tests/share/mk Skip test requiring /usr/bin/mandoc if it doe...



details:   https://anonhg.NetBSD.org/src/rev/795c5987d134
branches:  trunk
changeset: 781227:795c5987d134
user:      gson <gson%NetBSD.org@localhost>
date:      Tue Aug 28 15:22:18 2012 +0000

description:
Skip test requiring /usr/bin/mandoc if it does not exist, as is the case
when text.tgz has not been installed.

diffstat:

 tests/share/mk/t_prog.sh |  3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diffs (13 lines):

diff -r 1eb142a3c936 -r 795c5987d134 tests/share/mk/t_prog.sh
--- a/tests/share/mk/t_prog.sh  Tue Aug 28 07:55:01 2012 +0000
+++ b/tests/share/mk/t_prog.sh  Tue Aug 28 15:22:18 2012 +0000
@@ -27,6 +27,9 @@
 # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 
 atf_test_case defaults__build_and_install
+defaults__build_and_install_head() {
+       atf_set "require.progs" "/usr/bin/mandoc"
+}
 defaults__build_and_install_body() {
        cat >hello.c <<EOF
 #include <stdio.h>



Home | Main Index | Thread Index | Old Index