Up through lcthw ex 15

This commit is contained in:
2024-04-19 21:51:42 -04:00
parent 0ce1da0737
commit 224300e1cf
3 changed files with 54 additions and 14 deletions

View File

@@ -19,17 +19,17 @@ clean:
build: $(BUILD_TARGETS)
.PHONY: gtest
gtest:
gtest: $(BUILD_TARGETS)
@$(foreach bt, $(BUILD_TARGETS), make .gtest.$(bt) &&) printf '\ngYAY\n'
.gtest.%:
.gtest.%: %
@if test -f .$*.argv; then readarray -t test_argv <.$*.argv; fi && \
printf '\n==> %s\n' "$*" && $(GDBRUN) ./$* "$${test_argv[@]}"
.PHONY: test
test:
test: $(BUILD_TARGETS)
@$(foreach bt, $(BUILD_TARGETS), make .test.$(bt) &&) printf '\nYAY\n'
.test.%:
.test.%: %
@if test -f .$*.argv; then readarray -t test_argv <.$*.argv; fi && \
printf '\n==> %s\n' "$*" && ./$* "$${test_argv[@]}"