Moved asserts to remove copy of mofified files after assert.
All checks were successful
Run test asserts / Test-Asserts (push) Successful in -9s
All checks were successful
Run test asserts / Test-Asserts (push) Successful in -9s
This commit is contained in:
parent
b175f499d4
commit
6f677b6c43
10 changed files with 181 additions and 141 deletions
23
src/ahello-sdcc-test/0module.mk
Normal file
23
src/ahello-sdcc-test/0module.mk
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
|
||||
AHELLO_SDCC_TEST_MOD := ahello-sdcc-test
|
||||
AHELLO_SDCC_TEST_SRC := $(PATH_SRC)/$(AHELLO_SDCC_TEST_MOD)
|
||||
AHELLO_SDCC_TEST_BIN := $(PATH_BIN)/$(AHELLO_SDCC_TEST_MOD)
|
||||
BUILD_HELP += \\n\\t* $(AHELLO_SDCC_TEST_BIN)/@run\\n\\t* $(AHELLO_SDCC_TEST_BIN)/@assert
|
||||
|
||||
$(AHELLO_SDCC_TEST_BIN):
|
||||
$(call mb_mkdir,$(AHELLO_SDCC_TEST_BIN))
|
||||
|
||||
$(AHELLO_SDCC_TEST_BIN)/ahello.com: $(AHELLO_SDCC_BIN)/ahello.com | $(AHELLO_SDCC_TEST_BIN)
|
||||
$(call mb_copy,$<,$@)
|
||||
|
||||
.PHONY: $(AHELLO_SDCC_TEST_BIN)/@run
|
||||
$(AHELLO_SDCC_TEST_BIN)/@run: | $(AHELLO_SDCC_TEST_BIN)/ahello.com
|
||||
$(call mb_autoexec_show_gui80,$(AHELLO_SDCC_TEST_BIN))
|
||||
$(call mb_openmsx_dosctl,$(AHELLO_SDCC_TEST_BIN))
|
||||
|
||||
.PHONY: $(AHELLO_M80_TEST_BIN)/@assert
|
||||
$(AHELLO_SDCC_TEST_BIN)/@assert: | $(AHELLO_SDCC_TEST_BIN)/ahello.com
|
||||
$(call mb_delete,$(AHELLO_SDCC_TEST_BIN)/ahello.out)
|
||||
$(call mb_autoexec_safe_test,$(AHELLO_SDCC_TEST_BIN),ahello > ahello.out)
|
||||
$(call mb_openmsx_dosctl,$(AHELLO_SDCC_TEST_BIN))
|
||||
grep "SDCC: Hello world..." $(AHELLO_SDCC_TEST_BIN)/ahello.out
|
||||
Loading…
Add table
Add a link
Reference in a new issue