File:  [HATARI the Atari ST Emulator] / hatari / tests / debugger / test-scripting.sh
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Tue Apr 9 08:49:07 2019 UTC (7 years, 3 months ago) by root
Branches: hatari, MAIN
CVS tags: hatari02210, hatari02200, hatari02100, hatari02000, hatari01900, hatari01800, hatari01700, hatari01620, hatari01610, hatari01600, hatari01500, HEAD
hatari 1.5.0

#!/bin/sh
#
# script to test Hatari debugger and console script features

if [ $# -ne 1 ]; then
	echo "usage: ${0##*/} <EmuTOS 512k binary>"
	exit 1
fi

etos=$1
if [ \! -f $etos ]; then
	echo "ERROR: given EmuTOS image file '$etos' doesn't exist!"
	exit 1
fi

hpath=../build/src
if [ \! -d $hpath ]; then
	echo "ERROR: Hatari source directory '$path' missing!"
	exit 1
fi

hatari=$hpath/hatari
if [ \! -x $hatari ]; then
	echo "ERROR: Hatari binary '$hatari' missing!"
	exit 1
fi

console=../tools/hconsole/hconsole.py
if [ \! -x $console ]; then
	echo "ERROR: Hatari console script '$console' missing!"
	exit 1
fi

# Enable extra GCC mudflap options in case Hatari's compiled with it:
#   http://gcc.gnu.org/wiki/Mudflap_Pointer_Debugging
export MUDFLAP_OPTIONS="-viol-gdb -internal-checking -wipe-stack -wipe-heap"

echo "TESTING: debugger input file"
echo "============================"
cmd="$hatari --sound off --machine falcon --tos $etos --dsp emu --parse debugui/debugger.ini"
echo $cmd
$cmd

echo
echo "TESTING: console input file"
echo "==========================="
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.