diff options
author | Mahmoud Al-Qudsi <mqudsi@neosmart.net> | 2017-09-16 14:44:14 -0500 |
---|---|---|
committer | Mahmoud Al-Qudsi <mqudsi@neosmart.net> | 2017-09-16 14:44:14 -0500 |
commit | 6988bfb35c867529cc8dd83b3f29f56b0b55b7ea (patch) | |
tree | dc20b52f2fbec5ab3cd769fd04042690b934d609 | |
parent | 4819c4721b3485b8a7d79871c8de1ff817f964d4 (diff) |
Add make test to Makefile
-rw-r--r-- | Makefile | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -12,13 +12,13 @@ ZSHDIR = /usr/share/zsh/vendor-completions $(eval $(call compdir,FISHDIR,fish,$(PREFIX)/share/fish/vendor_completions.d)) FEATURES ?= default - +CARGO_OPTS := --no-default-features --features "$(FEATURES)" all: target/release/exa build: target/release/exa target/release/exa: - cargo build --release --no-default-features --features "$(FEATURES)" + cargo build --release $(CARGO_OPTS) install: install-exa install-man @@ -38,6 +38,9 @@ install-zsh-completions: install-fish-completions: install -m644 -- contrib/completions.fish "$(DESTDIR)$(FISHDIR)/exa.fish" +test: target/release/exa + cargo test --release $(CARGO_OPTS) + uninstall: -rm -f -- "$(DESTDIR)$(PREFIX)/share/man/man1/exa.1" -rm -f -- "$(DESTDIR)$(PREFIX)/bin/exa" @@ -59,6 +62,7 @@ help: @echo ' install - build and install exa and manpage' @echo ' install-exa - build and install exa' @echo ' install-man - install the manpage' + @echo ' test - run `cargo test`' @echo ' uninstall - uninstall fish, manpage, and completions' @echo ' preview-man - preview the manpage without installing' @echo ' help - print this help' |