소스 검색

update test-examples target to use local sbpf

bidhan-a 3 일 전
부모
커밋
d9ee242c82
1개의 변경된 파일2개의 추가작업 그리고 3개의 파일을 삭제
  1. 2 3
      Makefile

+ 2 - 3
Makefile

@@ -14,11 +14,10 @@ web:
 test-examples:
 	@set -e; \
 	cargo build; \
-	cargo install --path .; \
 	for d in examples/*; do \
 		if [ -d "$$d" ]; then \
 			echo "=== Building and testing $$d ==="; \
-			( cd "$$d" && sbpf build || exit 1 ); \
-			( cd "$$d" && sbpf test || exit 1 ); \
+			( cd "$$d" && cargo run --manifest-path ../../Cargo.toml --bin sbpf -- build || exit 1 ); \
+			( cd "$$d" && cargo run --manifest-path ../../Cargo.toml --bin sbpf -- test || exit 1 ); \
 		fi; \
 	done