Moved asserts to remove copy of mofified files after assert.
All checks were successful
Run test asserts / Test-Asserts (push) Successful in -9s

This commit is contained in:
Willem Cazander 2024-06-30 04:07:10 +02:00
parent b175f499d4
commit 6f677b6c43
10 changed files with 181 additions and 141 deletions

View file

@ -1,25 +1,27 @@
DIST_QA_DOS1 := $(PATH_BIN)/dist-qa-dos1
DIST_QA_DOS1_DEPS := $(subst dist,dist-qa-dos1,$(DIST_DEPS))
BUILD_HELP += \\n\\t* dist-qa-dos1-run\\n\\t* dist-qa-dos1-assert
DIST_QA_DOS1_MOD := dist-qa-dos1
DIST_QA_DOS1_SRC := $(PATH_SRC)/$(DIST_QA_DOS1_MOD)
DIST_QA_DOS1_BIN := $(PATH_BIN)/$(DIST_QA_DOS1_MOD)
DIST_QA_DOS1_DEPS := $(subst dist,$(DIST_QA_DOS1_MOD),$(DIST_DEPS))
BUILD_HELP += \\n\\t* $(DIST_QA_DOS1_BIN)/@run\\n\\t* $(DIST_QA_DOS1_BIN)/@assert
$(DIST_QA_DOS1):
$(call mb_mkdir,$(DIST_QA_DOS1))
$(call mb_msxhub_get_dos1_boot,$(DIST_QA_DOS1))
$(DIST_QA_DOS1_BIN):
$(call mb_mkdir,$(DIST_QA_DOS1_BIN))
$(call mb_msxhub_get_dos1_boot,$(DIST_QA_DOS1_BIN))
$(DIST_QA_DOS1)/%: bin/dist/% | $(DIST_QA_DOS1) $(DIST_DEPS)
$(DIST_QA_DOS1_BIN)/%: $(DIST_BIN)/% | $(DIST_QA_DOS1_BIN) $(DIST_DEPS)
$(call mb_copy,$<,$@)
.PHONY: dist-qa-dos1-run
dist-qa-dos1-run: | $(DIST_QA_DOS1_DEPS)
$(call mb_autoexec_show_gui80,$(DIST_QA_DOS1))
$(call mb_openmsx_dosctl,$(DIST_QA_DOS1))
.PHONY: $(DIST_QA_DOS1_BIN)/@run
$(DIST_QA_DOS1_BIN)/@run: | $(DIST_QA_DOS1_DEPS)
$(call mb_autoexec_show_gui80,$(DIST_QA_DOS1_BIN))
$(call mb_openmsx_dosctl,$(DIST_QA_DOS1_BIN))
.PHONY: dist-qa-dos1-assert
dist-qa-dos1-assert: | $(DIST_QA_DOS1_DEPS)
$(call mb_autoexec_write_default,$(DIST_QA_DOS1))
$(call mb_autoexec_append_safe_test,$(DIST_QA_DOS1),ahello1)
$(call mb_autoexec_append_safe_test,$(DIST_QA_DOS1),ahello2)
$(call mb_autoexec_append_exit,$(DIST_QA_DOS1))
$(call mb_openmsx_dosctl,$(DIST_QA_DOS1))
.PHONY: $(DIST_QA_DOS1_BIN)/@assert
$(DIST_QA_DOS1_BIN)/@assert: | $(DIST_QA_DOS1_DEPS)
$(call mb_autoexec_write_default,$(DIST_QA_DOS1_BIN))
$(call mb_autoexec_append_safe_test,$(DIST_QA_DOS1_BIN),ahello1)
$(call mb_autoexec_append_safe_test,$(DIST_QA_DOS1_BIN),ahello2)
$(call mb_autoexec_append_exit,$(DIST_QA_DOS1_BIN))
$(call mb_openmsx_dosctl,$(DIST_QA_DOS1_BIN))