www

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

gui-sh.sh (540B)


      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 xterm -e ${os_filename} &
     13 pid=$!
     14 runsikulix -r test/check-gui-sh.sikuli && exitcode=$? || exitcode=$?
     15 
     16 ./utils/take-screenshots.sh "./deploy-screenshots/$(basename "$0" .sh).png"
     17 
     18 kill $pid
     19 
     20 exit $exitcode