shithub: getest

ref: f242ed181ff7118392737a3493e840aed9de4be1
dir: /grind.rc/

View raw version
#!/bin/rc

dev = testdev.fs
gefs = ../$O.out

fn ream {
	mk all && 6.out -r $user -f $dev
}

fn startfs {
	$O.out -A -f $dev
}

fn endfs {
	kill $O.out | rc
	while(test -f /n/gefs.grid)
		sleep 0.1
}

fn build9 {@{
	rfork ne
	m
	cd /n/gefs
	. /sys/lib/rootstub
	if(! test -e plan9front)
		git/clone /dist/plan9front
	bind -c $objtype/lib /$objtype/lib
	bind -c plan9front/sys/include /sys/include
	bind -c tmp /tmp
	cd plan9front/sys/src
	mk clean >> /tmp/log
	mk all >> /tmp/log
}}

fn buildself {@{
	rfork ne
	m
	cd /n/gefs
	if(! test -e gefs)
		git/clone $home/src/gefs
	cd gefs
	mk clean > /tmp/log
	mk all > /tmp/log
}}

fn replay_fast {
	ream
	mount -c 

	build9
	endfs
}

fn replay_slow {
}

fn filldisk {
}

fn lotsa9 {
}

fn lotsaself {
}

dev = testdev.fs
rm -f $dev
dd -if /dev/zero -of $dev -bs 1kk -count 512
replay_fast