10 ifeq ($(UNCONFIGURE),)
22 list_tests = @(grep -r ') Test' *_test.go | cut -d '*' -f2 | cut -d '(' -f1 | \
23 tr -d ' ' | tr ')' '/' | sed 's/Suite//')
28 @echo " test - run tests"
29 @echo " build - build test infra"
30 @echo " build-debug - build test infra (vpp debug image)"
31 @echo " build-go - just build golang files"
32 @echo " fixstyle - format .go source files"
33 @echo " list-tests - list all tests"
35 @echo "Make arguments:"
36 @echo " UBUNTU_VERSION - ubuntu version for docker image"
37 @echo " PERSIST=[true|false] - whether clean up topology and dockers after test"
38 @echo " VERBOSE=[true|false] - verbose output"
39 @echo " UNCONFIGURE=[true|false] - unconfigure selected test"
40 @echo " DEBUG=[true|false] - attach VPP to GDB"
41 @echo " TEST=[test-name] - specific test to run"
43 @echo "List of all tests:"
51 @make -C ../.. build-release
57 test: .deps.ok .build.vpp
58 @bash ./test --persist=$(PERSIST) --verbose=$(VERBOSE) \
59 --unconfigure=$(UNCONFIGURE) --debug=$(DEBUG) --test=$(TEST)
62 go build ./tools/http_server
64 build: .deps.ok build-vpp-release build-go
65 @rm .build.vpp || exit 0
66 bash ./script/build.sh release
69 build-debug: .deps.ok build-vpp-debug build-go
70 @rm .build.vpp || exit 0
71 bash ./script/build.sh debug
76 @rm .deps.ok || exit 0
77 @apt update -y && apt install -y golang docker-ce apache2-utils wrk bridge-utils