aboutsummaryrefslogtreecommitdiff
path: root/sbin/newfs/Makefile
diff options
context:
space:
mode:
authorPoul-Henning Kamp <phk@FreeBSD.org>2002-03-19 21:05:29 +0000
committerPoul-Henning Kamp <phk@FreeBSD.org>2002-03-19 21:05:29 +0000
commit89fb8ee796263407b2396378b7076c0350b9e5cc (patch)
treeefe73699db1df391f9b4fcd88000d3a2f42d5ede /sbin/newfs/Makefile
parent1f31a77ce82ed76f43ffaf78b41440023f188121 (diff)
downloadsrc-89fb8ee796263407b2396378b7076c0350b9e5cc.tar.gz
src-89fb8ee796263407b2396378b7076c0350b9e5cc.zip
Add the undocumented -R option to disable randomness for regression-testing.
Add a couple of simple regression tests accessible with "make test", they depend on the md(4) driver. FYI I have also tried running the test against a week old newfs and it passed.
Notes
Notes: svn path=/head/; revision=92722
Diffstat (limited to 'sbin/newfs/Makefile')
-rw-r--r--sbin/newfs/Makefile6
1 files changed, 6 insertions, 0 deletions
diff --git a/sbin/newfs/Makefile b/sbin/newfs/Makefile
index c172555a28f9..f12e266917e0 100644
--- a/sbin/newfs/Makefile
+++ b/sbin/newfs/Makefile
@@ -7,3 +7,9 @@ WARNS?= 2
MAN= newfs.8
.include <bsd.prog.mk>
+
+test: ${PROG}
+ sh ${.CURDIR}/runtest01.sh
+ sh ${.CURDIR}/runtest00.sh | tee _.test
+ diff --ignore-matching-lines=FreeBSD _.test ${.CURDIR}/ref.test
+ echo All Tests Passed