-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathmakefile
More file actions
40 lines (37 loc) · 999 Bytes
/
makefile
File metadata and controls
40 lines (37 loc) · 999 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
install:
npm install
@for dir in ./gateways/*; do \
if [ -d $$dir ]; then \
echo "Installing $$dir"; \
(cd $$dir && ./install.sh); \
(cd $$dir && touch k6_summary.json && touch k6_summary.txt); \
echo "\n"; \
fi; \
done
# Build and run the subgraphs
run-subgraphs:
cargo build --release && ./target/release/subgraphs
test:
@if [ -z "$(gateway)" ]; then \
echo "Usage: make test gateway=<gateway_name> mode=<constant|stress>"; \
exit 1; \
fi
@if [ -z "$(mode)" ]; then \
echo "Usage: make test gateway=<gateway_name> mode=<constant|stress>"; \
exit 1; \
fi
@./test.sh $(gateway) $(mode)
test-all:
@if [ -z "$(mode)" ]; then \
echo "Usage: make test-all mode=<constant|stress>"; \
exit 1; \
fi
@for gateway in $(shell ls ./gateways); do \
if [ -d ./gateways/$$gateway ]; then \
echo "Testing $$gateway"; \
make test gateway=$$gateway mode=$(mode) || exit 1; \
echo "\n"; \
fi; \
done
cargo run -p toolkit summary
cargo run -p toolkit data