getopt.rs(3): adds testing

This commit is contained in:
2024-06-22 22:18:13 -06:00
parent 40da8135f1
commit 8f990ba515
2 changed files with 111 additions and 46 deletions

View File

@@ -49,9 +49,13 @@ install: dist
cp -r $(DESTDIR)/* /
.PHONY: test
test: build
test: build /tmp/getopt
tests/posix-compat.sh
/tmp/getopt: src/getopt.rs
$(RUSTC) --test -o /tmp/getopt src/getopt.rs
/tmp/getopt
.PHONY: rustlibs
rustlibs: build/o/libsysexits.rlib build/o/libgetopt.rlib \
build/o/libstrerror.rlib