2021-07-06 01:52:02 +00:00
|
|
|
|
|
|
|
TEST_AHELLO_SDCC := $(PATH_BIN)/test/ahello-sdcc
|
|
|
|
BUILD_HELP += \\n\\t* $(TEST_AHELLO_SDCC)/ahello.com\\n\\t* test-ahello-sdcc-run\\n\\t* test-ahello-sdcc-assert
|
|
|
|
|
|
|
|
$(TEST_AHELLO_SDCC):
|
|
|
|
$(call mb_mkdir,$(TEST_AHELLO_SDCC))
|
|
|
|
|
|
|
|
$(TEST_AHELLO_SDCC)/%.rel: test/ahello-sdcc/%.asm | $(TEST_AHELLO_SDCC)
|
2024-06-28 12:20:42 +00:00
|
|
|
$(call mb_sdcc_compile_asm,$@,$<)
|
2021-07-06 01:52:02 +00:00
|
|
|
|
|
|
|
$(TEST_AHELLO_SDCC)/ahello.hex: $(TEST_AHELLO_SDCC)/ahello.rel
|
2024-06-28 12:20:42 +00:00
|
|
|
$(call mb_sdcc_link_asm_dos,$(TEST_AHELLO_SDCC)/ahello.hex,$(TEST_AHELLO_SDCC)/ahello.rel)
|
2021-07-06 01:52:02 +00:00
|
|
|
|
|
|
|
$(TEST_AHELLO_SDCC)/ahello.com: $(TEST_AHELLO_SDCC)/ahello.hex
|
2024-06-28 12:20:42 +00:00
|
|
|
$(call mb_sdcc_hex2bin,$(TEST_AHELLO_SDCC)/ahello.hex,$(TEST_AHELLO_SDCC)/ahello.com)
|
2021-07-06 01:52:02 +00:00
|
|
|
|
|
|
|
.PHONY: test-ahello-sdcc-run
|
|
|
|
test-ahello-sdcc-run: $(TEST_AHELLO_SDCC)/ahello.com
|
2024-06-27 17:09:38 +00:00
|
|
|
$(call mb_autoexec_open_gui80,$(TEST_AHELLO_SDCC))
|
2024-06-21 18:59:04 +00:00
|
|
|
$(call mb_openmsx_dosctl,$(TEST_AHELLO_SDCC))
|
2021-07-06 01:52:02 +00:00
|
|
|
|
|
|
|
.PHONY: test-ahello-sdcc-assert
|
|
|
|
test-ahello-sdcc-assert: $(TEST_AHELLO_SDCC)/ahello.com
|
2024-06-26 01:28:33 +00:00
|
|
|
$(call mb_delete,$(TEST_AHELLO_SDCC)/ahello.out)
|
2024-06-27 17:09:38 +00:00
|
|
|
$(call mb_autoexec_safe_test,$(TEST_AHELLO_SDCC),ahello > ahello.out)
|
2024-06-21 18:59:04 +00:00
|
|
|
$(call mb_openmsx_dosctl,$(TEST_AHELLO_SDCC))
|
2024-06-26 00:26:48 +00:00
|
|
|
grep "SDCC: Hello world..." $(TEST_AHELLO_SDCC)/ahello.out
|