REGRESS 718 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. trap : 2
  2. $HARVEY/util/ufs -root=$HARVEY &
  3. pids=$!
  4. if [ "$(uname)" = "Linux" ] && ([ -O /dev/kvm ] || [ -G /dev/kvm ]); then
  5. kvmflag='-enable-kvm'
  6. else
  7. kvmflag=''
  8. fi
  9. (
  10. sleep 5
  11. $HARVEY/util/telnet localhost:5555 <<-EOF
  12. srv tcp!10.0.2.2!5640 k
  13. mount -a /srv/k /
  14. cd /amd64/bin/regress
  15. for(f in *){ echo \$f; ./\$f }
  16. exit
  17. EOF
  18. )&
  19. pids="$pids $!"
  20. qemu-system-x86_64 -s -cpu Opteron_G1 -smp 1 -m 2048 \
  21. $kvmflag \
  22. -serial stdio \
  23. --machine pc \
  24. -net nic,model=rtl8139 \
  25. -net user,hostfwd=tcp::5555-:1522 \
  26. -net dump,file=/tmp/vm0.pcap \
  27. -redir tcp:17010::17010 \
  28. -redir tcp:17013::17013 \
  29. -append "nobootprompt=tcp maxcores=1024 fs=10.0.2.2 auth=10.0.2.2 param" \
  30. -kernel harvey.32bit $*
  31. kill $pids
  32. wait