forked from bonsai/harakit
tests: bonsai/fop.mk: fixes record separators
This commit is contained in:
parent
91de98cea3
commit
ee7b7e89b2
@ -6,12 +6,16 @@
|
||||
# notice are preserved. This file is offered as-is, without any warranty.
|
||||
|
||||
.PHONY: fop_tests
|
||||
fop_tests: fop_help fop_functionality fop_delimiter fop_fail
|
||||
fop_tests: fop_functionality fop_delimiter fop_help fop_fail
|
||||
|
||||
.PHONY: fop_help
|
||||
fop_help: $(BIN)/fop
|
||||
! $(BIN)/fop -h
|
||||
|
||||
.PHONY: fop_delimiter
|
||||
fop_delimiter: $(BIN)/fop
|
||||
test "$$(printf 'test0 test1 test2\n' | $(BIN)/fop -d' ' 2 sed 's/2/4/g')" \
|
||||
= 'test0 test1 test4'
|
||||
test "$$(printf 'test1 test1 test1\n' | $(BIN)/fop -d' ' 2 sed 's/2/4/g')" \
|
||||
= 'test1 test1 test4'
|
||||
test "$$(printf 'meowsetwoofsetribbit\n' \
|
||||
| $(BIN)/fop -d 'set' 1 sed 's/woof/meow/g')" = 'meowsetmeowsetribbit'
|
||||
|
||||
@ -23,9 +27,5 @@ fop_fail: $(BIN)/fop
|
||||
|
||||
.PHONY: fop_functionality
|
||||
fop_functionality: $(BIN)/fop
|
||||
test "$$(printf 'test0␞test1␞test2\n' | $(BIN)/fop 1 sed 's/1/4/g')" \
|
||||
= 'test0␞test4␞test2'
|
||||
|
||||
.PHONY: fop_help
|
||||
fop_help: $(BIN)/fop
|
||||
! $(BIN)/fop -h
|
||||
test "$$(printf 'test1\036test1\036test1\n' | $(BIN)/fop 1 sed 's/1/4/g')" \
|
||||
= "$$(printf 'test1\036test4\036test1\n')"
|
||||
|
Loading…
Reference in New Issue
Block a user