tests: bonsai/hru.mk: fixes hru.mk more

This commit is contained in:
Emma Tebibyte 2024-08-07 20:45:26 -06:00
parent 0bc0ffa0a5
commit eb821715f7
Signed by: emma
GPG Key ID: 06FA419A1698C270

View File

@ -6,17 +6,17 @@
# notice are preserved. This file is offered as-is, without any warranty. # notice are preserved. This file is offered as-is, without any warranty.
.PHONY: hru_tests .PHONY: hru_tests
hru_tests: $(BIN)/hru hru_tests: hru_help hru_functionality hru_negative hru_regression
.PHONY: hru_help
hru_help: $(BIN)/hru
! $(BIN)/hru -h
.PHONY: hru_functionality .PHONY: hru_functionality
hru_functionality: $(BIN)/hru hru_functionality: $(BIN)/hru
test "$(printf '1234\n' | $(BIN)/hru)" = '1.2 kB' test "$(printf '1234\n' | $(BIN)/hru)" = '1.2 kB'
test "$(printf '0\n' | $(BIN)/hru)" = '0 B' test "$(printf '0\n' | $(BIN)/hru)" = '0 B'
.PHONY: $(NAME_help)
hru_help: $(BIN)/hru
! $(BIN)/hru -h
.PHONY: hru_negative .PHONY: hru_negative
hru_negative: $(BIN)/hru hru_negative: $(BIN)/hru
! printf '%s\n' '-1' | $(BIN)/hru ! printf '%s\n' '-1' | $(BIN)/hru