2024-06-26 00:26:48 +00:00
|
|
|
|
2024-06-26 01:21:06 +00:00
|
|
|
TEST_DIST_QA_DOS2 := $(PATH_BIN)/test/dist-qa-dos2
|
|
|
|
TEST_DIST_QA_DOS2_DEPS := $(subst dist,dist-qa-dos2,$(TEST_DIST_DEPS))
|
|
|
|
BUILD_HELP += \\n\\t* test-dist-qa-dos2-run\\n\\t* test-dist-qa-dos2-assert
|
2024-06-26 00:26:48 +00:00
|
|
|
|
|
|
|
$(TEST_DIST_QA_DOS2):
|
|
|
|
$(call mb_mkdir,$(TEST_DIST_QA_DOS2))
|
|
|
|
$(call mb_package_emuctl,$(TEST_DIST_QA_DOS2))
|
|
|
|
$(call mb_package_dos2,$(TEST_DIST_QA_DOS2))
|
|
|
|
|
2024-06-26 01:21:06 +00:00
|
|
|
$(TEST_DIST_QA_DOS2)/%: bin/test/dist/% | $(TEST_DIST_QA_DOS2) $(TEST_DIST_DEPS)
|
2024-06-26 00:26:48 +00:00
|
|
|
$(call mb_copy,$<,$@)
|
|
|
|
|
|
|
|
.PHONY: test-dist-qa-dos2-run
|
2024-06-26 01:21:06 +00:00
|
|
|
test-dist-qa-dos2-run: | $(TEST_DIST_QA_DOS2_DEPS)
|
2024-06-27 17:09:38 +00:00
|
|
|
$(call mb_autoexec_open_gui80,$(TEST_DIST_QA_DOS2))
|
2024-06-26 00:26:48 +00:00
|
|
|
$(call mb_openmsx_dosctl,$(TEST_DIST_QA_DOS2))
|
|
|
|
|
|
|
|
.PHONY: test-dist-qa-dos2-assert
|
2024-06-26 01:21:06 +00:00
|
|
|
test-dist-qa-dos2-assert: | $(TEST_DIST_QA_DOS2_DEPS)
|
2024-06-26 01:28:33 +00:00
|
|
|
$(call mb_delete,$(TEST_DIST_QA_DOS2)/ahello1.out)
|
|
|
|
$(call mb_delete,$(TEST_DIST_QA_DOS2)/ahello2.out)
|
2024-06-26 00:26:48 +00:00
|
|
|
$(call mb_autoexec_write_default,$(TEST_DIST_QA_DOS2))
|
2024-06-27 14:58:21 +00:00
|
|
|
$(call mb_autoexec_append_safe_test,$(TEST_DIST_QA_DOS2),ahello1 > ahello1.out)
|
|
|
|
$(call mb_autoexec_append_safe_test,$(TEST_DIST_QA_DOS2),ahello2 > ahello2.out)
|
2024-06-26 00:26:48 +00:00
|
|
|
$(call mb_autoexec_append_exit,$(TEST_DIST_QA_DOS2))
|
|
|
|
$(call mb_openmsx_dosctl,$(TEST_DIST_QA_DOS2))
|
|
|
|
grep "M80: Hello world..." $(TEST_DIST_QA_DOS2)/ahello1.out
|
|
|
|
grep "SDCC: Hello world..." $(TEST_DIST_QA_DOS2)/ahello2.out
|