www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README

bochs.sh (532B)


      1 #!/bin/sh
      2 set -e
      3 
      4 if test $# -ne 1 || test "$1" = '-h' -o "$1" = '--help'; then
      5     echo "Usage: $0 operating_system_file"
      6 fi
      7 os_filename="$1"
      8 
      9 cat > "build/bochsrc" <<EOF
     10 floppya: 1_44=${os_filename}, status=inserted
     11 boot: floppy
     12 display_library: sdl
     13 EOF
     14 
     15 echo "continue" > "build/bochscontinue"
     16 
     17 bochs -qf "build/bochsrc" < "build/bochscontinue" &
     18 pid=$!
     19 runsikulix -r test/check-gradient.sikuli && exitcode=$? || exitcode=$?
     20 
     21 ./utils/take-screenshots.sh "./deploy-screenshots/$(basename "$0" .sh).png"
     22 
     23 kill $pid
     24 
     25 exit $exitcode