test.sh (120878) | test.sh (121169) |
---|---|
1#!/bin/sh | 1#!/bin/sh |
2# $FreeBSD: head/sbin/gbde/test.sh 120878 2003-10-07 09:31:51Z phk $ | 2# $FreeBSD: head/sbin/gbde/test.sh 121169 2003-10-17 19:52:07Z phk $ |
3 4set -e 5 6MD=99 7mdconfig -d -u $MD > /dev/null 2>&1 || true 8 9mdconfig -a -t malloc -s 1m -u $MD 10 --- 26 unchanged lines hidden (view full) --- 37./gbde setkey $D -p foo -n 2 -P foo2 38./gbde setkey $D -p foo2 -n 3 -P foo3 39./gbde setkey $D -p foo3 -n 4 -P foo4 40./gbde setkey $D -p foo4 -n 1 -P foo1 41 42mdconfig -d -u $MD 43 44mdconfig -a -t malloc -s 1m -u $MD | 3 4set -e 5 6MD=99 7mdconfig -d -u $MD > /dev/null 2>&1 || true 8 9mdconfig -a -t malloc -s 1m -u $MD 10 --- 26 unchanged lines hidden (view full) --- 37./gbde setkey $D -p foo -n 2 -P foo2 38./gbde setkey $D -p foo2 -n 3 -P foo3 39./gbde setkey $D -p foo3 -n 4 -P foo4 40./gbde setkey $D -p foo4 -n 1 -P foo1 41 42mdconfig -d -u $MD 43 44mdconfig -a -t malloc -s 1m -u $MD |
45uudecode -p image.uu | bzcat > $D | 45if [ -f image.uu ] ; then 46 uudecode -p image.uu | bzcat > $D 47else 48 uudecode -p ${1}/image.uu | bzcat > $D 49fi |
46gbde attach $D -p foo 47fsck_ffs ${D}.bde 48gbde detach $D 49mdconfig -d -u $MD 50 51 52echo "***********" 53echo "Test passed" 54echo "***********" 55exit 0 | 50gbde attach $D -p foo 51fsck_ffs ${D}.bde 52gbde detach $D 53mdconfig -d -u $MD 54 55 56echo "***********" 57echo "Test passed" 58echo "***********" 59exit 0 |