Răsfoiți Sursa

update test-examples target to use local sbpf

bidhan-a 3 zile în urmă
părinte
comite
d9ee242c82
1 a modificat fișierele cu 2 adăugiri și 3 ștergeri
  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