#!/bin/bash if [ "$JEHANNE" = "" ]; then echo ./hacking/QA.sh requires the shell started by ./hacking/devshell.sh exit 1 fi trap : 2 $JEHANNE/hacking/bin/ufs -d=0 -root=$JEHANNE & ufspid=$! export machineflag=pc if [ "$(uname)" = "Linux" ] && [ -e /dev/kvm ]; then export kvmflag='-enable-kvm' export machineflag='pc,accel=kvm' if [ ! -w /dev/kvm ]; then # we don't have access as a regular user export kvmdo=sudo fi fi if [ "$DISK" = "" ]; then export DISK=$JEHANNE/hacking/sample-disk.img fi if [ -a $DISK ]; then bootDisk="-device ahci,id=ahci -drive id=boot,file=$DISK,index=0,cache=writeback,if=none -device ide-drive,drive=boot,bus=ahci.0" fi if [ "$KERNDIR" = "" ]; then KERNDIR=$JEHANNE/arch/$ARCH/kern/ fi if [ "$KERNEL" = "" ]; then KERNEL=jehanne.32bit fi cd $KERNDIR read -r cmd <