test.sh (105513) | test.sh (120878) |
---|---|
1#!/bin/sh | 1#!/bin/sh |
2# $FreeBSD: head/sbin/gbde/test.sh 105513 2002-10-20 11:16:13Z phk $ | 2# $FreeBSD: head/sbin/gbde/test.sh 120878 2003-10-07 09:31:51Z phk $ |
3 4set -e 5 6MD=99 | 3 4set -e 5 6MD=99 |
7mdconfig -d -u $MD || true | 7mdconfig -d -u $MD > /dev/null 2>&1 || true |
8 9mdconfig -a -t malloc -s 1m -u $MD 10 11D=/dev/md$MD 12 13./gbde init $D -P foo -L /tmp/_l1 14./gbde setkey $D -p foo -l /tmp/_l1 -P bar -L /tmp/_l1 15./gbde setkey $D -p bar -l /tmp/_l1 -P foo -L /tmp/_l1 --- 18 unchanged lines hidden (view full) --- 34./gbde setkey $D -p foo -P bar 35./gbde setkey $D -p bar -P foo 36 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 | 8 9mdconfig -a -t malloc -s 1m -u $MD 10 11D=/dev/md$MD 12 13./gbde init $D -P foo -L /tmp/_l1 14./gbde setkey $D -p foo -l /tmp/_l1 -P bar -L /tmp/_l1 15./gbde setkey $D -p bar -l /tmp/_l1 -P foo -L /tmp/_l1 --- 18 unchanged lines hidden (view full) --- 34./gbde setkey $D -p foo -P bar 35./gbde setkey $D -p bar -P foo 36 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 || true | 42mdconfig -d -u $MD 43 44mdconfig -a -t malloc -s 1m -u $MD 45uudecode -p image.uu | bzcat > $D 46gbde attach $D -p foo 47fsck_ffs ${D}.bde 48gbde detach $D 49mdconfig -d -u $MD 50 51 |
43echo "***********" 44echo "Test passed" 45echo "***********" 46exit 0 | 52echo "***********" 53echo "Test passed" 54echo "***********" 55exit 0 |