Skip to content

Instantly share code, notes, and snippets.

@joestringer
Created July 19, 2013 04:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save joestringer/6035380 to your computer and use it in GitHub Desktop.
Save joestringer/6035380 to your computer and use it in GitHub Desktop.
Run OVS tests concurrently, with sparse and valgrind.
#!/bin/sh
set -e
make
CONCURRENCY_LEVEL=${CONCURRENCY_LEVEL:-2}
OVSDIR=/home/switch/git/openvswitch
./tests/testsuite -C tests \
AUTOTEST_PATH=utilities:vswitchd:ovsdb:tests \
-j${CONCURRENCY_LEVEL} -e "$@"
if [ "$#" -gt 0 ]; then
exit
fi
./tests/testsuite -C tests \
CHECK_VALGRIND=true \
VALGRIND='valgrind --log-file=valgrind.%p --leak-check=full
--suppressions=$OVSDIR/tests/glibc.supp \
--suppressions=$OVSDIR/tests/openssl.supp \
--num-callers=20' \
AUTOTEST_PATH='tests/valgrind:utilities:vswitchd:ovsdb:tests' -d \
-j$CONCURRENCY_LEVEL -e "$@"
$(dirname $0)/run-sparse
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment