Skip to content

Commit

Permalink
skeletal atari8-dos test
Browse files Browse the repository at this point in the history
  • Loading branch information
cwedgwood committed Dec 12, 2023
1 parent 9143a35 commit 3cd866e
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 0 deletions.
1 change: 1 addition & 0 deletions test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
5 changes: 5 additions & 0 deletions test/atari8-dos/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
cmake_minimum_required(VERSION 3.18)

project(test-atari8-dos LANGUAGES C)

include(./test.cmake)
7 changes: 7 additions & 0 deletions test/atari8-dos/hw.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@

#include <stdio.h>

int main(void) {
puts("atari says hello");
for(;;);
}
9 changes: 9 additions & 0 deletions test/atari8-dos/test.cmake
Original file line number Diff line number Diff line change
@@ -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)
8 changes: 8 additions & 0 deletions test/test.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 3cd866e

Please sign in to comment.