forked from bonsai/harakit
tests: bonsai/hru.mk: fixes hru.mk more
This commit is contained in:
parent
0bc0ffa0a5
commit
eb821715f7
@ -6,17 +6,17 @@
|
||||
# notice are preserved. This file is offered as-is, without any warranty.
|
||||
|
||||
.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
|
||||
hru_functionality: $(BIN)/hru
|
||||
test "$(printf '1234\n' | $(BIN)/hru)" = '1.2 kB'
|
||||
test "$(printf '0\n' | $(BIN)/hru)" = '0 B'
|
||||
|
||||
.PHONY: $(NAME_help)
|
||||
hru_help: $(BIN)/hru
|
||||
! $(BIN)/hru -h
|
||||
|
||||
.PHONY: hru_negative
|
||||
hru_negative: $(BIN)/hru
|
||||
! printf '%s\n' '-1' | $(BIN)/hru
|
||||
|
Loading…
Reference in New Issue
Block a user