mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-27 11:55:06 +00:00
89fb8ee796
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.
20 lines
264 B
Bash
20 lines
264 B
Bash
#!/bin/sh
|
|
# $FreeBSD$
|
|
|
|
set -e
|
|
|
|
MD=99
|
|
(
|
|
for s in 1m 4m 60m 120m 240m 1g
|
|
do
|
|
(
|
|
mdconfig -d -u $MD || true
|
|
mdconfig -a -t malloc -s $s -u $MD
|
|
disklabel -r -w md$MD auto
|
|
./newfs -R /dev/md${MD}c
|
|
) 1>&2
|
|
md5 < /dev/md${MD}c
|
|
done
|
|
mdconfig -d -u $MD 1>&2 || true
|
|
)
|