aboutsummaryrefslogtreecommitdiffstats
path: root/misc
diff options
context:
space:
mode:
authorobrien <obrien@FreeBSD.org>2012-12-05 01:34:12 +0800
committerobrien <obrien@FreeBSD.org>2012-12-05 01:34:12 +0800
commit3a20df02e40792a597329cf7ec7c74cd1823869c (patch)
tree4830eccc6ac4ff34da678eafa9ded287be5b8e96 /misc
parentb1901121d80dad3c07639f6be2249ca2655c6941 (diff)
downloadfreebsd-ports-graphics-3a20df02e40792a597329cf7ec7c74cd1823869c.tar.gz
freebsd-ports-graphics-3a20df02e40792a597329cf7ec7c74cd1823869c.tar.zst
freebsd-ports-graphics-3a20df02e40792a597329cf7ec7c74cd1823869c.zip
Run the tests to ensure a good build.
Feature safe: yes
Diffstat (limited to 'misc')
-rw-r--r--misc/figlet/Makefile3
-rw-r--r--misc/figlet/files/patch-run-tests.sh9
2 files changed, 12 insertions, 0 deletions
diff --git a/misc/figlet/Makefile b/misc/figlet/Makefile
index ac9acaa2be6..afcce0e6b3f 100644
--- a/misc/figlet/Makefile
+++ b/misc/figlet/Makefile
@@ -23,6 +23,9 @@ MAKE_ENV= datadir=${DATADIR} prefix=${PREFIX}
MAN6= figlet.6
+post-build:
+ @ cd ${WRKSRC} && ${MAKE} check
+
do-install:
@ ${MKDIR} ${DATADIR}
@ ${INSTALL_PROGRAM} ${WRKSRC}/figlet ${PREFIX}/bin
diff --git a/misc/figlet/files/patch-run-tests.sh b/misc/figlet/files/patch-run-tests.sh
new file mode 100644
index 00000000000..ce16cfa732b
--- /dev/null
+++ b/misc/figlet/files/patch-run-tests.sh
@@ -0,0 +1,9 @@
+$FreeBSD$
+--- run-tests.sh.orig 2012-06-01 05:51:10.000000000 -0700
++++ run-tests.sh 2012-12-04 09:28:49.000000000 -0800
+@@ -7 +7 @@ TESTDIR=tests
+-OUTPUT=`mktemp`
++OUTPUT=`mktemp -t tmp.XXXXXXXXXX` # Per the Fedora release 8 (Werewolf) man page
+@@ -70 +70 @@ run_test 020 "specify font directory" \
+- "X=`mktemp -d`;cp fonts/script.flf \$X/foo.flf;$cmd -d\$X -ffoo;rm -Rf \$X"
++ "X=`mktemp -d -t tmp.XXXXXXXXXX`;cp fonts/script.flf \$X/foo.flf;$cmd -d\$X -ffoo;rm -Rf \$X"