getopt.rs(3): adds testing
This commit is contained in:
6
Makefile
6
Makefile
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user