2024-07-12 15:59:26 +00:00
|
|
|
|
|
2024-07-16 14:45:37 +00:00
|
|
|
|
define __mb-flow-assert-grep-binary-x
|
2024-07-12 15:59:26 +00:00
|
|
|
|
.RECIPEPREFIX := $(MB_@RECIPE)
|
2024-07-14 01:46:29 +00:00
|
|
|
|
|
2024-07-17 21:17:34 +00:00
|
|
|
|
$(1)/@$(5)-deps:: $(1)/@assert/$(5)/$(2)
|
2024-07-14 01:46:29 +00:00
|
|
|
|
|
|
|
|
|
$(1)/@assert/$(5)/$(2): $(1)/@build
|
2024-07-17 21:39:09 +00:00
|
|
|
|
$(MB_@RECIPE)@echo -n "$(MB_I18N_OS_CRAYON_TAG) "
|
2024-07-17 21:30:22 +00:00
|
|
|
|
$(MB_@RECIPE)grep --colour$(MB_MAKE_EQUALS)auto -U "$(4)" $(1)/$(3)
|
2024-07-16 14:45:37 +00:00
|
|
|
|
$(MB_@RECIPE)$$(call mb-make-call,mb-os-echo-assert,$$(MB_I18N_ASSERT_SUCCESS) $(1)/@assert/$(2)/$(5))
|
|
|
|
|
$(MB_@RECIPE)$$(call mb-make-call,mb-proj-grow-assert-success,$(5))
|
2024-07-16 17:32:08 +00:00
|
|
|
|
$(MB_ᕽᕽᕽ )$$(call mb-make-call,mb-doc-target-assert,$(1)/@assert/$(5)/$(2),Asserts that $(3) output matches.)
|
2024-07-16 14:45:37 +00:00
|
|
|
|
$(MB_ᕽᕽᕽ )$$(call mb-make-call,mb-make-target-phony,$(1)/@assert/$(5)/$(2))
|
|
|
|
|
$(MB_ᕽᕽᕽ )$$(call mb-make-call,mb-proj-grow-deps-phase,$(5),$(1)/@assert/$(5)/$(2))
|
2024-07-14 01:46:29 +00:00
|
|
|
|
|
2024-07-12 15:59:26 +00:00
|
|
|
|
.RECIPEPREFIX := $(MB_@RECIPEPREFIX)
|
|
|
|
|
endef
|
2024-07-16 14:45:37 +00:00
|
|
|
|
define mb-flow-assert-grep-binary-test
|
|
|
|
|
$(MB_ᕽᕽᕽ )$(call mb-make-call,mb-make-check-arg4,$(0),$(1),$(2),$(3),$(4))
|
|
|
|
|
$(MB_ᕽᕽᕽ )$(eval $(call mb-make-call,__mb-flow-assert-grep-binary-x,$(1),$(2),$(3),$(4),@test))
|
2024-07-12 17:30:19 +00:00
|
|
|
|
endef
|
2024-07-16 17:32:08 +00:00
|
|
|
|
$(call mb-make-call,mb-doc-function-flow,mb-flow-assert-grep-binary-test,Inject flow of single binary grep assert.,<build-dir> <test-id> <file> <grep-match>)
|
2024-07-16 14:45:37 +00:00
|
|
|
|
define mb-flow-assert-grep-binary-package-qa
|
|
|
|
|
$(MB_ᕽᕽᕽ )$(call mb-make-call,mb-make-check-arg4,$(0),$(1),$(2),$(3),$(4))
|
|
|
|
|
$(MB_ᕽᕽᕽ )$(eval $(call mb-make-call,__mb-flow-assert-grep-binary-x,$(1),$(2),$(3),$(4),@package-qa))
|
2024-07-14 01:46:29 +00:00
|
|
|
|
endef
|
2024-07-16 17:32:08 +00:00
|
|
|
|
$(call mb-make-call,mb-doc-function-flow,mb-flow-assert-grep-binary-package-qa,Inject flow of single binary grep assert.,<build-dir> <test-id> <file> <grep-match>)
|
2024-07-14 01:46:29 +00:00
|
|
|
|
|
|
|
|
|
|
2024-07-16 14:45:37 +00:00
|
|
|
|
define __mb-flow-assert-msxpipe-grep-x
|
2024-07-12 15:59:26 +00:00
|
|
|
|
.RECIPEPREFIX := $(MB_@RECIPE)
|
2024-07-14 01:46:29 +00:00
|
|
|
|
|
2024-07-15 00:34:29 +00:00
|
|
|
|
$(1)/@$(5)-deps:: $(1)/@assert/$(5)/$(2)
|
2024-07-14 01:46:29 +00:00
|
|
|
|
$(7)/@@init-deps:: $(1)/@build
|
|
|
|
|
|
|
|
|
|
$(1)/@assert/$(5)/$(2): $(7)/@build
|
2024-07-16 14:45:37 +00:00
|
|
|
|
$(MB_@RECIPE)$$(if $$(wildcard $(7)/$(3).out),,$$(call mb-make-call,mb-os-file-delete,$(7)/$(3).out))
|
|
|
|
|
$(MB_@RECIPE)$$(call mb-make-call,mb-msxpipe-safe-assert,$(7),$(3) > $(3).out,$(6))
|
2024-07-17 21:39:09 +00:00
|
|
|
|
$(MB_@RECIPE)@echo -n "$(MB_I18N_OS_CRAYON_TAG) "
|
2024-07-17 21:30:22 +00:00
|
|
|
|
$(MB_@RECIPE)grep --colour$(MB_MAKE_EQUALS)auto "$(4)" $(7)/$(3).out
|
2024-07-16 14:45:37 +00:00
|
|
|
|
$(MB_@RECIPE)$$(call mb-make-call,mb-os-echo-assert,$$(MB_I18N_ASSERT_SUCCESS) $(1)/@assert/$(2)/$(5))
|
|
|
|
|
$(MB_@RECIPE)$$(call mb-make-call,mb-proj-grow-assert-success,$(5))
|
2024-07-16 17:32:08 +00:00
|
|
|
|
$(MB_ᕽᕽᕽ )$$(call mb-make-call,mb-doc-target-assert,$(1)/@assert/$(5)/$(2),Asserts that $(3) output matches.)
|
2024-07-16 14:45:37 +00:00
|
|
|
|
$(MB_ᕽᕽᕽ )$$(call mb-make-call,mb-make-target-phony,$(1)/@assert/$(5)/$(2))
|
|
|
|
|
$(MB_ᕽᕽᕽ )$$(call mb-make-call,mb-proj-grow-deps-phase,$(5),$(1)/@assert/$(5)/$(2))
|
2024-07-14 01:46:29 +00:00
|
|
|
|
|
2024-07-12 15:59:26 +00:00
|
|
|
|
.RECIPEPREFIX := $(MB_@RECIPEPREFIX)
|
|
|
|
|
endef
|
2024-07-16 14:45:37 +00:00
|
|
|
|
define mb-flow-assert-msxpipe-grep-test
|
|
|
|
|
$(MB_ᕽᕽᕽ )$(call mb-make-call,mb-make-check-arg5,$(0),$(1),$(2),$(3),$(4),$(5))
|
|
|
|
|
$(MB_ᕽᕽᕽ )$(eval $(call mb-make-call,mb-flow-clone-deps,$(1)$(MB_@WORK)_assert/$(notdir $(1))/test-$(3),$(1),$(2),$(6),$(7)))
|
|
|
|
|
$(MB_ᕽᕽᕽ )$(eval $(call mb-make-call,__mb-flow-assert-msxpipe-grep-x,$(1),$(3),$(4),$(5),@test,$(7),$(1)$(MB_@WORK)_assert/$(notdir $(1))/test-$(3)))
|
2024-07-14 01:46:29 +00:00
|
|
|
|
endef
|
2024-07-16 17:32:08 +00:00
|
|
|
|
$(call mb-make-call,mb-doc-function-flow,mb-flow-assert-msxpipe-grep-test,Inject flow of single grep assert.,<build-dir> <deps> <test-id> <cmd-name> <grep-match> [packages] [machine])
|
2024-07-16 14:45:37 +00:00
|
|
|
|
define mb_flow-assert-msxpipe-grep-package-qa
|
|
|
|
|
$(MB_ᕽᕽᕽ )$(call mb-make-call,mb-make-check-arg5,$(0),$(1),$(2),$(3),$(4),$(5))
|
|
|
|
|
$(MB_ᕽᕽᕽ )$(eval $(call mb-make-call,mb-flow-clone-deps,$(1)$(MB_@WORK)_assert/$(notdir $(1))/package-qa-$(3),$(1),$(2),$(6),$(7)))
|
|
|
|
|
$(MB_ᕽᕽᕽ )$(eval $(call mb-make-call,__mb-flow-assert-msxpipe-grep-x,$(1),$(3),$(4),$(5),@package-qa,$(7),$(1)$(MB_@WORK)_assert/$(notdir $(1))/package-qa-$(3)))
|
2024-07-12 15:59:26 +00:00
|
|
|
|
endef
|
2024-07-16 17:32:08 +00:00
|
|
|
|
$(call mb-make-call,mb-doc-function-flow,mb-flow-assert-msxpipe-grep-package-qa,Inject flow of single grep assert.,<build-dir> <deps> <test-id> <cmd-name> <grep-match> [packages] [machine])
|
2024-07-12 15:59:26 +00:00
|
|
|
|
|