Commit ccc99214 by Ben Clayton

Regres: Restructure directories for main packages

A directory should only contain either library code, or contain a single `main`. Attempting to have two main packages upsets the go tools. Add a `run.sh` bash script in the root regres folder to `go run` the `cmd/regres/main.go` file, to keep usage simple for non-go people. Change-Id: Ia37ce9a64e1e1a7e23ee3336e6e312cef9e63a9f Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/40528 Kokoro-Presubmit: kokoro <noreply+kokoro@google.com> Reviewed-by: 's avatarNicolas Capens <nicolascapens@google.com> Tested-by: 's avatarBen Clayton <bclayton@google.com>
parent 5ef91b82
......@@ -30,10 +30,10 @@ import (
"path/filepath"
"strings"
"./cause"
"./consts"
"./git"
"./testlist"
"../../cause"
"../../consts"
"../../git"
"../../testlist"
"golang.org/x/oauth2"
"golang.org/x/oauth2/google"
......
......@@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
// Regres is a tool that detects test regressions with SwiftShader changes.
// regres is a tool that detects test regressions with SwiftShader changes.
//
// Regres monitors changes that have been put up for review with Gerrit.
// Once a new patchset has been found, regres will checkout, build and test the
......@@ -44,13 +44,13 @@ import (
"strings"
"time"
"./cause"
"./consts"
"./deqp"
"./git"
"./shell"
"./testlist"
"./util"
"../../cause"
"../../consts"
"../../deqp"
"../../git"
"../../shell"
"../../testlist"
"../../util"
gerrit "github.com/andygrunwald/go-gerrit"
)
......
#!/bin/bash
ROOT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}")" >/dev/null 2>&1 && pwd )"
go run $ROOT_DIR/cmd/regres/main.go $@
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment