]> Cypherpunks repositories - gostls13.git/commit
cmd/dist: only run swig tests when a go directory is present in swiglib
authorMartin Möhrmann <moehrmann@google.com>
Fri, 19 Jan 2018 17:26:58 +0000 (18:26 +0100)
committerIan Lance Taylor <iant@golang.org>
Tue, 23 Jan 2018 04:18:23 +0000 (04:18 +0000)
commit4a7334b7f2b30aa4b14f5c38fae561f9afffc076
tree9eeb5a299a7d21b0dfe8ce5cebc00d48152cece8
parent6c27114cedb47e8bd2723416ea0c63d047a2cefc
cmd/dist: only run swig tests when a go directory is present in swiglib

When there is no go directory inside the swiglib directory then swig
was installed without Go support. Tests in misc/swig will fail when
swig is installed without Go support.

Add additional checks for the presence of a go directory in the directory
reported by 'swig -go -swiglib' to determine if misc/swig tests should
be run.

This avoids all.bash failing when swig but not swig-go is installed
using macports.

Tested on darwin with swig and with and without swig-go installed
using macports.

Fixes #23469

Change-Id: I173201221554982ea0d9f2bea70a3cb85b297cec
Reviewed-on: https://go-review.googlesource.com/88776
Reviewed-by: David Chase <drchase@google.com>
src/cmd/dist/test.go