libdelimit, Makefile: adds test for libdelimit, changes API; fop(1): changes to new libdelimit API

This commit is contained in:
2025-10-30 19:32:03 -06:00
parent 4aab77bee4
commit 5cc1e2067b
3 changed files with 33 additions and 9 deletions

View File

@@ -71,12 +71,16 @@ TESTS != printf '%s\n' "$(TESTFILES)" | xargs -n1 basename \
include $(TESTFILES)
.PHONY: test
test: all $(TESTS) /tmp/getopt
test: all $(TESTS) /tmp/delimit /tmp/getopt
@echo $(TESTS)
/tmp/delimit
/tmp/getopt
/tmp/delimit: src/libdelimit.rs
$(RUSTC) --test -o $@ src/libdelimit.rs
/tmp/getopt: src/libgetopt.rs
$(RUSTC) --test -o /tmp/getopt src/libgetopt.rs
$(RUSTC) --test -o $@ src/libgetopt.rs
.PHONY: docs
docs: docs/ build