2021-07-06 01:52:02 +00:00
|
|
|
|
2021-07-06 02:28:45 +00:00
|
|
|
TEST_AHELLO_M80 := $(PATH_BIN)/test/ahello-m80
|
2021-07-06 01:52:02 +00:00
|
|
|
BUILD_HELP += \\n\\t* $(TEST_AHELLO_M80)/ahello.com\\n\\t* test-ahello-m80-run\\n\\t* test-ahello-m80-assert
|
|
|
|
|
|
|
|
$(TEST_AHELLO_M80):
|
|
|
|
$(call mb_mkdir,$(TEST_AHELLO_M80))
|
2024-06-21 18:59:04 +00:00
|
|
|
$(call mb_package_emuctl,$(TEST_AHELLO_M80))
|
|
|
|
$(call mb_package_macro80,$(TEST_AHELLO_M80))
|
|
|
|
$(call mb_package_nextor,$(TEST_AHELLO_M80))
|
2021-07-06 01:52:02 +00:00
|
|
|
|
|
|
|
$(TEST_AHELLO_M80)/%.mac: test/ahello-m80/%.mac | $(TEST_AHELLO_M80)
|
|
|
|
$(call mb_unix2dos,$<,$@)
|
|
|
|
|
|
|
|
$(TEST_AHELLO_M80)/ahello.rel: $(TEST_AHELLO_M80)/ahello.mac
|
|
|
|
$(call mb_autoexec_cmd,$(TEST_AHELLO_M80),m80 =ahello/Z)
|
2024-06-21 18:59:04 +00:00
|
|
|
$(call mb_openmsx_dosctl,$(TEST_AHELLO_M80))
|
2021-07-06 01:52:02 +00:00
|
|
|
|
|
|
|
$(TEST_AHELLO_M80)/ahello.hex: $(TEST_AHELLO_M80)/ahello.rel
|
|
|
|
$(call mb_autoexec_cmd,$(TEST_AHELLO_M80),l80 ahello$(MB_COMMA)ahello/N/X/Y/E)
|
2024-06-21 18:59:04 +00:00
|
|
|
$(call mb_openmsx_dosctl,$(TEST_AHELLO_M80))
|
2021-07-06 01:52:02 +00:00
|
|
|
|
|
|
|
$(TEST_AHELLO_M80)/ahello.com: $(TEST_AHELLO_M80)/ahello.hex
|
2024-06-21 20:43:39 +00:00
|
|
|
$(call mb_autoexec_cmd,$(TEST_AHELLO_M80),hextocom ahello)
|
|
|
|
$(call mb_openmsx_dosctl,$(TEST_AHELLO_M80))
|
2021-07-06 01:52:02 +00:00
|
|
|
|
|
|
|
.PHONY: test-ahello-m80-run
|
|
|
|
test-ahello-m80-run: $(TEST_AHELLO_M80)/ahello.com
|
|
|
|
$(call mb_autoexec_open_gui,$(TEST_AHELLO_M80))
|
2024-06-21 18:59:04 +00:00
|
|
|
$(call mb_openmsx_dosctl,$(TEST_AHELLO_M80))
|
2021-07-06 01:52:02 +00:00
|
|
|
|
|
|
|
.PHONY: test-ahello-m80-assert
|
|
|
|
test-ahello-m80-assert: $(TEST_AHELLO_M80)/ahello.com
|
2024-06-26 01:28:33 +00:00
|
|
|
$(call mb_delete,$(TEST_AHELLO_M80)/ahello.out)
|
2024-06-26 00:26:48 +00:00
|
|
|
$(call mb_autoexec_cmd_test,$(TEST_AHELLO_M80),ahello > ahello.out)
|
2024-06-21 18:59:04 +00:00
|
|
|
$(call mb_openmsx_dosctl,$(TEST_AHELLO_M80))
|
2024-06-26 00:26:48 +00:00
|
|
|
grep "M80: Hello world..." $(TEST_AHELLO_M80)/ahello.out
|