14 list_tests = @(grep -r ') Test' *_test.go | cut -d '*' -f2 | cut -d '(' -f1 | \
15 tr -d ' ' | tr ')' '/' | sed 's/Suite//')
20 @echo " test - run tests"
21 @echo " build - build test infra"
22 @echo " build-debug - build test infra (vpp debug image)"
23 @echo " build-go - just build golang files"
24 @echo " fixstyle - format .go source files"
25 @echo " list-tests - list all tests"
27 @echo "Make arguments:"
28 @echo " UBUNTU_VERSION - ubuntu version for docker image"
29 @echo " PERSIST=[true|false] - whether clean up topology and dockers after test"
30 @echo " VERBOSE=[true|false] - verbose output"
31 @echo " TEST=[test-name] - specific test to run"
33 @echo "List of all tests:"
41 @make -C ../.. build-release
47 test: .deps.ok .build.vpp
48 @bash ./test --persist=$(PERSIST) --verbose=$(VERBOSE) --test=$(TEST)
51 go build ./tools/http_server
53 build: .deps.ok build-vpp-release build-go
54 @rm .build.vpp || exit 0
55 bash ./script/build.sh release
58 build-debug: .deps.ok build-vpp-debug build-go
59 @rm .build.vpp || exit 0
60 bash ./script/build.sh debug
65 @rm .deps.ok || exit 0
66 @apt update -y && apt install -y golang docker-ce apache2-utils wrk bridge-utils