Merge pull request #5477 from vmarmol/add-testdirs

Add a TESTDIRS variable to the test bundle to control which directories are unit tested
Upstream-commit: a96cac4d7d42db757f9387ff1352ebedfc7b557e
Component: engine
This commit is contained in:
Tianon Gravi
2014-04-29 16:40:40 -06:00
2 changed files with 7 additions and 2 deletions

View File

@ -17,8 +17,13 @@ bundle_test() {
{
date
# Run all the tests if no TESTDIRS were specified.
if [ -z "$TESTDIRS" ]; then
TESTDIRS=$(find_dirs '*_test.go')
fi
TESTS_FAILED=()
for test_dir in $(find_dirs '*_test.go'); do
for test_dir in $TESTDIRS; do
echo
if ! LDFLAGS="$LDFLAGS $LDFLAGS_STATIC_DOCKER" go_test_dir "$test_dir"; then