Added test for file listing in utils.
All checks were successful
Run test asserts / Test-Asserts (push) Successful in -8s

This commit is contained in:
Willem Cazander 2024-06-29 23:42:02 +02:00
parent 8190980751
commit 6bc54cb628
2 changed files with 7 additions and 4 deletions

View file

@ -10,7 +10,7 @@ test-dist-qa-msxhub-assert
.PHONY: assert-all .PHONY: assert-all
assert-all: | $(BUILD_TEST) assert-all: | $(BUILD_TEST)
@echo All assertions completed. @echo === All assertions completed.
.PHONY: assert-all-video .PHONY: assert-all-video
assert-all-video: | assert-all assert-all-video: | assert-all

View file

@ -34,19 +34,22 @@ $(TEST_DIST_QA_MSXHUB)/%: bin/test/dist/% | $(TEST_DIST_QA_MSXHUB) $(TEST_DIST_D
.PHONY: test-dist-qa-msxhub-run .PHONY: test-dist-qa-msxhub-run
test-dist-qa-msxhub-run: | $(TEST_DIST_QA_MSXHUB_DEPS) test-dist-qa-msxhub-run: | $(TEST_DIST_QA_MSXHUB_DEPS)
$(call mb_autoexec_show_gui80,$(TEST_DIST_QA_MSXHUB),dir/w utils) $(call mb_autoexec_show_gui80,$(TEST_DIST_QA_MSXHUB),dir/w)
$(call mb_openmsx_dosctl,$(TEST_DIST_QA_MSXHUB),$(TEST_DIST_QA_MSXHUB_MACHINE)) $(call mb_openmsx_dosctl,$(TEST_DIST_QA_MSXHUB),$(TEST_DIST_QA_MSXHUB_MACHINE))
.PHONY: test-dist-qa-msxhub-assert .PHONY: test-dist-qa-msxhub-assert
test-dist-qa-msxhub-assert: | $(TEST_DIST_QA_MSXHUB_DEPS) test-dist-qa-msxhub-assert: | $(TEST_DIST_QA_MSXHUB_DEPS)
$(call mb_delete,$(TEST_DIST_QA_MSXHUB)/ahello1.out) $(call mb_delete,$(TEST_DIST_QA_MSXHUB)/ahello1.out)
$(call mb_delete,$(TEST_DIST_QA_MSXHUB)/ahello2.out) $(call mb_delete,$(TEST_DIST_QA_MSXHUB)/ahello2.out)
$(call mb_delete,$(TEST_DIST_QA_MSXHUB)/utils.out)
$(call mb_autoexec_write_default,$(TEST_DIST_QA_MSXHUB),80) $(call mb_autoexec_write_default,$(TEST_DIST_QA_MSXHUB),80)
$(call mb_autoexec_append_safe_test,$(TEST_DIST_QA_MSXHUB),ahello1 > ahello1.out) $(call mb_autoexec_append_safe_test,$(TEST_DIST_QA_MSXHUB),ahello1 > ahello1.out)
$(call mb_autoexec_append_safe_test,$(TEST_DIST_QA_MSXHUB),ahello2 > ahello2.out) $(call mb_autoexec_append_safe_test,$(TEST_DIST_QA_MSXHUB),ahello2 > ahello2.out)
$(call mb_autoexec_append_cmd,$(TEST_DIST_QA_MSXHUB),dir) $(call mb_autoexec_append_safe_test,$(TEST_DIST_QA_MSXHUB),dir utils > utils.out)
$(call mb_autoexec_append_cmd,$(TEST_DIST_QA_MSXHUB),dir/w utils) $(call mb_autoexec_append_cmd,$(TEST_DIST_QA_MSXHUB),dir/w)
$(call mb_autoexec_append_exit,$(TEST_DIST_QA_MSXHUB)) $(call mb_autoexec_append_exit,$(TEST_DIST_QA_MSXHUB))
$(call mb_openmsx_dosctl,$(TEST_DIST_QA_MSXHUB),$(TEST_DIST_QA_MSXHUB_MACHINE)) $(call mb_openmsx_dosctl,$(TEST_DIST_QA_MSXHUB),$(TEST_DIST_QA_MSXHUB_MACHINE))
grep "M80: Hello world..." $(TEST_DIST_QA_MSXHUB)/ahello1.out grep "M80: Hello world..." $(TEST_DIST_QA_MSXHUB)/ahello1.out
grep "SDCC: Hello world..." $(TEST_DIST_QA_MSXHUB)/ahello2.out grep "SDCC: Hello world..." $(TEST_DIST_QA_MSXHUB)/ahello2.out
grep "KONPASS COM" $(TEST_DIST_QA_MSXHUB)/utils.out
grep "MAKE COM" $(TEST_DIST_QA_MSXHUB)/utils.out