mirror of
https://github.com/mauiaaron/apple2.git
synced 2025-01-11 14:30:08 +00:00
Rename testvm -> testdisplay
This commit is contained in:
parent
ab5be45000
commit
bdec0fbe44
12
Makefile.am
12
Makefile.am
@ -83,19 +83,19 @@ LOG_DRIVER = testcpu ## hack TODO/FIXME ... should be wrapper shell script acce
|
|||||||
A2_TEST_SOURCES = $(apple2ix_SOURCES)
|
A2_TEST_SOURCES = $(apple2ix_SOURCES)
|
||||||
A2_TEST_CFLAGS = -DTESTING=1 -Isrc/greatest
|
A2_TEST_CFLAGS = -DTESTING=1 -Isrc/greatest
|
||||||
|
|
||||||
TESTS = testcpu testvm
|
TESTS = testcpu testdisplay
|
||||||
check_PROGRAMS = testcpu testvm
|
check_PROGRAMS = testcpu testdisplay
|
||||||
|
|
||||||
testcpu_SOURCES = src/test/testcpu.c $(A2_TEST_SOURCES) $(EXTRA_apple2ix_SOURCES)
|
testcpu_SOURCES = src/test/testcpu.c $(A2_TEST_SOURCES) $(EXTRA_apple2ix_SOURCES)
|
||||||
testcpu_CFLAGS = $(apple2ix_CFLAGS) $(A2_TEST_CFLAGS)
|
testcpu_CFLAGS = $(apple2ix_CFLAGS) $(A2_TEST_CFLAGS)
|
||||||
testcpu_LDFLAGS = $(apple2ix_LDFLAGS)
|
testcpu_LDFLAGS = $(apple2ix_LDFLAGS)
|
||||||
testcpu_DEPENDENCIES = $(apple2ix_DEPENDENCIES)
|
testcpu_DEPENDENCIES = $(apple2ix_DEPENDENCIES)
|
||||||
|
|
||||||
testvm_SOURCES = src/test/testvm.c $(A2_TEST_SOURCES) $(VM_SRC) $(META_SRC)
|
testdisplay_SOURCES = src/test/testdisplay.c $(A2_TEST_SOURCES) $(VM_SRC) $(META_SRC)
|
||||||
# HACK FIXME TODO NOTE: why don't these CFLAGS here pass down to the .S and .c files in the subdirectories?
|
# HACK FIXME TODO NOTE: why don't these CFLAGS here pass down to the .S and .c files in the subdirectories?
|
||||||
testvm_CFLAGS = $(apple2ix_CFLAGS) $(A2_TEST_CFLAGS) -UAUDIO_ENABLED -UVIDEO_X11 -UINTERFACE_CLASSIC
|
testdisplay_CFLAGS = $(apple2ix_CFLAGS) $(A2_TEST_CFLAGS) -UAUDIO_ENABLED -UVIDEO_X11 -UINTERFACE_CLASSIC
|
||||||
testvm_LDFLAGS = $(apple2ix_LDFLAGS)
|
testdisplay_LDFLAGS = $(apple2ix_LDFLAGS)
|
||||||
testvm_DEPENDENCIES = @VM_O@ @META_O@
|
testdisplay_DEPENDENCIES = @VM_O@ @META_O@
|
||||||
|
|
||||||
###############################################################################
|
###############################################################################
|
||||||
# Misc
|
# Misc
|
||||||
|
@ -34,7 +34,7 @@ static bool test_do_reboot = true;
|
|||||||
|
|
||||||
extern unsigned char joy_button0;
|
extern unsigned char joy_button0;
|
||||||
|
|
||||||
static void testvm_setup(void *arg) {
|
static void testdisplay_setup(void *arg) {
|
||||||
apple_ii_64k[0][MIXSWITCH_ADDR] = 0x00;
|
apple_ii_64k[0][MIXSWITCH_ADDR] = 0x00;
|
||||||
apple_ii_64k[0][WATCHPOINT_ADDR] = 0x00;
|
apple_ii_64k[0][WATCHPOINT_ADDR] = 0x00;
|
||||||
input_counter = 0;
|
input_counter = 0;
|
||||||
@ -45,15 +45,15 @@ static void testvm_setup(void *arg) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static void testvm_teardown(void *arg) {
|
static void testdisplay_teardown(void *arg) {
|
||||||
if (input_str) {
|
if (input_str) {
|
||||||
free(input_str);
|
free(input_str);
|
||||||
}
|
}
|
||||||
input_str = NULL;
|
input_str = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void testvm_breakpoint(void *arg) {
|
static void testdisplay_breakpoint(void *arg) {
|
||||||
fprintf(GREATEST_STDOUT, "set breakpoint on testvm_breakpoint to check for problems...\n");
|
fprintf(GREATEST_STDOUT, "set breakpoint on testdisplay_breakpoint to check for problems...\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
static void sha1_to_str(const uint8_t * const md, char *buf) {
|
static void sha1_to_str(const uint8_t * const md, char *buf) {
|
||||||
@ -138,7 +138,7 @@ void c_interface_print(int x, int y, const int cs, const char *s) {
|
|||||||
|
|
||||||
|
|
||||||
TEST test_boot_disk() {
|
TEST test_boot_disk() {
|
||||||
char *disk = "./disks/testvm1.dsk.gz";
|
char *disk = "./disks/testdisplay1.dsk.gz";
|
||||||
ASSERT(!c_new_diskette_6(0, disk, 0));
|
ASSERT(!c_new_diskette_6(0, disk, 0));
|
||||||
|
|
||||||
BOOT_TO_DOS();
|
BOOT_TO_DOS();
|
||||||
@ -437,13 +437,13 @@ TEST test_80col_hires() {
|
|||||||
|
|
||||||
extern void cpu_thread(void *dummyptr);
|
extern void cpu_thread(void *dummyptr);
|
||||||
|
|
||||||
GREATEST_SUITE(test_suite_vm) {
|
GREATEST_SUITE(test_suite_display) {
|
||||||
|
|
||||||
srandom(time(NULL));
|
srandom(time(NULL));
|
||||||
|
|
||||||
GREATEST_SET_SETUP_CB(testvm_setup, NULL);
|
GREATEST_SET_SETUP_CB(testdisplay_setup, NULL);
|
||||||
GREATEST_SET_TEARDOWN_CB(testvm_teardown, NULL);
|
GREATEST_SET_TEARDOWN_CB(testdisplay_teardown, NULL);
|
||||||
GREATEST_SET_BREAKPOINT_CB(testvm_breakpoint, NULL);
|
GREATEST_SET_BREAKPOINT_CB(testdisplay_breakpoint, NULL);
|
||||||
|
|
||||||
do_logging = false;// silence regular emulator logging
|
do_logging = false;// silence regular emulator logging
|
||||||
setenv("APPLE2IXCFG", "nosuchconfigfile", 1);
|
setenv("APPLE2IXCFG", "nosuchconfigfile", 1);
|
||||||
@ -580,12 +580,12 @@ GREATEST_SUITE(test_suite_vm) {
|
|||||||
pthread_mutex_unlock(&interface_mutex);
|
pthread_mutex_unlock(&interface_mutex);
|
||||||
}
|
}
|
||||||
|
|
||||||
SUITE(test_suite_vm);
|
SUITE(test_suite_display);
|
||||||
GREATEST_MAIN_DEFS();
|
GREATEST_MAIN_DEFS();
|
||||||
|
|
||||||
int main(int argc, char **argv) {
|
int main(int argc, char **argv) {
|
||||||
GREATEST_MAIN_BEGIN();
|
GREATEST_MAIN_BEGIN();
|
||||||
RUN_SUITE(test_suite_vm);
|
RUN_SUITE(test_suite_display);
|
||||||
GREATEST_MAIN_END();
|
GREATEST_MAIN_END();
|
||||||
}
|
}
|
||||||
|
|
Loading…
x
Reference in New Issue
Block a user