Willem Cazander
74a29e889e
All checks were successful
Run test asserts / Test-Asserts (push) Successful in -7s
29 lines
1.3 KiB
Makefile
29 lines
1.3 KiB
Makefile
|
|
TEST_DIST_QA_MSX1_MACHINE ?= Canon_V-20
|
|
TEST_DIST_QA_MSX1 := $(PATH_BIN)/test/dist-qa-msx1
|
|
TEST_DIST_QA_MSX1_DEPS := $(subst dist,dist-qa-msx1,$(TEST_DIST_DEPS))
|
|
BUILD_HELP += \\n\\t* test-dist-qa-msx1-run\\n\\t* test-dist-qa-msx1-assert
|
|
|
|
$(TEST_DIST_QA_MSX1):
|
|
$(call mb_mkdir,$(TEST_DIST_QA_MSX1))
|
|
|
|
$(TEST_DIST_QA_MSX1)/%: bin/test/dist/% | $(TEST_DIST_QA_MSX1) $(TEST_DIST_DEPS)
|
|
$(call mb_copy,$<,$@)
|
|
|
|
.PHONY: test-dist-qa-msx1-run
|
|
test-dist-qa-msx1-run: | $(TEST_DIST_QA_MSX1_DEPS)
|
|
$(call mb_autoexec_open_gui40,$(TEST_DIST_QA_MSX1))
|
|
$(call mb_openmsx_dosctl,$(TEST_DIST_QA_MSX1),$(TEST_DIST_QA_MSX1_MACHINE))
|
|
|
|
.PHONY: test-dist-qa-msx1-assert
|
|
test-dist-qa-msx1-assert: | $(TEST_DIST_QA_MSX1_DEPS)
|
|
$(call mb_delete,$(TEST_DIST_QA_MSX1)/ahello1.out)
|
|
$(call mb_delete,$(TEST_DIST_QA_MSX1)/ahello2.out)
|
|
$(call mb_autoexec_write_default,$(TEST_DIST_QA_MSX1),40)
|
|
$(call mb_autoexec_append_safe_test,$(TEST_DIST_QA_MSX1),ahello1 > ahello1.out,33)
|
|
$(call mb_autoexec_append_safe_test,$(TEST_DIST_QA_MSX1),ahello2 > ahello2.out,66,99)
|
|
$(call mb_autoexec_append_exit,$(TEST_DIST_QA_MSX1))
|
|
$(call mb_openmsx_dosctl,$(TEST_DIST_QA_MSX1),$(TEST_DIST_QA_MSX1_MACHINE))
|
|
grep "M80: Hello world..." $(TEST_DIST_QA_MSX1)/ahello1.out
|
|
grep "SDCC: Hello world..." $(TEST_DIST_QA_MSX1)/ahello2.out
|