2024-07-07 02:33:03 +00:00
|
|
|
|
|
2024-07-07 21:26:47 +00:00
|
|
|
|
define __mb_assert_flow_grep_binary
|
2024-07-10 12:05:38 +00:00
|
|
|
|
.RECIPEPREFIX := $(MB__RECIPE)
|
2024-07-07 02:33:03 +00:00
|
|
|
|
$(1)/@assert-$(2): $(1)/@build
|
2024-07-10 12:05:38 +00:00
|
|
|
|
$(MB__RECIPE)grep -q -U $(4) $(1)/$(3)
|
|
|
|
|
$(MB__RECIPE)$$(call mb_make_call,mb_os_echo_assert,$$(MB_I18N_ASSERT_SUCCESS) @assert-$(2))
|
|
|
|
|
$(MB__ )$$(call mb_make_call,mb_doc_target,$(1)/@assert-$(2),"Asserts that $(3) output matches.")
|
|
|
|
|
$(MB__ )$$(call mb_make_call,mb_make_flag_phony,$(1)/@assert-$(2))
|
|
|
|
|
$(MB__ )$$(call mb_make_call,mb_proj_grow_deps_phase_test,$(1)/@assert-$(2))
|
|
|
|
|
.RECIPEPREFIX := $(MB__RECIPEPREFIX)
|
2024-07-07 02:33:03 +00:00
|
|
|
|
endef
|
2024-07-10 12:05:38 +00:00
|
|
|
|
|
2024-07-07 21:26:47 +00:00
|
|
|
|
define mb_assert_flow_grep_binary
|
2024-07-10 12:05:38 +00:00
|
|
|
|
$(MB__ )$(call mb_make_call,mb_make_check_arg4,mb_assert_flow_grep_binary,$(1),$(2),$(3),$(4))
|
|
|
|
|
$(MB__ )$(eval $(call mb_make_call,__mb_assert_flow_grep_binary,$(1),$(2),$(3),$(4)))
|
2024-07-07 21:26:47 +00:00
|
|
|
|
endef
|
2024-07-07 18:53:06 +00:00
|
|
|
|
$(call mb_make_call,mb_doc_function_flow,mb_assert_flow_grep_binary,"Prints flow of single binary grep assert.","<build-dir> <test-id> <file> <grep-match>")
|
2024-07-07 02:33:03 +00:00
|
|
|
|
|
|
|
|
|
#$$(call mb_delete,$(1)/$(3).out)
|
2024-07-07 21:26:47 +00:00
|
|
|
|
define __mb_assert_flow_bdos_grep
|
2024-07-10 12:05:38 +00:00
|
|
|
|
.RECIPEPREFIX := $(MB__RECIPE)
|
|
|
|
|
MB__TARGET := $(1)-test-$(2)/@assert
|
2024-07-07 02:33:03 +00:00
|
|
|
|
$(1)-test-$(2)/@assert: $(1)/@build
|
2024-07-10 12:05:38 +00:00
|
|
|
|
$(MB__RECIPE)$$(call mb_make_call,mb_os_dir_create,$(1)-test-$(2))
|
|
|
|
|
$(MB__RECIPE)$$(call mb_make_call,mb_os_file_copy,$(1)/$(3).com,$(1)-test-$(2))
|
|
|
|
|
$(MB__RECIPE)$$(call mb_make_call,mb_msxpipe_safe_test,$(1)-test-$(2),$(3) > $(3).out)
|
|
|
|
|
$(MB__RECIPE)grep -q $(4) $(1)-test-$(2)/$(3).out
|
|
|
|
|
$(MB__RECIPE)$$(call mb_make_call,mb_os_echo_assert,$$(MB_I18N_ASSERT_SUCCESS) FOO $(1)-test-$(2)/@assert)
|
|
|
|
|
$(MB__ )$$(call mb_make_call,mb_doc_target,$(1)-test-$(2)/@assert,"Asserts that $(3) output matches.")
|
|
|
|
|
$(MB__ )$$(call mb_make_call,mb_make_flag_phony,$(1)-test-$(2)/@assert)
|
|
|
|
|
$(MB__ )$$(call mb_make_call,mb_proj_grow_deps_phase_test,$(1)-test-$(2)/@assert)
|
|
|
|
|
.RECIPEPREFIX := $(MB__RECIPEPREFIX)
|
2024-07-07 02:33:03 +00:00
|
|
|
|
endef
|
2024-07-10 12:05:38 +00:00
|
|
|
|
|
2024-07-07 21:26:47 +00:00
|
|
|
|
define mb_assert_flow_bdos_grep
|
2024-07-10 12:05:38 +00:00
|
|
|
|
$(MB__ )$(call mb_make_call,mb_make_check_arg4,mb_assert_flow_bdos_grep,$(1),$(2),$(3),$(4))
|
|
|
|
|
$(MB__ )$(eval $(call mb_make_call,__mb_assert_flow_bdos_grep,$(1),$(2),$(3),$(4)))
|
2024-07-07 21:26:47 +00:00
|
|
|
|
endef
|
2024-07-07 18:53:06 +00:00
|
|
|
|
$(call mb_make_call,mb_doc_function_flow,mb_assert_flow_bdos_grep,"Prints flow of single grep assert.","<build-dir> <test-id> <cmd-name> <grep-match>")
|
2024-07-08 02:23:37 +00:00
|
|
|
|
|
2024-07-10 12:05:38 +00:00
|
|
|
|
|