Annotation of hatari/tests/test-scripting.sh, revision 1.1.1.1

1.1       root        1: #!/bin/sh
                      2: #
                      3: # script to test Hatari debugger and console script features
                      4: 
                      5: if [ $# -ne 1 ]; then
                      6:        echo "usage: ${0##*/} <EmuTOS 512k binary>"
                      7:        exit 1
                      8: fi
                      9: 
                     10: etos=$1
                     11: if [ \! -f $etos ]; then
                     12:        echo "ERROR: given EmuTOS image file '$etos' doesn't exist!"
                     13:        exit 1
                     14: fi
                     15: 
                     16: hpath=../src
                     17: if [ \! -d $hpath ]; then
                     18:        echo "ERROR: Hatari source directory '$path' missing!"
                     19:        exit 1
                     20: fi
                     21: 
                     22: hatari=$hpath/hatari
                     23: if [ \! -x $hatari ]; then
                     24:        echo "ERROR: Hatari binary '$hatari' missing!"
                     25:        exit 1
                     26: fi
                     27: 
                     28: console=../python-ui/hatari-console.py
                     29: if [ \! -x $console ]; then
                     30:        echo "ERROR: Hatari console script '$console' missing!"
                     31:        exit 1
                     32: fi
                     33: 
                     34: # Enable extra GCC mudflap options in case Hatari's compiled with it:
                     35: #   http://gcc.gnu.org/wiki/Mudflap_Pointer_Debugging
                     36: export MUDFLAP_OPTIONS="-viol-gdb -internal-checking -wipe-stack -wipe-heap"
                     37: 
                     38: echo "TESTING: debugger input file"
                     39: echo "============================"
                     40: cmd="$hatari --sound off --machine falcon --tos $etos --dsp emu --parse debugui/debugger.ini"
                     41: echo $cmd
                     42: $cmd
                     43: 
                     44: echo
                     45: echo "TESTING: console input file"
                     46: echo "==========================="
                     47: PATH=$hpath:$PATH $console debugui/console.ini --exit --

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.