10 ifeq ($(UNCONFIGURE),)
18 list_tests = @(grep -r ') Test' *_test.go | cut -d '*' -f2 | cut -d '(' -f1 | \
19 tr -d ' ' | tr ')' '/' | sed 's/Suite//')
24 @echo " test - run tests"
25 @echo " build - build test infra"
26 @echo " build-debug - build test infra (vpp debug image)"
27 @echo " build-go - just build golang files"
28 @echo " fixstyle - format .go source files"
29 @echo " list-tests - list all tests"
31 @echo "Make arguments:"
32 @echo " UBUNTU_VERSION - ubuntu version for docker image"
33 @echo " PERSIST=[true|false] - whether clean up topology and dockers after test"
34 @echo " VERBOSE=[true|false] - verbose output"
35 @echo " UNCONFIGURE=[true|false] - unconfigure selected test"
36 @echo " TEST=[test-name] - specific test to run"
38 @echo "List of all tests:"
46 @make -C ../.. build-release
52 test: .deps.ok .build.vpp
53 @bash ./test --persist=$(PERSIST) --verbose=$(VERBOSE) \
54 --unconfigure=$(UNCONFIGURE) --test=$(TEST)
57 go build ./tools/http_server
59 build: .deps.ok build-vpp-release build-go
60 @rm .build.vpp || exit 0
61 bash ./script/build.sh release
64 build-debug: .deps.ok build-vpp-debug build-go
65 @rm .build.vpp || exit 0
66 bash ./script/build.sh debug
71 @rm .deps.ok || exit 0
72 @apt update -y && apt install -y golang docker-ce apache2-utils wrk bridge-utils