瀏覽代碼

Makefile: Add test-no-run target to be able to only compile tests.

parazyd 3 年之前
父節點
當前提交
16a14a7260
共有 1 個文件被更改,包括 6 次插入1 次删除
  1. 6 1
      Makefile

+ 6 - 1
Makefile

@@ -72,6 +72,9 @@ rustdoc: token_lists contracts $(PROOFS_BIN)
 test: token_lists $(PROOFS_BIN) contracts
 	$(CARGO) test --release --all-features --all
 
+test-no-run: token_lists $(PROOFS_BIN) contracts
+	$(CARGO) test --release --all-features --all --no-run
+
 coverage: token_lists contracts $(PROOFS_BIN)
 	$(CARGO) llvm-cov --release --all-features --workspace --html
 
@@ -100,4 +103,6 @@ uninstall:
 		rm -f $(DESTDIR)$(PREFIX)/bin/$$i; \
 	done;
 
-.PHONY: all contracts token_lists check fix clippy rustdoc test cleanbin clean install uninstall coverage
+.PHONY: \
+	all contracts token_lists check fix clippy rustdoc test test-no-run \
+	cleanbin clean install uninstall coverage