www

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

gui-sh-mac.sh (627B)


      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 # Force the path to be relative or absolute, but with at least one /
      8 # Otherwise, the command will be searched in the $PATH, instead of using the
      9 # given file.
     10 os_filename="$(dirname "$1")/$(basename "$1")"
     11 
     12 osascript -e 'tell app "Terminal" to activate'
     13 osascript -e 'tell app "Terminal" to do script "'"$PWD"'/os.bat"' &
     14 pid=$!
     15 runsikulix -r test/check-gui-sh-mac.sikuli && exitcode=$? || exitcode=$?
     16 
     17 screencapture "./deploy-screenshots/$(basename "$0" .sh).png"
     18 
     19 kill $pid || true
     20 
     21 exit $exitcode