Moved os function to os and finished wrapping all calls.
All checks were successful
Run test asserts / Test-Asserts (push) Successful in -2s
All checks were successful
Run test asserts / Test-Asserts (push) Successful in -2s
This commit is contained in:
parent
4523aa26eb
commit
349120b8f5
22 changed files with 304 additions and 308 deletions
|
|
@ -6,28 +6,28 @@ DIST_QA_DOS2_DEPS := $(call mb_make_call,mb_proj_module_local_deps,$(DIST_QA_
|
|||
|
||||
|
||||
$(DIST_QA_DOS2_BIN): | @init
|
||||
$(call mb_mkdir,$(DIST_QA_DOS2_BIN))
|
||||
$(call mb_msxhub_get_msxdos2_boot,$(DIST_QA_DOS2_BIN))
|
||||
$(call mb_make_call,mb_os_dir_create,$(DIST_QA_DOS2_BIN))
|
||||
$(call mb_make_call,mb_msxhub_get_msxdos2_boot,$(DIST_QA_DOS2_BIN))
|
||||
|
||||
|
||||
$(DIST_QA_DOS2_BIN)/%: $(DIST_BIN)/% | $(DIST_QA_DOS2_BIN) $(DIST_DEPS)
|
||||
$(call mb_copy,$<,$@)
|
||||
$(call mb_make_call,mb_os_file_copy,$<,$@)
|
||||
|
||||
|
||||
$(DIST_QA_DOS2_BIN)/@run: | $(DIST_QA_DOS2_DEPS)
|
||||
$(call mb_msxpipe_run_gui,$(DIST_QA_DOS2_BIN))
|
||||
$(call mb_make_call,mb_msxpipe_run_gui,$(DIST_QA_DOS2_BIN))
|
||||
MB_DOC_FIRE_TARGET_RUN += $(call mb_make_call,mb_doc_target_run,$(DIST_QA_DOS2_BIN)/@run,"Run binaries on msxdos2 machine.")
|
||||
.PHONY: $(DIST_QA_DOS2_BIN)/@run
|
||||
|
||||
|
||||
$(DIST_QA_DOS2_BIN)/@assert: | $(DIST_QA_DOS2_DEPS)
|
||||
$(call mb_delete,$(DIST_QA_DOS2_BIN)/ahello1.out)
|
||||
$(call mb_delete,$(DIST_QA_DOS2_BIN)/ahello2.out)
|
||||
$(call mb_autoexec_write_default,$(DIST_QA_DOS2_BIN))
|
||||
$(call mb_autoexec_append_safe_test,$(DIST_QA_DOS2_BIN),ahello1 > ahello1.out)
|
||||
$(call mb_autoexec_append_safe_test,$(DIST_QA_DOS2_BIN),ahello2 > ahello2.out)
|
||||
$(call mb_autoexec_append_exit,$(DIST_QA_DOS2_BIN))
|
||||
$(call mb_openmsx_dosctl,$(DIST_QA_DOS2_BIN))
|
||||
$(call mb_make_call,mb_os_file_delete,$(DIST_QA_DOS2_BIN)/ahello1.out)
|
||||
$(call mb_make_call,mb_os_file_delete,$(DIST_QA_DOS2_BIN)/ahello2.out)
|
||||
$(call mb_make_call,mb_autoexec_write_default,$(DIST_QA_DOS2_BIN))
|
||||
$(call mb_make_call,mb_autoexec_append_safe_test,$(DIST_QA_DOS2_BIN),ahello1 > ahello1.out)
|
||||
$(call mb_make_call,mb_autoexec_append_safe_test,$(DIST_QA_DOS2_BIN),ahello2 > ahello2.out)
|
||||
$(call mb_make_call,mb_autoexec_append_exit,$(DIST_QA_DOS2_BIN))
|
||||
$(call mb_make_call,mb_openmsx_dosctl,$(DIST_QA_DOS2_BIN))
|
||||
grep -q "M80: Hello world..." $(DIST_QA_DOS2_BIN)/ahello1.out
|
||||
grep -q "SDCC: Hello world..." $(DIST_QA_DOS2_BIN)/ahello2.out
|
||||
$(call mb_make_call,mb_make_echo_assert,Assert succesfully $(DIST_QA_DOS2_BIN)/@assert)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue