Files
Cody Boone Ferguson 794903b627 Add 2005/sykes/try.sh and test.sh + make test rule
The try.sh is different from others in that it is a loop showing a menu
with different options to use the emulator. It notes at the start of
each iteration that one has to hit ctrl-c or whatever they have set
their interrupt as.

The test.sh is run by make test. The exit status is ignored as it
returns non-zero.

Format/typo check README.md.

I am not done with this entry as the bugs.md should probably be updated
to note some things the author noted. This will have to come another
time.
2023-11-21 12:48:58 -08:00

22 lines
533 B
Bash
Executable File

#!/usr/bin/env bash
#
# 2005/sykes/test.sh - run the test suite
# make sure CC is set so that when we do make CC="$CC" it isn't empty. Doing it
# this way allows us to have the user specify a different compiler in an easy
# way.
if [[ -z "$CC" ]]; then
CC="cc"
fi
make CC="$CC" all >/dev/null || exit 1
# clear screen after compilation so that only the entry is shown
clear
echo "NOTE: you will have to hit ctrl-c to exit after the test." 1>&2
read -r -n 1 -p "Press any key to continue: "
echo 1>&2
./sykes 6502test 6 2>&1