diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index 05872ae69..55b2339e1 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -41,3 +41,4 @@ add_test_target(nes-unrom) add_test_target(nes-unrom-512) add_test_target(atari2600-4k) add_test_target(atari2600-3e) +add_test_target(atari8-dos) diff --git a/test/atari8-dos/CMakeLists.txt b/test/atari8-dos/CMakeLists.txt new file mode 100644 index 000000000..a90f04aa5 --- /dev/null +++ b/test/atari8-dos/CMakeLists.txt @@ -0,0 +1,5 @@ +cmake_minimum_required(VERSION 3.18) + +project(test-atari8-dos LANGUAGES C) + +include(./test.cmake) diff --git a/test/atari8-dos/hw.c b/test/atari8-dos/hw.c new file mode 100644 index 000000000..1992c42c5 --- /dev/null +++ b/test/atari8-dos/hw.c @@ -0,0 +1,7 @@ + +#include + +int main(void) { + puts("atari says hello"); + for(;;); +} diff --git a/test/atari8-dos/test.cmake b/test/atari8-dos/test.cmake new file mode 100644 index 000000000..e898a0746 --- /dev/null +++ b/test/atari8-dos/test.cmake @@ -0,0 +1,9 @@ + +include(../test.cmake) + +#TODO; zp test +#TODO; .bss test +#TODO; .data test + +add_a8_test(hw ../atari8-dos) +set_property(TEST test-hw PROPERTY ENVIRONMENT EMUTEST_FB_CRC_PASS=000000000) diff --git a/test/test.cmake b/test/test.cmake index 9ed257528..95d20ade7 100644 --- a/test/test.cmake +++ b/test/test.cmake @@ -31,6 +31,14 @@ function(add_no_compile_test target) set_property(TEST ${target}-no-compile PROPERTY WILL_FAIL YES) endfunction() +function(add_a8_test name) + set(source_dir ".") + if(ARGC GREATER 1) + set(source_dir ${ARGV1}) + endif() + add_emutest_test(${name} a26 ${source_dir} LIBRETRO_ATARI800_CORE) +endfunction() + function(add_vcs_test name) set(source_dir ".") if(ARGC GREATER 1)