Skip to content

Commit dddab4c

Browse files
committed
fix bash
Signed-off-by: sweeywu <sweetwx6@gmail.com>
1 parent 999da27 commit dddab4c

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

test/bpf_ut/Makefile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,17 @@
11
ROOT_DIR := $(shell git rev-parse --show-toplevel)
22

3-
.PHONY: all build-bpf-tests clean
3+
.PHONY: all build-bpf-tests run clean
44

55
all: build-bpf-tests
66

77
build-bpf-tests:
88
@echo "Building BPF unit tests..."
99
@bash $(ROOT_DIR)/test/bpf_ut/build_bpf_ut_tests.sh
1010

11+
run: build-bpf-tests
12+
@echo "Running BPF unit tests..."
13+
@cd $(ROOT_DIR)/test/bpf_ut/bpftest && go test -v ./...
14+
1115
clean:
1216
@echo "Cleaning build files..."
1317
@rm -f $(ROOT_DIR)/test/bpf_ut/*.o

0 commit comments

Comments
 (0)