Skip to content

Commit 3cd866e

Browse files
committed
skeletal atari8-dos test
1 parent 9143a35 commit 3cd866e

File tree

5 files changed

+30
-0
lines changed

5 files changed

+30
-0
lines changed

test/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,3 +41,4 @@ add_test_target(nes-unrom)
4141
add_test_target(nes-unrom-512)
4242
add_test_target(atari2600-4k)
4343
add_test_target(atari2600-3e)
44+
add_test_target(atari8-dos)

test/atari8-dos/CMakeLists.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
cmake_minimum_required(VERSION 3.18)
2+
3+
project(test-atari8-dos LANGUAGES C)
4+
5+
include(./test.cmake)

test/atari8-dos/hw.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
2+
#include <stdio.h>
3+
4+
int main(void) {
5+
puts("atari says hello");
6+
for(;;);
7+
}

test/atari8-dos/test.cmake

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
2+
include(../test.cmake)
3+
4+
#TODO; zp test
5+
#TODO; .bss test
6+
#TODO; .data test
7+
8+
add_a8_test(hw ../atari8-dos)
9+
set_property(TEST test-hw PROPERTY ENVIRONMENT EMUTEST_FB_CRC_PASS=000000000)

test/test.cmake

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,14 @@ function(add_no_compile_test target)
3131
set_property(TEST ${target}-no-compile PROPERTY WILL_FAIL YES)
3232
endfunction()
3333

34+
function(add_a8_test name)
35+
set(source_dir ".")
36+
if(ARGC GREATER 1)
37+
set(source_dir ${ARGV1})
38+
endif()
39+
add_emutest_test(${name} a26 ${source_dir} LIBRETRO_ATARI800_CORE)
40+
endfunction()
41+
3442
function(add_vcs_test name)
3543
set(source_dir ".")
3644
if(ARGC GREATER 1)

0 commit comments

Comments
 (0)